OSDN Git Service

* configure.ac: Set SYSTEMSPEC so that -allow_stack_execute is not
[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_FALSE
636 ANONVERSCRIPT_TRUE
637 SYSDEP_SOURCES
638 PERL
639 libstdcxx_incdir
640 gxx_include_dir
641 gcjsubdir
642 dbexecdir
643 GCJVERSION
644 toolexeclibdir
645 toolexecmainlibdir
646 toolexecdir
647 GCC_UNWIND_INCLUDE
648 INSTALL_BINARIES_FALSE
649 INSTALL_BINARIES_TRUE
650 NEEDS_DATA_START_FALSE
651 NEEDS_DATA_START_TRUE
652 ENABLE_SHARED_FALSE
653 ENABLE_SHARED_TRUE
654 NATIVE_FALSE
655 NATIVE_TRUE
656 ATOMICSPEC
657 IEEESPEC
658 BACKTRACESPEC
659 EXCEPTIONSPEC
660 CHECKREFSPEC
661 DIVIDESPEC
662 ZINCS
663 SYS_ZLIBS
664 ZLIBS
665 CLASSPATH_SEPARATOR
666 LIBART_LIBS
667 LIBART_CFLAGS
668 GLIB_LIBS
669 GLIB_CFLAGS
670 GTK_LIBS
671 GTK_CFLAGS
672 PKG_CONFIG
673 LTLIBICONV
674 LIBICONV
675 USING_GCC_FALSE
676 USING_GCC_TRUE
677 HASH_SYNC_SPEC
678 LIBGCJ_BC_SPEC
679 LIBGCJ_SPEC
680 USE_LIBGCJ_BC_FALSE
681 USE_LIBGCJ_BC_TRUE
682 USING_NO_THREADS_FALSE
683 USING_NO_THREADS_TRUE
684 USING_WIN32_THREADS_FALSE
685 USING_WIN32_THREADS_TRUE
686 USING_POSIX_THREADS_FALSE
687 USING_POSIX_THREADS_TRUE
688 THREADCXXFLAGS
689 THREADLDFLAGS
690 THREADSTARTFILESPEC
691 THREADSPEC
692 THREADDEPS
693 THREADINCS
694 THREADLIBS
695 USING_NOGC_FALSE
696 USING_NOGC_TRUE
697 USING_BOEHMGC_FALSE
698 USING_BOEHMGC_TRUE
699 GCTESTSPEC
700 JC1GCSPEC
701 GCSPEC
702 GCDEPS
703 GCINCS
704 GCLIBS
705 LIBGCJTESTSPEC
706 LIBSTDCXXSPEC
707 extra_ldflags
708 extra_ldflags_libjava
709 X_EXTRA_LIBS
710 X_LIBS
711 X_PRE_LIBS
712 X_CFLAGS
713 XMKMF
714 ZLIBTESTSPEC
715 ZLIBSPEC
716 SYSTEMSPEC
717 USING_DARWIN_CRT_FALSE
718 USING_DARWIN_CRT_TRUE
719 USING_POSIX_PLATFORM_FALSE
720 USING_POSIX_PLATFORM_TRUE
721 USING_WIN32_PLATFORM_FALSE
722 USING_WIN32_PLATFORM_TRUE
723 PLATFORM
724 LIBFFIINCS
725 LIBFFI
726 INTERPRETER_FALSE
727 INTERPRETER_TRUE
728 INTERPRETER
729 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE
730 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE
731 SUPPRESS_LIBGCJ_BC_FALSE
732 SUPPRESS_LIBGCJ_BC_TRUE
733 JAVA_HOME
734 JAVA_HOME_SET_FALSE
735 JAVA_HOME_SET_TRUE
736 INSTALL_ECJ_JAR_FALSE
737 INSTALL_ECJ_JAR_TRUE
738 BUILD_ECJ1_FALSE
739 BUILD_ECJ1_TRUE
740 ECJ_JAR
741 ECJ_BUILD_JAR
742 TESTSUBDIR_FALSE
743 TESTSUBDIR_TRUE
744 subdirs
745 am__fastdepGCJ_FALSE
746 am__fastdepGCJ_TRUE
747 GCJDEPMODE
748 GCJFLAGS
749 ac_ct_GCJ
750 GCJ
751 CXXCPP
752 CPP
753 OTOOL64
754 OTOOL
755 LIPO
756 NMEDIT
757 DSYMUTIL
758 OBJDUMP
759 NM
760 ac_ct_DUMPBIN
761 DUMPBIN
762 FGREP
763 EGREP
764 GREP
765 SED
766 LIBTOOL
767 DIRLTDL
768 LIBLTDL
769 INCLTDL
770 host_exeext
771 GCJH
772 GCJ_FOR_ECJX
773 X_AWT_FALSE
774 X_AWT_TRUE
775 XLIB_AWT_FALSE
776 XLIB_AWT_TRUE
777 TOOLKIT
778 LIBGCJDEBUG
779 BUILD_SUBLIBS_FALSE
780 BUILD_SUBLIBS_TRUE
781 LIBGCJ_LD_SYMBOLIC_FUNCTIONS
782 LIBGCJ_LD_SYMBOLIC
783 LIBGCJ_SUBLIB_CORE_EXTRA_DEPS
784 LIBGCJ_SUBLIB_LTFLAGS
785 LIBGCJ_JAVAFLAGS
786 LIBGCJ_CXXFLAGS
787 LIBGCJ_CFLAGS
788 MAINT
789 MAINTAINER_MODE_FALSE
790 MAINTAINER_MODE_TRUE
791 UNZIP
792 ZIP
793 JAR
794 DLLTOOL
795 RANLIB
796 AR
797 LD
798 AS
799 am__fastdepCXX_FALSE
800 am__fastdepCXX_TRUE
801 CXXDEPMODE
802 am__fastdepCC_FALSE
803 am__fastdepCC_TRUE
804 CCDEPMODE
805 AMDEPBACKSLASH
806 AMDEP_FALSE
807 AMDEP_TRUE
808 am__quote
809 am__include
810 DEPDIR
811 am__untar
812 am__tar
813 AMTAR
814 am__leading_dot
815 SET_MAKE
816 AWK
817 mkdir_p
818 MKDIR_P
819 INSTALL_STRIP_PROGRAM
820 STRIP
821 install_sh
822 MAKEINFO
823 AUTOHEADER
824 AUTOMAKE
825 AUTOCONF
826 ACLOCAL
827 VERSION
828 PACKAGE
829 CYGPATH_W
830 am__isrc
831 INSTALL_DATA
832 INSTALL_SCRIPT
833 INSTALL_PROGRAM
834 ac_ct_CXX
835 CXXFLAGS
836 CXX
837 OBJEXT
838 EXEEXT
839 ac_ct_CC
840 CPPFLAGS
841 LDFLAGS
842 CFLAGS
843 CC
844 JAVA_MAINTAINER_MODE_FALSE
845 JAVA_MAINTAINER_MODE_TRUE
846 CREATE_GJDOC_FALSE
847 CREATE_GJDOC_TRUE
848 ANTLR_JAR
849 mkinstalldirs
850 LN_S
851 target_noncanonical
852 target_os
853 target_vendor
854 target_cpu
855 target
856 host_os
857 host_vendor
858 host_cpu
859 host
860 multi_basedir
861 target_subdir
862 host_subdir
863 build_subdir
864 build_libsubdir
865 build_os
866 build_vendor
867 build_cpu
868 build
869 target_alias
870 host_alias
871 build_alias
872 LIBS
873 ECHO_T
874 ECHO_N
875 ECHO_C
876 DEFS
877 mandir
878 localedir
879 libdir
880 psdir
881 pdfdir
882 dvidir
883 htmldir
884 infodir
885 docdir
886 oldincludedir
887 includedir
888 localstatedir
889 sharedstatedir
890 sysconfdir
891 datadir
892 datarootdir
893 libexecdir
894 sbindir
895 bindir
896 program_transform_name
897 prefix
898 exec_prefix
899 PACKAGE_URL
900 PACKAGE_BUGREPORT
901 PACKAGE_STRING
902 PACKAGE_VERSION
903 PACKAGE_TARNAME
904 PACKAGE_NAME
905 PATH_SEPARATOR
906 SHELL'
907 ac_subst_files=''
908 ac_user_opts='
909 enable_option_checking
910 with_build_libsubdir
911 with_target_subdir
912 enable_multilib
913 with_cross_host
914 with_newlib
915 enable_version_specific_runtime_libs
916 enable_browser_plugin
917 enable_gconf_peer
918 with_antlr_jar
919 enable_gjdoc
920 enable_java_maintainer_mode
921 enable_dependency_tracking
922 enable_maintainer_mode
923 enable_libgcj_sublibs
924 enable_libgcj_debug
925 with_escher
926 enable_java_awt
927 enable_shared
928 enable_static
929 with_pic
930 enable_fast_install
931 with_gnu_ld
932 enable_libtool_lock
933 enable_getenv_properties
934 enable_hash_synchronization
935 with_ecj_jar
936 with_java_home
937 enable_libgcj_bc
938 enable_reduced_reflection
939 with_win32_nlsapi
940 enable_gc_debug
941 enable_interpreter
942 enable_sjlj_exceptions
943 enable_java_net
944 with_libffi
945 enable_jvmpi
946 with_ecos
947 with_system_zlib
948 with_x
949 enable_java_gc
950 enable_rpath
951 with_libiconv_prefix
952 enable_tls
953 with_system_libunwind
954 with_python_dir
955 enable_aot_compile_rpm
956 enable_java_home
957 with_gcc_suffix
958 with_arch_directory
959 with_os_directory
960 with_origin_name
961 with_arch_suffix
962 with_jvm_root_dir
963 with_jvm_jar_dir
964 '
965       ac_precious_vars='build_alias
966 host_alias
967 target_alias
968 CC
969 CFLAGS
970 LDFLAGS
971 LIBS
972 CPPFLAGS
973 CXX
974 CXXFLAGS
975 CCC
976 CPP
977 CXXCPP
978 XMKMF'
979 ac_subdirs_all='classpath libltdl'
980
981 # Initialize some variables set by options.
982 ac_init_help=
983 ac_init_version=false
984 ac_unrecognized_opts=
985 ac_unrecognized_sep=
986 # The variables have the same names as the options, with
987 # dashes changed to underlines.
988 cache_file=/dev/null
989 exec_prefix=NONE
990 no_create=
991 no_recursion=
992 prefix=NONE
993 program_prefix=NONE
994 program_suffix=NONE
995 program_transform_name=s,x,x,
996 silent=
997 site=
998 srcdir=
999 verbose=
1000 x_includes=NONE
1001 x_libraries=NONE
1002
1003 # Installation directory options.
1004 # These are left unexpanded so users can "make install exec_prefix=/foo"
1005 # and all the variables that are supposed to be based on exec_prefix
1006 # by default will actually change.
1007 # Use braces instead of parens because sh, perl, etc. also accept them.
1008 # (The list follows the same order as the GNU Coding Standards.)
1009 bindir='${exec_prefix}/bin'
1010 sbindir='${exec_prefix}/sbin'
1011 libexecdir='${exec_prefix}/libexec'
1012 datarootdir='${prefix}/share'
1013 datadir='${datarootdir}'
1014 sysconfdir='${prefix}/etc'
1015 sharedstatedir='${prefix}/com'
1016 localstatedir='${prefix}/var'
1017 includedir='${prefix}/include'
1018 oldincludedir='/usr/include'
1019 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1020 infodir='${datarootdir}/info'
1021 htmldir='${docdir}'
1022 dvidir='${docdir}'
1023 pdfdir='${docdir}'
1024 psdir='${docdir}'
1025 libdir='${exec_prefix}/lib'
1026 localedir='${datarootdir}/locale'
1027 mandir='${datarootdir}/man'
1028
1029 ac_prev=
1030 ac_dashdash=
1031 for ac_option
1032 do
1033   # If the previous option needs an argument, assign it.
1034   if test -n "$ac_prev"; then
1035     eval $ac_prev=\$ac_option
1036     ac_prev=
1037     continue
1038   fi
1039
1040   case $ac_option in
1041   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1042   *)    ac_optarg=yes ;;
1043   esac
1044
1045   # Accept the important Cygnus configure options, so we can diagnose typos.
1046
1047   case $ac_dashdash$ac_option in
1048   --)
1049     ac_dashdash=yes ;;
1050
1051   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1052     ac_prev=bindir ;;
1053   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1054     bindir=$ac_optarg ;;
1055
1056   -build | --build | --buil | --bui | --bu)
1057     ac_prev=build_alias ;;
1058   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1059     build_alias=$ac_optarg ;;
1060
1061   -cache-file | --cache-file | --cache-fil | --cache-fi \
1062   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1063     ac_prev=cache_file ;;
1064   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1065   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1066     cache_file=$ac_optarg ;;
1067
1068   --config-cache | -C)
1069     cache_file=config.cache ;;
1070
1071   -datadir | --datadir | --datadi | --datad)
1072     ac_prev=datadir ;;
1073   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1074     datadir=$ac_optarg ;;
1075
1076   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1077   | --dataroo | --dataro | --datar)
1078     ac_prev=datarootdir ;;
1079   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1080   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1081     datarootdir=$ac_optarg ;;
1082
1083   -disable-* | --disable-*)
1084     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1085     # Reject names that are not valid shell variable names.
1086     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1087       as_fn_error "invalid feature name: $ac_useropt"
1088     ac_useropt_orig=$ac_useropt
1089     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1090     case $ac_user_opts in
1091       *"
1092 "enable_$ac_useropt"
1093 "*) ;;
1094       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1095          ac_unrecognized_sep=', ';;
1096     esac
1097     eval enable_$ac_useropt=no ;;
1098
1099   -docdir | --docdir | --docdi | --doc | --do)
1100     ac_prev=docdir ;;
1101   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1102     docdir=$ac_optarg ;;
1103
1104   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1105     ac_prev=dvidir ;;
1106   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1107     dvidir=$ac_optarg ;;
1108
1109   -enable-* | --enable-*)
1110     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1111     # Reject names that are not valid shell variable names.
1112     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113       as_fn_error "invalid feature name: $ac_useropt"
1114     ac_useropt_orig=$ac_useropt
1115     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116     case $ac_user_opts in
1117       *"
1118 "enable_$ac_useropt"
1119 "*) ;;
1120       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1121          ac_unrecognized_sep=', ';;
1122     esac
1123     eval enable_$ac_useropt=\$ac_optarg ;;
1124
1125   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1126   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1127   | --exec | --exe | --ex)
1128     ac_prev=exec_prefix ;;
1129   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1130   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1131   | --exec=* | --exe=* | --ex=*)
1132     exec_prefix=$ac_optarg ;;
1133
1134   -gas | --gas | --ga | --g)
1135     # Obsolete; use --with-gas.
1136     with_gas=yes ;;
1137
1138   -help | --help | --hel | --he | -h)
1139     ac_init_help=long ;;
1140   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1141     ac_init_help=recursive ;;
1142   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1143     ac_init_help=short ;;
1144
1145   -host | --host | --hos | --ho)
1146     ac_prev=host_alias ;;
1147   -host=* | --host=* | --hos=* | --ho=*)
1148     host_alias=$ac_optarg ;;
1149
1150   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1151     ac_prev=htmldir ;;
1152   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1153   | --ht=*)
1154     htmldir=$ac_optarg ;;
1155
1156   -includedir | --includedir | --includedi | --included | --include \
1157   | --includ | --inclu | --incl | --inc)
1158     ac_prev=includedir ;;
1159   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1160   | --includ=* | --inclu=* | --incl=* | --inc=*)
1161     includedir=$ac_optarg ;;
1162
1163   -infodir | --infodir | --infodi | --infod | --info | --inf)
1164     ac_prev=infodir ;;
1165   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1166     infodir=$ac_optarg ;;
1167
1168   -libdir | --libdir | --libdi | --libd)
1169     ac_prev=libdir ;;
1170   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1171     libdir=$ac_optarg ;;
1172
1173   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1174   | --libexe | --libex | --libe)
1175     ac_prev=libexecdir ;;
1176   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1177   | --libexe=* | --libex=* | --libe=*)
1178     libexecdir=$ac_optarg ;;
1179
1180   -localedir | --localedir | --localedi | --localed | --locale)
1181     ac_prev=localedir ;;
1182   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1183     localedir=$ac_optarg ;;
1184
1185   -localstatedir | --localstatedir | --localstatedi | --localstated \
1186   | --localstate | --localstat | --localsta | --localst | --locals)
1187     ac_prev=localstatedir ;;
1188   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1189   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1190     localstatedir=$ac_optarg ;;
1191
1192   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1193     ac_prev=mandir ;;
1194   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1195     mandir=$ac_optarg ;;
1196
1197   -nfp | --nfp | --nf)
1198     # Obsolete; use --without-fp.
1199     with_fp=no ;;
1200
1201   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1202   | --no-cr | --no-c | -n)
1203     no_create=yes ;;
1204
1205   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1206   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1207     no_recursion=yes ;;
1208
1209   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1210   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1211   | --oldin | --oldi | --old | --ol | --o)
1212     ac_prev=oldincludedir ;;
1213   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1214   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1215   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1216     oldincludedir=$ac_optarg ;;
1217
1218   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1219     ac_prev=prefix ;;
1220   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1221     prefix=$ac_optarg ;;
1222
1223   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1224   | --program-pre | --program-pr | --program-p)
1225     ac_prev=program_prefix ;;
1226   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1227   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1228     program_prefix=$ac_optarg ;;
1229
1230   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1231   | --program-suf | --program-su | --program-s)
1232     ac_prev=program_suffix ;;
1233   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1234   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1235     program_suffix=$ac_optarg ;;
1236
1237   -program-transform-name | --program-transform-name \
1238   | --program-transform-nam | --program-transform-na \
1239   | --program-transform-n | --program-transform- \
1240   | --program-transform | --program-transfor \
1241   | --program-transfo | --program-transf \
1242   | --program-trans | --program-tran \
1243   | --progr-tra | --program-tr | --program-t)
1244     ac_prev=program_transform_name ;;
1245   -program-transform-name=* | --program-transform-name=* \
1246   | --program-transform-nam=* | --program-transform-na=* \
1247   | --program-transform-n=* | --program-transform-=* \
1248   | --program-transform=* | --program-transfor=* \
1249   | --program-transfo=* | --program-transf=* \
1250   | --program-trans=* | --program-tran=* \
1251   | --progr-tra=* | --program-tr=* | --program-t=*)
1252     program_transform_name=$ac_optarg ;;
1253
1254   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1255     ac_prev=pdfdir ;;
1256   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1257     pdfdir=$ac_optarg ;;
1258
1259   -psdir | --psdir | --psdi | --psd | --ps)
1260     ac_prev=psdir ;;
1261   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1262     psdir=$ac_optarg ;;
1263
1264   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1265   | -silent | --silent | --silen | --sile | --sil)
1266     silent=yes ;;
1267
1268   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1269     ac_prev=sbindir ;;
1270   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1271   | --sbi=* | --sb=*)
1272     sbindir=$ac_optarg ;;
1273
1274   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1275   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1276   | --sharedst | --shareds | --shared | --share | --shar \
1277   | --sha | --sh)
1278     ac_prev=sharedstatedir ;;
1279   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1280   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1281   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1282   | --sha=* | --sh=*)
1283     sharedstatedir=$ac_optarg ;;
1284
1285   -site | --site | --sit)
1286     ac_prev=site ;;
1287   -site=* | --site=* | --sit=*)
1288     site=$ac_optarg ;;
1289
1290   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1291     ac_prev=srcdir ;;
1292   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1293     srcdir=$ac_optarg ;;
1294
1295   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1296   | --syscon | --sysco | --sysc | --sys | --sy)
1297     ac_prev=sysconfdir ;;
1298   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1299   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1300     sysconfdir=$ac_optarg ;;
1301
1302   -target | --target | --targe | --targ | --tar | --ta | --t)
1303     ac_prev=target_alias ;;
1304   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1305     target_alias=$ac_optarg ;;
1306
1307   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1308     verbose=yes ;;
1309
1310   -version | --version | --versio | --versi | --vers | -V)
1311     ac_init_version=: ;;
1312
1313   -with-* | --with-*)
1314     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1315     # Reject names that are not valid shell variable names.
1316     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1317       as_fn_error "invalid package name: $ac_useropt"
1318     ac_useropt_orig=$ac_useropt
1319     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1320     case $ac_user_opts in
1321       *"
1322 "with_$ac_useropt"
1323 "*) ;;
1324       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1325          ac_unrecognized_sep=', ';;
1326     esac
1327     eval with_$ac_useropt=\$ac_optarg ;;
1328
1329   -without-* | --without-*)
1330     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1331     # Reject names that are not valid shell variable names.
1332     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1333       as_fn_error "invalid package name: $ac_useropt"
1334     ac_useropt_orig=$ac_useropt
1335     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1336     case $ac_user_opts in
1337       *"
1338 "with_$ac_useropt"
1339 "*) ;;
1340       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1341          ac_unrecognized_sep=', ';;
1342     esac
1343     eval with_$ac_useropt=no ;;
1344
1345   --x)
1346     # Obsolete; use --with-x.
1347     with_x=yes ;;
1348
1349   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1350   | --x-incl | --x-inc | --x-in | --x-i)
1351     ac_prev=x_includes ;;
1352   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1353   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1354     x_includes=$ac_optarg ;;
1355
1356   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1357   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1358     ac_prev=x_libraries ;;
1359   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1360   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1361     x_libraries=$ac_optarg ;;
1362
1363   -*) as_fn_error "unrecognized option: \`$ac_option'
1364 Try \`$0 --help' for more information."
1365     ;;
1366
1367   *=*)
1368     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1369     # Reject names that are not valid shell variable names.
1370     case $ac_envvar in #(
1371       '' | [0-9]* | *[!_$as_cr_alnum]* )
1372       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1373     esac
1374     eval $ac_envvar=\$ac_optarg
1375     export $ac_envvar ;;
1376
1377   *)
1378     # FIXME: should be removed in autoconf 3.0.
1379     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1380     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1381       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1382     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1383     ;;
1384
1385   esac
1386 done
1387
1388 if test -n "$ac_prev"; then
1389   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1390   as_fn_error "missing argument to $ac_option"
1391 fi
1392
1393 if test -n "$ac_unrecognized_opts"; then
1394   case $enable_option_checking in
1395     no) ;;
1396     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1397     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1398   esac
1399 fi
1400
1401 # Check all directory arguments for consistency.
1402 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1403                 datadir sysconfdir sharedstatedir localstatedir includedir \
1404                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1405                 libdir localedir mandir
1406 do
1407   eval ac_val=\$$ac_var
1408   # Remove trailing slashes.
1409   case $ac_val in
1410     */ )
1411       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1412       eval $ac_var=\$ac_val;;
1413   esac
1414   # Be sure to have absolute directory names.
1415   case $ac_val in
1416     [\\/$]* | ?:[\\/]* )  continue;;
1417     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1418   esac
1419   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1420 done
1421
1422 # There might be people who depend on the old broken behavior: `$host'
1423 # used to hold the argument of --host etc.
1424 # FIXME: To remove some day.
1425 build=$build_alias
1426 host=$host_alias
1427 target=$target_alias
1428
1429 # FIXME: To remove some day.
1430 if test "x$host_alias" != x; then
1431   if test "x$build_alias" = x; then
1432     cross_compiling=maybe
1433     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1434     If a cross compiler is detected then cross compile mode will be used." >&2
1435   elif test "x$build_alias" != "x$host_alias"; then
1436     cross_compiling=yes
1437   fi
1438 fi
1439
1440 ac_tool_prefix=
1441 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1442
1443 test "$silent" = yes && exec 6>/dev/null
1444
1445
1446 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1447 ac_ls_di=`ls -di .` &&
1448 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1449   as_fn_error "working directory cannot be determined"
1450 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1451   as_fn_error "pwd does not report name of working directory"
1452
1453
1454 # Find the source files, if location was not specified.
1455 if test -z "$srcdir"; then
1456   ac_srcdir_defaulted=yes
1457   # Try the directory containing this script, then the parent directory.
1458   ac_confdir=`$as_dirname -- "$as_myself" ||
1459 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1460          X"$as_myself" : 'X\(//\)[^/]' \| \
1461          X"$as_myself" : 'X\(//\)$' \| \
1462          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1463 $as_echo X"$as_myself" |
1464     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1465             s//\1/
1466             q
1467           }
1468           /^X\(\/\/\)[^/].*/{
1469             s//\1/
1470             q
1471           }
1472           /^X\(\/\/\)$/{
1473             s//\1/
1474             q
1475           }
1476           /^X\(\/\).*/{
1477             s//\1/
1478             q
1479           }
1480           s/.*/./; q'`
1481   srcdir=$ac_confdir
1482   if test ! -r "$srcdir/$ac_unique_file"; then
1483     srcdir=..
1484   fi
1485 else
1486   ac_srcdir_defaulted=no
1487 fi
1488 if test ! -r "$srcdir/$ac_unique_file"; then
1489   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1490   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1491 fi
1492 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1493 ac_abs_confdir=`(
1494         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1495         pwd)`
1496 # When building in place, set srcdir=.
1497 if test "$ac_abs_confdir" = "$ac_pwd"; then
1498   srcdir=.
1499 fi
1500 # Remove unnecessary trailing slashes from srcdir.
1501 # Double slashes in file names in object file debugging info
1502 # mess up M-x gdb in Emacs.
1503 case $srcdir in
1504 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1505 esac
1506 for ac_var in $ac_precious_vars; do
1507   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1508   eval ac_env_${ac_var}_value=\$${ac_var}
1509   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1510   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1511 done
1512
1513 #
1514 # Report the --help message.
1515 #
1516 if test "$ac_init_help" = "long"; then
1517   # Omit some internal or obsolete options to make the list less imposing.
1518   # This message is too long to be a string in the A/UX 3.1 sh.
1519   cat <<_ACEOF
1520 \`configure' configures libjava version-unused to adapt to many kinds of systems.
1521
1522 Usage: $0 [OPTION]... [VAR=VALUE]...
1523
1524 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1525 VAR=VALUE.  See below for descriptions of some of the useful variables.
1526
1527 Defaults for the options are specified in brackets.
1528
1529 Configuration:
1530   -h, --help              display this help and exit
1531       --help=short        display options specific to this package
1532       --help=recursive    display the short help of all the included packages
1533   -V, --version           display version information and exit
1534   -q, --quiet, --silent   do not print \`checking...' messages
1535       --cache-file=FILE   cache test results in FILE [disabled]
1536   -C, --config-cache      alias for \`--cache-file=config.cache'
1537   -n, --no-create         do not create output files
1538       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1539
1540 Installation directories:
1541   --prefix=PREFIX         install architecture-independent files in PREFIX
1542                           [$ac_default_prefix]
1543   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1544                           [PREFIX]
1545
1546 By default, \`make install' will install all the files in
1547 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1548 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1549 for instance \`--prefix=\$HOME'.
1550
1551 For better control, use the options below.
1552
1553 Fine tuning of the installation directories:
1554   --bindir=DIR            user executables [EPREFIX/bin]
1555   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1556   --libexecdir=DIR        program executables [EPREFIX/libexec]
1557   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1558   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1559   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1560   --libdir=DIR            object code libraries [EPREFIX/lib]
1561   --includedir=DIR        C header files [PREFIX/include]
1562   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1563   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1564   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1565   --infodir=DIR           info documentation [DATAROOTDIR/info]
1566   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1567   --mandir=DIR            man documentation [DATAROOTDIR/man]
1568   --docdir=DIR            documentation root [DATAROOTDIR/doc/libjava]
1569   --htmldir=DIR           html documentation [DOCDIR]
1570   --dvidir=DIR            dvi documentation [DOCDIR]
1571   --pdfdir=DIR            pdf documentation [DOCDIR]
1572   --psdir=DIR             ps documentation [DOCDIR]
1573 _ACEOF
1574
1575   cat <<\_ACEOF
1576
1577 Program names:
1578   --program-prefix=PREFIX            prepend PREFIX to installed program names
1579   --program-suffix=SUFFIX            append SUFFIX to installed program names
1580   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1581
1582 X features:
1583   --x-includes=DIR    X include files are in DIR
1584   --x-libraries=DIR   X library files are in DIR
1585
1586 System types:
1587   --build=BUILD     configure for building on BUILD [guessed]
1588   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1589   --target=TARGET   configure for building compilers for TARGET [HOST]
1590 _ACEOF
1591 fi
1592
1593 if test -n "$ac_init_help"; then
1594   case $ac_init_help in
1595      short | recursive ) echo "Configuration of libjava version-unused:";;
1596    esac
1597   cat <<\_ACEOF
1598
1599 Optional Features:
1600   --disable-option-checking  ignore unrecognized --enable/--with options
1601   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1602   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1603   --enable-multilib       build many library versions (default)
1604   --enable-version-specific-runtime-libs
1605                           specify that runtime libraries should be installed
1606                           in a compiler-specific directory
1607   --enable-browser-plugin build gcjwebplugin web browser plugin
1608   --enable-gconf-peer     compile GConf native peers for util.preferences
1609   --disable-gjdoc         compile GJDoc (disabled by --disable-gjdoc)
1610                           default=yes
1611   --enable-java-maintainer-mode
1612                           allow rebuilding of .class and .h files
1613   --disable-dependency-tracking  speeds up one-time build
1614   --enable-dependency-tracking   do not reject slow dependency extractors
1615   --enable-maintainer-mode  enable make rules and dependencies not useful
1616                           (and sometimes confusing) to the casual installer
1617   --enable-libgcj-sublibs build libgcj as many sub-libraries
1618   --enable-libgcj-debug   enable runtime debugging code
1619   --enable-java-awt       list of AWT peer implementations to be built
1620   --enable-shared[=PKGS]  build shared libraries [default=yes]
1621   --enable-static[=PKGS]  build static libraries [default=yes]
1622   --enable-fast-install[=PKGS]
1623                           optimize for fast installation [default=yes]
1624   --disable-libtool-lock  avoid locking (might break parallel builds)
1625   --disable-getenv-properties
1626                           don't set system properties from GCJ_PROPERTIES
1627   --enable-hash-synchronization
1628                           use global hash table for monitor locks
1629   --enable-libgcj-bc      enable(default) or disable BC ABI for portions of
1630                           libgcj
1631   --enable-reduced-reflection
1632                           enable or disable(default) -freduced-reflection when
1633                           building portions of libgcj
1634   --enable-gc-debug       include full support for pointer backtracing etc.
1635   --enable-interpreter    enable interpreter
1636   --enable-sjlj-exceptions
1637                           force use of builtin_setjmp for exceptions
1638   --disable-java-net      disable java.net
1639   --disable-jvmpi         disable JVMPI support
1640   --enable-java-gc=TYPE   choose garbage collector (default is boehm)
1641   --disable-rpath         do not hardcode runtime library paths
1642   --enable-tls            Use thread-local storage [default=yes]
1643   --enable-aot-compile-rpm
1644                           enable installation of aot-compile-rpm [default=no]
1645   --enable-java-home      create a standard JDK-style directory layout in the
1646                           install tree [default=no]
1647
1648 Optional Packages:
1649   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1650   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1651   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1652   --with-target-subdir=SUBDIR
1653                           configure in a subdirectory
1654   --with-cross-host=HOST  configure with a cross compiler from HOST
1655   --with-newlib           configure with newlib
1656   --with-antlr-jar=file   Use ANTLR from the specified jar file
1657   --with-escher=ABS.PATH  specify path to escher dir or JAR for X peers
1658   --with-pic              try to use only PIC/non-PIC objects [default=use
1659                           both]
1660   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1661   --with-ecj-jar=FILE     use preinstalled ecj jar
1662   --with-java-home=DIRECTORY
1663                           value of java.home system property
1664   --with-win32-nlsapi=ansi or unicows or unicode
1665                           native MinGW libgcj Win32 OS API (default is ansi)
1666   --without-libffi        don't use libffi
1667   --with-ecos             enable runtime eCos target support
1668   --with-system-zlib      use installed libz
1669   --with-x                use the X Window System
1670   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1671   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1672   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1673   --with-system-libunwind use installed libunwind
1674   --with-python-dir       the location to install Python modules. This path
1675                           should NOT include the prefix.
1676   --with-gcc-suffix       the GCC tool suffix (defaults to empty string)
1677   --with-arch-directory   the arch directory under jre/lib (defaults to
1678                           auto-detect)
1679   --with-os-directory     the os directory under include (defaults to
1680                           auto-detect)
1681   --with-origin-name      the JPackage origin name of this package (default is
1682                           gcj${gcc_suffix}
1683   --with-arch-suffix      the arch directory suffix (default is the empty
1684                           string
1685   --with-jvm-root-dir     where to install SDK (default is ${prefix}/lib/jvm)
1686   --with-jvm-jar-dir      where to install jars (default is
1687                           ${prefix}/lib/jvm-exports)
1688
1689 Some influential environment variables:
1690   CC          C compiler command
1691   CFLAGS      C compiler flags
1692   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1693               nonstandard directory <lib dir>
1694   LIBS        libraries to pass to the linker, e.g. -l<library>
1695   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1696               you have headers in a nonstandard directory <include dir>
1697   CXX         C++ compiler command
1698   CXXFLAGS    C++ compiler flags
1699   CPP         C preprocessor
1700   CXXCPP      C++ preprocessor
1701   XMKMF       Path to xmkmf, Makefile generator for X Window System
1702
1703 Use these variables to override the choices made by `configure' or to help
1704 it to find libraries and programs with nonstandard names/locations.
1705
1706 Report bugs to the package provider.
1707 _ACEOF
1708 ac_status=$?
1709 fi
1710
1711 if test "$ac_init_help" = "recursive"; then
1712   # If there are subdirs, report their specific --help.
1713   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1714     test -d "$ac_dir" ||
1715       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1716       continue
1717     ac_builddir=.
1718
1719 case "$ac_dir" in
1720 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1721 *)
1722   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1723   # A ".." for each directory in $ac_dir_suffix.
1724   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1725   case $ac_top_builddir_sub in
1726   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1727   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1728   esac ;;
1729 esac
1730 ac_abs_top_builddir=$ac_pwd
1731 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1732 # for backward compatibility:
1733 ac_top_builddir=$ac_top_build_prefix
1734
1735 case $srcdir in
1736   .)  # We are building in place.
1737     ac_srcdir=.
1738     ac_top_srcdir=$ac_top_builddir_sub
1739     ac_abs_top_srcdir=$ac_pwd ;;
1740   [\\/]* | ?:[\\/]* )  # Absolute name.
1741     ac_srcdir=$srcdir$ac_dir_suffix;
1742     ac_top_srcdir=$srcdir
1743     ac_abs_top_srcdir=$srcdir ;;
1744   *) # Relative name.
1745     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1746     ac_top_srcdir=$ac_top_build_prefix$srcdir
1747     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1748 esac
1749 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1750
1751     cd "$ac_dir" || { ac_status=$?; continue; }
1752     # Check for guested configure.
1753     if test -f "$ac_srcdir/configure.gnu"; then
1754       echo &&
1755       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1756     elif test -f "$ac_srcdir/configure"; then
1757       echo &&
1758       $SHELL "$ac_srcdir/configure" --help=recursive
1759     else
1760       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1761     fi || ac_status=$?
1762     cd "$ac_pwd" || { ac_status=$?; break; }
1763   done
1764 fi
1765
1766 test -n "$ac_init_help" && exit $ac_status
1767 if $ac_init_version; then
1768   cat <<\_ACEOF
1769 libjava configure version-unused
1770 generated by GNU Autoconf 2.64
1771
1772 Copyright (C) 2009 Free Software Foundation, Inc.
1773 This configure script is free software; the Free Software Foundation
1774 gives unlimited permission to copy, distribute and modify it.
1775 _ACEOF
1776   exit
1777 fi
1778
1779 ## ------------------------ ##
1780 ## Autoconf initialization. ##
1781 ## ------------------------ ##
1782
1783 # ac_fn_c_try_compile LINENO
1784 # --------------------------
1785 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1786 ac_fn_c_try_compile ()
1787 {
1788   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789   rm -f conftest.$ac_objext
1790   if { { ac_try="$ac_compile"
1791 case "(($ac_try" in
1792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793   *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797   (eval "$ac_compile") 2>conftest.err
1798   ac_status=$?
1799   if test -s conftest.err; then
1800     grep -v '^ *+' conftest.err >conftest.er1
1801     cat conftest.er1 >&5
1802     mv -f conftest.er1 conftest.err
1803   fi
1804   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805   test $ac_status = 0; } && {
1806          test -z "$ac_c_werror_flag" ||
1807          test ! -s conftest.err
1808        } && test -s conftest.$ac_objext; then :
1809   ac_retval=0
1810 else
1811   $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1813
1814         ac_retval=1
1815 fi
1816   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1817   return $ac_retval
1818
1819 } # ac_fn_c_try_compile
1820
1821 # ac_fn_cxx_try_compile LINENO
1822 # ----------------------------
1823 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1824 ac_fn_cxx_try_compile ()
1825 {
1826   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827   rm -f conftest.$ac_objext
1828   if { { ac_try="$ac_compile"
1829 case "(($ac_try" in
1830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831   *) ac_try_echo=$ac_try;;
1832 esac
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835   (eval "$ac_compile") 2>conftest.err
1836   ac_status=$?
1837   if test -s conftest.err; then
1838     grep -v '^ *+' conftest.err >conftest.er1
1839     cat conftest.er1 >&5
1840     mv -f conftest.er1 conftest.err
1841   fi
1842   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843   test $ac_status = 0; } && {
1844          test -z "$ac_cxx_werror_flag" ||
1845          test ! -s conftest.err
1846        } && test -s conftest.$ac_objext; then :
1847   ac_retval=0
1848 else
1849   $as_echo "$as_me: failed program was:" >&5
1850 sed 's/^/| /' conftest.$ac_ext >&5
1851
1852         ac_retval=1
1853 fi
1854   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1855   return $ac_retval
1856
1857 } # ac_fn_cxx_try_compile
1858
1859 # ac_fn_c_try_link LINENO
1860 # -----------------------
1861 # Try to link conftest.$ac_ext, and return whether this succeeded.
1862 ac_fn_c_try_link ()
1863 {
1864   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865   rm -f conftest.$ac_objext conftest$ac_exeext
1866   if { { ac_try="$ac_link"
1867 case "(($ac_try" in
1868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869   *) ac_try_echo=$ac_try;;
1870 esac
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873   (eval "$ac_link") 2>conftest.err
1874   ac_status=$?
1875   if test -s conftest.err; then
1876     grep -v '^ *+' conftest.err >conftest.er1
1877     cat conftest.er1 >&5
1878     mv -f conftest.er1 conftest.err
1879   fi
1880   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881   test $ac_status = 0; } && {
1882          test -z "$ac_c_werror_flag" ||
1883          test ! -s conftest.err
1884        } && test -s conftest$ac_exeext && {
1885          test "$cross_compiling" = yes ||
1886          $as_test_x conftest$ac_exeext
1887        }; then :
1888   ac_retval=0
1889 else
1890   $as_echo "$as_me: failed program was:" >&5
1891 sed 's/^/| /' conftest.$ac_ext >&5
1892
1893         ac_retval=1
1894 fi
1895   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1896   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1897   # interfere with the next link command; also delete a directory that is
1898   # left behind by Apple's compiler.  We do this before executing the actions.
1899   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1900   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1901   return $ac_retval
1902
1903 } # ac_fn_c_try_link
1904
1905 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1906 # -------------------------------------------------------
1907 # Tests whether HEADER exists and can be compiled using the include files in
1908 # INCLUDES, setting the cache variable VAR accordingly.
1909 ac_fn_c_check_header_compile ()
1910 {
1911   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913 $as_echo_n "checking for $2... " >&6; }
1914 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1915   $as_echo_n "(cached) " >&6
1916 else
1917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h.  */
1919 $4
1920 #include <$2>
1921 _ACEOF
1922 if ac_fn_c_try_compile "$LINENO"; then :
1923   eval "$3=yes"
1924 else
1925   eval "$3=no"
1926 fi
1927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928 fi
1929 eval ac_res=\$$3
1930                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931 $as_echo "$ac_res" >&6; }
1932   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1933
1934 } # ac_fn_c_check_header_compile
1935
1936 # ac_fn_c_try_cpp LINENO
1937 # ----------------------
1938 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1939 ac_fn_c_try_cpp ()
1940 {
1941   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942   if { { ac_try="$ac_cpp conftest.$ac_ext"
1943 case "(($ac_try" in
1944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1945   *) ac_try_echo=$ac_try;;
1946 esac
1947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1948 $as_echo "$ac_try_echo"; } >&5
1949   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1950   ac_status=$?
1951   if test -s conftest.err; then
1952     grep -v '^ *+' conftest.err >conftest.er1
1953     cat conftest.er1 >&5
1954     mv -f conftest.er1 conftest.err
1955   fi
1956   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957   test $ac_status = 0; } >/dev/null && {
1958          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1959          test ! -s conftest.err
1960        }; then :
1961   ac_retval=0
1962 else
1963   $as_echo "$as_me: failed program was:" >&5
1964 sed 's/^/| /' conftest.$ac_ext >&5
1965
1966     ac_retval=1
1967 fi
1968   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1969   return $ac_retval
1970
1971 } # ac_fn_c_try_cpp
1972
1973 # ac_fn_c_try_run LINENO
1974 # ----------------------
1975 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1976 # that executables *can* be run.
1977 ac_fn_c_try_run ()
1978 {
1979   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980   if { { ac_try="$ac_link"
1981 case "(($ac_try" in
1982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1983   *) ac_try_echo=$ac_try;;
1984 esac
1985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986 $as_echo "$ac_try_echo"; } >&5
1987   (eval "$ac_link") 2>&5
1988   ac_status=$?
1989   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1991   { { case "(($ac_try" in
1992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1993   *) ac_try_echo=$ac_try;;
1994 esac
1995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996 $as_echo "$ac_try_echo"; } >&5
1997   (eval "$ac_try") 2>&5
1998   ac_status=$?
1999   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000   test $ac_status = 0; }; }; then :
2001   ac_retval=0
2002 else
2003   $as_echo "$as_me: program exited with status $ac_status" >&5
2004        $as_echo "$as_me: failed program was:" >&5
2005 sed 's/^/| /' conftest.$ac_ext >&5
2006
2007        ac_retval=$ac_status
2008 fi
2009   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2010   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2011   return $ac_retval
2012
2013 } # ac_fn_c_try_run
2014
2015 # ac_fn_c_check_func LINENO FUNC VAR
2016 # ----------------------------------
2017 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2018 ac_fn_c_check_func ()
2019 {
2020   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2024   $as_echo_n "(cached) " >&6
2025 else
2026   if test x$gcc_no_link = xyes; then
2027   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2028 fi
2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030 /* end confdefs.h.  */
2031 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2032    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2033 #define $2 innocuous_$2
2034
2035 /* System header to define __stub macros and hopefully few prototypes,
2036     which can conflict with char $2 (); below.
2037     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2038     <limits.h> exists even on freestanding compilers.  */
2039
2040 #ifdef __STDC__
2041 # include <limits.h>
2042 #else
2043 # include <assert.h>
2044 #endif
2045
2046 #undef $2
2047
2048 /* Override any GCC internal prototype to avoid an error.
2049    Use char because int might match the return type of a GCC
2050    builtin and then its argument prototype would still apply.  */
2051 #ifdef __cplusplus
2052 extern "C"
2053 #endif
2054 char $2 ();
2055 /* The GNU C library defines this for functions which it implements
2056     to always fail with ENOSYS.  Some functions are actually named
2057     something starting with __ and the normal name is an alias.  */
2058 #if defined __stub_$2 || defined __stub___$2
2059 choke me
2060 #endif
2061
2062 int
2063 main ()
2064 {
2065 return $2 ();
2066   ;
2067   return 0;
2068 }
2069 _ACEOF
2070 if ac_fn_c_try_link "$LINENO"; then :
2071   eval "$3=yes"
2072 else
2073   eval "$3=no"
2074 fi
2075 rm -f core conftest.err conftest.$ac_objext \
2076     conftest$ac_exeext conftest.$ac_ext
2077 fi
2078 eval ac_res=\$$3
2079                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2080 $as_echo "$ac_res" >&6; }
2081   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2082
2083 } # ac_fn_c_check_func
2084
2085 # ac_fn_cxx_try_cpp LINENO
2086 # ------------------------
2087 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2088 ac_fn_cxx_try_cpp ()
2089 {
2090   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091   if { { ac_try="$ac_cpp conftest.$ac_ext"
2092 case "(($ac_try" in
2093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2094   *) ac_try_echo=$ac_try;;
2095 esac
2096 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2097 $as_echo "$ac_try_echo"; } >&5
2098   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2099   ac_status=$?
2100   if test -s conftest.err; then
2101     grep -v '^ *+' conftest.err >conftest.er1
2102     cat conftest.er1 >&5
2103     mv -f conftest.er1 conftest.err
2104   fi
2105   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2106   test $ac_status = 0; } >/dev/null && {
2107          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2108          test ! -s conftest.err
2109        }; then :
2110   ac_retval=0
2111 else
2112   $as_echo "$as_me: failed program was:" >&5
2113 sed 's/^/| /' conftest.$ac_ext >&5
2114
2115     ac_retval=1
2116 fi
2117   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2118   return $ac_retval
2119
2120 } # ac_fn_cxx_try_cpp
2121
2122 # ac_fn_cxx_try_link LINENO
2123 # -------------------------
2124 # Try to link conftest.$ac_ext, and return whether this succeeded.
2125 ac_fn_cxx_try_link ()
2126 {
2127   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128   rm -f conftest.$ac_objext conftest$ac_exeext
2129   if { { ac_try="$ac_link"
2130 case "(($ac_try" in
2131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2132   *) ac_try_echo=$ac_try;;
2133 esac
2134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2135 $as_echo "$ac_try_echo"; } >&5
2136   (eval "$ac_link") 2>conftest.err
2137   ac_status=$?
2138   if test -s conftest.err; then
2139     grep -v '^ *+' conftest.err >conftest.er1
2140     cat conftest.er1 >&5
2141     mv -f conftest.er1 conftest.err
2142   fi
2143   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2144   test $ac_status = 0; } && {
2145          test -z "$ac_cxx_werror_flag" ||
2146          test ! -s conftest.err
2147        } && test -s conftest$ac_exeext && {
2148          test "$cross_compiling" = yes ||
2149          $as_test_x conftest$ac_exeext
2150        }; then :
2151   ac_retval=0
2152 else
2153   $as_echo "$as_me: failed program was:" >&5
2154 sed 's/^/| /' conftest.$ac_ext >&5
2155
2156         ac_retval=1
2157 fi
2158   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2159   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2160   # interfere with the next link command; also delete a directory that is
2161   # left behind by Apple's compiler.  We do this before executing the actions.
2162   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2163   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2164   return $ac_retval
2165
2166 } # ac_fn_cxx_try_link
2167
2168 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2169 # -------------------------------------------------------
2170 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2171 # the include files in INCLUDES and setting the cache variable VAR
2172 # accordingly.
2173 ac_fn_c_check_header_mongrel ()
2174 {
2175   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2176   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2177   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2178 $as_echo_n "checking for $2... " >&6; }
2179 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2180   $as_echo_n "(cached) " >&6
2181 fi
2182 eval ac_res=\$$3
2183                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2184 $as_echo "$ac_res" >&6; }
2185 else
2186   # Is the header compilable?
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2188 $as_echo_n "checking $2 usability... " >&6; }
2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h.  */
2191 $4
2192 #include <$2>
2193 _ACEOF
2194 if ac_fn_c_try_compile "$LINENO"; then :
2195   ac_header_compiler=yes
2196 else
2197   ac_header_compiler=no
2198 fi
2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2201 $as_echo "$ac_header_compiler" >&6; }
2202
2203 # Is the header present?
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2205 $as_echo_n "checking $2 presence... " >&6; }
2206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h.  */
2208 #include <$2>
2209 _ACEOF
2210 if ac_fn_c_try_cpp "$LINENO"; then :
2211   ac_header_preproc=yes
2212 else
2213   ac_header_preproc=no
2214 fi
2215 rm -f conftest.err conftest.$ac_ext
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2217 $as_echo "$ac_header_preproc" >&6; }
2218
2219 # So?  What about this header?
2220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2221   yes:no: )
2222     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2223 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2224     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2225 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2226     ;;
2227   no:yes:* )
2228     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2229 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2230     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2231 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2232     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2233 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2234     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2235 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2236     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2237 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2238     ;;
2239 esac
2240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2241 $as_echo_n "checking for $2... " >&6; }
2242 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2243   $as_echo_n "(cached) " >&6
2244 else
2245   eval "$3=\$ac_header_compiler"
2246 fi
2247 eval ac_res=\$$3
2248                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2249 $as_echo "$ac_res" >&6; }
2250 fi
2251   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2252
2253 } # ac_fn_c_check_header_mongrel
2254
2255 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2256 # ----------------------------------------------------
2257 # Tries to find if the field MEMBER exists in type AGGR, after including
2258 # INCLUDES, setting cache variable VAR accordingly.
2259 ac_fn_c_check_member ()
2260 {
2261   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2262   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2263 $as_echo_n "checking for $2.$3... " >&6; }
2264 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2265   $as_echo_n "(cached) " >&6
2266 else
2267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268 /* end confdefs.h.  */
2269 $5
2270 int
2271 main ()
2272 {
2273 static $2 ac_aggr;
2274 if (ac_aggr.$3)
2275 return 0;
2276   ;
2277   return 0;
2278 }
2279 _ACEOF
2280 if ac_fn_c_try_compile "$LINENO"; then :
2281   eval "$4=yes"
2282 else
2283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h.  */
2285 $5
2286 int
2287 main ()
2288 {
2289 static $2 ac_aggr;
2290 if (sizeof ac_aggr.$3)
2291 return 0;
2292   ;
2293   return 0;
2294 }
2295 _ACEOF
2296 if ac_fn_c_try_compile "$LINENO"; then :
2297   eval "$4=yes"
2298 else
2299   eval "$4=no"
2300 fi
2301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2302 fi
2303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304 fi
2305 eval ac_res=\$$4
2306                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2307 $as_echo "$ac_res" >&6; }
2308   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2309
2310 } # ac_fn_c_check_member
2311
2312 # ac_fn_c_check_decl LINENO SYMBOL VAR
2313 # ------------------------------------
2314 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2315 ac_fn_c_check_decl ()
2316 {
2317   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2318   as_decl_name=`echo $2|sed 's/ *(.*//'`
2319   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2320   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2321 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2322 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2323   $as_echo_n "(cached) " >&6
2324 else
2325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2326 /* end confdefs.h.  */
2327 $4
2328 int
2329 main ()
2330 {
2331 #ifndef $as_decl_name
2332 #ifdef __cplusplus
2333   (void) $as_decl_use;
2334 #else
2335   (void) $as_decl_name;
2336 #endif
2337 #endif
2338
2339   ;
2340   return 0;
2341 }
2342 _ACEOF
2343 if ac_fn_c_try_compile "$LINENO"; then :
2344   eval "$3=yes"
2345 else
2346   eval "$3=no"
2347 fi
2348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2349 fi
2350 eval ac_res=\$$3
2351                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2352 $as_echo "$ac_res" >&6; }
2353   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2354
2355 } # ac_fn_c_check_decl
2356
2357 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2358 # --------------------------------------------
2359 # Tries to find the compile-time value of EXPR in a program that includes
2360 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2361 # computed
2362 ac_fn_c_compute_int ()
2363 {
2364   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2365   if test "$cross_compiling" = yes; then
2366     # Depending upon the size, compute the lo and hi bounds.
2367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2368 /* end confdefs.h.  */
2369 $4
2370 int
2371 main ()
2372 {
2373 static int test_array [1 - 2 * !(($2) >= 0)];
2374 test_array [0] = 0
2375
2376   ;
2377   return 0;
2378 }
2379 _ACEOF
2380 if ac_fn_c_try_compile "$LINENO"; then :
2381   ac_lo=0 ac_mid=0
2382   while :; do
2383     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2384 /* end confdefs.h.  */
2385 $4
2386 int
2387 main ()
2388 {
2389 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2390 test_array [0] = 0
2391
2392   ;
2393   return 0;
2394 }
2395 _ACEOF
2396 if ac_fn_c_try_compile "$LINENO"; then :
2397   ac_hi=$ac_mid; break
2398 else
2399   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2400                         if test $ac_lo -le $ac_mid; then
2401                           ac_lo= ac_hi=
2402                           break
2403                         fi
2404                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2405 fi
2406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2407   done
2408 else
2409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2410 /* end confdefs.h.  */
2411 $4
2412 int
2413 main ()
2414 {
2415 static int test_array [1 - 2 * !(($2) < 0)];
2416 test_array [0] = 0
2417
2418   ;
2419   return 0;
2420 }
2421 _ACEOF
2422 if ac_fn_c_try_compile "$LINENO"; then :
2423   ac_hi=-1 ac_mid=-1
2424   while :; do
2425     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2426 /* end confdefs.h.  */
2427 $4
2428 int
2429 main ()
2430 {
2431 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2432 test_array [0] = 0
2433
2434   ;
2435   return 0;
2436 }
2437 _ACEOF
2438 if ac_fn_c_try_compile "$LINENO"; then :
2439   ac_lo=$ac_mid; break
2440 else
2441   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2442                         if test $ac_mid -le $ac_hi; then
2443                           ac_lo= ac_hi=
2444                           break
2445                         fi
2446                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2447 fi
2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449   done
2450 else
2451   ac_lo= ac_hi=
2452 fi
2453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2454 fi
2455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2456 # Binary search between lo and hi bounds.
2457 while test "x$ac_lo" != "x$ac_hi"; do
2458   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2460 /* end confdefs.h.  */
2461 $4
2462 int
2463 main ()
2464 {
2465 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2466 test_array [0] = 0
2467
2468   ;
2469   return 0;
2470 }
2471 _ACEOF
2472 if ac_fn_c_try_compile "$LINENO"; then :
2473   ac_hi=$ac_mid
2474 else
2475   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2476 fi
2477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2478 done
2479 case $ac_lo in #((
2480 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2481 '') ac_retval=1 ;;
2482 esac
2483   else
2484     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2485 /* end confdefs.h.  */
2486 $4
2487 static long int longval () { return $2; }
2488 static unsigned long int ulongval () { return $2; }
2489 #include <stdio.h>
2490 #include <stdlib.h>
2491 int
2492 main ()
2493 {
2494
2495   FILE *f = fopen ("conftest.val", "w");
2496   if (! f)
2497     return 1;
2498   if (($2) < 0)
2499     {
2500       long int i = longval ();
2501       if (i != ($2))
2502         return 1;
2503       fprintf (f, "%ld", i);
2504     }
2505   else
2506     {
2507       unsigned long int i = ulongval ();
2508       if (i != ($2))
2509         return 1;
2510       fprintf (f, "%lu", i);
2511     }
2512   /* Do not output a trailing newline, as this causes \r\n confusion
2513      on some platforms.  */
2514   return ferror (f) || fclose (f) != 0;
2515
2516   ;
2517   return 0;
2518 }
2519 _ACEOF
2520 if ac_fn_c_try_run "$LINENO"; then :
2521   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2522 else
2523   ac_retval=1
2524 fi
2525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2526   conftest.$ac_objext conftest.beam conftest.$ac_ext
2527 rm -f conftest.val
2528
2529   fi
2530   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2531   return $ac_retval
2532
2533 } # ac_fn_c_compute_int
2534
2535 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2536 # -------------------------------------------
2537 # Tests whether TYPE exists after having included INCLUDES, setting cache
2538 # variable VAR accordingly.
2539 ac_fn_c_check_type ()
2540 {
2541   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2542   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2543 $as_echo_n "checking for $2... " >&6; }
2544 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2545   $as_echo_n "(cached) " >&6
2546 else
2547   eval "$3=no"
2548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2549 /* end confdefs.h.  */
2550 $4
2551 int
2552 main ()
2553 {
2554 if (sizeof ($2))
2555          return 0;
2556   ;
2557   return 0;
2558 }
2559 _ACEOF
2560 if ac_fn_c_try_compile "$LINENO"; then :
2561   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2562 /* end confdefs.h.  */
2563 $4
2564 int
2565 main ()
2566 {
2567 if (sizeof (($2)))
2568             return 0;
2569   ;
2570   return 0;
2571 }
2572 _ACEOF
2573 if ac_fn_c_try_compile "$LINENO"; then :
2574
2575 else
2576   eval "$3=yes"
2577 fi
2578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2579 fi
2580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2581 fi
2582 eval ac_res=\$$3
2583                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2584 $as_echo "$ac_res" >&6; }
2585   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2586
2587 } # ac_fn_c_check_type
2588 cat >config.log <<_ACEOF
2589 This file contains any messages produced by compilers while
2590 running configure, to aid debugging if configure makes a mistake.
2591
2592 It was created by libjava $as_me version-unused, which was
2593 generated by GNU Autoconf 2.64.  Invocation command line was
2594
2595   $ $0 $@
2596
2597 _ACEOF
2598 exec 5>>config.log
2599 {
2600 cat <<_ASUNAME
2601 ## --------- ##
2602 ## Platform. ##
2603 ## --------- ##
2604
2605 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2606 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2607 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2608 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2609 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2610
2611 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2612 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2613
2614 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2615 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2616 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2617 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2618 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2619 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2620 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2621
2622 _ASUNAME
2623
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 for as_dir in $PATH
2626 do
2627   IFS=$as_save_IFS
2628   test -z "$as_dir" && as_dir=.
2629     $as_echo "PATH: $as_dir"
2630   done
2631 IFS=$as_save_IFS
2632
2633 } >&5
2634
2635 cat >&5 <<_ACEOF
2636
2637
2638 ## ----------- ##
2639 ## Core tests. ##
2640 ## ----------- ##
2641
2642 _ACEOF
2643
2644
2645 # Keep a trace of the command line.
2646 # Strip out --no-create and --no-recursion so they do not pile up.
2647 # Strip out --silent because we don't want to record it for future runs.
2648 # Also quote any args containing shell meta-characters.
2649 # Make two passes to allow for proper duplicate-argument suppression.
2650 ac_configure_args=
2651 ac_configure_args0=
2652 ac_configure_args1=
2653 ac_must_keep_next=false
2654 for ac_pass in 1 2
2655 do
2656   for ac_arg
2657   do
2658     case $ac_arg in
2659     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2660     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2661     | -silent | --silent | --silen | --sile | --sil)
2662       continue ;;
2663     *\'*)
2664       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2665     esac
2666     case $ac_pass in
2667     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2668     2)
2669       as_fn_append ac_configure_args1 " '$ac_arg'"
2670       if test $ac_must_keep_next = true; then
2671         ac_must_keep_next=false # Got value, back to normal.
2672       else
2673         case $ac_arg in
2674           *=* | --config-cache | -C | -disable-* | --disable-* \
2675           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2676           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2677           | -with-* | --with-* | -without-* | --without-* | --x)
2678             case "$ac_configure_args0 " in
2679               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2680             esac
2681             ;;
2682           -* ) ac_must_keep_next=true ;;
2683         esac
2684       fi
2685       as_fn_append ac_configure_args " '$ac_arg'"
2686       ;;
2687     esac
2688   done
2689 done
2690 { ac_configure_args0=; unset ac_configure_args0;}
2691 { ac_configure_args1=; unset ac_configure_args1;}
2692
2693 # When interrupted or exit'd, cleanup temporary files, and complete
2694 # config.log.  We remove comments because anyway the quotes in there
2695 # would cause problems or look ugly.
2696 # WARNING: Use '\'' to represent an apostrophe within the trap.
2697 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2698 trap 'exit_status=$?
2699   # Save into config.log some information that might help in debugging.
2700   {
2701     echo
2702
2703     cat <<\_ASBOX
2704 ## ---------------- ##
2705 ## Cache variables. ##
2706 ## ---------------- ##
2707 _ASBOX
2708     echo
2709     # The following way of writing the cache mishandles newlines in values,
2710 (
2711   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2712     eval ac_val=\$$ac_var
2713     case $ac_val in #(
2714     *${as_nl}*)
2715       case $ac_var in #(
2716       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2717 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2718       esac
2719       case $ac_var in #(
2720       _ | IFS | as_nl) ;; #(
2721       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2722       *) { eval $ac_var=; unset $ac_var;} ;;
2723       esac ;;
2724     esac
2725   done
2726   (set) 2>&1 |
2727     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2728     *${as_nl}ac_space=\ *)
2729       sed -n \
2730         "s/'\''/'\''\\\\'\'''\''/g;
2731           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2732       ;; #(
2733     *)
2734       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2735       ;;
2736     esac |
2737     sort
2738 )
2739     echo
2740
2741     cat <<\_ASBOX
2742 ## ----------------- ##
2743 ## Output variables. ##
2744 ## ----------------- ##
2745 _ASBOX
2746     echo
2747     for ac_var in $ac_subst_vars
2748     do
2749       eval ac_val=\$$ac_var
2750       case $ac_val in
2751       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2752       esac
2753       $as_echo "$ac_var='\''$ac_val'\''"
2754     done | sort
2755     echo
2756
2757     if test -n "$ac_subst_files"; then
2758       cat <<\_ASBOX
2759 ## ------------------- ##
2760 ## File substitutions. ##
2761 ## ------------------- ##
2762 _ASBOX
2763       echo
2764       for ac_var in $ac_subst_files
2765       do
2766         eval ac_val=\$$ac_var
2767         case $ac_val in
2768         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2769         esac
2770         $as_echo "$ac_var='\''$ac_val'\''"
2771       done | sort
2772       echo
2773     fi
2774
2775     if test -s confdefs.h; then
2776       cat <<\_ASBOX
2777 ## ----------- ##
2778 ## confdefs.h. ##
2779 ## ----------- ##
2780 _ASBOX
2781       echo
2782       cat confdefs.h
2783       echo
2784     fi
2785     test "$ac_signal" != 0 &&
2786       $as_echo "$as_me: caught signal $ac_signal"
2787     $as_echo "$as_me: exit $exit_status"
2788   } >&5
2789   rm -f core *.core core.conftest.* &&
2790     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2791     exit $exit_status
2792 ' 0
2793 for ac_signal in 1 2 13 15; do
2794   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2795 done
2796 ac_signal=0
2797
2798 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2799 rm -f -r conftest* confdefs.h
2800
2801 $as_echo "/* confdefs.h */" > confdefs.h
2802
2803 # Predefined preprocessor variables.
2804
2805 cat >>confdefs.h <<_ACEOF
2806 #define PACKAGE_NAME "$PACKAGE_NAME"
2807 _ACEOF
2808
2809 cat >>confdefs.h <<_ACEOF
2810 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2811 _ACEOF
2812
2813 cat >>confdefs.h <<_ACEOF
2814 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2815 _ACEOF
2816
2817 cat >>confdefs.h <<_ACEOF
2818 #define PACKAGE_STRING "$PACKAGE_STRING"
2819 _ACEOF
2820
2821 cat >>confdefs.h <<_ACEOF
2822 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2823 _ACEOF
2824
2825 cat >>confdefs.h <<_ACEOF
2826 #define PACKAGE_URL "$PACKAGE_URL"
2827 _ACEOF
2828
2829
2830 # Let the site file select an alternate cache file if it wants to.
2831 # Prefer an explicitly selected file to automatically selected ones.
2832 ac_site_file1=NONE
2833 ac_site_file2=NONE
2834 if test -n "$CONFIG_SITE"; then
2835   ac_site_file1=$CONFIG_SITE
2836 elif test "x$prefix" != xNONE; then
2837   ac_site_file1=$prefix/share/config.site
2838   ac_site_file2=$prefix/etc/config.site
2839 else
2840   ac_site_file1=$ac_default_prefix/share/config.site
2841   ac_site_file2=$ac_default_prefix/etc/config.site
2842 fi
2843 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2844 do
2845   test "x$ac_site_file" = xNONE && continue
2846   if test -r "$ac_site_file"; then
2847     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2848 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2849     sed 's/^/| /' "$ac_site_file" >&5
2850     . "$ac_site_file"
2851   fi
2852 done
2853
2854 if test -r "$cache_file"; then
2855   # Some versions of bash will fail to source /dev/null (special
2856   # files actually), so we avoid doing that.
2857   if test -f "$cache_file"; then
2858     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2859 $as_echo "$as_me: loading cache $cache_file" >&6;}
2860     case $cache_file in
2861       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2862       *)                      . "./$cache_file";;
2863     esac
2864   fi
2865 else
2866   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2867 $as_echo "$as_me: creating cache $cache_file" >&6;}
2868   >$cache_file
2869 fi
2870
2871 # Check that the precious variables saved in the cache have kept the same
2872 # value.
2873 ac_cache_corrupted=false
2874 for ac_var in $ac_precious_vars; do
2875   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2876   eval ac_new_set=\$ac_env_${ac_var}_set
2877   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2878   eval ac_new_val=\$ac_env_${ac_var}_value
2879   case $ac_old_set,$ac_new_set in
2880     set,)
2881       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2882 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2883       ac_cache_corrupted=: ;;
2884     ,set)
2885       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2886 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2887       ac_cache_corrupted=: ;;
2888     ,);;
2889     *)
2890       if test "x$ac_old_val" != "x$ac_new_val"; then
2891         # differences in whitespace do not lead to failure.
2892         ac_old_val_w=`echo x $ac_old_val`
2893         ac_new_val_w=`echo x $ac_new_val`
2894         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2895           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2896 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2897           ac_cache_corrupted=:
2898         else
2899           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2900 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2901           eval $ac_var=\$ac_old_val
2902         fi
2903         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2904 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2905         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2906 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2907       fi;;
2908   esac
2909   # Pass precious variables to config.status.
2910   if test "$ac_new_set" = set; then
2911     case $ac_new_val in
2912     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2913     *) ac_arg=$ac_var=$ac_new_val ;;
2914     esac
2915     case " $ac_configure_args " in
2916       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2917       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2918     esac
2919   fi
2920 done
2921 if $ac_cache_corrupted; then
2922   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2924   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2925 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2926   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2927 fi
2928 ## -------------------- ##
2929 ## Main body of script. ##
2930 ## -------------------- ##
2931
2932 ac_ext=c
2933 ac_cpp='$CPP $CPPFLAGS'
2934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2937
2938
2939
2940
2941
2942
2943
2944
2945 ac_aux_dir=
2946 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2947   for ac_t in install-sh install.sh shtool; do
2948     if test -f "$ac_dir/$ac_t"; then
2949       ac_aux_dir=$ac_dir
2950       ac_install_sh="$ac_aux_dir/$ac_t -c"
2951       break 2
2952     fi
2953   done
2954 done
2955 if test -z "$ac_aux_dir"; then
2956   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2957 fi
2958
2959 # These three variables are undocumented and unsupported,
2960 # and are intended to be withdrawn in a future Autoconf release.
2961 # They can cause serious problems if a builder's source tree is in a directory
2962 # whose full name contains unusual characters.
2963 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2964 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2965 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2966
2967
2968 # Make sure we can run config.sub.
2969 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2970   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2971
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2973 $as_echo_n "checking build system type... " >&6; }
2974 if test "${ac_cv_build+set}" = set; then :
2975   $as_echo_n "(cached) " >&6
2976 else
2977   ac_build_alias=$build_alias
2978 test "x$ac_build_alias" = x &&
2979   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2980 test "x$ac_build_alias" = x &&
2981   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2982 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2983   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2984
2985 fi
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2987 $as_echo "$ac_cv_build" >&6; }
2988 case $ac_cv_build in
2989 *-*-*) ;;
2990 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2991 esac
2992 build=$ac_cv_build
2993 ac_save_IFS=$IFS; IFS='-'
2994 set x $ac_cv_build
2995 shift
2996 build_cpu=$1
2997 build_vendor=$2
2998 shift; shift
2999 # Remember, the first character of IFS is used to create $*,
3000 # except with old shells:
3001 build_os=$*
3002 IFS=$ac_save_IFS
3003 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3004
3005
3006  case ${build_alias} in
3007   "") build_noncanonical=${build} ;;
3008   *) build_noncanonical=${build_alias} ;;
3009 esac
3010
3011  case ${host_alias} in
3012   "") host_noncanonical=${build_noncanonical} ;;
3013   *) host_noncanonical=${host_alias} ;;
3014 esac
3015
3016  case ${target_alias} in
3017   "") target_noncanonical=${host_noncanonical} ;;
3018   *) target_noncanonical=${target_alias} ;;
3019 esac
3020
3021
3022 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3023 # have matching libraries, they should use host libraries: Makefile.tpl
3024 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3025 # However, they still use the build modules, because the corresponding
3026 # host modules (e.g. bison) are only built for the host when bootstrap
3027 # finishes. So:
3028 # - build_subdir is where we find build modules, and never changes.
3029 # - build_libsubdir is where we find build libraries, and can be overridden.
3030
3031 # Prefix 'build-' so this never conflicts with target_subdir.
3032 build_subdir="build-${build_noncanonical}"
3033
3034 # Check whether --with-build-libsubdir was given.
3035 if test "${with_build_libsubdir+set}" = set; then :
3036   withval=$with_build_libsubdir; build_libsubdir="$withval"
3037 else
3038   build_libsubdir="$build_subdir"
3039 fi
3040
3041 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3042 if ( test $srcdir = . && test -d gcc ) \
3043    || test -d $srcdir/../host-${host_noncanonical}; then
3044   host_subdir="host-${host_noncanonical}"
3045 else
3046   host_subdir=.
3047 fi
3048 # No prefix.
3049 target_subdir=${target_noncanonical}
3050
3051
3052 # We use these options to decide which functions to include.
3053
3054 # Check whether --with-target-subdir was given.
3055 if test "${with_target_subdir+set}" = set; then :
3056   withval=$with_target_subdir;
3057 fi
3058
3059
3060 # We may get other options which we don't document:
3061 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3062
3063 # Find the rest of the source tree framework.
3064 # Default to --enable-multilib
3065 # Check whether --enable-multilib was given.
3066 if test "${enable_multilib+set}" = set; then :
3067   enableval=$enable_multilib; case "$enableval" in
3068   yes) multilib=yes ;;
3069   no)  multilib=no ;;
3070   *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3071  esac
3072 else
3073   multilib=yes
3074 fi
3075
3076
3077 # We may get other options which we leave undocumented:
3078 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3079 # See config-ml.in if you want the gory details.
3080
3081 if test "$srcdir" = "."; then
3082   if test "$with_target_subdir" != "."; then
3083     multi_basedir="$srcdir/$with_multisrctop../.."
3084   else
3085     multi_basedir="$srcdir/$with_multisrctop.."
3086   fi
3087 else
3088   multi_basedir="$srcdir/.."
3089 fi
3090
3091
3092 # Even if the default multilib is not a cross compilation,
3093 # it may be that some of the other multilibs are.
3094 if test $cross_compiling = no && test $multilib = yes \
3095    && test "x${with_multisubdir}" != x ; then
3096    cross_compiling=maybe
3097 fi
3098
3099 ac_config_commands="$ac_config_commands default-1"
3100
3101
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3103 $as_echo_n "checking host system type... " >&6; }
3104 if test "${ac_cv_host+set}" = set; then :
3105   $as_echo_n "(cached) " >&6
3106 else
3107   if test "x$host_alias" = x; then
3108   ac_cv_host=$ac_cv_build
3109 else
3110   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3111     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3112 fi
3113
3114 fi
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3116 $as_echo "$ac_cv_host" >&6; }
3117 case $ac_cv_host in
3118 *-*-*) ;;
3119 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3120 esac
3121 host=$ac_cv_host
3122 ac_save_IFS=$IFS; IFS='-'
3123 set x $ac_cv_host
3124 shift
3125 host_cpu=$1
3126 host_vendor=$2
3127 shift; shift
3128 # Remember, the first character of IFS is used to create $*,
3129 # except with old shells:
3130 host_os=$*
3131 IFS=$ac_save_IFS
3132 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3133
3134
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3136 $as_echo_n "checking target system type... " >&6; }
3137 if test "${ac_cv_target+set}" = set; then :
3138   $as_echo_n "(cached) " >&6
3139 else
3140   if test "x$target_alias" = x; then
3141   ac_cv_target=$ac_cv_host
3142 else
3143   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3144     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3145 fi
3146
3147 fi
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3149 $as_echo "$ac_cv_target" >&6; }
3150 case $ac_cv_target in
3151 *-*-*) ;;
3152 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3153 esac
3154 target=$ac_cv_target
3155 ac_save_IFS=$IFS; IFS='-'
3156 set x $ac_cv_target
3157 shift
3158 target_cpu=$1
3159 target_vendor=$2
3160 shift; shift
3161 # Remember, the first character of IFS is used to create $*,
3162 # except with old shells:
3163 target_os=$*
3164 IFS=$ac_save_IFS
3165 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3166
3167
3168 # The aliases save the names the user supplied, while $host etc.
3169 # will get canonicalized.
3170 test -n "$target_alias" &&
3171   test "$program_prefix$program_suffix$program_transform_name" = \
3172     NONENONEs,x,x, &&
3173   program_prefix=${target_alias}-
3174
3175  case ${build_alias} in
3176   "") build_noncanonical=${build} ;;
3177   *) build_noncanonical=${build_alias} ;;
3178 esac
3179
3180  case ${target_alias} in
3181   "") target_noncanonical=${host_noncanonical} ;;
3182   *) target_noncanonical=${target_alias} ;;
3183 esac
3184
3185
3186
3187
3188 # This works around the fact that libtool configuration may change LD
3189 # for this particular configuration, but some shells, instead of
3190 # keeping the changes in LD private, export them just because LD is
3191 # exported.
3192 ORIGINAL_LD_FOR_MULTILIBS=$LD
3193
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3195 $as_echo_n "checking whether ln -s works... " >&6; }
3196 LN_S=$as_ln_s
3197 if test "$LN_S" = "ln -s"; then
3198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3199 $as_echo "yes" >&6; }
3200 else
3201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3202 $as_echo "no, using $LN_S" >&6; }
3203 fi
3204
3205
3206 # This works around an automake problem.
3207 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
3208
3209
3210
3211 # Check whether --with-cross-host was given.
3212 if test "${with_cross_host+set}" = set; then :
3213   withval=$with_cross_host;
3214 fi
3215
3216
3217
3218 # Check whether --with-newlib was given.
3219 if test "${with_newlib+set}" = set; then :
3220   withval=$with_newlib;
3221 fi
3222
3223
3224 # Check whether --enable-version-specific-runtime-libs was given.
3225 if test "${enable_version_specific_runtime_libs+set}" = set; then :
3226   enableval=$enable_version_specific_runtime_libs; case "$enableval" in
3227       yes) version_specific_libs=yes ;;
3228       no)  version_specific_libs=no ;;
3229       *)   as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3230      esac
3231 else
3232   version_specific_libs=no
3233
3234 fi
3235
3236
3237 # Check whether --enable-browser-plugin was given.
3238 if test "${enable_browser_plugin+set}" = set; then :
3239   enableval=$enable_browser_plugin; case "$enableval" in
3240       yes) browser_plugin_enabled=yes ;;
3241       no)  browser_plugin_enabled=no ;;
3242       *)   as_fn_error "Unknown argument to enable/disable browser plugin" "$LINENO" 5;;
3243      esac
3244 else
3245   browser_plugin_enabled=no
3246
3247 fi
3248
3249
3250 # Check whether --enable-gconf-peer was given.
3251 if test "${enable_gconf_peer+set}" = set; then :
3252   enableval=$enable_gconf_peer; case "$enableval" in
3253       yes) gconf_enabled=yes ;;
3254       no)  gconf_enabled=no ;;
3255       *)   as_fn_error "Unknown argument to enable/disable gconf-peer" "$LINENO" 5;;
3256      esac
3257 else
3258   gconf_enabled=no
3259
3260 fi
3261
3262
3263
3264 # Check whether --with-antlr-jar was given.
3265 if test "${with_antlr_jar+set}" = set; then :
3266   withval=$with_antlr_jar;
3267              ANTLR_JAR=$withval
3268
3269 else
3270
3271              ANTLR_JAR=
3272
3273 fi
3274
3275
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr.jar" >&5
3277 $as_echo_n "checking for antlr.jar... " >&6; }
3278 if test "x$ANTLR_JAR" = x; then
3279     for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
3280         /usr/share/antlr/lib /usr/share/java /usr/lib;
3281     do
3282         if test -f "$antlr_lib_home/antlr.jar"; then
3283             # FIXME: version check for antlr needed without using a VM
3284             ANTLR_JAR="$antlr_lib_home/antlr.jar"
3285             break
3286         fi
3287     done
3288     if test "x$ANTLR_JAR" = x; then
3289         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
3290 $as_echo "not found" >&6; }
3291     else
3292         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3293 $as_echo "$ANTLR_JAR" >&6; }
3294     fi
3295 else
3296     if test -f "${ANTLR_JAR}"; then
3297         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3298 $as_echo "$ANTLR_JAR" >&6; }
3299     else
3300         as_fn_error "antlr jar file not found: $ANTLR_JAR" "$LINENO" 5
3301     fi
3302 fi
3303
3304
3305 # Check whether --enable-gjdoc was given.
3306 if test "${enable_gjdoc+set}" = set; then :
3307   enableval=$enable_gjdoc; case "${enableval}" in
3308                 yes) BUILD_GJDOC=yes ;;
3309                 no) BUILD_GJDOC=no ;;
3310                 *) BUILD_GJDOC=yes ;;
3311               esac
3312 else
3313   BUILD_GJDOC=maybe
3314 fi
3315
3316
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gjdoc" >&5
3318 $as_echo_n "checking whether to build gjdoc... " >&6; }
3319 if test "x$BUILD_GJDOC" = xmaybe; then
3320     if test -f "${ANTLR_JAR}"; then
3321         BUILD_GJDOC=yes
3322         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3323 $as_echo "yes" >&6; }
3324     else
3325         BUILD_GJDOC=no
3326         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, antlr.jar not found" >&5
3327 $as_echo "no, antlr.jar not found" >&6; }
3328     fi
3329 else
3330     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_GJDOC" >&5
3331 $as_echo "$BUILD_GJDOC" >&6; }
3332 fi
3333  if test "x${BUILD_GJDOC}" = xyes; then
3334   CREATE_GJDOC_TRUE=
3335   CREATE_GJDOC_FALSE='#'
3336 else
3337   CREATE_GJDOC_TRUE='#'
3338   CREATE_GJDOC_FALSE=
3339 fi
3340
3341
3342 # Check whether --enable-java-maintainer-mode was given.
3343 if test "${enable_java_maintainer_mode+set}" = set; then :
3344   enableval=$enable_java_maintainer_mode;
3345 fi
3346
3347  if test "$enable_java_maintainer_mode" = yes; then
3348   JAVA_MAINTAINER_MODE_TRUE=
3349   JAVA_MAINTAINER_MODE_FALSE='#'
3350 else
3351   JAVA_MAINTAINER_MODE_TRUE='#'
3352   JAVA_MAINTAINER_MODE_FALSE=
3353 fi
3354
3355
3356 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
3357
3358
3359 # For libstdc++-v3, -fno-builtin must be present here so that a
3360 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
3361 # used in later tests.  This may not be necessary in libjava; I don't know.
3362 save_CXXFLAGS="$CXXFLAGS"
3363 CXXFLAGS="$CXXFLAGS -fno-builtin"
3364 ac_ext=c
3365 ac_cpp='$CPP $CPPFLAGS'
3366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3369 if test -n "$ac_tool_prefix"; then
3370   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3371 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3373 $as_echo_n "checking for $ac_word... " >&6; }
3374 if test "${ac_cv_prog_CC+set}" = set; then :
3375   $as_echo_n "(cached) " >&6
3376 else
3377   if test -n "$CC"; then
3378   ac_cv_prog_CC="$CC" # Let the user override the test.
3379 else
3380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381 for as_dir in $PATH
3382 do
3383   IFS=$as_save_IFS
3384   test -z "$as_dir" && as_dir=.
3385     for ac_exec_ext in '' $ac_executable_extensions; do
3386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3387     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3389     break 2
3390   fi
3391 done
3392   done
3393 IFS=$as_save_IFS
3394
3395 fi
3396 fi
3397 CC=$ac_cv_prog_CC
3398 if test -n "$CC"; then
3399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3400 $as_echo "$CC" >&6; }
3401 else
3402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3403 $as_echo "no" >&6; }
3404 fi
3405
3406
3407 fi
3408 if test -z "$ac_cv_prog_CC"; then
3409   ac_ct_CC=$CC
3410   # Extract the first word of "gcc", so it can be a program name with args.
3411 set dummy gcc; ac_word=$2
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3413 $as_echo_n "checking for $ac_word... " >&6; }
3414 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3415   $as_echo_n "(cached) " >&6
3416 else
3417   if test -n "$ac_ct_CC"; then
3418   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3419 else
3420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421 for as_dir in $PATH
3422 do
3423   IFS=$as_save_IFS
3424   test -z "$as_dir" && as_dir=.
3425     for ac_exec_ext in '' $ac_executable_extensions; do
3426   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3427     ac_cv_prog_ac_ct_CC="gcc"
3428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3429     break 2
3430   fi
3431 done
3432   done
3433 IFS=$as_save_IFS
3434
3435 fi
3436 fi
3437 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3438 if test -n "$ac_ct_CC"; then
3439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3440 $as_echo "$ac_ct_CC" >&6; }
3441 else
3442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3443 $as_echo "no" >&6; }
3444 fi
3445
3446   if test "x$ac_ct_CC" = x; then
3447     CC=""
3448   else
3449     case $cross_compiling:$ac_tool_warned in
3450 yes:)
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3453 ac_tool_warned=yes ;;
3454 esac
3455     CC=$ac_ct_CC
3456   fi
3457 else
3458   CC="$ac_cv_prog_CC"
3459 fi
3460
3461 if test -z "$CC"; then
3462           if test -n "$ac_tool_prefix"; then
3463     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3464 set dummy ${ac_tool_prefix}cc; ac_word=$2
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466 $as_echo_n "checking for $ac_word... " >&6; }
3467 if test "${ac_cv_prog_CC+set}" = set; then :
3468   $as_echo_n "(cached) " >&6
3469 else
3470   if test -n "$CC"; then
3471   ac_cv_prog_CC="$CC" # Let the user override the test.
3472 else
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 for as_dir in $PATH
3475 do
3476   IFS=$as_save_IFS
3477   test -z "$as_dir" && as_dir=.
3478     for ac_exec_ext in '' $ac_executable_extensions; do
3479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3480     ac_cv_prog_CC="${ac_tool_prefix}cc"
3481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3482     break 2
3483   fi
3484 done
3485   done
3486 IFS=$as_save_IFS
3487
3488 fi
3489 fi
3490 CC=$ac_cv_prog_CC
3491 if test -n "$CC"; then
3492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3493 $as_echo "$CC" >&6; }
3494 else
3495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496 $as_echo "no" >&6; }
3497 fi
3498
3499
3500   fi
3501 fi
3502 if test -z "$CC"; then
3503   # Extract the first word of "cc", so it can be a program name with args.
3504 set dummy cc; ac_word=$2
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 $as_echo_n "checking for $ac_word... " >&6; }
3507 if test "${ac_cv_prog_CC+set}" = set; then :
3508   $as_echo_n "(cached) " >&6
3509 else
3510   if test -n "$CC"; then
3511   ac_cv_prog_CC="$CC" # Let the user override the test.
3512 else
3513   ac_prog_rejected=no
3514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3515 for as_dir in $PATH
3516 do
3517   IFS=$as_save_IFS
3518   test -z "$as_dir" && as_dir=.
3519     for ac_exec_ext in '' $ac_executable_extensions; do
3520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3521     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3522        ac_prog_rejected=yes
3523        continue
3524      fi
3525     ac_cv_prog_CC="cc"
3526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3527     break 2
3528   fi
3529 done
3530   done
3531 IFS=$as_save_IFS
3532
3533 if test $ac_prog_rejected = yes; then
3534   # We found a bogon in the path, so make sure we never use it.
3535   set dummy $ac_cv_prog_CC
3536   shift
3537   if test $# != 0; then
3538     # We chose a different compiler from the bogus one.
3539     # However, it has the same basename, so the bogon will be chosen
3540     # first if we set CC to just the basename; use the full file name.
3541     shift
3542     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3543   fi
3544 fi
3545 fi
3546 fi
3547 CC=$ac_cv_prog_CC
3548 if test -n "$CC"; then
3549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3550 $as_echo "$CC" >&6; }
3551 else
3552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3553 $as_echo "no" >&6; }
3554 fi
3555
3556
3557 fi
3558 if test -z "$CC"; then
3559   if test -n "$ac_tool_prefix"; then
3560   for ac_prog in cl.exe
3561   do
3562     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3563 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3565 $as_echo_n "checking for $ac_word... " >&6; }
3566 if test "${ac_cv_prog_CC+set}" = set; then :
3567   $as_echo_n "(cached) " >&6
3568 else
3569   if test -n "$CC"; then
3570   ac_cv_prog_CC="$CC" # Let the user override the test.
3571 else
3572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 for as_dir in $PATH
3574 do
3575   IFS=$as_save_IFS
3576   test -z "$as_dir" && as_dir=.
3577     for ac_exec_ext in '' $ac_executable_extensions; do
3578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3579     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3581     break 2
3582   fi
3583 done
3584   done
3585 IFS=$as_save_IFS
3586
3587 fi
3588 fi
3589 CC=$ac_cv_prog_CC
3590 if test -n "$CC"; then
3591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3592 $as_echo "$CC" >&6; }
3593 else
3594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595 $as_echo "no" >&6; }
3596 fi
3597
3598
3599     test -n "$CC" && break
3600   done
3601 fi
3602 if test -z "$CC"; then
3603   ac_ct_CC=$CC
3604   for ac_prog in cl.exe
3605 do
3606   # Extract the first word of "$ac_prog", so it can be a program name with args.
3607 set dummy $ac_prog; ac_word=$2
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3609 $as_echo_n "checking for $ac_word... " >&6; }
3610 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3611   $as_echo_n "(cached) " >&6
3612 else
3613   if test -n "$ac_ct_CC"; then
3614   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3615 else
3616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617 for as_dir in $PATH
3618 do
3619   IFS=$as_save_IFS
3620   test -z "$as_dir" && as_dir=.
3621     for ac_exec_ext in '' $ac_executable_extensions; do
3622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3623     ac_cv_prog_ac_ct_CC="$ac_prog"
3624     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3625     break 2
3626   fi
3627 done
3628   done
3629 IFS=$as_save_IFS
3630
3631 fi
3632 fi
3633 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3634 if test -n "$ac_ct_CC"; then
3635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3636 $as_echo "$ac_ct_CC" >&6; }
3637 else
3638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3639 $as_echo "no" >&6; }
3640 fi
3641
3642
3643   test -n "$ac_ct_CC" && break
3644 done
3645
3646   if test "x$ac_ct_CC" = x; then
3647     CC=""
3648   else
3649     case $cross_compiling:$ac_tool_warned in
3650 yes:)
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3653 ac_tool_warned=yes ;;
3654 esac
3655     CC=$ac_ct_CC
3656   fi
3657 fi
3658
3659 fi
3660
3661
3662 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3664 as_fn_error "no acceptable C compiler found in \$PATH
3665 See \`config.log' for more details." "$LINENO" 5; }
3666
3667 # Provide some information about the compiler.
3668 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3669 set X $ac_compile
3670 ac_compiler=$2
3671 for ac_option in --version -v -V -qversion; do
3672   { { ac_try="$ac_compiler $ac_option >&5"
3673 case "(($ac_try" in
3674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3675   *) ac_try_echo=$ac_try;;
3676 esac
3677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3678 $as_echo "$ac_try_echo"; } >&5
3679   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3680   ac_status=$?
3681   if test -s conftest.err; then
3682     sed '10a\
3683 ... rest of stderr output deleted ...
3684          10q' conftest.err >conftest.er1
3685     cat conftest.er1 >&5
3686     rm -f conftest.er1 conftest.err
3687   fi
3688   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3689   test $ac_status = 0; }
3690 done
3691
3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693 /* end confdefs.h.  */
3694
3695 int
3696 main ()
3697 {
3698
3699   ;
3700   return 0;
3701 }
3702 _ACEOF
3703 # FIXME: Cleanup?
3704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3705   (eval $ac_link) 2>&5
3706   ac_status=$?
3707   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3708   test $ac_status = 0; }; then :
3709   gcc_no_link=no
3710 else
3711   gcc_no_link=yes
3712 fi
3713 if test x$gcc_no_link = xyes; then
3714   # Setting cross_compile will disable run tests; it will
3715   # also disable AC_CHECK_FILE but that's generally
3716   # correct if we can't link.
3717   cross_compiling=yes
3718   EXEEXT=
3719 else
3720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h.  */
3722
3723 int
3724 main ()
3725 {
3726
3727   ;
3728   return 0;
3729 }
3730 _ACEOF
3731 ac_clean_files_save=$ac_clean_files
3732 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3733 # Try to create an executable without -o first, disregard a.out.
3734 # It will help us diagnose broken compilers, and finding out an intuition
3735 # of exeext.
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3737 $as_echo_n "checking for C compiler default output file name... " >&6; }
3738 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3739
3740 # The possible output files:
3741 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3742
3743 ac_rmfiles=
3744 for ac_file in $ac_files
3745 do
3746   case $ac_file in
3747     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3748     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3749   esac
3750 done
3751 rm -f $ac_rmfiles
3752
3753 if { { ac_try="$ac_link_default"
3754 case "(($ac_try" in
3755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756   *) ac_try_echo=$ac_try;;
3757 esac
3758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3759 $as_echo "$ac_try_echo"; } >&5
3760   (eval "$ac_link_default") 2>&5
3761   ac_status=$?
3762   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3763   test $ac_status = 0; }; then :
3764   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3765 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3766 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3767 # so that the user can short-circuit this test for compilers unknown to
3768 # Autoconf.
3769 for ac_file in $ac_files ''
3770 do
3771   test -f "$ac_file" || continue
3772   case $ac_file in
3773     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3774         ;;
3775     [ab].out )
3776         # We found the default executable, but exeext='' is most
3777         # certainly right.
3778         break;;
3779     *.* )
3780         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3781         then :; else
3782            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3783         fi
3784         # We set ac_cv_exeext here because the later test for it is not
3785         # safe: cross compilers may not add the suffix if given an `-o'
3786         # argument, so we may need to know it at that point already.
3787         # Even if this section looks crufty: it has the advantage of
3788         # actually working.
3789         break;;
3790     * )
3791         break;;
3792   esac
3793 done
3794 test "$ac_cv_exeext" = no && ac_cv_exeext=
3795
3796 else
3797   ac_file=''
3798 fi
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3800 $as_echo "$ac_file" >&6; }
3801 if test -z "$ac_file"; then :
3802   $as_echo "$as_me: failed program was:" >&5
3803 sed 's/^/| /' conftest.$ac_ext >&5
3804
3805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3807 { as_fn_set_status 77
3808 as_fn_error "C compiler cannot create executables
3809 See \`config.log' for more details." "$LINENO" 5; }; }
3810 fi
3811 ac_exeext=$ac_cv_exeext
3812
3813 # Check that the compiler produces executables we can run.  If not, either
3814 # the compiler is broken, or we cross compile.
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3816 $as_echo_n "checking whether the C compiler works... " >&6; }
3817 # If not cross compiling, check that we can run a simple program.
3818 if test "$cross_compiling" != yes; then
3819   if { ac_try='./$ac_file'
3820   { { case "(($ac_try" in
3821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822   *) ac_try_echo=$ac_try;;
3823 esac
3824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3825 $as_echo "$ac_try_echo"; } >&5
3826   (eval "$ac_try") 2>&5
3827   ac_status=$?
3828   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3829   test $ac_status = 0; }; }; then
3830     cross_compiling=no
3831   else
3832     if test "$cross_compiling" = maybe; then
3833         cross_compiling=yes
3834     else
3835         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3837 as_fn_error "cannot run C compiled programs.
3838 If you meant to cross compile, use \`--host'.
3839 See \`config.log' for more details." "$LINENO" 5; }
3840     fi
3841   fi
3842 fi
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3844 $as_echo "yes" >&6; }
3845
3846 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3847 ac_clean_files=$ac_clean_files_save
3848 # Check that the compiler produces executables we can run.  If not, either
3849 # the compiler is broken, or we cross compile.
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3851 $as_echo_n "checking whether we are cross compiling... " >&6; }
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3853 $as_echo "$cross_compiling" >&6; }
3854
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3856 $as_echo_n "checking for suffix of executables... " >&6; }
3857 if { { ac_try="$ac_link"
3858 case "(($ac_try" in
3859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860   *) ac_try_echo=$ac_try;;
3861 esac
3862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3863 $as_echo "$ac_try_echo"; } >&5
3864   (eval "$ac_link") 2>&5
3865   ac_status=$?
3866   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3867   test $ac_status = 0; }; then :
3868   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3869 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3870 # work properly (i.e., refer to `conftest.exe'), while it won't with
3871 # `rm'.
3872 for ac_file in conftest.exe conftest conftest.*; do
3873   test -f "$ac_file" || continue
3874   case $ac_file in
3875     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3876     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3877           break;;
3878     * ) break;;
3879   esac
3880 done
3881 else
3882   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3884 as_fn_error "cannot compute suffix of executables: cannot compile and link
3885 See \`config.log' for more details." "$LINENO" 5; }
3886 fi
3887 rm -f conftest$ac_cv_exeext
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3889 $as_echo "$ac_cv_exeext" >&6; }
3890
3891 rm -f conftest.$ac_ext
3892 EXEEXT=$ac_cv_exeext
3893 ac_exeext=$EXEEXT
3894 fi
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3896 $as_echo_n "checking for suffix of object files... " >&6; }
3897 if test "${ac_cv_objext+set}" = set; then :
3898   $as_echo_n "(cached) " >&6
3899 else
3900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901 /* end confdefs.h.  */
3902
3903 int
3904 main ()
3905 {
3906
3907   ;
3908   return 0;
3909 }
3910 _ACEOF
3911 rm -f conftest.o conftest.obj
3912 if { { ac_try="$ac_compile"
3913 case "(($ac_try" in
3914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915   *) ac_try_echo=$ac_try;;
3916 esac
3917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3918 $as_echo "$ac_try_echo"; } >&5
3919   (eval "$ac_compile") 2>&5
3920   ac_status=$?
3921   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3922   test $ac_status = 0; }; then :
3923   for ac_file in conftest.o conftest.obj conftest.*; do
3924   test -f "$ac_file" || continue;
3925   case $ac_file in
3926     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3927     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3928        break;;
3929   esac
3930 done
3931 else
3932   $as_echo "$as_me: failed program was:" >&5
3933 sed 's/^/| /' conftest.$ac_ext >&5
3934
3935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3937 as_fn_error "cannot compute suffix of object files: cannot compile
3938 See \`config.log' for more details." "$LINENO" 5; }
3939 fi
3940 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3941 fi
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3943 $as_echo "$ac_cv_objext" >&6; }
3944 OBJEXT=$ac_cv_objext
3945 ac_objext=$OBJEXT
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3947 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3948 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3949   $as_echo_n "(cached) " >&6
3950 else
3951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h.  */
3953
3954 int
3955 main ()
3956 {
3957 #ifndef __GNUC__
3958        choke me
3959 #endif
3960
3961   ;
3962   return 0;
3963 }
3964 _ACEOF
3965 if ac_fn_c_try_compile "$LINENO"; then :
3966   ac_compiler_gnu=yes
3967 else
3968   ac_compiler_gnu=no
3969 fi
3970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3971 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3972
3973 fi
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3975 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3976 if test $ac_compiler_gnu = yes; then
3977   GCC=yes
3978 else
3979   GCC=
3980 fi
3981 ac_test_CFLAGS=${CFLAGS+set}
3982 ac_save_CFLAGS=$CFLAGS
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3984 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3985 if test "${ac_cv_prog_cc_g+set}" = set; then :
3986   $as_echo_n "(cached) " >&6
3987 else
3988   ac_save_c_werror_flag=$ac_c_werror_flag
3989    ac_c_werror_flag=yes
3990    ac_cv_prog_cc_g=no
3991    CFLAGS="-g"
3992    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h.  */
3994
3995 int
3996 main ()
3997 {
3998
3999   ;
4000   return 0;
4001 }
4002 _ACEOF
4003 if ac_fn_c_try_compile "$LINENO"; then :
4004   ac_cv_prog_cc_g=yes
4005 else
4006   CFLAGS=""
4007       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008 /* end confdefs.h.  */
4009
4010 int
4011 main ()
4012 {
4013
4014   ;
4015   return 0;
4016 }
4017 _ACEOF
4018 if ac_fn_c_try_compile "$LINENO"; then :
4019
4020 else
4021   ac_c_werror_flag=$ac_save_c_werror_flag
4022          CFLAGS="-g"
4023          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024 /* end confdefs.h.  */
4025
4026 int
4027 main ()
4028 {
4029
4030   ;
4031   return 0;
4032 }
4033 _ACEOF
4034 if ac_fn_c_try_compile "$LINENO"; then :
4035   ac_cv_prog_cc_g=yes
4036 fi
4037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4038 fi
4039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4040 fi
4041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4042    ac_c_werror_flag=$ac_save_c_werror_flag
4043 fi
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4045 $as_echo "$ac_cv_prog_cc_g" >&6; }
4046 if test "$ac_test_CFLAGS" = set; then
4047   CFLAGS=$ac_save_CFLAGS
4048 elif test $ac_cv_prog_cc_g = yes; then
4049   if test "$GCC" = yes; then
4050     CFLAGS="-g -O2"
4051   else
4052     CFLAGS="-g"
4053   fi
4054 else
4055   if test "$GCC" = yes; then
4056     CFLAGS="-O2"
4057   else
4058     CFLAGS=
4059   fi
4060 fi
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4062 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4063 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4064   $as_echo_n "(cached) " >&6
4065 else
4066   ac_cv_prog_cc_c89=no
4067 ac_save_CC=$CC
4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069 /* end confdefs.h.  */
4070 #include <stdarg.h>
4071 #include <stdio.h>
4072 #include <sys/types.h>
4073 #include <sys/stat.h>
4074 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4075 struct buf { int x; };
4076 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4077 static char *e (p, i)
4078      char **p;
4079      int i;
4080 {
4081   return p[i];
4082 }
4083 static char *f (char * (*g) (char **, int), char **p, ...)
4084 {
4085   char *s;
4086   va_list v;
4087   va_start (v,p);
4088   s = g (p, va_arg (v,int));
4089   va_end (v);
4090   return s;
4091 }
4092
4093 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4094    function prototypes and stuff, but not '\xHH' hex character constants.
4095    These don't provoke an error unfortunately, instead are silently treated
4096    as 'x'.  The following induces an error, until -std is added to get
4097    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4098    array size at least.  It's necessary to write '\x00'==0 to get something
4099    that's true only with -std.  */
4100 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4101
4102 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4103    inside strings and character constants.  */
4104 #define FOO(x) 'x'
4105 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4106
4107 int test (int i, double x);
4108 struct s1 {int (*f) (int a);};
4109 struct s2 {int (*f) (double a);};
4110 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4111 int argc;
4112 char **argv;
4113 int
4114 main ()
4115 {
4116 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4117   ;
4118   return 0;
4119 }
4120 _ACEOF
4121 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4122         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4123 do
4124   CC="$ac_save_CC $ac_arg"
4125   if ac_fn_c_try_compile "$LINENO"; then :
4126   ac_cv_prog_cc_c89=$ac_arg
4127 fi
4128 rm -f core conftest.err conftest.$ac_objext
4129   test "x$ac_cv_prog_cc_c89" != "xno" && break
4130 done
4131 rm -f conftest.$ac_ext
4132 CC=$ac_save_CC
4133
4134 fi
4135 # AC_CACHE_VAL
4136 case "x$ac_cv_prog_cc_c89" in
4137   x)
4138     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4139 $as_echo "none needed" >&6; } ;;
4140   xno)
4141     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4142 $as_echo "unsupported" >&6; } ;;
4143   *)
4144     CC="$CC $ac_cv_prog_cc_c89"
4145     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4146 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4147 esac
4148 if test "x$ac_cv_prog_cc_c89" != xno; then :
4149
4150 fi
4151
4152 ac_ext=c
4153 ac_cpp='$CPP $CPPFLAGS'
4154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4157
4158 ac_ext=cpp
4159 ac_cpp='$CXXCPP $CPPFLAGS'
4160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4161 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4162 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4163 if test -z "$CXX"; then
4164   if test -n "$CCC"; then
4165     CXX=$CCC
4166   else
4167     if test -n "$ac_tool_prefix"; then
4168   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4169   do
4170     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4171 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4173 $as_echo_n "checking for $ac_word... " >&6; }
4174 if test "${ac_cv_prog_CXX+set}" = set; then :
4175   $as_echo_n "(cached) " >&6
4176 else
4177   if test -n "$CXX"; then
4178   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4179 else
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181 for as_dir in $PATH
4182 do
4183   IFS=$as_save_IFS
4184   test -z "$as_dir" && as_dir=.
4185     for ac_exec_ext in '' $ac_executable_extensions; do
4186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4187     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4189     break 2
4190   fi
4191 done
4192   done
4193 IFS=$as_save_IFS
4194
4195 fi
4196 fi
4197 CXX=$ac_cv_prog_CXX
4198 if test -n "$CXX"; then
4199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4200 $as_echo "$CXX" >&6; }
4201 else
4202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203 $as_echo "no" >&6; }
4204 fi
4205
4206
4207     test -n "$CXX" && break
4208   done
4209 fi
4210 if test -z "$CXX"; then
4211   ac_ct_CXX=$CXX
4212   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4213 do
4214   # Extract the first word of "$ac_prog", so it can be a program name with args.
4215 set dummy $ac_prog; ac_word=$2
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4217 $as_echo_n "checking for $ac_word... " >&6; }
4218 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4219   $as_echo_n "(cached) " >&6
4220 else
4221   if test -n "$ac_ct_CXX"; then
4222   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4223 else
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 for as_dir in $PATH
4226 do
4227   IFS=$as_save_IFS
4228   test -z "$as_dir" && as_dir=.
4229     for ac_exec_ext in '' $ac_executable_extensions; do
4230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4231     ac_cv_prog_ac_ct_CXX="$ac_prog"
4232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4233     break 2
4234   fi
4235 done
4236   done
4237 IFS=$as_save_IFS
4238
4239 fi
4240 fi
4241 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4242 if test -n "$ac_ct_CXX"; then
4243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4244 $as_echo "$ac_ct_CXX" >&6; }
4245 else
4246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4247 $as_echo "no" >&6; }
4248 fi
4249
4250
4251   test -n "$ac_ct_CXX" && break
4252 done
4253
4254   if test "x$ac_ct_CXX" = x; then
4255     CXX="g++"
4256   else
4257     case $cross_compiling:$ac_tool_warned in
4258 yes:)
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4261 ac_tool_warned=yes ;;
4262 esac
4263     CXX=$ac_ct_CXX
4264   fi
4265 fi
4266
4267   fi
4268 fi
4269 # Provide some information about the compiler.
4270 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4271 set X $ac_compile
4272 ac_compiler=$2
4273 for ac_option in --version -v -V -qversion; do
4274   { { ac_try="$ac_compiler $ac_option >&5"
4275 case "(($ac_try" in
4276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277   *) ac_try_echo=$ac_try;;
4278 esac
4279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4280 $as_echo "$ac_try_echo"; } >&5
4281   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4282   ac_status=$?
4283   if test -s conftest.err; then
4284     sed '10a\
4285 ... rest of stderr output deleted ...
4286          10q' conftest.err >conftest.er1
4287     cat conftest.er1 >&5
4288     rm -f conftest.er1 conftest.err
4289   fi
4290   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291   test $ac_status = 0; }
4292 done
4293
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4295 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4296 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4297   $as_echo_n "(cached) " >&6
4298 else
4299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h.  */
4301
4302 int
4303 main ()
4304 {
4305 #ifndef __GNUC__
4306        choke me
4307 #endif
4308
4309   ;
4310   return 0;
4311 }
4312 _ACEOF
4313 if ac_fn_cxx_try_compile "$LINENO"; then :
4314   ac_compiler_gnu=yes
4315 else
4316   ac_compiler_gnu=no
4317 fi
4318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4319 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4320
4321 fi
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4323 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4324 if test $ac_compiler_gnu = yes; then
4325   GXX=yes
4326 else
4327   GXX=
4328 fi
4329 ac_test_CXXFLAGS=${CXXFLAGS+set}
4330 ac_save_CXXFLAGS=$CXXFLAGS
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4332 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4333 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4334   $as_echo_n "(cached) " >&6
4335 else
4336   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4337    ac_cxx_werror_flag=yes
4338    ac_cv_prog_cxx_g=no
4339    CXXFLAGS="-g"
4340    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h.  */
4342
4343 int
4344 main ()
4345 {
4346
4347   ;
4348   return 0;
4349 }
4350 _ACEOF
4351 if ac_fn_cxx_try_compile "$LINENO"; then :
4352   ac_cv_prog_cxx_g=yes
4353 else
4354   CXXFLAGS=""
4355       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h.  */
4357
4358 int
4359 main ()
4360 {
4361
4362   ;
4363   return 0;
4364 }
4365 _ACEOF
4366 if ac_fn_cxx_try_compile "$LINENO"; then :
4367
4368 else
4369   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4370          CXXFLAGS="-g"
4371          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h.  */
4373
4374 int
4375 main ()
4376 {
4377
4378   ;
4379   return 0;
4380 }
4381 _ACEOF
4382 if ac_fn_cxx_try_compile "$LINENO"; then :
4383   ac_cv_prog_cxx_g=yes
4384 fi
4385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4386 fi
4387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4388 fi
4389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4390    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4391 fi
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4393 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4394 if test "$ac_test_CXXFLAGS" = set; then
4395   CXXFLAGS=$ac_save_CXXFLAGS
4396 elif test $ac_cv_prog_cxx_g = yes; then
4397   if test "$GXX" = yes; then
4398     CXXFLAGS="-g -O2"
4399   else
4400     CXXFLAGS="-g"
4401   fi
4402 else
4403   if test "$GXX" = yes; then
4404     CXXFLAGS="-O2"
4405   else
4406     CXXFLAGS=
4407   fi
4408 fi
4409 ac_ext=c
4410 ac_cpp='$CPP $CPPFLAGS'
4411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4414
4415 CXXFLAGS="$save_CXXFLAGS"
4416
4417 am__api_version='1.11'
4418
4419 # Find a good install program.  We prefer a C program (faster),
4420 # so one script is as good as another.  But avoid the broken or
4421 # incompatible versions:
4422 # SysV /etc/install, /usr/sbin/install
4423 # SunOS /usr/etc/install
4424 # IRIX /sbin/install
4425 # AIX /bin/install
4426 # AmigaOS /C/install, which installs bootblocks on floppy discs
4427 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4428 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4429 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4430 # OS/2's system install, which has a completely different semantic
4431 # ./install, which can be erroneously created by make from ./install.sh.
4432 # Reject install programs that cannot install multiple files.
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4434 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4435 if test -z "$INSTALL"; then
4436 if test "${ac_cv_path_install+set}" = set; then :
4437   $as_echo_n "(cached) " >&6
4438 else
4439   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $PATH
4441 do
4442   IFS=$as_save_IFS
4443   test -z "$as_dir" && as_dir=.
4444     # Account for people who put trailing slashes in PATH elements.
4445 case $as_dir/ in #((
4446   ./ | .// | /[cC]/* | \
4447   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4448   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4449   /usr/ucb/* ) ;;
4450   *)
4451     # OSF1 and SCO ODT 3.0 have their own names for install.
4452     # Don't use installbsd from OSF since it installs stuff as root
4453     # by default.
4454     for ac_prog in ginstall scoinst install; do
4455       for ac_exec_ext in '' $ac_executable_extensions; do
4456         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4457           if test $ac_prog = install &&
4458             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4459             # AIX install.  It has an incompatible calling convention.
4460             :
4461           elif test $ac_prog = install &&
4462             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4463             # program-specific install script used by HP pwplus--don't use.
4464             :
4465           else
4466             rm -rf conftest.one conftest.two conftest.dir
4467             echo one > conftest.one
4468             echo two > conftest.two
4469             mkdir conftest.dir
4470             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4471               test -s conftest.one && test -s conftest.two &&
4472               test -s conftest.dir/conftest.one &&
4473               test -s conftest.dir/conftest.two
4474             then
4475               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4476               break 3
4477             fi
4478           fi
4479         fi
4480       done
4481     done
4482     ;;
4483 esac
4484
4485   done
4486 IFS=$as_save_IFS
4487
4488 rm -rf conftest.one conftest.two conftest.dir
4489
4490 fi
4491   if test "${ac_cv_path_install+set}" = set; then
4492     INSTALL=$ac_cv_path_install
4493   else
4494     # As a last resort, use the slow shell script.  Don't cache a
4495     # value for INSTALL within a source directory, because that will
4496     # break other packages using the cache if that directory is
4497     # removed, or if the value is a relative name.
4498     INSTALL=$ac_install_sh
4499   fi
4500 fi
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4502 $as_echo "$INSTALL" >&6; }
4503
4504 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4505 # It thinks the first close brace ends the variable substitution.
4506 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4507
4508 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4509
4510 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4511
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4513 $as_echo_n "checking whether build environment is sane... " >&6; }
4514 # Just in case
4515 sleep 1
4516 echo timestamp > conftest.file
4517 # Reject unsafe characters in $srcdir or the absolute working directory
4518 # name.  Accept space and tab only in the latter.
4519 am_lf='
4520 '
4521 case `pwd` in
4522   *[\\\"\#\$\&\'\`$am_lf]*)
4523     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4524 esac
4525 case $srcdir in
4526   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
4527     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4528 esac
4529
4530 # Do `set' in a subshell so we don't clobber the current shell's
4531 # arguments.  Must try -L first in case configure is actually a
4532 # symlink; some systems play weird games with the mod time of symlinks
4533 # (eg FreeBSD returns the mod time of the symlink's containing
4534 # directory).
4535 if (
4536    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4537    if test "$*" = "X"; then
4538       # -L didn't work.
4539       set X `ls -t "$srcdir/configure" conftest.file`
4540    fi
4541    rm -f conftest.file
4542    if test "$*" != "X $srcdir/configure conftest.file" \
4543       && test "$*" != "X conftest.file $srcdir/configure"; then
4544
4545       # If neither matched, then we have a broken ls.  This can happen
4546       # if, for instance, CONFIG_SHELL is bash and it inherits a
4547       # broken ls alias from the environment.  This has actually
4548       # happened.  Such a system could not be considered "sane".
4549       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
4550 alias in your environment" "$LINENO" 5
4551    fi
4552
4553    test "$2" = conftest.file
4554    )
4555 then
4556    # Ok.
4557    :
4558 else
4559    as_fn_error "newly created file is older than distributed files!
4560 Check your system clock" "$LINENO" 5
4561 fi
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4563 $as_echo "yes" >&6; }
4564 test "$program_prefix" != NONE &&
4565   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4566 # Use a double $ so make ignores it.
4567 test "$program_suffix" != NONE &&
4568   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4569 # Double any \ or $.
4570 # By default was `s,x,x', remove it if useless.
4571 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4572 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4573
4574 # expand $ac_aux_dir to an absolute path
4575 am_aux_dir=`cd $ac_aux_dir && pwd`
4576
4577 if test x"${MISSING+set}" != xset; then
4578   case $am_aux_dir in
4579   *\ * | *\     *)
4580     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4581   *)
4582     MISSING="\${SHELL} $am_aux_dir/missing" ;;
4583   esac
4584 fi
4585 # Use eval to expand $SHELL
4586 if eval "$MISSING --run true"; then
4587   am_missing_run="$MISSING --run "
4588 else
4589   am_missing_run=
4590   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4591 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4592 fi
4593
4594 if test x"${install_sh}" != xset; then
4595   case $am_aux_dir in
4596   *\ * | *\     *)
4597     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4598   *)
4599     install_sh="\${SHELL} $am_aux_dir/install-sh"
4600   esac
4601 fi
4602
4603 # Installed binaries are usually stripped using `strip' when the user
4604 # run `make install-strip'.  However `strip' might not be the right
4605 # tool to use in cross-compilation environments, therefore Automake
4606 # will honor the `STRIP' environment variable to overrule this program.
4607 if test "$cross_compiling" != no; then
4608   if test -n "$ac_tool_prefix"; then
4609   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4610 set dummy ${ac_tool_prefix}strip; ac_word=$2
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4612 $as_echo_n "checking for $ac_word... " >&6; }
4613 if test "${ac_cv_prog_STRIP+set}" = set; then :
4614   $as_echo_n "(cached) " >&6
4615 else
4616   if test -n "$STRIP"; then
4617   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4618 else
4619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620 for as_dir in $PATH
4621 do
4622   IFS=$as_save_IFS
4623   test -z "$as_dir" && as_dir=.
4624     for ac_exec_ext in '' $ac_executable_extensions; do
4625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4626     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4628     break 2
4629   fi
4630 done
4631   done
4632 IFS=$as_save_IFS
4633
4634 fi
4635 fi
4636 STRIP=$ac_cv_prog_STRIP
4637 if test -n "$STRIP"; then
4638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4639 $as_echo "$STRIP" >&6; }
4640 else
4641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4642 $as_echo "no" >&6; }
4643 fi
4644
4645
4646 fi
4647 if test -z "$ac_cv_prog_STRIP"; then
4648   ac_ct_STRIP=$STRIP
4649   # Extract the first word of "strip", so it can be a program name with args.
4650 set dummy strip; ac_word=$2
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4652 $as_echo_n "checking for $ac_word... " >&6; }
4653 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4654   $as_echo_n "(cached) " >&6
4655 else
4656   if test -n "$ac_ct_STRIP"; then
4657   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4658 else
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH
4661 do
4662   IFS=$as_save_IFS
4663   test -z "$as_dir" && as_dir=.
4664     for ac_exec_ext in '' $ac_executable_extensions; do
4665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4666     ac_cv_prog_ac_ct_STRIP="strip"
4667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4668     break 2
4669   fi
4670 done
4671   done
4672 IFS=$as_save_IFS
4673
4674 fi
4675 fi
4676 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4677 if test -n "$ac_ct_STRIP"; then
4678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4679 $as_echo "$ac_ct_STRIP" >&6; }
4680 else
4681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682 $as_echo "no" >&6; }
4683 fi
4684
4685   if test "x$ac_ct_STRIP" = x; then
4686     STRIP=":"
4687   else
4688     case $cross_compiling:$ac_tool_warned in
4689 yes:)
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4692 ac_tool_warned=yes ;;
4693 esac
4694     STRIP=$ac_ct_STRIP
4695   fi
4696 else
4697   STRIP="$ac_cv_prog_STRIP"
4698 fi
4699
4700 fi
4701 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4702
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4704 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4705 if test -z "$MKDIR_P"; then
4706   if test "${ac_cv_path_mkdir+set}" = set; then :
4707   $as_echo_n "(cached) " >&6
4708 else
4709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4711 do
4712   IFS=$as_save_IFS
4713   test -z "$as_dir" && as_dir=.
4714     for ac_prog in mkdir gmkdir; do
4715          for ac_exec_ext in '' $ac_executable_extensions; do
4716            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4717            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4718              'mkdir (GNU coreutils) '* | \
4719              'mkdir (coreutils) '* | \
4720              'mkdir (fileutils) '4.1*)
4721                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4722                break 3;;
4723            esac
4724          done
4725        done
4726   done
4727 IFS=$as_save_IFS
4728
4729 fi
4730
4731   if test "${ac_cv_path_mkdir+set}" = set; then
4732     MKDIR_P="$ac_cv_path_mkdir -p"
4733   else
4734     # As a last resort, use the slow shell script.  Don't cache a
4735     # value for MKDIR_P within a source directory, because that will
4736     # break other packages using the cache if that directory is
4737     # removed, or if the value is a relative name.
4738     test -d ./--version && rmdir ./--version
4739     MKDIR_P="$ac_install_sh -d"
4740   fi
4741 fi
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4743 $as_echo "$MKDIR_P" >&6; }
4744
4745 mkdir_p="$MKDIR_P"
4746 case $mkdir_p in
4747   [\\/$]* | ?:[\\/]*) ;;
4748   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4749 esac
4750
4751 for ac_prog in gawk mawk nawk awk
4752 do
4753   # Extract the first word of "$ac_prog", so it can be a program name with args.
4754 set dummy $ac_prog; ac_word=$2
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756 $as_echo_n "checking for $ac_word... " >&6; }
4757 if test "${ac_cv_prog_AWK+set}" = set; then :
4758   $as_echo_n "(cached) " >&6
4759 else
4760   if test -n "$AWK"; then
4761   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4762 else
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH
4765 do
4766   IFS=$as_save_IFS
4767   test -z "$as_dir" && as_dir=.
4768     for ac_exec_ext in '' $ac_executable_extensions; do
4769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4770     ac_cv_prog_AWK="$ac_prog"
4771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4772     break 2
4773   fi
4774 done
4775   done
4776 IFS=$as_save_IFS
4777
4778 fi
4779 fi
4780 AWK=$ac_cv_prog_AWK
4781 if test -n "$AWK"; then
4782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4783 $as_echo "$AWK" >&6; }
4784 else
4785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786 $as_echo "no" >&6; }
4787 fi
4788
4789
4790   test -n "$AWK" && break
4791 done
4792
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4794 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4795 set x ${MAKE-make}
4796 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4797 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4798   $as_echo_n "(cached) " >&6
4799 else
4800   cat >conftest.make <<\_ACEOF
4801 SHELL = /bin/sh
4802 all:
4803         @echo '@@@%%%=$(MAKE)=@@@%%%'
4804 _ACEOF
4805 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4806 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4807   *@@@%%%=?*=@@@%%%*)
4808     eval ac_cv_prog_make_${ac_make}_set=yes;;
4809   *)
4810     eval ac_cv_prog_make_${ac_make}_set=no;;
4811 esac
4812 rm -f conftest.make
4813 fi
4814 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4816 $as_echo "yes" >&6; }
4817   SET_MAKE=
4818 else
4819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820 $as_echo "no" >&6; }
4821   SET_MAKE="MAKE=${MAKE-make}"
4822 fi
4823
4824 rm -rf .tst 2>/dev/null
4825 mkdir .tst 2>/dev/null
4826 if test -d .tst; then
4827   am__leading_dot=.
4828 else
4829   am__leading_dot=_
4830 fi
4831 rmdir .tst 2>/dev/null
4832
4833 DEPDIR="${am__leading_dot}deps"
4834
4835 ac_config_commands="$ac_config_commands depfiles"
4836
4837
4838 am_make=${MAKE-make}
4839 cat > confinc << 'END'
4840 am__doit:
4841         @echo this is the am__doit target
4842 .PHONY: am__doit
4843 END
4844 # If we don't find an include directive, just comment out the code.
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4846 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4847 am__include="#"
4848 am__quote=
4849 _am_result=none
4850 # First try GNU make style include.
4851 echo "include confinc" > confmf
4852 # Ignore all kinds of additional output from `make'.
4853 case `$am_make -s -f confmf 2> /dev/null` in #(
4854 *the\ am__doit\ target*)
4855   am__include=include
4856   am__quote=
4857   _am_result=GNU
4858   ;;
4859 esac
4860 # Now try BSD make style include.
4861 if test "$am__include" = "#"; then
4862    echo '.include "confinc"' > confmf
4863    case `$am_make -s -f confmf 2> /dev/null` in #(
4864    *the\ am__doit\ target*)
4865      am__include=.include
4866      am__quote="\""
4867      _am_result=BSD
4868      ;;
4869    esac
4870 fi
4871
4872
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4874 $as_echo "$_am_result" >&6; }
4875 rm -f confinc confmf
4876
4877 # Check whether --enable-dependency-tracking was given.
4878 if test "${enable_dependency_tracking+set}" = set; then :
4879   enableval=$enable_dependency_tracking;
4880 fi
4881
4882 if test "x$enable_dependency_tracking" != xno; then
4883   am_depcomp="$ac_aux_dir/depcomp"
4884   AMDEPBACKSLASH='\'
4885 fi
4886  if test "x$enable_dependency_tracking" != xno; then
4887   AMDEP_TRUE=
4888   AMDEP_FALSE='#'
4889 else
4890   AMDEP_TRUE='#'
4891   AMDEP_FALSE=
4892 fi
4893
4894
4895 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4896   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4897   # is not polluted with repeated "-I."
4898   am__isrc=' -I$(srcdir)'
4899   # test to see if srcdir already configured
4900   if test -f $srcdir/config.status; then
4901     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4902   fi
4903 fi
4904
4905 # test whether we have cygpath
4906 if test -z "$CYGPATH_W"; then
4907   if (cygpath --version) >/dev/null 2>/dev/null; then
4908     CYGPATH_W='cygpath -w'
4909   else
4910     CYGPATH_W=echo
4911   fi
4912 fi
4913
4914
4915 # Define the identity of the package.
4916  PACKAGE='libjava'
4917  VERSION='version-unused'
4918
4919
4920 cat >>confdefs.h <<_ACEOF
4921 #define PACKAGE "$PACKAGE"
4922 _ACEOF
4923
4924
4925 cat >>confdefs.h <<_ACEOF
4926 #define VERSION "$VERSION"
4927 _ACEOF
4928
4929 # Some tools Automake needs.
4930
4931 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4932
4933
4934 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4935
4936
4937 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4938
4939
4940 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4941
4942
4943 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4944
4945 # We need awk for the "check" target.  The system "awk" is bad on
4946 # some platforms.
4947 # Always define AMTAR for backward compatibility.
4948
4949 AMTAR=${AMTAR-"${am_missing_run}tar"}
4950
4951 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4952
4953
4954
4955
4956 depcc="$CC"   am_compiler_list=
4957
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4959 $as_echo_n "checking dependency style of $depcc... " >&6; }
4960 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4961   $as_echo_n "(cached) " >&6
4962 else
4963   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4964   # We make a subdir and do the tests there.  Otherwise we can end up
4965   # making bogus files that we don't know about and never remove.  For
4966   # instance it was reported that on HP-UX the gcc test will end up
4967   # making a dummy file named `D' -- because `-MD' means `put the output
4968   # in D'.
4969   mkdir conftest.dir
4970   # Copy depcomp to subdir because otherwise we won't find it if we're
4971   # using a relative directory.
4972   cp "$am_depcomp" conftest.dir
4973   cd conftest.dir
4974   # We will build objects and dependencies in a subdirectory because
4975   # it helps to detect inapplicable dependency modes.  For instance
4976   # both Tru64's cc and ICC support -MD to output dependencies as a
4977   # side effect of compilation, but ICC will put the dependencies in
4978   # the current directory while Tru64 will put them in the object
4979   # directory.
4980   mkdir sub
4981
4982   am_cv_CC_dependencies_compiler_type=none
4983   if test "$am_compiler_list" = ""; then
4984      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4985   fi
4986   am__universal=false
4987   case " $depcc " in #(
4988      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4989      esac
4990
4991   for depmode in $am_compiler_list; do
4992     # Setup a source with many dependencies, because some compilers
4993     # like to wrap large dependency lists on column 80 (with \), and
4994     # we should not choose a depcomp mode which is confused by this.
4995     #
4996     # We need to recreate these files for each test, as the compiler may
4997     # overwrite some of them when testing with obscure command lines.
4998     # This happens at least with the AIX C compiler.
4999     : > sub/conftest.c
5000     for i in 1 2 3 4 5 6; do
5001       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5002       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5003       # Solaris 8's {/usr,}/bin/sh.
5004       touch sub/conftst$i.h
5005     done
5006     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5007
5008     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5009     # mode.  It turns out that the SunPro C++ compiler does not properly
5010     # handle `-M -o', and we need to detect this.  Also, some Intel
5011     # versions had trouble with output in subdirs
5012     am__obj=sub/conftest.${OBJEXT-o}
5013     am__minus_obj="-o $am__obj"
5014     case $depmode in
5015     gcc)
5016       # This depmode causes a compiler race in universal mode.
5017       test "$am__universal" = false || continue
5018       ;;
5019     nosideeffect)
5020       # after this tag, mechanisms are not by side-effect, so they'll
5021       # only be used when explicitly requested
5022       if test "x$enable_dependency_tracking" = xyes; then
5023         continue
5024       else
5025         break
5026       fi
5027       ;;
5028     msvisualcpp | msvcmsys)
5029       # This compiler won't grok `-c -o', but also, the minuso test has
5030       # not run yet.  These depmodes are late enough in the game, and
5031       # so weak that their functioning should not be impacted.
5032       am__obj=conftest.${OBJEXT-o}
5033       am__minus_obj=
5034       ;;
5035     none) break ;;
5036     esac
5037     if depmode=$depmode \
5038        source=sub/conftest.c object=$am__obj \
5039        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5040        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5041          >/dev/null 2>conftest.err &&
5042        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5043        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5044        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5045        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5046       # icc doesn't choke on unknown options, it will just issue warnings
5047       # or remarks (even with -Werror).  So we grep stderr for any message
5048       # that says an option was ignored or not supported.
5049       # When given -MP, icc 7.0 and 7.1 complain thusly:
5050       #   icc: Command line warning: ignoring option '-M'; no argument required
5051       # The diagnosis changed in icc 8.0:
5052       #   icc: Command line remark: option '-MP' not supported
5053       if (grep 'ignoring option' conftest.err ||
5054           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5055         am_cv_CC_dependencies_compiler_type=$depmode
5056         break
5057       fi
5058     fi
5059   done
5060
5061   cd ..
5062   rm -rf conftest.dir
5063 else
5064   am_cv_CC_dependencies_compiler_type=none
5065 fi
5066
5067 fi
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5069 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5070 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5071
5072  if
5073   test "x$enable_dependency_tracking" != xno \
5074   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5075   am__fastdepCC_TRUE=
5076   am__fastdepCC_FALSE='#'
5077 else
5078   am__fastdepCC_TRUE='#'
5079   am__fastdepCC_FALSE=
5080 fi
5081
5082
5083 depcc="$CXX"  am_compiler_list=
5084
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5086 $as_echo_n "checking dependency style of $depcc... " >&6; }
5087 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5088   $as_echo_n "(cached) " >&6
5089 else
5090   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5091   # We make a subdir and do the tests there.  Otherwise we can end up
5092   # making bogus files that we don't know about and never remove.  For
5093   # instance it was reported that on HP-UX the gcc test will end up
5094   # making a dummy file named `D' -- because `-MD' means `put the output
5095   # in D'.
5096   mkdir conftest.dir
5097   # Copy depcomp to subdir because otherwise we won't find it if we're
5098   # using a relative directory.
5099   cp "$am_depcomp" conftest.dir
5100   cd conftest.dir
5101   # We will build objects and dependencies in a subdirectory because
5102   # it helps to detect inapplicable dependency modes.  For instance
5103   # both Tru64's cc and ICC support -MD to output dependencies as a
5104   # side effect of compilation, but ICC will put the dependencies in
5105   # the current directory while Tru64 will put them in the object
5106   # directory.
5107   mkdir sub
5108
5109   am_cv_CXX_dependencies_compiler_type=none
5110   if test "$am_compiler_list" = ""; then
5111      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5112   fi
5113   am__universal=false
5114   case " $depcc " in #(
5115      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5116      esac
5117
5118   for depmode in $am_compiler_list; do
5119     # Setup a source with many dependencies, because some compilers
5120     # like to wrap large dependency lists on column 80 (with \), and
5121     # we should not choose a depcomp mode which is confused by this.
5122     #
5123     # We need to recreate these files for each test, as the compiler may
5124     # overwrite some of them when testing with obscure command lines.
5125     # This happens at least with the AIX C compiler.
5126     : > sub/conftest.c
5127     for i in 1 2 3 4 5 6; do
5128       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5129       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5130       # Solaris 8's {/usr,}/bin/sh.
5131       touch sub/conftst$i.h
5132     done
5133     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5134
5135     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5136     # mode.  It turns out that the SunPro C++ compiler does not properly
5137     # handle `-M -o', and we need to detect this.  Also, some Intel
5138     # versions had trouble with output in subdirs
5139     am__obj=sub/conftest.${OBJEXT-o}
5140     am__minus_obj="-o $am__obj"
5141     case $depmode in
5142     gcc)
5143       # This depmode causes a compiler race in universal mode.
5144       test "$am__universal" = false || continue
5145       ;;
5146     nosideeffect)
5147       # after this tag, mechanisms are not by side-effect, so they'll
5148       # only be used when explicitly requested
5149       if test "x$enable_dependency_tracking" = xyes; then
5150         continue
5151       else
5152         break
5153       fi
5154       ;;
5155     msvisualcpp | msvcmsys)
5156       # This compiler won't grok `-c -o', but also, the minuso test has
5157       # not run yet.  These depmodes are late enough in the game, and
5158       # so weak that their functioning should not be impacted.
5159       am__obj=conftest.${OBJEXT-o}
5160       am__minus_obj=
5161       ;;
5162     none) break ;;
5163     esac
5164     if depmode=$depmode \
5165        source=sub/conftest.c object=$am__obj \
5166        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5167        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5168          >/dev/null 2>conftest.err &&
5169        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5170        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5171        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5172        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5173       # icc doesn't choke on unknown options, it will just issue warnings
5174       # or remarks (even with -Werror).  So we grep stderr for any message
5175       # that says an option was ignored or not supported.
5176       # When given -MP, icc 7.0 and 7.1 complain thusly:
5177       #   icc: Command line warning: ignoring option '-M'; no argument required
5178       # The diagnosis changed in icc 8.0:
5179       #   icc: Command line remark: option '-MP' not supported
5180       if (grep 'ignoring option' conftest.err ||
5181           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5182         am_cv_CXX_dependencies_compiler_type=$depmode
5183         break
5184       fi
5185     fi
5186   done
5187
5188   cd ..
5189   rm -rf conftest.dir
5190 else
5191   am_cv_CXX_dependencies_compiler_type=none
5192 fi
5193
5194 fi
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5196 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5197 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5198
5199  if
5200   test "x$enable_dependency_tracking" != xno \
5201   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5202   am__fastdepCXX_TRUE=
5203   am__fastdepCXX_FALSE='#'
5204 else
5205   am__fastdepCXX_TRUE='#'
5206   am__fastdepCXX_FALSE=
5207 fi
5208
5209
5210
5211
5212 if test -n "$ac_tool_prefix"; then
5213   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5214 set dummy ${ac_tool_prefix}as; ac_word=$2
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5216 $as_echo_n "checking for $ac_word... " >&6; }
5217 if test "${ac_cv_prog_AS+set}" = set; then :
5218   $as_echo_n "(cached) " >&6
5219 else
5220   if test -n "$AS"; then
5221   ac_cv_prog_AS="$AS" # Let the user override the test.
5222 else
5223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224 for as_dir in $PATH
5225 do
5226   IFS=$as_save_IFS
5227   test -z "$as_dir" && as_dir=.
5228     for ac_exec_ext in '' $ac_executable_extensions; do
5229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5230     ac_cv_prog_AS="${ac_tool_prefix}as"
5231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5232     break 2
5233   fi
5234 done
5235   done
5236 IFS=$as_save_IFS
5237
5238 fi
5239 fi
5240 AS=$ac_cv_prog_AS
5241 if test -n "$AS"; then
5242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5243 $as_echo "$AS" >&6; }
5244 else
5245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5246 $as_echo "no" >&6; }
5247 fi
5248
5249
5250 fi
5251 if test -z "$ac_cv_prog_AS"; then
5252   ac_ct_AS=$AS
5253   # Extract the first word of "as", so it can be a program name with args.
5254 set dummy as; ac_word=$2
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5256 $as_echo_n "checking for $ac_word... " >&6; }
5257 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5258   $as_echo_n "(cached) " >&6
5259 else
5260   if test -n "$ac_ct_AS"; then
5261   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5262 else
5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264 for as_dir in $PATH
5265 do
5266   IFS=$as_save_IFS
5267   test -z "$as_dir" && as_dir=.
5268     for ac_exec_ext in '' $ac_executable_extensions; do
5269   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5270     ac_cv_prog_ac_ct_AS="as"
5271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5272     break 2
5273   fi
5274 done
5275   done
5276 IFS=$as_save_IFS
5277
5278 fi
5279 fi
5280 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5281 if test -n "$ac_ct_AS"; then
5282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5283 $as_echo "$ac_ct_AS" >&6; }
5284 else
5285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5286 $as_echo "no" >&6; }
5287 fi
5288
5289   if test "x$ac_ct_AS" = x; then
5290     AS=""
5291   else
5292     case $cross_compiling:$ac_tool_warned in
5293 yes:)
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5296 ac_tool_warned=yes ;;
5297 esac
5298     AS=$ac_ct_AS
5299   fi
5300 else
5301   AS="$ac_cv_prog_AS"
5302 fi
5303
5304 if test -n "$ac_tool_prefix"; then
5305   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5306 set dummy ${ac_tool_prefix}ld; ac_word=$2
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5308 $as_echo_n "checking for $ac_word... " >&6; }
5309 if test "${ac_cv_prog_LD+set}" = set; then :
5310   $as_echo_n "(cached) " >&6
5311 else
5312   if test -n "$LD"; then
5313   ac_cv_prog_LD="$LD" # Let the user override the test.
5314 else
5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 for as_dir in $PATH
5317 do
5318   IFS=$as_save_IFS
5319   test -z "$as_dir" && as_dir=.
5320     for ac_exec_ext in '' $ac_executable_extensions; do
5321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5322     ac_cv_prog_LD="${ac_tool_prefix}ld"
5323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5324     break 2
5325   fi
5326 done
5327   done
5328 IFS=$as_save_IFS
5329
5330 fi
5331 fi
5332 LD=$ac_cv_prog_LD
5333 if test -n "$LD"; then
5334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5335 $as_echo "$LD" >&6; }
5336 else
5337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 $as_echo "no" >&6; }
5339 fi
5340
5341
5342 fi
5343 if test -z "$ac_cv_prog_LD"; then
5344   ac_ct_LD=$LD
5345   # Extract the first word of "ld", so it can be a program name with args.
5346 set dummy ld; ac_word=$2
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5348 $as_echo_n "checking for $ac_word... " >&6; }
5349 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
5350   $as_echo_n "(cached) " >&6
5351 else
5352   if test -n "$ac_ct_LD"; then
5353   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5354 else
5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 for as_dir in $PATH
5357 do
5358   IFS=$as_save_IFS
5359   test -z "$as_dir" && as_dir=.
5360     for ac_exec_ext in '' $ac_executable_extensions; do
5361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5362     ac_cv_prog_ac_ct_LD="ld"
5363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5364     break 2
5365   fi
5366 done
5367   done
5368 IFS=$as_save_IFS
5369
5370 fi
5371 fi
5372 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5373 if test -n "$ac_ct_LD"; then
5374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
5375 $as_echo "$ac_ct_LD" >&6; }
5376 else
5377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5378 $as_echo "no" >&6; }
5379 fi
5380
5381   if test "x$ac_ct_LD" = x; then
5382     LD=""
5383   else
5384     case $cross_compiling:$ac_tool_warned in
5385 yes:)
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5388 ac_tool_warned=yes ;;
5389 esac
5390     LD=$ac_ct_LD
5391   fi
5392 else
5393   LD="$ac_cv_prog_LD"
5394 fi
5395
5396 if test -n "$ac_tool_prefix"; then
5397   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5398 set dummy ${ac_tool_prefix}ar; ac_word=$2
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5400 $as_echo_n "checking for $ac_word... " >&6; }
5401 if test "${ac_cv_prog_AR+set}" = set; then :
5402   $as_echo_n "(cached) " >&6
5403 else
5404   if test -n "$AR"; then
5405   ac_cv_prog_AR="$AR" # Let the user override the test.
5406 else
5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 for as_dir in $PATH
5409 do
5410   IFS=$as_save_IFS
5411   test -z "$as_dir" && as_dir=.
5412     for ac_exec_ext in '' $ac_executable_extensions; do
5413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5414     ac_cv_prog_AR="${ac_tool_prefix}ar"
5415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5416     break 2
5417   fi
5418 done
5419   done
5420 IFS=$as_save_IFS
5421
5422 fi
5423 fi
5424 AR=$ac_cv_prog_AR
5425 if test -n "$AR"; then
5426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5427 $as_echo "$AR" >&6; }
5428 else
5429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5430 $as_echo "no" >&6; }
5431 fi
5432
5433
5434 fi
5435 if test -z "$ac_cv_prog_AR"; then
5436   ac_ct_AR=$AR
5437   # Extract the first word of "ar", so it can be a program name with args.
5438 set dummy ar; ac_word=$2
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5440 $as_echo_n "checking for $ac_word... " >&6; }
5441 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5442   $as_echo_n "(cached) " >&6
5443 else
5444   if test -n "$ac_ct_AR"; then
5445   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5446 else
5447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448 for as_dir in $PATH
5449 do
5450   IFS=$as_save_IFS
5451   test -z "$as_dir" && as_dir=.
5452     for ac_exec_ext in '' $ac_executable_extensions; do
5453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5454     ac_cv_prog_ac_ct_AR="ar"
5455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5456     break 2
5457   fi
5458 done
5459   done
5460 IFS=$as_save_IFS
5461
5462 fi
5463 fi
5464 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5465 if test -n "$ac_ct_AR"; then
5466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5467 $as_echo "$ac_ct_AR" >&6; }
5468 else
5469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5470 $as_echo "no" >&6; }
5471 fi
5472
5473   if test "x$ac_ct_AR" = x; then
5474     AR=""
5475   else
5476     case $cross_compiling:$ac_tool_warned in
5477 yes:)
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5480 ac_tool_warned=yes ;;
5481 esac
5482     AR=$ac_ct_AR
5483   fi
5484 else
5485   AR="$ac_cv_prog_AR"
5486 fi
5487
5488 if test -n "$ac_tool_prefix"; then
5489   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5490 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5492 $as_echo_n "checking for $ac_word... " >&6; }
5493 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5494   $as_echo_n "(cached) " >&6
5495 else
5496   if test -n "$RANLIB"; then
5497   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5498 else
5499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5500 for as_dir in $PATH
5501 do
5502   IFS=$as_save_IFS
5503   test -z "$as_dir" && as_dir=.
5504     for ac_exec_ext in '' $ac_executable_extensions; do
5505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5506     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5508     break 2
5509   fi
5510 done
5511   done
5512 IFS=$as_save_IFS
5513
5514 fi
5515 fi
5516 RANLIB=$ac_cv_prog_RANLIB
5517 if test -n "$RANLIB"; then
5518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5519 $as_echo "$RANLIB" >&6; }
5520 else
5521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5522 $as_echo "no" >&6; }
5523 fi
5524
5525
5526 fi
5527 if test -z "$ac_cv_prog_RANLIB"; then
5528   ac_ct_RANLIB=$RANLIB
5529   # Extract the first word of "ranlib", so it can be a program name with args.
5530 set dummy ranlib; ac_word=$2
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5532 $as_echo_n "checking for $ac_word... " >&6; }
5533 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5534   $as_echo_n "(cached) " >&6
5535 else
5536   if test -n "$ac_ct_RANLIB"; then
5537   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5538 else
5539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5540 for as_dir in $PATH
5541 do
5542   IFS=$as_save_IFS
5543   test -z "$as_dir" && as_dir=.
5544     for ac_exec_ext in '' $ac_executable_extensions; do
5545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5546     ac_cv_prog_ac_ct_RANLIB="ranlib"
5547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5548     break 2
5549   fi
5550 done
5551   done
5552 IFS=$as_save_IFS
5553
5554 fi
5555 fi
5556 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5557 if test -n "$ac_ct_RANLIB"; then
5558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5559 $as_echo "$ac_ct_RANLIB" >&6; }
5560 else
5561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5562 $as_echo "no" >&6; }
5563 fi
5564
5565   if test "x$ac_ct_RANLIB" = x; then
5566     RANLIB=":"
5567   else
5568     case $cross_compiling:$ac_tool_warned in
5569 yes:)
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5572 ac_tool_warned=yes ;;
5573 esac
5574     RANLIB=$ac_ct_RANLIB
5575   fi
5576 else
5577   RANLIB="$ac_cv_prog_RANLIB"
5578 fi
5579
5580 if test -n "$ac_tool_prefix"; then
5581   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5582 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5584 $as_echo_n "checking for $ac_word... " >&6; }
5585 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5586   $as_echo_n "(cached) " >&6
5587 else
5588   if test -n "$DLLTOOL"; then
5589   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5590 else
5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592 for as_dir in $PATH
5593 do
5594   IFS=$as_save_IFS
5595   test -z "$as_dir" && as_dir=.
5596     for ac_exec_ext in '' $ac_executable_extensions; do
5597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5598     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5600     break 2
5601   fi
5602 done
5603   done
5604 IFS=$as_save_IFS
5605
5606 fi
5607 fi
5608 DLLTOOL=$ac_cv_prog_DLLTOOL
5609 if test -n "$DLLTOOL"; then
5610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5611 $as_echo "$DLLTOOL" >&6; }
5612 else
5613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5614 $as_echo "no" >&6; }
5615 fi
5616
5617
5618 fi
5619 if test -z "$ac_cv_prog_DLLTOOL"; then
5620   ac_ct_DLLTOOL=$DLLTOOL
5621   # Extract the first word of "dlltool", so it can be a program name with args.
5622 set dummy dlltool; ac_word=$2
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5624 $as_echo_n "checking for $ac_word... " >&6; }
5625 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5626   $as_echo_n "(cached) " >&6
5627 else
5628   if test -n "$ac_ct_DLLTOOL"; then
5629   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5630 else
5631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632 for as_dir in $PATH
5633 do
5634   IFS=$as_save_IFS
5635   test -z "$as_dir" && as_dir=.
5636     for ac_exec_ext in '' $ac_executable_extensions; do
5637   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5638     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5640     break 2
5641   fi
5642 done
5643   done
5644 IFS=$as_save_IFS
5645
5646 fi
5647 fi
5648 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5649 if test -n "$ac_ct_DLLTOOL"; then
5650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5651 $as_echo "$ac_ct_DLLTOOL" >&6; }
5652 else
5653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654 $as_echo "no" >&6; }
5655 fi
5656
5657   if test "x$ac_ct_DLLTOOL" = x; then
5658     DLLTOOL=":"
5659   else
5660     case $cross_compiling:$ac_tool_warned in
5661 yes:)
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5664 ac_tool_warned=yes ;;
5665 esac
5666     DLLTOOL=$ac_ct_DLLTOOL
5667   fi
5668 else
5669   DLLTOOL="$ac_cv_prog_DLLTOOL"
5670 fi
5671
5672 for ac_prog in gawk mawk nawk awk
5673 do
5674   # Extract the first word of "$ac_prog", so it can be a program name with args.
5675 set dummy $ac_prog; ac_word=$2
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5677 $as_echo_n "checking for $ac_word... " >&6; }
5678 if test "${ac_cv_prog_AWK+set}" = set; then :
5679   $as_echo_n "(cached) " >&6
5680 else
5681   if test -n "$AWK"; then
5682   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5683 else
5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 for as_dir in $PATH
5686 do
5687   IFS=$as_save_IFS
5688   test -z "$as_dir" && as_dir=.
5689     for ac_exec_ext in '' $ac_executable_extensions; do
5690   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5691     ac_cv_prog_AWK="$ac_prog"
5692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5693     break 2
5694   fi
5695 done
5696   done
5697 IFS=$as_save_IFS
5698
5699 fi
5700 fi
5701 AWK=$ac_cv_prog_AWK
5702 if test -n "$AWK"; then
5703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5704 $as_echo "$AWK" >&6; }
5705 else
5706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5707 $as_echo "no" >&6; }
5708 fi
5709
5710
5711   test -n "$AWK" && break
5712 done
5713
5714 for ac_prog in jar fastjar gjar
5715 do
5716   # Extract the first word of "$ac_prog", so it can be a program name with args.
5717 set dummy $ac_prog; ac_word=$2
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5719 $as_echo_n "checking for $ac_word... " >&6; }
5720 if test "${ac_cv_prog_JAR+set}" = set; then :
5721   $as_echo_n "(cached) " >&6
5722 else
5723   if test -n "$JAR"; then
5724   ac_cv_prog_JAR="$JAR" # Let the user override the test.
5725 else
5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727 for as_dir in $PATH
5728 do
5729   IFS=$as_save_IFS
5730   test -z "$as_dir" && as_dir=.
5731     for ac_exec_ext in '' $ac_executable_extensions; do
5732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5733     ac_cv_prog_JAR="$ac_prog"
5734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5735     break 2
5736   fi
5737 done
5738   done
5739 IFS=$as_save_IFS
5740
5741 fi
5742 fi
5743 JAR=$ac_cv_prog_JAR
5744 if test -n "$JAR"; then
5745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
5746 $as_echo "$JAR" >&6; }
5747 else
5748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749 $as_echo "no" >&6; }
5750 fi
5751
5752
5753   test -n "$JAR" && break
5754 done
5755 test -n "$JAR" || JAR="no"
5756
5757 # Extract the first word of "zip", so it can be a program name with args.
5758 set dummy zip; ac_word=$2
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5760 $as_echo_n "checking for $ac_word... " >&6; }
5761 if test "${ac_cv_path_ZIP+set}" = set; then :
5762   $as_echo_n "(cached) " >&6
5763 else
5764   case $ZIP in
5765   [\\/]* | ?:[\\/]*)
5766   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5767   ;;
5768   *)
5769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 for as_dir in $PATH
5771 do
5772   IFS=$as_save_IFS
5773   test -z "$as_dir" && as_dir=.
5774     for ac_exec_ext in '' $ac_executable_extensions; do
5775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5776     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5778     break 2
5779   fi
5780 done
5781   done
5782 IFS=$as_save_IFS
5783
5784   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
5785   ;;
5786 esac
5787 fi
5788 ZIP=$ac_cv_path_ZIP
5789 if test -n "$ZIP"; then
5790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
5791 $as_echo "$ZIP" >&6; }
5792 else
5793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5794 $as_echo "no" >&6; }
5795 fi
5796
5797
5798 # Extract the first word of "unzip", so it can be a program name with args.
5799 set dummy unzip; ac_word=$2
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5801 $as_echo_n "checking for $ac_word... " >&6; }
5802 if test "${ac_cv_path_UNZIP+set}" = set; then :
5803   $as_echo_n "(cached) " >&6
5804 else
5805   case $UNZIP in
5806   [\\/]* | ?:[\\/]*)
5807   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
5808   ;;
5809   *)
5810   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811 for as_dir in $PATH
5812 do
5813   IFS=$as_save_IFS
5814   test -z "$as_dir" && as_dir=.
5815     for ac_exec_ext in '' $ac_executable_extensions; do
5816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5817     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
5818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5819     break 2
5820   fi
5821 done
5822   done
5823 IFS=$as_save_IFS
5824
5825   test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
5826   ;;
5827 esac
5828 fi
5829 UNZIP=$ac_cv_path_UNZIP
5830 if test -n "$UNZIP"; then
5831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
5832 $as_echo "$UNZIP" >&6; }
5833 else
5834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5835 $as_echo "no" >&6; }
5836 fi
5837
5838
5839
5840 # We need a jar that supports -@.  This is a GNU extension.
5841 if test "$JAR" != no; then
5842    rm -f config-test.jar
5843    echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
5844    if test -f config-test.jar; then
5845      rm -f config-test.jar
5846    else
5847      JAR=no
5848    fi
5849 fi
5850
5851 # Prefer the jar we found, but fall back to our jar script.
5852 if test "$JAR" = no; then
5853   if test "$ZIP" = no; then
5854     as_fn_error "cannot find neither zip nor jar, cannot continue" "$LINENO" 5
5855   else
5856     # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
5857     JAR=`pwd`/scripts/jar
5858   fi
5859 fi
5860
5861
5862
5863
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5865 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5866     # Check whether --enable-maintainer-mode was given.
5867 if test "${enable_maintainer_mode+set}" = set; then :
5868   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5869 else
5870   USE_MAINTAINER_MODE=no
5871 fi
5872
5873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5874 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5875    if test $USE_MAINTAINER_MODE = yes; then
5876   MAINTAINER_MODE_TRUE=
5877   MAINTAINER_MODE_FALSE='#'
5878 else
5879   MAINTAINER_MODE_TRUE='#'
5880   MAINTAINER_MODE_FALSE=
5881 fi
5882
5883   MAINT=$MAINTAINER_MODE_TRUE
5884
5885
5886
5887
5888
5889 # configure.host sets the following important variables
5890 #       libgcj_cflags    - host specific C compiler flags
5891 #       libgcj_cxxflags  - host specific C++ compiler flags
5892 #       libgcj_javaflags - host specific Java compiler flags
5893 #       libgcj_sublib_ltflags - host specific Libtool flags
5894 #       libgcj_sublib_core_extra_deps - host specific extra
5895 #                          dependencies for core sublib
5896 #       (these last two only used when building sublibs)
5897 # and a number of others; see the list at the start of the file.
5898
5899 libgcj_cflags=
5900 libgcj_cxxflags=
5901 libgcj_javaflags=
5902 libgcj_sublib_ltflags=
5903 libgcj_sublib_core_extra_deps=
5904
5905 . ${srcdir}/configure.host
5906
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5908 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5909 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5910   $as_echo_n "(cached) " >&6
5911 else
5912   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5913 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5914   acl_cv_prog_gnu_ld=yes
5915 else
5916   acl_cv_prog_gnu_ld=no
5917 fi
5918 fi
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5920 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5921 with_gnu_ld=$acl_cv_prog_gnu_ld
5922
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
5924 $as_echo_n "checking if the GNU linker ($LD) supports -Bsymbolic-functions... " >&6; }
5925 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then :
5926   $as_echo_n "(cached) " >&6
5927 else
5928
5929 acl_cv_prog_gnu_ld_symbolic=no
5930
5931 if test x"$with_gnu_ld" = x"yes"; then
5932   if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
5933     acl_cv_prog_gnu_ld_symbolic=yes
5934   fi
5935 fi
5936 fi
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld_symbolic" >&5
5938 $as_echo "$acl_cv_prog_gnu_ld_symbolic" >&6; }
5939 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
5940   SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
5941 else
5942   SYMBOLIC_LDFLAGS=''
5943 fi
5944
5945 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
5946 if test -z "$libgcj_ld_symbolic"; then
5947   libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
5948 fi
5949
5950 LIBGCJ_CFLAGS="${libgcj_cflags}"
5951 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
5952 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
5953 LIBGCJ_SUBLIB_LTFLAGS="${libgcj_sublib_ltflags}"
5954 LIBGCJ_SUBLIB_CORE_EXTRA_DEPS="${libgcj_sublib_core_extra_deps}"
5955 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
5956 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
5957
5958
5959
5960
5961
5962
5963
5964
5965 # Only use libltdl for non-newlib builds.
5966 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5967    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
5968 $as_echo_n "checking dynamic linker characteristics... " >&6; }
5969 library_names_spec=
5970 libname_spec='lib$name'
5971 soname_spec=
5972 shrext=".so"
5973 postinstall_cmds=
5974 postuninstall_cmds=
5975 finish_cmds=
5976 finish_eval=
5977 shlibpath_var=
5978 shlibpath_overrides_runpath=unknown
5979 version_type=none
5980 dynamic_linker="$host_os ld.so"
5981 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5982 if test "$GCC" = yes; then
5983   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
5984   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
5985     # if the path contains ";" then we assume it to be the separator
5986     # otherwise default to the standard path separator (i.e. ":") - it is
5987     # assumed that no part of a normal pathname contains ";" but that should
5988     # okay in the real world where ";" in dirpaths is itself problematic.
5989     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
5990   else
5991     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
5992   fi
5993 else
5994   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5995 fi
5996 need_lib_prefix=unknown
5997 hardcode_into_libs=no
5998
5999 # when you set need_version to no, make sure it does not cause -set_version
6000 # flags to be left without arguments
6001 need_version=unknown
6002
6003 case $host_os in
6004 aix3*)
6005   version_type=linux
6006   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6007   shlibpath_var=LIBPATH
6008
6009   # AIX 3 has no versioning support, so we append a major version to the name.
6010   soname_spec='${libname}${release}${shared_ext}$major'
6011   ;;
6012
6013 aix[4-9]*)
6014   version_type=linux
6015   need_lib_prefix=no
6016   need_version=no
6017   hardcode_into_libs=yes
6018   if test "$host_cpu" = ia64; then
6019     # AIX 5 supports IA64
6020     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6021     shlibpath_var=LD_LIBRARY_PATH
6022   else
6023     # With GCC up to 2.95.x, collect2 would create an import file
6024     # for dependence libraries.  The import file would start with
6025     # the line `#! .'.  This would cause the generated library to
6026     # depend on `.', always an invalid library.  This was fixed in
6027     # development snapshots of GCC prior to 3.0.
6028     case $host_os in
6029       aix4 | aix4.[01] | aix4.[01].*)
6030       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6031            echo ' yes '
6032            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6033         :
6034       else
6035         can_build_shared=no
6036       fi
6037       ;;
6038     esac
6039     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6040     # soname into executable. Probably we can add versioning support to
6041     # collect2, so additional links can be useful in future.
6042     if test "$aix_use_runtimelinking" = yes; then
6043       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6044       # instead of lib<name>.a to let people know that these are not
6045       # typical AIX shared libraries.
6046       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6047     else
6048       # We preserve .a as extension for shared libraries through AIX4.2
6049       # and later when we are not doing run time linking.
6050       library_names_spec='${libname}${release}.a $libname.a'
6051       soname_spec='${libname}${release}${shared_ext}$major'
6052     fi
6053     shlibpath_var=LIBPATH
6054   fi
6055   ;;
6056
6057 amigaos*)
6058   library_names_spec='$libname.ixlibrary $libname.a'
6059   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6060   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'
6061   ;;
6062
6063 beos*)
6064   library_names_spec='${libname}${shared_ext}'
6065   dynamic_linker="$host_os ld.so"
6066   shlibpath_var=LIBRARY_PATH
6067   ;;
6068
6069 bsdi4*)
6070   version_type=linux
6071   need_version=no
6072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6073   soname_spec='${libname}${release}${shared_ext}$major'
6074   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6075   shlibpath_var=LD_LIBRARY_PATH
6076   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6077   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6078   # the default ld.so.conf also contains /usr/contrib/lib and
6079   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6080   # libtool to hard-code these into programs
6081   ;;
6082
6083 cygwin* | mingw* | pw32*)
6084   version_type=windows
6085   shrext=".dll"
6086   need_version=no
6087   need_lib_prefix=no
6088
6089   case $GCC,$host_os in
6090   yes,cygwin* | yes,mingw* | yes,pw32*)
6091     library_names_spec='$libname.dll.a'
6092     # DLL is installed to $(libdir)/../bin by postinstall_cmds
6093     postinstall_cmds='base_file=`basename \${file}`~
6094       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6095       dldir=$destdir/`dirname \$dlpath`~
6096       test -d \$dldir || mkdir -p \$dldir~
6097       $install_prog $dir/$dlname \$dldir/$dlname'
6098     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6099       dlpath=$dir/\$dldll~
6100        $rm \$dlpath'
6101     shlibpath_overrides_runpath=yes
6102
6103     case $host_os in
6104     cygwin*)
6105       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6106       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6107       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
6108       ;;
6109     mingw*)
6110       # MinGW DLLs use traditional 'lib' prefix
6111       soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6112       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
6113       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6114         # It is most probably a Windows format PATH printed by
6115         # mingw gcc, but we are running on Cygwin. Gcc prints its search
6116         # path with ; separators, and with drive letters. We can handle the
6117         # drive letters (cygwin fileutils understands them), so leave them,
6118         # especially as we might pass files found there to a mingw objdump,
6119         # which wouldn't understand a cygwinified path. Ahh.
6120         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6121       else
6122         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6123       fi
6124       ;;
6125     pw32*)
6126       # pw32 DLLs use 'pw' prefix rather than 'lib'
6127       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
6128       ;;
6129     esac
6130     ;;
6131
6132   *)
6133     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6134     ;;
6135   esac
6136   dynamic_linker='Win32 ld.exe'
6137   # FIXME: first we should search . and the directory the executable is in
6138   shlibpath_var=PATH
6139   ;;
6140
6141 darwin* | rhapsody*)
6142   dynamic_linker="$host_os dyld"
6143   version_type=darwin
6144   need_lib_prefix=no
6145   need_version=no
6146   # FIXME: Relying on posixy $() will cause problems for
6147   #        cross-compilation, but unfortunately the echo tests do not
6148   #        yet detect zsh echo's removal of \ escapes.
6149   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6150   soname_spec='${libname}${release}${major}$shared_ext'
6151   shlibpath_overrides_runpath=yes
6152   shlibpath_var=DYLD_LIBRARY_PATH
6153   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
6154   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6155   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6156   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"`
6157   fi
6158   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6159   ;;
6160
6161 dgux*)
6162   version_type=linux
6163   need_lib_prefix=no
6164   need_version=no
6165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6166   soname_spec='${libname}${release}${shared_ext}$major'
6167   shlibpath_var=LD_LIBRARY_PATH
6168   ;;
6169
6170 freebsd1*)
6171   dynamic_linker=no
6172   ;;
6173
6174 freebsd*)
6175   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6176   version_type=freebsd-$objformat
6177   case $version_type in
6178     freebsd-elf*)
6179       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6180       need_version=no
6181       need_lib_prefix=no
6182       ;;
6183     freebsd-*)
6184       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6185       need_version=yes
6186       ;;
6187   esac
6188   shlibpath_var=LD_LIBRARY_PATH
6189   case $host_os in
6190   freebsd2*)
6191     shlibpath_overrides_runpath=yes
6192     ;;
6193   freebsd3.01* | freebsdelf3.01*)
6194     shlibpath_overrides_runpath=yes
6195     hardcode_into_libs=yes
6196     ;;
6197   *) # from 3.2 on
6198     shlibpath_overrides_runpath=no
6199     hardcode_into_libs=yes
6200     ;;
6201   esac
6202   ;;
6203
6204 gnu*)
6205   version_type=linux
6206   need_lib_prefix=no
6207   need_version=no
6208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6209   soname_spec='${libname}${release}${shared_ext}$major'
6210   shlibpath_var=LD_LIBRARY_PATH
6211   hardcode_into_libs=yes
6212   ;;
6213
6214 hpux9* | hpux10* | hpux11*)
6215   # Give a soname corresponding to the major version so that dld.sl refuses to
6216   # link against other versions.
6217   version_type=sunos
6218   need_lib_prefix=no
6219   need_version=no
6220   case "$host_cpu" in
6221   ia64*)
6222     shrext='.so'
6223     hardcode_into_libs=yes
6224     dynamic_linker="$host_os dld.so"
6225     shlibpath_var=LD_LIBRARY_PATH
6226     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6227     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6228     soname_spec='${libname}${release}${shared_ext}$major'
6229     if test "X$HPUX_IA64_MODE" = X32; then
6230       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6231     else
6232       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6233     fi
6234     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6235     ;;
6236    hppa*64*)
6237      shrext='.sl'
6238      hardcode_into_libs=yes
6239      dynamic_linker="$host_os dld.sl"
6240      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6241      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6242      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6243      soname_spec='${libname}${release}${shared_ext}$major'
6244      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6245      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6246      ;;
6247    *)
6248     shrext='.sl'
6249     dynamic_linker="$host_os dld.sl"
6250     shlibpath_var=SHLIB_PATH
6251     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6252     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6253     soname_spec='${libname}${release}${shared_ext}$major'
6254     ;;
6255   esac
6256   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6257   postinstall_cmds='chmod 555 $lib'
6258   ;;
6259
6260 irix5* | irix6* | nonstopux*)
6261   case $host_os in
6262     nonstopux*) version_type=nonstopux ;;
6263     *)
6264         if test "$lt_cv_prog_gnu_ld" = yes; then
6265                 version_type=linux
6266         else
6267                 version_type=irix
6268         fi ;;
6269   esac
6270   need_lib_prefix=no
6271   need_version=no
6272   soname_spec='${libname}${release}${shared_ext}$major'
6273   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6274   case $host_os in
6275   irix5* | nonstopux*)
6276     libsuff= shlibsuff=
6277     ;;
6278   *)
6279     case $LD in # libtool.m4 will add one of these switches to LD
6280     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6281       libsuff= shlibsuff= libmagic=32-bit;;
6282     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6283       libsuff=32 shlibsuff=N32 libmagic=N32;;
6284     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6285       libsuff=64 shlibsuff=64 libmagic=64-bit;;
6286     *) libsuff= shlibsuff= libmagic=never-match;;
6287     esac
6288     ;;
6289   esac
6290   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6291   shlibpath_overrides_runpath=no
6292   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6293   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6294   hardcode_into_libs=yes
6295   ;;
6296
6297 # No shared lib support for Linux oldld, aout, or coff.
6298 linux*oldld* | linux*aout* | linux*coff*)
6299   dynamic_linker=no
6300   ;;
6301
6302 # This must be Linux ELF.
6303 linux*|k*bsd*-gnu)
6304   version_type=linux
6305   need_lib_prefix=no
6306   need_version=no
6307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6308   soname_spec='${libname}${release}${shared_ext}$major'
6309   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6310   shlibpath_var=LD_LIBRARY_PATH
6311   shlibpath_overrides_runpath=no
6312   # This implies no fast_install, which is unacceptable.
6313   # Some rework will be needed to allow for fast_install
6314   # before this can be enabled.
6315   hardcode_into_libs=yes
6316
6317   # We used to test for /lib/ld.so.1 and disable shared libraries on
6318   # powerpc, because MkLinux only supported shared libraries with the
6319   # GNU dynamic linker.  Since this was broken with cross compilers,
6320   # most powerpc-linux boxes support dynamic linking these days and
6321   # people can always --disable-shared, the test was removed, and we
6322   # assume the GNU/Linux dynamic linker is in use.
6323   dynamic_linker='GNU/Linux ld.so'
6324   ;;
6325
6326 netbsd*)
6327   version_type=sunos
6328   need_lib_prefix=no
6329   need_version=no
6330   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6331     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6332     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6333     dynamic_linker='NetBSD (a.out) ld.so'
6334   else
6335     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
6336     soname_spec='${libname}${release}${shared_ext}$major'
6337     dynamic_linker='NetBSD ld.elf_so'
6338   fi
6339   shlibpath_var=LD_LIBRARY_PATH
6340   shlibpath_overrides_runpath=yes
6341   hardcode_into_libs=yes
6342   ;;
6343
6344 newsos6)
6345   version_type=linux
6346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6347   shlibpath_var=LD_LIBRARY_PATH
6348   shlibpath_overrides_runpath=yes
6349   ;;
6350
6351 nto-qnx)
6352   version_type=linux
6353   need_lib_prefix=no
6354   need_version=no
6355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6356   soname_spec='${libname}${release}${shared_ext}$major'
6357   shlibpath_var=LD_LIBRARY_PATH
6358   shlibpath_overrides_runpath=yes
6359   ;;
6360
6361 openbsd*)
6362   version_type=sunos
6363   need_lib_prefix=no
6364   need_version=no
6365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6366   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6367   shlibpath_var=LD_LIBRARY_PATH
6368   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6369     case $host_os in
6370       openbsd2.[89] | openbsd2.[89].*)
6371         shlibpath_overrides_runpath=no
6372         ;;
6373       *)
6374         shlibpath_overrides_runpath=yes
6375         ;;
6376       esac
6377   else
6378     shlibpath_overrides_runpath=yes
6379   fi
6380   ;;
6381
6382 os2*)
6383   libname_spec='$name'
6384   shrext=".dll"
6385   need_lib_prefix=no
6386   library_names_spec='$libname${shared_ext} $libname.a'
6387   dynamic_linker='OS/2 ld.exe'
6388   shlibpath_var=LIBPATH
6389   ;;
6390
6391 osf3* | osf4* | osf5*)
6392   version_type=osf
6393   need_lib_prefix=no
6394   need_version=no
6395   soname_spec='${libname}${release}${shared_ext}$major'
6396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6397   shlibpath_var=LD_LIBRARY_PATH
6398   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6399   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6400   ;;
6401
6402 sco3.2v5*)
6403   version_type=osf
6404   soname_spec='${libname}${release}${shared_ext}$major'
6405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6406   shlibpath_var=LD_LIBRARY_PATH
6407   ;;
6408
6409 solaris*)
6410   version_type=linux
6411   need_lib_prefix=no
6412   need_version=no
6413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6414   soname_spec='${libname}${release}${shared_ext}$major'
6415   shlibpath_var=LD_LIBRARY_PATH
6416   shlibpath_overrides_runpath=yes
6417   hardcode_into_libs=yes
6418   # ldd complains unless libraries are executable
6419   postinstall_cmds='chmod +x $lib'
6420   ;;
6421
6422 sunos4*)
6423   version_type=sunos
6424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6425   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6426   shlibpath_var=LD_LIBRARY_PATH
6427   shlibpath_overrides_runpath=yes
6428   if test "$with_gnu_ld" = yes; then
6429     need_lib_prefix=no
6430   fi
6431   need_version=yes
6432   ;;
6433
6434 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6435   version_type=linux
6436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6437   soname_spec='${libname}${release}${shared_ext}$major'
6438   shlibpath_var=LD_LIBRARY_PATH
6439   case $host_vendor in
6440     sni)
6441       shlibpath_overrides_runpath=no
6442       need_lib_prefix=no
6443       export_dynamic_flag_spec='${wl}-Blargedynsym'
6444       runpath_var=LD_RUN_PATH
6445       ;;
6446     siemens)
6447       need_lib_prefix=no
6448       ;;
6449     motorola)
6450       need_lib_prefix=no
6451       need_version=no
6452       shlibpath_overrides_runpath=no
6453       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6454       ;;
6455   esac
6456   ;;
6457
6458 sysv4*MP*)
6459   if test -d /usr/nec ;then
6460     version_type=linux
6461     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6462     soname_spec='$libname${shared_ext}.$major'
6463     shlibpath_var=LD_LIBRARY_PATH
6464   fi
6465   ;;
6466
6467 uts4*)
6468   version_type=linux
6469   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6470   soname_spec='${libname}${release}${shared_ext}$major'
6471   shlibpath_var=LD_LIBRARY_PATH
6472   ;;
6473
6474 *)
6475   dynamic_linker=no
6476   ;;
6477 esac
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
6479 $as_echo "$dynamic_linker" >&6; }
6480 test "$dynamic_linker" = no && can_build_shared=no
6481
6482
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
6484 $as_echo_n "checking which variable specifies run-time library path... " >&6; }
6485 if test "${libltdl_cv_shlibpath_var+set}" = set; then :
6486   $as_echo_n "(cached) " >&6
6487 else
6488   libltdl_cv_shlibpath_var="$shlibpath_var"
6489 fi
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
6491 $as_echo "$libltdl_cv_shlibpath_var" >&6; }
6492 if test -n "$libltdl_cv_shlibpath_var"; then
6493
6494 cat >>confdefs.h <<_ACEOF
6495 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
6496 _ACEOF
6497
6498 fi
6499
6500 fi
6501
6502 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
6503
6504
6505 # Possibly build libgcj as many sub-libraries.
6506 # Check whether --enable-libgcj-sublibs was given.
6507 if test "${enable_libgcj_sublibs+set}" = set; then :
6508   enableval=$enable_libgcj_sublibs;
6509 fi
6510
6511
6512 if test -z "$enable_libgcj_sublibs"; then
6513    enable_libgcj_sublibs=$enable_libgcj_sublibs_default
6514 fi
6515  if test "$enable_libgcj_sublibs" = yes; then
6516   BUILD_SUBLIBS_TRUE=
6517   BUILD_SUBLIBS_FALSE='#'
6518 else
6519   BUILD_SUBLIBS_TRUE='#'
6520   BUILD_SUBLIBS_FALSE=
6521 fi
6522
6523 if test "$enable_libgcj_sublibs" = yes ; then
6524   # In theory we could make do with only one override and simply
6525   # tag "_bc" onto the end of it when we use it to generate the
6526   # spec, but that's an ugly thing to do when there are multiple
6527   # words in the string and you're relying on the ordering to
6528   # append the correct one.
6529   libgcj_spec_lgcj_override="-lgcj-noncore -lgcj"
6530   libgcj_spec_lgcj_bc_override="-lgcj-noncore -lgcj_bc"
6531 fi
6532
6533
6534 # See if the user has requested runtime debugging.
6535 LIBGCJDEBUG="disable"
6536
6537 # Check whether --enable-libgcj-debug was given.
6538 if test "${enable_libgcj_debug+set}" = set; then :
6539   enableval=$enable_libgcj_debug; if test "$enable_libgcj_debug" = yes; then
6540
6541 $as_echo "#define __GCJ_DEBUG 1" >>confdefs.h
6542
6543     LIBGCJDEBUG="enable"
6544   fi
6545 fi
6546
6547
6548
6549 # Check whether --with-escher was given.
6550 if test "${with_escher+set}" = set; then :
6551   withval=$with_escher;
6552 fi
6553
6554 case "$with_escher" in
6555 "")
6556         use_escher=false
6557         ;;
6558 "no")
6559         use_escher=false
6560         ;;
6561 "yes")
6562         as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
6563         ;;
6564 *)
6565         use_escher=true
6566         ;;
6567 esac
6568
6569 # Determine which AWT peer libraries to build
6570 # Check whether --enable-java-awt was given.
6571 if test "${enable_java_awt+set}" = set; then :
6572   enableval=$enable_java_awt;
6573 fi
6574
6575
6576 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6577 use_xlib_awt=""
6578 use_gtk_awt=""
6579 use_qt_awt=""
6580 use_x_awt=""
6581 # The default toolkit to use is the first one specified.
6582 TOOLKIT=
6583
6584
6585 for peer in $peerlibs ; do
6586   case $peer in
6587     xlib)
6588       if test "$no_x" = yes; then
6589         echo "*** xlib peers requested but no X library available" 1>&2
6590         exit 1
6591       else
6592         use_xlib_awt="yes"
6593         if test -z "$TOOLKIT"; then
6594            TOOLKIT=gnu.awt.xlib.XToolkit
6595         fi
6596       fi
6597       ;;
6598     gtk)
6599       if test "$no_x" = yes; then
6600          echo "*** gtk peers requested but no X library available" 1>&2
6601          exit 1
6602       else
6603          use_gtk_awt=yes
6604          if test -z "$TOOLKIT"; then
6605             TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
6606          fi
6607       fi
6608       ;;
6609     qt)
6610       if test "$no_x" = yes; then
6611          # Perhaps we should admit the possibility of embedded Qt.
6612          echo "*** Qt peers requested but no X library available" 1>&2
6613          exit 1
6614       else
6615          use_qt_awt=yes
6616          if test -z "$TOOLKIT"; then
6617             TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
6618          fi
6619       fi
6620       ;;
6621     x)
6622       use_x_awt=yes
6623       if test -z "$TOOLKIT"; then
6624          TOOLKIT=gnu.java.awt.peer.x.XToolkit
6625       fi
6626       ;;
6627     no)
6628       use_xlib_awt=
6629       use_gtk_awt=
6630       use_qt_awt=
6631       use_x_awt=
6632       break
6633       ;;
6634     *)
6635       echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6636       exit 1
6637   esac
6638 done
6639
6640  if test "$use_xlib_awt" = yes; then
6641   XLIB_AWT_TRUE=
6642   XLIB_AWT_FALSE='#'
6643 else
6644   XLIB_AWT_TRUE='#'
6645   XLIB_AWT_FALSE=
6646 fi
6647
6648  if test "$use_x_awt" = yes; then
6649   X_AWT_TRUE=
6650   X_AWT_FALSE='#'
6651 else
6652   X_AWT_TRUE='#'
6653   X_AWT_FALSE=
6654 fi
6655
6656
6657
6658 cat >>confdefs.h <<_ACEOF
6659 #define AWT_TOOLKIT "$TOOLKIT"
6660 _ACEOF
6661
6662
6663 expanded_prefix=$prefix
6664 if test "X$prefix" = XNONE; then
6665   expanded_prefix=${ac_default_prefix}
6666 fi
6667
6668
6669 cat >>confdefs.h <<_ACEOF
6670 #define LIBGCJ_PREFIX "$expanded_prefix"
6671 _ACEOF
6672
6673
6674 # Create standard.omit based on decisions we just made.
6675 cp $srcdir/standard.omit.in standard.omit
6676 if test "$use_xlib_awt" != yes; then
6677    echo gnu/awt/xlib >> standard.omit
6678    echo gnu/gcj/xlib >> standard.omit
6679 fi
6680 if test "$use_x_awt" != yes; then
6681    echo gnu/java/awt/peer/x >> standard.omit
6682 fi
6683
6684 # Tools that need to be compiled against classpath's tools classes
6685 : > vm-tools-packages
6686 for package in gnu/gcj/tools/gc_analyze ; do
6687     echo $package >> standard.omit
6688     echo $package >> vm-tools-packages
6689 done
6690
6691 if test -z "${with_multisubdir}"; then
6692    builddotdot=.
6693 else
6694    builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
6695 fi
6696
6697 NATIVE=yes
6698
6699 # Which gcj and host gcj (for ecjx) do we use?
6700 which_gcj=default
6701 host_exeext=${ac_exeext}
6702 GCJ_FOR_ECJX=
6703 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
6704 if test -n "${with_cross_host}"; then
6705   # We are being configured with a cross compiler. We can't
6706   # use ac_exeext, because that is for the target platform.
6707   NATIVE=no
6708   cross_host_exeext=
6709   GCJ_FOR_ECJX="${with_cross_host}-gcj"
6710   case "${with_cross_host}" in
6711      *mingw* | *cygwin*)
6712          cross_host_exeext=.exe
6713      ;;
6714   esac
6715   host_exeext=${cross_host_exeext}
6716   if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
6717      if test x"$build_noncanonical" = x"$with_cross_host"; then
6718         # Ordinary cross (host!=target and host=build)
6719         which_gcj=built
6720      else
6721         # Canadian cross (host!=target and host!=build)
6722         which_gcj=cross
6723      fi
6724   else
6725      which_gcj=cross
6726   fi
6727 else
6728   # We are being configured with a native or crossed-native compiler
6729   if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
6730      if test x"$build" = x"$host"; then
6731         # True native build (host=target and host=build)
6732         which_gcj=built
6733      else
6734         # Crossed-native build (host=target and host!=build)
6735         which_gcj=cross
6736      fi
6737   else
6738      which_gcj=path
6739   fi
6740 fi
6741 libgcjdir=`${PWDCMD-pwd}`
6742 case $GCJ in
6743 *" -B"*)
6744   # Just in case there is a comma in the build dir, quote it for the
6745   # sed command below.
6746   case $libgcjdir in
6747   *[,\\]*) qlibgcjdir=`echo "$libgcjdir" | sed 's:[,\\]:\\&:g'`;;
6748   *) qlibgcjdir=$libgcjdir;;
6749   esac
6750   GCJ=`echo "$GCJ" | sed "s, -B, -B$qlibgcjdir/&,"`
6751   ;;
6752 *)
6753   GCJ=$GCJ" -B$libgcjdir/"
6754   ;;
6755 esac
6756 case "${which_gcj}" in
6757    built)
6758       GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
6759    ;;
6760    cross)
6761       if test "x${with_newlib}" = "xyes"; then
6762          # FIXME (comment): Why is this needed?
6763          GCC_UNWIND_INCLUDE=
6764       fi
6765       GCJH='$(target_noncanonical)-gcjh'
6766    ;;
6767    path)
6768       GCJH=gcjh
6769    ;;
6770 esac
6771 JAVAC="$GCJ -C"
6772 export JAVAC
6773
6774
6775
6776
6777
6778 # Create it, so that compile/link tests don't fail
6779 test -f libgcj.spec || touch libgcj.spec
6780
6781
6782
6783 # Set up to configure Classpath.
6784 # FIXME: no supported way to pass args in autoconf.
6785 # Disable tool wrappers to avoid ltdl.h configure check.
6786 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
6787 ac_configure_args="$ac_configure_args --disable-load-library"
6788 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
6789 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
6790 dir1=`cd $srcdir && pwd`
6791 dir2=`pwd`
6792 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
6793 ac_configure_args="$ac_configure_args --disable-core-jni"
6794 ac_configure_args="$ac_configure_args --disable-examples"
6795 ac_configure_args="$ac_configure_args --with-glibj=build"
6796 if test "$browser_plugin_enabled" != yes; then
6797   ac_configure_args="$ac_configure_args --disable-plugin"
6798 else
6799   ac_configure_args="$ac_configure_args --enable-plugin"
6800 fi
6801 if test "$gconf_enabled" != yes; then
6802   ac_configure_args="$ac_configure_args --disable-gconf-peer"
6803   ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
6804 fi
6805 if test "$use_gtk_awt" != yes; then
6806   ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
6807 fi
6808 if test "$use_qt_awt" != yes; then
6809   ac_configure_args="$ac_configure_args --disable-qt-peer"
6810 else
6811   # We need this as qt is disabled by default in classpath.
6812   ac_configure_args="$ac_configure_args --enable-qt-peer"
6813 fi
6814 if test "$use_x_awt" != yes; then
6815   ac_configure_args="$ac_configure_args --without-escher"
6816 else
6817   # We need this as escher is disabled by default in classpath.
6818   if test "$use_escher" != true; then
6819     as_fn_error "Please supply an absolute path to the Escher library" "$LINENO" 5
6820   else
6821     ac_configure_args="$ac_configure_args --with-escher=$with_escher"
6822   fi
6823 fi
6824 if test "x$BUILD_GJDOC" = xno; then
6825   ac_configure_args="$ac_configure_args --disable-gjdoc"
6826 fi
6827 # -Werror causes unavoidable problems in code using alsa.
6828 ac_configure_args="$ac_configure_args --disable-regen-headers"
6829 ac_configure_args="$ac_configure_args --disable-Werror"
6830
6831 # Only use libltdl for non-newlib builds.
6832 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
6833      case $enable_ltdl_convenience in
6834   no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
6835   "") enable_ltdl_convenience=yes
6836       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
6837   esac
6838   LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
6839   LTDLINCL='-I${top_srcdir}/''libltdl'
6840   # For backwards non-gettext consistent compatibility...
6841   INCLTDL="$LTDLINCL"
6842
6843    enable_dlopen=yes
6844
6845
6846
6847    DIRLTDL=libltdl
6848
6849 $as_echo "#define USE_LTDL 1" >>confdefs.h
6850
6851    # Sigh.  Libtool's macro doesn't do the right thing.
6852    INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
6853    # FIXME: this is a hack.
6854    sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
6855    ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
6856 fi
6857
6858
6859
6860 case `pwd` in
6861   *\ * | *\     *)
6862     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6863 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6864 esac
6865
6866
6867
6868 macro_version='2.2.7a'
6869 macro_revision='1.3134'
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883 ltmain="$ac_aux_dir/ltmain.sh"
6884
6885 # Backslashify metacharacters that are still active within
6886 # double-quoted strings.
6887 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6888
6889 # Same as above, but do not quote variable references.
6890 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6891
6892 # Sed substitution to delay expansion of an escaped shell variable in a
6893 # double_quote_subst'ed string.
6894 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6895
6896 # Sed substitution to delay expansion of an escaped single quote.
6897 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6898
6899 # Sed substitution to avoid accidental globbing in evaled expressions
6900 no_glob_subst='s/\*/\\\*/g'
6901
6902 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6903 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6904 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6905
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6907 $as_echo_n "checking how to print strings... " >&6; }
6908 # Test print first, because it will be a builtin if present.
6909 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6910    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6911   ECHO='print -r --'
6912 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6913   ECHO='printf %s\n'
6914 else
6915   # Use this function as a fallback that always works.
6916   func_fallback_echo ()
6917   {
6918     eval 'cat <<_LTECHO_EOF
6919 $1
6920 _LTECHO_EOF'
6921   }
6922   ECHO='func_fallback_echo'
6923 fi
6924
6925 # func_echo_all arg...
6926 # Invoke $ECHO with all args, space-separated.
6927 func_echo_all ()
6928 {
6929     $ECHO ""
6930 }
6931
6932 case "$ECHO" in
6933   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6934 $as_echo "printf" >&6; } ;;
6935   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6936 $as_echo "print -r" >&6; } ;;
6937   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6938 $as_echo "cat" >&6; } ;;
6939 esac
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6955 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6956 if test "${ac_cv_path_SED+set}" = set; then :
6957   $as_echo_n "(cached) " >&6
6958 else
6959             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6960      for ac_i in 1 2 3 4 5 6 7; do
6961        ac_script="$ac_script$as_nl$ac_script"
6962      done
6963      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6964      { ac_script=; unset ac_script;}
6965      if test -z "$SED"; then
6966   ac_path_SED_found=false
6967   # Loop through the user's path and test for each of PROGNAME-LIST
6968   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969 for as_dir in $PATH
6970 do
6971   IFS=$as_save_IFS
6972   test -z "$as_dir" && as_dir=.
6973     for ac_prog in sed gsed; do
6974     for ac_exec_ext in '' $ac_executable_extensions; do
6975       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6976       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6977 # Check for GNU ac_path_SED and select it if it is found.
6978   # Check for GNU $ac_path_SED
6979 case `"$ac_path_SED" --version 2>&1` in
6980 *GNU*)
6981   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6982 *)
6983   ac_count=0
6984   $as_echo_n 0123456789 >"conftest.in"
6985   while :
6986   do
6987     cat "conftest.in" "conftest.in" >"conftest.tmp"
6988     mv "conftest.tmp" "conftest.in"
6989     cp "conftest.in" "conftest.nl"
6990     $as_echo '' >> "conftest.nl"
6991     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6992     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6993     as_fn_arith $ac_count + 1 && ac_count=$as_val
6994     if test $ac_count -gt ${ac_path_SED_max-0}; then
6995       # Best one so far, save it but keep looking for a better one
6996       ac_cv_path_SED="$ac_path_SED"
6997       ac_path_SED_max=$ac_count
6998     fi
6999     # 10*(2^10) chars as input seems more than enough
7000     test $ac_count -gt 10 && break
7001   done
7002   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7003 esac
7004
7005       $ac_path_SED_found && break 3
7006     done
7007   done
7008   done
7009 IFS=$as_save_IFS
7010   if test -z "$ac_cv_path_SED"; then
7011     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7012   fi
7013 else
7014   ac_cv_path_SED=$SED
7015 fi
7016
7017 fi
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7019 $as_echo "$ac_cv_path_SED" >&6; }
7020  SED="$ac_cv_path_SED"
7021   rm -f conftest.sed
7022
7023 test -z "$SED" && SED=sed
7024 Xsed="$SED -e 1s/^X//"
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7037 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7038 if test "${ac_cv_path_GREP+set}" = set; then :
7039   $as_echo_n "(cached) " >&6
7040 else
7041   if test -z "$GREP"; then
7042   ac_path_GREP_found=false
7043   # Loop through the user's path and test for each of PROGNAME-LIST
7044   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7046 do
7047   IFS=$as_save_IFS
7048   test -z "$as_dir" && as_dir=.
7049     for ac_prog in grep ggrep; do
7050     for ac_exec_ext in '' $ac_executable_extensions; do
7051       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7052       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7053 # Check for GNU ac_path_GREP and select it if it is found.
7054   # Check for GNU $ac_path_GREP
7055 case `"$ac_path_GREP" --version 2>&1` in
7056 *GNU*)
7057   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7058 *)
7059   ac_count=0
7060   $as_echo_n 0123456789 >"conftest.in"
7061   while :
7062   do
7063     cat "conftest.in" "conftest.in" >"conftest.tmp"
7064     mv "conftest.tmp" "conftest.in"
7065     cp "conftest.in" "conftest.nl"
7066     $as_echo 'GREP' >> "conftest.nl"
7067     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7068     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7069     as_fn_arith $ac_count + 1 && ac_count=$as_val
7070     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7071       # Best one so far, save it but keep looking for a better one
7072       ac_cv_path_GREP="$ac_path_GREP"
7073       ac_path_GREP_max=$ac_count
7074     fi
7075     # 10*(2^10) chars as input seems more than enough
7076     test $ac_count -gt 10 && break
7077   done
7078   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7079 esac
7080
7081       $ac_path_GREP_found && break 3
7082     done
7083   done
7084   done
7085 IFS=$as_save_IFS
7086   if test -z "$ac_cv_path_GREP"; then
7087     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7088   fi
7089 else
7090   ac_cv_path_GREP=$GREP
7091 fi
7092
7093 fi
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7095 $as_echo "$ac_cv_path_GREP" >&6; }
7096  GREP="$ac_cv_path_GREP"
7097
7098
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7100 $as_echo_n "checking for egrep... " >&6; }
7101 if test "${ac_cv_path_EGREP+set}" = set; then :
7102   $as_echo_n "(cached) " >&6
7103 else
7104   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7105    then ac_cv_path_EGREP="$GREP -E"
7106    else
7107      if test -z "$EGREP"; then
7108   ac_path_EGREP_found=false
7109   # Loop through the user's path and test for each of PROGNAME-LIST
7110   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7112 do
7113   IFS=$as_save_IFS
7114   test -z "$as_dir" && as_dir=.
7115     for ac_prog in egrep; do
7116     for ac_exec_ext in '' $ac_executable_extensions; do
7117       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7118       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7119 # Check for GNU ac_path_EGREP and select it if it is found.
7120   # Check for GNU $ac_path_EGREP
7121 case `"$ac_path_EGREP" --version 2>&1` in
7122 *GNU*)
7123   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7124 *)
7125   ac_count=0
7126   $as_echo_n 0123456789 >"conftest.in"
7127   while :
7128   do
7129     cat "conftest.in" "conftest.in" >"conftest.tmp"
7130     mv "conftest.tmp" "conftest.in"
7131     cp "conftest.in" "conftest.nl"
7132     $as_echo 'EGREP' >> "conftest.nl"
7133     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7134     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7135     as_fn_arith $ac_count + 1 && ac_count=$as_val
7136     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7137       # Best one so far, save it but keep looking for a better one
7138       ac_cv_path_EGREP="$ac_path_EGREP"
7139       ac_path_EGREP_max=$ac_count
7140     fi
7141     # 10*(2^10) chars as input seems more than enough
7142     test $ac_count -gt 10 && break
7143   done
7144   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7145 esac
7146
7147       $ac_path_EGREP_found && break 3
7148     done
7149   done
7150   done
7151 IFS=$as_save_IFS
7152   if test -z "$ac_cv_path_EGREP"; then
7153     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7154   fi
7155 else
7156   ac_cv_path_EGREP=$EGREP
7157 fi
7158
7159    fi
7160 fi
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7162 $as_echo "$ac_cv_path_EGREP" >&6; }
7163  EGREP="$ac_cv_path_EGREP"
7164
7165
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7167 $as_echo_n "checking for fgrep... " >&6; }
7168 if test "${ac_cv_path_FGREP+set}" = set; then :
7169   $as_echo_n "(cached) " >&6
7170 else
7171   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7172    then ac_cv_path_FGREP="$GREP -F"
7173    else
7174      if test -z "$FGREP"; then
7175   ac_path_FGREP_found=false
7176   # Loop through the user's path and test for each of PROGNAME-LIST
7177   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7179 do
7180   IFS=$as_save_IFS
7181   test -z "$as_dir" && as_dir=.
7182     for ac_prog in fgrep; do
7183     for ac_exec_ext in '' $ac_executable_extensions; do
7184       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7185       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7186 # Check for GNU ac_path_FGREP and select it if it is found.
7187   # Check for GNU $ac_path_FGREP
7188 case `"$ac_path_FGREP" --version 2>&1` in
7189 *GNU*)
7190   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7191 *)
7192   ac_count=0
7193   $as_echo_n 0123456789 >"conftest.in"
7194   while :
7195   do
7196     cat "conftest.in" "conftest.in" >"conftest.tmp"
7197     mv "conftest.tmp" "conftest.in"
7198     cp "conftest.in" "conftest.nl"
7199     $as_echo 'FGREP' >> "conftest.nl"
7200     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7201     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7202     as_fn_arith $ac_count + 1 && ac_count=$as_val
7203     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7204       # Best one so far, save it but keep looking for a better one
7205       ac_cv_path_FGREP="$ac_path_FGREP"
7206       ac_path_FGREP_max=$ac_count
7207     fi
7208     # 10*(2^10) chars as input seems more than enough
7209     test $ac_count -gt 10 && break
7210   done
7211   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7212 esac
7213
7214       $ac_path_FGREP_found && break 3
7215     done
7216   done
7217   done
7218 IFS=$as_save_IFS
7219   if test -z "$ac_cv_path_FGREP"; then
7220     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7221   fi
7222 else
7223   ac_cv_path_FGREP=$FGREP
7224 fi
7225
7226    fi
7227 fi
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7229 $as_echo "$ac_cv_path_FGREP" >&6; }
7230  FGREP="$ac_cv_path_FGREP"
7231
7232
7233 test -z "$GREP" && GREP=grep
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253 # Check whether --with-gnu-ld was given.
7254 if test "${with_gnu_ld+set}" = set; then :
7255   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7256 else
7257   with_gnu_ld=no
7258 fi
7259
7260 ac_prog=ld
7261 if test "$GCC" = yes; then
7262   # Check if gcc -print-prog-name=ld gives a path.
7263   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7264 $as_echo_n "checking for ld used by $CC... " >&6; }
7265   case $host in
7266   *-*-mingw*)
7267     # gcc leaves a trailing carriage return which upsets mingw
7268     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7269   *)
7270     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7271   esac
7272   case $ac_prog in
7273     # Accept absolute paths.
7274     [\\/]* | ?:[\\/]*)
7275       re_direlt='/[^/][^/]*/\.\./'
7276       # Canonicalize the pathname of ld
7277       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7278       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7279         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7280       done
7281       test -z "$LD" && LD="$ac_prog"
7282       ;;
7283   "")
7284     # If it fails, then pretend we aren't using GCC.
7285     ac_prog=ld
7286     ;;
7287   *)
7288     # If it is relative, then search for the first ld in PATH.
7289     with_gnu_ld=unknown
7290     ;;
7291   esac
7292 elif test "$with_gnu_ld" = yes; then
7293   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7294 $as_echo_n "checking for GNU ld... " >&6; }
7295 else
7296   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7297 $as_echo_n "checking for non-GNU ld... " >&6; }
7298 fi
7299 if test "${lt_cv_path_LD+set}" = set; then :
7300   $as_echo_n "(cached) " >&6
7301 else
7302   if test -z "$LD"; then
7303   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7304   for ac_dir in $PATH; do
7305     IFS="$lt_save_ifs"
7306     test -z "$ac_dir" && ac_dir=.
7307     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7308       lt_cv_path_LD="$ac_dir/$ac_prog"
7309       # Check to see if the program is GNU ld.  I'd rather use --version,
7310       # but apparently some variants of GNU ld only accept -v.
7311       # Break only if it was the GNU/non-GNU ld that we prefer.
7312       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7313       *GNU* | *'with BFD'*)
7314         test "$with_gnu_ld" != no && break
7315         ;;
7316       *)
7317         test "$with_gnu_ld" != yes && break
7318         ;;
7319       esac
7320     fi
7321   done
7322   IFS="$lt_save_ifs"
7323 else
7324   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7325 fi
7326 fi
7327
7328 LD="$lt_cv_path_LD"
7329 if test -n "$LD"; then
7330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7331 $as_echo "$LD" >&6; }
7332 else
7333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334 $as_echo "no" >&6; }
7335 fi
7336 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7338 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7339 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7340   $as_echo_n "(cached) " >&6
7341 else
7342   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7343 case `$LD -v 2>&1 </dev/null` in
7344 *GNU* | *'with BFD'*)
7345   lt_cv_prog_gnu_ld=yes
7346   ;;
7347 *)
7348   lt_cv_prog_gnu_ld=no
7349   ;;
7350 esac
7351 fi
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7353 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7354 with_gnu_ld=$lt_cv_prog_gnu_ld
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7365 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7366 if test "${lt_cv_path_NM+set}" = set; then :
7367   $as_echo_n "(cached) " >&6
7368 else
7369   if test -n "$NM"; then
7370   # Let the user override the test.
7371   lt_cv_path_NM="$NM"
7372 else
7373   lt_nm_to_check="${ac_tool_prefix}nm"
7374   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7375     lt_nm_to_check="$lt_nm_to_check nm"
7376   fi
7377   for lt_tmp_nm in $lt_nm_to_check; do
7378     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7379     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7380       IFS="$lt_save_ifs"
7381       test -z "$ac_dir" && ac_dir=.
7382       tmp_nm="$ac_dir/$lt_tmp_nm"
7383       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7384         # Check to see if the nm accepts a BSD-compat flag.
7385         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7386         #   nm: unknown option "B" ignored
7387         # Tru64's nm complains that /dev/null is an invalid object file
7388         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7389         */dev/null* | *'Invalid file or object type'*)
7390           lt_cv_path_NM="$tmp_nm -B"
7391           break
7392           ;;
7393         *)
7394           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7395           */dev/null*)
7396             lt_cv_path_NM="$tmp_nm -p"
7397             break
7398             ;;
7399           *)
7400             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7401             continue # so that we can try to find one that supports BSD flags
7402             ;;
7403           esac
7404           ;;
7405         esac
7406       fi
7407     done
7408     IFS="$lt_save_ifs"
7409   done
7410   : ${lt_cv_path_NM=no}
7411 fi
7412 fi
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7414 $as_echo "$lt_cv_path_NM" >&6; }
7415 if test "$lt_cv_path_NM" != "no"; then
7416   NM="$lt_cv_path_NM"
7417 else
7418   # Didn't find any BSD compatible name lister, look for dumpbin.
7419   if test -n "$DUMPBIN"; then :
7420     # Let the user override the test.
7421   else
7422     if test -n "$ac_tool_prefix"; then
7423   for ac_prog in dumpbin "link -dump"
7424   do
7425     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7426 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428 $as_echo_n "checking for $ac_word... " >&6; }
7429 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7430   $as_echo_n "(cached) " >&6
7431 else
7432   if test -n "$DUMPBIN"; then
7433   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7434 else
7435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436 for as_dir in $PATH
7437 do
7438   IFS=$as_save_IFS
7439   test -z "$as_dir" && as_dir=.
7440     for ac_exec_ext in '' $ac_executable_extensions; do
7441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7442     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7444     break 2
7445   fi
7446 done
7447   done
7448 IFS=$as_save_IFS
7449
7450 fi
7451 fi
7452 DUMPBIN=$ac_cv_prog_DUMPBIN
7453 if test -n "$DUMPBIN"; then
7454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7455 $as_echo "$DUMPBIN" >&6; }
7456 else
7457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458 $as_echo "no" >&6; }
7459 fi
7460
7461
7462     test -n "$DUMPBIN" && break
7463   done
7464 fi
7465 if test -z "$DUMPBIN"; then
7466   ac_ct_DUMPBIN=$DUMPBIN
7467   for ac_prog in dumpbin "link -dump"
7468 do
7469   # Extract the first word of "$ac_prog", so it can be a program name with args.
7470 set dummy $ac_prog; ac_word=$2
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7472 $as_echo_n "checking for $ac_word... " >&6; }
7473 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7474   $as_echo_n "(cached) " >&6
7475 else
7476   if test -n "$ac_ct_DUMPBIN"; then
7477   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7478 else
7479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480 for as_dir in $PATH
7481 do
7482   IFS=$as_save_IFS
7483   test -z "$as_dir" && as_dir=.
7484     for ac_exec_ext in '' $ac_executable_extensions; do
7485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7486     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7488     break 2
7489   fi
7490 done
7491   done
7492 IFS=$as_save_IFS
7493
7494 fi
7495 fi
7496 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7497 if test -n "$ac_ct_DUMPBIN"; then
7498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7499 $as_echo "$ac_ct_DUMPBIN" >&6; }
7500 else
7501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502 $as_echo "no" >&6; }
7503 fi
7504
7505
7506   test -n "$ac_ct_DUMPBIN" && break
7507 done
7508
7509   if test "x$ac_ct_DUMPBIN" = x; then
7510     DUMPBIN=":"
7511   else
7512     case $cross_compiling:$ac_tool_warned in
7513 yes:)
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7516 ac_tool_warned=yes ;;
7517 esac
7518     DUMPBIN=$ac_ct_DUMPBIN
7519   fi
7520 fi
7521
7522     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7523     *COFF*)
7524       DUMPBIN="$DUMPBIN -symbols"
7525       ;;
7526     *)
7527       DUMPBIN=:
7528       ;;
7529     esac
7530   fi
7531
7532   if test "$DUMPBIN" != ":"; then
7533     NM="$DUMPBIN"
7534   fi
7535 fi
7536 test -z "$NM" && NM=nm
7537
7538
7539
7540
7541
7542
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7544 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7545 if test "${lt_cv_nm_interface+set}" = set; then :
7546   $as_echo_n "(cached) " >&6
7547 else
7548   lt_cv_nm_interface="BSD nm"
7549   echo "int some_variable = 0;" > conftest.$ac_ext
7550   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7551   (eval "$ac_compile" 2>conftest.err)
7552   cat conftest.err >&5
7553   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7554   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7555   cat conftest.err >&5
7556   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7557   cat conftest.out >&5
7558   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7559     lt_cv_nm_interface="MS dumpbin"
7560   fi
7561   rm -f conftest*
7562 fi
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7564 $as_echo "$lt_cv_nm_interface" >&6; }
7565
7566 # find the maximum length of command line arguments
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7568 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7569 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7570   $as_echo_n "(cached) " >&6
7571 else
7572     i=0
7573   teststring="ABCD"
7574
7575   case $build_os in
7576   msdosdjgpp*)
7577     # On DJGPP, this test can blow up pretty badly due to problems in libc
7578     # (any single argument exceeding 2000 bytes causes a buffer overrun
7579     # during glob expansion).  Even if it were fixed, the result of this
7580     # check would be larger than it should be.
7581     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7582     ;;
7583
7584   gnu*)
7585     # Under GNU Hurd, this test is not required because there is
7586     # no limit to the length of command line arguments.
7587     # Libtool will interpret -1 as no limit whatsoever
7588     lt_cv_sys_max_cmd_len=-1;
7589     ;;
7590
7591   cygwin* | mingw* | cegcc*)
7592     # On Win9x/ME, this test blows up -- it succeeds, but takes
7593     # about 5 minutes as the teststring grows exponentially.
7594     # Worse, since 9x/ME are not pre-emptively multitasking,
7595     # you end up with a "frozen" computer, even though with patience
7596     # the test eventually succeeds (with a max line length of 256k).
7597     # Instead, let's just punt: use the minimum linelength reported by
7598     # all of the supported platforms: 8192 (on NT/2K/XP).
7599     lt_cv_sys_max_cmd_len=8192;
7600     ;;
7601
7602   mint*)
7603     # On MiNT this can take a long time and run out of memory.
7604     lt_cv_sys_max_cmd_len=8192;
7605     ;;
7606
7607   amigaos*)
7608     # On AmigaOS with pdksh, this test takes hours, literally.
7609     # So we just punt and use a minimum line length of 8192.
7610     lt_cv_sys_max_cmd_len=8192;
7611     ;;
7612
7613   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7614     # This has been around since 386BSD, at least.  Likely further.
7615     if test -x /sbin/sysctl; then
7616       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7617     elif test -x /usr/sbin/sysctl; then
7618       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7619     else
7620       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7621     fi
7622     # And add a safety zone
7623     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7624     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7625     ;;
7626
7627   interix*)
7628     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7629     lt_cv_sys_max_cmd_len=196608
7630     ;;
7631
7632   osf*)
7633     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7634     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7635     # nice to cause kernel panics so lets avoid the loop below.
7636     # First set a reasonable default.
7637     lt_cv_sys_max_cmd_len=16384
7638     #
7639     if test -x /sbin/sysconfig; then
7640       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7641         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7642       esac
7643     fi
7644     ;;
7645   sco3.2v5*)
7646     lt_cv_sys_max_cmd_len=102400
7647     ;;
7648   sysv5* | sco5v6* | sysv4.2uw2*)
7649     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7650     if test -n "$kargmax"; then
7651       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7652     else
7653       lt_cv_sys_max_cmd_len=32768
7654     fi
7655     ;;
7656   *)
7657     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7658     if test -n "$lt_cv_sys_max_cmd_len"; then
7659       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7660       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7661     else
7662       # Make teststring a little bigger before we do anything with it.
7663       # a 1K string should be a reasonable start.
7664       for i in 1 2 3 4 5 6 7 8 ; do
7665         teststring=$teststring$teststring
7666       done
7667       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7668       # If test is not a shell built-in, we'll probably end up computing a
7669       # maximum length that is only half of the actual maximum length, but
7670       # we can't tell.
7671       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7672                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7673               test $i != 17 # 1/2 MB should be enough
7674       do
7675         i=`expr $i + 1`
7676         teststring=$teststring$teststring
7677       done
7678       # Only check the string length outside the loop.
7679       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7680       teststring=
7681       # Add a significant safety factor because C++ compilers can tack on
7682       # massive amounts of additional arguments before passing them to the
7683       # linker.  It appears as though 1/2 is a usable value.
7684       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7685     fi
7686     ;;
7687   esac
7688
7689 fi
7690
7691 if test -n $lt_cv_sys_max_cmd_len ; then
7692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7693 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7694 else
7695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7696 $as_echo "none" >&6; }
7697 fi
7698 max_cmd_len=$lt_cv_sys_max_cmd_len
7699
7700
7701
7702
7703
7704
7705 : ${CP="cp -f"}
7706 : ${MV="mv -f"}
7707 : ${RM="rm -f"}
7708
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7710 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7711 # Try some XSI features
7712 xsi_shell=no
7713 ( _lt_dummy="a/b/c"
7714   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7715       = c,a/b,, \
7716     && eval 'test $(( 1 + 1 )) -eq 2 \
7717     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7718   && xsi_shell=yes
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7720 $as_echo "$xsi_shell" >&6; }
7721
7722
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7724 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7725 lt_shell_append=no
7726 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7727     >/dev/null 2>&1 \
7728   && lt_shell_append=yes
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7730 $as_echo "$lt_shell_append" >&6; }
7731
7732
7733 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7734   lt_unset=unset
7735 else
7736   lt_unset=false
7737 fi
7738
7739
7740
7741
7742
7743 # test EBCDIC or ASCII
7744 case `echo X|tr X '\101'` in
7745  A) # ASCII based system
7746     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7747   lt_SP2NL='tr \040 \012'
7748   lt_NL2SP='tr \015\012 \040\040'
7749   ;;
7750  *) # EBCDIC based system
7751   lt_SP2NL='tr \100 \n'
7752   lt_NL2SP='tr \r\n \100\100'
7753   ;;
7754 esac
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7765 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7766 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7767   $as_echo_n "(cached) " >&6
7768 else
7769   lt_cv_ld_reload_flag='-r'
7770 fi
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7772 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7773 reload_flag=$lt_cv_ld_reload_flag
7774 case $reload_flag in
7775 "" | " "*) ;;
7776 *) reload_flag=" $reload_flag" ;;
7777 esac
7778 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7779 case $host_os in
7780   darwin*)
7781     if test "$GCC" = yes; then
7782       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7783     else
7784       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7785     fi
7786     ;;
7787 esac
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797 if test -n "$ac_tool_prefix"; then
7798   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7799 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7801 $as_echo_n "checking for $ac_word... " >&6; }
7802 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7803   $as_echo_n "(cached) " >&6
7804 else
7805   if test -n "$OBJDUMP"; then
7806   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7807 else
7808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7809 for as_dir in $PATH
7810 do
7811   IFS=$as_save_IFS
7812   test -z "$as_dir" && as_dir=.
7813     for ac_exec_ext in '' $ac_executable_extensions; do
7814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7815     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7817     break 2
7818   fi
7819 done
7820   done
7821 IFS=$as_save_IFS
7822
7823 fi
7824 fi
7825 OBJDUMP=$ac_cv_prog_OBJDUMP
7826 if test -n "$OBJDUMP"; then
7827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7828 $as_echo "$OBJDUMP" >&6; }
7829 else
7830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7831 $as_echo "no" >&6; }
7832 fi
7833
7834
7835 fi
7836 if test -z "$ac_cv_prog_OBJDUMP"; then
7837   ac_ct_OBJDUMP=$OBJDUMP
7838   # Extract the first word of "objdump", so it can be a program name with args.
7839 set dummy objdump; ac_word=$2
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7841 $as_echo_n "checking for $ac_word... " >&6; }
7842 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7843   $as_echo_n "(cached) " >&6
7844 else
7845   if test -n "$ac_ct_OBJDUMP"; then
7846   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7847 else
7848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849 for as_dir in $PATH
7850 do
7851   IFS=$as_save_IFS
7852   test -z "$as_dir" && as_dir=.
7853     for ac_exec_ext in '' $ac_executable_extensions; do
7854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7855     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7857     break 2
7858   fi
7859 done
7860   done
7861 IFS=$as_save_IFS
7862
7863 fi
7864 fi
7865 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7866 if test -n "$ac_ct_OBJDUMP"; then
7867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7868 $as_echo "$ac_ct_OBJDUMP" >&6; }
7869 else
7870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7871 $as_echo "no" >&6; }
7872 fi
7873
7874   if test "x$ac_ct_OBJDUMP" = x; then
7875     OBJDUMP="false"
7876   else
7877     case $cross_compiling:$ac_tool_warned in
7878 yes:)
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7881 ac_tool_warned=yes ;;
7882 esac
7883     OBJDUMP=$ac_ct_OBJDUMP
7884   fi
7885 else
7886   OBJDUMP="$ac_cv_prog_OBJDUMP"
7887 fi
7888
7889 test -z "$OBJDUMP" && OBJDUMP=objdump
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7900 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7901 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7902   $as_echo_n "(cached) " >&6
7903 else
7904   lt_cv_file_magic_cmd='$MAGIC_CMD'
7905 lt_cv_file_magic_test_file=
7906 lt_cv_deplibs_check_method='unknown'
7907 # Need to set the preceding variable on all platforms that support
7908 # interlibrary dependencies.
7909 # 'none' -- dependencies not supported.
7910 # `unknown' -- same as none, but documents that we really don't know.
7911 # 'pass_all' -- all dependencies passed with no checks.
7912 # 'test_compile' -- check by making test program.
7913 # 'file_magic [[regex]]' -- check by looking for files in library path
7914 # which responds to the $file_magic_cmd with a given extended regex.
7915 # If you have `file' or equivalent on your system and you're not sure
7916 # whether `pass_all' will *always* work, you probably want this one.
7917
7918 case $host_os in
7919 aix[4-9]*)
7920   lt_cv_deplibs_check_method=pass_all
7921   ;;
7922
7923 beos*)
7924   lt_cv_deplibs_check_method=pass_all
7925   ;;
7926
7927 bsdi[45]*)
7928   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7929   lt_cv_file_magic_cmd='/usr/bin/file -L'
7930   lt_cv_file_magic_test_file=/shlib/libc.so
7931   ;;
7932
7933 cygwin*)
7934   # func_win32_libid is a shell function defined in ltmain.sh
7935   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7936   lt_cv_file_magic_cmd='func_win32_libid'
7937   ;;
7938
7939 mingw* | pw32*)
7940   # Base MSYS/MinGW do not provide the 'file' command needed by
7941   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7942   # unless we find 'file', for example because we are cross-compiling.
7943   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7944   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7945     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7946     lt_cv_file_magic_cmd='func_win32_libid'
7947   else
7948     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7949     lt_cv_file_magic_cmd='$OBJDUMP -f'
7950   fi
7951   ;;
7952
7953 cegcc*)
7954   # use the weaker test based on 'objdump'. See mingw*.
7955   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7956   lt_cv_file_magic_cmd='$OBJDUMP -f'
7957   ;;
7958
7959 darwin* | rhapsody*)
7960   lt_cv_deplibs_check_method=pass_all
7961   ;;
7962
7963 freebsd* | dragonfly*)
7964   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7965     case $host_cpu in
7966     i*86 )
7967       # Not sure whether the presence of OpenBSD here was a mistake.
7968       # Let's accept both of them until this is cleared up.
7969       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7970       lt_cv_file_magic_cmd=/usr/bin/file
7971       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7972       ;;
7973     esac
7974   else
7975     lt_cv_deplibs_check_method=pass_all
7976   fi
7977   ;;
7978
7979 gnu*)
7980   lt_cv_deplibs_check_method=pass_all
7981   ;;
7982
7983 haiku*)
7984   lt_cv_deplibs_check_method=pass_all
7985   ;;
7986
7987 hpux10.20* | hpux11*)
7988   lt_cv_file_magic_cmd=/usr/bin/file
7989   case $host_cpu in
7990   ia64*)
7991     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7992     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7993     ;;
7994   hppa*64*)
7995     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]'
7996     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7997     ;;
7998   *)
7999     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8000     lt_cv_file_magic_test_file=/usr/lib/libc.sl
8001     ;;
8002   esac
8003   ;;
8004
8005 interix[3-9]*)
8006   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8007   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8008   ;;
8009
8010 irix5* | irix6* | nonstopux*)
8011   case $LD in
8012   *-32|*"-32 ") libmagic=32-bit;;
8013   *-n32|*"-n32 ") libmagic=N32;;
8014   *-64|*"-64 ") libmagic=64-bit;;
8015   *) libmagic=never-match;;
8016   esac
8017   lt_cv_deplibs_check_method=pass_all
8018   ;;
8019
8020 # This must be Linux ELF.
8021 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8022   lt_cv_deplibs_check_method=pass_all
8023   ;;
8024
8025 netbsd*)
8026   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8027     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8028   else
8029     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8030   fi
8031   ;;
8032
8033 newos6*)
8034   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8035   lt_cv_file_magic_cmd=/usr/bin/file
8036   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8037   ;;
8038
8039 *nto* | *qnx*)
8040   lt_cv_deplibs_check_method=pass_all
8041   ;;
8042
8043 openbsd*)
8044   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8045     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8046   else
8047     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8048   fi
8049   ;;
8050
8051 osf3* | osf4* | osf5*)
8052   lt_cv_deplibs_check_method=pass_all
8053   ;;
8054
8055 rdos*)
8056   lt_cv_deplibs_check_method=pass_all
8057   ;;
8058
8059 solaris*)
8060   lt_cv_deplibs_check_method=pass_all
8061   ;;
8062
8063 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8064   lt_cv_deplibs_check_method=pass_all
8065   ;;
8066
8067 sysv4 | sysv4.3*)
8068   case $host_vendor in
8069   motorola)
8070     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]'
8071     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8072     ;;
8073   ncr)
8074     lt_cv_deplibs_check_method=pass_all
8075     ;;
8076   sequent)
8077     lt_cv_file_magic_cmd='/bin/file'
8078     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8079     ;;
8080   sni)
8081     lt_cv_file_magic_cmd='/bin/file'
8082     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8083     lt_cv_file_magic_test_file=/lib/libc.so
8084     ;;
8085   siemens)
8086     lt_cv_deplibs_check_method=pass_all
8087     ;;
8088   pc)
8089     lt_cv_deplibs_check_method=pass_all
8090     ;;
8091   esac
8092   ;;
8093
8094 tpf*)
8095   lt_cv_deplibs_check_method=pass_all
8096   ;;
8097 esac
8098
8099 fi
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8101 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8102 file_magic_cmd=$lt_cv_file_magic_cmd
8103 deplibs_check_method=$lt_cv_deplibs_check_method
8104 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117 if test -n "$ac_tool_prefix"; then
8118   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8119 set dummy ${ac_tool_prefix}ar; ac_word=$2
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8121 $as_echo_n "checking for $ac_word... " >&6; }
8122 if test "${ac_cv_prog_AR+set}" = set; then :
8123   $as_echo_n "(cached) " >&6
8124 else
8125   if test -n "$AR"; then
8126   ac_cv_prog_AR="$AR" # Let the user override the test.
8127 else
8128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129 for as_dir in $PATH
8130 do
8131   IFS=$as_save_IFS
8132   test -z "$as_dir" && as_dir=.
8133     for ac_exec_ext in '' $ac_executable_extensions; do
8134   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8135     ac_cv_prog_AR="${ac_tool_prefix}ar"
8136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8137     break 2
8138   fi
8139 done
8140   done
8141 IFS=$as_save_IFS
8142
8143 fi
8144 fi
8145 AR=$ac_cv_prog_AR
8146 if test -n "$AR"; then
8147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8148 $as_echo "$AR" >&6; }
8149 else
8150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8151 $as_echo "no" >&6; }
8152 fi
8153
8154
8155 fi
8156 if test -z "$ac_cv_prog_AR"; then
8157   ac_ct_AR=$AR
8158   # Extract the first word of "ar", so it can be a program name with args.
8159 set dummy ar; ac_word=$2
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8161 $as_echo_n "checking for $ac_word... " >&6; }
8162 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8163   $as_echo_n "(cached) " >&6
8164 else
8165   if test -n "$ac_ct_AR"; then
8166   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8167 else
8168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8169 for as_dir in $PATH
8170 do
8171   IFS=$as_save_IFS
8172   test -z "$as_dir" && as_dir=.
8173     for ac_exec_ext in '' $ac_executable_extensions; do
8174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8175     ac_cv_prog_ac_ct_AR="ar"
8176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8177     break 2
8178   fi
8179 done
8180   done
8181 IFS=$as_save_IFS
8182
8183 fi
8184 fi
8185 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8186 if test -n "$ac_ct_AR"; then
8187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8188 $as_echo "$ac_ct_AR" >&6; }
8189 else
8190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8191 $as_echo "no" >&6; }
8192 fi
8193
8194   if test "x$ac_ct_AR" = x; then
8195     AR="false"
8196   else
8197     case $cross_compiling:$ac_tool_warned in
8198 yes:)
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8201 ac_tool_warned=yes ;;
8202 esac
8203     AR=$ac_ct_AR
8204   fi
8205 else
8206   AR="$ac_cv_prog_AR"
8207 fi
8208
8209 test -z "$AR" && AR=ar
8210 test -z "$AR_FLAGS" && AR_FLAGS=cru
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222 if test -n "$ac_tool_prefix"; then
8223   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8224 set dummy ${ac_tool_prefix}strip; ac_word=$2
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8226 $as_echo_n "checking for $ac_word... " >&6; }
8227 if test "${ac_cv_prog_STRIP+set}" = set; then :
8228   $as_echo_n "(cached) " >&6
8229 else
8230   if test -n "$STRIP"; then
8231   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8232 else
8233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8234 for as_dir in $PATH
8235 do
8236   IFS=$as_save_IFS
8237   test -z "$as_dir" && as_dir=.
8238     for ac_exec_ext in '' $ac_executable_extensions; do
8239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8240     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8242     break 2
8243   fi
8244 done
8245   done
8246 IFS=$as_save_IFS
8247
8248 fi
8249 fi
8250 STRIP=$ac_cv_prog_STRIP
8251 if test -n "$STRIP"; then
8252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8253 $as_echo "$STRIP" >&6; }
8254 else
8255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256 $as_echo "no" >&6; }
8257 fi
8258
8259
8260 fi
8261 if test -z "$ac_cv_prog_STRIP"; then
8262   ac_ct_STRIP=$STRIP
8263   # Extract the first word of "strip", so it can be a program name with args.
8264 set dummy strip; ac_word=$2
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8266 $as_echo_n "checking for $ac_word... " >&6; }
8267 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8268   $as_echo_n "(cached) " >&6
8269 else
8270   if test -n "$ac_ct_STRIP"; then
8271   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8272 else
8273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8274 for as_dir in $PATH
8275 do
8276   IFS=$as_save_IFS
8277   test -z "$as_dir" && as_dir=.
8278     for ac_exec_ext in '' $ac_executable_extensions; do
8279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8280     ac_cv_prog_ac_ct_STRIP="strip"
8281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8282     break 2
8283   fi
8284 done
8285   done
8286 IFS=$as_save_IFS
8287
8288 fi
8289 fi
8290 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8291 if test -n "$ac_ct_STRIP"; then
8292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8293 $as_echo "$ac_ct_STRIP" >&6; }
8294 else
8295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296 $as_echo "no" >&6; }
8297 fi
8298
8299   if test "x$ac_ct_STRIP" = x; then
8300     STRIP=":"
8301   else
8302     case $cross_compiling:$ac_tool_warned in
8303 yes:)
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8306 ac_tool_warned=yes ;;
8307 esac
8308     STRIP=$ac_ct_STRIP
8309   fi
8310 else
8311   STRIP="$ac_cv_prog_STRIP"
8312 fi
8313
8314 test -z "$STRIP" && STRIP=:
8315
8316
8317
8318
8319
8320
8321 if test -n "$ac_tool_prefix"; then
8322   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8323 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8325 $as_echo_n "checking for $ac_word... " >&6; }
8326 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8327   $as_echo_n "(cached) " >&6
8328 else
8329   if test -n "$RANLIB"; then
8330   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8331 else
8332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8333 for as_dir in $PATH
8334 do
8335   IFS=$as_save_IFS
8336   test -z "$as_dir" && as_dir=.
8337     for ac_exec_ext in '' $ac_executable_extensions; do
8338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8339     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8341     break 2
8342   fi
8343 done
8344   done
8345 IFS=$as_save_IFS
8346
8347 fi
8348 fi
8349 RANLIB=$ac_cv_prog_RANLIB
8350 if test -n "$RANLIB"; then
8351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8352 $as_echo "$RANLIB" >&6; }
8353 else
8354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8355 $as_echo "no" >&6; }
8356 fi
8357
8358
8359 fi
8360 if test -z "$ac_cv_prog_RANLIB"; then
8361   ac_ct_RANLIB=$RANLIB
8362   # Extract the first word of "ranlib", so it can be a program name with args.
8363 set dummy ranlib; ac_word=$2
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8365 $as_echo_n "checking for $ac_word... " >&6; }
8366 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8367   $as_echo_n "(cached) " >&6
8368 else
8369   if test -n "$ac_ct_RANLIB"; then
8370   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8371 else
8372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8373 for as_dir in $PATH
8374 do
8375   IFS=$as_save_IFS
8376   test -z "$as_dir" && as_dir=.
8377     for ac_exec_ext in '' $ac_executable_extensions; do
8378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8379     ac_cv_prog_ac_ct_RANLIB="ranlib"
8380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8381     break 2
8382   fi
8383 done
8384   done
8385 IFS=$as_save_IFS
8386
8387 fi
8388 fi
8389 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8390 if test -n "$ac_ct_RANLIB"; then
8391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8392 $as_echo "$ac_ct_RANLIB" >&6; }
8393 else
8394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395 $as_echo "no" >&6; }
8396 fi
8397
8398   if test "x$ac_ct_RANLIB" = x; then
8399     RANLIB=":"
8400   else
8401     case $cross_compiling:$ac_tool_warned in
8402 yes:)
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8405 ac_tool_warned=yes ;;
8406 esac
8407     RANLIB=$ac_ct_RANLIB
8408   fi
8409 else
8410   RANLIB="$ac_cv_prog_RANLIB"
8411 fi
8412
8413 test -z "$RANLIB" && RANLIB=:
8414
8415
8416
8417
8418
8419
8420 # Determine commands to create old-style static archives.
8421 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8422 old_postinstall_cmds='chmod 644 $oldlib'
8423 old_postuninstall_cmds=
8424
8425 if test -n "$RANLIB"; then
8426   case $host_os in
8427   openbsd*)
8428     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8429     ;;
8430   *)
8431     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8432     ;;
8433   esac
8434   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8435 fi
8436
8437 case $host_os in
8438   darwin*)
8439     lock_old_archive_extraction=yes ;;
8440   *)
8441     lock_old_archive_extraction=no ;;
8442 esac
8443
8444
8445
8446
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 # If no C compiler was specified, use CC.
8483 LTCC=${LTCC-"$CC"}
8484
8485 # If no C compiler flags were specified, use CFLAGS.
8486 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8487
8488 # Allow CC to be a program name with arguments.
8489 compiler=$CC
8490
8491
8492 # Check for command to grab the raw symbol name followed by C symbol from nm.
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8494 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8495 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8496   $as_echo_n "(cached) " >&6
8497 else
8498
8499 # These are sane defaults that work on at least a few old systems.
8500 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8501
8502 # Character class describing NM global symbol codes.
8503 symcode='[BCDEGRST]'
8504
8505 # Regexp to match symbols that can be accessed directly from C.
8506 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8507
8508 # Define system-specific variables.
8509 case $host_os in
8510 aix*)
8511   symcode='[BCDT]'
8512   ;;
8513 cygwin* | mingw* | pw32* | cegcc*)
8514   symcode='[ABCDGISTW]'
8515   ;;
8516 hpux*)
8517   if test "$host_cpu" = ia64; then
8518     symcode='[ABCDEGRST]'
8519   fi
8520   ;;
8521 irix* | nonstopux*)
8522   symcode='[BCDEGRST]'
8523   ;;
8524 osf*)
8525   symcode='[BCDEGQRST]'
8526   ;;
8527 solaris*)
8528   symcode='[BDRT]'
8529   ;;
8530 sco3.2v5*)
8531   symcode='[DT]'
8532   ;;
8533 sysv4.2uw2*)
8534   symcode='[DT]'
8535   ;;
8536 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8537   symcode='[ABDT]'
8538   ;;
8539 sysv4)
8540   symcode='[DFNSTU]'
8541   ;;
8542 esac
8543
8544 # If we're using GNU nm, then use its standard symbol codes.
8545 case `$NM -V 2>&1` in
8546 *GNU* | *'with BFD'*)
8547   symcode='[ABCDGIRSTW]' ;;
8548 esac
8549
8550 # Transform an extracted symbol line into a proper C declaration.
8551 # Some systems (esp. on ia64) link data and code symbols differently,
8552 # so use this general approach.
8553 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8554
8555 # Transform an extracted symbol line into symbol name and symbol address
8556 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8557 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'"
8558
8559 # Handle CRLF in mingw tool chain
8560 opt_cr=
8561 case $build_os in
8562 mingw*)
8563   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8564   ;;
8565 esac
8566
8567 # Try without a prefix underscore, then with it.
8568 for ac_symprfx in "" "_"; do
8569
8570   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8571   symxfrm="\\1 $ac_symprfx\\2 \\2"
8572
8573   # Write the raw and C identifiers.
8574   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8575     # Fake it for dumpbin and say T for any non-static function
8576     # and D for any global variable.
8577     # Also find C++ and __fastcall symbols from MSVC++,
8578     # which start with @ or ?.
8579     lt_cv_sys_global_symbol_pipe="$AWK '"\
8580 "     {last_section=section; section=\$ 3};"\
8581 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8582 "     \$ 0!~/External *\|/{next};"\
8583 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8584 "     {if(hide[section]) next};"\
8585 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8586 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8587 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8588 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8589 "     ' prfx=^$ac_symprfx"
8590   else
8591     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8592   fi
8593
8594   # Check to see that the pipe works correctly.
8595   pipe_works=no
8596
8597   rm -f conftest*
8598   cat > conftest.$ac_ext <<_LT_EOF
8599 #ifdef __cplusplus
8600 extern "C" {
8601 #endif
8602 char nm_test_var;
8603 void nm_test_func(void);
8604 void nm_test_func(void){}
8605 #ifdef __cplusplus
8606 }
8607 #endif
8608 int main(){nm_test_var='a';nm_test_func();return(0);}
8609 _LT_EOF
8610
8611   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8612   (eval $ac_compile) 2>&5
8613   ac_status=$?
8614   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8615   test $ac_status = 0; }; then
8616     # Now try to grab the symbols.
8617     nlist=conftest.nm
8618     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8619   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8620   ac_status=$?
8621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8622   test $ac_status = 0; } && test -s "$nlist"; then
8623       # Try sorting and uniquifying the output.
8624       if sort "$nlist" | uniq > "$nlist"T; then
8625         mv -f "$nlist"T "$nlist"
8626       else
8627         rm -f "$nlist"T
8628       fi
8629
8630       # Make sure that we snagged all the symbols we need.
8631       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8632         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8633           cat <<_LT_EOF > conftest.$ac_ext
8634 #ifdef __cplusplus
8635 extern "C" {
8636 #endif
8637
8638 _LT_EOF
8639           # Now generate the symbol file.
8640           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8641
8642           cat <<_LT_EOF >> conftest.$ac_ext
8643
8644 /* The mapping between symbol names and symbols.  */
8645 const struct {
8646   const char *name;
8647   void       *address;
8648 }
8649 lt__PROGRAM__LTX_preloaded_symbols[] =
8650 {
8651   { "@PROGRAM@", (void *) 0 },
8652 _LT_EOF
8653           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8654           cat <<\_LT_EOF >> conftest.$ac_ext
8655   {0, (void *) 0}
8656 };
8657
8658 /* This works around a problem in FreeBSD linker */
8659 #ifdef FREEBSD_WORKAROUND
8660 static const void *lt_preloaded_setup() {
8661   return lt__PROGRAM__LTX_preloaded_symbols;
8662 }
8663 #endif
8664
8665 #ifdef __cplusplus
8666 }
8667 #endif
8668 _LT_EOF
8669           # Now try linking the two files.
8670           mv conftest.$ac_objext conftstm.$ac_objext
8671           lt_save_LIBS="$LIBS"
8672           lt_save_CFLAGS="$CFLAGS"
8673           LIBS="conftstm.$ac_objext"
8674           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8675           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8676   (eval $ac_link) 2>&5
8677   ac_status=$?
8678   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8679   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8680             pipe_works=yes
8681           fi
8682           LIBS="$lt_save_LIBS"
8683           CFLAGS="$lt_save_CFLAGS"
8684         else
8685           echo "cannot find nm_test_func in $nlist" >&5
8686         fi
8687       else
8688         echo "cannot find nm_test_var in $nlist" >&5
8689       fi
8690     else
8691       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8692     fi
8693   else
8694     echo "$progname: failed program was:" >&5
8695     cat conftest.$ac_ext >&5
8696   fi
8697   rm -rf conftest* conftst*
8698
8699   # Do not use the global_symbol_pipe unless it works.
8700   if test "$pipe_works" = yes; then
8701     break
8702   else
8703     lt_cv_sys_global_symbol_pipe=
8704   fi
8705 done
8706
8707 fi
8708
8709 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8710   lt_cv_sys_global_symbol_to_cdecl=
8711 fi
8712 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8714 $as_echo "failed" >&6; }
8715 else
8716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8717 $as_echo "ok" >&6; }
8718 fi
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742 # Check whether --enable-libtool-lock was given.
8743 if test "${enable_libtool_lock+set}" = set; then :
8744   enableval=$enable_libtool_lock;
8745 fi
8746
8747 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8748
8749 # Some flags need to be propagated to the compiler or linker for good
8750 # libtool support.
8751 case $host in
8752 ia64-*-hpux*)
8753   # Find out which ABI we are using.
8754   echo 'int i;' > conftest.$ac_ext
8755   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8756   (eval $ac_compile) 2>&5
8757   ac_status=$?
8758   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8759   test $ac_status = 0; }; then
8760     case `/usr/bin/file conftest.$ac_objext` in
8761       *ELF-32*)
8762         HPUX_IA64_MODE="32"
8763         ;;
8764       *ELF-64*)
8765         HPUX_IA64_MODE="64"
8766         ;;
8767     esac
8768   fi
8769   rm -rf conftest*
8770   ;;
8771 *-*-irix6*)
8772   # Find out which ABI we are using.
8773   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8774   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8775   (eval $ac_compile) 2>&5
8776   ac_status=$?
8777   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8778   test $ac_status = 0; }; then
8779     if test "$lt_cv_prog_gnu_ld" = yes; then
8780       case `/usr/bin/file conftest.$ac_objext` in
8781         *32-bit*)
8782           LD="${LD-ld} -melf32bsmip"
8783           ;;
8784         *N32*)
8785           LD="${LD-ld} -melf32bmipn32"
8786           ;;
8787         *64-bit*)
8788           LD="${LD-ld} -melf64bmip"
8789         ;;
8790       esac
8791     else
8792       case `/usr/bin/file conftest.$ac_objext` in
8793         *32-bit*)
8794           LD="${LD-ld} -32"
8795           ;;
8796         *N32*)
8797           LD="${LD-ld} -n32"
8798           ;;
8799         *64-bit*)
8800           LD="${LD-ld} -64"
8801           ;;
8802       esac
8803     fi
8804   fi
8805   rm -rf conftest*
8806   ;;
8807
8808 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8809 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8810   # Find out which ABI we are using.
8811   echo 'int i;' > conftest.$ac_ext
8812   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8813   (eval $ac_compile) 2>&5
8814   ac_status=$?
8815   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8816   test $ac_status = 0; }; then
8817     case `/usr/bin/file conftest.o` in
8818       *32-bit*)
8819         case $host in
8820           x86_64-*kfreebsd*-gnu)
8821             LD="${LD-ld} -m elf_i386_fbsd"
8822             ;;
8823           x86_64-*linux*)
8824             LD="${LD-ld} -m elf_i386"
8825             ;;
8826           ppc64-*linux*|powerpc64-*linux*)
8827             LD="${LD-ld} -m elf32ppclinux"
8828             ;;
8829           s390x-*linux*)
8830             LD="${LD-ld} -m elf_s390"
8831             ;;
8832           sparc64-*linux*)
8833             LD="${LD-ld} -m elf32_sparc"
8834             ;;
8835         esac
8836         ;;
8837       *64-bit*)
8838         case $host in
8839           x86_64-*kfreebsd*-gnu)
8840             LD="${LD-ld} -m elf_x86_64_fbsd"
8841             ;;
8842           x86_64-*linux*)
8843             LD="${LD-ld} -m elf_x86_64"
8844             ;;
8845           ppc*-*linux*|powerpc*-*linux*)
8846             LD="${LD-ld} -m elf64ppc"
8847             ;;
8848           s390*-*linux*|s390*-*tpf*)
8849             LD="${LD-ld} -m elf64_s390"
8850             ;;
8851           sparc*-*linux*)
8852             LD="${LD-ld} -m elf64_sparc"
8853             ;;
8854         esac
8855         ;;
8856     esac
8857   fi
8858   rm -rf conftest*
8859   ;;
8860
8861 *-*-sco3.2v5*)
8862   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8863   SAVE_CFLAGS="$CFLAGS"
8864   CFLAGS="$CFLAGS -belf"
8865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8866 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8867 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8868   $as_echo_n "(cached) " >&6
8869 else
8870   ac_ext=c
8871 ac_cpp='$CPP $CPPFLAGS'
8872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8875
8876      if test x$gcc_no_link = xyes; then
8877   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8878 fi
8879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8880 /* end confdefs.h.  */
8881
8882 int
8883 main ()
8884 {
8885
8886   ;
8887   return 0;
8888 }
8889 _ACEOF
8890 if ac_fn_c_try_link "$LINENO"; then :
8891   lt_cv_cc_needs_belf=yes
8892 else
8893   lt_cv_cc_needs_belf=no
8894 fi
8895 rm -f core conftest.err conftest.$ac_objext \
8896     conftest$ac_exeext conftest.$ac_ext
8897      ac_ext=c
8898 ac_cpp='$CPP $CPPFLAGS'
8899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8902
8903 fi
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8905 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8906   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8907     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8908     CFLAGS="$SAVE_CFLAGS"
8909   fi
8910   ;;
8911 sparc*-*solaris*)
8912   # Find out which ABI we are using.
8913   echo 'int i;' > conftest.$ac_ext
8914   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8915   (eval $ac_compile) 2>&5
8916   ac_status=$?
8917   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8918   test $ac_status = 0; }; then
8919     case `/usr/bin/file conftest.o` in
8920     *64-bit*)
8921       case $lt_cv_prog_gnu_ld in
8922       yes*) LD="${LD-ld} -m elf64_sparc" ;;
8923       *)
8924         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8925           LD="${LD-ld} -64"
8926         fi
8927         ;;
8928       esac
8929       ;;
8930     esac
8931   fi
8932   rm -rf conftest*
8933   ;;
8934 esac
8935
8936 need_locks="$enable_libtool_lock"
8937
8938
8939   case $host_os in
8940     rhapsody* | darwin*)
8941     if test -n "$ac_tool_prefix"; then
8942   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8943 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8945 $as_echo_n "checking for $ac_word... " >&6; }
8946 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8947   $as_echo_n "(cached) " >&6
8948 else
8949   if test -n "$DSYMUTIL"; then
8950   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8951 else
8952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8953 for as_dir in $PATH
8954 do
8955   IFS=$as_save_IFS
8956   test -z "$as_dir" && as_dir=.
8957     for ac_exec_ext in '' $ac_executable_extensions; do
8958   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8959     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8961     break 2
8962   fi
8963 done
8964   done
8965 IFS=$as_save_IFS
8966
8967 fi
8968 fi
8969 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8970 if test -n "$DSYMUTIL"; then
8971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8972 $as_echo "$DSYMUTIL" >&6; }
8973 else
8974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8975 $as_echo "no" >&6; }
8976 fi
8977
8978
8979 fi
8980 if test -z "$ac_cv_prog_DSYMUTIL"; then
8981   ac_ct_DSYMUTIL=$DSYMUTIL
8982   # Extract the first word of "dsymutil", so it can be a program name with args.
8983 set dummy dsymutil; ac_word=$2
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8985 $as_echo_n "checking for $ac_word... " >&6; }
8986 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8987   $as_echo_n "(cached) " >&6
8988 else
8989   if test -n "$ac_ct_DSYMUTIL"; then
8990   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8991 else
8992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8993 for as_dir in $PATH
8994 do
8995   IFS=$as_save_IFS
8996   test -z "$as_dir" && as_dir=.
8997     for ac_exec_ext in '' $ac_executable_extensions; do
8998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8999     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9001     break 2
9002   fi
9003 done
9004   done
9005 IFS=$as_save_IFS
9006
9007 fi
9008 fi
9009 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9010 if test -n "$ac_ct_DSYMUTIL"; then
9011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9012 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9013 else
9014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9015 $as_echo "no" >&6; }
9016 fi
9017
9018   if test "x$ac_ct_DSYMUTIL" = x; then
9019     DSYMUTIL=":"
9020   else
9021     case $cross_compiling:$ac_tool_warned in
9022 yes:)
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9025 ac_tool_warned=yes ;;
9026 esac
9027     DSYMUTIL=$ac_ct_DSYMUTIL
9028   fi
9029 else
9030   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9031 fi
9032
9033     if test -n "$ac_tool_prefix"; then
9034   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9035 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9037 $as_echo_n "checking for $ac_word... " >&6; }
9038 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
9039   $as_echo_n "(cached) " >&6
9040 else
9041   if test -n "$NMEDIT"; then
9042   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9043 else
9044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9045 for as_dir in $PATH
9046 do
9047   IFS=$as_save_IFS
9048   test -z "$as_dir" && as_dir=.
9049     for ac_exec_ext in '' $ac_executable_extensions; do
9050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9051     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9052     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9053     break 2
9054   fi
9055 done
9056   done
9057 IFS=$as_save_IFS
9058
9059 fi
9060 fi
9061 NMEDIT=$ac_cv_prog_NMEDIT
9062 if test -n "$NMEDIT"; then
9063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9064 $as_echo "$NMEDIT" >&6; }
9065 else
9066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9067 $as_echo "no" >&6; }
9068 fi
9069
9070
9071 fi
9072 if test -z "$ac_cv_prog_NMEDIT"; then
9073   ac_ct_NMEDIT=$NMEDIT
9074   # Extract the first word of "nmedit", so it can be a program name with args.
9075 set dummy nmedit; ac_word=$2
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9077 $as_echo_n "checking for $ac_word... " >&6; }
9078 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9079   $as_echo_n "(cached) " >&6
9080 else
9081   if test -n "$ac_ct_NMEDIT"; then
9082   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9083 else
9084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9085 for as_dir in $PATH
9086 do
9087   IFS=$as_save_IFS
9088   test -z "$as_dir" && as_dir=.
9089     for ac_exec_ext in '' $ac_executable_extensions; do
9090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9091     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9093     break 2
9094   fi
9095 done
9096   done
9097 IFS=$as_save_IFS
9098
9099 fi
9100 fi
9101 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9102 if test -n "$ac_ct_NMEDIT"; then
9103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9104 $as_echo "$ac_ct_NMEDIT" >&6; }
9105 else
9106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9107 $as_echo "no" >&6; }
9108 fi
9109
9110   if test "x$ac_ct_NMEDIT" = x; then
9111     NMEDIT=":"
9112   else
9113     case $cross_compiling:$ac_tool_warned in
9114 yes:)
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9117 ac_tool_warned=yes ;;
9118 esac
9119     NMEDIT=$ac_ct_NMEDIT
9120   fi
9121 else
9122   NMEDIT="$ac_cv_prog_NMEDIT"
9123 fi
9124
9125     if test -n "$ac_tool_prefix"; then
9126   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9127 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9129 $as_echo_n "checking for $ac_word... " >&6; }
9130 if test "${ac_cv_prog_LIPO+set}" = set; then :
9131   $as_echo_n "(cached) " >&6
9132 else
9133   if test -n "$LIPO"; then
9134   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9135 else
9136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9137 for as_dir in $PATH
9138 do
9139   IFS=$as_save_IFS
9140   test -z "$as_dir" && as_dir=.
9141     for ac_exec_ext in '' $ac_executable_extensions; do
9142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9143     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9145     break 2
9146   fi
9147 done
9148   done
9149 IFS=$as_save_IFS
9150
9151 fi
9152 fi
9153 LIPO=$ac_cv_prog_LIPO
9154 if test -n "$LIPO"; then
9155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9156 $as_echo "$LIPO" >&6; }
9157 else
9158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9159 $as_echo "no" >&6; }
9160 fi
9161
9162
9163 fi
9164 if test -z "$ac_cv_prog_LIPO"; then
9165   ac_ct_LIPO=$LIPO
9166   # Extract the first word of "lipo", so it can be a program name with args.
9167 set dummy lipo; ac_word=$2
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9169 $as_echo_n "checking for $ac_word... " >&6; }
9170 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9171   $as_echo_n "(cached) " >&6
9172 else
9173   if test -n "$ac_ct_LIPO"; then
9174   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9175 else
9176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9177 for as_dir in $PATH
9178 do
9179   IFS=$as_save_IFS
9180   test -z "$as_dir" && as_dir=.
9181     for ac_exec_ext in '' $ac_executable_extensions; do
9182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9183     ac_cv_prog_ac_ct_LIPO="lipo"
9184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9185     break 2
9186   fi
9187 done
9188   done
9189 IFS=$as_save_IFS
9190
9191 fi
9192 fi
9193 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9194 if test -n "$ac_ct_LIPO"; then
9195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9196 $as_echo "$ac_ct_LIPO" >&6; }
9197 else
9198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9199 $as_echo "no" >&6; }
9200 fi
9201
9202   if test "x$ac_ct_LIPO" = x; then
9203     LIPO=":"
9204   else
9205     case $cross_compiling:$ac_tool_warned in
9206 yes:)
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9209 ac_tool_warned=yes ;;
9210 esac
9211     LIPO=$ac_ct_LIPO
9212   fi
9213 else
9214   LIPO="$ac_cv_prog_LIPO"
9215 fi
9216
9217     if test -n "$ac_tool_prefix"; then
9218   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9219 set dummy ${ac_tool_prefix}otool; ac_word=$2
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9221 $as_echo_n "checking for $ac_word... " >&6; }
9222 if test "${ac_cv_prog_OTOOL+set}" = set; then :
9223   $as_echo_n "(cached) " >&6
9224 else
9225   if test -n "$OTOOL"; then
9226   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9227 else
9228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9229 for as_dir in $PATH
9230 do
9231   IFS=$as_save_IFS
9232   test -z "$as_dir" && as_dir=.
9233     for ac_exec_ext in '' $ac_executable_extensions; do
9234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9235     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9237     break 2
9238   fi
9239 done
9240   done
9241 IFS=$as_save_IFS
9242
9243 fi
9244 fi
9245 OTOOL=$ac_cv_prog_OTOOL
9246 if test -n "$OTOOL"; then
9247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9248 $as_echo "$OTOOL" >&6; }
9249 else
9250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9251 $as_echo "no" >&6; }
9252 fi
9253
9254
9255 fi
9256 if test -z "$ac_cv_prog_OTOOL"; then
9257   ac_ct_OTOOL=$OTOOL
9258   # Extract the first word of "otool", so it can be a program name with args.
9259 set dummy otool; ac_word=$2
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9261 $as_echo_n "checking for $ac_word... " >&6; }
9262 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9263   $as_echo_n "(cached) " >&6
9264 else
9265   if test -n "$ac_ct_OTOOL"; then
9266   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9267 else
9268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9269 for as_dir in $PATH
9270 do
9271   IFS=$as_save_IFS
9272   test -z "$as_dir" && as_dir=.
9273     for ac_exec_ext in '' $ac_executable_extensions; do
9274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9275     ac_cv_prog_ac_ct_OTOOL="otool"
9276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9277     break 2
9278   fi
9279 done
9280   done
9281 IFS=$as_save_IFS
9282
9283 fi
9284 fi
9285 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9286 if test -n "$ac_ct_OTOOL"; then
9287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9288 $as_echo "$ac_ct_OTOOL" >&6; }
9289 else
9290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9291 $as_echo "no" >&6; }
9292 fi
9293
9294   if test "x$ac_ct_OTOOL" = x; then
9295     OTOOL=":"
9296   else
9297     case $cross_compiling:$ac_tool_warned in
9298 yes:)
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9301 ac_tool_warned=yes ;;
9302 esac
9303     OTOOL=$ac_ct_OTOOL
9304   fi
9305 else
9306   OTOOL="$ac_cv_prog_OTOOL"
9307 fi
9308
9309     if test -n "$ac_tool_prefix"; then
9310   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9311 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9313 $as_echo_n "checking for $ac_word... " >&6; }
9314 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9315   $as_echo_n "(cached) " >&6
9316 else
9317   if test -n "$OTOOL64"; then
9318   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9319 else
9320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9321 for as_dir in $PATH
9322 do
9323   IFS=$as_save_IFS
9324   test -z "$as_dir" && as_dir=.
9325     for ac_exec_ext in '' $ac_executable_extensions; do
9326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9327     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9329     break 2
9330   fi
9331 done
9332   done
9333 IFS=$as_save_IFS
9334
9335 fi
9336 fi
9337 OTOOL64=$ac_cv_prog_OTOOL64
9338 if test -n "$OTOOL64"; then
9339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9340 $as_echo "$OTOOL64" >&6; }
9341 else
9342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9343 $as_echo "no" >&6; }
9344 fi
9345
9346
9347 fi
9348 if test -z "$ac_cv_prog_OTOOL64"; then
9349   ac_ct_OTOOL64=$OTOOL64
9350   # Extract the first word of "otool64", so it can be a program name with args.
9351 set dummy otool64; ac_word=$2
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9353 $as_echo_n "checking for $ac_word... " >&6; }
9354 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9355   $as_echo_n "(cached) " >&6
9356 else
9357   if test -n "$ac_ct_OTOOL64"; then
9358   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9359 else
9360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9361 for as_dir in $PATH
9362 do
9363   IFS=$as_save_IFS
9364   test -z "$as_dir" && as_dir=.
9365     for ac_exec_ext in '' $ac_executable_extensions; do
9366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9367     ac_cv_prog_ac_ct_OTOOL64="otool64"
9368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9369     break 2
9370   fi
9371 done
9372   done
9373 IFS=$as_save_IFS
9374
9375 fi
9376 fi
9377 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9378 if test -n "$ac_ct_OTOOL64"; then
9379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9380 $as_echo "$ac_ct_OTOOL64" >&6; }
9381 else
9382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9383 $as_echo "no" >&6; }
9384 fi
9385
9386   if test "x$ac_ct_OTOOL64" = x; then
9387     OTOOL64=":"
9388   else
9389     case $cross_compiling:$ac_tool_warned in
9390 yes:)
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9393 ac_tool_warned=yes ;;
9394 esac
9395     OTOOL64=$ac_ct_OTOOL64
9396   fi
9397 else
9398   OTOOL64="$ac_cv_prog_OTOOL64"
9399 fi
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9428 $as_echo_n "checking for -single_module linker flag... " >&6; }
9429 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9430   $as_echo_n "(cached) " >&6
9431 else
9432   lt_cv_apple_cc_single_mod=no
9433       if test -z "${LT_MULTI_MODULE}"; then
9434         # By default we will add the -single_module flag. You can override
9435         # by either setting the environment variable LT_MULTI_MODULE
9436         # non-empty at configure time, or by adding -multi_module to the
9437         # link flags.
9438         rm -rf libconftest.dylib*
9439         echo "int foo(void){return 1;}" > conftest.c
9440         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9441 -dynamiclib -Wl,-single_module conftest.c" >&5
9442         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9443           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9444         _lt_result=$?
9445         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9446           lt_cv_apple_cc_single_mod=yes
9447         else
9448           cat conftest.err >&5
9449         fi
9450         rm -rf libconftest.dylib*
9451         rm -f conftest.*
9452       fi
9453 fi
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9455 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9456     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9457 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9458 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9459   $as_echo_n "(cached) " >&6
9460 else
9461   lt_cv_ld_exported_symbols_list=no
9462       save_LDFLAGS=$LDFLAGS
9463       echo "_main" > conftest.sym
9464       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9465       if test x$gcc_no_link = xyes; then
9466   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9467 fi
9468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9469 /* end confdefs.h.  */
9470
9471 int
9472 main ()
9473 {
9474
9475   ;
9476   return 0;
9477 }
9478 _ACEOF
9479 if ac_fn_c_try_link "$LINENO"; then :
9480   lt_cv_ld_exported_symbols_list=yes
9481 else
9482   lt_cv_ld_exported_symbols_list=no
9483 fi
9484 rm -f core conftest.err conftest.$ac_objext \
9485     conftest$ac_exeext conftest.$ac_ext
9486         LDFLAGS="$save_LDFLAGS"
9487
9488 fi
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9490 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9491     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9492 $as_echo_n "checking for -force_load linker flag... " >&6; }
9493 if test "${lt_cv_ld_force_load+set}" = set; then :
9494   $as_echo_n "(cached) " >&6
9495 else
9496   lt_cv_ld_force_load=no
9497       cat > conftest.c << _LT_EOF
9498 int forced_loaded() { return 2;}
9499 _LT_EOF
9500       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9501       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9502       echo "$AR cru libconftest.a conftest.o" >&5
9503       $AR cru libconftest.a conftest.o 2>&5
9504       cat > conftest.c << _LT_EOF
9505 int main() { return 0;}
9506 _LT_EOF
9507       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9508       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9509       _lt_result=$?
9510       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9511         lt_cv_ld_force_load=yes
9512       else
9513         cat conftest.err >&5
9514       fi
9515         rm -f conftest.err libconftest.a conftest conftest.c
9516         rm -rf conftest.dSYM
9517
9518 fi
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9520 $as_echo "$lt_cv_ld_force_load" >&6; }
9521     case $host_os in
9522     rhapsody* | darwin1.[012])
9523       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9524     darwin1.*)
9525       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9526     darwin*) # darwin 5.x on
9527       # if running on 10.5 or later, the deployment target defaults
9528       # to the OS version, if on x86, and 10.4, the deployment
9529       # target defaults to 10.4. Don't you love it?
9530       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9531         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9532           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9533         10.[012]*)
9534           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9535         10.*)
9536           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9537       esac
9538     ;;
9539   esac
9540     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9541       _lt_dar_single_mod='$single_module'
9542     fi
9543     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9544       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9545     else
9546       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9547     fi
9548     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9549       _lt_dsymutil='~$DSYMUTIL $lib || :'
9550     else
9551       _lt_dsymutil=
9552     fi
9553     ;;
9554   esac
9555
9556 ac_ext=c
9557 ac_cpp='$CPP $CPPFLAGS'
9558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9562 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9563 # On Suns, sometimes $CPP names a directory.
9564 if test -n "$CPP" && test -d "$CPP"; then
9565   CPP=
9566 fi
9567 if test -z "$CPP"; then
9568   if test "${ac_cv_prog_CPP+set}" = set; then :
9569   $as_echo_n "(cached) " >&6
9570 else
9571       # Double quotes because CPP needs to be expanded
9572     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9573     do
9574       ac_preproc_ok=false
9575 for ac_c_preproc_warn_flag in '' yes
9576 do
9577   # Use a header file that comes with gcc, so configuring glibc
9578   # with a fresh cross-compiler works.
9579   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9580   # <limits.h> exists even on freestanding compilers.
9581   # On the NeXT, cc -E runs the code through the compiler's parser,
9582   # not just through cpp. "Syntax error" is here to catch this case.
9583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9584 /* end confdefs.h.  */
9585 #ifdef __STDC__
9586 # include <limits.h>
9587 #else
9588 # include <assert.h>
9589 #endif
9590                      Syntax error
9591 _ACEOF
9592 if ac_fn_c_try_cpp "$LINENO"; then :
9593
9594 else
9595   # Broken: fails on valid input.
9596 continue
9597 fi
9598 rm -f conftest.err conftest.$ac_ext
9599
9600   # OK, works on sane cases.  Now check whether nonexistent headers
9601   # can be detected and how.
9602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9603 /* end confdefs.h.  */
9604 #include <ac_nonexistent.h>
9605 _ACEOF
9606 if ac_fn_c_try_cpp "$LINENO"; then :
9607   # Broken: success on invalid input.
9608 continue
9609 else
9610   # Passes both tests.
9611 ac_preproc_ok=:
9612 break
9613 fi
9614 rm -f conftest.err conftest.$ac_ext
9615
9616 done
9617 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9618 rm -f conftest.err conftest.$ac_ext
9619 if $ac_preproc_ok; then :
9620   break
9621 fi
9622
9623     done
9624     ac_cv_prog_CPP=$CPP
9625
9626 fi
9627   CPP=$ac_cv_prog_CPP
9628 else
9629   ac_cv_prog_CPP=$CPP
9630 fi
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9632 $as_echo "$CPP" >&6; }
9633 ac_preproc_ok=false
9634 for ac_c_preproc_warn_flag in '' yes
9635 do
9636   # Use a header file that comes with gcc, so configuring glibc
9637   # with a fresh cross-compiler works.
9638   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9639   # <limits.h> exists even on freestanding compilers.
9640   # On the NeXT, cc -E runs the code through the compiler's parser,
9641   # not just through cpp. "Syntax error" is here to catch this case.
9642   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9643 /* end confdefs.h.  */
9644 #ifdef __STDC__
9645 # include <limits.h>
9646 #else
9647 # include <assert.h>
9648 #endif
9649                      Syntax error
9650 _ACEOF
9651 if ac_fn_c_try_cpp "$LINENO"; then :
9652
9653 else
9654   # Broken: fails on valid input.
9655 continue
9656 fi
9657 rm -f conftest.err conftest.$ac_ext
9658
9659   # OK, works on sane cases.  Now check whether nonexistent headers
9660   # can be detected and how.
9661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9662 /* end confdefs.h.  */
9663 #include <ac_nonexistent.h>
9664 _ACEOF
9665 if ac_fn_c_try_cpp "$LINENO"; then :
9666   # Broken: success on invalid input.
9667 continue
9668 else
9669   # Passes both tests.
9670 ac_preproc_ok=:
9671 break
9672 fi
9673 rm -f conftest.err conftest.$ac_ext
9674
9675 done
9676 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9677 rm -f conftest.err conftest.$ac_ext
9678 if $ac_preproc_ok; then :
9679
9680 else
9681   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9683 as_fn_error "C preprocessor \"$CPP\" fails sanity check
9684 See \`config.log' for more details." "$LINENO" 5; }
9685 fi
9686
9687 ac_ext=c
9688 ac_cpp='$CPP $CPPFLAGS'
9689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9692
9693
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9695 $as_echo_n "checking for ANSI C header files... " >&6; }
9696 if test "${ac_cv_header_stdc+set}" = set; then :
9697   $as_echo_n "(cached) " >&6
9698 else
9699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9700 /* end confdefs.h.  */
9701 #include <stdlib.h>
9702 #include <stdarg.h>
9703 #include <string.h>
9704 #include <float.h>
9705
9706 int
9707 main ()
9708 {
9709
9710   ;
9711   return 0;
9712 }
9713 _ACEOF
9714 if ac_fn_c_try_compile "$LINENO"; then :
9715   ac_cv_header_stdc=yes
9716 else
9717   ac_cv_header_stdc=no
9718 fi
9719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9720
9721 if test $ac_cv_header_stdc = yes; then
9722   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9724 /* end confdefs.h.  */
9725 #include <string.h>
9726
9727 _ACEOF
9728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9729   $EGREP "memchr" >/dev/null 2>&1; then :
9730
9731 else
9732   ac_cv_header_stdc=no
9733 fi
9734 rm -f conftest*
9735
9736 fi
9737
9738 if test $ac_cv_header_stdc = yes; then
9739   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9741 /* end confdefs.h.  */
9742 #include <stdlib.h>
9743
9744 _ACEOF
9745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9746   $EGREP "free" >/dev/null 2>&1; then :
9747
9748 else
9749   ac_cv_header_stdc=no
9750 fi
9751 rm -f conftest*
9752
9753 fi
9754
9755 if test $ac_cv_header_stdc = yes; then
9756   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9757   if test "$cross_compiling" = yes; then :
9758   :
9759 else
9760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9761 /* end confdefs.h.  */
9762 #include <ctype.h>
9763 #include <stdlib.h>
9764 #if ((' ' & 0x0FF) == 0x020)
9765 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9766 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9767 #else
9768 # define ISLOWER(c) \
9769                    (('a' <= (c) && (c) <= 'i') \
9770                      || ('j' <= (c) && (c) <= 'r') \
9771                      || ('s' <= (c) && (c) <= 'z'))
9772 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9773 #endif
9774
9775 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9776 int
9777 main ()
9778 {
9779   int i;
9780   for (i = 0; i < 256; i++)
9781     if (XOR (islower (i), ISLOWER (i))
9782         || toupper (i) != TOUPPER (i))
9783       return 2;
9784   return 0;
9785 }
9786 _ACEOF
9787 if ac_fn_c_try_run "$LINENO"; then :
9788
9789 else
9790   ac_cv_header_stdc=no
9791 fi
9792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9793   conftest.$ac_objext conftest.beam conftest.$ac_ext
9794 fi
9795
9796 fi
9797 fi
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9799 $as_echo "$ac_cv_header_stdc" >&6; }
9800 if test $ac_cv_header_stdc = yes; then
9801
9802 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9803
9804 fi
9805
9806 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9807 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9808                   inttypes.h stdint.h unistd.h
9809 do :
9810   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9811 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9812 "
9813 eval as_val=\$$as_ac_Header
9814    if test "x$as_val" = x""yes; then :
9815   cat >>confdefs.h <<_ACEOF
9816 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9817 _ACEOF
9818
9819 fi
9820
9821 done
9822
9823
9824 for ac_header in dlfcn.h
9825 do :
9826   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9827 "
9828 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9829   cat >>confdefs.h <<_ACEOF
9830 #define HAVE_DLFCN_H 1
9831 _ACEOF
9832
9833 fi
9834
9835 done
9836
9837
9838
9839
9840
9841
9842 # Set options
9843
9844
9845
9846
9847   enable_win32_dll=no
9848
9849
9850             # Check whether --enable-shared was given.
9851 if test "${enable_shared+set}" = set; then :
9852   enableval=$enable_shared; p=${PACKAGE-default}
9853     case $enableval in
9854     yes) enable_shared=yes ;;
9855     no) enable_shared=no ;;
9856     *)
9857       enable_shared=no
9858       # Look at the argument we got.  We use all the common list separators.
9859       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9860       for pkg in $enableval; do
9861         IFS="$lt_save_ifs"
9862         if test "X$pkg" = "X$p"; then
9863           enable_shared=yes
9864         fi
9865       done
9866       IFS="$lt_save_ifs"
9867       ;;
9868     esac
9869 else
9870   enable_shared=yes
9871 fi
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881   # Check whether --enable-static was given.
9882 if test "${enable_static+set}" = set; then :
9883   enableval=$enable_static; p=${PACKAGE-default}
9884     case $enableval in
9885     yes) enable_static=yes ;;
9886     no) enable_static=no ;;
9887     *)
9888      enable_static=no
9889       # Look at the argument we got.  We use all the common list separators.
9890       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9891       for pkg in $enableval; do
9892         IFS="$lt_save_ifs"
9893         if test "X$pkg" = "X$p"; then
9894           enable_static=yes
9895         fi
9896       done
9897       IFS="$lt_save_ifs"
9898       ;;
9899     esac
9900 else
9901   enable_static=yes
9902 fi
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913 # Check whether --with-pic was given.
9914 if test "${with_pic+set}" = set; then :
9915   withval=$with_pic; pic_mode="$withval"
9916 else
9917   pic_mode=default
9918 fi
9919
9920
9921 test -z "$pic_mode" && pic_mode=default
9922
9923
9924
9925
9926
9927
9928
9929   # Check whether --enable-fast-install was given.
9930 if test "${enable_fast_install+set}" = set; then :
9931   enableval=$enable_fast_install; p=${PACKAGE-default}
9932     case $enableval in
9933     yes) enable_fast_install=yes ;;
9934     no) enable_fast_install=no ;;
9935     *)
9936       enable_fast_install=no
9937       # Look at the argument we got.  We use all the common list separators.
9938       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9939       for pkg in $enableval; do
9940         IFS="$lt_save_ifs"
9941         if test "X$pkg" = "X$p"; then
9942           enable_fast_install=yes
9943         fi
9944       done
9945       IFS="$lt_save_ifs"
9946       ;;
9947     esac
9948 else
9949   enable_fast_install=yes
9950 fi
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962 # This can be used to rebuild libtool when needed
9963 LIBTOOL_DEPS="$ltmain"
9964
9965 # Always use our own libtool.
9966 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993 test -z "$LN_S" && LN_S="ln -s"
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008 if test -n "${ZSH_VERSION+set}" ; then
10009    setopt NO_GLOB_SUBST
10010 fi
10011
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10013 $as_echo_n "checking for objdir... " >&6; }
10014 if test "${lt_cv_objdir+set}" = set; then :
10015   $as_echo_n "(cached) " >&6
10016 else
10017   rm -f .libs 2>/dev/null
10018 mkdir .libs 2>/dev/null
10019 if test -d .libs; then
10020   lt_cv_objdir=.libs
10021 else
10022   # MS-DOS does not allow filenames that begin with a dot.
10023   lt_cv_objdir=_libs
10024 fi
10025 rmdir .libs 2>/dev/null
10026 fi
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10028 $as_echo "$lt_cv_objdir" >&6; }
10029 objdir=$lt_cv_objdir
10030
10031
10032
10033
10034
10035 cat >>confdefs.h <<_ACEOF
10036 #define LT_OBJDIR "$lt_cv_objdir/"
10037 _ACEOF
10038
10039
10040
10041
10042 case $host_os in
10043 aix3*)
10044   # AIX sometimes has problems with the GCC collect2 program.  For some
10045   # reason, if we set the COLLECT_NAMES environment variable, the problems
10046   # vanish in a puff of smoke.
10047   if test "X${COLLECT_NAMES+set}" != Xset; then
10048     COLLECT_NAMES=
10049     export COLLECT_NAMES
10050   fi
10051   ;;
10052 esac
10053
10054 # Global variables:
10055 ofile=libtool
10056 can_build_shared=yes
10057
10058 # All known linkers require a `.a' archive for static linking (except MSVC,
10059 # which needs '.lib').
10060 libext=a
10061
10062 with_gnu_ld="$lt_cv_prog_gnu_ld"
10063
10064 old_CC="$CC"
10065 old_CFLAGS="$CFLAGS"
10066
10067 # Set sane defaults for various variables
10068 test -z "$CC" && CC=cc
10069 test -z "$LTCC" && LTCC=$CC
10070 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10071 test -z "$LD" && LD=ld
10072 test -z "$ac_objext" && ac_objext=o
10073
10074 for cc_temp in $compiler""; do
10075   case $cc_temp in
10076     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10077     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10078     \-*) ;;
10079     *) break;;
10080   esac
10081 done
10082 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10083
10084
10085 # Only perform the check for file, if the check method requires it
10086 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10087 case $deplibs_check_method in
10088 file_magic*)
10089   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10090     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10091 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10092 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10093   $as_echo_n "(cached) " >&6
10094 else
10095   case $MAGIC_CMD in
10096 [\\/*] |  ?:[\\/]*)
10097   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10098   ;;
10099 *)
10100   lt_save_MAGIC_CMD="$MAGIC_CMD"
10101   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10102   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10103   for ac_dir in $ac_dummy; do
10104     IFS="$lt_save_ifs"
10105     test -z "$ac_dir" && ac_dir=.
10106     if test -f $ac_dir/${ac_tool_prefix}file; then
10107       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10108       if test -n "$file_magic_test_file"; then
10109         case $deplibs_check_method in
10110         "file_magic "*)
10111           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10112           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10113           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10114             $EGREP "$file_magic_regex" > /dev/null; then
10115             :
10116           else
10117             cat <<_LT_EOF 1>&2
10118
10119 *** Warning: the command libtool uses to detect shared libraries,
10120 *** $file_magic_cmd, produces output that libtool cannot recognize.
10121 *** The result is that libtool may fail to recognize shared libraries
10122 *** as such.  This will affect the creation of libtool libraries that
10123 *** depend on shared libraries, but programs linked with such libtool
10124 *** libraries will work regardless of this problem.  Nevertheless, you
10125 *** may want to report the problem to your system manager and/or to
10126 *** bug-libtool@gnu.org
10127
10128 _LT_EOF
10129           fi ;;
10130         esac
10131       fi
10132       break
10133     fi
10134   done
10135   IFS="$lt_save_ifs"
10136   MAGIC_CMD="$lt_save_MAGIC_CMD"
10137   ;;
10138 esac
10139 fi
10140
10141 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10142 if test -n "$MAGIC_CMD"; then
10143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10144 $as_echo "$MAGIC_CMD" >&6; }
10145 else
10146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10147 $as_echo "no" >&6; }
10148 fi
10149
10150
10151
10152
10153
10154 if test -z "$lt_cv_path_MAGIC_CMD"; then
10155   if test -n "$ac_tool_prefix"; then
10156     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10157 $as_echo_n "checking for file... " >&6; }
10158 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10159   $as_echo_n "(cached) " >&6
10160 else
10161   case $MAGIC_CMD in
10162 [\\/*] |  ?:[\\/]*)
10163   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10164   ;;
10165 *)
10166   lt_save_MAGIC_CMD="$MAGIC_CMD"
10167   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10168   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10169   for ac_dir in $ac_dummy; do
10170     IFS="$lt_save_ifs"
10171     test -z "$ac_dir" && ac_dir=.
10172     if test -f $ac_dir/file; then
10173       lt_cv_path_MAGIC_CMD="$ac_dir/file"
10174       if test -n "$file_magic_test_file"; then
10175         case $deplibs_check_method in
10176         "file_magic "*)
10177           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10178           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10179           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10180             $EGREP "$file_magic_regex" > /dev/null; then
10181             :
10182           else
10183             cat <<_LT_EOF 1>&2
10184
10185 *** Warning: the command libtool uses to detect shared libraries,
10186 *** $file_magic_cmd, produces output that libtool cannot recognize.
10187 *** The result is that libtool may fail to recognize shared libraries
10188 *** as such.  This will affect the creation of libtool libraries that
10189 *** depend on shared libraries, but programs linked with such libtool
10190 *** libraries will work regardless of this problem.  Nevertheless, you
10191 *** may want to report the problem to your system manager and/or to
10192 *** bug-libtool@gnu.org
10193
10194 _LT_EOF
10195           fi ;;
10196         esac
10197       fi
10198       break
10199     fi
10200   done
10201   IFS="$lt_save_ifs"
10202   MAGIC_CMD="$lt_save_MAGIC_CMD"
10203   ;;
10204 esac
10205 fi
10206
10207 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10208 if test -n "$MAGIC_CMD"; then
10209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10210 $as_echo "$MAGIC_CMD" >&6; }
10211 else
10212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10213 $as_echo "no" >&6; }
10214 fi
10215
10216
10217   else
10218     MAGIC_CMD=:
10219   fi
10220 fi
10221
10222   fi
10223   ;;
10224 esac
10225
10226 # Use C for the default configuration in the libtool script
10227
10228 lt_save_CC="$CC"
10229 ac_ext=c
10230 ac_cpp='$CPP $CPPFLAGS'
10231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10234
10235
10236 # Source file extension for C test sources.
10237 ac_ext=c
10238
10239 # Object file extension for compiled C test sources.
10240 objext=o
10241 objext=$objext
10242
10243 # Code to be used in simple compile tests
10244 lt_simple_compile_test_code="int some_variable = 0;"
10245
10246 # Code to be used in simple link tests
10247 lt_simple_link_test_code='int main(){return(0);}'
10248
10249
10250
10251
10252
10253
10254
10255 # If no C compiler was specified, use CC.
10256 LTCC=${LTCC-"$CC"}
10257
10258 # If no C compiler flags were specified, use CFLAGS.
10259 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10260
10261 # Allow CC to be a program name with arguments.
10262 compiler=$CC
10263
10264 # Save the default compiler, since it gets overwritten when the other
10265 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10266 compiler_DEFAULT=$CC
10267
10268 # save warnings/boilerplate of simple test code
10269 ac_outfile=conftest.$ac_objext
10270 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10271 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10272 _lt_compiler_boilerplate=`cat conftest.err`
10273 $RM conftest*
10274
10275 ac_outfile=conftest.$ac_objext
10276 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10277 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10278 _lt_linker_boilerplate=`cat conftest.err`
10279 $RM -r conftest*
10280
10281
10282 ## CAVEAT EMPTOR:
10283 ## There is no encapsulation within the following macros, do not change
10284 ## the running order or otherwise move them around unless you know exactly
10285 ## what you are doing...
10286 if test -n "$compiler"; then
10287
10288 lt_prog_compiler_no_builtin_flag=
10289
10290 if test "$GCC" = yes; then
10291   case $cc_basename in
10292   nvcc*)
10293     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10294   *)
10295     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10296   esac
10297
10298   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10299 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10300 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10301   $as_echo_n "(cached) " >&6
10302 else
10303   lt_cv_prog_compiler_rtti_exceptions=no
10304    ac_outfile=conftest.$ac_objext
10305    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10306    lt_compiler_flag="-fno-rtti -fno-exceptions"
10307    # Insert the option either (1) after the last *FLAGS variable, or
10308    # (2) before a word containing "conftest.", or (3) at the end.
10309    # Note that $ac_compile itself does not contain backslashes and begins
10310    # with a dollar sign (not a hyphen), so the echo should work correctly.
10311    # The option is referenced via a variable to avoid confusing sed.
10312    lt_compile=`echo "$ac_compile" | $SED \
10313    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10314    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10315    -e 's:$: $lt_compiler_flag:'`
10316    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10317    (eval "$lt_compile" 2>conftest.err)
10318    ac_status=$?
10319    cat conftest.err >&5
10320    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321    if (exit $ac_status) && test -s "$ac_outfile"; then
10322      # The compiler can only warn and ignore the option if not recognized
10323      # So say no if there are warnings other than the usual output.
10324      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10325      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10326      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10327        lt_cv_prog_compiler_rtti_exceptions=yes
10328      fi
10329    fi
10330    $RM conftest*
10331
10332 fi
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10334 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10335
10336 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10337     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10338 else
10339     :
10340 fi
10341
10342 fi
10343
10344
10345
10346
10347
10348
10349   lt_prog_compiler_wl=
10350 lt_prog_compiler_pic=
10351 lt_prog_compiler_static=
10352
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10354 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10355
10356   if test "$GCC" = yes; then
10357     lt_prog_compiler_wl='-Wl,'
10358     lt_prog_compiler_static='-static'
10359
10360     case $host_os in
10361       aix*)
10362       # All AIX code is PIC.
10363       if test "$host_cpu" = ia64; then
10364         # AIX 5 now supports IA64 processor
10365         lt_prog_compiler_static='-Bstatic'
10366       fi
10367       ;;
10368
10369     amigaos*)
10370       case $host_cpu in
10371       powerpc)
10372             # see comment about AmigaOS4 .so support
10373             lt_prog_compiler_pic='-fPIC'
10374         ;;
10375       m68k)
10376             # FIXME: we need at least 68020 code to build shared libraries, but
10377             # adding the `-m68020' flag to GCC prevents building anything better,
10378             # like `-m68040'.
10379             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10380         ;;
10381       esac
10382       ;;
10383
10384     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10385       # PIC is the default for these OSes.
10386       ;;
10387
10388     mingw* | cygwin* | pw32* | os2* | cegcc*)
10389       # This hack is so that the source file can tell whether it is being
10390       # built for inclusion in a dll (and should export symbols for example).
10391       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10392       # (--disable-auto-import) libraries
10393       lt_prog_compiler_pic='-DDLL_EXPORT'
10394       ;;
10395
10396     darwin* | rhapsody*)
10397       # PIC is the default on this platform
10398       # Common symbols not allowed in MH_DYLIB files
10399       lt_prog_compiler_pic='-fno-common'
10400       ;;
10401
10402     haiku*)
10403       # PIC is the default for Haiku.
10404       # The "-static" flag exists, but is broken.
10405       lt_prog_compiler_static=
10406       ;;
10407
10408     hpux*)
10409       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10410       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10411       # sets the default TLS model and affects inlining.
10412       case $host_cpu in
10413       hppa*64*)
10414         # +Z the default
10415         ;;
10416       *)
10417         lt_prog_compiler_pic='-fPIC'
10418         ;;
10419       esac
10420       ;;
10421
10422     interix[3-9]*)
10423       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10424       # Instead, we relocate shared libraries at runtime.
10425       ;;
10426
10427     msdosdjgpp*)
10428       # Just because we use GCC doesn't mean we suddenly get shared libraries
10429       # on systems that don't support them.
10430       lt_prog_compiler_can_build_shared=no
10431       enable_shared=no
10432       ;;
10433
10434     *nto* | *qnx*)
10435       # QNX uses GNU C++, but need to define -shared option too, otherwise
10436       # it will coredump.
10437       lt_prog_compiler_pic='-fPIC -shared'
10438       ;;
10439
10440     sysv4*MP*)
10441       if test -d /usr/nec; then
10442         lt_prog_compiler_pic=-Kconform_pic
10443       fi
10444       ;;
10445
10446     *)
10447       lt_prog_compiler_pic='-fPIC'
10448       ;;
10449     esac
10450
10451     case $cc_basename in
10452     nvcc*) # Cuda Compiler Driver 2.2
10453       lt_prog_compiler_wl='-Xlinker '
10454       lt_prog_compiler_pic='-Xcompiler -fPIC'
10455       ;;
10456     esac
10457   else
10458     # PORTME Check for flag to pass linker flags through the system compiler.
10459     case $host_os in
10460     aix*)
10461       lt_prog_compiler_wl='-Wl,'
10462       if test "$host_cpu" = ia64; then
10463         # AIX 5 now supports IA64 processor
10464         lt_prog_compiler_static='-Bstatic'
10465       else
10466         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10467       fi
10468       ;;
10469
10470     mingw* | cygwin* | pw32* | os2* | cegcc*)
10471       # This hack is so that the source file can tell whether it is being
10472       # built for inclusion in a dll (and should export symbols for example).
10473       lt_prog_compiler_pic='-DDLL_EXPORT'
10474       ;;
10475
10476     hpux9* | hpux10* | hpux11*)
10477       lt_prog_compiler_wl='-Wl,'
10478       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10479       # not for PA HP-UX.
10480       case $host_cpu in
10481       hppa*64*|ia64*)
10482         # +Z the default
10483         ;;
10484       *)
10485         lt_prog_compiler_pic='+Z'
10486         ;;
10487       esac
10488       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10489       lt_prog_compiler_static='${wl}-a ${wl}archive'
10490       ;;
10491
10492     irix5* | irix6* | nonstopux*)
10493       lt_prog_compiler_wl='-Wl,'
10494       # PIC (with -KPIC) is the default.
10495       lt_prog_compiler_static='-non_shared'
10496       ;;
10497
10498     linux* | k*bsd*-gnu | kopensolaris*-gnu)
10499       case $cc_basename in
10500       # old Intel for x86_64 which still supported -KPIC.
10501       ecc*)
10502         lt_prog_compiler_wl='-Wl,'
10503         lt_prog_compiler_pic='-KPIC'
10504         lt_prog_compiler_static='-static'
10505         ;;
10506       # icc used to be incompatible with GCC.
10507       # ICC 10 doesn't accept -KPIC any more.
10508       icc* | ifort*)
10509         lt_prog_compiler_wl='-Wl,'
10510         lt_prog_compiler_pic='-fPIC'
10511         lt_prog_compiler_static='-static'
10512         ;;
10513       # Lahey Fortran 8.1.
10514       lf95*)
10515         lt_prog_compiler_wl='-Wl,'
10516         lt_prog_compiler_pic='--shared'
10517         lt_prog_compiler_static='--static'
10518         ;;
10519       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10520         # Portland Group compilers (*not* the Pentium gcc compiler,
10521         # which looks to be a dead project)
10522         lt_prog_compiler_wl='-Wl,'
10523         lt_prog_compiler_pic='-fpic'
10524         lt_prog_compiler_static='-Bstatic'
10525         ;;
10526       ccc*)
10527         lt_prog_compiler_wl='-Wl,'
10528         # All Alpha code is PIC.
10529         lt_prog_compiler_static='-non_shared'
10530         ;;
10531       xl* | bgxl* | bgf* | mpixl*)
10532         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10533         lt_prog_compiler_wl='-Wl,'
10534         lt_prog_compiler_pic='-qpic'
10535         lt_prog_compiler_static='-qstaticlink'
10536         ;;
10537       *)
10538         case `$CC -V 2>&1 | sed 5q` in
10539         *Sun\ F* | *Sun*Fortran*)
10540           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10541           lt_prog_compiler_pic='-KPIC'
10542           lt_prog_compiler_static='-Bstatic'
10543           lt_prog_compiler_wl=''
10544           ;;
10545         *Sun\ C*)
10546           # Sun C 5.9
10547           lt_prog_compiler_pic='-KPIC'
10548           lt_prog_compiler_static='-Bstatic'
10549           lt_prog_compiler_wl='-Wl,'
10550           ;;
10551         esac
10552         ;;
10553       esac
10554       ;;
10555
10556     newsos6)
10557       lt_prog_compiler_pic='-KPIC'
10558       lt_prog_compiler_static='-Bstatic'
10559       ;;
10560
10561     *nto* | *qnx*)
10562       # QNX uses GNU C++, but need to define -shared option too, otherwise
10563       # it will coredump.
10564       lt_prog_compiler_pic='-fPIC -shared'
10565       ;;
10566
10567     osf3* | osf4* | osf5*)
10568       lt_prog_compiler_wl='-Wl,'
10569       # All OSF/1 code is PIC.
10570       lt_prog_compiler_static='-non_shared'
10571       ;;
10572
10573     rdos*)
10574       lt_prog_compiler_static='-non_shared'
10575       ;;
10576
10577     solaris*)
10578       lt_prog_compiler_pic='-KPIC'
10579       lt_prog_compiler_static='-Bstatic'
10580       case $cc_basename in
10581       f77* | f90* | f95*)
10582         lt_prog_compiler_wl='-Qoption ld ';;
10583       *)
10584         lt_prog_compiler_wl='-Wl,';;
10585       esac
10586       ;;
10587
10588     sunos4*)
10589       lt_prog_compiler_wl='-Qoption ld '
10590       lt_prog_compiler_pic='-PIC'
10591       lt_prog_compiler_static='-Bstatic'
10592       ;;
10593
10594     sysv4 | sysv4.2uw2* | sysv4.3*)
10595       lt_prog_compiler_wl='-Wl,'
10596       lt_prog_compiler_pic='-KPIC'
10597       lt_prog_compiler_static='-Bstatic'
10598       ;;
10599
10600     sysv4*MP*)
10601       if test -d /usr/nec ;then
10602         lt_prog_compiler_pic='-Kconform_pic'
10603         lt_prog_compiler_static='-Bstatic'
10604       fi
10605       ;;
10606
10607     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10608       lt_prog_compiler_wl='-Wl,'
10609       lt_prog_compiler_pic='-KPIC'
10610       lt_prog_compiler_static='-Bstatic'
10611       ;;
10612
10613     unicos*)
10614       lt_prog_compiler_wl='-Wl,'
10615       lt_prog_compiler_can_build_shared=no
10616       ;;
10617
10618     uts4*)
10619       lt_prog_compiler_pic='-pic'
10620       lt_prog_compiler_static='-Bstatic'
10621       ;;
10622
10623     *)
10624       lt_prog_compiler_can_build_shared=no
10625       ;;
10626     esac
10627   fi
10628
10629 case $host_os in
10630   # For platforms which do not support PIC, -DPIC is meaningless:
10631   *djgpp*)
10632     lt_prog_compiler_pic=
10633     ;;
10634   *)
10635     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10636     ;;
10637 esac
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10639 $as_echo "$lt_prog_compiler_pic" >&6; }
10640
10641
10642
10643
10644
10645
10646 #
10647 # Check to make sure the PIC flag actually works.
10648 #
10649 if test -n "$lt_prog_compiler_pic"; then
10650   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10651 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10652 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10653   $as_echo_n "(cached) " >&6
10654 else
10655   lt_cv_prog_compiler_pic_works=no
10656    ac_outfile=conftest.$ac_objext
10657    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10658    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10659    # Insert the option either (1) after the last *FLAGS variable, or
10660    # (2) before a word containing "conftest.", or (3) at the end.
10661    # Note that $ac_compile itself does not contain backslashes and begins
10662    # with a dollar sign (not a hyphen), so the echo should work correctly.
10663    # The option is referenced via a variable to avoid confusing sed.
10664    lt_compile=`echo "$ac_compile" | $SED \
10665    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10666    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10667    -e 's:$: $lt_compiler_flag:'`
10668    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10669    (eval "$lt_compile" 2>conftest.err)
10670    ac_status=$?
10671    cat conftest.err >&5
10672    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673    if (exit $ac_status) && test -s "$ac_outfile"; then
10674      # The compiler can only warn and ignore the option if not recognized
10675      # So say no if there are warnings other than the usual output.
10676      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10677      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10678      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10679        lt_cv_prog_compiler_pic_works=yes
10680      fi
10681    fi
10682    $RM conftest*
10683
10684 fi
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10686 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10687
10688 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10689     case $lt_prog_compiler_pic in
10690      "" | " "*) ;;
10691      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10692      esac
10693 else
10694     lt_prog_compiler_pic=
10695      lt_prog_compiler_can_build_shared=no
10696 fi
10697
10698 fi
10699
10700
10701
10702
10703
10704
10705 #
10706 # Check to make sure the static flag actually works.
10707 #
10708 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10710 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10711 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10712   $as_echo_n "(cached) " >&6
10713 else
10714   lt_cv_prog_compiler_static_works=no
10715    save_LDFLAGS="$LDFLAGS"
10716    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10717    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10718    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10719      # The linker can only warn and ignore the option if not recognized
10720      # So say no if there are warnings
10721      if test -s conftest.err; then
10722        # Append any errors to the config.log.
10723        cat conftest.err 1>&5
10724        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10725        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10726        if diff conftest.exp conftest.er2 >/dev/null; then
10727          lt_cv_prog_compiler_static_works=yes
10728        fi
10729      else
10730        lt_cv_prog_compiler_static_works=yes
10731      fi
10732    fi
10733    $RM -r conftest*
10734    LDFLAGS="$save_LDFLAGS"
10735
10736 fi
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10738 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10739
10740 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10741     :
10742 else
10743     lt_prog_compiler_static=
10744 fi
10745
10746
10747
10748
10749
10750
10751
10752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10753 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10754 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10755   $as_echo_n "(cached) " >&6
10756 else
10757   lt_cv_prog_compiler_c_o=no
10758    $RM -r conftest 2>/dev/null
10759    mkdir conftest
10760    cd conftest
10761    mkdir out
10762    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10763
10764    lt_compiler_flag="-o out/conftest2.$ac_objext"
10765    # Insert the option either (1) after the last *FLAGS variable, or
10766    # (2) before a word containing "conftest.", or (3) at the end.
10767    # Note that $ac_compile itself does not contain backslashes and begins
10768    # with a dollar sign (not a hyphen), so the echo should work correctly.
10769    lt_compile=`echo "$ac_compile" | $SED \
10770    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10771    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10772    -e 's:$: $lt_compiler_flag:'`
10773    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10774    (eval "$lt_compile" 2>out/conftest.err)
10775    ac_status=$?
10776    cat out/conftest.err >&5
10777    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10779    then
10780      # The compiler can only warn and ignore the option if not recognized
10781      # So say no if there are warnings
10782      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10783      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10784      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10785        lt_cv_prog_compiler_c_o=yes
10786      fi
10787    fi
10788    chmod u+w . 2>&5
10789    $RM conftest*
10790    # SGI C++ compiler will create directory out/ii_files/ for
10791    # template instantiation
10792    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10793    $RM out/* && rmdir out
10794    cd ..
10795    $RM -r conftest
10796    $RM conftest*
10797
10798 fi
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10800 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10801
10802
10803
10804
10805
10806
10807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10808 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10809 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10810   $as_echo_n "(cached) " >&6
10811 else
10812   lt_cv_prog_compiler_c_o=no
10813    $RM -r conftest 2>/dev/null
10814    mkdir conftest
10815    cd conftest
10816    mkdir out
10817    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10818
10819    lt_compiler_flag="-o out/conftest2.$ac_objext"
10820    # Insert the option either (1) after the last *FLAGS variable, or
10821    # (2) before a word containing "conftest.", or (3) at the end.
10822    # Note that $ac_compile itself does not contain backslashes and begins
10823    # with a dollar sign (not a hyphen), so the echo should work correctly.
10824    lt_compile=`echo "$ac_compile" | $SED \
10825    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10826    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10827    -e 's:$: $lt_compiler_flag:'`
10828    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10829    (eval "$lt_compile" 2>out/conftest.err)
10830    ac_status=$?
10831    cat out/conftest.err >&5
10832    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10834    then
10835      # The compiler can only warn and ignore the option if not recognized
10836      # So say no if there are warnings
10837      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10838      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10839      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10840        lt_cv_prog_compiler_c_o=yes
10841      fi
10842    fi
10843    chmod u+w . 2>&5
10844    $RM conftest*
10845    # SGI C++ compiler will create directory out/ii_files/ for
10846    # template instantiation
10847    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10848    $RM out/* && rmdir out
10849    cd ..
10850    $RM -r conftest
10851    $RM conftest*
10852
10853 fi
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10855 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10856
10857
10858
10859
10860 hard_links="nottested"
10861 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10862   # do not overwrite the value of need_locks provided by the user
10863   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10864 $as_echo_n "checking if we can lock with hard links... " >&6; }
10865   hard_links=yes
10866   $RM conftest*
10867   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10868   touch conftest.a
10869   ln conftest.a conftest.b 2>&5 || hard_links=no
10870   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10872 $as_echo "$hard_links" >&6; }
10873   if test "$hard_links" = no; then
10874     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10875 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10876     need_locks=warn
10877   fi
10878 else
10879   need_locks=no
10880 fi
10881
10882
10883
10884
10885
10886
10887   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10888 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10889
10890   runpath_var=
10891   allow_undefined_flag=
10892   always_export_symbols=no
10893   archive_cmds=
10894   archive_expsym_cmds=
10895   compiler_needs_object=no
10896   enable_shared_with_static_runtimes=no
10897   export_dynamic_flag_spec=
10898   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10899   hardcode_automatic=no
10900   hardcode_direct=no
10901   hardcode_direct_absolute=no
10902   hardcode_libdir_flag_spec=
10903   hardcode_libdir_flag_spec_ld=
10904   hardcode_libdir_separator=
10905   hardcode_minus_L=no
10906   hardcode_shlibpath_var=unsupported
10907   inherit_rpath=no
10908   link_all_deplibs=unknown
10909   module_cmds=
10910   module_expsym_cmds=
10911   old_archive_from_new_cmds=
10912   old_archive_from_expsyms_cmds=
10913   thread_safe_flag_spec=
10914   whole_archive_flag_spec=
10915   # include_expsyms should be a list of space-separated symbols to be *always*
10916   # included in the symbol list
10917   include_expsyms=
10918   # exclude_expsyms can be an extended regexp of symbols to exclude
10919   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10920   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10921   # as well as any symbol that contains `d'.
10922   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10923   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10924   # platforms (ab)use it in PIC code, but their linkers get confused if
10925   # the symbol is explicitly referenced.  Since portable code cannot
10926   # rely on this symbol name, it's probably fine to never include it in
10927   # preloaded symbol tables.
10928   # Exclude shared library initialization/finalization symbols.
10929   extract_expsyms_cmds=
10930
10931   case $host_os in
10932   cygwin* | mingw* | pw32* | cegcc*)
10933     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10934     # When not using gcc, we currently assume that we are using
10935     # Microsoft Visual C++.
10936     if test "$GCC" != yes; then
10937       with_gnu_ld=no
10938     fi
10939     ;;
10940   interix*)
10941     # we just hope/assume this is gcc and not c89 (= MSVC++)
10942     with_gnu_ld=yes
10943     ;;
10944   openbsd*)
10945     with_gnu_ld=no
10946     ;;
10947   esac
10948
10949   ld_shlibs=yes
10950
10951   # On some targets, GNU ld is compatible enough with the native linker
10952   # that we're better off using the native interface for both.
10953   lt_use_gnu_ld_interface=no
10954   if test "$with_gnu_ld" = yes; then
10955     case $host_os in
10956       aix*)
10957         # The AIX port of GNU ld has always aspired to compatibility
10958         # with the native linker.  However, as the warning in the GNU ld
10959         # block says, versions before 2.19.5* couldn't really create working
10960         # shared libraries, regardless of the interface used.
10961         case `$LD -v 2>&1` in
10962           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10963           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10964           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10965           *)
10966             lt_use_gnu_ld_interface=yes
10967             ;;
10968         esac
10969         ;;
10970       *)
10971         lt_use_gnu_ld_interface=yes
10972         ;;
10973     esac
10974   fi
10975
10976   if test "$lt_use_gnu_ld_interface" = yes; then
10977     # If archive_cmds runs LD, not CC, wlarc should be empty
10978     wlarc='${wl}'
10979
10980     # Set some defaults for GNU ld with shared library support. These
10981     # are reset later if shared libraries are not supported. Putting them
10982     # here allows them to be overridden if necessary.
10983     runpath_var=LD_RUN_PATH
10984     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10985     export_dynamic_flag_spec='${wl}--export-dynamic'
10986     # ancient GNU ld didn't support --whole-archive et. al.
10987     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10988       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10989     else
10990       whole_archive_flag_spec=
10991     fi
10992     supports_anon_versioning=no
10993     case `$LD -v 2>&1` in
10994       *GNU\ gold*) supports_anon_versioning=yes ;;
10995       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10996       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10997       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10998       *\ 2.11.*) ;; # other 2.11 versions
10999       *) supports_anon_versioning=yes ;;
11000     esac
11001
11002     # See if GNU ld supports shared libraries.
11003     case $host_os in
11004     aix[3-9]*)
11005       # On AIX/PPC, the GNU linker is very broken
11006       if test "$host_cpu" != ia64; then
11007         ld_shlibs=no
11008         cat <<_LT_EOF 1>&2
11009
11010 *** Warning: the GNU linker, at least up to release 2.19, is reported
11011 *** to be unable to reliably create shared libraries on AIX.
11012 *** Therefore, libtool is disabling shared libraries support.  If you
11013 *** really care for shared libraries, you may want to install binutils
11014 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11015 *** You will then need to restart the configuration process.
11016
11017 _LT_EOF
11018       fi
11019       ;;
11020
11021     amigaos*)
11022       case $host_cpu in
11023       powerpc)
11024             # see comment about AmigaOS4 .so support
11025             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11026             archive_expsym_cmds=''
11027         ;;
11028       m68k)
11029             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)'
11030             hardcode_libdir_flag_spec='-L$libdir'
11031             hardcode_minus_L=yes
11032         ;;
11033       esac
11034       ;;
11035
11036     beos*)
11037       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11038         allow_undefined_flag=unsupported
11039         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11040         # support --undefined.  This deserves some investigation.  FIXME
11041         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11042       else
11043         ld_shlibs=no
11044       fi
11045       ;;
11046
11047     cygwin* | mingw* | pw32* | cegcc*)
11048       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11049       # as there is no search path for DLLs.
11050       hardcode_libdir_flag_spec='-L$libdir'
11051       export_dynamic_flag_spec='${wl}--export-all-symbols'
11052       allow_undefined_flag=unsupported
11053       always_export_symbols=no
11054       enable_shared_with_static_runtimes=yes
11055       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11056
11057       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11058         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11059         # If the export-symbols file already is a .def file (1st line
11060         # is EXPORTS), use it as is; otherwise, prepend...
11061         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11062           cp $export_symbols $output_objdir/$soname.def;
11063         else
11064           echo EXPORTS > $output_objdir/$soname.def;
11065           cat $export_symbols >> $output_objdir/$soname.def;
11066         fi~
11067         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11068       else
11069         ld_shlibs=no
11070       fi
11071       ;;
11072
11073     haiku*)
11074       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11075       link_all_deplibs=yes
11076       ;;
11077
11078     interix[3-9]*)
11079       hardcode_direct=no
11080       hardcode_shlibpath_var=no
11081       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11082       export_dynamic_flag_spec='${wl}-E'
11083       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11084       # Instead, shared libraries are loaded at an image base (0x10000000 by
11085       # default) and relocated if they conflict, which is a slow very memory
11086       # consuming and fragmenting process.  To avoid this, we pick a random,
11087       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11088       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11089       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11090       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'
11091       ;;
11092
11093     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11094       tmp_diet=no
11095       if test "$host_os" = linux-dietlibc; then
11096         case $cc_basename in
11097           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
11098         esac
11099       fi
11100       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11101          && test "$tmp_diet" = no
11102       then
11103         tmp_addflag=
11104         tmp_sharedflag='-shared'
11105         case $cc_basename,$host_cpu in
11106         pgcc*)                          # Portland Group C compiler
11107           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'
11108           tmp_addflag=' $pic_flag'
11109           ;;
11110         pgf77* | pgf90* | pgf95* | pgfortran*)
11111                                         # Portland Group f77 and f90 compilers
11112           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'
11113           tmp_addflag=' $pic_flag -Mnomain' ;;
11114         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11115           tmp_addflag=' -i_dynamic' ;;
11116         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11117           tmp_addflag=' -i_dynamic -nofor_main' ;;
11118         ifc* | ifort*)                  # Intel Fortran compiler
11119           tmp_addflag=' -nofor_main' ;;
11120         lf95*)                          # Lahey Fortran 8.1
11121           whole_archive_flag_spec=
11122           tmp_sharedflag='--shared' ;;
11123         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11124           tmp_sharedflag='-qmkshrobj'
11125           tmp_addflag= ;;
11126         nvcc*)  # Cuda Compiler Driver 2.2
11127           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'
11128           compiler_needs_object=yes
11129           ;;
11130         esac
11131         case `$CC -V 2>&1 | sed 5q` in
11132         *Sun\ C*)                       # Sun C 5.9
11133           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'
11134           compiler_needs_object=yes
11135           tmp_sharedflag='-G' ;;
11136         *Sun\ F*)                       # Sun Fortran 8.3
11137           tmp_sharedflag='-G' ;;
11138         esac
11139         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11140
11141         if test "x$supports_anon_versioning" = xyes; then
11142           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11143             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11144             echo "local: *; };" >> $output_objdir/$libname.ver~
11145             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11146         fi
11147
11148         case $cc_basename in
11149         xlf* | bgf* | bgxlf* | mpixlf*)
11150           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11151           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11152           hardcode_libdir_flag_spec=
11153           hardcode_libdir_flag_spec_ld='-rpath $libdir'
11154           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11155           if test "x$supports_anon_versioning" = xyes; then
11156             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11157               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11158               echo "local: *; };" >> $output_objdir/$libname.ver~
11159               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11160           fi
11161           ;;
11162         esac
11163       else
11164         ld_shlibs=no
11165       fi
11166       ;;
11167
11168     netbsd*)
11169       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11170         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11171         wlarc=
11172       else
11173         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11174         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11175       fi
11176       ;;
11177
11178     solaris*)
11179       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11180         ld_shlibs=no
11181         cat <<_LT_EOF 1>&2
11182
11183 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11184 *** create shared libraries on Solaris systems.  Therefore, libtool
11185 *** is disabling shared libraries support.  We urge you to upgrade GNU
11186 *** binutils to release 2.9.1 or newer.  Another option is to modify
11187 *** your PATH or compiler configuration so that the native linker is
11188 *** used, and then restart.
11189
11190 _LT_EOF
11191       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11192         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11193         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11194       else
11195         ld_shlibs=no
11196       fi
11197       ;;
11198
11199     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11200       case `$LD -v 2>&1` in
11201         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11202         ld_shlibs=no
11203         cat <<_LT_EOF 1>&2
11204
11205 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11206 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11207 *** is disabling shared libraries support.  We urge you to upgrade GNU
11208 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11209 *** your PATH or compiler configuration so that the native linker is
11210 *** used, and then restart.
11211
11212 _LT_EOF
11213         ;;
11214         *)
11215           # For security reasons, it is highly recommended that you always
11216           # use absolute paths for naming shared libraries, and exclude the
11217           # DT_RUNPATH tag from executables and libraries.  But doing so
11218           # requires that you compile everything twice, which is a pain.
11219           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11220             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11221             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11222             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11223           else
11224             ld_shlibs=no
11225           fi
11226         ;;
11227       esac
11228       ;;
11229
11230     sunos4*)
11231       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11232       wlarc=
11233       hardcode_direct=yes
11234       hardcode_shlibpath_var=no
11235       ;;
11236
11237     *)
11238       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11239         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11240         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11241       else
11242         ld_shlibs=no
11243       fi
11244       ;;
11245     esac
11246
11247     if test "$ld_shlibs" = no; then
11248       runpath_var=
11249       hardcode_libdir_flag_spec=
11250       export_dynamic_flag_spec=
11251       whole_archive_flag_spec=
11252     fi
11253   else
11254     # PORTME fill in a description of your system's linker (not GNU ld)
11255     case $host_os in
11256     aix3*)
11257       allow_undefined_flag=unsupported
11258       always_export_symbols=yes
11259       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'
11260       # Note: this linker hardcodes the directories in LIBPATH if there
11261       # are no directories specified by -L.
11262       hardcode_minus_L=yes
11263       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11264         # Neither direct hardcoding nor static linking is supported with a
11265         # broken collect2.
11266         hardcode_direct=unsupported
11267       fi
11268       ;;
11269
11270     aix[4-9]*)
11271       if test "$host_cpu" = ia64; then
11272         # On IA64, the linker does run time linking by default, so we don't
11273         # have to do anything special.
11274         aix_use_runtimelinking=no
11275         exp_sym_flag='-Bexport'
11276         no_entry_flag=""
11277       else
11278         # If we're using GNU nm, then we don't want the "-C" option.
11279         # -C means demangle to AIX nm, but means don't demangle with GNU nm
11280         # Also, AIX nm treats weak defined symbols like other global
11281         # defined symbols, whereas GNU nm marks them as "W".
11282         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11283           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'
11284         else
11285           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'
11286         fi
11287         aix_use_runtimelinking=no
11288
11289         # Test if we are trying to use run time linking or normal
11290         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11291         # need to do runtime linking.
11292         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11293           for ld_flag in $LDFLAGS; do
11294           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11295             aix_use_runtimelinking=yes
11296             break
11297           fi
11298           done
11299           ;;
11300         esac
11301
11302         exp_sym_flag='-bexport'
11303         no_entry_flag='-bnoentry'
11304       fi
11305
11306       # When large executables or shared objects are built, AIX ld can
11307       # have problems creating the table of contents.  If linking a library
11308       # or program results in "error TOC overflow" add -mminimal-toc to
11309       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11310       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11311
11312       archive_cmds=''
11313       hardcode_direct=yes
11314       hardcode_direct_absolute=yes
11315       hardcode_libdir_separator=':'
11316       link_all_deplibs=yes
11317       file_list_spec='${wl}-f,'
11318
11319       if test "$GCC" = yes; then
11320         case $host_os in aix4.[012]|aix4.[012].*)
11321         # We only want to do this on AIX 4.2 and lower, the check
11322         # below for broken collect2 doesn't work under 4.3+
11323           collect2name=`${CC} -print-prog-name=collect2`
11324           if test -f "$collect2name" &&
11325            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11326           then
11327           # We have reworked collect2
11328           :
11329           else
11330           # We have old collect2
11331           hardcode_direct=unsupported
11332           # It fails to find uninstalled libraries when the uninstalled
11333           # path is not listed in the libpath.  Setting hardcode_minus_L
11334           # to unsupported forces relinking
11335           hardcode_minus_L=yes
11336           hardcode_libdir_flag_spec='-L$libdir'
11337           hardcode_libdir_separator=
11338           fi
11339           ;;
11340         esac
11341         shared_flag='-shared'
11342         if test "$aix_use_runtimelinking" = yes; then
11343           shared_flag="$shared_flag "'${wl}-G'
11344         fi
11345       else
11346         # not using gcc
11347         if test "$host_cpu" = ia64; then
11348         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11349         # chokes on -Wl,-G. The following line is correct:
11350           shared_flag='-G'
11351         else
11352           if test "$aix_use_runtimelinking" = yes; then
11353             shared_flag='${wl}-G'
11354           else
11355             shared_flag='${wl}-bM:SRE'
11356           fi
11357         fi
11358       fi
11359
11360       export_dynamic_flag_spec='${wl}-bexpall'
11361       # It seems that -bexpall does not export symbols beginning with
11362       # underscore (_), so it is better to generate a list of symbols to export.
11363       always_export_symbols=yes
11364       if test "$aix_use_runtimelinking" = yes; then
11365         # Warning - without using the other runtime loading flags (-brtl),
11366         # -berok will link without error, but may produce a broken library.
11367         allow_undefined_flag='-berok'
11368         # Determine the default libpath from the value encoded in an
11369         # empty executable.
11370         if test x$gcc_no_link = xyes; then
11371   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11372 fi
11373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11374 /* end confdefs.h.  */
11375
11376 int
11377 main ()
11378 {
11379
11380   ;
11381   return 0;
11382 }
11383 _ACEOF
11384 if ac_fn_c_try_link "$LINENO"; then :
11385
11386 lt_aix_libpath_sed='
11387     /Import File Strings/,/^$/ {
11388         /^0/ {
11389             s/^0  *\(.*\)$/\1/
11390             p
11391         }
11392     }'
11393 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11394 # Check for a 64-bit object if we didn't find anything.
11395 if test -z "$aix_libpath"; then
11396   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11397 fi
11398 fi
11399 rm -f core conftest.err conftest.$ac_objext \
11400     conftest$ac_exeext conftest.$ac_ext
11401 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11402
11403         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11404         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"
11405       else
11406         if test "$host_cpu" = ia64; then
11407           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11408           allow_undefined_flag="-z nodefs"
11409           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"
11410         else
11411          # Determine the default libpath from the value encoded in an
11412          # empty executable.
11413          if test x$gcc_no_link = xyes; then
11414   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11415 fi
11416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11417 /* end confdefs.h.  */
11418
11419 int
11420 main ()
11421 {
11422
11423   ;
11424   return 0;
11425 }
11426 _ACEOF
11427 if ac_fn_c_try_link "$LINENO"; then :
11428
11429 lt_aix_libpath_sed='
11430     /Import File Strings/,/^$/ {
11431         /^0/ {
11432             s/^0  *\(.*\)$/\1/
11433             p
11434         }
11435     }'
11436 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11437 # Check for a 64-bit object if we didn't find anything.
11438 if test -z "$aix_libpath"; then
11439   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11440 fi
11441 fi
11442 rm -f core conftest.err conftest.$ac_objext \
11443     conftest$ac_exeext conftest.$ac_ext
11444 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11445
11446          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11447           # Warning - without using the other run time loading flags,
11448           # -berok will link without error, but may produce a broken library.
11449           no_undefined_flag=' ${wl}-bernotok'
11450           allow_undefined_flag=' ${wl}-berok'
11451           if test "$with_gnu_ld" = yes; then
11452             # We only use this code for GNU lds that support --whole-archive.
11453             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11454           else
11455             # Exported symbols can be pulled into shared objects from archives
11456             whole_archive_flag_spec='$convenience'
11457           fi
11458           archive_cmds_need_lc=yes
11459           # This is similar to how AIX traditionally builds its shared libraries.
11460           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'
11461         fi
11462       fi
11463       ;;
11464
11465     amigaos*)
11466       case $host_cpu in
11467       powerpc)
11468             # see comment about AmigaOS4 .so support
11469             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11470             archive_expsym_cmds=''
11471         ;;
11472       m68k)
11473             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)'
11474             hardcode_libdir_flag_spec='-L$libdir'
11475             hardcode_minus_L=yes
11476         ;;
11477       esac
11478       ;;
11479
11480     bsdi[45]*)
11481       export_dynamic_flag_spec=-rdynamic
11482       ;;
11483
11484     cygwin* | mingw* | pw32* | cegcc*)
11485       # When not using gcc, we currently assume that we are using
11486       # Microsoft Visual C++.
11487       # hardcode_libdir_flag_spec is actually meaningless, as there is
11488       # no search path for DLLs.
11489       hardcode_libdir_flag_spec=' '
11490       allow_undefined_flag=unsupported
11491       # Tell ltmain to make .lib files, not .a files.
11492       libext=lib
11493       # Tell ltmain to make .dll files, not .so files.
11494       shrext_cmds=".dll"
11495       # FIXME: Setting linknames here is a bad hack.
11496       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11497       # The linker will automatically build a .lib file if we build a DLL.
11498       old_archive_from_new_cmds='true'
11499       # FIXME: Should let the user specify the lib program.
11500       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11501       fix_srcfile_path='`cygpath -w "$srcfile"`'
11502       enable_shared_with_static_runtimes=yes
11503       ;;
11504
11505     darwin* | rhapsody*)
11506
11507
11508   archive_cmds_need_lc=no
11509   hardcode_direct=no
11510   hardcode_automatic=yes
11511   hardcode_shlibpath_var=unsupported
11512   if test "$lt_cv_ld_force_load" = "yes"; then
11513     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\"`'
11514   else
11515     whole_archive_flag_spec=''
11516   fi
11517   link_all_deplibs=yes
11518   allow_undefined_flag="$_lt_dar_allow_undefined"
11519   case $cc_basename in
11520      ifort*) _lt_dar_can_shared=yes ;;
11521      *) _lt_dar_can_shared=$GCC ;;
11522   esac
11523   if test "$_lt_dar_can_shared" = "yes"; then
11524     output_verbose_link_cmd=func_echo_all
11525     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11526     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11527     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}"
11528     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}"
11529
11530   else
11531   ld_shlibs=no
11532   fi
11533
11534       ;;
11535
11536     dgux*)
11537       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11538       hardcode_libdir_flag_spec='-L$libdir'
11539       hardcode_shlibpath_var=no
11540       ;;
11541
11542     freebsd1*)
11543       ld_shlibs=no
11544       ;;
11545
11546     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11547     # support.  Future versions do this automatically, but an explicit c++rt0.o
11548     # does not break anything, and helps significantly (at the cost of a little
11549     # extra space).
11550     freebsd2.2*)
11551       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11552       hardcode_libdir_flag_spec='-R$libdir'
11553       hardcode_direct=yes
11554       hardcode_shlibpath_var=no
11555       ;;
11556
11557     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11558     freebsd2*)
11559       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11560       hardcode_direct=yes
11561       hardcode_minus_L=yes
11562       hardcode_shlibpath_var=no
11563       ;;
11564
11565     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11566     freebsd* | dragonfly*)
11567       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11568       hardcode_libdir_flag_spec='-R$libdir'
11569       hardcode_direct=yes
11570       hardcode_shlibpath_var=no
11571       ;;
11572
11573     hpux9*)
11574       if test "$GCC" = yes; then
11575         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'
11576       else
11577         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'
11578       fi
11579       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11580       hardcode_libdir_separator=:
11581       hardcode_direct=yes
11582
11583       # hardcode_minus_L: Not really in the search PATH,
11584       # but as the default location of the library.
11585       hardcode_minus_L=yes
11586       export_dynamic_flag_spec='${wl}-E'
11587       ;;
11588
11589     hpux10*)
11590       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11591         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11592       else
11593         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11594       fi
11595       if test "$with_gnu_ld" = no; then
11596         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11597         hardcode_libdir_flag_spec_ld='+b $libdir'
11598         hardcode_libdir_separator=:
11599         hardcode_direct=yes
11600         hardcode_direct_absolute=yes
11601         export_dynamic_flag_spec='${wl}-E'
11602         # hardcode_minus_L: Not really in the search PATH,
11603         # but as the default location of the library.
11604         hardcode_minus_L=yes
11605       fi
11606       ;;
11607
11608     hpux11*)
11609       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11610         case $host_cpu in
11611         hppa*64*)
11612           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11613           ;;
11614         ia64*)
11615           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11616           ;;
11617         *)
11618           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11619           ;;
11620         esac
11621       else
11622         case $host_cpu in
11623         hppa*64*)
11624           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11625           ;;
11626         ia64*)
11627           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11628           ;;
11629         *)
11630
11631           # Older versions of the 11.00 compiler do not understand -b yet
11632           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11633           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11634 $as_echo_n "checking if $CC understands -b... " >&6; }
11635 if test "${lt_cv_prog_compiler__b+set}" = set; then :
11636   $as_echo_n "(cached) " >&6
11637 else
11638   lt_cv_prog_compiler__b=no
11639    save_LDFLAGS="$LDFLAGS"
11640    LDFLAGS="$LDFLAGS -b"
11641    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11642    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11643      # The linker can only warn and ignore the option if not recognized
11644      # So say no if there are warnings
11645      if test -s conftest.err; then
11646        # Append any errors to the config.log.
11647        cat conftest.err 1>&5
11648        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11649        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11650        if diff conftest.exp conftest.er2 >/dev/null; then
11651          lt_cv_prog_compiler__b=yes
11652        fi
11653      else
11654        lt_cv_prog_compiler__b=yes
11655      fi
11656    fi
11657    $RM -r conftest*
11658    LDFLAGS="$save_LDFLAGS"
11659
11660 fi
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11662 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11663
11664 if test x"$lt_cv_prog_compiler__b" = xyes; then
11665     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11666 else
11667     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11668 fi
11669
11670           ;;
11671         esac
11672       fi
11673       if test "$with_gnu_ld" = no; then
11674         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11675         hardcode_libdir_separator=:
11676
11677         case $host_cpu in
11678         hppa*64*|ia64*)
11679           hardcode_direct=no
11680           hardcode_shlibpath_var=no
11681           ;;
11682         *)
11683           hardcode_direct=yes
11684           hardcode_direct_absolute=yes
11685           export_dynamic_flag_spec='${wl}-E'
11686
11687           # hardcode_minus_L: Not really in the search PATH,
11688           # but as the default location of the library.
11689           hardcode_minus_L=yes
11690           ;;
11691         esac
11692       fi
11693       ;;
11694
11695     irix5* | irix6* | nonstopux*)
11696       if test "$GCC" = yes; then
11697         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'
11698         # Try to use the -exported_symbol ld option, if it does not
11699         # work, assume that -exports_file does not work either and
11700         # implicitly export all symbols.
11701         save_LDFLAGS="$LDFLAGS"
11702         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11703         if test x$gcc_no_link = xyes; then
11704   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11705 fi
11706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11707 /* end confdefs.h.  */
11708 int foo(void) {}
11709 _ACEOF
11710 if ac_fn_c_try_link "$LINENO"; then :
11711   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'
11712
11713 fi
11714 rm -f core conftest.err conftest.$ac_objext \
11715     conftest$ac_exeext conftest.$ac_ext
11716         LDFLAGS="$save_LDFLAGS"
11717       else
11718         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'
11719         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'
11720       fi
11721       archive_cmds_need_lc='no'
11722       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11723       hardcode_libdir_separator=:
11724       inherit_rpath=yes
11725       link_all_deplibs=yes
11726       ;;
11727
11728     netbsd*)
11729       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11730         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11731       else
11732         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11733       fi
11734       hardcode_libdir_flag_spec='-R$libdir'
11735       hardcode_direct=yes
11736       hardcode_shlibpath_var=no
11737       ;;
11738
11739     newsos6)
11740       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11741       hardcode_direct=yes
11742       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11743       hardcode_libdir_separator=:
11744       hardcode_shlibpath_var=no
11745       ;;
11746
11747     *nto* | *qnx*)
11748       ;;
11749
11750     openbsd*)
11751       if test -f /usr/libexec/ld.so; then
11752         hardcode_direct=yes
11753         hardcode_shlibpath_var=no
11754         hardcode_direct_absolute=yes
11755         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11756           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11757           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11758           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11759           export_dynamic_flag_spec='${wl}-E'
11760         else
11761           case $host_os in
11762            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11763              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11764              hardcode_libdir_flag_spec='-R$libdir'
11765              ;;
11766            *)
11767              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11768              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11769              ;;
11770           esac
11771         fi
11772       else
11773         ld_shlibs=no
11774       fi
11775       ;;
11776
11777     os2*)
11778       hardcode_libdir_flag_spec='-L$libdir'
11779       hardcode_minus_L=yes
11780       allow_undefined_flag=unsupported
11781       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'
11782       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11783       ;;
11784
11785     osf3*)
11786       if test "$GCC" = yes; then
11787         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11788         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'
11789       else
11790         allow_undefined_flag=' -expect_unresolved \*'
11791         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'
11792       fi
11793       archive_cmds_need_lc='no'
11794       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11795       hardcode_libdir_separator=:
11796       ;;
11797
11798     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11799       if test "$GCC" = yes; then
11800         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11801         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'
11802         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11803       else
11804         allow_undefined_flag=' -expect_unresolved \*'
11805         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'
11806         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~
11807         $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'
11808
11809         # Both c and cxx compiler support -rpath directly
11810         hardcode_libdir_flag_spec='-rpath $libdir'
11811       fi
11812       archive_cmds_need_lc='no'
11813       hardcode_libdir_separator=:
11814       ;;
11815
11816     solaris*)
11817       no_undefined_flag=' -z defs'
11818       if test "$GCC" = yes; then
11819         wlarc='${wl}'
11820         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11821         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11822           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11823       else
11824         case `$CC -V 2>&1` in
11825         *"Compilers 5.0"*)
11826           wlarc=''
11827           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11828           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11829           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11830           ;;
11831         *)
11832           wlarc='${wl}'
11833           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11834           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11835           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11836           ;;
11837         esac
11838       fi
11839       hardcode_libdir_flag_spec='-R$libdir'
11840       hardcode_shlibpath_var=no
11841       case $host_os in
11842       solaris2.[0-5] | solaris2.[0-5].*) ;;
11843       *)
11844         # The compiler driver will combine and reorder linker options,
11845         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11846         # but is careful enough not to reorder.
11847         # Supported since Solaris 2.6 (maybe 2.5.1?)
11848         if test "$GCC" = yes; then
11849           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11850         else
11851           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11852         fi
11853         ;;
11854       esac
11855       link_all_deplibs=yes
11856       ;;
11857
11858     sunos4*)
11859       if test "x$host_vendor" = xsequent; then
11860         # Use $CC to link under sequent, because it throws in some extra .o
11861         # files that make .init and .fini sections work.
11862         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11863       else
11864         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11865       fi
11866       hardcode_libdir_flag_spec='-L$libdir'
11867       hardcode_direct=yes
11868       hardcode_minus_L=yes
11869       hardcode_shlibpath_var=no
11870       ;;
11871
11872     sysv4)
11873       case $host_vendor in
11874         sni)
11875           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11876           hardcode_direct=yes # is this really true???
11877         ;;
11878         siemens)
11879           ## LD is ld it makes a PLAMLIB
11880           ## CC just makes a GrossModule.
11881           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11882           reload_cmds='$CC -r -o $output$reload_objs'
11883           hardcode_direct=no
11884         ;;
11885         motorola)
11886           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11887           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11888         ;;
11889       esac
11890       runpath_var='LD_RUN_PATH'
11891       hardcode_shlibpath_var=no
11892       ;;
11893
11894     sysv4.3*)
11895       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11896       hardcode_shlibpath_var=no
11897       export_dynamic_flag_spec='-Bexport'
11898       ;;
11899
11900     sysv4*MP*)
11901       if test -d /usr/nec; then
11902         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11903         hardcode_shlibpath_var=no
11904         runpath_var=LD_RUN_PATH
11905         hardcode_runpath_var=yes
11906         ld_shlibs=yes
11907       fi
11908       ;;
11909
11910     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11911       no_undefined_flag='${wl}-z,text'
11912       archive_cmds_need_lc=no
11913       hardcode_shlibpath_var=no
11914       runpath_var='LD_RUN_PATH'
11915
11916       if test "$GCC" = yes; then
11917         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11918         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11919       else
11920         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11921         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11922       fi
11923       ;;
11924
11925     sysv5* | sco3.2v5* | sco5v6*)
11926       # Note: We can NOT use -z defs as we might desire, because we do not
11927       # link with -lc, and that would cause any symbols used from libc to
11928       # always be unresolved, which means just about no library would
11929       # ever link correctly.  If we're not using GNU ld we use -z text
11930       # though, which does catch some bad symbols but isn't as heavy-handed
11931       # as -z defs.
11932       no_undefined_flag='${wl}-z,text'
11933       allow_undefined_flag='${wl}-z,nodefs'
11934       archive_cmds_need_lc=no
11935       hardcode_shlibpath_var=no
11936       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11937       hardcode_libdir_separator=':'
11938       link_all_deplibs=yes
11939       export_dynamic_flag_spec='${wl}-Bexport'
11940       runpath_var='LD_RUN_PATH'
11941
11942       if test "$GCC" = yes; then
11943         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11944         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11945       else
11946         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11947         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11948       fi
11949       ;;
11950
11951     uts4*)
11952       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11953       hardcode_libdir_flag_spec='-L$libdir'
11954       hardcode_shlibpath_var=no
11955       ;;
11956
11957     *)
11958       ld_shlibs=no
11959       ;;
11960     esac
11961
11962     if test x$host_vendor = xsni; then
11963       case $host in
11964       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11965         export_dynamic_flag_spec='${wl}-Blargedynsym'
11966         ;;
11967       esac
11968     fi
11969   fi
11970
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11972 $as_echo "$ld_shlibs" >&6; }
11973 test "$ld_shlibs" = no && can_build_shared=no
11974
11975 with_gnu_ld=$with_gnu_ld
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991 #
11992 # Do we need to explicitly link libc?
11993 #
11994 case "x$archive_cmds_need_lc" in
11995 x|xyes)
11996   # Assume -lc should be added
11997   archive_cmds_need_lc=yes
11998
11999   if test "$enable_shared" = yes && test "$GCC" = yes; then
12000     case $archive_cmds in
12001     *'~'*)
12002       # FIXME: we may have to deal with multi-command sequences.
12003       ;;
12004     '$CC '*)
12005       # Test whether the compiler implicitly links with -lc since on some
12006       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12007       # to ld, don't add -lc before -lgcc.
12008       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12009 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12010 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
12011   $as_echo_n "(cached) " >&6
12012 else
12013   $RM conftest*
12014         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12015
12016         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12017   (eval $ac_compile) 2>&5
12018   ac_status=$?
12019   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12020   test $ac_status = 0; } 2>conftest.err; then
12021           soname=conftest
12022           lib=conftest
12023           libobjs=conftest.$ac_objext
12024           deplibs=
12025           wl=$lt_prog_compiler_wl
12026           pic_flag=$lt_prog_compiler_pic
12027           compiler_flags=-v
12028           linker_flags=-v
12029           verstring=
12030           output_objdir=.
12031           libname=conftest
12032           lt_save_allow_undefined_flag=$allow_undefined_flag
12033           allow_undefined_flag=
12034           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12035   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12036   ac_status=$?
12037   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12038   test $ac_status = 0; }
12039           then
12040             lt_cv_archive_cmds_need_lc=no
12041           else
12042             lt_cv_archive_cmds_need_lc=yes
12043           fi
12044           allow_undefined_flag=$lt_save_allow_undefined_flag
12045         else
12046           cat conftest.err 1>&5
12047         fi
12048         $RM conftest*
12049
12050 fi
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12052 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12053       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12054       ;;
12055     esac
12056   fi
12057   ;;
12058 esac
12059
12060
12061
12062
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12217 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12218
12219 if test "$GCC" = yes; then
12220   case $host_os in
12221     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12222     *) lt_awk_arg="/^libraries:/" ;;
12223   esac
12224   case $host_os in
12225     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12226     *) lt_sed_strip_eq="s,=/,/,g" ;;
12227   esac
12228   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12229   case $lt_search_path_spec in
12230   *\;*)
12231     # if the path contains ";" then we assume it to be the separator
12232     # otherwise default to the standard path separator (i.e. ":") - it is
12233     # assumed that no part of a normal pathname contains ";" but that should
12234     # okay in the real world where ";" in dirpaths is itself problematic.
12235     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12236     ;;
12237   *)
12238     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12239     ;;
12240   esac
12241   # Ok, now we have the path, separated by spaces, we can step through it
12242   # and add multilib dir if necessary.
12243   lt_tmp_lt_search_path_spec=
12244   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12245   for lt_sys_path in $lt_search_path_spec; do
12246     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12247       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12248     else
12249       test -d "$lt_sys_path" && \
12250         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12251     fi
12252   done
12253   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12254 BEGIN {RS=" "; FS="/|\n";} {
12255   lt_foo="";
12256   lt_count=0;
12257   for (lt_i = NF; lt_i > 0; lt_i--) {
12258     if ($lt_i != "" && $lt_i != ".") {
12259       if ($lt_i == "..") {
12260         lt_count++;
12261       } else {
12262         if (lt_count == 0) {
12263           lt_foo="/" $lt_i lt_foo;
12264         } else {
12265           lt_count--;
12266         }
12267       }
12268     }
12269   }
12270   if (lt_foo != "") { lt_freq[lt_foo]++; }
12271   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12272 }'`
12273   # AWK program above erroneously prepends '/' to C:/dos/paths
12274   # for these hosts.
12275   case $host_os in
12276     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12277       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12278   esac
12279   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12280 else
12281   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12282 fi
12283 library_names_spec=
12284 libname_spec='lib$name'
12285 soname_spec=
12286 shrext_cmds=".so"
12287 postinstall_cmds=
12288 postuninstall_cmds=
12289 finish_cmds=
12290 finish_eval=
12291 shlibpath_var=
12292 shlibpath_overrides_runpath=unknown
12293 version_type=none
12294 dynamic_linker="$host_os ld.so"
12295 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12296 need_lib_prefix=unknown
12297 hardcode_into_libs=no
12298
12299 # when you set need_version to no, make sure it does not cause -set_version
12300 # flags to be left without arguments
12301 need_version=unknown
12302
12303 case $host_os in
12304 aix3*)
12305   version_type=linux
12306   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12307   shlibpath_var=LIBPATH
12308
12309   # AIX 3 has no versioning support, so we append a major version to the name.
12310   soname_spec='${libname}${release}${shared_ext}$major'
12311   ;;
12312
12313 aix[4-9]*)
12314   version_type=linux
12315   need_lib_prefix=no
12316   need_version=no
12317   hardcode_into_libs=yes
12318   if test "$host_cpu" = ia64; then
12319     # AIX 5 supports IA64
12320     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12321     shlibpath_var=LD_LIBRARY_PATH
12322   else
12323     # With GCC up to 2.95.x, collect2 would create an import file
12324     # for dependence libraries.  The import file would start with
12325     # the line `#! .'.  This would cause the generated library to
12326     # depend on `.', always an invalid library.  This was fixed in
12327     # development snapshots of GCC prior to 3.0.
12328     case $host_os in
12329       aix4 | aix4.[01] | aix4.[01].*)
12330       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12331            echo ' yes '
12332            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12333         :
12334       else
12335         can_build_shared=no
12336       fi
12337       ;;
12338     esac
12339     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12340     # soname into executable. Probably we can add versioning support to
12341     # collect2, so additional links can be useful in future.
12342     if test "$aix_use_runtimelinking" = yes; then
12343       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12344       # instead of lib<name>.a to let people know that these are not
12345       # typical AIX shared libraries.
12346       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12347     else
12348       # We preserve .a as extension for shared libraries through AIX4.2
12349       # and later when we are not doing run time linking.
12350       library_names_spec='${libname}${release}.a $libname.a'
12351       soname_spec='${libname}${release}${shared_ext}$major'
12352     fi
12353     shlibpath_var=LIBPATH
12354   fi
12355   ;;
12356
12357 amigaos*)
12358   case $host_cpu in
12359   powerpc)
12360     # Since July 2007 AmigaOS4 officially supports .so libraries.
12361     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12362     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12363     ;;
12364   m68k)
12365     library_names_spec='$libname.ixlibrary $libname.a'
12366     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12367     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'
12368     ;;
12369   esac
12370   ;;
12371
12372 beos*)
12373   library_names_spec='${libname}${shared_ext}'
12374   dynamic_linker="$host_os ld.so"
12375   shlibpath_var=LIBRARY_PATH
12376   ;;
12377
12378 bsdi[45]*)
12379   version_type=linux
12380   need_version=no
12381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12382   soname_spec='${libname}${release}${shared_ext}$major'
12383   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12384   shlibpath_var=LD_LIBRARY_PATH
12385   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12386   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12387   # the default ld.so.conf also contains /usr/contrib/lib and
12388   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12389   # libtool to hard-code these into programs
12390   ;;
12391
12392 cygwin* | mingw* | pw32* | cegcc*)
12393   version_type=windows
12394   shrext_cmds=".dll"
12395   need_version=no
12396   need_lib_prefix=no
12397
12398   case $GCC,$host_os in
12399   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12400     library_names_spec='$libname.dll.a'
12401     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12402     postinstall_cmds='base_file=`basename \${file}`~
12403       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12404       dldir=$destdir/`dirname \$dlpath`~
12405       test -d \$dldir || mkdir -p \$dldir~
12406       $install_prog $dir/$dlname \$dldir/$dlname~
12407       chmod a+x \$dldir/$dlname~
12408       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12409         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12410       fi'
12411     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12412       dlpath=$dir/\$dldll~
12413        $RM \$dlpath'
12414     shlibpath_overrides_runpath=yes
12415
12416     case $host_os in
12417     cygwin*)
12418       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12419       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12420
12421       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12422       ;;
12423     mingw* | cegcc*)
12424       # MinGW DLLs use traditional 'lib' prefix
12425       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12426       ;;
12427     pw32*)
12428       # pw32 DLLs use 'pw' prefix rather than 'lib'
12429       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12430       ;;
12431     esac
12432     ;;
12433
12434   *)
12435     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12436     ;;
12437   esac
12438   dynamic_linker='Win32 ld.exe'
12439   # FIXME: first we should search . and the directory the executable is in
12440   shlibpath_var=PATH
12441   ;;
12442
12443 darwin* | rhapsody*)
12444   dynamic_linker="$host_os dyld"
12445   version_type=darwin
12446   need_lib_prefix=no
12447   need_version=no
12448   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12449   soname_spec='${libname}${release}${major}$shared_ext'
12450   shlibpath_overrides_runpath=yes
12451   shlibpath_var=DYLD_LIBRARY_PATH
12452   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12453
12454   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12455   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12456   ;;
12457
12458 dgux*)
12459   version_type=linux
12460   need_lib_prefix=no
12461   need_version=no
12462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12463   soname_spec='${libname}${release}${shared_ext}$major'
12464   shlibpath_var=LD_LIBRARY_PATH
12465   ;;
12466
12467 freebsd1*)
12468   dynamic_linker=no
12469   ;;
12470
12471 freebsd* | dragonfly*)
12472   # DragonFly does not have aout.  When/if they implement a new
12473   # versioning mechanism, adjust this.
12474   if test -x /usr/bin/objformat; then
12475     objformat=`/usr/bin/objformat`
12476   else
12477     case $host_os in
12478     freebsd[123]*) objformat=aout ;;
12479     *) objformat=elf ;;
12480     esac
12481   fi
12482   version_type=freebsd-$objformat
12483   case $version_type in
12484     freebsd-elf*)
12485       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12486       need_version=no
12487       need_lib_prefix=no
12488       ;;
12489     freebsd-*)
12490       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12491       need_version=yes
12492       ;;
12493   esac
12494   shlibpath_var=LD_LIBRARY_PATH
12495   case $host_os in
12496   freebsd2*)
12497     shlibpath_overrides_runpath=yes
12498     ;;
12499   freebsd3.[01]* | freebsdelf3.[01]*)
12500     shlibpath_overrides_runpath=yes
12501     hardcode_into_libs=yes
12502     ;;
12503   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12504   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12505     shlibpath_overrides_runpath=no
12506     hardcode_into_libs=yes
12507     ;;
12508   *) # from 4.6 on, and DragonFly
12509     shlibpath_overrides_runpath=yes
12510     hardcode_into_libs=yes
12511     ;;
12512   esac
12513   ;;
12514
12515 gnu*)
12516   version_type=linux
12517   need_lib_prefix=no
12518   need_version=no
12519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12520   soname_spec='${libname}${release}${shared_ext}$major'
12521   shlibpath_var=LD_LIBRARY_PATH
12522   hardcode_into_libs=yes
12523   ;;
12524
12525 haiku*)
12526   version_type=linux
12527   need_lib_prefix=no
12528   need_version=no
12529   dynamic_linker="$host_os runtime_loader"
12530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12531   soname_spec='${libname}${release}${shared_ext}$major'
12532   shlibpath_var=LIBRARY_PATH
12533   shlibpath_overrides_runpath=yes
12534   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
12535   hardcode_into_libs=yes
12536   ;;
12537
12538 hpux9* | hpux10* | hpux11*)
12539   # Give a soname corresponding to the major version so that dld.sl refuses to
12540   # link against other versions.
12541   version_type=sunos
12542   need_lib_prefix=no
12543   need_version=no
12544   case $host_cpu in
12545   ia64*)
12546     shrext_cmds='.so'
12547     hardcode_into_libs=yes
12548     dynamic_linker="$host_os dld.so"
12549     shlibpath_var=LD_LIBRARY_PATH
12550     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12551     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12552     soname_spec='${libname}${release}${shared_ext}$major'
12553     if test "X$HPUX_IA64_MODE" = X32; then
12554       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12555     else
12556       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12557     fi
12558     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12559     ;;
12560   hppa*64*)
12561     shrext_cmds='.sl'
12562     hardcode_into_libs=yes
12563     dynamic_linker="$host_os dld.sl"
12564     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12565     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12566     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12567     soname_spec='${libname}${release}${shared_ext}$major'
12568     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12569     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12570     ;;
12571   *)
12572     shrext_cmds='.sl'
12573     dynamic_linker="$host_os dld.sl"
12574     shlibpath_var=SHLIB_PATH
12575     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12576     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12577     soname_spec='${libname}${release}${shared_ext}$major'
12578     ;;
12579   esac
12580   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12581   postinstall_cmds='chmod 555 $lib'
12582   # or fails outright, so override atomically:
12583   install_override_mode=555
12584   ;;
12585
12586 interix[3-9]*)
12587   version_type=linux
12588   need_lib_prefix=no
12589   need_version=no
12590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12591   soname_spec='${libname}${release}${shared_ext}$major'
12592   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12593   shlibpath_var=LD_LIBRARY_PATH
12594   shlibpath_overrides_runpath=no
12595   hardcode_into_libs=yes
12596   ;;
12597
12598 irix5* | irix6* | nonstopux*)
12599   case $host_os in
12600     nonstopux*) version_type=nonstopux ;;
12601     *)
12602         if test "$lt_cv_prog_gnu_ld" = yes; then
12603                 version_type=linux
12604         else
12605                 version_type=irix
12606         fi ;;
12607   esac
12608   need_lib_prefix=no
12609   need_version=no
12610   soname_spec='${libname}${release}${shared_ext}$major'
12611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12612   case $host_os in
12613   irix5* | nonstopux*)
12614     libsuff= shlibsuff=
12615     ;;
12616   *)
12617     case $LD in # libtool.m4 will add one of these switches to LD
12618     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12619       libsuff= shlibsuff= libmagic=32-bit;;
12620     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12621       libsuff=32 shlibsuff=N32 libmagic=N32;;
12622     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12623       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12624     *) libsuff= shlibsuff= libmagic=never-match;;
12625     esac
12626     ;;
12627   esac
12628   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12629   shlibpath_overrides_runpath=no
12630   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12631   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12632   hardcode_into_libs=yes
12633   ;;
12634
12635 # No shared lib support for Linux oldld, aout, or coff.
12636 linux*oldld* | linux*aout* | linux*coff*)
12637   dynamic_linker=no
12638   ;;
12639
12640 # This must be Linux ELF.
12641 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12642   version_type=linux
12643   need_lib_prefix=no
12644   need_version=no
12645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12646   soname_spec='${libname}${release}${shared_ext}$major'
12647   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12648   shlibpath_var=LD_LIBRARY_PATH
12649   shlibpath_overrides_runpath=no
12650
12651   # Some binutils ld are patched to set DT_RUNPATH
12652   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12653   $as_echo_n "(cached) " >&6
12654 else
12655   lt_cv_shlibpath_overrides_runpath=no
12656     save_LDFLAGS=$LDFLAGS
12657     save_libdir=$libdir
12658     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12659          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12660     if test x$gcc_no_link = xyes; then
12661   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12662 fi
12663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12664 /* end confdefs.h.  */
12665
12666 int
12667 main ()
12668 {
12669
12670   ;
12671   return 0;
12672 }
12673 _ACEOF
12674 if ac_fn_c_try_link "$LINENO"; then :
12675   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12676   lt_cv_shlibpath_overrides_runpath=yes
12677 fi
12678 fi
12679 rm -f core conftest.err conftest.$ac_objext \
12680     conftest$ac_exeext conftest.$ac_ext
12681     LDFLAGS=$save_LDFLAGS
12682     libdir=$save_libdir
12683
12684 fi
12685
12686   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12687
12688   # This implies no fast_install, which is unacceptable.
12689   # Some rework will be needed to allow for fast_install
12690   # before this can be enabled.
12691   hardcode_into_libs=yes
12692
12693   # Append ld.so.conf contents to the search path
12694   if test -f /etc/ld.so.conf; then
12695     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' ' '`
12696     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12697   fi
12698
12699   # We used to test for /lib/ld.so.1 and disable shared libraries on
12700   # powerpc, because MkLinux only supported shared libraries with the
12701   # GNU dynamic linker.  Since this was broken with cross compilers,
12702   # most powerpc-linux boxes support dynamic linking these days and
12703   # people can always --disable-shared, the test was removed, and we
12704   # assume the GNU/Linux dynamic linker is in use.
12705   dynamic_linker='GNU/Linux ld.so'
12706   ;;
12707
12708 netbsd*)
12709   version_type=sunos
12710   need_lib_prefix=no
12711   need_version=no
12712   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12713     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12714     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12715     dynamic_linker='NetBSD (a.out) ld.so'
12716   else
12717     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12718     soname_spec='${libname}${release}${shared_ext}$major'
12719     dynamic_linker='NetBSD ld.elf_so'
12720   fi
12721   shlibpath_var=LD_LIBRARY_PATH
12722   shlibpath_overrides_runpath=yes
12723   hardcode_into_libs=yes
12724   ;;
12725
12726 newsos6)
12727   version_type=linux
12728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12729   shlibpath_var=LD_LIBRARY_PATH
12730   shlibpath_overrides_runpath=yes
12731   ;;
12732
12733 *nto* | *qnx*)
12734   version_type=qnx
12735   need_lib_prefix=no
12736   need_version=no
12737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12738   soname_spec='${libname}${release}${shared_ext}$major'
12739   shlibpath_var=LD_LIBRARY_PATH
12740   shlibpath_overrides_runpath=no
12741   hardcode_into_libs=yes
12742   dynamic_linker='ldqnx.so'
12743   ;;
12744
12745 openbsd*)
12746   version_type=sunos
12747   sys_lib_dlsearch_path_spec="/usr/lib"
12748   need_lib_prefix=no
12749   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12750   case $host_os in
12751     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12752     *)                          need_version=no  ;;
12753   esac
12754   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12755   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12756   shlibpath_var=LD_LIBRARY_PATH
12757   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12758     case $host_os in
12759       openbsd2.[89] | openbsd2.[89].*)
12760         shlibpath_overrides_runpath=no
12761         ;;
12762       *)
12763         shlibpath_overrides_runpath=yes
12764         ;;
12765       esac
12766   else
12767     shlibpath_overrides_runpath=yes
12768   fi
12769   ;;
12770
12771 os2*)
12772   libname_spec='$name'
12773   shrext_cmds=".dll"
12774   need_lib_prefix=no
12775   library_names_spec='$libname${shared_ext} $libname.a'
12776   dynamic_linker='OS/2 ld.exe'
12777   shlibpath_var=LIBPATH
12778   ;;
12779
12780 osf3* | osf4* | osf5*)
12781   version_type=osf
12782   need_lib_prefix=no
12783   need_version=no
12784   soname_spec='${libname}${release}${shared_ext}$major'
12785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12786   shlibpath_var=LD_LIBRARY_PATH
12787   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12788   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12789   ;;
12790
12791 rdos*)
12792   dynamic_linker=no
12793   ;;
12794
12795 solaris*)
12796   version_type=linux
12797   need_lib_prefix=no
12798   need_version=no
12799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12800   soname_spec='${libname}${release}${shared_ext}$major'
12801   shlibpath_var=LD_LIBRARY_PATH
12802   shlibpath_overrides_runpath=yes
12803   hardcode_into_libs=yes
12804   # ldd complains unless libraries are executable
12805   postinstall_cmds='chmod +x $lib'
12806   ;;
12807
12808 sunos4*)
12809   version_type=sunos
12810   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12811   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12812   shlibpath_var=LD_LIBRARY_PATH
12813   shlibpath_overrides_runpath=yes
12814   if test "$with_gnu_ld" = yes; then
12815     need_lib_prefix=no
12816   fi
12817   need_version=yes
12818   ;;
12819
12820 sysv4 | sysv4.3*)
12821   version_type=linux
12822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12823   soname_spec='${libname}${release}${shared_ext}$major'
12824   shlibpath_var=LD_LIBRARY_PATH
12825   case $host_vendor in
12826     sni)
12827       shlibpath_overrides_runpath=no
12828       need_lib_prefix=no
12829       runpath_var=LD_RUN_PATH
12830       ;;
12831     siemens)
12832       need_lib_prefix=no
12833       ;;
12834     motorola)
12835       need_lib_prefix=no
12836       need_version=no
12837       shlibpath_overrides_runpath=no
12838       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12839       ;;
12840   esac
12841   ;;
12842
12843 sysv4*MP*)
12844   if test -d /usr/nec ;then
12845     version_type=linux
12846     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12847     soname_spec='$libname${shared_ext}.$major'
12848     shlibpath_var=LD_LIBRARY_PATH
12849   fi
12850   ;;
12851
12852 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12853   version_type=freebsd-elf
12854   need_lib_prefix=no
12855   need_version=no
12856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12857   soname_spec='${libname}${release}${shared_ext}$major'
12858   shlibpath_var=LD_LIBRARY_PATH
12859   shlibpath_overrides_runpath=yes
12860   hardcode_into_libs=yes
12861   if test "$with_gnu_ld" = yes; then
12862     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12863   else
12864     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12865     case $host_os in
12866       sco3.2v5*)
12867         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12868         ;;
12869     esac
12870   fi
12871   sys_lib_dlsearch_path_spec='/usr/lib'
12872   ;;
12873
12874 tpf*)
12875   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12876   version_type=linux
12877   need_lib_prefix=no
12878   need_version=no
12879   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12880   shlibpath_var=LD_LIBRARY_PATH
12881   shlibpath_overrides_runpath=no
12882   hardcode_into_libs=yes
12883   ;;
12884
12885 uts4*)
12886   version_type=linux
12887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12888   soname_spec='${libname}${release}${shared_ext}$major'
12889   shlibpath_var=LD_LIBRARY_PATH
12890   ;;
12891
12892 *)
12893   dynamic_linker=no
12894   ;;
12895 esac
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12897 $as_echo "$dynamic_linker" >&6; }
12898 test "$dynamic_linker" = no && can_build_shared=no
12899
12900 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12901 if test "$GCC" = yes; then
12902   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12903 fi
12904
12905 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12906   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12907 fi
12908 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12909   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12910 fi
12911
12912
12913
12914
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13004 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13005 hardcode_action=
13006 if test -n "$hardcode_libdir_flag_spec" ||
13007    test -n "$runpath_var" ||
13008    test "X$hardcode_automatic" = "Xyes" ; then
13009
13010   # We can hardcode non-existent directories.
13011   if test "$hardcode_direct" != no &&
13012      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13013      # have to relink, otherwise we might link with an installed library
13014      # when we should be linking with a yet-to-be-installed one
13015      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13016      test "$hardcode_minus_L" != no; then
13017     # Linking always hardcodes the temporary library directory.
13018     hardcode_action=relink
13019   else
13020     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13021     hardcode_action=immediate
13022   fi
13023 else
13024   # We cannot hardcode anything, or else we can only hardcode existing
13025   # directories.
13026   hardcode_action=unsupported
13027 fi
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13029 $as_echo "$hardcode_action" >&6; }
13030
13031 if test "$hardcode_action" = relink ||
13032    test "$inherit_rpath" = yes; then
13033   # Fast installation is not supported
13034   enable_fast_install=no
13035 elif test "$shlibpath_overrides_runpath" = yes ||
13036      test "$enable_shared" = no; then
13037   # Fast installation is not necessary
13038   enable_fast_install=needless
13039 fi
13040
13041
13042
13043
13044
13045
13046   if test "x$enable_dlopen" != xyes; then
13047   enable_dlopen=unknown
13048   enable_dlopen_self=unknown
13049   enable_dlopen_self_static=unknown
13050 else
13051   lt_cv_dlopen=no
13052   lt_cv_dlopen_libs=
13053
13054   case $host_os in
13055   beos*)
13056     lt_cv_dlopen="load_add_on"
13057     lt_cv_dlopen_libs=
13058     lt_cv_dlopen_self=yes
13059     ;;
13060
13061   mingw* | pw32* | cegcc*)
13062     lt_cv_dlopen="LoadLibrary"
13063     lt_cv_dlopen_libs=
13064     ;;
13065
13066   cygwin*)
13067     lt_cv_dlopen="dlopen"
13068     lt_cv_dlopen_libs=
13069     ;;
13070
13071   darwin*)
13072   # if libdl is installed we need to link against it
13073     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13074 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13075 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13076   $as_echo_n "(cached) " >&6
13077 else
13078   ac_check_lib_save_LIBS=$LIBS
13079 LIBS="-ldl  $LIBS"
13080 if test x$gcc_no_link = xyes; then
13081   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13082 fi
13083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13084 /* end confdefs.h.  */
13085
13086 /* Override any GCC internal prototype to avoid an error.
13087    Use char because int might match the return type of a GCC
13088    builtin and then its argument prototype would still apply.  */
13089 #ifdef __cplusplus
13090 extern "C"
13091 #endif
13092 char dlopen ();
13093 int
13094 main ()
13095 {
13096 return dlopen ();
13097   ;
13098   return 0;
13099 }
13100 _ACEOF
13101 if ac_fn_c_try_link "$LINENO"; then :
13102   ac_cv_lib_dl_dlopen=yes
13103 else
13104   ac_cv_lib_dl_dlopen=no
13105 fi
13106 rm -f core conftest.err conftest.$ac_objext \
13107     conftest$ac_exeext conftest.$ac_ext
13108 LIBS=$ac_check_lib_save_LIBS
13109 fi
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13111 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13112 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13113   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13114 else
13115
13116     lt_cv_dlopen="dyld"
13117     lt_cv_dlopen_libs=
13118     lt_cv_dlopen_self=yes
13119
13120 fi
13121
13122     ;;
13123
13124   *)
13125     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13126 if test "x$ac_cv_func_shl_load" = x""yes; then :
13127   lt_cv_dlopen="shl_load"
13128 else
13129   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13130 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13131 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13132   $as_echo_n "(cached) " >&6
13133 else
13134   ac_check_lib_save_LIBS=$LIBS
13135 LIBS="-ldld  $LIBS"
13136 if test x$gcc_no_link = xyes; then
13137   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13138 fi
13139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13140 /* end confdefs.h.  */
13141
13142 /* Override any GCC internal prototype to avoid an error.
13143    Use char because int might match the return type of a GCC
13144    builtin and then its argument prototype would still apply.  */
13145 #ifdef __cplusplus
13146 extern "C"
13147 #endif
13148 char shl_load ();
13149 int
13150 main ()
13151 {
13152 return shl_load ();
13153   ;
13154   return 0;
13155 }
13156 _ACEOF
13157 if ac_fn_c_try_link "$LINENO"; then :
13158   ac_cv_lib_dld_shl_load=yes
13159 else
13160   ac_cv_lib_dld_shl_load=no
13161 fi
13162 rm -f core conftest.err conftest.$ac_objext \
13163     conftest$ac_exeext conftest.$ac_ext
13164 LIBS=$ac_check_lib_save_LIBS
13165 fi
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13167 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13168 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13169   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13170 else
13171   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13172 if test "x$ac_cv_func_dlopen" = x""yes; then :
13173   lt_cv_dlopen="dlopen"
13174 else
13175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13176 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13177 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13178   $as_echo_n "(cached) " >&6
13179 else
13180   ac_check_lib_save_LIBS=$LIBS
13181 LIBS="-ldl  $LIBS"
13182 if test x$gcc_no_link = xyes; then
13183   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13184 fi
13185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13186 /* end confdefs.h.  */
13187
13188 /* Override any GCC internal prototype to avoid an error.
13189    Use char because int might match the return type of a GCC
13190    builtin and then its argument prototype would still apply.  */
13191 #ifdef __cplusplus
13192 extern "C"
13193 #endif
13194 char dlopen ();
13195 int
13196 main ()
13197 {
13198 return dlopen ();
13199   ;
13200   return 0;
13201 }
13202 _ACEOF
13203 if ac_fn_c_try_link "$LINENO"; then :
13204   ac_cv_lib_dl_dlopen=yes
13205 else
13206   ac_cv_lib_dl_dlopen=no
13207 fi
13208 rm -f core conftest.err conftest.$ac_objext \
13209     conftest$ac_exeext conftest.$ac_ext
13210 LIBS=$ac_check_lib_save_LIBS
13211 fi
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13213 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13214 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13215   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13216 else
13217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13218 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13219 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13220   $as_echo_n "(cached) " >&6
13221 else
13222   ac_check_lib_save_LIBS=$LIBS
13223 LIBS="-lsvld  $LIBS"
13224 if test x$gcc_no_link = xyes; then
13225   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13226 fi
13227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13228 /* end confdefs.h.  */
13229
13230 /* Override any GCC internal prototype to avoid an error.
13231    Use char because int might match the return type of a GCC
13232    builtin and then its argument prototype would still apply.  */
13233 #ifdef __cplusplus
13234 extern "C"
13235 #endif
13236 char dlopen ();
13237 int
13238 main ()
13239 {
13240 return dlopen ();
13241   ;
13242   return 0;
13243 }
13244 _ACEOF
13245 if ac_fn_c_try_link "$LINENO"; then :
13246   ac_cv_lib_svld_dlopen=yes
13247 else
13248   ac_cv_lib_svld_dlopen=no
13249 fi
13250 rm -f core conftest.err conftest.$ac_objext \
13251     conftest$ac_exeext conftest.$ac_ext
13252 LIBS=$ac_check_lib_save_LIBS
13253 fi
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13255 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13256 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13257   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13258 else
13259   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13260 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13261 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13262   $as_echo_n "(cached) " >&6
13263 else
13264   ac_check_lib_save_LIBS=$LIBS
13265 LIBS="-ldld  $LIBS"
13266 if test x$gcc_no_link = xyes; then
13267   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13268 fi
13269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13270 /* end confdefs.h.  */
13271
13272 /* Override any GCC internal prototype to avoid an error.
13273    Use char because int might match the return type of a GCC
13274    builtin and then its argument prototype would still apply.  */
13275 #ifdef __cplusplus
13276 extern "C"
13277 #endif
13278 char dld_link ();
13279 int
13280 main ()
13281 {
13282 return dld_link ();
13283   ;
13284   return 0;
13285 }
13286 _ACEOF
13287 if ac_fn_c_try_link "$LINENO"; then :
13288   ac_cv_lib_dld_dld_link=yes
13289 else
13290   ac_cv_lib_dld_dld_link=no
13291 fi
13292 rm -f core conftest.err conftest.$ac_objext \
13293     conftest$ac_exeext conftest.$ac_ext
13294 LIBS=$ac_check_lib_save_LIBS
13295 fi
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13297 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13298 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13299   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13300 fi
13301
13302
13303 fi
13304
13305
13306 fi
13307
13308
13309 fi
13310
13311
13312 fi
13313
13314
13315 fi
13316
13317     ;;
13318   esac
13319
13320   if test "x$lt_cv_dlopen" != xno; then
13321     enable_dlopen=yes
13322   else
13323     enable_dlopen=no
13324   fi
13325
13326   case $lt_cv_dlopen in
13327   dlopen)
13328     save_CPPFLAGS="$CPPFLAGS"
13329     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13330
13331     save_LDFLAGS="$LDFLAGS"
13332     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13333
13334     save_LIBS="$LIBS"
13335     LIBS="$lt_cv_dlopen_libs $LIBS"
13336
13337     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13338 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13339 if test "${lt_cv_dlopen_self+set}" = set; then :
13340   $as_echo_n "(cached) " >&6
13341 else
13342           if test "$cross_compiling" = yes; then :
13343   lt_cv_dlopen_self=cross
13344 else
13345   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13346   lt_status=$lt_dlunknown
13347   cat > conftest.$ac_ext <<_LT_EOF
13348 #line 13348 "configure"
13349 #include "confdefs.h"
13350
13351 #if HAVE_DLFCN_H
13352 #include <dlfcn.h>
13353 #endif
13354
13355 #include <stdio.h>
13356
13357 #ifdef RTLD_GLOBAL
13358 #  define LT_DLGLOBAL           RTLD_GLOBAL
13359 #else
13360 #  ifdef DL_GLOBAL
13361 #    define LT_DLGLOBAL         DL_GLOBAL
13362 #  else
13363 #    define LT_DLGLOBAL         0
13364 #  endif
13365 #endif
13366
13367 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13368    find out it does not work in some platform. */
13369 #ifndef LT_DLLAZY_OR_NOW
13370 #  ifdef RTLD_LAZY
13371 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13372 #  else
13373 #    ifdef DL_LAZY
13374 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13375 #    else
13376 #      ifdef RTLD_NOW
13377 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13378 #      else
13379 #        ifdef DL_NOW
13380 #          define LT_DLLAZY_OR_NOW      DL_NOW
13381 #        else
13382 #          define LT_DLLAZY_OR_NOW      0
13383 #        endif
13384 #      endif
13385 #    endif
13386 #  endif
13387 #endif
13388
13389 /* When -fvisbility=hidden is used, assume the code has been annotated
13390    correspondingly for the symbols needed.  */
13391 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13392 void fnord () __attribute__((visibility("default")));
13393 #endif
13394
13395 void fnord () { int i=42; }
13396 int main ()
13397 {
13398   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13399   int status = $lt_dlunknown;
13400
13401   if (self)
13402     {
13403       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13404       else
13405         {
13406           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13407           else puts (dlerror ());
13408         }
13409       /* dlclose (self); */
13410     }
13411   else
13412     puts (dlerror ());
13413
13414   return status;
13415 }
13416 _LT_EOF
13417   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13418   (eval $ac_link) 2>&5
13419   ac_status=$?
13420   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13421   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13422     (./conftest; exit; ) >&5 2>/dev/null
13423     lt_status=$?
13424     case x$lt_status in
13425       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13426       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13427       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13428     esac
13429   else :
13430     # compilation failed
13431     lt_cv_dlopen_self=no
13432   fi
13433 fi
13434 rm -fr conftest*
13435
13436
13437 fi
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13439 $as_echo "$lt_cv_dlopen_self" >&6; }
13440
13441     if test "x$lt_cv_dlopen_self" = xyes; then
13442       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13443       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13444 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13445 if test "${lt_cv_dlopen_self_static+set}" = set; then :
13446   $as_echo_n "(cached) " >&6
13447 else
13448           if test "$cross_compiling" = yes; then :
13449   lt_cv_dlopen_self_static=cross
13450 else
13451   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13452   lt_status=$lt_dlunknown
13453   cat > conftest.$ac_ext <<_LT_EOF
13454 #line 13454 "configure"
13455 #include "confdefs.h"
13456
13457 #if HAVE_DLFCN_H
13458 #include <dlfcn.h>
13459 #endif
13460
13461 #include <stdio.h>
13462
13463 #ifdef RTLD_GLOBAL
13464 #  define LT_DLGLOBAL           RTLD_GLOBAL
13465 #else
13466 #  ifdef DL_GLOBAL
13467 #    define LT_DLGLOBAL         DL_GLOBAL
13468 #  else
13469 #    define LT_DLGLOBAL         0
13470 #  endif
13471 #endif
13472
13473 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13474    find out it does not work in some platform. */
13475 #ifndef LT_DLLAZY_OR_NOW
13476 #  ifdef RTLD_LAZY
13477 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13478 #  else
13479 #    ifdef DL_LAZY
13480 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13481 #    else
13482 #      ifdef RTLD_NOW
13483 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13484 #      else
13485 #        ifdef DL_NOW
13486 #          define LT_DLLAZY_OR_NOW      DL_NOW
13487 #        else
13488 #          define LT_DLLAZY_OR_NOW      0
13489 #        endif
13490 #      endif
13491 #    endif
13492 #  endif
13493 #endif
13494
13495 /* When -fvisbility=hidden is used, assume the code has been annotated
13496    correspondingly for the symbols needed.  */
13497 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13498 void fnord () __attribute__((visibility("default")));
13499 #endif
13500
13501 void fnord () { int i=42; }
13502 int main ()
13503 {
13504   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13505   int status = $lt_dlunknown;
13506
13507   if (self)
13508     {
13509       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13510       else
13511         {
13512           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13513           else puts (dlerror ());
13514         }
13515       /* dlclose (self); */
13516     }
13517   else
13518     puts (dlerror ());
13519
13520   return status;
13521 }
13522 _LT_EOF
13523   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13524   (eval $ac_link) 2>&5
13525   ac_status=$?
13526   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13527   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13528     (./conftest; exit; ) >&5 2>/dev/null
13529     lt_status=$?
13530     case x$lt_status in
13531       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13532       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13533       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13534     esac
13535   else :
13536     # compilation failed
13537     lt_cv_dlopen_self_static=no
13538   fi
13539 fi
13540 rm -fr conftest*
13541
13542
13543 fi
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13545 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13546     fi
13547
13548     CPPFLAGS="$save_CPPFLAGS"
13549     LDFLAGS="$save_LDFLAGS"
13550     LIBS="$save_LIBS"
13551     ;;
13552   esac
13553
13554   case $lt_cv_dlopen_self in
13555   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13556   *) enable_dlopen_self=unknown ;;
13557   esac
13558
13559   case $lt_cv_dlopen_self_static in
13560   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13561   *) enable_dlopen_self_static=unknown ;;
13562   esac
13563 fi
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581 striplib=
13582 old_striplib=
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13584 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13585 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13586   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13587   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13589 $as_echo "yes" >&6; }
13590 else
13591 # FIXME - insert some real tests, host_os isn't really good enough
13592   case $host_os in
13593   darwin*)
13594     if test -n "$STRIP" ; then
13595       striplib="$STRIP -x"
13596       old_striplib="$STRIP -S"
13597       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13598 $as_echo "yes" >&6; }
13599     else
13600       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13601 $as_echo "no" >&6; }
13602     fi
13603     ;;
13604   *)
13605     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13606 $as_echo "no" >&6; }
13607     ;;
13608   esac
13609 fi
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622   # Report which library types will actually be built
13623   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13624 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13626 $as_echo "$can_build_shared" >&6; }
13627
13628   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13629 $as_echo_n "checking whether to build shared libraries... " >&6; }
13630   test "$can_build_shared" = "no" && enable_shared=no
13631
13632   # On AIX, shared libraries and static libraries use the same namespace, and
13633   # are all built from PIC.
13634   case $host_os in
13635   aix3*)
13636     test "$enable_shared" = yes && enable_static=no
13637     if test -n "$RANLIB"; then
13638       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13639       postinstall_cmds='$RANLIB $lib'
13640     fi
13641     ;;
13642
13643   aix[4-9]*)
13644     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13645       test "$enable_shared" = yes && enable_static=no
13646     fi
13647     ;;
13648   esac
13649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13650 $as_echo "$enable_shared" >&6; }
13651
13652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13653 $as_echo_n "checking whether to build static libraries... " >&6; }
13654   # Make sure either enable_shared or enable_static is yes.
13655   test "$enable_shared" = yes || enable_static=yes
13656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13657 $as_echo "$enable_static" >&6; }
13658
13659
13660
13661
13662 fi
13663 ac_ext=c
13664 ac_cpp='$CPP $CPPFLAGS'
13665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13668
13669 CC="$lt_save_CC"
13670
13671       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13672     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13673     (test "X$CXX" != "Xg++"))) ; then
13674   ac_ext=cpp
13675 ac_cpp='$CXXCPP $CPPFLAGS'
13676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13680 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13681 if test -z "$CXXCPP"; then
13682   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13683   $as_echo_n "(cached) " >&6
13684 else
13685       # Double quotes because CXXCPP needs to be expanded
13686     for CXXCPP in "$CXX -E" "/lib/cpp"
13687     do
13688       ac_preproc_ok=false
13689 for ac_cxx_preproc_warn_flag in '' yes
13690 do
13691   # Use a header file that comes with gcc, so configuring glibc
13692   # with a fresh cross-compiler works.
13693   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13694   # <limits.h> exists even on freestanding compilers.
13695   # On the NeXT, cc -E runs the code through the compiler's parser,
13696   # not just through cpp. "Syntax error" is here to catch this case.
13697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13698 /* end confdefs.h.  */
13699 #ifdef __STDC__
13700 # include <limits.h>
13701 #else
13702 # include <assert.h>
13703 #endif
13704                      Syntax error
13705 _ACEOF
13706 if ac_fn_cxx_try_cpp "$LINENO"; then :
13707
13708 else
13709   # Broken: fails on valid input.
13710 continue
13711 fi
13712 rm -f conftest.err conftest.$ac_ext
13713
13714   # OK, works on sane cases.  Now check whether nonexistent headers
13715   # can be detected and how.
13716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13717 /* end confdefs.h.  */
13718 #include <ac_nonexistent.h>
13719 _ACEOF
13720 if ac_fn_cxx_try_cpp "$LINENO"; then :
13721   # Broken: success on invalid input.
13722 continue
13723 else
13724   # Passes both tests.
13725 ac_preproc_ok=:
13726 break
13727 fi
13728 rm -f conftest.err conftest.$ac_ext
13729
13730 done
13731 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13732 rm -f conftest.err conftest.$ac_ext
13733 if $ac_preproc_ok; then :
13734   break
13735 fi
13736
13737     done
13738     ac_cv_prog_CXXCPP=$CXXCPP
13739
13740 fi
13741   CXXCPP=$ac_cv_prog_CXXCPP
13742 else
13743   ac_cv_prog_CXXCPP=$CXXCPP
13744 fi
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13746 $as_echo "$CXXCPP" >&6; }
13747 ac_preproc_ok=false
13748 for ac_cxx_preproc_warn_flag in '' yes
13749 do
13750   # Use a header file that comes with gcc, so configuring glibc
13751   # with a fresh cross-compiler works.
13752   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13753   # <limits.h> exists even on freestanding compilers.
13754   # On the NeXT, cc -E runs the code through the compiler's parser,
13755   # not just through cpp. "Syntax error" is here to catch this case.
13756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13757 /* end confdefs.h.  */
13758 #ifdef __STDC__
13759 # include <limits.h>
13760 #else
13761 # include <assert.h>
13762 #endif
13763                      Syntax error
13764 _ACEOF
13765 if ac_fn_cxx_try_cpp "$LINENO"; then :
13766
13767 else
13768   # Broken: fails on valid input.
13769 continue
13770 fi
13771 rm -f conftest.err conftest.$ac_ext
13772
13773   # OK, works on sane cases.  Now check whether nonexistent headers
13774   # can be detected and how.
13775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13776 /* end confdefs.h.  */
13777 #include <ac_nonexistent.h>
13778 _ACEOF
13779 if ac_fn_cxx_try_cpp "$LINENO"; then :
13780   # Broken: success on invalid input.
13781 continue
13782 else
13783   # Passes both tests.
13784 ac_preproc_ok=:
13785 break
13786 fi
13787 rm -f conftest.err conftest.$ac_ext
13788
13789 done
13790 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13791 rm -f conftest.err conftest.$ac_ext
13792 if $ac_preproc_ok; then :
13793
13794 else
13795   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13797 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
13798 See \`config.log' for more details." "$LINENO" 5; }
13799 fi
13800
13801 ac_ext=c
13802 ac_cpp='$CPP $CPPFLAGS'
13803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13806
13807 else
13808   _lt_caught_CXX_error=yes
13809 fi
13810
13811 ac_ext=cpp
13812 ac_cpp='$CXXCPP $CPPFLAGS'
13813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13816
13817 archive_cmds_need_lc_CXX=no
13818 allow_undefined_flag_CXX=
13819 always_export_symbols_CXX=no
13820 archive_expsym_cmds_CXX=
13821 compiler_needs_object_CXX=no
13822 export_dynamic_flag_spec_CXX=
13823 hardcode_direct_CXX=no
13824 hardcode_direct_absolute_CXX=no
13825 hardcode_libdir_flag_spec_CXX=
13826 hardcode_libdir_flag_spec_ld_CXX=
13827 hardcode_libdir_separator_CXX=
13828 hardcode_minus_L_CXX=no
13829 hardcode_shlibpath_var_CXX=unsupported
13830 hardcode_automatic_CXX=no
13831 inherit_rpath_CXX=no
13832 module_cmds_CXX=
13833 module_expsym_cmds_CXX=
13834 link_all_deplibs_CXX=unknown
13835 old_archive_cmds_CXX=$old_archive_cmds
13836 reload_flag_CXX=$reload_flag
13837 reload_cmds_CXX=$reload_cmds
13838 no_undefined_flag_CXX=
13839 whole_archive_flag_spec_CXX=
13840 enable_shared_with_static_runtimes_CXX=no
13841
13842 # Source file extension for C++ test sources.
13843 ac_ext=cpp
13844
13845 # Object file extension for compiled C++ test sources.
13846 objext=o
13847 objext_CXX=$objext
13848
13849 # No sense in running all these tests if we already determined that
13850 # the CXX compiler isn't working.  Some variables (like enable_shared)
13851 # are currently assumed to apply to all compilers on this platform,
13852 # and will be corrupted by setting them based on a non-working compiler.
13853 if test "$_lt_caught_CXX_error" != yes; then
13854   # Code to be used in simple compile tests
13855   lt_simple_compile_test_code="int some_variable = 0;"
13856
13857   # Code to be used in simple link tests
13858   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13859
13860   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13861
13862
13863
13864
13865
13866
13867 # If no C compiler was specified, use CC.
13868 LTCC=${LTCC-"$CC"}
13869
13870 # If no C compiler flags were specified, use CFLAGS.
13871 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13872
13873 # Allow CC to be a program name with arguments.
13874 compiler=$CC
13875
13876
13877   # save warnings/boilerplate of simple test code
13878   ac_outfile=conftest.$ac_objext
13879 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13880 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13881 _lt_compiler_boilerplate=`cat conftest.err`
13882 $RM conftest*
13883
13884   ac_outfile=conftest.$ac_objext
13885 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13886 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13887 _lt_linker_boilerplate=`cat conftest.err`
13888 $RM -r conftest*
13889
13890
13891   # Allow CC to be a program name with arguments.
13892   lt_save_CC=$CC
13893   lt_save_LD=$LD
13894   lt_save_GCC=$GCC
13895   GCC=$GXX
13896   lt_save_with_gnu_ld=$with_gnu_ld
13897   lt_save_path_LD=$lt_cv_path_LD
13898   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13899     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13900   else
13901     $as_unset lt_cv_prog_gnu_ld
13902   fi
13903   if test -n "${lt_cv_path_LDCXX+set}"; then
13904     lt_cv_path_LD=$lt_cv_path_LDCXX
13905   else
13906     $as_unset lt_cv_path_LD
13907   fi
13908   test -z "${LDCXX+set}" || LD=$LDCXX
13909   CC=${CXX-"c++"}
13910   compiler=$CC
13911   compiler_CXX=$CC
13912   for cc_temp in $compiler""; do
13913   case $cc_temp in
13914     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13915     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13916     \-*) ;;
13917     *) break;;
13918   esac
13919 done
13920 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13921
13922
13923   if test -n "$compiler"; then
13924     # We don't want -fno-exception when compiling C++ code, so set the
13925     # no_builtin_flag separately
13926     if test "$GXX" = yes; then
13927       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13928     else
13929       lt_prog_compiler_no_builtin_flag_CXX=
13930     fi
13931
13932     if test "$GXX" = yes; then
13933       # Set up default GNU C++ configuration
13934
13935
13936
13937 # Check whether --with-gnu-ld was given.
13938 if test "${with_gnu_ld+set}" = set; then :
13939   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13940 else
13941   with_gnu_ld=no
13942 fi
13943
13944 ac_prog=ld
13945 if test "$GCC" = yes; then
13946   # Check if gcc -print-prog-name=ld gives a path.
13947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13948 $as_echo_n "checking for ld used by $CC... " >&6; }
13949   case $host in
13950   *-*-mingw*)
13951     # gcc leaves a trailing carriage return which upsets mingw
13952     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13953   *)
13954     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13955   esac
13956   case $ac_prog in
13957     # Accept absolute paths.
13958     [\\/]* | ?:[\\/]*)
13959       re_direlt='/[^/][^/]*/\.\./'
13960       # Canonicalize the pathname of ld
13961       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13962       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13963         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13964       done
13965       test -z "$LD" && LD="$ac_prog"
13966       ;;
13967   "")
13968     # If it fails, then pretend we aren't using GCC.
13969     ac_prog=ld
13970     ;;
13971   *)
13972     # If it is relative, then search for the first ld in PATH.
13973     with_gnu_ld=unknown
13974     ;;
13975   esac
13976 elif test "$with_gnu_ld" = yes; then
13977   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13978 $as_echo_n "checking for GNU ld... " >&6; }
13979 else
13980   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13981 $as_echo_n "checking for non-GNU ld... " >&6; }
13982 fi
13983 if test "${lt_cv_path_LD+set}" = set; then :
13984   $as_echo_n "(cached) " >&6
13985 else
13986   if test -z "$LD"; then
13987   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13988   for ac_dir in $PATH; do
13989     IFS="$lt_save_ifs"
13990     test -z "$ac_dir" && ac_dir=.
13991     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13992       lt_cv_path_LD="$ac_dir/$ac_prog"
13993       # Check to see if the program is GNU ld.  I'd rather use --version,
13994       # but apparently some variants of GNU ld only accept -v.
13995       # Break only if it was the GNU/non-GNU ld that we prefer.
13996       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13997       *GNU* | *'with BFD'*)
13998         test "$with_gnu_ld" != no && break
13999         ;;
14000       *)
14001         test "$with_gnu_ld" != yes && break
14002         ;;
14003       esac
14004     fi
14005   done
14006   IFS="$lt_save_ifs"
14007 else
14008   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14009 fi
14010 fi
14011
14012 LD="$lt_cv_path_LD"
14013 if test -n "$LD"; then
14014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14015 $as_echo "$LD" >&6; }
14016 else
14017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14018 $as_echo "no" >&6; }
14019 fi
14020 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14022 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14023 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14024   $as_echo_n "(cached) " >&6
14025 else
14026   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14027 case `$LD -v 2>&1 </dev/null` in
14028 *GNU* | *'with BFD'*)
14029   lt_cv_prog_gnu_ld=yes
14030   ;;
14031 *)
14032   lt_cv_prog_gnu_ld=no
14033   ;;
14034 esac
14035 fi
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14037 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14038 with_gnu_ld=$lt_cv_prog_gnu_ld
14039
14040
14041
14042
14043
14044
14045
14046       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14047       # archiving commands below assume that GNU ld is being used.
14048       if test "$with_gnu_ld" = yes; then
14049         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14050         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'
14051
14052         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14053         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14054
14055         # If archive_cmds runs LD, not CC, wlarc should be empty
14056         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14057         #     investigate it a little bit more. (MM)
14058         wlarc='${wl}'
14059
14060         # ancient GNU ld didn't support --whole-archive et. al.
14061         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14062           $GREP 'no-whole-archive' > /dev/null; then
14063           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14064         else
14065           whole_archive_flag_spec_CXX=
14066         fi
14067       else
14068         with_gnu_ld=no
14069         wlarc=
14070
14071         # A generic and very simple default shared library creation
14072         # command for GNU C++ for the case where it uses the native
14073         # linker, instead of GNU ld.  If possible, this setting should
14074         # overridden to take advantage of the native linker features on
14075         # the platform it is being used on.
14076         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14077       fi
14078
14079       # Commands to make compiler produce verbose output that lists
14080       # what "hidden" libraries, object files and flags are used when
14081       # linking a shared library.
14082       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14083
14084     else
14085       GXX=no
14086       with_gnu_ld=no
14087       wlarc=
14088     fi
14089
14090     # PORTME: fill in a description of your system's C++ link characteristics
14091     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14092 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14093     ld_shlibs_CXX=yes
14094     case $host_os in
14095       aix3*)
14096         # FIXME: insert proper C++ library support
14097         ld_shlibs_CXX=no
14098         ;;
14099       aix[4-9]*)
14100         if test "$host_cpu" = ia64; then
14101           # On IA64, the linker does run time linking by default, so we don't
14102           # have to do anything special.
14103           aix_use_runtimelinking=no
14104           exp_sym_flag='-Bexport'
14105           no_entry_flag=""
14106         else
14107           aix_use_runtimelinking=no
14108
14109           # Test if we are trying to use run time linking or normal
14110           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14111           # need to do runtime linking.
14112           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14113             for ld_flag in $LDFLAGS; do
14114               case $ld_flag in
14115               *-brtl*)
14116                 aix_use_runtimelinking=yes
14117                 break
14118                 ;;
14119               esac
14120             done
14121             ;;
14122           esac
14123
14124           exp_sym_flag='-bexport'
14125           no_entry_flag='-bnoentry'
14126         fi
14127
14128         # When large executables or shared objects are built, AIX ld can
14129         # have problems creating the table of contents.  If linking a library
14130         # or program results in "error TOC overflow" add -mminimal-toc to
14131         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14132         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14133
14134         archive_cmds_CXX=''
14135         hardcode_direct_CXX=yes
14136         hardcode_direct_absolute_CXX=yes
14137         hardcode_libdir_separator_CXX=':'
14138         link_all_deplibs_CXX=yes
14139         file_list_spec_CXX='${wl}-f,'
14140
14141         if test "$GXX" = yes; then
14142           case $host_os in aix4.[012]|aix4.[012].*)
14143           # We only want to do this on AIX 4.2 and lower, the check
14144           # below for broken collect2 doesn't work under 4.3+
14145           collect2name=`${CC} -print-prog-name=collect2`
14146           if test -f "$collect2name" &&
14147              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14148           then
14149             # We have reworked collect2
14150             :
14151           else
14152             # We have old collect2
14153             hardcode_direct_CXX=unsupported
14154             # It fails to find uninstalled libraries when the uninstalled
14155             # path is not listed in the libpath.  Setting hardcode_minus_L
14156             # to unsupported forces relinking
14157             hardcode_minus_L_CXX=yes
14158             hardcode_libdir_flag_spec_CXX='-L$libdir'
14159             hardcode_libdir_separator_CXX=
14160           fi
14161           esac
14162           shared_flag='-shared'
14163           if test "$aix_use_runtimelinking" = yes; then
14164             shared_flag="$shared_flag "'${wl}-G'
14165           fi
14166         else
14167           # not using gcc
14168           if test "$host_cpu" = ia64; then
14169           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14170           # chokes on -Wl,-G. The following line is correct:
14171           shared_flag='-G'
14172           else
14173             if test "$aix_use_runtimelinking" = yes; then
14174               shared_flag='${wl}-G'
14175             else
14176               shared_flag='${wl}-bM:SRE'
14177             fi
14178           fi
14179         fi
14180
14181         export_dynamic_flag_spec_CXX='${wl}-bexpall'
14182         # It seems that -bexpall does not export symbols beginning with
14183         # underscore (_), so it is better to generate a list of symbols to
14184         # export.
14185         always_export_symbols_CXX=yes
14186         if test "$aix_use_runtimelinking" = yes; then
14187           # Warning - without using the other runtime loading flags (-brtl),
14188           # -berok will link without error, but may produce a broken library.
14189           allow_undefined_flag_CXX='-berok'
14190           # Determine the default libpath from the value encoded in an empty
14191           # executable.
14192           if test x$gcc_no_link = xyes; then
14193   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14194 fi
14195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14196 /* end confdefs.h.  */
14197
14198 int
14199 main ()
14200 {
14201
14202   ;
14203   return 0;
14204 }
14205 _ACEOF
14206 if ac_fn_cxx_try_link "$LINENO"; then :
14207
14208 lt_aix_libpath_sed='
14209     /Import File Strings/,/^$/ {
14210         /^0/ {
14211             s/^0  *\(.*\)$/\1/
14212             p
14213         }
14214     }'
14215 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14216 # Check for a 64-bit object if we didn't find anything.
14217 if test -z "$aix_libpath"; then
14218   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14219 fi
14220 fi
14221 rm -f core conftest.err conftest.$ac_objext \
14222     conftest$ac_exeext conftest.$ac_ext
14223 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14224
14225           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14226
14227           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"
14228         else
14229           if test "$host_cpu" = ia64; then
14230             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14231             allow_undefined_flag_CXX="-z nodefs"
14232             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"
14233           else
14234             # Determine the default libpath from the value encoded in an
14235             # empty executable.
14236             if test x$gcc_no_link = xyes; then
14237   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14238 fi
14239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14240 /* end confdefs.h.  */
14241
14242 int
14243 main ()
14244 {
14245
14246   ;
14247   return 0;
14248 }
14249 _ACEOF
14250 if ac_fn_cxx_try_link "$LINENO"; then :
14251
14252 lt_aix_libpath_sed='
14253     /Import File Strings/,/^$/ {
14254         /^0/ {
14255             s/^0  *\(.*\)$/\1/
14256             p
14257         }
14258     }'
14259 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14260 # Check for a 64-bit object if we didn't find anything.
14261 if test -z "$aix_libpath"; then
14262   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14263 fi
14264 fi
14265 rm -f core conftest.err conftest.$ac_objext \
14266     conftest$ac_exeext conftest.$ac_ext
14267 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14268
14269             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14270             # Warning - without using the other run time loading flags,
14271             # -berok will link without error, but may produce a broken library.
14272             no_undefined_flag_CXX=' ${wl}-bernotok'
14273             allow_undefined_flag_CXX=' ${wl}-berok'
14274             if test "$with_gnu_ld" = yes; then
14275               # We only use this code for GNU lds that support --whole-archive.
14276               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14277             else
14278               # Exported symbols can be pulled into shared objects from archives
14279               whole_archive_flag_spec_CXX='$convenience'
14280             fi
14281             archive_cmds_need_lc_CXX=yes
14282             # This is similar to how AIX traditionally builds its shared
14283             # libraries.
14284             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'
14285           fi
14286         fi
14287         ;;
14288
14289       beos*)
14290         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14291           allow_undefined_flag_CXX=unsupported
14292           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14293           # support --undefined.  This deserves some investigation.  FIXME
14294           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14295         else
14296           ld_shlibs_CXX=no
14297         fi
14298         ;;
14299
14300       chorus*)
14301         case $cc_basename in
14302           *)
14303           # FIXME: insert proper C++ library support
14304           ld_shlibs_CXX=no
14305           ;;
14306         esac
14307         ;;
14308
14309       cygwin* | mingw* | pw32* | cegcc*)
14310         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14311         # as there is no search path for DLLs.
14312         hardcode_libdir_flag_spec_CXX='-L$libdir'
14313         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14314         allow_undefined_flag_CXX=unsupported
14315         always_export_symbols_CXX=no
14316         enable_shared_with_static_runtimes_CXX=yes
14317
14318         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14319           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'
14320           # If the export-symbols file already is a .def file (1st line
14321           # is EXPORTS), use it as is; otherwise, prepend...
14322           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14323             cp $export_symbols $output_objdir/$soname.def;
14324           else
14325             echo EXPORTS > $output_objdir/$soname.def;
14326             cat $export_symbols >> $output_objdir/$soname.def;
14327           fi~
14328           $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'
14329         else
14330           ld_shlibs_CXX=no
14331         fi
14332         ;;
14333       darwin* | rhapsody*)
14334
14335
14336   archive_cmds_need_lc_CXX=no
14337   hardcode_direct_CXX=no
14338   hardcode_automatic_CXX=yes
14339   hardcode_shlibpath_var_CXX=unsupported
14340   if test "$lt_cv_ld_force_load" = "yes"; then
14341     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\"`'
14342   else
14343     whole_archive_flag_spec_CXX=''
14344   fi
14345   link_all_deplibs_CXX=yes
14346   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14347   case $cc_basename in
14348      ifort*) _lt_dar_can_shared=yes ;;
14349      *) _lt_dar_can_shared=$GCC ;;
14350   esac
14351   if test "$_lt_dar_can_shared" = "yes"; then
14352     output_verbose_link_cmd=func_echo_all
14353     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}"
14354     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14355     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}"
14356     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}"
14357        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14358       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}"
14359       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}"
14360     fi
14361
14362   else
14363   ld_shlibs_CXX=no
14364   fi
14365
14366         ;;
14367
14368       dgux*)
14369         case $cc_basename in
14370           ec++*)
14371             # FIXME: insert proper C++ library support
14372             ld_shlibs_CXX=no
14373             ;;
14374           ghcx*)
14375             # Green Hills C++ Compiler
14376             # FIXME: insert proper C++ library support
14377             ld_shlibs_CXX=no
14378             ;;
14379           *)
14380             # FIXME: insert proper C++ library support
14381             ld_shlibs_CXX=no
14382             ;;
14383         esac
14384         ;;
14385
14386       freebsd[12]*)
14387         # C++ shared libraries reported to be fairly broken before
14388         # switch to ELF
14389         ld_shlibs_CXX=no
14390         ;;
14391
14392       freebsd-elf*)
14393         archive_cmds_need_lc_CXX=no
14394         ;;
14395
14396       freebsd* | dragonfly*)
14397         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14398         # conventions
14399         ld_shlibs_CXX=yes
14400         ;;
14401
14402       gnu*)
14403         ;;
14404
14405       haiku*)
14406         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14407         link_all_deplibs_CXX=yes
14408         ;;
14409
14410       hpux9*)
14411         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14412         hardcode_libdir_separator_CXX=:
14413         export_dynamic_flag_spec_CXX='${wl}-E'
14414         hardcode_direct_CXX=yes
14415         hardcode_minus_L_CXX=yes # Not in the search PATH,
14416                                              # but as the default
14417                                              # location of the library.
14418
14419         case $cc_basename in
14420           CC*)
14421             # FIXME: insert proper C++ library support
14422             ld_shlibs_CXX=no
14423             ;;
14424           aCC*)
14425             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'
14426             # Commands to make compiler produce verbose output that lists
14427             # what "hidden" libraries, object files and flags are used when
14428             # linking a shared library.
14429             #
14430             # There doesn't appear to be a way to prevent this compiler from
14431             # explicitly linking system object files so we need to strip them
14432             # from the output so that they don't get included in the library
14433             # dependencies.
14434             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"'
14435             ;;
14436           *)
14437             if test "$GXX" = yes; then
14438               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'
14439             else
14440               # FIXME: insert proper C++ library support
14441               ld_shlibs_CXX=no
14442             fi
14443             ;;
14444         esac
14445         ;;
14446
14447       hpux10*|hpux11*)
14448         if test $with_gnu_ld = no; then
14449           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14450           hardcode_libdir_separator_CXX=:
14451
14452           case $host_cpu in
14453             hppa*64*|ia64*)
14454               ;;
14455             *)
14456               export_dynamic_flag_spec_CXX='${wl}-E'
14457               ;;
14458           esac
14459         fi
14460         case $host_cpu in
14461           hppa*64*|ia64*)
14462             hardcode_direct_CXX=no
14463             hardcode_shlibpath_var_CXX=no
14464             ;;
14465           *)
14466             hardcode_direct_CXX=yes
14467             hardcode_direct_absolute_CXX=yes
14468             hardcode_minus_L_CXX=yes # Not in the search PATH,
14469                                                  # but as the default
14470                                                  # location of the library.
14471             ;;
14472         esac
14473
14474         case $cc_basename in
14475           CC*)
14476             # FIXME: insert proper C++ library support
14477             ld_shlibs_CXX=no
14478             ;;
14479           aCC*)
14480             case $host_cpu in
14481               hppa*64*)
14482                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14483                 ;;
14484               ia64*)
14485                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14486                 ;;
14487               *)
14488                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14489                 ;;
14490             esac
14491             # Commands to make compiler produce verbose output that lists
14492             # what "hidden" libraries, object files and flags are used when
14493             # linking a shared library.
14494             #
14495             # There doesn't appear to be a way to prevent this compiler from
14496             # explicitly linking system object files so we need to strip them
14497             # from the output so that they don't get included in the library
14498             # dependencies.
14499             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"'
14500             ;;
14501           *)
14502             if test "$GXX" = yes; then
14503               if test $with_gnu_ld = no; then
14504                 case $host_cpu in
14505                   hppa*64*)
14506                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14507                     ;;
14508                   ia64*)
14509                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14510                     ;;
14511                   *)
14512                     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'
14513                     ;;
14514                 esac
14515               fi
14516             else
14517               # FIXME: insert proper C++ library support
14518               ld_shlibs_CXX=no
14519             fi
14520             ;;
14521         esac
14522         ;;
14523
14524       interix[3-9]*)
14525         hardcode_direct_CXX=no
14526         hardcode_shlibpath_var_CXX=no
14527         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14528         export_dynamic_flag_spec_CXX='${wl}-E'
14529         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14530         # Instead, shared libraries are loaded at an image base (0x10000000 by
14531         # default) and relocated if they conflict, which is a slow very memory
14532         # consuming and fragmenting process.  To avoid this, we pick a random,
14533         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14534         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14535         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'
14536         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'
14537         ;;
14538       irix5* | irix6*)
14539         case $cc_basename in
14540           CC*)
14541             # SGI C++
14542             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'
14543
14544             # Archives containing C++ object files must be created using
14545             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14546             # necessary to make sure instantiated templates are included
14547             # in the archive.
14548             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14549             ;;
14550           *)
14551             if test "$GXX" = yes; then
14552               if test "$with_gnu_ld" = no; then
14553                 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'
14554               else
14555                 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'
14556               fi
14557             fi
14558             link_all_deplibs_CXX=yes
14559             ;;
14560         esac
14561         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14562         hardcode_libdir_separator_CXX=:
14563         inherit_rpath_CXX=yes
14564         ;;
14565
14566       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14567         case $cc_basename in
14568           KCC*)
14569             # Kuck and Associates, Inc. (KAI) C++ Compiler
14570
14571             # KCC will only create a shared library if the output file
14572             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14573             # to its proper name (with version) after linking.
14574             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'
14575             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'
14576             # Commands to make compiler produce verbose output that lists
14577             # what "hidden" libraries, object files and flags are used when
14578             # linking a shared library.
14579             #
14580             # There doesn't appear to be a way to prevent this compiler from
14581             # explicitly linking system object files so we need to strip them
14582             # from the output so that they don't get included in the library
14583             # dependencies.
14584             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"'
14585
14586             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14587             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14588
14589             # Archives containing C++ object files must be created using
14590             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14591             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14592             ;;
14593           icpc* | ecpc* )
14594             # Intel C++
14595             with_gnu_ld=yes
14596             # version 8.0 and above of icpc choke on multiply defined symbols
14597             # if we add $predep_objects and $postdep_objects, however 7.1 and
14598             # earlier do not add the objects themselves.
14599             case `$CC -V 2>&1` in
14600               *"Version 7."*)
14601                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14602                 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'
14603                 ;;
14604               *)  # Version 8.0 or newer
14605                 tmp_idyn=
14606                 case $host_cpu in
14607                   ia64*) tmp_idyn=' -i_dynamic';;
14608                 esac
14609                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14610                 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'
14611                 ;;
14612             esac
14613             archive_cmds_need_lc_CXX=no
14614             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14615             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14616             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14617             ;;
14618           pgCC* | pgcpp*)
14619             # Portland Group C++ compiler
14620             case `$CC -V` in
14621             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14622               prelink_cmds_CXX='tpldir=Template.dir~
14623                 rm -rf $tpldir~
14624                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14625                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14626               old_archive_cmds_CXX='tpldir=Template.dir~
14627                 rm -rf $tpldir~
14628                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14629                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14630                 $RANLIB $oldlib'
14631               archive_cmds_CXX='tpldir=Template.dir~
14632                 rm -rf $tpldir~
14633                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14634                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14635               archive_expsym_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 ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14639               ;;
14640             *) # Version 6 and above use weak symbols
14641               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14642               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'
14643               ;;
14644             esac
14645
14646             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14647             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14648             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'
14649             ;;
14650           cxx*)
14651             # Compaq C++
14652             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14653             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'
14654
14655             runpath_var=LD_RUN_PATH
14656             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14657             hardcode_libdir_separator_CXX=:
14658
14659             # Commands to make compiler produce verbose output that lists
14660             # what "hidden" libraries, object files and flags are used when
14661             # linking a shared library.
14662             #
14663             # There doesn't appear to be a way to prevent this compiler from
14664             # explicitly linking system object files so we need to strip them
14665             # from the output so that they don't get included in the library
14666             # dependencies.
14667             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'
14668             ;;
14669           xl* | mpixl* | bgxl*)
14670             # IBM XL 8.0 on PPC, with GNU ld
14671             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14672             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14673             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14674             if test "x$supports_anon_versioning" = xyes; then
14675               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14676                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14677                 echo "local: *; };" >> $output_objdir/$libname.ver~
14678                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14679             fi
14680             ;;
14681           *)
14682             case `$CC -V 2>&1 | sed 5q` in
14683             *Sun\ C*)
14684               # Sun C++ 5.9
14685               no_undefined_flag_CXX=' -zdefs'
14686               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14687               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'
14688               hardcode_libdir_flag_spec_CXX='-R$libdir'
14689               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'
14690               compiler_needs_object_CXX=yes
14691
14692               # Not sure whether something based on
14693               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14694               # would be better.
14695               output_verbose_link_cmd='func_echo_all'
14696
14697               # Archives containing C++ object files must be created using
14698               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14699               # necessary to make sure instantiated templates are included
14700               # in the archive.
14701               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14702               ;;
14703             esac
14704             ;;
14705         esac
14706         ;;
14707
14708       lynxos*)
14709         # FIXME: insert proper C++ library support
14710         ld_shlibs_CXX=no
14711         ;;
14712
14713       m88k*)
14714         # FIXME: insert proper C++ library support
14715         ld_shlibs_CXX=no
14716         ;;
14717
14718       mvs*)
14719         case $cc_basename in
14720           cxx*)
14721             # FIXME: insert proper C++ library support
14722             ld_shlibs_CXX=no
14723             ;;
14724           *)
14725             # FIXME: insert proper C++ library support
14726             ld_shlibs_CXX=no
14727             ;;
14728         esac
14729         ;;
14730
14731       netbsd*)
14732         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14733           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14734           wlarc=
14735           hardcode_libdir_flag_spec_CXX='-R$libdir'
14736           hardcode_direct_CXX=yes
14737           hardcode_shlibpath_var_CXX=no
14738         fi
14739         # Workaround some broken pre-1.5 toolchains
14740         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14741         ;;
14742
14743       *nto* | *qnx*)
14744         ld_shlibs_CXX=yes
14745         ;;
14746
14747       openbsd2*)
14748         # C++ shared libraries are fairly broken
14749         ld_shlibs_CXX=no
14750         ;;
14751
14752       openbsd*)
14753         if test -f /usr/libexec/ld.so; then
14754           hardcode_direct_CXX=yes
14755           hardcode_shlibpath_var_CXX=no
14756           hardcode_direct_absolute_CXX=yes
14757           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14758           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14759           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14760             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14761             export_dynamic_flag_spec_CXX='${wl}-E'
14762             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14763           fi
14764           output_verbose_link_cmd=func_echo_all
14765         else
14766           ld_shlibs_CXX=no
14767         fi
14768         ;;
14769
14770       osf3* | osf4* | osf5*)
14771         case $cc_basename in
14772           KCC*)
14773             # Kuck and Associates, Inc. (KAI) C++ Compiler
14774
14775             # KCC will only create a shared library if the output file
14776             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14777             # to its proper name (with version) after linking.
14778             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'
14779
14780             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14781             hardcode_libdir_separator_CXX=:
14782
14783             # Archives containing C++ object files must be created using
14784             # the KAI C++ compiler.
14785             case $host in
14786               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14787               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14788             esac
14789             ;;
14790           RCC*)
14791             # Rational C++ 2.4.1
14792             # FIXME: insert proper C++ library support
14793             ld_shlibs_CXX=no
14794             ;;
14795           cxx*)
14796             case $host in
14797               osf3*)
14798                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14799                 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'
14800                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14801                 ;;
14802               *)
14803                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14804                 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'
14805                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14806                   echo "-hidden">> $lib.exp~
14807                   $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~
14808                   $RM $lib.exp'
14809                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14810                 ;;
14811             esac
14812
14813             hardcode_libdir_separator_CXX=:
14814
14815             # Commands to make compiler produce verbose output that lists
14816             # what "hidden" libraries, object files and flags are used when
14817             # linking a shared library.
14818             #
14819             # There doesn't appear to be a way to prevent this compiler from
14820             # explicitly linking system object files so we need to strip them
14821             # from the output so that they don't get included in the library
14822             # dependencies.
14823             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"'
14824             ;;
14825           *)
14826             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14827               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14828               case $host in
14829                 osf3*)
14830                   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'
14831                   ;;
14832                 *)
14833                   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'
14834                   ;;
14835               esac
14836
14837               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14838               hardcode_libdir_separator_CXX=:
14839
14840               # Commands to make compiler produce verbose output that lists
14841               # what "hidden" libraries, object files and flags are used when
14842               # linking a shared library.
14843               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14844
14845             else
14846               # FIXME: insert proper C++ library support
14847               ld_shlibs_CXX=no
14848             fi
14849             ;;
14850         esac
14851         ;;
14852
14853       psos*)
14854         # FIXME: insert proper C++ library support
14855         ld_shlibs_CXX=no
14856         ;;
14857
14858       sunos4*)
14859         case $cc_basename in
14860           CC*)
14861             # Sun C++ 4.x
14862             # FIXME: insert proper C++ library support
14863             ld_shlibs_CXX=no
14864             ;;
14865           lcc*)
14866             # Lucid
14867             # FIXME: insert proper C++ library support
14868             ld_shlibs_CXX=no
14869             ;;
14870           *)
14871             # FIXME: insert proper C++ library support
14872             ld_shlibs_CXX=no
14873             ;;
14874         esac
14875         ;;
14876
14877       solaris*)
14878         case $cc_basename in
14879           CC*)
14880             # Sun C++ 4.2, 5.x and Centerline C++
14881             archive_cmds_need_lc_CXX=yes
14882             no_undefined_flag_CXX=' -zdefs'
14883             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14884             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14885               $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'
14886
14887             hardcode_libdir_flag_spec_CXX='-R$libdir'
14888             hardcode_shlibpath_var_CXX=no
14889             case $host_os in
14890               solaris2.[0-5] | solaris2.[0-5].*) ;;
14891               *)
14892                 # The compiler driver will combine and reorder linker options,
14893                 # but understands `-z linker_flag'.
14894                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14895                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14896                 ;;
14897             esac
14898             link_all_deplibs_CXX=yes
14899
14900             output_verbose_link_cmd='func_echo_all'
14901
14902             # Archives containing C++ object files must be created using
14903             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14904             # necessary to make sure instantiated templates are included
14905             # in the archive.
14906             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14907             ;;
14908           gcx*)
14909             # Green Hills C++ Compiler
14910             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14911
14912             # The C++ compiler must be used to create the archive.
14913             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14914             ;;
14915           *)
14916             # GNU C++ compiler with Solaris linker
14917             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14918               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14919               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14920                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14921                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14922                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14923
14924                 # Commands to make compiler produce verbose output that lists
14925                 # what "hidden" libraries, object files and flags are used when
14926                 # linking a shared library.
14927                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14928               else
14929                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14930                 # platform.
14931                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14932                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14933                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14934
14935                 # Commands to make compiler produce verbose output that lists
14936                 # what "hidden" libraries, object files and flags are used when
14937                 # linking a shared library.
14938                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14939               fi
14940
14941               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14942               case $host_os in
14943                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14944                 *)
14945                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14946                   ;;
14947               esac
14948             fi
14949             ;;
14950         esac
14951         ;;
14952
14953     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14954       no_undefined_flag_CXX='${wl}-z,text'
14955       archive_cmds_need_lc_CXX=no
14956       hardcode_shlibpath_var_CXX=no
14957       runpath_var='LD_RUN_PATH'
14958
14959       case $cc_basename in
14960         CC*)
14961           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14962           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14963           ;;
14964         *)
14965           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14966           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14967           ;;
14968       esac
14969       ;;
14970
14971       sysv5* | sco3.2v5* | sco5v6*)
14972         # Note: We can NOT use -z defs as we might desire, because we do not
14973         # link with -lc, and that would cause any symbols used from libc to
14974         # always be unresolved, which means just about no library would
14975         # ever link correctly.  If we're not using GNU ld we use -z text
14976         # though, which does catch some bad symbols but isn't as heavy-handed
14977         # as -z defs.
14978         no_undefined_flag_CXX='${wl}-z,text'
14979         allow_undefined_flag_CXX='${wl}-z,nodefs'
14980         archive_cmds_need_lc_CXX=no
14981         hardcode_shlibpath_var_CXX=no
14982         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14983         hardcode_libdir_separator_CXX=':'
14984         link_all_deplibs_CXX=yes
14985         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14986         runpath_var='LD_RUN_PATH'
14987
14988         case $cc_basename in
14989           CC*)
14990             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14991             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14992             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14993               '"$old_archive_cmds_CXX"
14994             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14995               '"$reload_cmds_CXX"
14996             ;;
14997           *)
14998             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14999             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15000             ;;
15001         esac
15002       ;;
15003
15004       tandem*)
15005         case $cc_basename in
15006           NCC*)
15007             # NonStop-UX NCC 3.20
15008             # FIXME: insert proper C++ library support
15009             ld_shlibs_CXX=no
15010             ;;
15011           *)
15012             # FIXME: insert proper C++ library support
15013             ld_shlibs_CXX=no
15014             ;;
15015         esac
15016         ;;
15017
15018       vxworks*)
15019         # FIXME: insert proper C++ library support
15020         ld_shlibs_CXX=no
15021         ;;
15022
15023       *)
15024         # FIXME: insert proper C++ library support
15025         ld_shlibs_CXX=no
15026         ;;
15027     esac
15028
15029     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15030 $as_echo "$ld_shlibs_CXX" >&6; }
15031     test "$ld_shlibs_CXX" = no && can_build_shared=no
15032
15033     GCC_CXX="$GXX"
15034     LD_CXX="$LD"
15035
15036     ## CAVEAT EMPTOR:
15037     ## There is no encapsulation within the following macros, do not change
15038     ## the running order or otherwise move them around unless you know exactly
15039     ## what you are doing...
15040     # Dependencies to place before and after the object being linked:
15041 predep_objects_CXX=
15042 postdep_objects_CXX=
15043 predeps_CXX=
15044 postdeps_CXX=
15045 compiler_lib_search_path_CXX=
15046
15047 cat > conftest.$ac_ext <<_LT_EOF
15048 class Foo
15049 {
15050 public:
15051   Foo (void) { a = 0; }
15052 private:
15053   int a;
15054 };
15055 _LT_EOF
15056
15057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15058   (eval $ac_compile) 2>&5
15059   ac_status=$?
15060   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15061   test $ac_status = 0; }; then
15062   # Parse the compiler output and extract the necessary
15063   # objects, libraries and library flags.
15064
15065   # Sentinel used to keep track of whether or not we are before
15066   # the conftest object file.
15067   pre_test_object_deps_done=no
15068
15069   for p in `eval "$output_verbose_link_cmd"`; do
15070     case $p in
15071
15072     -L* | -R* | -l*)
15073        # Some compilers place space between "-{L,R}" and the path.
15074        # Remove the space.
15075        if test $p = "-L" ||
15076           test $p = "-R"; then
15077          prev=$p
15078          continue
15079        else
15080          prev=
15081        fi
15082
15083        if test "$pre_test_object_deps_done" = no; then
15084          case $p in
15085          -L* | -R*)
15086            # Internal compiler library paths should come after those
15087            # provided the user.  The postdeps already come after the
15088            # user supplied libs so there is no need to process them.
15089            if test -z "$compiler_lib_search_path_CXX"; then
15090              compiler_lib_search_path_CXX="${prev}${p}"
15091            else
15092              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15093            fi
15094            ;;
15095          # The "-l" case would never come before the object being
15096          # linked, so don't bother handling this case.
15097          esac
15098        else
15099          if test -z "$postdeps_CXX"; then
15100            postdeps_CXX="${prev}${p}"
15101          else
15102            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15103          fi
15104        fi
15105        ;;
15106
15107     *.$objext)
15108        # This assumes that the test object file only shows up
15109        # once in the compiler output.
15110        if test "$p" = "conftest.$objext"; then
15111          pre_test_object_deps_done=yes
15112          continue
15113        fi
15114
15115        if test "$pre_test_object_deps_done" = no; then
15116          if test -z "$predep_objects_CXX"; then
15117            predep_objects_CXX="$p"
15118          else
15119            predep_objects_CXX="$predep_objects_CXX $p"
15120          fi
15121        else
15122          if test -z "$postdep_objects_CXX"; then
15123            postdep_objects_CXX="$p"
15124          else
15125            postdep_objects_CXX="$postdep_objects_CXX $p"
15126          fi
15127        fi
15128        ;;
15129
15130     *) ;; # Ignore the rest.
15131
15132     esac
15133   done
15134
15135   # Clean up.
15136   rm -f a.out a.exe
15137 else
15138   echo "libtool.m4: error: problem compiling CXX test program"
15139 fi
15140
15141 $RM -f confest.$objext
15142
15143 # PORTME: override above test on systems where it is broken
15144 case $host_os in
15145 interix[3-9]*)
15146   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15147   # hack all around it, let's just trust "g++" to DTRT.
15148   predep_objects_CXX=
15149   postdep_objects_CXX=
15150   postdeps_CXX=
15151   ;;
15152
15153 linux*)
15154   case `$CC -V 2>&1 | sed 5q` in
15155   *Sun\ C*)
15156     # Sun C++ 5.9
15157
15158     # The more standards-conforming stlport4 library is
15159     # incompatible with the Cstd library. Avoid specifying
15160     # it if it's in CXXFLAGS. Ignore libCrun as
15161     # -library=stlport4 depends on it.
15162     case " $CXX $CXXFLAGS " in
15163     *" -library=stlport4 "*)
15164       solaris_use_stlport4=yes
15165       ;;
15166     esac
15167
15168     if test "$solaris_use_stlport4" != yes; then
15169       postdeps_CXX='-library=Cstd -library=Crun'
15170     fi
15171     ;;
15172   esac
15173   ;;
15174
15175 solaris*)
15176   case $cc_basename in
15177   CC*)
15178     # The more standards-conforming stlport4 library is
15179     # incompatible with the Cstd library. Avoid specifying
15180     # it if it's in CXXFLAGS. Ignore libCrun as
15181     # -library=stlport4 depends on it.
15182     case " $CXX $CXXFLAGS " in
15183     *" -library=stlport4 "*)
15184       solaris_use_stlport4=yes
15185       ;;
15186     esac
15187
15188     # Adding this requires a known-good setup of shared libraries for
15189     # Sun compiler versions before 5.6, else PIC objects from an old
15190     # archive will be linked into the output, leading to subtle bugs.
15191     if test "$solaris_use_stlport4" != yes; then
15192       postdeps_CXX='-library=Cstd -library=Crun'
15193     fi
15194     ;;
15195   esac
15196   ;;
15197 esac
15198
15199
15200 case " $postdeps_CXX " in
15201 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15202 esac
15203  compiler_lib_search_dirs_CXX=
15204 if test -n "${compiler_lib_search_path_CXX}"; then
15205  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15206 fi
15207
15208
15209
15210
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     lt_prog_compiler_wl_CXX=
15239 lt_prog_compiler_pic_CXX=
15240 lt_prog_compiler_static_CXX=
15241
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15243 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15244
15245   # C++ specific cases for pic, static, wl, etc.
15246   if test "$GXX" = yes; then
15247     lt_prog_compiler_wl_CXX='-Wl,'
15248     lt_prog_compiler_static_CXX='-static'
15249
15250     case $host_os in
15251     aix*)
15252       # All AIX code is PIC.
15253       if test "$host_cpu" = ia64; then
15254         # AIX 5 now supports IA64 processor
15255         lt_prog_compiler_static_CXX='-Bstatic'
15256       fi
15257       ;;
15258
15259     amigaos*)
15260       case $host_cpu in
15261       powerpc)
15262             # see comment about AmigaOS4 .so support
15263             lt_prog_compiler_pic_CXX='-fPIC'
15264         ;;
15265       m68k)
15266             # FIXME: we need at least 68020 code to build shared libraries, but
15267             # adding the `-m68020' flag to GCC prevents building anything better,
15268             # like `-m68040'.
15269             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15270         ;;
15271       esac
15272       ;;
15273
15274     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15275       # PIC is the default for these OSes.
15276       ;;
15277     mingw* | cygwin* | os2* | pw32* | cegcc*)
15278       # This hack is so that the source file can tell whether it is being
15279       # built for inclusion in a dll (and should export symbols for example).
15280       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15281       # (--disable-auto-import) libraries
15282       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15283       ;;
15284     darwin* | rhapsody*)
15285       # PIC is the default on this platform
15286       # Common symbols not allowed in MH_DYLIB files
15287       lt_prog_compiler_pic_CXX='-fno-common'
15288       ;;
15289     *djgpp*)
15290       # DJGPP does not support shared libraries at all
15291       lt_prog_compiler_pic_CXX=
15292       ;;
15293     haiku*)
15294       # PIC is the default for Haiku.
15295       # The "-static" flag exists, but is broken.
15296       lt_prog_compiler_static_CXX=
15297       ;;
15298     interix[3-9]*)
15299       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15300       # Instead, we relocate shared libraries at runtime.
15301       ;;
15302     sysv4*MP*)
15303       if test -d /usr/nec; then
15304         lt_prog_compiler_pic_CXX=-Kconform_pic
15305       fi
15306       ;;
15307     hpux*)
15308       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15309       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15310       # sets the default TLS model and affects inlining.
15311       case $host_cpu in
15312       hppa*64*)
15313         ;;
15314       *)
15315         lt_prog_compiler_pic_CXX='-fPIC'
15316         ;;
15317       esac
15318       ;;
15319     *qnx* | *nto*)
15320       # QNX uses GNU C++, but need to define -shared option too, otherwise
15321       # it will coredump.
15322       lt_prog_compiler_pic_CXX='-fPIC -shared'
15323       ;;
15324     *)
15325       lt_prog_compiler_pic_CXX='-fPIC'
15326       ;;
15327     esac
15328   else
15329     case $host_os in
15330       aix[4-9]*)
15331         # All AIX code is PIC.
15332         if test "$host_cpu" = ia64; then
15333           # AIX 5 now supports IA64 processor
15334           lt_prog_compiler_static_CXX='-Bstatic'
15335         else
15336           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15337         fi
15338         ;;
15339       chorus*)
15340         case $cc_basename in
15341         cxch68*)
15342           # Green Hills C++ Compiler
15343           # _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"
15344           ;;
15345         esac
15346         ;;
15347       dgux*)
15348         case $cc_basename in
15349           ec++*)
15350             lt_prog_compiler_pic_CXX='-KPIC'
15351             ;;
15352           ghcx*)
15353             # Green Hills C++ Compiler
15354             lt_prog_compiler_pic_CXX='-pic'
15355             ;;
15356           *)
15357             ;;
15358         esac
15359         ;;
15360       freebsd* | dragonfly*)
15361         # FreeBSD uses GNU C++
15362         ;;
15363       hpux9* | hpux10* | hpux11*)
15364         case $cc_basename in
15365           CC*)
15366             lt_prog_compiler_wl_CXX='-Wl,'
15367             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15368             if test "$host_cpu" != ia64; then
15369               lt_prog_compiler_pic_CXX='+Z'
15370             fi
15371             ;;
15372           aCC*)
15373             lt_prog_compiler_wl_CXX='-Wl,'
15374             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15375             case $host_cpu in
15376             hppa*64*|ia64*)
15377               # +Z the default
15378               ;;
15379             *)
15380               lt_prog_compiler_pic_CXX='+Z'
15381               ;;
15382             esac
15383             ;;
15384           *)
15385             ;;
15386         esac
15387         ;;
15388       interix*)
15389         # This is c89, which is MS Visual C++ (no shared libs)
15390         # Anyone wants to do a port?
15391         ;;
15392       irix5* | irix6* | nonstopux*)
15393         case $cc_basename in
15394           CC*)
15395             lt_prog_compiler_wl_CXX='-Wl,'
15396             lt_prog_compiler_static_CXX='-non_shared'
15397             # CC pic flag -KPIC is the default.
15398             ;;
15399           *)
15400             ;;
15401         esac
15402         ;;
15403       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15404         case $cc_basename in
15405           KCC*)
15406             # KAI C++ Compiler
15407             lt_prog_compiler_wl_CXX='--backend -Wl,'
15408             lt_prog_compiler_pic_CXX='-fPIC'
15409             ;;
15410           ecpc* )
15411             # old Intel C++ for x86_64 which still supported -KPIC.
15412             lt_prog_compiler_wl_CXX='-Wl,'
15413             lt_prog_compiler_pic_CXX='-KPIC'
15414             lt_prog_compiler_static_CXX='-static'
15415             ;;
15416           icpc* )
15417             # Intel C++, used to be incompatible with GCC.
15418             # ICC 10 doesn't accept -KPIC any more.
15419             lt_prog_compiler_wl_CXX='-Wl,'
15420             lt_prog_compiler_pic_CXX='-fPIC'
15421             lt_prog_compiler_static_CXX='-static'
15422             ;;
15423           pgCC* | pgcpp*)
15424             # Portland Group C++ compiler
15425             lt_prog_compiler_wl_CXX='-Wl,'
15426             lt_prog_compiler_pic_CXX='-fpic'
15427             lt_prog_compiler_static_CXX='-Bstatic'
15428             ;;
15429           cxx*)
15430             # Compaq C++
15431             # Make sure the PIC flag is empty.  It appears that all Alpha
15432             # Linux and Compaq Tru64 Unix objects are PIC.
15433             lt_prog_compiler_pic_CXX=
15434             lt_prog_compiler_static_CXX='-non_shared'
15435             ;;
15436           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15437             # IBM XL 8.0, 9.0 on PPC and BlueGene
15438             lt_prog_compiler_wl_CXX='-Wl,'
15439             lt_prog_compiler_pic_CXX='-qpic'
15440             lt_prog_compiler_static_CXX='-qstaticlink'
15441             ;;
15442           *)
15443             case `$CC -V 2>&1 | sed 5q` in
15444             *Sun\ C*)
15445               # Sun C++ 5.9
15446               lt_prog_compiler_pic_CXX='-KPIC'
15447               lt_prog_compiler_static_CXX='-Bstatic'
15448               lt_prog_compiler_wl_CXX='-Qoption ld '
15449               ;;
15450             esac
15451             ;;
15452         esac
15453         ;;
15454       lynxos*)
15455         ;;
15456       m88k*)
15457         ;;
15458       mvs*)
15459         case $cc_basename in
15460           cxx*)
15461             lt_prog_compiler_pic_CXX='-W c,exportall'
15462             ;;
15463           *)
15464             ;;
15465         esac
15466         ;;
15467       netbsd*)
15468         ;;
15469       *qnx* | *nto*)
15470         # QNX uses GNU C++, but need to define -shared option too, otherwise
15471         # it will coredump.
15472         lt_prog_compiler_pic_CXX='-fPIC -shared'
15473         ;;
15474       osf3* | osf4* | osf5*)
15475         case $cc_basename in
15476           KCC*)
15477             lt_prog_compiler_wl_CXX='--backend -Wl,'
15478             ;;
15479           RCC*)
15480             # Rational C++ 2.4.1
15481             lt_prog_compiler_pic_CXX='-pic'
15482             ;;
15483           cxx*)
15484             # Digital/Compaq C++
15485             lt_prog_compiler_wl_CXX='-Wl,'
15486             # Make sure the PIC flag is empty.  It appears that all Alpha
15487             # Linux and Compaq Tru64 Unix objects are PIC.
15488             lt_prog_compiler_pic_CXX=
15489             lt_prog_compiler_static_CXX='-non_shared'
15490             ;;
15491           *)
15492             ;;
15493         esac
15494         ;;
15495       psos*)
15496         ;;
15497       solaris*)
15498         case $cc_basename in
15499           CC*)
15500             # Sun C++ 4.2, 5.x and Centerline C++
15501             lt_prog_compiler_pic_CXX='-KPIC'
15502             lt_prog_compiler_static_CXX='-Bstatic'
15503             lt_prog_compiler_wl_CXX='-Qoption ld '
15504             ;;
15505           gcx*)
15506             # Green Hills C++ Compiler
15507             lt_prog_compiler_pic_CXX='-PIC'
15508             ;;
15509           *)
15510             ;;
15511         esac
15512         ;;
15513       sunos4*)
15514         case $cc_basename in
15515           CC*)
15516             # Sun C++ 4.x
15517             lt_prog_compiler_pic_CXX='-pic'
15518             lt_prog_compiler_static_CXX='-Bstatic'
15519             ;;
15520           lcc*)
15521             # Lucid
15522             lt_prog_compiler_pic_CXX='-pic'
15523             ;;
15524           *)
15525             ;;
15526         esac
15527         ;;
15528       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15529         case $cc_basename in
15530           CC*)
15531             lt_prog_compiler_wl_CXX='-Wl,'
15532             lt_prog_compiler_pic_CXX='-KPIC'
15533             lt_prog_compiler_static_CXX='-Bstatic'
15534             ;;
15535         esac
15536         ;;
15537       tandem*)
15538         case $cc_basename in
15539           NCC*)
15540             # NonStop-UX NCC 3.20
15541             lt_prog_compiler_pic_CXX='-KPIC'
15542             ;;
15543           *)
15544             ;;
15545         esac
15546         ;;
15547       vxworks*)
15548         ;;
15549       *)
15550         lt_prog_compiler_can_build_shared_CXX=no
15551         ;;
15552     esac
15553   fi
15554
15555 case $host_os in
15556   # For platforms which do not support PIC, -DPIC is meaningless:
15557   *djgpp*)
15558     lt_prog_compiler_pic_CXX=
15559     ;;
15560   *)
15561     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15562     ;;
15563 esac
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15565 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15566
15567
15568
15569 #
15570 # Check to make sure the PIC flag actually works.
15571 #
15572 if test -n "$lt_prog_compiler_pic_CXX"; then
15573   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15574 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15575 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15576   $as_echo_n "(cached) " >&6
15577 else
15578   lt_cv_prog_compiler_pic_works_CXX=no
15579    ac_outfile=conftest.$ac_objext
15580    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15581    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15582    # Insert the option either (1) after the last *FLAGS variable, or
15583    # (2) before a word containing "conftest.", or (3) at the end.
15584    # Note that $ac_compile itself does not contain backslashes and begins
15585    # with a dollar sign (not a hyphen), so the echo should work correctly.
15586    # The option is referenced via a variable to avoid confusing sed.
15587    lt_compile=`echo "$ac_compile" | $SED \
15588    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15589    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15590    -e 's:$: $lt_compiler_flag:'`
15591    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15592    (eval "$lt_compile" 2>conftest.err)
15593    ac_status=$?
15594    cat conftest.err >&5
15595    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596    if (exit $ac_status) && test -s "$ac_outfile"; then
15597      # The compiler can only warn and ignore the option if not recognized
15598      # So say no if there are warnings other than the usual output.
15599      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15600      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15601      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15602        lt_cv_prog_compiler_pic_works_CXX=yes
15603      fi
15604    fi
15605    $RM conftest*
15606
15607 fi
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15609 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15610
15611 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15612     case $lt_prog_compiler_pic_CXX in
15613      "" | " "*) ;;
15614      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15615      esac
15616 else
15617     lt_prog_compiler_pic_CXX=
15618      lt_prog_compiler_can_build_shared_CXX=no
15619 fi
15620
15621 fi
15622
15623
15624
15625 #
15626 # Check to make sure the static flag actually works.
15627 #
15628 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15630 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15631 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15632   $as_echo_n "(cached) " >&6
15633 else
15634   lt_cv_prog_compiler_static_works_CXX=no
15635    save_LDFLAGS="$LDFLAGS"
15636    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15637    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15638    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15639      # The linker can only warn and ignore the option if not recognized
15640      # So say no if there are warnings
15641      if test -s conftest.err; then
15642        # Append any errors to the config.log.
15643        cat conftest.err 1>&5
15644        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15645        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15646        if diff conftest.exp conftest.er2 >/dev/null; then
15647          lt_cv_prog_compiler_static_works_CXX=yes
15648        fi
15649      else
15650        lt_cv_prog_compiler_static_works_CXX=yes
15651      fi
15652    fi
15653    $RM -r conftest*
15654    LDFLAGS="$save_LDFLAGS"
15655
15656 fi
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15658 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15659
15660 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15661     :
15662 else
15663     lt_prog_compiler_static_CXX=
15664 fi
15665
15666
15667
15668
15669     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15670 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15671 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15672   $as_echo_n "(cached) " >&6
15673 else
15674   lt_cv_prog_compiler_c_o_CXX=no
15675    $RM -r conftest 2>/dev/null
15676    mkdir conftest
15677    cd conftest
15678    mkdir out
15679    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15680
15681    lt_compiler_flag="-o out/conftest2.$ac_objext"
15682    # Insert the option either (1) after the last *FLAGS variable, or
15683    # (2) before a word containing "conftest.", or (3) at the end.
15684    # Note that $ac_compile itself does not contain backslashes and begins
15685    # with a dollar sign (not a hyphen), so the echo should work correctly.
15686    lt_compile=`echo "$ac_compile" | $SED \
15687    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15688    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15689    -e 's:$: $lt_compiler_flag:'`
15690    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15691    (eval "$lt_compile" 2>out/conftest.err)
15692    ac_status=$?
15693    cat out/conftest.err >&5
15694    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15696    then
15697      # The compiler can only warn and ignore the option if not recognized
15698      # So say no if there are warnings
15699      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15700      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15701      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15702        lt_cv_prog_compiler_c_o_CXX=yes
15703      fi
15704    fi
15705    chmod u+w . 2>&5
15706    $RM conftest*
15707    # SGI C++ compiler will create directory out/ii_files/ for
15708    # template instantiation
15709    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15710    $RM out/* && rmdir out
15711    cd ..
15712    $RM -r conftest
15713    $RM conftest*
15714
15715 fi
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15717 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15718
15719
15720
15721     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15722 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15723 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15724   $as_echo_n "(cached) " >&6
15725 else
15726   lt_cv_prog_compiler_c_o_CXX=no
15727    $RM -r conftest 2>/dev/null
15728    mkdir conftest
15729    cd conftest
15730    mkdir out
15731    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15732
15733    lt_compiler_flag="-o out/conftest2.$ac_objext"
15734    # Insert the option either (1) after the last *FLAGS variable, or
15735    # (2) before a word containing "conftest.", or (3) at the end.
15736    # Note that $ac_compile itself does not contain backslashes and begins
15737    # with a dollar sign (not a hyphen), so the echo should work correctly.
15738    lt_compile=`echo "$ac_compile" | $SED \
15739    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15740    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15741    -e 's:$: $lt_compiler_flag:'`
15742    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15743    (eval "$lt_compile" 2>out/conftest.err)
15744    ac_status=$?
15745    cat out/conftest.err >&5
15746    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15748    then
15749      # The compiler can only warn and ignore the option if not recognized
15750      # So say no if there are warnings
15751      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15752      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15753      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15754        lt_cv_prog_compiler_c_o_CXX=yes
15755      fi
15756    fi
15757    chmod u+w . 2>&5
15758    $RM conftest*
15759    # SGI C++ compiler will create directory out/ii_files/ for
15760    # template instantiation
15761    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15762    $RM out/* && rmdir out
15763    cd ..
15764    $RM -r conftest
15765    $RM conftest*
15766
15767 fi
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15769 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15770
15771
15772
15773
15774 hard_links="nottested"
15775 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15776   # do not overwrite the value of need_locks provided by the user
15777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15778 $as_echo_n "checking if we can lock with hard links... " >&6; }
15779   hard_links=yes
15780   $RM conftest*
15781   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15782   touch conftest.a
15783   ln conftest.a conftest.b 2>&5 || hard_links=no
15784   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15786 $as_echo "$hard_links" >&6; }
15787   if test "$hard_links" = no; then
15788     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15789 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15790     need_locks=warn
15791   fi
15792 else
15793   need_locks=no
15794 fi
15795
15796
15797
15798     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15799 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15800
15801   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15802   case $host_os in
15803   aix[4-9]*)
15804     # If we're using GNU nm, then we don't want the "-C" option.
15805     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15806     # Also, AIX nm treats weak defined symbols like other global defined
15807     # symbols, whereas GNU nm marks them as "W".
15808     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15809       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'
15810     else
15811       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'
15812     fi
15813     ;;
15814   pw32*)
15815     export_symbols_cmds_CXX="$ltdll_cmds"
15816   ;;
15817   cygwin* | mingw* | cegcc*)
15818     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'
15819   ;;
15820   *)
15821     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15822   ;;
15823   esac
15824   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15825
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15827 $as_echo "$ld_shlibs_CXX" >&6; }
15828 test "$ld_shlibs_CXX" = no && can_build_shared=no
15829
15830 with_gnu_ld_CXX=$with_gnu_ld
15831
15832
15833
15834
15835
15836
15837 #
15838 # Do we need to explicitly link libc?
15839 #
15840 case "x$archive_cmds_need_lc_CXX" in
15841 x|xyes)
15842   # Assume -lc should be added
15843   archive_cmds_need_lc_CXX=yes
15844
15845   if test "$enable_shared" = yes && test "$GCC" = yes; then
15846     case $archive_cmds_CXX in
15847     *'~'*)
15848       # FIXME: we may have to deal with multi-command sequences.
15849       ;;
15850     '$CC '*)
15851       # Test whether the compiler implicitly links with -lc since on some
15852       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15853       # to ld, don't add -lc before -lgcc.
15854       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15855 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15856 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15857   $as_echo_n "(cached) " >&6
15858 else
15859   $RM conftest*
15860         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15861
15862         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15863   (eval $ac_compile) 2>&5
15864   ac_status=$?
15865   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15866   test $ac_status = 0; } 2>conftest.err; then
15867           soname=conftest
15868           lib=conftest
15869           libobjs=conftest.$ac_objext
15870           deplibs=
15871           wl=$lt_prog_compiler_wl_CXX
15872           pic_flag=$lt_prog_compiler_pic_CXX
15873           compiler_flags=-v
15874           linker_flags=-v
15875           verstring=
15876           output_objdir=.
15877           libname=conftest
15878           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15879           allow_undefined_flag_CXX=
15880           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15881   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15882   ac_status=$?
15883   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15884   test $ac_status = 0; }
15885           then
15886             lt_cv_archive_cmds_need_lc_CXX=no
15887           else
15888             lt_cv_archive_cmds_need_lc_CXX=yes
15889           fi
15890           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15891         else
15892           cat conftest.err 1>&5
15893         fi
15894         $RM conftest*
15895
15896 fi
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15898 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15899       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15900       ;;
15901     esac
15902   fi
15903   ;;
15904 esac
15905
15906
15907
15908
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15970 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15971
15972 library_names_spec=
15973 libname_spec='lib$name'
15974 soname_spec=
15975 shrext_cmds=".so"
15976 postinstall_cmds=
15977 postuninstall_cmds=
15978 finish_cmds=
15979 finish_eval=
15980 shlibpath_var=
15981 shlibpath_overrides_runpath=unknown
15982 version_type=none
15983 dynamic_linker="$host_os ld.so"
15984 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15985 need_lib_prefix=unknown
15986 hardcode_into_libs=no
15987
15988 # when you set need_version to no, make sure it does not cause -set_version
15989 # flags to be left without arguments
15990 need_version=unknown
15991
15992 case $host_os in
15993 aix3*)
15994   version_type=linux
15995   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15996   shlibpath_var=LIBPATH
15997
15998   # AIX 3 has no versioning support, so we append a major version to the name.
15999   soname_spec='${libname}${release}${shared_ext}$major'
16000   ;;
16001
16002 aix[4-9]*)
16003   version_type=linux
16004   need_lib_prefix=no
16005   need_version=no
16006   hardcode_into_libs=yes
16007   if test "$host_cpu" = ia64; then
16008     # AIX 5 supports IA64
16009     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16010     shlibpath_var=LD_LIBRARY_PATH
16011   else
16012     # With GCC up to 2.95.x, collect2 would create an import file
16013     # for dependence libraries.  The import file would start with
16014     # the line `#! .'.  This would cause the generated library to
16015     # depend on `.', always an invalid library.  This was fixed in
16016     # development snapshots of GCC prior to 3.0.
16017     case $host_os in
16018       aix4 | aix4.[01] | aix4.[01].*)
16019       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16020            echo ' yes '
16021            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16022         :
16023       else
16024         can_build_shared=no
16025       fi
16026       ;;
16027     esac
16028     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16029     # soname into executable. Probably we can add versioning support to
16030     # collect2, so additional links can be useful in future.
16031     if test "$aix_use_runtimelinking" = yes; then
16032       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16033       # instead of lib<name>.a to let people know that these are not
16034       # typical AIX shared libraries.
16035       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16036     else
16037       # We preserve .a as extension for shared libraries through AIX4.2
16038       # and later when we are not doing run time linking.
16039       library_names_spec='${libname}${release}.a $libname.a'
16040       soname_spec='${libname}${release}${shared_ext}$major'
16041     fi
16042     shlibpath_var=LIBPATH
16043   fi
16044   ;;
16045
16046 amigaos*)
16047   case $host_cpu in
16048   powerpc)
16049     # Since July 2007 AmigaOS4 officially supports .so libraries.
16050     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16051     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16052     ;;
16053   m68k)
16054     library_names_spec='$libname.ixlibrary $libname.a'
16055     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16056     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'
16057     ;;
16058   esac
16059   ;;
16060
16061 beos*)
16062   library_names_spec='${libname}${shared_ext}'
16063   dynamic_linker="$host_os ld.so"
16064   shlibpath_var=LIBRARY_PATH
16065   ;;
16066
16067 bsdi[45]*)
16068   version_type=linux
16069   need_version=no
16070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16071   soname_spec='${libname}${release}${shared_ext}$major'
16072   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16073   shlibpath_var=LD_LIBRARY_PATH
16074   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16075   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16076   # the default ld.so.conf also contains /usr/contrib/lib and
16077   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16078   # libtool to hard-code these into programs
16079   ;;
16080
16081 cygwin* | mingw* | pw32* | cegcc*)
16082   version_type=windows
16083   shrext_cmds=".dll"
16084   need_version=no
16085   need_lib_prefix=no
16086
16087   case $GCC,$host_os in
16088   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16089     library_names_spec='$libname.dll.a'
16090     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16091     postinstall_cmds='base_file=`basename \${file}`~
16092       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16093       dldir=$destdir/`dirname \$dlpath`~
16094       test -d \$dldir || mkdir -p \$dldir~
16095       $install_prog $dir/$dlname \$dldir/$dlname~
16096       chmod a+x \$dldir/$dlname~
16097       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16098         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16099       fi'
16100     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16101       dlpath=$dir/\$dldll~
16102        $RM \$dlpath'
16103     shlibpath_overrides_runpath=yes
16104
16105     case $host_os in
16106     cygwin*)
16107       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16108       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16109
16110       ;;
16111     mingw* | cegcc*)
16112       # MinGW DLLs use traditional 'lib' prefix
16113       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16114       ;;
16115     pw32*)
16116       # pw32 DLLs use 'pw' prefix rather than 'lib'
16117       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16118       ;;
16119     esac
16120     ;;
16121
16122   *)
16123     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16124     ;;
16125   esac
16126   dynamic_linker='Win32 ld.exe'
16127   # FIXME: first we should search . and the directory the executable is in
16128   shlibpath_var=PATH
16129   ;;
16130
16131 darwin* | rhapsody*)
16132   dynamic_linker="$host_os dyld"
16133   version_type=darwin
16134   need_lib_prefix=no
16135   need_version=no
16136   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16137   soname_spec='${libname}${release}${major}$shared_ext'
16138   shlibpath_overrides_runpath=yes
16139   shlibpath_var=DYLD_LIBRARY_PATH
16140   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16141
16142   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16143   ;;
16144
16145 dgux*)
16146   version_type=linux
16147   need_lib_prefix=no
16148   need_version=no
16149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16150   soname_spec='${libname}${release}${shared_ext}$major'
16151   shlibpath_var=LD_LIBRARY_PATH
16152   ;;
16153
16154 freebsd1*)
16155   dynamic_linker=no
16156   ;;
16157
16158 freebsd* | dragonfly*)
16159   # DragonFly does not have aout.  When/if they implement a new
16160   # versioning mechanism, adjust this.
16161   if test -x /usr/bin/objformat; then
16162     objformat=`/usr/bin/objformat`
16163   else
16164     case $host_os in
16165     freebsd[123]*) objformat=aout ;;
16166     *) objformat=elf ;;
16167     esac
16168   fi
16169   version_type=freebsd-$objformat
16170   case $version_type in
16171     freebsd-elf*)
16172       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16173       need_version=no
16174       need_lib_prefix=no
16175       ;;
16176     freebsd-*)
16177       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16178       need_version=yes
16179       ;;
16180   esac
16181   shlibpath_var=LD_LIBRARY_PATH
16182   case $host_os in
16183   freebsd2*)
16184     shlibpath_overrides_runpath=yes
16185     ;;
16186   freebsd3.[01]* | freebsdelf3.[01]*)
16187     shlibpath_overrides_runpath=yes
16188     hardcode_into_libs=yes
16189     ;;
16190   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16191   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16192     shlibpath_overrides_runpath=no
16193     hardcode_into_libs=yes
16194     ;;
16195   *) # from 4.6 on, and DragonFly
16196     shlibpath_overrides_runpath=yes
16197     hardcode_into_libs=yes
16198     ;;
16199   esac
16200   ;;
16201
16202 gnu*)
16203   version_type=linux
16204   need_lib_prefix=no
16205   need_version=no
16206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16207   soname_spec='${libname}${release}${shared_ext}$major'
16208   shlibpath_var=LD_LIBRARY_PATH
16209   hardcode_into_libs=yes
16210   ;;
16211
16212 haiku*)
16213   version_type=linux
16214   need_lib_prefix=no
16215   need_version=no
16216   dynamic_linker="$host_os runtime_loader"
16217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16218   soname_spec='${libname}${release}${shared_ext}$major'
16219   shlibpath_var=LIBRARY_PATH
16220   shlibpath_overrides_runpath=yes
16221   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16222   hardcode_into_libs=yes
16223   ;;
16224
16225 hpux9* | hpux10* | hpux11*)
16226   # Give a soname corresponding to the major version so that dld.sl refuses to
16227   # link against other versions.
16228   version_type=sunos
16229   need_lib_prefix=no
16230   need_version=no
16231   case $host_cpu in
16232   ia64*)
16233     shrext_cmds='.so'
16234     hardcode_into_libs=yes
16235     dynamic_linker="$host_os dld.so"
16236     shlibpath_var=LD_LIBRARY_PATH
16237     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16238     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16239     soname_spec='${libname}${release}${shared_ext}$major'
16240     if test "X$HPUX_IA64_MODE" = X32; then
16241       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16242     else
16243       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16244     fi
16245     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16246     ;;
16247   hppa*64*)
16248     shrext_cmds='.sl'
16249     hardcode_into_libs=yes
16250     dynamic_linker="$host_os dld.sl"
16251     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16252     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16253     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16254     soname_spec='${libname}${release}${shared_ext}$major'
16255     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16256     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16257     ;;
16258   *)
16259     shrext_cmds='.sl'
16260     dynamic_linker="$host_os dld.sl"
16261     shlibpath_var=SHLIB_PATH
16262     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16263     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16264     soname_spec='${libname}${release}${shared_ext}$major'
16265     ;;
16266   esac
16267   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16268   postinstall_cmds='chmod 555 $lib'
16269   # or fails outright, so override atomically:
16270   install_override_mode=555
16271   ;;
16272
16273 interix[3-9]*)
16274   version_type=linux
16275   need_lib_prefix=no
16276   need_version=no
16277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16278   soname_spec='${libname}${release}${shared_ext}$major'
16279   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16280   shlibpath_var=LD_LIBRARY_PATH
16281   shlibpath_overrides_runpath=no
16282   hardcode_into_libs=yes
16283   ;;
16284
16285 irix5* | irix6* | nonstopux*)
16286   case $host_os in
16287     nonstopux*) version_type=nonstopux ;;
16288     *)
16289         if test "$lt_cv_prog_gnu_ld" = yes; then
16290                 version_type=linux
16291         else
16292                 version_type=irix
16293         fi ;;
16294   esac
16295   need_lib_prefix=no
16296   need_version=no
16297   soname_spec='${libname}${release}${shared_ext}$major'
16298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16299   case $host_os in
16300   irix5* | nonstopux*)
16301     libsuff= shlibsuff=
16302     ;;
16303   *)
16304     case $LD in # libtool.m4 will add one of these switches to LD
16305     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16306       libsuff= shlibsuff= libmagic=32-bit;;
16307     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16308       libsuff=32 shlibsuff=N32 libmagic=N32;;
16309     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16310       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16311     *) libsuff= shlibsuff= libmagic=never-match;;
16312     esac
16313     ;;
16314   esac
16315   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16316   shlibpath_overrides_runpath=no
16317   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16318   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16319   hardcode_into_libs=yes
16320   ;;
16321
16322 # No shared lib support for Linux oldld, aout, or coff.
16323 linux*oldld* | linux*aout* | linux*coff*)
16324   dynamic_linker=no
16325   ;;
16326
16327 # This must be Linux ELF.
16328 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16329   version_type=linux
16330   need_lib_prefix=no
16331   need_version=no
16332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16333   soname_spec='${libname}${release}${shared_ext}$major'
16334   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16335   shlibpath_var=LD_LIBRARY_PATH
16336   shlibpath_overrides_runpath=no
16337
16338   # Some binutils ld are patched to set DT_RUNPATH
16339   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16340   $as_echo_n "(cached) " >&6
16341 else
16342   lt_cv_shlibpath_overrides_runpath=no
16343     save_LDFLAGS=$LDFLAGS
16344     save_libdir=$libdir
16345     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16346          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16347     if test x$gcc_no_link = xyes; then
16348   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16349 fi
16350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16351 /* end confdefs.h.  */
16352
16353 int
16354 main ()
16355 {
16356
16357   ;
16358   return 0;
16359 }
16360 _ACEOF
16361 if ac_fn_cxx_try_link "$LINENO"; then :
16362   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16363   lt_cv_shlibpath_overrides_runpath=yes
16364 fi
16365 fi
16366 rm -f core conftest.err conftest.$ac_objext \
16367     conftest$ac_exeext conftest.$ac_ext
16368     LDFLAGS=$save_LDFLAGS
16369     libdir=$save_libdir
16370
16371 fi
16372
16373   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16374
16375   # This implies no fast_install, which is unacceptable.
16376   # Some rework will be needed to allow for fast_install
16377   # before this can be enabled.
16378   hardcode_into_libs=yes
16379
16380   # Append ld.so.conf contents to the search path
16381   if test -f /etc/ld.so.conf; then
16382     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' ' '`
16383     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16384   fi
16385
16386   # We used to test for /lib/ld.so.1 and disable shared libraries on
16387   # powerpc, because MkLinux only supported shared libraries with the
16388   # GNU dynamic linker.  Since this was broken with cross compilers,
16389   # most powerpc-linux boxes support dynamic linking these days and
16390   # people can always --disable-shared, the test was removed, and we
16391   # assume the GNU/Linux dynamic linker is in use.
16392   dynamic_linker='GNU/Linux ld.so'
16393   ;;
16394
16395 netbsd*)
16396   version_type=sunos
16397   need_lib_prefix=no
16398   need_version=no
16399   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16400     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16401     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16402     dynamic_linker='NetBSD (a.out) ld.so'
16403   else
16404     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16405     soname_spec='${libname}${release}${shared_ext}$major'
16406     dynamic_linker='NetBSD ld.elf_so'
16407   fi
16408   shlibpath_var=LD_LIBRARY_PATH
16409   shlibpath_overrides_runpath=yes
16410   hardcode_into_libs=yes
16411   ;;
16412
16413 newsos6)
16414   version_type=linux
16415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16416   shlibpath_var=LD_LIBRARY_PATH
16417   shlibpath_overrides_runpath=yes
16418   ;;
16419
16420 *nto* | *qnx*)
16421   version_type=qnx
16422   need_lib_prefix=no
16423   need_version=no
16424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16425   soname_spec='${libname}${release}${shared_ext}$major'
16426   shlibpath_var=LD_LIBRARY_PATH
16427   shlibpath_overrides_runpath=no
16428   hardcode_into_libs=yes
16429   dynamic_linker='ldqnx.so'
16430   ;;
16431
16432 openbsd*)
16433   version_type=sunos
16434   sys_lib_dlsearch_path_spec="/usr/lib"
16435   need_lib_prefix=no
16436   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16437   case $host_os in
16438     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16439     *)                          need_version=no  ;;
16440   esac
16441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16442   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16443   shlibpath_var=LD_LIBRARY_PATH
16444   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16445     case $host_os in
16446       openbsd2.[89] | openbsd2.[89].*)
16447         shlibpath_overrides_runpath=no
16448         ;;
16449       *)
16450         shlibpath_overrides_runpath=yes
16451         ;;
16452       esac
16453   else
16454     shlibpath_overrides_runpath=yes
16455   fi
16456   ;;
16457
16458 os2*)
16459   libname_spec='$name'
16460   shrext_cmds=".dll"
16461   need_lib_prefix=no
16462   library_names_spec='$libname${shared_ext} $libname.a'
16463   dynamic_linker='OS/2 ld.exe'
16464   shlibpath_var=LIBPATH
16465   ;;
16466
16467 osf3* | osf4* | osf5*)
16468   version_type=osf
16469   need_lib_prefix=no
16470   need_version=no
16471   soname_spec='${libname}${release}${shared_ext}$major'
16472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16473   shlibpath_var=LD_LIBRARY_PATH
16474   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16475   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16476   ;;
16477
16478 rdos*)
16479   dynamic_linker=no
16480   ;;
16481
16482 solaris*)
16483   version_type=linux
16484   need_lib_prefix=no
16485   need_version=no
16486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16487   soname_spec='${libname}${release}${shared_ext}$major'
16488   shlibpath_var=LD_LIBRARY_PATH
16489   shlibpath_overrides_runpath=yes
16490   hardcode_into_libs=yes
16491   # ldd complains unless libraries are executable
16492   postinstall_cmds='chmod +x $lib'
16493   ;;
16494
16495 sunos4*)
16496   version_type=sunos
16497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16498   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16499   shlibpath_var=LD_LIBRARY_PATH
16500   shlibpath_overrides_runpath=yes
16501   if test "$with_gnu_ld" = yes; then
16502     need_lib_prefix=no
16503   fi
16504   need_version=yes
16505   ;;
16506
16507 sysv4 | sysv4.3*)
16508   version_type=linux
16509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16510   soname_spec='${libname}${release}${shared_ext}$major'
16511   shlibpath_var=LD_LIBRARY_PATH
16512   case $host_vendor in
16513     sni)
16514       shlibpath_overrides_runpath=no
16515       need_lib_prefix=no
16516       runpath_var=LD_RUN_PATH
16517       ;;
16518     siemens)
16519       need_lib_prefix=no
16520       ;;
16521     motorola)
16522       need_lib_prefix=no
16523       need_version=no
16524       shlibpath_overrides_runpath=no
16525       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16526       ;;
16527   esac
16528   ;;
16529
16530 sysv4*MP*)
16531   if test -d /usr/nec ;then
16532     version_type=linux
16533     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16534     soname_spec='$libname${shared_ext}.$major'
16535     shlibpath_var=LD_LIBRARY_PATH
16536   fi
16537   ;;
16538
16539 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16540   version_type=freebsd-elf
16541   need_lib_prefix=no
16542   need_version=no
16543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16544   soname_spec='${libname}${release}${shared_ext}$major'
16545   shlibpath_var=LD_LIBRARY_PATH
16546   shlibpath_overrides_runpath=yes
16547   hardcode_into_libs=yes
16548   if test "$with_gnu_ld" = yes; then
16549     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16550   else
16551     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16552     case $host_os in
16553       sco3.2v5*)
16554         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16555         ;;
16556     esac
16557   fi
16558   sys_lib_dlsearch_path_spec='/usr/lib'
16559   ;;
16560
16561 tpf*)
16562   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16563   version_type=linux
16564   need_lib_prefix=no
16565   need_version=no
16566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16567   shlibpath_var=LD_LIBRARY_PATH
16568   shlibpath_overrides_runpath=no
16569   hardcode_into_libs=yes
16570   ;;
16571
16572 uts4*)
16573   version_type=linux
16574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16575   soname_spec='${libname}${release}${shared_ext}$major'
16576   shlibpath_var=LD_LIBRARY_PATH
16577   ;;
16578
16579 *)
16580   dynamic_linker=no
16581   ;;
16582 esac
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16584 $as_echo "$dynamic_linker" >&6; }
16585 test "$dynamic_linker" = no && can_build_shared=no
16586
16587 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16588 if test "$GCC" = yes; then
16589   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16590 fi
16591
16592 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16593   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16594 fi
16595 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16596   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16597 fi
16598
16599
16600
16601
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16637 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16638 hardcode_action_CXX=
16639 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16640    test -n "$runpath_var_CXX" ||
16641    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16642
16643   # We can hardcode non-existent directories.
16644   if test "$hardcode_direct_CXX" != no &&
16645      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16646      # have to relink, otherwise we might link with an installed library
16647      # when we should be linking with a yet-to-be-installed one
16648      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16649      test "$hardcode_minus_L_CXX" != no; then
16650     # Linking always hardcodes the temporary library directory.
16651     hardcode_action_CXX=relink
16652   else
16653     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16654     hardcode_action_CXX=immediate
16655   fi
16656 else
16657   # We cannot hardcode anything, or else we can only hardcode existing
16658   # directories.
16659   hardcode_action_CXX=unsupported
16660 fi
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16662 $as_echo "$hardcode_action_CXX" >&6; }
16663
16664 if test "$hardcode_action_CXX" = relink ||
16665    test "$inherit_rpath_CXX" = yes; then
16666   # Fast installation is not supported
16667   enable_fast_install=no
16668 elif test "$shlibpath_overrides_runpath" = yes ||
16669      test "$enable_shared" = no; then
16670   # Fast installation is not necessary
16671   enable_fast_install=needless
16672 fi
16673
16674
16675
16676
16677
16678
16679
16680   fi # test -n "$compiler"
16681
16682   CC=$lt_save_CC
16683   LDCXX=$LD
16684   LD=$lt_save_LD
16685   GCC=$lt_save_GCC
16686   with_gnu_ld=$lt_save_with_gnu_ld
16687   lt_cv_path_LDCXX=$lt_cv_path_LD
16688   lt_cv_path_LD=$lt_save_path_LD
16689   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16690   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16691 fi # test "$_lt_caught_CXX_error" != yes
16692
16693 ac_ext=c
16694 ac_cpp='$CPP $CPPFLAGS'
16695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711         ac_config_commands="$ac_config_commands libtool"
16712
16713
16714
16715
16716 # Only expand once:
16717
16718
16719
16720 if test -n "$ac_tool_prefix"; then
16721   for ac_prog in gcj
16722   do
16723     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16724 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16726 $as_echo_n "checking for $ac_word... " >&6; }
16727 if test "${ac_cv_prog_GCJ+set}" = set; then :
16728   $as_echo_n "(cached) " >&6
16729 else
16730   if test -n "$GCJ"; then
16731   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16732 else
16733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16734 for as_dir in $PATH
16735 do
16736   IFS=$as_save_IFS
16737   test -z "$as_dir" && as_dir=.
16738     for ac_exec_ext in '' $ac_executable_extensions; do
16739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16740     ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
16741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16742     break 2
16743   fi
16744 done
16745   done
16746 IFS=$as_save_IFS
16747
16748 fi
16749 fi
16750 GCJ=$ac_cv_prog_GCJ
16751 if test -n "$GCJ"; then
16752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16753 $as_echo "$GCJ" >&6; }
16754 else
16755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16756 $as_echo "no" >&6; }
16757 fi
16758
16759
16760     test -n "$GCJ" && break
16761   done
16762 fi
16763 if test -z "$GCJ"; then
16764   ac_ct_GCJ=$GCJ
16765   for ac_prog in gcj
16766 do
16767   # Extract the first word of "$ac_prog", so it can be a program name with args.
16768 set dummy $ac_prog; ac_word=$2
16769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16770 $as_echo_n "checking for $ac_word... " >&6; }
16771 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
16772   $as_echo_n "(cached) " >&6
16773 else
16774   if test -n "$ac_ct_GCJ"; then
16775   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
16776 else
16777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16778 for as_dir in $PATH
16779 do
16780   IFS=$as_save_IFS
16781   test -z "$as_dir" && as_dir=.
16782     for ac_exec_ext in '' $ac_executable_extensions; do
16783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16784     ac_cv_prog_ac_ct_GCJ="$ac_prog"
16785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16786     break 2
16787   fi
16788 done
16789   done
16790 IFS=$as_save_IFS
16791
16792 fi
16793 fi
16794 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
16795 if test -n "$ac_ct_GCJ"; then
16796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
16797 $as_echo "$ac_ct_GCJ" >&6; }
16798 else
16799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16800 $as_echo "no" >&6; }
16801 fi
16802
16803
16804   test -n "$ac_ct_GCJ" && break
16805 done
16806
16807   if test "x$ac_ct_GCJ" = x; then
16808     GCJ="gcj"
16809   else
16810     case $cross_compiling:$ac_tool_warned in
16811 yes:)
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16814 ac_tool_warned=yes ;;
16815 esac
16816     GCJ=$ac_ct_GCJ
16817   fi
16818 fi
16819
16820 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
16821 if test "x${GCJFLAGS-unset}" = xunset; then
16822    GCJFLAGS="-g -O2"
16823 fi
16824
16825
16826 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
16827
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16829 $as_echo_n "checking dependency style of $depcc... " >&6; }
16830 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16831   $as_echo_n "(cached) " >&6
16832 else
16833   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16834   # We make a subdir and do the tests there.  Otherwise we can end up
16835   # making bogus files that we don't know about and never remove.  For
16836   # instance it was reported that on HP-UX the gcc test will end up
16837   # making a dummy file named `D' -- because `-MD' means `put the output
16838   # in D'.
16839   mkdir conftest.dir
16840   # Copy depcomp to subdir because otherwise we won't find it if we're
16841   # using a relative directory.
16842   cp "$am_depcomp" conftest.dir
16843   cd conftest.dir
16844   # We will build objects and dependencies in a subdirectory because
16845   # it helps to detect inapplicable dependency modes.  For instance
16846   # both Tru64's cc and ICC support -MD to output dependencies as a
16847   # side effect of compilation, but ICC will put the dependencies in
16848   # the current directory while Tru64 will put them in the object
16849   # directory.
16850   mkdir sub
16851
16852   am_cv_GCJ_dependencies_compiler_type=none
16853   if test "$am_compiler_list" = ""; then
16854      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16855   fi
16856   am__universal=false
16857
16858
16859   for depmode in $am_compiler_list; do
16860     # Setup a source with many dependencies, because some compilers
16861     # like to wrap large dependency lists on column 80 (with \), and
16862     # we should not choose a depcomp mode which is confused by this.
16863     #
16864     # We need to recreate these files for each test, as the compiler may
16865     # overwrite some of them when testing with obscure command lines.
16866     # This happens at least with the AIX C compiler.
16867     : > sub/conftest.c
16868     for i in 1 2 3 4 5 6; do
16869       echo '#include "conftst'$i'.h"' >> sub/conftest.c
16870       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16871       # Solaris 8's {/usr,}/bin/sh.
16872       touch sub/conftst$i.h
16873     done
16874     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16875
16876     # We check with `-c' and `-o' for the sake of the "dashmstdout"
16877     # mode.  It turns out that the SunPro C++ compiler does not properly
16878     # handle `-M -o', and we need to detect this.  Also, some Intel
16879     # versions had trouble with output in subdirs
16880     am__obj=sub/conftest.${OBJEXT-o}
16881     am__minus_obj="-o $am__obj"
16882     case $depmode in
16883     gcc)
16884       # This depmode causes a compiler race in universal mode.
16885       test "$am__universal" = false || continue
16886       ;;
16887     nosideeffect)
16888       # after this tag, mechanisms are not by side-effect, so they'll
16889       # only be used when explicitly requested
16890       if test "x$enable_dependency_tracking" = xyes; then
16891         continue
16892       else
16893         break
16894       fi
16895       ;;
16896     msvisualcpp | msvcmsys)
16897       # This compiler won't grok `-c -o', but also, the minuso test has
16898       # not run yet.  These depmodes are late enough in the game, and
16899       # so weak that their functioning should not be impacted.
16900       am__obj=conftest.${OBJEXT-o}
16901       am__minus_obj=
16902       ;;
16903     none) break ;;
16904     esac
16905     if depmode=$depmode \
16906        source=sub/conftest.c object=$am__obj \
16907        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16908        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16909          >/dev/null 2>conftest.err &&
16910        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16911        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16912        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16913        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16914       # icc doesn't choke on unknown options, it will just issue warnings
16915       # or remarks (even with -Werror).  So we grep stderr for any message
16916       # that says an option was ignored or not supported.
16917       # When given -MP, icc 7.0 and 7.1 complain thusly:
16918       #   icc: Command line warning: ignoring option '-M'; no argument required
16919       # The diagnosis changed in icc 8.0:
16920       #   icc: Command line remark: option '-MP' not supported
16921       if (grep 'ignoring option' conftest.err ||
16922           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16923         am_cv_GCJ_dependencies_compiler_type=$depmode
16924         break
16925       fi
16926     fi
16927   done
16928
16929   cd ..
16930   rm -rf conftest.dir
16931 else
16932   am_cv_GCJ_dependencies_compiler_type=none
16933 fi
16934
16935 fi
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16937 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
16938 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16939
16940  if
16941   test "x$enable_dependency_tracking" != xno \
16942   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16943   am__fastdepGCJ_TRUE=
16944   am__fastdepGCJ_FALSE='#'
16945 else
16946   am__fastdepGCJ_TRUE='#'
16947   am__fastdepGCJ_FALSE=
16948 fi
16949
16950
16951
16952 if test -n "$ac_tool_prefix"; then
16953   for ac_prog in gcj
16954   do
16955     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16956 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16958 $as_echo_n "checking for $ac_word... " >&6; }
16959 if test "${ac_cv_prog_GCJ+set}" = set; then :
16960   $as_echo_n "(cached) " >&6
16961 else
16962   if test -n "$GCJ"; then
16963   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16964 else
16965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16966 for as_dir in $PATH
16967 do
16968   IFS=$as_save_IFS
16969   test -z "$as_dir" && as_dir=.
16970     for ac_exec_ext in '' $ac_executable_extensions; do
16971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16972     ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
16973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16974     break 2
16975   fi
16976 done
16977   done
16978 IFS=$as_save_IFS
16979
16980 fi
16981 fi
16982 GCJ=$ac_cv_prog_GCJ
16983 if test -n "$GCJ"; then
16984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16985 $as_echo "$GCJ" >&6; }
16986 else
16987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16988 $as_echo "no" >&6; }
16989 fi
16990
16991
16992     test -n "$GCJ" && break
16993   done
16994 fi
16995 if test -z "$GCJ"; then
16996   ac_ct_GCJ=$GCJ
16997   for ac_prog in gcj
16998 do
16999   # Extract the first word of "$ac_prog", so it can be a program name with args.
17000 set dummy $ac_prog; ac_word=$2
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17002 $as_echo_n "checking for $ac_word... " >&6; }
17003 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
17004   $as_echo_n "(cached) " >&6
17005 else
17006   if test -n "$ac_ct_GCJ"; then
17007   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
17008 else
17009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17010 for as_dir in $PATH
17011 do
17012   IFS=$as_save_IFS
17013   test -z "$as_dir" && as_dir=.
17014     for ac_exec_ext in '' $ac_executable_extensions; do
17015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17016     ac_cv_prog_ac_ct_GCJ="$ac_prog"
17017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17018     break 2
17019   fi
17020 done
17021   done
17022 IFS=$as_save_IFS
17023
17024 fi
17025 fi
17026 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
17027 if test -n "$ac_ct_GCJ"; then
17028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
17029 $as_echo "$ac_ct_GCJ" >&6; }
17030 else
17031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17032 $as_echo "no" >&6; }
17033 fi
17034
17035
17036   test -n "$ac_ct_GCJ" && break
17037 done
17038
17039   if test "x$ac_ct_GCJ" = x; then
17040     GCJ="gcj"
17041   else
17042     case $cross_compiling:$ac_tool_warned in
17043 yes:)
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17046 ac_tool_warned=yes ;;
17047 esac
17048     GCJ=$ac_ct_GCJ
17049   fi
17050 fi
17051
17052 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
17053 if test "x${GCJFLAGS-unset}" = xunset; then
17054    GCJFLAGS="-g -O2"
17055 fi
17056
17057
17058 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
17059
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17061 $as_echo_n "checking dependency style of $depcc... " >&6; }
17062 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
17063   $as_echo_n "(cached) " >&6
17064 else
17065   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17066   # We make a subdir and do the tests there.  Otherwise we can end up
17067   # making bogus files that we don't know about and never remove.  For
17068   # instance it was reported that on HP-UX the gcc test will end up
17069   # making a dummy file named `D' -- because `-MD' means `put the output
17070   # in D'.
17071   mkdir conftest.dir
17072   # Copy depcomp to subdir because otherwise we won't find it if we're
17073   # using a relative directory.
17074   cp "$am_depcomp" conftest.dir
17075   cd conftest.dir
17076   # We will build objects and dependencies in a subdirectory because
17077   # it helps to detect inapplicable dependency modes.  For instance
17078   # both Tru64's cc and ICC support -MD to output dependencies as a
17079   # side effect of compilation, but ICC will put the dependencies in
17080   # the current directory while Tru64 will put them in the object
17081   # directory.
17082   mkdir sub
17083
17084   am_cv_GCJ_dependencies_compiler_type=none
17085   if test "$am_compiler_list" = ""; then
17086      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17087   fi
17088   am__universal=false
17089
17090
17091   for depmode in $am_compiler_list; do
17092     # Setup a source with many dependencies, because some compilers
17093     # like to wrap large dependency lists on column 80 (with \), and
17094     # we should not choose a depcomp mode which is confused by this.
17095     #
17096     # We need to recreate these files for each test, as the compiler may
17097     # overwrite some of them when testing with obscure command lines.
17098     # This happens at least with the AIX C compiler.
17099     : > sub/conftest.c
17100     for i in 1 2 3 4 5 6; do
17101       echo '#include "conftst'$i'.h"' >> sub/conftest.c
17102       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17103       # Solaris 8's {/usr,}/bin/sh.
17104       touch sub/conftst$i.h
17105     done
17106     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17107
17108     # We check with `-c' and `-o' for the sake of the "dashmstdout"
17109     # mode.  It turns out that the SunPro C++ compiler does not properly
17110     # handle `-M -o', and we need to detect this.  Also, some Intel
17111     # versions had trouble with output in subdirs
17112     am__obj=sub/conftest.${OBJEXT-o}
17113     am__minus_obj="-o $am__obj"
17114     case $depmode in
17115     gcc)
17116       # This depmode causes a compiler race in universal mode.
17117       test "$am__universal" = false || continue
17118       ;;
17119     nosideeffect)
17120       # after this tag, mechanisms are not by side-effect, so they'll
17121       # only be used when explicitly requested
17122       if test "x$enable_dependency_tracking" = xyes; then
17123         continue
17124       else
17125         break
17126       fi
17127       ;;
17128     msvisualcpp | msvcmsys)
17129       # This compiler won't grok `-c -o', but also, the minuso test has
17130       # not run yet.  These depmodes are late enough in the game, and
17131       # so weak that their functioning should not be impacted.
17132       am__obj=conftest.${OBJEXT-o}
17133       am__minus_obj=
17134       ;;
17135     none) break ;;
17136     esac
17137     if depmode=$depmode \
17138        source=sub/conftest.c object=$am__obj \
17139        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17140        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17141          >/dev/null 2>conftest.err &&
17142        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17143        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17144        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17145        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17146       # icc doesn't choke on unknown options, it will just issue warnings
17147       # or remarks (even with -Werror).  So we grep stderr for any message
17148       # that says an option was ignored or not supported.
17149       # When given -MP, icc 7.0 and 7.1 complain thusly:
17150       #   icc: Command line warning: ignoring option '-M'; no argument required
17151       # The diagnosis changed in icc 8.0:
17152       #   icc: Command line remark: option '-MP' not supported
17153       if (grep 'ignoring option' conftest.err ||
17154           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17155         am_cv_GCJ_dependencies_compiler_type=$depmode
17156         break
17157       fi
17158     fi
17159   done
17160
17161   cd ..
17162   rm -rf conftest.dir
17163 else
17164   am_cv_GCJ_dependencies_compiler_type=none
17165 fi
17166
17167 fi
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
17169 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
17170 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
17171
17172  if
17173   test "x$enable_dependency_tracking" != xno \
17174   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
17175   am__fastdepGCJ_TRUE=
17176   am__fastdepGCJ_FALSE='#'
17177 else
17178   am__fastdepGCJ_TRUE='#'
17179   am__fastdepGCJ_FALSE=
17180 fi
17181
17182
17183
17184
17185
17186 # Source file extension for Java test sources.
17187 ac_ext=c
17188
17189 # Object file extension for compiled Java test sources.
17190 objext=o
17191 objext_GCJ=$objext
17192
17193 # Code to be used in simple compile tests
17194 lt_simple_compile_test_code="int some_variable = 0;"
17195
17196 # Code to be used in simple link tests
17197 lt_simple_link_test_code='int main(){return(0);}'
17198
17199 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17200
17201
17202
17203
17204
17205
17206 # If no C compiler was specified, use CC.
17207 LTCC=${LTCC-"$CC"}
17208
17209 # If no C compiler flags were specified, use CFLAGS.
17210 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17211
17212 # Allow CC to be a program name with arguments.
17213 compiler=$CC
17214
17215
17216 # save warnings/boilerplate of simple test code
17217 ac_outfile=conftest.$ac_objext
17218 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17219 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17220 _lt_compiler_boilerplate=`cat conftest.err`
17221 $RM conftest*
17222
17223 ac_outfile=conftest.$ac_objext
17224 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17225 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17226 _lt_linker_boilerplate=`cat conftest.err`
17227 $RM -r conftest*
17228
17229
17230 # Allow CC to be a program name with arguments.
17231 GCC=yes
17232 compiler=$CC
17233 compiler_GCJ=$CC
17234 for cc_temp in $compiler""; do
17235   case $cc_temp in
17236     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17237     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17238     \-*) ;;
17239     *) break;;
17240   esac
17241 done
17242 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17243
17244
17245 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17246 archive_cmds_need_lc_GCJ=no
17247
17248 old_archive_cmds_GCJ=$old_archive_cmds
17249
17250 ## CAVEAT EMPTOR:
17251 ## There is no encapsulation within the following macros, do not change
17252 ## the running order or otherwise move them around unless you know exactly
17253 ## what you are doing...
17254 if test -n "$compiler"; then
17255
17256 lt_prog_compiler_no_builtin_flag_GCJ=
17257
17258 if test "$GCC" = yes; then
17259   case $cc_basename in
17260   nvcc*)
17261     lt_prog_compiler_no_builtin_flag_GCJ=' -Xcompiler -fno-builtin' ;;
17262   *)
17263     lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' ;;
17264   esac
17265
17266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17267 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17268 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
17269   $as_echo_n "(cached) " >&6
17270 else
17271   lt_cv_prog_compiler_rtti_exceptions=no
17272    ac_outfile=conftest.$ac_objext
17273    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17274    lt_compiler_flag="-fno-rtti -fno-exceptions"
17275    # Insert the option either (1) after the last *FLAGS variable, or
17276    # (2) before a word containing "conftest.", or (3) at the end.
17277    # Note that $ac_compile itself does not contain backslashes and begins
17278    # with a dollar sign (not a hyphen), so the echo should work correctly.
17279    # The option is referenced via a variable to avoid confusing sed.
17280    lt_compile=`echo "$ac_compile" | $SED \
17281    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17282    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17283    -e 's:$: $lt_compiler_flag:'`
17284    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17285    (eval "$lt_compile" 2>conftest.err)
17286    ac_status=$?
17287    cat conftest.err >&5
17288    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289    if (exit $ac_status) && test -s "$ac_outfile"; then
17290      # The compiler can only warn and ignore the option if not recognized
17291      # So say no if there are warnings other than the usual output.
17292      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17293      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17294      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17295        lt_cv_prog_compiler_rtti_exceptions=yes
17296      fi
17297    fi
17298    $RM conftest*
17299
17300 fi
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17302 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17303
17304 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17305     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17306 else
17307     :
17308 fi
17309
17310 fi
17311
17312
17313
17314   lt_prog_compiler_wl_GCJ=
17315 lt_prog_compiler_pic_GCJ=
17316 lt_prog_compiler_static_GCJ=
17317
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17319 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17320
17321   if test "$GCC" = yes; then
17322     lt_prog_compiler_wl_GCJ='-Wl,'
17323     lt_prog_compiler_static_GCJ='-static'
17324
17325     case $host_os in
17326       aix*)
17327       # All AIX code is PIC.
17328       if test "$host_cpu" = ia64; then
17329         # AIX 5 now supports IA64 processor
17330         lt_prog_compiler_static_GCJ='-Bstatic'
17331       fi
17332       ;;
17333
17334     amigaos*)
17335       case $host_cpu in
17336       powerpc)
17337             # see comment about AmigaOS4 .so support
17338             lt_prog_compiler_pic_GCJ='-fPIC'
17339         ;;
17340       m68k)
17341             # FIXME: we need at least 68020 code to build shared libraries, but
17342             # adding the `-m68020' flag to GCC prevents building anything better,
17343             # like `-m68040'.
17344             lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17345         ;;
17346       esac
17347       ;;
17348
17349     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17350       # PIC is the default for these OSes.
17351       ;;
17352
17353     mingw* | cygwin* | pw32* | os2* | cegcc*)
17354       # This hack is so that the source file can tell whether it is being
17355       # built for inclusion in a dll (and should export symbols for example).
17356       # Although the cygwin gcc ignores -fPIC, still need this for old-style
17357       # (--disable-auto-import) libraries
17358
17359       ;;
17360
17361     darwin* | rhapsody*)
17362       # PIC is the default on this platform
17363       # Common symbols not allowed in MH_DYLIB files
17364       lt_prog_compiler_pic_GCJ='-fno-common'
17365       ;;
17366
17367     haiku*)
17368       # PIC is the default for Haiku.
17369       # The "-static" flag exists, but is broken.
17370       lt_prog_compiler_static_GCJ=
17371       ;;
17372
17373     hpux*)
17374       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17375       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
17376       # sets the default TLS model and affects inlining.
17377       case $host_cpu in
17378       hppa*64*)
17379         # +Z the default
17380         ;;
17381       *)
17382         lt_prog_compiler_pic_GCJ='-fPIC'
17383         ;;
17384       esac
17385       ;;
17386
17387     interix[3-9]*)
17388       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17389       # Instead, we relocate shared libraries at runtime.
17390       ;;
17391
17392     msdosdjgpp*)
17393       # Just because we use GCC doesn't mean we suddenly get shared libraries
17394       # on systems that don't support them.
17395       lt_prog_compiler_can_build_shared_GCJ=no
17396       enable_shared=no
17397       ;;
17398
17399     *nto* | *qnx*)
17400       # QNX uses GNU C++, but need to define -shared option too, otherwise
17401       # it will coredump.
17402       lt_prog_compiler_pic_GCJ='-fPIC -shared'
17403       ;;
17404
17405     sysv4*MP*)
17406       if test -d /usr/nec; then
17407         lt_prog_compiler_pic_GCJ=-Kconform_pic
17408       fi
17409       ;;
17410
17411     *)
17412       lt_prog_compiler_pic_GCJ='-fPIC'
17413       ;;
17414     esac
17415
17416     case $cc_basename in
17417     nvcc*) # Cuda Compiler Driver 2.2
17418       lt_prog_compiler_wl_GCJ='-Xlinker '
17419       lt_prog_compiler_pic_GCJ='-Xcompiler -fPIC'
17420       ;;
17421     esac
17422   else
17423     # PORTME Check for flag to pass linker flags through the system compiler.
17424     case $host_os in
17425     aix*)
17426       lt_prog_compiler_wl_GCJ='-Wl,'
17427       if test "$host_cpu" = ia64; then
17428         # AIX 5 now supports IA64 processor
17429         lt_prog_compiler_static_GCJ='-Bstatic'
17430       else
17431         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17432       fi
17433       ;;
17434
17435     mingw* | cygwin* | pw32* | os2* | cegcc*)
17436       # This hack is so that the source file can tell whether it is being
17437       # built for inclusion in a dll (and should export symbols for example).
17438
17439       ;;
17440
17441     hpux9* | hpux10* | hpux11*)
17442       lt_prog_compiler_wl_GCJ='-Wl,'
17443       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17444       # not for PA HP-UX.
17445       case $host_cpu in
17446       hppa*64*|ia64*)
17447         # +Z the default
17448         ;;
17449       *)
17450         lt_prog_compiler_pic_GCJ='+Z'
17451         ;;
17452       esac
17453       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17454       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17455       ;;
17456
17457     irix5* | irix6* | nonstopux*)
17458       lt_prog_compiler_wl_GCJ='-Wl,'
17459       # PIC (with -KPIC) is the default.
17460       lt_prog_compiler_static_GCJ='-non_shared'
17461       ;;
17462
17463     linux* | k*bsd*-gnu | kopensolaris*-gnu)
17464       case $cc_basename in
17465       # old Intel for x86_64 which still supported -KPIC.
17466       ecc*)
17467         lt_prog_compiler_wl_GCJ='-Wl,'
17468         lt_prog_compiler_pic_GCJ='-KPIC'
17469         lt_prog_compiler_static_GCJ='-static'
17470         ;;
17471       # icc used to be incompatible with GCC.
17472       # ICC 10 doesn't accept -KPIC any more.
17473       icc* | ifort*)
17474         lt_prog_compiler_wl_GCJ='-Wl,'
17475         lt_prog_compiler_pic_GCJ='-fPIC'
17476         lt_prog_compiler_static_GCJ='-static'
17477         ;;
17478       # Lahey Fortran 8.1.
17479       lf95*)
17480         lt_prog_compiler_wl_GCJ='-Wl,'
17481         lt_prog_compiler_pic_GCJ='--shared'
17482         lt_prog_compiler_static_GCJ='--static'
17483         ;;
17484       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17485         # Portland Group compilers (*not* the Pentium gcc compiler,
17486         # which looks to be a dead project)
17487         lt_prog_compiler_wl_GCJ='-Wl,'
17488         lt_prog_compiler_pic_GCJ='-fpic'
17489         lt_prog_compiler_static_GCJ='-Bstatic'
17490         ;;
17491       ccc*)
17492         lt_prog_compiler_wl_GCJ='-Wl,'
17493         # All Alpha code is PIC.
17494         lt_prog_compiler_static_GCJ='-non_shared'
17495         ;;
17496       xl* | bgxl* | bgf* | mpixl*)
17497         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17498         lt_prog_compiler_wl_GCJ='-Wl,'
17499         lt_prog_compiler_pic_GCJ='-qpic'
17500         lt_prog_compiler_static_GCJ='-qstaticlink'
17501         ;;
17502       *)
17503         case `$CC -V 2>&1 | sed 5q` in
17504         *Sun\ F* | *Sun*Fortran*)
17505           # Sun Fortran 8.3 passes all unrecognized flags to the linker
17506           lt_prog_compiler_pic_GCJ='-KPIC'
17507           lt_prog_compiler_static_GCJ='-Bstatic'
17508           lt_prog_compiler_wl_GCJ=''
17509           ;;
17510         *Sun\ C*)
17511           # Sun C 5.9
17512           lt_prog_compiler_pic_GCJ='-KPIC'
17513           lt_prog_compiler_static_GCJ='-Bstatic'
17514           lt_prog_compiler_wl_GCJ='-Wl,'
17515           ;;
17516         esac
17517         ;;
17518       esac
17519       ;;
17520
17521     newsos6)
17522       lt_prog_compiler_pic_GCJ='-KPIC'
17523       lt_prog_compiler_static_GCJ='-Bstatic'
17524       ;;
17525
17526     *nto* | *qnx*)
17527       # QNX uses GNU C++, but need to define -shared option too, otherwise
17528       # it will coredump.
17529       lt_prog_compiler_pic_GCJ='-fPIC -shared'
17530       ;;
17531
17532     osf3* | osf4* | osf5*)
17533       lt_prog_compiler_wl_GCJ='-Wl,'
17534       # All OSF/1 code is PIC.
17535       lt_prog_compiler_static_GCJ='-non_shared'
17536       ;;
17537
17538     rdos*)
17539       lt_prog_compiler_static_GCJ='-non_shared'
17540       ;;
17541
17542     solaris*)
17543       lt_prog_compiler_pic_GCJ='-KPIC'
17544       lt_prog_compiler_static_GCJ='-Bstatic'
17545       case $cc_basename in
17546       f77* | f90* | f95*)
17547         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17548       *)
17549         lt_prog_compiler_wl_GCJ='-Wl,';;
17550       esac
17551       ;;
17552
17553     sunos4*)
17554       lt_prog_compiler_wl_GCJ='-Qoption ld '
17555       lt_prog_compiler_pic_GCJ='-PIC'
17556       lt_prog_compiler_static_GCJ='-Bstatic'
17557       ;;
17558
17559     sysv4 | sysv4.2uw2* | sysv4.3*)
17560       lt_prog_compiler_wl_GCJ='-Wl,'
17561       lt_prog_compiler_pic_GCJ='-KPIC'
17562       lt_prog_compiler_static_GCJ='-Bstatic'
17563       ;;
17564
17565     sysv4*MP*)
17566       if test -d /usr/nec ;then
17567         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17568         lt_prog_compiler_static_GCJ='-Bstatic'
17569       fi
17570       ;;
17571
17572     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17573       lt_prog_compiler_wl_GCJ='-Wl,'
17574       lt_prog_compiler_pic_GCJ='-KPIC'
17575       lt_prog_compiler_static_GCJ='-Bstatic'
17576       ;;
17577
17578     unicos*)
17579       lt_prog_compiler_wl_GCJ='-Wl,'
17580       lt_prog_compiler_can_build_shared_GCJ=no
17581       ;;
17582
17583     uts4*)
17584       lt_prog_compiler_pic_GCJ='-pic'
17585       lt_prog_compiler_static_GCJ='-Bstatic'
17586       ;;
17587
17588     *)
17589       lt_prog_compiler_can_build_shared_GCJ=no
17590       ;;
17591     esac
17592   fi
17593
17594 case $host_os in
17595   # For platforms which do not support PIC, -DPIC is meaningless:
17596   *djgpp*)
17597     lt_prog_compiler_pic_GCJ=
17598     ;;
17599   *)
17600     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17601     ;;
17602 esac
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
17604 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17605
17606
17607
17608 #
17609 # Check to make sure the PIC flag actually works.
17610 #
17611 if test -n "$lt_prog_compiler_pic_GCJ"; then
17612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17613 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17614 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
17615   $as_echo_n "(cached) " >&6
17616 else
17617   lt_cv_prog_compiler_pic_works_GCJ=no
17618    ac_outfile=conftest.$ac_objext
17619    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17620    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17621    # Insert the option either (1) after the last *FLAGS variable, or
17622    # (2) before a word containing "conftest.", or (3) at the end.
17623    # Note that $ac_compile itself does not contain backslashes and begins
17624    # with a dollar sign (not a hyphen), so the echo should work correctly.
17625    # The option is referenced via a variable to avoid confusing sed.
17626    lt_compile=`echo "$ac_compile" | $SED \
17627    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17628    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17629    -e 's:$: $lt_compiler_flag:'`
17630    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17631    (eval "$lt_compile" 2>conftest.err)
17632    ac_status=$?
17633    cat conftest.err >&5
17634    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635    if (exit $ac_status) && test -s "$ac_outfile"; then
17636      # The compiler can only warn and ignore the option if not recognized
17637      # So say no if there are warnings other than the usual output.
17638      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17639      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17640      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17641        lt_cv_prog_compiler_pic_works_GCJ=yes
17642      fi
17643    fi
17644    $RM conftest*
17645
17646 fi
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17648 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17649
17650 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17651     case $lt_prog_compiler_pic_GCJ in
17652      "" | " "*) ;;
17653      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17654      esac
17655 else
17656     lt_prog_compiler_pic_GCJ=
17657      lt_prog_compiler_can_build_shared_GCJ=no
17658 fi
17659
17660 fi
17661
17662
17663
17664 #
17665 # Check to make sure the static flag actually works.
17666 #
17667 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17669 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17670 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
17671   $as_echo_n "(cached) " >&6
17672 else
17673   lt_cv_prog_compiler_static_works_GCJ=no
17674    save_LDFLAGS="$LDFLAGS"
17675    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17676    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17677    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17678      # The linker can only warn and ignore the option if not recognized
17679      # So say no if there are warnings
17680      if test -s conftest.err; then
17681        # Append any errors to the config.log.
17682        cat conftest.err 1>&5
17683        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17684        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17685        if diff conftest.exp conftest.er2 >/dev/null; then
17686          lt_cv_prog_compiler_static_works_GCJ=yes
17687        fi
17688      else
17689        lt_cv_prog_compiler_static_works_GCJ=yes
17690      fi
17691    fi
17692    $RM -r conftest*
17693    LDFLAGS="$save_LDFLAGS"
17694
17695 fi
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17697 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17698
17699 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17700     :
17701 else
17702     lt_prog_compiler_static_GCJ=
17703 fi
17704
17705
17706
17707
17708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17709 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17710 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17711   $as_echo_n "(cached) " >&6
17712 else
17713   lt_cv_prog_compiler_c_o_GCJ=no
17714    $RM -r conftest 2>/dev/null
17715    mkdir conftest
17716    cd conftest
17717    mkdir out
17718    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17719
17720    lt_compiler_flag="-o out/conftest2.$ac_objext"
17721    # Insert the option either (1) after the last *FLAGS variable, or
17722    # (2) before a word containing "conftest.", or (3) at the end.
17723    # Note that $ac_compile itself does not contain backslashes and begins
17724    # with a dollar sign (not a hyphen), so the echo should work correctly.
17725    lt_compile=`echo "$ac_compile" | $SED \
17726    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17727    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17728    -e 's:$: $lt_compiler_flag:'`
17729    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17730    (eval "$lt_compile" 2>out/conftest.err)
17731    ac_status=$?
17732    cat out/conftest.err >&5
17733    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17735    then
17736      # The compiler can only warn and ignore the option if not recognized
17737      # So say no if there are warnings
17738      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17739      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17740      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17741        lt_cv_prog_compiler_c_o_GCJ=yes
17742      fi
17743    fi
17744    chmod u+w . 2>&5
17745    $RM conftest*
17746    # SGI C++ compiler will create directory out/ii_files/ for
17747    # template instantiation
17748    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17749    $RM out/* && rmdir out
17750    cd ..
17751    $RM -r conftest
17752    $RM conftest*
17753
17754 fi
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17756 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17757
17758
17759
17760   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17761 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17762 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17763   $as_echo_n "(cached) " >&6
17764 else
17765   lt_cv_prog_compiler_c_o_GCJ=no
17766    $RM -r conftest 2>/dev/null
17767    mkdir conftest
17768    cd conftest
17769    mkdir out
17770    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17771
17772    lt_compiler_flag="-o out/conftest2.$ac_objext"
17773    # Insert the option either (1) after the last *FLAGS variable, or
17774    # (2) before a word containing "conftest.", or (3) at the end.
17775    # Note that $ac_compile itself does not contain backslashes and begins
17776    # with a dollar sign (not a hyphen), so the echo should work correctly.
17777    lt_compile=`echo "$ac_compile" | $SED \
17778    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17779    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17780    -e 's:$: $lt_compiler_flag:'`
17781    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17782    (eval "$lt_compile" 2>out/conftest.err)
17783    ac_status=$?
17784    cat out/conftest.err >&5
17785    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17787    then
17788      # The compiler can only warn and ignore the option if not recognized
17789      # So say no if there are warnings
17790      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17791      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17792      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17793        lt_cv_prog_compiler_c_o_GCJ=yes
17794      fi
17795    fi
17796    chmod u+w . 2>&5
17797    $RM conftest*
17798    # SGI C++ compiler will create directory out/ii_files/ for
17799    # template instantiation
17800    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17801    $RM out/* && rmdir out
17802    cd ..
17803    $RM -r conftest
17804    $RM conftest*
17805
17806 fi
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17808 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17809
17810
17811
17812
17813 hard_links="nottested"
17814 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17815   # do not overwrite the value of need_locks provided by the user
17816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17817 $as_echo_n "checking if we can lock with hard links... " >&6; }
17818   hard_links=yes
17819   $RM conftest*
17820   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17821   touch conftest.a
17822   ln conftest.a conftest.b 2>&5 || hard_links=no
17823   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17825 $as_echo "$hard_links" >&6; }
17826   if test "$hard_links" = no; then
17827     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17828 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17829     need_locks=warn
17830   fi
17831 else
17832   need_locks=no
17833 fi
17834
17835
17836
17837   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17838 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17839
17840   runpath_var=
17841   allow_undefined_flag_GCJ=
17842   always_export_symbols_GCJ=no
17843   archive_cmds_GCJ=
17844   archive_expsym_cmds_GCJ=
17845   compiler_needs_object_GCJ=no
17846   enable_shared_with_static_runtimes_GCJ=no
17847   export_dynamic_flag_spec_GCJ=
17848   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17849   hardcode_automatic_GCJ=no
17850   hardcode_direct_GCJ=no
17851   hardcode_direct_absolute_GCJ=no
17852   hardcode_libdir_flag_spec_GCJ=
17853   hardcode_libdir_flag_spec_ld_GCJ=
17854   hardcode_libdir_separator_GCJ=
17855   hardcode_minus_L_GCJ=no
17856   hardcode_shlibpath_var_GCJ=unsupported
17857   inherit_rpath_GCJ=no
17858   link_all_deplibs_GCJ=unknown
17859   module_cmds_GCJ=
17860   module_expsym_cmds_GCJ=
17861   old_archive_from_new_cmds_GCJ=
17862   old_archive_from_expsyms_cmds_GCJ=
17863   thread_safe_flag_spec_GCJ=
17864   whole_archive_flag_spec_GCJ=
17865   # include_expsyms should be a list of space-separated symbols to be *always*
17866   # included in the symbol list
17867   include_expsyms_GCJ=
17868   # exclude_expsyms can be an extended regexp of symbols to exclude
17869   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17870   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17871   # as well as any symbol that contains `d'.
17872   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17873   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17874   # platforms (ab)use it in PIC code, but their linkers get confused if
17875   # the symbol is explicitly referenced.  Since portable code cannot
17876   # rely on this symbol name, it's probably fine to never include it in
17877   # preloaded symbol tables.
17878   # Exclude shared library initialization/finalization symbols.
17879   extract_expsyms_cmds=
17880
17881   case $host_os in
17882   cygwin* | mingw* | pw32* | cegcc*)
17883     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17884     # When not using gcc, we currently assume that we are using
17885     # Microsoft Visual C++.
17886     if test "$GCC" != yes; then
17887       with_gnu_ld=no
17888     fi
17889     ;;
17890   interix*)
17891     # we just hope/assume this is gcc and not c89 (= MSVC++)
17892     with_gnu_ld=yes
17893     ;;
17894   openbsd*)
17895     with_gnu_ld=no
17896     ;;
17897   esac
17898
17899   ld_shlibs_GCJ=yes
17900
17901   # On some targets, GNU ld is compatible enough with the native linker
17902   # that we're better off using the native interface for both.
17903   lt_use_gnu_ld_interface=no
17904   if test "$with_gnu_ld" = yes; then
17905     case $host_os in
17906       aix*)
17907         # The AIX port of GNU ld has always aspired to compatibility
17908         # with the native linker.  However, as the warning in the GNU ld
17909         # block says, versions before 2.19.5* couldn't really create working
17910         # shared libraries, regardless of the interface used.
17911         case `$LD -v 2>&1` in
17912           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17913           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17914           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17915           *)
17916             lt_use_gnu_ld_interface=yes
17917             ;;
17918         esac
17919         ;;
17920       *)
17921         lt_use_gnu_ld_interface=yes
17922         ;;
17923     esac
17924   fi
17925
17926   if test "$lt_use_gnu_ld_interface" = yes; then
17927     # If archive_cmds runs LD, not CC, wlarc should be empty
17928     wlarc='${wl}'
17929
17930     # Set some defaults for GNU ld with shared library support. These
17931     # are reset later if shared libraries are not supported. Putting them
17932     # here allows them to be overridden if necessary.
17933     runpath_var=LD_RUN_PATH
17934     hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17935     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17936     # ancient GNU ld didn't support --whole-archive et. al.
17937     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17938       whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17939     else
17940       whole_archive_flag_spec_GCJ=
17941     fi
17942     supports_anon_versioning=no
17943     case `$LD -v 2>&1` in
17944       *GNU\ gold*) supports_anon_versioning=yes ;;
17945       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17946       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17947       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17948       *\ 2.11.*) ;; # other 2.11 versions
17949       *) supports_anon_versioning=yes ;;
17950     esac
17951
17952     # See if GNU ld supports shared libraries.
17953     case $host_os in
17954     aix[3-9]*)
17955       # On AIX/PPC, the GNU linker is very broken
17956       if test "$host_cpu" != ia64; then
17957         ld_shlibs_GCJ=no
17958         cat <<_LT_EOF 1>&2
17959
17960 *** Warning: the GNU linker, at least up to release 2.19, is reported
17961 *** to be unable to reliably create shared libraries on AIX.
17962 *** Therefore, libtool is disabling shared libraries support.  If you
17963 *** really care for shared libraries, you may want to install binutils
17964 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17965 *** You will then need to restart the configuration process.
17966
17967 _LT_EOF
17968       fi
17969       ;;
17970
17971     amigaos*)
17972       case $host_cpu in
17973       powerpc)
17974             # see comment about AmigaOS4 .so support
17975             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17976             archive_expsym_cmds_GCJ=''
17977         ;;
17978       m68k)
17979             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)'
17980             hardcode_libdir_flag_spec_GCJ='-L$libdir'
17981             hardcode_minus_L_GCJ=yes
17982         ;;
17983       esac
17984       ;;
17985
17986     beos*)
17987       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17988         allow_undefined_flag_GCJ=unsupported
17989         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17990         # support --undefined.  This deserves some investigation.  FIXME
17991         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17992       else
17993         ld_shlibs_GCJ=no
17994       fi
17995       ;;
17996
17997     cygwin* | mingw* | pw32* | cegcc*)
17998       # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17999       # as there is no search path for DLLs.
18000       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18001       export_dynamic_flag_spec_GCJ='${wl}--export-all-symbols'
18002       allow_undefined_flag_GCJ=unsupported
18003       always_export_symbols_GCJ=no
18004       enable_shared_with_static_runtimes_GCJ=yes
18005       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18006
18007       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18008         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18009         # If the export-symbols file already is a .def file (1st line
18010         # is EXPORTS), use it as is; otherwise, prepend...
18011         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18012           cp $export_symbols $output_objdir/$soname.def;
18013         else
18014           echo EXPORTS > $output_objdir/$soname.def;
18015           cat $export_symbols >> $output_objdir/$soname.def;
18016         fi~
18017         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18018       else
18019         ld_shlibs_GCJ=no
18020       fi
18021       ;;
18022
18023     haiku*)
18024       archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18025       link_all_deplibs_GCJ=yes
18026       ;;
18027
18028     interix[3-9]*)
18029       hardcode_direct_GCJ=no
18030       hardcode_shlibpath_var_GCJ=no
18031       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18032       export_dynamic_flag_spec_GCJ='${wl}-E'
18033       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18034       # Instead, shared libraries are loaded at an image base (0x10000000 by
18035       # default) and relocated if they conflict, which is a slow very memory
18036       # consuming and fragmenting process.  To avoid this, we pick a random,
18037       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18038       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18039       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'
18040       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'
18041       ;;
18042
18043     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
18044       tmp_diet=no
18045       if test "$host_os" = linux-dietlibc; then
18046         case $cc_basename in
18047           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
18048         esac
18049       fi
18050       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
18051          && test "$tmp_diet" = no
18052       then
18053         tmp_addflag=
18054         tmp_sharedflag='-shared'
18055         case $cc_basename,$host_cpu in
18056         pgcc*)                          # Portland Group C compiler
18057           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'
18058           tmp_addflag=' $pic_flag'
18059           ;;
18060         pgf77* | pgf90* | pgf95* | pgfortran*)
18061                                         # Portland Group f77 and f90 compilers
18062           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'
18063           tmp_addflag=' $pic_flag -Mnomain' ;;
18064         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
18065           tmp_addflag=' -i_dynamic' ;;
18066         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18067           tmp_addflag=' -i_dynamic -nofor_main' ;;
18068         ifc* | ifort*)                  # Intel Fortran compiler
18069           tmp_addflag=' -nofor_main' ;;
18070         lf95*)                          # Lahey Fortran 8.1
18071           whole_archive_flag_spec_GCJ=
18072           tmp_sharedflag='--shared' ;;
18073         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
18074           tmp_sharedflag='-qmkshrobj'
18075           tmp_addflag= ;;
18076         nvcc*)  # Cuda Compiler Driver 2.2
18077           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'
18078           compiler_needs_object_GCJ=yes
18079           ;;
18080         esac
18081         case `$CC -V 2>&1 | sed 5q` in
18082         *Sun\ C*)                       # Sun C 5.9
18083           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'
18084           compiler_needs_object_GCJ=yes
18085           tmp_sharedflag='-G' ;;
18086         *Sun\ F*)                       # Sun Fortran 8.3
18087           tmp_sharedflag='-G' ;;
18088         esac
18089         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18090
18091         if test "x$supports_anon_versioning" = xyes; then
18092           archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18093             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18094             echo "local: *; };" >> $output_objdir/$libname.ver~
18095             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18096         fi
18097
18098         case $cc_basename in
18099         xlf* | bgf* | bgxlf* | mpixlf*)
18100           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
18101           whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
18102           hardcode_libdir_flag_spec_GCJ=
18103           hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18104           archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
18105           if test "x$supports_anon_versioning" = xyes; then
18106             archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18107               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18108               echo "local: *; };" >> $output_objdir/$libname.ver~
18109               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
18110           fi
18111           ;;
18112         esac
18113       else
18114         ld_shlibs_GCJ=no
18115       fi
18116       ;;
18117
18118     netbsd*)
18119       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18120         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18121         wlarc=
18122       else
18123         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18124         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18125       fi
18126       ;;
18127
18128     solaris*)
18129       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
18130         ld_shlibs_GCJ=no
18131         cat <<_LT_EOF 1>&2
18132
18133 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18134 *** create shared libraries on Solaris systems.  Therefore, libtool
18135 *** is disabling shared libraries support.  We urge you to upgrade GNU
18136 *** binutils to release 2.9.1 or newer.  Another option is to modify
18137 *** your PATH or compiler configuration so that the native linker is
18138 *** used, and then restart.
18139
18140 _LT_EOF
18141       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18142         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18143         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18144       else
18145         ld_shlibs_GCJ=no
18146       fi
18147       ;;
18148
18149     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18150       case `$LD -v 2>&1` in
18151         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18152         ld_shlibs_GCJ=no
18153         cat <<_LT_EOF 1>&2
18154
18155 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18156 *** reliably create shared libraries on SCO systems.  Therefore, libtool
18157 *** is disabling shared libraries support.  We urge you to upgrade GNU
18158 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18159 *** your PATH or compiler configuration so that the native linker is
18160 *** used, and then restart.
18161
18162 _LT_EOF
18163         ;;
18164         *)
18165           # For security reasons, it is highly recommended that you always
18166           # use absolute paths for naming shared libraries, and exclude the
18167           # DT_RUNPATH tag from executables and libraries.  But doing so
18168           # requires that you compile everything twice, which is a pain.
18169           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18170             hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18171             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18172             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18173           else
18174             ld_shlibs_GCJ=no
18175           fi
18176         ;;
18177       esac
18178       ;;
18179
18180     sunos4*)
18181       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18182       wlarc=
18183       hardcode_direct_GCJ=yes
18184       hardcode_shlibpath_var_GCJ=no
18185       ;;
18186
18187     *)
18188       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18189         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18190         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18191       else
18192         ld_shlibs_GCJ=no
18193       fi
18194       ;;
18195     esac
18196
18197     if test "$ld_shlibs_GCJ" = no; then
18198       runpath_var=
18199       hardcode_libdir_flag_spec_GCJ=
18200       export_dynamic_flag_spec_GCJ=
18201       whole_archive_flag_spec_GCJ=
18202     fi
18203   else
18204     # PORTME fill in a description of your system's linker (not GNU ld)
18205     case $host_os in
18206     aix3*)
18207       allow_undefined_flag_GCJ=unsupported
18208       always_export_symbols_GCJ=yes
18209       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'
18210       # Note: this linker hardcodes the directories in LIBPATH if there
18211       # are no directories specified by -L.
18212       hardcode_minus_L_GCJ=yes
18213       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18214         # Neither direct hardcoding nor static linking is supported with a
18215         # broken collect2.
18216         hardcode_direct_GCJ=unsupported
18217       fi
18218       ;;
18219
18220     aix[4-9]*)
18221       if test "$host_cpu" = ia64; then
18222         # On IA64, the linker does run time linking by default, so we don't
18223         # have to do anything special.
18224         aix_use_runtimelinking=no
18225         exp_sym_flag='-Bexport'
18226         no_entry_flag=""
18227       else
18228         # If we're using GNU nm, then we don't want the "-C" option.
18229         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18230         # Also, AIX nm treats weak defined symbols like other global
18231         # defined symbols, whereas GNU nm marks them as "W".
18232         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18233           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'
18234         else
18235           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'
18236         fi
18237         aix_use_runtimelinking=no
18238
18239         # Test if we are trying to use run time linking or normal
18240         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18241         # need to do runtime linking.
18242         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18243           for ld_flag in $LDFLAGS; do
18244           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18245             aix_use_runtimelinking=yes
18246             break
18247           fi
18248           done
18249           ;;
18250         esac
18251
18252         exp_sym_flag='-bexport'
18253         no_entry_flag='-bnoentry'
18254       fi
18255
18256       # When large executables or shared objects are built, AIX ld can
18257       # have problems creating the table of contents.  If linking a library
18258       # or program results in "error TOC overflow" add -mminimal-toc to
18259       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18260       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18261
18262       archive_cmds_GCJ=''
18263       hardcode_direct_GCJ=yes
18264       hardcode_direct_absolute_GCJ=yes
18265       hardcode_libdir_separator_GCJ=':'
18266       link_all_deplibs_GCJ=yes
18267       file_list_spec_GCJ='${wl}-f,'
18268
18269       if test "$GCC" = yes; then
18270         case $host_os in aix4.[012]|aix4.[012].*)
18271         # We only want to do this on AIX 4.2 and lower, the check
18272         # below for broken collect2 doesn't work under 4.3+
18273           collect2name=`${CC} -print-prog-name=collect2`
18274           if test -f "$collect2name" &&
18275            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18276           then
18277           # We have reworked collect2
18278           :
18279           else
18280           # We have old collect2
18281           hardcode_direct_GCJ=unsupported
18282           # It fails to find uninstalled libraries when the uninstalled
18283           # path is not listed in the libpath.  Setting hardcode_minus_L
18284           # to unsupported forces relinking
18285           hardcode_minus_L_GCJ=yes
18286           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18287           hardcode_libdir_separator_GCJ=
18288           fi
18289           ;;
18290         esac
18291         shared_flag='-shared'
18292         if test "$aix_use_runtimelinking" = yes; then
18293           shared_flag="$shared_flag "'${wl}-G'
18294         fi
18295       else
18296         # not using gcc
18297         if test "$host_cpu" = ia64; then
18298         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18299         # chokes on -Wl,-G. The following line is correct:
18300           shared_flag='-G'
18301         else
18302           if test "$aix_use_runtimelinking" = yes; then
18303             shared_flag='${wl}-G'
18304           else
18305             shared_flag='${wl}-bM:SRE'
18306           fi
18307         fi
18308       fi
18309
18310       export_dynamic_flag_spec_GCJ='${wl}-bexpall'
18311       # It seems that -bexpall does not export symbols beginning with
18312       # underscore (_), so it is better to generate a list of symbols to export.
18313       always_export_symbols_GCJ=yes
18314       if test "$aix_use_runtimelinking" = yes; then
18315         # Warning - without using the other runtime loading flags (-brtl),
18316         # -berok will link without error, but may produce a broken library.
18317         allow_undefined_flag_GCJ='-berok'
18318         # Determine the default libpath from the value encoded in an
18319         # empty executable.
18320         if test x$gcc_no_link = xyes; then
18321   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18322 fi
18323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18324 /* end confdefs.h.  */
18325
18326 int
18327 main ()
18328 {
18329
18330   ;
18331   return 0;
18332 }
18333 _ACEOF
18334 if ac_fn_c_try_link "$LINENO"; then :
18335
18336 lt_aix_libpath_sed='
18337     /Import File Strings/,/^$/ {
18338         /^0/ {
18339             s/^0  *\(.*\)$/\1/
18340             p
18341         }
18342     }'
18343 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18344 # Check for a 64-bit object if we didn't find anything.
18345 if test -z "$aix_libpath"; then
18346   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18347 fi
18348 fi
18349 rm -f core conftest.err conftest.$ac_objext \
18350     conftest$ac_exeext conftest.$ac_ext
18351 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18352
18353         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18354         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"
18355       else
18356         if test "$host_cpu" = ia64; then
18357           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18358           allow_undefined_flag_GCJ="-z nodefs"
18359           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"
18360         else
18361          # Determine the default libpath from the value encoded in an
18362          # empty executable.
18363          if test x$gcc_no_link = xyes; then
18364   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18365 fi
18366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18367 /* end confdefs.h.  */
18368
18369 int
18370 main ()
18371 {
18372
18373   ;
18374   return 0;
18375 }
18376 _ACEOF
18377 if ac_fn_c_try_link "$LINENO"; then :
18378
18379 lt_aix_libpath_sed='
18380     /Import File Strings/,/^$/ {
18381         /^0/ {
18382             s/^0  *\(.*\)$/\1/
18383             p
18384         }
18385     }'
18386 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18387 # Check for a 64-bit object if we didn't find anything.
18388 if test -z "$aix_libpath"; then
18389   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18390 fi
18391 fi
18392 rm -f core conftest.err conftest.$ac_objext \
18393     conftest$ac_exeext conftest.$ac_ext
18394 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18395
18396          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18397           # Warning - without using the other run time loading flags,
18398           # -berok will link without error, but may produce a broken library.
18399           no_undefined_flag_GCJ=' ${wl}-bernotok'
18400           allow_undefined_flag_GCJ=' ${wl}-berok'
18401           if test "$with_gnu_ld" = yes; then
18402             # We only use this code for GNU lds that support --whole-archive.
18403             whole_archive_flag_spec_GCJ='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18404           else
18405             # Exported symbols can be pulled into shared objects from archives
18406             whole_archive_flag_spec_GCJ='$convenience'
18407           fi
18408           archive_cmds_need_lc_GCJ=yes
18409           # This is similar to how AIX traditionally builds its shared libraries.
18410           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'
18411         fi
18412       fi
18413       ;;
18414
18415     amigaos*)
18416       case $host_cpu in
18417       powerpc)
18418             # see comment about AmigaOS4 .so support
18419             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18420             archive_expsym_cmds_GCJ=''
18421         ;;
18422       m68k)
18423             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)'
18424             hardcode_libdir_flag_spec_GCJ='-L$libdir'
18425             hardcode_minus_L_GCJ=yes
18426         ;;
18427       esac
18428       ;;
18429
18430     bsdi[45]*)
18431       export_dynamic_flag_spec_GCJ=-rdynamic
18432       ;;
18433
18434     cygwin* | mingw* | pw32* | cegcc*)
18435       # When not using gcc, we currently assume that we are using
18436       # Microsoft Visual C++.
18437       # hardcode_libdir_flag_spec is actually meaningless, as there is
18438       # no search path for DLLs.
18439       hardcode_libdir_flag_spec_GCJ=' '
18440       allow_undefined_flag_GCJ=unsupported
18441       # Tell ltmain to make .lib files, not .a files.
18442       libext=lib
18443       # Tell ltmain to make .dll files, not .so files.
18444       shrext_cmds=".dll"
18445       # FIXME: Setting linknames here is a bad hack.
18446       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18447       # The linker will automatically build a .lib file if we build a DLL.
18448       old_archive_from_new_cmds_GCJ='true'
18449       # FIXME: Should let the user specify the lib program.
18450       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18451       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18452       enable_shared_with_static_runtimes_GCJ=yes
18453       ;;
18454
18455     darwin* | rhapsody*)
18456
18457
18458   archive_cmds_need_lc_GCJ=no
18459   hardcode_direct_GCJ=no
18460   hardcode_automatic_GCJ=yes
18461   hardcode_shlibpath_var_GCJ=unsupported
18462   if test "$lt_cv_ld_force_load" = "yes"; then
18463     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\"`'
18464   else
18465     whole_archive_flag_spec_GCJ=''
18466   fi
18467   link_all_deplibs_GCJ=yes
18468   allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
18469   case $cc_basename in
18470      ifort*) _lt_dar_can_shared=yes ;;
18471      *) _lt_dar_can_shared=$GCC ;;
18472   esac
18473   if test "$_lt_dar_can_shared" = "yes"; then
18474     output_verbose_link_cmd=func_echo_all
18475     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}"
18476     module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18477     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}"
18478     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}"
18479
18480   else
18481   ld_shlibs_GCJ=no
18482   fi
18483
18484       ;;
18485
18486     dgux*)
18487       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18488       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18489       hardcode_shlibpath_var_GCJ=no
18490       ;;
18491
18492     freebsd1*)
18493       ld_shlibs_GCJ=no
18494       ;;
18495
18496     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18497     # support.  Future versions do this automatically, but an explicit c++rt0.o
18498     # does not break anything, and helps significantly (at the cost of a little
18499     # extra space).
18500     freebsd2.2*)
18501       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18502       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18503       hardcode_direct_GCJ=yes
18504       hardcode_shlibpath_var_GCJ=no
18505       ;;
18506
18507     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18508     freebsd2*)
18509       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18510       hardcode_direct_GCJ=yes
18511       hardcode_minus_L_GCJ=yes
18512       hardcode_shlibpath_var_GCJ=no
18513       ;;
18514
18515     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18516     freebsd* | dragonfly*)
18517       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18518       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18519       hardcode_direct_GCJ=yes
18520       hardcode_shlibpath_var_GCJ=no
18521       ;;
18522
18523     hpux9*)
18524       if test "$GCC" = yes; then
18525         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'
18526       else
18527         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'
18528       fi
18529       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18530       hardcode_libdir_separator_GCJ=:
18531       hardcode_direct_GCJ=yes
18532
18533       # hardcode_minus_L: Not really in the search PATH,
18534       # but as the default location of the library.
18535       hardcode_minus_L_GCJ=yes
18536       export_dynamic_flag_spec_GCJ='${wl}-E'
18537       ;;
18538
18539     hpux10*)
18540       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18541         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18542       else
18543         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18544       fi
18545       if test "$with_gnu_ld" = no; then
18546         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18547         hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18548         hardcode_libdir_separator_GCJ=:
18549         hardcode_direct_GCJ=yes
18550         hardcode_direct_absolute_GCJ=yes
18551         export_dynamic_flag_spec_GCJ='${wl}-E'
18552         # hardcode_minus_L: Not really in the search PATH,
18553         # but as the default location of the library.
18554         hardcode_minus_L_GCJ=yes
18555       fi
18556       ;;
18557
18558     hpux11*)
18559       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18560         case $host_cpu in
18561         hppa*64*)
18562           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18563           ;;
18564         ia64*)
18565           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18566           ;;
18567         *)
18568           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18569           ;;
18570         esac
18571       else
18572         case $host_cpu in
18573         hppa*64*)
18574           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18575           ;;
18576         ia64*)
18577           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18578           ;;
18579         *)
18580         archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18581           ;;
18582         esac
18583       fi
18584       if test "$with_gnu_ld" = no; then
18585         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18586         hardcode_libdir_separator_GCJ=:
18587
18588         case $host_cpu in
18589         hppa*64*|ia64*)
18590           hardcode_direct_GCJ=no
18591           hardcode_shlibpath_var_GCJ=no
18592           ;;
18593         *)
18594           hardcode_direct_GCJ=yes
18595           hardcode_direct_absolute_GCJ=yes
18596           export_dynamic_flag_spec_GCJ='${wl}-E'
18597
18598           # hardcode_minus_L: Not really in the search PATH,
18599           # but as the default location of the library.
18600           hardcode_minus_L_GCJ=yes
18601           ;;
18602         esac
18603       fi
18604       ;;
18605
18606     irix5* | irix6* | nonstopux*)
18607       if test "$GCC" = yes; then
18608         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'
18609         # Try to use the -exported_symbol ld option, if it does not
18610         # work, assume that -exports_file does not work either and
18611         # implicitly export all symbols.
18612         save_LDFLAGS="$LDFLAGS"
18613         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18614         if test x$gcc_no_link = xyes; then
18615   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18616 fi
18617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18618 /* end confdefs.h.  */
18619 int foo(void) {}
18620 _ACEOF
18621 if ac_fn_c_try_link "$LINENO"; then :
18622   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'
18623
18624 fi
18625 rm -f core conftest.err conftest.$ac_objext \
18626     conftest$ac_exeext conftest.$ac_ext
18627         LDFLAGS="$save_LDFLAGS"
18628       else
18629         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'
18630         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'
18631       fi
18632       archive_cmds_need_lc_GCJ='no'
18633       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18634       hardcode_libdir_separator_GCJ=:
18635       inherit_rpath_GCJ=yes
18636       link_all_deplibs_GCJ=yes
18637       ;;
18638
18639     netbsd*)
18640       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18641         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18642       else
18643         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18644       fi
18645       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18646       hardcode_direct_GCJ=yes
18647       hardcode_shlibpath_var_GCJ=no
18648       ;;
18649
18650     newsos6)
18651       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18652       hardcode_direct_GCJ=yes
18653       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18654       hardcode_libdir_separator_GCJ=:
18655       hardcode_shlibpath_var_GCJ=no
18656       ;;
18657
18658     *nto* | *qnx*)
18659       ;;
18660
18661     openbsd*)
18662       if test -f /usr/libexec/ld.so; then
18663         hardcode_direct_GCJ=yes
18664         hardcode_shlibpath_var_GCJ=no
18665         hardcode_direct_absolute_GCJ=yes
18666         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18667           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18668           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18669           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18670           export_dynamic_flag_spec_GCJ='${wl}-E'
18671         else
18672           case $host_os in
18673            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18674              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18675              hardcode_libdir_flag_spec_GCJ='-R$libdir'
18676              ;;
18677            *)
18678              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18679              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18680              ;;
18681           esac
18682         fi
18683       else
18684         ld_shlibs_GCJ=no
18685       fi
18686       ;;
18687
18688     os2*)
18689       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18690       hardcode_minus_L_GCJ=yes
18691       allow_undefined_flag_GCJ=unsupported
18692       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'
18693       old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18694       ;;
18695
18696     osf3*)
18697       if test "$GCC" = yes; then
18698         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18699         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'
18700       else
18701         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18702         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'
18703       fi
18704       archive_cmds_need_lc_GCJ='no'
18705       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18706       hardcode_libdir_separator_GCJ=:
18707       ;;
18708
18709     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18710       if test "$GCC" = yes; then
18711         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18712         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'
18713         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18714       else
18715         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18716         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'
18717         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~
18718         $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'
18719
18720         # Both c and cxx compiler support -rpath directly
18721         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18722       fi
18723       archive_cmds_need_lc_GCJ='no'
18724       hardcode_libdir_separator_GCJ=:
18725       ;;
18726
18727     solaris*)
18728       no_undefined_flag_GCJ=' -z defs'
18729       if test "$GCC" = yes; then
18730         wlarc='${wl}'
18731         archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18732         archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18733           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18734       else
18735         case `$CC -V 2>&1` in
18736         *"Compilers 5.0"*)
18737           wlarc=''
18738           archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18739           archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18740           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18741           ;;
18742         *)
18743           wlarc='${wl}'
18744           archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18745           archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18746           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18747           ;;
18748         esac
18749       fi
18750       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18751       hardcode_shlibpath_var_GCJ=no
18752       case $host_os in
18753       solaris2.[0-5] | solaris2.[0-5].*) ;;
18754       *)
18755         # The compiler driver will combine and reorder linker options,
18756         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18757         # but is careful enough not to reorder.
18758         # Supported since Solaris 2.6 (maybe 2.5.1?)
18759         if test "$GCC" = yes; then
18760           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18761         else
18762           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18763         fi
18764         ;;
18765       esac
18766       link_all_deplibs_GCJ=yes
18767       ;;
18768
18769     sunos4*)
18770       if test "x$host_vendor" = xsequent; then
18771         # Use $CC to link under sequent, because it throws in some extra .o
18772         # files that make .init and .fini sections work.
18773         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18774       else
18775         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18776       fi
18777       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18778       hardcode_direct_GCJ=yes
18779       hardcode_minus_L_GCJ=yes
18780       hardcode_shlibpath_var_GCJ=no
18781       ;;
18782
18783     sysv4)
18784       case $host_vendor in
18785         sni)
18786           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18787           hardcode_direct_GCJ=yes # is this really true???
18788         ;;
18789         siemens)
18790           ## LD is ld it makes a PLAMLIB
18791           ## CC just makes a GrossModule.
18792           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18793           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18794           hardcode_direct_GCJ=no
18795         ;;
18796         motorola)
18797           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18798           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18799         ;;
18800       esac
18801       runpath_var='LD_RUN_PATH'
18802       hardcode_shlibpath_var_GCJ=no
18803       ;;
18804
18805     sysv4.3*)
18806       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18807       hardcode_shlibpath_var_GCJ=no
18808       export_dynamic_flag_spec_GCJ='-Bexport'
18809       ;;
18810
18811     sysv4*MP*)
18812       if test -d /usr/nec; then
18813         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18814         hardcode_shlibpath_var_GCJ=no
18815         runpath_var=LD_RUN_PATH
18816         hardcode_runpath_var=yes
18817         ld_shlibs_GCJ=yes
18818       fi
18819       ;;
18820
18821     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18822       no_undefined_flag_GCJ='${wl}-z,text'
18823       archive_cmds_need_lc_GCJ=no
18824       hardcode_shlibpath_var_GCJ=no
18825       runpath_var='LD_RUN_PATH'
18826
18827       if test "$GCC" = yes; then
18828         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18829         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18830       else
18831         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18832         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18833       fi
18834       ;;
18835
18836     sysv5* | sco3.2v5* | sco5v6*)
18837       # Note: We can NOT use -z defs as we might desire, because we do not
18838       # link with -lc, and that would cause any symbols used from libc to
18839       # always be unresolved, which means just about no library would
18840       # ever link correctly.  If we're not using GNU ld we use -z text
18841       # though, which does catch some bad symbols but isn't as heavy-handed
18842       # as -z defs.
18843       no_undefined_flag_GCJ='${wl}-z,text'
18844       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18845       archive_cmds_need_lc_GCJ=no
18846       hardcode_shlibpath_var_GCJ=no
18847       hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
18848       hardcode_libdir_separator_GCJ=':'
18849       link_all_deplibs_GCJ=yes
18850       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18851       runpath_var='LD_RUN_PATH'
18852
18853       if test "$GCC" = yes; then
18854         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18855         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18856       else
18857         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18858         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18859       fi
18860       ;;
18861
18862     uts4*)
18863       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18864       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18865       hardcode_shlibpath_var_GCJ=no
18866       ;;
18867
18868     *)
18869       ld_shlibs_GCJ=no
18870       ;;
18871     esac
18872
18873     if test x$host_vendor = xsni; then
18874       case $host in
18875       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18876         export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
18877         ;;
18878       esac
18879     fi
18880   fi
18881
18882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
18883 $as_echo "$ld_shlibs_GCJ" >&6; }
18884 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18885
18886 with_gnu_ld_GCJ=$with_gnu_ld
18887
18888
18889
18890
18891
18892
18893 #
18894 # Do we need to explicitly link libc?
18895 #
18896 case "x$archive_cmds_need_lc_GCJ" in
18897 x|xyes)
18898   # Assume -lc should be added
18899   archive_cmds_need_lc_GCJ=yes
18900
18901   if test "$enable_shared" = yes && test "$GCC" = yes; then
18902     case $archive_cmds_GCJ in
18903     *'~'*)
18904       # FIXME: we may have to deal with multi-command sequences.
18905       ;;
18906     '$CC '*)
18907       # Test whether the compiler implicitly links with -lc since on some
18908       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18909       # to ld, don't add -lc before -lgcc.
18910       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18911 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18912 if test "${lt_cv_archive_cmds_need_lc_GCJ+set}" = set; then :
18913   $as_echo_n "(cached) " >&6
18914 else
18915   $RM conftest*
18916         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18917
18918         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18919   (eval $ac_compile) 2>&5
18920   ac_status=$?
18921   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18922   test $ac_status = 0; } 2>conftest.err; then
18923           soname=conftest
18924           lib=conftest
18925           libobjs=conftest.$ac_objext
18926           deplibs=
18927           wl=$lt_prog_compiler_wl_GCJ
18928           pic_flag=$lt_prog_compiler_pic_GCJ
18929           compiler_flags=-v
18930           linker_flags=-v
18931           verstring=
18932           output_objdir=.
18933           libname=conftest
18934           lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18935           allow_undefined_flag_GCJ=
18936           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18937   (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18938   ac_status=$?
18939   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18940   test $ac_status = 0; }
18941           then
18942             lt_cv_archive_cmds_need_lc_GCJ=no
18943           else
18944             lt_cv_archive_cmds_need_lc_GCJ=yes
18945           fi
18946           allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18947         else
18948           cat conftest.err 1>&5
18949         fi
18950         $RM conftest*
18951
18952 fi
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GCJ" >&5
18954 $as_echo "$lt_cv_archive_cmds_need_lc_GCJ" >&6; }
18955       archive_cmds_need_lc_GCJ=$lt_cv_archive_cmds_need_lc_GCJ
18956       ;;
18957     esac
18958   fi
18959   ;;
18960 esac
18961
18962
18963
18964
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19026 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19027 hardcode_action_GCJ=
19028 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
19029    test -n "$runpath_var_GCJ" ||
19030    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19031
19032   # We can hardcode non-existent directories.
19033   if test "$hardcode_direct_GCJ" != no &&
19034      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19035      # have to relink, otherwise we might link with an installed library
19036      # when we should be linking with a yet-to-be-installed one
19037      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19038      test "$hardcode_minus_L_GCJ" != no; then
19039     # Linking always hardcodes the temporary library directory.
19040     hardcode_action_GCJ=relink
19041   else
19042     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19043     hardcode_action_GCJ=immediate
19044   fi
19045 else
19046   # We cannot hardcode anything, or else we can only hardcode existing
19047   # directories.
19048   hardcode_action_GCJ=unsupported
19049 fi
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
19051 $as_echo "$hardcode_action_GCJ" >&6; }
19052
19053 if test "$hardcode_action_GCJ" = relink ||
19054    test "$inherit_rpath_GCJ" = yes; then
19055   # Fast installation is not supported
19056   enable_fast_install=no
19057 elif test "$shlibpath_overrides_runpath" = yes ||
19058      test "$enable_shared" = no; then
19059   # Fast installation is not necessary
19060   enable_fast_install=needless
19061 fi
19062
19063
19064
19065
19066
19067
19068
19069 fi
19070
19071 compiler_GCJ=${GCJ-gcj}
19072 ac_ext=c
19073 ac_cpp='$CPP $CPPFLAGS'
19074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19077
19078
19079 if test "x$CC" != xcc; then
19080   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
19081 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
19082 else
19083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
19084 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
19085 fi
19086 set dummy $CC; ac_cc=`$as_echo "$2" |
19087                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19088 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
19089   $as_echo_n "(cached) " >&6
19090 else
19091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19092 /* end confdefs.h.  */
19093
19094 int
19095 main ()
19096 {
19097
19098   ;
19099   return 0;
19100 }
19101 _ACEOF
19102 # Make sure it works both with $CC and with simple cc.
19103 # We do the test twice because some compilers refuse to overwrite an
19104 # existing .o file with -o, though they will create one.
19105 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19106 rm -f conftest2.*
19107 if { { case "(($ac_try" in
19108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19109   *) ac_try_echo=$ac_try;;
19110 esac
19111 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19112 $as_echo "$ac_try_echo"; } >&5
19113   (eval "$ac_try") 2>&5
19114   ac_status=$?
19115   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19116   test $ac_status = 0; } &&
19117    test -f conftest2.$ac_objext && { { case "(($ac_try" in
19118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19119   *) ac_try_echo=$ac_try;;
19120 esac
19121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19122 $as_echo "$ac_try_echo"; } >&5
19123   (eval "$ac_try") 2>&5
19124   ac_status=$?
19125   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19126   test $ac_status = 0; };
19127 then
19128   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
19129   if test "x$CC" != xcc; then
19130     # Test first that cc exists at all.
19131     if { ac_try='cc -c conftest.$ac_ext >&5'
19132   { { case "(($ac_try" in
19133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19134   *) ac_try_echo=$ac_try;;
19135 esac
19136 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19137 $as_echo "$ac_try_echo"; } >&5
19138   (eval "$ac_try") 2>&5
19139   ac_status=$?
19140   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19141   test $ac_status = 0; }; }; then
19142       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19143       rm -f conftest2.*
19144       if { { case "(($ac_try" in
19145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19146   *) ac_try_echo=$ac_try;;
19147 esac
19148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19149 $as_echo "$ac_try_echo"; } >&5
19150   (eval "$ac_try") 2>&5
19151   ac_status=$?
19152   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19153   test $ac_status = 0; } &&
19154          test -f conftest2.$ac_objext && { { case "(($ac_try" in
19155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19156   *) ac_try_echo=$ac_try;;
19157 esac
19158 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19159 $as_echo "$ac_try_echo"; } >&5
19160   (eval "$ac_try") 2>&5
19161   ac_status=$?
19162   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19163   test $ac_status = 0; };
19164       then
19165         # cc works too.
19166         :
19167       else
19168         # cc exists but doesn't like -o.
19169         eval ac_cv_prog_cc_${ac_cc}_c_o=no
19170       fi
19171     fi
19172   fi
19173 else
19174   eval ac_cv_prog_cc_${ac_cc}_c_o=no
19175 fi
19176 rm -f core conftest*
19177
19178 fi
19179 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
19180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19181 $as_echo "yes" >&6; }
19182 else
19183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19184 $as_echo "no" >&6; }
19185
19186 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
19187
19188 fi
19189
19190 # FIXME: we rely on the cache variable name because
19191 # there is no other way.
19192 set dummy $CC
19193 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19194 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
19195 if test "$am_t" != yes; then
19196    # Losing compiler, so override with the script.
19197    # FIXME: It is wrong to rewrite CC.
19198    # But if we don't then we get into trouble of one sort or another.
19199    # A longer-term fix would be to have automake use am__CC in this case,
19200    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19201    CC="$am_aux_dir/compile $CC"
19202 fi
19203
19204
19205
19206
19207
19208 subdirs="$subdirs classpath libltdl"
19209
19210
19211 # The -no-testsuite modules omit the test subdir.
19212  if test -d $srcdir/testsuite; then
19213   TESTSUBDIR_TRUE=
19214   TESTSUBDIR_FALSE='#'
19215 else
19216   TESTSUBDIR_TRUE='#'
19217   TESTSUBDIR_FALSE=
19218 fi
19219
19220
19221 # Should the runtime set system properties by examining the
19222 # environment variable GCJ_PROPERTIES?
19223 # Check whether --enable-getenv-properties was given.
19224 if test "${enable_getenv_properties+set}" = set; then :
19225   enableval=$enable_getenv_properties;
19226 fi
19227
19228
19229 # Whether GCJ_PROPERTIES is used depends on the target.
19230 if test -z "$enable_getenv_properties"; then
19231    enable_getenv_properties=${enable_getenv_properties_default-yes}
19232 fi
19233 if test "$enable_getenv_properties" = no; then
19234
19235 $as_echo "#define DISABLE_GETENV_PROPERTIES 1" >>confdefs.h
19236
19237 fi
19238
19239 # Whether we should use arguments to main()
19240 if test -z "$enable_main_args"; then
19241    enable_main_args=${enable_main_args_default-yes}
19242 fi
19243 if test "$enable_main_args" = no; then
19244
19245 $as_echo "#define DISABLE_MAIN_ARGS 1" >>confdefs.h
19246
19247 fi
19248
19249
19250 # Should we use hashtable-based synchronization?
19251 # Currently works only for Linux X86/ia64
19252 # Typically faster and more space-efficient
19253 # Check whether --enable-hash-synchronization was given.
19254 if test "${enable_hash_synchronization+set}" = set; then :
19255   enableval=$enable_hash_synchronization;
19256 fi
19257
19258
19259 if test -z "$enable_hash_synchronization"; then
19260    enable_hash_synchronization=$enable_hash_synchronization_default
19261 fi
19262
19263
19264 install_ecj_jar=no
19265 ECJ_BUILD_JAR=
19266 ECJ_JAR=
19267
19268 # Check whether --with-ecj-jar was given.
19269 if test "${with_ecj_jar+set}" = set; then :
19270   withval=$with_ecj_jar; ECJ_JAR=$withval
19271 else
19272   if test -f $multi_basedir/ecj.jar; then
19273            ECJ_BUILD_JAR=$multi_basedir/ecj.jar
19274            ECJ_JAR='$(jardir)/ecj.jar'
19275            install_ecj_jar=yes
19276          fi
19277 fi
19278
19279
19280
19281  if test "$ECJ_JAR" != ""; then
19282   BUILD_ECJ1_TRUE=
19283   BUILD_ECJ1_FALSE='#'
19284 else
19285   BUILD_ECJ1_TRUE='#'
19286   BUILD_ECJ1_FALSE=
19287 fi
19288
19289  if test $install_ecj_jar = yes; then
19290   INSTALL_ECJ_JAR_TRUE=
19291   INSTALL_ECJ_JAR_FALSE='#'
19292 else
19293   INSTALL_ECJ_JAR_TRUE='#'
19294   INSTALL_ECJ_JAR_FALSE=
19295 fi
19296
19297
19298
19299 # Check whether --with-java-home was given.
19300 if test "${with_java_home+set}" = set; then :
19301   withval=$with_java_home; JAVA_HOME="${withval}"
19302 else
19303   JAVA_HOME=""
19304 fi
19305
19306  if test ! -z "$JAVA_HOME"; then
19307   JAVA_HOME_SET_TRUE=
19308   JAVA_HOME_SET_FALSE='#'
19309 else
19310   JAVA_HOME_SET_TRUE='#'
19311   JAVA_HOME_SET_FALSE=
19312 fi
19313
19314
19315
19316 suppress_libgcj_bc=no
19317 # Check whether --enable-libgcj-bc was given.
19318 if test "${enable_libgcj_bc+set}" = set; then :
19319   enableval=$enable_libgcj_bc; if test "$enable_libgcj_bc" = "no"; then
19320      suppress_libgcj_bc=yes
19321    fi
19322 fi
19323
19324  if test "$suppress_libgcj_bc" = "yes"; then
19325   SUPPRESS_LIBGCJ_BC_TRUE=
19326   SUPPRESS_LIBGCJ_BC_FALSE='#'
19327 else
19328   SUPPRESS_LIBGCJ_BC_TRUE='#'
19329   SUPPRESS_LIBGCJ_BC_FALSE=
19330 fi
19331
19332
19333 build_libgcj_reduced_reflection=no
19334 # Check whether --enable-reduced-reflection was given.
19335 if test "${enable_reduced_reflection+set}" = set; then :
19336   enableval=$enable_reduced_reflection; if test "$enable_reduced_reflection" = "yes"; then
19337      build_libgcj_reduced_reflection=yes
19338    fi
19339 fi
19340
19341  if test "$build_libgcj_reduced_reflection" = "yes"; then
19342   BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
19343   BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
19344 else
19345   BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
19346   BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
19347 fi
19348
19349
19350 # What is the native OS API for MinGW?
19351
19352 # Check whether --with-win32-nlsapi was given.
19353 if test "${with_win32_nlsapi+set}" = set; then :
19354   withval=$with_win32_nlsapi; case "${withval}" in
19355   ansi) with_win32_nlsapi=ansi ;;
19356   unicows) with_win32_nlsapi=unicows ;;
19357   unicode) with_win32_nlsapi=unicode ;;
19358   *) as_fn_error "Bad value ${withval} for --with-win32-nlsapi." "$LINENO" 5 ;;
19359 esac
19360 else
19361   with_win32_nlsapi=ansi
19362 fi
19363
19364
19365 case "${with_win32_nlsapi}" in
19366   unicows | unicode)
19367
19368 $as_echo "#define MINGW_LIBGCJ_UNICODE 1" >>confdefs.h
19369
19370     ;;
19371 esac
19372
19373 # configure.host sets slow_pthread_self if the synchronization code should
19374 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
19375 if test "${slow_pthread_self}" = "yes"; then
19376
19377 $as_echo "#define SLOW_PTHREAD_SELF 1" >>confdefs.h
19378
19379 fi
19380
19381 # Check for gc debugging.  This option is handled both here and in the GC.
19382 # Check whether --enable-gc-debug was given.
19383 if test "${enable_gc_debug+set}" = set; then :
19384   enableval=$enable_gc_debug;  if test "$enable_gc_debug" = "yes"; then
19385
19386 $as_echo "#define LIBGCJ_GC_DEBUG 1" >>confdefs.h
19387
19388   fi
19389 fi
19390
19391
19392 # See if the user has the interpreter included.
19393 # Check whether --enable-interpreter was given.
19394 if test "${enable_interpreter+set}" = set; then :
19395   enableval=$enable_interpreter; if test "$enable_interpreter" = yes; then
19396     # This can also be set in configure.host.
19397     libgcj_interpreter=yes
19398   elif test "$enable_interpreter" = no; then
19399     libgcj_interpreter=no
19400   fi
19401 fi
19402
19403
19404 if test "$libgcj_interpreter" = yes; then
19405
19406 $as_echo "#define INTERPRETER 1" >>confdefs.h
19407
19408 fi
19409 INTERPRETER="$libgcj_interpreter"
19410
19411  if test "$libgcj_interpreter" = yes; then
19412   INTERPRETER_TRUE=
19413   INTERPRETER_FALSE='#'
19414 else
19415   INTERPRETER_TRUE='#'
19416   INTERPRETER_FALSE=
19417 fi
19418
19419
19420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception model to use" >&5
19421 $as_echo_n "checking for exception model to use... " >&6; }
19422 ac_ext=cpp
19423 ac_cpp='$CXXCPP $CPPFLAGS'
19424 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19425 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19426 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19427
19428 # Check whether --enable-sjlj-exceptions was given.
19429 if test "${enable_sjlj_exceptions+set}" = set; then :
19430   enableval=$enable_sjlj_exceptions; :
19431 else
19432   cat > conftest.$ac_ext << EOF
19433 #line 19433 "configure"
19434 struct S { ~S(); };
19435 void bar();
19436 void foo()
19437 {
19438   S s;
19439   bar();
19440 }
19441 EOF
19442 old_CXXFLAGS="$CXXFLAGS"
19443 CXXFLAGS=-S
19444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19445   (eval $ac_compile) 2>&5
19446   ac_status=$?
19447   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19448   test $ac_status = 0; }; then
19449   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
19450     enable_sjlj_exceptions=yes
19451   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
19452     enable_sjlj_exceptions=no
19453   elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
19454     # ARM EH ABI.
19455     enable_sjlj_exceptions=no
19456   fi
19457 fi
19458 CXXFLAGS="$old_CXXFLAGS"
19459 rm -f conftest*
19460 fi
19461
19462 if test x$enable_sjlj_exceptions = xyes; then
19463
19464 $as_echo "#define SJLJ_EXCEPTIONS 1" >>confdefs.h
19465
19466   ac_exception_model_name=sjlj
19467 elif test x$enable_sjlj_exceptions = xno; then
19468   ac_exception_model_name="call frame"
19469 else
19470   as_fn_error "unable to detect exception model" "$LINENO" 5
19471 fi
19472 ac_ext=c
19473 ac_cpp='$CPP $CPPFLAGS'
19474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19477
19478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception_model_name" >&5
19479 $as_echo "$ac_exception_model_name" >&6; }
19480
19481 # If we are non using SJLJ exceptions, and this host does not have support
19482 # for unwinding from a signal handler, enable checked dereferences and divides.
19483 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
19484   CHECKREFSPEC=-fcheck-references
19485   DIVIDESPEC=-fuse-divide-subroutine
19486   EXCEPTIONSPEC=
19487 fi
19488
19489 # See if the user wants to disable java.net.  This is the mildly
19490 # ugly way that we admit that target-side configuration sucks.
19491 # Check whether --enable-java-net was given.
19492 if test "${enable_java_net+set}" = set; then :
19493   enableval=$enable_java_net;
19494 fi
19495
19496
19497 # Whether java.net is built by default can depend on the target.
19498 if test -z "$enable_java_net"; then
19499    enable_java_net=${enable_java_net_default-yes}
19500 fi
19501 if test "$enable_java_net" = no; then
19502
19503 $as_echo "#define DISABLE_JAVA_NET 1" >>confdefs.h
19504
19505 fi
19506
19507 # See if the user wants to configure without libffi.  Some
19508 # architectures don't support it, and default values are set in
19509 # configure.host.
19510
19511 # Check whether --with-libffi was given.
19512 if test "${with_libffi+set}" = set; then :
19513   withval=$with_libffi; :
19514 else
19515   with_libffi=${with_libffi_default-yes}
19516 fi
19517
19518
19519 LIBFFI=
19520 LIBFFIINCS=
19521 if test "$with_libffi" != no; then
19522
19523 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
19524
19525    LIBFFI=../libffi/libffi_convenience.la
19526    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
19527 fi
19528
19529
19530
19531 # See if the user wants to disable JVMPI support.
19532 # Check whether --enable-jvmpi was given.
19533 if test "${enable_jvmpi+set}" = set; then :
19534   enableval=$enable_jvmpi;
19535 fi
19536
19537
19538 if test "$enable_jvmpi" != no; then
19539
19540 $as_echo "#define ENABLE_JVMPI 1" >>confdefs.h
19541
19542 fi
19543
19544 # If the target is an eCos system, use the appropriate eCos
19545 # I/O routines.
19546 # FIXME: this should not be a local option but a global target
19547 # system; at present there is no eCos target.
19548 TARGET_ECOS=${PROCESS-"no"}
19549
19550 # Check whether --with-ecos was given.
19551 if test "${with_ecos+set}" = set; then :
19552   withval=$with_ecos; TARGET_ECOS="$with_ecos"
19553
19554 fi
19555
19556
19557 case "$TARGET_ECOS" in
19558    no) case "$host" in
19559       *mingw*)
19560             PLATFORM=Win32
19561             PLATFORMNET=Win32
19562             PLATFORMH=win32.h
19563
19564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'ld' is at least 2.13" >&5
19565 $as_echo_n "checking whether 'ld' is at least 2.13... " >&6; }
19566 LD_PROG=`$CC --print-prog-name=ld`
19567 LD_VERSION=`$LD_PROG --version`
19568 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
19569 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
19570 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
19571   LD_OK="ok"
19572 else
19573   if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
19574     LD_OK="ok"
19575   fi
19576 fi
19577 if test "x$LD_OK" != x; then
19578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19579 $as_echo "yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19580 else
19581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19582 $as_echo "no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19583   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
19584 $as_echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
19585
19586 $as_echo "#define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1" >>confdefs.h
19587
19588 fi
19589       ;;
19590       *)
19591             PLATFORM=Posix
19592             PLATFORMNET=Posix
19593             PLATFORMH=posix.h
19594       ;;
19595       esac
19596       ;;
19597    *)
19598       PLATFORM=Ecos
19599       PLATFORMNET=NoNet
19600
19601 $as_echo "#define ECOS 1" >>confdefs.h
19602
19603       PLATFORMH=posix.h
19604       ;;
19605 esac
19606
19607 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
19608
19609
19610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19611 /* end confdefs.h.  */
19612 #include <stdint.h>
19613
19614 _ACEOF
19615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19616   $EGREP "uint32_t" >/dev/null 2>&1; then :
19617
19618 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19619
19620 fi
19621 rm -f conftest*
19622
19623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19624 /* end confdefs.h.  */
19625 #include <inttypes.h>
19626
19627 _ACEOF
19628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19629   $EGREP "uint32_t" >/dev/null 2>&1; then :
19630
19631 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19632
19633 fi
19634 rm -f conftest*
19635
19636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19637 /* end confdefs.h.  */
19638 #include <sys/types.h>
19639
19640 _ACEOF
19641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19642   $EGREP "u_int32_t" >/dev/null 2>&1; then :
19643
19644 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19645
19646 fi
19647 rm -f conftest*
19648
19649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19650 /* end confdefs.h.  */
19651 #include <sys/config.h>
19652
19653 _ACEOF
19654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19655   $EGREP "u_int32_t" >/dev/null 2>&1; then :
19656
19657 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19658
19659 fi
19660 rm -f conftest*
19661
19662
19663  if test "$PLATFORM" = Win32; then
19664   USING_WIN32_PLATFORM_TRUE=
19665   USING_WIN32_PLATFORM_FALSE='#'
19666 else
19667   USING_WIN32_PLATFORM_TRUE='#'
19668   USING_WIN32_PLATFORM_FALSE=
19669 fi
19670
19671  if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
19672   USING_POSIX_PLATFORM_TRUE=
19673   USING_POSIX_PLATFORM_FALSE='#'
19674 else
19675   USING_POSIX_PLATFORM_TRUE='#'
19676   USING_POSIX_PLATFORM_FALSE=
19677 fi
19678
19679
19680 case "$host" in
19681   *-darwin*) DARWIN_CRT=true ;;
19682   *) DARWIN_CRT=false ;;
19683 esac
19684  if $DARWIN_CRT; then
19685   USING_DARWIN_CRT_TRUE=
19686   USING_DARWIN_CRT_FALSE='#'
19687 else
19688   USING_DARWIN_CRT_TRUE='#'
19689   USING_DARWIN_CRT_FALSE=
19690 fi
19691
19692
19693 # This may not be defined in a non-ANS conformant embedded system.
19694 # FIXME: Should these case a runtime exception in that case?
19695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19696 /* end confdefs.h.  */
19697 #include <time.h>
19698
19699 _ACEOF
19700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19701   $EGREP "localtime" >/dev/null 2>&1; then :
19702
19703 $as_echo "#define HAVE_LOCALTIME 1" >>confdefs.h
19704
19705 fi
19706 rm -f conftest*
19707
19708
19709 # Create the subdirectory for natFile.cc, or the attempt
19710 # to create the link will fail.
19711 test -d java || mkdir java
19712 test -d java/io || mkdir java/io
19713 test -d gnu || mkdir gnu
19714 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
19715
19716
19717 # Likewise for natConcreteProcess.cc.
19718 test -d java/lang || mkdir java/lang
19719 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
19720
19721
19722 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
19723 test -d java/net || mkdir java/net
19724 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
19725
19726 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
19727
19728
19729 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
19730 test -d gnu/java || mkdir gnu/java
19731 test -d gnu/java/net || mkdir gnu/java/net
19732 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
19733
19734 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
19735
19736
19737 # Likewise for natVMPipe.cc and natVMSelector.cc.
19738 test -d gnu/java/nio || mkdir gnu/java/nio
19739 ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
19740
19741 ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
19742
19743
19744 # Likewise for natFileChannelImpl.cc
19745 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
19746 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
19747
19748
19749 # Likewise for natVMSecureRandom.cc
19750 test -d gnu/java/security || mkdir gnu/java/security
19751 test -d gnu/java/security/jce || mkdir gnu/java/security/jce
19752 test -d gnu/java/security/jce/prng || mkdir gnu/java/security/jce/prng
19753 ac_config_links="$ac_config_links gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc"
19754
19755
19756 case "${host}" in
19757     *mingw*)
19758       SYSTEMSPEC="-lgdi32 -lws2_32"
19759       if test "${with_win32_nlsapi}" = "unicows"; then
19760         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
19761       fi
19762     ;;
19763     *-*-darwin[912]*)
19764       SYSTEMSPEC="%{!Zdynamiclib:%{!Zbundle:-allow_stack_execute}}"
19765     ;;
19766     *)
19767       SYSTEMSPEC=
19768     ;;
19769 esac
19770
19771
19772
19773 # Check whether --with-system-zlib was given.
19774 if test "${with_system_zlib+set}" = set; then :
19775   withval=$with_system_zlib;
19776 fi
19777
19778 ZLIBSPEC=
19779
19780 ZLIBTESTSPEC=
19781
19782
19783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19784 $as_echo_n "checking for X... " >&6; }
19785
19786
19787 # Check whether --with-x was given.
19788 if test "${with_x+set}" = set; then :
19789   withval=$with_x;
19790 fi
19791
19792 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19793 if test "x$with_x" = xno; then
19794   # The user explicitly disabled X.
19795   have_x=disabled
19796 else
19797   case $x_includes,$x_libraries in #(
19798     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
19799     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
19800   $as_echo_n "(cached) " >&6
19801 else
19802   # One or both of the vars are not set, and there is no cached value.
19803 ac_x_includes=no ac_x_libraries=no
19804 rm -f -r conftest.dir
19805 if mkdir conftest.dir; then
19806   cd conftest.dir
19807   cat >Imakefile <<'_ACEOF'
19808 incroot:
19809         @echo incroot='${INCROOT}'
19810 usrlibdir:
19811         @echo usrlibdir='${USRLIBDIR}'
19812 libdir:
19813         @echo libdir='${LIBDIR}'
19814 _ACEOF
19815   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19816     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19817     for ac_var in incroot usrlibdir libdir; do
19818       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19819     done
19820     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19821     for ac_extension in a so sl dylib la dll; do
19822       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19823          test -f "$ac_im_libdir/libX11.$ac_extension"; then
19824         ac_im_usrlibdir=$ac_im_libdir; break
19825       fi
19826     done
19827     # Screen out bogus values from the imake configuration.  They are
19828     # bogus both because they are the default anyway, and because
19829     # using them would break gcc on systems where it needs fixed includes.
19830     case $ac_im_incroot in
19831         /usr/include) ac_x_includes= ;;
19832         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19833     esac
19834     case $ac_im_usrlibdir in
19835         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19836         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19837     esac
19838   fi
19839   cd ..
19840   rm -f -r conftest.dir
19841 fi
19842
19843 # Standard set of common directories for X headers.
19844 # Check X11 before X11Rn because it is often a symlink to the current release.
19845 ac_x_header_dirs='
19846 /usr/X11/include
19847 /usr/X11R7/include
19848 /usr/X11R6/include
19849 /usr/X11R5/include
19850 /usr/X11R4/include
19851
19852 /usr/include/X11
19853 /usr/include/X11R7
19854 /usr/include/X11R6
19855 /usr/include/X11R5
19856 /usr/include/X11R4
19857
19858 /usr/local/X11/include
19859 /usr/local/X11R7/include
19860 /usr/local/X11R6/include
19861 /usr/local/X11R5/include
19862 /usr/local/X11R4/include
19863
19864 /usr/local/include/X11
19865 /usr/local/include/X11R7
19866 /usr/local/include/X11R6
19867 /usr/local/include/X11R5
19868 /usr/local/include/X11R4
19869
19870 /usr/X386/include
19871 /usr/x386/include
19872 /usr/XFree86/include/X11
19873
19874 /usr/include
19875 /usr/local/include
19876 /usr/unsupported/include
19877 /usr/athena/include
19878 /usr/local/x11r5/include
19879 /usr/lpp/Xamples/include
19880
19881 /usr/openwin/include
19882 /usr/openwin/share/include'
19883
19884 if test "$ac_x_includes" = no; then
19885   # Guess where to find include files, by looking for Xlib.h.
19886   # First, try using that file with no special directory specified.
19887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19888 /* end confdefs.h.  */
19889 #include <X11/Xlib.h>
19890 _ACEOF
19891 if ac_fn_c_try_cpp "$LINENO"; then :
19892   # We can compile using X headers with no special include directory.
19893 ac_x_includes=
19894 else
19895   for ac_dir in $ac_x_header_dirs; do
19896   if test -r "$ac_dir/X11/Xlib.h"; then
19897     ac_x_includes=$ac_dir
19898     break
19899   fi
19900 done
19901 fi
19902 rm -f conftest.err conftest.$ac_ext
19903 fi # $ac_x_includes = no
19904
19905 if test "$ac_x_libraries" = no; then
19906   # Check for the libraries.
19907   # See if we find them without any special options.
19908   # Don't add to $LIBS permanently.
19909   ac_save_LIBS=$LIBS
19910   LIBS="-lX11 $LIBS"
19911   if test x$gcc_no_link = xyes; then
19912   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19913 fi
19914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19915 /* end confdefs.h.  */
19916 #include <X11/Xlib.h>
19917 int
19918 main ()
19919 {
19920 XrmInitialize ()
19921   ;
19922   return 0;
19923 }
19924 _ACEOF
19925 if ac_fn_c_try_link "$LINENO"; then :
19926   LIBS=$ac_save_LIBS
19927 # We can link X programs with no special library path.
19928 ac_x_libraries=
19929 else
19930   LIBS=$ac_save_LIBS
19931 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19932 do
19933   # Don't even attempt the hair of trying to link an X program!
19934   for ac_extension in a so sl dylib la dll; do
19935     if test -r "$ac_dir/libX11.$ac_extension"; then
19936       ac_x_libraries=$ac_dir
19937       break 2
19938     fi
19939   done
19940 done
19941 fi
19942 rm -f core conftest.err conftest.$ac_objext \
19943     conftest$ac_exeext conftest.$ac_ext
19944 fi # $ac_x_libraries = no
19945
19946 case $ac_x_includes,$ac_x_libraries in #(
19947   no,* | *,no | *\'*)
19948     # Didn't find X, or a directory has "'" in its name.
19949     ac_cv_have_x="have_x=no";; #(
19950   *)
19951     # Record where we found X for the cache.
19952     ac_cv_have_x="have_x=yes\
19953         ac_x_includes='$ac_x_includes'\
19954         ac_x_libraries='$ac_x_libraries'"
19955 esac
19956 fi
19957 ;; #(
19958     *) have_x=yes;;
19959   esac
19960   eval "$ac_cv_have_x"
19961 fi # $with_x != no
19962
19963 if test "$have_x" != yes; then
19964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19965 $as_echo "$have_x" >&6; }
19966   no_x=yes
19967 else
19968   # If each of the values was on the command line, it overrides each guess.
19969   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19970   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19971   # Update the cache value to reflect the command line values.
19972   ac_cv_have_x="have_x=yes\
19973         ac_x_includes='$x_includes'\
19974         ac_x_libraries='$x_libraries'"
19975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19976 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19977 fi
19978
19979 if test "$no_x" = yes; then
19980   # Not all programs may use this symbol, but it does not hurt to define it.
19981
19982 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
19983
19984   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19985 else
19986   if test -n "$x_includes"; then
19987     X_CFLAGS="$X_CFLAGS -I$x_includes"
19988   fi
19989
19990   # It would also be nice to do this for all -L options, not just this one.
19991   if test -n "$x_libraries"; then
19992     X_LIBS="$X_LIBS -L$x_libraries"
19993     # For Solaris; some versions of Sun CC require a space after -R and
19994     # others require no space.  Words are not sufficient . . . .
19995     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
19996 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
19997     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19998     ac_xsave_c_werror_flag=$ac_c_werror_flag
19999     ac_c_werror_flag=yes
20000     if test x$gcc_no_link = xyes; then
20001   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20002 fi
20003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20004 /* end confdefs.h.  */
20005
20006 int
20007 main ()
20008 {
20009
20010   ;
20011   return 0;
20012 }
20013 _ACEOF
20014 if ac_fn_c_try_link "$LINENO"; then :
20015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20016 $as_echo "no" >&6; }
20017        X_LIBS="$X_LIBS -R$x_libraries"
20018 else
20019   LIBS="$ac_xsave_LIBS -R $x_libraries"
20020        if test x$gcc_no_link = xyes; then
20021   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20022 fi
20023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20024 /* end confdefs.h.  */
20025
20026 int
20027 main ()
20028 {
20029
20030   ;
20031   return 0;
20032 }
20033 _ACEOF
20034 if ac_fn_c_try_link "$LINENO"; then :
20035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20036 $as_echo "yes" >&6; }
20037           X_LIBS="$X_LIBS -R $x_libraries"
20038 else
20039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
20040 $as_echo "neither works" >&6; }
20041 fi
20042 rm -f core conftest.err conftest.$ac_objext \
20043     conftest$ac_exeext conftest.$ac_ext
20044 fi
20045 rm -f core conftest.err conftest.$ac_objext \
20046     conftest$ac_exeext conftest.$ac_ext
20047     ac_c_werror_flag=$ac_xsave_c_werror_flag
20048     LIBS=$ac_xsave_LIBS
20049   fi
20050
20051   # Check for system-dependent libraries X programs must link with.
20052   # Do this before checking for the system-independent R6 libraries
20053   # (-lICE), since we may need -lsocket or whatever for X linking.
20054
20055   if test "$ISC" = yes; then
20056     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20057   else
20058     # Martyn Johnson says this is needed for Ultrix, if the X
20059     # libraries were built with DECnet support.  And Karl Berry says
20060     # the Alpha needs dnet_stub (dnet does not exist).
20061     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20062     if test x$gcc_no_link = xyes; then
20063   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20064 fi
20065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20066 /* end confdefs.h.  */
20067
20068 /* Override any GCC internal prototype to avoid an error.
20069    Use char because int might match the return type of a GCC
20070    builtin and then its argument prototype would still apply.  */
20071 #ifdef __cplusplus
20072 extern "C"
20073 #endif
20074 char XOpenDisplay ();
20075 int
20076 main ()
20077 {
20078 return XOpenDisplay ();
20079   ;
20080   return 0;
20081 }
20082 _ACEOF
20083 if ac_fn_c_try_link "$LINENO"; then :
20084
20085 else
20086   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
20087 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
20088 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
20089   $as_echo_n "(cached) " >&6
20090 else
20091   ac_check_lib_save_LIBS=$LIBS
20092 LIBS="-ldnet  $LIBS"
20093 if test x$gcc_no_link = xyes; then
20094   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20095 fi
20096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20097 /* end confdefs.h.  */
20098
20099 /* Override any GCC internal prototype to avoid an error.
20100    Use char because int might match the return type of a GCC
20101    builtin and then its argument prototype would still apply.  */
20102 #ifdef __cplusplus
20103 extern "C"
20104 #endif
20105 char dnet_ntoa ();
20106 int
20107 main ()
20108 {
20109 return dnet_ntoa ();
20110   ;
20111   return 0;
20112 }
20113 _ACEOF
20114 if ac_fn_c_try_link "$LINENO"; then :
20115   ac_cv_lib_dnet_dnet_ntoa=yes
20116 else
20117   ac_cv_lib_dnet_dnet_ntoa=no
20118 fi
20119 rm -f core conftest.err conftest.$ac_objext \
20120     conftest$ac_exeext conftest.$ac_ext
20121 LIBS=$ac_check_lib_save_LIBS
20122 fi
20123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20124 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20125 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
20126   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20127 fi
20128
20129     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20130       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
20131 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
20132 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
20133   $as_echo_n "(cached) " >&6
20134 else
20135   ac_check_lib_save_LIBS=$LIBS
20136 LIBS="-ldnet_stub  $LIBS"
20137 if test x$gcc_no_link = xyes; then
20138   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20139 fi
20140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20141 /* end confdefs.h.  */
20142
20143 /* Override any GCC internal prototype to avoid an error.
20144    Use char because int might match the return type of a GCC
20145    builtin and then its argument prototype would still apply.  */
20146 #ifdef __cplusplus
20147 extern "C"
20148 #endif
20149 char dnet_ntoa ();
20150 int
20151 main ()
20152 {
20153 return dnet_ntoa ();
20154   ;
20155   return 0;
20156 }
20157 _ACEOF
20158 if ac_fn_c_try_link "$LINENO"; then :
20159   ac_cv_lib_dnet_stub_dnet_ntoa=yes
20160 else
20161   ac_cv_lib_dnet_stub_dnet_ntoa=no
20162 fi
20163 rm -f core conftest.err conftest.$ac_objext \
20164     conftest$ac_exeext conftest.$ac_ext
20165 LIBS=$ac_check_lib_save_LIBS
20166 fi
20167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20168 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20169 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
20170   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20171 fi
20172
20173     fi
20174 fi
20175 rm -f core conftest.err conftest.$ac_objext \
20176     conftest$ac_exeext conftest.$ac_ext
20177     LIBS="$ac_xsave_LIBS"
20178
20179     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20180     # to get the SysV transport functions.
20181     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20182     # needs -lnsl.
20183     # The nsl library prevents programs from opening the X display
20184     # on Irix 5.2, according to T.E. Dickey.
20185     # The functions gethostbyname, getservbyname, and inet_addr are
20186     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20187     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20188 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
20189
20190 fi
20191
20192     if test $ac_cv_func_gethostbyname = no; then
20193       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20194 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20195 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
20196   $as_echo_n "(cached) " >&6
20197 else
20198   ac_check_lib_save_LIBS=$LIBS
20199 LIBS="-lnsl  $LIBS"
20200 if test x$gcc_no_link = xyes; then
20201   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20202 fi
20203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20204 /* end confdefs.h.  */
20205
20206 /* Override any GCC internal prototype to avoid an error.
20207    Use char because int might match the return type of a GCC
20208    builtin and then its argument prototype would still apply.  */
20209 #ifdef __cplusplus
20210 extern "C"
20211 #endif
20212 char gethostbyname ();
20213 int
20214 main ()
20215 {
20216 return gethostbyname ();
20217   ;
20218   return 0;
20219 }
20220 _ACEOF
20221 if ac_fn_c_try_link "$LINENO"; then :
20222   ac_cv_lib_nsl_gethostbyname=yes
20223 else
20224   ac_cv_lib_nsl_gethostbyname=no
20225 fi
20226 rm -f core conftest.err conftest.$ac_objext \
20227     conftest$ac_exeext conftest.$ac_ext
20228 LIBS=$ac_check_lib_save_LIBS
20229 fi
20230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20231 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20232 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
20233   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20234 fi
20235
20236       if test $ac_cv_lib_nsl_gethostbyname = no; then
20237         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20238 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20239 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
20240   $as_echo_n "(cached) " >&6
20241 else
20242   ac_check_lib_save_LIBS=$LIBS
20243 LIBS="-lbsd  $LIBS"
20244 if test x$gcc_no_link = xyes; then
20245   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20246 fi
20247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20248 /* end confdefs.h.  */
20249
20250 /* Override any GCC internal prototype to avoid an error.
20251    Use char because int might match the return type of a GCC
20252    builtin and then its argument prototype would still apply.  */
20253 #ifdef __cplusplus
20254 extern "C"
20255 #endif
20256 char gethostbyname ();
20257 int
20258 main ()
20259 {
20260 return gethostbyname ();
20261   ;
20262   return 0;
20263 }
20264 _ACEOF
20265 if ac_fn_c_try_link "$LINENO"; then :
20266   ac_cv_lib_bsd_gethostbyname=yes
20267 else
20268   ac_cv_lib_bsd_gethostbyname=no
20269 fi
20270 rm -f core conftest.err conftest.$ac_objext \
20271     conftest$ac_exeext conftest.$ac_ext
20272 LIBS=$ac_check_lib_save_LIBS
20273 fi
20274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20275 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20276 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
20277   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20278 fi
20279
20280       fi
20281     fi
20282
20283     # lieder@skyler.mavd.honeywell.com says without -lsocket,
20284     # socket/setsockopt and other routines are undefined under SCO ODT
20285     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
20286     # on later versions), says Simon Leinen: it contains gethostby*
20287     # variants that don't use the name server (or something).  -lsocket
20288     # must be given before -lnsl if both are needed.  We assume that
20289     # if connect needs -lnsl, so does gethostbyname.
20290     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20291 if test "x$ac_cv_func_connect" = x""yes; then :
20292
20293 fi
20294
20295     if test $ac_cv_func_connect = no; then
20296       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20297 $as_echo_n "checking for connect in -lsocket... " >&6; }
20298 if test "${ac_cv_lib_socket_connect+set}" = set; then :
20299   $as_echo_n "(cached) " >&6
20300 else
20301   ac_check_lib_save_LIBS=$LIBS
20302 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20303 if test x$gcc_no_link = xyes; then
20304   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20305 fi
20306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20307 /* end confdefs.h.  */
20308
20309 /* Override any GCC internal prototype to avoid an error.
20310    Use char because int might match the return type of a GCC
20311    builtin and then its argument prototype would still apply.  */
20312 #ifdef __cplusplus
20313 extern "C"
20314 #endif
20315 char connect ();
20316 int
20317 main ()
20318 {
20319 return connect ();
20320   ;
20321   return 0;
20322 }
20323 _ACEOF
20324 if ac_fn_c_try_link "$LINENO"; then :
20325   ac_cv_lib_socket_connect=yes
20326 else
20327   ac_cv_lib_socket_connect=no
20328 fi
20329 rm -f core conftest.err conftest.$ac_objext \
20330     conftest$ac_exeext conftest.$ac_ext
20331 LIBS=$ac_check_lib_save_LIBS
20332 fi
20333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20334 $as_echo "$ac_cv_lib_socket_connect" >&6; }
20335 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
20336   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20337 fi
20338
20339     fi
20340
20341     # Guillermo Gomez says -lposix is necessary on A/UX.
20342     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20343 if test "x$ac_cv_func_remove" = x""yes; then :
20344
20345 fi
20346
20347     if test $ac_cv_func_remove = no; then
20348       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20349 $as_echo_n "checking for remove in -lposix... " >&6; }
20350 if test "${ac_cv_lib_posix_remove+set}" = set; then :
20351   $as_echo_n "(cached) " >&6
20352 else
20353   ac_check_lib_save_LIBS=$LIBS
20354 LIBS="-lposix  $LIBS"
20355 if test x$gcc_no_link = xyes; then
20356   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20357 fi
20358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20359 /* end confdefs.h.  */
20360
20361 /* Override any GCC internal prototype to avoid an error.
20362    Use char because int might match the return type of a GCC
20363    builtin and then its argument prototype would still apply.  */
20364 #ifdef __cplusplus
20365 extern "C"
20366 #endif
20367 char remove ();
20368 int
20369 main ()
20370 {
20371 return remove ();
20372   ;
20373   return 0;
20374 }
20375 _ACEOF
20376 if ac_fn_c_try_link "$LINENO"; then :
20377   ac_cv_lib_posix_remove=yes
20378 else
20379   ac_cv_lib_posix_remove=no
20380 fi
20381 rm -f core conftest.err conftest.$ac_objext \
20382     conftest$ac_exeext conftest.$ac_ext
20383 LIBS=$ac_check_lib_save_LIBS
20384 fi
20385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20386 $as_echo "$ac_cv_lib_posix_remove" >&6; }
20387 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
20388   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20389 fi
20390
20391     fi
20392
20393     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20394     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20395 if test "x$ac_cv_func_shmat" = x""yes; then :
20396
20397 fi
20398
20399     if test $ac_cv_func_shmat = no; then
20400       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20401 $as_echo_n "checking for shmat in -lipc... " >&6; }
20402 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
20403   $as_echo_n "(cached) " >&6
20404 else
20405   ac_check_lib_save_LIBS=$LIBS
20406 LIBS="-lipc  $LIBS"
20407 if test x$gcc_no_link = xyes; then
20408   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20409 fi
20410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20411 /* end confdefs.h.  */
20412
20413 /* Override any GCC internal prototype to avoid an error.
20414    Use char because int might match the return type of a GCC
20415    builtin and then its argument prototype would still apply.  */
20416 #ifdef __cplusplus
20417 extern "C"
20418 #endif
20419 char shmat ();
20420 int
20421 main ()
20422 {
20423 return shmat ();
20424   ;
20425   return 0;
20426 }
20427 _ACEOF
20428 if ac_fn_c_try_link "$LINENO"; then :
20429   ac_cv_lib_ipc_shmat=yes
20430 else
20431   ac_cv_lib_ipc_shmat=no
20432 fi
20433 rm -f core conftest.err conftest.$ac_objext \
20434     conftest$ac_exeext conftest.$ac_ext
20435 LIBS=$ac_check_lib_save_LIBS
20436 fi
20437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20438 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20439 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
20440   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20441 fi
20442
20443     fi
20444   fi
20445
20446   # Check for libraries that X11R6 Xt/Xaw programs need.
20447   ac_save_LDFLAGS=$LDFLAGS
20448   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20449   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20450   # check for ICE first), but we must link in the order -lSM -lICE or
20451   # we get undefined symbols.  So assume we have SM if we have ICE.
20452   # These have to be linked with before -lX11, unlike the other
20453   # libraries we check for below, so use a different variable.
20454   # John Interrante, Karl Berry
20455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20456 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20457 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
20458   $as_echo_n "(cached) " >&6
20459 else
20460   ac_check_lib_save_LIBS=$LIBS
20461 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20462 if test x$gcc_no_link = xyes; then
20463   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20464 fi
20465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20466 /* end confdefs.h.  */
20467
20468 /* Override any GCC internal prototype to avoid an error.
20469    Use char because int might match the return type of a GCC
20470    builtin and then its argument prototype would still apply.  */
20471 #ifdef __cplusplus
20472 extern "C"
20473 #endif
20474 char IceConnectionNumber ();
20475 int
20476 main ()
20477 {
20478 return IceConnectionNumber ();
20479   ;
20480   return 0;
20481 }
20482 _ACEOF
20483 if ac_fn_c_try_link "$LINENO"; then :
20484   ac_cv_lib_ICE_IceConnectionNumber=yes
20485 else
20486   ac_cv_lib_ICE_IceConnectionNumber=no
20487 fi
20488 rm -f core conftest.err conftest.$ac_objext \
20489     conftest$ac_exeext conftest.$ac_ext
20490 LIBS=$ac_check_lib_save_LIBS
20491 fi
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20493 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20494 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
20495   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20496 fi
20497
20498   LDFLAGS=$ac_save_LDFLAGS
20499
20500 fi
20501
20502
20503 # FIXME: this should be _libs on some hosts.
20504 libsubdir=.libs
20505
20506 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20507
20508 LIBSTDCXXSPEC=
20509 # extra LD Flags which are required for targets
20510 case "${host}" in
20511 *-*-darwin[0-7].*)
20512     # For now we have to disable it on darwin[8-9] because it slows down
20513     # the linking phase. A possible bug in ld?
20514     # on Darwin -single_module speeds up loading of the dynamic libraries.
20515     extra_ldflags_libjava=-Wl,-single_module
20516     ;;
20517 arm*linux*eabi)
20518     # Some of the ARM unwinder code is actually in libstdc++.  We
20519     # could in principle replicate it in libgcj, but it's better to
20520     # have a dependency on libstdc++.
20521     extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20522     LIBSTDCXXSPEC=-lstdc++
20523     LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20524     ;;
20525 *-*-cygwin)
20526     extra_ldflags_libjava=-liconv
20527     ;;
20528 esac
20529
20530 # Check for --no-merge-exidx-entries, an ARM-specific linker option.
20531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --no-merge-exidx-entries" >&5
20532 $as_echo_n "checking for --no-merge-exidx-entries... " >&6; }
20533 if test "${libgcj_cv_exidx+set}" = set; then :
20534   $as_echo_n "(cached) " >&6
20535 else
20536   saved_ldflags="$LDFLAGS"
20537    LDFLAGS="${LDFLAGS} -Wl,--no-merge-exidx-entries"
20538    # The IRIX 6 ld doesn't recognize --no-merge-exidx-entries, but only
20539    # warns about unknown options, which breaks the testsuite.  So enable
20540    # AC_LANG_WERROR, but there's currently (autoconf 2.64) no way to turn
20541    # it off again.  As a workaround, save and restore werror flag like
20542    # AC_PATH_XTRA.
20543    ac_xsave_c_werror_flag=$ac_c_werror_flag
20544
20545 ac_c_werror_flag=yes
20546    if test x$gcc_no_link = xyes; then
20547   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20548 fi
20549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20550 /* end confdefs.h.  */
20551 int main(void){ return 0;}
20552 _ACEOF
20553 if ac_fn_c_try_link "$LINENO"; then :
20554   eval "libgcj_cv_exidx=yes"
20555 else
20556   eval "libgcj_cv_exidx=no"
20557 fi
20558 rm -f core conftest.err conftest.$ac_objext \
20559     conftest$ac_exeext conftest.$ac_ext
20560    ac_c_werror_flag=$ac_xsave_c_werror_flag
20561    LDFLAGS="${saved_ldflags}"
20562
20563 fi
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcj_cv_exidx" >&5
20565 $as_echo "$libgcj_cv_exidx" >&6; }
20566 if test "${libgcj_cv_exidx}" = "yes"; then
20567   SYSTEMSPEC="${SYSTEMSPEC} --no-merge-exidx-entries"
20568   extra_ldflags="${extra_ldflags} -Wl,--no-merge-exidx-entries"
20569 fi
20570
20571
20572
20573
20574
20575
20576
20577 # Allow the GC to be disabled.  Can be useful when debugging.
20578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for garbage collector to use" >&5
20579 $as_echo_n "checking for garbage collector to use... " >&6; }
20580 # Check whether --enable-java-gc was given.
20581 if test "${enable_java_gc+set}" = set; then :
20582   enableval=$enable_java_gc; GC=$enableval
20583 else
20584   GC=boehm
20585 fi
20586
20587 GCLIBS=
20588 GCINCS=
20589 GCDEPS=
20590 GCSPEC=
20591 JC1GCSPEC=
20592 GCTESTSPEC=
20593 case "$GC" in
20594  boehm)
20595     { $as_echo "$as_me:${as_lineno-$LINENO}: result: boehm" >&5
20596 $as_echo "boehm" >&6; }
20597     GCLIBS=../boehm-gc/libgcjgc_convenience.la
20598     JC1GCSPEC='-fuse-boehm-gc'
20599     GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20600     GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20601     GCOBJS=boehm.lo
20602     GCHDR=boehm-gc.h
20603     # The POSIX thread support needs to know this.
20604
20605 $as_echo "#define HAVE_BOEHM_GC 1" >>confdefs.h
20606
20607     ;;
20608  no)
20609     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
20610 $as_echo "none" >&6; }
20611     GCHDR=no-gc.h
20612     ;;
20613  *)
20614     as_fn_error "unrecognized collector \"$GC\"" "$LINENO" 5
20615     ;;
20616 esac
20617
20618
20619
20620
20621
20622
20623 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20624
20625  if test "$GC" = boehm; then
20626   USING_BOEHMGC_TRUE=
20627   USING_BOEHMGC_FALSE='#'
20628 else
20629   USING_BOEHMGC_TRUE='#'
20630   USING_BOEHMGC_FALSE=
20631 fi
20632
20633  if test "$GC" = no; then
20634   USING_NOGC_TRUE=
20635   USING_NOGC_FALSE='#'
20636 else
20637   USING_NOGC_TRUE='#'
20638   USING_NOGC_FALSE=
20639 fi
20640
20641
20642
20643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
20644 $as_echo_n "checking for thread model used by GCC... " >&6; }
20645 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
20647 $as_echo "$THREADS" >&6; }
20648
20649 case "$THREADS" in
20650  no | none | single)
20651     THREADS=none
20652     ;;
20653  aix | posix | posix95 | pthreads)
20654     THREADS=posix
20655     case "$host" in
20656      *-*-linux*)
20657
20658 $as_echo "#define LINUX_THREADS 1" >>confdefs.h
20659
20660         ;;
20661     esac
20662     ;;
20663  win32)
20664     ;;
20665  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
20666     as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
20667     ;;
20668  *)
20669     as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
20670     ;;
20671 esac
20672
20673 THREADCXXFLAGS=
20674 THREADLDFLAGS=
20675 THREADLIBS=
20676 THREADINCS=
20677 THREADDEPS=
20678 THREADH=
20679 THREADSPEC=
20680 THREADSTARTFILESPEC=
20681 case "$THREADS" in
20682  posix)
20683     case "$host" in
20684      *-*-cygwin*)
20685         # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
20686         ;;
20687      *-*-freebsd[1234]*)
20688         # Before FreeBSD 5, it didn't have -lpthread (or any library which
20689         # merely adds pthread_* functions) but it does have a -pthread switch
20690         # which is required at link-time to select -lc_r *instead* of -lc.
20691         THREADLDFLAGS=-pthread
20692         # Don't set THREADSPEC here as might be expected since -pthread is
20693         # not processed when found within a spec file, it must come from
20694         # the command line.  For now, the user must provide the -pthread
20695         # switch to link code compiled with gcj.  In future, consider adding
20696         # support for weak references to pthread_* functions ala gthr.h API.
20697         THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20698         ;;
20699      *-*-freebsd*)
20700         # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20701         # systems which support threads and -lpthread.
20702         THREADLDFLAGS=-pthread
20703         THREADSPEC=-lpthread
20704         ;;
20705      alpha*-dec-osf* | hppa*-hp-hpux*)
20706         THREADCXXFLAGS=-pthread
20707         # boehm-gc needs some functions from librt, so link that too.
20708         THREADLIBS='-lpthread -lrt'
20709         THREADSPEC='-lpthread -lrt'
20710         ;;
20711      *)
20712         THREADLIBS=-lpthread
20713         THREADSPEC=-lpthread
20714         ;;
20715     esac
20716     THREADH=posix-threads.h
20717     # MIT pthreads doesn't seem to have the mutexattr functions.
20718     # But for now we don't check for it.  We just assume you aren't
20719     # using MIT pthreads.
20720
20721 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20722
20723
20724     # If we're using the Boehm GC, then we happen to know that it
20725     # defines _REENTRANT, so we don't bother.  Eww.
20726     if test "$GC" != boehm; then
20727
20728 $as_echo "#define _REENTRANT 1" >>confdefs.h
20729
20730     fi
20731
20732 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
20733
20734     ;;
20735
20736  win32)
20737     THREADH=win32-threads.h
20738     THREADCXXFLAGS=-mthreads
20739     # We need thread-safe exception handling so _CRT_MT should be set to 1.
20740     # But we do not want the executables created to be dependent on
20741     # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20742     # exception handling contexts.  The following kludge achieves this effect
20743     # and causes a dummy __mingwthr_key_dtor() to be linked in from
20744     # libmingw32.a.  This causes a memory leak of about 24 bytes per thread.
20745     # A workaround is to explicitly use -mthreads while linking Java programs.
20746     # See PR libgcj/28263.
20747     #
20748     # FIXME: In Java we are able to detect thread death at the end of
20749     # Thread.run() so we should be able to clean up the exception handling
20750     # contexts ourselves.
20751     THREADSTARTFILESPEC='crtmt%O%s'
20752     ;;
20753
20754  none)
20755     THREADH=no-threads.h
20756     ;;
20757 esac
20758 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20759
20760
20761
20762
20763
20764
20765
20766
20767  if test "$THREADS" = posix; then
20768   USING_POSIX_THREADS_TRUE=
20769   USING_POSIX_THREADS_FALSE='#'
20770 else
20771   USING_POSIX_THREADS_TRUE='#'
20772   USING_POSIX_THREADS_FALSE=
20773 fi
20774
20775  if test "$THREADS" = win32; then
20776   USING_WIN32_THREADS_TRUE=
20777   USING_WIN32_THREADS_FALSE='#'
20778 else
20779   USING_WIN32_THREADS_TRUE='#'
20780   USING_WIN32_THREADS_FALSE=
20781 fi
20782
20783  if test "$THREADS" = none; then
20784   USING_NO_THREADS_TRUE=
20785   USING_NO_THREADS_FALSE='#'
20786 else
20787   USING_NO_THREADS_TRUE='#'
20788   USING_NO_THREADS_FALSE=
20789 fi
20790
20791 if test "$enable_shared" != yes; then
20792   use_libgcj_bc=no
20793 fi
20794  if test "$use_libgcj_bc" = yes; then
20795   USE_LIBGCJ_BC_TRUE=
20796   USE_LIBGCJ_BC_FALSE='#'
20797 else
20798   USE_LIBGCJ_BC_TRUE='#'
20799   USE_LIBGCJ_BC_FALSE=
20800 fi
20801
20802
20803 if test -d sysdep; then true; else mkdir sysdep; fi
20804 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20805
20806 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20807
20808 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20809
20810
20811 LIBGCJ_SPEC_LGCJ=-lgcj
20812 LIBGCJ_SPEC_LGCJ_BC=-lgcj_bc
20813 if test x"$libgcj_spec_lgcj_override" != x ; then
20814   LIBGCJ_SPEC_LGCJ=$libgcj_spec_lgcj_override
20815 fi
20816 if test x"$libgcj_spec_lgcj_bc_override" != x ; then
20817   LIBGCJ_SPEC_LGCJ_BC=$libgcj_spec_lgcj_bc_override
20818 fi
20819 LIBGCJ_SPEC="%{s-bc-abi:} $LIBGCJ_SPEC_LGCJ"
20820 if test "$use_libgcj_bc" = yes; then
20821   LIBGCJ_SPEC="%{static|static-libgcj|!s-bc-abi:$LIBGCJ_SPEC_LGCJ;:$LIBGCJ_SPEC_LGCJ_BC}"
20822   LIBGCJ_BC_SPEC="%{findirect-dispatch:-fPIC}"
20823 fi
20824
20825
20826
20827 HASH_SYNC_SPEC=
20828 # Hash synchronization is only useful with posix threads right now.
20829 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20830    HASH_SYNC_SPEC=-fhash-synchronization
20831
20832 $as_echo "#define JV_HASH_SYNCHRONIZATION 1" >>confdefs.h
20833
20834 fi
20835
20836
20837  if test "$GCC" = yes; then
20838   USING_GCC_TRUE=
20839   USING_GCC_FALSE='#'
20840 else
20841   USING_GCC_TRUE='#'
20842   USING_GCC_FALSE=
20843 fi
20844
20845
20846 # We're in the tree with gcc, and need to include some of its headers.
20847 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20848
20849 if test "x${with_newlib}" = "xyes"; then
20850    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
20851    # may not work correctly, because the compiler may not be able to
20852    # link executables.
20853
20854    # We assume newlib.  This lets us hard-code the functions we know
20855    # we'll have.
20856
20857 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20858
20859
20860 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
20861
20862
20863 $as_echo "#define HAVE_TIME 1" >>confdefs.h
20864
20865
20866 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20867
20868
20869 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
20870
20871
20872 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
20873
20874    # This is only for POSIX threads.
20875
20876 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20877
20878
20879    # Assume we do not have getuid and friends.
20880
20881 $as_echo "#define NO_GETUID 1" >>confdefs.h
20882
20883    PLATFORMNET=NoNet
20884 else
20885    for ac_func in strerror_r select fstat open fsync sleep opendir \
20886                    localtime_r getpwuid_r getcwd \
20887                    access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20888                    nl_langinfo setlocale \
20889                    inet_pton uname inet_ntoa \
20890                    getrlimit sigaction ftruncate mmap \
20891                    getifaddrs
20892 do :
20893   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20894 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20895 eval as_val=\$$as_ac_var
20896    if test "x$as_val" = x""yes; then :
20897   cat >>confdefs.h <<_ACEOF
20898 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20899 _ACEOF
20900
20901 fi
20902 done
20903
20904    for ac_func in inet_aton inet_addr
20905 do :
20906   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20907 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20908 eval as_val=\$$as_ac_var
20909    if test "x$as_val" = x""yes; then :
20910   cat >>confdefs.h <<_ACEOF
20911 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20912 _ACEOF
20913  break
20914 fi
20915 done
20916
20917    for ac_header in unistd.h dlfcn.h sys/resource.h
20918 do :
20919   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20920 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20921 eval as_val=\$$as_ac_Header
20922    if test "x$as_val" = x""yes; then :
20923   cat >>confdefs.h <<_ACEOF
20924 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20925 _ACEOF
20926
20927 fi
20928
20929 done
20930
20931    # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
20932    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
20933 $as_echo_n "checking for dladdr in -ldl... " >&6; }
20934 if test "${ac_cv_lib_dl_dladdr+set}" = set; then :
20935   $as_echo_n "(cached) " >&6
20936 else
20937   ac_check_lib_save_LIBS=$LIBS
20938 LIBS="-ldl  $LIBS"
20939 if test x$gcc_no_link = xyes; then
20940   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20941 fi
20942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20943 /* end confdefs.h.  */
20944
20945 /* Override any GCC internal prototype to avoid an error.
20946    Use char because int might match the return type of a GCC
20947    builtin and then its argument prototype would still apply.  */
20948 #ifdef __cplusplus
20949 extern "C"
20950 #endif
20951 char dladdr ();
20952 int
20953 main ()
20954 {
20955 return dladdr ();
20956   ;
20957   return 0;
20958 }
20959 _ACEOF
20960 if ac_fn_c_try_link "$LINENO"; then :
20961   ac_cv_lib_dl_dladdr=yes
20962 else
20963   ac_cv_lib_dl_dladdr=no
20964 fi
20965 rm -f core conftest.err conftest.$ac_objext \
20966     conftest$ac_exeext conftest.$ac_ext
20967 LIBS=$ac_check_lib_save_LIBS
20968 fi
20969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
20970 $as_echo "$ac_cv_lib_dl_dladdr" >&6; }
20971 if test "x$ac_cv_lib_dl_dladdr" = x""yes; then :
20972
20973
20974 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
20975
20976 else
20977
20978        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldld" >&5
20979 $as_echo_n "checking for dladdr in -ldld... " >&6; }
20980 if test "${ac_cv_lib_dld_dladdr+set}" = set; then :
20981   $as_echo_n "(cached) " >&6
20982 else
20983   ac_check_lib_save_LIBS=$LIBS
20984 LIBS="-ldld  $LIBS"
20985 if test x$gcc_no_link = xyes; then
20986   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20987 fi
20988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20989 /* end confdefs.h.  */
20990
20991 /* Override any GCC internal prototype to avoid an error.
20992    Use char because int might match the return type of a GCC
20993    builtin and then its argument prototype would still apply.  */
20994 #ifdef __cplusplus
20995 extern "C"
20996 #endif
20997 char dladdr ();
20998 int
20999 main ()
21000 {
21001 return dladdr ();
21002   ;
21003   return 0;
21004 }
21005 _ACEOF
21006 if ac_fn_c_try_link "$LINENO"; then :
21007   ac_cv_lib_dld_dladdr=yes
21008 else
21009   ac_cv_lib_dld_dladdr=no
21010 fi
21011 rm -f core conftest.err conftest.$ac_objext \
21012     conftest$ac_exeext conftest.$ac_ext
21013 LIBS=$ac_check_lib_save_LIBS
21014 fi
21015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dladdr" >&5
21016 $as_echo "$ac_cv_lib_dld_dladdr" >&6; }
21017 if test "x$ac_cv_lib_dld_dladdr" = x""yes; then :
21018
21019
21020 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
21021
21022 fi
21023
21024 fi
21025
21026
21027    if test x"$cross_compiling" = x"no"; then
21028      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/exe" >&5
21029 $as_echo_n "checking for /proc/self/exe... " >&6; }
21030 if test "${ac_cv_file__proc_self_exe+set}" = set; then :
21031   $as_echo_n "(cached) " >&6
21032 else
21033   test "$cross_compiling" = yes &&
21034   as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
21035 if test -r "/proc/self/exe"; then
21036   ac_cv_file__proc_self_exe=yes
21037 else
21038   ac_cv_file__proc_self_exe=no
21039 fi
21040 fi
21041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_exe" >&5
21042 $as_echo "$ac_cv_file__proc_self_exe" >&6; }
21043 if test "x$ac_cv_file__proc_self_exe" = x""yes; then :
21044
21045 cat >>confdefs.h <<_ACEOF
21046 #define HAVE__PROC_SELF_EXE 1
21047 _ACEOF
21048
21049
21050 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
21051
21052 fi
21053
21054      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/maps" >&5
21055 $as_echo_n "checking for /proc/self/maps... " >&6; }
21056 if test "${ac_cv_file__proc_self_maps+set}" = set; then :
21057   $as_echo_n "(cached) " >&6
21058 else
21059   test "$cross_compiling" = yes &&
21060   as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
21061 if test -r "/proc/self/maps"; then
21062   ac_cv_file__proc_self_maps=yes
21063 else
21064   ac_cv_file__proc_self_maps=no
21065 fi
21066 fi
21067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_maps" >&5
21068 $as_echo "$ac_cv_file__proc_self_maps" >&6; }
21069 if test "x$ac_cv_file__proc_self_maps" = x""yes; then :
21070
21071 cat >>confdefs.h <<_ACEOF
21072 #define HAVE__PROC_SELF_MAPS 1
21073 _ACEOF
21074
21075
21076 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
21077
21078 fi
21079
21080    else
21081      case $host in
21082      *-linux*)
21083
21084 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
21085
21086
21087 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
21088
21089        ;;
21090      esac
21091    fi
21092
21093
21094       if test "X$prefix" = "XNONE"; then
21095     acl_final_prefix="$ac_default_prefix"
21096   else
21097     acl_final_prefix="$prefix"
21098   fi
21099   if test "X$exec_prefix" = "XNONE"; then
21100     acl_final_exec_prefix='${prefix}'
21101   else
21102     acl_final_exec_prefix="$exec_prefix"
21103   fi
21104   acl_save_prefix="$prefix"
21105   prefix="$acl_final_prefix"
21106   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21107   prefix="$acl_save_prefix"
21108
21109
21110 # Check whether --with-gnu-ld was given.
21111 if test "${with_gnu_ld+set}" = set; then :
21112   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
21113 else
21114   with_gnu_ld=no
21115 fi
21116
21117 # Prepare PATH_SEPARATOR.
21118 # The user is always right.
21119 if test "${PATH_SEPARATOR+set}" != set; then
21120   echo "#! /bin/sh" >conf$$.sh
21121   echo  "exit 0"   >>conf$$.sh
21122   chmod +x conf$$.sh
21123   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21124     PATH_SEPARATOR=';'
21125   else
21126     PATH_SEPARATOR=:
21127   fi
21128   rm -f conf$$.sh
21129 fi
21130 ac_prog=ld
21131 if test "$GCC" = yes; then
21132   # Check if gcc -print-prog-name=ld gives a path.
21133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
21134 $as_echo_n "checking for ld used by GCC... " >&6; }
21135   case $host in
21136   *-*-mingw*)
21137     # gcc leaves a trailing carriage return which upsets mingw
21138     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21139   *)
21140     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21141   esac
21142   case $ac_prog in
21143     # Accept absolute paths.
21144     [\\/]* | [A-Za-z]:[\\/]*)
21145       re_direlt='/[^/][^/]*/\.\./'
21146       # Canonicalize the path of ld
21147       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21148       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21149         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21150       done
21151       test -z "$LD" && LD="$ac_prog"
21152       ;;
21153   "")
21154     # If it fails, then pretend we aren't using GCC.
21155     ac_prog=ld
21156     ;;
21157   *)
21158     # If it is relative, then search for the first ld in PATH.
21159     with_gnu_ld=unknown
21160     ;;
21161   esac
21162 elif test "$with_gnu_ld" = yes; then
21163   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
21164 $as_echo_n "checking for GNU ld... " >&6; }
21165 else
21166   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
21167 $as_echo_n "checking for non-GNU ld... " >&6; }
21168 fi
21169 if test "${acl_cv_path_LD+set}" = set; then :
21170   $as_echo_n "(cached) " >&6
21171 else
21172   if test -z "$LD"; then
21173   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21174   for ac_dir in $PATH; do
21175     test -z "$ac_dir" && ac_dir=.
21176     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21177       acl_cv_path_LD="$ac_dir/$ac_prog"
21178       # Check to see if the program is GNU ld.  I'd rather use --version,
21179       # but apparently some GNU ld's only accept -v.
21180       # Break only if it was the GNU/non-GNU ld that we prefer.
21181       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
21182         test "$with_gnu_ld" != no && break
21183       else
21184         test "$with_gnu_ld" != yes && break
21185       fi
21186     fi
21187   done
21188   IFS="$ac_save_ifs"
21189 else
21190   acl_cv_path_LD="$LD" # Let the user override the test with a path.
21191 fi
21192 fi
21193
21194 LD="$acl_cv_path_LD"
21195 if test -n "$LD"; then
21196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
21197 $as_echo "$LD" >&6; }
21198 else
21199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21200 $as_echo "no" >&6; }
21201 fi
21202 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
21203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
21204 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
21205 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
21206   $as_echo_n "(cached) " >&6
21207 else
21208   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21209 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21210   acl_cv_prog_gnu_ld=yes
21211 else
21212   acl_cv_prog_gnu_ld=no
21213 fi
21214 fi
21215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
21216 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
21217 with_gnu_ld=$acl_cv_prog_gnu_ld
21218
21219
21220
21221                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
21222 $as_echo_n "checking for shared library run path origin... " >&6; }
21223 if test "${acl_cv_rpath+set}" = set; then :
21224   $as_echo_n "(cached) " >&6
21225 else
21226
21227     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21228     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21229     . ./conftest.sh
21230     rm -f ./conftest.sh
21231     acl_cv_rpath=done
21232
21233 fi
21234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
21235 $as_echo "$acl_cv_rpath" >&6; }
21236   wl="$acl_cv_wl"
21237   libext="$acl_cv_libext"
21238   shlibext="$acl_cv_shlibext"
21239   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21240   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21241   hardcode_direct="$acl_cv_hardcode_direct"
21242   hardcode_minus_L="$acl_cv_hardcode_minus_L"
21243     # Check whether --enable-rpath was given.
21244 if test "${enable_rpath+set}" = set; then :
21245   enableval=$enable_rpath; :
21246 else
21247   enable_rpath=yes
21248 fi
21249
21250
21251
21252
21253
21254
21255
21256
21257     use_additional=yes
21258
21259   acl_save_prefix="$prefix"
21260   prefix="$acl_final_prefix"
21261   acl_save_exec_prefix="$exec_prefix"
21262   exec_prefix="$acl_final_exec_prefix"
21263
21264     eval additional_includedir=\"$includedir\"
21265     eval additional_libdir=\"$libdir\"
21266
21267   exec_prefix="$acl_save_exec_prefix"
21268   prefix="$acl_save_prefix"
21269
21270
21271 # Check whether --with-libiconv-prefix was given.
21272 if test "${with_libiconv_prefix+set}" = set; then :
21273   withval=$with_libiconv_prefix;
21274     if test "X$withval" = "Xno"; then
21275       use_additional=no
21276     else
21277       if test "X$withval" = "X"; then
21278
21279   acl_save_prefix="$prefix"
21280   prefix="$acl_final_prefix"
21281   acl_save_exec_prefix="$exec_prefix"
21282   exec_prefix="$acl_final_exec_prefix"
21283
21284           eval additional_includedir=\"$includedir\"
21285           eval additional_libdir=\"$libdir\"
21286
21287   exec_prefix="$acl_save_exec_prefix"
21288   prefix="$acl_save_prefix"
21289
21290       else
21291         additional_includedir="$withval/include"
21292         additional_libdir="$withval/lib"
21293       fi
21294     fi
21295
21296 fi
21297
21298       LIBICONV=
21299   LTLIBICONV=
21300   INCICONV=
21301   rpathdirs=
21302   ltrpathdirs=
21303   names_already_handled=
21304   names_next_round='iconv '
21305   while test -n "$names_next_round"; do
21306     names_this_round="$names_next_round"
21307     names_next_round=
21308     for name in $names_this_round; do
21309       already_handled=
21310       for n in $names_already_handled; do
21311         if test "$n" = "$name"; then
21312           already_handled=yes
21313           break
21314         fi
21315       done
21316       if test -z "$already_handled"; then
21317         names_already_handled="$names_already_handled $name"
21318                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21319         eval value=\"\$HAVE_LIB$uppername\"
21320         if test -n "$value"; then
21321           if test "$value" = yes; then
21322             eval value=\"\$LIB$uppername\"
21323             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21324             eval value=\"\$LTLIB$uppername\"
21325             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21326           else
21327                                     :
21328           fi
21329         else
21330                               found_dir=
21331           found_la=
21332           found_so=
21333           found_a=
21334           if test $use_additional = yes; then
21335             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21336               found_dir="$additional_libdir"
21337               found_so="$additional_libdir/lib$name.$shlibext"
21338               if test -f "$additional_libdir/lib$name.la"; then
21339                 found_la="$additional_libdir/lib$name.la"
21340               fi
21341             else
21342               if test -f "$additional_libdir/lib$name.$libext"; then
21343                 found_dir="$additional_libdir"
21344                 found_a="$additional_libdir/lib$name.$libext"
21345                 if test -f "$additional_libdir/lib$name.la"; then
21346                   found_la="$additional_libdir/lib$name.la"
21347                 fi
21348               fi
21349             fi
21350           fi
21351           if test "X$found_dir" = "X"; then
21352             for x in $LDFLAGS $LTLIBICONV; do
21353
21354   acl_save_prefix="$prefix"
21355   prefix="$acl_final_prefix"
21356   acl_save_exec_prefix="$exec_prefix"
21357   exec_prefix="$acl_final_exec_prefix"
21358   eval x=\"$x\"
21359   exec_prefix="$acl_save_exec_prefix"
21360   prefix="$acl_save_prefix"
21361
21362               case "$x" in
21363                 -L*)
21364                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21365                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21366                     found_dir="$dir"
21367                     found_so="$dir/lib$name.$shlibext"
21368                     if test -f "$dir/lib$name.la"; then
21369                       found_la="$dir/lib$name.la"
21370                     fi
21371                   else
21372                     if test -f "$dir/lib$name.$libext"; then
21373                       found_dir="$dir"
21374                       found_a="$dir/lib$name.$libext"
21375                       if test -f "$dir/lib$name.la"; then
21376                         found_la="$dir/lib$name.la"
21377                       fi
21378                     fi
21379                   fi
21380                   ;;
21381               esac
21382               if test "X$found_dir" != "X"; then
21383                 break
21384               fi
21385             done
21386           fi
21387           if test "X$found_dir" != "X"; then
21388                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21389             if test "X$found_so" != "X"; then
21390                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21391                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21392               else
21393                                                                                 haveit=
21394                 for x in $ltrpathdirs; do
21395                   if test "X$x" = "X$found_dir"; then
21396                     haveit=yes
21397                     break
21398                   fi
21399                 done
21400                 if test -z "$haveit"; then
21401                   ltrpathdirs="$ltrpathdirs $found_dir"
21402                 fi
21403                                 if test "$hardcode_direct" = yes; then
21404                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21405                 else
21406                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21407                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21408                                                             haveit=
21409                     for x in $rpathdirs; do
21410                       if test "X$x" = "X$found_dir"; then
21411                         haveit=yes
21412                         break
21413                       fi
21414                     done
21415                     if test -z "$haveit"; then
21416                       rpathdirs="$rpathdirs $found_dir"
21417                     fi
21418                   else
21419                                                                                 haveit=
21420                     for x in $LDFLAGS $LIBICONV; do
21421
21422   acl_save_prefix="$prefix"
21423   prefix="$acl_final_prefix"
21424   acl_save_exec_prefix="$exec_prefix"
21425   exec_prefix="$acl_final_exec_prefix"
21426   eval x=\"$x\"
21427   exec_prefix="$acl_save_exec_prefix"
21428   prefix="$acl_save_prefix"
21429
21430                       if test "X$x" = "X-L$found_dir"; then
21431                         haveit=yes
21432                         break
21433                       fi
21434                     done
21435                     if test -z "$haveit"; then
21436                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21437                     fi
21438                     if test "$hardcode_minus_L" != no; then
21439                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21440                     else
21441                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21442                     fi
21443                   fi
21444                 fi
21445               fi
21446             else
21447               if test "X$found_a" != "X"; then
21448                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21449               else
21450                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21451               fi
21452             fi
21453                         additional_includedir=
21454             case "$found_dir" in
21455               */lib | */lib/)
21456                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21457                 additional_includedir="$basedir/include"
21458                 ;;
21459             esac
21460             if test "X$additional_includedir" != "X"; then
21461                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21462                 haveit=
21463                 if test "X$additional_includedir" = "X/usr/local/include"; then
21464                   if test -n "$GCC"; then
21465                     case $host_os in
21466                       linux*) haveit=yes;;
21467                     esac
21468                   fi
21469                 fi
21470                 if test -z "$haveit"; then
21471                   for x in $CPPFLAGS $INCICONV; do
21472
21473   acl_save_prefix="$prefix"
21474   prefix="$acl_final_prefix"
21475   acl_save_exec_prefix="$exec_prefix"
21476   exec_prefix="$acl_final_exec_prefix"
21477   eval x=\"$x\"
21478   exec_prefix="$acl_save_exec_prefix"
21479   prefix="$acl_save_prefix"
21480
21481                     if test "X$x" = "X-I$additional_includedir"; then
21482                       haveit=yes
21483                       break
21484                     fi
21485                   done
21486                   if test -z "$haveit"; then
21487                     if test -d "$additional_includedir"; then
21488                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21489                     fi
21490                   fi
21491                 fi
21492               fi
21493             fi
21494                         if test -n "$found_la"; then
21495                                                         save_libdir="$libdir"
21496               case "$found_la" in
21497                 */* | *\\*) . "$found_la" ;;
21498                 *) . "./$found_la" ;;
21499               esac
21500               libdir="$save_libdir"
21501                             for dep in $dependency_libs; do
21502                 case "$dep" in
21503                   -L*)
21504                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21505                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
21506                       haveit=
21507                       if test "X$additional_libdir" = "X/usr/local/lib"; then
21508                         if test -n "$GCC"; then
21509                           case $host_os in
21510                             linux*) haveit=yes;;
21511                           esac
21512                         fi
21513                       fi
21514                       if test -z "$haveit"; then
21515                         haveit=
21516                         for x in $LDFLAGS $LIBICONV; do
21517
21518   acl_save_prefix="$prefix"
21519   prefix="$acl_final_prefix"
21520   acl_save_exec_prefix="$exec_prefix"
21521   exec_prefix="$acl_final_exec_prefix"
21522   eval x=\"$x\"
21523   exec_prefix="$acl_save_exec_prefix"
21524   prefix="$acl_save_prefix"
21525
21526                           if test "X$x" = "X-L$additional_libdir"; then
21527                             haveit=yes
21528                             break
21529                           fi
21530                         done
21531                         if test -z "$haveit"; then
21532                           if test -d "$additional_libdir"; then
21533                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21534                           fi
21535                         fi
21536                         haveit=
21537                         for x in $LDFLAGS $LTLIBICONV; do
21538
21539   acl_save_prefix="$prefix"
21540   prefix="$acl_final_prefix"
21541   acl_save_exec_prefix="$exec_prefix"
21542   exec_prefix="$acl_final_exec_prefix"
21543   eval x=\"$x\"
21544   exec_prefix="$acl_save_exec_prefix"
21545   prefix="$acl_save_prefix"
21546
21547                           if test "X$x" = "X-L$additional_libdir"; then
21548                             haveit=yes
21549                             break
21550                           fi
21551                         done
21552                         if test -z "$haveit"; then
21553                           if test -d "$additional_libdir"; then
21554                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21555                           fi
21556                         fi
21557                       fi
21558                     fi
21559                     ;;
21560                   -R*)
21561                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21562                     if test "$enable_rpath" != no; then
21563                                                                   haveit=
21564                       for x in $rpathdirs; do
21565                         if test "X$x" = "X$dir"; then
21566                           haveit=yes
21567                           break
21568                         fi
21569                       done
21570                       if test -z "$haveit"; then
21571                         rpathdirs="$rpathdirs $dir"
21572                       fi
21573                                                                   haveit=
21574                       for x in $ltrpathdirs; do
21575                         if test "X$x" = "X$dir"; then
21576                           haveit=yes
21577                           break
21578                         fi
21579                       done
21580                       if test -z "$haveit"; then
21581                         ltrpathdirs="$ltrpathdirs $dir"
21582                       fi
21583                     fi
21584                     ;;
21585                   -l*)
21586                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21587                     ;;
21588                   *.la)
21589                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21590                     ;;
21591                   *)
21592                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21593                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21594                     ;;
21595                 esac
21596               done
21597             fi
21598           else
21599                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21600             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21601           fi
21602         fi
21603       fi
21604     done
21605   done
21606   if test "X$rpathdirs" != "X"; then
21607     if test -n "$hardcode_libdir_separator"; then
21608                         alldirs=
21609       for found_dir in $rpathdirs; do
21610         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21611       done
21612             acl_save_libdir="$libdir"
21613       libdir="$alldirs"
21614       eval flag=\"$hardcode_libdir_flag_spec\"
21615       libdir="$acl_save_libdir"
21616       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21617     else
21618             for found_dir in $rpathdirs; do
21619         acl_save_libdir="$libdir"
21620         libdir="$found_dir"
21621         eval flag=\"$hardcode_libdir_flag_spec\"
21622         libdir="$acl_save_libdir"
21623         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21624       done
21625     fi
21626   fi
21627   if test "X$ltrpathdirs" != "X"; then
21628             for found_dir in $ltrpathdirs; do
21629       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21630     done
21631   fi
21632
21633
21634
21635
21636
21637
21638
21639           am_save_CPPFLAGS="$CPPFLAGS"
21640
21641   for element in $INCICONV; do
21642     haveit=
21643     for x in $CPPFLAGS; do
21644
21645   acl_save_prefix="$prefix"
21646   prefix="$acl_final_prefix"
21647   acl_save_exec_prefix="$exec_prefix"
21648   exec_prefix="$acl_final_exec_prefix"
21649   eval x=\"$x\"
21650   exec_prefix="$acl_save_exec_prefix"
21651   prefix="$acl_save_prefix"
21652
21653       if test "X$x" = "X$element"; then
21654         haveit=yes
21655         break
21656       fi
21657     done
21658     if test -z "$haveit"; then
21659       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21660     fi
21661   done
21662
21663
21664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21665 $as_echo_n "checking for iconv... " >&6; }
21666 if test "${am_cv_func_iconv+set}" = set; then :
21667   $as_echo_n "(cached) " >&6
21668 else
21669
21670     am_cv_func_iconv="no, consider installing GNU libiconv"
21671     am_cv_lib_iconv=no
21672     if test x$gcc_no_link = xyes; then
21673   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21674 fi
21675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21676 /* end confdefs.h.  */
21677 #include <stdlib.h>
21678 #include <iconv.h>
21679 int
21680 main ()
21681 {
21682 iconv_t cd = iconv_open("","");
21683        iconv(cd,NULL,NULL,NULL,NULL);
21684        iconv_close(cd);
21685   ;
21686   return 0;
21687 }
21688 _ACEOF
21689 if ac_fn_c_try_link "$LINENO"; then :
21690   am_cv_func_iconv=yes
21691 fi
21692 rm -f core conftest.err conftest.$ac_objext \
21693     conftest$ac_exeext conftest.$ac_ext
21694     if test "$am_cv_func_iconv" != yes; then
21695       am_save_LIBS="$LIBS"
21696       LIBS="$LIBS $LIBICONV"
21697       if test x$gcc_no_link = xyes; then
21698   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21699 fi
21700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21701 /* end confdefs.h.  */
21702 #include <stdlib.h>
21703 #include <iconv.h>
21704 int
21705 main ()
21706 {
21707 iconv_t cd = iconv_open("","");
21708          iconv(cd,NULL,NULL,NULL,NULL);
21709          iconv_close(cd);
21710   ;
21711   return 0;
21712 }
21713 _ACEOF
21714 if ac_fn_c_try_link "$LINENO"; then :
21715   am_cv_lib_iconv=yes
21716         am_cv_func_iconv=yes
21717 fi
21718 rm -f core conftest.err conftest.$ac_objext \
21719     conftest$ac_exeext conftest.$ac_ext
21720       LIBS="$am_save_LIBS"
21721     fi
21722
21723 fi
21724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
21725 $as_echo "$am_cv_func_iconv" >&6; }
21726   if test "$am_cv_func_iconv" = yes; then
21727
21728 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
21729
21730   fi
21731   if test "$am_cv_lib_iconv" = yes; then
21732     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
21733 $as_echo_n "checking how to link with libiconv... " >&6; }
21734     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
21735 $as_echo "$LIBICONV" >&6; }
21736   else
21737             CPPFLAGS="$am_save_CPPFLAGS"
21738     LIBICONV=
21739     LTLIBICONV=
21740   fi
21741
21742
21743
21744   if test "$am_cv_func_iconv" = yes; then
21745     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
21746 $as_echo_n "checking for iconv declaration... " >&6; }
21747     if test "${am_cv_proto_iconv+set}" = set; then :
21748   $as_echo_n "(cached) " >&6
21749 else
21750
21751       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21752 /* end confdefs.h.  */
21753
21754 #include <stdlib.h>
21755 #include <iconv.h>
21756 extern
21757 #ifdef __cplusplus
21758 "C"
21759 #endif
21760 #if defined(__STDC__) || defined(__cplusplus)
21761 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21762 #else
21763 size_t iconv();
21764 #endif
21765
21766 int
21767 main ()
21768 {
21769
21770   ;
21771   return 0;
21772 }
21773 _ACEOF
21774 if ac_fn_c_try_compile "$LINENO"; then :
21775   am_cv_proto_iconv_arg1=""
21776 else
21777   am_cv_proto_iconv_arg1="const"
21778 fi
21779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21780       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);"
21781 fi
21782
21783     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21784     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
21785          }$am_cv_proto_iconv" >&5
21786 $as_echo "${ac_t:-
21787          }$am_cv_proto_iconv" >&6; }
21788
21789 cat >>confdefs.h <<_ACEOF
21790 #define ICONV_CONST $am_cv_proto_iconv_arg1
21791 _ACEOF
21792
21793   fi
21794
21795
21796   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
21797 $as_echo_n "checking for LC_MESSAGES... " >&6; }
21798 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
21799   $as_echo_n "(cached) " >&6
21800 else
21801   if test x$gcc_no_link = xyes; then
21802   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21803 fi
21804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21805 /* end confdefs.h.  */
21806 #include <locale.h>
21807 int
21808 main ()
21809 {
21810 return LC_MESSAGES
21811   ;
21812   return 0;
21813 }
21814 _ACEOF
21815 if ac_fn_c_try_link "$LINENO"; then :
21816   am_cv_val_LC_MESSAGES=yes
21817 else
21818   am_cv_val_LC_MESSAGES=no
21819 fi
21820 rm -f core conftest.err conftest.$ac_objext \
21821     conftest$ac_exeext conftest.$ac_ext
21822 fi
21823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
21824 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
21825   if test $am_cv_val_LC_MESSAGES = yes; then
21826
21827 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
21828
21829   fi
21830
21831    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21832 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21833 if test "${ac_cv_struct_tm+set}" = set; then :
21834   $as_echo_n "(cached) " >&6
21835 else
21836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21837 /* end confdefs.h.  */
21838 #include <sys/types.h>
21839 #include <time.h>
21840
21841 int
21842 main ()
21843 {
21844 struct tm tm;
21845                                      int *p = &tm.tm_sec;
21846                                      return !p;
21847   ;
21848   return 0;
21849 }
21850 _ACEOF
21851 if ac_fn_c_try_compile "$LINENO"; then :
21852   ac_cv_struct_tm=time.h
21853 else
21854   ac_cv_struct_tm=sys/time.h
21855 fi
21856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21857 fi
21858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21859 $as_echo "$ac_cv_struct_tm" >&6; }
21860 if test $ac_cv_struct_tm = sys/time.h; then
21861
21862 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21863
21864 fi
21865
21866 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21867 #include <$ac_cv_struct_tm>
21868
21869 "
21870 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21871
21872 cat >>confdefs.h <<_ACEOF
21873 #define HAVE_STRUCT_TM_TM_ZONE 1
21874 _ACEOF
21875
21876
21877 fi
21878
21879 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21880
21881 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21882
21883 else
21884   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21885 "
21886 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21887   ac_have_decl=1
21888 else
21889   ac_have_decl=0
21890 fi
21891
21892 cat >>confdefs.h <<_ACEOF
21893 #define HAVE_DECL_TZNAME $ac_have_decl
21894 _ACEOF
21895
21896   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21897 $as_echo_n "checking for tzname... " >&6; }
21898 if test "${ac_cv_var_tzname+set}" = set; then :
21899   $as_echo_n "(cached) " >&6
21900 else
21901   if test x$gcc_no_link = xyes; then
21902   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21903 fi
21904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21905 /* end confdefs.h.  */
21906 #include <time.h>
21907 #if !HAVE_DECL_TZNAME
21908 extern char *tzname[];
21909 #endif
21910
21911 int
21912 main ()
21913 {
21914 return tzname[0][0];
21915   ;
21916   return 0;
21917 }
21918 _ACEOF
21919 if ac_fn_c_try_link "$LINENO"; then :
21920   ac_cv_var_tzname=yes
21921 else
21922   ac_cv_var_tzname=no
21923 fi
21924 rm -f core conftest.err conftest.$ac_objext \
21925     conftest$ac_exeext conftest.$ac_ext
21926 fi
21927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21928 $as_echo "$ac_cv_var_tzname" >&6; }
21929   if test $ac_cv_var_tzname = yes; then
21930
21931 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21932
21933   fi
21934 fi
21935
21936
21937    for ac_func in gethostbyname_r
21938 do :
21939   ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
21940 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
21941   cat >>confdefs.h <<_ACEOF
21942 #define HAVE_GETHOSTBYNAME_R 1
21943 _ACEOF
21944
21945
21946 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
21947
21948      # There are two different kinds of gethostbyname_r.
21949      # We look for the one that returns `int'.
21950      # Hopefully this check is robust enough.
21951      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21952 /* end confdefs.h.  */
21953 #include <netdb.h>
21954
21955 _ACEOF
21956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21957   $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then :
21958
21959
21960 $as_echo "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h
21961
21962 fi
21963 rm -f conftest*
21964
21965
21966      case " $GCINCS " in
21967      *" -D_REENTRANT "*) ;;
21968      *)
21969                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
21970 $as_echo_n "checking whether gethostbyname_r declaration requires -D_REENTRANT... " >&6; }
21971 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then :
21972   $as_echo_n "(cached) " >&6
21973 else
21974    ac_ext=cpp
21975 ac_cpp='$CXXCPP $CPPFLAGS'
21976 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21977 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21978 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21979
21980           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21981 /* end confdefs.h.  */
21982 #include <netdb.h>
21983 int
21984 main ()
21985 {
21986 gethostbyname_r("", 0, 0);
21987   ;
21988   return 0;
21989 }
21990 _ACEOF
21991 if ac_fn_cxx_try_compile "$LINENO"; then :
21992   libjava_cv_gethostbyname_r_needs_reentrant=no
21993 else
21994                 CPPFLAGS_SAVE="$CPPFLAGS"
21995                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
21996                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21997 /* end confdefs.h.  */
21998 #include <netdb.h>
21999 int
22000 main ()
22001 {
22002 gethostbyname_r("", 0, 0);
22003   ;
22004   return 0;
22005 }
22006 _ACEOF
22007 if ac_fn_cxx_try_compile "$LINENO"; then :
22008   libjava_cv_gethostbyname_r_needs_reentrant=yes
22009 else
22010   libjava_cv_gethostbyname_r_needs_reentrant=fail
22011 fi
22012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22013                 CPPFLAGS="$CPPFLAGS_SAVE"
22014
22015 fi
22016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22017           ac_ext=c
22018 ac_cpp='$CPP $CPPFLAGS'
22019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22022
22023
22024 fi
22025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
22026 $as_echo "$libjava_cv_gethostbyname_r_needs_reentrant" >&6; }
22027         if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
22028
22029 $as_echo "#define _REENTRANT 1" >>confdefs.h
22030
22031         fi
22032      ;;
22033      esac
22034
22035      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct hostent_data" >&5
22036 $as_echo_n "checking for struct hostent_data... " >&6; }
22037 if test "${libjava_cv_struct_hostent_data+set}" = set; then :
22038   $as_echo_n "(cached) " >&6
22039 else
22040         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22041 /* end confdefs.h.  */
22042
22043 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
22044 # define _REENTRANT 1
22045 #endif
22046 #include <netdb.h>
22047 int
22048 main ()
22049 {
22050 struct hostent_data data;
22051   ;
22052   return 0;
22053 }
22054 _ACEOF
22055 if ac_fn_c_try_compile "$LINENO"; then :
22056   libjava_cv_struct_hostent_data=yes
22057 else
22058   libjava_cv_struct_hostent_data=no
22059 fi
22060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22061 fi
22062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_struct_hostent_data" >&5
22063 $as_echo "$libjava_cv_struct_hostent_data" >&6; }
22064      if test "x$libjava_cv_struct_hostent_data" = xyes; then
22065
22066 $as_echo "#define HAVE_STRUCT_HOSTENT_DATA 1" >>confdefs.h
22067
22068      fi
22069
22070 fi
22071 done
22072
22073
22074    # FIXME: libjava source code expects to find a prototype for
22075    # gethostbyaddr_r in netdb.h.  The outer check ensures that
22076    # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
22077    # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C
22078    # linkage check is enough, yet C++ code requires proper prototypes.)
22079    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22080 /* end confdefs.h.  */
22081 #include <netdb.h>
22082
22083 _ACEOF
22084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22085   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
22086
22087    for ac_func in gethostbyaddr_r
22088 do :
22089   ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
22090 if test "x$ac_cv_func_gethostbyaddr_r" = x""yes; then :
22091   cat >>confdefs.h <<_ACEOF
22092 #define HAVE_GETHOSTBYADDR_R 1
22093 _ACEOF
22094
22095
22096 $as_echo "#define HAVE_GETHOSTBYADDR_R 1" >>confdefs.h
22097
22098      # There are two different kinds of gethostbyaddr_r.
22099      # We look for the one that returns `int'.
22100      # Hopefully this check is robust enough.
22101      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22102 /* end confdefs.h.  */
22103 #include <netdb.h>
22104
22105 _ACEOF
22106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22107   $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then :
22108
22109
22110 $as_echo "#define GETHOSTBYADDR_R_RETURNS_INT 1" >>confdefs.h
22111
22112 fi
22113 rm -f conftest*
22114
22115 fi
22116 done
22117
22118 fi
22119 rm -f conftest*
22120
22121
22122    for ac_func in gethostname
22123 do :
22124   ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
22125 if test "x$ac_cv_func_gethostname" = x""yes; then :
22126   cat >>confdefs.h <<_ACEOF
22127 #define HAVE_GETHOSTNAME 1
22128 _ACEOF
22129
22130
22131 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
22132
22133      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22134 /* end confdefs.h.  */
22135 #include <unistd.h>
22136
22137 _ACEOF
22138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22139   $EGREP "gethostname" >/dev/null 2>&1; then :
22140
22141
22142 $as_echo "#define HAVE_GETHOSTNAME_DECL 1" >>confdefs.h
22143
22144 fi
22145 rm -f conftest*
22146
22147 fi
22148 done
22149
22150
22151    for ac_func in usleep
22152 do :
22153   ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
22154 if test "x$ac_cv_func_usleep" = x""yes; then :
22155   cat >>confdefs.h <<_ACEOF
22156 #define HAVE_USLEEP 1
22157 _ACEOF
22158
22159      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22160 /* end confdefs.h.  */
22161 #include <unistd.h>
22162
22163 _ACEOF
22164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22165   $EGREP "usleep" >/dev/null 2>&1; then :
22166
22167
22168 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
22169
22170 fi
22171 rm -f conftest*
22172
22173 fi
22174 done
22175
22176
22177    # Look for these functions in the thread library, but only bother
22178    # if using POSIX threads.
22179    if test "$THREADS" = posix; then
22180       save_LIBS="$LIBS"
22181       LIBS="$LIBS $THREADLIBS"
22182
22183       # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
22184       # Solaris 7 the name librt is preferred.
22185       for ac_func in sched_yield
22186 do :
22187   ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
22188 if test "x$ac_cv_func_sched_yield" = x""yes; then :
22189   cat >>confdefs.h <<_ACEOF
22190 #define HAVE_SCHED_YIELD 1
22191 _ACEOF
22192
22193 else
22194
22195         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
22196 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
22197 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
22198   $as_echo_n "(cached) " >&6
22199 else
22200   ac_check_lib_save_LIBS=$LIBS
22201 LIBS="-lrt  $LIBS"
22202 if test x$gcc_no_link = xyes; then
22203   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22204 fi
22205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22206 /* end confdefs.h.  */
22207
22208 /* Override any GCC internal prototype to avoid an error.
22209    Use char because int might match the return type of a GCC
22210    builtin and then its argument prototype would still apply.  */
22211 #ifdef __cplusplus
22212 extern "C"
22213 #endif
22214 char sched_yield ();
22215 int
22216 main ()
22217 {
22218 return sched_yield ();
22219   ;
22220   return 0;
22221 }
22222 _ACEOF
22223 if ac_fn_c_try_link "$LINENO"; then :
22224   ac_cv_lib_rt_sched_yield=yes
22225 else
22226   ac_cv_lib_rt_sched_yield=no
22227 fi
22228 rm -f core conftest.err conftest.$ac_objext \
22229     conftest$ac_exeext conftest.$ac_ext
22230 LIBS=$ac_check_lib_save_LIBS
22231 fi
22232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
22233 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
22234 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
22235
22236           $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22237
22238           THREADLIBS="$THREADLIBS -lrt"
22239           THREADSPEC="$THREADSPEC -lrt"
22240 else
22241
22242           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
22243 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
22244 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then :
22245   $as_echo_n "(cached) " >&6
22246 else
22247   ac_check_lib_save_LIBS=$LIBS
22248 LIBS="-lposix4  $LIBS"
22249 if test x$gcc_no_link = xyes; then
22250   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22251 fi
22252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22253 /* end confdefs.h.  */
22254
22255 /* Override any GCC internal prototype to avoid an error.
22256    Use char because int might match the return type of a GCC
22257    builtin and then its argument prototype would still apply.  */
22258 #ifdef __cplusplus
22259 extern "C"
22260 #endif
22261 char sched_yield ();
22262 int
22263 main ()
22264 {
22265 return sched_yield ();
22266   ;
22267   return 0;
22268 }
22269 _ACEOF
22270 if ac_fn_c_try_link "$LINENO"; then :
22271   ac_cv_lib_posix4_sched_yield=yes
22272 else
22273   ac_cv_lib_posix4_sched_yield=no
22274 fi
22275 rm -f core conftest.err conftest.$ac_objext \
22276     conftest$ac_exeext conftest.$ac_ext
22277 LIBS=$ac_check_lib_save_LIBS
22278 fi
22279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
22280 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
22281 if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then :
22282
22283             $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22284
22285             THREADLIBS="$THREADLIBS -lposix4"
22286             THREADSPEC="$THREADSPEC -lposix4"
22287 fi
22288
22289 fi
22290
22291 fi
22292 done
22293
22294
22295       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22296 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22297 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
22298   $as_echo_n "(cached) " >&6
22299 else
22300   ac_check_lib_save_LIBS=$LIBS
22301 LIBS="-lrt  $LIBS"
22302 if test x$gcc_no_link = xyes; then
22303   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22304 fi
22305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22306 /* end confdefs.h.  */
22307
22308 /* Override any GCC internal prototype to avoid an error.
22309    Use char because int might match the return type of a GCC
22310    builtin and then its argument prototype would still apply.  */
22311 #ifdef __cplusplus
22312 extern "C"
22313 #endif
22314 char clock_gettime ();
22315 int
22316 main ()
22317 {
22318 return clock_gettime ();
22319   ;
22320   return 0;
22321 }
22322 _ACEOF
22323 if ac_fn_c_try_link "$LINENO"; then :
22324   ac_cv_lib_rt_clock_gettime=yes
22325 else
22326   ac_cv_lib_rt_clock_gettime=no
22327 fi
22328 rm -f core conftest.err conftest.$ac_objext \
22329     conftest$ac_exeext conftest.$ac_ext
22330 LIBS=$ac_check_lib_save_LIBS
22331 fi
22332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22333 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22334 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
22335
22336
22337 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22338
22339          case "$THREADSPEC" in
22340            *-lrt*) ;;
22341            *)
22342              THREADSPEC="$THREADSPEC -lrt"
22343              THREADLIBS="$THREADLIBS -lrt"
22344              ;;
22345          esac
22346 fi
22347
22348
22349       LIBS="$save_LIBS"
22350
22351       # We can save a little space at runtime if the mutex has m_count
22352       # or __m_count.  This is a nice hack for Linux.
22353       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22354 /* end confdefs.h.  */
22355 #include <pthread.h>
22356 int
22357 main ()
22358 {
22359
22360           extern pthread_mutex_t *mutex; int q = mutex->m_count;
22361
22362   ;
22363   return 0;
22364 }
22365 _ACEOF
22366 if ac_fn_c_try_compile "$LINENO"; then :
22367
22368 $as_echo "#define PTHREAD_MUTEX_HAVE_M_COUNT 1" >>confdefs.h
22369
22370 else
22371
22372         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22373 /* end confdefs.h.  */
22374 #include <pthread.h>
22375 int
22376 main ()
22377 {
22378
22379             extern pthread_mutex_t *mutex; int q = mutex->__m_count;
22380
22381   ;
22382   return 0;
22383 }
22384 _ACEOF
22385 if ac_fn_c_try_compile "$LINENO"; then :
22386
22387 $as_echo "#define PTHREAD_MUTEX_HAVE___M_COUNT 1" >>confdefs.h
22388
22389 fi
22390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22391 fi
22392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22393    fi
22394
22395    # We require a way to get the time.
22396    time_found=no
22397    for ac_func in gettimeofday time ftime
22398 do :
22399   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22400 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22401 eval as_val=\$$as_ac_var
22402    if test "x$as_val" = x""yes; then :
22403   cat >>confdefs.h <<_ACEOF
22404 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22405 _ACEOF
22406  time_found=yes
22407 fi
22408 done
22409
22410    if test "$time_found" = no; then
22411       as_fn_error "no function found to get the time" "$LINENO" 5
22412    fi
22413
22414    for ac_func in memmove
22415 do :
22416   ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22417 if test "x$ac_cv_func_memmove" = x""yes; then :
22418   cat >>confdefs.h <<_ACEOF
22419 #define HAVE_MEMMOVE 1
22420 _ACEOF
22421
22422 fi
22423 done
22424
22425
22426    # We require memcpy.
22427    memcpy_found=no
22428    for ac_func in memcpy
22429 do :
22430   ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
22431 if test "x$ac_cv_func_memcpy" = x""yes; then :
22432   cat >>confdefs.h <<_ACEOF
22433 #define HAVE_MEMCPY 1
22434 _ACEOF
22435  memcpy_found=yes
22436 fi
22437 done
22438
22439    if test "$memcpy_found" = no; then
22440       as_fn_error "memcpy is required" "$LINENO" 5
22441    fi
22442    # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
22443    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22444 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22445 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
22446   $as_echo_n "(cached) " >&6
22447 else
22448   ac_check_lib_save_LIBS=$LIBS
22449 LIBS="-ldl  $LIBS"
22450 if test x$gcc_no_link = xyes; then
22451   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22452 fi
22453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22454 /* end confdefs.h.  */
22455
22456 /* Override any GCC internal prototype to avoid an error.
22457    Use char because int might match the return type of a GCC
22458    builtin and then its argument prototype would still apply.  */
22459 #ifdef __cplusplus
22460 extern "C"
22461 #endif
22462 char dlopen ();
22463 int
22464 main ()
22465 {
22466 return dlopen ();
22467   ;
22468   return 0;
22469 }
22470 _ACEOF
22471 if ac_fn_c_try_link "$LINENO"; then :
22472   ac_cv_lib_dl_dlopen=yes
22473 else
22474   ac_cv_lib_dl_dlopen=no
22475 fi
22476 rm -f core conftest.err conftest.$ac_objext \
22477     conftest$ac_exeext conftest.$ac_ext
22478 LIBS=$ac_check_lib_save_LIBS
22479 fi
22480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22481 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22482 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
22483
22484
22485 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22486
22487 else
22488
22489        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldld" >&5
22490 $as_echo_n "checking for dlopen in -ldld... " >&6; }
22491 if test "${ac_cv_lib_dld_dlopen+set}" = set; then :
22492   $as_echo_n "(cached) " >&6
22493 else
22494   ac_check_lib_save_LIBS=$LIBS
22495 LIBS="-ldld  $LIBS"
22496 if test x$gcc_no_link = xyes; then
22497   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22498 fi
22499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22500 /* end confdefs.h.  */
22501
22502 /* Override any GCC internal prototype to avoid an error.
22503    Use char because int might match the return type of a GCC
22504    builtin and then its argument prototype would still apply.  */
22505 #ifdef __cplusplus
22506 extern "C"
22507 #endif
22508 char dlopen ();
22509 int
22510 main ()
22511 {
22512 return dlopen ();
22513   ;
22514   return 0;
22515 }
22516 _ACEOF
22517 if ac_fn_c_try_link "$LINENO"; then :
22518   ac_cv_lib_dld_dlopen=yes
22519 else
22520   ac_cv_lib_dld_dlopen=no
22521 fi
22522 rm -f core conftest.err conftest.$ac_objext \
22523     conftest$ac_exeext conftest.$ac_ext
22524 LIBS=$ac_check_lib_save_LIBS
22525 fi
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dlopen" >&5
22527 $as_echo "$ac_cv_lib_dld_dlopen" >&6; }
22528 if test "x$ac_cv_lib_dld_dlopen" = x""yes; then :
22529
22530
22531 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22532
22533 fi
22534
22535 fi
22536
22537
22538    # Some library-finding code we stole from Tcl.
22539    #--------------------------------------------------------------------
22540    #    Check for the existence of the -lsocket and -lnsl libraries.
22541    #    The order here is important, so that they end up in the right
22542    #    order in the command line generated by make.  Here are some
22543    #    special considerations:
22544    #    1. Use "connect" and "accept" to check for -lsocket, and
22545    #       "gethostbyname" to check for -lnsl.
22546    #    2. Use each function name only once:  can't redo a check because
22547    #       autoconf caches the results of the last check and won't redo it.
22548    #    3. Use -lnsl and -lsocket only if they supply procedures that
22549    #       aren't already present in the normal libraries.  This is because
22550    #       IRIX 5.2 has libraries, but they aren't needed and they're
22551    #       bogus:  they goof up name resolution if used.
22552    #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
22553    #       To get around this problem, check for both libraries together
22554    #       if -lsocket doesn't work by itself.
22555    #--------------------------------------------------------------------
22556
22557    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
22558 $as_echo_n "checking for socket libraries... " >&6; }
22559 if test "${gcj_cv_lib_sockets+set}" = set; then :
22560   $as_echo_n "(cached) " >&6
22561 else
22562   gcj_cv_lib_sockets=
22563      gcj_checkBoth=0
22564      unset ac_cv_func_connect
22565      ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
22566 if test "x$ac_cv_func_connect" = x""yes; then :
22567   gcj_checkSocket=0
22568 else
22569   gcj_checkSocket=1
22570 fi
22571
22572      if test "$gcj_checkSocket" = 1; then
22573          unset ac_cv_func_connect
22574          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
22575 $as_echo_n "checking for main in -lsocket... " >&6; }
22576 if test "${ac_cv_lib_socket_main+set}" = set; then :
22577   $as_echo_n "(cached) " >&6
22578 else
22579   ac_check_lib_save_LIBS=$LIBS
22580 LIBS="-lsocket  $LIBS"
22581 if test x$gcc_no_link = xyes; then
22582   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22583 fi
22584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22585 /* end confdefs.h.  */
22586
22587
22588 int
22589 main ()
22590 {
22591 return main ();
22592   ;
22593   return 0;
22594 }
22595 _ACEOF
22596 if ac_fn_c_try_link "$LINENO"; then :
22597   ac_cv_lib_socket_main=yes
22598 else
22599   ac_cv_lib_socket_main=no
22600 fi
22601 rm -f core conftest.err conftest.$ac_objext \
22602     conftest$ac_exeext conftest.$ac_ext
22603 LIBS=$ac_check_lib_save_LIBS
22604 fi
22605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
22606 $as_echo "$ac_cv_lib_socket_main" >&6; }
22607 if test "x$ac_cv_lib_socket_main" = x""yes; then :
22608   gcj_cv_lib_sockets="-lsocket"
22609 else
22610   gcj_checkBoth=1
22611 fi
22612
22613      fi
22614      if test "$gcj_checkBoth" = 1; then
22615          gcj_oldLibs=$LIBS
22616          LIBS="$LIBS -lsocket -lnsl"
22617          unset ac_cv_func_accept
22618          ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
22619 if test "x$ac_cv_func_accept" = x""yes; then :
22620   gcj_checkNsl=0
22621                         gcj_cv_lib_sockets="-lsocket -lnsl"
22622 fi
22623
22624          unset ac_cv_func_accept
22625          LIBS=$gcj_oldLibs
22626      fi
22627      unset ac_cv_func_gethostbyname
22628      gcj_oldLibs=$LIBS
22629      LIBS="$LIBS $gcj_cv_lib_sockets"
22630      ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22631 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
22632
22633 else
22634   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
22635 $as_echo_n "checking for main in -lnsl... " >&6; }
22636 if test "${ac_cv_lib_nsl_main+set}" = set; then :
22637   $as_echo_n "(cached) " >&6
22638 else
22639   ac_check_lib_save_LIBS=$LIBS
22640 LIBS="-lnsl  $LIBS"
22641 if test x$gcc_no_link = xyes; then
22642   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22643 fi
22644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22645 /* end confdefs.h.  */
22646
22647
22648 int
22649 main ()
22650 {
22651 return main ();
22652   ;
22653   return 0;
22654 }
22655 _ACEOF
22656 if ac_fn_c_try_link "$LINENO"; then :
22657   ac_cv_lib_nsl_main=yes
22658 else
22659   ac_cv_lib_nsl_main=no
22660 fi
22661 rm -f core conftest.err conftest.$ac_objext \
22662     conftest$ac_exeext conftest.$ac_ext
22663 LIBS=$ac_check_lib_save_LIBS
22664 fi
22665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
22666 $as_echo "$ac_cv_lib_nsl_main" >&6; }
22667 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
22668   gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
22669 fi
22670
22671 fi
22672
22673      unset ac_cv_func_gethostbyname
22674      LIBS=$gcj_oldLIBS
22675
22676 fi
22677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcj_cv_lib_sockets" >&5
22678 $as_echo "$gcj_cv_lib_sockets" >&6; }
22679    SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
22680
22681    if test "$with_system_zlib" = yes; then
22682       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
22683 $as_echo_n "checking for deflate in -lz... " >&6; }
22684 if test "${ac_cv_lib_z_deflate+set}" = set; then :
22685   $as_echo_n "(cached) " >&6
22686 else
22687   ac_check_lib_save_LIBS=$LIBS
22688 LIBS="-lz  $LIBS"
22689 if test x$gcc_no_link = xyes; then
22690   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22691 fi
22692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22693 /* end confdefs.h.  */
22694
22695 /* Override any GCC internal prototype to avoid an error.
22696    Use char because int might match the return type of a GCC
22697    builtin and then its argument prototype would still apply.  */
22698 #ifdef __cplusplus
22699 extern "C"
22700 #endif
22701 char deflate ();
22702 int
22703 main ()
22704 {
22705 return deflate ();
22706   ;
22707   return 0;
22708 }
22709 _ACEOF
22710 if ac_fn_c_try_link "$LINENO"; then :
22711   ac_cv_lib_z_deflate=yes
22712 else
22713   ac_cv_lib_z_deflate=no
22714 fi
22715 rm -f core conftest.err conftest.$ac_objext \
22716     conftest$ac_exeext conftest.$ac_ext
22717 LIBS=$ac_check_lib_save_LIBS
22718 fi
22719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
22720 $as_echo "$ac_cv_lib_z_deflate" >&6; }
22721 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
22722   ZLIBSPEC=-lz
22723 else
22724   ZLIBSPEC=
22725 fi
22726
22727    fi
22728
22729    # Test for Gtk stuff, if asked for.
22730    if test "$use_gtk_awt" = yes; then
22731
22732   succeeded=no
22733
22734   if test -z "$PKG_CONFIG"; then
22735     # Extract the first word of "pkg-config", so it can be a program name with args.
22736 set dummy pkg-config; ac_word=$2
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22738 $as_echo_n "checking for $ac_word... " >&6; }
22739 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22740   $as_echo_n "(cached) " >&6
22741 else
22742   case $PKG_CONFIG in
22743   [\\/]* | ?:[\\/]*)
22744   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22745   ;;
22746   *)
22747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22748 for as_dir in $PATH
22749 do
22750   IFS=$as_save_IFS
22751   test -z "$as_dir" && as_dir=.
22752     for ac_exec_ext in '' $ac_executable_extensions; do
22753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22754     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22756     break 2
22757   fi
22758 done
22759   done
22760 IFS=$as_save_IFS
22761
22762   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22763   ;;
22764 esac
22765 fi
22766 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22767 if test -n "$PKG_CONFIG"; then
22768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22769 $as_echo "$PKG_CONFIG" >&6; }
22770 else
22771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22772 $as_echo "no" >&6; }
22773 fi
22774
22775
22776   fi
22777
22778   if test "$PKG_CONFIG" = "no" ; then
22779      echo "*** The pkg-config script could not be found. Make sure it is"
22780      echo "*** in your path, or set the PKG_CONFIG environment variable"
22781      echo "*** to the full path to pkg-config."
22782      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22783   else
22784      PKG_CONFIG_MIN_VERSION=0.9.0
22785      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22786         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.4" >&5
22787 $as_echo_n "checking for gtk+-2.0 >= 2.4... " >&6; }
22788
22789         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
22790             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22791 $as_echo "yes" >&6; }
22792             succeeded=yes
22793
22794             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
22795 $as_echo_n "checking GTK_CFLAGS... " >&6; }
22796             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
22797             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
22798 $as_echo "$GTK_CFLAGS" >&6; }
22799
22800             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
22801 $as_echo_n "checking GTK_LIBS... " >&6; }
22802             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
22803             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
22804 $as_echo "$GTK_LIBS" >&6; }
22805         else
22806             GTK_CFLAGS=""
22807             GTK_LIBS=""
22808             ## If we have a custom action on failure, don't print errors, but
22809             ## do set a variable so people can do so.
22810             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
22811             echo $GTK_PKG_ERRORS
22812         fi
22813
22814
22815
22816      else
22817         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22818         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22819      fi
22820   fi
22821
22822   if test $succeeded = yes; then
22823      :
22824   else
22825      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
22826   fi
22827
22828
22829
22830
22831
22832   succeeded=no
22833
22834   if test -z "$PKG_CONFIG"; then
22835     # Extract the first word of "pkg-config", so it can be a program name with args.
22836 set dummy pkg-config; ac_word=$2
22837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22838 $as_echo_n "checking for $ac_word... " >&6; }
22839 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22840   $as_echo_n "(cached) " >&6
22841 else
22842   case $PKG_CONFIG in
22843   [\\/]* | ?:[\\/]*)
22844   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22845   ;;
22846   *)
22847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22848 for as_dir in $PATH
22849 do
22850   IFS=$as_save_IFS
22851   test -z "$as_dir" && as_dir=.
22852     for ac_exec_ext in '' $ac_executable_extensions; do
22853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22854     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22856     break 2
22857   fi
22858 done
22859   done
22860 IFS=$as_save_IFS
22861
22862   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22863   ;;
22864 esac
22865 fi
22866 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22867 if test -n "$PKG_CONFIG"; then
22868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22869 $as_echo "$PKG_CONFIG" >&6; }
22870 else
22871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22872 $as_echo "no" >&6; }
22873 fi
22874
22875
22876   fi
22877
22878   if test "$PKG_CONFIG" = "no" ; then
22879      echo "*** The pkg-config script could not be found. Make sure it is"
22880      echo "*** in your path, or set the PKG_CONFIG environment variable"
22881      echo "*** to the full path to pkg-config."
22882      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22883   else
22884      PKG_CONFIG_MIN_VERSION=0.9.0
22885      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22886         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
22887 $as_echo_n "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... " >&6; }
22888
22889         if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
22890             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22891 $as_echo "yes" >&6; }
22892             succeeded=yes
22893
22894             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
22895 $as_echo_n "checking GLIB_CFLAGS... " >&6; }
22896             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22897             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
22898 $as_echo "$GLIB_CFLAGS" >&6; }
22899
22900             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
22901 $as_echo_n "checking GLIB_LIBS... " >&6; }
22902             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22903             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
22904 $as_echo "$GLIB_LIBS" >&6; }
22905         else
22906             GLIB_CFLAGS=""
22907             GLIB_LIBS=""
22908             ## If we have a custom action on failure, don't print errors, but
22909             ## do set a variable so people can do so.
22910             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22911             echo $GLIB_PKG_ERRORS
22912         fi
22913
22914
22915
22916      else
22917         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22918         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22919      fi
22920   fi
22921
22922   if test $succeeded = yes; then
22923      :
22924   else
22925      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
22926   fi
22927
22928
22929
22930
22931
22932   succeeded=no
22933
22934   if test -z "$PKG_CONFIG"; then
22935     # Extract the first word of "pkg-config", so it can be a program name with args.
22936 set dummy pkg-config; ac_word=$2
22937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22938 $as_echo_n "checking for $ac_word... " >&6; }
22939 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22940   $as_echo_n "(cached) " >&6
22941 else
22942   case $PKG_CONFIG in
22943   [\\/]* | ?:[\\/]*)
22944   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22945   ;;
22946   *)
22947   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22948 for as_dir in $PATH
22949 do
22950   IFS=$as_save_IFS
22951   test -z "$as_dir" && as_dir=.
22952     for ac_exec_ext in '' $ac_executable_extensions; do
22953   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22954     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22956     break 2
22957   fi
22958 done
22959   done
22960 IFS=$as_save_IFS
22961
22962   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22963   ;;
22964 esac
22965 fi
22966 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22967 if test -n "$PKG_CONFIG"; then
22968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22969 $as_echo "$PKG_CONFIG" >&6; }
22970 else
22971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22972 $as_echo "no" >&6; }
22973 fi
22974
22975
22976   fi
22977
22978   if test "$PKG_CONFIG" = "no" ; then
22979      echo "*** The pkg-config script could not be found. Make sure it is"
22980      echo "*** in your path, or set the PKG_CONFIG environment variable"
22981      echo "*** to the full path to pkg-config."
22982      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22983   else
22984      PKG_CONFIG_MIN_VERSION=0.9.0
22985      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22986         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libart-2.0 >= 2.1" >&5
22987 $as_echo_n "checking for libart-2.0 >= 2.1... " >&6; }
22988
22989         if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
22990             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22991 $as_echo "yes" >&6; }
22992             succeeded=yes
22993
22994             { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_CFLAGS" >&5
22995 $as_echo_n "checking LIBART_CFLAGS... " >&6; }
22996             LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
22997             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_CFLAGS" >&5
22998 $as_echo "$LIBART_CFLAGS" >&6; }
22999
23000             { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_LIBS" >&5
23001 $as_echo_n "checking LIBART_LIBS... " >&6; }
23002             LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
23003             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_LIBS" >&5
23004 $as_echo "$LIBART_LIBS" >&6; }
23005         else
23006             LIBART_CFLAGS=""
23007             LIBART_LIBS=""
23008             ## If we have a custom action on failure, don't print errors, but
23009             ## do set a variable so people can do so.
23010             LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
23011             echo $LIBART_PKG_ERRORS
23012         fi
23013
23014
23015
23016      else
23017         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23018         echo "*** See http://www.freedesktop.org/software/pkgconfig"
23019      fi
23020   fi
23021
23022   if test $succeeded = yes; then
23023      :
23024   else
23025      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
23026   fi
23027
23028
23029
23030
23031       # We require the XTest Extension to support java.awt.Robot.
23032       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
23033 $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
23034 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
23035   $as_echo_n "(cached) " >&6
23036 else
23037   ac_check_lib_save_LIBS=$LIBS
23038 LIBS="-lXtst ${X_LIBS} $LIBS"
23039 if test x$gcc_no_link = xyes; then
23040   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23041 fi
23042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23043 /* end confdefs.h.  */
23044
23045 /* Override any GCC internal prototype to avoid an error.
23046    Use char because int might match the return type of a GCC
23047    builtin and then its argument prototype would still apply.  */
23048 #ifdef __cplusplus
23049 extern "C"
23050 #endif
23051 char XTestQueryExtension ();
23052 int
23053 main ()
23054 {
23055 return XTestQueryExtension ();
23056   ;
23057   return 0;
23058 }
23059 _ACEOF
23060 if ac_fn_c_try_link "$LINENO"; then :
23061   ac_cv_lib_Xtst_XTestQueryExtension=yes
23062 else
23063   ac_cv_lib_Xtst_XTestQueryExtension=no
23064 fi
23065 rm -f core conftest.err conftest.$ac_objext \
23066     conftest$ac_exeext conftest.$ac_ext
23067 LIBS=$ac_check_lib_save_LIBS
23068 fi
23069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
23070 $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
23071 if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
23072   true
23073 else
23074   as_fn_error "libXtst not found, required by java.awt.Robot" "$LINENO" 5
23075 fi
23076
23077    fi
23078
23079    # On Solaris, and maybe other architectures, the Boehm collector
23080    # requires -ldl.
23081    if test "$GC" = boehm; then
23082       case "${host}" in
23083           mips-sgi-irix6*)
23084             # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib)
23085             # libgcj.spec is used, so override here
23086             SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}"
23087           ;;
23088           *)
23089             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
23090 $as_echo_n "checking for main in -ldl... " >&6; }
23091 if test "${ac_cv_lib_dl_main+set}" = set; then :
23092   $as_echo_n "(cached) " >&6
23093 else
23094   ac_check_lib_save_LIBS=$LIBS
23095 LIBS="-ldl  $LIBS"
23096 if test x$gcc_no_link = xyes; then
23097   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23098 fi
23099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23100 /* end confdefs.h.  */
23101
23102
23103 int
23104 main ()
23105 {
23106 return main ();
23107   ;
23108   return 0;
23109 }
23110 _ACEOF
23111 if ac_fn_c_try_link "$LINENO"; then :
23112   ac_cv_lib_dl_main=yes
23113 else
23114   ac_cv_lib_dl_main=no
23115 fi
23116 rm -f core conftest.err conftest.$ac_objext \
23117     conftest$ac_exeext conftest.$ac_ext
23118 LIBS=$ac_check_lib_save_LIBS
23119 fi
23120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
23121 $as_echo "$ac_cv_lib_dl_main" >&6; }
23122 if test "x$ac_cv_lib_dl_main" = x""yes; then :
23123   SYSTEMSPEC="$SYSTEMSPEC -ldl"
23124 fi
23125
23126           ;;
23127       esac
23128    fi
23129 fi
23130
23131 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
23132 case $build in
23133     *-mingw32) CLASSPATH_SEPARATOR=';' ;;
23134     *)         CLASSPATH_SEPARATOR=':' ;;
23135 esac
23136
23137
23138 # We must search the source tree for java.lang, since we still don't
23139 # have libgcj.jar nor java/lang/*.class
23140 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
23141 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
23142
23143 # Since some classes depend on this one, we need its source available
23144 # before we can do any GCJ compilation test :-(
23145 if test ! -f gnu/classpath/Configuration.java; then
23146   test -d gnu || mkdir gnu
23147   test -d gnu/classpath || mkdir gnu/classpath
23148   # Note that it is not crucial that all the values here be correct.
23149   sed -e "s,@prefix@,$expanded_prefix," \
23150       -e "s,@VERSION@,$VERSION," \
23151       -e "s,@LIBDEBUG@,false," \
23152       -e "s,@INIT_LOAD_LIBRARY@,false," \
23153       -e "s,@@,$LIBGCJDEBUG," \
23154       -e "s,@default_toolkit@,$TOOLKIT," \
23155       -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
23156       -e "s,@GTK_CAIRO_ENABLED@,false," \
23157       -e "s,@ECJ_JAR@,," \
23158       -e "s,@WANT_NATIVE_BIG_INTEGER@,false," \
23159         < $srcdir/classpath/gnu/classpath/Configuration.java.in \
23160         > gnu/classpath/Configuration.java
23161   # We do not want to redirect the output of the grep below to /dev/null,
23162   # but we add /dev/null to the input list so that grep will print the
23163   # filename of Configuration.java in case it finds any matches.
23164   if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
23165     as_fn_error "configure.ac is missing the substitutions above" "$LINENO" 5
23166   fi
23167 fi
23168
23169
23170 if test -n "$ac_tool_prefix"; then
23171   for ac_prog in gcj
23172   do
23173     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23174 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23176 $as_echo_n "checking for $ac_word... " >&6; }
23177 if test "${ac_cv_prog_GCJ+set}" = set; then :
23178   $as_echo_n "(cached) " >&6
23179 else
23180   if test -n "$GCJ"; then
23181   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
23182 else
23183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23184 for as_dir in $PATH
23185 do
23186   IFS=$as_save_IFS
23187   test -z "$as_dir" && as_dir=.
23188     for ac_exec_ext in '' $ac_executable_extensions; do
23189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23190     ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
23191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23192     break 2
23193   fi
23194 done
23195   done
23196 IFS=$as_save_IFS
23197
23198 fi
23199 fi
23200 GCJ=$ac_cv_prog_GCJ
23201 if test -n "$GCJ"; then
23202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
23203 $as_echo "$GCJ" >&6; }
23204 else
23205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23206 $as_echo "no" >&6; }
23207 fi
23208
23209
23210     test -n "$GCJ" && break
23211   done
23212 fi
23213 if test -z "$GCJ"; then
23214   ac_ct_GCJ=$GCJ
23215   for ac_prog in gcj
23216 do
23217   # Extract the first word of "$ac_prog", so it can be a program name with args.
23218 set dummy $ac_prog; ac_word=$2
23219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23220 $as_echo_n "checking for $ac_word... " >&6; }
23221 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
23222   $as_echo_n "(cached) " >&6
23223 else
23224   if test -n "$ac_ct_GCJ"; then
23225   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
23226 else
23227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23228 for as_dir in $PATH
23229 do
23230   IFS=$as_save_IFS
23231   test -z "$as_dir" && as_dir=.
23232     for ac_exec_ext in '' $ac_executable_extensions; do
23233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23234     ac_cv_prog_ac_ct_GCJ="$ac_prog"
23235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23236     break 2
23237   fi
23238 done
23239   done
23240 IFS=$as_save_IFS
23241
23242 fi
23243 fi
23244 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
23245 if test -n "$ac_ct_GCJ"; then
23246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
23247 $as_echo "$ac_ct_GCJ" >&6; }
23248 else
23249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23250 $as_echo "no" >&6; }
23251 fi
23252
23253
23254   test -n "$ac_ct_GCJ" && break
23255 done
23256
23257   if test "x$ac_ct_GCJ" = x; then
23258     GCJ="gcj"
23259   else
23260     case $cross_compiling:$ac_tool_warned in
23261 yes:)
23262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23264 ac_tool_warned=yes ;;
23265 esac
23266     GCJ=$ac_ct_GCJ
23267   fi
23268 fi
23269
23270 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
23271 if test "x${GCJFLAGS-unset}" = xunset; then
23272    GCJFLAGS="-g -O2"
23273 fi
23274
23275
23276 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
23277
23278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23279 $as_echo_n "checking dependency style of $depcc... " >&6; }
23280 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
23281   $as_echo_n "(cached) " >&6
23282 else
23283   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23284   # We make a subdir and do the tests there.  Otherwise we can end up
23285   # making bogus files that we don't know about and never remove.  For
23286   # instance it was reported that on HP-UX the gcc test will end up
23287   # making a dummy file named `D' -- because `-MD' means `put the output
23288   # in D'.
23289   mkdir conftest.dir
23290   # Copy depcomp to subdir because otherwise we won't find it if we're
23291   # using a relative directory.
23292   cp "$am_depcomp" conftest.dir
23293   cd conftest.dir
23294   # We will build objects and dependencies in a subdirectory because
23295   # it helps to detect inapplicable dependency modes.  For instance
23296   # both Tru64's cc and ICC support -MD to output dependencies as a
23297   # side effect of compilation, but ICC will put the dependencies in
23298   # the current directory while Tru64 will put them in the object
23299   # directory.
23300   mkdir sub
23301
23302   am_cv_GCJ_dependencies_compiler_type=none
23303   if test "$am_compiler_list" = ""; then
23304      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23305   fi
23306   am__universal=false
23307
23308
23309   for depmode in $am_compiler_list; do
23310     # Setup a source with many dependencies, because some compilers
23311     # like to wrap large dependency lists on column 80 (with \), and
23312     # we should not choose a depcomp mode which is confused by this.
23313     #
23314     # We need to recreate these files for each test, as the compiler may
23315     # overwrite some of them when testing with obscure command lines.
23316     # This happens at least with the AIX C compiler.
23317     : > sub/conftest.c
23318     for i in 1 2 3 4 5 6; do
23319       echo '#include "conftst'$i'.h"' >> sub/conftest.c
23320       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23321       # Solaris 8's {/usr,}/bin/sh.
23322       touch sub/conftst$i.h
23323     done
23324     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23325
23326     # We check with `-c' and `-o' for the sake of the "dashmstdout"
23327     # mode.  It turns out that the SunPro C++ compiler does not properly
23328     # handle `-M -o', and we need to detect this.  Also, some Intel
23329     # versions had trouble with output in subdirs
23330     am__obj=sub/conftest.${OBJEXT-o}
23331     am__minus_obj="-o $am__obj"
23332     case $depmode in
23333     gcc)
23334       # This depmode causes a compiler race in universal mode.
23335       test "$am__universal" = false || continue
23336       ;;
23337     nosideeffect)
23338       # after this tag, mechanisms are not by side-effect, so they'll
23339       # only be used when explicitly requested
23340       if test "x$enable_dependency_tracking" = xyes; then
23341         continue
23342       else
23343         break
23344       fi
23345       ;;
23346     msvisualcpp | msvcmsys)
23347       # This compiler won't grok `-c -o', but also, the minuso test has
23348       # not run yet.  These depmodes are late enough in the game, and
23349       # so weak that their functioning should not be impacted.
23350       am__obj=conftest.${OBJEXT-o}
23351       am__minus_obj=
23352       ;;
23353     none) break ;;
23354     esac
23355     if depmode=$depmode \
23356        source=sub/conftest.c object=$am__obj \
23357        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23358        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23359          >/dev/null 2>conftest.err &&
23360        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23361        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23362        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23363        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23364       # icc doesn't choke on unknown options, it will just issue warnings
23365       # or remarks (even with -Werror).  So we grep stderr for any message
23366       # that says an option was ignored or not supported.
23367       # When given -MP, icc 7.0 and 7.1 complain thusly:
23368       #   icc: Command line warning: ignoring option '-M'; no argument required
23369       # The diagnosis changed in icc 8.0:
23370       #   icc: Command line remark: option '-MP' not supported
23371       if (grep 'ignoring option' conftest.err ||
23372           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23373         am_cv_GCJ_dependencies_compiler_type=$depmode
23374         break
23375       fi
23376     fi
23377   done
23378
23379   cd ..
23380   rm -rf conftest.dir
23381 else
23382   am_cv_GCJ_dependencies_compiler_type=none
23383 fi
23384
23385 fi
23386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
23387 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
23388 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
23389
23390  if
23391   test "x$enable_dependency_tracking" != xno \
23392   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
23393   am__fastdepGCJ_TRUE=
23394   am__fastdepGCJ_FALSE='#'
23395 else
23396   am__fastdepGCJ_TRUE='#'
23397   am__fastdepGCJ_FALSE=
23398 fi
23399
23400
23401
23402
23403 # Now remove it.
23404 rm -f gnu/classpath/Configuration.java
23405
23406 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
23407
23408 # The cast to long int works around a bug in the HP C Compiler
23409 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23410 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23411 # This bug is HP SR number 8606223364.
23412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
23413 $as_echo_n "checking size of void *... " >&6; }
23414 if test "${ac_cv_sizeof_void_p+set}" = set; then :
23415   $as_echo_n "(cached) " >&6
23416 else
23417   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
23418
23419 else
23420   if test "$ac_cv_type_void_p" = yes; then
23421      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23423 { as_fn_set_status 77
23424 as_fn_error "cannot compute sizeof (void *)
23425 See \`config.log' for more details." "$LINENO" 5; }; }
23426    else
23427      ac_cv_sizeof_void_p=0
23428    fi
23429 fi
23430
23431 fi
23432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
23433 $as_echo "$ac_cv_sizeof_void_p" >&6; }
23434
23435
23436
23437 cat >>confdefs.h <<_ACEOF
23438 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23439 _ACEOF
23440
23441
23442
23443  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23444 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23445 if test "${ac_cv_c_bigendian+set}" = set; then :
23446   $as_echo_n "(cached) " >&6
23447 else
23448   ac_cv_c_bigendian=unknown
23449     # See if we're dealing with a universal compiler.
23450     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23451 /* end confdefs.h.  */
23452 #ifndef __APPLE_CC__
23453                not a universal capable compiler
23454              #endif
23455              typedef int dummy;
23456
23457 _ACEOF
23458 if ac_fn_c_try_compile "$LINENO"; then :
23459
23460         # Check for potential -arch flags.  It is not universal unless
23461         # there are at least two -arch flags with different values.
23462         ac_arch=
23463         ac_prev=
23464         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23465          if test -n "$ac_prev"; then
23466            case $ac_word in
23467              i?86 | x86_64 | ppc | ppc64)
23468                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23469                  ac_arch=$ac_word
23470                else
23471                  ac_cv_c_bigendian=universal
23472                  break
23473                fi
23474                ;;
23475            esac
23476            ac_prev=
23477          elif test "x$ac_word" = "x-arch"; then
23478            ac_prev=arch
23479          fi
23480        done
23481 fi
23482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23483     if test $ac_cv_c_bigendian = unknown; then
23484       # See if sys/param.h defines the BYTE_ORDER macro.
23485       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23486 /* end confdefs.h.  */
23487 #include <sys/types.h>
23488              #include <sys/param.h>
23489
23490 int
23491 main ()
23492 {
23493 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23494                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23495                      && LITTLE_ENDIAN)
23496               bogus endian macros
23497              #endif
23498
23499   ;
23500   return 0;
23501 }
23502 _ACEOF
23503 if ac_fn_c_try_compile "$LINENO"; then :
23504   # It does; now see whether it defined to BIG_ENDIAN or not.
23505          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23506 /* end confdefs.h.  */
23507 #include <sys/types.h>
23508                 #include <sys/param.h>
23509
23510 int
23511 main ()
23512 {
23513 #if BYTE_ORDER != BIG_ENDIAN
23514                  not big endian
23515                 #endif
23516
23517   ;
23518   return 0;
23519 }
23520 _ACEOF
23521 if ac_fn_c_try_compile "$LINENO"; then :
23522   ac_cv_c_bigendian=yes
23523 else
23524   ac_cv_c_bigendian=no
23525 fi
23526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23527 fi
23528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23529     fi
23530     if test $ac_cv_c_bigendian = unknown; then
23531       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23532       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23533 /* end confdefs.h.  */
23534 #include <limits.h>
23535
23536 int
23537 main ()
23538 {
23539 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23540               bogus endian macros
23541              #endif
23542
23543   ;
23544   return 0;
23545 }
23546 _ACEOF
23547 if ac_fn_c_try_compile "$LINENO"; then :
23548   # It does; now see whether it defined to _BIG_ENDIAN or not.
23549          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23550 /* end confdefs.h.  */
23551 #include <limits.h>
23552
23553 int
23554 main ()
23555 {
23556 #ifndef _BIG_ENDIAN
23557                  not big endian
23558                 #endif
23559
23560   ;
23561   return 0;
23562 }
23563 _ACEOF
23564 if ac_fn_c_try_compile "$LINENO"; then :
23565   ac_cv_c_bigendian=yes
23566 else
23567   ac_cv_c_bigendian=no
23568 fi
23569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23570 fi
23571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23572     fi
23573     if test $ac_cv_c_bigendian = unknown; then
23574       # Compile a test program.
23575       if test "$cross_compiling" = yes; then :
23576   # Try to guess by grepping values from an object file.
23577          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23578 /* end confdefs.h.  */
23579 short int ascii_mm[] =
23580                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23581                 short int ascii_ii[] =
23582                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23583                 int use_ascii (int i) {
23584                   return ascii_mm[i] + ascii_ii[i];
23585                 }
23586                 short int ebcdic_ii[] =
23587                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23588                 short int ebcdic_mm[] =
23589                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23590                 int use_ebcdic (int i) {
23591                   return ebcdic_mm[i] + ebcdic_ii[i];
23592                 }
23593                 extern int foo;
23594
23595 int
23596 main ()
23597 {
23598 return use_ascii (foo) == use_ebcdic (foo);
23599   ;
23600   return 0;
23601 }
23602 _ACEOF
23603 if ac_fn_c_try_compile "$LINENO"; then :
23604   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23605               ac_cv_c_bigendian=yes
23606             fi
23607             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23608               if test "$ac_cv_c_bigendian" = unknown; then
23609                 ac_cv_c_bigendian=no
23610               else
23611                 # finding both strings is unlikely to happen, but who knows?
23612                 ac_cv_c_bigendian=unknown
23613               fi
23614             fi
23615 fi
23616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23617 else
23618   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23619 /* end confdefs.h.  */
23620 $ac_includes_default
23621 int
23622 main ()
23623 {
23624
23625              /* Are we little or big endian?  From Harbison&Steele.  */
23626              union
23627              {
23628                long int l;
23629                char c[sizeof (long int)];
23630              } u;
23631              u.l = 1;
23632              return u.c[sizeof (long int) - 1] == 1;
23633
23634   ;
23635   return 0;
23636 }
23637 _ACEOF
23638 if ac_fn_c_try_run "$LINENO"; then :
23639   ac_cv_c_bigendian=no
23640 else
23641   ac_cv_c_bigendian=yes
23642 fi
23643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23644   conftest.$ac_objext conftest.beam conftest.$ac_ext
23645 fi
23646
23647     fi
23648 fi
23649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23650 $as_echo "$ac_cv_c_bigendian" >&6; }
23651  case $ac_cv_c_bigendian in #(
23652    yes)
23653      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23654 ;; #(
23655    no)
23656       ;; #(
23657    universal)
23658
23659 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23660
23661      ;; #(
23662    *)
23663      as_fn_error "unknown endianness
23664  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23665  esac
23666
23667
23668 ZLIBS=
23669 SYS_ZLIBS=
23670 ZINCS=
23671
23672 if test -z "$ZLIBSPEC"; then
23673    # Use zlib from the GCC tree.
23674    ZINCS='-I$(top_srcdir)/../zlib'
23675    ZLIBS=../zlib/libzgcj_convenience.la
23676 else
23677    # System's zlib.
23678    SYS_ZLIBS="$ZLIBSPEC"
23679 fi
23680
23681
23682
23683
23684
23685
23686
23687
23688
23689
23690  if test "$NATIVE" = yes; then
23691   NATIVE_TRUE=
23692   NATIVE_FALSE='#'
23693 else
23694   NATIVE_TRUE='#'
23695   NATIVE_FALSE=
23696 fi
23697
23698  if test "$enable_shared" = yes; then
23699   ENABLE_SHARED_TRUE=
23700   ENABLE_SHARED_FALSE='#'
23701 else
23702   ENABLE_SHARED_TRUE='#'
23703   ENABLE_SHARED_FALSE=
23704 fi
23705
23706  if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
23707   NEEDS_DATA_START_TRUE=
23708   NEEDS_DATA_START_FALSE='#'
23709 else
23710   NEEDS_DATA_START_TRUE='#'
23711   NEEDS_DATA_START_FALSE=
23712 fi
23713
23714  if test -z "${with_multisubdir}"; then
23715   INSTALL_BINARIES_TRUE=
23716   INSTALL_BINARIES_FALSE='#'
23717 else
23718   INSTALL_BINARIES_TRUE='#'
23719   INSTALL_BINARIES_FALSE=
23720 fi
23721
23722
23723
23724 # Process the option "--enable-version-specific-runtime-libs"
23725 # Calculate toolexeclibdir
23726 case ${version_specific_libs} in
23727   yes)
23728     # Need the gcc compiler version to know where to install libraries
23729     # and header files if --enable-version-specific-runtime-libs option
23730     # is selected.
23731     includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
23732     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
23733     toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
23734     toolexeclibdir=$toolexecmainlibdir
23735     ;;
23736   no)
23737     if test -n "$with_cross_host" &&
23738        test x"$with_cross_host" != x"no"; then
23739       # Install a library built with a cross compiler in tooldir, not libdir.
23740       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
23741       toolexecmainlibdir='$(toolexecdir)/lib'
23742     else
23743       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
23744       toolexecmainlibdir='$(libdir)'
23745     fi
23746     multi_os_directory=`$CC -print-multi-os-directory`
23747     case $multi_os_directory in
23748       .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
23749       *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
23750     esac
23751     ;;
23752 esac
23753
23754
23755
23756
23757 # Determine gcj and libgcj version number.
23758 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
23759 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
23760 GCJVERSION=$gcjversion
23761
23762
23763 cat >>confdefs.h <<_ACEOF
23764 #define GCJVERSION "$GCJVERSION"
23765 _ACEOF
23766
23767
23768 # Determine where the standard .db file and GNU Classpath JNI
23769 # libraries are found.
23770 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
23771 multi_os_directory=`$CC -print-multi-os-directory`
23772 case $multi_os_directory in
23773   .)
23774    dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
23775    ;;
23776   *)
23777    dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
23778    ;;
23779 esac
23780
23781
23782
23783
23784 $as_echo "#define JV_VERSION \"1.5.0\"" >>confdefs.h
23785
23786
23787 $as_echo "#define JV_API_VERSION \"1.5\"" >>confdefs.h
23788
23789
23790
23791 case "${with_gxx_include_dir}" in
23792   yes)
23793     as_fn_error "--with-gxx-include-dir=[dir] requires a directory" "$LINENO" 5
23794     ;;
23795   no | "")
23796     case "${enable_version_specific_runtime_libs}" in
23797       yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
23798       *)
23799         libstdcxx_incdir='c++/$(gcc_version)'
23800         gxx_include_dir='include/$(libstdcxx_incdir)'
23801         if test -n "$with_cross_host" &&
23802            test x"$with_cross_host" != x"no"; then
23803           gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
23804         else
23805           gxx_include_dir='${prefix}/'"$gxx_include_dir"
23806         fi;;
23807     esac ;;
23808   *) gxx_include_dir=${with_gxx_include_dir} ;;
23809 esac
23810
23811
23812
23813
23814 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
23815 # On that system, sys/ioctl.h will not include sys/filio.h unless
23816 # BSD_COMP is defined; just including sys/filio.h is simpler.
23817 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
23818 # for now.  If you change this, you also must update natFile.cc.
23819 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
23820                   sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
23821                   sys/socket.h netinet/in.h arpa/inet.h netdb.h \
23822                   pwd.h sys/config.h stdint.h langinfo.h locale.h \
23823                   dirent.h sys/rw_lock.h magic.h ifaddrs.h
23824 do :
23825   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23826 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23827 eval as_val=\$$as_ac_Header
23828    if test "x$as_val" = x""yes; then :
23829   cat >>confdefs.h <<_ACEOF
23830 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23831 _ACEOF
23832
23833 fi
23834
23835 done
23836
23837
23838 # sys/socket.h is a prerequisite for net/if.h on Solaris.
23839 for ac_header in net/if.h
23840 do :
23841   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
23842 #ifdef HAVE_SYS_SOCKET_H
23843 #include <sys/socket.h>
23844 #endif
23845
23846 "
23847 if test "x$ac_cv_header_net_if_h" = x""yes; then :
23848   cat >>confdefs.h <<_ACEOF
23849 #define HAVE_NET_IF_H 1
23850 _ACEOF
23851
23852 fi
23853
23854 done
23855
23856
23857 for ac_header in inttypes.h
23858 do :
23859   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
23860 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
23861   cat >>confdefs.h <<_ACEOF
23862 #define HAVE_INTTYPES_H 1
23863 _ACEOF
23864
23865
23866 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
23867
23868
23869 $as_echo "#define JV_HAVE_INTTYPES_H 1" >>confdefs.h
23870
23871
23872 fi
23873
23874 done
23875
23876
23877 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23878 if test "x$ac_cv_type_ssize_t" = x""yes; then :
23879
23880 else
23881
23882 cat >>confdefs.h <<_ACEOF
23883 #define ssize_t int
23884 _ACEOF
23885
23886 fi
23887
23888 ac_fn_c_check_type "$LINENO" "magic_t" "ac_cv_type_magic_t" "
23889 #ifdef HAVE_MAGIC_H
23890 #include <magic.h>
23891 #endif
23892 "
23893 if test "x$ac_cv_type_magic_t" = x""yes; then :
23894
23895
23896 $as_echo "#define HAVE_MAGIC_T 1" >>confdefs.h
23897
23898 fi
23899
23900
23901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5
23902 $as_echo_n "checking for in_addr_t... " >&6; }
23903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23904 /* end confdefs.h.  */
23905 #include <sys/types.h>
23906 #if STDC_HEADERS
23907 #include <stdlib.h>
23908 #include <stddef.h>
23909 #endif
23910 #if HAVE_NETINET_IN_H
23911 #include <netinet/in.h>
23912 #endif
23913 int
23914 main ()
23915 {
23916 in_addr_t foo;
23917   ;
23918   return 0;
23919 }
23920 _ACEOF
23921 if ac_fn_c_try_compile "$LINENO"; then :
23922
23923 $as_echo "#define HAVE_IN_ADDR_T 1" >>confdefs.h
23924
23925    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23926 $as_echo "yes" >&6; }
23927 else
23928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23929 $as_echo "no" >&6; }
23930 fi
23931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23932
23933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ip_mreq is in netinet/in.h" >&5
23934 $as_echo_n "checking whether struct ip_mreq is in netinet/in.h... " >&6; }
23935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23936 /* end confdefs.h.  */
23937 #include <netinet/in.h>
23938 int
23939 main ()
23940 {
23941 struct ip_mreq mreq;
23942   ;
23943   return 0;
23944 }
23945 _ACEOF
23946 if ac_fn_c_try_compile "$LINENO"; then :
23947
23948 $as_echo "#define HAVE_STRUCT_IP_MREQ 1" >>confdefs.h
23949
23950    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23951 $as_echo "yes" >&6; }
23952 else
23953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23954 $as_echo "no" >&6; }
23955 fi
23956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23957
23958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ipv6_mreq is in netinet/in.h" >&5
23959 $as_echo_n "checking whether struct ipv6_mreq is in netinet/in.h... " >&6; }
23960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23961 /* end confdefs.h.  */
23962 #include <netinet/in.h>
23963 int
23964 main ()
23965 {
23966 struct ipv6_mreq mreq6;
23967   ;
23968   return 0;
23969 }
23970 _ACEOF
23971 if ac_fn_c_try_compile "$LINENO"; then :
23972
23973 $as_echo "#define HAVE_STRUCT_IPV6_MREQ 1" >>confdefs.h
23974
23975    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23976 $as_echo "yes" >&6; }
23977 else
23978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23979 $as_echo "no" >&6; }
23980 fi
23981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23982
23983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
23984 $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
23985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23986 /* end confdefs.h.  */
23987 #include <netinet/in.h>
23988 int
23989 main ()
23990 {
23991 struct sockaddr_in6 addr6;
23992   ;
23993   return 0;
23994 }
23995 _ACEOF
23996 if ac_fn_c_try_compile "$LINENO"; then :
23997
23998 $as_echo "#define HAVE_INET6 1" >>confdefs.h
23999
24000    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24001 $as_echo "yes" >&6; }
24002 else
24003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24004 $as_echo "no" >&6; }
24005 fi
24006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24007
24008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
24009 $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
24010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24011 /* end confdefs.h.  */
24012 #define _POSIX_PII_SOCKET
24013 #include <sys/types.h>
24014 #include <sys/socket.h>
24015 int
24016 main ()
24017 {
24018 socklen_t x = 5;
24019   ;
24020   return 0;
24021 }
24022 _ACEOF
24023 if ac_fn_c_try_compile "$LINENO"; then :
24024
24025 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
24026
24027    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24028 $as_echo "yes" >&6; }
24029 else
24030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24031 $as_echo "no" >&6; }
24032 fi
24033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24034
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
24036 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
24037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24038 /* end confdefs.h.  */
24039 #include <time.h>
24040 int
24041 main ()
24042 {
24043 struct tm tim; tim.tm_gmtoff = 0;
24044   ;
24045   return 0;
24046 }
24047 _ACEOF
24048 if ac_fn_c_try_compile "$LINENO"; then :
24049
24050 $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
24051
24052    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24053 $as_echo "yes" >&6; }
24054 else
24055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24056 $as_echo "no" >&6; }
24057    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
24058 $as_echo_n "checking for global timezone variable... " >&6; }
24059                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24060 /* end confdefs.h.  */
24061 #include <time.h>
24062 int
24063 main ()
24064 {
24065 void i(){long z2 = 2*timezone;}
24066   ;
24067   return 0;
24068 }
24069 _ACEOF
24070 if ac_fn_c_try_compile "$LINENO"; then :
24071
24072 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
24073
24074       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24075 $as_echo "yes" >&6; }
24076 else
24077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24078 $as_echo "no" >&6; }
24079        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
24080 $as_echo_n "checking for global _timezone variable... " >&6; }
24081               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24082 /* end confdefs.h.  */
24083 #include <time.h>
24084 int
24085 main ()
24086 {
24087 long z2 = _timezone;
24088   ;
24089   return 0;
24090 }
24091 _ACEOF
24092 if ac_fn_c_try_compile "$LINENO"; then :
24093
24094 $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
24095
24096           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24097 $as_echo "yes" >&6; }
24098 else
24099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24100 $as_echo "no" >&6; }
24101 fi
24102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24103 fi
24104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24105 fi
24106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24107
24108 for ac_prog in perl
24109 do
24110   # Extract the first word of "$ac_prog", so it can be a program name with args.
24111 set dummy $ac_prog; ac_word=$2
24112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24113 $as_echo_n "checking for $ac_word... " >&6; }
24114 if test "${ac_cv_prog_PERL+set}" = set; then :
24115   $as_echo_n "(cached) " >&6
24116 else
24117   if test -n "$PERL"; then
24118   ac_cv_prog_PERL="$PERL" # Let the user override the test.
24119 else
24120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24121 for as_dir in $PATH
24122 do
24123   IFS=$as_save_IFS
24124   test -z "$as_dir" && as_dir=.
24125     for ac_exec_ext in '' $ac_executable_extensions; do
24126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24127     ac_cv_prog_PERL="$ac_prog"
24128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24129     break 2
24130   fi
24131 done
24132   done
24133 IFS=$as_save_IFS
24134
24135 fi
24136 fi
24137 PERL=$ac_cv_prog_PERL
24138 if test -n "$PERL"; then
24139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
24140 $as_echo "$PERL" >&6; }
24141 else
24142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24143 $as_echo "no" >&6; }
24144 fi
24145
24146
24147   test -n "$PERL" && break
24148 done
24149 test -n "$PERL" || PERL="false"
24150
24151
24152 SYSDEP_SOURCES=
24153 SIGNAL_HANDLER_AUX=
24154
24155 case "${host}" in
24156  i?86-*-linux*)
24157     SIGNAL_HANDLER=include/i386-signal.h
24158     ;;
24159  sparc*-sun-solaris*)
24160     SIGNAL_HANDLER=include/sparc-signal.h
24161     ;;
24162 # ia64-*)
24163 #    SYSDEP_SOURCES=sysdep/ia64.c
24164 #    test -d sysdep || mkdir sysdep
24165 #    ;;
24166  hppa*-*-linux*)
24167     SIGNAL_HANDLER=include/pa-signal.h
24168     ;;
24169  hppa*-hp-hpux*)
24170     SIGNAL_HANDLER=include/hppa-signal.h
24171     ;;
24172  ia64-*-linux*)
24173     SIGNAL_HANDLER=include/dwarf2-signal.h
24174     ;;
24175  powerpc*-*-linux*)
24176     SIGNAL_HANDLER=include/powerpc-signal.h
24177     ;;
24178  alpha*-*-linux*)
24179     SIGNAL_HANDLER=include/dwarf2-signal.h
24180     ;;
24181  s390*-*-linux*)
24182     SIGNAL_HANDLER=include/s390-signal.h
24183     ;;
24184  x86_64*-*-linux*)
24185     SIGNAL_HANDLER=include/x86_64-signal.h
24186     SIGNAL_HANDLER_AUX=include/i386-signal.h
24187     ;;
24188  sparc*-*-linux*)
24189     SIGNAL_HANDLER=include/dwarf2-signal.h
24190     ;;
24191  sh*-*-linux*)
24192     SIGNAL_HANDLER=include/sh-signal.h
24193     ;;
24194  *mingw*)
24195     SIGNAL_HANDLER=include/win32-signal.h
24196     ;;
24197  mips*-*-linux*)
24198     SIGNAL_HANDLER=include/mips-signal.h
24199     ;;
24200  m68*-*-linux*)
24201     SIGNAL_HANDLER=include/dwarf2-signal.h
24202     ;;
24203  powerpc*-*-darwin* | i?86-*-darwin[912]* | x86_64-*-darwin[912]*)
24204     SIGNAL_HANDLER=include/darwin-signal.h
24205     ;;
24206  powerpc*-*-aix*)
24207     SIGNAL_HANDLER=include/aix-signal.h
24208     ;;
24209  *)
24210     SIGNAL_HANDLER=include/default-signal.h
24211     ;;
24212 esac
24213
24214 # If we're using sjlj exceptions, forget what we just learned.
24215 if test "$enable_sjlj_exceptions" = yes; then
24216    SIGNAL_HANDLER=include/default-signal.h
24217    SIGNAL_HANDLER_AUX=
24218 fi
24219
24220
24221
24222 if test -z "$SIGNAL_HANDLER_AUX"; then
24223   SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
24224 fi
24225
24226 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
24227
24228
24229 if test "${multilib}" = "yes"; then
24230   multilib_arg="--enable-multilib"
24231 else
24232   multilib_arg=
24233 fi
24234
24235 # See if we support thread-local storage.
24236
24237
24238    # Check whether --enable-tls was given.
24239 if test "${enable_tls+set}" = set; then :
24240   enableval=$enable_tls;
24241       case "$enableval" in
24242        yes|no) ;;
24243        *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
24244       esac
24245
24246 else
24247   enable_tls=yes
24248 fi
24249
24250
24251   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
24252 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
24253 if test "${gcc_cv_have_tls+set}" = set; then :
24254   $as_echo_n "(cached) " >&6
24255 else
24256
24257     if test "$cross_compiling" = yes; then :
24258                 if test x$gcc_no_link = xyes; then
24259   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24260 fi
24261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24262 /* end confdefs.h.  */
24263 __thread int a; int b; int main() { return a = b; }
24264 _ACEOF
24265 if ac_fn_c_try_link "$LINENO"; then :
24266   chktls_save_LDFLAGS="$LDFLAGS"
24267                           case $host in
24268             *-*-linux*)
24269               LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
24270               ;;
24271           esac
24272           chktls_save_CFLAGS="$CFLAGS"
24273           CFLAGS="-fPIC $CFLAGS"
24274                   if test x$gcc_no_link = xyes; then
24275   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24276 fi
24277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24278 /* end confdefs.h.  */
24279 int f() { return 0; }
24280 _ACEOF
24281 if ac_fn_c_try_link "$LINENO"; then :
24282   if test x$gcc_no_link = xyes; then
24283   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24284 fi
24285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24286 /* end confdefs.h.  */
24287 __thread int a; int b; int f() { return a = b; }
24288 _ACEOF
24289 if ac_fn_c_try_link "$LINENO"; then :
24290   gcc_cv_have_tls=yes
24291 else
24292   gcc_cv_have_tls=no
24293 fi
24294 rm -f core conftest.err conftest.$ac_objext \
24295     conftest$ac_exeext conftest.$ac_ext
24296 else
24297   gcc_cv_have_tls=yes
24298 fi
24299 rm -f core conftest.err conftest.$ac_objext \
24300     conftest$ac_exeext conftest.$ac_ext
24301           CFLAGS="$chktls_save_CFLAGS"
24302           LDFLAGS="$chktls_save_LDFLAGS"
24303 else
24304   gcc_cv_have_tls=no
24305 fi
24306 rm -f core conftest.err conftest.$ac_objext \
24307     conftest$ac_exeext conftest.$ac_ext
24308
24309
24310 else
24311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24312 /* end confdefs.h.  */
24313 __thread int a; int b; int main() { return a = b; }
24314 _ACEOF
24315 if ac_fn_c_try_run "$LINENO"; then :
24316                       chktls_save_LDFLAGS="$LDFLAGS"
24317       LDFLAGS="-static $LDFLAGS"
24318       if test x$gcc_no_link = xyes; then
24319   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24320 fi
24321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24322 /* end confdefs.h.  */
24323 int main() { return 0; }
24324 _ACEOF
24325 if ac_fn_c_try_link "$LINENO"; then :
24326   if test "$cross_compiling" = yes; then :
24327   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24329 as_fn_error "cannot run test program while cross compiling
24330 See \`config.log' for more details." "$LINENO" 5; }
24331 else
24332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24333 /* end confdefs.h.  */
24334 __thread int a; int b; int main() { return a = b; }
24335 _ACEOF
24336 if ac_fn_c_try_run "$LINENO"; then :
24337   gcc_cv_have_tls=yes
24338 else
24339   gcc_cv_have_tls=no
24340 fi
24341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24342   conftest.$ac_objext conftest.beam conftest.$ac_ext
24343 fi
24344
24345 else
24346   gcc_cv_have_tls=yes
24347 fi
24348 rm -f core conftest.err conftest.$ac_objext \
24349     conftest$ac_exeext conftest.$ac_ext
24350       LDFLAGS="$chktls_save_LDFLAGS"
24351       if test $gcc_cv_have_tls = yes; then
24352                                                 chktls_save_CFLAGS="$CFLAGS"
24353         thread_CFLAGS=failed
24354         for flag in '' '-pthread' '-lpthread'; do
24355           CFLAGS="$flag $chktls_save_CFLAGS"
24356           if test x$gcc_no_link = xyes; then
24357   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24358 fi
24359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24360 /* end confdefs.h.  */
24361 #include <pthread.h>
24362                 void *g(void *d) { return NULL; }
24363 int
24364 main ()
24365 {
24366 pthread_t t; pthread_create(&t,NULL,g,NULL);
24367   ;
24368   return 0;
24369 }
24370 _ACEOF
24371 if ac_fn_c_try_link "$LINENO"; then :
24372   thread_CFLAGS="$flag"
24373 fi
24374 rm -f core conftest.err conftest.$ac_objext \
24375     conftest$ac_exeext conftest.$ac_ext
24376           if test "X$thread_CFLAGS" != Xfailed; then
24377             break
24378           fi
24379         done
24380         CFLAGS="$chktls_save_CFLAGS"
24381         if test "X$thread_CFLAGS" != Xfailed; then
24382           CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
24383           if test "$cross_compiling" = yes; then :
24384   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24386 as_fn_error "cannot run test program while cross compiling
24387 See \`config.log' for more details." "$LINENO" 5; }
24388 else
24389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24390 /* end confdefs.h.  */
24391 #include <pthread.h>
24392                 __thread int a;
24393                 static int *volatile a_in_other_thread;
24394                 static void *
24395                 thread_func (void *arg)
24396                 {
24397                   a_in_other_thread = &a;
24398                   return (void *)0;
24399                 }
24400 int
24401 main ()
24402 {
24403 pthread_t thread;
24404                 void *thread_retval;
24405                 int *volatile a_in_main_thread;
24406                 a_in_main_thread = &a;
24407                 if (pthread_create (&thread, (pthread_attr_t *)0,
24408                                     thread_func, (void *)0))
24409                   return 0;
24410                 if (pthread_join (thread, &thread_retval))
24411                   return 0;
24412                 return (a_in_other_thread == a_in_main_thread);
24413   ;
24414   return 0;
24415 }
24416 _ACEOF
24417 if ac_fn_c_try_run "$LINENO"; then :
24418   gcc_cv_have_tls=yes
24419 else
24420   gcc_cv_have_tls=no
24421 fi
24422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24423   conftest.$ac_objext conftest.beam conftest.$ac_ext
24424 fi
24425
24426           CFLAGS="$chktls_save_CFLAGS"
24427         fi
24428       fi
24429 else
24430   gcc_cv_have_tls=no
24431 fi
24432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24433   conftest.$ac_objext conftest.beam conftest.$ac_ext
24434 fi
24435
24436 fi
24437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
24438 $as_echo "$gcc_cv_have_tls" >&6; }
24439   if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
24440
24441 $as_echo "#define HAVE_TLS 1" >>confdefs.h
24442
24443   fi
24444
24445 # For _Unwind_GetIPInfo.
24446
24447
24448 # Check whether --with-system-libunwind was given.
24449 if test "${with_system_libunwind+set}" = set; then :
24450   withval=$with_system_libunwind;
24451 fi
24452
24453   # If system-libunwind was not specifically set, pick a default setting.
24454   if test x$with_system_libunwind = x; then
24455     case ${target} in
24456       ia64-*-hpux*) with_system_libunwind=yes ;;
24457       *) with_system_libunwind=no ;;
24458     esac
24459   fi
24460   # Based on system-libunwind and target, do we have ipinfo?
24461   if  test x$with_system_libunwind = xyes; then
24462     case ${target} in
24463       ia64-*-*) have_unwind_getipinfo=no ;;
24464       *) have_unwind_getipinfo=yes ;;
24465     esac
24466   else
24467     # Darwin before version 9 does not have _Unwind_GetIPInfo.
24468
24469     case ${target} in
24470       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
24471       *) have_unwind_getipinfo=yes ;;
24472     esac
24473
24474   fi
24475
24476   if test x$have_unwind_getipinfo = xyes; then
24477
24478 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
24479
24480   fi
24481
24482
24483 # See if linker supports anonymous version scripts.
24484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous version scripts" >&5
24485 $as_echo_n "checking whether ld supports anonymous version scripts... " >&6; }
24486 if test "${libjava_cv_anon_version_script+set}" = set; then :
24487   $as_echo_n "(cached) " >&6
24488 else
24489   save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
24490    libjava_cv_anon_version_script=no
24491    CFLAGS="$CFLAGS -fPIC"; LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
24492    echo '{ global: globalsymb*; local: *; };' > conftest.map
24493    if test x$gcc_no_link = xyes; then
24494   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24495 fi
24496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24497 /* end confdefs.h.  */
24498 void globalsymbol (void) {} void localsymbol (void) {}
24499 int
24500 main ()
24501 {
24502
24503   ;
24504   return 0;
24505 }
24506 _ACEOF
24507 if ac_fn_c_try_link "$LINENO"; then :
24508   libjava_cv_anon_version_script=yes
24509 fi
24510 rm -f core conftest.err conftest.$ac_objext \
24511     conftest$ac_exeext conftest.$ac_ext
24512    CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
24513
24514 fi
24515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_anon_version_script" >&5
24516 $as_echo "$libjava_cv_anon_version_script" >&6; }
24517  if test "$libjava_cv_anon_version_script" = yes; then
24518   ANONVERSCRIPT_TRUE=
24519   ANONVERSCRIPT_FALSE='#'
24520 else
24521   ANONVERSCRIPT_TRUE='#'
24522   ANONVERSCRIPT_FALSE=
24523 fi
24524
24525
24526 # Check if linker supports static linking on a per library basis
24527 LD_START_STATIC_SPEC=
24528 LD_FINISH_STATIC_SPEC=
24529 if $LD --help 2>&1 | grep -- -call_shared >/dev/null 2>&1; then
24530   if $LD --help 2>&1 | grep -- -non_shared >/dev/null 2>&1; then
24531     LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
24532     LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
24533   fi
24534 fi
24535
24536
24537
24538 here=`${PWDCMD-pwd}`
24539
24540
24541 # We get this from the environment.
24542
24543
24544
24545 # Check whether --with-python-dir was given.
24546 if test "${with_python_dir+set}" = set; then :
24547   withval=$with_python_dir; with_python_dir=$withval
24548 else
24549   with_python_dir=""
24550 fi
24551
24552
24553 if test "x${with_python_dir}" = "x"
24554 then
24555   # Needed for installing Python modules during make install.
24556   python_mod_dir="\${prefix}/share/python"
24557   # Needed for substituting into aot-compile*
24558   python_mod_dir_expanded="${expanded_prefix}/share/python"
24559 else
24560   python_mod_dir="\${prefix}${with_python_dir}"
24561   python_mod_dir_expanded="${expanded_prefix}${with_python_dir}"
24562 fi
24563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Python modules dir: ${python_mod_dir_expanded}" >&5
24564 $as_echo "Python modules dir: ${python_mod_dir_expanded}" >&6; };
24565
24566
24567
24568 # needed for aot-compile-rpm
24569 MAKE=`which make`
24570
24571
24572 # Check whether --enable-aot-compile-rpm was given.
24573 if test "${enable_aot_compile_rpm+set}" = set; then :
24574   enableval=$enable_aot_compile_rpm; case "${enableval}" in
24575     yes) AOT_RPM_ENABLED=yes ;;
24576     no)  AOT_RPM_ENABLED=no ;;
24577     *)   as_fn_error "Unknown argument to enable/disable aot-compile-rpm" "$LINENO" 5 ;;
24578   esac
24579 else
24580   AOT_RPM_ENABLED=no
24581
24582 fi
24583
24584  if test "x${AOT_RPM_ENABLED}" = xyes; then
24585   INSTALL_AOT_RPM_TRUE=
24586   INSTALL_AOT_RPM_FALSE='#'
24587 else
24588   INSTALL_AOT_RPM_TRUE='#'
24589   INSTALL_AOT_RPM_FALSE=
24590 fi
24591
24592
24593 # Check whether --enable-java-home was given.
24594 if test "${enable_java_home+set}" = set; then :
24595   enableval=$enable_java_home; case "${enableval}" in
24596     yes) JAVA_HOME_ENABLED=yes ;;
24597     no)  JAVA_HOME_ENABLED=no ;;
24598     *)   as_fn_error "Unknown argument to enable/disable java-home" "$LINENO" 5 ;;
24599   esac
24600 else
24601   JAVA_HOME_ENABLED=no
24602
24603 fi
24604
24605  if test "x${JAVA_HOME_ENABLED}" = xyes; then
24606   CREATE_JAVA_HOME_TRUE=
24607   CREATE_JAVA_HOME_FALSE='#'
24608 else
24609   CREATE_JAVA_HOME_TRUE='#'
24610   CREATE_JAVA_HOME_FALSE=
24611 fi
24612
24613
24614 # Only do these checks if java-home above is enabled.
24615 if test "x${JAVA_HOME_ENABLED}" = xyes
24616 then
24617
24618
24619 # Check whether --with-gcc-suffix was given.
24620 if test "${with_gcc_suffix+set}" = set; then :
24621   withval=$with_gcc_suffix; gcc_suffix=$withval
24622 else
24623   gcc_suffix=""
24624 fi
24625
24626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCC suffix: ${gcc_suffix}" >&5
24627 $as_echo "GCC suffix: ${gcc_suffix}" >&6; }
24628
24629
24630
24631 # Check whether --with-arch-directory was given.
24632 if test "${with_arch_directory+set}" = set; then :
24633   withval=$with_arch_directory; host_cpu=$withval
24634 else
24635   host_cpu=""
24636 fi
24637
24638
24639
24640 # Check whether --with-os-directory was given.
24641 if test "${with_os_directory+set}" = set; then :
24642   withval=$with_os_directory; host_os=$withval
24643 else
24644   host_os=""
24645 fi
24646
24647
24648
24649 # Check whether --with-origin-name was given.
24650 if test "${with_origin_name+set}" = set; then :
24651   withval=$with_origin_name; origin_name=$withval
24652 else
24653   origin_name=gcj${gcc_suffix}
24654 fi
24655
24656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JPackage origin name: ${origin_name}" >&5
24657 $as_echo "JPackage origin name: ${origin_name}" >&6; }
24658
24659
24660 # Check whether --with-arch-suffix was given.
24661 if test "${with_arch_suffix+set}" = set; then :
24662   withval=$with_arch_suffix; arch_suffix=$withval
24663 else
24664   arch_suffix=""
24665 fi
24666
24667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch suffix: ${arch_suffix}" >&5
24668 $as_echo "arch suffix: ${arch_suffix}" >&6; }
24669
24670
24671 # Check whether --with-jvm-root-dir was given.
24672 if test "${with_jvm_root_dir+set}" = set; then :
24673   withval=$with_jvm_root_dir; jvm_root_dir=$withval
24674 else
24675   jvm_root_dir="\${prefix}/lib/jvm"
24676 fi
24677
24678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM root installation directory: ${jvm_root_dir}" >&5
24679 $as_echo "JVM root installation directory: ${jvm_root_dir}" >&6; }
24680
24681
24682 # Check whether --with-jvm-jar-dir was given.
24683 if test "${with_jvm_jar_dir+set}" = set; then :
24684   withval=$with_jvm_jar_dir; jvm_jar_dir=$withval
24685 else
24686   jvm_jar_dir=\${prefix}/lib/jvm-exports
24687 fi
24688
24689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JAR root installation directory: ${jvm_jar_dir}" >&5
24690 $as_echo "JAR root installation directory: ${jvm_jar_dir}" >&6; }
24691
24692   JAVA_VERSION=1.5.0
24693   BUILD_VERSION=0
24694
24695
24696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Java version: ${JAVA_VERSION}" >&5
24697 $as_echo "Java version: ${JAVA_VERSION}" >&6; }
24698
24699   jre_dir=jre
24700   jre_lnk=jre-${JAVA_VERSION}-${origin_name}
24701   sdk_lnk=java-${JAVA_VERSION}-${origin_name}
24702
24703   JVM_ROOT_DIR=${jvm_root_dir}
24704
24705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
24706 $as_echo "JVM ROOT directory: ${JVM_ROOT_DIR}" >&6; }
24707
24708   JVM_JAR_ROOT_DIR=${jvm_jar_dir}
24709
24710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
24711 $as_echo "JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6; }
24712
24713   JVM_JAR_DIR=${jvm_jar_dir}
24714
24715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
24716 $as_echo "JVM JAR directory: ${JVM_JAR_DIR}" >&6; }
24717
24718   JRE_DIR=${jre_dir}
24719
24720
24721   JRE_LNK=${jre_lnk}
24722
24723
24724   SDK_LNK=${sdk_lnk}
24725
24726
24727   SDK_BIN_DIR=${jvm_root_dir}/bin
24728
24729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
24730 $as_echo "SDK tools directory: ${SDK_BIN_DIR}" >&6; }
24731
24732   SDK_LIB_DIR=${jvm_root_dir}/lib
24733
24734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
24735 $as_echo "SDK jar directory: ${SDK_LIB_DIR}" >&6; }
24736
24737   SDK_INCLUDE_DIR=${jvm_root_dir}/include
24738
24739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
24740 $as_echo "SDK include directory: ${SDK_INCLUDE_DIR}" >&6; }
24741
24742   JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
24743
24744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
24745 $as_echo "JRE tools directory: ${JRE_BIN_DIR}" >&6; }
24746
24747   JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
24748
24749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
24750 $as_echo "JRE lib directory: ${JRE_LIB_DIR}" >&6; }
24751
24752   # Find gcj prefix using gcj found in PATH.
24753   gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
24754
24755   # Where do the gcj binaries live?
24756   # For jhbuild based builds, they all live in a sibling of bin called
24757   # gcj-bin.  Check for gcj-bin first, and use bin otherwise.
24758   GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
24759
24760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
24761 $as_echo "GCJ tools directory: ${GCJ_BIN_DIR}" >&6; }
24762
24763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: host is ${host}" >&5
24764 $as_echo "host is ${host}" >&6; }
24765   if test "x${host_cpu}" = "x"
24766   then
24767     case ${host} in
24768       *-mingw* | *-cygwin*)
24769         host_cpu=x86;;
24770       i486-* | i586-* | i686-*)
24771         host_cpu=i386;;
24772       x86_64-*)
24773         host_cpu=amd64;;
24774       *)
24775         host_cpu=${host_cpu};;
24776     esac
24777   fi
24778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch directory: ${host_cpu}" >&5
24779 $as_echo "arch directory: ${host_cpu}" >&6; }
24780   CPU=${host_cpu}
24781
24782
24783   if test "x${host_os}" = "x"
24784   then
24785     case ${host} in
24786       *-mingw* | *-cygwin*)
24787         host_os=win32;;
24788       *-linux*)
24789         host_os=linux;;
24790       *)
24791         host_os=${host_os};;
24792     esac
24793   fi
24794   echo os directory: ${host_os}
24795   OS=${host_os}
24796
24797
24798   # make an expanded $libdir, for substituting into
24799   # scripts (and other non-Makefile things).
24800   LIBDIR=$libdir
24801   if test "x${exec_prefix}" = "xNONE"
24802   then
24803       lib_exec_prefix=$expanded_prefix
24804   else
24805       lib_exec_prefix=$exec_prefix
24806   fi
24807   LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
24808
24809 fi
24810
24811 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"
24812
24813
24814 if test ${multilib} = yes; then
24815   multilib_arg="--enable-multilib"
24816 else
24817   multilib_arg=
24818 fi
24819
24820 ac_config_files="$ac_config_files scripts/jar"
24821
24822 cat >confcache <<\_ACEOF
24823 # This file is a shell script that caches the results of configure
24824 # tests run on this system so they can be shared between configure
24825 # scripts and configure runs, see configure's option --config-cache.
24826 # It is not useful on other systems.  If it contains results you don't
24827 # want to keep, you may remove or edit it.
24828 #
24829 # config.status only pays attention to the cache file if you give it
24830 # the --recheck option to rerun configure.
24831 #
24832 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24833 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24834 # following values.
24835
24836 _ACEOF
24837
24838 # The following way of writing the cache mishandles newlines in values,
24839 # but we know of no workaround that is simple, portable, and efficient.
24840 # So, we kill variables containing newlines.
24841 # Ultrix sh set writes to stderr and can't be redirected directly,
24842 # and sets the high bit in the cache file unless we assign to the vars.
24843 (
24844   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24845     eval ac_val=\$$ac_var
24846     case $ac_val in #(
24847     *${as_nl}*)
24848       case $ac_var in #(
24849       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24850 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24851       esac
24852       case $ac_var in #(
24853       _ | IFS | as_nl) ;; #(
24854       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24855       *) { eval $ac_var=; unset $ac_var;} ;;
24856       esac ;;
24857     esac
24858   done
24859
24860   (set) 2>&1 |
24861     case $as_nl`(ac_space=' '; set) 2>&1` in #(
24862     *${as_nl}ac_space=\ *)
24863       # `set' does not quote correctly, so add quotes: double-quote
24864       # substitution turns \\\\ into \\, and sed turns \\ into \.
24865       sed -n \
24866         "s/'/'\\\\''/g;
24867           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24868       ;; #(
24869     *)
24870       # `set' quotes correctly as required by POSIX, so do not add quotes.
24871       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24872       ;;
24873     esac |
24874     sort
24875 ) |
24876   sed '
24877      /^ac_cv_env_/b end
24878      t clear
24879      :clear
24880      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24881      t end
24882      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24883      :end' >>confcache
24884 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24885   if test -w "$cache_file"; then
24886     test "x$cache_file" != "x/dev/null" &&
24887       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24888 $as_echo "$as_me: updating cache $cache_file" >&6;}
24889     cat confcache >$cache_file
24890   else
24891     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24892 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24893   fi
24894 fi
24895 rm -f confcache
24896
24897 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24898 # Let make expand exec_prefix.
24899 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24900
24901 DEFS=-DHAVE_CONFIG_H
24902
24903 ac_libobjs=
24904 ac_ltlibobjs=
24905 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24906   # 1. Remove the extension, and $U if already installed.
24907   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24908   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24909   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24910   #    will be set to the directory where LIBOBJS objects are built.
24911   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24912   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24913 done
24914 LIBOBJS=$ac_libobjs
24915
24916 LTLIBOBJS=$ac_ltlibobjs
24917
24918
24919 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
24920   as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
24921 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24922 fi
24923 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
24924   as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
24925 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24926 fi
24927 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24928   as_fn_error "conditional \"AMDEP\" was never defined.
24929 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24930 fi
24931 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24932   as_fn_error "conditional \"am__fastdepCC\" was never defined.
24933 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24934 fi
24935 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24936   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
24937 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24938 fi
24939  if test -n "$EXEEXT"; then
24940   am__EXEEXT_TRUE=
24941   am__EXEEXT_FALSE='#'
24942 else
24943   am__EXEEXT_TRUE='#'
24944   am__EXEEXT_FALSE=
24945 fi
24946
24947 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24948   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
24949 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24950 fi
24951 if test -z "${BUILD_SUBLIBS_TRUE}" && test -z "${BUILD_SUBLIBS_FALSE}"; then
24952   as_fn_error "conditional \"BUILD_SUBLIBS\" was never defined.
24953 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24954 fi
24955 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
24956   as_fn_error "conditional \"XLIB_AWT\" was never defined.
24957 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24958 fi
24959 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
24960   as_fn_error "conditional \"X_AWT\" was never defined.
24961 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24962 fi
24963 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24964   as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24966 fi
24967 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24968   as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24970 fi
24971 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
24972   as_fn_error "conditional \"TESTSUBDIR\" was never defined.
24973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24974 fi
24975 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
24976   as_fn_error "conditional \"BUILD_ECJ1\" was never defined.
24977 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24978 fi
24979 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
24980   as_fn_error "conditional \"INSTALL_ECJ_JAR\" was never defined.
24981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24982 fi
24983 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
24984   as_fn_error "conditional \"JAVA_HOME_SET\" was never defined.
24985 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24986 fi
24987 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
24988   as_fn_error "conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
24989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24990 fi
24991 if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
24992   as_fn_error "conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
24993 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24994 fi
24995 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
24996   as_fn_error "conditional \"INTERPRETER\" was never defined.
24997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24998 fi
24999 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
25000   as_fn_error "conditional \"USING_WIN32_PLATFORM\" was never defined.
25001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25002 fi
25003 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
25004   as_fn_error "conditional \"USING_POSIX_PLATFORM\" was never defined.
25005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25006 fi
25007 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
25008   as_fn_error "conditional \"USING_DARWIN_CRT\" was never defined.
25009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25010 fi
25011 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
25012   as_fn_error "conditional \"USING_BOEHMGC\" was never defined.
25013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25014 fi
25015 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
25016   as_fn_error "conditional \"USING_NOGC\" was never defined.
25017 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25018 fi
25019 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
25020   as_fn_error "conditional \"USING_POSIX_THREADS\" was never defined.
25021 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25022 fi
25023 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
25024   as_fn_error "conditional \"USING_WIN32_THREADS\" was never defined.
25025 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25026 fi
25027 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
25028   as_fn_error "conditional \"USING_NO_THREADS\" was never defined.
25029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25030 fi
25031 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
25032   as_fn_error "conditional \"USE_LIBGCJ_BC\" was never defined.
25033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25034 fi
25035 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
25036   as_fn_error "conditional \"USING_GCC\" was never defined.
25037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25038 fi
25039 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25040   as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25041 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25042 fi
25043
25044 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
25045   as_fn_error "conditional \"NATIVE\" was never defined.
25046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25047 fi
25048 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
25049   as_fn_error "conditional \"ENABLE_SHARED\" was never defined.
25050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25051 fi
25052 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
25053   as_fn_error "conditional \"NEEDS_DATA_START\" was never defined.
25054 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25055 fi
25056 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
25057   as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
25058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25059 fi
25060 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
25061   as_fn_error "conditional \"ANONVERSCRIPT\" was never defined.
25062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25063 fi
25064 if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
25065   as_fn_error "conditional \"INSTALL_AOT_RPM\" was never defined.
25066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25067 fi
25068 if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
25069   as_fn_error "conditional \"CREATE_JAVA_HOME\" was never defined.
25070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25071 fi
25072
25073 : ${CONFIG_STATUS=./config.status}
25074 ac_write_fail=0
25075 ac_clean_files_save=$ac_clean_files
25076 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25077 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25078 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25079 as_write_fail=0
25080 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25081 #! $SHELL
25082 # Generated by $as_me.
25083 # Run this file to recreate the current configuration.
25084 # Compiler output produced by configure, useful for debugging
25085 # configure, is in config.log if it exists.
25086
25087 debug=false
25088 ac_cs_recheck=false
25089 ac_cs_silent=false
25090
25091 SHELL=\${CONFIG_SHELL-$SHELL}
25092 export SHELL
25093 _ASEOF
25094 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25095 ## -------------------- ##
25096 ## M4sh Initialization. ##
25097 ## -------------------- ##
25098
25099 # Be more Bourne compatible
25100 DUALCASE=1; export DUALCASE # for MKS sh
25101 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25102   emulate sh
25103   NULLCMD=:
25104   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25105   # is contrary to our usage.  Disable this feature.
25106   alias -g '${1+"$@"}'='"$@"'
25107   setopt NO_GLOB_SUBST
25108 else
25109   case `(set -o) 2>/dev/null` in #(
25110   *posix*) :
25111     set -o posix ;; #(
25112   *) :
25113      ;;
25114 esac
25115 fi
25116
25117
25118 as_nl='
25119 '
25120 export as_nl
25121 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25122 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25123 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25124 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25125 # Prefer a ksh shell builtin over an external printf program on Solaris,
25126 # but without wasting forks for bash or zsh.
25127 if test -z "$BASH_VERSION$ZSH_VERSION" \
25128     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25129   as_echo='print -r --'
25130   as_echo_n='print -rn --'
25131 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25132   as_echo='printf %s\n'
25133   as_echo_n='printf %s'
25134 else
25135   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25136     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25137     as_echo_n='/usr/ucb/echo -n'
25138   else
25139     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25140     as_echo_n_body='eval
25141       arg=$1;
25142       case $arg in #(
25143       *"$as_nl"*)
25144         expr "X$arg" : "X\\(.*\\)$as_nl";
25145         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25146       esac;
25147       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25148     '
25149     export as_echo_n_body
25150     as_echo_n='sh -c $as_echo_n_body as_echo'
25151   fi
25152   export as_echo_body
25153   as_echo='sh -c $as_echo_body as_echo'
25154 fi
25155
25156 # The user is always right.
25157 if test "${PATH_SEPARATOR+set}" != set; then
25158   PATH_SEPARATOR=:
25159   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25160     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25161       PATH_SEPARATOR=';'
25162   }
25163 fi
25164
25165
25166 # IFS
25167 # We need space, tab and new line, in precisely that order.  Quoting is
25168 # there to prevent editors from complaining about space-tab.
25169 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25170 # splitting by setting IFS to empty value.)
25171 IFS=" ""        $as_nl"
25172
25173 # Find who we are.  Look in the path if we contain no directory separator.
25174 case $0 in #((
25175   *[\\/]* ) as_myself=$0 ;;
25176   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25177 for as_dir in $PATH
25178 do
25179   IFS=$as_save_IFS
25180   test -z "$as_dir" && as_dir=.
25181     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25182   done
25183 IFS=$as_save_IFS
25184
25185      ;;
25186 esac
25187 # We did not find ourselves, most probably we were run as `sh COMMAND'
25188 # in which case we are not to be found in the path.
25189 if test "x$as_myself" = x; then
25190   as_myself=$0
25191 fi
25192 if test ! -f "$as_myself"; then
25193   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25194   exit 1
25195 fi
25196
25197 # Unset variables that we do not need and which cause bugs (e.g. in
25198 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
25199 # suppresses any "Segmentation fault" message there.  '((' could
25200 # trigger a bug in pdksh 5.2.14.
25201 for as_var in BASH_ENV ENV MAIL MAILPATH
25202 do eval test x\${$as_var+set} = xset \
25203   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25204 done
25205 PS1='$ '
25206 PS2='> '
25207 PS4='+ '
25208
25209 # NLS nuisances.
25210 LC_ALL=C
25211 export LC_ALL
25212 LANGUAGE=C
25213 export LANGUAGE
25214
25215 # CDPATH.
25216 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25217
25218
25219 # as_fn_error ERROR [LINENO LOG_FD]
25220 # ---------------------------------
25221 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25222 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25223 # script with status $?, using 1 if that was 0.
25224 as_fn_error ()
25225 {
25226   as_status=$?; test $as_status -eq 0 && as_status=1
25227   if test "$3"; then
25228     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25229     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25230   fi
25231   $as_echo "$as_me: error: $1" >&2
25232   as_fn_exit $as_status
25233 } # as_fn_error
25234
25235
25236 # as_fn_set_status STATUS
25237 # -----------------------
25238 # Set $? to STATUS, without forking.
25239 as_fn_set_status ()
25240 {
25241   return $1
25242 } # as_fn_set_status
25243
25244 # as_fn_exit STATUS
25245 # -----------------
25246 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25247 as_fn_exit ()
25248 {
25249   set +e
25250   as_fn_set_status $1
25251   exit $1
25252 } # as_fn_exit
25253
25254 # as_fn_unset VAR
25255 # ---------------
25256 # Portably unset VAR.
25257 as_fn_unset ()
25258 {
25259   { eval $1=; unset $1;}
25260 }
25261 as_unset=as_fn_unset
25262 # as_fn_append VAR VALUE
25263 # ----------------------
25264 # Append the text in VALUE to the end of the definition contained in VAR. Take
25265 # advantage of any shell optimizations that allow amortized linear growth over
25266 # repeated appends, instead of the typical quadratic growth present in naive
25267 # implementations.
25268 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25269   eval 'as_fn_append ()
25270   {
25271     eval $1+=\$2
25272   }'
25273 else
25274   as_fn_append ()
25275   {
25276     eval $1=\$$1\$2
25277   }
25278 fi # as_fn_append
25279
25280 # as_fn_arith ARG...
25281 # ------------------
25282 # Perform arithmetic evaluation on the ARGs, and store the result in the
25283 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25284 # must be portable across $(()) and expr.
25285 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25286   eval 'as_fn_arith ()
25287   {
25288     as_val=$(( $* ))
25289   }'
25290 else
25291   as_fn_arith ()
25292   {
25293     as_val=`expr "$@" || test $? -eq 1`
25294   }
25295 fi # as_fn_arith
25296
25297
25298 if expr a : '\(a\)' >/dev/null 2>&1 &&
25299    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25300   as_expr=expr
25301 else
25302   as_expr=false
25303 fi
25304
25305 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25306   as_basename=basename
25307 else
25308   as_basename=false
25309 fi
25310
25311 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25312   as_dirname=dirname
25313 else
25314   as_dirname=false
25315 fi
25316
25317 as_me=`$as_basename -- "$0" ||
25318 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25319          X"$0" : 'X\(//\)$' \| \
25320          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25321 $as_echo X/"$0" |
25322     sed '/^.*\/\([^/][^/]*\)\/*$/{
25323             s//\1/
25324             q
25325           }
25326           /^X\/\(\/\/\)$/{
25327             s//\1/
25328             q
25329           }
25330           /^X\/\(\/\).*/{
25331             s//\1/
25332             q
25333           }
25334           s/.*/./; q'`
25335
25336 # Avoid depending upon Character Ranges.
25337 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25338 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25339 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25340 as_cr_digits='0123456789'
25341 as_cr_alnum=$as_cr_Letters$as_cr_digits
25342
25343 ECHO_C= ECHO_N= ECHO_T=
25344 case `echo -n x` in #(((((
25345 -n*)
25346   case `echo 'xy\c'` in
25347   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25348   xy)  ECHO_C='\c';;
25349   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
25350        ECHO_T=' ';;
25351   esac;;
25352 *)
25353   ECHO_N='-n';;
25354 esac
25355
25356 rm -f conf$$ conf$$.exe conf$$.file
25357 if test -d conf$$.dir; then
25358   rm -f conf$$.dir/conf$$.file
25359 else
25360   rm -f conf$$.dir
25361   mkdir conf$$.dir 2>/dev/null
25362 fi
25363 if (echo >conf$$.file) 2>/dev/null; then
25364   if ln -s conf$$.file conf$$ 2>/dev/null; then
25365     as_ln_s='ln -s'
25366     # ... but there are two gotchas:
25367     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25368     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25369     # In both cases, we have to default to `cp -p'.
25370     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25371       as_ln_s='cp -p'
25372   elif ln conf$$.file conf$$ 2>/dev/null; then
25373     as_ln_s=ln
25374   else
25375     as_ln_s='cp -p'
25376   fi
25377 else
25378   as_ln_s='cp -p'
25379 fi
25380 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25381 rmdir conf$$.dir 2>/dev/null
25382
25383
25384 # as_fn_mkdir_p
25385 # -------------
25386 # Create "$as_dir" as a directory, including parents if necessary.
25387 as_fn_mkdir_p ()
25388 {
25389
25390   case $as_dir in #(
25391   -*) as_dir=./$as_dir;;
25392   esac
25393   test -d "$as_dir" || eval $as_mkdir_p || {
25394     as_dirs=
25395     while :; do
25396       case $as_dir in #(
25397       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25398       *) as_qdir=$as_dir;;
25399       esac
25400       as_dirs="'$as_qdir' $as_dirs"
25401       as_dir=`$as_dirname -- "$as_dir" ||
25402 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25403          X"$as_dir" : 'X\(//\)[^/]' \| \
25404          X"$as_dir" : 'X\(//\)$' \| \
25405          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25406 $as_echo X"$as_dir" |
25407     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25408             s//\1/
25409             q
25410           }
25411           /^X\(\/\/\)[^/].*/{
25412             s//\1/
25413             q
25414           }
25415           /^X\(\/\/\)$/{
25416             s//\1/
25417             q
25418           }
25419           /^X\(\/\).*/{
25420             s//\1/
25421             q
25422           }
25423           s/.*/./; q'`
25424       test -d "$as_dir" && break
25425     done
25426     test -z "$as_dirs" || eval "mkdir $as_dirs"
25427   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25428
25429
25430 } # as_fn_mkdir_p
25431 if mkdir -p . 2>/dev/null; then
25432   as_mkdir_p='mkdir -p "$as_dir"'
25433 else
25434   test -d ./-p && rmdir ./-p
25435   as_mkdir_p=false
25436 fi
25437
25438 if test -x / >/dev/null 2>&1; then
25439   as_test_x='test -x'
25440 else
25441   if ls -dL / >/dev/null 2>&1; then
25442     as_ls_L_option=L
25443   else
25444     as_ls_L_option=
25445   fi
25446   as_test_x='
25447     eval sh -c '\''
25448       if test -d "$1"; then
25449         test -d "$1/.";
25450       else
25451         case $1 in #(
25452         -*)set "./$1";;
25453         esac;
25454         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25455         ???[sx]*):;;*)false;;esac;fi
25456     '\'' sh
25457   '
25458 fi
25459 as_executable_p=$as_test_x
25460
25461 # Sed expression to map a string onto a valid CPP name.
25462 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25463
25464 # Sed expression to map a string onto a valid variable name.
25465 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25466
25467
25468 exec 6>&1
25469 ## ----------------------------------- ##
25470 ## Main body of $CONFIG_STATUS script. ##
25471 ## ----------------------------------- ##
25472 _ASEOF
25473 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25474
25475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25476 # Save the log message, to keep $0 and so on meaningful, and to
25477 # report actual input values of CONFIG_FILES etc. instead of their
25478 # values after options handling.
25479 ac_log="
25480 This file was extended by libjava $as_me version-unused, which was
25481 generated by GNU Autoconf 2.64.  Invocation command line was
25482
25483   CONFIG_FILES    = $CONFIG_FILES
25484   CONFIG_HEADERS  = $CONFIG_HEADERS
25485   CONFIG_LINKS    = $CONFIG_LINKS
25486   CONFIG_COMMANDS = $CONFIG_COMMANDS
25487   $ $0 $@
25488
25489 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25490 "
25491
25492 _ACEOF
25493
25494 case $ac_config_files in *"
25495 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25496 esac
25497
25498 case $ac_config_headers in *"
25499 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25500 esac
25501
25502
25503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25504 # Files that config.status was made for.
25505 config_files="$ac_config_files"
25506 config_headers="$ac_config_headers"
25507 config_links="$ac_config_links"
25508 config_commands="$ac_config_commands"
25509
25510 _ACEOF
25511
25512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25513 ac_cs_usage="\
25514 \`$as_me' instantiates files and other configuration actions
25515 from templates according to the current configuration.  Unless the files
25516 and actions are specified as TAGs, all are instantiated by default.
25517
25518 Usage: $0 [OPTION]... [TAG]...
25519
25520   -h, --help       print this help, then exit
25521   -V, --version    print version number and configuration settings, then exit
25522   -q, --quiet, --silent
25523                    do not print progress messages
25524   -d, --debug      don't remove temporary files
25525       --recheck    update $as_me by reconfiguring in the same conditions
25526       --file=FILE[:TEMPLATE]
25527                    instantiate the configuration file FILE
25528       --header=FILE[:TEMPLATE]
25529                    instantiate the configuration header FILE
25530
25531 Configuration files:
25532 $config_files
25533
25534 Configuration headers:
25535 $config_headers
25536
25537 Configuration links:
25538 $config_links
25539
25540 Configuration commands:
25541 $config_commands
25542
25543 Report bugs to the package provider."
25544
25545 _ACEOF
25546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25547 ac_cs_version="\\
25548 libjava config.status version-unused
25549 configured by $0, generated by GNU Autoconf 2.64,
25550   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25551
25552 Copyright (C) 2009 Free Software Foundation, Inc.
25553 This config.status script is free software; the Free Software Foundation
25554 gives unlimited permission to copy, distribute and modify it."
25555
25556 ac_pwd='$ac_pwd'
25557 srcdir='$srcdir'
25558 INSTALL='$INSTALL'
25559 MKDIR_P='$MKDIR_P'
25560 AWK='$AWK'
25561 test -n "\$AWK" || AWK=awk
25562 _ACEOF
25563
25564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25565 # The default lists apply if the user does not specify any file.
25566 ac_need_defaults=:
25567 while test $# != 0
25568 do
25569   case $1 in
25570   --*=*)
25571     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25572     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25573     ac_shift=:
25574     ;;
25575   *)
25576     ac_option=$1
25577     ac_optarg=$2
25578     ac_shift=shift
25579     ;;
25580   esac
25581
25582   case $ac_option in
25583   # Handling of the options.
25584   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25585     ac_cs_recheck=: ;;
25586   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25587     $as_echo "$ac_cs_version"; exit ;;
25588   --debug | --debu | --deb | --de | --d | -d )
25589     debug=: ;;
25590   --file | --fil | --fi | --f )
25591     $ac_shift
25592     case $ac_optarg in
25593     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25594     esac
25595     as_fn_append CONFIG_FILES " '$ac_optarg'"
25596     ac_need_defaults=false;;
25597   --header | --heade | --head | --hea )
25598     $ac_shift
25599     case $ac_optarg in
25600     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25601     esac
25602     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25603     ac_need_defaults=false;;
25604   --he | --h)
25605     # Conflict between --help and --header
25606     as_fn_error "ambiguous option: \`$1'
25607 Try \`$0 --help' for more information.";;
25608   --help | --hel | -h )
25609     $as_echo "$ac_cs_usage"; exit ;;
25610   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25611   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25612     ac_cs_silent=: ;;
25613
25614   # This is an error.
25615   -*) as_fn_error "unrecognized option: \`$1'
25616 Try \`$0 --help' for more information." ;;
25617
25618   *) as_fn_append ac_config_targets " $1"
25619      ac_need_defaults=false ;;
25620
25621   esac
25622   shift
25623 done
25624
25625 ac_configure_extra_args=
25626
25627 if $ac_cs_silent; then
25628   exec 6>/dev/null
25629   ac_configure_extra_args="$ac_configure_extra_args --silent"
25630 fi
25631
25632 _ACEOF
25633 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25634 if \$ac_cs_recheck; then
25635   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25636   shift
25637   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25638   CONFIG_SHELL='$SHELL'
25639   export CONFIG_SHELL
25640   exec "\$@"
25641 fi
25642
25643 _ACEOF
25644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25645 exec 5>>config.log
25646 {
25647   echo
25648   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25649 ## Running $as_me. ##
25650 _ASBOX
25651   $as_echo "$ac_log"
25652 } >&5
25653
25654 _ACEOF
25655 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25656 #
25657 # INIT-COMMANDS
25658 #
25659
25660 srcdir="$srcdir"
25661 host="$host"
25662 target="$target"
25663 with_multisubdir="$with_multisubdir"
25664 with_multisrctop="$with_multisrctop"
25665 with_target_subdir="$with_target_subdir"
25666 ac_configure_args="${multilib_arg} ${ac_configure_args}"
25667 multi_basedir="$multi_basedir"
25668 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25669 CC="$CC"
25670 CXX="$CXX"
25671 GFORTRAN="$GFORTRAN"
25672 GCJ="$GCJ"
25673 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25674
25675
25676 # The HP-UX ksh and POSIX shell print the target directory to stdout
25677 # if CDPATH is set.
25678 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25679
25680 sed_quote_subst='$sed_quote_subst'
25681 double_quote_subst='$double_quote_subst'
25682 delay_variable_subst='$delay_variable_subst'
25683 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25684 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25685 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25686 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25687 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25688 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25689 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25690 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25691 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25692 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25693 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25694 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25695 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25696 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25697 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25698 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25699 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25700 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25701 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25702 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25703 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25704 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25705 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25706 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25707 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25708 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25709 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25710 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25711 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25712 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25713 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25714 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25715 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25716 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25717 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25718 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25719 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25720 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25721 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25722 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25723 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25724 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25725 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25726 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25727 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25728 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25729 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25730 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25731 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"`'
25732 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25733 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25734 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25735 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25736 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25737 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25738 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25739 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25740 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25741 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25742 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25743 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25744 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25745 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25746 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25747 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25748 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25749 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25750 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25751 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25752 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25753 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25754 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25755 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25756 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25757 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25758 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25759 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25760 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25761 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25762 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25763 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
25764 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25765 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25766 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25767 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25768 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25769 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25770 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25771 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25772 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
25773 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25774 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25775 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25776 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25777 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25778 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25779 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25780 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25781 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25782 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25783 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25784 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25785 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25786 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25787 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25788 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25789 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25790 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25791 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25792 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25793 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25794 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25795 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25796 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25797 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25798 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25799 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25800 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25801 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25802 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25803 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25804 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25805 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25806 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25807 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25808 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25809 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25810 LD_GCJ='`$ECHO "$LD_GCJ" | $SED "$delay_single_quote_subst"`'
25811 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25812 reload_flag_GCJ='`$ECHO "$reload_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25813 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25814 reload_cmds_GCJ='`$ECHO "$reload_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25815 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25816 old_archive_cmds_GCJ='`$ECHO "$old_archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25817 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25818 compiler_GCJ='`$ECHO "$compiler_GCJ" | $SED "$delay_single_quote_subst"`'
25819 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25820 GCC_GCJ='`$ECHO "$GCC_GCJ" | $SED "$delay_single_quote_subst"`'
25821 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25822 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "$lt_prog_compiler_no_builtin_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25823 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25824 lt_prog_compiler_wl_GCJ='`$ECHO "$lt_prog_compiler_wl_GCJ" | $SED "$delay_single_quote_subst"`'
25825 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25826 lt_prog_compiler_pic_GCJ='`$ECHO "$lt_prog_compiler_pic_GCJ" | $SED "$delay_single_quote_subst"`'
25827 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25828 lt_prog_compiler_static_GCJ='`$ECHO "$lt_prog_compiler_static_GCJ" | $SED "$delay_single_quote_subst"`'
25829 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25830 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "$lt_cv_prog_compiler_c_o_GCJ" | $SED "$delay_single_quote_subst"`'
25831 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25832 archive_cmds_need_lc_GCJ='`$ECHO "$archive_cmds_need_lc_GCJ" | $SED "$delay_single_quote_subst"`'
25833 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25834 enable_shared_with_static_runtimes_GCJ='`$ECHO "$enable_shared_with_static_runtimes_GCJ" | $SED "$delay_single_quote_subst"`'
25835 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25836 export_dynamic_flag_spec_GCJ='`$ECHO "$export_dynamic_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25837 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25838 whole_archive_flag_spec_GCJ='`$ECHO "$whole_archive_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25839 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25840 compiler_needs_object_GCJ='`$ECHO "$compiler_needs_object_GCJ" | $SED "$delay_single_quote_subst"`'
25841 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25842 old_archive_from_new_cmds_GCJ='`$ECHO "$old_archive_from_new_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25843 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25844 old_archive_from_expsyms_cmds_GCJ='`$ECHO "$old_archive_from_expsyms_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25845 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25846 archive_cmds_GCJ='`$ECHO "$archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25847 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25848 archive_expsym_cmds_GCJ='`$ECHO "$archive_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25849 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25850 module_cmds_GCJ='`$ECHO "$module_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25851 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25852 module_expsym_cmds_GCJ='`$ECHO "$module_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25853 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25854 with_gnu_ld_GCJ='`$ECHO "$with_gnu_ld_GCJ" | $SED "$delay_single_quote_subst"`'
25855 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25856 allow_undefined_flag_GCJ='`$ECHO "$allow_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25857 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25858 no_undefined_flag_GCJ='`$ECHO "$no_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25859 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25860 hardcode_libdir_flag_spec_GCJ='`$ECHO "$hardcode_libdir_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25861 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
25862 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "$hardcode_libdir_flag_spec_ld_GCJ" | $SED "$delay_single_quote_subst"`'
25863 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25864 hardcode_libdir_separator_GCJ='`$ECHO "$hardcode_libdir_separator_GCJ" | $SED "$delay_single_quote_subst"`'
25865 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25866 hardcode_direct_GCJ='`$ECHO "$hardcode_direct_GCJ" | $SED "$delay_single_quote_subst"`'
25867 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25868 hardcode_direct_absolute_GCJ='`$ECHO "$hardcode_direct_absolute_GCJ" | $SED "$delay_single_quote_subst"`'
25869 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25870 hardcode_minus_L_GCJ='`$ECHO "$hardcode_minus_L_GCJ" | $SED "$delay_single_quote_subst"`'
25871 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25872 hardcode_shlibpath_var_GCJ='`$ECHO "$hardcode_shlibpath_var_GCJ" | $SED "$delay_single_quote_subst"`'
25873 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25874 hardcode_automatic_GCJ='`$ECHO "$hardcode_automatic_GCJ" | $SED "$delay_single_quote_subst"`'
25875 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25876 inherit_rpath_GCJ='`$ECHO "$inherit_rpath_GCJ" | $SED "$delay_single_quote_subst"`'
25877 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25878 link_all_deplibs_GCJ='`$ECHO "$link_all_deplibs_GCJ" | $SED "$delay_single_quote_subst"`'
25879 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
25880 fix_srcfile_path_GCJ='`$ECHO "$fix_srcfile_path_GCJ" | $SED "$delay_single_quote_subst"`'
25881 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25882 always_export_symbols_GCJ='`$ECHO "$always_export_symbols_GCJ" | $SED "$delay_single_quote_subst"`'
25883 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25884 export_symbols_cmds_GCJ='`$ECHO "$export_symbols_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25885 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25886 exclude_expsyms_GCJ='`$ECHO "$exclude_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
25887 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25888 include_expsyms_GCJ='`$ECHO "$include_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
25889 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25890 prelink_cmds_GCJ='`$ECHO "$prelink_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25891 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
25892 file_list_spec_GCJ='`$ECHO "$file_list_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25893 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
25894 hardcode_action_GCJ='`$ECHO "$hardcode_action_GCJ" | $SED "$delay_single_quote_subst"`'
25895 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
25896 compiler_lib_search_dirs_GCJ='`$ECHO "$compiler_lib_search_dirs_GCJ" | $SED "$delay_single_quote_subst"`'
25897 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25898 predep_objects_GCJ='`$ECHO "$predep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
25899 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25900 postdep_objects_GCJ='`$ECHO "$postdep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
25901 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
25902 predeps_GCJ='`$ECHO "$predeps_GCJ" | $SED "$delay_single_quote_subst"`'
25903 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
25904 postdeps_GCJ='`$ECHO "$postdeps_GCJ" | $SED "$delay_single_quote_subst"`'
25905 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
25906 compiler_lib_search_path_GCJ='`$ECHO "$compiler_lib_search_path_GCJ" | $SED "$delay_single_quote_subst"`'
25907
25908 LTCC='$LTCC'
25909 LTCFLAGS='$LTCFLAGS'
25910 compiler='$compiler_DEFAULT'
25911
25912 # A function that is used when there is no print builtin or printf.
25913 func_fallback_echo ()
25914 {
25915   eval 'cat <<_LTECHO_EOF
25916 \$1
25917 _LTECHO_EOF'
25918 }
25919
25920 # Quote evaled strings.
25921 for var in SHELL \
25922 ECHO \
25923 SED \
25924 GREP \
25925 EGREP \
25926 FGREP \
25927 LD \
25928 NM \
25929 LN_S \
25930 lt_SP2NL \
25931 lt_NL2SP \
25932 reload_flag \
25933 OBJDUMP \
25934 deplibs_check_method \
25935 file_magic_cmd \
25936 AR \
25937 AR_FLAGS \
25938 STRIP \
25939 RANLIB \
25940 CC \
25941 CFLAGS \
25942 compiler \
25943 lt_cv_sys_global_symbol_pipe \
25944 lt_cv_sys_global_symbol_to_cdecl \
25945 lt_cv_sys_global_symbol_to_c_name_address \
25946 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25947 lt_prog_compiler_no_builtin_flag \
25948 lt_prog_compiler_wl \
25949 lt_prog_compiler_pic \
25950 lt_prog_compiler_static \
25951 lt_cv_prog_compiler_c_o \
25952 need_locks \
25953 DSYMUTIL \
25954 NMEDIT \
25955 LIPO \
25956 OTOOL \
25957 OTOOL64 \
25958 shrext_cmds \
25959 export_dynamic_flag_spec \
25960 whole_archive_flag_spec \
25961 compiler_needs_object \
25962 with_gnu_ld \
25963 allow_undefined_flag \
25964 no_undefined_flag \
25965 hardcode_libdir_flag_spec \
25966 hardcode_libdir_flag_spec_ld \
25967 hardcode_libdir_separator \
25968 fix_srcfile_path \
25969 exclude_expsyms \
25970 include_expsyms \
25971 file_list_spec \
25972 variables_saved_for_relink \
25973 libname_spec \
25974 library_names_spec \
25975 soname_spec \
25976 install_override_mode \
25977 finish_eval \
25978 old_striplib \
25979 striplib \
25980 compiler_lib_search_dirs \
25981 predep_objects \
25982 postdep_objects \
25983 predeps \
25984 postdeps \
25985 compiler_lib_search_path \
25986 LD_CXX \
25987 LD_GCJ \
25988 reload_flag_CXX \
25989 reload_flag_GCJ \
25990 compiler_CXX \
25991 compiler_GCJ \
25992 lt_prog_compiler_no_builtin_flag_CXX \
25993 lt_prog_compiler_no_builtin_flag_GCJ \
25994 lt_prog_compiler_wl_CXX \
25995 lt_prog_compiler_wl_GCJ \
25996 lt_prog_compiler_pic_CXX \
25997 lt_prog_compiler_pic_GCJ \
25998 lt_prog_compiler_static_CXX \
25999 lt_prog_compiler_static_GCJ \
26000 lt_cv_prog_compiler_c_o_CXX \
26001 lt_cv_prog_compiler_c_o_GCJ \
26002 export_dynamic_flag_spec_CXX \
26003 export_dynamic_flag_spec_GCJ \
26004 whole_archive_flag_spec_CXX \
26005 whole_archive_flag_spec_GCJ \
26006 compiler_needs_object_CXX \
26007 compiler_needs_object_GCJ \
26008 with_gnu_ld_CXX \
26009 with_gnu_ld_GCJ \
26010 allow_undefined_flag_CXX \
26011 allow_undefined_flag_GCJ \
26012 no_undefined_flag_CXX \
26013 no_undefined_flag_GCJ \
26014 hardcode_libdir_flag_spec_CXX \
26015 hardcode_libdir_flag_spec_GCJ \
26016 hardcode_libdir_flag_spec_ld_CXX \
26017 hardcode_libdir_flag_spec_ld_GCJ \
26018 hardcode_libdir_separator_CXX \
26019 hardcode_libdir_separator_GCJ \
26020 fix_srcfile_path_CXX \
26021 fix_srcfile_path_GCJ \
26022 exclude_expsyms_CXX \
26023 exclude_expsyms_GCJ \
26024 include_expsyms_CXX \
26025 include_expsyms_GCJ \
26026 file_list_spec_CXX \
26027 file_list_spec_GCJ \
26028 compiler_lib_search_dirs_CXX \
26029 compiler_lib_search_dirs_GCJ \
26030 predep_objects_CXX \
26031 predep_objects_GCJ \
26032 postdep_objects_CXX \
26033 postdep_objects_GCJ \
26034 predeps_CXX \
26035 predeps_GCJ \
26036 postdeps_CXX \
26037 postdeps_GCJ \
26038 compiler_lib_search_path_CXX \
26039 compiler_lib_search_path_GCJ; do
26040     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26041     *[\\\\\\\`\\"\\\$]*)
26042       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26043       ;;
26044     *)
26045       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26046       ;;
26047     esac
26048 done
26049
26050 # Double-quote double-evaled strings.
26051 for var in reload_cmds \
26052 old_postinstall_cmds \
26053 old_postuninstall_cmds \
26054 old_archive_cmds \
26055 extract_expsyms_cmds \
26056 old_archive_from_new_cmds \
26057 old_archive_from_expsyms_cmds \
26058 archive_cmds \
26059 archive_expsym_cmds \
26060 module_cmds \
26061 module_expsym_cmds \
26062 export_symbols_cmds \
26063 prelink_cmds \
26064 postinstall_cmds \
26065 postuninstall_cmds \
26066 finish_cmds \
26067 sys_lib_search_path_spec \
26068 sys_lib_dlsearch_path_spec \
26069 reload_cmds_CXX \
26070 reload_cmds_GCJ \
26071 old_archive_cmds_CXX \
26072 old_archive_cmds_GCJ \
26073 old_archive_from_new_cmds_CXX \
26074 old_archive_from_new_cmds_GCJ \
26075 old_archive_from_expsyms_cmds_CXX \
26076 old_archive_from_expsyms_cmds_GCJ \
26077 archive_cmds_CXX \
26078 archive_cmds_GCJ \
26079 archive_expsym_cmds_CXX \
26080 archive_expsym_cmds_GCJ \
26081 module_cmds_CXX \
26082 module_cmds_GCJ \
26083 module_expsym_cmds_CXX \
26084 module_expsym_cmds_GCJ \
26085 export_symbols_cmds_CXX \
26086 export_symbols_cmds_GCJ \
26087 prelink_cmds_CXX \
26088 prelink_cmds_GCJ; do
26089     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26090     *[\\\\\\\`\\"\\\$]*)
26091       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26092       ;;
26093     *)
26094       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26095       ;;
26096     esac
26097 done
26098
26099 ac_aux_dir='$ac_aux_dir'
26100 xsi_shell='$xsi_shell'
26101 lt_shell_append='$lt_shell_append'
26102
26103 # See if we are running on zsh, and set the options which allow our
26104 # commands through without removal of \ escapes INIT.
26105 if test -n "\${ZSH_VERSION+set}" ; then
26106    setopt NO_GLOB_SUBST
26107 fi
26108
26109
26110     PACKAGE='$PACKAGE'
26111     VERSION='$VERSION'
26112     TIMESTAMP='$TIMESTAMP'
26113     RM='$RM'
26114     ofile='$ofile'
26115
26116
26117
26118
26119
26120
26121
26122
26123 _ACEOF
26124
26125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26126
26127 # Handling of arguments.
26128 for ac_config_target in $ac_config_targets
26129 do
26130   case $ac_config_target in
26131     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
26132     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26133     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
26134     "gcj/libgcj-config.h") CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
26135     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26136     "include/platform.h") CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
26137     "java/io/natFile.cc") CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
26138     "java/lang/natConcreteProcess.cc") CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
26139     "java/net/natVMInetAddress.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
26140     "java/net/natVMNetworkInterface.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
26141     "gnu/java/net/natPlainSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
26142     "gnu/java/net/natPlainDatagramSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
26143     "gnu/java/nio/natVMPipe.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
26144     "gnu/java/nio/natVMSelector.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
26145     "gnu/java/nio/channels/natFileChannelImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
26146     "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" ;;
26147     "include/java-gc.h") CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
26148     "include/java-threads.h") CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
26149     "sysdep/locks.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
26150     "sysdep/backtrace.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
26151     "sysdep/descriptor.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
26152     "include/java-signal.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
26153     "include/java-signal-aux.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
26154     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26155     "libgcj.pc") CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
26156     "libgcj.spec") CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
26157     "libgcj-test.spec") CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
26158     "gcj/Makefile") CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
26159     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26160     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
26161     "contrib/aotcompile.py") CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
26162     "contrib/aot-compile") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
26163     "contrib/aot-compile-rpm") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
26164     "contrib/generate-cacerts.pl") CONFIG_FILES="$CONFIG_FILES contrib/generate-cacerts.pl" ;;
26165     "contrib/rebuild-gcj-db") CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
26166     "scripts/jar") CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
26167
26168   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26169   esac
26170 done
26171
26172
26173 # If the user did not use the arguments to specify the items to instantiate,
26174 # then the envvar interface is used.  Set only those that are not.
26175 # We use the long form for the default assignment because of an extremely
26176 # bizarre bug on SunOS 4.1.3.
26177 if $ac_need_defaults; then
26178   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26179   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26180   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26181   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26182 fi
26183
26184 # Have a temporary directory for convenience.  Make it in the build tree
26185 # simply because there is no reason against having it here, and in addition,
26186 # creating and moving files from /tmp can sometimes cause problems.
26187 # Hook for its removal unless debugging.
26188 # Note that there is a small window in which the directory will not be cleaned:
26189 # after its creation but before its name has been assigned to `$tmp'.
26190 $debug ||
26191 {
26192   tmp=
26193   trap 'exit_status=$?
26194   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26195 ' 0
26196   trap 'as_fn_exit 1' 1 2 13 15
26197 }
26198 # Create a (secure) tmp directory for tmp files.
26199
26200 {
26201   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26202   test -n "$tmp" && test -d "$tmp"
26203 }  ||
26204 {
26205   tmp=./conf$$-$RANDOM
26206   (umask 077 && mkdir "$tmp")
26207 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26208
26209 # Set up the scripts for CONFIG_FILES section.
26210 # No need to generate them if there are no CONFIG_FILES.
26211 # This happens for instance with `./config.status config.h'.
26212 if test -n "$CONFIG_FILES"; then
26213
26214
26215 ac_cr=`echo X | tr X '\015'`
26216 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26217 # But we know of no other shell where ac_cr would be empty at this
26218 # point, so we can use a bashism as a fallback.
26219 if test "x$ac_cr" = x; then
26220   eval ac_cr=\$\'\\r\'
26221 fi
26222 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26223 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26224   ac_cs_awk_cr='\r'
26225 else
26226   ac_cs_awk_cr=$ac_cr
26227 fi
26228
26229 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26230 _ACEOF
26231
26232
26233 {
26234   echo "cat >conf$$subs.awk <<_ACEOF" &&
26235   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26236   echo "_ACEOF"
26237 } >conf$$subs.sh ||
26238   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26239 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26240 ac_delim='%!_!# '
26241 for ac_last_try in false false false false false :; do
26242   . ./conf$$subs.sh ||
26243     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26244
26245   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26246   if test $ac_delim_n = $ac_delim_num; then
26247     break
26248   elif $ac_last_try; then
26249     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26250   else
26251     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26252   fi
26253 done
26254 rm -f conf$$subs.sh
26255
26256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26257 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26258 _ACEOF
26259 sed -n '
26260 h
26261 s/^/S["/; s/!.*/"]=/
26262 p
26263 g
26264 s/^[^!]*!//
26265 :repl
26266 t repl
26267 s/'"$ac_delim"'$//
26268 t delim
26269 :nl
26270 h
26271 s/\(.\{148\}\).*/\1/
26272 t more1
26273 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26274 p
26275 n
26276 b repl
26277 :more1
26278 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26279 p
26280 g
26281 s/.\{148\}//
26282 t nl
26283 :delim
26284 h
26285 s/\(.\{148\}\).*/\1/
26286 t more2
26287 s/["\\]/\\&/g; s/^/"/; s/$/"/
26288 p
26289 b
26290 :more2
26291 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26292 p
26293 g
26294 s/.\{148\}//
26295 t delim
26296 ' <conf$$subs.awk | sed '
26297 /^[^""]/{
26298   N
26299   s/\n//
26300 }
26301 ' >>$CONFIG_STATUS || ac_write_fail=1
26302 rm -f conf$$subs.awk
26303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26304 _ACAWK
26305 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26306   for (key in S) S_is_set[key] = 1
26307   FS = "\a"
26308
26309 }
26310 {
26311   line = $ 0
26312   nfields = split(line, field, "@")
26313   substed = 0
26314   len = length(field[1])
26315   for (i = 2; i < nfields; i++) {
26316     key = field[i]
26317     keylen = length(key)
26318     if (S_is_set[key]) {
26319       value = S[key]
26320       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26321       len += length(value) + length(field[++i])
26322       substed = 1
26323     } else
26324       len += 1 + keylen
26325   }
26326
26327   print line
26328 }
26329
26330 _ACAWK
26331 _ACEOF
26332 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26333 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26334   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26335 else
26336   cat
26337 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26338   || as_fn_error "could not setup config files machinery" "$LINENO" 5
26339 _ACEOF
26340
26341 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26342 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26343 # trailing colons and then remove the whole line if VPATH becomes empty
26344 # (actually we leave an empty line to preserve line numbers).
26345 if test "x$srcdir" = x.; then
26346   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26347 s/:*\$(srcdir):*/:/
26348 s/:*\${srcdir}:*/:/
26349 s/:*@srcdir@:*/:/
26350 s/^\([^=]*=[     ]*\):*/\1/
26351 s/:*$//
26352 s/^[^=]*=[       ]*$//
26353 }'
26354 fi
26355
26356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26357 fi # test -n "$CONFIG_FILES"
26358
26359 # Set up the scripts for CONFIG_HEADERS section.
26360 # No need to generate them if there are no CONFIG_HEADERS.
26361 # This happens for instance with `./config.status Makefile'.
26362 if test -n "$CONFIG_HEADERS"; then
26363 cat >"$tmp/defines.awk" <<\_ACAWK ||
26364 BEGIN {
26365 _ACEOF
26366
26367 # Transform confdefs.h into an awk script `defines.awk', embedded as
26368 # here-document in config.status, that substitutes the proper values into
26369 # config.h.in to produce config.h.
26370
26371 # Create a delimiter string that does not exist in confdefs.h, to ease
26372 # handling of long lines.
26373 ac_delim='%!_!# '
26374 for ac_last_try in false false :; do
26375   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26376   if test -z "$ac_t"; then
26377     break
26378   elif $ac_last_try; then
26379     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26380   else
26381     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26382   fi
26383 done
26384
26385 # For the awk script, D is an array of macro values keyed by name,
26386 # likewise P contains macro parameters if any.  Preserve backslash
26387 # newline sequences.
26388
26389 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26390 sed -n '
26391 s/.\{148\}/&'"$ac_delim"'/g
26392 t rset
26393 :rset
26394 s/^[     ]*#[    ]*define[       ][      ]*/ /
26395 t def
26396 d
26397 :def
26398 s/\\$//
26399 t bsnl
26400 s/["\\]/\\&/g
26401 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26402 D["\1"]=" \3"/p
26403 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
26404 d
26405 :bsnl
26406 s/["\\]/\\&/g
26407 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26408 D["\1"]=" \3\\\\\\n"\\/p
26409 t cont
26410 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26411 t cont
26412 d
26413 :cont
26414 n
26415 s/.\{148\}/&'"$ac_delim"'/g
26416 t clear
26417 :clear
26418 s/\\$//
26419 t bsnlc
26420 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26421 d
26422 :bsnlc
26423 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26424 b cont
26425 ' <confdefs.h | sed '
26426 s/'"$ac_delim"'/"\\\
26427 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26428
26429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26430   for (key in D) D_is_set[key] = 1
26431   FS = "\a"
26432 }
26433 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26434   line = \$ 0
26435   split(line, arg, " ")
26436   if (arg[1] == "#") {
26437     defundef = arg[2]
26438     mac1 = arg[3]
26439   } else {
26440     defundef = substr(arg[1], 2)
26441     mac1 = arg[2]
26442   }
26443   split(mac1, mac2, "(") #)
26444   macro = mac2[1]
26445   prefix = substr(line, 1, index(line, defundef) - 1)
26446   if (D_is_set[macro]) {
26447     # Preserve the white space surrounding the "#".
26448     print prefix "define", macro P[macro] D[macro]
26449     next
26450   } else {
26451     # Replace #undef with comments.  This is necessary, for example,
26452     # in the case of _POSIX_SOURCE, which is predefined and required
26453     # on some systems where configure will not decide to define it.
26454     if (defundef == "undef") {
26455       print "/*", prefix defundef, macro, "*/"
26456       next
26457     }
26458   }
26459 }
26460 { print }
26461 _ACAWK
26462 _ACEOF
26463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26464   as_fn_error "could not setup config headers machinery" "$LINENO" 5
26465 fi # test -n "$CONFIG_HEADERS"
26466
26467
26468 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
26469 shift
26470 for ac_tag
26471 do
26472   case $ac_tag in
26473   :[FHLC]) ac_mode=$ac_tag; continue;;
26474   esac
26475   case $ac_mode$ac_tag in
26476   :[FHL]*:*);;
26477   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26478   :[FH]-) ac_tag=-:-;;
26479   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26480   esac
26481   ac_save_IFS=$IFS
26482   IFS=:
26483   set x $ac_tag
26484   IFS=$ac_save_IFS
26485   shift
26486   ac_file=$1
26487   shift
26488
26489   case $ac_mode in
26490   :L) ac_source=$1;;
26491   :[FH])
26492     ac_file_inputs=
26493     for ac_f
26494     do
26495       case $ac_f in
26496       -) ac_f="$tmp/stdin";;
26497       *) # Look for the file first in the build tree, then in the source tree
26498          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26499          # because $ac_f cannot contain `:'.
26500          test -f "$ac_f" ||
26501            case $ac_f in
26502            [\\/$]*) false;;
26503            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26504            esac ||
26505            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26506       esac
26507       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26508       as_fn_append ac_file_inputs " '$ac_f'"
26509     done
26510
26511     # Let's still pretend it is `configure' which instantiates (i.e., don't
26512     # use $as_me), people would be surprised to read:
26513     #    /* config.h.  Generated by config.status.  */
26514     configure_input='Generated from '`
26515           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26516         `' by configure.'
26517     if test x"$ac_file" != x-; then
26518       configure_input="$ac_file.  $configure_input"
26519       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26520 $as_echo "$as_me: creating $ac_file" >&6;}
26521     fi
26522     # Neutralize special characters interpreted by sed in replacement strings.
26523     case $configure_input in #(
26524     *\&* | *\|* | *\\* )
26525        ac_sed_conf_input=`$as_echo "$configure_input" |
26526        sed 's/[\\\\&|]/\\\\&/g'`;; #(
26527     *) ac_sed_conf_input=$configure_input;;
26528     esac
26529
26530     case $ac_tag in
26531     *:-:* | *:-) cat >"$tmp/stdin" \
26532       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26533     esac
26534     ;;
26535   esac
26536
26537   ac_dir=`$as_dirname -- "$ac_file" ||
26538 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26539          X"$ac_file" : 'X\(//\)[^/]' \| \
26540          X"$ac_file" : 'X\(//\)$' \| \
26541          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26542 $as_echo X"$ac_file" |
26543     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26544             s//\1/
26545             q
26546           }
26547           /^X\(\/\/\)[^/].*/{
26548             s//\1/
26549             q
26550           }
26551           /^X\(\/\/\)$/{
26552             s//\1/
26553             q
26554           }
26555           /^X\(\/\).*/{
26556             s//\1/
26557             q
26558           }
26559           s/.*/./; q'`
26560   as_dir="$ac_dir"; as_fn_mkdir_p
26561   ac_builddir=.
26562
26563 case "$ac_dir" in
26564 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26565 *)
26566   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26567   # A ".." for each directory in $ac_dir_suffix.
26568   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26569   case $ac_top_builddir_sub in
26570   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26571   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26572   esac ;;
26573 esac
26574 ac_abs_top_builddir=$ac_pwd
26575 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26576 # for backward compatibility:
26577 ac_top_builddir=$ac_top_build_prefix
26578
26579 case $srcdir in
26580   .)  # We are building in place.
26581     ac_srcdir=.
26582     ac_top_srcdir=$ac_top_builddir_sub
26583     ac_abs_top_srcdir=$ac_pwd ;;
26584   [\\/]* | ?:[\\/]* )  # Absolute name.
26585     ac_srcdir=$srcdir$ac_dir_suffix;
26586     ac_top_srcdir=$srcdir
26587     ac_abs_top_srcdir=$srcdir ;;
26588   *) # Relative name.
26589     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26590     ac_top_srcdir=$ac_top_build_prefix$srcdir
26591     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26592 esac
26593 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26594
26595
26596   case $ac_mode in
26597   :F)
26598   #
26599   # CONFIG_FILE
26600   #
26601
26602   case $INSTALL in
26603   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26604   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26605   esac
26606   ac_MKDIR_P=$MKDIR_P
26607   case $MKDIR_P in
26608   [\\/$]* | ?:[\\/]* ) ;;
26609   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26610   esac
26611 _ACEOF
26612
26613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26614 # If the template does not know about datarootdir, expand it.
26615 # FIXME: This hack should be removed a few years after 2.60.
26616 ac_datarootdir_hack=; ac_datarootdir_seen=
26617 ac_sed_dataroot='
26618 /datarootdir/ {
26619   p
26620   q
26621 }
26622 /@datadir@/p
26623 /@docdir@/p
26624 /@infodir@/p
26625 /@localedir@/p
26626 /@mandir@/p'
26627 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26628 *datarootdir*) ac_datarootdir_seen=yes;;
26629 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26630   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26631 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26632 _ACEOF
26633 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26634   ac_datarootdir_hack='
26635   s&@datadir@&$datadir&g
26636   s&@docdir@&$docdir&g
26637   s&@infodir@&$infodir&g
26638   s&@localedir@&$localedir&g
26639   s&@mandir@&$mandir&g
26640   s&\\\${datarootdir}&$datarootdir&g' ;;
26641 esac
26642 _ACEOF
26643
26644 # Neutralize VPATH when `$srcdir' = `.'.
26645 # Shell code in configure.ac might set extrasub.
26646 # FIXME: do we really want to maintain this feature?
26647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26648 ac_sed_extra="$ac_vpsub
26649 $extrasub
26650 _ACEOF
26651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26652 :t
26653 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26654 s|@configure_input@|$ac_sed_conf_input|;t t
26655 s&@top_builddir@&$ac_top_builddir_sub&;t t
26656 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26657 s&@srcdir@&$ac_srcdir&;t t
26658 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26659 s&@top_srcdir@&$ac_top_srcdir&;t t
26660 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26661 s&@builddir@&$ac_builddir&;t t
26662 s&@abs_builddir@&$ac_abs_builddir&;t t
26663 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26664 s&@INSTALL@&$ac_INSTALL&;t t
26665 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26666 $ac_datarootdir_hack
26667 "
26668 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26669   || as_fn_error "could not create $ac_file" "$LINENO" 5
26670
26671 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26672   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26673   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26674   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26675 which seems to be undefined.  Please make sure it is defined." >&5
26676 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26677 which seems to be undefined.  Please make sure it is defined." >&2;}
26678
26679   rm -f "$tmp/stdin"
26680   case $ac_file in
26681   -) cat "$tmp/out" && rm -f "$tmp/out";;
26682   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26683   esac \
26684   || as_fn_error "could not create $ac_file" "$LINENO" 5
26685  ;;
26686   :H)
26687   #
26688   # CONFIG_HEADER
26689   #
26690   if test x"$ac_file" != x-; then
26691     {
26692       $as_echo "/* $configure_input  */" \
26693       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26694     } >"$tmp/config.h" \
26695       || as_fn_error "could not create $ac_file" "$LINENO" 5
26696     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26697       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26698 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26699     else
26700       rm -f "$ac_file"
26701       mv "$tmp/config.h" "$ac_file" \
26702         || as_fn_error "could not create $ac_file" "$LINENO" 5
26703     fi
26704   else
26705     $as_echo "/* $configure_input  */" \
26706       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26707       || as_fn_error "could not create -" "$LINENO" 5
26708   fi
26709 # Compute "$ac_file"'s index in $config_headers.
26710 _am_arg="$ac_file"
26711 _am_stamp_count=1
26712 for _am_header in $config_headers :; do
26713   case $_am_header in
26714     $_am_arg | $_am_arg:* )
26715       break ;;
26716     * )
26717       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26718   esac
26719 done
26720 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26721 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26722          X"$_am_arg" : 'X\(//\)[^/]' \| \
26723          X"$_am_arg" : 'X\(//\)$' \| \
26724          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26725 $as_echo X"$_am_arg" |
26726     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26727             s//\1/
26728             q
26729           }
26730           /^X\(\/\/\)[^/].*/{
26731             s//\1/
26732             q
26733           }
26734           /^X\(\/\/\)$/{
26735             s//\1/
26736             q
26737           }
26738           /^X\(\/\).*/{
26739             s//\1/
26740             q
26741           }
26742           s/.*/./; q'`/stamp-h$_am_stamp_count
26743  ;;
26744   :L)
26745   #
26746   # CONFIG_LINK
26747   #
26748
26749   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
26750     :
26751   else
26752     # Prefer the file from the source tree if names are identical.
26753     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
26754       ac_source=$srcdir/$ac_source
26755     fi
26756
26757     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
26758 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
26759
26760     if test ! -r "$ac_source"; then
26761       as_fn_error "$ac_source: file not found" "$LINENO" 5
26762     fi
26763     rm -f "$ac_file"
26764
26765     # Try a relative symlink, then a hard link, then a copy.
26766     case $srcdir in
26767     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
26768         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
26769     esac
26770     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26771       ln "$ac_source" "$ac_file" 2>/dev/null ||
26772       cp -p "$ac_source" "$ac_file" ||
26773       as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
26774   fi
26775  ;;
26776   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26777 $as_echo "$as_me: executing $ac_file commands" >&6;}
26778  ;;
26779   esac
26780
26781
26782   case $ac_file$ac_mode in
26783     "default-1":C)
26784 # Only add multilib support code if we just rebuilt the top-level
26785 # Makefile.
26786 case " $CONFIG_FILES " in
26787  *" Makefile "*)
26788    ac_file=Makefile . ${multi_basedir}/config-ml.in
26789    ;;
26790 esac ;;
26791     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26792   # Autoconf 2.62 quotes --file arguments for eval, but not when files
26793   # are listed without --file.  Let's play safe and only enable the eval
26794   # if we detect the quoting.
26795   case $CONFIG_FILES in
26796   *\'*) eval set x "$CONFIG_FILES" ;;
26797   *)   set x $CONFIG_FILES ;;
26798   esac
26799   shift
26800   for mf
26801   do
26802     # Strip MF so we end up with the name of the file.
26803     mf=`echo "$mf" | sed -e 's/:.*$//'`
26804     # Check whether this is an Automake generated Makefile or not.
26805     # We used to match only the files named `Makefile.in', but
26806     # some people rename them; so instead we look at the file content.
26807     # Grep'ing the first line is not enough: some people post-process
26808     # each Makefile.in and add a new line on top of each file to say so.
26809     # Grep'ing the whole file is not good either: AIX grep has a line
26810     # limit of 2048, but all sed's we know have understand at least 4000.
26811     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26812       dirpart=`$as_dirname -- "$mf" ||
26813 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26814          X"$mf" : 'X\(//\)[^/]' \| \
26815          X"$mf" : 'X\(//\)$' \| \
26816          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26817 $as_echo X"$mf" |
26818     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26819             s//\1/
26820             q
26821           }
26822           /^X\(\/\/\)[^/].*/{
26823             s//\1/
26824             q
26825           }
26826           /^X\(\/\/\)$/{
26827             s//\1/
26828             q
26829           }
26830           /^X\(\/\).*/{
26831             s//\1/
26832             q
26833           }
26834           s/.*/./; q'`
26835     else
26836       continue
26837     fi
26838     # Extract the definition of DEPDIR, am__include, and am__quote
26839     # from the Makefile without running `make'.
26840     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26841     test -z "$DEPDIR" && continue
26842     am__include=`sed -n 's/^am__include = //p' < "$mf"`
26843     test -z "am__include" && continue
26844     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26845     # When using ansi2knr, U may be empty or an underscore; expand it
26846     U=`sed -n 's/^U = //p' < "$mf"`
26847     # Find all dependency output files, they are included files with
26848     # $(DEPDIR) in their names.  We invoke sed twice because it is the
26849     # simplest approach to changing $(DEPDIR) to its actual value in the
26850     # expansion.
26851     for file in `sed -n "
26852       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26853          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26854       # Make sure the directory exists.
26855       test -f "$dirpart/$file" && continue
26856       fdir=`$as_dirname -- "$file" ||
26857 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26858          X"$file" : 'X\(//\)[^/]' \| \
26859          X"$file" : 'X\(//\)$' \| \
26860          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26861 $as_echo X"$file" |
26862     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26863             s//\1/
26864             q
26865           }
26866           /^X\(\/\/\)[^/].*/{
26867             s//\1/
26868             q
26869           }
26870           /^X\(\/\/\)$/{
26871             s//\1/
26872             q
26873           }
26874           /^X\(\/\).*/{
26875             s//\1/
26876             q
26877           }
26878           s/.*/./; q'`
26879       as_dir=$dirpart/$fdir; as_fn_mkdir_p
26880       # echo "creating $dirpart/$file"
26881       echo '# dummy' > "$dirpart/$file"
26882     done
26883   done
26884 }
26885  ;;
26886     "libtool":C)
26887
26888     # See if we are running on zsh, and set the options which allow our
26889     # commands through without removal of \ escapes.
26890     if test -n "${ZSH_VERSION+set}" ; then
26891       setopt NO_GLOB_SUBST
26892     fi
26893
26894     cfgfile="${ofile}T"
26895     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26896     $RM "$cfgfile"
26897
26898     cat <<_LT_EOF >> "$cfgfile"
26899 #! $SHELL
26900
26901 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26902 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26903 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26904 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26905 #
26906 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26907 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
26908 #   Written by Gordon Matzigkeit, 1996
26909 #
26910 #   This file is part of GNU Libtool.
26911 #
26912 # GNU Libtool is free software; you can redistribute it and/or
26913 # modify it under the terms of the GNU General Public License as
26914 # published by the Free Software Foundation; either version 2 of
26915 # the License, or (at your option) any later version.
26916 #
26917 # As a special exception to the GNU General Public License,
26918 # if you distribute this file as part of a program or library that
26919 # is built using GNU Libtool, you may include this file under the
26920 # same distribution terms that you use for the rest of that program.
26921 #
26922 # GNU Libtool is distributed in the hope that it will be useful,
26923 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26924 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26925 # GNU General Public License for more details.
26926 #
26927 # You should have received a copy of the GNU General Public License
26928 # along with GNU Libtool; see the file COPYING.  If not, a copy
26929 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26930 # obtained by writing to the Free Software Foundation, Inc.,
26931 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26932
26933
26934 # The names of the tagged configurations supported by this script.
26935 available_tags="CXX GCJ "
26936
26937 # ### BEGIN LIBTOOL CONFIG
26938
26939 # Which release of libtool.m4 was used?
26940 macro_version=$macro_version
26941 macro_revision=$macro_revision
26942
26943 # Whether or not to build shared libraries.
26944 build_libtool_libs=$enable_shared
26945
26946 # Whether or not to build static libraries.
26947 build_old_libs=$enable_static
26948
26949 # What type of objects to build.
26950 pic_mode=$pic_mode
26951
26952 # Whether or not to optimize for fast installation.
26953 fast_install=$enable_fast_install
26954
26955 # Shell to use when invoking shell scripts.
26956 SHELL=$lt_SHELL
26957
26958 # An echo program that protects backslashes.
26959 ECHO=$lt_ECHO
26960
26961 # The host system.
26962 host_alias=$host_alias
26963 host=$host
26964 host_os=$host_os
26965
26966 # The build system.
26967 build_alias=$build_alias
26968 build=$build
26969 build_os=$build_os
26970
26971 # A sed program that does not truncate output.
26972 SED=$lt_SED
26973
26974 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26975 Xsed="\$SED -e 1s/^X//"
26976
26977 # A grep program that handles long lines.
26978 GREP=$lt_GREP
26979
26980 # An ERE matcher.
26981 EGREP=$lt_EGREP
26982
26983 # A literal string matcher.
26984 FGREP=$lt_FGREP
26985
26986 # A BSD- or MS-compatible name lister.
26987 NM=$lt_NM
26988
26989 # Whether we need soft or hard links.
26990 LN_S=$lt_LN_S
26991
26992 # What is the maximum length of a command?
26993 max_cmd_len=$max_cmd_len
26994
26995 # Object file suffix (normally "o").
26996 objext=$ac_objext
26997
26998 # Executable file suffix (normally "").
26999 exeext=$exeext
27000
27001 # whether the shell understands "unset".
27002 lt_unset=$lt_unset
27003
27004 # turn spaces into newlines.
27005 SP2NL=$lt_lt_SP2NL
27006
27007 # turn newlines into spaces.
27008 NL2SP=$lt_lt_NL2SP
27009
27010 # An object symbol dumper.
27011 OBJDUMP=$lt_OBJDUMP
27012
27013 # Method to check whether dependent libraries are shared objects.
27014 deplibs_check_method=$lt_deplibs_check_method
27015
27016 # Command to use when deplibs_check_method == "file_magic".
27017 file_magic_cmd=$lt_file_magic_cmd
27018
27019 # The archiver.
27020 AR=$lt_AR
27021 AR_FLAGS=$lt_AR_FLAGS
27022
27023 # A symbol stripping program.
27024 STRIP=$lt_STRIP
27025
27026 # Commands used to install an old-style archive.
27027 RANLIB=$lt_RANLIB
27028 old_postinstall_cmds=$lt_old_postinstall_cmds
27029 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27030
27031 # Whether to use a lock for old archive extraction.
27032 lock_old_archive_extraction=$lock_old_archive_extraction
27033
27034 # A C compiler.
27035 LTCC=$lt_CC
27036
27037 # LTCC compiler flags.
27038 LTCFLAGS=$lt_CFLAGS
27039
27040 # Take the output of nm and produce a listing of raw symbols and C names.
27041 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27042
27043 # Transform the output of nm in a proper C declaration.
27044 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27045
27046 # Transform the output of nm in a C name address pair.
27047 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27048
27049 # Transform the output of nm in a C name address pair when lib prefix is needed.
27050 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27051
27052 # The name of the directory that contains temporary libtool files.
27053 objdir=$objdir
27054
27055 # Used to examine libraries when file_magic_cmd begins with "file".
27056 MAGIC_CMD=$MAGIC_CMD
27057
27058 # Must we lock files when doing compilation?
27059 need_locks=$lt_need_locks
27060
27061 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27062 DSYMUTIL=$lt_DSYMUTIL
27063
27064 # Tool to change global to local symbols on Mac OS X.
27065 NMEDIT=$lt_NMEDIT
27066
27067 # Tool to manipulate fat objects and archives on Mac OS X.
27068 LIPO=$lt_LIPO
27069
27070 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27071 OTOOL=$lt_OTOOL
27072
27073 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27074 OTOOL64=$lt_OTOOL64
27075
27076 # Old archive suffix (normally "a").
27077 libext=$libext
27078
27079 # Shared library suffix (normally ".so").
27080 shrext_cmds=$lt_shrext_cmds
27081
27082 # The commands to extract the exported symbol list from a shared archive.
27083 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27084
27085 # Variables whose values should be saved in libtool wrapper scripts and
27086 # restored at link time.
27087 variables_saved_for_relink=$lt_variables_saved_for_relink
27088
27089 # Do we need the "lib" prefix for modules?
27090 need_lib_prefix=$need_lib_prefix
27091
27092 # Do we need a version for libraries?
27093 need_version=$need_version
27094
27095 # Library versioning type.
27096 version_type=$version_type
27097
27098 # Shared library runtime path variable.
27099 runpath_var=$runpath_var
27100
27101 # Shared library path variable.
27102 shlibpath_var=$shlibpath_var
27103
27104 # Is shlibpath searched before the hard-coded library search path?
27105 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27106
27107 # Format of library name prefix.
27108 libname_spec=$lt_libname_spec
27109
27110 # List of archive names.  First name is the real one, the rest are links.
27111 # The last name is the one that the linker finds with -lNAME
27112 library_names_spec=$lt_library_names_spec
27113
27114 # The coded name of the library, if different from the real name.
27115 soname_spec=$lt_soname_spec
27116
27117 # Permission mode override for installation of shared libraries.
27118 install_override_mode=$lt_install_override_mode
27119
27120 # Command to use after installation of a shared archive.
27121 postinstall_cmds=$lt_postinstall_cmds
27122
27123 # Command to use after uninstallation of a shared archive.
27124 postuninstall_cmds=$lt_postuninstall_cmds
27125
27126 # Commands used to finish a libtool library installation in a directory.
27127 finish_cmds=$lt_finish_cmds
27128
27129 # As "finish_cmds", except a single script fragment to be evaled but
27130 # not shown.
27131 finish_eval=$lt_finish_eval
27132
27133 # Whether we should hardcode library paths into libraries.
27134 hardcode_into_libs=$hardcode_into_libs
27135
27136 # Compile-time system search path for libraries.
27137 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27138
27139 # Run-time system search path for libraries.
27140 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27141
27142 # Whether dlopen is supported.
27143 dlopen_support=$enable_dlopen
27144
27145 # Whether dlopen of programs is supported.
27146 dlopen_self=$enable_dlopen_self
27147
27148 # Whether dlopen of statically linked programs is supported.
27149 dlopen_self_static=$enable_dlopen_self_static
27150
27151 # Commands to strip libraries.
27152 old_striplib=$lt_old_striplib
27153 striplib=$lt_striplib
27154
27155
27156 # The linker used to build libraries.
27157 LD=$lt_LD
27158
27159 # How to create reloadable object files.
27160 reload_flag=$lt_reload_flag
27161 reload_cmds=$lt_reload_cmds
27162
27163 # Commands used to build an old-style archive.
27164 old_archive_cmds=$lt_old_archive_cmds
27165
27166 # A language specific compiler.
27167 CC=$lt_compiler
27168
27169 # Is the compiler the GNU compiler?
27170 with_gcc=$GCC
27171
27172 # Compiler flag to turn off builtin functions.
27173 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27174
27175 # How to pass a linker flag through the compiler.
27176 wl=$lt_lt_prog_compiler_wl
27177
27178 # Additional compiler flags for building library objects.
27179 pic_flag=$lt_lt_prog_compiler_pic
27180
27181 # Compiler flag to prevent dynamic linking.
27182 link_static_flag=$lt_lt_prog_compiler_static
27183
27184 # Does compiler simultaneously support -c and -o options?
27185 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27186
27187 # Whether or not to add -lc for building shared libraries.
27188 build_libtool_need_lc=$archive_cmds_need_lc
27189
27190 # Whether or not to disallow shared libs when runtime libs are static.
27191 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27192
27193 # Compiler flag to allow reflexive dlopens.
27194 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27195
27196 # Compiler flag to generate shared objects directly from archives.
27197 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27198
27199 # Whether the compiler copes with passing no objects directly.
27200 compiler_needs_object=$lt_compiler_needs_object
27201
27202 # Create an old-style archive from a shared archive.
27203 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27204
27205 # Create a temporary old-style archive to link instead of a shared archive.
27206 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27207
27208 # Commands used to build a shared archive.
27209 archive_cmds=$lt_archive_cmds
27210 archive_expsym_cmds=$lt_archive_expsym_cmds
27211
27212 # Commands used to build a loadable module if different from building
27213 # a shared archive.
27214 module_cmds=$lt_module_cmds
27215 module_expsym_cmds=$lt_module_expsym_cmds
27216
27217 # Whether we are building with GNU ld or not.
27218 with_gnu_ld=$lt_with_gnu_ld
27219
27220 # Flag that allows shared libraries with undefined symbols to be built.
27221 allow_undefined_flag=$lt_allow_undefined_flag
27222
27223 # Flag that enforces no undefined symbols.
27224 no_undefined_flag=$lt_no_undefined_flag
27225
27226 # Flag to hardcode \$libdir into a binary during linking.
27227 # This must work even if \$libdir does not exist
27228 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27229
27230 # If ld is used when linking, flag to hardcode \$libdir into a binary
27231 # during linking.  This must work even if \$libdir does not exist.
27232 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27233
27234 # Whether we need a single "-rpath" flag with a separated argument.
27235 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27236
27237 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27238 # DIR into the resulting binary.
27239 hardcode_direct=$hardcode_direct
27240
27241 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27242 # DIR into the resulting binary and the resulting library dependency is
27243 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27244 # library is relocated.
27245 hardcode_direct_absolute=$hardcode_direct_absolute
27246
27247 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27248 # into the resulting binary.
27249 hardcode_minus_L=$hardcode_minus_L
27250
27251 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27252 # into the resulting binary.
27253 hardcode_shlibpath_var=$hardcode_shlibpath_var
27254
27255 # Set to "yes" if building a shared library automatically hardcodes DIR
27256 # into the library and all subsequent libraries and executables linked
27257 # against it.
27258 hardcode_automatic=$hardcode_automatic
27259
27260 # Set to yes if linker adds runtime paths of dependent libraries
27261 # to runtime path list.
27262 inherit_rpath=$inherit_rpath
27263
27264 # Whether libtool must link a program against all its dependency libraries.
27265 link_all_deplibs=$link_all_deplibs
27266
27267 # Fix the shell variable \$srcfile for the compiler.
27268 fix_srcfile_path=$lt_fix_srcfile_path
27269
27270 # Set to "yes" if exported symbols are required.
27271 always_export_symbols=$always_export_symbols
27272
27273 # The commands to list exported symbols.
27274 export_symbols_cmds=$lt_export_symbols_cmds
27275
27276 # Symbols that should not be listed in the preloaded symbols.
27277 exclude_expsyms=$lt_exclude_expsyms
27278
27279 # Symbols that must always be exported.
27280 include_expsyms=$lt_include_expsyms
27281
27282 # Commands necessary for linking programs (against libraries) with templates.
27283 prelink_cmds=$lt_prelink_cmds
27284
27285 # Specify filename containing input files.
27286 file_list_spec=$lt_file_list_spec
27287
27288 # How to hardcode a shared library path into an executable.
27289 hardcode_action=$hardcode_action
27290
27291 # The directories searched by this compiler when creating a shared library.
27292 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27293
27294 # Dependencies to place before and after the objects being linked to
27295 # create a shared library.
27296 predep_objects=$lt_predep_objects
27297 postdep_objects=$lt_postdep_objects
27298 predeps=$lt_predeps
27299 postdeps=$lt_postdeps
27300
27301 # The library search path used internally by the compiler when linking
27302 # a shared library.
27303 compiler_lib_search_path=$lt_compiler_lib_search_path
27304
27305 # ### END LIBTOOL CONFIG
27306
27307 _LT_EOF
27308
27309   case $host_os in
27310   aix3*)
27311     cat <<\_LT_EOF >> "$cfgfile"
27312 # AIX sometimes has problems with the GCC collect2 program.  For some
27313 # reason, if we set the COLLECT_NAMES environment variable, the problems
27314 # vanish in a puff of smoke.
27315 if test "X${COLLECT_NAMES+set}" != Xset; then
27316   COLLECT_NAMES=
27317   export COLLECT_NAMES
27318 fi
27319 _LT_EOF
27320     ;;
27321   esac
27322
27323
27324 ltmain="$ac_aux_dir/ltmain.sh"
27325
27326
27327   # We use sed instead of cat because bash on DJGPP gets confused if
27328   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
27329   # text mode, it properly converts lines to CR/LF.  This bash problem
27330   # is reportedly fixed, but why not run on old versions too?
27331   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27332     || (rm -f "$cfgfile"; exit 1)
27333
27334   case $xsi_shell in
27335   yes)
27336     cat << \_LT_EOF >> "$cfgfile"
27337
27338 # func_dirname file append nondir_replacement
27339 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
27340 # otherwise set result to NONDIR_REPLACEMENT.
27341 func_dirname ()
27342 {
27343   case ${1} in
27344     */*) func_dirname_result="${1%/*}${2}" ;;
27345     *  ) func_dirname_result="${3}" ;;
27346   esac
27347 }
27348
27349 # func_basename file
27350 func_basename ()
27351 {
27352   func_basename_result="${1##*/}"
27353 }
27354
27355 # func_dirname_and_basename file append nondir_replacement
27356 # perform func_basename and func_dirname in a single function
27357 # call:
27358 #   dirname:  Compute the dirname of FILE.  If nonempty,
27359 #             add APPEND to the result, otherwise set result
27360 #             to NONDIR_REPLACEMENT.
27361 #             value returned in "$func_dirname_result"
27362 #   basename: Compute filename of FILE.
27363 #             value retuned in "$func_basename_result"
27364 # Implementation must be kept synchronized with func_dirname
27365 # and func_basename. For efficiency, we do not delegate to
27366 # those functions but instead duplicate the functionality here.
27367 func_dirname_and_basename ()
27368 {
27369   case ${1} in
27370     */*) func_dirname_result="${1%/*}${2}" ;;
27371     *  ) func_dirname_result="${3}" ;;
27372   esac
27373   func_basename_result="${1##*/}"
27374 }
27375
27376 # func_stripname prefix suffix name
27377 # strip PREFIX and SUFFIX off of NAME.
27378 # PREFIX and SUFFIX must not contain globbing or regex special
27379 # characters, hashes, percent signs, but SUFFIX may contain a leading
27380 # dot (in which case that matches only a dot).
27381 func_stripname ()
27382 {
27383   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27384   # positional parameters, so assign one to ordinary parameter first.
27385   func_stripname_result=${3}
27386   func_stripname_result=${func_stripname_result#"${1}"}
27387   func_stripname_result=${func_stripname_result%"${2}"}
27388 }
27389
27390 # func_opt_split
27391 func_opt_split ()
27392 {
27393   func_opt_split_opt=${1%%=*}
27394   func_opt_split_arg=${1#*=}
27395 }
27396
27397 # func_lo2o object
27398 func_lo2o ()
27399 {
27400   case ${1} in
27401     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27402     *)    func_lo2o_result=${1} ;;
27403   esac
27404 }
27405
27406 # func_xform libobj-or-source
27407 func_xform ()
27408 {
27409   func_xform_result=${1%.*}.lo
27410 }
27411
27412 # func_arith arithmetic-term...
27413 func_arith ()
27414 {
27415   func_arith_result=$(( $* ))
27416 }
27417
27418 # func_len string
27419 # STRING may not start with a hyphen.
27420 func_len ()
27421 {
27422   func_len_result=${#1}
27423 }
27424
27425 _LT_EOF
27426     ;;
27427   *) # Bourne compatible functions.
27428     cat << \_LT_EOF >> "$cfgfile"
27429
27430 # func_dirname file append nondir_replacement
27431 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
27432 # otherwise set result to NONDIR_REPLACEMENT.
27433 func_dirname ()
27434 {
27435   # Extract subdirectory from the argument.
27436   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
27437   if test "X$func_dirname_result" = "X${1}"; then
27438     func_dirname_result="${3}"
27439   else
27440     func_dirname_result="$func_dirname_result${2}"
27441   fi
27442 }
27443
27444 # func_basename file
27445 func_basename ()
27446 {
27447   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
27448 }
27449
27450
27451 # func_stripname prefix suffix name
27452 # strip PREFIX and SUFFIX off of NAME.
27453 # PREFIX and SUFFIX must not contain globbing or regex special
27454 # characters, hashes, percent signs, but SUFFIX may contain a leading
27455 # dot (in which case that matches only a dot).
27456 # func_strip_suffix prefix name
27457 func_stripname ()
27458 {
27459   case ${2} in
27460     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
27461     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
27462   esac
27463 }
27464
27465 # sed scripts:
27466 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27467 my_sed_long_arg='1s/^-[^=]*=//'
27468
27469 # func_opt_split
27470 func_opt_split ()
27471 {
27472   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
27473   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
27474 }
27475
27476 # func_lo2o object
27477 func_lo2o ()
27478 {
27479   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
27480 }
27481
27482 # func_xform libobj-or-source
27483 func_xform ()
27484 {
27485   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
27486 }
27487
27488 # func_arith arithmetic-term...
27489 func_arith ()
27490 {
27491   func_arith_result=`expr "$@"`
27492 }
27493
27494 # func_len string
27495 # STRING may not start with a hyphen.
27496 func_len ()
27497 {
27498   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27499 }
27500
27501 _LT_EOF
27502 esac
27503
27504 case $lt_shell_append in
27505   yes)
27506     cat << \_LT_EOF >> "$cfgfile"
27507
27508 # func_append var value
27509 # Append VALUE to the end of shell variable VAR.
27510 func_append ()
27511 {
27512   eval "$1+=\$2"
27513 }
27514 _LT_EOF
27515     ;;
27516   *)
27517     cat << \_LT_EOF >> "$cfgfile"
27518
27519 # func_append var value
27520 # Append VALUE to the end of shell variable VAR.
27521 func_append ()
27522 {
27523   eval "$1=\$$1\$2"
27524 }
27525
27526 _LT_EOF
27527     ;;
27528   esac
27529
27530
27531   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27532     || (rm -f "$cfgfile"; exit 1)
27533
27534   mv -f "$cfgfile" "$ofile" ||
27535     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27536   chmod +x "$ofile"
27537
27538
27539     cat <<_LT_EOF >> "$ofile"
27540
27541 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27542
27543 # The linker used to build libraries.
27544 LD=$lt_LD_CXX
27545
27546 # How to create reloadable object files.
27547 reload_flag=$lt_reload_flag_CXX
27548 reload_cmds=$lt_reload_cmds_CXX
27549
27550 # Commands used to build an old-style archive.
27551 old_archive_cmds=$lt_old_archive_cmds_CXX
27552
27553 # A language specific compiler.
27554 CC=$lt_compiler_CXX
27555
27556 # Is the compiler the GNU compiler?
27557 with_gcc=$GCC_CXX
27558
27559 # Compiler flag to turn off builtin functions.
27560 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27561
27562 # How to pass a linker flag through the compiler.
27563 wl=$lt_lt_prog_compiler_wl_CXX
27564
27565 # Additional compiler flags for building library objects.
27566 pic_flag=$lt_lt_prog_compiler_pic_CXX
27567
27568 # Compiler flag to prevent dynamic linking.
27569 link_static_flag=$lt_lt_prog_compiler_static_CXX
27570
27571 # Does compiler simultaneously support -c and -o options?
27572 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27573
27574 # Whether or not to add -lc for building shared libraries.
27575 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27576
27577 # Whether or not to disallow shared libs when runtime libs are static.
27578 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27579
27580 # Compiler flag to allow reflexive dlopens.
27581 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27582
27583 # Compiler flag to generate shared objects directly from archives.
27584 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27585
27586 # Whether the compiler copes with passing no objects directly.
27587 compiler_needs_object=$lt_compiler_needs_object_CXX
27588
27589 # Create an old-style archive from a shared archive.
27590 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27591
27592 # Create a temporary old-style archive to link instead of a shared archive.
27593 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27594
27595 # Commands used to build a shared archive.
27596 archive_cmds=$lt_archive_cmds_CXX
27597 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27598
27599 # Commands used to build a loadable module if different from building
27600 # a shared archive.
27601 module_cmds=$lt_module_cmds_CXX
27602 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27603
27604 # Whether we are building with GNU ld or not.
27605 with_gnu_ld=$lt_with_gnu_ld_CXX
27606
27607 # Flag that allows shared libraries with undefined symbols to be built.
27608 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27609
27610 # Flag that enforces no undefined symbols.
27611 no_undefined_flag=$lt_no_undefined_flag_CXX
27612
27613 # Flag to hardcode \$libdir into a binary during linking.
27614 # This must work even if \$libdir does not exist
27615 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27616
27617 # If ld is used when linking, flag to hardcode \$libdir into a binary
27618 # during linking.  This must work even if \$libdir does not exist.
27619 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27620
27621 # Whether we need a single "-rpath" flag with a separated argument.
27622 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27623
27624 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27625 # DIR into the resulting binary.
27626 hardcode_direct=$hardcode_direct_CXX
27627
27628 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27629 # DIR into the resulting binary and the resulting library dependency is
27630 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27631 # library is relocated.
27632 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27633
27634 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27635 # into the resulting binary.
27636 hardcode_minus_L=$hardcode_minus_L_CXX
27637
27638 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27639 # into the resulting binary.
27640 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27641
27642 # Set to "yes" if building a shared library automatically hardcodes DIR
27643 # into the library and all subsequent libraries and executables linked
27644 # against it.
27645 hardcode_automatic=$hardcode_automatic_CXX
27646
27647 # Set to yes if linker adds runtime paths of dependent libraries
27648 # to runtime path list.
27649 inherit_rpath=$inherit_rpath_CXX
27650
27651 # Whether libtool must link a program against all its dependency libraries.
27652 link_all_deplibs=$link_all_deplibs_CXX
27653
27654 # Fix the shell variable \$srcfile for the compiler.
27655 fix_srcfile_path=$lt_fix_srcfile_path_CXX
27656
27657 # Set to "yes" if exported symbols are required.
27658 always_export_symbols=$always_export_symbols_CXX
27659
27660 # The commands to list exported symbols.
27661 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27662
27663 # Symbols that should not be listed in the preloaded symbols.
27664 exclude_expsyms=$lt_exclude_expsyms_CXX
27665
27666 # Symbols that must always be exported.
27667 include_expsyms=$lt_include_expsyms_CXX
27668
27669 # Commands necessary for linking programs (against libraries) with templates.
27670 prelink_cmds=$lt_prelink_cmds_CXX
27671
27672 # Specify filename containing input files.
27673 file_list_spec=$lt_file_list_spec_CXX
27674
27675 # How to hardcode a shared library path into an executable.
27676 hardcode_action=$hardcode_action_CXX
27677
27678 # The directories searched by this compiler when creating a shared library.
27679 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27680
27681 # Dependencies to place before and after the objects being linked to
27682 # create a shared library.
27683 predep_objects=$lt_predep_objects_CXX
27684 postdep_objects=$lt_postdep_objects_CXX
27685 predeps=$lt_predeps_CXX
27686 postdeps=$lt_postdeps_CXX
27687
27688 # The library search path used internally by the compiler when linking
27689 # a shared library.
27690 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27691
27692 # ### END LIBTOOL TAG CONFIG: CXX
27693 _LT_EOF
27694
27695
27696     cat <<_LT_EOF >> "$ofile"
27697
27698 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
27699
27700 # The linker used to build libraries.
27701 LD=$lt_LD_GCJ
27702
27703 # How to create reloadable object files.
27704 reload_flag=$lt_reload_flag_GCJ
27705 reload_cmds=$lt_reload_cmds_GCJ
27706
27707 # Commands used to build an old-style archive.
27708 old_archive_cmds=$lt_old_archive_cmds_GCJ
27709
27710 # A language specific compiler.
27711 CC=$lt_compiler_GCJ
27712
27713 # Is the compiler the GNU compiler?
27714 with_gcc=$GCC_GCJ
27715
27716 # Compiler flag to turn off builtin functions.
27717 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
27718
27719 # How to pass a linker flag through the compiler.
27720 wl=$lt_lt_prog_compiler_wl_GCJ
27721
27722 # Additional compiler flags for building library objects.
27723 pic_flag=$lt_lt_prog_compiler_pic_GCJ
27724
27725 # Compiler flag to prevent dynamic linking.
27726 link_static_flag=$lt_lt_prog_compiler_static_GCJ
27727
27728 # Does compiler simultaneously support -c and -o options?
27729 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
27730
27731 # Whether or not to add -lc for building shared libraries.
27732 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
27733
27734 # Whether or not to disallow shared libs when runtime libs are static.
27735 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
27736
27737 # Compiler flag to allow reflexive dlopens.
27738 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
27739
27740 # Compiler flag to generate shared objects directly from archives.
27741 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
27742
27743 # Whether the compiler copes with passing no objects directly.
27744 compiler_needs_object=$lt_compiler_needs_object_GCJ
27745
27746 # Create an old-style archive from a shared archive.
27747 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
27748
27749 # Create a temporary old-style archive to link instead of a shared archive.
27750 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
27751
27752 # Commands used to build a shared archive.
27753 archive_cmds=$lt_archive_cmds_GCJ
27754 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
27755
27756 # Commands used to build a loadable module if different from building
27757 # a shared archive.
27758 module_cmds=$lt_module_cmds_GCJ
27759 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
27760
27761 # Whether we are building with GNU ld or not.
27762 with_gnu_ld=$lt_with_gnu_ld_GCJ
27763
27764 # Flag that allows shared libraries with undefined symbols to be built.
27765 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
27766
27767 # Flag that enforces no undefined symbols.
27768 no_undefined_flag=$lt_no_undefined_flag_GCJ
27769
27770 # Flag to hardcode \$libdir into a binary during linking.
27771 # This must work even if \$libdir does not exist
27772 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
27773
27774 # If ld is used when linking, flag to hardcode \$libdir into a binary
27775 # during linking.  This must work even if \$libdir does not exist.
27776 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
27777
27778 # Whether we need a single "-rpath" flag with a separated argument.
27779 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
27780
27781 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27782 # DIR into the resulting binary.
27783 hardcode_direct=$hardcode_direct_GCJ
27784
27785 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27786 # DIR into the resulting binary and the resulting library dependency is
27787 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27788 # library is relocated.
27789 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
27790
27791 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27792 # into the resulting binary.
27793 hardcode_minus_L=$hardcode_minus_L_GCJ
27794
27795 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27796 # into the resulting binary.
27797 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
27798
27799 # Set to "yes" if building a shared library automatically hardcodes DIR
27800 # into the library and all subsequent libraries and executables linked
27801 # against it.
27802 hardcode_automatic=$hardcode_automatic_GCJ
27803
27804 # Set to yes if linker adds runtime paths of dependent libraries
27805 # to runtime path list.
27806 inherit_rpath=$inherit_rpath_GCJ
27807
27808 # Whether libtool must link a program against all its dependency libraries.
27809 link_all_deplibs=$link_all_deplibs_GCJ
27810
27811 # Fix the shell variable \$srcfile for the compiler.
27812 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
27813
27814 # Set to "yes" if exported symbols are required.
27815 always_export_symbols=$always_export_symbols_GCJ
27816
27817 # The commands to list exported symbols.
27818 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
27819
27820 # Symbols that should not be listed in the preloaded symbols.
27821 exclude_expsyms=$lt_exclude_expsyms_GCJ
27822
27823 # Symbols that must always be exported.
27824 include_expsyms=$lt_include_expsyms_GCJ
27825
27826 # Commands necessary for linking programs (against libraries) with templates.
27827 prelink_cmds=$lt_prelink_cmds_GCJ
27828
27829 # Specify filename containing input files.
27830 file_list_spec=$lt_file_list_spec_GCJ
27831
27832 # How to hardcode a shared library path into an executable.
27833 hardcode_action=$hardcode_action_GCJ
27834
27835 # The directories searched by this compiler when creating a shared library.
27836 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
27837
27838 # Dependencies to place before and after the objects being linked to
27839 # create a shared library.
27840 predep_objects=$lt_predep_objects_GCJ
27841 postdep_objects=$lt_postdep_objects_GCJ
27842 predeps=$lt_predeps_GCJ
27843 postdeps=$lt_postdeps_GCJ
27844
27845 # The library search path used internally by the compiler when linking
27846 # a shared library.
27847 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
27848
27849 # ### END LIBTOOL TAG CONFIG: GCJ
27850 _LT_EOF
27851
27852  ;;
27853     "scripts/jar":F) chmod +x scripts/jar ;;
27854
27855   esac
27856 done # for ac_tag
27857
27858
27859 as_fn_exit 0
27860 _ACEOF
27861 ac_clean_files=$ac_clean_files_save
27862
27863 test $ac_write_fail = 0 ||
27864   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27865
27866
27867 # configure is writing to config.log, and then calls config.status.
27868 # config.status does its own redirection, appending to config.log.
27869 # Unfortunately, on DOS this fails, as config.log is still kept open
27870 # by configure, so config.status won't be able to write to it; its
27871 # output is simply discarded.  So we exec the FD to /dev/null,
27872 # effectively closing config.log, so it can be properly (re)opened and
27873 # appended to by config.status.  When coming back to configure, we
27874 # need to make the FD available again.
27875 if test "$no_create" != yes; then
27876   ac_cs_success=:
27877   ac_config_status_args=
27878   test "$silent" = yes &&
27879     ac_config_status_args="$ac_config_status_args --quiet"
27880   exec 5>/dev/null
27881   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27882   exec 5>>config.log
27883   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27884   # would make configure fail if this is the last instruction.
27885   $ac_cs_success || as_fn_exit $?
27886 fi
27887
27888 #
27889 # CONFIG_SUBDIRS section.
27890 #
27891 if test "$no_recursion" != yes; then
27892
27893   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
27894   # so they do not pile up.
27895   ac_sub_configure_args=
27896   ac_prev=
27897   eval "set x $ac_configure_args"
27898   shift
27899   for ac_arg
27900   do
27901     if test -n "$ac_prev"; then
27902       ac_prev=
27903       continue
27904     fi
27905     case $ac_arg in
27906     -cache-file | --cache-file | --cache-fil | --cache-fi \
27907     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27908       ac_prev=cache_file ;;
27909     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27910     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27911     | --c=*)
27912       ;;
27913     --config-cache | -C)
27914       ;;
27915     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27916       ac_prev=srcdir ;;
27917     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27918       ;;
27919     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27920       ac_prev=prefix ;;
27921     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27922       ;;
27923     --disable-option-checking)
27924       ;;
27925     *)
27926       case $ac_arg in
27927       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27928       esac
27929       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
27930     esac
27931   done
27932
27933   # Always prepend --prefix to ensure using the same prefix
27934   # in subdir configurations.
27935   ac_arg="--prefix=$prefix"
27936   case $ac_arg in
27937   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27938   esac
27939   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
27940
27941   # Pass --silent
27942   if test "$silent" = yes; then
27943     ac_sub_configure_args="--silent $ac_sub_configure_args"
27944   fi
27945
27946   # Always prepend --disable-option-checking to silence warnings, since
27947   # different subdirs can have different --enable and --with options.
27948   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
27949
27950   ac_popdir=`pwd`
27951   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27952
27953     # Do not complain, so a configure script can configure whichever
27954     # parts of a large source tree are present.
27955     test -d "$srcdir/$ac_dir" || continue
27956
27957     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27958     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
27959     $as_echo "$ac_msg" >&6
27960     as_dir="$ac_dir"; as_fn_mkdir_p
27961     ac_builddir=.
27962
27963 case "$ac_dir" in
27964 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27965 *)
27966   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27967   # A ".." for each directory in $ac_dir_suffix.
27968   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27969   case $ac_top_builddir_sub in
27970   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27971   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27972   esac ;;
27973 esac
27974 ac_abs_top_builddir=$ac_pwd
27975 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27976 # for backward compatibility:
27977 ac_top_builddir=$ac_top_build_prefix
27978
27979 case $srcdir in
27980   .)  # We are building in place.
27981     ac_srcdir=.
27982     ac_top_srcdir=$ac_top_builddir_sub
27983     ac_abs_top_srcdir=$ac_pwd ;;
27984   [\\/]* | ?:[\\/]* )  # Absolute name.
27985     ac_srcdir=$srcdir$ac_dir_suffix;
27986     ac_top_srcdir=$srcdir
27987     ac_abs_top_srcdir=$srcdir ;;
27988   *) # Relative name.
27989     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27990     ac_top_srcdir=$ac_top_build_prefix$srcdir
27991     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27992 esac
27993 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27994
27995
27996     cd "$ac_dir"
27997
27998     # Check for guested configure; otherwise get Cygnus style configure.
27999     if test -f "$ac_srcdir/configure.gnu"; then
28000       ac_sub_configure=$ac_srcdir/configure.gnu
28001     elif test -f "$ac_srcdir/configure"; then
28002       ac_sub_configure=$ac_srcdir/configure
28003     elif test -f "$ac_srcdir/configure.in"; then
28004       # This should be Cygnus configure.
28005       ac_sub_configure=$ac_aux_dir/configure
28006     else
28007       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
28008 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
28009       ac_sub_configure=
28010     fi
28011
28012     # The recursion is here.
28013     if test -n "$ac_sub_configure"; then
28014       # Make the cache file name correct relative to the subdirectory.
28015       case $cache_file in
28016       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
28017       *) # Relative name.
28018         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
28019       esac
28020
28021       { $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
28022 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
28023       # The eval makes quoting arguments work.
28024       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
28025            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
28026         as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
28027     fi
28028
28029     cd "$ac_popdir"
28030   done
28031 fi
28032 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28033   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28034 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28035 fi
28036