OSDN Git Service

ca3329d3944f163b291533a1ce9ab3151101bbc0
[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_subst_vars='am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 LIBDIR
607 OS
608 CPU
609 GCJ_BIN_DIR
610 JRE_LIB_DIR
611 JRE_BIN_DIR
612 SDK_INCLUDE_DIR
613 SDK_LIB_DIR
614 SDK_BIN_DIR
615 SDK_LNK
616 JRE_LNK
617 JRE_DIR
618 JVM_JAR_DIR
619 JVM_JAR_ROOT_DIR
620 JVM_ROOT_DIR
621 BUILD_VERSION
622 JAVA_VERSION
623 gcc_suffix
624 CREATE_JAVA_HOME_FALSE
625 CREATE_JAVA_HOME_TRUE
626 INSTALL_AOT_RPM_FALSE
627 INSTALL_AOT_RPM_TRUE
628 MAKE
629 python_mod_dir_expanded
630 python_mod_dir
631 here
632 LD_FINISH_STATIC_SPEC
633 LD_START_STATIC_SPEC
634 ANONVERSCRIPT_FALSE
635 ANONVERSCRIPT_TRUE
636 SYSDEP_SOURCES
637 PERL
638 libstdcxx_incdir
639 gxx_include_dir
640 gcjsubdir
641 dbexecdir
642 GCJVERSION
643 toolexeclibdir
644 toolexecmainlibdir
645 toolexecdir
646 GCC_UNWIND_INCLUDE
647 INSTALL_BINARIES_FALSE
648 INSTALL_BINARIES_TRUE
649 NEEDS_DATA_START_FALSE
650 NEEDS_DATA_START_TRUE
651 ENABLE_SHARED_FALSE
652 ENABLE_SHARED_TRUE
653 NATIVE_FALSE
654 NATIVE_TRUE
655 ATOMICSPEC
656 IEEESPEC
657 BACKTRACESPEC
658 EXCEPTIONSPEC
659 CHECKREFSPEC
660 DIVIDESPEC
661 ZINCS
662 SYS_ZLIBS
663 ZLIBS
664 CLASSPATH_SEPARATOR
665 LIBART_LIBS
666 LIBART_CFLAGS
667 GLIB_LIBS
668 GLIB_CFLAGS
669 GTK_LIBS
670 GTK_CFLAGS
671 PKG_CONFIG
672 LTLIBICONV
673 LIBICONV
674 USING_GCC_FALSE
675 USING_GCC_TRUE
676 HASH_SYNC_SPEC
677 LIBGCJ_BC_SPEC
678 LIBGCJ_SPEC
679 USE_LIBGCJ_BC_FALSE
680 USE_LIBGCJ_BC_TRUE
681 USING_NO_THREADS_FALSE
682 USING_NO_THREADS_TRUE
683 USING_WIN32_THREADS_FALSE
684 USING_WIN32_THREADS_TRUE
685 USING_POSIX_THREADS_FALSE
686 USING_POSIX_THREADS_TRUE
687 THREADCXXFLAGS
688 THREADLDFLAGS
689 THREADSTARTFILESPEC
690 THREADSPEC
691 THREADDEPS
692 THREADINCS
693 THREADLIBS
694 USING_NOGC_FALSE
695 USING_NOGC_TRUE
696 USING_BOEHMGC_FALSE
697 USING_BOEHMGC_TRUE
698 GCTESTSPEC
699 JC1GCSPEC
700 GCSPEC
701 GCDEPS
702 GCINCS
703 GCLIBS
704 LIBGCJTESTSPEC
705 LIBSTDCXXSPEC
706 extra_ldflags
707 extra_ldflags_libjava
708 X_EXTRA_LIBS
709 X_LIBS
710 X_PRE_LIBS
711 X_CFLAGS
712 XMKMF
713 ZLIBTESTSPEC
714 ZLIBSPEC
715 SYSTEMSPEC
716 USING_DARWIN_CRT_FALSE
717 USING_DARWIN_CRT_TRUE
718 USING_POSIX_PLATFORM_FALSE
719 USING_POSIX_PLATFORM_TRUE
720 USING_WIN32_PLATFORM_FALSE
721 USING_WIN32_PLATFORM_TRUE
722 PLATFORM
723 LIBFFIINCS
724 LIBFFI
725 INTERPRETER_FALSE
726 INTERPRETER_TRUE
727 INTERPRETER
728 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE
729 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE
730 SUPPRESS_LIBGCJ_BC_FALSE
731 SUPPRESS_LIBGCJ_BC_TRUE
732 JAVA_HOME
733 JAVA_HOME_SET_FALSE
734 JAVA_HOME_SET_TRUE
735 INSTALL_ECJ_JAR_FALSE
736 INSTALL_ECJ_JAR_TRUE
737 BUILD_ECJ1_FALSE
738 BUILD_ECJ1_TRUE
739 ECJ_JAR
740 ECJ_BUILD_JAR
741 TESTSUBDIR_FALSE
742 TESTSUBDIR_TRUE
743 subdirs
744 am__fastdepGCJ_FALSE
745 am__fastdepGCJ_TRUE
746 GCJDEPMODE
747 GCJFLAGS
748 ac_ct_GCJ
749 GCJ
750 CXXCPP
751 CPP
752 OTOOL64
753 OTOOL
754 LIPO
755 NMEDIT
756 DSYMUTIL
757 OBJDUMP
758 NM
759 ac_ct_DUMPBIN
760 DUMPBIN
761 FGREP
762 EGREP
763 GREP
764 SED
765 LIBTOOL
766 DIRLTDL
767 LIBLTDL
768 INCLTDL
769 host_exeext
770 GCJH
771 GCJ_FOR_ECJX
772 X_AWT_FALSE
773 X_AWT_TRUE
774 XLIB_AWT_FALSE
775 XLIB_AWT_TRUE
776 TOOLKIT
777 LIBGCJDEBUG
778 BUILD_SUBLIBS_FALSE
779 BUILD_SUBLIBS_TRUE
780 LIBGCJ_LD_SYMBOLIC_FUNCTIONS
781 LIBGCJ_LD_SYMBOLIC
782 LIBGCJ_SUBLIB_CORE_EXTRA_DEPS
783 LIBGCJ_SUBLIB_LTFLAGS
784 LIBGCJ_JAVAFLAGS
785 LIBGCJ_CXXFLAGS
786 LIBGCJ_CFLAGS
787 MAINT
788 MAINTAINER_MODE_FALSE
789 MAINTAINER_MODE_TRUE
790 UNZIP
791 ZIP
792 JAR
793 DLLTOOL
794 RANLIB
795 AR
796 LD
797 AS
798 am__fastdepCXX_FALSE
799 am__fastdepCXX_TRUE
800 CXXDEPMODE
801 am__fastdepCC_FALSE
802 am__fastdepCC_TRUE
803 CCDEPMODE
804 AMDEPBACKSLASH
805 AMDEP_FALSE
806 AMDEP_TRUE
807 am__quote
808 am__include
809 DEPDIR
810 am__untar
811 am__tar
812 AMTAR
813 am__leading_dot
814 SET_MAKE
815 AWK
816 mkdir_p
817 MKDIR_P
818 INSTALL_STRIP_PROGRAM
819 STRIP
820 install_sh
821 MAKEINFO
822 AUTOHEADER
823 AUTOMAKE
824 AUTOCONF
825 ACLOCAL
826 VERSION
827 PACKAGE
828 CYGPATH_W
829 am__isrc
830 INSTALL_DATA
831 INSTALL_SCRIPT
832 INSTALL_PROGRAM
833 ac_ct_CXX
834 CXXFLAGS
835 CXX
836 OBJEXT
837 EXEEXT
838 ac_ct_CC
839 CPPFLAGS
840 LDFLAGS
841 CFLAGS
842 CC
843 JAVA_MAINTAINER_MODE_FALSE
844 JAVA_MAINTAINER_MODE_TRUE
845 CREATE_GJDOC_FALSE
846 CREATE_GJDOC_TRUE
847 ANTLR_JAR
848 mkinstalldirs
849 LN_S
850 target_noncanonical
851 target_os
852 target_vendor
853 target_cpu
854 target
855 host_os
856 host_vendor
857 host_cpu
858 host
859 multi_basedir
860 target_subdir
861 host_subdir
862 build_subdir
863 build_libsubdir
864 build_os
865 build_vendor
866 build_cpu
867 build
868 target_alias
869 host_alias
870 build_alias
871 LIBS
872 ECHO_T
873 ECHO_N
874 ECHO_C
875 DEFS
876 mandir
877 localedir
878 libdir
879 psdir
880 pdfdir
881 dvidir
882 htmldir
883 infodir
884 docdir
885 oldincludedir
886 includedir
887 localstatedir
888 sharedstatedir
889 sysconfdir
890 datadir
891 datarootdir
892 libexecdir
893 sbindir
894 bindir
895 program_transform_name
896 prefix
897 exec_prefix
898 PACKAGE_URL
899 PACKAGE_BUGREPORT
900 PACKAGE_STRING
901 PACKAGE_VERSION
902 PACKAGE_TARNAME
903 PACKAGE_NAME
904 PATH_SEPARATOR
905 SHELL'
906 ac_subst_files=''
907 ac_user_opts='
908 enable_option_checking
909 with_build_libsubdir
910 with_target_subdir
911 enable_multilib
912 with_cross_host
913 with_newlib
914 enable_version_specific_runtime_libs
915 enable_browser_plugin
916 enable_gconf_peer
917 with_antlr_jar
918 enable_gjdoc
919 enable_java_maintainer_mode
920 enable_dependency_tracking
921 enable_maintainer_mode
922 enable_libgcj_sublibs
923 enable_libgcj_debug
924 with_escher
925 enable_java_awt
926 enable_shared
927 enable_static
928 with_pic
929 enable_fast_install
930 with_gnu_ld
931 enable_libtool_lock
932 enable_getenv_properties
933 enable_hash_synchronization
934 with_ecj_jar
935 with_java_home
936 enable_libgcj_bc
937 enable_reduced_reflection
938 with_win32_nlsapi
939 enable_gc_debug
940 enable_interpreter
941 enable_sjlj_exceptions
942 enable_java_net
943 with_libffi
944 enable_jvmpi
945 with_ecos
946 with_system_zlib
947 with_x
948 enable_java_gc
949 enable_rpath
950 with_libiconv_prefix
951 enable_tls
952 with_system_libunwind
953 with_python_dir
954 enable_aot_compile_rpm
955 enable_java_home
956 with_gcc_suffix
957 with_arch_directory
958 with_os_directory
959 with_origin_name
960 with_arch_suffix
961 with_jvm_root_dir
962 with_jvm_jar_dir
963 '
964       ac_precious_vars='build_alias
965 host_alias
966 target_alias
967 CC
968 CFLAGS
969 LDFLAGS
970 LIBS
971 CPPFLAGS
972 CXX
973 CXXFLAGS
974 CCC
975 CPP
976 CXXCPP
977 XMKMF'
978 ac_subdirs_all='classpath libltdl'
979
980 # Initialize some variables set by options.
981 ac_init_help=
982 ac_init_version=false
983 ac_unrecognized_opts=
984 ac_unrecognized_sep=
985 # The variables have the same names as the options, with
986 # dashes changed to underlines.
987 cache_file=/dev/null
988 exec_prefix=NONE
989 no_create=
990 no_recursion=
991 prefix=NONE
992 program_prefix=NONE
993 program_suffix=NONE
994 program_transform_name=s,x,x,
995 silent=
996 site=
997 srcdir=
998 verbose=
999 x_includes=NONE
1000 x_libraries=NONE
1001
1002 # Installation directory options.
1003 # These are left unexpanded so users can "make install exec_prefix=/foo"
1004 # and all the variables that are supposed to be based on exec_prefix
1005 # by default will actually change.
1006 # Use braces instead of parens because sh, perl, etc. also accept them.
1007 # (The list follows the same order as the GNU Coding Standards.)
1008 bindir='${exec_prefix}/bin'
1009 sbindir='${exec_prefix}/sbin'
1010 libexecdir='${exec_prefix}/libexec'
1011 datarootdir='${prefix}/share'
1012 datadir='${datarootdir}'
1013 sysconfdir='${prefix}/etc'
1014 sharedstatedir='${prefix}/com'
1015 localstatedir='${prefix}/var'
1016 includedir='${prefix}/include'
1017 oldincludedir='/usr/include'
1018 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1019 infodir='${datarootdir}/info'
1020 htmldir='${docdir}'
1021 dvidir='${docdir}'
1022 pdfdir='${docdir}'
1023 psdir='${docdir}'
1024 libdir='${exec_prefix}/lib'
1025 localedir='${datarootdir}/locale'
1026 mandir='${datarootdir}/man'
1027
1028 ac_prev=
1029 ac_dashdash=
1030 for ac_option
1031 do
1032   # If the previous option needs an argument, assign it.
1033   if test -n "$ac_prev"; then
1034     eval $ac_prev=\$ac_option
1035     ac_prev=
1036     continue
1037   fi
1038
1039   case $ac_option in
1040   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1041   *)    ac_optarg=yes ;;
1042   esac
1043
1044   # Accept the important Cygnus configure options, so we can diagnose typos.
1045
1046   case $ac_dashdash$ac_option in
1047   --)
1048     ac_dashdash=yes ;;
1049
1050   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1051     ac_prev=bindir ;;
1052   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1053     bindir=$ac_optarg ;;
1054
1055   -build | --build | --buil | --bui | --bu)
1056     ac_prev=build_alias ;;
1057   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1058     build_alias=$ac_optarg ;;
1059
1060   -cache-file | --cache-file | --cache-fil | --cache-fi \
1061   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1062     ac_prev=cache_file ;;
1063   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1064   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1065     cache_file=$ac_optarg ;;
1066
1067   --config-cache | -C)
1068     cache_file=config.cache ;;
1069
1070   -datadir | --datadir | --datadi | --datad)
1071     ac_prev=datadir ;;
1072   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1073     datadir=$ac_optarg ;;
1074
1075   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1076   | --dataroo | --dataro | --datar)
1077     ac_prev=datarootdir ;;
1078   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1079   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1080     datarootdir=$ac_optarg ;;
1081
1082   -disable-* | --disable-*)
1083     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1084     # Reject names that are not valid shell variable names.
1085     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086       as_fn_error "invalid feature name: $ac_useropt"
1087     ac_useropt_orig=$ac_useropt
1088     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089     case $ac_user_opts in
1090       *"
1091 "enable_$ac_useropt"
1092 "*) ;;
1093       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1094          ac_unrecognized_sep=', ';;
1095     esac
1096     eval enable_$ac_useropt=no ;;
1097
1098   -docdir | --docdir | --docdi | --doc | --do)
1099     ac_prev=docdir ;;
1100   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1101     docdir=$ac_optarg ;;
1102
1103   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1104     ac_prev=dvidir ;;
1105   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1106     dvidir=$ac_optarg ;;
1107
1108   -enable-* | --enable-*)
1109     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1110     # Reject names that are not valid shell variable names.
1111     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112       as_fn_error "invalid feature name: $ac_useropt"
1113     ac_useropt_orig=$ac_useropt
1114     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115     case $ac_user_opts in
1116       *"
1117 "enable_$ac_useropt"
1118 "*) ;;
1119       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1120          ac_unrecognized_sep=', ';;
1121     esac
1122     eval enable_$ac_useropt=\$ac_optarg ;;
1123
1124   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1125   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1126   | --exec | --exe | --ex)
1127     ac_prev=exec_prefix ;;
1128   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1129   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1130   | --exec=* | --exe=* | --ex=*)
1131     exec_prefix=$ac_optarg ;;
1132
1133   -gas | --gas | --ga | --g)
1134     # Obsolete; use --with-gas.
1135     with_gas=yes ;;
1136
1137   -help | --help | --hel | --he | -h)
1138     ac_init_help=long ;;
1139   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1140     ac_init_help=recursive ;;
1141   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1142     ac_init_help=short ;;
1143
1144   -host | --host | --hos | --ho)
1145     ac_prev=host_alias ;;
1146   -host=* | --host=* | --hos=* | --ho=*)
1147     host_alias=$ac_optarg ;;
1148
1149   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1150     ac_prev=htmldir ;;
1151   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1152   | --ht=*)
1153     htmldir=$ac_optarg ;;
1154
1155   -includedir | --includedir | --includedi | --included | --include \
1156   | --includ | --inclu | --incl | --inc)
1157     ac_prev=includedir ;;
1158   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1159   | --includ=* | --inclu=* | --incl=* | --inc=*)
1160     includedir=$ac_optarg ;;
1161
1162   -infodir | --infodir | --infodi | --infod | --info | --inf)
1163     ac_prev=infodir ;;
1164   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1165     infodir=$ac_optarg ;;
1166
1167   -libdir | --libdir | --libdi | --libd)
1168     ac_prev=libdir ;;
1169   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1170     libdir=$ac_optarg ;;
1171
1172   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1173   | --libexe | --libex | --libe)
1174     ac_prev=libexecdir ;;
1175   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1176   | --libexe=* | --libex=* | --libe=*)
1177     libexecdir=$ac_optarg ;;
1178
1179   -localedir | --localedir | --localedi | --localed | --locale)
1180     ac_prev=localedir ;;
1181   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1182     localedir=$ac_optarg ;;
1183
1184   -localstatedir | --localstatedir | --localstatedi | --localstated \
1185   | --localstate | --localstat | --localsta | --localst | --locals)
1186     ac_prev=localstatedir ;;
1187   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1188   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1189     localstatedir=$ac_optarg ;;
1190
1191   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1192     ac_prev=mandir ;;
1193   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1194     mandir=$ac_optarg ;;
1195
1196   -nfp | --nfp | --nf)
1197     # Obsolete; use --without-fp.
1198     with_fp=no ;;
1199
1200   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1201   | --no-cr | --no-c | -n)
1202     no_create=yes ;;
1203
1204   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1205   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1206     no_recursion=yes ;;
1207
1208   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1209   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1210   | --oldin | --oldi | --old | --ol | --o)
1211     ac_prev=oldincludedir ;;
1212   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1213   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1214   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1215     oldincludedir=$ac_optarg ;;
1216
1217   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1218     ac_prev=prefix ;;
1219   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1220     prefix=$ac_optarg ;;
1221
1222   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1223   | --program-pre | --program-pr | --program-p)
1224     ac_prev=program_prefix ;;
1225   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1226   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1227     program_prefix=$ac_optarg ;;
1228
1229   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1230   | --program-suf | --program-su | --program-s)
1231     ac_prev=program_suffix ;;
1232   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1233   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1234     program_suffix=$ac_optarg ;;
1235
1236   -program-transform-name | --program-transform-name \
1237   | --program-transform-nam | --program-transform-na \
1238   | --program-transform-n | --program-transform- \
1239   | --program-transform | --program-transfor \
1240   | --program-transfo | --program-transf \
1241   | --program-trans | --program-tran \
1242   | --progr-tra | --program-tr | --program-t)
1243     ac_prev=program_transform_name ;;
1244   -program-transform-name=* | --program-transform-name=* \
1245   | --program-transform-nam=* | --program-transform-na=* \
1246   | --program-transform-n=* | --program-transform-=* \
1247   | --program-transform=* | --program-transfor=* \
1248   | --program-transfo=* | --program-transf=* \
1249   | --program-trans=* | --program-tran=* \
1250   | --progr-tra=* | --program-tr=* | --program-t=*)
1251     program_transform_name=$ac_optarg ;;
1252
1253   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1254     ac_prev=pdfdir ;;
1255   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1256     pdfdir=$ac_optarg ;;
1257
1258   -psdir | --psdir | --psdi | --psd | --ps)
1259     ac_prev=psdir ;;
1260   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1261     psdir=$ac_optarg ;;
1262
1263   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1264   | -silent | --silent | --silen | --sile | --sil)
1265     silent=yes ;;
1266
1267   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1268     ac_prev=sbindir ;;
1269   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1270   | --sbi=* | --sb=*)
1271     sbindir=$ac_optarg ;;
1272
1273   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1274   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1275   | --sharedst | --shareds | --shared | --share | --shar \
1276   | --sha | --sh)
1277     ac_prev=sharedstatedir ;;
1278   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1279   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1280   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1281   | --sha=* | --sh=*)
1282     sharedstatedir=$ac_optarg ;;
1283
1284   -site | --site | --sit)
1285     ac_prev=site ;;
1286   -site=* | --site=* | --sit=*)
1287     site=$ac_optarg ;;
1288
1289   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1290     ac_prev=srcdir ;;
1291   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1292     srcdir=$ac_optarg ;;
1293
1294   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1295   | --syscon | --sysco | --sysc | --sys | --sy)
1296     ac_prev=sysconfdir ;;
1297   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1298   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1299     sysconfdir=$ac_optarg ;;
1300
1301   -target | --target | --targe | --targ | --tar | --ta | --t)
1302     ac_prev=target_alias ;;
1303   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1304     target_alias=$ac_optarg ;;
1305
1306   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1307     verbose=yes ;;
1308
1309   -version | --version | --versio | --versi | --vers | -V)
1310     ac_init_version=: ;;
1311
1312   -with-* | --with-*)
1313     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1314     # Reject names that are not valid shell variable names.
1315     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1316       as_fn_error "invalid package name: $ac_useropt"
1317     ac_useropt_orig=$ac_useropt
1318     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1319     case $ac_user_opts in
1320       *"
1321 "with_$ac_useropt"
1322 "*) ;;
1323       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1324          ac_unrecognized_sep=', ';;
1325     esac
1326     eval with_$ac_useropt=\$ac_optarg ;;
1327
1328   -without-* | --without-*)
1329     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1330     # Reject names that are not valid shell variable names.
1331     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1332       as_fn_error "invalid package name: $ac_useropt"
1333     ac_useropt_orig=$ac_useropt
1334     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1335     case $ac_user_opts in
1336       *"
1337 "with_$ac_useropt"
1338 "*) ;;
1339       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1340          ac_unrecognized_sep=', ';;
1341     esac
1342     eval with_$ac_useropt=no ;;
1343
1344   --x)
1345     # Obsolete; use --with-x.
1346     with_x=yes ;;
1347
1348   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1349   | --x-incl | --x-inc | --x-in | --x-i)
1350     ac_prev=x_includes ;;
1351   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1352   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1353     x_includes=$ac_optarg ;;
1354
1355   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1356   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1357     ac_prev=x_libraries ;;
1358   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1359   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1360     x_libraries=$ac_optarg ;;
1361
1362   -*) as_fn_error "unrecognized option: \`$ac_option'
1363 Try \`$0 --help' for more information."
1364     ;;
1365
1366   *=*)
1367     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1368     # Reject names that are not valid shell variable names.
1369     case $ac_envvar in #(
1370       '' | [0-9]* | *[!_$as_cr_alnum]* )
1371       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1372     esac
1373     eval $ac_envvar=\$ac_optarg
1374     export $ac_envvar ;;
1375
1376   *)
1377     # FIXME: should be removed in autoconf 3.0.
1378     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1379     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1380       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1381     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1382     ;;
1383
1384   esac
1385 done
1386
1387 if test -n "$ac_prev"; then
1388   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1389   as_fn_error "missing argument to $ac_option"
1390 fi
1391
1392 if test -n "$ac_unrecognized_opts"; then
1393   case $enable_option_checking in
1394     no) ;;
1395     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1396     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1397   esac
1398 fi
1399
1400 # Check all directory arguments for consistency.
1401 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1402                 datadir sysconfdir sharedstatedir localstatedir includedir \
1403                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1404                 libdir localedir mandir
1405 do
1406   eval ac_val=\$$ac_var
1407   # Remove trailing slashes.
1408   case $ac_val in
1409     */ )
1410       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1411       eval $ac_var=\$ac_val;;
1412   esac
1413   # Be sure to have absolute directory names.
1414   case $ac_val in
1415     [\\/$]* | ?:[\\/]* )  continue;;
1416     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1417   esac
1418   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1419 done
1420
1421 # There might be people who depend on the old broken behavior: `$host'
1422 # used to hold the argument of --host etc.
1423 # FIXME: To remove some day.
1424 build=$build_alias
1425 host=$host_alias
1426 target=$target_alias
1427
1428 # FIXME: To remove some day.
1429 if test "x$host_alias" != x; then
1430   if test "x$build_alias" = x; then
1431     cross_compiling=maybe
1432     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1433     If a cross compiler is detected then cross compile mode will be used." >&2
1434   elif test "x$build_alias" != "x$host_alias"; then
1435     cross_compiling=yes
1436   fi
1437 fi
1438
1439 ac_tool_prefix=
1440 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1441
1442 test "$silent" = yes && exec 6>/dev/null
1443
1444
1445 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1446 ac_ls_di=`ls -di .` &&
1447 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1448   as_fn_error "working directory cannot be determined"
1449 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1450   as_fn_error "pwd does not report name of working directory"
1451
1452
1453 # Find the source files, if location was not specified.
1454 if test -z "$srcdir"; then
1455   ac_srcdir_defaulted=yes
1456   # Try the directory containing this script, then the parent directory.
1457   ac_confdir=`$as_dirname -- "$as_myself" ||
1458 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1459          X"$as_myself" : 'X\(//\)[^/]' \| \
1460          X"$as_myself" : 'X\(//\)$' \| \
1461          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1462 $as_echo X"$as_myself" |
1463     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1464             s//\1/
1465             q
1466           }
1467           /^X\(\/\/\)[^/].*/{
1468             s//\1/
1469             q
1470           }
1471           /^X\(\/\/\)$/{
1472             s//\1/
1473             q
1474           }
1475           /^X\(\/\).*/{
1476             s//\1/
1477             q
1478           }
1479           s/.*/./; q'`
1480   srcdir=$ac_confdir
1481   if test ! -r "$srcdir/$ac_unique_file"; then
1482     srcdir=..
1483   fi
1484 else
1485   ac_srcdir_defaulted=no
1486 fi
1487 if test ! -r "$srcdir/$ac_unique_file"; then
1488   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1489   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1490 fi
1491 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1492 ac_abs_confdir=`(
1493         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1494         pwd)`
1495 # When building in place, set srcdir=.
1496 if test "$ac_abs_confdir" = "$ac_pwd"; then
1497   srcdir=.
1498 fi
1499 # Remove unnecessary trailing slashes from srcdir.
1500 # Double slashes in file names in object file debugging info
1501 # mess up M-x gdb in Emacs.
1502 case $srcdir in
1503 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1504 esac
1505 for ac_var in $ac_precious_vars; do
1506   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1507   eval ac_env_${ac_var}_value=\$${ac_var}
1508   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1509   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1510 done
1511
1512 #
1513 # Report the --help message.
1514 #
1515 if test "$ac_init_help" = "long"; then
1516   # Omit some internal or obsolete options to make the list less imposing.
1517   # This message is too long to be a string in the A/UX 3.1 sh.
1518   cat <<_ACEOF
1519 \`configure' configures libjava version-unused to adapt to many kinds of systems.
1520
1521 Usage: $0 [OPTION]... [VAR=VALUE]...
1522
1523 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1524 VAR=VALUE.  See below for descriptions of some of the useful variables.
1525
1526 Defaults for the options are specified in brackets.
1527
1528 Configuration:
1529   -h, --help              display this help and exit
1530       --help=short        display options specific to this package
1531       --help=recursive    display the short help of all the included packages
1532   -V, --version           display version information and exit
1533   -q, --quiet, --silent   do not print \`checking...' messages
1534       --cache-file=FILE   cache test results in FILE [disabled]
1535   -C, --config-cache      alias for \`--cache-file=config.cache'
1536   -n, --no-create         do not create output files
1537       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1538
1539 Installation directories:
1540   --prefix=PREFIX         install architecture-independent files in PREFIX
1541                           [$ac_default_prefix]
1542   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1543                           [PREFIX]
1544
1545 By default, \`make install' will install all the files in
1546 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1547 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1548 for instance \`--prefix=\$HOME'.
1549
1550 For better control, use the options below.
1551
1552 Fine tuning of the installation directories:
1553   --bindir=DIR            user executables [EPREFIX/bin]
1554   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1555   --libexecdir=DIR        program executables [EPREFIX/libexec]
1556   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1557   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1558   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1559   --libdir=DIR            object code libraries [EPREFIX/lib]
1560   --includedir=DIR        C header files [PREFIX/include]
1561   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1562   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1563   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1564   --infodir=DIR           info documentation [DATAROOTDIR/info]
1565   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1566   --mandir=DIR            man documentation [DATAROOTDIR/man]
1567   --docdir=DIR            documentation root [DATAROOTDIR/doc/libjava]
1568   --htmldir=DIR           html documentation [DOCDIR]
1569   --dvidir=DIR            dvi documentation [DOCDIR]
1570   --pdfdir=DIR            pdf documentation [DOCDIR]
1571   --psdir=DIR             ps documentation [DOCDIR]
1572 _ACEOF
1573
1574   cat <<\_ACEOF
1575
1576 Program names:
1577   --program-prefix=PREFIX            prepend PREFIX to installed program names
1578   --program-suffix=SUFFIX            append SUFFIX to installed program names
1579   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1580
1581 X features:
1582   --x-includes=DIR    X include files are in DIR
1583   --x-libraries=DIR   X library files are in DIR
1584
1585 System types:
1586   --build=BUILD     configure for building on BUILD [guessed]
1587   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1588   --target=TARGET   configure for building compilers for TARGET [HOST]
1589 _ACEOF
1590 fi
1591
1592 if test -n "$ac_init_help"; then
1593   case $ac_init_help in
1594      short | recursive ) echo "Configuration of libjava version-unused:";;
1595    esac
1596   cat <<\_ACEOF
1597
1598 Optional Features:
1599   --disable-option-checking  ignore unrecognized --enable/--with options
1600   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1601   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1602   --enable-multilib       build many library versions (default)
1603   --enable-version-specific-runtime-libs
1604                           specify that runtime libraries should be installed
1605                           in a compiler-specific directory
1606   --enable-browser-plugin build gcjwebplugin web browser plugin
1607   --enable-gconf-peer     compile GConf native peers for util.preferences
1608   --disable-gjdoc         compile GJDoc (disabled by --disable-gjdoc)
1609                           default=yes
1610   --enable-java-maintainer-mode
1611                           allow rebuilding of .class and .h files
1612   --disable-dependency-tracking  speeds up one-time build
1613   --enable-dependency-tracking   do not reject slow dependency extractors
1614   --enable-maintainer-mode  enable make rules and dependencies not useful
1615                           (and sometimes confusing) to the casual installer
1616   --enable-libgcj-sublibs build libgcj as many sub-libraries
1617   --enable-libgcj-debug   enable runtime debugging code
1618   --enable-java-awt       list of AWT peer implementations to be built
1619   --enable-shared[=PKGS]  build shared libraries [default=yes]
1620   --enable-static[=PKGS]  build static libraries [default=yes]
1621   --enable-fast-install[=PKGS]
1622                           optimize for fast installation [default=yes]
1623   --disable-libtool-lock  avoid locking (might break parallel builds)
1624   --disable-getenv-properties
1625                           don't set system properties from GCJ_PROPERTIES
1626   --enable-hash-synchronization
1627                           use global hash table for monitor locks
1628   --enable-libgcj-bc      enable(default) or disable BC ABI for portions of
1629                           libgcj
1630   --enable-reduced-reflection
1631                           enable or disable(default) -freduced-reflection when
1632                           building portions of libgcj
1633   --enable-gc-debug       include full support for pointer backtracing etc.
1634   --enable-interpreter    enable interpreter
1635   --enable-sjlj-exceptions
1636                           force use of builtin_setjmp for exceptions
1637   --disable-java-net      disable java.net
1638   --disable-jvmpi         disable JVMPI support
1639   --enable-java-gc=TYPE   choose garbage collector (default is boehm)
1640   --disable-rpath         do not hardcode runtime library paths
1641   --enable-tls            Use thread-local storage [default=yes]
1642   --enable-aot-compile-rpm
1643                           enable installation of aot-compile-rpm [default=no]
1644   --enable-java-home      create a standard JDK-style directory layout in the
1645                           install tree [default=no]
1646
1647 Optional Packages:
1648   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1649   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1650   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1651   --with-target-subdir=SUBDIR
1652                           configure in a subdirectory
1653   --with-cross-host=HOST  configure with a cross compiler from HOST
1654   --with-newlib           configure with newlib
1655   --with-antlr-jar=file   Use ANTLR from the specified jar file
1656   --with-escher=ABS.PATH  specify path to escher dir or JAR for X peers
1657   --with-pic              try to use only PIC/non-PIC objects [default=use
1658                           both]
1659   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1660   --with-ecj-jar=FILE     use preinstalled ecj jar
1661   --with-java-home=DIRECTORY
1662                           value of java.home system property
1663   --with-win32-nlsapi=ansi or unicows or unicode
1664                           native MinGW libgcj Win32 OS API (default is ansi)
1665   --without-libffi        don't use libffi
1666   --with-ecos             enable runtime eCos target support
1667   --with-system-zlib      use installed libz
1668   --with-x                use the X Window System
1669   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1670   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1671   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1672   --with-system-libunwind use installed libunwind
1673   --with-python-dir       the location to install Python modules. This path
1674                           should NOT include the prefix.
1675   --with-gcc-suffix       the GCC tool suffix (defaults to empty string)
1676   --with-arch-directory   the arch directory under jre/lib (defaults to
1677                           auto-detect)
1678   --with-os-directory     the os directory under include (defaults to
1679                           auto-detect)
1680   --with-origin-name      the JPackage origin name of this package (default is
1681                           gcj${gcc_suffix}
1682   --with-arch-suffix      the arch directory suffix (default is the empty
1683                           string
1684   --with-jvm-root-dir     where to install SDK (default is ${prefix}/lib/jvm)
1685   --with-jvm-jar-dir      where to install jars (default is
1686                           ${prefix}/lib/jvm-exports)
1687
1688 Some influential environment variables:
1689   CC          C compiler command
1690   CFLAGS      C compiler flags
1691   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1692               nonstandard directory <lib dir>
1693   LIBS        libraries to pass to the linker, e.g. -l<library>
1694   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1695               you have headers in a nonstandard directory <include dir>
1696   CXX         C++ compiler command
1697   CXXFLAGS    C++ compiler flags
1698   CPP         C preprocessor
1699   CXXCPP      C++ preprocessor
1700   XMKMF       Path to xmkmf, Makefile generator for X Window System
1701
1702 Use these variables to override the choices made by `configure' or to help
1703 it to find libraries and programs with nonstandard names/locations.
1704
1705 Report bugs to the package provider.
1706 _ACEOF
1707 ac_status=$?
1708 fi
1709
1710 if test "$ac_init_help" = "recursive"; then
1711   # If there are subdirs, report their specific --help.
1712   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1713     test -d "$ac_dir" ||
1714       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1715       continue
1716     ac_builddir=.
1717
1718 case "$ac_dir" in
1719 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1720 *)
1721   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1722   # A ".." for each directory in $ac_dir_suffix.
1723   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1724   case $ac_top_builddir_sub in
1725   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1726   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1727   esac ;;
1728 esac
1729 ac_abs_top_builddir=$ac_pwd
1730 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1731 # for backward compatibility:
1732 ac_top_builddir=$ac_top_build_prefix
1733
1734 case $srcdir in
1735   .)  # We are building in place.
1736     ac_srcdir=.
1737     ac_top_srcdir=$ac_top_builddir_sub
1738     ac_abs_top_srcdir=$ac_pwd ;;
1739   [\\/]* | ?:[\\/]* )  # Absolute name.
1740     ac_srcdir=$srcdir$ac_dir_suffix;
1741     ac_top_srcdir=$srcdir
1742     ac_abs_top_srcdir=$srcdir ;;
1743   *) # Relative name.
1744     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1745     ac_top_srcdir=$ac_top_build_prefix$srcdir
1746     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1747 esac
1748 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1749
1750     cd "$ac_dir" || { ac_status=$?; continue; }
1751     # Check for guested configure.
1752     if test -f "$ac_srcdir/configure.gnu"; then
1753       echo &&
1754       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1755     elif test -f "$ac_srcdir/configure"; then
1756       echo &&
1757       $SHELL "$ac_srcdir/configure" --help=recursive
1758     else
1759       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1760     fi || ac_status=$?
1761     cd "$ac_pwd" || { ac_status=$?; break; }
1762   done
1763 fi
1764
1765 test -n "$ac_init_help" && exit $ac_status
1766 if $ac_init_version; then
1767   cat <<\_ACEOF
1768 libjava configure version-unused
1769 generated by GNU Autoconf 2.64
1770
1771 Copyright (C) 2009 Free Software Foundation, Inc.
1772 This configure script is free software; the Free Software Foundation
1773 gives unlimited permission to copy, distribute and modify it.
1774 _ACEOF
1775   exit
1776 fi
1777
1778 ## ------------------------ ##
1779 ## Autoconf initialization. ##
1780 ## ------------------------ ##
1781
1782 # ac_fn_c_try_compile LINENO
1783 # --------------------------
1784 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1785 ac_fn_c_try_compile ()
1786 {
1787   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788   rm -f conftest.$ac_objext
1789   if { { ac_try="$ac_compile"
1790 case "(($ac_try" in
1791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792   *) ac_try_echo=$ac_try;;
1793 esac
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796   (eval "$ac_compile") 2>conftest.err
1797   ac_status=$?
1798   if test -s conftest.err; then
1799     grep -v '^ *+' conftest.err >conftest.er1
1800     cat conftest.er1 >&5
1801     mv -f conftest.er1 conftest.err
1802   fi
1803   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804   test $ac_status = 0; } && {
1805          test -z "$ac_c_werror_flag" ||
1806          test ! -s conftest.err
1807        } && test -s conftest.$ac_objext; then :
1808   ac_retval=0
1809 else
1810   $as_echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1812
1813         ac_retval=1
1814 fi
1815   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1816   return $ac_retval
1817
1818 } # ac_fn_c_try_compile
1819
1820 # ac_fn_cxx_try_compile LINENO
1821 # ----------------------------
1822 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1823 ac_fn_cxx_try_compile ()
1824 {
1825   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826   rm -f conftest.$ac_objext
1827   if { { ac_try="$ac_compile"
1828 case "(($ac_try" in
1829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830   *) ac_try_echo=$ac_try;;
1831 esac
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834   (eval "$ac_compile") 2>conftest.err
1835   ac_status=$?
1836   if test -s conftest.err; then
1837     grep -v '^ *+' conftest.err >conftest.er1
1838     cat conftest.er1 >&5
1839     mv -f conftest.er1 conftest.err
1840   fi
1841   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842   test $ac_status = 0; } && {
1843          test -z "$ac_cxx_werror_flag" ||
1844          test ! -s conftest.err
1845        } && test -s conftest.$ac_objext; then :
1846   ac_retval=0
1847 else
1848   $as_echo "$as_me: failed program was:" >&5
1849 sed 's/^/| /' conftest.$ac_ext >&5
1850
1851         ac_retval=1
1852 fi
1853   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1854   return $ac_retval
1855
1856 } # ac_fn_cxx_try_compile
1857
1858 # ac_fn_c_try_link LINENO
1859 # -----------------------
1860 # Try to link conftest.$ac_ext, and return whether this succeeded.
1861 ac_fn_c_try_link ()
1862 {
1863   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864   rm -f conftest.$ac_objext conftest$ac_exeext
1865   if { { ac_try="$ac_link"
1866 case "(($ac_try" in
1867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1868   *) ac_try_echo=$ac_try;;
1869 esac
1870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871 $as_echo "$ac_try_echo"; } >&5
1872   (eval "$ac_link") 2>conftest.err
1873   ac_status=$?
1874   if test -s conftest.err; then
1875     grep -v '^ *+' conftest.err >conftest.er1
1876     cat conftest.er1 >&5
1877     mv -f conftest.er1 conftest.err
1878   fi
1879   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1880   test $ac_status = 0; } && {
1881          test -z "$ac_c_werror_flag" ||
1882          test ! -s conftest.err
1883        } && test -s conftest$ac_exeext && {
1884          test "$cross_compiling" = yes ||
1885          $as_test_x conftest$ac_exeext
1886        }; then :
1887   ac_retval=0
1888 else
1889   $as_echo "$as_me: failed program was:" >&5
1890 sed 's/^/| /' conftest.$ac_ext >&5
1891
1892         ac_retval=1
1893 fi
1894   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1895   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1896   # interfere with the next link command; also delete a directory that is
1897   # left behind by Apple's compiler.  We do this before executing the actions.
1898   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1899   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1900   return $ac_retval
1901
1902 } # ac_fn_c_try_link
1903
1904 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1905 # -------------------------------------------------------
1906 # Tests whether HEADER exists and can be compiled using the include files in
1907 # INCLUDES, setting the cache variable VAR accordingly.
1908 ac_fn_c_check_header_compile ()
1909 {
1910   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912 $as_echo_n "checking for $2... " >&6; }
1913 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1914   $as_echo_n "(cached) " >&6
1915 else
1916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h.  */
1918 $4
1919 #include <$2>
1920 _ACEOF
1921 if ac_fn_c_try_compile "$LINENO"; then :
1922   eval "$3=yes"
1923 else
1924   eval "$3=no"
1925 fi
1926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1927 fi
1928 eval ac_res=\$$3
1929                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930 $as_echo "$ac_res" >&6; }
1931   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1932
1933 } # ac_fn_c_check_header_compile
1934
1935 # ac_fn_c_try_cpp LINENO
1936 # ----------------------
1937 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1938 ac_fn_c_try_cpp ()
1939 {
1940   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941   if { { ac_try="$ac_cpp conftest.$ac_ext"
1942 case "(($ac_try" in
1943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944   *) ac_try_echo=$ac_try;;
1945 esac
1946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947 $as_echo "$ac_try_echo"; } >&5
1948   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1949   ac_status=$?
1950   if test -s conftest.err; then
1951     grep -v '^ *+' conftest.err >conftest.er1
1952     cat conftest.er1 >&5
1953     mv -f conftest.er1 conftest.err
1954   fi
1955   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956   test $ac_status = 0; } >/dev/null && {
1957          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1958          test ! -s conftest.err
1959        }; then :
1960   ac_retval=0
1961 else
1962   $as_echo "$as_me: failed program was:" >&5
1963 sed 's/^/| /' conftest.$ac_ext >&5
1964
1965     ac_retval=1
1966 fi
1967   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1968   return $ac_retval
1969
1970 } # ac_fn_c_try_cpp
1971
1972 # ac_fn_c_try_run LINENO
1973 # ----------------------
1974 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1975 # that executables *can* be run.
1976 ac_fn_c_try_run ()
1977 {
1978   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979   if { { ac_try="$ac_link"
1980 case "(($ac_try" in
1981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1982   *) ac_try_echo=$ac_try;;
1983 esac
1984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1985 $as_echo "$ac_try_echo"; } >&5
1986   (eval "$ac_link") 2>&5
1987   ac_status=$?
1988   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1989   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1990   { { case "(($ac_try" in
1991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1992   *) ac_try_echo=$ac_try;;
1993 esac
1994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995 $as_echo "$ac_try_echo"; } >&5
1996   (eval "$ac_try") 2>&5
1997   ac_status=$?
1998   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999   test $ac_status = 0; }; }; then :
2000   ac_retval=0
2001 else
2002   $as_echo "$as_me: program exited with status $ac_status" >&5
2003        $as_echo "$as_me: failed program was:" >&5
2004 sed 's/^/| /' conftest.$ac_ext >&5
2005
2006        ac_retval=$ac_status
2007 fi
2008   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2009   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2010   return $ac_retval
2011
2012 } # ac_fn_c_try_run
2013
2014 # ac_fn_c_check_func LINENO FUNC VAR
2015 # ----------------------------------
2016 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2017 ac_fn_c_check_func ()
2018 {
2019   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021 $as_echo_n "checking for $2... " >&6; }
2022 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2023   $as_echo_n "(cached) " >&6
2024 else
2025   if test x$gcc_no_link = xyes; then
2026   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2027 fi
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h.  */
2030 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2031    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2032 #define $2 innocuous_$2
2033
2034 /* System header to define __stub macros and hopefully few prototypes,
2035     which can conflict with char $2 (); below.
2036     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2037     <limits.h> exists even on freestanding compilers.  */
2038
2039 #ifdef __STDC__
2040 # include <limits.h>
2041 #else
2042 # include <assert.h>
2043 #endif
2044
2045 #undef $2
2046
2047 /* Override any GCC internal prototype to avoid an error.
2048    Use char because int might match the return type of a GCC
2049    builtin and then its argument prototype would still apply.  */
2050 #ifdef __cplusplus
2051 extern "C"
2052 #endif
2053 char $2 ();
2054 /* The GNU C library defines this for functions which it implements
2055     to always fail with ENOSYS.  Some functions are actually named
2056     something starting with __ and the normal name is an alias.  */
2057 #if defined __stub_$2 || defined __stub___$2
2058 choke me
2059 #endif
2060
2061 int
2062 main ()
2063 {
2064 return $2 ();
2065   ;
2066   return 0;
2067 }
2068 _ACEOF
2069 if ac_fn_c_try_link "$LINENO"; then :
2070   eval "$3=yes"
2071 else
2072   eval "$3=no"
2073 fi
2074 rm -f core conftest.err conftest.$ac_objext \
2075     conftest$ac_exeext conftest.$ac_ext
2076 fi
2077 eval ac_res=\$$3
2078                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079 $as_echo "$ac_res" >&6; }
2080   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2081
2082 } # ac_fn_c_check_func
2083
2084 # ac_fn_cxx_try_cpp LINENO
2085 # ------------------------
2086 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2087 ac_fn_cxx_try_cpp ()
2088 {
2089   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090   if { { ac_try="$ac_cpp conftest.$ac_ext"
2091 case "(($ac_try" in
2092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093   *) ac_try_echo=$ac_try;;
2094 esac
2095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2096 $as_echo "$ac_try_echo"; } >&5
2097   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2098   ac_status=$?
2099   if test -s conftest.err; then
2100     grep -v '^ *+' conftest.err >conftest.er1
2101     cat conftest.er1 >&5
2102     mv -f conftest.er1 conftest.err
2103   fi
2104   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2105   test $ac_status = 0; } >/dev/null && {
2106          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2107          test ! -s conftest.err
2108        }; then :
2109   ac_retval=0
2110 else
2111   $as_echo "$as_me: failed program was:" >&5
2112 sed 's/^/| /' conftest.$ac_ext >&5
2113
2114     ac_retval=1
2115 fi
2116   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2117   return $ac_retval
2118
2119 } # ac_fn_cxx_try_cpp
2120
2121 # ac_fn_cxx_try_link LINENO
2122 # -------------------------
2123 # Try to link conftest.$ac_ext, and return whether this succeeded.
2124 ac_fn_cxx_try_link ()
2125 {
2126   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2127   rm -f conftest.$ac_objext conftest$ac_exeext
2128   if { { ac_try="$ac_link"
2129 case "(($ac_try" in
2130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2131   *) ac_try_echo=$ac_try;;
2132 esac
2133 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2134 $as_echo "$ac_try_echo"; } >&5
2135   (eval "$ac_link") 2>conftest.err
2136   ac_status=$?
2137   if test -s conftest.err; then
2138     grep -v '^ *+' conftest.err >conftest.er1
2139     cat conftest.er1 >&5
2140     mv -f conftest.er1 conftest.err
2141   fi
2142   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2143   test $ac_status = 0; } && {
2144          test -z "$ac_cxx_werror_flag" ||
2145          test ! -s conftest.err
2146        } && test -s conftest$ac_exeext && {
2147          test "$cross_compiling" = yes ||
2148          $as_test_x conftest$ac_exeext
2149        }; then :
2150   ac_retval=0
2151 else
2152   $as_echo "$as_me: failed program was:" >&5
2153 sed 's/^/| /' conftest.$ac_ext >&5
2154
2155         ac_retval=1
2156 fi
2157   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2158   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2159   # interfere with the next link command; also delete a directory that is
2160   # left behind by Apple's compiler.  We do this before executing the actions.
2161   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2162   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2163   return $ac_retval
2164
2165 } # ac_fn_cxx_try_link
2166
2167 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2168 # -------------------------------------------------------
2169 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2170 # the include files in INCLUDES and setting the cache variable VAR
2171 # accordingly.
2172 ac_fn_c_check_header_mongrel ()
2173 {
2174   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2176   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2177 $as_echo_n "checking for $2... " >&6; }
2178 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2179   $as_echo_n "(cached) " >&6
2180 fi
2181 eval ac_res=\$$3
2182                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2183 $as_echo "$ac_res" >&6; }
2184 else
2185   # Is the header compilable?
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2187 $as_echo_n "checking $2 usability... " >&6; }
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h.  */
2190 $4
2191 #include <$2>
2192 _ACEOF
2193 if ac_fn_c_try_compile "$LINENO"; then :
2194   ac_header_compiler=yes
2195 else
2196   ac_header_compiler=no
2197 fi
2198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2200 $as_echo "$ac_header_compiler" >&6; }
2201
2202 # Is the header present?
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2204 $as_echo_n "checking $2 presence... " >&6; }
2205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206 /* end confdefs.h.  */
2207 #include <$2>
2208 _ACEOF
2209 if ac_fn_c_try_cpp "$LINENO"; then :
2210   ac_header_preproc=yes
2211 else
2212   ac_header_preproc=no
2213 fi
2214 rm -f conftest.err conftest.$ac_ext
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2216 $as_echo "$ac_header_preproc" >&6; }
2217
2218 # So?  What about this header?
2219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2220   yes:no: )
2221     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2222 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2223     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2224 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2225     ;;
2226   no:yes:* )
2227     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2228 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2229     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2230 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2231     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2232 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2233     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2234 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2235     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2236 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2237     ;;
2238 esac
2239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2240 $as_echo_n "checking for $2... " >&6; }
2241 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2242   $as_echo_n "(cached) " >&6
2243 else
2244   eval "$3=\$ac_header_compiler"
2245 fi
2246 eval ac_res=\$$3
2247                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2248 $as_echo "$ac_res" >&6; }
2249 fi
2250   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2251
2252 } # ac_fn_c_check_header_mongrel
2253
2254 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2255 # ----------------------------------------------------
2256 # Tries to find if the field MEMBER exists in type AGGR, after including
2257 # INCLUDES, setting cache variable VAR accordingly.
2258 ac_fn_c_check_member ()
2259 {
2260   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2262 $as_echo_n "checking for $2.$3... " >&6; }
2263 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2264   $as_echo_n "(cached) " >&6
2265 else
2266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h.  */
2268 $5
2269 int
2270 main ()
2271 {
2272 static $2 ac_aggr;
2273 if (ac_aggr.$3)
2274 return 0;
2275   ;
2276   return 0;
2277 }
2278 _ACEOF
2279 if ac_fn_c_try_compile "$LINENO"; then :
2280   eval "$4=yes"
2281 else
2282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h.  */
2284 $5
2285 int
2286 main ()
2287 {
2288 static $2 ac_aggr;
2289 if (sizeof ac_aggr.$3)
2290 return 0;
2291   ;
2292   return 0;
2293 }
2294 _ACEOF
2295 if ac_fn_c_try_compile "$LINENO"; then :
2296   eval "$4=yes"
2297 else
2298   eval "$4=no"
2299 fi
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301 fi
2302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2303 fi
2304 eval ac_res=\$$4
2305                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2306 $as_echo "$ac_res" >&6; }
2307   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2308
2309 } # ac_fn_c_check_member
2310
2311 # ac_fn_c_check_decl LINENO SYMBOL VAR
2312 # ------------------------------------
2313 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2314 ac_fn_c_check_decl ()
2315 {
2316   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2317   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2318 $as_echo_n "checking whether $2 is declared... " >&6; }
2319 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2320   $as_echo_n "(cached) " >&6
2321 else
2322   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323 /* end confdefs.h.  */
2324 $4
2325 int
2326 main ()
2327 {
2328 #ifndef $2
2329   (void) $2;
2330 #endif
2331
2332   ;
2333   return 0;
2334 }
2335 _ACEOF
2336 if ac_fn_c_try_compile "$LINENO"; then :
2337   eval "$3=yes"
2338 else
2339   eval "$3=no"
2340 fi
2341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2342 fi
2343 eval ac_res=\$$3
2344                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2345 $as_echo "$ac_res" >&6; }
2346   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2347
2348 } # ac_fn_c_check_decl
2349
2350 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2351 # --------------------------------------------
2352 # Tries to find the compile-time value of EXPR in a program that includes
2353 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2354 # computed
2355 ac_fn_c_compute_int ()
2356 {
2357   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2358   if test "$cross_compiling" = yes; then
2359     # Depending upon the size, compute the lo and hi bounds.
2360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2361 /* end confdefs.h.  */
2362 $4
2363 int
2364 main ()
2365 {
2366 static int test_array [1 - 2 * !(($2) >= 0)];
2367 test_array [0] = 0
2368
2369   ;
2370   return 0;
2371 }
2372 _ACEOF
2373 if ac_fn_c_try_compile "$LINENO"; then :
2374   ac_lo=0 ac_mid=0
2375   while :; do
2376     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2377 /* end confdefs.h.  */
2378 $4
2379 int
2380 main ()
2381 {
2382 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2383 test_array [0] = 0
2384
2385   ;
2386   return 0;
2387 }
2388 _ACEOF
2389 if ac_fn_c_try_compile "$LINENO"; then :
2390   ac_hi=$ac_mid; break
2391 else
2392   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2393                         if test $ac_lo -le $ac_mid; then
2394                           ac_lo= ac_hi=
2395                           break
2396                         fi
2397                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2398 fi
2399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2400   done
2401 else
2402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2403 /* end confdefs.h.  */
2404 $4
2405 int
2406 main ()
2407 {
2408 static int test_array [1 - 2 * !(($2) < 0)];
2409 test_array [0] = 0
2410
2411   ;
2412   return 0;
2413 }
2414 _ACEOF
2415 if ac_fn_c_try_compile "$LINENO"; then :
2416   ac_hi=-1 ac_mid=-1
2417   while :; do
2418     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2419 /* end confdefs.h.  */
2420 $4
2421 int
2422 main ()
2423 {
2424 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2425 test_array [0] = 0
2426
2427   ;
2428   return 0;
2429 }
2430 _ACEOF
2431 if ac_fn_c_try_compile "$LINENO"; then :
2432   ac_lo=$ac_mid; break
2433 else
2434   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2435                         if test $ac_mid -le $ac_hi; then
2436                           ac_lo= ac_hi=
2437                           break
2438                         fi
2439                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2440 fi
2441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2442   done
2443 else
2444   ac_lo= ac_hi=
2445 fi
2446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2447 fi
2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449 # Binary search between lo and hi bounds.
2450 while test "x$ac_lo" != "x$ac_hi"; do
2451   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453 /* end confdefs.h.  */
2454 $4
2455 int
2456 main ()
2457 {
2458 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2459 test_array [0] = 0
2460
2461   ;
2462   return 0;
2463 }
2464 _ACEOF
2465 if ac_fn_c_try_compile "$LINENO"; then :
2466   ac_hi=$ac_mid
2467 else
2468   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2469 fi
2470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2471 done
2472 case $ac_lo in #((
2473 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2474 '') ac_retval=1 ;;
2475 esac
2476   else
2477     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2478 /* end confdefs.h.  */
2479 $4
2480 static long int longval () { return $2; }
2481 static unsigned long int ulongval () { return $2; }
2482 #include <stdio.h>
2483 #include <stdlib.h>
2484 int
2485 main ()
2486 {
2487
2488   FILE *f = fopen ("conftest.val", "w");
2489   if (! f)
2490     return 1;
2491   if (($2) < 0)
2492     {
2493       long int i = longval ();
2494       if (i != ($2))
2495         return 1;
2496       fprintf (f, "%ld", i);
2497     }
2498   else
2499     {
2500       unsigned long int i = ulongval ();
2501       if (i != ($2))
2502         return 1;
2503       fprintf (f, "%lu", i);
2504     }
2505   /* Do not output a trailing newline, as this causes \r\n confusion
2506      on some platforms.  */
2507   return ferror (f) || fclose (f) != 0;
2508
2509   ;
2510   return 0;
2511 }
2512 _ACEOF
2513 if ac_fn_c_try_run "$LINENO"; then :
2514   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2515 else
2516   ac_retval=1
2517 fi
2518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2519   conftest.$ac_objext conftest.beam conftest.$ac_ext
2520 rm -f conftest.val
2521
2522   fi
2523   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2524   return $ac_retval
2525
2526 } # ac_fn_c_compute_int
2527
2528 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2529 # -------------------------------------------
2530 # Tests whether TYPE exists after having included INCLUDES, setting cache
2531 # variable VAR accordingly.
2532 ac_fn_c_check_type ()
2533 {
2534   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2535   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2536 $as_echo_n "checking for $2... " >&6; }
2537 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2538   $as_echo_n "(cached) " >&6
2539 else
2540   eval "$3=no"
2541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2542 /* end confdefs.h.  */
2543 $4
2544 int
2545 main ()
2546 {
2547 if (sizeof ($2))
2548          return 0;
2549   ;
2550   return 0;
2551 }
2552 _ACEOF
2553 if ac_fn_c_try_compile "$LINENO"; then :
2554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h.  */
2556 $4
2557 int
2558 main ()
2559 {
2560 if (sizeof (($2)))
2561             return 0;
2562   ;
2563   return 0;
2564 }
2565 _ACEOF
2566 if ac_fn_c_try_compile "$LINENO"; then :
2567
2568 else
2569   eval "$3=yes"
2570 fi
2571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2572 fi
2573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2574 fi
2575 eval ac_res=\$$3
2576                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2577 $as_echo "$ac_res" >&6; }
2578   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2579
2580 } # ac_fn_c_check_type
2581 cat >config.log <<_ACEOF
2582 This file contains any messages produced by compilers while
2583 running configure, to aid debugging if configure makes a mistake.
2584
2585 It was created by libjava $as_me version-unused, which was
2586 generated by GNU Autoconf 2.64.  Invocation command line was
2587
2588   $ $0 $@
2589
2590 _ACEOF
2591 exec 5>>config.log
2592 {
2593 cat <<_ASUNAME
2594 ## --------- ##
2595 ## Platform. ##
2596 ## --------- ##
2597
2598 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2599 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2600 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2601 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2602 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2603
2604 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2605 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2606
2607 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2608 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2609 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2610 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2611 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2612 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2613 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2614
2615 _ASUNAME
2616
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 for as_dir in $PATH
2619 do
2620   IFS=$as_save_IFS
2621   test -z "$as_dir" && as_dir=.
2622     $as_echo "PATH: $as_dir"
2623   done
2624 IFS=$as_save_IFS
2625
2626 } >&5
2627
2628 cat >&5 <<_ACEOF
2629
2630
2631 ## ----------- ##
2632 ## Core tests. ##
2633 ## ----------- ##
2634
2635 _ACEOF
2636
2637
2638 # Keep a trace of the command line.
2639 # Strip out --no-create and --no-recursion so they do not pile up.
2640 # Strip out --silent because we don't want to record it for future runs.
2641 # Also quote any args containing shell meta-characters.
2642 # Make two passes to allow for proper duplicate-argument suppression.
2643 ac_configure_args=
2644 ac_configure_args0=
2645 ac_configure_args1=
2646 ac_must_keep_next=false
2647 for ac_pass in 1 2
2648 do
2649   for ac_arg
2650   do
2651     case $ac_arg in
2652     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2653     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2654     | -silent | --silent | --silen | --sile | --sil)
2655       continue ;;
2656     *\'*)
2657       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2658     esac
2659     case $ac_pass in
2660     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2661     2)
2662       as_fn_append ac_configure_args1 " '$ac_arg'"
2663       if test $ac_must_keep_next = true; then
2664         ac_must_keep_next=false # Got value, back to normal.
2665       else
2666         case $ac_arg in
2667           *=* | --config-cache | -C | -disable-* | --disable-* \
2668           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2669           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2670           | -with-* | --with-* | -without-* | --without-* | --x)
2671             case "$ac_configure_args0 " in
2672               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2673             esac
2674             ;;
2675           -* ) ac_must_keep_next=true ;;
2676         esac
2677       fi
2678       as_fn_append ac_configure_args " '$ac_arg'"
2679       ;;
2680     esac
2681   done
2682 done
2683 { ac_configure_args0=; unset ac_configure_args0;}
2684 { ac_configure_args1=; unset ac_configure_args1;}
2685
2686 # When interrupted or exit'd, cleanup temporary files, and complete
2687 # config.log.  We remove comments because anyway the quotes in there
2688 # would cause problems or look ugly.
2689 # WARNING: Use '\'' to represent an apostrophe within the trap.
2690 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2691 trap 'exit_status=$?
2692   # Save into config.log some information that might help in debugging.
2693   {
2694     echo
2695
2696     cat <<\_ASBOX
2697 ## ---------------- ##
2698 ## Cache variables. ##
2699 ## ---------------- ##
2700 _ASBOX
2701     echo
2702     # The following way of writing the cache mishandles newlines in values,
2703 (
2704   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2705     eval ac_val=\$$ac_var
2706     case $ac_val in #(
2707     *${as_nl}*)
2708       case $ac_var in #(
2709       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2710 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2711       esac
2712       case $ac_var in #(
2713       _ | IFS | as_nl) ;; #(
2714       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2715       *) { eval $ac_var=; unset $ac_var;} ;;
2716       esac ;;
2717     esac
2718   done
2719   (set) 2>&1 |
2720     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2721     *${as_nl}ac_space=\ *)
2722       sed -n \
2723         "s/'\''/'\''\\\\'\'''\''/g;
2724           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2725       ;; #(
2726     *)
2727       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2728       ;;
2729     esac |
2730     sort
2731 )
2732     echo
2733
2734     cat <<\_ASBOX
2735 ## ----------------- ##
2736 ## Output variables. ##
2737 ## ----------------- ##
2738 _ASBOX
2739     echo
2740     for ac_var in $ac_subst_vars
2741     do
2742       eval ac_val=\$$ac_var
2743       case $ac_val in
2744       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2745       esac
2746       $as_echo "$ac_var='\''$ac_val'\''"
2747     done | sort
2748     echo
2749
2750     if test -n "$ac_subst_files"; then
2751       cat <<\_ASBOX
2752 ## ------------------- ##
2753 ## File substitutions. ##
2754 ## ------------------- ##
2755 _ASBOX
2756       echo
2757       for ac_var in $ac_subst_files
2758       do
2759         eval ac_val=\$$ac_var
2760         case $ac_val in
2761         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2762         esac
2763         $as_echo "$ac_var='\''$ac_val'\''"
2764       done | sort
2765       echo
2766     fi
2767
2768     if test -s confdefs.h; then
2769       cat <<\_ASBOX
2770 ## ----------- ##
2771 ## confdefs.h. ##
2772 ## ----------- ##
2773 _ASBOX
2774       echo
2775       cat confdefs.h
2776       echo
2777     fi
2778     test "$ac_signal" != 0 &&
2779       $as_echo "$as_me: caught signal $ac_signal"
2780     $as_echo "$as_me: exit $exit_status"
2781   } >&5
2782   rm -f core *.core core.conftest.* &&
2783     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2784     exit $exit_status
2785 ' 0
2786 for ac_signal in 1 2 13 15; do
2787   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2788 done
2789 ac_signal=0
2790
2791 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2792 rm -f -r conftest* confdefs.h
2793
2794 $as_echo "/* confdefs.h */" > confdefs.h
2795
2796 # Predefined preprocessor variables.
2797
2798 cat >>confdefs.h <<_ACEOF
2799 #define PACKAGE_NAME "$PACKAGE_NAME"
2800 _ACEOF
2801
2802 cat >>confdefs.h <<_ACEOF
2803 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2804 _ACEOF
2805
2806 cat >>confdefs.h <<_ACEOF
2807 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2808 _ACEOF
2809
2810 cat >>confdefs.h <<_ACEOF
2811 #define PACKAGE_STRING "$PACKAGE_STRING"
2812 _ACEOF
2813
2814 cat >>confdefs.h <<_ACEOF
2815 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2816 _ACEOF
2817
2818 cat >>confdefs.h <<_ACEOF
2819 #define PACKAGE_URL "$PACKAGE_URL"
2820 _ACEOF
2821
2822
2823 # Let the site file select an alternate cache file if it wants to.
2824 # Prefer an explicitly selected file to automatically selected ones.
2825 ac_site_file1=NONE
2826 ac_site_file2=NONE
2827 if test -n "$CONFIG_SITE"; then
2828   ac_site_file1=$CONFIG_SITE
2829 elif test "x$prefix" != xNONE; then
2830   ac_site_file1=$prefix/share/config.site
2831   ac_site_file2=$prefix/etc/config.site
2832 else
2833   ac_site_file1=$ac_default_prefix/share/config.site
2834   ac_site_file2=$ac_default_prefix/etc/config.site
2835 fi
2836 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2837 do
2838   test "x$ac_site_file" = xNONE && continue
2839   if test -r "$ac_site_file"; then
2840     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2841 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2842     sed 's/^/| /' "$ac_site_file" >&5
2843     . "$ac_site_file"
2844   fi
2845 done
2846
2847 if test -r "$cache_file"; then
2848   # Some versions of bash will fail to source /dev/null (special
2849   # files actually), so we avoid doing that.
2850   if test -f "$cache_file"; then
2851     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2852 $as_echo "$as_me: loading cache $cache_file" >&6;}
2853     case $cache_file in
2854       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2855       *)                      . "./$cache_file";;
2856     esac
2857   fi
2858 else
2859   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2860 $as_echo "$as_me: creating cache $cache_file" >&6;}
2861   >$cache_file
2862 fi
2863
2864 # Check that the precious variables saved in the cache have kept the same
2865 # value.
2866 ac_cache_corrupted=false
2867 for ac_var in $ac_precious_vars; do
2868   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2869   eval ac_new_set=\$ac_env_${ac_var}_set
2870   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2871   eval ac_new_val=\$ac_env_${ac_var}_value
2872   case $ac_old_set,$ac_new_set in
2873     set,)
2874       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2875 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2876       ac_cache_corrupted=: ;;
2877     ,set)
2878       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2879 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2880       ac_cache_corrupted=: ;;
2881     ,);;
2882     *)
2883       if test "x$ac_old_val" != "x$ac_new_val"; then
2884         # differences in whitespace do not lead to failure.
2885         ac_old_val_w=`echo x $ac_old_val`
2886         ac_new_val_w=`echo x $ac_new_val`
2887         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2888           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2889 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2890           ac_cache_corrupted=:
2891         else
2892           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2893 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2894           eval $ac_var=\$ac_old_val
2895         fi
2896         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2897 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2898         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2899 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2900       fi;;
2901   esac
2902   # Pass precious variables to config.status.
2903   if test "$ac_new_set" = set; then
2904     case $ac_new_val in
2905     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2906     *) ac_arg=$ac_var=$ac_new_val ;;
2907     esac
2908     case " $ac_configure_args " in
2909       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2910       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2911     esac
2912   fi
2913 done
2914 if $ac_cache_corrupted; then
2915   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2917   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2918 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2919   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2920 fi
2921 ## -------------------- ##
2922 ## Main body of script. ##
2923 ## -------------------- ##
2924
2925 ac_ext=c
2926 ac_cpp='$CPP $CPPFLAGS'
2927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2930
2931
2932
2933
2934
2935
2936
2937
2938 ac_aux_dir=
2939 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2940   for ac_t in install-sh install.sh shtool; do
2941     if test -f "$ac_dir/$ac_t"; then
2942       ac_aux_dir=$ac_dir
2943       ac_install_sh="$ac_aux_dir/$ac_t -c"
2944       break 2
2945     fi
2946   done
2947 done
2948 if test -z "$ac_aux_dir"; then
2949   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2950 fi
2951
2952 # These three variables are undocumented and unsupported,
2953 # and are intended to be withdrawn in a future Autoconf release.
2954 # They can cause serious problems if a builder's source tree is in a directory
2955 # whose full name contains unusual characters.
2956 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2957 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2958 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2959
2960
2961 # Make sure we can run config.sub.
2962 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2963   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2964
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2966 $as_echo_n "checking build system type... " >&6; }
2967 if test "${ac_cv_build+set}" = set; then :
2968   $as_echo_n "(cached) " >&6
2969 else
2970   ac_build_alias=$build_alias
2971 test "x$ac_build_alias" = x &&
2972   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2973 test "x$ac_build_alias" = x &&
2974   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2975 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2976   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2977
2978 fi
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2980 $as_echo "$ac_cv_build" >&6; }
2981 case $ac_cv_build in
2982 *-*-*) ;;
2983 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2984 esac
2985 build=$ac_cv_build
2986 ac_save_IFS=$IFS; IFS='-'
2987 set x $ac_cv_build
2988 shift
2989 build_cpu=$1
2990 build_vendor=$2
2991 shift; shift
2992 # Remember, the first character of IFS is used to create $*,
2993 # except with old shells:
2994 build_os=$*
2995 IFS=$ac_save_IFS
2996 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2997
2998
2999  case ${build_alias} in
3000   "") build_noncanonical=${build} ;;
3001   *) build_noncanonical=${build_alias} ;;
3002 esac
3003
3004  case ${host_alias} in
3005   "") host_noncanonical=${build_noncanonical} ;;
3006   *) host_noncanonical=${host_alias} ;;
3007 esac
3008
3009  case ${target_alias} in
3010   "") target_noncanonical=${host_noncanonical} ;;
3011   *) target_noncanonical=${target_alias} ;;
3012 esac
3013
3014
3015 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3016 # have matching libraries, they should use host libraries: Makefile.tpl
3017 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3018 # However, they still use the build modules, because the corresponding
3019 # host modules (e.g. bison) are only built for the host when bootstrap
3020 # finishes. So:
3021 # - build_subdir is where we find build modules, and never changes.
3022 # - build_libsubdir is where we find build libraries, and can be overridden.
3023
3024 # Prefix 'build-' so this never conflicts with target_subdir.
3025 build_subdir="build-${build_noncanonical}"
3026
3027 # Check whether --with-build-libsubdir was given.
3028 if test "${with_build_libsubdir+set}" = set; then :
3029   withval=$with_build_libsubdir; build_libsubdir="$withval"
3030 else
3031   build_libsubdir="$build_subdir"
3032 fi
3033
3034 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3035 if ( test $srcdir = . && test -d gcc ) \
3036    || test -d $srcdir/../host-${host_noncanonical}; then
3037   host_subdir="host-${host_noncanonical}"
3038 else
3039   host_subdir=.
3040 fi
3041 # No prefix.
3042 target_subdir=${target_noncanonical}
3043
3044
3045 # We use these options to decide which functions to include.
3046
3047 # Check whether --with-target-subdir was given.
3048 if test "${with_target_subdir+set}" = set; then :
3049   withval=$with_target_subdir;
3050 fi
3051
3052
3053 # We may get other options which we don't document:
3054 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3055
3056 # Find the rest of the source tree framework.
3057 # Default to --enable-multilib
3058 # Check whether --enable-multilib was given.
3059 if test "${enable_multilib+set}" = set; then :
3060   enableval=$enable_multilib; case "$enableval" in
3061   yes) multilib=yes ;;
3062   no)  multilib=no ;;
3063   *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3064  esac
3065 else
3066   multilib=yes
3067 fi
3068
3069
3070 # We may get other options which we leave undocumented:
3071 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3072 # See config-ml.in if you want the gory details.
3073
3074 if test "$srcdir" = "."; then
3075   if test "$with_target_subdir" != "."; then
3076     multi_basedir="$srcdir/$with_multisrctop../.."
3077   else
3078     multi_basedir="$srcdir/$with_multisrctop.."
3079   fi
3080 else
3081   multi_basedir="$srcdir/.."
3082 fi
3083
3084
3085 # Even if the default multilib is not a cross compilation,
3086 # it may be that some of the other multilibs are.
3087 if test $cross_compiling = no && test $multilib = yes \
3088    && test "x${with_multisubdir}" != x ; then
3089    cross_compiling=maybe
3090 fi
3091
3092 ac_config_commands="$ac_config_commands default-1"
3093
3094
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3096 $as_echo_n "checking host system type... " >&6; }
3097 if test "${ac_cv_host+set}" = set; then :
3098   $as_echo_n "(cached) " >&6
3099 else
3100   if test "x$host_alias" = x; then
3101   ac_cv_host=$ac_cv_build
3102 else
3103   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3104     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3105 fi
3106
3107 fi
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3109 $as_echo "$ac_cv_host" >&6; }
3110 case $ac_cv_host in
3111 *-*-*) ;;
3112 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3113 esac
3114 host=$ac_cv_host
3115 ac_save_IFS=$IFS; IFS='-'
3116 set x $ac_cv_host
3117 shift
3118 host_cpu=$1
3119 host_vendor=$2
3120 shift; shift
3121 # Remember, the first character of IFS is used to create $*,
3122 # except with old shells:
3123 host_os=$*
3124 IFS=$ac_save_IFS
3125 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3126
3127
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3129 $as_echo_n "checking target system type... " >&6; }
3130 if test "${ac_cv_target+set}" = set; then :
3131   $as_echo_n "(cached) " >&6
3132 else
3133   if test "x$target_alias" = x; then
3134   ac_cv_target=$ac_cv_host
3135 else
3136   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3137     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3138 fi
3139
3140 fi
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3142 $as_echo "$ac_cv_target" >&6; }
3143 case $ac_cv_target in
3144 *-*-*) ;;
3145 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3146 esac
3147 target=$ac_cv_target
3148 ac_save_IFS=$IFS; IFS='-'
3149 set x $ac_cv_target
3150 shift
3151 target_cpu=$1
3152 target_vendor=$2
3153 shift; shift
3154 # Remember, the first character of IFS is used to create $*,
3155 # except with old shells:
3156 target_os=$*
3157 IFS=$ac_save_IFS
3158 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3159
3160
3161 # The aliases save the names the user supplied, while $host etc.
3162 # will get canonicalized.
3163 test -n "$target_alias" &&
3164   test "$program_prefix$program_suffix$program_transform_name" = \
3165     NONENONEs,x,x, &&
3166   program_prefix=${target_alias}-
3167
3168  case ${build_alias} in
3169   "") build_noncanonical=${build} ;;
3170   *) build_noncanonical=${build_alias} ;;
3171 esac
3172
3173  case ${target_alias} in
3174   "") target_noncanonical=${host_noncanonical} ;;
3175   *) target_noncanonical=${target_alias} ;;
3176 esac
3177
3178
3179
3180
3181 # This works around the fact that libtool configuration may change LD
3182 # for this particular configuration, but some shells, instead of
3183 # keeping the changes in LD private, export them just because LD is
3184 # exported.
3185 ORIGINAL_LD_FOR_MULTILIBS=$LD
3186
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3188 $as_echo_n "checking whether ln -s works... " >&6; }
3189 LN_S=$as_ln_s
3190 if test "$LN_S" = "ln -s"; then
3191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3192 $as_echo "yes" >&6; }
3193 else
3194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3195 $as_echo "no, using $LN_S" >&6; }
3196 fi
3197
3198
3199 # This works around an automake problem.
3200 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
3201
3202
3203
3204 # Check whether --with-cross-host was given.
3205 if test "${with_cross_host+set}" = set; then :
3206   withval=$with_cross_host;
3207 fi
3208
3209
3210
3211 # Check whether --with-newlib was given.
3212 if test "${with_newlib+set}" = set; then :
3213   withval=$with_newlib;
3214 fi
3215
3216
3217 # Check whether --enable-version-specific-runtime-libs was given.
3218 if test "${enable_version_specific_runtime_libs+set}" = set; then :
3219   enableval=$enable_version_specific_runtime_libs; case "$enableval" in
3220       yes) version_specific_libs=yes ;;
3221       no)  version_specific_libs=no ;;
3222       *)   as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3223      esac
3224 else
3225   version_specific_libs=no
3226
3227 fi
3228
3229
3230 # Check whether --enable-browser-plugin was given.
3231 if test "${enable_browser_plugin+set}" = set; then :
3232   enableval=$enable_browser_plugin; case "$enableval" in
3233       yes) browser_plugin_enabled=yes ;;
3234       no)  browser_plugin_enabled=no ;;
3235       *)   as_fn_error "Unknown argument to enable/disable browser plugin" "$LINENO" 5;;
3236      esac
3237 else
3238   browser_plugin_enabled=no
3239
3240 fi
3241
3242
3243 # Check whether --enable-gconf-peer was given.
3244 if test "${enable_gconf_peer+set}" = set; then :
3245   enableval=$enable_gconf_peer; case "$enableval" in
3246       yes) gconf_enabled=yes ;;
3247       no)  gconf_enabled=no ;;
3248       *)   as_fn_error "Unknown argument to enable/disable gconf-peer" "$LINENO" 5;;
3249      esac
3250 else
3251   gconf_enabled=no
3252
3253 fi
3254
3255
3256
3257 # Check whether --with-antlr-jar was given.
3258 if test "${with_antlr_jar+set}" = set; then :
3259   withval=$with_antlr_jar;
3260              ANTLR_JAR=$withval
3261
3262 else
3263
3264              ANTLR_JAR=
3265
3266 fi
3267
3268
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr.jar" >&5
3270 $as_echo_n "checking for antlr.jar... " >&6; }
3271 if test "x$ANTLR_JAR" = x; then
3272     for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
3273         /usr/share/antlr/lib /usr/share/java /usr/lib;
3274     do
3275         if test -f "$antlr_lib_home/antlr.jar"; then
3276             # FIXME: version check for antlr needed without using a VM
3277             ANTLR_JAR="$antlr_lib_home/antlr.jar"
3278             break
3279         fi
3280     done
3281     if test "x$ANTLR_JAR" = x; then
3282         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
3283 $as_echo "not found" >&6; }
3284     else
3285         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3286 $as_echo "$ANTLR_JAR" >&6; }
3287     fi
3288 else
3289     if test -f "${ANTLR_JAR}"; then
3290         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3291 $as_echo "$ANTLR_JAR" >&6; }
3292     else
3293         as_fn_error "antlr jar file not found: $ANTLR_JAR" "$LINENO" 5
3294     fi
3295 fi
3296
3297
3298 # Check whether --enable-gjdoc was given.
3299 if test "${enable_gjdoc+set}" = set; then :
3300   enableval=$enable_gjdoc; case "${enableval}" in
3301                 yes) BUILD_GJDOC=yes ;;
3302                 no) BUILD_GJDOC=no ;;
3303                 *) BUILD_GJDOC=yes ;;
3304               esac
3305 else
3306   BUILD_GJDOC=maybe
3307 fi
3308
3309
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gjdoc" >&5
3311 $as_echo_n "checking whether to build gjdoc... " >&6; }
3312 if test "x$BUILD_GJDOC" = xmaybe; then
3313     if test -f "${ANTLR_JAR}"; then
3314         BUILD_GJDOC=yes
3315         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316 $as_echo "yes" >&6; }
3317     else
3318         BUILD_GJDOC=no
3319         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, antlr.jar not found" >&5
3320 $as_echo "no, antlr.jar not found" >&6; }
3321     fi
3322 else
3323     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_GJDOC" >&5
3324 $as_echo "$BUILD_GJDOC" >&6; }
3325 fi
3326  if test "x${BUILD_GJDOC}" = xyes; then
3327   CREATE_GJDOC_TRUE=
3328   CREATE_GJDOC_FALSE='#'
3329 else
3330   CREATE_GJDOC_TRUE='#'
3331   CREATE_GJDOC_FALSE=
3332 fi
3333
3334
3335 # Check whether --enable-java-maintainer-mode was given.
3336 if test "${enable_java_maintainer_mode+set}" = set; then :
3337   enableval=$enable_java_maintainer_mode;
3338 fi
3339
3340  if test "$enable_java_maintainer_mode" = yes; then
3341   JAVA_MAINTAINER_MODE_TRUE=
3342   JAVA_MAINTAINER_MODE_FALSE='#'
3343 else
3344   JAVA_MAINTAINER_MODE_TRUE='#'
3345   JAVA_MAINTAINER_MODE_FALSE=
3346 fi
3347
3348
3349 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
3350
3351
3352 # For libstdc++-v3, -fno-builtin must be present here so that a
3353 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
3354 # used in later tests.  This may not be necessary in libjava; I don't know.
3355 save_CXXFLAGS="$CXXFLAGS"
3356 CXXFLAGS="$CXXFLAGS -fno-builtin"
3357 ac_ext=c
3358 ac_cpp='$CPP $CPPFLAGS'
3359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3362 if test -n "$ac_tool_prefix"; then
3363   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3364 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3366 $as_echo_n "checking for $ac_word... " >&6; }
3367 if test "${ac_cv_prog_CC+set}" = set; then :
3368   $as_echo_n "(cached) " >&6
3369 else
3370   if test -n "$CC"; then
3371   ac_cv_prog_CC="$CC" # Let the user override the test.
3372 else
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 for as_dir in $PATH
3375 do
3376   IFS=$as_save_IFS
3377   test -z "$as_dir" && as_dir=.
3378     for ac_exec_ext in '' $ac_executable_extensions; do
3379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3380     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3382     break 2
3383   fi
3384 done
3385   done
3386 IFS=$as_save_IFS
3387
3388 fi
3389 fi
3390 CC=$ac_cv_prog_CC
3391 if test -n "$CC"; then
3392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3393 $as_echo "$CC" >&6; }
3394 else
3395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3396 $as_echo "no" >&6; }
3397 fi
3398
3399
3400 fi
3401 if test -z "$ac_cv_prog_CC"; then
3402   ac_ct_CC=$CC
3403   # Extract the first word of "gcc", so it can be a program name with args.
3404 set dummy gcc; ac_word=$2
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3406 $as_echo_n "checking for $ac_word... " >&6; }
3407 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3408   $as_echo_n "(cached) " >&6
3409 else
3410   if test -n "$ac_ct_CC"; then
3411   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3412 else
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 for as_dir in $PATH
3415 do
3416   IFS=$as_save_IFS
3417   test -z "$as_dir" && as_dir=.
3418     for ac_exec_ext in '' $ac_executable_extensions; do
3419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3420     ac_cv_prog_ac_ct_CC="gcc"
3421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3422     break 2
3423   fi
3424 done
3425   done
3426 IFS=$as_save_IFS
3427
3428 fi
3429 fi
3430 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3431 if test -n "$ac_ct_CC"; then
3432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3433 $as_echo "$ac_ct_CC" >&6; }
3434 else
3435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436 $as_echo "no" >&6; }
3437 fi
3438
3439   if test "x$ac_ct_CC" = x; then
3440     CC=""
3441   else
3442     case $cross_compiling:$ac_tool_warned in
3443 yes:)
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3446 ac_tool_warned=yes ;;
3447 esac
3448     CC=$ac_ct_CC
3449   fi
3450 else
3451   CC="$ac_cv_prog_CC"
3452 fi
3453
3454 if test -z "$CC"; then
3455           if test -n "$ac_tool_prefix"; then
3456     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3457 set dummy ${ac_tool_prefix}cc; ac_word=$2
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3459 $as_echo_n "checking for $ac_word... " >&6; }
3460 if test "${ac_cv_prog_CC+set}" = set; then :
3461   $as_echo_n "(cached) " >&6
3462 else
3463   if test -n "$CC"; then
3464   ac_cv_prog_CC="$CC" # Let the user override the test.
3465 else
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 for as_dir in $PATH
3468 do
3469   IFS=$as_save_IFS
3470   test -z "$as_dir" && as_dir=.
3471     for ac_exec_ext in '' $ac_executable_extensions; do
3472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3473     ac_cv_prog_CC="${ac_tool_prefix}cc"
3474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3475     break 2
3476   fi
3477 done
3478   done
3479 IFS=$as_save_IFS
3480
3481 fi
3482 fi
3483 CC=$ac_cv_prog_CC
3484 if test -n "$CC"; then
3485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3486 $as_echo "$CC" >&6; }
3487 else
3488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3489 $as_echo "no" >&6; }
3490 fi
3491
3492
3493   fi
3494 fi
3495 if test -z "$CC"; then
3496   # Extract the first word of "cc", so it can be a program name with args.
3497 set dummy cc; ac_word=$2
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3499 $as_echo_n "checking for $ac_word... " >&6; }
3500 if test "${ac_cv_prog_CC+set}" = set; then :
3501   $as_echo_n "(cached) " >&6
3502 else
3503   if test -n "$CC"; then
3504   ac_cv_prog_CC="$CC" # Let the user override the test.
3505 else
3506   ac_prog_rejected=no
3507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508 for as_dir in $PATH
3509 do
3510   IFS=$as_save_IFS
3511   test -z "$as_dir" && as_dir=.
3512     for ac_exec_ext in '' $ac_executable_extensions; do
3513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3514     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3515        ac_prog_rejected=yes
3516        continue
3517      fi
3518     ac_cv_prog_CC="cc"
3519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3520     break 2
3521   fi
3522 done
3523   done
3524 IFS=$as_save_IFS
3525
3526 if test $ac_prog_rejected = yes; then
3527   # We found a bogon in the path, so make sure we never use it.
3528   set dummy $ac_cv_prog_CC
3529   shift
3530   if test $# != 0; then
3531     # We chose a different compiler from the bogus one.
3532     # However, it has the same basename, so the bogon will be chosen
3533     # first if we set CC to just the basename; use the full file name.
3534     shift
3535     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3536   fi
3537 fi
3538 fi
3539 fi
3540 CC=$ac_cv_prog_CC
3541 if test -n "$CC"; then
3542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3543 $as_echo "$CC" >&6; }
3544 else
3545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546 $as_echo "no" >&6; }
3547 fi
3548
3549
3550 fi
3551 if test -z "$CC"; then
3552   if test -n "$ac_tool_prefix"; then
3553   for ac_prog in cl.exe
3554   do
3555     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3556 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3558 $as_echo_n "checking for $ac_word... " >&6; }
3559 if test "${ac_cv_prog_CC+set}" = set; then :
3560   $as_echo_n "(cached) " >&6
3561 else
3562   if test -n "$CC"; then
3563   ac_cv_prog_CC="$CC" # Let the user override the test.
3564 else
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 for as_dir in $PATH
3567 do
3568   IFS=$as_save_IFS
3569   test -z "$as_dir" && as_dir=.
3570     for ac_exec_ext in '' $ac_executable_extensions; do
3571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3572     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3574     break 2
3575   fi
3576 done
3577   done
3578 IFS=$as_save_IFS
3579
3580 fi
3581 fi
3582 CC=$ac_cv_prog_CC
3583 if test -n "$CC"; then
3584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3585 $as_echo "$CC" >&6; }
3586 else
3587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588 $as_echo "no" >&6; }
3589 fi
3590
3591
3592     test -n "$CC" && break
3593   done
3594 fi
3595 if test -z "$CC"; then
3596   ac_ct_CC=$CC
3597   for ac_prog in cl.exe
3598 do
3599   # Extract the first word of "$ac_prog", so it can be a program name with args.
3600 set dummy $ac_prog; ac_word=$2
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3602 $as_echo_n "checking for $ac_word... " >&6; }
3603 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3604   $as_echo_n "(cached) " >&6
3605 else
3606   if test -n "$ac_ct_CC"; then
3607   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3608 else
3609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3610 for as_dir in $PATH
3611 do
3612   IFS=$as_save_IFS
3613   test -z "$as_dir" && as_dir=.
3614     for ac_exec_ext in '' $ac_executable_extensions; do
3615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3616     ac_cv_prog_ac_ct_CC="$ac_prog"
3617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3618     break 2
3619   fi
3620 done
3621   done
3622 IFS=$as_save_IFS
3623
3624 fi
3625 fi
3626 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3627 if test -n "$ac_ct_CC"; then
3628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3629 $as_echo "$ac_ct_CC" >&6; }
3630 else
3631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3632 $as_echo "no" >&6; }
3633 fi
3634
3635
3636   test -n "$ac_ct_CC" && break
3637 done
3638
3639   if test "x$ac_ct_CC" = x; then
3640     CC=""
3641   else
3642     case $cross_compiling:$ac_tool_warned in
3643 yes:)
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3646 ac_tool_warned=yes ;;
3647 esac
3648     CC=$ac_ct_CC
3649   fi
3650 fi
3651
3652 fi
3653
3654
3655 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3657 as_fn_error "no acceptable C compiler found in \$PATH
3658 See \`config.log' for more details." "$LINENO" 5; }
3659
3660 # Provide some information about the compiler.
3661 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3662 set X $ac_compile
3663 ac_compiler=$2
3664 for ac_option in --version -v -V -qversion; do
3665   { { ac_try="$ac_compiler $ac_option >&5"
3666 case "(($ac_try" in
3667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668   *) ac_try_echo=$ac_try;;
3669 esac
3670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3671 $as_echo "$ac_try_echo"; } >&5
3672   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3673   ac_status=$?
3674   if test -s conftest.err; then
3675     sed '10a\
3676 ... rest of stderr output deleted ...
3677          10q' conftest.err >conftest.er1
3678     cat conftest.er1 >&5
3679     rm -f conftest.er1 conftest.err
3680   fi
3681   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3682   test $ac_status = 0; }
3683 done
3684
3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686 /* end confdefs.h.  */
3687
3688 int
3689 main ()
3690 {
3691
3692   ;
3693   return 0;
3694 }
3695 _ACEOF
3696 # FIXME: Cleanup?
3697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3698   (eval $ac_link) 2>&5
3699   ac_status=$?
3700   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3701   test $ac_status = 0; }; then :
3702   gcc_no_link=no
3703 else
3704   gcc_no_link=yes
3705 fi
3706 if test x$gcc_no_link = xyes; then
3707   # Setting cross_compile will disable run tests; it will
3708   # also disable AC_CHECK_FILE but that's generally
3709   # correct if we can't link.
3710   cross_compiling=yes
3711   EXEEXT=
3712 else
3713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h.  */
3715
3716 int
3717 main ()
3718 {
3719
3720   ;
3721   return 0;
3722 }
3723 _ACEOF
3724 ac_clean_files_save=$ac_clean_files
3725 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3726 # Try to create an executable without -o first, disregard a.out.
3727 # It will help us diagnose broken compilers, and finding out an intuition
3728 # of exeext.
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3730 $as_echo_n "checking for C compiler default output file name... " >&6; }
3731 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3732
3733 # The possible output files:
3734 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3735
3736 ac_rmfiles=
3737 for ac_file in $ac_files
3738 do
3739   case $ac_file in
3740     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3741     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3742   esac
3743 done
3744 rm -f $ac_rmfiles
3745
3746 if { { ac_try="$ac_link_default"
3747 case "(($ac_try" in
3748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3749   *) ac_try_echo=$ac_try;;
3750 esac
3751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3752 $as_echo "$ac_try_echo"; } >&5
3753   (eval "$ac_link_default") 2>&5
3754   ac_status=$?
3755   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3756   test $ac_status = 0; }; then :
3757   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3758 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3759 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3760 # so that the user can short-circuit this test for compilers unknown to
3761 # Autoconf.
3762 for ac_file in $ac_files ''
3763 do
3764   test -f "$ac_file" || continue
3765   case $ac_file in
3766     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3767         ;;
3768     [ab].out )
3769         # We found the default executable, but exeext='' is most
3770         # certainly right.
3771         break;;
3772     *.* )
3773         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3774         then :; else
3775            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3776         fi
3777         # We set ac_cv_exeext here because the later test for it is not
3778         # safe: cross compilers may not add the suffix if given an `-o'
3779         # argument, so we may need to know it at that point already.
3780         # Even if this section looks crufty: it has the advantage of
3781         # actually working.
3782         break;;
3783     * )
3784         break;;
3785   esac
3786 done
3787 test "$ac_cv_exeext" = no && ac_cv_exeext=
3788
3789 else
3790   ac_file=''
3791 fi
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3793 $as_echo "$ac_file" >&6; }
3794 if test -z "$ac_file"; then :
3795   $as_echo "$as_me: failed program was:" >&5
3796 sed 's/^/| /' conftest.$ac_ext >&5
3797
3798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3800 { as_fn_set_status 77
3801 as_fn_error "C compiler cannot create executables
3802 See \`config.log' for more details." "$LINENO" 5; }; }
3803 fi
3804 ac_exeext=$ac_cv_exeext
3805
3806 # Check that the compiler produces executables we can run.  If not, either
3807 # the compiler is broken, or we cross compile.
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3809 $as_echo_n "checking whether the C compiler works... " >&6; }
3810 # If not cross compiling, check that we can run a simple program.
3811 if test "$cross_compiling" != yes; then
3812   if { ac_try='./$ac_file'
3813   { { case "(($ac_try" in
3814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815   *) ac_try_echo=$ac_try;;
3816 esac
3817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3818 $as_echo "$ac_try_echo"; } >&5
3819   (eval "$ac_try") 2>&5
3820   ac_status=$?
3821   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3822   test $ac_status = 0; }; }; then
3823     cross_compiling=no
3824   else
3825     if test "$cross_compiling" = maybe; then
3826         cross_compiling=yes
3827     else
3828         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3830 as_fn_error "cannot run C compiled programs.
3831 If you meant to cross compile, use \`--host'.
3832 See \`config.log' for more details." "$LINENO" 5; }
3833     fi
3834   fi
3835 fi
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3837 $as_echo "yes" >&6; }
3838
3839 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3840 ac_clean_files=$ac_clean_files_save
3841 # Check that the compiler produces executables we can run.  If not, either
3842 # the compiler is broken, or we cross compile.
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3844 $as_echo_n "checking whether we are cross compiling... " >&6; }
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3846 $as_echo "$cross_compiling" >&6; }
3847
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3849 $as_echo_n "checking for suffix of executables... " >&6; }
3850 if { { ac_try="$ac_link"
3851 case "(($ac_try" in
3852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853   *) ac_try_echo=$ac_try;;
3854 esac
3855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856 $as_echo "$ac_try_echo"; } >&5
3857   (eval "$ac_link") 2>&5
3858   ac_status=$?
3859   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3860   test $ac_status = 0; }; then :
3861   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3862 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3863 # work properly (i.e., refer to `conftest.exe'), while it won't with
3864 # `rm'.
3865 for ac_file in conftest.exe conftest conftest.*; do
3866   test -f "$ac_file" || continue
3867   case $ac_file in
3868     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3869     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3870           break;;
3871     * ) break;;
3872   esac
3873 done
3874 else
3875   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3877 as_fn_error "cannot compute suffix of executables: cannot compile and link
3878 See \`config.log' for more details." "$LINENO" 5; }
3879 fi
3880 rm -f conftest$ac_cv_exeext
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3882 $as_echo "$ac_cv_exeext" >&6; }
3883
3884 rm -f conftest.$ac_ext
3885 EXEEXT=$ac_cv_exeext
3886 ac_exeext=$EXEEXT
3887 fi
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3889 $as_echo_n "checking for suffix of object files... " >&6; }
3890 if test "${ac_cv_objext+set}" = set; then :
3891   $as_echo_n "(cached) " >&6
3892 else
3893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h.  */
3895
3896 int
3897 main ()
3898 {
3899
3900   ;
3901   return 0;
3902 }
3903 _ACEOF
3904 rm -f conftest.o conftest.obj
3905 if { { ac_try="$ac_compile"
3906 case "(($ac_try" in
3907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3908   *) ac_try_echo=$ac_try;;
3909 esac
3910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3911 $as_echo "$ac_try_echo"; } >&5
3912   (eval "$ac_compile") 2>&5
3913   ac_status=$?
3914   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3915   test $ac_status = 0; }; then :
3916   for ac_file in conftest.o conftest.obj conftest.*; do
3917   test -f "$ac_file" || continue;
3918   case $ac_file in
3919     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3920     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3921        break;;
3922   esac
3923 done
3924 else
3925   $as_echo "$as_me: failed program was:" >&5
3926 sed 's/^/| /' conftest.$ac_ext >&5
3927
3928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3930 as_fn_error "cannot compute suffix of object files: cannot compile
3931 See \`config.log' for more details." "$LINENO" 5; }
3932 fi
3933 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3934 fi
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3936 $as_echo "$ac_cv_objext" >&6; }
3937 OBJEXT=$ac_cv_objext
3938 ac_objext=$OBJEXT
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3940 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3941 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3942   $as_echo_n "(cached) " >&6
3943 else
3944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h.  */
3946
3947 int
3948 main ()
3949 {
3950 #ifndef __GNUC__
3951        choke me
3952 #endif
3953
3954   ;
3955   return 0;
3956 }
3957 _ACEOF
3958 if ac_fn_c_try_compile "$LINENO"; then :
3959   ac_compiler_gnu=yes
3960 else
3961   ac_compiler_gnu=no
3962 fi
3963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3964 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3965
3966 fi
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3968 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3969 if test $ac_compiler_gnu = yes; then
3970   GCC=yes
3971 else
3972   GCC=
3973 fi
3974 ac_test_CFLAGS=${CFLAGS+set}
3975 ac_save_CFLAGS=$CFLAGS
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3977 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3978 if test "${ac_cv_prog_cc_g+set}" = set; then :
3979   $as_echo_n "(cached) " >&6
3980 else
3981   ac_save_c_werror_flag=$ac_c_werror_flag
3982    ac_c_werror_flag=yes
3983    ac_cv_prog_cc_g=no
3984    CFLAGS="-g"
3985    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h.  */
3987
3988 int
3989 main ()
3990 {
3991
3992   ;
3993   return 0;
3994 }
3995 _ACEOF
3996 if ac_fn_c_try_compile "$LINENO"; then :
3997   ac_cv_prog_cc_g=yes
3998 else
3999   CFLAGS=""
4000       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h.  */
4002
4003 int
4004 main ()
4005 {
4006
4007   ;
4008   return 0;
4009 }
4010 _ACEOF
4011 if ac_fn_c_try_compile "$LINENO"; then :
4012
4013 else
4014   ac_c_werror_flag=$ac_save_c_werror_flag
4015          CFLAGS="-g"
4016          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h.  */
4018
4019 int
4020 main ()
4021 {
4022
4023   ;
4024   return 0;
4025 }
4026 _ACEOF
4027 if ac_fn_c_try_compile "$LINENO"; then :
4028   ac_cv_prog_cc_g=yes
4029 fi
4030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4031 fi
4032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4033 fi
4034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4035    ac_c_werror_flag=$ac_save_c_werror_flag
4036 fi
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4038 $as_echo "$ac_cv_prog_cc_g" >&6; }
4039 if test "$ac_test_CFLAGS" = set; then
4040   CFLAGS=$ac_save_CFLAGS
4041 elif test $ac_cv_prog_cc_g = yes; then
4042   if test "$GCC" = yes; then
4043     CFLAGS="-g -O2"
4044   else
4045     CFLAGS="-g"
4046   fi
4047 else
4048   if test "$GCC" = yes; then
4049     CFLAGS="-O2"
4050   else
4051     CFLAGS=
4052   fi
4053 fi
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4055 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4056 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4057   $as_echo_n "(cached) " >&6
4058 else
4059   ac_cv_prog_cc_c89=no
4060 ac_save_CC=$CC
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h.  */
4063 #include <stdarg.h>
4064 #include <stdio.h>
4065 #include <sys/types.h>
4066 #include <sys/stat.h>
4067 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4068 struct buf { int x; };
4069 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4070 static char *e (p, i)
4071      char **p;
4072      int i;
4073 {
4074   return p[i];
4075 }
4076 static char *f (char * (*g) (char **, int), char **p, ...)
4077 {
4078   char *s;
4079   va_list v;
4080   va_start (v,p);
4081   s = g (p, va_arg (v,int));
4082   va_end (v);
4083   return s;
4084 }
4085
4086 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4087    function prototypes and stuff, but not '\xHH' hex character constants.
4088    These don't provoke an error unfortunately, instead are silently treated
4089    as 'x'.  The following induces an error, until -std is added to get
4090    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4091    array size at least.  It's necessary to write '\x00'==0 to get something
4092    that's true only with -std.  */
4093 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4094
4095 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4096    inside strings and character constants.  */
4097 #define FOO(x) 'x'
4098 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4099
4100 int test (int i, double x);
4101 struct s1 {int (*f) (int a);};
4102 struct s2 {int (*f) (double a);};
4103 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4104 int argc;
4105 char **argv;
4106 int
4107 main ()
4108 {
4109 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4110   ;
4111   return 0;
4112 }
4113 _ACEOF
4114 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4115         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4116 do
4117   CC="$ac_save_CC $ac_arg"
4118   if ac_fn_c_try_compile "$LINENO"; then :
4119   ac_cv_prog_cc_c89=$ac_arg
4120 fi
4121 rm -f core conftest.err conftest.$ac_objext
4122   test "x$ac_cv_prog_cc_c89" != "xno" && break
4123 done
4124 rm -f conftest.$ac_ext
4125 CC=$ac_save_CC
4126
4127 fi
4128 # AC_CACHE_VAL
4129 case "x$ac_cv_prog_cc_c89" in
4130   x)
4131     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4132 $as_echo "none needed" >&6; } ;;
4133   xno)
4134     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4135 $as_echo "unsupported" >&6; } ;;
4136   *)
4137     CC="$CC $ac_cv_prog_cc_c89"
4138     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4139 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4140 esac
4141 if test "x$ac_cv_prog_cc_c89" != xno; then :
4142
4143 fi
4144
4145 ac_ext=c
4146 ac_cpp='$CPP $CPPFLAGS'
4147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4150
4151 ac_ext=cpp
4152 ac_cpp='$CXXCPP $CPPFLAGS'
4153 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4154 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4155 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4156 if test -z "$CXX"; then
4157   if test -n "$CCC"; then
4158     CXX=$CCC
4159   else
4160     if test -n "$ac_tool_prefix"; then
4161   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4162   do
4163     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4164 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4166 $as_echo_n "checking for $ac_word... " >&6; }
4167 if test "${ac_cv_prog_CXX+set}" = set; then :
4168   $as_echo_n "(cached) " >&6
4169 else
4170   if test -n "$CXX"; then
4171   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4172 else
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 for as_dir in $PATH
4175 do
4176   IFS=$as_save_IFS
4177   test -z "$as_dir" && as_dir=.
4178     for ac_exec_ext in '' $ac_executable_extensions; do
4179   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4180     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4182     break 2
4183   fi
4184 done
4185   done
4186 IFS=$as_save_IFS
4187
4188 fi
4189 fi
4190 CXX=$ac_cv_prog_CXX
4191 if test -n "$CXX"; then
4192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4193 $as_echo "$CXX" >&6; }
4194 else
4195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4196 $as_echo "no" >&6; }
4197 fi
4198
4199
4200     test -n "$CXX" && break
4201   done
4202 fi
4203 if test -z "$CXX"; then
4204   ac_ct_CXX=$CXX
4205   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4206 do
4207   # Extract the first word of "$ac_prog", so it can be a program name with args.
4208 set dummy $ac_prog; ac_word=$2
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4210 $as_echo_n "checking for $ac_word... " >&6; }
4211 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4212   $as_echo_n "(cached) " >&6
4213 else
4214   if test -n "$ac_ct_CXX"; then
4215   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4216 else
4217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 for as_dir in $PATH
4219 do
4220   IFS=$as_save_IFS
4221   test -z "$as_dir" && as_dir=.
4222     for ac_exec_ext in '' $ac_executable_extensions; do
4223   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4224     ac_cv_prog_ac_ct_CXX="$ac_prog"
4225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4226     break 2
4227   fi
4228 done
4229   done
4230 IFS=$as_save_IFS
4231
4232 fi
4233 fi
4234 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4235 if test -n "$ac_ct_CXX"; then
4236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4237 $as_echo "$ac_ct_CXX" >&6; }
4238 else
4239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4240 $as_echo "no" >&6; }
4241 fi
4242
4243
4244   test -n "$ac_ct_CXX" && break
4245 done
4246
4247   if test "x$ac_ct_CXX" = x; then
4248     CXX="g++"
4249   else
4250     case $cross_compiling:$ac_tool_warned in
4251 yes:)
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4254 ac_tool_warned=yes ;;
4255 esac
4256     CXX=$ac_ct_CXX
4257   fi
4258 fi
4259
4260   fi
4261 fi
4262 # Provide some information about the compiler.
4263 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4264 set X $ac_compile
4265 ac_compiler=$2
4266 for ac_option in --version -v -V -qversion; do
4267   { { ac_try="$ac_compiler $ac_option >&5"
4268 case "(($ac_try" in
4269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270   *) ac_try_echo=$ac_try;;
4271 esac
4272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4273 $as_echo "$ac_try_echo"; } >&5
4274   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4275   ac_status=$?
4276   if test -s conftest.err; then
4277     sed '10a\
4278 ... rest of stderr output deleted ...
4279          10q' conftest.err >conftest.er1
4280     cat conftest.er1 >&5
4281     rm -f conftest.er1 conftest.err
4282   fi
4283   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4284   test $ac_status = 0; }
4285 done
4286
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4288 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4289 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4290   $as_echo_n "(cached) " >&6
4291 else
4292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h.  */
4294
4295 int
4296 main ()
4297 {
4298 #ifndef __GNUC__
4299        choke me
4300 #endif
4301
4302   ;
4303   return 0;
4304 }
4305 _ACEOF
4306 if ac_fn_cxx_try_compile "$LINENO"; then :
4307   ac_compiler_gnu=yes
4308 else
4309   ac_compiler_gnu=no
4310 fi
4311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4313
4314 fi
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4316 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4317 if test $ac_compiler_gnu = yes; then
4318   GXX=yes
4319 else
4320   GXX=
4321 fi
4322 ac_test_CXXFLAGS=${CXXFLAGS+set}
4323 ac_save_CXXFLAGS=$CXXFLAGS
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4325 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4326 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4327   $as_echo_n "(cached) " >&6
4328 else
4329   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4330    ac_cxx_werror_flag=yes
4331    ac_cv_prog_cxx_g=no
4332    CXXFLAGS="-g"
4333    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334 /* end confdefs.h.  */
4335
4336 int
4337 main ()
4338 {
4339
4340   ;
4341   return 0;
4342 }
4343 _ACEOF
4344 if ac_fn_cxx_try_compile "$LINENO"; then :
4345   ac_cv_prog_cxx_g=yes
4346 else
4347   CXXFLAGS=""
4348       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h.  */
4350
4351 int
4352 main ()
4353 {
4354
4355   ;
4356   return 0;
4357 }
4358 _ACEOF
4359 if ac_fn_cxx_try_compile "$LINENO"; then :
4360
4361 else
4362   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4363          CXXFLAGS="-g"
4364          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h.  */
4366
4367 int
4368 main ()
4369 {
4370
4371   ;
4372   return 0;
4373 }
4374 _ACEOF
4375 if ac_fn_cxx_try_compile "$LINENO"; then :
4376   ac_cv_prog_cxx_g=yes
4377 fi
4378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4379 fi
4380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381 fi
4382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4384 fi
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4386 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4387 if test "$ac_test_CXXFLAGS" = set; then
4388   CXXFLAGS=$ac_save_CXXFLAGS
4389 elif test $ac_cv_prog_cxx_g = yes; then
4390   if test "$GXX" = yes; then
4391     CXXFLAGS="-g -O2"
4392   else
4393     CXXFLAGS="-g"
4394   fi
4395 else
4396   if test "$GXX" = yes; then
4397     CXXFLAGS="-O2"
4398   else
4399     CXXFLAGS=
4400   fi
4401 fi
4402 ac_ext=c
4403 ac_cpp='$CPP $CPPFLAGS'
4404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4407
4408 CXXFLAGS="$save_CXXFLAGS"
4409
4410 am__api_version='1.11'
4411
4412 # Find a good install program.  We prefer a C program (faster),
4413 # so one script is as good as another.  But avoid the broken or
4414 # incompatible versions:
4415 # SysV /etc/install, /usr/sbin/install
4416 # SunOS /usr/etc/install
4417 # IRIX /sbin/install
4418 # AIX /bin/install
4419 # AmigaOS /C/install, which installs bootblocks on floppy discs
4420 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4421 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4422 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4423 # OS/2's system install, which has a completely different semantic
4424 # ./install, which can be erroneously created by make from ./install.sh.
4425 # Reject install programs that cannot install multiple files.
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4427 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4428 if test -z "$INSTALL"; then
4429 if test "${ac_cv_path_install+set}" = set; then :
4430   $as_echo_n "(cached) " >&6
4431 else
4432   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 for as_dir in $PATH
4434 do
4435   IFS=$as_save_IFS
4436   test -z "$as_dir" && as_dir=.
4437     # Account for people who put trailing slashes in PATH elements.
4438 case $as_dir/ in #((
4439   ./ | .// | /[cC]/* | \
4440   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4441   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4442   /usr/ucb/* ) ;;
4443   *)
4444     # OSF1 and SCO ODT 3.0 have their own names for install.
4445     # Don't use installbsd from OSF since it installs stuff as root
4446     # by default.
4447     for ac_prog in ginstall scoinst install; do
4448       for ac_exec_ext in '' $ac_executable_extensions; do
4449         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4450           if test $ac_prog = install &&
4451             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4452             # AIX install.  It has an incompatible calling convention.
4453             :
4454           elif test $ac_prog = install &&
4455             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4456             # program-specific install script used by HP pwplus--don't use.
4457             :
4458           else
4459             rm -rf conftest.one conftest.two conftest.dir
4460             echo one > conftest.one
4461             echo two > conftest.two
4462             mkdir conftest.dir
4463             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4464               test -s conftest.one && test -s conftest.two &&
4465               test -s conftest.dir/conftest.one &&
4466               test -s conftest.dir/conftest.two
4467             then
4468               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4469               break 3
4470             fi
4471           fi
4472         fi
4473       done
4474     done
4475     ;;
4476 esac
4477
4478   done
4479 IFS=$as_save_IFS
4480
4481 rm -rf conftest.one conftest.two conftest.dir
4482
4483 fi
4484   if test "${ac_cv_path_install+set}" = set; then
4485     INSTALL=$ac_cv_path_install
4486   else
4487     # As a last resort, use the slow shell script.  Don't cache a
4488     # value for INSTALL within a source directory, because that will
4489     # break other packages using the cache if that directory is
4490     # removed, or if the value is a relative name.
4491     INSTALL=$ac_install_sh
4492   fi
4493 fi
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4495 $as_echo "$INSTALL" >&6; }
4496
4497 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4498 # It thinks the first close brace ends the variable substitution.
4499 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4500
4501 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4502
4503 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4504
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4506 $as_echo_n "checking whether build environment is sane... " >&6; }
4507 # Just in case
4508 sleep 1
4509 echo timestamp > conftest.file
4510 # Reject unsafe characters in $srcdir or the absolute working directory
4511 # name.  Accept space and tab only in the latter.
4512 am_lf='
4513 '
4514 case `pwd` in
4515   *[\\\"\#\$\&\'\`$am_lf]*)
4516     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4517 esac
4518 case $srcdir in
4519   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
4520     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4521 esac
4522
4523 # Do `set' in a subshell so we don't clobber the current shell's
4524 # arguments.  Must try -L first in case configure is actually a
4525 # symlink; some systems play weird games with the mod time of symlinks
4526 # (eg FreeBSD returns the mod time of the symlink's containing
4527 # directory).
4528 if (
4529    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4530    if test "$*" = "X"; then
4531       # -L didn't work.
4532       set X `ls -t "$srcdir/configure" conftest.file`
4533    fi
4534    rm -f conftest.file
4535    if test "$*" != "X $srcdir/configure conftest.file" \
4536       && test "$*" != "X conftest.file $srcdir/configure"; then
4537
4538       # If neither matched, then we have a broken ls.  This can happen
4539       # if, for instance, CONFIG_SHELL is bash and it inherits a
4540       # broken ls alias from the environment.  This has actually
4541       # happened.  Such a system could not be considered "sane".
4542       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
4543 alias in your environment" "$LINENO" 5
4544    fi
4545
4546    test "$2" = conftest.file
4547    )
4548 then
4549    # Ok.
4550    :
4551 else
4552    as_fn_error "newly created file is older than distributed files!
4553 Check your system clock" "$LINENO" 5
4554 fi
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4556 $as_echo "yes" >&6; }
4557 test "$program_prefix" != NONE &&
4558   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4559 # Use a double $ so make ignores it.
4560 test "$program_suffix" != NONE &&
4561   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4562 # Double any \ or $.
4563 # By default was `s,x,x', remove it if useless.
4564 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4565 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4566
4567 # expand $ac_aux_dir to an absolute path
4568 am_aux_dir=`cd $ac_aux_dir && pwd`
4569
4570 if test x"${MISSING+set}" != xset; then
4571   case $am_aux_dir in
4572   *\ * | *\     *)
4573     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4574   *)
4575     MISSING="\${SHELL} $am_aux_dir/missing" ;;
4576   esac
4577 fi
4578 # Use eval to expand $SHELL
4579 if eval "$MISSING --run true"; then
4580   am_missing_run="$MISSING --run "
4581 else
4582   am_missing_run=
4583   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4584 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4585 fi
4586
4587 if test x"${install_sh}" != xset; then
4588   case $am_aux_dir in
4589   *\ * | *\     *)
4590     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4591   *)
4592     install_sh="\${SHELL} $am_aux_dir/install-sh"
4593   esac
4594 fi
4595
4596 # Installed binaries are usually stripped using `strip' when the user
4597 # run `make install-strip'.  However `strip' might not be the right
4598 # tool to use in cross-compilation environments, therefore Automake
4599 # will honor the `STRIP' environment variable to overrule this program.
4600 if test "$cross_compiling" != no; then
4601   if test -n "$ac_tool_prefix"; then
4602   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4603 set dummy ${ac_tool_prefix}strip; ac_word=$2
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4605 $as_echo_n "checking for $ac_word... " >&6; }
4606 if test "${ac_cv_prog_STRIP+set}" = set; then :
4607   $as_echo_n "(cached) " >&6
4608 else
4609   if test -n "$STRIP"; then
4610   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4611 else
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 for as_dir in $PATH
4614 do
4615   IFS=$as_save_IFS
4616   test -z "$as_dir" && as_dir=.
4617     for ac_exec_ext in '' $ac_executable_extensions; do
4618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4619     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4621     break 2
4622   fi
4623 done
4624   done
4625 IFS=$as_save_IFS
4626
4627 fi
4628 fi
4629 STRIP=$ac_cv_prog_STRIP
4630 if test -n "$STRIP"; then
4631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4632 $as_echo "$STRIP" >&6; }
4633 else
4634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4635 $as_echo "no" >&6; }
4636 fi
4637
4638
4639 fi
4640 if test -z "$ac_cv_prog_STRIP"; then
4641   ac_ct_STRIP=$STRIP
4642   # Extract the first word of "strip", so it can be a program name with args.
4643 set dummy strip; ac_word=$2
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645 $as_echo_n "checking for $ac_word... " >&6; }
4646 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4647   $as_echo_n "(cached) " >&6
4648 else
4649   if test -n "$ac_ct_STRIP"; then
4650   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4651 else
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH
4654 do
4655   IFS=$as_save_IFS
4656   test -z "$as_dir" && as_dir=.
4657     for ac_exec_ext in '' $ac_executable_extensions; do
4658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4659     ac_cv_prog_ac_ct_STRIP="strip"
4660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4661     break 2
4662   fi
4663 done
4664   done
4665 IFS=$as_save_IFS
4666
4667 fi
4668 fi
4669 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4670 if test -n "$ac_ct_STRIP"; then
4671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4672 $as_echo "$ac_ct_STRIP" >&6; }
4673 else
4674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675 $as_echo "no" >&6; }
4676 fi
4677
4678   if test "x$ac_ct_STRIP" = x; then
4679     STRIP=":"
4680   else
4681     case $cross_compiling:$ac_tool_warned in
4682 yes:)
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4685 ac_tool_warned=yes ;;
4686 esac
4687     STRIP=$ac_ct_STRIP
4688   fi
4689 else
4690   STRIP="$ac_cv_prog_STRIP"
4691 fi
4692
4693 fi
4694 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4695
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4697 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4698 if test -z "$MKDIR_P"; then
4699   if test "${ac_cv_path_mkdir+set}" = set; then :
4700   $as_echo_n "(cached) " >&6
4701 else
4702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4704 do
4705   IFS=$as_save_IFS
4706   test -z "$as_dir" && as_dir=.
4707     for ac_prog in mkdir gmkdir; do
4708          for ac_exec_ext in '' $ac_executable_extensions; do
4709            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4710            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4711              'mkdir (GNU coreutils) '* | \
4712              'mkdir (coreutils) '* | \
4713              'mkdir (fileutils) '4.1*)
4714                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4715                break 3;;
4716            esac
4717          done
4718        done
4719   done
4720 IFS=$as_save_IFS
4721
4722 fi
4723
4724   if test "${ac_cv_path_mkdir+set}" = set; then
4725     MKDIR_P="$ac_cv_path_mkdir -p"
4726   else
4727     # As a last resort, use the slow shell script.  Don't cache a
4728     # value for MKDIR_P within a source directory, because that will
4729     # break other packages using the cache if that directory is
4730     # removed, or if the value is a relative name.
4731     test -d ./--version && rmdir ./--version
4732     MKDIR_P="$ac_install_sh -d"
4733   fi
4734 fi
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4736 $as_echo "$MKDIR_P" >&6; }
4737
4738 mkdir_p="$MKDIR_P"
4739 case $mkdir_p in
4740   [\\/$]* | ?:[\\/]*) ;;
4741   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4742 esac
4743
4744 for ac_prog in gawk mawk nawk awk
4745 do
4746   # Extract the first word of "$ac_prog", so it can be a program name with args.
4747 set dummy $ac_prog; ac_word=$2
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4749 $as_echo_n "checking for $ac_word... " >&6; }
4750 if test "${ac_cv_prog_AWK+set}" = set; then :
4751   $as_echo_n "(cached) " >&6
4752 else
4753   if test -n "$AWK"; then
4754   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4755 else
4756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757 for as_dir in $PATH
4758 do
4759   IFS=$as_save_IFS
4760   test -z "$as_dir" && as_dir=.
4761     for ac_exec_ext in '' $ac_executable_extensions; do
4762   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4763     ac_cv_prog_AWK="$ac_prog"
4764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4765     break 2
4766   fi
4767 done
4768   done
4769 IFS=$as_save_IFS
4770
4771 fi
4772 fi
4773 AWK=$ac_cv_prog_AWK
4774 if test -n "$AWK"; then
4775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4776 $as_echo "$AWK" >&6; }
4777 else
4778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4779 $as_echo "no" >&6; }
4780 fi
4781
4782
4783   test -n "$AWK" && break
4784 done
4785
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4787 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4788 set x ${MAKE-make}
4789 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4790 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4791   $as_echo_n "(cached) " >&6
4792 else
4793   cat >conftest.make <<\_ACEOF
4794 SHELL = /bin/sh
4795 all:
4796         @echo '@@@%%%=$(MAKE)=@@@%%%'
4797 _ACEOF
4798 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4799 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4800   *@@@%%%=?*=@@@%%%*)
4801     eval ac_cv_prog_make_${ac_make}_set=yes;;
4802   *)
4803     eval ac_cv_prog_make_${ac_make}_set=no;;
4804 esac
4805 rm -f conftest.make
4806 fi
4807 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4809 $as_echo "yes" >&6; }
4810   SET_MAKE=
4811 else
4812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813 $as_echo "no" >&6; }
4814   SET_MAKE="MAKE=${MAKE-make}"
4815 fi
4816
4817 rm -rf .tst 2>/dev/null
4818 mkdir .tst 2>/dev/null
4819 if test -d .tst; then
4820   am__leading_dot=.
4821 else
4822   am__leading_dot=_
4823 fi
4824 rmdir .tst 2>/dev/null
4825
4826 DEPDIR="${am__leading_dot}deps"
4827
4828 ac_config_commands="$ac_config_commands depfiles"
4829
4830
4831 am_make=${MAKE-make}
4832 cat > confinc << 'END'
4833 am__doit:
4834         @echo this is the am__doit target
4835 .PHONY: am__doit
4836 END
4837 # If we don't find an include directive, just comment out the code.
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4839 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4840 am__include="#"
4841 am__quote=
4842 _am_result=none
4843 # First try GNU make style include.
4844 echo "include confinc" > confmf
4845 # Ignore all kinds of additional output from `make'.
4846 case `$am_make -s -f confmf 2> /dev/null` in #(
4847 *the\ am__doit\ target*)
4848   am__include=include
4849   am__quote=
4850   _am_result=GNU
4851   ;;
4852 esac
4853 # Now try BSD make style include.
4854 if test "$am__include" = "#"; then
4855    echo '.include "confinc"' > confmf
4856    case `$am_make -s -f confmf 2> /dev/null` in #(
4857    *the\ am__doit\ target*)
4858      am__include=.include
4859      am__quote="\""
4860      _am_result=BSD
4861      ;;
4862    esac
4863 fi
4864
4865
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4867 $as_echo "$_am_result" >&6; }
4868 rm -f confinc confmf
4869
4870 # Check whether --enable-dependency-tracking was given.
4871 if test "${enable_dependency_tracking+set}" = set; then :
4872   enableval=$enable_dependency_tracking;
4873 fi
4874
4875 if test "x$enable_dependency_tracking" != xno; then
4876   am_depcomp="$ac_aux_dir/depcomp"
4877   AMDEPBACKSLASH='\'
4878 fi
4879  if test "x$enable_dependency_tracking" != xno; then
4880   AMDEP_TRUE=
4881   AMDEP_FALSE='#'
4882 else
4883   AMDEP_TRUE='#'
4884   AMDEP_FALSE=
4885 fi
4886
4887
4888 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4889   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4890   # is not polluted with repeated "-I."
4891   am__isrc=' -I$(srcdir)'
4892   # test to see if srcdir already configured
4893   if test -f $srcdir/config.status; then
4894     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4895   fi
4896 fi
4897
4898 # test whether we have cygpath
4899 if test -z "$CYGPATH_W"; then
4900   if (cygpath --version) >/dev/null 2>/dev/null; then
4901     CYGPATH_W='cygpath -w'
4902   else
4903     CYGPATH_W=echo
4904   fi
4905 fi
4906
4907
4908 # Define the identity of the package.
4909  PACKAGE='libjava'
4910  VERSION='version-unused'
4911
4912
4913 cat >>confdefs.h <<_ACEOF
4914 #define PACKAGE "$PACKAGE"
4915 _ACEOF
4916
4917
4918 cat >>confdefs.h <<_ACEOF
4919 #define VERSION "$VERSION"
4920 _ACEOF
4921
4922 # Some tools Automake needs.
4923
4924 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4925
4926
4927 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4928
4929
4930 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4931
4932
4933 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4934
4935
4936 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4937
4938 # We need awk for the "check" target.  The system "awk" is bad on
4939 # some platforms.
4940 # Always define AMTAR for backward compatibility.
4941
4942 AMTAR=${AMTAR-"${am_missing_run}tar"}
4943
4944 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4945
4946
4947
4948
4949 depcc="$CC"   am_compiler_list=
4950
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4952 $as_echo_n "checking dependency style of $depcc... " >&6; }
4953 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4954   $as_echo_n "(cached) " >&6
4955 else
4956   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4957   # We make a subdir and do the tests there.  Otherwise we can end up
4958   # making bogus files that we don't know about and never remove.  For
4959   # instance it was reported that on HP-UX the gcc test will end up
4960   # making a dummy file named `D' -- because `-MD' means `put the output
4961   # in D'.
4962   mkdir conftest.dir
4963   # Copy depcomp to subdir because otherwise we won't find it if we're
4964   # using a relative directory.
4965   cp "$am_depcomp" conftest.dir
4966   cd conftest.dir
4967   # We will build objects and dependencies in a subdirectory because
4968   # it helps to detect inapplicable dependency modes.  For instance
4969   # both Tru64's cc and ICC support -MD to output dependencies as a
4970   # side effect of compilation, but ICC will put the dependencies in
4971   # the current directory while Tru64 will put them in the object
4972   # directory.
4973   mkdir sub
4974
4975   am_cv_CC_dependencies_compiler_type=none
4976   if test "$am_compiler_list" = ""; then
4977      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4978   fi
4979   am__universal=false
4980   case " $depcc " in #(
4981      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4982      esac
4983
4984   for depmode in $am_compiler_list; do
4985     # Setup a source with many dependencies, because some compilers
4986     # like to wrap large dependency lists on column 80 (with \), and
4987     # we should not choose a depcomp mode which is confused by this.
4988     #
4989     # We need to recreate these files for each test, as the compiler may
4990     # overwrite some of them when testing with obscure command lines.
4991     # This happens at least with the AIX C compiler.
4992     : > sub/conftest.c
4993     for i in 1 2 3 4 5 6; do
4994       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4995       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4996       # Solaris 8's {/usr,}/bin/sh.
4997       touch sub/conftst$i.h
4998     done
4999     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5000
5001     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5002     # mode.  It turns out that the SunPro C++ compiler does not properly
5003     # handle `-M -o', and we need to detect this.  Also, some Intel
5004     # versions had trouble with output in subdirs
5005     am__obj=sub/conftest.${OBJEXT-o}
5006     am__minus_obj="-o $am__obj"
5007     case $depmode in
5008     gcc)
5009       # This depmode causes a compiler race in universal mode.
5010       test "$am__universal" = false || continue
5011       ;;
5012     nosideeffect)
5013       # after this tag, mechanisms are not by side-effect, so they'll
5014       # only be used when explicitly requested
5015       if test "x$enable_dependency_tracking" = xyes; then
5016         continue
5017       else
5018         break
5019       fi
5020       ;;
5021     msvisualcpp | msvcmsys)
5022       # This compiler won't grok `-c -o', but also, the minuso test has
5023       # not run yet.  These depmodes are late enough in the game, and
5024       # so weak that their functioning should not be impacted.
5025       am__obj=conftest.${OBJEXT-o}
5026       am__minus_obj=
5027       ;;
5028     none) break ;;
5029     esac
5030     if depmode=$depmode \
5031        source=sub/conftest.c object=$am__obj \
5032        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5033        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5034          >/dev/null 2>conftest.err &&
5035        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5036        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5037        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5038        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5039       # icc doesn't choke on unknown options, it will just issue warnings
5040       # or remarks (even with -Werror).  So we grep stderr for any message
5041       # that says an option was ignored or not supported.
5042       # When given -MP, icc 7.0 and 7.1 complain thusly:
5043       #   icc: Command line warning: ignoring option '-M'; no argument required
5044       # The diagnosis changed in icc 8.0:
5045       #   icc: Command line remark: option '-MP' not supported
5046       if (grep 'ignoring option' conftest.err ||
5047           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5048         am_cv_CC_dependencies_compiler_type=$depmode
5049         break
5050       fi
5051     fi
5052   done
5053
5054   cd ..
5055   rm -rf conftest.dir
5056 else
5057   am_cv_CC_dependencies_compiler_type=none
5058 fi
5059
5060 fi
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5062 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5063 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5064
5065  if
5066   test "x$enable_dependency_tracking" != xno \
5067   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5068   am__fastdepCC_TRUE=
5069   am__fastdepCC_FALSE='#'
5070 else
5071   am__fastdepCC_TRUE='#'
5072   am__fastdepCC_FALSE=
5073 fi
5074
5075
5076 depcc="$CXX"  am_compiler_list=
5077
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5079 $as_echo_n "checking dependency style of $depcc... " >&6; }
5080 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5081   $as_echo_n "(cached) " >&6
5082 else
5083   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5084   # We make a subdir and do the tests there.  Otherwise we can end up
5085   # making bogus files that we don't know about and never remove.  For
5086   # instance it was reported that on HP-UX the gcc test will end up
5087   # making a dummy file named `D' -- because `-MD' means `put the output
5088   # in D'.
5089   mkdir conftest.dir
5090   # Copy depcomp to subdir because otherwise we won't find it if we're
5091   # using a relative directory.
5092   cp "$am_depcomp" conftest.dir
5093   cd conftest.dir
5094   # We will build objects and dependencies in a subdirectory because
5095   # it helps to detect inapplicable dependency modes.  For instance
5096   # both Tru64's cc and ICC support -MD to output dependencies as a
5097   # side effect of compilation, but ICC will put the dependencies in
5098   # the current directory while Tru64 will put them in the object
5099   # directory.
5100   mkdir sub
5101
5102   am_cv_CXX_dependencies_compiler_type=none
5103   if test "$am_compiler_list" = ""; then
5104      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5105   fi
5106   am__universal=false
5107   case " $depcc " in #(
5108      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5109      esac
5110
5111   for depmode in $am_compiler_list; do
5112     # Setup a source with many dependencies, because some compilers
5113     # like to wrap large dependency lists on column 80 (with \), and
5114     # we should not choose a depcomp mode which is confused by this.
5115     #
5116     # We need to recreate these files for each test, as the compiler may
5117     # overwrite some of them when testing with obscure command lines.
5118     # This happens at least with the AIX C compiler.
5119     : > sub/conftest.c
5120     for i in 1 2 3 4 5 6; do
5121       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5122       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5123       # Solaris 8's {/usr,}/bin/sh.
5124       touch sub/conftst$i.h
5125     done
5126     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5127
5128     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5129     # mode.  It turns out that the SunPro C++ compiler does not properly
5130     # handle `-M -o', and we need to detect this.  Also, some Intel
5131     # versions had trouble with output in subdirs
5132     am__obj=sub/conftest.${OBJEXT-o}
5133     am__minus_obj="-o $am__obj"
5134     case $depmode in
5135     gcc)
5136       # This depmode causes a compiler race in universal mode.
5137       test "$am__universal" = false || continue
5138       ;;
5139     nosideeffect)
5140       # after this tag, mechanisms are not by side-effect, so they'll
5141       # only be used when explicitly requested
5142       if test "x$enable_dependency_tracking" = xyes; then
5143         continue
5144       else
5145         break
5146       fi
5147       ;;
5148     msvisualcpp | msvcmsys)
5149       # This compiler won't grok `-c -o', but also, the minuso test has
5150       # not run yet.  These depmodes are late enough in the game, and
5151       # so weak that their functioning should not be impacted.
5152       am__obj=conftest.${OBJEXT-o}
5153       am__minus_obj=
5154       ;;
5155     none) break ;;
5156     esac
5157     if depmode=$depmode \
5158        source=sub/conftest.c object=$am__obj \
5159        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5160        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5161          >/dev/null 2>conftest.err &&
5162        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5163        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5164        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5165        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5166       # icc doesn't choke on unknown options, it will just issue warnings
5167       # or remarks (even with -Werror).  So we grep stderr for any message
5168       # that says an option was ignored or not supported.
5169       # When given -MP, icc 7.0 and 7.1 complain thusly:
5170       #   icc: Command line warning: ignoring option '-M'; no argument required
5171       # The diagnosis changed in icc 8.0:
5172       #   icc: Command line remark: option '-MP' not supported
5173       if (grep 'ignoring option' conftest.err ||
5174           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5175         am_cv_CXX_dependencies_compiler_type=$depmode
5176         break
5177       fi
5178     fi
5179   done
5180
5181   cd ..
5182   rm -rf conftest.dir
5183 else
5184   am_cv_CXX_dependencies_compiler_type=none
5185 fi
5186
5187 fi
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5189 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5190 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5191
5192  if
5193   test "x$enable_dependency_tracking" != xno \
5194   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5195   am__fastdepCXX_TRUE=
5196   am__fastdepCXX_FALSE='#'
5197 else
5198   am__fastdepCXX_TRUE='#'
5199   am__fastdepCXX_FALSE=
5200 fi
5201
5202
5203
5204
5205 if test -n "$ac_tool_prefix"; then
5206   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5207 set dummy ${ac_tool_prefix}as; ac_word=$2
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5209 $as_echo_n "checking for $ac_word... " >&6; }
5210 if test "${ac_cv_prog_AS+set}" = set; then :
5211   $as_echo_n "(cached) " >&6
5212 else
5213   if test -n "$AS"; then
5214   ac_cv_prog_AS="$AS" # Let the user override the test.
5215 else
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in $PATH
5218 do
5219   IFS=$as_save_IFS
5220   test -z "$as_dir" && as_dir=.
5221     for ac_exec_ext in '' $ac_executable_extensions; do
5222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223     ac_cv_prog_AS="${ac_tool_prefix}as"
5224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5225     break 2
5226   fi
5227 done
5228   done
5229 IFS=$as_save_IFS
5230
5231 fi
5232 fi
5233 AS=$ac_cv_prog_AS
5234 if test -n "$AS"; then
5235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5236 $as_echo "$AS" >&6; }
5237 else
5238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5239 $as_echo "no" >&6; }
5240 fi
5241
5242
5243 fi
5244 if test -z "$ac_cv_prog_AS"; then
5245   ac_ct_AS=$AS
5246   # Extract the first word of "as", so it can be a program name with args.
5247 set dummy as; ac_word=$2
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5249 $as_echo_n "checking for $ac_word... " >&6; }
5250 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5251   $as_echo_n "(cached) " >&6
5252 else
5253   if test -n "$ac_ct_AS"; then
5254   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5255 else
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257 for as_dir in $PATH
5258 do
5259   IFS=$as_save_IFS
5260   test -z "$as_dir" && as_dir=.
5261     for ac_exec_ext in '' $ac_executable_extensions; do
5262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5263     ac_cv_prog_ac_ct_AS="as"
5264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5265     break 2
5266   fi
5267 done
5268   done
5269 IFS=$as_save_IFS
5270
5271 fi
5272 fi
5273 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5274 if test -n "$ac_ct_AS"; then
5275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5276 $as_echo "$ac_ct_AS" >&6; }
5277 else
5278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5279 $as_echo "no" >&6; }
5280 fi
5281
5282   if test "x$ac_ct_AS" = x; then
5283     AS=""
5284   else
5285     case $cross_compiling:$ac_tool_warned in
5286 yes:)
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5289 ac_tool_warned=yes ;;
5290 esac
5291     AS=$ac_ct_AS
5292   fi
5293 else
5294   AS="$ac_cv_prog_AS"
5295 fi
5296
5297 if test -n "$ac_tool_prefix"; then
5298   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5299 set dummy ${ac_tool_prefix}ld; ac_word=$2
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5301 $as_echo_n "checking for $ac_word... " >&6; }
5302 if test "${ac_cv_prog_LD+set}" = set; then :
5303   $as_echo_n "(cached) " >&6
5304 else
5305   if test -n "$LD"; then
5306   ac_cv_prog_LD="$LD" # Let the user override the test.
5307 else
5308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5309 for as_dir in $PATH
5310 do
5311   IFS=$as_save_IFS
5312   test -z "$as_dir" && as_dir=.
5313     for ac_exec_ext in '' $ac_executable_extensions; do
5314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5315     ac_cv_prog_LD="${ac_tool_prefix}ld"
5316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5317     break 2
5318   fi
5319 done
5320   done
5321 IFS=$as_save_IFS
5322
5323 fi
5324 fi
5325 LD=$ac_cv_prog_LD
5326 if test -n "$LD"; then
5327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5328 $as_echo "$LD" >&6; }
5329 else
5330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5331 $as_echo "no" >&6; }
5332 fi
5333
5334
5335 fi
5336 if test -z "$ac_cv_prog_LD"; then
5337   ac_ct_LD=$LD
5338   # Extract the first word of "ld", so it can be a program name with args.
5339 set dummy ld; ac_word=$2
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5341 $as_echo_n "checking for $ac_word... " >&6; }
5342 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
5343   $as_echo_n "(cached) " >&6
5344 else
5345   if test -n "$ac_ct_LD"; then
5346   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5347 else
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 for as_dir in $PATH
5350 do
5351   IFS=$as_save_IFS
5352   test -z "$as_dir" && as_dir=.
5353     for ac_exec_ext in '' $ac_executable_extensions; do
5354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5355     ac_cv_prog_ac_ct_LD="ld"
5356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5357     break 2
5358   fi
5359 done
5360   done
5361 IFS=$as_save_IFS
5362
5363 fi
5364 fi
5365 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5366 if test -n "$ac_ct_LD"; then
5367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
5368 $as_echo "$ac_ct_LD" >&6; }
5369 else
5370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371 $as_echo "no" >&6; }
5372 fi
5373
5374   if test "x$ac_ct_LD" = x; then
5375     LD=""
5376   else
5377     case $cross_compiling:$ac_tool_warned in
5378 yes:)
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5381 ac_tool_warned=yes ;;
5382 esac
5383     LD=$ac_ct_LD
5384   fi
5385 else
5386   LD="$ac_cv_prog_LD"
5387 fi
5388
5389 if test -n "$ac_tool_prefix"; then
5390   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5391 set dummy ${ac_tool_prefix}ar; ac_word=$2
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5393 $as_echo_n "checking for $ac_word... " >&6; }
5394 if test "${ac_cv_prog_AR+set}" = set; then :
5395   $as_echo_n "(cached) " >&6
5396 else
5397   if test -n "$AR"; then
5398   ac_cv_prog_AR="$AR" # Let the user override the test.
5399 else
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 for as_dir in $PATH
5402 do
5403   IFS=$as_save_IFS
5404   test -z "$as_dir" && as_dir=.
5405     for ac_exec_ext in '' $ac_executable_extensions; do
5406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5407     ac_cv_prog_AR="${ac_tool_prefix}ar"
5408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5409     break 2
5410   fi
5411 done
5412   done
5413 IFS=$as_save_IFS
5414
5415 fi
5416 fi
5417 AR=$ac_cv_prog_AR
5418 if test -n "$AR"; then
5419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5420 $as_echo "$AR" >&6; }
5421 else
5422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423 $as_echo "no" >&6; }
5424 fi
5425
5426
5427 fi
5428 if test -z "$ac_cv_prog_AR"; then
5429   ac_ct_AR=$AR
5430   # Extract the first word of "ar", so it can be a program name with args.
5431 set dummy ar; ac_word=$2
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5433 $as_echo_n "checking for $ac_word... " >&6; }
5434 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5435   $as_echo_n "(cached) " >&6
5436 else
5437   if test -n "$ac_ct_AR"; then
5438   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5439 else
5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441 for as_dir in $PATH
5442 do
5443   IFS=$as_save_IFS
5444   test -z "$as_dir" && as_dir=.
5445     for ac_exec_ext in '' $ac_executable_extensions; do
5446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5447     ac_cv_prog_ac_ct_AR="ar"
5448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5449     break 2
5450   fi
5451 done
5452   done
5453 IFS=$as_save_IFS
5454
5455 fi
5456 fi
5457 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5458 if test -n "$ac_ct_AR"; then
5459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5460 $as_echo "$ac_ct_AR" >&6; }
5461 else
5462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5463 $as_echo "no" >&6; }
5464 fi
5465
5466   if test "x$ac_ct_AR" = x; then
5467     AR=""
5468   else
5469     case $cross_compiling:$ac_tool_warned in
5470 yes:)
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5473 ac_tool_warned=yes ;;
5474 esac
5475     AR=$ac_ct_AR
5476   fi
5477 else
5478   AR="$ac_cv_prog_AR"
5479 fi
5480
5481 if test -n "$ac_tool_prefix"; then
5482   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5483 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5485 $as_echo_n "checking for $ac_word... " >&6; }
5486 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5487   $as_echo_n "(cached) " >&6
5488 else
5489   if test -n "$RANLIB"; then
5490   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5491 else
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 for as_dir in $PATH
5494 do
5495   IFS=$as_save_IFS
5496   test -z "$as_dir" && as_dir=.
5497     for ac_exec_ext in '' $ac_executable_extensions; do
5498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5499     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5501     break 2
5502   fi
5503 done
5504   done
5505 IFS=$as_save_IFS
5506
5507 fi
5508 fi
5509 RANLIB=$ac_cv_prog_RANLIB
5510 if test -n "$RANLIB"; then
5511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5512 $as_echo "$RANLIB" >&6; }
5513 else
5514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5515 $as_echo "no" >&6; }
5516 fi
5517
5518
5519 fi
5520 if test -z "$ac_cv_prog_RANLIB"; then
5521   ac_ct_RANLIB=$RANLIB
5522   # Extract the first word of "ranlib", so it can be a program name with args.
5523 set dummy ranlib; ac_word=$2
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5525 $as_echo_n "checking for $ac_word... " >&6; }
5526 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5527   $as_echo_n "(cached) " >&6
5528 else
5529   if test -n "$ac_ct_RANLIB"; then
5530   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5531 else
5532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533 for as_dir in $PATH
5534 do
5535   IFS=$as_save_IFS
5536   test -z "$as_dir" && as_dir=.
5537     for ac_exec_ext in '' $ac_executable_extensions; do
5538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5539     ac_cv_prog_ac_ct_RANLIB="ranlib"
5540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5541     break 2
5542   fi
5543 done
5544   done
5545 IFS=$as_save_IFS
5546
5547 fi
5548 fi
5549 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5550 if test -n "$ac_ct_RANLIB"; then
5551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5552 $as_echo "$ac_ct_RANLIB" >&6; }
5553 else
5554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5555 $as_echo "no" >&6; }
5556 fi
5557
5558   if test "x$ac_ct_RANLIB" = x; then
5559     RANLIB=":"
5560   else
5561     case $cross_compiling:$ac_tool_warned in
5562 yes:)
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5565 ac_tool_warned=yes ;;
5566 esac
5567     RANLIB=$ac_ct_RANLIB
5568   fi
5569 else
5570   RANLIB="$ac_cv_prog_RANLIB"
5571 fi
5572
5573 if test -n "$ac_tool_prefix"; then
5574   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5575 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577 $as_echo_n "checking for $ac_word... " >&6; }
5578 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5579   $as_echo_n "(cached) " >&6
5580 else
5581   if test -n "$DLLTOOL"; then
5582   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5583 else
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 for as_dir in $PATH
5586 do
5587   IFS=$as_save_IFS
5588   test -z "$as_dir" && as_dir=.
5589     for ac_exec_ext in '' $ac_executable_extensions; do
5590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5591     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5593     break 2
5594   fi
5595 done
5596   done
5597 IFS=$as_save_IFS
5598
5599 fi
5600 fi
5601 DLLTOOL=$ac_cv_prog_DLLTOOL
5602 if test -n "$DLLTOOL"; then
5603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5604 $as_echo "$DLLTOOL" >&6; }
5605 else
5606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 $as_echo "no" >&6; }
5608 fi
5609
5610
5611 fi
5612 if test -z "$ac_cv_prog_DLLTOOL"; then
5613   ac_ct_DLLTOOL=$DLLTOOL
5614   # Extract the first word of "dlltool", so it can be a program name with args.
5615 set dummy dlltool; ac_word=$2
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5617 $as_echo_n "checking for $ac_word... " >&6; }
5618 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5619   $as_echo_n "(cached) " >&6
5620 else
5621   if test -n "$ac_ct_DLLTOOL"; then
5622   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5623 else
5624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 for as_dir in $PATH
5626 do
5627   IFS=$as_save_IFS
5628   test -z "$as_dir" && as_dir=.
5629     for ac_exec_ext in '' $ac_executable_extensions; do
5630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5631     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5633     break 2
5634   fi
5635 done
5636   done
5637 IFS=$as_save_IFS
5638
5639 fi
5640 fi
5641 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5642 if test -n "$ac_ct_DLLTOOL"; then
5643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5644 $as_echo "$ac_ct_DLLTOOL" >&6; }
5645 else
5646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647 $as_echo "no" >&6; }
5648 fi
5649
5650   if test "x$ac_ct_DLLTOOL" = x; then
5651     DLLTOOL=":"
5652   else
5653     case $cross_compiling:$ac_tool_warned in
5654 yes:)
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5657 ac_tool_warned=yes ;;
5658 esac
5659     DLLTOOL=$ac_ct_DLLTOOL
5660   fi
5661 else
5662   DLLTOOL="$ac_cv_prog_DLLTOOL"
5663 fi
5664
5665 for ac_prog in gawk mawk nawk awk
5666 do
5667   # Extract the first word of "$ac_prog", so it can be a program name with args.
5668 set dummy $ac_prog; ac_word=$2
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5670 $as_echo_n "checking for $ac_word... " >&6; }
5671 if test "${ac_cv_prog_AWK+set}" = set; then :
5672   $as_echo_n "(cached) " >&6
5673 else
5674   if test -n "$AWK"; then
5675   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5676 else
5677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5678 for as_dir in $PATH
5679 do
5680   IFS=$as_save_IFS
5681   test -z "$as_dir" && as_dir=.
5682     for ac_exec_ext in '' $ac_executable_extensions; do
5683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5684     ac_cv_prog_AWK="$ac_prog"
5685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5686     break 2
5687   fi
5688 done
5689   done
5690 IFS=$as_save_IFS
5691
5692 fi
5693 fi
5694 AWK=$ac_cv_prog_AWK
5695 if test -n "$AWK"; then
5696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5697 $as_echo "$AWK" >&6; }
5698 else
5699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700 $as_echo "no" >&6; }
5701 fi
5702
5703
5704   test -n "$AWK" && break
5705 done
5706
5707 for ac_prog in jar fastjar gjar
5708 do
5709   # Extract the first word of "$ac_prog", so it can be a program name with args.
5710 set dummy $ac_prog; ac_word=$2
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5712 $as_echo_n "checking for $ac_word... " >&6; }
5713 if test "${ac_cv_prog_JAR+set}" = set; then :
5714   $as_echo_n "(cached) " >&6
5715 else
5716   if test -n "$JAR"; then
5717   ac_cv_prog_JAR="$JAR" # Let the user override the test.
5718 else
5719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 for as_dir in $PATH
5721 do
5722   IFS=$as_save_IFS
5723   test -z "$as_dir" && as_dir=.
5724     for ac_exec_ext in '' $ac_executable_extensions; do
5725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5726     ac_cv_prog_JAR="$ac_prog"
5727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5728     break 2
5729   fi
5730 done
5731   done
5732 IFS=$as_save_IFS
5733
5734 fi
5735 fi
5736 JAR=$ac_cv_prog_JAR
5737 if test -n "$JAR"; then
5738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
5739 $as_echo "$JAR" >&6; }
5740 else
5741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5742 $as_echo "no" >&6; }
5743 fi
5744
5745
5746   test -n "$JAR" && break
5747 done
5748 test -n "$JAR" || JAR="no"
5749
5750 # Extract the first word of "zip", so it can be a program name with args.
5751 set dummy zip; ac_word=$2
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5753 $as_echo_n "checking for $ac_word... " >&6; }
5754 if test "${ac_cv_path_ZIP+set}" = set; then :
5755   $as_echo_n "(cached) " >&6
5756 else
5757   case $ZIP in
5758   [\\/]* | ?:[\\/]*)
5759   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5760   ;;
5761   *)
5762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 for as_dir in $PATH
5764 do
5765   IFS=$as_save_IFS
5766   test -z "$as_dir" && as_dir=.
5767     for ac_exec_ext in '' $ac_executable_extensions; do
5768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5769     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5771     break 2
5772   fi
5773 done
5774   done
5775 IFS=$as_save_IFS
5776
5777   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
5778   ;;
5779 esac
5780 fi
5781 ZIP=$ac_cv_path_ZIP
5782 if test -n "$ZIP"; then
5783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
5784 $as_echo "$ZIP" >&6; }
5785 else
5786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787 $as_echo "no" >&6; }
5788 fi
5789
5790
5791 # Extract the first word of "unzip", so it can be a program name with args.
5792 set dummy unzip; ac_word=$2
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5794 $as_echo_n "checking for $ac_word... " >&6; }
5795 if test "${ac_cv_path_UNZIP+set}" = set; then :
5796   $as_echo_n "(cached) " >&6
5797 else
5798   case $UNZIP in
5799   [\\/]* | ?:[\\/]*)
5800   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
5801   ;;
5802   *)
5803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5805 do
5806   IFS=$as_save_IFS
5807   test -z "$as_dir" && as_dir=.
5808     for ac_exec_ext in '' $ac_executable_extensions; do
5809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5810     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
5811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812     break 2
5813   fi
5814 done
5815   done
5816 IFS=$as_save_IFS
5817
5818   test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
5819   ;;
5820 esac
5821 fi
5822 UNZIP=$ac_cv_path_UNZIP
5823 if test -n "$UNZIP"; then
5824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
5825 $as_echo "$UNZIP" >&6; }
5826 else
5827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828 $as_echo "no" >&6; }
5829 fi
5830
5831
5832
5833 # We need a jar that supports -@.  This is a GNU extension.
5834 if test "$JAR" != no; then
5835    rm -f config-test.jar
5836    echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
5837    if test -f config-test.jar; then
5838      rm -f config-test.jar
5839    else
5840      JAR=no
5841    fi
5842 fi
5843
5844 # Prefer the jar we found, but fall back to our jar script.
5845 if test "$JAR" = no; then
5846   if test "$ZIP" = no; then
5847     as_fn_error "cannot find neither zip nor jar, cannot continue" "$LINENO" 5
5848   else
5849     # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
5850     JAR=`pwd`/scripts/jar
5851   fi
5852 fi
5853
5854
5855
5856
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5858 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5859     # Check whether --enable-maintainer-mode was given.
5860 if test "${enable_maintainer_mode+set}" = set; then :
5861   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5862 else
5863   USE_MAINTAINER_MODE=no
5864 fi
5865
5866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5867 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5868    if test $USE_MAINTAINER_MODE = yes; then
5869   MAINTAINER_MODE_TRUE=
5870   MAINTAINER_MODE_FALSE='#'
5871 else
5872   MAINTAINER_MODE_TRUE='#'
5873   MAINTAINER_MODE_FALSE=
5874 fi
5875
5876   MAINT=$MAINTAINER_MODE_TRUE
5877
5878
5879
5880
5881
5882 # configure.host sets the following important variables
5883 #       libgcj_cflags    - host specific C compiler flags
5884 #       libgcj_cxxflags  - host specific C++ compiler flags
5885 #       libgcj_javaflags - host specific Java compiler flags
5886 #       libgcj_sublib_ltflags - host specific Libtool flags
5887 #       libgcj_sublib_core_extra_deps - host specific extra
5888 #                          dependencies for core sublib
5889 #       (these last two only used when building sublibs)
5890 # and a number of others; see the list at the start of the file.
5891
5892 libgcj_cflags=
5893 libgcj_cxxflags=
5894 libgcj_javaflags=
5895 libgcj_sublib_ltflags=
5896 libgcj_sublib_core_extra_deps=
5897
5898 . ${srcdir}/configure.host
5899
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5901 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5902 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5903   $as_echo_n "(cached) " >&6
5904 else
5905   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5906 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5907   acl_cv_prog_gnu_ld=yes
5908 else
5909   acl_cv_prog_gnu_ld=no
5910 fi
5911 fi
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5913 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5914 with_gnu_ld=$acl_cv_prog_gnu_ld
5915
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
5917 $as_echo_n "checking if the GNU linker ($LD) supports -Bsymbolic-functions... " >&6; }
5918 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then :
5919   $as_echo_n "(cached) " >&6
5920 else
5921
5922 acl_cv_prog_gnu_ld_symbolic=no
5923
5924 if test x"$with_gnu_ld" = x"yes"; then
5925   if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
5926     acl_cv_prog_gnu_ld_symbolic=yes
5927   fi
5928 fi
5929 fi
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld_symbolic" >&5
5931 $as_echo "$acl_cv_prog_gnu_ld_symbolic" >&6; }
5932 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
5933   SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
5934 else
5935   SYMBOLIC_LDFLAGS=''
5936 fi
5937
5938 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
5939 if test -z "$libgcj_ld_symbolic"; then
5940   libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
5941 fi
5942
5943 LIBGCJ_CFLAGS="${libgcj_cflags}"
5944 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
5945 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
5946 LIBGCJ_SUBLIB_LTFLAGS="${libgcj_sublib_ltflags}"
5947 LIBGCJ_SUBLIB_CORE_EXTRA_DEPS="${libgcj_sublib_core_extra_deps}"
5948 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
5949 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
5950
5951
5952
5953
5954
5955
5956
5957
5958 # Only use libltdl for non-newlib builds.
5959 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5960    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
5961 $as_echo_n "checking dynamic linker characteristics... " >&6; }
5962 library_names_spec=
5963 libname_spec='lib$name'
5964 soname_spec=
5965 shrext=".so"
5966 postinstall_cmds=
5967 postuninstall_cmds=
5968 finish_cmds=
5969 finish_eval=
5970 shlibpath_var=
5971 shlibpath_overrides_runpath=unknown
5972 version_type=none
5973 dynamic_linker="$host_os ld.so"
5974 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5975 if test "$GCC" = yes; then
5976   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
5977   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
5978     # if the path contains ";" then we assume it to be the separator
5979     # otherwise default to the standard path separator (i.e. ":") - it is
5980     # assumed that no part of a normal pathname contains ";" but that should
5981     # okay in the real world where ";" in dirpaths is itself problematic.
5982     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
5983   else
5984     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
5985   fi
5986 else
5987   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5988 fi
5989 need_lib_prefix=unknown
5990 hardcode_into_libs=no
5991
5992 # when you set need_version to no, make sure it does not cause -set_version
5993 # flags to be left without arguments
5994 need_version=unknown
5995
5996 case $host_os in
5997 aix3*)
5998   version_type=linux
5999   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6000   shlibpath_var=LIBPATH
6001
6002   # AIX 3 has no versioning support, so we append a major version to the name.
6003   soname_spec='${libname}${release}${shared_ext}$major'
6004   ;;
6005
6006 aix[4-9]*)
6007   version_type=linux
6008   need_lib_prefix=no
6009   need_version=no
6010   hardcode_into_libs=yes
6011   if test "$host_cpu" = ia64; then
6012     # AIX 5 supports IA64
6013     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6014     shlibpath_var=LD_LIBRARY_PATH
6015   else
6016     # With GCC up to 2.95.x, collect2 would create an import file
6017     # for dependence libraries.  The import file would start with
6018     # the line `#! .'.  This would cause the generated library to
6019     # depend on `.', always an invalid library.  This was fixed in
6020     # development snapshots of GCC prior to 3.0.
6021     case $host_os in
6022       aix4 | aix4.[01] | aix4.[01].*)
6023       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6024            echo ' yes '
6025            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6026         :
6027       else
6028         can_build_shared=no
6029       fi
6030       ;;
6031     esac
6032     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6033     # soname into executable. Probably we can add versioning support to
6034     # collect2, so additional links can be useful in future.
6035     if test "$aix_use_runtimelinking" = yes; then
6036       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6037       # instead of lib<name>.a to let people know that these are not
6038       # typical AIX shared libraries.
6039       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6040     else
6041       # We preserve .a as extension for shared libraries through AIX4.2
6042       # and later when we are not doing run time linking.
6043       library_names_spec='${libname}${release}.a $libname.a'
6044       soname_spec='${libname}${release}${shared_ext}$major'
6045     fi
6046     shlibpath_var=LIBPATH
6047   fi
6048   ;;
6049
6050 amigaos*)
6051   library_names_spec='$libname.ixlibrary $libname.a'
6052   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6053   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'
6054   ;;
6055
6056 beos*)
6057   library_names_spec='${libname}${shared_ext}'
6058   dynamic_linker="$host_os ld.so"
6059   shlibpath_var=LIBRARY_PATH
6060   ;;
6061
6062 bsdi4*)
6063   version_type=linux
6064   need_version=no
6065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6066   soname_spec='${libname}${release}${shared_ext}$major'
6067   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6068   shlibpath_var=LD_LIBRARY_PATH
6069   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6070   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6071   # the default ld.so.conf also contains /usr/contrib/lib and
6072   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6073   # libtool to hard-code these into programs
6074   ;;
6075
6076 cygwin* | mingw* | pw32*)
6077   version_type=windows
6078   shrext=".dll"
6079   need_version=no
6080   need_lib_prefix=no
6081
6082   case $GCC,$host_os in
6083   yes,cygwin* | yes,mingw* | yes,pw32*)
6084     library_names_spec='$libname.dll.a'
6085     # DLL is installed to $(libdir)/../bin by postinstall_cmds
6086     postinstall_cmds='base_file=`basename \${file}`~
6087       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6088       dldir=$destdir/`dirname \$dlpath`~
6089       test -d \$dldir || mkdir -p \$dldir~
6090       $install_prog $dir/$dlname \$dldir/$dlname'
6091     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6092       dlpath=$dir/\$dldll~
6093        $rm \$dlpath'
6094     shlibpath_overrides_runpath=yes
6095
6096     case $host_os in
6097     cygwin*)
6098       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6099       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6100       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
6101       ;;
6102     mingw*)
6103       # MinGW DLLs use traditional 'lib' prefix
6104       soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6105       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
6106       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6107         # It is most probably a Windows format PATH printed by
6108         # mingw gcc, but we are running on Cygwin. Gcc prints its search
6109         # path with ; separators, and with drive letters. We can handle the
6110         # drive letters (cygwin fileutils understands them), so leave them,
6111         # especially as we might pass files found there to a mingw objdump,
6112         # which wouldn't understand a cygwinified path. Ahh.
6113         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6114       else
6115         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6116       fi
6117       ;;
6118     pw32*)
6119       # pw32 DLLs use 'pw' prefix rather than 'lib'
6120       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
6121       ;;
6122     esac
6123     ;;
6124
6125   *)
6126     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6127     ;;
6128   esac
6129   dynamic_linker='Win32 ld.exe'
6130   # FIXME: first we should search . and the directory the executable is in
6131   shlibpath_var=PATH
6132   ;;
6133
6134 darwin* | rhapsody*)
6135   dynamic_linker="$host_os dyld"
6136   version_type=darwin
6137   need_lib_prefix=no
6138   need_version=no
6139   # FIXME: Relying on posixy $() will cause problems for
6140   #        cross-compilation, but unfortunately the echo tests do not
6141   #        yet detect zsh echo's removal of \ escapes.
6142   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6143   soname_spec='${libname}${release}${major}$shared_ext'
6144   shlibpath_overrides_runpath=yes
6145   shlibpath_var=DYLD_LIBRARY_PATH
6146   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
6147   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6148   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6149   sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
6150   fi
6151   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6152   ;;
6153
6154 dgux*)
6155   version_type=linux
6156   need_lib_prefix=no
6157   need_version=no
6158   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6159   soname_spec='${libname}${release}${shared_ext}$major'
6160   shlibpath_var=LD_LIBRARY_PATH
6161   ;;
6162
6163 freebsd1*)
6164   dynamic_linker=no
6165   ;;
6166
6167 freebsd*)
6168   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6169   version_type=freebsd-$objformat
6170   case $version_type in
6171     freebsd-elf*)
6172       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6173       need_version=no
6174       need_lib_prefix=no
6175       ;;
6176     freebsd-*)
6177       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6178       need_version=yes
6179       ;;
6180   esac
6181   shlibpath_var=LD_LIBRARY_PATH
6182   case $host_os in
6183   freebsd2*)
6184     shlibpath_overrides_runpath=yes
6185     ;;
6186   freebsd3.01* | freebsdelf3.01*)
6187     shlibpath_overrides_runpath=yes
6188     hardcode_into_libs=yes
6189     ;;
6190   *) # from 3.2 on
6191     shlibpath_overrides_runpath=no
6192     hardcode_into_libs=yes
6193     ;;
6194   esac
6195   ;;
6196
6197 gnu*)
6198   version_type=linux
6199   need_lib_prefix=no
6200   need_version=no
6201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6202   soname_spec='${libname}${release}${shared_ext}$major'
6203   shlibpath_var=LD_LIBRARY_PATH
6204   hardcode_into_libs=yes
6205   ;;
6206
6207 hpux9* | hpux10* | hpux11*)
6208   # Give a soname corresponding to the major version so that dld.sl refuses to
6209   # link against other versions.
6210   version_type=sunos
6211   need_lib_prefix=no
6212   need_version=no
6213   case "$host_cpu" in
6214   ia64*)
6215     shrext='.so'
6216     hardcode_into_libs=yes
6217     dynamic_linker="$host_os dld.so"
6218     shlibpath_var=LD_LIBRARY_PATH
6219     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6220     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6221     soname_spec='${libname}${release}${shared_ext}$major'
6222     if test "X$HPUX_IA64_MODE" = X32; then
6223       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6224     else
6225       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6226     fi
6227     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6228     ;;
6229    hppa*64*)
6230      shrext='.sl'
6231      hardcode_into_libs=yes
6232      dynamic_linker="$host_os dld.sl"
6233      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6234      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6235      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6236      soname_spec='${libname}${release}${shared_ext}$major'
6237      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6238      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6239      ;;
6240    *)
6241     shrext='.sl'
6242     dynamic_linker="$host_os dld.sl"
6243     shlibpath_var=SHLIB_PATH
6244     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6245     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6246     soname_spec='${libname}${release}${shared_ext}$major'
6247     ;;
6248   esac
6249   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6250   postinstall_cmds='chmod 555 $lib'
6251   ;;
6252
6253 irix5* | irix6* | nonstopux*)
6254   case $host_os in
6255     nonstopux*) version_type=nonstopux ;;
6256     *)
6257         if test "$lt_cv_prog_gnu_ld" = yes; then
6258                 version_type=linux
6259         else
6260                 version_type=irix
6261         fi ;;
6262   esac
6263   need_lib_prefix=no
6264   need_version=no
6265   soname_spec='${libname}${release}${shared_ext}$major'
6266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6267   case $host_os in
6268   irix5* | nonstopux*)
6269     libsuff= shlibsuff=
6270     ;;
6271   *)
6272     case $LD in # libtool.m4 will add one of these switches to LD
6273     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6274       libsuff= shlibsuff= libmagic=32-bit;;
6275     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6276       libsuff=32 shlibsuff=N32 libmagic=N32;;
6277     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6278       libsuff=64 shlibsuff=64 libmagic=64-bit;;
6279     *) libsuff= shlibsuff= libmagic=never-match;;
6280     esac
6281     ;;
6282   esac
6283   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6284   shlibpath_overrides_runpath=no
6285   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6286   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6287   hardcode_into_libs=yes
6288   ;;
6289
6290 # No shared lib support for Linux oldld, aout, or coff.
6291 linux*oldld* | linux*aout* | linux*coff*)
6292   dynamic_linker=no
6293   ;;
6294
6295 # This must be Linux ELF.
6296 linux*|k*bsd*-gnu)
6297   version_type=linux
6298   need_lib_prefix=no
6299   need_version=no
6300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6301   soname_spec='${libname}${release}${shared_ext}$major'
6302   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6303   shlibpath_var=LD_LIBRARY_PATH
6304   shlibpath_overrides_runpath=no
6305   # This implies no fast_install, which is unacceptable.
6306   # Some rework will be needed to allow for fast_install
6307   # before this can be enabled.
6308   hardcode_into_libs=yes
6309
6310   # We used to test for /lib/ld.so.1 and disable shared libraries on
6311   # powerpc, because MkLinux only supported shared libraries with the
6312   # GNU dynamic linker.  Since this was broken with cross compilers,
6313   # most powerpc-linux boxes support dynamic linking these days and
6314   # people can always --disable-shared, the test was removed, and we
6315   # assume the GNU/Linux dynamic linker is in use.
6316   dynamic_linker='GNU/Linux ld.so'
6317   ;;
6318
6319 netbsd*)
6320   version_type=sunos
6321   need_lib_prefix=no
6322   need_version=no
6323   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6324     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6325     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6326     dynamic_linker='NetBSD (a.out) ld.so'
6327   else
6328     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
6329     soname_spec='${libname}${release}${shared_ext}$major'
6330     dynamic_linker='NetBSD ld.elf_so'
6331   fi
6332   shlibpath_var=LD_LIBRARY_PATH
6333   shlibpath_overrides_runpath=yes
6334   hardcode_into_libs=yes
6335   ;;
6336
6337 newsos6)
6338   version_type=linux
6339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6340   shlibpath_var=LD_LIBRARY_PATH
6341   shlibpath_overrides_runpath=yes
6342   ;;
6343
6344 nto-qnx)
6345   version_type=linux
6346   need_lib_prefix=no
6347   need_version=no
6348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6349   soname_spec='${libname}${release}${shared_ext}$major'
6350   shlibpath_var=LD_LIBRARY_PATH
6351   shlibpath_overrides_runpath=yes
6352   ;;
6353
6354 openbsd*)
6355   version_type=sunos
6356   need_lib_prefix=no
6357   need_version=no
6358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6359   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6360   shlibpath_var=LD_LIBRARY_PATH
6361   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6362     case $host_os in
6363       openbsd2.[89] | openbsd2.[89].*)
6364         shlibpath_overrides_runpath=no
6365         ;;
6366       *)
6367         shlibpath_overrides_runpath=yes
6368         ;;
6369       esac
6370   else
6371     shlibpath_overrides_runpath=yes
6372   fi
6373   ;;
6374
6375 os2*)
6376   libname_spec='$name'
6377   shrext=".dll"
6378   need_lib_prefix=no
6379   library_names_spec='$libname${shared_ext} $libname.a'
6380   dynamic_linker='OS/2 ld.exe'
6381   shlibpath_var=LIBPATH
6382   ;;
6383
6384 osf3* | osf4* | osf5*)
6385   version_type=osf
6386   need_lib_prefix=no
6387   need_version=no
6388   soname_spec='${libname}${release}${shared_ext}$major'
6389   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6390   shlibpath_var=LD_LIBRARY_PATH
6391   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6392   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6393   ;;
6394
6395 sco3.2v5*)
6396   version_type=osf
6397   soname_spec='${libname}${release}${shared_ext}$major'
6398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6399   shlibpath_var=LD_LIBRARY_PATH
6400   ;;
6401
6402 solaris*)
6403   version_type=linux
6404   need_lib_prefix=no
6405   need_version=no
6406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6407   soname_spec='${libname}${release}${shared_ext}$major'
6408   shlibpath_var=LD_LIBRARY_PATH
6409   shlibpath_overrides_runpath=yes
6410   hardcode_into_libs=yes
6411   # ldd complains unless libraries are executable
6412   postinstall_cmds='chmod +x $lib'
6413   ;;
6414
6415 sunos4*)
6416   version_type=sunos
6417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6418   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6419   shlibpath_var=LD_LIBRARY_PATH
6420   shlibpath_overrides_runpath=yes
6421   if test "$with_gnu_ld" = yes; then
6422     need_lib_prefix=no
6423   fi
6424   need_version=yes
6425   ;;
6426
6427 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6428   version_type=linux
6429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6430   soname_spec='${libname}${release}${shared_ext}$major'
6431   shlibpath_var=LD_LIBRARY_PATH
6432   case $host_vendor in
6433     sni)
6434       shlibpath_overrides_runpath=no
6435       need_lib_prefix=no
6436       export_dynamic_flag_spec='${wl}-Blargedynsym'
6437       runpath_var=LD_RUN_PATH
6438       ;;
6439     siemens)
6440       need_lib_prefix=no
6441       ;;
6442     motorola)
6443       need_lib_prefix=no
6444       need_version=no
6445       shlibpath_overrides_runpath=no
6446       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6447       ;;
6448   esac
6449   ;;
6450
6451 sysv4*MP*)
6452   if test -d /usr/nec ;then
6453     version_type=linux
6454     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6455     soname_spec='$libname${shared_ext}.$major'
6456     shlibpath_var=LD_LIBRARY_PATH
6457   fi
6458   ;;
6459
6460 uts4*)
6461   version_type=linux
6462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6463   soname_spec='${libname}${release}${shared_ext}$major'
6464   shlibpath_var=LD_LIBRARY_PATH
6465   ;;
6466
6467 *)
6468   dynamic_linker=no
6469   ;;
6470 esac
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
6472 $as_echo "$dynamic_linker" >&6; }
6473 test "$dynamic_linker" = no && can_build_shared=no
6474
6475
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
6477 $as_echo_n "checking which variable specifies run-time library path... " >&6; }
6478 if test "${libltdl_cv_shlibpath_var+set}" = set; then :
6479   $as_echo_n "(cached) " >&6
6480 else
6481   libltdl_cv_shlibpath_var="$shlibpath_var"
6482 fi
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
6484 $as_echo "$libltdl_cv_shlibpath_var" >&6; }
6485 if test -n "$libltdl_cv_shlibpath_var"; then
6486
6487 cat >>confdefs.h <<_ACEOF
6488 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
6489 _ACEOF
6490
6491 fi
6492
6493 fi
6494
6495 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
6496
6497
6498 # Possibly build libgcj as many sub-libraries.
6499 # Check whether --enable-libgcj-sublibs was given.
6500 if test "${enable_libgcj_sublibs+set}" = set; then :
6501   enableval=$enable_libgcj_sublibs;
6502 fi
6503
6504
6505 if test -z "$enable_libgcj_sublibs"; then
6506    enable_libgcj_sublibs=$enable_libgcj_sublibs_default
6507 fi
6508  if test "$enable_libgcj_sublibs" = yes; then
6509   BUILD_SUBLIBS_TRUE=
6510   BUILD_SUBLIBS_FALSE='#'
6511 else
6512   BUILD_SUBLIBS_TRUE='#'
6513   BUILD_SUBLIBS_FALSE=
6514 fi
6515
6516 if test "$enable_libgcj_sublibs" = yes ; then
6517   # In theory we could make do with only one override and simply
6518   # tag "_bc" onto the end of it when we use it to generate the
6519   # spec, but that's an ugly thing to do when there are multiple
6520   # words in the string and you're relying on the ordering to
6521   # append the correct one.
6522   libgcj_spec_lgcj_override="-lgcj-noncore -lgcj"
6523   libgcj_spec_lgcj_bc_override="-lgcj-noncore -lgcj_bc"
6524 fi
6525
6526
6527 # See if the user has requested runtime debugging.
6528 LIBGCJDEBUG="disable"
6529
6530 # Check whether --enable-libgcj-debug was given.
6531 if test "${enable_libgcj_debug+set}" = set; then :
6532   enableval=$enable_libgcj_debug; if test "$enable_libgcj_debug" = yes; then
6533
6534 $as_echo "#define __GCJ_DEBUG 1" >>confdefs.h
6535
6536     LIBGCJDEBUG="enable"
6537   fi
6538 fi
6539
6540
6541
6542 # Check whether --with-escher was given.
6543 if test "${with_escher+set}" = set; then :
6544   withval=$with_escher;
6545 fi
6546
6547 case "$with_escher" in
6548 "")
6549         use_escher=false
6550         ;;
6551 "no")
6552         use_escher=false
6553         ;;
6554 "yes")
6555         as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
6556         ;;
6557 *)
6558         use_escher=true
6559         ;;
6560 esac
6561
6562 # Determine which AWT peer libraries to build
6563 # Check whether --enable-java-awt was given.
6564 if test "${enable_java_awt+set}" = set; then :
6565   enableval=$enable_java_awt;
6566 fi
6567
6568
6569 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6570 use_xlib_awt=""
6571 use_gtk_awt=""
6572 use_qt_awt=""
6573 use_x_awt=""
6574 # The default toolkit to use is the first one specified.
6575 TOOLKIT=
6576
6577
6578 for peer in $peerlibs ; do
6579   case $peer in
6580     xlib)
6581       if test "$no_x" = yes; then
6582         echo "*** xlib peers requested but no X library available" 1>&2
6583         exit 1
6584       else
6585         use_xlib_awt="yes"
6586         if test -z "$TOOLKIT"; then
6587            TOOLKIT=gnu.awt.xlib.XToolkit
6588         fi
6589       fi
6590       ;;
6591     gtk)
6592       if test "$no_x" = yes; then
6593          echo "*** gtk peers requested but no X library available" 1>&2
6594          exit 1
6595       else
6596          use_gtk_awt=yes
6597          if test -z "$TOOLKIT"; then
6598             TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
6599          fi
6600       fi
6601       ;;
6602     qt)
6603       if test "$no_x" = yes; then
6604          # Perhaps we should admit the possibility of embedded Qt.
6605          echo "*** Qt peers requested but no X library available" 1>&2
6606          exit 1
6607       else
6608          use_qt_awt=yes
6609          if test -z "$TOOLKIT"; then
6610             TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
6611          fi
6612       fi
6613       ;;
6614     x)
6615       use_x_awt=yes
6616       if test -z "$TOOLKIT"; then
6617          TOOLKIT=gnu.java.awt.peer.x.XToolkit
6618       fi
6619       ;;
6620     no)
6621       use_xlib_awt=
6622       use_gtk_awt=
6623       use_qt_awt=
6624       use_x_awt=
6625       break
6626       ;;
6627     *)
6628       echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6629       exit 1
6630   esac
6631 done
6632
6633  if test "$use_xlib_awt" = yes; then
6634   XLIB_AWT_TRUE=
6635   XLIB_AWT_FALSE='#'
6636 else
6637   XLIB_AWT_TRUE='#'
6638   XLIB_AWT_FALSE=
6639 fi
6640
6641  if test "$use_x_awt" = yes; then
6642   X_AWT_TRUE=
6643   X_AWT_FALSE='#'
6644 else
6645   X_AWT_TRUE='#'
6646   X_AWT_FALSE=
6647 fi
6648
6649
6650
6651 cat >>confdefs.h <<_ACEOF
6652 #define AWT_TOOLKIT "$TOOLKIT"
6653 _ACEOF
6654
6655
6656 expanded_prefix=$prefix
6657 if test "X$prefix" = XNONE; then
6658   expanded_prefix=${ac_default_prefix}
6659 fi
6660
6661
6662 cat >>confdefs.h <<_ACEOF
6663 #define LIBGCJ_PREFIX "$expanded_prefix"
6664 _ACEOF
6665
6666
6667 # Create standard.omit based on decisions we just made.
6668 cp $srcdir/standard.omit.in standard.omit
6669 if test "$use_xlib_awt" != yes; then
6670    echo gnu/awt/xlib >> standard.omit
6671    echo gnu/gcj/xlib >> standard.omit
6672 fi
6673 if test "$use_x_awt" != yes; then
6674    echo gnu/java/awt/peer/x >> standard.omit
6675 fi
6676
6677 # Tools that need to be compiled against classpath's tools classes
6678 : > vm-tools-packages
6679 for package in gnu/gcj/tools/gc_analyze ; do
6680     echo $package >> standard.omit
6681     echo $package >> vm-tools-packages
6682 done
6683
6684 if test -z "${with_multisubdir}"; then
6685    builddotdot=.
6686 else
6687    builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
6688 fi
6689
6690 NATIVE=yes
6691
6692 # Which gcj and host gcj (for ecjx) do we use?
6693 which_gcj=default
6694 host_exeext=${ac_exeext}
6695 GCJ_FOR_ECJX=
6696 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
6697 if test -n "${with_cross_host}"; then
6698   # We are being configured with a cross compiler. We can't
6699   # use ac_exeext, because that is for the target platform.
6700   NATIVE=no
6701   cross_host_exeext=
6702   GCJ_FOR_ECJX="${with_cross_host}-gcj"
6703   case "${with_cross_host}" in
6704      *mingw* | *cygwin*)
6705          cross_host_exeext=.exe
6706      ;;
6707   esac
6708   host_exeext=${cross_host_exeext}
6709   if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
6710      if test x"$build_noncanonical" = x"$with_cross_host"; then
6711         # Ordinary cross (host!=target and host=build)
6712         which_gcj=built
6713      else
6714         # Canadian cross (host!=target and host!=build)
6715         which_gcj=cross
6716      fi
6717   else
6718      which_gcj=cross
6719   fi
6720 else
6721   # We are being configured with a native or crossed-native compiler
6722   if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
6723      if test x"$build" = x"$host"; then
6724         # True native build (host=target and host=build)
6725         which_gcj=built
6726      else
6727         # Crossed-native build (host=target and host!=build)
6728         which_gcj=cross
6729      fi
6730   else
6731      which_gcj=path
6732   fi
6733 fi
6734 libgcjdir=`${PWDCMD-pwd}`
6735 case $GCJ in
6736 *" -B"*)
6737   # Just in case there is a comma in the build dir, quote it for the
6738   # sed command below.
6739   case $libgcjdir in
6740   *[,\\]*) qlibgcjdir=`echo "$libgcjdir" | sed 's:[,\\]:\\&:g'`;;
6741   *) qlibgcjdir=$libgcjdir;;
6742   esac
6743   GCJ=`echo "$GCJ" | sed "s, -B, -B$qlibgcjdir/&,"`
6744   ;;
6745 *)
6746   GCJ=$GCJ" -B$libgcjdir/"
6747   ;;
6748 esac
6749 case "${which_gcj}" in
6750    built)
6751       GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
6752    ;;
6753    cross)
6754       if test "x${with_newlib}" = "xyes"; then
6755          # FIXME (comment): Why is this needed?
6756          GCC_UNWIND_INCLUDE=
6757       fi
6758       GCJH='$(target_noncanonical)-gcjh'
6759    ;;
6760    path)
6761       GCJH=gcjh
6762    ;;
6763 esac
6764 JAVAC="$GCJ -C"
6765 export JAVAC
6766
6767
6768
6769
6770
6771 # Create it, so that compile/link tests don't fail
6772 test -f libgcj.spec || touch libgcj.spec
6773
6774
6775
6776 # Set up to configure Classpath.
6777 # FIXME: no supported way to pass args in autoconf.
6778 # Disable tool wrappers to avoid ltdl.h configure check.
6779 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
6780 ac_configure_args="$ac_configure_args --disable-load-library"
6781 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
6782 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
6783 dir1=`cd $srcdir && pwd`
6784 dir2=`pwd`
6785 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
6786 ac_configure_args="$ac_configure_args --disable-core-jni"
6787 ac_configure_args="$ac_configure_args --disable-examples"
6788 ac_configure_args="$ac_configure_args --with-glibj=build"
6789 if test "$browser_plugin_enabled" != yes; then
6790   ac_configure_args="$ac_configure_args --disable-plugin"
6791 else
6792   ac_configure_args="$ac_configure_args --enable-plugin"
6793 fi
6794 if test "$gconf_enabled" != yes; then
6795   ac_configure_args="$ac_configure_args --disable-gconf-peer"
6796   ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
6797 fi
6798 if test "$use_gtk_awt" != yes; then
6799   ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
6800 fi
6801 if test "$use_qt_awt" != yes; then
6802   ac_configure_args="$ac_configure_args --disable-qt-peer"
6803 else
6804   # We need this as qt is disabled by default in classpath.
6805   ac_configure_args="$ac_configure_args --enable-qt-peer"
6806 fi
6807 if test "$use_x_awt" != yes; then
6808   ac_configure_args="$ac_configure_args --without-escher"
6809 else
6810   # We need this as escher is disabled by default in classpath.
6811   if test "$use_escher" != true; then
6812     as_fn_error "Please supply an absolute path to the Escher library" "$LINENO" 5
6813   else
6814     ac_configure_args="$ac_configure_args --with-escher=$with_escher"
6815   fi
6816 fi
6817 if test "x$BUILD_GJDOC" = xno; then
6818   ac_configure_args="$ac_configure_args --disable-gjdoc"
6819 fi
6820 # -Werror causes unavoidable problems in code using alsa.
6821 ac_configure_args="$ac_configure_args --disable-regen-headers"
6822 ac_configure_args="$ac_configure_args --disable-Werror"
6823
6824 # Only use libltdl for non-newlib builds.
6825 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
6826      case $enable_ltdl_convenience in
6827   no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
6828   "") enable_ltdl_convenience=yes
6829       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
6830   esac
6831   LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
6832   LTDLINCL='-I${top_srcdir}/''libltdl'
6833   # For backwards non-gettext consistent compatibility...
6834   INCLTDL="$LTDLINCL"
6835
6836    enable_dlopen=yes
6837
6838
6839
6840    DIRLTDL=libltdl
6841
6842 $as_echo "#define USE_LTDL 1" >>confdefs.h
6843
6844    # Sigh.  Libtool's macro doesn't do the right thing.
6845    INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
6846    # FIXME: this is a hack.
6847    sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
6848    ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
6849 fi
6850
6851
6852
6853 case `pwd` in
6854   *\ * | *\     *)
6855     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6856 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6857 esac
6858
6859
6860
6861 macro_version='2.2.7a'
6862 macro_revision='1.3134'
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876 ltmain="$ac_aux_dir/ltmain.sh"
6877
6878 # Backslashify metacharacters that are still active within
6879 # double-quoted strings.
6880 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6881
6882 # Same as above, but do not quote variable references.
6883 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6884
6885 # Sed substitution to delay expansion of an escaped shell variable in a
6886 # double_quote_subst'ed string.
6887 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6888
6889 # Sed substitution to delay expansion of an escaped single quote.
6890 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6891
6892 # Sed substitution to avoid accidental globbing in evaled expressions
6893 no_glob_subst='s/\*/\\\*/g'
6894
6895 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6896 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6897 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6898
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6900 $as_echo_n "checking how to print strings... " >&6; }
6901 # Test print first, because it will be a builtin if present.
6902 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6903    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6904   ECHO='print -r --'
6905 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6906   ECHO='printf %s\n'
6907 else
6908   # Use this function as a fallback that always works.
6909   func_fallback_echo ()
6910   {
6911     eval 'cat <<_LTECHO_EOF
6912 $1
6913 _LTECHO_EOF'
6914   }
6915   ECHO='func_fallback_echo'
6916 fi
6917
6918 # func_echo_all arg...
6919 # Invoke $ECHO with all args, space-separated.
6920 func_echo_all ()
6921 {
6922     $ECHO ""
6923 }
6924
6925 case "$ECHO" in
6926   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6927 $as_echo "printf" >&6; } ;;
6928   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6929 $as_echo "print -r" >&6; } ;;
6930   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6931 $as_echo "cat" >&6; } ;;
6932 esac
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6948 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6949 if test "${ac_cv_path_SED+set}" = set; then :
6950   $as_echo_n "(cached) " >&6
6951 else
6952             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6953      for ac_i in 1 2 3 4 5 6 7; do
6954        ac_script="$ac_script$as_nl$ac_script"
6955      done
6956      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6957      { ac_script=; unset ac_script;}
6958      if test -z "$SED"; then
6959   ac_path_SED_found=false
6960   # Loop through the user's path and test for each of PROGNAME-LIST
6961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 for as_dir in $PATH
6963 do
6964   IFS=$as_save_IFS
6965   test -z "$as_dir" && as_dir=.
6966     for ac_prog in sed gsed; do
6967     for ac_exec_ext in '' $ac_executable_extensions; do
6968       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6969       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6970 # Check for GNU ac_path_SED and select it if it is found.
6971   # Check for GNU $ac_path_SED
6972 case `"$ac_path_SED" --version 2>&1` in
6973 *GNU*)
6974   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6975 *)
6976   ac_count=0
6977   $as_echo_n 0123456789 >"conftest.in"
6978   while :
6979   do
6980     cat "conftest.in" "conftest.in" >"conftest.tmp"
6981     mv "conftest.tmp" "conftest.in"
6982     cp "conftest.in" "conftest.nl"
6983     $as_echo '' >> "conftest.nl"
6984     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6985     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6986     as_fn_arith $ac_count + 1 && ac_count=$as_val
6987     if test $ac_count -gt ${ac_path_SED_max-0}; then
6988       # Best one so far, save it but keep looking for a better one
6989       ac_cv_path_SED="$ac_path_SED"
6990       ac_path_SED_max=$ac_count
6991     fi
6992     # 10*(2^10) chars as input seems more than enough
6993     test $ac_count -gt 10 && break
6994   done
6995   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6996 esac
6997
6998       $ac_path_SED_found && break 3
6999     done
7000   done
7001   done
7002 IFS=$as_save_IFS
7003   if test -z "$ac_cv_path_SED"; then
7004     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7005   fi
7006 else
7007   ac_cv_path_SED=$SED
7008 fi
7009
7010 fi
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7012 $as_echo "$ac_cv_path_SED" >&6; }
7013  SED="$ac_cv_path_SED"
7014   rm -f conftest.sed
7015
7016 test -z "$SED" && SED=sed
7017 Xsed="$SED -e 1s/^X//"
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7030 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7031 if test "${ac_cv_path_GREP+set}" = set; then :
7032   $as_echo_n "(cached) " >&6
7033 else
7034   if test -z "$GREP"; then
7035   ac_path_GREP_found=false
7036   # Loop through the user's path and test for each of PROGNAME-LIST
7037   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7039 do
7040   IFS=$as_save_IFS
7041   test -z "$as_dir" && as_dir=.
7042     for ac_prog in grep ggrep; do
7043     for ac_exec_ext in '' $ac_executable_extensions; do
7044       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7045       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7046 # Check for GNU ac_path_GREP and select it if it is found.
7047   # Check for GNU $ac_path_GREP
7048 case `"$ac_path_GREP" --version 2>&1` in
7049 *GNU*)
7050   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7051 *)
7052   ac_count=0
7053   $as_echo_n 0123456789 >"conftest.in"
7054   while :
7055   do
7056     cat "conftest.in" "conftest.in" >"conftest.tmp"
7057     mv "conftest.tmp" "conftest.in"
7058     cp "conftest.in" "conftest.nl"
7059     $as_echo 'GREP' >> "conftest.nl"
7060     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7061     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7062     as_fn_arith $ac_count + 1 && ac_count=$as_val
7063     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7064       # Best one so far, save it but keep looking for a better one
7065       ac_cv_path_GREP="$ac_path_GREP"
7066       ac_path_GREP_max=$ac_count
7067     fi
7068     # 10*(2^10) chars as input seems more than enough
7069     test $ac_count -gt 10 && break
7070   done
7071   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7072 esac
7073
7074       $ac_path_GREP_found && break 3
7075     done
7076   done
7077   done
7078 IFS=$as_save_IFS
7079   if test -z "$ac_cv_path_GREP"; then
7080     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7081   fi
7082 else
7083   ac_cv_path_GREP=$GREP
7084 fi
7085
7086 fi
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7088 $as_echo "$ac_cv_path_GREP" >&6; }
7089  GREP="$ac_cv_path_GREP"
7090
7091
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7093 $as_echo_n "checking for egrep... " >&6; }
7094 if test "${ac_cv_path_EGREP+set}" = set; then :
7095   $as_echo_n "(cached) " >&6
7096 else
7097   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7098    then ac_cv_path_EGREP="$GREP -E"
7099    else
7100      if test -z "$EGREP"; then
7101   ac_path_EGREP_found=false
7102   # Loop through the user's path and test for each of PROGNAME-LIST
7103   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7105 do
7106   IFS=$as_save_IFS
7107   test -z "$as_dir" && as_dir=.
7108     for ac_prog in egrep; do
7109     for ac_exec_ext in '' $ac_executable_extensions; do
7110       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7111       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7112 # Check for GNU ac_path_EGREP and select it if it is found.
7113   # Check for GNU $ac_path_EGREP
7114 case `"$ac_path_EGREP" --version 2>&1` in
7115 *GNU*)
7116   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7117 *)
7118   ac_count=0
7119   $as_echo_n 0123456789 >"conftest.in"
7120   while :
7121   do
7122     cat "conftest.in" "conftest.in" >"conftest.tmp"
7123     mv "conftest.tmp" "conftest.in"
7124     cp "conftest.in" "conftest.nl"
7125     $as_echo 'EGREP' >> "conftest.nl"
7126     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7127     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7128     as_fn_arith $ac_count + 1 && ac_count=$as_val
7129     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7130       # Best one so far, save it but keep looking for a better one
7131       ac_cv_path_EGREP="$ac_path_EGREP"
7132       ac_path_EGREP_max=$ac_count
7133     fi
7134     # 10*(2^10) chars as input seems more than enough
7135     test $ac_count -gt 10 && break
7136   done
7137   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7138 esac
7139
7140       $ac_path_EGREP_found && break 3
7141     done
7142   done
7143   done
7144 IFS=$as_save_IFS
7145   if test -z "$ac_cv_path_EGREP"; then
7146     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7147   fi
7148 else
7149   ac_cv_path_EGREP=$EGREP
7150 fi
7151
7152    fi
7153 fi
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7155 $as_echo "$ac_cv_path_EGREP" >&6; }
7156  EGREP="$ac_cv_path_EGREP"
7157
7158
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7160 $as_echo_n "checking for fgrep... " >&6; }
7161 if test "${ac_cv_path_FGREP+set}" = set; then :
7162   $as_echo_n "(cached) " >&6
7163 else
7164   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7165    then ac_cv_path_FGREP="$GREP -F"
7166    else
7167      if test -z "$FGREP"; then
7168   ac_path_FGREP_found=false
7169   # Loop through the user's path and test for each of PROGNAME-LIST
7170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7172 do
7173   IFS=$as_save_IFS
7174   test -z "$as_dir" && as_dir=.
7175     for ac_prog in fgrep; do
7176     for ac_exec_ext in '' $ac_executable_extensions; do
7177       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7178       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7179 # Check for GNU ac_path_FGREP and select it if it is found.
7180   # Check for GNU $ac_path_FGREP
7181 case `"$ac_path_FGREP" --version 2>&1` in
7182 *GNU*)
7183   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7184 *)
7185   ac_count=0
7186   $as_echo_n 0123456789 >"conftest.in"
7187   while :
7188   do
7189     cat "conftest.in" "conftest.in" >"conftest.tmp"
7190     mv "conftest.tmp" "conftest.in"
7191     cp "conftest.in" "conftest.nl"
7192     $as_echo 'FGREP' >> "conftest.nl"
7193     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7194     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7195     as_fn_arith $ac_count + 1 && ac_count=$as_val
7196     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7197       # Best one so far, save it but keep looking for a better one
7198       ac_cv_path_FGREP="$ac_path_FGREP"
7199       ac_path_FGREP_max=$ac_count
7200     fi
7201     # 10*(2^10) chars as input seems more than enough
7202     test $ac_count -gt 10 && break
7203   done
7204   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7205 esac
7206
7207       $ac_path_FGREP_found && break 3
7208     done
7209   done
7210   done
7211 IFS=$as_save_IFS
7212   if test -z "$ac_cv_path_FGREP"; then
7213     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7214   fi
7215 else
7216   ac_cv_path_FGREP=$FGREP
7217 fi
7218
7219    fi
7220 fi
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7222 $as_echo "$ac_cv_path_FGREP" >&6; }
7223  FGREP="$ac_cv_path_FGREP"
7224
7225
7226 test -z "$GREP" && GREP=grep
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246 # Check whether --with-gnu-ld was given.
7247 if test "${with_gnu_ld+set}" = set; then :
7248   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7249 else
7250   with_gnu_ld=no
7251 fi
7252
7253 ac_prog=ld
7254 if test "$GCC" = yes; then
7255   # Check if gcc -print-prog-name=ld gives a path.
7256   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7257 $as_echo_n "checking for ld used by $CC... " >&6; }
7258   case $host in
7259   *-*-mingw*)
7260     # gcc leaves a trailing carriage return which upsets mingw
7261     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7262   *)
7263     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7264   esac
7265   case $ac_prog in
7266     # Accept absolute paths.
7267     [\\/]* | ?:[\\/]*)
7268       re_direlt='/[^/][^/]*/\.\./'
7269       # Canonicalize the pathname of ld
7270       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7271       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7272         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7273       done
7274       test -z "$LD" && LD="$ac_prog"
7275       ;;
7276   "")
7277     # If it fails, then pretend we aren't using GCC.
7278     ac_prog=ld
7279     ;;
7280   *)
7281     # If it is relative, then search for the first ld in PATH.
7282     with_gnu_ld=unknown
7283     ;;
7284   esac
7285 elif test "$with_gnu_ld" = yes; then
7286   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7287 $as_echo_n "checking for GNU ld... " >&6; }
7288 else
7289   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7290 $as_echo_n "checking for non-GNU ld... " >&6; }
7291 fi
7292 if test "${lt_cv_path_LD+set}" = set; then :
7293   $as_echo_n "(cached) " >&6
7294 else
7295   if test -z "$LD"; then
7296   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7297   for ac_dir in $PATH; do
7298     IFS="$lt_save_ifs"
7299     test -z "$ac_dir" && ac_dir=.
7300     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7301       lt_cv_path_LD="$ac_dir/$ac_prog"
7302       # Check to see if the program is GNU ld.  I'd rather use --version,
7303       # but apparently some variants of GNU ld only accept -v.
7304       # Break only if it was the GNU/non-GNU ld that we prefer.
7305       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7306       *GNU* | *'with BFD'*)
7307         test "$with_gnu_ld" != no && break
7308         ;;
7309       *)
7310         test "$with_gnu_ld" != yes && break
7311         ;;
7312       esac
7313     fi
7314   done
7315   IFS="$lt_save_ifs"
7316 else
7317   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7318 fi
7319 fi
7320
7321 LD="$lt_cv_path_LD"
7322 if test -n "$LD"; then
7323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7324 $as_echo "$LD" >&6; }
7325 else
7326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 $as_echo "no" >&6; }
7328 fi
7329 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7331 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7332 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7333   $as_echo_n "(cached) " >&6
7334 else
7335   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7336 case `$LD -v 2>&1 </dev/null` in
7337 *GNU* | *'with BFD'*)
7338   lt_cv_prog_gnu_ld=yes
7339   ;;
7340 *)
7341   lt_cv_prog_gnu_ld=no
7342   ;;
7343 esac
7344 fi
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7346 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7347 with_gnu_ld=$lt_cv_prog_gnu_ld
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7358 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7359 if test "${lt_cv_path_NM+set}" = set; then :
7360   $as_echo_n "(cached) " >&6
7361 else
7362   if test -n "$NM"; then
7363   # Let the user override the test.
7364   lt_cv_path_NM="$NM"
7365 else
7366   lt_nm_to_check="${ac_tool_prefix}nm"
7367   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7368     lt_nm_to_check="$lt_nm_to_check nm"
7369   fi
7370   for lt_tmp_nm in $lt_nm_to_check; do
7371     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7372     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7373       IFS="$lt_save_ifs"
7374       test -z "$ac_dir" && ac_dir=.
7375       tmp_nm="$ac_dir/$lt_tmp_nm"
7376       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7377         # Check to see if the nm accepts a BSD-compat flag.
7378         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7379         #   nm: unknown option "B" ignored
7380         # Tru64's nm complains that /dev/null is an invalid object file
7381         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7382         */dev/null* | *'Invalid file or object type'*)
7383           lt_cv_path_NM="$tmp_nm -B"
7384           break
7385           ;;
7386         *)
7387           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7388           */dev/null*)
7389             lt_cv_path_NM="$tmp_nm -p"
7390             break
7391             ;;
7392           *)
7393             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7394             continue # so that we can try to find one that supports BSD flags
7395             ;;
7396           esac
7397           ;;
7398         esac
7399       fi
7400     done
7401     IFS="$lt_save_ifs"
7402   done
7403   : ${lt_cv_path_NM=no}
7404 fi
7405 fi
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7407 $as_echo "$lt_cv_path_NM" >&6; }
7408 if test "$lt_cv_path_NM" != "no"; then
7409   NM="$lt_cv_path_NM"
7410 else
7411   # Didn't find any BSD compatible name lister, look for dumpbin.
7412   if test -n "$DUMPBIN"; then :
7413     # Let the user override the test.
7414   else
7415     if test -n "$ac_tool_prefix"; then
7416   for ac_prog in dumpbin "link -dump"
7417   do
7418     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7419 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7421 $as_echo_n "checking for $ac_word... " >&6; }
7422 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7423   $as_echo_n "(cached) " >&6
7424 else
7425   if test -n "$DUMPBIN"; then
7426   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7427 else
7428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429 for as_dir in $PATH
7430 do
7431   IFS=$as_save_IFS
7432   test -z "$as_dir" && as_dir=.
7433     for ac_exec_ext in '' $ac_executable_extensions; do
7434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7435     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7437     break 2
7438   fi
7439 done
7440   done
7441 IFS=$as_save_IFS
7442
7443 fi
7444 fi
7445 DUMPBIN=$ac_cv_prog_DUMPBIN
7446 if test -n "$DUMPBIN"; then
7447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7448 $as_echo "$DUMPBIN" >&6; }
7449 else
7450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7451 $as_echo "no" >&6; }
7452 fi
7453
7454
7455     test -n "$DUMPBIN" && break
7456   done
7457 fi
7458 if test -z "$DUMPBIN"; then
7459   ac_ct_DUMPBIN=$DUMPBIN
7460   for ac_prog in dumpbin "link -dump"
7461 do
7462   # Extract the first word of "$ac_prog", so it can be a program name with args.
7463 set dummy $ac_prog; ac_word=$2
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7465 $as_echo_n "checking for $ac_word... " >&6; }
7466 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7467   $as_echo_n "(cached) " >&6
7468 else
7469   if test -n "$ac_ct_DUMPBIN"; then
7470   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7471 else
7472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473 for as_dir in $PATH
7474 do
7475   IFS=$as_save_IFS
7476   test -z "$as_dir" && as_dir=.
7477     for ac_exec_ext in '' $ac_executable_extensions; do
7478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7479     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7481     break 2
7482   fi
7483 done
7484   done
7485 IFS=$as_save_IFS
7486
7487 fi
7488 fi
7489 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7490 if test -n "$ac_ct_DUMPBIN"; then
7491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7492 $as_echo "$ac_ct_DUMPBIN" >&6; }
7493 else
7494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495 $as_echo "no" >&6; }
7496 fi
7497
7498
7499   test -n "$ac_ct_DUMPBIN" && break
7500 done
7501
7502   if test "x$ac_ct_DUMPBIN" = x; then
7503     DUMPBIN=":"
7504   else
7505     case $cross_compiling:$ac_tool_warned in
7506 yes:)
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7509 ac_tool_warned=yes ;;
7510 esac
7511     DUMPBIN=$ac_ct_DUMPBIN
7512   fi
7513 fi
7514
7515     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7516     *COFF*)
7517       DUMPBIN="$DUMPBIN -symbols"
7518       ;;
7519     *)
7520       DUMPBIN=:
7521       ;;
7522     esac
7523   fi
7524
7525   if test "$DUMPBIN" != ":"; then
7526     NM="$DUMPBIN"
7527   fi
7528 fi
7529 test -z "$NM" && NM=nm
7530
7531
7532
7533
7534
7535
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7537 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7538 if test "${lt_cv_nm_interface+set}" = set; then :
7539   $as_echo_n "(cached) " >&6
7540 else
7541   lt_cv_nm_interface="BSD nm"
7542   echo "int some_variable = 0;" > conftest.$ac_ext
7543   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7544   (eval "$ac_compile" 2>conftest.err)
7545   cat conftest.err >&5
7546   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7547   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7548   cat conftest.err >&5
7549   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7550   cat conftest.out >&5
7551   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7552     lt_cv_nm_interface="MS dumpbin"
7553   fi
7554   rm -f conftest*
7555 fi
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7557 $as_echo "$lt_cv_nm_interface" >&6; }
7558
7559 # find the maximum length of command line arguments
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7561 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7562 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7563   $as_echo_n "(cached) " >&6
7564 else
7565     i=0
7566   teststring="ABCD"
7567
7568   case $build_os in
7569   msdosdjgpp*)
7570     # On DJGPP, this test can blow up pretty badly due to problems in libc
7571     # (any single argument exceeding 2000 bytes causes a buffer overrun
7572     # during glob expansion).  Even if it were fixed, the result of this
7573     # check would be larger than it should be.
7574     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7575     ;;
7576
7577   gnu*)
7578     # Under GNU Hurd, this test is not required because there is
7579     # no limit to the length of command line arguments.
7580     # Libtool will interpret -1 as no limit whatsoever
7581     lt_cv_sys_max_cmd_len=-1;
7582     ;;
7583
7584   cygwin* | mingw* | cegcc*)
7585     # On Win9x/ME, this test blows up -- it succeeds, but takes
7586     # about 5 minutes as the teststring grows exponentially.
7587     # Worse, since 9x/ME are not pre-emptively multitasking,
7588     # you end up with a "frozen" computer, even though with patience
7589     # the test eventually succeeds (with a max line length of 256k).
7590     # Instead, let's just punt: use the minimum linelength reported by
7591     # all of the supported platforms: 8192 (on NT/2K/XP).
7592     lt_cv_sys_max_cmd_len=8192;
7593     ;;
7594
7595   mint*)
7596     # On MiNT this can take a long time and run out of memory.
7597     lt_cv_sys_max_cmd_len=8192;
7598     ;;
7599
7600   amigaos*)
7601     # On AmigaOS with pdksh, this test takes hours, literally.
7602     # So we just punt and use a minimum line length of 8192.
7603     lt_cv_sys_max_cmd_len=8192;
7604     ;;
7605
7606   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7607     # This has been around since 386BSD, at least.  Likely further.
7608     if test -x /sbin/sysctl; then
7609       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7610     elif test -x /usr/sbin/sysctl; then
7611       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7612     else
7613       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7614     fi
7615     # And add a safety zone
7616     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7617     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7618     ;;
7619
7620   interix*)
7621     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7622     lt_cv_sys_max_cmd_len=196608
7623     ;;
7624
7625   osf*)
7626     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7627     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7628     # nice to cause kernel panics so lets avoid the loop below.
7629     # First set a reasonable default.
7630     lt_cv_sys_max_cmd_len=16384
7631     #
7632     if test -x /sbin/sysconfig; then
7633       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7634         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7635       esac
7636     fi
7637     ;;
7638   sco3.2v5*)
7639     lt_cv_sys_max_cmd_len=102400
7640     ;;
7641   sysv5* | sco5v6* | sysv4.2uw2*)
7642     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7643     if test -n "$kargmax"; then
7644       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7645     else
7646       lt_cv_sys_max_cmd_len=32768
7647     fi
7648     ;;
7649   *)
7650     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7651     if test -n "$lt_cv_sys_max_cmd_len"; then
7652       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7653       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7654     else
7655       # Make teststring a little bigger before we do anything with it.
7656       # a 1K string should be a reasonable start.
7657       for i in 1 2 3 4 5 6 7 8 ; do
7658         teststring=$teststring$teststring
7659       done
7660       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7661       # If test is not a shell built-in, we'll probably end up computing a
7662       # maximum length that is only half of the actual maximum length, but
7663       # we can't tell.
7664       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7665                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7666               test $i != 17 # 1/2 MB should be enough
7667       do
7668         i=`expr $i + 1`
7669         teststring=$teststring$teststring
7670       done
7671       # Only check the string length outside the loop.
7672       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7673       teststring=
7674       # Add a significant safety factor because C++ compilers can tack on
7675       # massive amounts of additional arguments before passing them to the
7676       # linker.  It appears as though 1/2 is a usable value.
7677       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7678     fi
7679     ;;
7680   esac
7681
7682 fi
7683
7684 if test -n $lt_cv_sys_max_cmd_len ; then
7685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7686 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7687 else
7688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7689 $as_echo "none" >&6; }
7690 fi
7691 max_cmd_len=$lt_cv_sys_max_cmd_len
7692
7693
7694
7695
7696
7697
7698 : ${CP="cp -f"}
7699 : ${MV="mv -f"}
7700 : ${RM="rm -f"}
7701
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7703 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7704 # Try some XSI features
7705 xsi_shell=no
7706 ( _lt_dummy="a/b/c"
7707   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7708       = c,a/b,, \
7709     && eval 'test $(( 1 + 1 )) -eq 2 \
7710     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7711   && xsi_shell=yes
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7713 $as_echo "$xsi_shell" >&6; }
7714
7715
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7717 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7718 lt_shell_append=no
7719 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7720     >/dev/null 2>&1 \
7721   && lt_shell_append=yes
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7723 $as_echo "$lt_shell_append" >&6; }
7724
7725
7726 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7727   lt_unset=unset
7728 else
7729   lt_unset=false
7730 fi
7731
7732
7733
7734
7735
7736 # test EBCDIC or ASCII
7737 case `echo X|tr X '\101'` in
7738  A) # ASCII based system
7739     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7740   lt_SP2NL='tr \040 \012'
7741   lt_NL2SP='tr \015\012 \040\040'
7742   ;;
7743  *) # EBCDIC based system
7744   lt_SP2NL='tr \100 \n'
7745   lt_NL2SP='tr \r\n \100\100'
7746   ;;
7747 esac
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7758 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7759 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7760   $as_echo_n "(cached) " >&6
7761 else
7762   lt_cv_ld_reload_flag='-r'
7763 fi
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7765 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7766 reload_flag=$lt_cv_ld_reload_flag
7767 case $reload_flag in
7768 "" | " "*) ;;
7769 *) reload_flag=" $reload_flag" ;;
7770 esac
7771 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7772 case $host_os in
7773   darwin*)
7774     if test "$GCC" = yes; then
7775       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7776     else
7777       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7778     fi
7779     ;;
7780 esac
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790 if test -n "$ac_tool_prefix"; then
7791   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7792 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794 $as_echo_n "checking for $ac_word... " >&6; }
7795 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7796   $as_echo_n "(cached) " >&6
7797 else
7798   if test -n "$OBJDUMP"; then
7799   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7800 else
7801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802 for as_dir in $PATH
7803 do
7804   IFS=$as_save_IFS
7805   test -z "$as_dir" && as_dir=.
7806     for ac_exec_ext in '' $ac_executable_extensions; do
7807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7808     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7810     break 2
7811   fi
7812 done
7813   done
7814 IFS=$as_save_IFS
7815
7816 fi
7817 fi
7818 OBJDUMP=$ac_cv_prog_OBJDUMP
7819 if test -n "$OBJDUMP"; then
7820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7821 $as_echo "$OBJDUMP" >&6; }
7822 else
7823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824 $as_echo "no" >&6; }
7825 fi
7826
7827
7828 fi
7829 if test -z "$ac_cv_prog_OBJDUMP"; then
7830   ac_ct_OBJDUMP=$OBJDUMP
7831   # Extract the first word of "objdump", so it can be a program name with args.
7832 set dummy objdump; ac_word=$2
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7834 $as_echo_n "checking for $ac_word... " >&6; }
7835 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7836   $as_echo_n "(cached) " >&6
7837 else
7838   if test -n "$ac_ct_OBJDUMP"; then
7839   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7840 else
7841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842 for as_dir in $PATH
7843 do
7844   IFS=$as_save_IFS
7845   test -z "$as_dir" && as_dir=.
7846     for ac_exec_ext in '' $ac_executable_extensions; do
7847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7848     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7850     break 2
7851   fi
7852 done
7853   done
7854 IFS=$as_save_IFS
7855
7856 fi
7857 fi
7858 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7859 if test -n "$ac_ct_OBJDUMP"; then
7860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7861 $as_echo "$ac_ct_OBJDUMP" >&6; }
7862 else
7863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7864 $as_echo "no" >&6; }
7865 fi
7866
7867   if test "x$ac_ct_OBJDUMP" = x; then
7868     OBJDUMP="false"
7869   else
7870     case $cross_compiling:$ac_tool_warned in
7871 yes:)
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7874 ac_tool_warned=yes ;;
7875 esac
7876     OBJDUMP=$ac_ct_OBJDUMP
7877   fi
7878 else
7879   OBJDUMP="$ac_cv_prog_OBJDUMP"
7880 fi
7881
7882 test -z "$OBJDUMP" && OBJDUMP=objdump
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7893 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7894 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7895   $as_echo_n "(cached) " >&6
7896 else
7897   lt_cv_file_magic_cmd='$MAGIC_CMD'
7898 lt_cv_file_magic_test_file=
7899 lt_cv_deplibs_check_method='unknown'
7900 # Need to set the preceding variable on all platforms that support
7901 # interlibrary dependencies.
7902 # 'none' -- dependencies not supported.
7903 # `unknown' -- same as none, but documents that we really don't know.
7904 # 'pass_all' -- all dependencies passed with no checks.
7905 # 'test_compile' -- check by making test program.
7906 # 'file_magic [[regex]]' -- check by looking for files in library path
7907 # which responds to the $file_magic_cmd with a given extended regex.
7908 # If you have `file' or equivalent on your system and you're not sure
7909 # whether `pass_all' will *always* work, you probably want this one.
7910
7911 case $host_os in
7912 aix[4-9]*)
7913   lt_cv_deplibs_check_method=pass_all
7914   ;;
7915
7916 beos*)
7917   lt_cv_deplibs_check_method=pass_all
7918   ;;
7919
7920 bsdi[45]*)
7921   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7922   lt_cv_file_magic_cmd='/usr/bin/file -L'
7923   lt_cv_file_magic_test_file=/shlib/libc.so
7924   ;;
7925
7926 cygwin*)
7927   # func_win32_libid is a shell function defined in ltmain.sh
7928   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7929   lt_cv_file_magic_cmd='func_win32_libid'
7930   ;;
7931
7932 mingw* | pw32*)
7933   # Base MSYS/MinGW do not provide the 'file' command needed by
7934   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7935   # unless we find 'file', for example because we are cross-compiling.
7936   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7937   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7938     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7939     lt_cv_file_magic_cmd='func_win32_libid'
7940   else
7941     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7942     lt_cv_file_magic_cmd='$OBJDUMP -f'
7943   fi
7944   ;;
7945
7946 cegcc*)
7947   # use the weaker test based on 'objdump'. See mingw*.
7948   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7949   lt_cv_file_magic_cmd='$OBJDUMP -f'
7950   ;;
7951
7952 darwin* | rhapsody*)
7953   lt_cv_deplibs_check_method=pass_all
7954   ;;
7955
7956 freebsd* | dragonfly*)
7957   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7958     case $host_cpu in
7959     i*86 )
7960       # Not sure whether the presence of OpenBSD here was a mistake.
7961       # Let's accept both of them until this is cleared up.
7962       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7963       lt_cv_file_magic_cmd=/usr/bin/file
7964       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7965       ;;
7966     esac
7967   else
7968     lt_cv_deplibs_check_method=pass_all
7969   fi
7970   ;;
7971
7972 gnu*)
7973   lt_cv_deplibs_check_method=pass_all
7974   ;;
7975
7976 haiku*)
7977   lt_cv_deplibs_check_method=pass_all
7978   ;;
7979
7980 hpux10.20* | hpux11*)
7981   lt_cv_file_magic_cmd=/usr/bin/file
7982   case $host_cpu in
7983   ia64*)
7984     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7985     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7986     ;;
7987   hppa*64*)
7988     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]'
7989     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7990     ;;
7991   *)
7992     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7993     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7994     ;;
7995   esac
7996   ;;
7997
7998 interix[3-9]*)
7999   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8000   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8001   ;;
8002
8003 irix5* | irix6* | nonstopux*)
8004   case $LD in
8005   *-32|*"-32 ") libmagic=32-bit;;
8006   *-n32|*"-n32 ") libmagic=N32;;
8007   *-64|*"-64 ") libmagic=64-bit;;
8008   *) libmagic=never-match;;
8009   esac
8010   lt_cv_deplibs_check_method=pass_all
8011   ;;
8012
8013 # This must be Linux ELF.
8014 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8015   lt_cv_deplibs_check_method=pass_all
8016   ;;
8017
8018 netbsd*)
8019   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8020     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8021   else
8022     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8023   fi
8024   ;;
8025
8026 newos6*)
8027   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8028   lt_cv_file_magic_cmd=/usr/bin/file
8029   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8030   ;;
8031
8032 *nto* | *qnx*)
8033   lt_cv_deplibs_check_method=pass_all
8034   ;;
8035
8036 openbsd*)
8037   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8038     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8039   else
8040     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8041   fi
8042   ;;
8043
8044 osf3* | osf4* | osf5*)
8045   lt_cv_deplibs_check_method=pass_all
8046   ;;
8047
8048 rdos*)
8049   lt_cv_deplibs_check_method=pass_all
8050   ;;
8051
8052 solaris*)
8053   lt_cv_deplibs_check_method=pass_all
8054   ;;
8055
8056 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8057   lt_cv_deplibs_check_method=pass_all
8058   ;;
8059
8060 sysv4 | sysv4.3*)
8061   case $host_vendor in
8062   motorola)
8063     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]'
8064     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8065     ;;
8066   ncr)
8067     lt_cv_deplibs_check_method=pass_all
8068     ;;
8069   sequent)
8070     lt_cv_file_magic_cmd='/bin/file'
8071     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8072     ;;
8073   sni)
8074     lt_cv_file_magic_cmd='/bin/file'
8075     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8076     lt_cv_file_magic_test_file=/lib/libc.so
8077     ;;
8078   siemens)
8079     lt_cv_deplibs_check_method=pass_all
8080     ;;
8081   pc)
8082     lt_cv_deplibs_check_method=pass_all
8083     ;;
8084   esac
8085   ;;
8086
8087 tpf*)
8088   lt_cv_deplibs_check_method=pass_all
8089   ;;
8090 esac
8091
8092 fi
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8094 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8095 file_magic_cmd=$lt_cv_file_magic_cmd
8096 deplibs_check_method=$lt_cv_deplibs_check_method
8097 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110 if test -n "$ac_tool_prefix"; then
8111   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8112 set dummy ${ac_tool_prefix}ar; ac_word=$2
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8114 $as_echo_n "checking for $ac_word... " >&6; }
8115 if test "${ac_cv_prog_AR+set}" = set; then :
8116   $as_echo_n "(cached) " >&6
8117 else
8118   if test -n "$AR"; then
8119   ac_cv_prog_AR="$AR" # Let the user override the test.
8120 else
8121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122 for as_dir in $PATH
8123 do
8124   IFS=$as_save_IFS
8125   test -z "$as_dir" && as_dir=.
8126     for ac_exec_ext in '' $ac_executable_extensions; do
8127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8128     ac_cv_prog_AR="${ac_tool_prefix}ar"
8129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8130     break 2
8131   fi
8132 done
8133   done
8134 IFS=$as_save_IFS
8135
8136 fi
8137 fi
8138 AR=$ac_cv_prog_AR
8139 if test -n "$AR"; then
8140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8141 $as_echo "$AR" >&6; }
8142 else
8143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144 $as_echo "no" >&6; }
8145 fi
8146
8147
8148 fi
8149 if test -z "$ac_cv_prog_AR"; then
8150   ac_ct_AR=$AR
8151   # Extract the first word of "ar", so it can be a program name with args.
8152 set dummy ar; ac_word=$2
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8154 $as_echo_n "checking for $ac_word... " >&6; }
8155 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8156   $as_echo_n "(cached) " >&6
8157 else
8158   if test -n "$ac_ct_AR"; then
8159   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8160 else
8161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8162 for as_dir in $PATH
8163 do
8164   IFS=$as_save_IFS
8165   test -z "$as_dir" && as_dir=.
8166     for ac_exec_ext in '' $ac_executable_extensions; do
8167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8168     ac_cv_prog_ac_ct_AR="ar"
8169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8170     break 2
8171   fi
8172 done
8173   done
8174 IFS=$as_save_IFS
8175
8176 fi
8177 fi
8178 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8179 if test -n "$ac_ct_AR"; then
8180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8181 $as_echo "$ac_ct_AR" >&6; }
8182 else
8183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8184 $as_echo "no" >&6; }
8185 fi
8186
8187   if test "x$ac_ct_AR" = x; then
8188     AR="false"
8189   else
8190     case $cross_compiling:$ac_tool_warned in
8191 yes:)
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8194 ac_tool_warned=yes ;;
8195 esac
8196     AR=$ac_ct_AR
8197   fi
8198 else
8199   AR="$ac_cv_prog_AR"
8200 fi
8201
8202 test -z "$AR" && AR=ar
8203 test -z "$AR_FLAGS" && AR_FLAGS=cru
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215 if test -n "$ac_tool_prefix"; then
8216   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8217 set dummy ${ac_tool_prefix}strip; ac_word=$2
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8219 $as_echo_n "checking for $ac_word... " >&6; }
8220 if test "${ac_cv_prog_STRIP+set}" = set; then :
8221   $as_echo_n "(cached) " >&6
8222 else
8223   if test -n "$STRIP"; then
8224   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8225 else
8226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227 for as_dir in $PATH
8228 do
8229   IFS=$as_save_IFS
8230   test -z "$as_dir" && as_dir=.
8231     for ac_exec_ext in '' $ac_executable_extensions; do
8232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8233     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8235     break 2
8236   fi
8237 done
8238   done
8239 IFS=$as_save_IFS
8240
8241 fi
8242 fi
8243 STRIP=$ac_cv_prog_STRIP
8244 if test -n "$STRIP"; then
8245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8246 $as_echo "$STRIP" >&6; }
8247 else
8248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8249 $as_echo "no" >&6; }
8250 fi
8251
8252
8253 fi
8254 if test -z "$ac_cv_prog_STRIP"; then
8255   ac_ct_STRIP=$STRIP
8256   # Extract the first word of "strip", so it can be a program name with args.
8257 set dummy strip; ac_word=$2
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8259 $as_echo_n "checking for $ac_word... " >&6; }
8260 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8261   $as_echo_n "(cached) " >&6
8262 else
8263   if test -n "$ac_ct_STRIP"; then
8264   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8265 else
8266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8267 for as_dir in $PATH
8268 do
8269   IFS=$as_save_IFS
8270   test -z "$as_dir" && as_dir=.
8271     for ac_exec_ext in '' $ac_executable_extensions; do
8272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8273     ac_cv_prog_ac_ct_STRIP="strip"
8274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8275     break 2
8276   fi
8277 done
8278   done
8279 IFS=$as_save_IFS
8280
8281 fi
8282 fi
8283 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8284 if test -n "$ac_ct_STRIP"; then
8285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8286 $as_echo "$ac_ct_STRIP" >&6; }
8287 else
8288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8289 $as_echo "no" >&6; }
8290 fi
8291
8292   if test "x$ac_ct_STRIP" = x; then
8293     STRIP=":"
8294   else
8295     case $cross_compiling:$ac_tool_warned in
8296 yes:)
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8299 ac_tool_warned=yes ;;
8300 esac
8301     STRIP=$ac_ct_STRIP
8302   fi
8303 else
8304   STRIP="$ac_cv_prog_STRIP"
8305 fi
8306
8307 test -z "$STRIP" && STRIP=:
8308
8309
8310
8311
8312
8313
8314 if test -n "$ac_tool_prefix"; then
8315   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8316 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8318 $as_echo_n "checking for $ac_word... " >&6; }
8319 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8320   $as_echo_n "(cached) " >&6
8321 else
8322   if test -n "$RANLIB"; then
8323   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8324 else
8325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8326 for as_dir in $PATH
8327 do
8328   IFS=$as_save_IFS
8329   test -z "$as_dir" && as_dir=.
8330     for ac_exec_ext in '' $ac_executable_extensions; do
8331   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8332     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8334     break 2
8335   fi
8336 done
8337   done
8338 IFS=$as_save_IFS
8339
8340 fi
8341 fi
8342 RANLIB=$ac_cv_prog_RANLIB
8343 if test -n "$RANLIB"; then
8344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8345 $as_echo "$RANLIB" >&6; }
8346 else
8347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8348 $as_echo "no" >&6; }
8349 fi
8350
8351
8352 fi
8353 if test -z "$ac_cv_prog_RANLIB"; then
8354   ac_ct_RANLIB=$RANLIB
8355   # Extract the first word of "ranlib", so it can be a program name with args.
8356 set dummy ranlib; ac_word=$2
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8358 $as_echo_n "checking for $ac_word... " >&6; }
8359 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8360   $as_echo_n "(cached) " >&6
8361 else
8362   if test -n "$ac_ct_RANLIB"; then
8363   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8364 else
8365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366 for as_dir in $PATH
8367 do
8368   IFS=$as_save_IFS
8369   test -z "$as_dir" && as_dir=.
8370     for ac_exec_ext in '' $ac_executable_extensions; do
8371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8372     ac_cv_prog_ac_ct_RANLIB="ranlib"
8373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8374     break 2
8375   fi
8376 done
8377   done
8378 IFS=$as_save_IFS
8379
8380 fi
8381 fi
8382 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8383 if test -n "$ac_ct_RANLIB"; then
8384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8385 $as_echo "$ac_ct_RANLIB" >&6; }
8386 else
8387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388 $as_echo "no" >&6; }
8389 fi
8390
8391   if test "x$ac_ct_RANLIB" = x; then
8392     RANLIB=":"
8393   else
8394     case $cross_compiling:$ac_tool_warned in
8395 yes:)
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8398 ac_tool_warned=yes ;;
8399 esac
8400     RANLIB=$ac_ct_RANLIB
8401   fi
8402 else
8403   RANLIB="$ac_cv_prog_RANLIB"
8404 fi
8405
8406 test -z "$RANLIB" && RANLIB=:
8407
8408
8409
8410
8411
8412
8413 # Determine commands to create old-style static archives.
8414 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8415 old_postinstall_cmds='chmod 644 $oldlib'
8416 old_postuninstall_cmds=
8417
8418 if test -n "$RANLIB"; then
8419   case $host_os in
8420   openbsd*)
8421     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8422     ;;
8423   *)
8424     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8425     ;;
8426   esac
8427   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8428 fi
8429
8430 case $host_os in
8431   darwin*)
8432     lock_old_archive_extraction=yes ;;
8433   *)
8434     lock_old_archive_extraction=no ;;
8435 esac
8436
8437
8438
8439
8440
8441
8442
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 # If no C compiler was specified, use CC.
8476 LTCC=${LTCC-"$CC"}
8477
8478 # If no C compiler flags were specified, use CFLAGS.
8479 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8480
8481 # Allow CC to be a program name with arguments.
8482 compiler=$CC
8483
8484
8485 # Check for command to grab the raw symbol name followed by C symbol from nm.
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8487 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8488 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8489   $as_echo_n "(cached) " >&6
8490 else
8491
8492 # These are sane defaults that work on at least a few old systems.
8493 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8494
8495 # Character class describing NM global symbol codes.
8496 symcode='[BCDEGRST]'
8497
8498 # Regexp to match symbols that can be accessed directly from C.
8499 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8500
8501 # Define system-specific variables.
8502 case $host_os in
8503 aix*)
8504   symcode='[BCDT]'
8505   ;;
8506 cygwin* | mingw* | pw32* | cegcc*)
8507   symcode='[ABCDGISTW]'
8508   ;;
8509 hpux*)
8510   if test "$host_cpu" = ia64; then
8511     symcode='[ABCDEGRST]'
8512   fi
8513   ;;
8514 irix* | nonstopux*)
8515   symcode='[BCDEGRST]'
8516   ;;
8517 osf*)
8518   symcode='[BCDEGQRST]'
8519   ;;
8520 solaris*)
8521   symcode='[BDRT]'
8522   ;;
8523 sco3.2v5*)
8524   symcode='[DT]'
8525   ;;
8526 sysv4.2uw2*)
8527   symcode='[DT]'
8528   ;;
8529 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8530   symcode='[ABDT]'
8531   ;;
8532 sysv4)
8533   symcode='[DFNSTU]'
8534   ;;
8535 esac
8536
8537 # If we're using GNU nm, then use its standard symbol codes.
8538 case `$NM -V 2>&1` in
8539 *GNU* | *'with BFD'*)
8540   symcode='[ABCDGIRSTW]' ;;
8541 esac
8542
8543 # Transform an extracted symbol line into a proper C declaration.
8544 # Some systems (esp. on ia64) link data and code symbols differently,
8545 # so use this general approach.
8546 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8547
8548 # Transform an extracted symbol line into symbol name and symbol address
8549 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8550 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
8551
8552 # Handle CRLF in mingw tool chain
8553 opt_cr=
8554 case $build_os in
8555 mingw*)
8556   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8557   ;;
8558 esac
8559
8560 # Try without a prefix underscore, then with it.
8561 for ac_symprfx in "" "_"; do
8562
8563   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8564   symxfrm="\\1 $ac_symprfx\\2 \\2"
8565
8566   # Write the raw and C identifiers.
8567   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8568     # Fake it for dumpbin and say T for any non-static function
8569     # and D for any global variable.
8570     # Also find C++ and __fastcall symbols from MSVC++,
8571     # which start with @ or ?.
8572     lt_cv_sys_global_symbol_pipe="$AWK '"\
8573 "     {last_section=section; section=\$ 3};"\
8574 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8575 "     \$ 0!~/External *\|/{next};"\
8576 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8577 "     {if(hide[section]) next};"\
8578 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8579 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8580 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8581 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8582 "     ' prfx=^$ac_symprfx"
8583   else
8584     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8585   fi
8586
8587   # Check to see that the pipe works correctly.
8588   pipe_works=no
8589
8590   rm -f conftest*
8591   cat > conftest.$ac_ext <<_LT_EOF
8592 #ifdef __cplusplus
8593 extern "C" {
8594 #endif
8595 char nm_test_var;
8596 void nm_test_func(void);
8597 void nm_test_func(void){}
8598 #ifdef __cplusplus
8599 }
8600 #endif
8601 int main(){nm_test_var='a';nm_test_func();return(0);}
8602 _LT_EOF
8603
8604   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8605   (eval $ac_compile) 2>&5
8606   ac_status=$?
8607   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8608   test $ac_status = 0; }; then
8609     # Now try to grab the symbols.
8610     nlist=conftest.nm
8611     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8612   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8613   ac_status=$?
8614   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8615   test $ac_status = 0; } && test -s "$nlist"; then
8616       # Try sorting and uniquifying the output.
8617       if sort "$nlist" | uniq > "$nlist"T; then
8618         mv -f "$nlist"T "$nlist"
8619       else
8620         rm -f "$nlist"T
8621       fi
8622
8623       # Make sure that we snagged all the symbols we need.
8624       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8625         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8626           cat <<_LT_EOF > conftest.$ac_ext
8627 #ifdef __cplusplus
8628 extern "C" {
8629 #endif
8630
8631 _LT_EOF
8632           # Now generate the symbol file.
8633           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8634
8635           cat <<_LT_EOF >> conftest.$ac_ext
8636
8637 /* The mapping between symbol names and symbols.  */
8638 const struct {
8639   const char *name;
8640   void       *address;
8641 }
8642 lt__PROGRAM__LTX_preloaded_symbols[] =
8643 {
8644   { "@PROGRAM@", (void *) 0 },
8645 _LT_EOF
8646           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8647           cat <<\_LT_EOF >> conftest.$ac_ext
8648   {0, (void *) 0}
8649 };
8650
8651 /* This works around a problem in FreeBSD linker */
8652 #ifdef FREEBSD_WORKAROUND
8653 static const void *lt_preloaded_setup() {
8654   return lt__PROGRAM__LTX_preloaded_symbols;
8655 }
8656 #endif
8657
8658 #ifdef __cplusplus
8659 }
8660 #endif
8661 _LT_EOF
8662           # Now try linking the two files.
8663           mv conftest.$ac_objext conftstm.$ac_objext
8664           lt_save_LIBS="$LIBS"
8665           lt_save_CFLAGS="$CFLAGS"
8666           LIBS="conftstm.$ac_objext"
8667           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8668           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8669   (eval $ac_link) 2>&5
8670   ac_status=$?
8671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8672   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8673             pipe_works=yes
8674           fi
8675           LIBS="$lt_save_LIBS"
8676           CFLAGS="$lt_save_CFLAGS"
8677         else
8678           echo "cannot find nm_test_func in $nlist" >&5
8679         fi
8680       else
8681         echo "cannot find nm_test_var in $nlist" >&5
8682       fi
8683     else
8684       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8685     fi
8686   else
8687     echo "$progname: failed program was:" >&5
8688     cat conftest.$ac_ext >&5
8689   fi
8690   rm -rf conftest* conftst*
8691
8692   # Do not use the global_symbol_pipe unless it works.
8693   if test "$pipe_works" = yes; then
8694     break
8695   else
8696     lt_cv_sys_global_symbol_pipe=
8697   fi
8698 done
8699
8700 fi
8701
8702 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8703   lt_cv_sys_global_symbol_to_cdecl=
8704 fi
8705 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8707 $as_echo "failed" >&6; }
8708 else
8709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8710 $as_echo "ok" >&6; }
8711 fi
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735 # Check whether --enable-libtool-lock was given.
8736 if test "${enable_libtool_lock+set}" = set; then :
8737   enableval=$enable_libtool_lock;
8738 fi
8739
8740 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8741
8742 # Some flags need to be propagated to the compiler or linker for good
8743 # libtool support.
8744 case $host in
8745 ia64-*-hpux*)
8746   # Find out which ABI we are using.
8747   echo 'int i;' > conftest.$ac_ext
8748   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8749   (eval $ac_compile) 2>&5
8750   ac_status=$?
8751   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8752   test $ac_status = 0; }; then
8753     case `/usr/bin/file conftest.$ac_objext` in
8754       *ELF-32*)
8755         HPUX_IA64_MODE="32"
8756         ;;
8757       *ELF-64*)
8758         HPUX_IA64_MODE="64"
8759         ;;
8760     esac
8761   fi
8762   rm -rf conftest*
8763   ;;
8764 *-*-irix6*)
8765   # Find out which ABI we are using.
8766   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8767   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8768   (eval $ac_compile) 2>&5
8769   ac_status=$?
8770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8771   test $ac_status = 0; }; then
8772     if test "$lt_cv_prog_gnu_ld" = yes; then
8773       case `/usr/bin/file conftest.$ac_objext` in
8774         *32-bit*)
8775           LD="${LD-ld} -melf32bsmip"
8776           ;;
8777         *N32*)
8778           LD="${LD-ld} -melf32bmipn32"
8779           ;;
8780         *64-bit*)
8781           LD="${LD-ld} -melf64bmip"
8782         ;;
8783       esac
8784     else
8785       case `/usr/bin/file conftest.$ac_objext` in
8786         *32-bit*)
8787           LD="${LD-ld} -32"
8788           ;;
8789         *N32*)
8790           LD="${LD-ld} -n32"
8791           ;;
8792         *64-bit*)
8793           LD="${LD-ld} -64"
8794           ;;
8795       esac
8796     fi
8797   fi
8798   rm -rf conftest*
8799   ;;
8800
8801 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8802 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8803   # Find out which ABI we are using.
8804   echo 'int i;' > conftest.$ac_ext
8805   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8806   (eval $ac_compile) 2>&5
8807   ac_status=$?
8808   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8809   test $ac_status = 0; }; then
8810     case `/usr/bin/file conftest.o` in
8811       *32-bit*)
8812         case $host in
8813           x86_64-*kfreebsd*-gnu)
8814             LD="${LD-ld} -m elf_i386_fbsd"
8815             ;;
8816           x86_64-*linux*)
8817             LD="${LD-ld} -m elf_i386"
8818             ;;
8819           ppc64-*linux*|powerpc64-*linux*)
8820             LD="${LD-ld} -m elf32ppclinux"
8821             ;;
8822           s390x-*linux*)
8823             LD="${LD-ld} -m elf_s390"
8824             ;;
8825           sparc64-*linux*)
8826             LD="${LD-ld} -m elf32_sparc"
8827             ;;
8828         esac
8829         ;;
8830       *64-bit*)
8831         case $host in
8832           x86_64-*kfreebsd*-gnu)
8833             LD="${LD-ld} -m elf_x86_64_fbsd"
8834             ;;
8835           x86_64-*linux*)
8836             LD="${LD-ld} -m elf_x86_64"
8837             ;;
8838           ppc*-*linux*|powerpc*-*linux*)
8839             LD="${LD-ld} -m elf64ppc"
8840             ;;
8841           s390*-*linux*|s390*-*tpf*)
8842             LD="${LD-ld} -m elf64_s390"
8843             ;;
8844           sparc*-*linux*)
8845             LD="${LD-ld} -m elf64_sparc"
8846             ;;
8847         esac
8848         ;;
8849     esac
8850   fi
8851   rm -rf conftest*
8852   ;;
8853
8854 *-*-sco3.2v5*)
8855   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8856   SAVE_CFLAGS="$CFLAGS"
8857   CFLAGS="$CFLAGS -belf"
8858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8859 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8860 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8861   $as_echo_n "(cached) " >&6
8862 else
8863   ac_ext=c
8864 ac_cpp='$CPP $CPPFLAGS'
8865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8868
8869      if test x$gcc_no_link = xyes; then
8870   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8871 fi
8872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h.  */
8874
8875 int
8876 main ()
8877 {
8878
8879   ;
8880   return 0;
8881 }
8882 _ACEOF
8883 if ac_fn_c_try_link "$LINENO"; then :
8884   lt_cv_cc_needs_belf=yes
8885 else
8886   lt_cv_cc_needs_belf=no
8887 fi
8888 rm -f core conftest.err conftest.$ac_objext \
8889     conftest$ac_exeext conftest.$ac_ext
8890      ac_ext=c
8891 ac_cpp='$CPP $CPPFLAGS'
8892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8895
8896 fi
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8898 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8899   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8900     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8901     CFLAGS="$SAVE_CFLAGS"
8902   fi
8903   ;;
8904 sparc*-*solaris*)
8905   # Find out which ABI we are using.
8906   echo 'int i;' > conftest.$ac_ext
8907   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8908   (eval $ac_compile) 2>&5
8909   ac_status=$?
8910   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8911   test $ac_status = 0; }; then
8912     case `/usr/bin/file conftest.o` in
8913     *64-bit*)
8914       case $lt_cv_prog_gnu_ld in
8915       yes*) LD="${LD-ld} -m elf64_sparc" ;;
8916       *)
8917         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8918           LD="${LD-ld} -64"
8919         fi
8920         ;;
8921       esac
8922       ;;
8923     esac
8924   fi
8925   rm -rf conftest*
8926   ;;
8927 esac
8928
8929 need_locks="$enable_libtool_lock"
8930
8931
8932   case $host_os in
8933     rhapsody* | darwin*)
8934     if test -n "$ac_tool_prefix"; then
8935   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8936 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8938 $as_echo_n "checking for $ac_word... " >&6; }
8939 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8940   $as_echo_n "(cached) " >&6
8941 else
8942   if test -n "$DSYMUTIL"; then
8943   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8944 else
8945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8946 for as_dir in $PATH
8947 do
8948   IFS=$as_save_IFS
8949   test -z "$as_dir" && as_dir=.
8950     for ac_exec_ext in '' $ac_executable_extensions; do
8951   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8952     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8954     break 2
8955   fi
8956 done
8957   done
8958 IFS=$as_save_IFS
8959
8960 fi
8961 fi
8962 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8963 if test -n "$DSYMUTIL"; then
8964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8965 $as_echo "$DSYMUTIL" >&6; }
8966 else
8967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8968 $as_echo "no" >&6; }
8969 fi
8970
8971
8972 fi
8973 if test -z "$ac_cv_prog_DSYMUTIL"; then
8974   ac_ct_DSYMUTIL=$DSYMUTIL
8975   # Extract the first word of "dsymutil", so it can be a program name with args.
8976 set dummy dsymutil; ac_word=$2
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8978 $as_echo_n "checking for $ac_word... " >&6; }
8979 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8980   $as_echo_n "(cached) " >&6
8981 else
8982   if test -n "$ac_ct_DSYMUTIL"; then
8983   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8984 else
8985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8986 for as_dir in $PATH
8987 do
8988   IFS=$as_save_IFS
8989   test -z "$as_dir" && as_dir=.
8990     for ac_exec_ext in '' $ac_executable_extensions; do
8991   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8992     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8994     break 2
8995   fi
8996 done
8997   done
8998 IFS=$as_save_IFS
8999
9000 fi
9001 fi
9002 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9003 if test -n "$ac_ct_DSYMUTIL"; then
9004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9005 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9006 else
9007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9008 $as_echo "no" >&6; }
9009 fi
9010
9011   if test "x$ac_ct_DSYMUTIL" = x; then
9012     DSYMUTIL=":"
9013   else
9014     case $cross_compiling:$ac_tool_warned in
9015 yes:)
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9018 ac_tool_warned=yes ;;
9019 esac
9020     DSYMUTIL=$ac_ct_DSYMUTIL
9021   fi
9022 else
9023   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9024 fi
9025
9026     if test -n "$ac_tool_prefix"; then
9027   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9028 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9030 $as_echo_n "checking for $ac_word... " >&6; }
9031 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
9032   $as_echo_n "(cached) " >&6
9033 else
9034   if test -n "$NMEDIT"; then
9035   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9036 else
9037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9038 for as_dir in $PATH
9039 do
9040   IFS=$as_save_IFS
9041   test -z "$as_dir" && as_dir=.
9042     for ac_exec_ext in '' $ac_executable_extensions; do
9043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9044     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9046     break 2
9047   fi
9048 done
9049   done
9050 IFS=$as_save_IFS
9051
9052 fi
9053 fi
9054 NMEDIT=$ac_cv_prog_NMEDIT
9055 if test -n "$NMEDIT"; then
9056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9057 $as_echo "$NMEDIT" >&6; }
9058 else
9059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9060 $as_echo "no" >&6; }
9061 fi
9062
9063
9064 fi
9065 if test -z "$ac_cv_prog_NMEDIT"; then
9066   ac_ct_NMEDIT=$NMEDIT
9067   # Extract the first word of "nmedit", so it can be a program name with args.
9068 set dummy nmedit; ac_word=$2
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9070 $as_echo_n "checking for $ac_word... " >&6; }
9071 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9072   $as_echo_n "(cached) " >&6
9073 else
9074   if test -n "$ac_ct_NMEDIT"; then
9075   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9076 else
9077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9078 for as_dir in $PATH
9079 do
9080   IFS=$as_save_IFS
9081   test -z "$as_dir" && as_dir=.
9082     for ac_exec_ext in '' $ac_executable_extensions; do
9083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9084     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9085     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9086     break 2
9087   fi
9088 done
9089   done
9090 IFS=$as_save_IFS
9091
9092 fi
9093 fi
9094 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9095 if test -n "$ac_ct_NMEDIT"; then
9096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9097 $as_echo "$ac_ct_NMEDIT" >&6; }
9098 else
9099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9100 $as_echo "no" >&6; }
9101 fi
9102
9103   if test "x$ac_ct_NMEDIT" = x; then
9104     NMEDIT=":"
9105   else
9106     case $cross_compiling:$ac_tool_warned in
9107 yes:)
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9110 ac_tool_warned=yes ;;
9111 esac
9112     NMEDIT=$ac_ct_NMEDIT
9113   fi
9114 else
9115   NMEDIT="$ac_cv_prog_NMEDIT"
9116 fi
9117
9118     if test -n "$ac_tool_prefix"; then
9119   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9120 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9122 $as_echo_n "checking for $ac_word... " >&6; }
9123 if test "${ac_cv_prog_LIPO+set}" = set; then :
9124   $as_echo_n "(cached) " >&6
9125 else
9126   if test -n "$LIPO"; then
9127   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9128 else
9129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9130 for as_dir in $PATH
9131 do
9132   IFS=$as_save_IFS
9133   test -z "$as_dir" && as_dir=.
9134     for ac_exec_ext in '' $ac_executable_extensions; do
9135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9136     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9138     break 2
9139   fi
9140 done
9141   done
9142 IFS=$as_save_IFS
9143
9144 fi
9145 fi
9146 LIPO=$ac_cv_prog_LIPO
9147 if test -n "$LIPO"; then
9148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9149 $as_echo "$LIPO" >&6; }
9150 else
9151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9152 $as_echo "no" >&6; }
9153 fi
9154
9155
9156 fi
9157 if test -z "$ac_cv_prog_LIPO"; then
9158   ac_ct_LIPO=$LIPO
9159   # Extract the first word of "lipo", so it can be a program name with args.
9160 set dummy lipo; ac_word=$2
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9162 $as_echo_n "checking for $ac_word... " >&6; }
9163 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9164   $as_echo_n "(cached) " >&6
9165 else
9166   if test -n "$ac_ct_LIPO"; then
9167   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9168 else
9169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9170 for as_dir in $PATH
9171 do
9172   IFS=$as_save_IFS
9173   test -z "$as_dir" && as_dir=.
9174     for ac_exec_ext in '' $ac_executable_extensions; do
9175   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9176     ac_cv_prog_ac_ct_LIPO="lipo"
9177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9178     break 2
9179   fi
9180 done
9181   done
9182 IFS=$as_save_IFS
9183
9184 fi
9185 fi
9186 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9187 if test -n "$ac_ct_LIPO"; then
9188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9189 $as_echo "$ac_ct_LIPO" >&6; }
9190 else
9191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9192 $as_echo "no" >&6; }
9193 fi
9194
9195   if test "x$ac_ct_LIPO" = x; then
9196     LIPO=":"
9197   else
9198     case $cross_compiling:$ac_tool_warned in
9199 yes:)
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9202 ac_tool_warned=yes ;;
9203 esac
9204     LIPO=$ac_ct_LIPO
9205   fi
9206 else
9207   LIPO="$ac_cv_prog_LIPO"
9208 fi
9209
9210     if test -n "$ac_tool_prefix"; then
9211   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9212 set dummy ${ac_tool_prefix}otool; ac_word=$2
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9214 $as_echo_n "checking for $ac_word... " >&6; }
9215 if test "${ac_cv_prog_OTOOL+set}" = set; then :
9216   $as_echo_n "(cached) " >&6
9217 else
9218   if test -n "$OTOOL"; then
9219   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9220 else
9221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9222 for as_dir in $PATH
9223 do
9224   IFS=$as_save_IFS
9225   test -z "$as_dir" && as_dir=.
9226     for ac_exec_ext in '' $ac_executable_extensions; do
9227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9228     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9230     break 2
9231   fi
9232 done
9233   done
9234 IFS=$as_save_IFS
9235
9236 fi
9237 fi
9238 OTOOL=$ac_cv_prog_OTOOL
9239 if test -n "$OTOOL"; then
9240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9241 $as_echo "$OTOOL" >&6; }
9242 else
9243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9244 $as_echo "no" >&6; }
9245 fi
9246
9247
9248 fi
9249 if test -z "$ac_cv_prog_OTOOL"; then
9250   ac_ct_OTOOL=$OTOOL
9251   # Extract the first word of "otool", so it can be a program name with args.
9252 set dummy otool; ac_word=$2
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9254 $as_echo_n "checking for $ac_word... " >&6; }
9255 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9256   $as_echo_n "(cached) " >&6
9257 else
9258   if test -n "$ac_ct_OTOOL"; then
9259   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9260 else
9261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9262 for as_dir in $PATH
9263 do
9264   IFS=$as_save_IFS
9265   test -z "$as_dir" && as_dir=.
9266     for ac_exec_ext in '' $ac_executable_extensions; do
9267   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9268     ac_cv_prog_ac_ct_OTOOL="otool"
9269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9270     break 2
9271   fi
9272 done
9273   done
9274 IFS=$as_save_IFS
9275
9276 fi
9277 fi
9278 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9279 if test -n "$ac_ct_OTOOL"; then
9280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9281 $as_echo "$ac_ct_OTOOL" >&6; }
9282 else
9283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9284 $as_echo "no" >&6; }
9285 fi
9286
9287   if test "x$ac_ct_OTOOL" = x; then
9288     OTOOL=":"
9289   else
9290     case $cross_compiling:$ac_tool_warned in
9291 yes:)
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9294 ac_tool_warned=yes ;;
9295 esac
9296     OTOOL=$ac_ct_OTOOL
9297   fi
9298 else
9299   OTOOL="$ac_cv_prog_OTOOL"
9300 fi
9301
9302     if test -n "$ac_tool_prefix"; then
9303   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9304 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9306 $as_echo_n "checking for $ac_word... " >&6; }
9307 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9308   $as_echo_n "(cached) " >&6
9309 else
9310   if test -n "$OTOOL64"; then
9311   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9312 else
9313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9314 for as_dir in $PATH
9315 do
9316   IFS=$as_save_IFS
9317   test -z "$as_dir" && as_dir=.
9318     for ac_exec_ext in '' $ac_executable_extensions; do
9319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9320     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9322     break 2
9323   fi
9324 done
9325   done
9326 IFS=$as_save_IFS
9327
9328 fi
9329 fi
9330 OTOOL64=$ac_cv_prog_OTOOL64
9331 if test -n "$OTOOL64"; then
9332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9333 $as_echo "$OTOOL64" >&6; }
9334 else
9335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9336 $as_echo "no" >&6; }
9337 fi
9338
9339
9340 fi
9341 if test -z "$ac_cv_prog_OTOOL64"; then
9342   ac_ct_OTOOL64=$OTOOL64
9343   # Extract the first word of "otool64", so it can be a program name with args.
9344 set dummy otool64; ac_word=$2
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9346 $as_echo_n "checking for $ac_word... " >&6; }
9347 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9348   $as_echo_n "(cached) " >&6
9349 else
9350   if test -n "$ac_ct_OTOOL64"; then
9351   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9352 else
9353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9354 for as_dir in $PATH
9355 do
9356   IFS=$as_save_IFS
9357   test -z "$as_dir" && as_dir=.
9358     for ac_exec_ext in '' $ac_executable_extensions; do
9359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9360     ac_cv_prog_ac_ct_OTOOL64="otool64"
9361     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9362     break 2
9363   fi
9364 done
9365   done
9366 IFS=$as_save_IFS
9367
9368 fi
9369 fi
9370 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9371 if test -n "$ac_ct_OTOOL64"; then
9372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9373 $as_echo "$ac_ct_OTOOL64" >&6; }
9374 else
9375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9376 $as_echo "no" >&6; }
9377 fi
9378
9379   if test "x$ac_ct_OTOOL64" = x; then
9380     OTOOL64=":"
9381   else
9382     case $cross_compiling:$ac_tool_warned in
9383 yes:)
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9386 ac_tool_warned=yes ;;
9387 esac
9388     OTOOL64=$ac_ct_OTOOL64
9389   fi
9390 else
9391   OTOOL64="$ac_cv_prog_OTOOL64"
9392 fi
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9421 $as_echo_n "checking for -single_module linker flag... " >&6; }
9422 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9423   $as_echo_n "(cached) " >&6
9424 else
9425   lt_cv_apple_cc_single_mod=no
9426       if test -z "${LT_MULTI_MODULE}"; then
9427         # By default we will add the -single_module flag. You can override
9428         # by either setting the environment variable LT_MULTI_MODULE
9429         # non-empty at configure time, or by adding -multi_module to the
9430         # link flags.
9431         rm -rf libconftest.dylib*
9432         echo "int foo(void){return 1;}" > conftest.c
9433         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9434 -dynamiclib -Wl,-single_module conftest.c" >&5
9435         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9436           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9437         _lt_result=$?
9438         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9439           lt_cv_apple_cc_single_mod=yes
9440         else
9441           cat conftest.err >&5
9442         fi
9443         rm -rf libconftest.dylib*
9444         rm -f conftest.*
9445       fi
9446 fi
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9448 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9449     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9450 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9451 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9452   $as_echo_n "(cached) " >&6
9453 else
9454   lt_cv_ld_exported_symbols_list=no
9455       save_LDFLAGS=$LDFLAGS
9456       echo "_main" > conftest.sym
9457       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9458       if test x$gcc_no_link = xyes; then
9459   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9460 fi
9461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9462 /* end confdefs.h.  */
9463
9464 int
9465 main ()
9466 {
9467
9468   ;
9469   return 0;
9470 }
9471 _ACEOF
9472 if ac_fn_c_try_link "$LINENO"; then :
9473   lt_cv_ld_exported_symbols_list=yes
9474 else
9475   lt_cv_ld_exported_symbols_list=no
9476 fi
9477 rm -f core conftest.err conftest.$ac_objext \
9478     conftest$ac_exeext conftest.$ac_ext
9479         LDFLAGS="$save_LDFLAGS"
9480
9481 fi
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9483 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9484     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9485 $as_echo_n "checking for -force_load linker flag... " >&6; }
9486 if test "${lt_cv_ld_force_load+set}" = set; then :
9487   $as_echo_n "(cached) " >&6
9488 else
9489   lt_cv_ld_force_load=no
9490       cat > conftest.c << _LT_EOF
9491 int forced_loaded() { return 2;}
9492 _LT_EOF
9493       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9494       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9495       echo "$AR cru libconftest.a conftest.o" >&5
9496       $AR cru libconftest.a conftest.o 2>&5
9497       cat > conftest.c << _LT_EOF
9498 int main() { return 0;}
9499 _LT_EOF
9500       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9501       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9502       _lt_result=$?
9503       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9504         lt_cv_ld_force_load=yes
9505       else
9506         cat conftest.err >&5
9507       fi
9508         rm -f conftest.err libconftest.a conftest conftest.c
9509         rm -rf conftest.dSYM
9510
9511 fi
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9513 $as_echo "$lt_cv_ld_force_load" >&6; }
9514     case $host_os in
9515     rhapsody* | darwin1.[012])
9516       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9517     darwin1.*)
9518       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9519     darwin*) # darwin 5.x on
9520       # if running on 10.5 or later, the deployment target defaults
9521       # to the OS version, if on x86, and 10.4, the deployment
9522       # target defaults to 10.4. Don't you love it?
9523       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9524         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9525           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9526         10.[012]*)
9527           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9528         10.*)
9529           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9530       esac
9531     ;;
9532   esac
9533     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9534       _lt_dar_single_mod='$single_module'
9535     fi
9536     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9537       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9538     else
9539       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9540     fi
9541     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9542       _lt_dsymutil='~$DSYMUTIL $lib || :'
9543     else
9544       _lt_dsymutil=
9545     fi
9546     ;;
9547   esac
9548
9549 ac_ext=c
9550 ac_cpp='$CPP $CPPFLAGS'
9551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9555 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9556 # On Suns, sometimes $CPP names a directory.
9557 if test -n "$CPP" && test -d "$CPP"; then
9558   CPP=
9559 fi
9560 if test -z "$CPP"; then
9561   if test "${ac_cv_prog_CPP+set}" = set; then :
9562   $as_echo_n "(cached) " >&6
9563 else
9564       # Double quotes because CPP needs to be expanded
9565     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9566     do
9567       ac_preproc_ok=false
9568 for ac_c_preproc_warn_flag in '' yes
9569 do
9570   # Use a header file that comes with gcc, so configuring glibc
9571   # with a fresh cross-compiler works.
9572   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9573   # <limits.h> exists even on freestanding compilers.
9574   # On the NeXT, cc -E runs the code through the compiler's parser,
9575   # not just through cpp. "Syntax error" is here to catch this case.
9576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9577 /* end confdefs.h.  */
9578 #ifdef __STDC__
9579 # include <limits.h>
9580 #else
9581 # include <assert.h>
9582 #endif
9583                      Syntax error
9584 _ACEOF
9585 if ac_fn_c_try_cpp "$LINENO"; then :
9586
9587 else
9588   # Broken: fails on valid input.
9589 continue
9590 fi
9591 rm -f conftest.err conftest.$ac_ext
9592
9593   # OK, works on sane cases.  Now check whether nonexistent headers
9594   # can be detected and how.
9595   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9596 /* end confdefs.h.  */
9597 #include <ac_nonexistent.h>
9598 _ACEOF
9599 if ac_fn_c_try_cpp "$LINENO"; then :
9600   # Broken: success on invalid input.
9601 continue
9602 else
9603   # Passes both tests.
9604 ac_preproc_ok=:
9605 break
9606 fi
9607 rm -f conftest.err conftest.$ac_ext
9608
9609 done
9610 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9611 rm -f conftest.err conftest.$ac_ext
9612 if $ac_preproc_ok; then :
9613   break
9614 fi
9615
9616     done
9617     ac_cv_prog_CPP=$CPP
9618
9619 fi
9620   CPP=$ac_cv_prog_CPP
9621 else
9622   ac_cv_prog_CPP=$CPP
9623 fi
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9625 $as_echo "$CPP" >&6; }
9626 ac_preproc_ok=false
9627 for ac_c_preproc_warn_flag in '' yes
9628 do
9629   # Use a header file that comes with gcc, so configuring glibc
9630   # with a fresh cross-compiler works.
9631   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9632   # <limits.h> exists even on freestanding compilers.
9633   # On the NeXT, cc -E runs the code through the compiler's parser,
9634   # not just through cpp. "Syntax error" is here to catch this case.
9635   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9636 /* end confdefs.h.  */
9637 #ifdef __STDC__
9638 # include <limits.h>
9639 #else
9640 # include <assert.h>
9641 #endif
9642                      Syntax error
9643 _ACEOF
9644 if ac_fn_c_try_cpp "$LINENO"; then :
9645
9646 else
9647   # Broken: fails on valid input.
9648 continue
9649 fi
9650 rm -f conftest.err conftest.$ac_ext
9651
9652   # OK, works on sane cases.  Now check whether nonexistent headers
9653   # can be detected and how.
9654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9655 /* end confdefs.h.  */
9656 #include <ac_nonexistent.h>
9657 _ACEOF
9658 if ac_fn_c_try_cpp "$LINENO"; then :
9659   # Broken: success on invalid input.
9660 continue
9661 else
9662   # Passes both tests.
9663 ac_preproc_ok=:
9664 break
9665 fi
9666 rm -f conftest.err conftest.$ac_ext
9667
9668 done
9669 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9670 rm -f conftest.err conftest.$ac_ext
9671 if $ac_preproc_ok; then :
9672
9673 else
9674   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9676 as_fn_error "C preprocessor \"$CPP\" fails sanity check
9677 See \`config.log' for more details." "$LINENO" 5; }
9678 fi
9679
9680 ac_ext=c
9681 ac_cpp='$CPP $CPPFLAGS'
9682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9685
9686
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9688 $as_echo_n "checking for ANSI C header files... " >&6; }
9689 if test "${ac_cv_header_stdc+set}" = set; then :
9690   $as_echo_n "(cached) " >&6
9691 else
9692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693 /* end confdefs.h.  */
9694 #include <stdlib.h>
9695 #include <stdarg.h>
9696 #include <string.h>
9697 #include <float.h>
9698
9699 int
9700 main ()
9701 {
9702
9703   ;
9704   return 0;
9705 }
9706 _ACEOF
9707 if ac_fn_c_try_compile "$LINENO"; then :
9708   ac_cv_header_stdc=yes
9709 else
9710   ac_cv_header_stdc=no
9711 fi
9712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9713
9714 if test $ac_cv_header_stdc = yes; then
9715   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9717 /* end confdefs.h.  */
9718 #include <string.h>
9719
9720 _ACEOF
9721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9722   $EGREP "memchr" >/dev/null 2>&1; then :
9723
9724 else
9725   ac_cv_header_stdc=no
9726 fi
9727 rm -f conftest*
9728
9729 fi
9730
9731 if test $ac_cv_header_stdc = yes; then
9732   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9734 /* end confdefs.h.  */
9735 #include <stdlib.h>
9736
9737 _ACEOF
9738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9739   $EGREP "free" >/dev/null 2>&1; then :
9740
9741 else
9742   ac_cv_header_stdc=no
9743 fi
9744 rm -f conftest*
9745
9746 fi
9747
9748 if test $ac_cv_header_stdc = yes; then
9749   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9750   if test "$cross_compiling" = yes; then :
9751   :
9752 else
9753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9754 /* end confdefs.h.  */
9755 #include <ctype.h>
9756 #include <stdlib.h>
9757 #if ((' ' & 0x0FF) == 0x020)
9758 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9759 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9760 #else
9761 # define ISLOWER(c) \
9762                    (('a' <= (c) && (c) <= 'i') \
9763                      || ('j' <= (c) && (c) <= 'r') \
9764                      || ('s' <= (c) && (c) <= 'z'))
9765 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9766 #endif
9767
9768 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9769 int
9770 main ()
9771 {
9772   int i;
9773   for (i = 0; i < 256; i++)
9774     if (XOR (islower (i), ISLOWER (i))
9775         || toupper (i) != TOUPPER (i))
9776       return 2;
9777   return 0;
9778 }
9779 _ACEOF
9780 if ac_fn_c_try_run "$LINENO"; then :
9781
9782 else
9783   ac_cv_header_stdc=no
9784 fi
9785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9786   conftest.$ac_objext conftest.beam conftest.$ac_ext
9787 fi
9788
9789 fi
9790 fi
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9792 $as_echo "$ac_cv_header_stdc" >&6; }
9793 if test $ac_cv_header_stdc = yes; then
9794
9795 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9796
9797 fi
9798
9799 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9800 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9801                   inttypes.h stdint.h unistd.h
9802 do :
9803   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9804 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9805 "
9806 eval as_val=\$$as_ac_Header
9807    if test "x$as_val" = x""yes; then :
9808   cat >>confdefs.h <<_ACEOF
9809 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9810 _ACEOF
9811
9812 fi
9813
9814 done
9815
9816
9817 for ac_header in dlfcn.h
9818 do :
9819   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9820 "
9821 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9822   cat >>confdefs.h <<_ACEOF
9823 #define HAVE_DLFCN_H 1
9824 _ACEOF
9825
9826 fi
9827
9828 done
9829
9830
9831
9832
9833
9834
9835 # Set options
9836
9837
9838
9839
9840   enable_win32_dll=no
9841
9842
9843             # Check whether --enable-shared was given.
9844 if test "${enable_shared+set}" = set; then :
9845   enableval=$enable_shared; p=${PACKAGE-default}
9846     case $enableval in
9847     yes) enable_shared=yes ;;
9848     no) enable_shared=no ;;
9849     *)
9850       enable_shared=no
9851       # Look at the argument we got.  We use all the common list separators.
9852       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9853       for pkg in $enableval; do
9854         IFS="$lt_save_ifs"
9855         if test "X$pkg" = "X$p"; then
9856           enable_shared=yes
9857         fi
9858       done
9859       IFS="$lt_save_ifs"
9860       ;;
9861     esac
9862 else
9863   enable_shared=yes
9864 fi
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874   # Check whether --enable-static was given.
9875 if test "${enable_static+set}" = set; then :
9876   enableval=$enable_static; p=${PACKAGE-default}
9877     case $enableval in
9878     yes) enable_static=yes ;;
9879     no) enable_static=no ;;
9880     *)
9881      enable_static=no
9882       # Look at the argument we got.  We use all the common list separators.
9883       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9884       for pkg in $enableval; do
9885         IFS="$lt_save_ifs"
9886         if test "X$pkg" = "X$p"; then
9887           enable_static=yes
9888         fi
9889       done
9890       IFS="$lt_save_ifs"
9891       ;;
9892     esac
9893 else
9894   enable_static=yes
9895 fi
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906 # Check whether --with-pic was given.
9907 if test "${with_pic+set}" = set; then :
9908   withval=$with_pic; pic_mode="$withval"
9909 else
9910   pic_mode=default
9911 fi
9912
9913
9914 test -z "$pic_mode" && pic_mode=default
9915
9916
9917
9918
9919
9920
9921
9922   # Check whether --enable-fast-install was given.
9923 if test "${enable_fast_install+set}" = set; then :
9924   enableval=$enable_fast_install; p=${PACKAGE-default}
9925     case $enableval in
9926     yes) enable_fast_install=yes ;;
9927     no) enable_fast_install=no ;;
9928     *)
9929       enable_fast_install=no
9930       # Look at the argument we got.  We use all the common list separators.
9931       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9932       for pkg in $enableval; do
9933         IFS="$lt_save_ifs"
9934         if test "X$pkg" = "X$p"; then
9935           enable_fast_install=yes
9936         fi
9937       done
9938       IFS="$lt_save_ifs"
9939       ;;
9940     esac
9941 else
9942   enable_fast_install=yes
9943 fi
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955 # This can be used to rebuild libtool when needed
9956 LIBTOOL_DEPS="$ltmain"
9957
9958 # Always use our own libtool.
9959 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986 test -z "$LN_S" && LN_S="ln -s"
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001 if test -n "${ZSH_VERSION+set}" ; then
10002    setopt NO_GLOB_SUBST
10003 fi
10004
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10006 $as_echo_n "checking for objdir... " >&6; }
10007 if test "${lt_cv_objdir+set}" = set; then :
10008   $as_echo_n "(cached) " >&6
10009 else
10010   rm -f .libs 2>/dev/null
10011 mkdir .libs 2>/dev/null
10012 if test -d .libs; then
10013   lt_cv_objdir=.libs
10014 else
10015   # MS-DOS does not allow filenames that begin with a dot.
10016   lt_cv_objdir=_libs
10017 fi
10018 rmdir .libs 2>/dev/null
10019 fi
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10021 $as_echo "$lt_cv_objdir" >&6; }
10022 objdir=$lt_cv_objdir
10023
10024
10025
10026
10027
10028 cat >>confdefs.h <<_ACEOF
10029 #define LT_OBJDIR "$lt_cv_objdir/"
10030 _ACEOF
10031
10032
10033
10034
10035 case $host_os in
10036 aix3*)
10037   # AIX sometimes has problems with the GCC collect2 program.  For some
10038   # reason, if we set the COLLECT_NAMES environment variable, the problems
10039   # vanish in a puff of smoke.
10040   if test "X${COLLECT_NAMES+set}" != Xset; then
10041     COLLECT_NAMES=
10042     export COLLECT_NAMES
10043   fi
10044   ;;
10045 esac
10046
10047 # Global variables:
10048 ofile=libtool
10049 can_build_shared=yes
10050
10051 # All known linkers require a `.a' archive for static linking (except MSVC,
10052 # which needs '.lib').
10053 libext=a
10054
10055 with_gnu_ld="$lt_cv_prog_gnu_ld"
10056
10057 old_CC="$CC"
10058 old_CFLAGS="$CFLAGS"
10059
10060 # Set sane defaults for various variables
10061 test -z "$CC" && CC=cc
10062 test -z "$LTCC" && LTCC=$CC
10063 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10064 test -z "$LD" && LD=ld
10065 test -z "$ac_objext" && ac_objext=o
10066
10067 for cc_temp in $compiler""; do
10068   case $cc_temp in
10069     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10070     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10071     \-*) ;;
10072     *) break;;
10073   esac
10074 done
10075 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10076
10077
10078 # Only perform the check for file, if the check method requires it
10079 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10080 case $deplibs_check_method in
10081 file_magic*)
10082   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10083     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10084 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10085 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10086   $as_echo_n "(cached) " >&6
10087 else
10088   case $MAGIC_CMD in
10089 [\\/*] |  ?:[\\/]*)
10090   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10091   ;;
10092 *)
10093   lt_save_MAGIC_CMD="$MAGIC_CMD"
10094   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10095   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10096   for ac_dir in $ac_dummy; do
10097     IFS="$lt_save_ifs"
10098     test -z "$ac_dir" && ac_dir=.
10099     if test -f $ac_dir/${ac_tool_prefix}file; then
10100       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10101       if test -n "$file_magic_test_file"; then
10102         case $deplibs_check_method in
10103         "file_magic "*)
10104           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10105           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10106           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10107             $EGREP "$file_magic_regex" > /dev/null; then
10108             :
10109           else
10110             cat <<_LT_EOF 1>&2
10111
10112 *** Warning: the command libtool uses to detect shared libraries,
10113 *** $file_magic_cmd, produces output that libtool cannot recognize.
10114 *** The result is that libtool may fail to recognize shared libraries
10115 *** as such.  This will affect the creation of libtool libraries that
10116 *** depend on shared libraries, but programs linked with such libtool
10117 *** libraries will work regardless of this problem.  Nevertheless, you
10118 *** may want to report the problem to your system manager and/or to
10119 *** bug-libtool@gnu.org
10120
10121 _LT_EOF
10122           fi ;;
10123         esac
10124       fi
10125       break
10126     fi
10127   done
10128   IFS="$lt_save_ifs"
10129   MAGIC_CMD="$lt_save_MAGIC_CMD"
10130   ;;
10131 esac
10132 fi
10133
10134 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10135 if test -n "$MAGIC_CMD"; then
10136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10137 $as_echo "$MAGIC_CMD" >&6; }
10138 else
10139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10140 $as_echo "no" >&6; }
10141 fi
10142
10143
10144
10145
10146
10147 if test -z "$lt_cv_path_MAGIC_CMD"; then
10148   if test -n "$ac_tool_prefix"; then
10149     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10150 $as_echo_n "checking for file... " >&6; }
10151 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10152   $as_echo_n "(cached) " >&6
10153 else
10154   case $MAGIC_CMD in
10155 [\\/*] |  ?:[\\/]*)
10156   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10157   ;;
10158 *)
10159   lt_save_MAGIC_CMD="$MAGIC_CMD"
10160   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10161   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10162   for ac_dir in $ac_dummy; do
10163     IFS="$lt_save_ifs"
10164     test -z "$ac_dir" && ac_dir=.
10165     if test -f $ac_dir/file; then
10166       lt_cv_path_MAGIC_CMD="$ac_dir/file"
10167       if test -n "$file_magic_test_file"; then
10168         case $deplibs_check_method in
10169         "file_magic "*)
10170           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10171           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10172           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10173             $EGREP "$file_magic_regex" > /dev/null; then
10174             :
10175           else
10176             cat <<_LT_EOF 1>&2
10177
10178 *** Warning: the command libtool uses to detect shared libraries,
10179 *** $file_magic_cmd, produces output that libtool cannot recognize.
10180 *** The result is that libtool may fail to recognize shared libraries
10181 *** as such.  This will affect the creation of libtool libraries that
10182 *** depend on shared libraries, but programs linked with such libtool
10183 *** libraries will work regardless of this problem.  Nevertheless, you
10184 *** may want to report the problem to your system manager and/or to
10185 *** bug-libtool@gnu.org
10186
10187 _LT_EOF
10188           fi ;;
10189         esac
10190       fi
10191       break
10192     fi
10193   done
10194   IFS="$lt_save_ifs"
10195   MAGIC_CMD="$lt_save_MAGIC_CMD"
10196   ;;
10197 esac
10198 fi
10199
10200 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10201 if test -n "$MAGIC_CMD"; then
10202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10203 $as_echo "$MAGIC_CMD" >&6; }
10204 else
10205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10206 $as_echo "no" >&6; }
10207 fi
10208
10209
10210   else
10211     MAGIC_CMD=:
10212   fi
10213 fi
10214
10215   fi
10216   ;;
10217 esac
10218
10219 # Use C for the default configuration in the libtool script
10220
10221 lt_save_CC="$CC"
10222 ac_ext=c
10223 ac_cpp='$CPP $CPPFLAGS'
10224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10227
10228
10229 # Source file extension for C test sources.
10230 ac_ext=c
10231
10232 # Object file extension for compiled C test sources.
10233 objext=o
10234 objext=$objext
10235
10236 # Code to be used in simple compile tests
10237 lt_simple_compile_test_code="int some_variable = 0;"
10238
10239 # Code to be used in simple link tests
10240 lt_simple_link_test_code='int main(){return(0);}'
10241
10242
10243
10244
10245
10246
10247
10248 # If no C compiler was specified, use CC.
10249 LTCC=${LTCC-"$CC"}
10250
10251 # If no C compiler flags were specified, use CFLAGS.
10252 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10253
10254 # Allow CC to be a program name with arguments.
10255 compiler=$CC
10256
10257 # Save the default compiler, since it gets overwritten when the other
10258 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10259 compiler_DEFAULT=$CC
10260
10261 # save warnings/boilerplate of simple test code
10262 ac_outfile=conftest.$ac_objext
10263 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10264 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10265 _lt_compiler_boilerplate=`cat conftest.err`
10266 $RM conftest*
10267
10268 ac_outfile=conftest.$ac_objext
10269 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10270 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10271 _lt_linker_boilerplate=`cat conftest.err`
10272 $RM -r conftest*
10273
10274
10275 ## CAVEAT EMPTOR:
10276 ## There is no encapsulation within the following macros, do not change
10277 ## the running order or otherwise move them around unless you know exactly
10278 ## what you are doing...
10279 if test -n "$compiler"; then
10280
10281 lt_prog_compiler_no_builtin_flag=
10282
10283 if test "$GCC" = yes; then
10284   case $cc_basename in
10285   nvcc*)
10286     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10287   *)
10288     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10289   esac
10290
10291   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10292 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10293 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10294   $as_echo_n "(cached) " >&6
10295 else
10296   lt_cv_prog_compiler_rtti_exceptions=no
10297    ac_outfile=conftest.$ac_objext
10298    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10299    lt_compiler_flag="-fno-rtti -fno-exceptions"
10300    # Insert the option either (1) after the last *FLAGS variable, or
10301    # (2) before a word containing "conftest.", or (3) at the end.
10302    # Note that $ac_compile itself does not contain backslashes and begins
10303    # with a dollar sign (not a hyphen), so the echo should work correctly.
10304    # The option is referenced via a variable to avoid confusing sed.
10305    lt_compile=`echo "$ac_compile" | $SED \
10306    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10307    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10308    -e 's:$: $lt_compiler_flag:'`
10309    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10310    (eval "$lt_compile" 2>conftest.err)
10311    ac_status=$?
10312    cat conftest.err >&5
10313    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314    if (exit $ac_status) && test -s "$ac_outfile"; then
10315      # The compiler can only warn and ignore the option if not recognized
10316      # So say no if there are warnings other than the usual output.
10317      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10318      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10319      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10320        lt_cv_prog_compiler_rtti_exceptions=yes
10321      fi
10322    fi
10323    $RM conftest*
10324
10325 fi
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10327 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10328
10329 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10330     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10331 else
10332     :
10333 fi
10334
10335 fi
10336
10337
10338
10339
10340
10341
10342   lt_prog_compiler_wl=
10343 lt_prog_compiler_pic=
10344 lt_prog_compiler_static=
10345
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10347 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10348
10349   if test "$GCC" = yes; then
10350     lt_prog_compiler_wl='-Wl,'
10351     lt_prog_compiler_static='-static'
10352
10353     case $host_os in
10354       aix*)
10355       # All AIX code is PIC.
10356       if test "$host_cpu" = ia64; then
10357         # AIX 5 now supports IA64 processor
10358         lt_prog_compiler_static='-Bstatic'
10359       fi
10360       ;;
10361
10362     amigaos*)
10363       case $host_cpu in
10364       powerpc)
10365             # see comment about AmigaOS4 .so support
10366             lt_prog_compiler_pic='-fPIC'
10367         ;;
10368       m68k)
10369             # FIXME: we need at least 68020 code to build shared libraries, but
10370             # adding the `-m68020' flag to GCC prevents building anything better,
10371             # like `-m68040'.
10372             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10373         ;;
10374       esac
10375       ;;
10376
10377     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10378       # PIC is the default for these OSes.
10379       ;;
10380
10381     mingw* | cygwin* | pw32* | os2* | cegcc*)
10382       # This hack is so that the source file can tell whether it is being
10383       # built for inclusion in a dll (and should export symbols for example).
10384       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10385       # (--disable-auto-import) libraries
10386       lt_prog_compiler_pic='-DDLL_EXPORT'
10387       ;;
10388
10389     darwin* | rhapsody*)
10390       # PIC is the default on this platform
10391       # Common symbols not allowed in MH_DYLIB files
10392       lt_prog_compiler_pic='-fno-common'
10393       ;;
10394
10395     haiku*)
10396       # PIC is the default for Haiku.
10397       # The "-static" flag exists, but is broken.
10398       lt_prog_compiler_static=
10399       ;;
10400
10401     hpux*)
10402       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10403       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10404       # sets the default TLS model and affects inlining.
10405       case $host_cpu in
10406       hppa*64*)
10407         # +Z the default
10408         ;;
10409       *)
10410         lt_prog_compiler_pic='-fPIC'
10411         ;;
10412       esac
10413       ;;
10414
10415     interix[3-9]*)
10416       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10417       # Instead, we relocate shared libraries at runtime.
10418       ;;
10419
10420     msdosdjgpp*)
10421       # Just because we use GCC doesn't mean we suddenly get shared libraries
10422       # on systems that don't support them.
10423       lt_prog_compiler_can_build_shared=no
10424       enable_shared=no
10425       ;;
10426
10427     *nto* | *qnx*)
10428       # QNX uses GNU C++, but need to define -shared option too, otherwise
10429       # it will coredump.
10430       lt_prog_compiler_pic='-fPIC -shared'
10431       ;;
10432
10433     sysv4*MP*)
10434       if test -d /usr/nec; then
10435         lt_prog_compiler_pic=-Kconform_pic
10436       fi
10437       ;;
10438
10439     *)
10440       lt_prog_compiler_pic='-fPIC'
10441       ;;
10442     esac
10443
10444     case $cc_basename in
10445     nvcc*) # Cuda Compiler Driver 2.2
10446       lt_prog_compiler_wl='-Xlinker '
10447       lt_prog_compiler_pic='-Xcompiler -fPIC'
10448       ;;
10449     esac
10450   else
10451     # PORTME Check for flag to pass linker flags through the system compiler.
10452     case $host_os in
10453     aix*)
10454       lt_prog_compiler_wl='-Wl,'
10455       if test "$host_cpu" = ia64; then
10456         # AIX 5 now supports IA64 processor
10457         lt_prog_compiler_static='-Bstatic'
10458       else
10459         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10460       fi
10461       ;;
10462
10463     mingw* | cygwin* | pw32* | os2* | cegcc*)
10464       # This hack is so that the source file can tell whether it is being
10465       # built for inclusion in a dll (and should export symbols for example).
10466       lt_prog_compiler_pic='-DDLL_EXPORT'
10467       ;;
10468
10469     hpux9* | hpux10* | hpux11*)
10470       lt_prog_compiler_wl='-Wl,'
10471       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10472       # not for PA HP-UX.
10473       case $host_cpu in
10474       hppa*64*|ia64*)
10475         # +Z the default
10476         ;;
10477       *)
10478         lt_prog_compiler_pic='+Z'
10479         ;;
10480       esac
10481       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10482       lt_prog_compiler_static='${wl}-a ${wl}archive'
10483       ;;
10484
10485     irix5* | irix6* | nonstopux*)
10486       lt_prog_compiler_wl='-Wl,'
10487       # PIC (with -KPIC) is the default.
10488       lt_prog_compiler_static='-non_shared'
10489       ;;
10490
10491     linux* | k*bsd*-gnu | kopensolaris*-gnu)
10492       case $cc_basename in
10493       # old Intel for x86_64 which still supported -KPIC.
10494       ecc*)
10495         lt_prog_compiler_wl='-Wl,'
10496         lt_prog_compiler_pic='-KPIC'
10497         lt_prog_compiler_static='-static'
10498         ;;
10499       # icc used to be incompatible with GCC.
10500       # ICC 10 doesn't accept -KPIC any more.
10501       icc* | ifort*)
10502         lt_prog_compiler_wl='-Wl,'
10503         lt_prog_compiler_pic='-fPIC'
10504         lt_prog_compiler_static='-static'
10505         ;;
10506       # Lahey Fortran 8.1.
10507       lf95*)
10508         lt_prog_compiler_wl='-Wl,'
10509         lt_prog_compiler_pic='--shared'
10510         lt_prog_compiler_static='--static'
10511         ;;
10512       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10513         # Portland Group compilers (*not* the Pentium gcc compiler,
10514         # which looks to be a dead project)
10515         lt_prog_compiler_wl='-Wl,'
10516         lt_prog_compiler_pic='-fpic'
10517         lt_prog_compiler_static='-Bstatic'
10518         ;;
10519       ccc*)
10520         lt_prog_compiler_wl='-Wl,'
10521         # All Alpha code is PIC.
10522         lt_prog_compiler_static='-non_shared'
10523         ;;
10524       xl* | bgxl* | bgf* | mpixl*)
10525         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10526         lt_prog_compiler_wl='-Wl,'
10527         lt_prog_compiler_pic='-qpic'
10528         lt_prog_compiler_static='-qstaticlink'
10529         ;;
10530       *)
10531         case `$CC -V 2>&1 | sed 5q` in
10532         *Sun\ F* | *Sun*Fortran*)
10533           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10534           lt_prog_compiler_pic='-KPIC'
10535           lt_prog_compiler_static='-Bstatic'
10536           lt_prog_compiler_wl=''
10537           ;;
10538         *Sun\ C*)
10539           # Sun C 5.9
10540           lt_prog_compiler_pic='-KPIC'
10541           lt_prog_compiler_static='-Bstatic'
10542           lt_prog_compiler_wl='-Wl,'
10543           ;;
10544         esac
10545         ;;
10546       esac
10547       ;;
10548
10549     newsos6)
10550       lt_prog_compiler_pic='-KPIC'
10551       lt_prog_compiler_static='-Bstatic'
10552       ;;
10553
10554     *nto* | *qnx*)
10555       # QNX uses GNU C++, but need to define -shared option too, otherwise
10556       # it will coredump.
10557       lt_prog_compiler_pic='-fPIC -shared'
10558       ;;
10559
10560     osf3* | osf4* | osf5*)
10561       lt_prog_compiler_wl='-Wl,'
10562       # All OSF/1 code is PIC.
10563       lt_prog_compiler_static='-non_shared'
10564       ;;
10565
10566     rdos*)
10567       lt_prog_compiler_static='-non_shared'
10568       ;;
10569
10570     solaris*)
10571       lt_prog_compiler_pic='-KPIC'
10572       lt_prog_compiler_static='-Bstatic'
10573       case $cc_basename in
10574       f77* | f90* | f95*)
10575         lt_prog_compiler_wl='-Qoption ld ';;
10576       *)
10577         lt_prog_compiler_wl='-Wl,';;
10578       esac
10579       ;;
10580
10581     sunos4*)
10582       lt_prog_compiler_wl='-Qoption ld '
10583       lt_prog_compiler_pic='-PIC'
10584       lt_prog_compiler_static='-Bstatic'
10585       ;;
10586
10587     sysv4 | sysv4.2uw2* | sysv4.3*)
10588       lt_prog_compiler_wl='-Wl,'
10589       lt_prog_compiler_pic='-KPIC'
10590       lt_prog_compiler_static='-Bstatic'
10591       ;;
10592
10593     sysv4*MP*)
10594       if test -d /usr/nec ;then
10595         lt_prog_compiler_pic='-Kconform_pic'
10596         lt_prog_compiler_static='-Bstatic'
10597       fi
10598       ;;
10599
10600     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10601       lt_prog_compiler_wl='-Wl,'
10602       lt_prog_compiler_pic='-KPIC'
10603       lt_prog_compiler_static='-Bstatic'
10604       ;;
10605
10606     unicos*)
10607       lt_prog_compiler_wl='-Wl,'
10608       lt_prog_compiler_can_build_shared=no
10609       ;;
10610
10611     uts4*)
10612       lt_prog_compiler_pic='-pic'
10613       lt_prog_compiler_static='-Bstatic'
10614       ;;
10615
10616     *)
10617       lt_prog_compiler_can_build_shared=no
10618       ;;
10619     esac
10620   fi
10621
10622 case $host_os in
10623   # For platforms which do not support PIC, -DPIC is meaningless:
10624   *djgpp*)
10625     lt_prog_compiler_pic=
10626     ;;
10627   *)
10628     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10629     ;;
10630 esac
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10632 $as_echo "$lt_prog_compiler_pic" >&6; }
10633
10634
10635
10636
10637
10638
10639 #
10640 # Check to make sure the PIC flag actually works.
10641 #
10642 if test -n "$lt_prog_compiler_pic"; then
10643   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10644 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10645 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10646   $as_echo_n "(cached) " >&6
10647 else
10648   lt_cv_prog_compiler_pic_works=no
10649    ac_outfile=conftest.$ac_objext
10650    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10651    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10652    # Insert the option either (1) after the last *FLAGS variable, or
10653    # (2) before a word containing "conftest.", or (3) at the end.
10654    # Note that $ac_compile itself does not contain backslashes and begins
10655    # with a dollar sign (not a hyphen), so the echo should work correctly.
10656    # The option is referenced via a variable to avoid confusing sed.
10657    lt_compile=`echo "$ac_compile" | $SED \
10658    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10659    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10660    -e 's:$: $lt_compiler_flag:'`
10661    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10662    (eval "$lt_compile" 2>conftest.err)
10663    ac_status=$?
10664    cat conftest.err >&5
10665    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666    if (exit $ac_status) && test -s "$ac_outfile"; then
10667      # The compiler can only warn and ignore the option if not recognized
10668      # So say no if there are warnings other than the usual output.
10669      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10670      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10671      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10672        lt_cv_prog_compiler_pic_works=yes
10673      fi
10674    fi
10675    $RM conftest*
10676
10677 fi
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10679 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10680
10681 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10682     case $lt_prog_compiler_pic in
10683      "" | " "*) ;;
10684      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10685      esac
10686 else
10687     lt_prog_compiler_pic=
10688      lt_prog_compiler_can_build_shared=no
10689 fi
10690
10691 fi
10692
10693
10694
10695
10696
10697
10698 #
10699 # Check to make sure the static flag actually works.
10700 #
10701 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10703 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10704 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10705   $as_echo_n "(cached) " >&6
10706 else
10707   lt_cv_prog_compiler_static_works=no
10708    save_LDFLAGS="$LDFLAGS"
10709    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10710    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10711    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10712      # The linker can only warn and ignore the option if not recognized
10713      # So say no if there are warnings
10714      if test -s conftest.err; then
10715        # Append any errors to the config.log.
10716        cat conftest.err 1>&5
10717        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10718        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10719        if diff conftest.exp conftest.er2 >/dev/null; then
10720          lt_cv_prog_compiler_static_works=yes
10721        fi
10722      else
10723        lt_cv_prog_compiler_static_works=yes
10724      fi
10725    fi
10726    $RM -r conftest*
10727    LDFLAGS="$save_LDFLAGS"
10728
10729 fi
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10731 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10732
10733 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10734     :
10735 else
10736     lt_prog_compiler_static=
10737 fi
10738
10739
10740
10741
10742
10743
10744
10745   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10746 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10747 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10748   $as_echo_n "(cached) " >&6
10749 else
10750   lt_cv_prog_compiler_c_o=no
10751    $RM -r conftest 2>/dev/null
10752    mkdir conftest
10753    cd conftest
10754    mkdir out
10755    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10756
10757    lt_compiler_flag="-o out/conftest2.$ac_objext"
10758    # Insert the option either (1) after the last *FLAGS variable, or
10759    # (2) before a word containing "conftest.", or (3) at the end.
10760    # Note that $ac_compile itself does not contain backslashes and begins
10761    # with a dollar sign (not a hyphen), so the echo should work correctly.
10762    lt_compile=`echo "$ac_compile" | $SED \
10763    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10764    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10765    -e 's:$: $lt_compiler_flag:'`
10766    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10767    (eval "$lt_compile" 2>out/conftest.err)
10768    ac_status=$?
10769    cat out/conftest.err >&5
10770    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10772    then
10773      # The compiler can only warn and ignore the option if not recognized
10774      # So say no if there are warnings
10775      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10776      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10777      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10778        lt_cv_prog_compiler_c_o=yes
10779      fi
10780    fi
10781    chmod u+w . 2>&5
10782    $RM conftest*
10783    # SGI C++ compiler will create directory out/ii_files/ for
10784    # template instantiation
10785    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10786    $RM out/* && rmdir out
10787    cd ..
10788    $RM -r conftest
10789    $RM conftest*
10790
10791 fi
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10793 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10794
10795
10796
10797
10798
10799
10800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10801 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10802 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10803   $as_echo_n "(cached) " >&6
10804 else
10805   lt_cv_prog_compiler_c_o=no
10806    $RM -r conftest 2>/dev/null
10807    mkdir conftest
10808    cd conftest
10809    mkdir out
10810    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10811
10812    lt_compiler_flag="-o out/conftest2.$ac_objext"
10813    # Insert the option either (1) after the last *FLAGS variable, or
10814    # (2) before a word containing "conftest.", or (3) at the end.
10815    # Note that $ac_compile itself does not contain backslashes and begins
10816    # with a dollar sign (not a hyphen), so the echo should work correctly.
10817    lt_compile=`echo "$ac_compile" | $SED \
10818    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10819    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10820    -e 's:$: $lt_compiler_flag:'`
10821    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10822    (eval "$lt_compile" 2>out/conftest.err)
10823    ac_status=$?
10824    cat out/conftest.err >&5
10825    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10827    then
10828      # The compiler can only warn and ignore the option if not recognized
10829      # So say no if there are warnings
10830      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10831      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10832      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10833        lt_cv_prog_compiler_c_o=yes
10834      fi
10835    fi
10836    chmod u+w . 2>&5
10837    $RM conftest*
10838    # SGI C++ compiler will create directory out/ii_files/ for
10839    # template instantiation
10840    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10841    $RM out/* && rmdir out
10842    cd ..
10843    $RM -r conftest
10844    $RM conftest*
10845
10846 fi
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10848 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10849
10850
10851
10852
10853 hard_links="nottested"
10854 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10855   # do not overwrite the value of need_locks provided by the user
10856   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10857 $as_echo_n "checking if we can lock with hard links... " >&6; }
10858   hard_links=yes
10859   $RM conftest*
10860   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10861   touch conftest.a
10862   ln conftest.a conftest.b 2>&5 || hard_links=no
10863   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10865 $as_echo "$hard_links" >&6; }
10866   if test "$hard_links" = no; then
10867     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10868 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10869     need_locks=warn
10870   fi
10871 else
10872   need_locks=no
10873 fi
10874
10875
10876
10877
10878
10879
10880   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10881 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10882
10883   runpath_var=
10884   allow_undefined_flag=
10885   always_export_symbols=no
10886   archive_cmds=
10887   archive_expsym_cmds=
10888   compiler_needs_object=no
10889   enable_shared_with_static_runtimes=no
10890   export_dynamic_flag_spec=
10891   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10892   hardcode_automatic=no
10893   hardcode_direct=no
10894   hardcode_direct_absolute=no
10895   hardcode_libdir_flag_spec=
10896   hardcode_libdir_flag_spec_ld=
10897   hardcode_libdir_separator=
10898   hardcode_minus_L=no
10899   hardcode_shlibpath_var=unsupported
10900   inherit_rpath=no
10901   link_all_deplibs=unknown
10902   module_cmds=
10903   module_expsym_cmds=
10904   old_archive_from_new_cmds=
10905   old_archive_from_expsyms_cmds=
10906   thread_safe_flag_spec=
10907   whole_archive_flag_spec=
10908   # include_expsyms should be a list of space-separated symbols to be *always*
10909   # included in the symbol list
10910   include_expsyms=
10911   # exclude_expsyms can be an extended regexp of symbols to exclude
10912   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10913   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10914   # as well as any symbol that contains `d'.
10915   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10916   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10917   # platforms (ab)use it in PIC code, but their linkers get confused if
10918   # the symbol is explicitly referenced.  Since portable code cannot
10919   # rely on this symbol name, it's probably fine to never include it in
10920   # preloaded symbol tables.
10921   # Exclude shared library initialization/finalization symbols.
10922   extract_expsyms_cmds=
10923
10924   case $host_os in
10925   cygwin* | mingw* | pw32* | cegcc*)
10926     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10927     # When not using gcc, we currently assume that we are using
10928     # Microsoft Visual C++.
10929     if test "$GCC" != yes; then
10930       with_gnu_ld=no
10931     fi
10932     ;;
10933   interix*)
10934     # we just hope/assume this is gcc and not c89 (= MSVC++)
10935     with_gnu_ld=yes
10936     ;;
10937   openbsd*)
10938     with_gnu_ld=no
10939     ;;
10940   esac
10941
10942   ld_shlibs=yes
10943
10944   # On some targets, GNU ld is compatible enough with the native linker
10945   # that we're better off using the native interface for both.
10946   lt_use_gnu_ld_interface=no
10947   if test "$with_gnu_ld" = yes; then
10948     case $host_os in
10949       aix*)
10950         # The AIX port of GNU ld has always aspired to compatibility
10951         # with the native linker.  However, as the warning in the GNU ld
10952         # block says, versions before 2.19.5* couldn't really create working
10953         # shared libraries, regardless of the interface used.
10954         case `$LD -v 2>&1` in
10955           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10956           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10957           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10958           *)
10959             lt_use_gnu_ld_interface=yes
10960             ;;
10961         esac
10962         ;;
10963       *)
10964         lt_use_gnu_ld_interface=yes
10965         ;;
10966     esac
10967   fi
10968
10969   if test "$lt_use_gnu_ld_interface" = yes; then
10970     # If archive_cmds runs LD, not CC, wlarc should be empty
10971     wlarc='${wl}'
10972
10973     # Set some defaults for GNU ld with shared library support. These
10974     # are reset later if shared libraries are not supported. Putting them
10975     # here allows them to be overridden if necessary.
10976     runpath_var=LD_RUN_PATH
10977     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10978     export_dynamic_flag_spec='${wl}--export-dynamic'
10979     # ancient GNU ld didn't support --whole-archive et. al.
10980     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10981       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10982     else
10983       whole_archive_flag_spec=
10984     fi
10985     supports_anon_versioning=no
10986     case `$LD -v 2>&1` in
10987       *GNU\ gold*) supports_anon_versioning=yes ;;
10988       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10989       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10990       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10991       *\ 2.11.*) ;; # other 2.11 versions
10992       *) supports_anon_versioning=yes ;;
10993     esac
10994
10995     # See if GNU ld supports shared libraries.
10996     case $host_os in
10997     aix[3-9]*)
10998       # On AIX/PPC, the GNU linker is very broken
10999       if test "$host_cpu" != ia64; then
11000         ld_shlibs=no
11001         cat <<_LT_EOF 1>&2
11002
11003 *** Warning: the GNU linker, at least up to release 2.19, is reported
11004 *** to be unable to reliably create shared libraries on AIX.
11005 *** Therefore, libtool is disabling shared libraries support.  If you
11006 *** really care for shared libraries, you may want to install binutils
11007 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11008 *** You will then need to restart the configuration process.
11009
11010 _LT_EOF
11011       fi
11012       ;;
11013
11014     amigaos*)
11015       case $host_cpu in
11016       powerpc)
11017             # see comment about AmigaOS4 .so support
11018             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11019             archive_expsym_cmds=''
11020         ;;
11021       m68k)
11022             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)'
11023             hardcode_libdir_flag_spec='-L$libdir'
11024             hardcode_minus_L=yes
11025         ;;
11026       esac
11027       ;;
11028
11029     beos*)
11030       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11031         allow_undefined_flag=unsupported
11032         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11033         # support --undefined.  This deserves some investigation.  FIXME
11034         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11035       else
11036         ld_shlibs=no
11037       fi
11038       ;;
11039
11040     cygwin* | mingw* | pw32* | cegcc*)
11041       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11042       # as there is no search path for DLLs.
11043       hardcode_libdir_flag_spec='-L$libdir'
11044       export_dynamic_flag_spec='${wl}--export-all-symbols'
11045       allow_undefined_flag=unsupported
11046       always_export_symbols=no
11047       enable_shared_with_static_runtimes=yes
11048       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11049
11050       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11051         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11052         # If the export-symbols file already is a .def file (1st line
11053         # is EXPORTS), use it as is; otherwise, prepend...
11054         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11055           cp $export_symbols $output_objdir/$soname.def;
11056         else
11057           echo EXPORTS > $output_objdir/$soname.def;
11058           cat $export_symbols >> $output_objdir/$soname.def;
11059         fi~
11060         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11061       else
11062         ld_shlibs=no
11063       fi
11064       ;;
11065
11066     haiku*)
11067       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11068       link_all_deplibs=yes
11069       ;;
11070
11071     interix[3-9]*)
11072       hardcode_direct=no
11073       hardcode_shlibpath_var=no
11074       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11075       export_dynamic_flag_spec='${wl}-E'
11076       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11077       # Instead, shared libraries are loaded at an image base (0x10000000 by
11078       # default) and relocated if they conflict, which is a slow very memory
11079       # consuming and fragmenting process.  To avoid this, we pick a random,
11080       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11081       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11082       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11083       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'
11084       ;;
11085
11086     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11087       tmp_diet=no
11088       if test "$host_os" = linux-dietlibc; then
11089         case $cc_basename in
11090           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
11091         esac
11092       fi
11093       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11094          && test "$tmp_diet" = no
11095       then
11096         tmp_addflag=
11097         tmp_sharedflag='-shared'
11098         case $cc_basename,$host_cpu in
11099         pgcc*)                          # Portland Group C compiler
11100           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'
11101           tmp_addflag=' $pic_flag'
11102           ;;
11103         pgf77* | pgf90* | pgf95* | pgfortran*)
11104                                         # Portland Group f77 and f90 compilers
11105           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'
11106           tmp_addflag=' $pic_flag -Mnomain' ;;
11107         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11108           tmp_addflag=' -i_dynamic' ;;
11109         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11110           tmp_addflag=' -i_dynamic -nofor_main' ;;
11111         ifc* | ifort*)                  # Intel Fortran compiler
11112           tmp_addflag=' -nofor_main' ;;
11113         lf95*)                          # Lahey Fortran 8.1
11114           whole_archive_flag_spec=
11115           tmp_sharedflag='--shared' ;;
11116         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11117           tmp_sharedflag='-qmkshrobj'
11118           tmp_addflag= ;;
11119         nvcc*)  # Cuda Compiler Driver 2.2
11120           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'
11121           compiler_needs_object=yes
11122           ;;
11123         esac
11124         case `$CC -V 2>&1 | sed 5q` in
11125         *Sun\ C*)                       # Sun C 5.9
11126           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'
11127           compiler_needs_object=yes
11128           tmp_sharedflag='-G' ;;
11129         *Sun\ F*)                       # Sun Fortran 8.3
11130           tmp_sharedflag='-G' ;;
11131         esac
11132         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11133
11134         if test "x$supports_anon_versioning" = xyes; then
11135           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11136             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11137             echo "local: *; };" >> $output_objdir/$libname.ver~
11138             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11139         fi
11140
11141         case $cc_basename in
11142         xlf* | bgf* | bgxlf* | mpixlf*)
11143           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11144           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11145           hardcode_libdir_flag_spec=
11146           hardcode_libdir_flag_spec_ld='-rpath $libdir'
11147           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11148           if test "x$supports_anon_versioning" = xyes; then
11149             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11150               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11151               echo "local: *; };" >> $output_objdir/$libname.ver~
11152               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11153           fi
11154           ;;
11155         esac
11156       else
11157         ld_shlibs=no
11158       fi
11159       ;;
11160
11161     netbsd*)
11162       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11163         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11164         wlarc=
11165       else
11166         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11167         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11168       fi
11169       ;;
11170
11171     solaris*)
11172       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11173         ld_shlibs=no
11174         cat <<_LT_EOF 1>&2
11175
11176 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11177 *** create shared libraries on Solaris systems.  Therefore, libtool
11178 *** is disabling shared libraries support.  We urge you to upgrade GNU
11179 *** binutils to release 2.9.1 or newer.  Another option is to modify
11180 *** your PATH or compiler configuration so that the native linker is
11181 *** used, and then restart.
11182
11183 _LT_EOF
11184       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11185         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11186         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11187       else
11188         ld_shlibs=no
11189       fi
11190       ;;
11191
11192     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11193       case `$LD -v 2>&1` in
11194         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11195         ld_shlibs=no
11196         cat <<_LT_EOF 1>&2
11197
11198 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11199 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11200 *** is disabling shared libraries support.  We urge you to upgrade GNU
11201 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11202 *** your PATH or compiler configuration so that the native linker is
11203 *** used, and then restart.
11204
11205 _LT_EOF
11206         ;;
11207         *)
11208           # For security reasons, it is highly recommended that you always
11209           # use absolute paths for naming shared libraries, and exclude the
11210           # DT_RUNPATH tag from executables and libraries.  But doing so
11211           # requires that you compile everything twice, which is a pain.
11212           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11213             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11214             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11215             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11216           else
11217             ld_shlibs=no
11218           fi
11219         ;;
11220       esac
11221       ;;
11222
11223     sunos4*)
11224       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11225       wlarc=
11226       hardcode_direct=yes
11227       hardcode_shlibpath_var=no
11228       ;;
11229
11230     *)
11231       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11232         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11233         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11234       else
11235         ld_shlibs=no
11236       fi
11237       ;;
11238     esac
11239
11240     if test "$ld_shlibs" = no; then
11241       runpath_var=
11242       hardcode_libdir_flag_spec=
11243       export_dynamic_flag_spec=
11244       whole_archive_flag_spec=
11245     fi
11246   else
11247     # PORTME fill in a description of your system's linker (not GNU ld)
11248     case $host_os in
11249     aix3*)
11250       allow_undefined_flag=unsupported
11251       always_export_symbols=yes
11252       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'
11253       # Note: this linker hardcodes the directories in LIBPATH if there
11254       # are no directories specified by -L.
11255       hardcode_minus_L=yes
11256       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11257         # Neither direct hardcoding nor static linking is supported with a
11258         # broken collect2.
11259         hardcode_direct=unsupported
11260       fi
11261       ;;
11262
11263     aix[4-9]*)
11264       if test "$host_cpu" = ia64; then
11265         # On IA64, the linker does run time linking by default, so we don't
11266         # have to do anything special.
11267         aix_use_runtimelinking=no
11268         exp_sym_flag='-Bexport'
11269         no_entry_flag=""
11270       else
11271         # If we're using GNU nm, then we don't want the "-C" option.
11272         # -C means demangle to AIX nm, but means don't demangle with GNU nm
11273         # Also, AIX nm treats weak defined symbols like other global
11274         # defined symbols, whereas GNU nm marks them as "W".
11275         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11276           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'
11277         else
11278           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11279         fi
11280         aix_use_runtimelinking=no
11281
11282         # Test if we are trying to use run time linking or normal
11283         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11284         # need to do runtime linking.
11285         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11286           for ld_flag in $LDFLAGS; do
11287           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11288             aix_use_runtimelinking=yes
11289             break
11290           fi
11291           done
11292           ;;
11293         esac
11294
11295         exp_sym_flag='-bexport'
11296         no_entry_flag='-bnoentry'
11297       fi
11298
11299       # When large executables or shared objects are built, AIX ld can
11300       # have problems creating the table of contents.  If linking a library
11301       # or program results in "error TOC overflow" add -mminimal-toc to
11302       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11303       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11304
11305       archive_cmds=''
11306       hardcode_direct=yes
11307       hardcode_direct_absolute=yes
11308       hardcode_libdir_separator=':'
11309       link_all_deplibs=yes
11310       file_list_spec='${wl}-f,'
11311
11312       if test "$GCC" = yes; then
11313         case $host_os in aix4.[012]|aix4.[012].*)
11314         # We only want to do this on AIX 4.2 and lower, the check
11315         # below for broken collect2 doesn't work under 4.3+
11316           collect2name=`${CC} -print-prog-name=collect2`
11317           if test -f "$collect2name" &&
11318            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11319           then
11320           # We have reworked collect2
11321           :
11322           else
11323           # We have old collect2
11324           hardcode_direct=unsupported
11325           # It fails to find uninstalled libraries when the uninstalled
11326           # path is not listed in the libpath.  Setting hardcode_minus_L
11327           # to unsupported forces relinking
11328           hardcode_minus_L=yes
11329           hardcode_libdir_flag_spec='-L$libdir'
11330           hardcode_libdir_separator=
11331           fi
11332           ;;
11333         esac
11334         shared_flag='-shared'
11335         if test "$aix_use_runtimelinking" = yes; then
11336           shared_flag="$shared_flag "'${wl}-G'
11337         fi
11338       else
11339         # not using gcc
11340         if test "$host_cpu" = ia64; then
11341         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11342         # chokes on -Wl,-G. The following line is correct:
11343           shared_flag='-G'
11344         else
11345           if test "$aix_use_runtimelinking" = yes; then
11346             shared_flag='${wl}-G'
11347           else
11348             shared_flag='${wl}-bM:SRE'
11349           fi
11350         fi
11351       fi
11352
11353       export_dynamic_flag_spec='${wl}-bexpall'
11354       # It seems that -bexpall does not export symbols beginning with
11355       # underscore (_), so it is better to generate a list of symbols to export.
11356       always_export_symbols=yes
11357       if test "$aix_use_runtimelinking" = yes; then
11358         # Warning - without using the other runtime loading flags (-brtl),
11359         # -berok will link without error, but may produce a broken library.
11360         allow_undefined_flag='-berok'
11361         # Determine the default libpath from the value encoded in an
11362         # empty executable.
11363         if test x$gcc_no_link = xyes; then
11364   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11365 fi
11366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11367 /* end confdefs.h.  */
11368
11369 int
11370 main ()
11371 {
11372
11373   ;
11374   return 0;
11375 }
11376 _ACEOF
11377 if ac_fn_c_try_link "$LINENO"; then :
11378
11379 lt_aix_libpath_sed='
11380     /Import File Strings/,/^$/ {
11381         /^0/ {
11382             s/^0  *\(.*\)$/\1/
11383             p
11384         }
11385     }'
11386 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11387 # Check for a 64-bit object if we didn't find anything.
11388 if test -z "$aix_libpath"; then
11389   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11390 fi
11391 fi
11392 rm -f core conftest.err conftest.$ac_objext \
11393     conftest$ac_exeext conftest.$ac_ext
11394 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11395
11396         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11397         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"
11398       else
11399         if test "$host_cpu" = ia64; then
11400           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11401           allow_undefined_flag="-z nodefs"
11402           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"
11403         else
11404          # Determine the default libpath from the value encoded in an
11405          # empty executable.
11406          if test x$gcc_no_link = xyes; then
11407   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11408 fi
11409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11410 /* end confdefs.h.  */
11411
11412 int
11413 main ()
11414 {
11415
11416   ;
11417   return 0;
11418 }
11419 _ACEOF
11420 if ac_fn_c_try_link "$LINENO"; then :
11421
11422 lt_aix_libpath_sed='
11423     /Import File Strings/,/^$/ {
11424         /^0/ {
11425             s/^0  *\(.*\)$/\1/
11426             p
11427         }
11428     }'
11429 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11430 # Check for a 64-bit object if we didn't find anything.
11431 if test -z "$aix_libpath"; then
11432   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11433 fi
11434 fi
11435 rm -f core conftest.err conftest.$ac_objext \
11436     conftest$ac_exeext conftest.$ac_ext
11437 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11438
11439          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11440           # Warning - without using the other run time loading flags,
11441           # -berok will link without error, but may produce a broken library.
11442           no_undefined_flag=' ${wl}-bernotok'
11443           allow_undefined_flag=' ${wl}-berok'
11444           if test "$with_gnu_ld" = yes; then
11445             # We only use this code for GNU lds that support --whole-archive.
11446             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11447           else
11448             # Exported symbols can be pulled into shared objects from archives
11449             whole_archive_flag_spec='$convenience'
11450           fi
11451           archive_cmds_need_lc=yes
11452           # This is similar to how AIX traditionally builds its shared libraries.
11453           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'
11454         fi
11455       fi
11456       ;;
11457
11458     amigaos*)
11459       case $host_cpu in
11460       powerpc)
11461             # see comment about AmigaOS4 .so support
11462             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11463             archive_expsym_cmds=''
11464         ;;
11465       m68k)
11466             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)'
11467             hardcode_libdir_flag_spec='-L$libdir'
11468             hardcode_minus_L=yes
11469         ;;
11470       esac
11471       ;;
11472
11473     bsdi[45]*)
11474       export_dynamic_flag_spec=-rdynamic
11475       ;;
11476
11477     cygwin* | mingw* | pw32* | cegcc*)
11478       # When not using gcc, we currently assume that we are using
11479       # Microsoft Visual C++.
11480       # hardcode_libdir_flag_spec is actually meaningless, as there is
11481       # no search path for DLLs.
11482       hardcode_libdir_flag_spec=' '
11483       allow_undefined_flag=unsupported
11484       # Tell ltmain to make .lib files, not .a files.
11485       libext=lib
11486       # Tell ltmain to make .dll files, not .so files.
11487       shrext_cmds=".dll"
11488       # FIXME: Setting linknames here is a bad hack.
11489       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11490       # The linker will automatically build a .lib file if we build a DLL.
11491       old_archive_from_new_cmds='true'
11492       # FIXME: Should let the user specify the lib program.
11493       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11494       fix_srcfile_path='`cygpath -w "$srcfile"`'
11495       enable_shared_with_static_runtimes=yes
11496       ;;
11497
11498     darwin* | rhapsody*)
11499
11500
11501   archive_cmds_need_lc=no
11502   hardcode_direct=no
11503   hardcode_automatic=yes
11504   hardcode_shlibpath_var=unsupported
11505   if test "$lt_cv_ld_force_load" = "yes"; then
11506     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\"`'
11507   else
11508     whole_archive_flag_spec=''
11509   fi
11510   link_all_deplibs=yes
11511   allow_undefined_flag="$_lt_dar_allow_undefined"
11512   case $cc_basename in
11513      ifort*) _lt_dar_can_shared=yes ;;
11514      *) _lt_dar_can_shared=$GCC ;;
11515   esac
11516   if test "$_lt_dar_can_shared" = "yes"; then
11517     output_verbose_link_cmd=func_echo_all
11518     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11519     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11520     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}"
11521     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11522
11523   else
11524   ld_shlibs=no
11525   fi
11526
11527       ;;
11528
11529     dgux*)
11530       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11531       hardcode_libdir_flag_spec='-L$libdir'
11532       hardcode_shlibpath_var=no
11533       ;;
11534
11535     freebsd1*)
11536       ld_shlibs=no
11537       ;;
11538
11539     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11540     # support.  Future versions do this automatically, but an explicit c++rt0.o
11541     # does not break anything, and helps significantly (at the cost of a little
11542     # extra space).
11543     freebsd2.2*)
11544       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11545       hardcode_libdir_flag_spec='-R$libdir'
11546       hardcode_direct=yes
11547       hardcode_shlibpath_var=no
11548       ;;
11549
11550     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11551     freebsd2*)
11552       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11553       hardcode_direct=yes
11554       hardcode_minus_L=yes
11555       hardcode_shlibpath_var=no
11556       ;;
11557
11558     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11559     freebsd* | dragonfly*)
11560       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11561       hardcode_libdir_flag_spec='-R$libdir'
11562       hardcode_direct=yes
11563       hardcode_shlibpath_var=no
11564       ;;
11565
11566     hpux9*)
11567       if test "$GCC" = yes; then
11568         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'
11569       else
11570         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11571       fi
11572       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11573       hardcode_libdir_separator=:
11574       hardcode_direct=yes
11575
11576       # hardcode_minus_L: Not really in the search PATH,
11577       # but as the default location of the library.
11578       hardcode_minus_L=yes
11579       export_dynamic_flag_spec='${wl}-E'
11580       ;;
11581
11582     hpux10*)
11583       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11584         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11585       else
11586         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11587       fi
11588       if test "$with_gnu_ld" = no; then
11589         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11590         hardcode_libdir_flag_spec_ld='+b $libdir'
11591         hardcode_libdir_separator=:
11592         hardcode_direct=yes
11593         hardcode_direct_absolute=yes
11594         export_dynamic_flag_spec='${wl}-E'
11595         # hardcode_minus_L: Not really in the search PATH,
11596         # but as the default location of the library.
11597         hardcode_minus_L=yes
11598       fi
11599       ;;
11600
11601     hpux11*)
11602       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11603         case $host_cpu in
11604         hppa*64*)
11605           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11606           ;;
11607         ia64*)
11608           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11609           ;;
11610         *)
11611           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11612           ;;
11613         esac
11614       else
11615         case $host_cpu in
11616         hppa*64*)
11617           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11618           ;;
11619         ia64*)
11620           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11621           ;;
11622         *)
11623
11624           # Older versions of the 11.00 compiler do not understand -b yet
11625           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11626           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11627 $as_echo_n "checking if $CC understands -b... " >&6; }
11628 if test "${lt_cv_prog_compiler__b+set}" = set; then :
11629   $as_echo_n "(cached) " >&6
11630 else
11631   lt_cv_prog_compiler__b=no
11632    save_LDFLAGS="$LDFLAGS"
11633    LDFLAGS="$LDFLAGS -b"
11634    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11635    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11636      # The linker can only warn and ignore the option if not recognized
11637      # So say no if there are warnings
11638      if test -s conftest.err; then
11639        # Append any errors to the config.log.
11640        cat conftest.err 1>&5
11641        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11642        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11643        if diff conftest.exp conftest.er2 >/dev/null; then
11644          lt_cv_prog_compiler__b=yes
11645        fi
11646      else
11647        lt_cv_prog_compiler__b=yes
11648      fi
11649    fi
11650    $RM -r conftest*
11651    LDFLAGS="$save_LDFLAGS"
11652
11653 fi
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11655 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11656
11657 if test x"$lt_cv_prog_compiler__b" = xyes; then
11658     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11659 else
11660     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11661 fi
11662
11663           ;;
11664         esac
11665       fi
11666       if test "$with_gnu_ld" = no; then
11667         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11668         hardcode_libdir_separator=:
11669
11670         case $host_cpu in
11671         hppa*64*|ia64*)
11672           hardcode_direct=no
11673           hardcode_shlibpath_var=no
11674           ;;
11675         *)
11676           hardcode_direct=yes
11677           hardcode_direct_absolute=yes
11678           export_dynamic_flag_spec='${wl}-E'
11679
11680           # hardcode_minus_L: Not really in the search PATH,
11681           # but as the default location of the library.
11682           hardcode_minus_L=yes
11683           ;;
11684         esac
11685       fi
11686       ;;
11687
11688     irix5* | irix6* | nonstopux*)
11689       if test "$GCC" = yes; then
11690         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'
11691         # Try to use the -exported_symbol ld option, if it does not
11692         # work, assume that -exports_file does not work either and
11693         # implicitly export all symbols.
11694         save_LDFLAGS="$LDFLAGS"
11695         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11696         if test x$gcc_no_link = xyes; then
11697   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11698 fi
11699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11700 /* end confdefs.h.  */
11701 int foo(void) {}
11702 _ACEOF
11703 if ac_fn_c_try_link "$LINENO"; then :
11704   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'
11705
11706 fi
11707 rm -f core conftest.err conftest.$ac_objext \
11708     conftest$ac_exeext conftest.$ac_ext
11709         LDFLAGS="$save_LDFLAGS"
11710       else
11711         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'
11712         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11713       fi
11714       archive_cmds_need_lc='no'
11715       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11716       hardcode_libdir_separator=:
11717       inherit_rpath=yes
11718       link_all_deplibs=yes
11719       ;;
11720
11721     netbsd*)
11722       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11723         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11724       else
11725         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11726       fi
11727       hardcode_libdir_flag_spec='-R$libdir'
11728       hardcode_direct=yes
11729       hardcode_shlibpath_var=no
11730       ;;
11731
11732     newsos6)
11733       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11734       hardcode_direct=yes
11735       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11736       hardcode_libdir_separator=:
11737       hardcode_shlibpath_var=no
11738       ;;
11739
11740     *nto* | *qnx*)
11741       ;;
11742
11743     openbsd*)
11744       if test -f /usr/libexec/ld.so; then
11745         hardcode_direct=yes
11746         hardcode_shlibpath_var=no
11747         hardcode_direct_absolute=yes
11748         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11749           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11750           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11751           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11752           export_dynamic_flag_spec='${wl}-E'
11753         else
11754           case $host_os in
11755            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11756              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11757              hardcode_libdir_flag_spec='-R$libdir'
11758              ;;
11759            *)
11760              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11761              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11762              ;;
11763           esac
11764         fi
11765       else
11766         ld_shlibs=no
11767       fi
11768       ;;
11769
11770     os2*)
11771       hardcode_libdir_flag_spec='-L$libdir'
11772       hardcode_minus_L=yes
11773       allow_undefined_flag=unsupported
11774       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'
11775       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11776       ;;
11777
11778     osf3*)
11779       if test "$GCC" = yes; then
11780         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11781         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'
11782       else
11783         allow_undefined_flag=' -expect_unresolved \*'
11784         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11785       fi
11786       archive_cmds_need_lc='no'
11787       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11788       hardcode_libdir_separator=:
11789       ;;
11790
11791     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11792       if test "$GCC" = yes; then
11793         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11794         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'
11795         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11796       else
11797         allow_undefined_flag=' -expect_unresolved \*'
11798         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'
11799         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~
11800         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11801
11802         # Both c and cxx compiler support -rpath directly
11803         hardcode_libdir_flag_spec='-rpath $libdir'
11804       fi
11805       archive_cmds_need_lc='no'
11806       hardcode_libdir_separator=:
11807       ;;
11808
11809     solaris*)
11810       no_undefined_flag=' -z defs'
11811       if test "$GCC" = yes; then
11812         wlarc='${wl}'
11813         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11814         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11815           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11816       else
11817         case `$CC -V 2>&1` in
11818         *"Compilers 5.0"*)
11819           wlarc=''
11820           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11821           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11822           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11823           ;;
11824         *)
11825           wlarc='${wl}'
11826           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11827           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11828           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11829           ;;
11830         esac
11831       fi
11832       hardcode_libdir_flag_spec='-R$libdir'
11833       hardcode_shlibpath_var=no
11834       case $host_os in
11835       solaris2.[0-5] | solaris2.[0-5].*) ;;
11836       *)
11837         # The compiler driver will combine and reorder linker options,
11838         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11839         # but is careful enough not to reorder.
11840         # Supported since Solaris 2.6 (maybe 2.5.1?)
11841         if test "$GCC" = yes; then
11842           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11843         else
11844           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11845         fi
11846         ;;
11847       esac
11848       link_all_deplibs=yes
11849       ;;
11850
11851     sunos4*)
11852       if test "x$host_vendor" = xsequent; then
11853         # Use $CC to link under sequent, because it throws in some extra .o
11854         # files that make .init and .fini sections work.
11855         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11856       else
11857         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11858       fi
11859       hardcode_libdir_flag_spec='-L$libdir'
11860       hardcode_direct=yes
11861       hardcode_minus_L=yes
11862       hardcode_shlibpath_var=no
11863       ;;
11864
11865     sysv4)
11866       case $host_vendor in
11867         sni)
11868           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11869           hardcode_direct=yes # is this really true???
11870         ;;
11871         siemens)
11872           ## LD is ld it makes a PLAMLIB
11873           ## CC just makes a GrossModule.
11874           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11875           reload_cmds='$CC -r -o $output$reload_objs'
11876           hardcode_direct=no
11877         ;;
11878         motorola)
11879           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11880           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11881         ;;
11882       esac
11883       runpath_var='LD_RUN_PATH'
11884       hardcode_shlibpath_var=no
11885       ;;
11886
11887     sysv4.3*)
11888       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11889       hardcode_shlibpath_var=no
11890       export_dynamic_flag_spec='-Bexport'
11891       ;;
11892
11893     sysv4*MP*)
11894       if test -d /usr/nec; then
11895         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11896         hardcode_shlibpath_var=no
11897         runpath_var=LD_RUN_PATH
11898         hardcode_runpath_var=yes
11899         ld_shlibs=yes
11900       fi
11901       ;;
11902
11903     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11904       no_undefined_flag='${wl}-z,text'
11905       archive_cmds_need_lc=no
11906       hardcode_shlibpath_var=no
11907       runpath_var='LD_RUN_PATH'
11908
11909       if test "$GCC" = yes; then
11910         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11911         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11912       else
11913         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11914         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11915       fi
11916       ;;
11917
11918     sysv5* | sco3.2v5* | sco5v6*)
11919       # Note: We can NOT use -z defs as we might desire, because we do not
11920       # link with -lc, and that would cause any symbols used from libc to
11921       # always be unresolved, which means just about no library would
11922       # ever link correctly.  If we're not using GNU ld we use -z text
11923       # though, which does catch some bad symbols but isn't as heavy-handed
11924       # as -z defs.
11925       no_undefined_flag='${wl}-z,text'
11926       allow_undefined_flag='${wl}-z,nodefs'
11927       archive_cmds_need_lc=no
11928       hardcode_shlibpath_var=no
11929       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11930       hardcode_libdir_separator=':'
11931       link_all_deplibs=yes
11932       export_dynamic_flag_spec='${wl}-Bexport'
11933       runpath_var='LD_RUN_PATH'
11934
11935       if test "$GCC" = yes; then
11936         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11937         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11938       else
11939         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11940         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11941       fi
11942       ;;
11943
11944     uts4*)
11945       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11946       hardcode_libdir_flag_spec='-L$libdir'
11947       hardcode_shlibpath_var=no
11948       ;;
11949
11950     *)
11951       ld_shlibs=no
11952       ;;
11953     esac
11954
11955     if test x$host_vendor = xsni; then
11956       case $host in
11957       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11958         export_dynamic_flag_spec='${wl}-Blargedynsym'
11959         ;;
11960       esac
11961     fi
11962   fi
11963
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11965 $as_echo "$ld_shlibs" >&6; }
11966 test "$ld_shlibs" = no && can_build_shared=no
11967
11968 with_gnu_ld=$with_gnu_ld
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984 #
11985 # Do we need to explicitly link libc?
11986 #
11987 case "x$archive_cmds_need_lc" in
11988 x|xyes)
11989   # Assume -lc should be added
11990   archive_cmds_need_lc=yes
11991
11992   if test "$enable_shared" = yes && test "$GCC" = yes; then
11993     case $archive_cmds in
11994     *'~'*)
11995       # FIXME: we may have to deal with multi-command sequences.
11996       ;;
11997     '$CC '*)
11998       # Test whether the compiler implicitly links with -lc since on some
11999       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12000       # to ld, don't add -lc before -lgcc.
12001       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12002 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12003 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
12004   $as_echo_n "(cached) " >&6
12005 else
12006   $RM conftest*
12007         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12008
12009         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12010   (eval $ac_compile) 2>&5
12011   ac_status=$?
12012   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12013   test $ac_status = 0; } 2>conftest.err; then
12014           soname=conftest
12015           lib=conftest
12016           libobjs=conftest.$ac_objext
12017           deplibs=
12018           wl=$lt_prog_compiler_wl
12019           pic_flag=$lt_prog_compiler_pic
12020           compiler_flags=-v
12021           linker_flags=-v
12022           verstring=
12023           output_objdir=.
12024           libname=conftest
12025           lt_save_allow_undefined_flag=$allow_undefined_flag
12026           allow_undefined_flag=
12027           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12028   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12029   ac_status=$?
12030   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12031   test $ac_status = 0; }
12032           then
12033             lt_cv_archive_cmds_need_lc=no
12034           else
12035             lt_cv_archive_cmds_need_lc=yes
12036           fi
12037           allow_undefined_flag=$lt_save_allow_undefined_flag
12038         else
12039           cat conftest.err 1>&5
12040         fi
12041         $RM conftest*
12042
12043 fi
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12045 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12046       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12047       ;;
12048     esac
12049   fi
12050   ;;
12051 esac
12052
12053
12054
12055
12056
12057
12058
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12210 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12211
12212 if test "$GCC" = yes; then
12213   case $host_os in
12214     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12215     *) lt_awk_arg="/^libraries:/" ;;
12216   esac
12217   case $host_os in
12218     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12219     *) lt_sed_strip_eq="s,=/,/,g" ;;
12220   esac
12221   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12222   case $lt_search_path_spec in
12223   *\;*)
12224     # if the path contains ";" then we assume it to be the separator
12225     # otherwise default to the standard path separator (i.e. ":") - it is
12226     # assumed that no part of a normal pathname contains ";" but that should
12227     # okay in the real world where ";" in dirpaths is itself problematic.
12228     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12229     ;;
12230   *)
12231     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12232     ;;
12233   esac
12234   # Ok, now we have the path, separated by spaces, we can step through it
12235   # and add multilib dir if necessary.
12236   lt_tmp_lt_search_path_spec=
12237   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12238   for lt_sys_path in $lt_search_path_spec; do
12239     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12240       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12241     else
12242       test -d "$lt_sys_path" && \
12243         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12244     fi
12245   done
12246   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12247 BEGIN {RS=" "; FS="/|\n";} {
12248   lt_foo="";
12249   lt_count=0;
12250   for (lt_i = NF; lt_i > 0; lt_i--) {
12251     if ($lt_i != "" && $lt_i != ".") {
12252       if ($lt_i == "..") {
12253         lt_count++;
12254       } else {
12255         if (lt_count == 0) {
12256           lt_foo="/" $lt_i lt_foo;
12257         } else {
12258           lt_count--;
12259         }
12260       }
12261     }
12262   }
12263   if (lt_foo != "") { lt_freq[lt_foo]++; }
12264   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12265 }'`
12266   # AWK program above erroneously prepends '/' to C:/dos/paths
12267   # for these hosts.
12268   case $host_os in
12269     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12270       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12271   esac
12272   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12273 else
12274   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12275 fi
12276 library_names_spec=
12277 libname_spec='lib$name'
12278 soname_spec=
12279 shrext_cmds=".so"
12280 postinstall_cmds=
12281 postuninstall_cmds=
12282 finish_cmds=
12283 finish_eval=
12284 shlibpath_var=
12285 shlibpath_overrides_runpath=unknown
12286 version_type=none
12287 dynamic_linker="$host_os ld.so"
12288 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12289 need_lib_prefix=unknown
12290 hardcode_into_libs=no
12291
12292 # when you set need_version to no, make sure it does not cause -set_version
12293 # flags to be left without arguments
12294 need_version=unknown
12295
12296 case $host_os in
12297 aix3*)
12298   version_type=linux
12299   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12300   shlibpath_var=LIBPATH
12301
12302   # AIX 3 has no versioning support, so we append a major version to the name.
12303   soname_spec='${libname}${release}${shared_ext}$major'
12304   ;;
12305
12306 aix[4-9]*)
12307   version_type=linux
12308   need_lib_prefix=no
12309   need_version=no
12310   hardcode_into_libs=yes
12311   if test "$host_cpu" = ia64; then
12312     # AIX 5 supports IA64
12313     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12314     shlibpath_var=LD_LIBRARY_PATH
12315   else
12316     # With GCC up to 2.95.x, collect2 would create an import file
12317     # for dependence libraries.  The import file would start with
12318     # the line `#! .'.  This would cause the generated library to
12319     # depend on `.', always an invalid library.  This was fixed in
12320     # development snapshots of GCC prior to 3.0.
12321     case $host_os in
12322       aix4 | aix4.[01] | aix4.[01].*)
12323       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12324            echo ' yes '
12325            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12326         :
12327       else
12328         can_build_shared=no
12329       fi
12330       ;;
12331     esac
12332     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12333     # soname into executable. Probably we can add versioning support to
12334     # collect2, so additional links can be useful in future.
12335     if test "$aix_use_runtimelinking" = yes; then
12336       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12337       # instead of lib<name>.a to let people know that these are not
12338       # typical AIX shared libraries.
12339       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12340     else
12341       # We preserve .a as extension for shared libraries through AIX4.2
12342       # and later when we are not doing run time linking.
12343       library_names_spec='${libname}${release}.a $libname.a'
12344       soname_spec='${libname}${release}${shared_ext}$major'
12345     fi
12346     shlibpath_var=LIBPATH
12347   fi
12348   ;;
12349
12350 amigaos*)
12351   case $host_cpu in
12352   powerpc)
12353     # Since July 2007 AmigaOS4 officially supports .so libraries.
12354     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12355     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12356     ;;
12357   m68k)
12358     library_names_spec='$libname.ixlibrary $libname.a'
12359     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12360     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12361     ;;
12362   esac
12363   ;;
12364
12365 beos*)
12366   library_names_spec='${libname}${shared_ext}'
12367   dynamic_linker="$host_os ld.so"
12368   shlibpath_var=LIBRARY_PATH
12369   ;;
12370
12371 bsdi[45]*)
12372   version_type=linux
12373   need_version=no
12374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12375   soname_spec='${libname}${release}${shared_ext}$major'
12376   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12377   shlibpath_var=LD_LIBRARY_PATH
12378   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12379   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12380   # the default ld.so.conf also contains /usr/contrib/lib and
12381   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12382   # libtool to hard-code these into programs
12383   ;;
12384
12385 cygwin* | mingw* | pw32* | cegcc*)
12386   version_type=windows
12387   shrext_cmds=".dll"
12388   need_version=no
12389   need_lib_prefix=no
12390
12391   case $GCC,$host_os in
12392   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12393     library_names_spec='$libname.dll.a'
12394     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12395     postinstall_cmds='base_file=`basename \${file}`~
12396       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12397       dldir=$destdir/`dirname \$dlpath`~
12398       test -d \$dldir || mkdir -p \$dldir~
12399       $install_prog $dir/$dlname \$dldir/$dlname~
12400       chmod a+x \$dldir/$dlname~
12401       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12402         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12403       fi'
12404     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12405       dlpath=$dir/\$dldll~
12406        $RM \$dlpath'
12407     shlibpath_overrides_runpath=yes
12408
12409     case $host_os in
12410     cygwin*)
12411       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12412       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12413
12414       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12415       ;;
12416     mingw* | cegcc*)
12417       # MinGW DLLs use traditional 'lib' prefix
12418       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12419       ;;
12420     pw32*)
12421       # pw32 DLLs use 'pw' prefix rather than 'lib'
12422       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12423       ;;
12424     esac
12425     ;;
12426
12427   *)
12428     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12429     ;;
12430   esac
12431   dynamic_linker='Win32 ld.exe'
12432   # FIXME: first we should search . and the directory the executable is in
12433   shlibpath_var=PATH
12434   ;;
12435
12436 darwin* | rhapsody*)
12437   dynamic_linker="$host_os dyld"
12438   version_type=darwin
12439   need_lib_prefix=no
12440   need_version=no
12441   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12442   soname_spec='${libname}${release}${major}$shared_ext'
12443   shlibpath_overrides_runpath=yes
12444   shlibpath_var=DYLD_LIBRARY_PATH
12445   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12446
12447   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12448   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12449   ;;
12450
12451 dgux*)
12452   version_type=linux
12453   need_lib_prefix=no
12454   need_version=no
12455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12456   soname_spec='${libname}${release}${shared_ext}$major'
12457   shlibpath_var=LD_LIBRARY_PATH
12458   ;;
12459
12460 freebsd1*)
12461   dynamic_linker=no
12462   ;;
12463
12464 freebsd* | dragonfly*)
12465   # DragonFly does not have aout.  When/if they implement a new
12466   # versioning mechanism, adjust this.
12467   if test -x /usr/bin/objformat; then
12468     objformat=`/usr/bin/objformat`
12469   else
12470     case $host_os in
12471     freebsd[123]*) objformat=aout ;;
12472     *) objformat=elf ;;
12473     esac
12474   fi
12475   version_type=freebsd-$objformat
12476   case $version_type in
12477     freebsd-elf*)
12478       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12479       need_version=no
12480       need_lib_prefix=no
12481       ;;
12482     freebsd-*)
12483       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12484       need_version=yes
12485       ;;
12486   esac
12487   shlibpath_var=LD_LIBRARY_PATH
12488   case $host_os in
12489   freebsd2*)
12490     shlibpath_overrides_runpath=yes
12491     ;;
12492   freebsd3.[01]* | freebsdelf3.[01]*)
12493     shlibpath_overrides_runpath=yes
12494     hardcode_into_libs=yes
12495     ;;
12496   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12497   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12498     shlibpath_overrides_runpath=no
12499     hardcode_into_libs=yes
12500     ;;
12501   *) # from 4.6 on, and DragonFly
12502     shlibpath_overrides_runpath=yes
12503     hardcode_into_libs=yes
12504     ;;
12505   esac
12506   ;;
12507
12508 gnu*)
12509   version_type=linux
12510   need_lib_prefix=no
12511   need_version=no
12512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12513   soname_spec='${libname}${release}${shared_ext}$major'
12514   shlibpath_var=LD_LIBRARY_PATH
12515   hardcode_into_libs=yes
12516   ;;
12517
12518 haiku*)
12519   version_type=linux
12520   need_lib_prefix=no
12521   need_version=no
12522   dynamic_linker="$host_os runtime_loader"
12523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12524   soname_spec='${libname}${release}${shared_ext}$major'
12525   shlibpath_var=LIBRARY_PATH
12526   shlibpath_overrides_runpath=yes
12527   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
12528   hardcode_into_libs=yes
12529   ;;
12530
12531 hpux9* | hpux10* | hpux11*)
12532   # Give a soname corresponding to the major version so that dld.sl refuses to
12533   # link against other versions.
12534   version_type=sunos
12535   need_lib_prefix=no
12536   need_version=no
12537   case $host_cpu in
12538   ia64*)
12539     shrext_cmds='.so'
12540     hardcode_into_libs=yes
12541     dynamic_linker="$host_os dld.so"
12542     shlibpath_var=LD_LIBRARY_PATH
12543     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12544     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12545     soname_spec='${libname}${release}${shared_ext}$major'
12546     if test "X$HPUX_IA64_MODE" = X32; then
12547       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12548     else
12549       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12550     fi
12551     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12552     ;;
12553   hppa*64*)
12554     shrext_cmds='.sl'
12555     hardcode_into_libs=yes
12556     dynamic_linker="$host_os dld.sl"
12557     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12558     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12559     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12560     soname_spec='${libname}${release}${shared_ext}$major'
12561     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12562     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12563     ;;
12564   *)
12565     shrext_cmds='.sl'
12566     dynamic_linker="$host_os dld.sl"
12567     shlibpath_var=SHLIB_PATH
12568     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12569     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12570     soname_spec='${libname}${release}${shared_ext}$major'
12571     ;;
12572   esac
12573   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12574   postinstall_cmds='chmod 555 $lib'
12575   # or fails outright, so override atomically:
12576   install_override_mode=555
12577   ;;
12578
12579 interix[3-9]*)
12580   version_type=linux
12581   need_lib_prefix=no
12582   need_version=no
12583   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12584   soname_spec='${libname}${release}${shared_ext}$major'
12585   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12586   shlibpath_var=LD_LIBRARY_PATH
12587   shlibpath_overrides_runpath=no
12588   hardcode_into_libs=yes
12589   ;;
12590
12591 irix5* | irix6* | nonstopux*)
12592   case $host_os in
12593     nonstopux*) version_type=nonstopux ;;
12594     *)
12595         if test "$lt_cv_prog_gnu_ld" = yes; then
12596                 version_type=linux
12597         else
12598                 version_type=irix
12599         fi ;;
12600   esac
12601   need_lib_prefix=no
12602   need_version=no
12603   soname_spec='${libname}${release}${shared_ext}$major'
12604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12605   case $host_os in
12606   irix5* | nonstopux*)
12607     libsuff= shlibsuff=
12608     ;;
12609   *)
12610     case $LD in # libtool.m4 will add one of these switches to LD
12611     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12612       libsuff= shlibsuff= libmagic=32-bit;;
12613     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12614       libsuff=32 shlibsuff=N32 libmagic=N32;;
12615     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12616       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12617     *) libsuff= shlibsuff= libmagic=never-match;;
12618     esac
12619     ;;
12620   esac
12621   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12622   shlibpath_overrides_runpath=no
12623   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12624   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12625   hardcode_into_libs=yes
12626   ;;
12627
12628 # No shared lib support for Linux oldld, aout, or coff.
12629 linux*oldld* | linux*aout* | linux*coff*)
12630   dynamic_linker=no
12631   ;;
12632
12633 # This must be Linux ELF.
12634 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12635   version_type=linux
12636   need_lib_prefix=no
12637   need_version=no
12638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12639   soname_spec='${libname}${release}${shared_ext}$major'
12640   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12641   shlibpath_var=LD_LIBRARY_PATH
12642   shlibpath_overrides_runpath=no
12643
12644   # Some binutils ld are patched to set DT_RUNPATH
12645   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12646   $as_echo_n "(cached) " >&6
12647 else
12648   lt_cv_shlibpath_overrides_runpath=no
12649     save_LDFLAGS=$LDFLAGS
12650     save_libdir=$libdir
12651     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12652          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12653     if test x$gcc_no_link = xyes; then
12654   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12655 fi
12656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12657 /* end confdefs.h.  */
12658
12659 int
12660 main ()
12661 {
12662
12663   ;
12664   return 0;
12665 }
12666 _ACEOF
12667 if ac_fn_c_try_link "$LINENO"; then :
12668   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12669   lt_cv_shlibpath_overrides_runpath=yes
12670 fi
12671 fi
12672 rm -f core conftest.err conftest.$ac_objext \
12673     conftest$ac_exeext conftest.$ac_ext
12674     LDFLAGS=$save_LDFLAGS
12675     libdir=$save_libdir
12676
12677 fi
12678
12679   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12680
12681   # This implies no fast_install, which is unacceptable.
12682   # Some rework will be needed to allow for fast_install
12683   # before this can be enabled.
12684   hardcode_into_libs=yes
12685
12686   # Append ld.so.conf contents to the search path
12687   if test -f /etc/ld.so.conf; then
12688     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' ' '`
12689     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12690   fi
12691
12692   # We used to test for /lib/ld.so.1 and disable shared libraries on
12693   # powerpc, because MkLinux only supported shared libraries with the
12694   # GNU dynamic linker.  Since this was broken with cross compilers,
12695   # most powerpc-linux boxes support dynamic linking these days and
12696   # people can always --disable-shared, the test was removed, and we
12697   # assume the GNU/Linux dynamic linker is in use.
12698   dynamic_linker='GNU/Linux ld.so'
12699   ;;
12700
12701 netbsd*)
12702   version_type=sunos
12703   need_lib_prefix=no
12704   need_version=no
12705   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12706     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12707     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12708     dynamic_linker='NetBSD (a.out) ld.so'
12709   else
12710     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12711     soname_spec='${libname}${release}${shared_ext}$major'
12712     dynamic_linker='NetBSD ld.elf_so'
12713   fi
12714   shlibpath_var=LD_LIBRARY_PATH
12715   shlibpath_overrides_runpath=yes
12716   hardcode_into_libs=yes
12717   ;;
12718
12719 newsos6)
12720   version_type=linux
12721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12722   shlibpath_var=LD_LIBRARY_PATH
12723   shlibpath_overrides_runpath=yes
12724   ;;
12725
12726 *nto* | *qnx*)
12727   version_type=qnx
12728   need_lib_prefix=no
12729   need_version=no
12730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12731   soname_spec='${libname}${release}${shared_ext}$major'
12732   shlibpath_var=LD_LIBRARY_PATH
12733   shlibpath_overrides_runpath=no
12734   hardcode_into_libs=yes
12735   dynamic_linker='ldqnx.so'
12736   ;;
12737
12738 openbsd*)
12739   version_type=sunos
12740   sys_lib_dlsearch_path_spec="/usr/lib"
12741   need_lib_prefix=no
12742   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12743   case $host_os in
12744     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12745     *)                          need_version=no  ;;
12746   esac
12747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12748   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12749   shlibpath_var=LD_LIBRARY_PATH
12750   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12751     case $host_os in
12752       openbsd2.[89] | openbsd2.[89].*)
12753         shlibpath_overrides_runpath=no
12754         ;;
12755       *)
12756         shlibpath_overrides_runpath=yes
12757         ;;
12758       esac
12759   else
12760     shlibpath_overrides_runpath=yes
12761   fi
12762   ;;
12763
12764 os2*)
12765   libname_spec='$name'
12766   shrext_cmds=".dll"
12767   need_lib_prefix=no
12768   library_names_spec='$libname${shared_ext} $libname.a'
12769   dynamic_linker='OS/2 ld.exe'
12770   shlibpath_var=LIBPATH
12771   ;;
12772
12773 osf3* | osf4* | osf5*)
12774   version_type=osf
12775   need_lib_prefix=no
12776   need_version=no
12777   soname_spec='${libname}${release}${shared_ext}$major'
12778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12779   shlibpath_var=LD_LIBRARY_PATH
12780   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12781   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12782   ;;
12783
12784 rdos*)
12785   dynamic_linker=no
12786   ;;
12787
12788 solaris*)
12789   version_type=linux
12790   need_lib_prefix=no
12791   need_version=no
12792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12793   soname_spec='${libname}${release}${shared_ext}$major'
12794   shlibpath_var=LD_LIBRARY_PATH
12795   shlibpath_overrides_runpath=yes
12796   hardcode_into_libs=yes
12797   # ldd complains unless libraries are executable
12798   postinstall_cmds='chmod +x $lib'
12799   ;;
12800
12801 sunos4*)
12802   version_type=sunos
12803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12804   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12805   shlibpath_var=LD_LIBRARY_PATH
12806   shlibpath_overrides_runpath=yes
12807   if test "$with_gnu_ld" = yes; then
12808     need_lib_prefix=no
12809   fi
12810   need_version=yes
12811   ;;
12812
12813 sysv4 | sysv4.3*)
12814   version_type=linux
12815   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12816   soname_spec='${libname}${release}${shared_ext}$major'
12817   shlibpath_var=LD_LIBRARY_PATH
12818   case $host_vendor in
12819     sni)
12820       shlibpath_overrides_runpath=no
12821       need_lib_prefix=no
12822       runpath_var=LD_RUN_PATH
12823       ;;
12824     siemens)
12825       need_lib_prefix=no
12826       ;;
12827     motorola)
12828       need_lib_prefix=no
12829       need_version=no
12830       shlibpath_overrides_runpath=no
12831       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12832       ;;
12833   esac
12834   ;;
12835
12836 sysv4*MP*)
12837   if test -d /usr/nec ;then
12838     version_type=linux
12839     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12840     soname_spec='$libname${shared_ext}.$major'
12841     shlibpath_var=LD_LIBRARY_PATH
12842   fi
12843   ;;
12844
12845 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12846   version_type=freebsd-elf
12847   need_lib_prefix=no
12848   need_version=no
12849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12850   soname_spec='${libname}${release}${shared_ext}$major'
12851   shlibpath_var=LD_LIBRARY_PATH
12852   shlibpath_overrides_runpath=yes
12853   hardcode_into_libs=yes
12854   if test "$with_gnu_ld" = yes; then
12855     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12856   else
12857     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12858     case $host_os in
12859       sco3.2v5*)
12860         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12861         ;;
12862     esac
12863   fi
12864   sys_lib_dlsearch_path_spec='/usr/lib'
12865   ;;
12866
12867 tpf*)
12868   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12869   version_type=linux
12870   need_lib_prefix=no
12871   need_version=no
12872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12873   shlibpath_var=LD_LIBRARY_PATH
12874   shlibpath_overrides_runpath=no
12875   hardcode_into_libs=yes
12876   ;;
12877
12878 uts4*)
12879   version_type=linux
12880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12881   soname_spec='${libname}${release}${shared_ext}$major'
12882   shlibpath_var=LD_LIBRARY_PATH
12883   ;;
12884
12885 *)
12886   dynamic_linker=no
12887   ;;
12888 esac
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12890 $as_echo "$dynamic_linker" >&6; }
12891 test "$dynamic_linker" = no && can_build_shared=no
12892
12893 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12894 if test "$GCC" = yes; then
12895   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12896 fi
12897
12898 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12899   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12900 fi
12901 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12902   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12903 fi
12904
12905
12906
12907
12908
12909
12910
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12997 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12998 hardcode_action=
12999 if test -n "$hardcode_libdir_flag_spec" ||
13000    test -n "$runpath_var" ||
13001    test "X$hardcode_automatic" = "Xyes" ; then
13002
13003   # We can hardcode non-existent directories.
13004   if test "$hardcode_direct" != no &&
13005      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13006      # have to relink, otherwise we might link with an installed library
13007      # when we should be linking with a yet-to-be-installed one
13008      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13009      test "$hardcode_minus_L" != no; then
13010     # Linking always hardcodes the temporary library directory.
13011     hardcode_action=relink
13012   else
13013     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13014     hardcode_action=immediate
13015   fi
13016 else
13017   # We cannot hardcode anything, or else we can only hardcode existing
13018   # directories.
13019   hardcode_action=unsupported
13020 fi
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13022 $as_echo "$hardcode_action" >&6; }
13023
13024 if test "$hardcode_action" = relink ||
13025    test "$inherit_rpath" = yes; then
13026   # Fast installation is not supported
13027   enable_fast_install=no
13028 elif test "$shlibpath_overrides_runpath" = yes ||
13029      test "$enable_shared" = no; then
13030   # Fast installation is not necessary
13031   enable_fast_install=needless
13032 fi
13033
13034
13035
13036
13037
13038
13039   if test "x$enable_dlopen" != xyes; then
13040   enable_dlopen=unknown
13041   enable_dlopen_self=unknown
13042   enable_dlopen_self_static=unknown
13043 else
13044   lt_cv_dlopen=no
13045   lt_cv_dlopen_libs=
13046
13047   case $host_os in
13048   beos*)
13049     lt_cv_dlopen="load_add_on"
13050     lt_cv_dlopen_libs=
13051     lt_cv_dlopen_self=yes
13052     ;;
13053
13054   mingw* | pw32* | cegcc*)
13055     lt_cv_dlopen="LoadLibrary"
13056     lt_cv_dlopen_libs=
13057     ;;
13058
13059   cygwin*)
13060     lt_cv_dlopen="dlopen"
13061     lt_cv_dlopen_libs=
13062     ;;
13063
13064   darwin*)
13065   # if libdl is installed we need to link against it
13066     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13067 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13068 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13069   $as_echo_n "(cached) " >&6
13070 else
13071   ac_check_lib_save_LIBS=$LIBS
13072 LIBS="-ldl  $LIBS"
13073 if test x$gcc_no_link = xyes; then
13074   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13075 fi
13076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13077 /* end confdefs.h.  */
13078
13079 /* Override any GCC internal prototype to avoid an error.
13080    Use char because int might match the return type of a GCC
13081    builtin and then its argument prototype would still apply.  */
13082 #ifdef __cplusplus
13083 extern "C"
13084 #endif
13085 char dlopen ();
13086 int
13087 main ()
13088 {
13089 return dlopen ();
13090   ;
13091   return 0;
13092 }
13093 _ACEOF
13094 if ac_fn_c_try_link "$LINENO"; then :
13095   ac_cv_lib_dl_dlopen=yes
13096 else
13097   ac_cv_lib_dl_dlopen=no
13098 fi
13099 rm -f core conftest.err conftest.$ac_objext \
13100     conftest$ac_exeext conftest.$ac_ext
13101 LIBS=$ac_check_lib_save_LIBS
13102 fi
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13104 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13105 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13106   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13107 else
13108
13109     lt_cv_dlopen="dyld"
13110     lt_cv_dlopen_libs=
13111     lt_cv_dlopen_self=yes
13112
13113 fi
13114
13115     ;;
13116
13117   *)
13118     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13119 if test "x$ac_cv_func_shl_load" = x""yes; then :
13120   lt_cv_dlopen="shl_load"
13121 else
13122   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13123 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13124 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13125   $as_echo_n "(cached) " >&6
13126 else
13127   ac_check_lib_save_LIBS=$LIBS
13128 LIBS="-ldld  $LIBS"
13129 if test x$gcc_no_link = xyes; then
13130   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13131 fi
13132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13133 /* end confdefs.h.  */
13134
13135 /* Override any GCC internal prototype to avoid an error.
13136    Use char because int might match the return type of a GCC
13137    builtin and then its argument prototype would still apply.  */
13138 #ifdef __cplusplus
13139 extern "C"
13140 #endif
13141 char shl_load ();
13142 int
13143 main ()
13144 {
13145 return shl_load ();
13146   ;
13147   return 0;
13148 }
13149 _ACEOF
13150 if ac_fn_c_try_link "$LINENO"; then :
13151   ac_cv_lib_dld_shl_load=yes
13152 else
13153   ac_cv_lib_dld_shl_load=no
13154 fi
13155 rm -f core conftest.err conftest.$ac_objext \
13156     conftest$ac_exeext conftest.$ac_ext
13157 LIBS=$ac_check_lib_save_LIBS
13158 fi
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13160 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13161 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13162   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13163 else
13164   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13165 if test "x$ac_cv_func_dlopen" = x""yes; then :
13166   lt_cv_dlopen="dlopen"
13167 else
13168   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13169 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13170 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13171   $as_echo_n "(cached) " >&6
13172 else
13173   ac_check_lib_save_LIBS=$LIBS
13174 LIBS="-ldl  $LIBS"
13175 if test x$gcc_no_link = xyes; then
13176   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13177 fi
13178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13179 /* end confdefs.h.  */
13180
13181 /* Override any GCC internal prototype to avoid an error.
13182    Use char because int might match the return type of a GCC
13183    builtin and then its argument prototype would still apply.  */
13184 #ifdef __cplusplus
13185 extern "C"
13186 #endif
13187 char dlopen ();
13188 int
13189 main ()
13190 {
13191 return dlopen ();
13192   ;
13193   return 0;
13194 }
13195 _ACEOF
13196 if ac_fn_c_try_link "$LINENO"; then :
13197   ac_cv_lib_dl_dlopen=yes
13198 else
13199   ac_cv_lib_dl_dlopen=no
13200 fi
13201 rm -f core conftest.err conftest.$ac_objext \
13202     conftest$ac_exeext conftest.$ac_ext
13203 LIBS=$ac_check_lib_save_LIBS
13204 fi
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13206 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13207 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13208   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13209 else
13210   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13211 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13212 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13213   $as_echo_n "(cached) " >&6
13214 else
13215   ac_check_lib_save_LIBS=$LIBS
13216 LIBS="-lsvld  $LIBS"
13217 if test x$gcc_no_link = xyes; then
13218   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13219 fi
13220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13221 /* end confdefs.h.  */
13222
13223 /* Override any GCC internal prototype to avoid an error.
13224    Use char because int might match the return type of a GCC
13225    builtin and then its argument prototype would still apply.  */
13226 #ifdef __cplusplus
13227 extern "C"
13228 #endif
13229 char dlopen ();
13230 int
13231 main ()
13232 {
13233 return dlopen ();
13234   ;
13235   return 0;
13236 }
13237 _ACEOF
13238 if ac_fn_c_try_link "$LINENO"; then :
13239   ac_cv_lib_svld_dlopen=yes
13240 else
13241   ac_cv_lib_svld_dlopen=no
13242 fi
13243 rm -f core conftest.err conftest.$ac_objext \
13244     conftest$ac_exeext conftest.$ac_ext
13245 LIBS=$ac_check_lib_save_LIBS
13246 fi
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13248 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13249 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13250   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13251 else
13252   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13253 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13254 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13255   $as_echo_n "(cached) " >&6
13256 else
13257   ac_check_lib_save_LIBS=$LIBS
13258 LIBS="-ldld  $LIBS"
13259 if test x$gcc_no_link = xyes; then
13260   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13261 fi
13262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13263 /* end confdefs.h.  */
13264
13265 /* Override any GCC internal prototype to avoid an error.
13266    Use char because int might match the return type of a GCC
13267    builtin and then its argument prototype would still apply.  */
13268 #ifdef __cplusplus
13269 extern "C"
13270 #endif
13271 char dld_link ();
13272 int
13273 main ()
13274 {
13275 return dld_link ();
13276   ;
13277   return 0;
13278 }
13279 _ACEOF
13280 if ac_fn_c_try_link "$LINENO"; then :
13281   ac_cv_lib_dld_dld_link=yes
13282 else
13283   ac_cv_lib_dld_dld_link=no
13284 fi
13285 rm -f core conftest.err conftest.$ac_objext \
13286     conftest$ac_exeext conftest.$ac_ext
13287 LIBS=$ac_check_lib_save_LIBS
13288 fi
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13290 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13291 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13292   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13293 fi
13294
13295
13296 fi
13297
13298
13299 fi
13300
13301
13302 fi
13303
13304
13305 fi
13306
13307
13308 fi
13309
13310     ;;
13311   esac
13312
13313   if test "x$lt_cv_dlopen" != xno; then
13314     enable_dlopen=yes
13315   else
13316     enable_dlopen=no
13317   fi
13318
13319   case $lt_cv_dlopen in
13320   dlopen)
13321     save_CPPFLAGS="$CPPFLAGS"
13322     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13323
13324     save_LDFLAGS="$LDFLAGS"
13325     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13326
13327     save_LIBS="$LIBS"
13328     LIBS="$lt_cv_dlopen_libs $LIBS"
13329
13330     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13331 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13332 if test "${lt_cv_dlopen_self+set}" = set; then :
13333   $as_echo_n "(cached) " >&6
13334 else
13335           if test "$cross_compiling" = yes; then :
13336   lt_cv_dlopen_self=cross
13337 else
13338   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13339   lt_status=$lt_dlunknown
13340   cat > conftest.$ac_ext <<_LT_EOF
13341 #line 13341 "configure"
13342 #include "confdefs.h"
13343
13344 #if HAVE_DLFCN_H
13345 #include <dlfcn.h>
13346 #endif
13347
13348 #include <stdio.h>
13349
13350 #ifdef RTLD_GLOBAL
13351 #  define LT_DLGLOBAL           RTLD_GLOBAL
13352 #else
13353 #  ifdef DL_GLOBAL
13354 #    define LT_DLGLOBAL         DL_GLOBAL
13355 #  else
13356 #    define LT_DLGLOBAL         0
13357 #  endif
13358 #endif
13359
13360 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13361    find out it does not work in some platform. */
13362 #ifndef LT_DLLAZY_OR_NOW
13363 #  ifdef RTLD_LAZY
13364 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13365 #  else
13366 #    ifdef DL_LAZY
13367 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13368 #    else
13369 #      ifdef RTLD_NOW
13370 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13371 #      else
13372 #        ifdef DL_NOW
13373 #          define LT_DLLAZY_OR_NOW      DL_NOW
13374 #        else
13375 #          define LT_DLLAZY_OR_NOW      0
13376 #        endif
13377 #      endif
13378 #    endif
13379 #  endif
13380 #endif
13381
13382 /* When -fvisbility=hidden is used, assume the code has been annotated
13383    correspondingly for the symbols needed.  */
13384 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13385 void fnord () __attribute__((visibility("default")));
13386 #endif
13387
13388 void fnord () { int i=42; }
13389 int main ()
13390 {
13391   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13392   int status = $lt_dlunknown;
13393
13394   if (self)
13395     {
13396       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13397       else
13398         {
13399           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13400           else puts (dlerror ());
13401         }
13402       /* dlclose (self); */
13403     }
13404   else
13405     puts (dlerror ());
13406
13407   return status;
13408 }
13409 _LT_EOF
13410   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13411   (eval $ac_link) 2>&5
13412   ac_status=$?
13413   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13414   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13415     (./conftest; exit; ) >&5 2>/dev/null
13416     lt_status=$?
13417     case x$lt_status in
13418       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13419       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13420       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13421     esac
13422   else :
13423     # compilation failed
13424     lt_cv_dlopen_self=no
13425   fi
13426 fi
13427 rm -fr conftest*
13428
13429
13430 fi
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13432 $as_echo "$lt_cv_dlopen_self" >&6; }
13433
13434     if test "x$lt_cv_dlopen_self" = xyes; then
13435       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13436       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13437 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13438 if test "${lt_cv_dlopen_self_static+set}" = set; then :
13439   $as_echo_n "(cached) " >&6
13440 else
13441           if test "$cross_compiling" = yes; then :
13442   lt_cv_dlopen_self_static=cross
13443 else
13444   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13445   lt_status=$lt_dlunknown
13446   cat > conftest.$ac_ext <<_LT_EOF
13447 #line 13447 "configure"
13448 #include "confdefs.h"
13449
13450 #if HAVE_DLFCN_H
13451 #include <dlfcn.h>
13452 #endif
13453
13454 #include <stdio.h>
13455
13456 #ifdef RTLD_GLOBAL
13457 #  define LT_DLGLOBAL           RTLD_GLOBAL
13458 #else
13459 #  ifdef DL_GLOBAL
13460 #    define LT_DLGLOBAL         DL_GLOBAL
13461 #  else
13462 #    define LT_DLGLOBAL         0
13463 #  endif
13464 #endif
13465
13466 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13467    find out it does not work in some platform. */
13468 #ifndef LT_DLLAZY_OR_NOW
13469 #  ifdef RTLD_LAZY
13470 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13471 #  else
13472 #    ifdef DL_LAZY
13473 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13474 #    else
13475 #      ifdef RTLD_NOW
13476 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13477 #      else
13478 #        ifdef DL_NOW
13479 #          define LT_DLLAZY_OR_NOW      DL_NOW
13480 #        else
13481 #          define LT_DLLAZY_OR_NOW      0
13482 #        endif
13483 #      endif
13484 #    endif
13485 #  endif
13486 #endif
13487
13488 /* When -fvisbility=hidden is used, assume the code has been annotated
13489    correspondingly for the symbols needed.  */
13490 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13491 void fnord () __attribute__((visibility("default")));
13492 #endif
13493
13494 void fnord () { int i=42; }
13495 int main ()
13496 {
13497   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13498   int status = $lt_dlunknown;
13499
13500   if (self)
13501     {
13502       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13503       else
13504         {
13505           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13506           else puts (dlerror ());
13507         }
13508       /* dlclose (self); */
13509     }
13510   else
13511     puts (dlerror ());
13512
13513   return status;
13514 }
13515 _LT_EOF
13516   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13517   (eval $ac_link) 2>&5
13518   ac_status=$?
13519   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13520   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13521     (./conftest; exit; ) >&5 2>/dev/null
13522     lt_status=$?
13523     case x$lt_status in
13524       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13525       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13526       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13527     esac
13528   else :
13529     # compilation failed
13530     lt_cv_dlopen_self_static=no
13531   fi
13532 fi
13533 rm -fr conftest*
13534
13535
13536 fi
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13538 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13539     fi
13540
13541     CPPFLAGS="$save_CPPFLAGS"
13542     LDFLAGS="$save_LDFLAGS"
13543     LIBS="$save_LIBS"
13544     ;;
13545   esac
13546
13547   case $lt_cv_dlopen_self in
13548   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13549   *) enable_dlopen_self=unknown ;;
13550   esac
13551
13552   case $lt_cv_dlopen_self_static in
13553   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13554   *) enable_dlopen_self_static=unknown ;;
13555   esac
13556 fi
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574 striplib=
13575 old_striplib=
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13577 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13578 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13579   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13580   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13582 $as_echo "yes" >&6; }
13583 else
13584 # FIXME - insert some real tests, host_os isn't really good enough
13585   case $host_os in
13586   darwin*)
13587     if test -n "$STRIP" ; then
13588       striplib="$STRIP -x"
13589       old_striplib="$STRIP -S"
13590       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13591 $as_echo "yes" >&6; }
13592     else
13593       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13594 $as_echo "no" >&6; }
13595     fi
13596     ;;
13597   *)
13598     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13599 $as_echo "no" >&6; }
13600     ;;
13601   esac
13602 fi
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615   # Report which library types will actually be built
13616   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13617 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13619 $as_echo "$can_build_shared" >&6; }
13620
13621   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13622 $as_echo_n "checking whether to build shared libraries... " >&6; }
13623   test "$can_build_shared" = "no" && enable_shared=no
13624
13625   # On AIX, shared libraries and static libraries use the same namespace, and
13626   # are all built from PIC.
13627   case $host_os in
13628   aix3*)
13629     test "$enable_shared" = yes && enable_static=no
13630     if test -n "$RANLIB"; then
13631       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13632       postinstall_cmds='$RANLIB $lib'
13633     fi
13634     ;;
13635
13636   aix[4-9]*)
13637     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13638       test "$enable_shared" = yes && enable_static=no
13639     fi
13640     ;;
13641   esac
13642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13643 $as_echo "$enable_shared" >&6; }
13644
13645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13646 $as_echo_n "checking whether to build static libraries... " >&6; }
13647   # Make sure either enable_shared or enable_static is yes.
13648   test "$enable_shared" = yes || enable_static=yes
13649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13650 $as_echo "$enable_static" >&6; }
13651
13652
13653
13654
13655 fi
13656 ac_ext=c
13657 ac_cpp='$CPP $CPPFLAGS'
13658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13661
13662 CC="$lt_save_CC"
13663
13664       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13665     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13666     (test "X$CXX" != "Xg++"))) ; then
13667   ac_ext=cpp
13668 ac_cpp='$CXXCPP $CPPFLAGS'
13669 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13670 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13671 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13673 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13674 if test -z "$CXXCPP"; then
13675   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13676   $as_echo_n "(cached) " >&6
13677 else
13678       # Double quotes because CXXCPP needs to be expanded
13679     for CXXCPP in "$CXX -E" "/lib/cpp"
13680     do
13681       ac_preproc_ok=false
13682 for ac_cxx_preproc_warn_flag in '' yes
13683 do
13684   # Use a header file that comes with gcc, so configuring glibc
13685   # with a fresh cross-compiler works.
13686   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13687   # <limits.h> exists even on freestanding compilers.
13688   # On the NeXT, cc -E runs the code through the compiler's parser,
13689   # not just through cpp. "Syntax error" is here to catch this case.
13690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13691 /* end confdefs.h.  */
13692 #ifdef __STDC__
13693 # include <limits.h>
13694 #else
13695 # include <assert.h>
13696 #endif
13697                      Syntax error
13698 _ACEOF
13699 if ac_fn_cxx_try_cpp "$LINENO"; then :
13700
13701 else
13702   # Broken: fails on valid input.
13703 continue
13704 fi
13705 rm -f conftest.err conftest.$ac_ext
13706
13707   # OK, works on sane cases.  Now check whether nonexistent headers
13708   # can be detected and how.
13709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13710 /* end confdefs.h.  */
13711 #include <ac_nonexistent.h>
13712 _ACEOF
13713 if ac_fn_cxx_try_cpp "$LINENO"; then :
13714   # Broken: success on invalid input.
13715 continue
13716 else
13717   # Passes both tests.
13718 ac_preproc_ok=:
13719 break
13720 fi
13721 rm -f conftest.err conftest.$ac_ext
13722
13723 done
13724 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13725 rm -f conftest.err conftest.$ac_ext
13726 if $ac_preproc_ok; then :
13727   break
13728 fi
13729
13730     done
13731     ac_cv_prog_CXXCPP=$CXXCPP
13732
13733 fi
13734   CXXCPP=$ac_cv_prog_CXXCPP
13735 else
13736   ac_cv_prog_CXXCPP=$CXXCPP
13737 fi
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13739 $as_echo "$CXXCPP" >&6; }
13740 ac_preproc_ok=false
13741 for ac_cxx_preproc_warn_flag in '' yes
13742 do
13743   # Use a header file that comes with gcc, so configuring glibc
13744   # with a fresh cross-compiler works.
13745   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13746   # <limits.h> exists even on freestanding compilers.
13747   # On the NeXT, cc -E runs the code through the compiler's parser,
13748   # not just through cpp. "Syntax error" is here to catch this case.
13749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13750 /* end confdefs.h.  */
13751 #ifdef __STDC__
13752 # include <limits.h>
13753 #else
13754 # include <assert.h>
13755 #endif
13756                      Syntax error
13757 _ACEOF
13758 if ac_fn_cxx_try_cpp "$LINENO"; then :
13759
13760 else
13761   # Broken: fails on valid input.
13762 continue
13763 fi
13764 rm -f conftest.err conftest.$ac_ext
13765
13766   # OK, works on sane cases.  Now check whether nonexistent headers
13767   # can be detected and how.
13768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13769 /* end confdefs.h.  */
13770 #include <ac_nonexistent.h>
13771 _ACEOF
13772 if ac_fn_cxx_try_cpp "$LINENO"; then :
13773   # Broken: success on invalid input.
13774 continue
13775 else
13776   # Passes both tests.
13777 ac_preproc_ok=:
13778 break
13779 fi
13780 rm -f conftest.err conftest.$ac_ext
13781
13782 done
13783 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13784 rm -f conftest.err conftest.$ac_ext
13785 if $ac_preproc_ok; then :
13786
13787 else
13788   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13790 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
13791 See \`config.log' for more details." "$LINENO" 5; }
13792 fi
13793
13794 ac_ext=c
13795 ac_cpp='$CPP $CPPFLAGS'
13796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13799
13800 else
13801   _lt_caught_CXX_error=yes
13802 fi
13803
13804 ac_ext=cpp
13805 ac_cpp='$CXXCPP $CPPFLAGS'
13806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13809
13810 archive_cmds_need_lc_CXX=no
13811 allow_undefined_flag_CXX=
13812 always_export_symbols_CXX=no
13813 archive_expsym_cmds_CXX=
13814 compiler_needs_object_CXX=no
13815 export_dynamic_flag_spec_CXX=
13816 hardcode_direct_CXX=no
13817 hardcode_direct_absolute_CXX=no
13818 hardcode_libdir_flag_spec_CXX=
13819 hardcode_libdir_flag_spec_ld_CXX=
13820 hardcode_libdir_separator_CXX=
13821 hardcode_minus_L_CXX=no
13822 hardcode_shlibpath_var_CXX=unsupported
13823 hardcode_automatic_CXX=no
13824 inherit_rpath_CXX=no
13825 module_cmds_CXX=
13826 module_expsym_cmds_CXX=
13827 link_all_deplibs_CXX=unknown
13828 old_archive_cmds_CXX=$old_archive_cmds
13829 reload_flag_CXX=$reload_flag
13830 reload_cmds_CXX=$reload_cmds
13831 no_undefined_flag_CXX=
13832 whole_archive_flag_spec_CXX=
13833 enable_shared_with_static_runtimes_CXX=no
13834
13835 # Source file extension for C++ test sources.
13836 ac_ext=cpp
13837
13838 # Object file extension for compiled C++ test sources.
13839 objext=o
13840 objext_CXX=$objext
13841
13842 # No sense in running all these tests if we already determined that
13843 # the CXX compiler isn't working.  Some variables (like enable_shared)
13844 # are currently assumed to apply to all compilers on this platform,
13845 # and will be corrupted by setting them based on a non-working compiler.
13846 if test "$_lt_caught_CXX_error" != yes; then
13847   # Code to be used in simple compile tests
13848   lt_simple_compile_test_code="int some_variable = 0;"
13849
13850   # Code to be used in simple link tests
13851   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13852
13853   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13854
13855
13856
13857
13858
13859
13860 # If no C compiler was specified, use CC.
13861 LTCC=${LTCC-"$CC"}
13862
13863 # If no C compiler flags were specified, use CFLAGS.
13864 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13865
13866 # Allow CC to be a program name with arguments.
13867 compiler=$CC
13868
13869
13870   # save warnings/boilerplate of simple test code
13871   ac_outfile=conftest.$ac_objext
13872 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13873 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13874 _lt_compiler_boilerplate=`cat conftest.err`
13875 $RM conftest*
13876
13877   ac_outfile=conftest.$ac_objext
13878 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13879 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13880 _lt_linker_boilerplate=`cat conftest.err`
13881 $RM -r conftest*
13882
13883
13884   # Allow CC to be a program name with arguments.
13885   lt_save_CC=$CC
13886   lt_save_LD=$LD
13887   lt_save_GCC=$GCC
13888   GCC=$GXX
13889   lt_save_with_gnu_ld=$with_gnu_ld
13890   lt_save_path_LD=$lt_cv_path_LD
13891   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13892     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13893   else
13894     $as_unset lt_cv_prog_gnu_ld
13895   fi
13896   if test -n "${lt_cv_path_LDCXX+set}"; then
13897     lt_cv_path_LD=$lt_cv_path_LDCXX
13898   else
13899     $as_unset lt_cv_path_LD
13900   fi
13901   test -z "${LDCXX+set}" || LD=$LDCXX
13902   CC=${CXX-"c++"}
13903   compiler=$CC
13904   compiler_CXX=$CC
13905   for cc_temp in $compiler""; do
13906   case $cc_temp in
13907     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13908     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13909     \-*) ;;
13910     *) break;;
13911   esac
13912 done
13913 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13914
13915
13916   if test -n "$compiler"; then
13917     # We don't want -fno-exception when compiling C++ code, so set the
13918     # no_builtin_flag separately
13919     if test "$GXX" = yes; then
13920       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13921     else
13922       lt_prog_compiler_no_builtin_flag_CXX=
13923     fi
13924
13925     if test "$GXX" = yes; then
13926       # Set up default GNU C++ configuration
13927
13928
13929
13930 # Check whether --with-gnu-ld was given.
13931 if test "${with_gnu_ld+set}" = set; then :
13932   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13933 else
13934   with_gnu_ld=no
13935 fi
13936
13937 ac_prog=ld
13938 if test "$GCC" = yes; then
13939   # Check if gcc -print-prog-name=ld gives a path.
13940   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13941 $as_echo_n "checking for ld used by $CC... " >&6; }
13942   case $host in
13943   *-*-mingw*)
13944     # gcc leaves a trailing carriage return which upsets mingw
13945     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13946   *)
13947     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13948   esac
13949   case $ac_prog in
13950     # Accept absolute paths.
13951     [\\/]* | ?:[\\/]*)
13952       re_direlt='/[^/][^/]*/\.\./'
13953       # Canonicalize the pathname of ld
13954       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13955       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13956         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13957       done
13958       test -z "$LD" && LD="$ac_prog"
13959       ;;
13960   "")
13961     # If it fails, then pretend we aren't using GCC.
13962     ac_prog=ld
13963     ;;
13964   *)
13965     # If it is relative, then search for the first ld in PATH.
13966     with_gnu_ld=unknown
13967     ;;
13968   esac
13969 elif test "$with_gnu_ld" = yes; then
13970   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13971 $as_echo_n "checking for GNU ld... " >&6; }
13972 else
13973   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13974 $as_echo_n "checking for non-GNU ld... " >&6; }
13975 fi
13976 if test "${lt_cv_path_LD+set}" = set; then :
13977   $as_echo_n "(cached) " >&6
13978 else
13979   if test -z "$LD"; then
13980   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13981   for ac_dir in $PATH; do
13982     IFS="$lt_save_ifs"
13983     test -z "$ac_dir" && ac_dir=.
13984     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13985       lt_cv_path_LD="$ac_dir/$ac_prog"
13986       # Check to see if the program is GNU ld.  I'd rather use --version,
13987       # but apparently some variants of GNU ld only accept -v.
13988       # Break only if it was the GNU/non-GNU ld that we prefer.
13989       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13990       *GNU* | *'with BFD'*)
13991         test "$with_gnu_ld" != no && break
13992         ;;
13993       *)
13994         test "$with_gnu_ld" != yes && break
13995         ;;
13996       esac
13997     fi
13998   done
13999   IFS="$lt_save_ifs"
14000 else
14001   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14002 fi
14003 fi
14004
14005 LD="$lt_cv_path_LD"
14006 if test -n "$LD"; then
14007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14008 $as_echo "$LD" >&6; }
14009 else
14010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14011 $as_echo "no" >&6; }
14012 fi
14013 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14015 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14016 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14017   $as_echo_n "(cached) " >&6
14018 else
14019   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14020 case `$LD -v 2>&1 </dev/null` in
14021 *GNU* | *'with BFD'*)
14022   lt_cv_prog_gnu_ld=yes
14023   ;;
14024 *)
14025   lt_cv_prog_gnu_ld=no
14026   ;;
14027 esac
14028 fi
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14030 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14031 with_gnu_ld=$lt_cv_prog_gnu_ld
14032
14033
14034
14035
14036
14037
14038
14039       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14040       # archiving commands below assume that GNU ld is being used.
14041       if test "$with_gnu_ld" = yes; then
14042         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14043         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14044
14045         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14046         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14047
14048         # If archive_cmds runs LD, not CC, wlarc should be empty
14049         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14050         #     investigate it a little bit more. (MM)
14051         wlarc='${wl}'
14052
14053         # ancient GNU ld didn't support --whole-archive et. al.
14054         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14055           $GREP 'no-whole-archive' > /dev/null; then
14056           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14057         else
14058           whole_archive_flag_spec_CXX=
14059         fi
14060       else
14061         with_gnu_ld=no
14062         wlarc=
14063
14064         # A generic and very simple default shared library creation
14065         # command for GNU C++ for the case where it uses the native
14066         # linker, instead of GNU ld.  If possible, this setting should
14067         # overridden to take advantage of the native linker features on
14068         # the platform it is being used on.
14069         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14070       fi
14071
14072       # Commands to make compiler produce verbose output that lists
14073       # what "hidden" libraries, object files and flags are used when
14074       # linking a shared library.
14075       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14076
14077     else
14078       GXX=no
14079       with_gnu_ld=no
14080       wlarc=
14081     fi
14082
14083     # PORTME: fill in a description of your system's C++ link characteristics
14084     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14085 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14086     ld_shlibs_CXX=yes
14087     case $host_os in
14088       aix3*)
14089         # FIXME: insert proper C++ library support
14090         ld_shlibs_CXX=no
14091         ;;
14092       aix[4-9]*)
14093         if test "$host_cpu" = ia64; then
14094           # On IA64, the linker does run time linking by default, so we don't
14095           # have to do anything special.
14096           aix_use_runtimelinking=no
14097           exp_sym_flag='-Bexport'
14098           no_entry_flag=""
14099         else
14100           aix_use_runtimelinking=no
14101
14102           # Test if we are trying to use run time linking or normal
14103           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14104           # need to do runtime linking.
14105           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14106             for ld_flag in $LDFLAGS; do
14107               case $ld_flag in
14108               *-brtl*)
14109                 aix_use_runtimelinking=yes
14110                 break
14111                 ;;
14112               esac
14113             done
14114             ;;
14115           esac
14116
14117           exp_sym_flag='-bexport'
14118           no_entry_flag='-bnoentry'
14119         fi
14120
14121         # When large executables or shared objects are built, AIX ld can
14122         # have problems creating the table of contents.  If linking a library
14123         # or program results in "error TOC overflow" add -mminimal-toc to
14124         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14125         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14126
14127         archive_cmds_CXX=''
14128         hardcode_direct_CXX=yes
14129         hardcode_direct_absolute_CXX=yes
14130         hardcode_libdir_separator_CXX=':'
14131         link_all_deplibs_CXX=yes
14132         file_list_spec_CXX='${wl}-f,'
14133
14134         if test "$GXX" = yes; then
14135           case $host_os in aix4.[012]|aix4.[012].*)
14136           # We only want to do this on AIX 4.2 and lower, the check
14137           # below for broken collect2 doesn't work under 4.3+
14138           collect2name=`${CC} -print-prog-name=collect2`
14139           if test -f "$collect2name" &&
14140              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14141           then
14142             # We have reworked collect2
14143             :
14144           else
14145             # We have old collect2
14146             hardcode_direct_CXX=unsupported
14147             # It fails to find uninstalled libraries when the uninstalled
14148             # path is not listed in the libpath.  Setting hardcode_minus_L
14149             # to unsupported forces relinking
14150             hardcode_minus_L_CXX=yes
14151             hardcode_libdir_flag_spec_CXX='-L$libdir'
14152             hardcode_libdir_separator_CXX=
14153           fi
14154           esac
14155           shared_flag='-shared'
14156           if test "$aix_use_runtimelinking" = yes; then
14157             shared_flag="$shared_flag "'${wl}-G'
14158           fi
14159         else
14160           # not using gcc
14161           if test "$host_cpu" = ia64; then
14162           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14163           # chokes on -Wl,-G. The following line is correct:
14164           shared_flag='-G'
14165           else
14166             if test "$aix_use_runtimelinking" = yes; then
14167               shared_flag='${wl}-G'
14168             else
14169               shared_flag='${wl}-bM:SRE'
14170             fi
14171           fi
14172         fi
14173
14174         export_dynamic_flag_spec_CXX='${wl}-bexpall'
14175         # It seems that -bexpall does not export symbols beginning with
14176         # underscore (_), so it is better to generate a list of symbols to
14177         # export.
14178         always_export_symbols_CXX=yes
14179         if test "$aix_use_runtimelinking" = yes; then
14180           # Warning - without using the other runtime loading flags (-brtl),
14181           # -berok will link without error, but may produce a broken library.
14182           allow_undefined_flag_CXX='-berok'
14183           # Determine the default libpath from the value encoded in an empty
14184           # executable.
14185           if test x$gcc_no_link = xyes; then
14186   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14187 fi
14188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14189 /* end confdefs.h.  */
14190
14191 int
14192 main ()
14193 {
14194
14195   ;
14196   return 0;
14197 }
14198 _ACEOF
14199 if ac_fn_cxx_try_link "$LINENO"; then :
14200
14201 lt_aix_libpath_sed='
14202     /Import File Strings/,/^$/ {
14203         /^0/ {
14204             s/^0  *\(.*\)$/\1/
14205             p
14206         }
14207     }'
14208 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14209 # Check for a 64-bit object if we didn't find anything.
14210 if test -z "$aix_libpath"; then
14211   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14212 fi
14213 fi
14214 rm -f core conftest.err conftest.$ac_objext \
14215     conftest$ac_exeext conftest.$ac_ext
14216 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14217
14218           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14219
14220           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"
14221         else
14222           if test "$host_cpu" = ia64; then
14223             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14224             allow_undefined_flag_CXX="-z nodefs"
14225             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"
14226           else
14227             # Determine the default libpath from the value encoded in an
14228             # empty executable.
14229             if test x$gcc_no_link = xyes; then
14230   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14231 fi
14232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14233 /* end confdefs.h.  */
14234
14235 int
14236 main ()
14237 {
14238
14239   ;
14240   return 0;
14241 }
14242 _ACEOF
14243 if ac_fn_cxx_try_link "$LINENO"; then :
14244
14245 lt_aix_libpath_sed='
14246     /Import File Strings/,/^$/ {
14247         /^0/ {
14248             s/^0  *\(.*\)$/\1/
14249             p
14250         }
14251     }'
14252 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14253 # Check for a 64-bit object if we didn't find anything.
14254 if test -z "$aix_libpath"; then
14255   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14256 fi
14257 fi
14258 rm -f core conftest.err conftest.$ac_objext \
14259     conftest$ac_exeext conftest.$ac_ext
14260 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14261
14262             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14263             # Warning - without using the other run time loading flags,
14264             # -berok will link without error, but may produce a broken library.
14265             no_undefined_flag_CXX=' ${wl}-bernotok'
14266             allow_undefined_flag_CXX=' ${wl}-berok'
14267             if test "$with_gnu_ld" = yes; then
14268               # We only use this code for GNU lds that support --whole-archive.
14269               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14270             else
14271               # Exported symbols can be pulled into shared objects from archives
14272               whole_archive_flag_spec_CXX='$convenience'
14273             fi
14274             archive_cmds_need_lc_CXX=yes
14275             # This is similar to how AIX traditionally builds its shared
14276             # libraries.
14277             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'
14278           fi
14279         fi
14280         ;;
14281
14282       beos*)
14283         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14284           allow_undefined_flag_CXX=unsupported
14285           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14286           # support --undefined.  This deserves some investigation.  FIXME
14287           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14288         else
14289           ld_shlibs_CXX=no
14290         fi
14291         ;;
14292
14293       chorus*)
14294         case $cc_basename in
14295           *)
14296           # FIXME: insert proper C++ library support
14297           ld_shlibs_CXX=no
14298           ;;
14299         esac
14300         ;;
14301
14302       cygwin* | mingw* | pw32* | cegcc*)
14303         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14304         # as there is no search path for DLLs.
14305         hardcode_libdir_flag_spec_CXX='-L$libdir'
14306         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14307         allow_undefined_flag_CXX=unsupported
14308         always_export_symbols_CXX=no
14309         enable_shared_with_static_runtimes_CXX=yes
14310
14311         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14312           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'
14313           # If the export-symbols file already is a .def file (1st line
14314           # is EXPORTS), use it as is; otherwise, prepend...
14315           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14316             cp $export_symbols $output_objdir/$soname.def;
14317           else
14318             echo EXPORTS > $output_objdir/$soname.def;
14319             cat $export_symbols >> $output_objdir/$soname.def;
14320           fi~
14321           $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'
14322         else
14323           ld_shlibs_CXX=no
14324         fi
14325         ;;
14326       darwin* | rhapsody*)
14327
14328
14329   archive_cmds_need_lc_CXX=no
14330   hardcode_direct_CXX=no
14331   hardcode_automatic_CXX=yes
14332   hardcode_shlibpath_var_CXX=unsupported
14333   if test "$lt_cv_ld_force_load" = "yes"; then
14334     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\"`'
14335   else
14336     whole_archive_flag_spec_CXX=''
14337   fi
14338   link_all_deplibs_CXX=yes
14339   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14340   case $cc_basename in
14341      ifort*) _lt_dar_can_shared=yes ;;
14342      *) _lt_dar_can_shared=$GCC ;;
14343   esac
14344   if test "$_lt_dar_can_shared" = "yes"; then
14345     output_verbose_link_cmd=func_echo_all
14346     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}"
14347     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14348     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}"
14349     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}"
14350        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14351       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}"
14352       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}"
14353     fi
14354
14355   else
14356   ld_shlibs_CXX=no
14357   fi
14358
14359         ;;
14360
14361       dgux*)
14362         case $cc_basename in
14363           ec++*)
14364             # FIXME: insert proper C++ library support
14365             ld_shlibs_CXX=no
14366             ;;
14367           ghcx*)
14368             # Green Hills C++ Compiler
14369             # FIXME: insert proper C++ library support
14370             ld_shlibs_CXX=no
14371             ;;
14372           *)
14373             # FIXME: insert proper C++ library support
14374             ld_shlibs_CXX=no
14375             ;;
14376         esac
14377         ;;
14378
14379       freebsd[12]*)
14380         # C++ shared libraries reported to be fairly broken before
14381         # switch to ELF
14382         ld_shlibs_CXX=no
14383         ;;
14384
14385       freebsd-elf*)
14386         archive_cmds_need_lc_CXX=no
14387         ;;
14388
14389       freebsd* | dragonfly*)
14390         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14391         # conventions
14392         ld_shlibs_CXX=yes
14393         ;;
14394
14395       gnu*)
14396         ;;
14397
14398       haiku*)
14399         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14400         link_all_deplibs_CXX=yes
14401         ;;
14402
14403       hpux9*)
14404         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14405         hardcode_libdir_separator_CXX=:
14406         export_dynamic_flag_spec_CXX='${wl}-E'
14407         hardcode_direct_CXX=yes
14408         hardcode_minus_L_CXX=yes # Not in the search PATH,
14409                                              # but as the default
14410                                              # location of the library.
14411
14412         case $cc_basename in
14413           CC*)
14414             # FIXME: insert proper C++ library support
14415             ld_shlibs_CXX=no
14416             ;;
14417           aCC*)
14418             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'
14419             # Commands to make compiler produce verbose output that lists
14420             # what "hidden" libraries, object files and flags are used when
14421             # linking a shared library.
14422             #
14423             # There doesn't appear to be a way to prevent this compiler from
14424             # explicitly linking system object files so we need to strip them
14425             # from the output so that they don't get included in the library
14426             # dependencies.
14427             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"'
14428             ;;
14429           *)
14430             if test "$GXX" = yes; then
14431               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'
14432             else
14433               # FIXME: insert proper C++ library support
14434               ld_shlibs_CXX=no
14435             fi
14436             ;;
14437         esac
14438         ;;
14439
14440       hpux10*|hpux11*)
14441         if test $with_gnu_ld = no; then
14442           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14443           hardcode_libdir_separator_CXX=:
14444
14445           case $host_cpu in
14446             hppa*64*|ia64*)
14447               ;;
14448             *)
14449               export_dynamic_flag_spec_CXX='${wl}-E'
14450               ;;
14451           esac
14452         fi
14453         case $host_cpu in
14454           hppa*64*|ia64*)
14455             hardcode_direct_CXX=no
14456             hardcode_shlibpath_var_CXX=no
14457             ;;
14458           *)
14459             hardcode_direct_CXX=yes
14460             hardcode_direct_absolute_CXX=yes
14461             hardcode_minus_L_CXX=yes # Not in the search PATH,
14462                                                  # but as the default
14463                                                  # location of the library.
14464             ;;
14465         esac
14466
14467         case $cc_basename in
14468           CC*)
14469             # FIXME: insert proper C++ library support
14470             ld_shlibs_CXX=no
14471             ;;
14472           aCC*)
14473             case $host_cpu in
14474               hppa*64*)
14475                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14476                 ;;
14477               ia64*)
14478                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14479                 ;;
14480               *)
14481                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14482                 ;;
14483             esac
14484             # Commands to make compiler produce verbose output that lists
14485             # what "hidden" libraries, object files and flags are used when
14486             # linking a shared library.
14487             #
14488             # There doesn't appear to be a way to prevent this compiler from
14489             # explicitly linking system object files so we need to strip them
14490             # from the output so that they don't get included in the library
14491             # dependencies.
14492             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"'
14493             ;;
14494           *)
14495             if test "$GXX" = yes; then
14496               if test $with_gnu_ld = no; then
14497                 case $host_cpu in
14498                   hppa*64*)
14499                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14500                     ;;
14501                   ia64*)
14502                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14503                     ;;
14504                   *)
14505                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14506                     ;;
14507                 esac
14508               fi
14509             else
14510               # FIXME: insert proper C++ library support
14511               ld_shlibs_CXX=no
14512             fi
14513             ;;
14514         esac
14515         ;;
14516
14517       interix[3-9]*)
14518         hardcode_direct_CXX=no
14519         hardcode_shlibpath_var_CXX=no
14520         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14521         export_dynamic_flag_spec_CXX='${wl}-E'
14522         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14523         # Instead, shared libraries are loaded at an image base (0x10000000 by
14524         # default) and relocated if they conflict, which is a slow very memory
14525         # consuming and fragmenting process.  To avoid this, we pick a random,
14526         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14527         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14528         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'
14529         archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14530         ;;
14531       irix5* | irix6*)
14532         case $cc_basename in
14533           CC*)
14534             # SGI C++
14535             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14536
14537             # Archives containing C++ object files must be created using
14538             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14539             # necessary to make sure instantiated templates are included
14540             # in the archive.
14541             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14542             ;;
14543           *)
14544             if test "$GXX" = yes; then
14545               if test "$with_gnu_ld" = no; then
14546                 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'
14547               else
14548                 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'
14549               fi
14550             fi
14551             link_all_deplibs_CXX=yes
14552             ;;
14553         esac
14554         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14555         hardcode_libdir_separator_CXX=:
14556         inherit_rpath_CXX=yes
14557         ;;
14558
14559       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14560         case $cc_basename in
14561           KCC*)
14562             # Kuck and Associates, Inc. (KAI) C++ Compiler
14563
14564             # KCC will only create a shared library if the output file
14565             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14566             # to its proper name (with version) after linking.
14567             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'
14568             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'
14569             # Commands to make compiler produce verbose output that lists
14570             # what "hidden" libraries, object files and flags are used when
14571             # linking a shared library.
14572             #
14573             # There doesn't appear to be a way to prevent this compiler from
14574             # explicitly linking system object files so we need to strip them
14575             # from the output so that they don't get included in the library
14576             # dependencies.
14577             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14578
14579             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14580             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14581
14582             # Archives containing C++ object files must be created using
14583             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14584             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14585             ;;
14586           icpc* | ecpc* )
14587             # Intel C++
14588             with_gnu_ld=yes
14589             # version 8.0 and above of icpc choke on multiply defined symbols
14590             # if we add $predep_objects and $postdep_objects, however 7.1 and
14591             # earlier do not add the objects themselves.
14592             case `$CC -V 2>&1` in
14593               *"Version 7."*)
14594                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14595                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14596                 ;;
14597               *)  # Version 8.0 or newer
14598                 tmp_idyn=
14599                 case $host_cpu in
14600                   ia64*) tmp_idyn=' -i_dynamic';;
14601                 esac
14602                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14603                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14604                 ;;
14605             esac
14606             archive_cmds_need_lc_CXX=no
14607             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14608             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14609             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14610             ;;
14611           pgCC* | pgcpp*)
14612             # Portland Group C++ compiler
14613             case `$CC -V` in
14614             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14615               prelink_cmds_CXX='tpldir=Template.dir~
14616                 rm -rf $tpldir~
14617                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14618                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14619               old_archive_cmds_CXX='tpldir=Template.dir~
14620                 rm -rf $tpldir~
14621                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14622                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14623                 $RANLIB $oldlib'
14624               archive_cmds_CXX='tpldir=Template.dir~
14625                 rm -rf $tpldir~
14626                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14627                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14628               archive_expsym_cmds_CXX='tpldir=Template.dir~
14629                 rm -rf $tpldir~
14630                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14631                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14632               ;;
14633             *) # Version 6 and above use weak symbols
14634               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14635               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14636               ;;
14637             esac
14638
14639             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14640             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14641             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14642             ;;
14643           cxx*)
14644             # Compaq C++
14645             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14646             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14647
14648             runpath_var=LD_RUN_PATH
14649             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14650             hardcode_libdir_separator_CXX=:
14651
14652             # Commands to make compiler produce verbose output that lists
14653             # what "hidden" libraries, object files and flags are used when
14654             # linking a shared library.
14655             #
14656             # There doesn't appear to be a way to prevent this compiler from
14657             # explicitly linking system object files so we need to strip them
14658             # from the output so that they don't get included in the library
14659             # dependencies.
14660             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14661             ;;
14662           xl* | mpixl* | bgxl*)
14663             # IBM XL 8.0 on PPC, with GNU ld
14664             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14665             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14666             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14667             if test "x$supports_anon_versioning" = xyes; then
14668               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14669                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14670                 echo "local: *; };" >> $output_objdir/$libname.ver~
14671                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14672             fi
14673             ;;
14674           *)
14675             case `$CC -V 2>&1 | sed 5q` in
14676             *Sun\ C*)
14677               # Sun C++ 5.9
14678               no_undefined_flag_CXX=' -zdefs'
14679               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14680               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'
14681               hardcode_libdir_flag_spec_CXX='-R$libdir'
14682               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'
14683               compiler_needs_object_CXX=yes
14684
14685               # Not sure whether something based on
14686               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14687               # would be better.
14688               output_verbose_link_cmd='func_echo_all'
14689
14690               # Archives containing C++ object files must be created using
14691               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14692               # necessary to make sure instantiated templates are included
14693               # in the archive.
14694               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14695               ;;
14696             esac
14697             ;;
14698         esac
14699         ;;
14700
14701       lynxos*)
14702         # FIXME: insert proper C++ library support
14703         ld_shlibs_CXX=no
14704         ;;
14705
14706       m88k*)
14707         # FIXME: insert proper C++ library support
14708         ld_shlibs_CXX=no
14709         ;;
14710
14711       mvs*)
14712         case $cc_basename in
14713           cxx*)
14714             # FIXME: insert proper C++ library support
14715             ld_shlibs_CXX=no
14716             ;;
14717           *)
14718             # FIXME: insert proper C++ library support
14719             ld_shlibs_CXX=no
14720             ;;
14721         esac
14722         ;;
14723
14724       netbsd*)
14725         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14726           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14727           wlarc=
14728           hardcode_libdir_flag_spec_CXX='-R$libdir'
14729           hardcode_direct_CXX=yes
14730           hardcode_shlibpath_var_CXX=no
14731         fi
14732         # Workaround some broken pre-1.5 toolchains
14733         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14734         ;;
14735
14736       *nto* | *qnx*)
14737         ld_shlibs_CXX=yes
14738         ;;
14739
14740       openbsd2*)
14741         # C++ shared libraries are fairly broken
14742         ld_shlibs_CXX=no
14743         ;;
14744
14745       openbsd*)
14746         if test -f /usr/libexec/ld.so; then
14747           hardcode_direct_CXX=yes
14748           hardcode_shlibpath_var_CXX=no
14749           hardcode_direct_absolute_CXX=yes
14750           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14751           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14752           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14753             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14754             export_dynamic_flag_spec_CXX='${wl}-E'
14755             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14756           fi
14757           output_verbose_link_cmd=func_echo_all
14758         else
14759           ld_shlibs_CXX=no
14760         fi
14761         ;;
14762
14763       osf3* | osf4* | osf5*)
14764         case $cc_basename in
14765           KCC*)
14766             # Kuck and Associates, Inc. (KAI) C++ Compiler
14767
14768             # KCC will only create a shared library if the output file
14769             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14770             # to its proper name (with version) after linking.
14771             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14772
14773             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14774             hardcode_libdir_separator_CXX=:
14775
14776             # Archives containing C++ object files must be created using
14777             # the KAI C++ compiler.
14778             case $host in
14779               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14780               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14781             esac
14782             ;;
14783           RCC*)
14784             # Rational C++ 2.4.1
14785             # FIXME: insert proper C++ library support
14786             ld_shlibs_CXX=no
14787             ;;
14788           cxx*)
14789             case $host in
14790               osf3*)
14791                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14792                 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'
14793                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14794                 ;;
14795               *)
14796                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14797                 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'
14798                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14799                   echo "-hidden">> $lib.exp~
14800                   $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~
14801                   $RM $lib.exp'
14802                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14803                 ;;
14804             esac
14805
14806             hardcode_libdir_separator_CXX=:
14807
14808             # Commands to make compiler produce verbose output that lists
14809             # what "hidden" libraries, object files and flags are used when
14810             # linking a shared library.
14811             #
14812             # There doesn't appear to be a way to prevent this compiler from
14813             # explicitly linking system object files so we need to strip them
14814             # from the output so that they don't get included in the library
14815             # dependencies.
14816             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"'
14817             ;;
14818           *)
14819             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14820               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14821               case $host in
14822                 osf3*)
14823                   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'
14824                   ;;
14825                 *)
14826                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14827                   ;;
14828               esac
14829
14830               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14831               hardcode_libdir_separator_CXX=:
14832
14833               # Commands to make compiler produce verbose output that lists
14834               # what "hidden" libraries, object files and flags are used when
14835               # linking a shared library.
14836               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14837
14838             else
14839               # FIXME: insert proper C++ library support
14840               ld_shlibs_CXX=no
14841             fi
14842             ;;
14843         esac
14844         ;;
14845
14846       psos*)
14847         # FIXME: insert proper C++ library support
14848         ld_shlibs_CXX=no
14849         ;;
14850
14851       sunos4*)
14852         case $cc_basename in
14853           CC*)
14854             # Sun C++ 4.x
14855             # FIXME: insert proper C++ library support
14856             ld_shlibs_CXX=no
14857             ;;
14858           lcc*)
14859             # Lucid
14860             # FIXME: insert proper C++ library support
14861             ld_shlibs_CXX=no
14862             ;;
14863           *)
14864             # FIXME: insert proper C++ library support
14865             ld_shlibs_CXX=no
14866             ;;
14867         esac
14868         ;;
14869
14870       solaris*)
14871         case $cc_basename in
14872           CC*)
14873             # Sun C++ 4.2, 5.x and Centerline C++
14874             archive_cmds_need_lc_CXX=yes
14875             no_undefined_flag_CXX=' -zdefs'
14876             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14877             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14878               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14879
14880             hardcode_libdir_flag_spec_CXX='-R$libdir'
14881             hardcode_shlibpath_var_CXX=no
14882             case $host_os in
14883               solaris2.[0-5] | solaris2.[0-5].*) ;;
14884               *)
14885                 # The compiler driver will combine and reorder linker options,
14886                 # but understands `-z linker_flag'.
14887                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14888                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14889                 ;;
14890             esac
14891             link_all_deplibs_CXX=yes
14892
14893             output_verbose_link_cmd='func_echo_all'
14894
14895             # Archives containing C++ object files must be created using
14896             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14897             # necessary to make sure instantiated templates are included
14898             # in the archive.
14899             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14900             ;;
14901           gcx*)
14902             # Green Hills C++ Compiler
14903             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14904
14905             # The C++ compiler must be used to create the archive.
14906             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14907             ;;
14908           *)
14909             # GNU C++ compiler with Solaris linker
14910             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14911               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14912               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14913                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14914                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14915                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14916
14917                 # Commands to make compiler produce verbose output that lists
14918                 # what "hidden" libraries, object files and flags are used when
14919                 # linking a shared library.
14920                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14921               else
14922                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14923                 # platform.
14924                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14925                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14926                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14927
14928                 # Commands to make compiler produce verbose output that lists
14929                 # what "hidden" libraries, object files and flags are used when
14930                 # linking a shared library.
14931                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14932               fi
14933
14934               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14935               case $host_os in
14936                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14937                 *)
14938                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14939                   ;;
14940               esac
14941             fi
14942             ;;
14943         esac
14944         ;;
14945
14946     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14947       no_undefined_flag_CXX='${wl}-z,text'
14948       archive_cmds_need_lc_CXX=no
14949       hardcode_shlibpath_var_CXX=no
14950       runpath_var='LD_RUN_PATH'
14951
14952       case $cc_basename in
14953         CC*)
14954           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14955           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14956           ;;
14957         *)
14958           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14959           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14960           ;;
14961       esac
14962       ;;
14963
14964       sysv5* | sco3.2v5* | sco5v6*)
14965         # Note: We can NOT use -z defs as we might desire, because we do not
14966         # link with -lc, and that would cause any symbols used from libc to
14967         # always be unresolved, which means just about no library would
14968         # ever link correctly.  If we're not using GNU ld we use -z text
14969         # though, which does catch some bad symbols but isn't as heavy-handed
14970         # as -z defs.
14971         no_undefined_flag_CXX='${wl}-z,text'
14972         allow_undefined_flag_CXX='${wl}-z,nodefs'
14973         archive_cmds_need_lc_CXX=no
14974         hardcode_shlibpath_var_CXX=no
14975         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14976         hardcode_libdir_separator_CXX=':'
14977         link_all_deplibs_CXX=yes
14978         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14979         runpath_var='LD_RUN_PATH'
14980
14981         case $cc_basename in
14982           CC*)
14983             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14984             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14985             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14986               '"$old_archive_cmds_CXX"
14987             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14988               '"$reload_cmds_CXX"
14989             ;;
14990           *)
14991             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14992             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14993             ;;
14994         esac
14995       ;;
14996
14997       tandem*)
14998         case $cc_basename in
14999           NCC*)
15000             # NonStop-UX NCC 3.20
15001             # FIXME: insert proper C++ library support
15002             ld_shlibs_CXX=no
15003             ;;
15004           *)
15005             # FIXME: insert proper C++ library support
15006             ld_shlibs_CXX=no
15007             ;;
15008         esac
15009         ;;
15010
15011       vxworks*)
15012         # FIXME: insert proper C++ library support
15013         ld_shlibs_CXX=no
15014         ;;
15015
15016       *)
15017         # FIXME: insert proper C++ library support
15018         ld_shlibs_CXX=no
15019         ;;
15020     esac
15021
15022     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15023 $as_echo "$ld_shlibs_CXX" >&6; }
15024     test "$ld_shlibs_CXX" = no && can_build_shared=no
15025
15026     GCC_CXX="$GXX"
15027     LD_CXX="$LD"
15028
15029     ## CAVEAT EMPTOR:
15030     ## There is no encapsulation within the following macros, do not change
15031     ## the running order or otherwise move them around unless you know exactly
15032     ## what you are doing...
15033     # Dependencies to place before and after the object being linked:
15034 predep_objects_CXX=
15035 postdep_objects_CXX=
15036 predeps_CXX=
15037 postdeps_CXX=
15038 compiler_lib_search_path_CXX=
15039
15040 cat > conftest.$ac_ext <<_LT_EOF
15041 class Foo
15042 {
15043 public:
15044   Foo (void) { a = 0; }
15045 private:
15046   int a;
15047 };
15048 _LT_EOF
15049
15050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15051   (eval $ac_compile) 2>&5
15052   ac_status=$?
15053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15054   test $ac_status = 0; }; then
15055   # Parse the compiler output and extract the necessary
15056   # objects, libraries and library flags.
15057
15058   # Sentinel used to keep track of whether or not we are before
15059   # the conftest object file.
15060   pre_test_object_deps_done=no
15061
15062   for p in `eval "$output_verbose_link_cmd"`; do
15063     case $p in
15064
15065     -L* | -R* | -l*)
15066        # Some compilers place space between "-{L,R}" and the path.
15067        # Remove the space.
15068        if test $p = "-L" ||
15069           test $p = "-R"; then
15070          prev=$p
15071          continue
15072        else
15073          prev=
15074        fi
15075
15076        if test "$pre_test_object_deps_done" = no; then
15077          case $p in
15078          -L* | -R*)
15079            # Internal compiler library paths should come after those
15080            # provided the user.  The postdeps already come after the
15081            # user supplied libs so there is no need to process them.
15082            if test -z "$compiler_lib_search_path_CXX"; then
15083              compiler_lib_search_path_CXX="${prev}${p}"
15084            else
15085              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15086            fi
15087            ;;
15088          # The "-l" case would never come before the object being
15089          # linked, so don't bother handling this case.
15090          esac
15091        else
15092          if test -z "$postdeps_CXX"; then
15093            postdeps_CXX="${prev}${p}"
15094          else
15095            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15096          fi
15097        fi
15098        ;;
15099
15100     *.$objext)
15101        # This assumes that the test object file only shows up
15102        # once in the compiler output.
15103        if test "$p" = "conftest.$objext"; then
15104          pre_test_object_deps_done=yes
15105          continue
15106        fi
15107
15108        if test "$pre_test_object_deps_done" = no; then
15109          if test -z "$predep_objects_CXX"; then
15110            predep_objects_CXX="$p"
15111          else
15112            predep_objects_CXX="$predep_objects_CXX $p"
15113          fi
15114        else
15115          if test -z "$postdep_objects_CXX"; then
15116            postdep_objects_CXX="$p"
15117          else
15118            postdep_objects_CXX="$postdep_objects_CXX $p"
15119          fi
15120        fi
15121        ;;
15122
15123     *) ;; # Ignore the rest.
15124
15125     esac
15126   done
15127
15128   # Clean up.
15129   rm -f a.out a.exe
15130 else
15131   echo "libtool.m4: error: problem compiling CXX test program"
15132 fi
15133
15134 $RM -f confest.$objext
15135
15136 # PORTME: override above test on systems where it is broken
15137 case $host_os in
15138 interix[3-9]*)
15139   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15140   # hack all around it, let's just trust "g++" to DTRT.
15141   predep_objects_CXX=
15142   postdep_objects_CXX=
15143   postdeps_CXX=
15144   ;;
15145
15146 linux*)
15147   case `$CC -V 2>&1 | sed 5q` in
15148   *Sun\ C*)
15149     # Sun C++ 5.9
15150
15151     # The more standards-conforming stlport4 library is
15152     # incompatible with the Cstd library. Avoid specifying
15153     # it if it's in CXXFLAGS. Ignore libCrun as
15154     # -library=stlport4 depends on it.
15155     case " $CXX $CXXFLAGS " in
15156     *" -library=stlport4 "*)
15157       solaris_use_stlport4=yes
15158       ;;
15159     esac
15160
15161     if test "$solaris_use_stlport4" != yes; then
15162       postdeps_CXX='-library=Cstd -library=Crun'
15163     fi
15164     ;;
15165   esac
15166   ;;
15167
15168 solaris*)
15169   case $cc_basename in
15170   CC*)
15171     # The more standards-conforming stlport4 library is
15172     # incompatible with the Cstd library. Avoid specifying
15173     # it if it's in CXXFLAGS. Ignore libCrun as
15174     # -library=stlport4 depends on it.
15175     case " $CXX $CXXFLAGS " in
15176     *" -library=stlport4 "*)
15177       solaris_use_stlport4=yes
15178       ;;
15179     esac
15180
15181     # Adding this requires a known-good setup of shared libraries for
15182     # Sun compiler versions before 5.6, else PIC objects from an old
15183     # archive will be linked into the output, leading to subtle bugs.
15184     if test "$solaris_use_stlport4" != yes; then
15185       postdeps_CXX='-library=Cstd -library=Crun'
15186     fi
15187     ;;
15188   esac
15189   ;;
15190 esac
15191
15192
15193 case " $postdeps_CXX " in
15194 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15195 esac
15196  compiler_lib_search_dirs_CXX=
15197 if test -n "${compiler_lib_search_path_CXX}"; then
15198  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15199 fi
15200
15201
15202
15203
15204
15205
15206
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     lt_prog_compiler_wl_CXX=
15232 lt_prog_compiler_pic_CXX=
15233 lt_prog_compiler_static_CXX=
15234
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15236 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15237
15238   # C++ specific cases for pic, static, wl, etc.
15239   if test "$GXX" = yes; then
15240     lt_prog_compiler_wl_CXX='-Wl,'
15241     lt_prog_compiler_static_CXX='-static'
15242
15243     case $host_os in
15244     aix*)
15245       # All AIX code is PIC.
15246       if test "$host_cpu" = ia64; then
15247         # AIX 5 now supports IA64 processor
15248         lt_prog_compiler_static_CXX='-Bstatic'
15249       fi
15250       ;;
15251
15252     amigaos*)
15253       case $host_cpu in
15254       powerpc)
15255             # see comment about AmigaOS4 .so support
15256             lt_prog_compiler_pic_CXX='-fPIC'
15257         ;;
15258       m68k)
15259             # FIXME: we need at least 68020 code to build shared libraries, but
15260             # adding the `-m68020' flag to GCC prevents building anything better,
15261             # like `-m68040'.
15262             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15263         ;;
15264       esac
15265       ;;
15266
15267     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15268       # PIC is the default for these OSes.
15269       ;;
15270     mingw* | cygwin* | os2* | pw32* | cegcc*)
15271       # This hack is so that the source file can tell whether it is being
15272       # built for inclusion in a dll (and should export symbols for example).
15273       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15274       # (--disable-auto-import) libraries
15275       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15276       ;;
15277     darwin* | rhapsody*)
15278       # PIC is the default on this platform
15279       # Common symbols not allowed in MH_DYLIB files
15280       lt_prog_compiler_pic_CXX='-fno-common'
15281       ;;
15282     *djgpp*)
15283       # DJGPP does not support shared libraries at all
15284       lt_prog_compiler_pic_CXX=
15285       ;;
15286     haiku*)
15287       # PIC is the default for Haiku.
15288       # The "-static" flag exists, but is broken.
15289       lt_prog_compiler_static_CXX=
15290       ;;
15291     interix[3-9]*)
15292       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15293       # Instead, we relocate shared libraries at runtime.
15294       ;;
15295     sysv4*MP*)
15296       if test -d /usr/nec; then
15297         lt_prog_compiler_pic_CXX=-Kconform_pic
15298       fi
15299       ;;
15300     hpux*)
15301       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15302       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15303       # sets the default TLS model and affects inlining.
15304       case $host_cpu in
15305       hppa*64*)
15306         ;;
15307       *)
15308         lt_prog_compiler_pic_CXX='-fPIC'
15309         ;;
15310       esac
15311       ;;
15312     *qnx* | *nto*)
15313       # QNX uses GNU C++, but need to define -shared option too, otherwise
15314       # it will coredump.
15315       lt_prog_compiler_pic_CXX='-fPIC -shared'
15316       ;;
15317     *)
15318       lt_prog_compiler_pic_CXX='-fPIC'
15319       ;;
15320     esac
15321   else
15322     case $host_os in
15323       aix[4-9]*)
15324         # All AIX code is PIC.
15325         if test "$host_cpu" = ia64; then
15326           # AIX 5 now supports IA64 processor
15327           lt_prog_compiler_static_CXX='-Bstatic'
15328         else
15329           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15330         fi
15331         ;;
15332       chorus*)
15333         case $cc_basename in
15334         cxch68*)
15335           # Green Hills C++ Compiler
15336           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
15337           ;;
15338         esac
15339         ;;
15340       dgux*)
15341         case $cc_basename in
15342           ec++*)
15343             lt_prog_compiler_pic_CXX='-KPIC'
15344             ;;
15345           ghcx*)
15346             # Green Hills C++ Compiler
15347             lt_prog_compiler_pic_CXX='-pic'
15348             ;;
15349           *)
15350             ;;
15351         esac
15352         ;;
15353       freebsd* | dragonfly*)
15354         # FreeBSD uses GNU C++
15355         ;;
15356       hpux9* | hpux10* | hpux11*)
15357         case $cc_basename in
15358           CC*)
15359             lt_prog_compiler_wl_CXX='-Wl,'
15360             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15361             if test "$host_cpu" != ia64; then
15362               lt_prog_compiler_pic_CXX='+Z'
15363             fi
15364             ;;
15365           aCC*)
15366             lt_prog_compiler_wl_CXX='-Wl,'
15367             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15368             case $host_cpu in
15369             hppa*64*|ia64*)
15370               # +Z the default
15371               ;;
15372             *)
15373               lt_prog_compiler_pic_CXX='+Z'
15374               ;;
15375             esac
15376             ;;
15377           *)
15378             ;;
15379         esac
15380         ;;
15381       interix*)
15382         # This is c89, which is MS Visual C++ (no shared libs)
15383         # Anyone wants to do a port?
15384         ;;
15385       irix5* | irix6* | nonstopux*)
15386         case $cc_basename in
15387           CC*)
15388             lt_prog_compiler_wl_CXX='-Wl,'
15389             lt_prog_compiler_static_CXX='-non_shared'
15390             # CC pic flag -KPIC is the default.
15391             ;;
15392           *)
15393             ;;
15394         esac
15395         ;;
15396       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15397         case $cc_basename in
15398           KCC*)
15399             # KAI C++ Compiler
15400             lt_prog_compiler_wl_CXX='--backend -Wl,'
15401             lt_prog_compiler_pic_CXX='-fPIC'
15402             ;;
15403           ecpc* )
15404             # old Intel C++ for x86_64 which still supported -KPIC.
15405             lt_prog_compiler_wl_CXX='-Wl,'
15406             lt_prog_compiler_pic_CXX='-KPIC'
15407             lt_prog_compiler_static_CXX='-static'
15408             ;;
15409           icpc* )
15410             # Intel C++, used to be incompatible with GCC.
15411             # ICC 10 doesn't accept -KPIC any more.
15412             lt_prog_compiler_wl_CXX='-Wl,'
15413             lt_prog_compiler_pic_CXX='-fPIC'
15414             lt_prog_compiler_static_CXX='-static'
15415             ;;
15416           pgCC* | pgcpp*)
15417             # Portland Group C++ compiler
15418             lt_prog_compiler_wl_CXX='-Wl,'
15419             lt_prog_compiler_pic_CXX='-fpic'
15420             lt_prog_compiler_static_CXX='-Bstatic'
15421             ;;
15422           cxx*)
15423             # Compaq C++
15424             # Make sure the PIC flag is empty.  It appears that all Alpha
15425             # Linux and Compaq Tru64 Unix objects are PIC.
15426             lt_prog_compiler_pic_CXX=
15427             lt_prog_compiler_static_CXX='-non_shared'
15428             ;;
15429           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15430             # IBM XL 8.0, 9.0 on PPC and BlueGene
15431             lt_prog_compiler_wl_CXX='-Wl,'
15432             lt_prog_compiler_pic_CXX='-qpic'
15433             lt_prog_compiler_static_CXX='-qstaticlink'
15434             ;;
15435           *)
15436             case `$CC -V 2>&1 | sed 5q` in
15437             *Sun\ C*)
15438               # Sun C++ 5.9
15439               lt_prog_compiler_pic_CXX='-KPIC'
15440               lt_prog_compiler_static_CXX='-Bstatic'
15441               lt_prog_compiler_wl_CXX='-Qoption ld '
15442               ;;
15443             esac
15444             ;;
15445         esac
15446         ;;
15447       lynxos*)
15448         ;;
15449       m88k*)
15450         ;;
15451       mvs*)
15452         case $cc_basename in
15453           cxx*)
15454             lt_prog_compiler_pic_CXX='-W c,exportall'
15455             ;;
15456           *)
15457             ;;
15458         esac
15459         ;;
15460       netbsd*)
15461         ;;
15462       *qnx* | *nto*)
15463         # QNX uses GNU C++, but need to define -shared option too, otherwise
15464         # it will coredump.
15465         lt_prog_compiler_pic_CXX='-fPIC -shared'
15466         ;;
15467       osf3* | osf4* | osf5*)
15468         case $cc_basename in
15469           KCC*)
15470             lt_prog_compiler_wl_CXX='--backend -Wl,'
15471             ;;
15472           RCC*)
15473             # Rational C++ 2.4.1
15474             lt_prog_compiler_pic_CXX='-pic'
15475             ;;
15476           cxx*)
15477             # Digital/Compaq C++
15478             lt_prog_compiler_wl_CXX='-Wl,'
15479             # Make sure the PIC flag is empty.  It appears that all Alpha
15480             # Linux and Compaq Tru64 Unix objects are PIC.
15481             lt_prog_compiler_pic_CXX=
15482             lt_prog_compiler_static_CXX='-non_shared'
15483             ;;
15484           *)
15485             ;;
15486         esac
15487         ;;
15488       psos*)
15489         ;;
15490       solaris*)
15491         case $cc_basename in
15492           CC*)
15493             # Sun C++ 4.2, 5.x and Centerline C++
15494             lt_prog_compiler_pic_CXX='-KPIC'
15495             lt_prog_compiler_static_CXX='-Bstatic'
15496             lt_prog_compiler_wl_CXX='-Qoption ld '
15497             ;;
15498           gcx*)
15499             # Green Hills C++ Compiler
15500             lt_prog_compiler_pic_CXX='-PIC'
15501             ;;
15502           *)
15503             ;;
15504         esac
15505         ;;
15506       sunos4*)
15507         case $cc_basename in
15508           CC*)
15509             # Sun C++ 4.x
15510             lt_prog_compiler_pic_CXX='-pic'
15511             lt_prog_compiler_static_CXX='-Bstatic'
15512             ;;
15513           lcc*)
15514             # Lucid
15515             lt_prog_compiler_pic_CXX='-pic'
15516             ;;
15517           *)
15518             ;;
15519         esac
15520         ;;
15521       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15522         case $cc_basename in
15523           CC*)
15524             lt_prog_compiler_wl_CXX='-Wl,'
15525             lt_prog_compiler_pic_CXX='-KPIC'
15526             lt_prog_compiler_static_CXX='-Bstatic'
15527             ;;
15528         esac
15529         ;;
15530       tandem*)
15531         case $cc_basename in
15532           NCC*)
15533             # NonStop-UX NCC 3.20
15534             lt_prog_compiler_pic_CXX='-KPIC'
15535             ;;
15536           *)
15537             ;;
15538         esac
15539         ;;
15540       vxworks*)
15541         ;;
15542       *)
15543         lt_prog_compiler_can_build_shared_CXX=no
15544         ;;
15545     esac
15546   fi
15547
15548 case $host_os in
15549   # For platforms which do not support PIC, -DPIC is meaningless:
15550   *djgpp*)
15551     lt_prog_compiler_pic_CXX=
15552     ;;
15553   *)
15554     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15555     ;;
15556 esac
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15558 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15559
15560
15561
15562 #
15563 # Check to make sure the PIC flag actually works.
15564 #
15565 if test -n "$lt_prog_compiler_pic_CXX"; then
15566   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15567 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15568 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15569   $as_echo_n "(cached) " >&6
15570 else
15571   lt_cv_prog_compiler_pic_works_CXX=no
15572    ac_outfile=conftest.$ac_objext
15573    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15574    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15575    # Insert the option either (1) after the last *FLAGS variable, or
15576    # (2) before a word containing "conftest.", or (3) at the end.
15577    # Note that $ac_compile itself does not contain backslashes and begins
15578    # with a dollar sign (not a hyphen), so the echo should work correctly.
15579    # The option is referenced via a variable to avoid confusing sed.
15580    lt_compile=`echo "$ac_compile" | $SED \
15581    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15582    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15583    -e 's:$: $lt_compiler_flag:'`
15584    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15585    (eval "$lt_compile" 2>conftest.err)
15586    ac_status=$?
15587    cat conftest.err >&5
15588    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589    if (exit $ac_status) && test -s "$ac_outfile"; then
15590      # The compiler can only warn and ignore the option if not recognized
15591      # So say no if there are warnings other than the usual output.
15592      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15593      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15594      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15595        lt_cv_prog_compiler_pic_works_CXX=yes
15596      fi
15597    fi
15598    $RM conftest*
15599
15600 fi
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15602 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15603
15604 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15605     case $lt_prog_compiler_pic_CXX in
15606      "" | " "*) ;;
15607      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15608      esac
15609 else
15610     lt_prog_compiler_pic_CXX=
15611      lt_prog_compiler_can_build_shared_CXX=no
15612 fi
15613
15614 fi
15615
15616
15617
15618 #
15619 # Check to make sure the static flag actually works.
15620 #
15621 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15623 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15624 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15625   $as_echo_n "(cached) " >&6
15626 else
15627   lt_cv_prog_compiler_static_works_CXX=no
15628    save_LDFLAGS="$LDFLAGS"
15629    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15630    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15631    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15632      # The linker can only warn and ignore the option if not recognized
15633      # So say no if there are warnings
15634      if test -s conftest.err; then
15635        # Append any errors to the config.log.
15636        cat conftest.err 1>&5
15637        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15638        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15639        if diff conftest.exp conftest.er2 >/dev/null; then
15640          lt_cv_prog_compiler_static_works_CXX=yes
15641        fi
15642      else
15643        lt_cv_prog_compiler_static_works_CXX=yes
15644      fi
15645    fi
15646    $RM -r conftest*
15647    LDFLAGS="$save_LDFLAGS"
15648
15649 fi
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15651 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15652
15653 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15654     :
15655 else
15656     lt_prog_compiler_static_CXX=
15657 fi
15658
15659
15660
15661
15662     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15663 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15664 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15665   $as_echo_n "(cached) " >&6
15666 else
15667   lt_cv_prog_compiler_c_o_CXX=no
15668    $RM -r conftest 2>/dev/null
15669    mkdir conftest
15670    cd conftest
15671    mkdir out
15672    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15673
15674    lt_compiler_flag="-o out/conftest2.$ac_objext"
15675    # Insert the option either (1) after the last *FLAGS variable, or
15676    # (2) before a word containing "conftest.", or (3) at the end.
15677    # Note that $ac_compile itself does not contain backslashes and begins
15678    # with a dollar sign (not a hyphen), so the echo should work correctly.
15679    lt_compile=`echo "$ac_compile" | $SED \
15680    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15681    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15682    -e 's:$: $lt_compiler_flag:'`
15683    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15684    (eval "$lt_compile" 2>out/conftest.err)
15685    ac_status=$?
15686    cat out/conftest.err >&5
15687    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15689    then
15690      # The compiler can only warn and ignore the option if not recognized
15691      # So say no if there are warnings
15692      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15693      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15694      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15695        lt_cv_prog_compiler_c_o_CXX=yes
15696      fi
15697    fi
15698    chmod u+w . 2>&5
15699    $RM conftest*
15700    # SGI C++ compiler will create directory out/ii_files/ for
15701    # template instantiation
15702    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15703    $RM out/* && rmdir out
15704    cd ..
15705    $RM -r conftest
15706    $RM conftest*
15707
15708 fi
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15710 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15711
15712
15713
15714     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15715 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15716 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15717   $as_echo_n "(cached) " >&6
15718 else
15719   lt_cv_prog_compiler_c_o_CXX=no
15720    $RM -r conftest 2>/dev/null
15721    mkdir conftest
15722    cd conftest
15723    mkdir out
15724    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15725
15726    lt_compiler_flag="-o out/conftest2.$ac_objext"
15727    # Insert the option either (1) after the last *FLAGS variable, or
15728    # (2) before a word containing "conftest.", or (3) at the end.
15729    # Note that $ac_compile itself does not contain backslashes and begins
15730    # with a dollar sign (not a hyphen), so the echo should work correctly.
15731    lt_compile=`echo "$ac_compile" | $SED \
15732    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15733    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15734    -e 's:$: $lt_compiler_flag:'`
15735    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15736    (eval "$lt_compile" 2>out/conftest.err)
15737    ac_status=$?
15738    cat out/conftest.err >&5
15739    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15741    then
15742      # The compiler can only warn and ignore the option if not recognized
15743      # So say no if there are warnings
15744      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15745      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15746      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15747        lt_cv_prog_compiler_c_o_CXX=yes
15748      fi
15749    fi
15750    chmod u+w . 2>&5
15751    $RM conftest*
15752    # SGI C++ compiler will create directory out/ii_files/ for
15753    # template instantiation
15754    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15755    $RM out/* && rmdir out
15756    cd ..
15757    $RM -r conftest
15758    $RM conftest*
15759
15760 fi
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15762 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15763
15764
15765
15766
15767 hard_links="nottested"
15768 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15769   # do not overwrite the value of need_locks provided by the user
15770   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15771 $as_echo_n "checking if we can lock with hard links... " >&6; }
15772   hard_links=yes
15773   $RM conftest*
15774   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15775   touch conftest.a
15776   ln conftest.a conftest.b 2>&5 || hard_links=no
15777   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15779 $as_echo "$hard_links" >&6; }
15780   if test "$hard_links" = no; then
15781     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15782 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15783     need_locks=warn
15784   fi
15785 else
15786   need_locks=no
15787 fi
15788
15789
15790
15791     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15792 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15793
15794   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15795   case $host_os in
15796   aix[4-9]*)
15797     # If we're using GNU nm, then we don't want the "-C" option.
15798     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15799     # Also, AIX nm treats weak defined symbols like other global defined
15800     # symbols, whereas GNU nm marks them as "W".
15801     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15802       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'
15803     else
15804       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'
15805     fi
15806     ;;
15807   pw32*)
15808     export_symbols_cmds_CXX="$ltdll_cmds"
15809   ;;
15810   cygwin* | mingw* | cegcc*)
15811     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'
15812   ;;
15813   *)
15814     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15815   ;;
15816   esac
15817   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15818
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15820 $as_echo "$ld_shlibs_CXX" >&6; }
15821 test "$ld_shlibs_CXX" = no && can_build_shared=no
15822
15823 with_gnu_ld_CXX=$with_gnu_ld
15824
15825
15826
15827
15828
15829
15830 #
15831 # Do we need to explicitly link libc?
15832 #
15833 case "x$archive_cmds_need_lc_CXX" in
15834 x|xyes)
15835   # Assume -lc should be added
15836   archive_cmds_need_lc_CXX=yes
15837
15838   if test "$enable_shared" = yes && test "$GCC" = yes; then
15839     case $archive_cmds_CXX in
15840     *'~'*)
15841       # FIXME: we may have to deal with multi-command sequences.
15842       ;;
15843     '$CC '*)
15844       # Test whether the compiler implicitly links with -lc since on some
15845       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15846       # to ld, don't add -lc before -lgcc.
15847       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15848 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15849 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15850   $as_echo_n "(cached) " >&6
15851 else
15852   $RM conftest*
15853         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15854
15855         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15856   (eval $ac_compile) 2>&5
15857   ac_status=$?
15858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15859   test $ac_status = 0; } 2>conftest.err; then
15860           soname=conftest
15861           lib=conftest
15862           libobjs=conftest.$ac_objext
15863           deplibs=
15864           wl=$lt_prog_compiler_wl_CXX
15865           pic_flag=$lt_prog_compiler_pic_CXX
15866           compiler_flags=-v
15867           linker_flags=-v
15868           verstring=
15869           output_objdir=.
15870           libname=conftest
15871           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15872           allow_undefined_flag_CXX=
15873           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15874   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15875   ac_status=$?
15876   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15877   test $ac_status = 0; }
15878           then
15879             lt_cv_archive_cmds_need_lc_CXX=no
15880           else
15881             lt_cv_archive_cmds_need_lc_CXX=yes
15882           fi
15883           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15884         else
15885           cat conftest.err 1>&5
15886         fi
15887         $RM conftest*
15888
15889 fi
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15891 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15892       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15893       ;;
15894     esac
15895   fi
15896   ;;
15897 esac
15898
15899
15900
15901
15902
15903
15904
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15963 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15964
15965 library_names_spec=
15966 libname_spec='lib$name'
15967 soname_spec=
15968 shrext_cmds=".so"
15969 postinstall_cmds=
15970 postuninstall_cmds=
15971 finish_cmds=
15972 finish_eval=
15973 shlibpath_var=
15974 shlibpath_overrides_runpath=unknown
15975 version_type=none
15976 dynamic_linker="$host_os ld.so"
15977 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15978 need_lib_prefix=unknown
15979 hardcode_into_libs=no
15980
15981 # when you set need_version to no, make sure it does not cause -set_version
15982 # flags to be left without arguments
15983 need_version=unknown
15984
15985 case $host_os in
15986 aix3*)
15987   version_type=linux
15988   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15989   shlibpath_var=LIBPATH
15990
15991   # AIX 3 has no versioning support, so we append a major version to the name.
15992   soname_spec='${libname}${release}${shared_ext}$major'
15993   ;;
15994
15995 aix[4-9]*)
15996   version_type=linux
15997   need_lib_prefix=no
15998   need_version=no
15999   hardcode_into_libs=yes
16000   if test "$host_cpu" = ia64; then
16001     # AIX 5 supports IA64
16002     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16003     shlibpath_var=LD_LIBRARY_PATH
16004   else
16005     # With GCC up to 2.95.x, collect2 would create an import file
16006     # for dependence libraries.  The import file would start with
16007     # the line `#! .'.  This would cause the generated library to
16008     # depend on `.', always an invalid library.  This was fixed in
16009     # development snapshots of GCC prior to 3.0.
16010     case $host_os in
16011       aix4 | aix4.[01] | aix4.[01].*)
16012       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16013            echo ' yes '
16014            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16015         :
16016       else
16017         can_build_shared=no
16018       fi
16019       ;;
16020     esac
16021     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16022     # soname into executable. Probably we can add versioning support to
16023     # collect2, so additional links can be useful in future.
16024     if test "$aix_use_runtimelinking" = yes; then
16025       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16026       # instead of lib<name>.a to let people know that these are not
16027       # typical AIX shared libraries.
16028       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16029     else
16030       # We preserve .a as extension for shared libraries through AIX4.2
16031       # and later when we are not doing run time linking.
16032       library_names_spec='${libname}${release}.a $libname.a'
16033       soname_spec='${libname}${release}${shared_ext}$major'
16034     fi
16035     shlibpath_var=LIBPATH
16036   fi
16037   ;;
16038
16039 amigaos*)
16040   case $host_cpu in
16041   powerpc)
16042     # Since July 2007 AmigaOS4 officially supports .so libraries.
16043     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16044     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16045     ;;
16046   m68k)
16047     library_names_spec='$libname.ixlibrary $libname.a'
16048     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16049     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16050     ;;
16051   esac
16052   ;;
16053
16054 beos*)
16055   library_names_spec='${libname}${shared_ext}'
16056   dynamic_linker="$host_os ld.so"
16057   shlibpath_var=LIBRARY_PATH
16058   ;;
16059
16060 bsdi[45]*)
16061   version_type=linux
16062   need_version=no
16063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16064   soname_spec='${libname}${release}${shared_ext}$major'
16065   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16066   shlibpath_var=LD_LIBRARY_PATH
16067   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16068   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16069   # the default ld.so.conf also contains /usr/contrib/lib and
16070   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16071   # libtool to hard-code these into programs
16072   ;;
16073
16074 cygwin* | mingw* | pw32* | cegcc*)
16075   version_type=windows
16076   shrext_cmds=".dll"
16077   need_version=no
16078   need_lib_prefix=no
16079
16080   case $GCC,$host_os in
16081   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16082     library_names_spec='$libname.dll.a'
16083     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16084     postinstall_cmds='base_file=`basename \${file}`~
16085       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16086       dldir=$destdir/`dirname \$dlpath`~
16087       test -d \$dldir || mkdir -p \$dldir~
16088       $install_prog $dir/$dlname \$dldir/$dlname~
16089       chmod a+x \$dldir/$dlname~
16090       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16091         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16092       fi'
16093     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16094       dlpath=$dir/\$dldll~
16095        $RM \$dlpath'
16096     shlibpath_overrides_runpath=yes
16097
16098     case $host_os in
16099     cygwin*)
16100       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16101       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16102
16103       ;;
16104     mingw* | cegcc*)
16105       # MinGW DLLs use traditional 'lib' prefix
16106       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16107       ;;
16108     pw32*)
16109       # pw32 DLLs use 'pw' prefix rather than 'lib'
16110       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16111       ;;
16112     esac
16113     ;;
16114
16115   *)
16116     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16117     ;;
16118   esac
16119   dynamic_linker='Win32 ld.exe'
16120   # FIXME: first we should search . and the directory the executable is in
16121   shlibpath_var=PATH
16122   ;;
16123
16124 darwin* | rhapsody*)
16125   dynamic_linker="$host_os dyld"
16126   version_type=darwin
16127   need_lib_prefix=no
16128   need_version=no
16129   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16130   soname_spec='${libname}${release}${major}$shared_ext'
16131   shlibpath_overrides_runpath=yes
16132   shlibpath_var=DYLD_LIBRARY_PATH
16133   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16134
16135   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16136   ;;
16137
16138 dgux*)
16139   version_type=linux
16140   need_lib_prefix=no
16141   need_version=no
16142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16143   soname_spec='${libname}${release}${shared_ext}$major'
16144   shlibpath_var=LD_LIBRARY_PATH
16145   ;;
16146
16147 freebsd1*)
16148   dynamic_linker=no
16149   ;;
16150
16151 freebsd* | dragonfly*)
16152   # DragonFly does not have aout.  When/if they implement a new
16153   # versioning mechanism, adjust this.
16154   if test -x /usr/bin/objformat; then
16155     objformat=`/usr/bin/objformat`
16156   else
16157     case $host_os in
16158     freebsd[123]*) objformat=aout ;;
16159     *) objformat=elf ;;
16160     esac
16161   fi
16162   version_type=freebsd-$objformat
16163   case $version_type in
16164     freebsd-elf*)
16165       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16166       need_version=no
16167       need_lib_prefix=no
16168       ;;
16169     freebsd-*)
16170       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16171       need_version=yes
16172       ;;
16173   esac
16174   shlibpath_var=LD_LIBRARY_PATH
16175   case $host_os in
16176   freebsd2*)
16177     shlibpath_overrides_runpath=yes
16178     ;;
16179   freebsd3.[01]* | freebsdelf3.[01]*)
16180     shlibpath_overrides_runpath=yes
16181     hardcode_into_libs=yes
16182     ;;
16183   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16184   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16185     shlibpath_overrides_runpath=no
16186     hardcode_into_libs=yes
16187     ;;
16188   *) # from 4.6 on, and DragonFly
16189     shlibpath_overrides_runpath=yes
16190     hardcode_into_libs=yes
16191     ;;
16192   esac
16193   ;;
16194
16195 gnu*)
16196   version_type=linux
16197   need_lib_prefix=no
16198   need_version=no
16199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16200   soname_spec='${libname}${release}${shared_ext}$major'
16201   shlibpath_var=LD_LIBRARY_PATH
16202   hardcode_into_libs=yes
16203   ;;
16204
16205 haiku*)
16206   version_type=linux
16207   need_lib_prefix=no
16208   need_version=no
16209   dynamic_linker="$host_os runtime_loader"
16210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16211   soname_spec='${libname}${release}${shared_ext}$major'
16212   shlibpath_var=LIBRARY_PATH
16213   shlibpath_overrides_runpath=yes
16214   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16215   hardcode_into_libs=yes
16216   ;;
16217
16218 hpux9* | hpux10* | hpux11*)
16219   # Give a soname corresponding to the major version so that dld.sl refuses to
16220   # link against other versions.
16221   version_type=sunos
16222   need_lib_prefix=no
16223   need_version=no
16224   case $host_cpu in
16225   ia64*)
16226     shrext_cmds='.so'
16227     hardcode_into_libs=yes
16228     dynamic_linker="$host_os dld.so"
16229     shlibpath_var=LD_LIBRARY_PATH
16230     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16231     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16232     soname_spec='${libname}${release}${shared_ext}$major'
16233     if test "X$HPUX_IA64_MODE" = X32; then
16234       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16235     else
16236       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16237     fi
16238     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16239     ;;
16240   hppa*64*)
16241     shrext_cmds='.sl'
16242     hardcode_into_libs=yes
16243     dynamic_linker="$host_os dld.sl"
16244     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16245     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16246     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16247     soname_spec='${libname}${release}${shared_ext}$major'
16248     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16249     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16250     ;;
16251   *)
16252     shrext_cmds='.sl'
16253     dynamic_linker="$host_os dld.sl"
16254     shlibpath_var=SHLIB_PATH
16255     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16256     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16257     soname_spec='${libname}${release}${shared_ext}$major'
16258     ;;
16259   esac
16260   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16261   postinstall_cmds='chmod 555 $lib'
16262   # or fails outright, so override atomically:
16263   install_override_mode=555
16264   ;;
16265
16266 interix[3-9]*)
16267   version_type=linux
16268   need_lib_prefix=no
16269   need_version=no
16270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16271   soname_spec='${libname}${release}${shared_ext}$major'
16272   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16273   shlibpath_var=LD_LIBRARY_PATH
16274   shlibpath_overrides_runpath=no
16275   hardcode_into_libs=yes
16276   ;;
16277
16278 irix5* | irix6* | nonstopux*)
16279   case $host_os in
16280     nonstopux*) version_type=nonstopux ;;
16281     *)
16282         if test "$lt_cv_prog_gnu_ld" = yes; then
16283                 version_type=linux
16284         else
16285                 version_type=irix
16286         fi ;;
16287   esac
16288   need_lib_prefix=no
16289   need_version=no
16290   soname_spec='${libname}${release}${shared_ext}$major'
16291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16292   case $host_os in
16293   irix5* | nonstopux*)
16294     libsuff= shlibsuff=
16295     ;;
16296   *)
16297     case $LD in # libtool.m4 will add one of these switches to LD
16298     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16299       libsuff= shlibsuff= libmagic=32-bit;;
16300     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16301       libsuff=32 shlibsuff=N32 libmagic=N32;;
16302     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16303       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16304     *) libsuff= shlibsuff= libmagic=never-match;;
16305     esac
16306     ;;
16307   esac
16308   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16309   shlibpath_overrides_runpath=no
16310   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16311   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16312   hardcode_into_libs=yes
16313   ;;
16314
16315 # No shared lib support for Linux oldld, aout, or coff.
16316 linux*oldld* | linux*aout* | linux*coff*)
16317   dynamic_linker=no
16318   ;;
16319
16320 # This must be Linux ELF.
16321 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16322   version_type=linux
16323   need_lib_prefix=no
16324   need_version=no
16325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16326   soname_spec='${libname}${release}${shared_ext}$major'
16327   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16328   shlibpath_var=LD_LIBRARY_PATH
16329   shlibpath_overrides_runpath=no
16330
16331   # Some binutils ld are patched to set DT_RUNPATH
16332   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16333   $as_echo_n "(cached) " >&6
16334 else
16335   lt_cv_shlibpath_overrides_runpath=no
16336     save_LDFLAGS=$LDFLAGS
16337     save_libdir=$libdir
16338     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16339          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16340     if test x$gcc_no_link = xyes; then
16341   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16342 fi
16343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16344 /* end confdefs.h.  */
16345
16346 int
16347 main ()
16348 {
16349
16350   ;
16351   return 0;
16352 }
16353 _ACEOF
16354 if ac_fn_cxx_try_link "$LINENO"; then :
16355   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16356   lt_cv_shlibpath_overrides_runpath=yes
16357 fi
16358 fi
16359 rm -f core conftest.err conftest.$ac_objext \
16360     conftest$ac_exeext conftest.$ac_ext
16361     LDFLAGS=$save_LDFLAGS
16362     libdir=$save_libdir
16363
16364 fi
16365
16366   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16367
16368   # This implies no fast_install, which is unacceptable.
16369   # Some rework will be needed to allow for fast_install
16370   # before this can be enabled.
16371   hardcode_into_libs=yes
16372
16373   # Append ld.so.conf contents to the search path
16374   if test -f /etc/ld.so.conf; then
16375     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' ' '`
16376     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16377   fi
16378
16379   # We used to test for /lib/ld.so.1 and disable shared libraries on
16380   # powerpc, because MkLinux only supported shared libraries with the
16381   # GNU dynamic linker.  Since this was broken with cross compilers,
16382   # most powerpc-linux boxes support dynamic linking these days and
16383   # people can always --disable-shared, the test was removed, and we
16384   # assume the GNU/Linux dynamic linker is in use.
16385   dynamic_linker='GNU/Linux ld.so'
16386   ;;
16387
16388 netbsd*)
16389   version_type=sunos
16390   need_lib_prefix=no
16391   need_version=no
16392   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16393     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16394     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16395     dynamic_linker='NetBSD (a.out) ld.so'
16396   else
16397     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16398     soname_spec='${libname}${release}${shared_ext}$major'
16399     dynamic_linker='NetBSD ld.elf_so'
16400   fi
16401   shlibpath_var=LD_LIBRARY_PATH
16402   shlibpath_overrides_runpath=yes
16403   hardcode_into_libs=yes
16404   ;;
16405
16406 newsos6)
16407   version_type=linux
16408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16409   shlibpath_var=LD_LIBRARY_PATH
16410   shlibpath_overrides_runpath=yes
16411   ;;
16412
16413 *nto* | *qnx*)
16414   version_type=qnx
16415   need_lib_prefix=no
16416   need_version=no
16417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16418   soname_spec='${libname}${release}${shared_ext}$major'
16419   shlibpath_var=LD_LIBRARY_PATH
16420   shlibpath_overrides_runpath=no
16421   hardcode_into_libs=yes
16422   dynamic_linker='ldqnx.so'
16423   ;;
16424
16425 openbsd*)
16426   version_type=sunos
16427   sys_lib_dlsearch_path_spec="/usr/lib"
16428   need_lib_prefix=no
16429   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16430   case $host_os in
16431     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16432     *)                          need_version=no  ;;
16433   esac
16434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16435   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16436   shlibpath_var=LD_LIBRARY_PATH
16437   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16438     case $host_os in
16439       openbsd2.[89] | openbsd2.[89].*)
16440         shlibpath_overrides_runpath=no
16441         ;;
16442       *)
16443         shlibpath_overrides_runpath=yes
16444         ;;
16445       esac
16446   else
16447     shlibpath_overrides_runpath=yes
16448   fi
16449   ;;
16450
16451 os2*)
16452   libname_spec='$name'
16453   shrext_cmds=".dll"
16454   need_lib_prefix=no
16455   library_names_spec='$libname${shared_ext} $libname.a'
16456   dynamic_linker='OS/2 ld.exe'
16457   shlibpath_var=LIBPATH
16458   ;;
16459
16460 osf3* | osf4* | osf5*)
16461   version_type=osf
16462   need_lib_prefix=no
16463   need_version=no
16464   soname_spec='${libname}${release}${shared_ext}$major'
16465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16466   shlibpath_var=LD_LIBRARY_PATH
16467   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16468   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16469   ;;
16470
16471 rdos*)
16472   dynamic_linker=no
16473   ;;
16474
16475 solaris*)
16476   version_type=linux
16477   need_lib_prefix=no
16478   need_version=no
16479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16480   soname_spec='${libname}${release}${shared_ext}$major'
16481   shlibpath_var=LD_LIBRARY_PATH
16482   shlibpath_overrides_runpath=yes
16483   hardcode_into_libs=yes
16484   # ldd complains unless libraries are executable
16485   postinstall_cmds='chmod +x $lib'
16486   ;;
16487
16488 sunos4*)
16489   version_type=sunos
16490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16491   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16492   shlibpath_var=LD_LIBRARY_PATH
16493   shlibpath_overrides_runpath=yes
16494   if test "$with_gnu_ld" = yes; then
16495     need_lib_prefix=no
16496   fi
16497   need_version=yes
16498   ;;
16499
16500 sysv4 | sysv4.3*)
16501   version_type=linux
16502   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16503   soname_spec='${libname}${release}${shared_ext}$major'
16504   shlibpath_var=LD_LIBRARY_PATH
16505   case $host_vendor in
16506     sni)
16507       shlibpath_overrides_runpath=no
16508       need_lib_prefix=no
16509       runpath_var=LD_RUN_PATH
16510       ;;
16511     siemens)
16512       need_lib_prefix=no
16513       ;;
16514     motorola)
16515       need_lib_prefix=no
16516       need_version=no
16517       shlibpath_overrides_runpath=no
16518       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16519       ;;
16520   esac
16521   ;;
16522
16523 sysv4*MP*)
16524   if test -d /usr/nec ;then
16525     version_type=linux
16526     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16527     soname_spec='$libname${shared_ext}.$major'
16528     shlibpath_var=LD_LIBRARY_PATH
16529   fi
16530   ;;
16531
16532 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16533   version_type=freebsd-elf
16534   need_lib_prefix=no
16535   need_version=no
16536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16537   soname_spec='${libname}${release}${shared_ext}$major'
16538   shlibpath_var=LD_LIBRARY_PATH
16539   shlibpath_overrides_runpath=yes
16540   hardcode_into_libs=yes
16541   if test "$with_gnu_ld" = yes; then
16542     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16543   else
16544     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16545     case $host_os in
16546       sco3.2v5*)
16547         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16548         ;;
16549     esac
16550   fi
16551   sys_lib_dlsearch_path_spec='/usr/lib'
16552   ;;
16553
16554 tpf*)
16555   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16556   version_type=linux
16557   need_lib_prefix=no
16558   need_version=no
16559   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16560   shlibpath_var=LD_LIBRARY_PATH
16561   shlibpath_overrides_runpath=no
16562   hardcode_into_libs=yes
16563   ;;
16564
16565 uts4*)
16566   version_type=linux
16567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16568   soname_spec='${libname}${release}${shared_ext}$major'
16569   shlibpath_var=LD_LIBRARY_PATH
16570   ;;
16571
16572 *)
16573   dynamic_linker=no
16574   ;;
16575 esac
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16577 $as_echo "$dynamic_linker" >&6; }
16578 test "$dynamic_linker" = no && can_build_shared=no
16579
16580 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16581 if test "$GCC" = yes; then
16582   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16583 fi
16584
16585 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16586   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16587 fi
16588 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16589   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16590 fi
16591
16592
16593
16594
16595
16596
16597
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16630 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16631 hardcode_action_CXX=
16632 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16633    test -n "$runpath_var_CXX" ||
16634    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16635
16636   # We can hardcode non-existent directories.
16637   if test "$hardcode_direct_CXX" != no &&
16638      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16639      # have to relink, otherwise we might link with an installed library
16640      # when we should be linking with a yet-to-be-installed one
16641      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16642      test "$hardcode_minus_L_CXX" != no; then
16643     # Linking always hardcodes the temporary library directory.
16644     hardcode_action_CXX=relink
16645   else
16646     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16647     hardcode_action_CXX=immediate
16648   fi
16649 else
16650   # We cannot hardcode anything, or else we can only hardcode existing
16651   # directories.
16652   hardcode_action_CXX=unsupported
16653 fi
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16655 $as_echo "$hardcode_action_CXX" >&6; }
16656
16657 if test "$hardcode_action_CXX" = relink ||
16658    test "$inherit_rpath_CXX" = yes; then
16659   # Fast installation is not supported
16660   enable_fast_install=no
16661 elif test "$shlibpath_overrides_runpath" = yes ||
16662      test "$enable_shared" = no; then
16663   # Fast installation is not necessary
16664   enable_fast_install=needless
16665 fi
16666
16667
16668
16669
16670
16671
16672
16673   fi # test -n "$compiler"
16674
16675   CC=$lt_save_CC
16676   LDCXX=$LD
16677   LD=$lt_save_LD
16678   GCC=$lt_save_GCC
16679   with_gnu_ld=$lt_save_with_gnu_ld
16680   lt_cv_path_LDCXX=$lt_cv_path_LD
16681   lt_cv_path_LD=$lt_save_path_LD
16682   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16683   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16684 fi # test "$_lt_caught_CXX_error" != yes
16685
16686 ac_ext=c
16687 ac_cpp='$CPP $CPPFLAGS'
16688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704         ac_config_commands="$ac_config_commands libtool"
16705
16706
16707
16708
16709 # Only expand once:
16710
16711
16712
16713 if test -n "$ac_tool_prefix"; then
16714   for ac_prog in gcj
16715   do
16716     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16717 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16719 $as_echo_n "checking for $ac_word... " >&6; }
16720 if test "${ac_cv_prog_GCJ+set}" = set; then :
16721   $as_echo_n "(cached) " >&6
16722 else
16723   if test -n "$GCJ"; then
16724   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16725 else
16726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16727 for as_dir in $PATH
16728 do
16729   IFS=$as_save_IFS
16730   test -z "$as_dir" && as_dir=.
16731     for ac_exec_ext in '' $ac_executable_extensions; do
16732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16733     ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
16734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16735     break 2
16736   fi
16737 done
16738   done
16739 IFS=$as_save_IFS
16740
16741 fi
16742 fi
16743 GCJ=$ac_cv_prog_GCJ
16744 if test -n "$GCJ"; then
16745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16746 $as_echo "$GCJ" >&6; }
16747 else
16748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16749 $as_echo "no" >&6; }
16750 fi
16751
16752
16753     test -n "$GCJ" && break
16754   done
16755 fi
16756 if test -z "$GCJ"; then
16757   ac_ct_GCJ=$GCJ
16758   for ac_prog in gcj
16759 do
16760   # Extract the first word of "$ac_prog", so it can be a program name with args.
16761 set dummy $ac_prog; ac_word=$2
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16763 $as_echo_n "checking for $ac_word... " >&6; }
16764 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
16765   $as_echo_n "(cached) " >&6
16766 else
16767   if test -n "$ac_ct_GCJ"; then
16768   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
16769 else
16770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16771 for as_dir in $PATH
16772 do
16773   IFS=$as_save_IFS
16774   test -z "$as_dir" && as_dir=.
16775     for ac_exec_ext in '' $ac_executable_extensions; do
16776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16777     ac_cv_prog_ac_ct_GCJ="$ac_prog"
16778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16779     break 2
16780   fi
16781 done
16782   done
16783 IFS=$as_save_IFS
16784
16785 fi
16786 fi
16787 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
16788 if test -n "$ac_ct_GCJ"; then
16789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
16790 $as_echo "$ac_ct_GCJ" >&6; }
16791 else
16792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16793 $as_echo "no" >&6; }
16794 fi
16795
16796
16797   test -n "$ac_ct_GCJ" && break
16798 done
16799
16800   if test "x$ac_ct_GCJ" = x; then
16801     GCJ="gcj"
16802   else
16803     case $cross_compiling:$ac_tool_warned in
16804 yes:)
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16807 ac_tool_warned=yes ;;
16808 esac
16809     GCJ=$ac_ct_GCJ
16810   fi
16811 fi
16812
16813 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
16814 if test "x${GCJFLAGS-unset}" = xunset; then
16815    GCJFLAGS="-g -O2"
16816 fi
16817
16818
16819 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
16820
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16822 $as_echo_n "checking dependency style of $depcc... " >&6; }
16823 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16824   $as_echo_n "(cached) " >&6
16825 else
16826   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16827   # We make a subdir and do the tests there.  Otherwise we can end up
16828   # making bogus files that we don't know about and never remove.  For
16829   # instance it was reported that on HP-UX the gcc test will end up
16830   # making a dummy file named `D' -- because `-MD' means `put the output
16831   # in D'.
16832   mkdir conftest.dir
16833   # Copy depcomp to subdir because otherwise we won't find it if we're
16834   # using a relative directory.
16835   cp "$am_depcomp" conftest.dir
16836   cd conftest.dir
16837   # We will build objects and dependencies in a subdirectory because
16838   # it helps to detect inapplicable dependency modes.  For instance
16839   # both Tru64's cc and ICC support -MD to output dependencies as a
16840   # side effect of compilation, but ICC will put the dependencies in
16841   # the current directory while Tru64 will put them in the object
16842   # directory.
16843   mkdir sub
16844
16845   am_cv_GCJ_dependencies_compiler_type=none
16846   if test "$am_compiler_list" = ""; then
16847      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16848   fi
16849   am__universal=false
16850
16851
16852   for depmode in $am_compiler_list; do
16853     # Setup a source with many dependencies, because some compilers
16854     # like to wrap large dependency lists on column 80 (with \), and
16855     # we should not choose a depcomp mode which is confused by this.
16856     #
16857     # We need to recreate these files for each test, as the compiler may
16858     # overwrite some of them when testing with obscure command lines.
16859     # This happens at least with the AIX C compiler.
16860     : > sub/conftest.c
16861     for i in 1 2 3 4 5 6; do
16862       echo '#include "conftst'$i'.h"' >> sub/conftest.c
16863       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16864       # Solaris 8's {/usr,}/bin/sh.
16865       touch sub/conftst$i.h
16866     done
16867     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16868
16869     # We check with `-c' and `-o' for the sake of the "dashmstdout"
16870     # mode.  It turns out that the SunPro C++ compiler does not properly
16871     # handle `-M -o', and we need to detect this.  Also, some Intel
16872     # versions had trouble with output in subdirs
16873     am__obj=sub/conftest.${OBJEXT-o}
16874     am__minus_obj="-o $am__obj"
16875     case $depmode in
16876     gcc)
16877       # This depmode causes a compiler race in universal mode.
16878       test "$am__universal" = false || continue
16879       ;;
16880     nosideeffect)
16881       # after this tag, mechanisms are not by side-effect, so they'll
16882       # only be used when explicitly requested
16883       if test "x$enable_dependency_tracking" = xyes; then
16884         continue
16885       else
16886         break
16887       fi
16888       ;;
16889     msvisualcpp | msvcmsys)
16890       # This compiler won't grok `-c -o', but also, the minuso test has
16891       # not run yet.  These depmodes are late enough in the game, and
16892       # so weak that their functioning should not be impacted.
16893       am__obj=conftest.${OBJEXT-o}
16894       am__minus_obj=
16895       ;;
16896     none) break ;;
16897     esac
16898     if depmode=$depmode \
16899        source=sub/conftest.c object=$am__obj \
16900        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16901        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16902          >/dev/null 2>conftest.err &&
16903        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16904        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16905        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16906        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16907       # icc doesn't choke on unknown options, it will just issue warnings
16908       # or remarks (even with -Werror).  So we grep stderr for any message
16909       # that says an option was ignored or not supported.
16910       # When given -MP, icc 7.0 and 7.1 complain thusly:
16911       #   icc: Command line warning: ignoring option '-M'; no argument required
16912       # The diagnosis changed in icc 8.0:
16913       #   icc: Command line remark: option '-MP' not supported
16914       if (grep 'ignoring option' conftest.err ||
16915           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16916         am_cv_GCJ_dependencies_compiler_type=$depmode
16917         break
16918       fi
16919     fi
16920   done
16921
16922   cd ..
16923   rm -rf conftest.dir
16924 else
16925   am_cv_GCJ_dependencies_compiler_type=none
16926 fi
16927
16928 fi
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16930 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
16931 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16932
16933  if
16934   test "x$enable_dependency_tracking" != xno \
16935   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16936   am__fastdepGCJ_TRUE=
16937   am__fastdepGCJ_FALSE='#'
16938 else
16939   am__fastdepGCJ_TRUE='#'
16940   am__fastdepGCJ_FALSE=
16941 fi
16942
16943
16944
16945 if test -n "$ac_tool_prefix"; then
16946   for ac_prog in gcj
16947   do
16948     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16949 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16951 $as_echo_n "checking for $ac_word... " >&6; }
16952 if test "${ac_cv_prog_GCJ+set}" = set; then :
16953   $as_echo_n "(cached) " >&6
16954 else
16955   if test -n "$GCJ"; then
16956   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16957 else
16958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16959 for as_dir in $PATH
16960 do
16961   IFS=$as_save_IFS
16962   test -z "$as_dir" && as_dir=.
16963     for ac_exec_ext in '' $ac_executable_extensions; do
16964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16965     ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
16966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16967     break 2
16968   fi
16969 done
16970   done
16971 IFS=$as_save_IFS
16972
16973 fi
16974 fi
16975 GCJ=$ac_cv_prog_GCJ
16976 if test -n "$GCJ"; then
16977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16978 $as_echo "$GCJ" >&6; }
16979 else
16980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16981 $as_echo "no" >&6; }
16982 fi
16983
16984
16985     test -n "$GCJ" && break
16986   done
16987 fi
16988 if test -z "$GCJ"; then
16989   ac_ct_GCJ=$GCJ
16990   for ac_prog in gcj
16991 do
16992   # Extract the first word of "$ac_prog", so it can be a program name with args.
16993 set dummy $ac_prog; ac_word=$2
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16995 $as_echo_n "checking for $ac_word... " >&6; }
16996 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
16997   $as_echo_n "(cached) " >&6
16998 else
16999   if test -n "$ac_ct_GCJ"; then
17000   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
17001 else
17002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17003 for as_dir in $PATH
17004 do
17005   IFS=$as_save_IFS
17006   test -z "$as_dir" && as_dir=.
17007     for ac_exec_ext in '' $ac_executable_extensions; do
17008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17009     ac_cv_prog_ac_ct_GCJ="$ac_prog"
17010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17011     break 2
17012   fi
17013 done
17014   done
17015 IFS=$as_save_IFS
17016
17017 fi
17018 fi
17019 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
17020 if test -n "$ac_ct_GCJ"; then
17021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
17022 $as_echo "$ac_ct_GCJ" >&6; }
17023 else
17024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17025 $as_echo "no" >&6; }
17026 fi
17027
17028
17029   test -n "$ac_ct_GCJ" && break
17030 done
17031
17032   if test "x$ac_ct_GCJ" = x; then
17033     GCJ="gcj"
17034   else
17035     case $cross_compiling:$ac_tool_warned in
17036 yes:)
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17039 ac_tool_warned=yes ;;
17040 esac
17041     GCJ=$ac_ct_GCJ
17042   fi
17043 fi
17044
17045 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
17046 if test "x${GCJFLAGS-unset}" = xunset; then
17047    GCJFLAGS="-g -O2"
17048 fi
17049
17050
17051 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
17052
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17054 $as_echo_n "checking dependency style of $depcc... " >&6; }
17055 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
17056   $as_echo_n "(cached) " >&6
17057 else
17058   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17059   # We make a subdir and do the tests there.  Otherwise we can end up
17060   # making bogus files that we don't know about and never remove.  For
17061   # instance it was reported that on HP-UX the gcc test will end up
17062   # making a dummy file named `D' -- because `-MD' means `put the output
17063   # in D'.
17064   mkdir conftest.dir
17065   # Copy depcomp to subdir because otherwise we won't find it if we're
17066   # using a relative directory.
17067   cp "$am_depcomp" conftest.dir
17068   cd conftest.dir
17069   # We will build objects and dependencies in a subdirectory because
17070   # it helps to detect inapplicable dependency modes.  For instance
17071   # both Tru64's cc and ICC support -MD to output dependencies as a
17072   # side effect of compilation, but ICC will put the dependencies in
17073   # the current directory while Tru64 will put them in the object
17074   # directory.
17075   mkdir sub
17076
17077   am_cv_GCJ_dependencies_compiler_type=none
17078   if test "$am_compiler_list" = ""; then
17079      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17080   fi
17081   am__universal=false
17082
17083
17084   for depmode in $am_compiler_list; do
17085     # Setup a source with many dependencies, because some compilers
17086     # like to wrap large dependency lists on column 80 (with \), and
17087     # we should not choose a depcomp mode which is confused by this.
17088     #
17089     # We need to recreate these files for each test, as the compiler may
17090     # overwrite some of them when testing with obscure command lines.
17091     # This happens at least with the AIX C compiler.
17092     : > sub/conftest.c
17093     for i in 1 2 3 4 5 6; do
17094       echo '#include "conftst'$i'.h"' >> sub/conftest.c
17095       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17096       # Solaris 8's {/usr,}/bin/sh.
17097       touch sub/conftst$i.h
17098     done
17099     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17100
17101     # We check with `-c' and `-o' for the sake of the "dashmstdout"
17102     # mode.  It turns out that the SunPro C++ compiler does not properly
17103     # handle `-M -o', and we need to detect this.  Also, some Intel
17104     # versions had trouble with output in subdirs
17105     am__obj=sub/conftest.${OBJEXT-o}
17106     am__minus_obj="-o $am__obj"
17107     case $depmode in
17108     gcc)
17109       # This depmode causes a compiler race in universal mode.
17110       test "$am__universal" = false || continue
17111       ;;
17112     nosideeffect)
17113       # after this tag, mechanisms are not by side-effect, so they'll
17114       # only be used when explicitly requested
17115       if test "x$enable_dependency_tracking" = xyes; then
17116         continue
17117       else
17118         break
17119       fi
17120       ;;
17121     msvisualcpp | msvcmsys)
17122       # This compiler won't grok `-c -o', but also, the minuso test has
17123       # not run yet.  These depmodes are late enough in the game, and
17124       # so weak that their functioning should not be impacted.
17125       am__obj=conftest.${OBJEXT-o}
17126       am__minus_obj=
17127       ;;
17128     none) break ;;
17129     esac
17130     if depmode=$depmode \
17131        source=sub/conftest.c object=$am__obj \
17132        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17133        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17134          >/dev/null 2>conftest.err &&
17135        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17136        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17137        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17138        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17139       # icc doesn't choke on unknown options, it will just issue warnings
17140       # or remarks (even with -Werror).  So we grep stderr for any message
17141       # that says an option was ignored or not supported.
17142       # When given -MP, icc 7.0 and 7.1 complain thusly:
17143       #   icc: Command line warning: ignoring option '-M'; no argument required
17144       # The diagnosis changed in icc 8.0:
17145       #   icc: Command line remark: option '-MP' not supported
17146       if (grep 'ignoring option' conftest.err ||
17147           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17148         am_cv_GCJ_dependencies_compiler_type=$depmode
17149         break
17150       fi
17151     fi
17152   done
17153
17154   cd ..
17155   rm -rf conftest.dir
17156 else
17157   am_cv_GCJ_dependencies_compiler_type=none
17158 fi
17159
17160 fi
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
17162 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
17163 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
17164
17165  if
17166   test "x$enable_dependency_tracking" != xno \
17167   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
17168   am__fastdepGCJ_TRUE=
17169   am__fastdepGCJ_FALSE='#'
17170 else
17171   am__fastdepGCJ_TRUE='#'
17172   am__fastdepGCJ_FALSE=
17173 fi
17174
17175
17176
17177
17178
17179 # Source file extension for Java test sources.
17180 ac_ext=c
17181
17182 # Object file extension for compiled Java test sources.
17183 objext=o
17184 objext_GCJ=$objext
17185
17186 # Code to be used in simple compile tests
17187 lt_simple_compile_test_code="int some_variable = 0;"
17188
17189 # Code to be used in simple link tests
17190 lt_simple_link_test_code='int main(){return(0);}'
17191
17192 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17193
17194
17195
17196
17197
17198
17199 # If no C compiler was specified, use CC.
17200 LTCC=${LTCC-"$CC"}
17201
17202 # If no C compiler flags were specified, use CFLAGS.
17203 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17204
17205 # Allow CC to be a program name with arguments.
17206 compiler=$CC
17207
17208
17209 # save warnings/boilerplate of simple test code
17210 ac_outfile=conftest.$ac_objext
17211 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17212 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17213 _lt_compiler_boilerplate=`cat conftest.err`
17214 $RM conftest*
17215
17216 ac_outfile=conftest.$ac_objext
17217 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17218 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17219 _lt_linker_boilerplate=`cat conftest.err`
17220 $RM -r conftest*
17221
17222
17223 # Allow CC to be a program name with arguments.
17224 GCC=yes
17225 compiler=$CC
17226 compiler_GCJ=$CC
17227 for cc_temp in $compiler""; do
17228   case $cc_temp in
17229     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17230     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17231     \-*) ;;
17232     *) break;;
17233   esac
17234 done
17235 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17236
17237
17238 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17239 archive_cmds_need_lc_GCJ=no
17240
17241 old_archive_cmds_GCJ=$old_archive_cmds
17242
17243 ## CAVEAT EMPTOR:
17244 ## There is no encapsulation within the following macros, do not change
17245 ## the running order or otherwise move them around unless you know exactly
17246 ## what you are doing...
17247 if test -n "$compiler"; then
17248
17249 lt_prog_compiler_no_builtin_flag_GCJ=
17250
17251 if test "$GCC" = yes; then
17252   case $cc_basename in
17253   nvcc*)
17254     lt_prog_compiler_no_builtin_flag_GCJ=' -Xcompiler -fno-builtin' ;;
17255   *)
17256     lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' ;;
17257   esac
17258
17259   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17260 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17261 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
17262   $as_echo_n "(cached) " >&6
17263 else
17264   lt_cv_prog_compiler_rtti_exceptions=no
17265    ac_outfile=conftest.$ac_objext
17266    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17267    lt_compiler_flag="-fno-rtti -fno-exceptions"
17268    # Insert the option either (1) after the last *FLAGS variable, or
17269    # (2) before a word containing "conftest.", or (3) at the end.
17270    # Note that $ac_compile itself does not contain backslashes and begins
17271    # with a dollar sign (not a hyphen), so the echo should work correctly.
17272    # The option is referenced via a variable to avoid confusing sed.
17273    lt_compile=`echo "$ac_compile" | $SED \
17274    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17275    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17276    -e 's:$: $lt_compiler_flag:'`
17277    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17278    (eval "$lt_compile" 2>conftest.err)
17279    ac_status=$?
17280    cat conftest.err >&5
17281    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282    if (exit $ac_status) && test -s "$ac_outfile"; then
17283      # The compiler can only warn and ignore the option if not recognized
17284      # So say no if there are warnings other than the usual output.
17285      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17286      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17287      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17288        lt_cv_prog_compiler_rtti_exceptions=yes
17289      fi
17290    fi
17291    $RM conftest*
17292
17293 fi
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17295 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17296
17297 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17298     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17299 else
17300     :
17301 fi
17302
17303 fi
17304
17305
17306
17307   lt_prog_compiler_wl_GCJ=
17308 lt_prog_compiler_pic_GCJ=
17309 lt_prog_compiler_static_GCJ=
17310
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17312 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17313
17314   if test "$GCC" = yes; then
17315     lt_prog_compiler_wl_GCJ='-Wl,'
17316     lt_prog_compiler_static_GCJ='-static'
17317
17318     case $host_os in
17319       aix*)
17320       # All AIX code is PIC.
17321       if test "$host_cpu" = ia64; then
17322         # AIX 5 now supports IA64 processor
17323         lt_prog_compiler_static_GCJ='-Bstatic'
17324       fi
17325       ;;
17326
17327     amigaos*)
17328       case $host_cpu in
17329       powerpc)
17330             # see comment about AmigaOS4 .so support
17331             lt_prog_compiler_pic_GCJ='-fPIC'
17332         ;;
17333       m68k)
17334             # FIXME: we need at least 68020 code to build shared libraries, but
17335             # adding the `-m68020' flag to GCC prevents building anything better,
17336             # like `-m68040'.
17337             lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17338         ;;
17339       esac
17340       ;;
17341
17342     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17343       # PIC is the default for these OSes.
17344       ;;
17345
17346     mingw* | cygwin* | pw32* | os2* | cegcc*)
17347       # This hack is so that the source file can tell whether it is being
17348       # built for inclusion in a dll (and should export symbols for example).
17349       # Although the cygwin gcc ignores -fPIC, still need this for old-style
17350       # (--disable-auto-import) libraries
17351
17352       ;;
17353
17354     darwin* | rhapsody*)
17355       # PIC is the default on this platform
17356       # Common symbols not allowed in MH_DYLIB files
17357       lt_prog_compiler_pic_GCJ='-fno-common'
17358       ;;
17359
17360     haiku*)
17361       # PIC is the default for Haiku.
17362       # The "-static" flag exists, but is broken.
17363       lt_prog_compiler_static_GCJ=
17364       ;;
17365
17366     hpux*)
17367       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17368       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
17369       # sets the default TLS model and affects inlining.
17370       case $host_cpu in
17371       hppa*64*)
17372         # +Z the default
17373         ;;
17374       *)
17375         lt_prog_compiler_pic_GCJ='-fPIC'
17376         ;;
17377       esac
17378       ;;
17379
17380     interix[3-9]*)
17381       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17382       # Instead, we relocate shared libraries at runtime.
17383       ;;
17384
17385     msdosdjgpp*)
17386       # Just because we use GCC doesn't mean we suddenly get shared libraries
17387       # on systems that don't support them.
17388       lt_prog_compiler_can_build_shared_GCJ=no
17389       enable_shared=no
17390       ;;
17391
17392     *nto* | *qnx*)
17393       # QNX uses GNU C++, but need to define -shared option too, otherwise
17394       # it will coredump.
17395       lt_prog_compiler_pic_GCJ='-fPIC -shared'
17396       ;;
17397
17398     sysv4*MP*)
17399       if test -d /usr/nec; then
17400         lt_prog_compiler_pic_GCJ=-Kconform_pic
17401       fi
17402       ;;
17403
17404     *)
17405       lt_prog_compiler_pic_GCJ='-fPIC'
17406       ;;
17407     esac
17408
17409     case $cc_basename in
17410     nvcc*) # Cuda Compiler Driver 2.2
17411       lt_prog_compiler_wl_GCJ='-Xlinker '
17412       lt_prog_compiler_pic_GCJ='-Xcompiler -fPIC'
17413       ;;
17414     esac
17415   else
17416     # PORTME Check for flag to pass linker flags through the system compiler.
17417     case $host_os in
17418     aix*)
17419       lt_prog_compiler_wl_GCJ='-Wl,'
17420       if test "$host_cpu" = ia64; then
17421         # AIX 5 now supports IA64 processor
17422         lt_prog_compiler_static_GCJ='-Bstatic'
17423       else
17424         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17425       fi
17426       ;;
17427
17428     mingw* | cygwin* | pw32* | os2* | cegcc*)
17429       # This hack is so that the source file can tell whether it is being
17430       # built for inclusion in a dll (and should export symbols for example).
17431
17432       ;;
17433
17434     hpux9* | hpux10* | hpux11*)
17435       lt_prog_compiler_wl_GCJ='-Wl,'
17436       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17437       # not for PA HP-UX.
17438       case $host_cpu in
17439       hppa*64*|ia64*)
17440         # +Z the default
17441         ;;
17442       *)
17443         lt_prog_compiler_pic_GCJ='+Z'
17444         ;;
17445       esac
17446       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17447       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17448       ;;
17449
17450     irix5* | irix6* | nonstopux*)
17451       lt_prog_compiler_wl_GCJ='-Wl,'
17452       # PIC (with -KPIC) is the default.
17453       lt_prog_compiler_static_GCJ='-non_shared'
17454       ;;
17455
17456     linux* | k*bsd*-gnu | kopensolaris*-gnu)
17457       case $cc_basename in
17458       # old Intel for x86_64 which still supported -KPIC.
17459       ecc*)
17460         lt_prog_compiler_wl_GCJ='-Wl,'
17461         lt_prog_compiler_pic_GCJ='-KPIC'
17462         lt_prog_compiler_static_GCJ='-static'
17463         ;;
17464       # icc used to be incompatible with GCC.
17465       # ICC 10 doesn't accept -KPIC any more.
17466       icc* | ifort*)
17467         lt_prog_compiler_wl_GCJ='-Wl,'
17468         lt_prog_compiler_pic_GCJ='-fPIC'
17469         lt_prog_compiler_static_GCJ='-static'
17470         ;;
17471       # Lahey Fortran 8.1.
17472       lf95*)
17473         lt_prog_compiler_wl_GCJ='-Wl,'
17474         lt_prog_compiler_pic_GCJ='--shared'
17475         lt_prog_compiler_static_GCJ='--static'
17476         ;;
17477       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17478         # Portland Group compilers (*not* the Pentium gcc compiler,
17479         # which looks to be a dead project)
17480         lt_prog_compiler_wl_GCJ='-Wl,'
17481         lt_prog_compiler_pic_GCJ='-fpic'
17482         lt_prog_compiler_static_GCJ='-Bstatic'
17483         ;;
17484       ccc*)
17485         lt_prog_compiler_wl_GCJ='-Wl,'
17486         # All Alpha code is PIC.
17487         lt_prog_compiler_static_GCJ='-non_shared'
17488         ;;
17489       xl* | bgxl* | bgf* | mpixl*)
17490         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17491         lt_prog_compiler_wl_GCJ='-Wl,'
17492         lt_prog_compiler_pic_GCJ='-qpic'
17493         lt_prog_compiler_static_GCJ='-qstaticlink'
17494         ;;
17495       *)
17496         case `$CC -V 2>&1 | sed 5q` in
17497         *Sun\ F* | *Sun*Fortran*)
17498           # Sun Fortran 8.3 passes all unrecognized flags to the linker
17499           lt_prog_compiler_pic_GCJ='-KPIC'
17500           lt_prog_compiler_static_GCJ='-Bstatic'
17501           lt_prog_compiler_wl_GCJ=''
17502           ;;
17503         *Sun\ C*)
17504           # Sun C 5.9
17505           lt_prog_compiler_pic_GCJ='-KPIC'
17506           lt_prog_compiler_static_GCJ='-Bstatic'
17507           lt_prog_compiler_wl_GCJ='-Wl,'
17508           ;;
17509         esac
17510         ;;
17511       esac
17512       ;;
17513
17514     newsos6)
17515       lt_prog_compiler_pic_GCJ='-KPIC'
17516       lt_prog_compiler_static_GCJ='-Bstatic'
17517       ;;
17518
17519     *nto* | *qnx*)
17520       # QNX uses GNU C++, but need to define -shared option too, otherwise
17521       # it will coredump.
17522       lt_prog_compiler_pic_GCJ='-fPIC -shared'
17523       ;;
17524
17525     osf3* | osf4* | osf5*)
17526       lt_prog_compiler_wl_GCJ='-Wl,'
17527       # All OSF/1 code is PIC.
17528       lt_prog_compiler_static_GCJ='-non_shared'
17529       ;;
17530
17531     rdos*)
17532       lt_prog_compiler_static_GCJ='-non_shared'
17533       ;;
17534
17535     solaris*)
17536       lt_prog_compiler_pic_GCJ='-KPIC'
17537       lt_prog_compiler_static_GCJ='-Bstatic'
17538       case $cc_basename in
17539       f77* | f90* | f95*)
17540         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17541       *)
17542         lt_prog_compiler_wl_GCJ='-Wl,';;
17543       esac
17544       ;;
17545
17546     sunos4*)
17547       lt_prog_compiler_wl_GCJ='-Qoption ld '
17548       lt_prog_compiler_pic_GCJ='-PIC'
17549       lt_prog_compiler_static_GCJ='-Bstatic'
17550       ;;
17551
17552     sysv4 | sysv4.2uw2* | sysv4.3*)
17553       lt_prog_compiler_wl_GCJ='-Wl,'
17554       lt_prog_compiler_pic_GCJ='-KPIC'
17555       lt_prog_compiler_static_GCJ='-Bstatic'
17556       ;;
17557
17558     sysv4*MP*)
17559       if test -d /usr/nec ;then
17560         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17561         lt_prog_compiler_static_GCJ='-Bstatic'
17562       fi
17563       ;;
17564
17565     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17566       lt_prog_compiler_wl_GCJ='-Wl,'
17567       lt_prog_compiler_pic_GCJ='-KPIC'
17568       lt_prog_compiler_static_GCJ='-Bstatic'
17569       ;;
17570
17571     unicos*)
17572       lt_prog_compiler_wl_GCJ='-Wl,'
17573       lt_prog_compiler_can_build_shared_GCJ=no
17574       ;;
17575
17576     uts4*)
17577       lt_prog_compiler_pic_GCJ='-pic'
17578       lt_prog_compiler_static_GCJ='-Bstatic'
17579       ;;
17580
17581     *)
17582       lt_prog_compiler_can_build_shared_GCJ=no
17583       ;;
17584     esac
17585   fi
17586
17587 case $host_os in
17588   # For platforms which do not support PIC, -DPIC is meaningless:
17589   *djgpp*)
17590     lt_prog_compiler_pic_GCJ=
17591     ;;
17592   *)
17593     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17594     ;;
17595 esac
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
17597 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17598
17599
17600
17601 #
17602 # Check to make sure the PIC flag actually works.
17603 #
17604 if test -n "$lt_prog_compiler_pic_GCJ"; then
17605   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17606 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17607 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
17608   $as_echo_n "(cached) " >&6
17609 else
17610   lt_cv_prog_compiler_pic_works_GCJ=no
17611    ac_outfile=conftest.$ac_objext
17612    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17613    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17614    # Insert the option either (1) after the last *FLAGS variable, or
17615    # (2) before a word containing "conftest.", or (3) at the end.
17616    # Note that $ac_compile itself does not contain backslashes and begins
17617    # with a dollar sign (not a hyphen), so the echo should work correctly.
17618    # The option is referenced via a variable to avoid confusing sed.
17619    lt_compile=`echo "$ac_compile" | $SED \
17620    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17621    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17622    -e 's:$: $lt_compiler_flag:'`
17623    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17624    (eval "$lt_compile" 2>conftest.err)
17625    ac_status=$?
17626    cat conftest.err >&5
17627    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628    if (exit $ac_status) && test -s "$ac_outfile"; then
17629      # The compiler can only warn and ignore the option if not recognized
17630      # So say no if there are warnings other than the usual output.
17631      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17632      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17633      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17634        lt_cv_prog_compiler_pic_works_GCJ=yes
17635      fi
17636    fi
17637    $RM conftest*
17638
17639 fi
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17641 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17642
17643 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17644     case $lt_prog_compiler_pic_GCJ in
17645      "" | " "*) ;;
17646      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17647      esac
17648 else
17649     lt_prog_compiler_pic_GCJ=
17650      lt_prog_compiler_can_build_shared_GCJ=no
17651 fi
17652
17653 fi
17654
17655
17656
17657 #
17658 # Check to make sure the static flag actually works.
17659 #
17660 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17662 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17663 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
17664   $as_echo_n "(cached) " >&6
17665 else
17666   lt_cv_prog_compiler_static_works_GCJ=no
17667    save_LDFLAGS="$LDFLAGS"
17668    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17669    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17670    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17671      # The linker can only warn and ignore the option if not recognized
17672      # So say no if there are warnings
17673      if test -s conftest.err; then
17674        # Append any errors to the config.log.
17675        cat conftest.err 1>&5
17676        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17677        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17678        if diff conftest.exp conftest.er2 >/dev/null; then
17679          lt_cv_prog_compiler_static_works_GCJ=yes
17680        fi
17681      else
17682        lt_cv_prog_compiler_static_works_GCJ=yes
17683      fi
17684    fi
17685    $RM -r conftest*
17686    LDFLAGS="$save_LDFLAGS"
17687
17688 fi
17689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17690 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17691
17692 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17693     :
17694 else
17695     lt_prog_compiler_static_GCJ=
17696 fi
17697
17698
17699
17700
17701   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17702 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17703 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17704   $as_echo_n "(cached) " >&6
17705 else
17706   lt_cv_prog_compiler_c_o_GCJ=no
17707    $RM -r conftest 2>/dev/null
17708    mkdir conftest
17709    cd conftest
17710    mkdir out
17711    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17712
17713    lt_compiler_flag="-o out/conftest2.$ac_objext"
17714    # Insert the option either (1) after the last *FLAGS variable, or
17715    # (2) before a word containing "conftest.", or (3) at the end.
17716    # Note that $ac_compile itself does not contain backslashes and begins
17717    # with a dollar sign (not a hyphen), so the echo should work correctly.
17718    lt_compile=`echo "$ac_compile" | $SED \
17719    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17720    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17721    -e 's:$: $lt_compiler_flag:'`
17722    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17723    (eval "$lt_compile" 2>out/conftest.err)
17724    ac_status=$?
17725    cat out/conftest.err >&5
17726    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17728    then
17729      # The compiler can only warn and ignore the option if not recognized
17730      # So say no if there are warnings
17731      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17732      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17733      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17734        lt_cv_prog_compiler_c_o_GCJ=yes
17735      fi
17736    fi
17737    chmod u+w . 2>&5
17738    $RM conftest*
17739    # SGI C++ compiler will create directory out/ii_files/ for
17740    # template instantiation
17741    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17742    $RM out/* && rmdir out
17743    cd ..
17744    $RM -r conftest
17745    $RM conftest*
17746
17747 fi
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17749 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17750
17751
17752
17753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17754 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17755 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17756   $as_echo_n "(cached) " >&6
17757 else
17758   lt_cv_prog_compiler_c_o_GCJ=no
17759    $RM -r conftest 2>/dev/null
17760    mkdir conftest
17761    cd conftest
17762    mkdir out
17763    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17764
17765    lt_compiler_flag="-o out/conftest2.$ac_objext"
17766    # Insert the option either (1) after the last *FLAGS variable, or
17767    # (2) before a word containing "conftest.", or (3) at the end.
17768    # Note that $ac_compile itself does not contain backslashes and begins
17769    # with a dollar sign (not a hyphen), so the echo should work correctly.
17770    lt_compile=`echo "$ac_compile" | $SED \
17771    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17772    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17773    -e 's:$: $lt_compiler_flag:'`
17774    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17775    (eval "$lt_compile" 2>out/conftest.err)
17776    ac_status=$?
17777    cat out/conftest.err >&5
17778    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17780    then
17781      # The compiler can only warn and ignore the option if not recognized
17782      # So say no if there are warnings
17783      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17784      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17785      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17786        lt_cv_prog_compiler_c_o_GCJ=yes
17787      fi
17788    fi
17789    chmod u+w . 2>&5
17790    $RM conftest*
17791    # SGI C++ compiler will create directory out/ii_files/ for
17792    # template instantiation
17793    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17794    $RM out/* && rmdir out
17795    cd ..
17796    $RM -r conftest
17797    $RM conftest*
17798
17799 fi
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17801 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17802
17803
17804
17805
17806 hard_links="nottested"
17807 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17808   # do not overwrite the value of need_locks provided by the user
17809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17810 $as_echo_n "checking if we can lock with hard links... " >&6; }
17811   hard_links=yes
17812   $RM conftest*
17813   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17814   touch conftest.a
17815   ln conftest.a conftest.b 2>&5 || hard_links=no
17816   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17818 $as_echo "$hard_links" >&6; }
17819   if test "$hard_links" = no; then
17820     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17821 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17822     need_locks=warn
17823   fi
17824 else
17825   need_locks=no
17826 fi
17827
17828
17829
17830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17831 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17832
17833   runpath_var=
17834   allow_undefined_flag_GCJ=
17835   always_export_symbols_GCJ=no
17836   archive_cmds_GCJ=
17837   archive_expsym_cmds_GCJ=
17838   compiler_needs_object_GCJ=no
17839   enable_shared_with_static_runtimes_GCJ=no
17840   export_dynamic_flag_spec_GCJ=
17841   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17842   hardcode_automatic_GCJ=no
17843   hardcode_direct_GCJ=no
17844   hardcode_direct_absolute_GCJ=no
17845   hardcode_libdir_flag_spec_GCJ=
17846   hardcode_libdir_flag_spec_ld_GCJ=
17847   hardcode_libdir_separator_GCJ=
17848   hardcode_minus_L_GCJ=no
17849   hardcode_shlibpath_var_GCJ=unsupported
17850   inherit_rpath_GCJ=no
17851   link_all_deplibs_GCJ=unknown
17852   module_cmds_GCJ=
17853   module_expsym_cmds_GCJ=
17854   old_archive_from_new_cmds_GCJ=
17855   old_archive_from_expsyms_cmds_GCJ=
17856   thread_safe_flag_spec_GCJ=
17857   whole_archive_flag_spec_GCJ=
17858   # include_expsyms should be a list of space-separated symbols to be *always*
17859   # included in the symbol list
17860   include_expsyms_GCJ=
17861   # exclude_expsyms can be an extended regexp of symbols to exclude
17862   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17863   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17864   # as well as any symbol that contains `d'.
17865   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17866   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17867   # platforms (ab)use it in PIC code, but their linkers get confused if
17868   # the symbol is explicitly referenced.  Since portable code cannot
17869   # rely on this symbol name, it's probably fine to never include it in
17870   # preloaded symbol tables.
17871   # Exclude shared library initialization/finalization symbols.
17872   extract_expsyms_cmds=
17873
17874   case $host_os in
17875   cygwin* | mingw* | pw32* | cegcc*)
17876     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17877     # When not using gcc, we currently assume that we are using
17878     # Microsoft Visual C++.
17879     if test "$GCC" != yes; then
17880       with_gnu_ld=no
17881     fi
17882     ;;
17883   interix*)
17884     # we just hope/assume this is gcc and not c89 (= MSVC++)
17885     with_gnu_ld=yes
17886     ;;
17887   openbsd*)
17888     with_gnu_ld=no
17889     ;;
17890   esac
17891
17892   ld_shlibs_GCJ=yes
17893
17894   # On some targets, GNU ld is compatible enough with the native linker
17895   # that we're better off using the native interface for both.
17896   lt_use_gnu_ld_interface=no
17897   if test "$with_gnu_ld" = yes; then
17898     case $host_os in
17899       aix*)
17900         # The AIX port of GNU ld has always aspired to compatibility
17901         # with the native linker.  However, as the warning in the GNU ld
17902         # block says, versions before 2.19.5* couldn't really create working
17903         # shared libraries, regardless of the interface used.
17904         case `$LD -v 2>&1` in
17905           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17906           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17907           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17908           *)
17909             lt_use_gnu_ld_interface=yes
17910             ;;
17911         esac
17912         ;;
17913       *)
17914         lt_use_gnu_ld_interface=yes
17915         ;;
17916     esac
17917   fi
17918
17919   if test "$lt_use_gnu_ld_interface" = yes; then
17920     # If archive_cmds runs LD, not CC, wlarc should be empty
17921     wlarc='${wl}'
17922
17923     # Set some defaults for GNU ld with shared library support. These
17924     # are reset later if shared libraries are not supported. Putting them
17925     # here allows them to be overridden if necessary.
17926     runpath_var=LD_RUN_PATH
17927     hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17928     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17929     # ancient GNU ld didn't support --whole-archive et. al.
17930     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17931       whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17932     else
17933       whole_archive_flag_spec_GCJ=
17934     fi
17935     supports_anon_versioning=no
17936     case `$LD -v 2>&1` in
17937       *GNU\ gold*) supports_anon_versioning=yes ;;
17938       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17939       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17940       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17941       *\ 2.11.*) ;; # other 2.11 versions
17942       *) supports_anon_versioning=yes ;;
17943     esac
17944
17945     # See if GNU ld supports shared libraries.
17946     case $host_os in
17947     aix[3-9]*)
17948       # On AIX/PPC, the GNU linker is very broken
17949       if test "$host_cpu" != ia64; then
17950         ld_shlibs_GCJ=no
17951         cat <<_LT_EOF 1>&2
17952
17953 *** Warning: the GNU linker, at least up to release 2.19, is reported
17954 *** to be unable to reliably create shared libraries on AIX.
17955 *** Therefore, libtool is disabling shared libraries support.  If you
17956 *** really care for shared libraries, you may want to install binutils
17957 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17958 *** You will then need to restart the configuration process.
17959
17960 _LT_EOF
17961       fi
17962       ;;
17963
17964     amigaos*)
17965       case $host_cpu in
17966       powerpc)
17967             # see comment about AmigaOS4 .so support
17968             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17969             archive_expsym_cmds_GCJ=''
17970         ;;
17971       m68k)
17972             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)'
17973             hardcode_libdir_flag_spec_GCJ='-L$libdir'
17974             hardcode_minus_L_GCJ=yes
17975         ;;
17976       esac
17977       ;;
17978
17979     beos*)
17980       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17981         allow_undefined_flag_GCJ=unsupported
17982         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17983         # support --undefined.  This deserves some investigation.  FIXME
17984         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17985       else
17986         ld_shlibs_GCJ=no
17987       fi
17988       ;;
17989
17990     cygwin* | mingw* | pw32* | cegcc*)
17991       # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17992       # as there is no search path for DLLs.
17993       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17994       export_dynamic_flag_spec_GCJ='${wl}--export-all-symbols'
17995       allow_undefined_flag_GCJ=unsupported
17996       always_export_symbols_GCJ=no
17997       enable_shared_with_static_runtimes_GCJ=yes
17998       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17999
18000       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18001         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18002         # If the export-symbols file already is a .def file (1st line
18003         # is EXPORTS), use it as is; otherwise, prepend...
18004         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18005           cp $export_symbols $output_objdir/$soname.def;
18006         else
18007           echo EXPORTS > $output_objdir/$soname.def;
18008           cat $export_symbols >> $output_objdir/$soname.def;
18009         fi~
18010         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18011       else
18012         ld_shlibs_GCJ=no
18013       fi
18014       ;;
18015
18016     haiku*)
18017       archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18018       link_all_deplibs_GCJ=yes
18019       ;;
18020
18021     interix[3-9]*)
18022       hardcode_direct_GCJ=no
18023       hardcode_shlibpath_var_GCJ=no
18024       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18025       export_dynamic_flag_spec_GCJ='${wl}-E'
18026       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18027       # Instead, shared libraries are loaded at an image base (0x10000000 by
18028       # default) and relocated if they conflict, which is a slow very memory
18029       # consuming and fragmenting process.  To avoid this, we pick a random,
18030       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18031       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18032       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'
18033       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'
18034       ;;
18035
18036     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
18037       tmp_diet=no
18038       if test "$host_os" = linux-dietlibc; then
18039         case $cc_basename in
18040           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
18041         esac
18042       fi
18043       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
18044          && test "$tmp_diet" = no
18045       then
18046         tmp_addflag=
18047         tmp_sharedflag='-shared'
18048         case $cc_basename,$host_cpu in
18049         pgcc*)                          # Portland Group C compiler
18050           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'
18051           tmp_addflag=' $pic_flag'
18052           ;;
18053         pgf77* | pgf90* | pgf95* | pgfortran*)
18054                                         # Portland Group f77 and f90 compilers
18055           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'
18056           tmp_addflag=' $pic_flag -Mnomain' ;;
18057         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
18058           tmp_addflag=' -i_dynamic' ;;
18059         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18060           tmp_addflag=' -i_dynamic -nofor_main' ;;
18061         ifc* | ifort*)                  # Intel Fortran compiler
18062           tmp_addflag=' -nofor_main' ;;
18063         lf95*)                          # Lahey Fortran 8.1
18064           whole_archive_flag_spec_GCJ=
18065           tmp_sharedflag='--shared' ;;
18066         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
18067           tmp_sharedflag='-qmkshrobj'
18068           tmp_addflag= ;;
18069         nvcc*)  # Cuda Compiler Driver 2.2
18070           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'
18071           compiler_needs_object_GCJ=yes
18072           ;;
18073         esac
18074         case `$CC -V 2>&1 | sed 5q` in
18075         *Sun\ C*)                       # Sun C 5.9
18076           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'
18077           compiler_needs_object_GCJ=yes
18078           tmp_sharedflag='-G' ;;
18079         *Sun\ F*)                       # Sun Fortran 8.3
18080           tmp_sharedflag='-G' ;;
18081         esac
18082         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18083
18084         if test "x$supports_anon_versioning" = xyes; then
18085           archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18086             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18087             echo "local: *; };" >> $output_objdir/$libname.ver~
18088             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18089         fi
18090
18091         case $cc_basename in
18092         xlf* | bgf* | bgxlf* | mpixlf*)
18093           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
18094           whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
18095           hardcode_libdir_flag_spec_GCJ=
18096           hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18097           archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
18098           if test "x$supports_anon_versioning" = xyes; then
18099             archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18100               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18101               echo "local: *; };" >> $output_objdir/$libname.ver~
18102               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
18103           fi
18104           ;;
18105         esac
18106       else
18107         ld_shlibs_GCJ=no
18108       fi
18109       ;;
18110
18111     netbsd*)
18112       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18113         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18114         wlarc=
18115       else
18116         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18117         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18118       fi
18119       ;;
18120
18121     solaris*)
18122       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
18123         ld_shlibs_GCJ=no
18124         cat <<_LT_EOF 1>&2
18125
18126 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18127 *** create shared libraries on Solaris systems.  Therefore, libtool
18128 *** is disabling shared libraries support.  We urge you to upgrade GNU
18129 *** binutils to release 2.9.1 or newer.  Another option is to modify
18130 *** your PATH or compiler configuration so that the native linker is
18131 *** used, and then restart.
18132
18133 _LT_EOF
18134       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18135         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18136         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18137       else
18138         ld_shlibs_GCJ=no
18139       fi
18140       ;;
18141
18142     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18143       case `$LD -v 2>&1` in
18144         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18145         ld_shlibs_GCJ=no
18146         cat <<_LT_EOF 1>&2
18147
18148 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18149 *** reliably create shared libraries on SCO systems.  Therefore, libtool
18150 *** is disabling shared libraries support.  We urge you to upgrade GNU
18151 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18152 *** your PATH or compiler configuration so that the native linker is
18153 *** used, and then restart.
18154
18155 _LT_EOF
18156         ;;
18157         *)
18158           # For security reasons, it is highly recommended that you always
18159           # use absolute paths for naming shared libraries, and exclude the
18160           # DT_RUNPATH tag from executables and libraries.  But doing so
18161           # requires that you compile everything twice, which is a pain.
18162           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18163             hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18164             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18165             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18166           else
18167             ld_shlibs_GCJ=no
18168           fi
18169         ;;
18170       esac
18171       ;;
18172
18173     sunos4*)
18174       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18175       wlarc=
18176       hardcode_direct_GCJ=yes
18177       hardcode_shlibpath_var_GCJ=no
18178       ;;
18179
18180     *)
18181       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18182         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18183         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18184       else
18185         ld_shlibs_GCJ=no
18186       fi
18187       ;;
18188     esac
18189
18190     if test "$ld_shlibs_GCJ" = no; then
18191       runpath_var=
18192       hardcode_libdir_flag_spec_GCJ=
18193       export_dynamic_flag_spec_GCJ=
18194       whole_archive_flag_spec_GCJ=
18195     fi
18196   else
18197     # PORTME fill in a description of your system's linker (not GNU ld)
18198     case $host_os in
18199     aix3*)
18200       allow_undefined_flag_GCJ=unsupported
18201       always_export_symbols_GCJ=yes
18202       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'
18203       # Note: this linker hardcodes the directories in LIBPATH if there
18204       # are no directories specified by -L.
18205       hardcode_minus_L_GCJ=yes
18206       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18207         # Neither direct hardcoding nor static linking is supported with a
18208         # broken collect2.
18209         hardcode_direct_GCJ=unsupported
18210       fi
18211       ;;
18212
18213     aix[4-9]*)
18214       if test "$host_cpu" = ia64; then
18215         # On IA64, the linker does run time linking by default, so we don't
18216         # have to do anything special.
18217         aix_use_runtimelinking=no
18218         exp_sym_flag='-Bexport'
18219         no_entry_flag=""
18220       else
18221         # If we're using GNU nm, then we don't want the "-C" option.
18222         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18223         # Also, AIX nm treats weak defined symbols like other global
18224         # defined symbols, whereas GNU nm marks them as "W".
18225         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18226           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'
18227         else
18228           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'
18229         fi
18230         aix_use_runtimelinking=no
18231
18232         # Test if we are trying to use run time linking or normal
18233         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18234         # need to do runtime linking.
18235         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18236           for ld_flag in $LDFLAGS; do
18237           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18238             aix_use_runtimelinking=yes
18239             break
18240           fi
18241           done
18242           ;;
18243         esac
18244
18245         exp_sym_flag='-bexport'
18246         no_entry_flag='-bnoentry'
18247       fi
18248
18249       # When large executables or shared objects are built, AIX ld can
18250       # have problems creating the table of contents.  If linking a library
18251       # or program results in "error TOC overflow" add -mminimal-toc to
18252       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18253       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18254
18255       archive_cmds_GCJ=''
18256       hardcode_direct_GCJ=yes
18257       hardcode_direct_absolute_GCJ=yes
18258       hardcode_libdir_separator_GCJ=':'
18259       link_all_deplibs_GCJ=yes
18260       file_list_spec_GCJ='${wl}-f,'
18261
18262       if test "$GCC" = yes; then
18263         case $host_os in aix4.[012]|aix4.[012].*)
18264         # We only want to do this on AIX 4.2 and lower, the check
18265         # below for broken collect2 doesn't work under 4.3+
18266           collect2name=`${CC} -print-prog-name=collect2`
18267           if test -f "$collect2name" &&
18268            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18269           then
18270           # We have reworked collect2
18271           :
18272           else
18273           # We have old collect2
18274           hardcode_direct_GCJ=unsupported
18275           # It fails to find uninstalled libraries when the uninstalled
18276           # path is not listed in the libpath.  Setting hardcode_minus_L
18277           # to unsupported forces relinking
18278           hardcode_minus_L_GCJ=yes
18279           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18280           hardcode_libdir_separator_GCJ=
18281           fi
18282           ;;
18283         esac
18284         shared_flag='-shared'
18285         if test "$aix_use_runtimelinking" = yes; then
18286           shared_flag="$shared_flag "'${wl}-G'
18287         fi
18288       else
18289         # not using gcc
18290         if test "$host_cpu" = ia64; then
18291         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18292         # chokes on -Wl,-G. The following line is correct:
18293           shared_flag='-G'
18294         else
18295           if test "$aix_use_runtimelinking" = yes; then
18296             shared_flag='${wl}-G'
18297           else
18298             shared_flag='${wl}-bM:SRE'
18299           fi
18300         fi
18301       fi
18302
18303       export_dynamic_flag_spec_GCJ='${wl}-bexpall'
18304       # It seems that -bexpall does not export symbols beginning with
18305       # underscore (_), so it is better to generate a list of symbols to export.
18306       always_export_symbols_GCJ=yes
18307       if test "$aix_use_runtimelinking" = yes; then
18308         # Warning - without using the other runtime loading flags (-brtl),
18309         # -berok will link without error, but may produce a broken library.
18310         allow_undefined_flag_GCJ='-berok'
18311         # Determine the default libpath from the value encoded in an
18312         # empty executable.
18313         if test x$gcc_no_link = xyes; then
18314   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18315 fi
18316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18317 /* end confdefs.h.  */
18318
18319 int
18320 main ()
18321 {
18322
18323   ;
18324   return 0;
18325 }
18326 _ACEOF
18327 if ac_fn_c_try_link "$LINENO"; then :
18328
18329 lt_aix_libpath_sed='
18330     /Import File Strings/,/^$/ {
18331         /^0/ {
18332             s/^0  *\(.*\)$/\1/
18333             p
18334         }
18335     }'
18336 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18337 # Check for a 64-bit object if we didn't find anything.
18338 if test -z "$aix_libpath"; then
18339   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18340 fi
18341 fi
18342 rm -f core conftest.err conftest.$ac_objext \
18343     conftest$ac_exeext conftest.$ac_ext
18344 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18345
18346         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18347         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"
18348       else
18349         if test "$host_cpu" = ia64; then
18350           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18351           allow_undefined_flag_GCJ="-z nodefs"
18352           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"
18353         else
18354          # Determine the default libpath from the value encoded in an
18355          # empty executable.
18356          if test x$gcc_no_link = xyes; then
18357   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18358 fi
18359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18360 /* end confdefs.h.  */
18361
18362 int
18363 main ()
18364 {
18365
18366   ;
18367   return 0;
18368 }
18369 _ACEOF
18370 if ac_fn_c_try_link "$LINENO"; then :
18371
18372 lt_aix_libpath_sed='
18373     /Import File Strings/,/^$/ {
18374         /^0/ {
18375             s/^0  *\(.*\)$/\1/
18376             p
18377         }
18378     }'
18379 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18380 # Check for a 64-bit object if we didn't find anything.
18381 if test -z "$aix_libpath"; then
18382   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18383 fi
18384 fi
18385 rm -f core conftest.err conftest.$ac_objext \
18386     conftest$ac_exeext conftest.$ac_ext
18387 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18388
18389          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18390           # Warning - without using the other run time loading flags,
18391           # -berok will link without error, but may produce a broken library.
18392           no_undefined_flag_GCJ=' ${wl}-bernotok'
18393           allow_undefined_flag_GCJ=' ${wl}-berok'
18394           if test "$with_gnu_ld" = yes; then
18395             # We only use this code for GNU lds that support --whole-archive.
18396             whole_archive_flag_spec_GCJ='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18397           else
18398             # Exported symbols can be pulled into shared objects from archives
18399             whole_archive_flag_spec_GCJ='$convenience'
18400           fi
18401           archive_cmds_need_lc_GCJ=yes
18402           # This is similar to how AIX traditionally builds its shared libraries.
18403           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'
18404         fi
18405       fi
18406       ;;
18407
18408     amigaos*)
18409       case $host_cpu in
18410       powerpc)
18411             # see comment about AmigaOS4 .so support
18412             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18413             archive_expsym_cmds_GCJ=''
18414         ;;
18415       m68k)
18416             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)'
18417             hardcode_libdir_flag_spec_GCJ='-L$libdir'
18418             hardcode_minus_L_GCJ=yes
18419         ;;
18420       esac
18421       ;;
18422
18423     bsdi[45]*)
18424       export_dynamic_flag_spec_GCJ=-rdynamic
18425       ;;
18426
18427     cygwin* | mingw* | pw32* | cegcc*)
18428       # When not using gcc, we currently assume that we are using
18429       # Microsoft Visual C++.
18430       # hardcode_libdir_flag_spec is actually meaningless, as there is
18431       # no search path for DLLs.
18432       hardcode_libdir_flag_spec_GCJ=' '
18433       allow_undefined_flag_GCJ=unsupported
18434       # Tell ltmain to make .lib files, not .a files.
18435       libext=lib
18436       # Tell ltmain to make .dll files, not .so files.
18437       shrext_cmds=".dll"
18438       # FIXME: Setting linknames here is a bad hack.
18439       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18440       # The linker will automatically build a .lib file if we build a DLL.
18441       old_archive_from_new_cmds_GCJ='true'
18442       # FIXME: Should let the user specify the lib program.
18443       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18444       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18445       enable_shared_with_static_runtimes_GCJ=yes
18446       ;;
18447
18448     darwin* | rhapsody*)
18449
18450
18451   archive_cmds_need_lc_GCJ=no
18452   hardcode_direct_GCJ=no
18453   hardcode_automatic_GCJ=yes
18454   hardcode_shlibpath_var_GCJ=unsupported
18455   if test "$lt_cv_ld_force_load" = "yes"; then
18456     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\"`'
18457   else
18458     whole_archive_flag_spec_GCJ=''
18459   fi
18460   link_all_deplibs_GCJ=yes
18461   allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
18462   case $cc_basename in
18463      ifort*) _lt_dar_can_shared=yes ;;
18464      *) _lt_dar_can_shared=$GCC ;;
18465   esac
18466   if test "$_lt_dar_can_shared" = "yes"; then
18467     output_verbose_link_cmd=func_echo_all
18468     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}"
18469     module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18470     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}"
18471     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}"
18472
18473   else
18474   ld_shlibs_GCJ=no
18475   fi
18476
18477       ;;
18478
18479     dgux*)
18480       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18481       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18482       hardcode_shlibpath_var_GCJ=no
18483       ;;
18484
18485     freebsd1*)
18486       ld_shlibs_GCJ=no
18487       ;;
18488
18489     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18490     # support.  Future versions do this automatically, but an explicit c++rt0.o
18491     # does not break anything, and helps significantly (at the cost of a little
18492     # extra space).
18493     freebsd2.2*)
18494       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18495       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18496       hardcode_direct_GCJ=yes
18497       hardcode_shlibpath_var_GCJ=no
18498       ;;
18499
18500     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18501     freebsd2*)
18502       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18503       hardcode_direct_GCJ=yes
18504       hardcode_minus_L_GCJ=yes
18505       hardcode_shlibpath_var_GCJ=no
18506       ;;
18507
18508     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18509     freebsd* | dragonfly*)
18510       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18511       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18512       hardcode_direct_GCJ=yes
18513       hardcode_shlibpath_var_GCJ=no
18514       ;;
18515
18516     hpux9*)
18517       if test "$GCC" = yes; then
18518         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'
18519       else
18520         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'
18521       fi
18522       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18523       hardcode_libdir_separator_GCJ=:
18524       hardcode_direct_GCJ=yes
18525
18526       # hardcode_minus_L: Not really in the search PATH,
18527       # but as the default location of the library.
18528       hardcode_minus_L_GCJ=yes
18529       export_dynamic_flag_spec_GCJ='${wl}-E'
18530       ;;
18531
18532     hpux10*)
18533       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18534         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18535       else
18536         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18537       fi
18538       if test "$with_gnu_ld" = no; then
18539         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18540         hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18541         hardcode_libdir_separator_GCJ=:
18542         hardcode_direct_GCJ=yes
18543         hardcode_direct_absolute_GCJ=yes
18544         export_dynamic_flag_spec_GCJ='${wl}-E'
18545         # hardcode_minus_L: Not really in the search PATH,
18546         # but as the default location of the library.
18547         hardcode_minus_L_GCJ=yes
18548       fi
18549       ;;
18550
18551     hpux11*)
18552       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18553         case $host_cpu in
18554         hppa*64*)
18555           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18556           ;;
18557         ia64*)
18558           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18559           ;;
18560         *)
18561           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18562           ;;
18563         esac
18564       else
18565         case $host_cpu in
18566         hppa*64*)
18567           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18568           ;;
18569         ia64*)
18570           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18571           ;;
18572         *)
18573         archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18574           ;;
18575         esac
18576       fi
18577       if test "$with_gnu_ld" = no; then
18578         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18579         hardcode_libdir_separator_GCJ=:
18580
18581         case $host_cpu in
18582         hppa*64*|ia64*)
18583           hardcode_direct_GCJ=no
18584           hardcode_shlibpath_var_GCJ=no
18585           ;;
18586         *)
18587           hardcode_direct_GCJ=yes
18588           hardcode_direct_absolute_GCJ=yes
18589           export_dynamic_flag_spec_GCJ='${wl}-E'
18590
18591           # hardcode_minus_L: Not really in the search PATH,
18592           # but as the default location of the library.
18593           hardcode_minus_L_GCJ=yes
18594           ;;
18595         esac
18596       fi
18597       ;;
18598
18599     irix5* | irix6* | nonstopux*)
18600       if test "$GCC" = yes; then
18601         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'
18602         # Try to use the -exported_symbol ld option, if it does not
18603         # work, assume that -exports_file does not work either and
18604         # implicitly export all symbols.
18605         save_LDFLAGS="$LDFLAGS"
18606         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18607         if test x$gcc_no_link = xyes; then
18608   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18609 fi
18610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18611 /* end confdefs.h.  */
18612 int foo(void) {}
18613 _ACEOF
18614 if ac_fn_c_try_link "$LINENO"; then :
18615   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'
18616
18617 fi
18618 rm -f core conftest.err conftest.$ac_objext \
18619     conftest$ac_exeext conftest.$ac_ext
18620         LDFLAGS="$save_LDFLAGS"
18621       else
18622         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'
18623         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'
18624       fi
18625       archive_cmds_need_lc_GCJ='no'
18626       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18627       hardcode_libdir_separator_GCJ=:
18628       inherit_rpath_GCJ=yes
18629       link_all_deplibs_GCJ=yes
18630       ;;
18631
18632     netbsd*)
18633       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18634         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18635       else
18636         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18637       fi
18638       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18639       hardcode_direct_GCJ=yes
18640       hardcode_shlibpath_var_GCJ=no
18641       ;;
18642
18643     newsos6)
18644       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18645       hardcode_direct_GCJ=yes
18646       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18647       hardcode_libdir_separator_GCJ=:
18648       hardcode_shlibpath_var_GCJ=no
18649       ;;
18650
18651     *nto* | *qnx*)
18652       ;;
18653
18654     openbsd*)
18655       if test -f /usr/libexec/ld.so; then
18656         hardcode_direct_GCJ=yes
18657         hardcode_shlibpath_var_GCJ=no
18658         hardcode_direct_absolute_GCJ=yes
18659         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18660           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18661           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18662           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18663           export_dynamic_flag_spec_GCJ='${wl}-E'
18664         else
18665           case $host_os in
18666            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18667              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18668              hardcode_libdir_flag_spec_GCJ='-R$libdir'
18669              ;;
18670            *)
18671              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18672              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18673              ;;
18674           esac
18675         fi
18676       else
18677         ld_shlibs_GCJ=no
18678       fi
18679       ;;
18680
18681     os2*)
18682       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18683       hardcode_minus_L_GCJ=yes
18684       allow_undefined_flag_GCJ=unsupported
18685       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'
18686       old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18687       ;;
18688
18689     osf3*)
18690       if test "$GCC" = yes; then
18691         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18692         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'
18693       else
18694         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18695         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'
18696       fi
18697       archive_cmds_need_lc_GCJ='no'
18698       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18699       hardcode_libdir_separator_GCJ=:
18700       ;;
18701
18702     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18703       if test "$GCC" = yes; then
18704         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18705         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'
18706         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18707       else
18708         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18709         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'
18710         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~
18711         $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'
18712
18713         # Both c and cxx compiler support -rpath directly
18714         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18715       fi
18716       archive_cmds_need_lc_GCJ='no'
18717       hardcode_libdir_separator_GCJ=:
18718       ;;
18719
18720     solaris*)
18721       no_undefined_flag_GCJ=' -z defs'
18722       if test "$GCC" = yes; then
18723         wlarc='${wl}'
18724         archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18725         archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18726           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18727       else
18728         case `$CC -V 2>&1` in
18729         *"Compilers 5.0"*)
18730           wlarc=''
18731           archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18732           archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18733           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18734           ;;
18735         *)
18736           wlarc='${wl}'
18737           archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18738           archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18739           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18740           ;;
18741         esac
18742       fi
18743       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18744       hardcode_shlibpath_var_GCJ=no
18745       case $host_os in
18746       solaris2.[0-5] | solaris2.[0-5].*) ;;
18747       *)
18748         # The compiler driver will combine and reorder linker options,
18749         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18750         # but is careful enough not to reorder.
18751         # Supported since Solaris 2.6 (maybe 2.5.1?)
18752         if test "$GCC" = yes; then
18753           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18754         else
18755           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18756         fi
18757         ;;
18758       esac
18759       link_all_deplibs_GCJ=yes
18760       ;;
18761
18762     sunos4*)
18763       if test "x$host_vendor" = xsequent; then
18764         # Use $CC to link under sequent, because it throws in some extra .o
18765         # files that make .init and .fini sections work.
18766         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18767       else
18768         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18769       fi
18770       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18771       hardcode_direct_GCJ=yes
18772       hardcode_minus_L_GCJ=yes
18773       hardcode_shlibpath_var_GCJ=no
18774       ;;
18775
18776     sysv4)
18777       case $host_vendor in
18778         sni)
18779           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18780           hardcode_direct_GCJ=yes # is this really true???
18781         ;;
18782         siemens)
18783           ## LD is ld it makes a PLAMLIB
18784           ## CC just makes a GrossModule.
18785           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18786           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18787           hardcode_direct_GCJ=no
18788         ;;
18789         motorola)
18790           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18791           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18792         ;;
18793       esac
18794       runpath_var='LD_RUN_PATH'
18795       hardcode_shlibpath_var_GCJ=no
18796       ;;
18797
18798     sysv4.3*)
18799       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18800       hardcode_shlibpath_var_GCJ=no
18801       export_dynamic_flag_spec_GCJ='-Bexport'
18802       ;;
18803
18804     sysv4*MP*)
18805       if test -d /usr/nec; then
18806         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18807         hardcode_shlibpath_var_GCJ=no
18808         runpath_var=LD_RUN_PATH
18809         hardcode_runpath_var=yes
18810         ld_shlibs_GCJ=yes
18811       fi
18812       ;;
18813
18814     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18815       no_undefined_flag_GCJ='${wl}-z,text'
18816       archive_cmds_need_lc_GCJ=no
18817       hardcode_shlibpath_var_GCJ=no
18818       runpath_var='LD_RUN_PATH'
18819
18820       if test "$GCC" = yes; then
18821         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18822         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18823       else
18824         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18825         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18826       fi
18827       ;;
18828
18829     sysv5* | sco3.2v5* | sco5v6*)
18830       # Note: We can NOT use -z defs as we might desire, because we do not
18831       # link with -lc, and that would cause any symbols used from libc to
18832       # always be unresolved, which means just about no library would
18833       # ever link correctly.  If we're not using GNU ld we use -z text
18834       # though, which does catch some bad symbols but isn't as heavy-handed
18835       # as -z defs.
18836       no_undefined_flag_GCJ='${wl}-z,text'
18837       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18838       archive_cmds_need_lc_GCJ=no
18839       hardcode_shlibpath_var_GCJ=no
18840       hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
18841       hardcode_libdir_separator_GCJ=':'
18842       link_all_deplibs_GCJ=yes
18843       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18844       runpath_var='LD_RUN_PATH'
18845
18846       if test "$GCC" = yes; then
18847         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18848         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18849       else
18850         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18851         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18852       fi
18853       ;;
18854
18855     uts4*)
18856       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18857       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18858       hardcode_shlibpath_var_GCJ=no
18859       ;;
18860
18861     *)
18862       ld_shlibs_GCJ=no
18863       ;;
18864     esac
18865
18866     if test x$host_vendor = xsni; then
18867       case $host in
18868       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18869         export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
18870         ;;
18871       esac
18872     fi
18873   fi
18874
18875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
18876 $as_echo "$ld_shlibs_GCJ" >&6; }
18877 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18878
18879 with_gnu_ld_GCJ=$with_gnu_ld
18880
18881
18882
18883
18884
18885
18886 #
18887 # Do we need to explicitly link libc?
18888 #
18889 case "x$archive_cmds_need_lc_GCJ" in
18890 x|xyes)
18891   # Assume -lc should be added
18892   archive_cmds_need_lc_GCJ=yes
18893
18894   if test "$enable_shared" = yes && test "$GCC" = yes; then
18895     case $archive_cmds_GCJ in
18896     *'~'*)
18897       # FIXME: we may have to deal with multi-command sequences.
18898       ;;
18899     '$CC '*)
18900       # Test whether the compiler implicitly links with -lc since on some
18901       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18902       # to ld, don't add -lc before -lgcc.
18903       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18904 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18905 if test "${lt_cv_archive_cmds_need_lc_GCJ+set}" = set; then :
18906   $as_echo_n "(cached) " >&6
18907 else
18908   $RM conftest*
18909         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18910
18911         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18912   (eval $ac_compile) 2>&5
18913   ac_status=$?
18914   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18915   test $ac_status = 0; } 2>conftest.err; then
18916           soname=conftest
18917           lib=conftest
18918           libobjs=conftest.$ac_objext
18919           deplibs=
18920           wl=$lt_prog_compiler_wl_GCJ
18921           pic_flag=$lt_prog_compiler_pic_GCJ
18922           compiler_flags=-v
18923           linker_flags=-v
18924           verstring=
18925           output_objdir=.
18926           libname=conftest
18927           lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18928           allow_undefined_flag_GCJ=
18929           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18930   (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18931   ac_status=$?
18932   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18933   test $ac_status = 0; }
18934           then
18935             lt_cv_archive_cmds_need_lc_GCJ=no
18936           else
18937             lt_cv_archive_cmds_need_lc_GCJ=yes
18938           fi
18939           allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18940         else
18941           cat conftest.err 1>&5
18942         fi
18943         $RM conftest*
18944
18945 fi
18946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GCJ" >&5
18947 $as_echo "$lt_cv_archive_cmds_need_lc_GCJ" >&6; }
18948       archive_cmds_need_lc_GCJ=$lt_cv_archive_cmds_need_lc_GCJ
18949       ;;
18950     esac
18951   fi
18952   ;;
18953 esac
18954
18955
18956
18957
18958
18959
18960
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19019 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19020 hardcode_action_GCJ=
19021 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
19022    test -n "$runpath_var_GCJ" ||
19023    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19024
19025   # We can hardcode non-existent directories.
19026   if test "$hardcode_direct_GCJ" != no &&
19027      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19028      # have to relink, otherwise we might link with an installed library
19029      # when we should be linking with a yet-to-be-installed one
19030      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19031      test "$hardcode_minus_L_GCJ" != no; then
19032     # Linking always hardcodes the temporary library directory.
19033     hardcode_action_GCJ=relink
19034   else
19035     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19036     hardcode_action_GCJ=immediate
19037   fi
19038 else
19039   # We cannot hardcode anything, or else we can only hardcode existing
19040   # directories.
19041   hardcode_action_GCJ=unsupported
19042 fi
19043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
19044 $as_echo "$hardcode_action_GCJ" >&6; }
19045
19046 if test "$hardcode_action_GCJ" = relink ||
19047    test "$inherit_rpath_GCJ" = yes; then
19048   # Fast installation is not supported
19049   enable_fast_install=no
19050 elif test "$shlibpath_overrides_runpath" = yes ||
19051      test "$enable_shared" = no; then
19052   # Fast installation is not necessary
19053   enable_fast_install=needless
19054 fi
19055
19056
19057
19058
19059
19060
19061
19062 fi
19063
19064 compiler_GCJ=${GCJ-gcj}
19065 ac_ext=c
19066 ac_cpp='$CPP $CPPFLAGS'
19067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19070
19071
19072 if test "x$CC" != xcc; then
19073   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
19074 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
19075 else
19076   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
19077 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
19078 fi
19079 set dummy $CC; ac_cc=`$as_echo "$2" |
19080                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19081 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
19082   $as_echo_n "(cached) " >&6
19083 else
19084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19085 /* end confdefs.h.  */
19086
19087 int
19088 main ()
19089 {
19090
19091   ;
19092   return 0;
19093 }
19094 _ACEOF
19095 # Make sure it works both with $CC and with simple cc.
19096 # We do the test twice because some compilers refuse to overwrite an
19097 # existing .o file with -o, though they will create one.
19098 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19099 rm -f conftest2.*
19100 if { { case "(($ac_try" in
19101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102   *) ac_try_echo=$ac_try;;
19103 esac
19104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19105 $as_echo "$ac_try_echo"; } >&5
19106   (eval "$ac_try") 2>&5
19107   ac_status=$?
19108   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19109   test $ac_status = 0; } &&
19110    test -f conftest2.$ac_objext && { { case "(($ac_try" in
19111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19112   *) ac_try_echo=$ac_try;;
19113 esac
19114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19115 $as_echo "$ac_try_echo"; } >&5
19116   (eval "$ac_try") 2>&5
19117   ac_status=$?
19118   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19119   test $ac_status = 0; };
19120 then
19121   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
19122   if test "x$CC" != xcc; then
19123     # Test first that cc exists at all.
19124     if { ac_try='cc -c conftest.$ac_ext >&5'
19125   { { case "(($ac_try" in
19126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19127   *) ac_try_echo=$ac_try;;
19128 esac
19129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19130 $as_echo "$ac_try_echo"; } >&5
19131   (eval "$ac_try") 2>&5
19132   ac_status=$?
19133   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19134   test $ac_status = 0; }; }; then
19135       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19136       rm -f conftest2.*
19137       if { { case "(($ac_try" in
19138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19139   *) ac_try_echo=$ac_try;;
19140 esac
19141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19142 $as_echo "$ac_try_echo"; } >&5
19143   (eval "$ac_try") 2>&5
19144   ac_status=$?
19145   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19146   test $ac_status = 0; } &&
19147          test -f conftest2.$ac_objext && { { case "(($ac_try" in
19148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19149   *) ac_try_echo=$ac_try;;
19150 esac
19151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19152 $as_echo "$ac_try_echo"; } >&5
19153   (eval "$ac_try") 2>&5
19154   ac_status=$?
19155   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19156   test $ac_status = 0; };
19157       then
19158         # cc works too.
19159         :
19160       else
19161         # cc exists but doesn't like -o.
19162         eval ac_cv_prog_cc_${ac_cc}_c_o=no
19163       fi
19164     fi
19165   fi
19166 else
19167   eval ac_cv_prog_cc_${ac_cc}_c_o=no
19168 fi
19169 rm -f core conftest*
19170
19171 fi
19172 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
19173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19174 $as_echo "yes" >&6; }
19175 else
19176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19177 $as_echo "no" >&6; }
19178
19179 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
19180
19181 fi
19182
19183 # FIXME: we rely on the cache variable name because
19184 # there is no other way.
19185 set dummy $CC
19186 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19187 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
19188 if test "$am_t" != yes; then
19189    # Losing compiler, so override with the script.
19190    # FIXME: It is wrong to rewrite CC.
19191    # But if we don't then we get into trouble of one sort or another.
19192    # A longer-term fix would be to have automake use am__CC in this case,
19193    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19194    CC="$am_aux_dir/compile $CC"
19195 fi
19196
19197
19198
19199
19200
19201 subdirs="$subdirs classpath libltdl"
19202
19203
19204 # The -no-testsuite modules omit the test subdir.
19205  if test -d $srcdir/testsuite; then
19206   TESTSUBDIR_TRUE=
19207   TESTSUBDIR_FALSE='#'
19208 else
19209   TESTSUBDIR_TRUE='#'
19210   TESTSUBDIR_FALSE=
19211 fi
19212
19213
19214 # Should the runtime set system properties by examining the
19215 # environment variable GCJ_PROPERTIES?
19216 # Check whether --enable-getenv-properties was given.
19217 if test "${enable_getenv_properties+set}" = set; then :
19218   enableval=$enable_getenv_properties;
19219 fi
19220
19221
19222 # Whether GCJ_PROPERTIES is used depends on the target.
19223 if test -z "$enable_getenv_properties"; then
19224    enable_getenv_properties=${enable_getenv_properties_default-yes}
19225 fi
19226 if test "$enable_getenv_properties" = no; then
19227
19228 $as_echo "#define DISABLE_GETENV_PROPERTIES 1" >>confdefs.h
19229
19230 fi
19231
19232 # Whether we should use arguments to main()
19233 if test -z "$enable_main_args"; then
19234    enable_main_args=${enable_main_args_default-yes}
19235 fi
19236 if test "$enable_main_args" = no; then
19237
19238 $as_echo "#define DISABLE_MAIN_ARGS 1" >>confdefs.h
19239
19240 fi
19241
19242
19243 # Should we use hashtable-based synchronization?
19244 # Currently works only for Linux X86/ia64
19245 # Typically faster and more space-efficient
19246 # Check whether --enable-hash-synchronization was given.
19247 if test "${enable_hash_synchronization+set}" = set; then :
19248   enableval=$enable_hash_synchronization;
19249 fi
19250
19251
19252 if test -z "$enable_hash_synchronization"; then
19253    enable_hash_synchronization=$enable_hash_synchronization_default
19254 fi
19255
19256
19257 install_ecj_jar=no
19258 ECJ_BUILD_JAR=
19259 ECJ_JAR=
19260
19261 # Check whether --with-ecj-jar was given.
19262 if test "${with_ecj_jar+set}" = set; then :
19263   withval=$with_ecj_jar; ECJ_JAR=$withval
19264 else
19265   if test -f $multi_basedir/ecj.jar; then
19266            ECJ_BUILD_JAR=$multi_basedir/ecj.jar
19267            ECJ_JAR='$(jardir)/ecj.jar'
19268            install_ecj_jar=yes
19269          fi
19270 fi
19271
19272
19273
19274  if test "$ECJ_JAR" != ""; then
19275   BUILD_ECJ1_TRUE=
19276   BUILD_ECJ1_FALSE='#'
19277 else
19278   BUILD_ECJ1_TRUE='#'
19279   BUILD_ECJ1_FALSE=
19280 fi
19281
19282  if test $install_ecj_jar = yes; then
19283   INSTALL_ECJ_JAR_TRUE=
19284   INSTALL_ECJ_JAR_FALSE='#'
19285 else
19286   INSTALL_ECJ_JAR_TRUE='#'
19287   INSTALL_ECJ_JAR_FALSE=
19288 fi
19289
19290
19291
19292 # Check whether --with-java-home was given.
19293 if test "${with_java_home+set}" = set; then :
19294   withval=$with_java_home; JAVA_HOME="${withval}"
19295 else
19296   JAVA_HOME=""
19297 fi
19298
19299  if test ! -z "$JAVA_HOME"; then
19300   JAVA_HOME_SET_TRUE=
19301   JAVA_HOME_SET_FALSE='#'
19302 else
19303   JAVA_HOME_SET_TRUE='#'
19304   JAVA_HOME_SET_FALSE=
19305 fi
19306
19307
19308
19309 suppress_libgcj_bc=no
19310 # Check whether --enable-libgcj-bc was given.
19311 if test "${enable_libgcj_bc+set}" = set; then :
19312   enableval=$enable_libgcj_bc; if test "$enable_libgcj_bc" = "no"; then
19313      suppress_libgcj_bc=yes
19314    fi
19315 fi
19316
19317  if test "$suppress_libgcj_bc" = "yes"; then
19318   SUPPRESS_LIBGCJ_BC_TRUE=
19319   SUPPRESS_LIBGCJ_BC_FALSE='#'
19320 else
19321   SUPPRESS_LIBGCJ_BC_TRUE='#'
19322   SUPPRESS_LIBGCJ_BC_FALSE=
19323 fi
19324
19325
19326 build_libgcj_reduced_reflection=no
19327 # Check whether --enable-reduced-reflection was given.
19328 if test "${enable_reduced_reflection+set}" = set; then :
19329   enableval=$enable_reduced_reflection; if test "$enable_reduced_reflection" = "yes"; then
19330      build_libgcj_reduced_reflection=yes
19331    fi
19332 fi
19333
19334  if test "$build_libgcj_reduced_reflection" = "yes"; then
19335   BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
19336   BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
19337 else
19338   BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
19339   BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
19340 fi
19341
19342
19343 # What is the native OS API for MinGW?
19344
19345 # Check whether --with-win32-nlsapi was given.
19346 if test "${with_win32_nlsapi+set}" = set; then :
19347   withval=$with_win32_nlsapi; case "${withval}" in
19348   ansi) with_win32_nlsapi=ansi ;;
19349   unicows) with_win32_nlsapi=unicows ;;
19350   unicode) with_win32_nlsapi=unicode ;;
19351   *) as_fn_error "Bad value ${withval} for --with-win32-nlsapi." "$LINENO" 5 ;;
19352 esac
19353 else
19354   with_win32_nlsapi=ansi
19355 fi
19356
19357
19358 case "${with_win32_nlsapi}" in
19359   unicows | unicode)
19360
19361 $as_echo "#define MINGW_LIBGCJ_UNICODE 1" >>confdefs.h
19362
19363     ;;
19364 esac
19365
19366 # configure.host sets slow_pthread_self if the synchronization code should
19367 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
19368 if test "${slow_pthread_self}" = "yes"; then
19369
19370 $as_echo "#define SLOW_PTHREAD_SELF 1" >>confdefs.h
19371
19372 fi
19373
19374 # Check for gc debugging.  This option is handled both here and in the GC.
19375 # Check whether --enable-gc-debug was given.
19376 if test "${enable_gc_debug+set}" = set; then :
19377   enableval=$enable_gc_debug;  if test "$enable_gc_debug" = "yes"; then
19378
19379 $as_echo "#define LIBGCJ_GC_DEBUG 1" >>confdefs.h
19380
19381   fi
19382 fi
19383
19384
19385 # See if the user has the interpreter included.
19386 # Check whether --enable-interpreter was given.
19387 if test "${enable_interpreter+set}" = set; then :
19388   enableval=$enable_interpreter; if test "$enable_interpreter" = yes; then
19389     # This can also be set in configure.host.
19390     libgcj_interpreter=yes
19391   elif test "$enable_interpreter" = no; then
19392     libgcj_interpreter=no
19393   fi
19394 fi
19395
19396
19397 if test "$libgcj_interpreter" = yes; then
19398
19399 $as_echo "#define INTERPRETER 1" >>confdefs.h
19400
19401 fi
19402 INTERPRETER="$libgcj_interpreter"
19403
19404  if test "$libgcj_interpreter" = yes; then
19405   INTERPRETER_TRUE=
19406   INTERPRETER_FALSE='#'
19407 else
19408   INTERPRETER_TRUE='#'
19409   INTERPRETER_FALSE=
19410 fi
19411
19412
19413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception model to use" >&5
19414 $as_echo_n "checking for exception model to use... " >&6; }
19415 ac_ext=cpp
19416 ac_cpp='$CXXCPP $CPPFLAGS'
19417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19420
19421 # Check whether --enable-sjlj-exceptions was given.
19422 if test "${enable_sjlj_exceptions+set}" = set; then :
19423   enableval=$enable_sjlj_exceptions; :
19424 else
19425   cat > conftest.$ac_ext << EOF
19426 #line 19426 "configure"
19427 struct S { ~S(); };
19428 void bar();
19429 void foo()
19430 {
19431   S s;
19432   bar();
19433 }
19434 EOF
19435 old_CXXFLAGS="$CXXFLAGS"
19436 CXXFLAGS=-S
19437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19438   (eval $ac_compile) 2>&5
19439   ac_status=$?
19440   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19441   test $ac_status = 0; }; then
19442   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
19443     enable_sjlj_exceptions=yes
19444   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
19445     enable_sjlj_exceptions=no
19446   elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
19447     # ARM EH ABI.
19448     enable_sjlj_exceptions=no
19449   fi
19450 fi
19451 CXXFLAGS="$old_CXXFLAGS"
19452 rm -f conftest*
19453 fi
19454
19455 if test x$enable_sjlj_exceptions = xyes; then
19456
19457 $as_echo "#define SJLJ_EXCEPTIONS 1" >>confdefs.h
19458
19459   ac_exception_model_name=sjlj
19460 elif test x$enable_sjlj_exceptions = xno; then
19461   ac_exception_model_name="call frame"
19462 else
19463   as_fn_error "unable to detect exception model" "$LINENO" 5
19464 fi
19465 ac_ext=c
19466 ac_cpp='$CPP $CPPFLAGS'
19467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19470
19471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception_model_name" >&5
19472 $as_echo "$ac_exception_model_name" >&6; }
19473
19474 # If we are non using SJLJ exceptions, and this host does not have support
19475 # for unwinding from a signal handler, enable checked dereferences and divides.
19476 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
19477   CHECKREFSPEC=-fcheck-references
19478   DIVIDESPEC=-fuse-divide-subroutine
19479   EXCEPTIONSPEC=
19480 fi
19481
19482 # See if the user wants to disable java.net.  This is the mildly
19483 # ugly way that we admit that target-side configuration sucks.
19484 # Check whether --enable-java-net was given.
19485 if test "${enable_java_net+set}" = set; then :
19486   enableval=$enable_java_net;
19487 fi
19488
19489
19490 # Whether java.net is built by default can depend on the target.
19491 if test -z "$enable_java_net"; then
19492    enable_java_net=${enable_java_net_default-yes}
19493 fi
19494 if test "$enable_java_net" = no; then
19495
19496 $as_echo "#define DISABLE_JAVA_NET 1" >>confdefs.h
19497
19498 fi
19499
19500 # See if the user wants to configure without libffi.  Some
19501 # architectures don't support it, and default values are set in
19502 # configure.host.
19503
19504 # Check whether --with-libffi was given.
19505 if test "${with_libffi+set}" = set; then :
19506   withval=$with_libffi; :
19507 else
19508   with_libffi=${with_libffi_default-yes}
19509 fi
19510
19511
19512 LIBFFI=
19513 LIBFFIINCS=
19514 if test "$with_libffi" != no; then
19515
19516 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
19517
19518    LIBFFI=../libffi/libffi_convenience.la
19519    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
19520 fi
19521
19522
19523
19524 # See if the user wants to disable JVMPI support.
19525 # Check whether --enable-jvmpi was given.
19526 if test "${enable_jvmpi+set}" = set; then :
19527   enableval=$enable_jvmpi;
19528 fi
19529
19530
19531 if test "$enable_jvmpi" != no; then
19532
19533 $as_echo "#define ENABLE_JVMPI 1" >>confdefs.h
19534
19535 fi
19536
19537 # If the target is an eCos system, use the appropriate eCos
19538 # I/O routines.
19539 # FIXME: this should not be a local option but a global target
19540 # system; at present there is no eCos target.
19541 TARGET_ECOS=${PROCESS-"no"}
19542
19543 # Check whether --with-ecos was given.
19544 if test "${with_ecos+set}" = set; then :
19545   withval=$with_ecos; TARGET_ECOS="$with_ecos"
19546
19547 fi
19548
19549
19550 case "$TARGET_ECOS" in
19551    no) case "$host" in
19552       *mingw*)
19553             PLATFORM=Win32
19554             PLATFORMNET=Win32
19555             PLATFORMH=win32.h
19556
19557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'ld' is at least 2.13" >&5
19558 $as_echo_n "checking whether 'ld' is at least 2.13... " >&6; }
19559 LD_PROG=`$CC --print-prog-name=ld`
19560 LD_VERSION=`$LD_PROG --version`
19561 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
19562 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
19563 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
19564   LD_OK="ok"
19565 else
19566   if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
19567     LD_OK="ok"
19568   fi
19569 fi
19570 if test "x$LD_OK" != x; then
19571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19572 $as_echo "yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19573 else
19574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19575 $as_echo "no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19576   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
19577 $as_echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
19578
19579 $as_echo "#define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1" >>confdefs.h
19580
19581 fi
19582       ;;
19583       *)
19584             PLATFORM=Posix
19585             PLATFORMNET=Posix
19586             PLATFORMH=posix.h
19587       ;;
19588       esac
19589       ;;
19590    *)
19591       PLATFORM=Ecos
19592       PLATFORMNET=NoNet
19593
19594 $as_echo "#define ECOS 1" >>confdefs.h
19595
19596       PLATFORMH=posix.h
19597       ;;
19598 esac
19599
19600 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
19601
19602
19603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19604 /* end confdefs.h.  */
19605 #include <stdint.h>
19606
19607 _ACEOF
19608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19609   $EGREP "uint32_t" >/dev/null 2>&1; then :
19610
19611 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19612
19613 fi
19614 rm -f conftest*
19615
19616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19617 /* end confdefs.h.  */
19618 #include <inttypes.h>
19619
19620 _ACEOF
19621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19622   $EGREP "uint32_t" >/dev/null 2>&1; then :
19623
19624 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19625
19626 fi
19627 rm -f conftest*
19628
19629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19630 /* end confdefs.h.  */
19631 #include <sys/types.h>
19632
19633 _ACEOF
19634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19635   $EGREP "u_int32_t" >/dev/null 2>&1; then :
19636
19637 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19638
19639 fi
19640 rm -f conftest*
19641
19642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19643 /* end confdefs.h.  */
19644 #include <sys/config.h>
19645
19646 _ACEOF
19647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19648   $EGREP "u_int32_t" >/dev/null 2>&1; then :
19649
19650 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19651
19652 fi
19653 rm -f conftest*
19654
19655
19656  if test "$PLATFORM" = Win32; then
19657   USING_WIN32_PLATFORM_TRUE=
19658   USING_WIN32_PLATFORM_FALSE='#'
19659 else
19660   USING_WIN32_PLATFORM_TRUE='#'
19661   USING_WIN32_PLATFORM_FALSE=
19662 fi
19663
19664  if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
19665   USING_POSIX_PLATFORM_TRUE=
19666   USING_POSIX_PLATFORM_FALSE='#'
19667 else
19668   USING_POSIX_PLATFORM_TRUE='#'
19669   USING_POSIX_PLATFORM_FALSE=
19670 fi
19671
19672
19673 case "$host" in
19674   *-darwin*) DARWIN_CRT=true ;;
19675   *) DARWIN_CRT=false ;;
19676 esac
19677  if $DARWIN_CRT; then
19678   USING_DARWIN_CRT_TRUE=
19679   USING_DARWIN_CRT_FALSE='#'
19680 else
19681   USING_DARWIN_CRT_TRUE='#'
19682   USING_DARWIN_CRT_FALSE=
19683 fi
19684
19685
19686 # This may not be defined in a non-ANS conformant embedded system.
19687 # FIXME: Should these case a runtime exception in that case?
19688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19689 /* end confdefs.h.  */
19690 #include <time.h>
19691
19692 _ACEOF
19693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19694   $EGREP "localtime" >/dev/null 2>&1; then :
19695
19696 $as_echo "#define HAVE_LOCALTIME 1" >>confdefs.h
19697
19698 fi
19699 rm -f conftest*
19700
19701
19702 # Create the subdirectory for natFile.cc, or the attempt
19703 # to create the link will fail.
19704 test -d java || mkdir java
19705 test -d java/io || mkdir java/io
19706 test -d gnu || mkdir gnu
19707 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
19708
19709
19710 # Likewise for natConcreteProcess.cc.
19711 test -d java/lang || mkdir java/lang
19712 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
19713
19714
19715 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
19716 test -d java/net || mkdir java/net
19717 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
19718
19719 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
19720
19721
19722 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
19723 test -d gnu/java || mkdir gnu/java
19724 test -d gnu/java/net || mkdir gnu/java/net
19725 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
19726
19727 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
19728
19729
19730 # Likewise for natVMPipe.cc and natVMSelector.cc.
19731 test -d gnu/java/nio || mkdir gnu/java/nio
19732 ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
19733
19734 ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
19735
19736
19737 # Likewise for natFileChannelImpl.cc
19738 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
19739 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
19740
19741
19742 # Likewise for natVMSecureRandom.cc
19743 test -d gnu/java/security || mkdir gnu/java/security
19744 test -d gnu/java/security/jce || mkdir gnu/java/security/jce
19745 test -d gnu/java/security/jce/prng || mkdir gnu/java/security/jce/prng
19746 ac_config_links="$ac_config_links gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc"
19747
19748
19749 case "${host}" in
19750     *mingw*)
19751       SYSTEMSPEC="-lgdi32 -lws2_32"
19752       if test "${with_win32_nlsapi}" = "unicows"; then
19753         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
19754       fi
19755     ;;
19756     *-*-darwin[912]*)
19757       SYSTEMSPEC="-allow_stack_execute"
19758     ;;
19759     *)
19760       SYSTEMSPEC=
19761     ;;
19762 esac
19763
19764
19765
19766 # Check whether --with-system-zlib was given.
19767 if test "${with_system_zlib+set}" = set; then :
19768   withval=$with_system_zlib;
19769 fi
19770
19771 ZLIBSPEC=
19772
19773 ZLIBTESTSPEC=
19774
19775
19776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19777 $as_echo_n "checking for X... " >&6; }
19778
19779
19780 # Check whether --with-x was given.
19781 if test "${with_x+set}" = set; then :
19782   withval=$with_x;
19783 fi
19784
19785 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19786 if test "x$with_x" = xno; then
19787   # The user explicitly disabled X.
19788   have_x=disabled
19789 else
19790   case $x_includes,$x_libraries in #(
19791     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
19792     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
19793   $as_echo_n "(cached) " >&6
19794 else
19795   # One or both of the vars are not set, and there is no cached value.
19796 ac_x_includes=no ac_x_libraries=no
19797 rm -f -r conftest.dir
19798 if mkdir conftest.dir; then
19799   cd conftest.dir
19800   cat >Imakefile <<'_ACEOF'
19801 incroot:
19802         @echo incroot='${INCROOT}'
19803 usrlibdir:
19804         @echo usrlibdir='${USRLIBDIR}'
19805 libdir:
19806         @echo libdir='${LIBDIR}'
19807 _ACEOF
19808   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19809     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19810     for ac_var in incroot usrlibdir libdir; do
19811       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19812     done
19813     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19814     for ac_extension in a so sl dylib la dll; do
19815       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19816          test -f "$ac_im_libdir/libX11.$ac_extension"; then
19817         ac_im_usrlibdir=$ac_im_libdir; break
19818       fi
19819     done
19820     # Screen out bogus values from the imake configuration.  They are
19821     # bogus both because they are the default anyway, and because
19822     # using them would break gcc on systems where it needs fixed includes.
19823     case $ac_im_incroot in
19824         /usr/include) ac_x_includes= ;;
19825         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19826     esac
19827     case $ac_im_usrlibdir in
19828         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19829         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19830     esac
19831   fi
19832   cd ..
19833   rm -f -r conftest.dir
19834 fi
19835
19836 # Standard set of common directories for X headers.
19837 # Check X11 before X11Rn because it is often a symlink to the current release.
19838 ac_x_header_dirs='
19839 /usr/X11/include
19840 /usr/X11R7/include
19841 /usr/X11R6/include
19842 /usr/X11R5/include
19843 /usr/X11R4/include
19844
19845 /usr/include/X11
19846 /usr/include/X11R7
19847 /usr/include/X11R6
19848 /usr/include/X11R5
19849 /usr/include/X11R4
19850
19851 /usr/local/X11/include
19852 /usr/local/X11R7/include
19853 /usr/local/X11R6/include
19854 /usr/local/X11R5/include
19855 /usr/local/X11R4/include
19856
19857 /usr/local/include/X11
19858 /usr/local/include/X11R7
19859 /usr/local/include/X11R6
19860 /usr/local/include/X11R5
19861 /usr/local/include/X11R4
19862
19863 /usr/X386/include
19864 /usr/x386/include
19865 /usr/XFree86/include/X11
19866
19867 /usr/include
19868 /usr/local/include
19869 /usr/unsupported/include
19870 /usr/athena/include
19871 /usr/local/x11r5/include
19872 /usr/lpp/Xamples/include
19873
19874 /usr/openwin/include
19875 /usr/openwin/share/include'
19876
19877 if test "$ac_x_includes" = no; then
19878   # Guess where to find include files, by looking for Xlib.h.
19879   # First, try using that file with no special directory specified.
19880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19881 /* end confdefs.h.  */
19882 #include <X11/Xlib.h>
19883 _ACEOF
19884 if ac_fn_c_try_cpp "$LINENO"; then :
19885   # We can compile using X headers with no special include directory.
19886 ac_x_includes=
19887 else
19888   for ac_dir in $ac_x_header_dirs; do
19889   if test -r "$ac_dir/X11/Xlib.h"; then
19890     ac_x_includes=$ac_dir
19891     break
19892   fi
19893 done
19894 fi
19895 rm -f conftest.err conftest.$ac_ext
19896 fi # $ac_x_includes = no
19897
19898 if test "$ac_x_libraries" = no; then
19899   # Check for the libraries.
19900   # See if we find them without any special options.
19901   # Don't add to $LIBS permanently.
19902   ac_save_LIBS=$LIBS
19903   LIBS="-lX11 $LIBS"
19904   if test x$gcc_no_link = xyes; then
19905   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19906 fi
19907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19908 /* end confdefs.h.  */
19909 #include <X11/Xlib.h>
19910 int
19911 main ()
19912 {
19913 XrmInitialize ()
19914   ;
19915   return 0;
19916 }
19917 _ACEOF
19918 if ac_fn_c_try_link "$LINENO"; then :
19919   LIBS=$ac_save_LIBS
19920 # We can link X programs with no special library path.
19921 ac_x_libraries=
19922 else
19923   LIBS=$ac_save_LIBS
19924 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19925 do
19926   # Don't even attempt the hair of trying to link an X program!
19927   for ac_extension in a so sl dylib la dll; do
19928     if test -r "$ac_dir/libX11.$ac_extension"; then
19929       ac_x_libraries=$ac_dir
19930       break 2
19931     fi
19932   done
19933 done
19934 fi
19935 rm -f core conftest.err conftest.$ac_objext \
19936     conftest$ac_exeext conftest.$ac_ext
19937 fi # $ac_x_libraries = no
19938
19939 case $ac_x_includes,$ac_x_libraries in #(
19940   no,* | *,no | *\'*)
19941     # Didn't find X, or a directory has "'" in its name.
19942     ac_cv_have_x="have_x=no";; #(
19943   *)
19944     # Record where we found X for the cache.
19945     ac_cv_have_x="have_x=yes\
19946         ac_x_includes='$ac_x_includes'\
19947         ac_x_libraries='$ac_x_libraries'"
19948 esac
19949 fi
19950 ;; #(
19951     *) have_x=yes;;
19952   esac
19953   eval "$ac_cv_have_x"
19954 fi # $with_x != no
19955
19956 if test "$have_x" != yes; then
19957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19958 $as_echo "$have_x" >&6; }
19959   no_x=yes
19960 else
19961   # If each of the values was on the command line, it overrides each guess.
19962   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19963   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19964   # Update the cache value to reflect the command line values.
19965   ac_cv_have_x="have_x=yes\
19966         ac_x_includes='$x_includes'\
19967         ac_x_libraries='$x_libraries'"
19968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19969 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19970 fi
19971
19972 if test "$no_x" = yes; then
19973   # Not all programs may use this symbol, but it does not hurt to define it.
19974
19975 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
19976
19977   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19978 else
19979   if test -n "$x_includes"; then
19980     X_CFLAGS="$X_CFLAGS -I$x_includes"
19981   fi
19982
19983   # It would also be nice to do this for all -L options, not just this one.
19984   if test -n "$x_libraries"; then
19985     X_LIBS="$X_LIBS -L$x_libraries"
19986     # For Solaris; some versions of Sun CC require a space after -R and
19987     # others require no space.  Words are not sufficient . . . .
19988     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
19989 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
19990     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19991     ac_xsave_c_werror_flag=$ac_c_werror_flag
19992     ac_c_werror_flag=yes
19993     if test x$gcc_no_link = xyes; then
19994   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19995 fi
19996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19997 /* end confdefs.h.  */
19998
19999 int
20000 main ()
20001 {
20002
20003   ;
20004   return 0;
20005 }
20006 _ACEOF
20007 if ac_fn_c_try_link "$LINENO"; then :
20008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20009 $as_echo "no" >&6; }
20010        X_LIBS="$X_LIBS -R$x_libraries"
20011 else
20012   LIBS="$ac_xsave_LIBS -R $x_libraries"
20013        if test x$gcc_no_link = xyes; then
20014   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20015 fi
20016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20017 /* end confdefs.h.  */
20018
20019 int
20020 main ()
20021 {
20022
20023   ;
20024   return 0;
20025 }
20026 _ACEOF
20027 if ac_fn_c_try_link "$LINENO"; then :
20028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20029 $as_echo "yes" >&6; }
20030           X_LIBS="$X_LIBS -R $x_libraries"
20031 else
20032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
20033 $as_echo "neither works" >&6; }
20034 fi
20035 rm -f core conftest.err conftest.$ac_objext \
20036     conftest$ac_exeext conftest.$ac_ext
20037 fi
20038 rm -f core conftest.err conftest.$ac_objext \
20039     conftest$ac_exeext conftest.$ac_ext
20040     ac_c_werror_flag=$ac_xsave_c_werror_flag
20041     LIBS=$ac_xsave_LIBS
20042   fi
20043
20044   # Check for system-dependent libraries X programs must link with.
20045   # Do this before checking for the system-independent R6 libraries
20046   # (-lICE), since we may need -lsocket or whatever for X linking.
20047
20048   if test "$ISC" = yes; then
20049     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20050   else
20051     # Martyn Johnson says this is needed for Ultrix, if the X
20052     # libraries were built with DECnet support.  And Karl Berry says
20053     # the Alpha needs dnet_stub (dnet does not exist).
20054     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20055     if test x$gcc_no_link = xyes; then
20056   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20057 fi
20058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20059 /* end confdefs.h.  */
20060
20061 /* Override any GCC internal prototype to avoid an error.
20062    Use char because int might match the return type of a GCC
20063    builtin and then its argument prototype would still apply.  */
20064 #ifdef __cplusplus
20065 extern "C"
20066 #endif
20067 char XOpenDisplay ();
20068 int
20069 main ()
20070 {
20071 return XOpenDisplay ();
20072   ;
20073   return 0;
20074 }
20075 _ACEOF
20076 if ac_fn_c_try_link "$LINENO"; then :
20077
20078 else
20079   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
20080 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
20081 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
20082   $as_echo_n "(cached) " >&6
20083 else
20084   ac_check_lib_save_LIBS=$LIBS
20085 LIBS="-ldnet  $LIBS"
20086 if test x$gcc_no_link = xyes; then
20087   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20088 fi
20089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20090 /* end confdefs.h.  */
20091
20092 /* Override any GCC internal prototype to avoid an error.
20093    Use char because int might match the return type of a GCC
20094    builtin and then its argument prototype would still apply.  */
20095 #ifdef __cplusplus
20096 extern "C"
20097 #endif
20098 char dnet_ntoa ();
20099 int
20100 main ()
20101 {
20102 return dnet_ntoa ();
20103   ;
20104   return 0;
20105 }
20106 _ACEOF
20107 if ac_fn_c_try_link "$LINENO"; then :
20108   ac_cv_lib_dnet_dnet_ntoa=yes
20109 else
20110   ac_cv_lib_dnet_dnet_ntoa=no
20111 fi
20112 rm -f core conftest.err conftest.$ac_objext \
20113     conftest$ac_exeext conftest.$ac_ext
20114 LIBS=$ac_check_lib_save_LIBS
20115 fi
20116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20117 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20118 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
20119   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20120 fi
20121
20122     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20123       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
20124 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
20125 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
20126   $as_echo_n "(cached) " >&6
20127 else
20128   ac_check_lib_save_LIBS=$LIBS
20129 LIBS="-ldnet_stub  $LIBS"
20130 if test x$gcc_no_link = xyes; then
20131   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20132 fi
20133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20134 /* end confdefs.h.  */
20135
20136 /* Override any GCC internal prototype to avoid an error.
20137    Use char because int might match the return type of a GCC
20138    builtin and then its argument prototype would still apply.  */
20139 #ifdef __cplusplus
20140 extern "C"
20141 #endif
20142 char dnet_ntoa ();
20143 int
20144 main ()
20145 {
20146 return dnet_ntoa ();
20147   ;
20148   return 0;
20149 }
20150 _ACEOF
20151 if ac_fn_c_try_link "$LINENO"; then :
20152   ac_cv_lib_dnet_stub_dnet_ntoa=yes
20153 else
20154   ac_cv_lib_dnet_stub_dnet_ntoa=no
20155 fi
20156 rm -f core conftest.err conftest.$ac_objext \
20157     conftest$ac_exeext conftest.$ac_ext
20158 LIBS=$ac_check_lib_save_LIBS
20159 fi
20160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20161 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20162 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
20163   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20164 fi
20165
20166     fi
20167 fi
20168 rm -f core conftest.err conftest.$ac_objext \
20169     conftest$ac_exeext conftest.$ac_ext
20170     LIBS="$ac_xsave_LIBS"
20171
20172     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20173     # to get the SysV transport functions.
20174     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20175     # needs -lnsl.
20176     # The nsl library prevents programs from opening the X display
20177     # on Irix 5.2, according to T.E. Dickey.
20178     # The functions gethostbyname, getservbyname, and inet_addr are
20179     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20180     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20181 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
20182
20183 fi
20184
20185     if test $ac_cv_func_gethostbyname = no; then
20186       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20187 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20188 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
20189   $as_echo_n "(cached) " >&6
20190 else
20191   ac_check_lib_save_LIBS=$LIBS
20192 LIBS="-lnsl  $LIBS"
20193 if test x$gcc_no_link = xyes; then
20194   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20195 fi
20196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20197 /* end confdefs.h.  */
20198
20199 /* Override any GCC internal prototype to avoid an error.
20200    Use char because int might match the return type of a GCC
20201    builtin and then its argument prototype would still apply.  */
20202 #ifdef __cplusplus
20203 extern "C"
20204 #endif
20205 char gethostbyname ();
20206 int
20207 main ()
20208 {
20209 return gethostbyname ();
20210   ;
20211   return 0;
20212 }
20213 _ACEOF
20214 if ac_fn_c_try_link "$LINENO"; then :
20215   ac_cv_lib_nsl_gethostbyname=yes
20216 else
20217   ac_cv_lib_nsl_gethostbyname=no
20218 fi
20219 rm -f core conftest.err conftest.$ac_objext \
20220     conftest$ac_exeext conftest.$ac_ext
20221 LIBS=$ac_check_lib_save_LIBS
20222 fi
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20224 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20225 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
20226   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20227 fi
20228
20229       if test $ac_cv_lib_nsl_gethostbyname = no; then
20230         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20231 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20232 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
20233   $as_echo_n "(cached) " >&6
20234 else
20235   ac_check_lib_save_LIBS=$LIBS
20236 LIBS="-lbsd  $LIBS"
20237 if test x$gcc_no_link = xyes; then
20238   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20239 fi
20240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20241 /* end confdefs.h.  */
20242
20243 /* Override any GCC internal prototype to avoid an error.
20244    Use char because int might match the return type of a GCC
20245    builtin and then its argument prototype would still apply.  */
20246 #ifdef __cplusplus
20247 extern "C"
20248 #endif
20249 char gethostbyname ();
20250 int
20251 main ()
20252 {
20253 return gethostbyname ();
20254   ;
20255   return 0;
20256 }
20257 _ACEOF
20258 if ac_fn_c_try_link "$LINENO"; then :
20259   ac_cv_lib_bsd_gethostbyname=yes
20260 else
20261   ac_cv_lib_bsd_gethostbyname=no
20262 fi
20263 rm -f core conftest.err conftest.$ac_objext \
20264     conftest$ac_exeext conftest.$ac_ext
20265 LIBS=$ac_check_lib_save_LIBS
20266 fi
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20268 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20269 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
20270   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20271 fi
20272
20273       fi
20274     fi
20275
20276     # lieder@skyler.mavd.honeywell.com says without -lsocket,
20277     # socket/setsockopt and other routines are undefined under SCO ODT
20278     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
20279     # on later versions), says Simon Leinen: it contains gethostby*
20280     # variants that don't use the name server (or something).  -lsocket
20281     # must be given before -lnsl if both are needed.  We assume that
20282     # if connect needs -lnsl, so does gethostbyname.
20283     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20284 if test "x$ac_cv_func_connect" = x""yes; then :
20285
20286 fi
20287
20288     if test $ac_cv_func_connect = no; then
20289       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20290 $as_echo_n "checking for connect in -lsocket... " >&6; }
20291 if test "${ac_cv_lib_socket_connect+set}" = set; then :
20292   $as_echo_n "(cached) " >&6
20293 else
20294   ac_check_lib_save_LIBS=$LIBS
20295 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20296 if test x$gcc_no_link = xyes; then
20297   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20298 fi
20299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20300 /* end confdefs.h.  */
20301
20302 /* Override any GCC internal prototype to avoid an error.
20303    Use char because int might match the return type of a GCC
20304    builtin and then its argument prototype would still apply.  */
20305 #ifdef __cplusplus
20306 extern "C"
20307 #endif
20308 char connect ();
20309 int
20310 main ()
20311 {
20312 return connect ();
20313   ;
20314   return 0;
20315 }
20316 _ACEOF
20317 if ac_fn_c_try_link "$LINENO"; then :
20318   ac_cv_lib_socket_connect=yes
20319 else
20320   ac_cv_lib_socket_connect=no
20321 fi
20322 rm -f core conftest.err conftest.$ac_objext \
20323     conftest$ac_exeext conftest.$ac_ext
20324 LIBS=$ac_check_lib_save_LIBS
20325 fi
20326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20327 $as_echo "$ac_cv_lib_socket_connect" >&6; }
20328 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
20329   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20330 fi
20331
20332     fi
20333
20334     # Guillermo Gomez says -lposix is necessary on A/UX.
20335     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20336 if test "x$ac_cv_func_remove" = x""yes; then :
20337
20338 fi
20339
20340     if test $ac_cv_func_remove = no; then
20341       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20342 $as_echo_n "checking for remove in -lposix... " >&6; }
20343 if test "${ac_cv_lib_posix_remove+set}" = set; then :
20344   $as_echo_n "(cached) " >&6
20345 else
20346   ac_check_lib_save_LIBS=$LIBS
20347 LIBS="-lposix  $LIBS"
20348 if test x$gcc_no_link = xyes; then
20349   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20350 fi
20351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20352 /* end confdefs.h.  */
20353
20354 /* Override any GCC internal prototype to avoid an error.
20355    Use char because int might match the return type of a GCC
20356    builtin and then its argument prototype would still apply.  */
20357 #ifdef __cplusplus
20358 extern "C"
20359 #endif
20360 char remove ();
20361 int
20362 main ()
20363 {
20364 return remove ();
20365   ;
20366   return 0;
20367 }
20368 _ACEOF
20369 if ac_fn_c_try_link "$LINENO"; then :
20370   ac_cv_lib_posix_remove=yes
20371 else
20372   ac_cv_lib_posix_remove=no
20373 fi
20374 rm -f core conftest.err conftest.$ac_objext \
20375     conftest$ac_exeext conftest.$ac_ext
20376 LIBS=$ac_check_lib_save_LIBS
20377 fi
20378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20379 $as_echo "$ac_cv_lib_posix_remove" >&6; }
20380 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
20381   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20382 fi
20383
20384     fi
20385
20386     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20387     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20388 if test "x$ac_cv_func_shmat" = x""yes; then :
20389
20390 fi
20391
20392     if test $ac_cv_func_shmat = no; then
20393       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20394 $as_echo_n "checking for shmat in -lipc... " >&6; }
20395 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
20396   $as_echo_n "(cached) " >&6
20397 else
20398   ac_check_lib_save_LIBS=$LIBS
20399 LIBS="-lipc  $LIBS"
20400 if test x$gcc_no_link = xyes; then
20401   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20402 fi
20403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20404 /* end confdefs.h.  */
20405
20406 /* Override any GCC internal prototype to avoid an error.
20407    Use char because int might match the return type of a GCC
20408    builtin and then its argument prototype would still apply.  */
20409 #ifdef __cplusplus
20410 extern "C"
20411 #endif
20412 char shmat ();
20413 int
20414 main ()
20415 {
20416 return shmat ();
20417   ;
20418   return 0;
20419 }
20420 _ACEOF
20421 if ac_fn_c_try_link "$LINENO"; then :
20422   ac_cv_lib_ipc_shmat=yes
20423 else
20424   ac_cv_lib_ipc_shmat=no
20425 fi
20426 rm -f core conftest.err conftest.$ac_objext \
20427     conftest$ac_exeext conftest.$ac_ext
20428 LIBS=$ac_check_lib_save_LIBS
20429 fi
20430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20431 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20432 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
20433   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20434 fi
20435
20436     fi
20437   fi
20438
20439   # Check for libraries that X11R6 Xt/Xaw programs need.
20440   ac_save_LDFLAGS=$LDFLAGS
20441   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20442   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20443   # check for ICE first), but we must link in the order -lSM -lICE or
20444   # we get undefined symbols.  So assume we have SM if we have ICE.
20445   # These have to be linked with before -lX11, unlike the other
20446   # libraries we check for below, so use a different variable.
20447   # John Interrante, Karl Berry
20448   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20449 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20450 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
20451   $as_echo_n "(cached) " >&6
20452 else
20453   ac_check_lib_save_LIBS=$LIBS
20454 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20455 if test x$gcc_no_link = xyes; then
20456   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20457 fi
20458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20459 /* end confdefs.h.  */
20460
20461 /* Override any GCC internal prototype to avoid an error.
20462    Use char because int might match the return type of a GCC
20463    builtin and then its argument prototype would still apply.  */
20464 #ifdef __cplusplus
20465 extern "C"
20466 #endif
20467 char IceConnectionNumber ();
20468 int
20469 main ()
20470 {
20471 return IceConnectionNumber ();
20472   ;
20473   return 0;
20474 }
20475 _ACEOF
20476 if ac_fn_c_try_link "$LINENO"; then :
20477   ac_cv_lib_ICE_IceConnectionNumber=yes
20478 else
20479   ac_cv_lib_ICE_IceConnectionNumber=no
20480 fi
20481 rm -f core conftest.err conftest.$ac_objext \
20482     conftest$ac_exeext conftest.$ac_ext
20483 LIBS=$ac_check_lib_save_LIBS
20484 fi
20485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20486 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20487 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
20488   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20489 fi
20490
20491   LDFLAGS=$ac_save_LDFLAGS
20492
20493 fi
20494
20495
20496 # FIXME: this should be _libs on some hosts.
20497 libsubdir=.libs
20498
20499 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20500
20501 LIBSTDCXXSPEC=
20502 # extra LD Flags which are required for targets
20503 case "${host}" in
20504 *-*-darwin[0-7].*)
20505     # For now we have to disable it on darwin[8-9] because it slows down
20506     # the linking phase. A possible bug in ld?
20507     # on Darwin -single_module speeds up loading of the dynamic libraries.
20508     extra_ldflags_libjava=-Wl,-single_module
20509     ;;
20510 arm*linux*eabi)
20511     # Some of the ARM unwinder code is actually in libstdc++.  We
20512     # could in principle replicate it in libgcj, but it's better to
20513     # have a dependency on libstdc++.
20514     extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20515     LIBSTDCXXSPEC=-lstdc++
20516     LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20517     ;;
20518 *-*-cygwin)
20519     extra_ldflags_libjava=-liconv
20520     ;;
20521 esac
20522
20523
20524
20525
20526
20527
20528 # Allow the GC to be disabled.  Can be useful when debugging.
20529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for garbage collector to use" >&5
20530 $as_echo_n "checking for garbage collector to use... " >&6; }
20531 # Check whether --enable-java-gc was given.
20532 if test "${enable_java_gc+set}" = set; then :
20533   enableval=$enable_java_gc; GC=$enableval
20534 else
20535   GC=boehm
20536 fi
20537
20538 GCLIBS=
20539 GCINCS=
20540 GCDEPS=
20541 GCSPEC=
20542 JC1GCSPEC=
20543 GCTESTSPEC=
20544 case "$GC" in
20545  boehm)
20546     { $as_echo "$as_me:${as_lineno-$LINENO}: result: boehm" >&5
20547 $as_echo "boehm" >&6; }
20548     GCLIBS=../boehm-gc/libgcjgc_convenience.la
20549     JC1GCSPEC='-fuse-boehm-gc'
20550     GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20551     GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20552     GCOBJS=boehm.lo
20553     GCHDR=boehm-gc.h
20554     # The POSIX thread support needs to know this.
20555
20556 $as_echo "#define HAVE_BOEHM_GC 1" >>confdefs.h
20557
20558     ;;
20559  no)
20560     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
20561 $as_echo "none" >&6; }
20562     GCHDR=no-gc.h
20563     ;;
20564  *)
20565     as_fn_error "unrecognized collector \"$GC\"" "$LINENO" 5
20566     ;;
20567 esac
20568
20569
20570
20571
20572
20573
20574 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20575
20576  if test "$GC" = boehm; then
20577   USING_BOEHMGC_TRUE=
20578   USING_BOEHMGC_FALSE='#'
20579 else
20580   USING_BOEHMGC_TRUE='#'
20581   USING_BOEHMGC_FALSE=
20582 fi
20583
20584  if test "$GC" = no; then
20585   USING_NOGC_TRUE=
20586   USING_NOGC_FALSE='#'
20587 else
20588   USING_NOGC_TRUE='#'
20589   USING_NOGC_FALSE=
20590 fi
20591
20592
20593
20594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
20595 $as_echo_n "checking for thread model used by GCC... " >&6; }
20596 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
20598 $as_echo "$THREADS" >&6; }
20599
20600 case "$THREADS" in
20601  no | none | single)
20602     THREADS=none
20603     ;;
20604  aix | posix | posix95 | pthreads)
20605     THREADS=posix
20606     case "$host" in
20607      *-*-linux*)
20608
20609 $as_echo "#define LINUX_THREADS 1" >>confdefs.h
20610
20611         ;;
20612     esac
20613     ;;
20614  win32)
20615     ;;
20616  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
20617     as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
20618     ;;
20619  *)
20620     as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
20621     ;;
20622 esac
20623
20624 THREADCXXFLAGS=
20625 THREADLDFLAGS=
20626 THREADLIBS=
20627 THREADINCS=
20628 THREADDEPS=
20629 THREADH=
20630 THREADSPEC=
20631 THREADSTARTFILESPEC=
20632 case "$THREADS" in
20633  posix)
20634     case "$host" in
20635      *-*-cygwin*)
20636         # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
20637         ;;
20638      *-*-freebsd[1234]*)
20639         # Before FreeBSD 5, it didn't have -lpthread (or any library which
20640         # merely adds pthread_* functions) but it does have a -pthread switch
20641         # which is required at link-time to select -lc_r *instead* of -lc.
20642         THREADLDFLAGS=-pthread
20643         # Don't set THREADSPEC here as might be expected since -pthread is
20644         # not processed when found within a spec file, it must come from
20645         # the command line.  For now, the user must provide the -pthread
20646         # switch to link code compiled with gcj.  In future, consider adding
20647         # support for weak references to pthread_* functions ala gthr.h API.
20648         THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20649         ;;
20650      *-*-freebsd*)
20651         # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20652         # systems which support threads and -lpthread.
20653         THREADLDFLAGS=-pthread
20654         THREADSPEC=-lpthread
20655         ;;
20656      alpha*-dec-osf* | hppa*-hp-hpux*)
20657         THREADCXXFLAGS=-pthread
20658         # boehm-gc needs some functions from librt, so link that too.
20659         THREADLIBS='-lpthread -lrt'
20660         THREADSPEC='-lpthread -lrt'
20661         ;;
20662      *)
20663         THREADLIBS=-lpthread
20664         THREADSPEC=-lpthread
20665         ;;
20666     esac
20667     THREADH=posix-threads.h
20668     # MIT pthreads doesn't seem to have the mutexattr functions.
20669     # But for now we don't check for it.  We just assume you aren't
20670     # using MIT pthreads.
20671
20672 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20673
20674
20675     # If we're using the Boehm GC, then we happen to know that it
20676     # defines _REENTRANT, so we don't bother.  Eww.
20677     if test "$GC" != boehm; then
20678
20679 $as_echo "#define _REENTRANT 1" >>confdefs.h
20680
20681     fi
20682
20683 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
20684
20685     ;;
20686
20687  win32)
20688     THREADH=win32-threads.h
20689     THREADCXXFLAGS=-mthreads
20690     # We need thread-safe exception handling so _CRT_MT should be set to 1.
20691     # But we do not want the executables created to be dependent on
20692     # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20693     # exception handling contexts.  The following kludge achieves this effect
20694     # and causes a dummy __mingwthr_key_dtor() to be linked in from
20695     # libmingw32.a.  This causes a memory leak of about 24 bytes per thread.
20696     # A workaround is to explicitly use -mthreads while linking Java programs.
20697     # See PR libgcj/28263.
20698     #
20699     # FIXME: In Java we are able to detect thread death at the end of
20700     # Thread.run() so we should be able to clean up the exception handling
20701     # contexts ourselves.
20702     THREADSTARTFILESPEC='crtmt%O%s'
20703     ;;
20704
20705  none)
20706     THREADH=no-threads.h
20707     ;;
20708 esac
20709 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20710
20711
20712
20713
20714
20715
20716
20717
20718  if test "$THREADS" = posix; then
20719   USING_POSIX_THREADS_TRUE=
20720   USING_POSIX_THREADS_FALSE='#'
20721 else
20722   USING_POSIX_THREADS_TRUE='#'
20723   USING_POSIX_THREADS_FALSE=
20724 fi
20725
20726  if test "$THREADS" = win32; then
20727   USING_WIN32_THREADS_TRUE=
20728   USING_WIN32_THREADS_FALSE='#'
20729 else
20730   USING_WIN32_THREADS_TRUE='#'
20731   USING_WIN32_THREADS_FALSE=
20732 fi
20733
20734  if test "$THREADS" = none; then
20735   USING_NO_THREADS_TRUE=
20736   USING_NO_THREADS_FALSE='#'
20737 else
20738   USING_NO_THREADS_TRUE='#'
20739   USING_NO_THREADS_FALSE=
20740 fi
20741
20742 if test "$enable_shared" != yes; then
20743   use_libgcj_bc=no
20744 fi
20745  if test "$use_libgcj_bc" = yes; then
20746   USE_LIBGCJ_BC_TRUE=
20747   USE_LIBGCJ_BC_FALSE='#'
20748 else
20749   USE_LIBGCJ_BC_TRUE='#'
20750   USE_LIBGCJ_BC_FALSE=
20751 fi
20752
20753
20754 if test -d sysdep; then true; else mkdir sysdep; fi
20755 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20756
20757 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20758
20759 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20760
20761
20762 LIBGCJ_SPEC_LGCJ=-lgcj
20763 LIBGCJ_SPEC_LGCJ_BC=-lgcj_bc
20764 if test x"$libgcj_spec_lgcj_override" != x ; then
20765   LIBGCJ_SPEC_LGCJ=$libgcj_spec_lgcj_override
20766 fi
20767 if test x"$libgcj_spec_lgcj_bc_override" != x ; then
20768   LIBGCJ_SPEC_LGCJ_BC=$libgcj_spec_lgcj_bc_override
20769 fi
20770 LIBGCJ_SPEC="%{s-bc-abi:} $LIBGCJ_SPEC_LGCJ"
20771 if test "$use_libgcj_bc" = yes; then
20772   LIBGCJ_SPEC="%{static|static-libgcj|!s-bc-abi:$LIBGCJ_SPEC_LGCJ;:$LIBGCJ_SPEC_LGCJ_BC}"
20773   LIBGCJ_BC_SPEC="%{findirect-dispatch:-fPIC}"
20774 fi
20775
20776
20777
20778 HASH_SYNC_SPEC=
20779 # Hash synchronization is only useful with posix threads right now.
20780 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20781    HASH_SYNC_SPEC=-fhash-synchronization
20782
20783 $as_echo "#define JV_HASH_SYNCHRONIZATION 1" >>confdefs.h
20784
20785 fi
20786
20787
20788  if test "$GCC" = yes; then
20789   USING_GCC_TRUE=
20790   USING_GCC_FALSE='#'
20791 else
20792   USING_GCC_TRUE='#'
20793   USING_GCC_FALSE=
20794 fi
20795
20796
20797 # We're in the tree with gcc, and need to include some of its headers.
20798 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20799
20800 if test "x${with_newlib}" = "xyes"; then
20801    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
20802    # may not work correctly, because the compiler may not be able to
20803    # link executables.
20804
20805    # We assume newlib.  This lets us hard-code the functions we know
20806    # we'll have.
20807
20808 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20809
20810
20811 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
20812
20813
20814 $as_echo "#define HAVE_TIME 1" >>confdefs.h
20815
20816
20817 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20818
20819
20820 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
20821
20822
20823 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
20824
20825    # This is only for POSIX threads.
20826
20827 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20828
20829
20830    # Assume we do not have getuid and friends.
20831
20832 $as_echo "#define NO_GETUID 1" >>confdefs.h
20833
20834    PLATFORMNET=NoNet
20835 else
20836    for ac_func in strerror_r select fstat open fsync sleep opendir \
20837                    localtime_r getpwuid_r getcwd \
20838                    access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20839                    nl_langinfo setlocale \
20840                    inet_pton uname inet_ntoa \
20841                    getrlimit sigaction ftruncate mmap \
20842                    getifaddrs
20843 do :
20844   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20845 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20846 eval as_val=\$$as_ac_var
20847    if test "x$as_val" = x""yes; then :
20848   cat >>confdefs.h <<_ACEOF
20849 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20850 _ACEOF
20851
20852 fi
20853 done
20854
20855    for ac_func in inet_aton inet_addr
20856 do :
20857   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20858 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20859 eval as_val=\$$as_ac_var
20860    if test "x$as_val" = x""yes; then :
20861   cat >>confdefs.h <<_ACEOF
20862 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20863 _ACEOF
20864  break
20865 fi
20866 done
20867
20868    for ac_header in unistd.h dlfcn.h sys/resource.h
20869 do :
20870   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20871 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20872 eval as_val=\$$as_ac_Header
20873    if test "x$as_val" = x""yes; then :
20874   cat >>confdefs.h <<_ACEOF
20875 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20876 _ACEOF
20877
20878 fi
20879
20880 done
20881
20882    # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
20883    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
20884 $as_echo_n "checking for dladdr in -ldl... " >&6; }
20885 if test "${ac_cv_lib_dl_dladdr+set}" = set; then :
20886   $as_echo_n "(cached) " >&6
20887 else
20888   ac_check_lib_save_LIBS=$LIBS
20889 LIBS="-ldl  $LIBS"
20890 if test x$gcc_no_link = xyes; then
20891   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20892 fi
20893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20894 /* end confdefs.h.  */
20895
20896 /* Override any GCC internal prototype to avoid an error.
20897    Use char because int might match the return type of a GCC
20898    builtin and then its argument prototype would still apply.  */
20899 #ifdef __cplusplus
20900 extern "C"
20901 #endif
20902 char dladdr ();
20903 int
20904 main ()
20905 {
20906 return dladdr ();
20907   ;
20908   return 0;
20909 }
20910 _ACEOF
20911 if ac_fn_c_try_link "$LINENO"; then :
20912   ac_cv_lib_dl_dladdr=yes
20913 else
20914   ac_cv_lib_dl_dladdr=no
20915 fi
20916 rm -f core conftest.err conftest.$ac_objext \
20917     conftest$ac_exeext conftest.$ac_ext
20918 LIBS=$ac_check_lib_save_LIBS
20919 fi
20920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
20921 $as_echo "$ac_cv_lib_dl_dladdr" >&6; }
20922 if test "x$ac_cv_lib_dl_dladdr" = x""yes; then :
20923
20924
20925 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
20926
20927 else
20928
20929        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldld" >&5
20930 $as_echo_n "checking for dladdr in -ldld... " >&6; }
20931 if test "${ac_cv_lib_dld_dladdr+set}" = set; then :
20932   $as_echo_n "(cached) " >&6
20933 else
20934   ac_check_lib_save_LIBS=$LIBS
20935 LIBS="-ldld  $LIBS"
20936 if test x$gcc_no_link = xyes; then
20937   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20938 fi
20939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20940 /* end confdefs.h.  */
20941
20942 /* Override any GCC internal prototype to avoid an error.
20943    Use char because int might match the return type of a GCC
20944    builtin and then its argument prototype would still apply.  */
20945 #ifdef __cplusplus
20946 extern "C"
20947 #endif
20948 char dladdr ();
20949 int
20950 main ()
20951 {
20952 return dladdr ();
20953   ;
20954   return 0;
20955 }
20956 _ACEOF
20957 if ac_fn_c_try_link "$LINENO"; then :
20958   ac_cv_lib_dld_dladdr=yes
20959 else
20960   ac_cv_lib_dld_dladdr=no
20961 fi
20962 rm -f core conftest.err conftest.$ac_objext \
20963     conftest$ac_exeext conftest.$ac_ext
20964 LIBS=$ac_check_lib_save_LIBS
20965 fi
20966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dladdr" >&5
20967 $as_echo "$ac_cv_lib_dld_dladdr" >&6; }
20968 if test "x$ac_cv_lib_dld_dladdr" = x""yes; then :
20969
20970
20971 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
20972
20973 fi
20974
20975 fi
20976
20977
20978    if test x"$cross_compiling" = x"no"; then
20979      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/exe" >&5
20980 $as_echo_n "checking for /proc/self/exe... " >&6; }
20981 if test "${ac_cv_file__proc_self_exe+set}" = set; then :
20982   $as_echo_n "(cached) " >&6
20983 else
20984   test "$cross_compiling" = yes &&
20985   as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
20986 if test -r "/proc/self/exe"; then
20987   ac_cv_file__proc_self_exe=yes
20988 else
20989   ac_cv_file__proc_self_exe=no
20990 fi
20991 fi
20992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_exe" >&5
20993 $as_echo "$ac_cv_file__proc_self_exe" >&6; }
20994 if test "x$ac_cv_file__proc_self_exe" = x""yes; then :
20995
20996 cat >>confdefs.h <<_ACEOF
20997 #define HAVE__PROC_SELF_EXE 1
20998 _ACEOF
20999
21000
21001 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
21002
21003 fi
21004
21005      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/maps" >&5
21006 $as_echo_n "checking for /proc/self/maps... " >&6; }
21007 if test "${ac_cv_file__proc_self_maps+set}" = set; then :
21008   $as_echo_n "(cached) " >&6
21009 else
21010   test "$cross_compiling" = yes &&
21011   as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
21012 if test -r "/proc/self/maps"; then
21013   ac_cv_file__proc_self_maps=yes
21014 else
21015   ac_cv_file__proc_self_maps=no
21016 fi
21017 fi
21018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_maps" >&5
21019 $as_echo "$ac_cv_file__proc_self_maps" >&6; }
21020 if test "x$ac_cv_file__proc_self_maps" = x""yes; then :
21021
21022 cat >>confdefs.h <<_ACEOF
21023 #define HAVE__PROC_SELF_MAPS 1
21024 _ACEOF
21025
21026
21027 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
21028
21029 fi
21030
21031    else
21032      case $host in
21033      *-linux*)
21034
21035 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
21036
21037
21038 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
21039
21040        ;;
21041      esac
21042    fi
21043
21044
21045       if test "X$prefix" = "XNONE"; then
21046     acl_final_prefix="$ac_default_prefix"
21047   else
21048     acl_final_prefix="$prefix"
21049   fi
21050   if test "X$exec_prefix" = "XNONE"; then
21051     acl_final_exec_prefix='${prefix}'
21052   else
21053     acl_final_exec_prefix="$exec_prefix"
21054   fi
21055   acl_save_prefix="$prefix"
21056   prefix="$acl_final_prefix"
21057   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21058   prefix="$acl_save_prefix"
21059
21060
21061 # Check whether --with-gnu-ld was given.
21062 if test "${with_gnu_ld+set}" = set; then :
21063   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
21064 else
21065   with_gnu_ld=no
21066 fi
21067
21068 # Prepare PATH_SEPARATOR.
21069 # The user is always right.
21070 if test "${PATH_SEPARATOR+set}" != set; then
21071   echo "#! /bin/sh" >conf$$.sh
21072   echo  "exit 0"   >>conf$$.sh
21073   chmod +x conf$$.sh
21074   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21075     PATH_SEPARATOR=';'
21076   else
21077     PATH_SEPARATOR=:
21078   fi
21079   rm -f conf$$.sh
21080 fi
21081 ac_prog=ld
21082 if test "$GCC" = yes; then
21083   # Check if gcc -print-prog-name=ld gives a path.
21084   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
21085 $as_echo_n "checking for ld used by GCC... " >&6; }
21086   case $host in
21087   *-*-mingw*)
21088     # gcc leaves a trailing carriage return which upsets mingw
21089     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21090   *)
21091     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21092   esac
21093   case $ac_prog in
21094     # Accept absolute paths.
21095     [\\/]* | [A-Za-z]:[\\/]*)
21096       re_direlt='/[^/][^/]*/\.\./'
21097       # Canonicalize the path of ld
21098       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21099       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21100         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21101       done
21102       test -z "$LD" && LD="$ac_prog"
21103       ;;
21104   "")
21105     # If it fails, then pretend we aren't using GCC.
21106     ac_prog=ld
21107     ;;
21108   *)
21109     # If it is relative, then search for the first ld in PATH.
21110     with_gnu_ld=unknown
21111     ;;
21112   esac
21113 elif test "$with_gnu_ld" = yes; then
21114   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
21115 $as_echo_n "checking for GNU ld... " >&6; }
21116 else
21117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
21118 $as_echo_n "checking for non-GNU ld... " >&6; }
21119 fi
21120 if test "${acl_cv_path_LD+set}" = set; then :
21121   $as_echo_n "(cached) " >&6
21122 else
21123   if test -z "$LD"; then
21124   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21125   for ac_dir in $PATH; do
21126     test -z "$ac_dir" && ac_dir=.
21127     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21128       acl_cv_path_LD="$ac_dir/$ac_prog"
21129       # Check to see if the program is GNU ld.  I'd rather use --version,
21130       # but apparently some GNU ld's only accept -v.
21131       # Break only if it was the GNU/non-GNU ld that we prefer.
21132       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
21133         test "$with_gnu_ld" != no && break
21134       else
21135         test "$with_gnu_ld" != yes && break
21136       fi
21137     fi
21138   done
21139   IFS="$ac_save_ifs"
21140 else
21141   acl_cv_path_LD="$LD" # Let the user override the test with a path.
21142 fi
21143 fi
21144
21145 LD="$acl_cv_path_LD"
21146 if test -n "$LD"; then
21147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
21148 $as_echo "$LD" >&6; }
21149 else
21150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21151 $as_echo "no" >&6; }
21152 fi
21153 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
21154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
21155 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
21156 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
21157   $as_echo_n "(cached) " >&6
21158 else
21159   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21160 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21161   acl_cv_prog_gnu_ld=yes
21162 else
21163   acl_cv_prog_gnu_ld=no
21164 fi
21165 fi
21166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
21167 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
21168 with_gnu_ld=$acl_cv_prog_gnu_ld
21169
21170
21171
21172                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
21173 $as_echo_n "checking for shared library run path origin... " >&6; }
21174 if test "${acl_cv_rpath+set}" = set; then :
21175   $as_echo_n "(cached) " >&6
21176 else
21177
21178     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21179     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21180     . ./conftest.sh
21181     rm -f ./conftest.sh
21182     acl_cv_rpath=done
21183
21184 fi
21185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
21186 $as_echo "$acl_cv_rpath" >&6; }
21187   wl="$acl_cv_wl"
21188   libext="$acl_cv_libext"
21189   shlibext="$acl_cv_shlibext"
21190   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21191   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21192   hardcode_direct="$acl_cv_hardcode_direct"
21193   hardcode_minus_L="$acl_cv_hardcode_minus_L"
21194     # Check whether --enable-rpath was given.
21195 if test "${enable_rpath+set}" = set; then :
21196   enableval=$enable_rpath; :
21197 else
21198   enable_rpath=yes
21199 fi
21200
21201
21202
21203
21204
21205
21206
21207
21208     use_additional=yes
21209
21210   acl_save_prefix="$prefix"
21211   prefix="$acl_final_prefix"
21212   acl_save_exec_prefix="$exec_prefix"
21213   exec_prefix="$acl_final_exec_prefix"
21214
21215     eval additional_includedir=\"$includedir\"
21216     eval additional_libdir=\"$libdir\"
21217
21218   exec_prefix="$acl_save_exec_prefix"
21219   prefix="$acl_save_prefix"
21220
21221
21222 # Check whether --with-libiconv-prefix was given.
21223 if test "${with_libiconv_prefix+set}" = set; then :
21224   withval=$with_libiconv_prefix;
21225     if test "X$withval" = "Xno"; then
21226       use_additional=no
21227     else
21228       if test "X$withval" = "X"; then
21229
21230   acl_save_prefix="$prefix"
21231   prefix="$acl_final_prefix"
21232   acl_save_exec_prefix="$exec_prefix"
21233   exec_prefix="$acl_final_exec_prefix"
21234
21235           eval additional_includedir=\"$includedir\"
21236           eval additional_libdir=\"$libdir\"
21237
21238   exec_prefix="$acl_save_exec_prefix"
21239   prefix="$acl_save_prefix"
21240
21241       else
21242         additional_includedir="$withval/include"
21243         additional_libdir="$withval/lib"
21244       fi
21245     fi
21246
21247 fi
21248
21249       LIBICONV=
21250   LTLIBICONV=
21251   INCICONV=
21252   rpathdirs=
21253   ltrpathdirs=
21254   names_already_handled=
21255   names_next_round='iconv '
21256   while test -n "$names_next_round"; do
21257     names_this_round="$names_next_round"
21258     names_next_round=
21259     for name in $names_this_round; do
21260       already_handled=
21261       for n in $names_already_handled; do
21262         if test "$n" = "$name"; then
21263           already_handled=yes
21264           break
21265         fi
21266       done
21267       if test -z "$already_handled"; then
21268         names_already_handled="$names_already_handled $name"
21269                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21270         eval value=\"\$HAVE_LIB$uppername\"
21271         if test -n "$value"; then
21272           if test "$value" = yes; then
21273             eval value=\"\$LIB$uppername\"
21274             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21275             eval value=\"\$LTLIB$uppername\"
21276             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21277           else
21278                                     :
21279           fi
21280         else
21281                               found_dir=
21282           found_la=
21283           found_so=
21284           found_a=
21285           if test $use_additional = yes; then
21286             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21287               found_dir="$additional_libdir"
21288               found_so="$additional_libdir/lib$name.$shlibext"
21289               if test -f "$additional_libdir/lib$name.la"; then
21290                 found_la="$additional_libdir/lib$name.la"
21291               fi
21292             else
21293               if test -f "$additional_libdir/lib$name.$libext"; then
21294                 found_dir="$additional_libdir"
21295                 found_a="$additional_libdir/lib$name.$libext"
21296                 if test -f "$additional_libdir/lib$name.la"; then
21297                   found_la="$additional_libdir/lib$name.la"
21298                 fi
21299               fi
21300             fi
21301           fi
21302           if test "X$found_dir" = "X"; then
21303             for x in $LDFLAGS $LTLIBICONV; do
21304
21305   acl_save_prefix="$prefix"
21306   prefix="$acl_final_prefix"
21307   acl_save_exec_prefix="$exec_prefix"
21308   exec_prefix="$acl_final_exec_prefix"
21309   eval x=\"$x\"
21310   exec_prefix="$acl_save_exec_prefix"
21311   prefix="$acl_save_prefix"
21312
21313               case "$x" in
21314                 -L*)
21315                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21316                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21317                     found_dir="$dir"
21318                     found_so="$dir/lib$name.$shlibext"
21319                     if test -f "$dir/lib$name.la"; then
21320                       found_la="$dir/lib$name.la"
21321                     fi
21322                   else
21323                     if test -f "$dir/lib$name.$libext"; then
21324                       found_dir="$dir"
21325                       found_a="$dir/lib$name.$libext"
21326                       if test -f "$dir/lib$name.la"; then
21327                         found_la="$dir/lib$name.la"
21328                       fi
21329                     fi
21330                   fi
21331                   ;;
21332               esac
21333               if test "X$found_dir" != "X"; then
21334                 break
21335               fi
21336             done
21337           fi
21338           if test "X$found_dir" != "X"; then
21339                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21340             if test "X$found_so" != "X"; then
21341                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21342                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21343               else
21344                                                                                 haveit=
21345                 for x in $ltrpathdirs; do
21346                   if test "X$x" = "X$found_dir"; then
21347                     haveit=yes
21348                     break
21349                   fi
21350                 done
21351                 if test -z "$haveit"; then
21352                   ltrpathdirs="$ltrpathdirs $found_dir"
21353                 fi
21354                                 if test "$hardcode_direct" = yes; then
21355                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21356                 else
21357                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21358                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21359                                                             haveit=
21360                     for x in $rpathdirs; do
21361                       if test "X$x" = "X$found_dir"; then
21362                         haveit=yes
21363                         break
21364                       fi
21365                     done
21366                     if test -z "$haveit"; then
21367                       rpathdirs="$rpathdirs $found_dir"
21368                     fi
21369                   else
21370                                                                                 haveit=
21371                     for x in $LDFLAGS $LIBICONV; do
21372
21373   acl_save_prefix="$prefix"
21374   prefix="$acl_final_prefix"
21375   acl_save_exec_prefix="$exec_prefix"
21376   exec_prefix="$acl_final_exec_prefix"
21377   eval x=\"$x\"
21378   exec_prefix="$acl_save_exec_prefix"
21379   prefix="$acl_save_prefix"
21380
21381                       if test "X$x" = "X-L$found_dir"; then
21382                         haveit=yes
21383                         break
21384                       fi
21385                     done
21386                     if test -z "$haveit"; then
21387                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21388                     fi
21389                     if test "$hardcode_minus_L" != no; then
21390                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21391                     else
21392                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21393                     fi
21394                   fi
21395                 fi
21396               fi
21397             else
21398               if test "X$found_a" != "X"; then
21399                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21400               else
21401                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21402               fi
21403             fi
21404                         additional_includedir=
21405             case "$found_dir" in
21406               */lib | */lib/)
21407                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21408                 additional_includedir="$basedir/include"
21409                 ;;
21410             esac
21411             if test "X$additional_includedir" != "X"; then
21412                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21413                 haveit=
21414                 if test "X$additional_includedir" = "X/usr/local/include"; then
21415                   if test -n "$GCC"; then
21416                     case $host_os in
21417                       linux*) haveit=yes;;
21418                     esac
21419                   fi
21420                 fi
21421                 if test -z "$haveit"; then
21422                   for x in $CPPFLAGS $INCICONV; do
21423
21424   acl_save_prefix="$prefix"
21425   prefix="$acl_final_prefix"
21426   acl_save_exec_prefix="$exec_prefix"
21427   exec_prefix="$acl_final_exec_prefix"
21428   eval x=\"$x\"
21429   exec_prefix="$acl_save_exec_prefix"
21430   prefix="$acl_save_prefix"
21431
21432                     if test "X$x" = "X-I$additional_includedir"; then
21433                       haveit=yes
21434                       break
21435                     fi
21436                   done
21437                   if test -z "$haveit"; then
21438                     if test -d "$additional_includedir"; then
21439                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21440                     fi
21441                   fi
21442                 fi
21443               fi
21444             fi
21445                         if test -n "$found_la"; then
21446                                                         save_libdir="$libdir"
21447               case "$found_la" in
21448                 */* | *\\*) . "$found_la" ;;
21449                 *) . "./$found_la" ;;
21450               esac
21451               libdir="$save_libdir"
21452                             for dep in $dependency_libs; do
21453                 case "$dep" in
21454                   -L*)
21455                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21456                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
21457                       haveit=
21458                       if test "X$additional_libdir" = "X/usr/local/lib"; then
21459                         if test -n "$GCC"; then
21460                           case $host_os in
21461                             linux*) haveit=yes;;
21462                           esac
21463                         fi
21464                       fi
21465                       if test -z "$haveit"; then
21466                         haveit=
21467                         for x in $LDFLAGS $LIBICONV; do
21468
21469   acl_save_prefix="$prefix"
21470   prefix="$acl_final_prefix"
21471   acl_save_exec_prefix="$exec_prefix"
21472   exec_prefix="$acl_final_exec_prefix"
21473   eval x=\"$x\"
21474   exec_prefix="$acl_save_exec_prefix"
21475   prefix="$acl_save_prefix"
21476
21477                           if test "X$x" = "X-L$additional_libdir"; then
21478                             haveit=yes
21479                             break
21480                           fi
21481                         done
21482                         if test -z "$haveit"; then
21483                           if test -d "$additional_libdir"; then
21484                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21485                           fi
21486                         fi
21487                         haveit=
21488                         for x in $LDFLAGS $LTLIBICONV; do
21489
21490   acl_save_prefix="$prefix"
21491   prefix="$acl_final_prefix"
21492   acl_save_exec_prefix="$exec_prefix"
21493   exec_prefix="$acl_final_exec_prefix"
21494   eval x=\"$x\"
21495   exec_prefix="$acl_save_exec_prefix"
21496   prefix="$acl_save_prefix"
21497
21498                           if test "X$x" = "X-L$additional_libdir"; then
21499                             haveit=yes
21500                             break
21501                           fi
21502                         done
21503                         if test -z "$haveit"; then
21504                           if test -d "$additional_libdir"; then
21505                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21506                           fi
21507                         fi
21508                       fi
21509                     fi
21510                     ;;
21511                   -R*)
21512                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21513                     if test "$enable_rpath" != no; then
21514                                                                   haveit=
21515                       for x in $rpathdirs; do
21516                         if test "X$x" = "X$dir"; then
21517                           haveit=yes
21518                           break
21519                         fi
21520                       done
21521                       if test -z "$haveit"; then
21522                         rpathdirs="$rpathdirs $dir"
21523                       fi
21524                                                                   haveit=
21525                       for x in $ltrpathdirs; do
21526                         if test "X$x" = "X$dir"; then
21527                           haveit=yes
21528                           break
21529                         fi
21530                       done
21531                       if test -z "$haveit"; then
21532                         ltrpathdirs="$ltrpathdirs $dir"
21533                       fi
21534                     fi
21535                     ;;
21536                   -l*)
21537                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21538                     ;;
21539                   *.la)
21540                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21541                     ;;
21542                   *)
21543                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21544                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21545                     ;;
21546                 esac
21547               done
21548             fi
21549           else
21550                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21551             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21552           fi
21553         fi
21554       fi
21555     done
21556   done
21557   if test "X$rpathdirs" != "X"; then
21558     if test -n "$hardcode_libdir_separator"; then
21559                         alldirs=
21560       for found_dir in $rpathdirs; do
21561         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21562       done
21563             acl_save_libdir="$libdir"
21564       libdir="$alldirs"
21565       eval flag=\"$hardcode_libdir_flag_spec\"
21566       libdir="$acl_save_libdir"
21567       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21568     else
21569             for found_dir in $rpathdirs; do
21570         acl_save_libdir="$libdir"
21571         libdir="$found_dir"
21572         eval flag=\"$hardcode_libdir_flag_spec\"
21573         libdir="$acl_save_libdir"
21574         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21575       done
21576     fi
21577   fi
21578   if test "X$ltrpathdirs" != "X"; then
21579             for found_dir in $ltrpathdirs; do
21580       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21581     done
21582   fi
21583
21584
21585
21586
21587
21588
21589
21590           am_save_CPPFLAGS="$CPPFLAGS"
21591
21592   for element in $INCICONV; do
21593     haveit=
21594     for x in $CPPFLAGS; do
21595
21596   acl_save_prefix="$prefix"
21597   prefix="$acl_final_prefix"
21598   acl_save_exec_prefix="$exec_prefix"
21599   exec_prefix="$acl_final_exec_prefix"
21600   eval x=\"$x\"
21601   exec_prefix="$acl_save_exec_prefix"
21602   prefix="$acl_save_prefix"
21603
21604       if test "X$x" = "X$element"; then
21605         haveit=yes
21606         break
21607       fi
21608     done
21609     if test -z "$haveit"; then
21610       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21611     fi
21612   done
21613
21614
21615   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21616 $as_echo_n "checking for iconv... " >&6; }
21617 if test "${am_cv_func_iconv+set}" = set; then :
21618   $as_echo_n "(cached) " >&6
21619 else
21620
21621     am_cv_func_iconv="no, consider installing GNU libiconv"
21622     am_cv_lib_iconv=no
21623     if test x$gcc_no_link = xyes; then
21624   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21625 fi
21626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21627 /* end confdefs.h.  */
21628 #include <stdlib.h>
21629 #include <iconv.h>
21630 int
21631 main ()
21632 {
21633 iconv_t cd = iconv_open("","");
21634        iconv(cd,NULL,NULL,NULL,NULL);
21635        iconv_close(cd);
21636   ;
21637   return 0;
21638 }
21639 _ACEOF
21640 if ac_fn_c_try_link "$LINENO"; then :
21641   am_cv_func_iconv=yes
21642 fi
21643 rm -f core conftest.err conftest.$ac_objext \
21644     conftest$ac_exeext conftest.$ac_ext
21645     if test "$am_cv_func_iconv" != yes; then
21646       am_save_LIBS="$LIBS"
21647       LIBS="$LIBS $LIBICONV"
21648       if test x$gcc_no_link = xyes; then
21649   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21650 fi
21651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21652 /* end confdefs.h.  */
21653 #include <stdlib.h>
21654 #include <iconv.h>
21655 int
21656 main ()
21657 {
21658 iconv_t cd = iconv_open("","");
21659          iconv(cd,NULL,NULL,NULL,NULL);
21660          iconv_close(cd);
21661   ;
21662   return 0;
21663 }
21664 _ACEOF
21665 if ac_fn_c_try_link "$LINENO"; then :
21666   am_cv_lib_iconv=yes
21667         am_cv_func_iconv=yes
21668 fi
21669 rm -f core conftest.err conftest.$ac_objext \
21670     conftest$ac_exeext conftest.$ac_ext
21671       LIBS="$am_save_LIBS"
21672     fi
21673
21674 fi
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
21676 $as_echo "$am_cv_func_iconv" >&6; }
21677   if test "$am_cv_func_iconv" = yes; then
21678
21679 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
21680
21681   fi
21682   if test "$am_cv_lib_iconv" = yes; then
21683     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
21684 $as_echo_n "checking how to link with libiconv... " >&6; }
21685     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
21686 $as_echo "$LIBICONV" >&6; }
21687   else
21688             CPPFLAGS="$am_save_CPPFLAGS"
21689     LIBICONV=
21690     LTLIBICONV=
21691   fi
21692
21693
21694
21695   if test "$am_cv_func_iconv" = yes; then
21696     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
21697 $as_echo_n "checking for iconv declaration... " >&6; }
21698     if test "${am_cv_proto_iconv+set}" = set; then :
21699   $as_echo_n "(cached) " >&6
21700 else
21701
21702       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21703 /* end confdefs.h.  */
21704
21705 #include <stdlib.h>
21706 #include <iconv.h>
21707 extern
21708 #ifdef __cplusplus
21709 "C"
21710 #endif
21711 #if defined(__STDC__) || defined(__cplusplus)
21712 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21713 #else
21714 size_t iconv();
21715 #endif
21716
21717 int
21718 main ()
21719 {
21720
21721   ;
21722   return 0;
21723 }
21724 _ACEOF
21725 if ac_fn_c_try_compile "$LINENO"; then :
21726   am_cv_proto_iconv_arg1=""
21727 else
21728   am_cv_proto_iconv_arg1="const"
21729 fi
21730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21731       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);"
21732 fi
21733
21734     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21735     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
21736          }$am_cv_proto_iconv" >&5
21737 $as_echo "${ac_t:-
21738          }$am_cv_proto_iconv" >&6; }
21739
21740 cat >>confdefs.h <<_ACEOF
21741 #define ICONV_CONST $am_cv_proto_iconv_arg1
21742 _ACEOF
21743
21744   fi
21745
21746
21747   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
21748 $as_echo_n "checking for LC_MESSAGES... " >&6; }
21749 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
21750   $as_echo_n "(cached) " >&6
21751 else
21752   if test x$gcc_no_link = xyes; then
21753   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21754 fi
21755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21756 /* end confdefs.h.  */
21757 #include <locale.h>
21758 int
21759 main ()
21760 {
21761 return LC_MESSAGES
21762   ;
21763   return 0;
21764 }
21765 _ACEOF
21766 if ac_fn_c_try_link "$LINENO"; then :
21767   am_cv_val_LC_MESSAGES=yes
21768 else
21769   am_cv_val_LC_MESSAGES=no
21770 fi
21771 rm -f core conftest.err conftest.$ac_objext \
21772     conftest$ac_exeext conftest.$ac_ext
21773 fi
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
21775 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
21776   if test $am_cv_val_LC_MESSAGES = yes; then
21777
21778 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
21779
21780   fi
21781
21782    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21783 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21784 if test "${ac_cv_struct_tm+set}" = set; then :
21785   $as_echo_n "(cached) " >&6
21786 else
21787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21788 /* end confdefs.h.  */
21789 #include <sys/types.h>
21790 #include <time.h>
21791
21792 int
21793 main ()
21794 {
21795 struct tm tm;
21796                                      int *p = &tm.tm_sec;
21797                                      return !p;
21798   ;
21799   return 0;
21800 }
21801 _ACEOF
21802 if ac_fn_c_try_compile "$LINENO"; then :
21803   ac_cv_struct_tm=time.h
21804 else
21805   ac_cv_struct_tm=sys/time.h
21806 fi
21807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21808 fi
21809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21810 $as_echo "$ac_cv_struct_tm" >&6; }
21811 if test $ac_cv_struct_tm = sys/time.h; then
21812
21813 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21814
21815 fi
21816
21817 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21818 #include <$ac_cv_struct_tm>
21819
21820 "
21821 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21822
21823 cat >>confdefs.h <<_ACEOF
21824 #define HAVE_STRUCT_TM_TM_ZONE 1
21825 _ACEOF
21826
21827
21828 fi
21829
21830 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21831
21832 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21833
21834 else
21835   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21836 "
21837 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21838   ac_have_decl=1
21839 else
21840   ac_have_decl=0
21841 fi
21842
21843 cat >>confdefs.h <<_ACEOF
21844 #define HAVE_DECL_TZNAME $ac_have_decl
21845 _ACEOF
21846
21847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21848 $as_echo_n "checking for tzname... " >&6; }
21849 if test "${ac_cv_var_tzname+set}" = set; then :
21850   $as_echo_n "(cached) " >&6
21851 else
21852   if test x$gcc_no_link = xyes; then
21853   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21854 fi
21855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21856 /* end confdefs.h.  */
21857 #include <time.h>
21858 #if !HAVE_DECL_TZNAME
21859 extern char *tzname[];
21860 #endif
21861
21862 int
21863 main ()
21864 {
21865 return tzname[0][0];
21866   ;
21867   return 0;
21868 }
21869 _ACEOF
21870 if ac_fn_c_try_link "$LINENO"; then :
21871   ac_cv_var_tzname=yes
21872 else
21873   ac_cv_var_tzname=no
21874 fi
21875 rm -f core conftest.err conftest.$ac_objext \
21876     conftest$ac_exeext conftest.$ac_ext
21877 fi
21878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21879 $as_echo "$ac_cv_var_tzname" >&6; }
21880   if test $ac_cv_var_tzname = yes; then
21881
21882 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21883
21884   fi
21885 fi
21886
21887
21888    for ac_func in gethostbyname_r
21889 do :
21890   ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
21891 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
21892   cat >>confdefs.h <<_ACEOF
21893 #define HAVE_GETHOSTBYNAME_R 1
21894 _ACEOF
21895
21896
21897 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
21898
21899      # There are two different kinds of gethostbyname_r.
21900      # We look for the one that returns `int'.
21901      # Hopefully this check is robust enough.
21902      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21903 /* end confdefs.h.  */
21904 #include <netdb.h>
21905
21906 _ACEOF
21907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21908   $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then :
21909
21910
21911 $as_echo "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h
21912
21913 fi
21914 rm -f conftest*
21915
21916
21917      case " $GCINCS " in
21918      *" -D_REENTRANT "*) ;;
21919      *)
21920                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
21921 $as_echo_n "checking whether gethostbyname_r declaration requires -D_REENTRANT... " >&6; }
21922 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then :
21923   $as_echo_n "(cached) " >&6
21924 else
21925    ac_ext=cpp
21926 ac_cpp='$CXXCPP $CPPFLAGS'
21927 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21928 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21929 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21930
21931           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21932 /* end confdefs.h.  */
21933 #include <netdb.h>
21934 int
21935 main ()
21936 {
21937 gethostbyname_r("", 0, 0);
21938   ;
21939   return 0;
21940 }
21941 _ACEOF
21942 if ac_fn_cxx_try_compile "$LINENO"; then :
21943   libjava_cv_gethostbyname_r_needs_reentrant=no
21944 else
21945                 CPPFLAGS_SAVE="$CPPFLAGS"
21946                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
21947                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21948 /* end confdefs.h.  */
21949 #include <netdb.h>
21950 int
21951 main ()
21952 {
21953 gethostbyname_r("", 0, 0);
21954   ;
21955   return 0;
21956 }
21957 _ACEOF
21958 if ac_fn_cxx_try_compile "$LINENO"; then :
21959   libjava_cv_gethostbyname_r_needs_reentrant=yes
21960 else
21961   libjava_cv_gethostbyname_r_needs_reentrant=fail
21962 fi
21963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21964                 CPPFLAGS="$CPPFLAGS_SAVE"
21965
21966 fi
21967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21968           ac_ext=c
21969 ac_cpp='$CPP $CPPFLAGS'
21970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21973
21974
21975 fi
21976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
21977 $as_echo "$libjava_cv_gethostbyname_r_needs_reentrant" >&6; }
21978         if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
21979
21980 $as_echo "#define _REENTRANT 1" >>confdefs.h
21981
21982         fi
21983      ;;
21984      esac
21985
21986      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct hostent_data" >&5
21987 $as_echo_n "checking for struct hostent_data... " >&6; }
21988 if test "${libjava_cv_struct_hostent_data+set}" = set; then :
21989   $as_echo_n "(cached) " >&6
21990 else
21991         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21992 /* end confdefs.h.  */
21993
21994 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
21995 # define _REENTRANT 1
21996 #endif
21997 #include <netdb.h>
21998 int
21999 main ()
22000 {
22001 struct hostent_data data;
22002   ;
22003   return 0;
22004 }
22005 _ACEOF
22006 if ac_fn_c_try_compile "$LINENO"; then :
22007   libjava_cv_struct_hostent_data=yes
22008 else
22009   libjava_cv_struct_hostent_data=no
22010 fi
22011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22012 fi
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_struct_hostent_data" >&5
22014 $as_echo "$libjava_cv_struct_hostent_data" >&6; }
22015      if test "x$libjava_cv_struct_hostent_data" = xyes; then
22016
22017 $as_echo "#define HAVE_STRUCT_HOSTENT_DATA 1" >>confdefs.h
22018
22019      fi
22020
22021 fi
22022 done
22023
22024
22025    # FIXME: libjava source code expects to find a prototype for
22026    # gethostbyaddr_r in netdb.h.  The outer check ensures that
22027    # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
22028    # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C
22029    # linkage check is enough, yet C++ code requires proper prototypes.)
22030    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22031 /* end confdefs.h.  */
22032 #include <netdb.h>
22033
22034 _ACEOF
22035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22036   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
22037
22038    for ac_func in gethostbyaddr_r
22039 do :
22040   ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
22041 if test "x$ac_cv_func_gethostbyaddr_r" = x""yes; then :
22042   cat >>confdefs.h <<_ACEOF
22043 #define HAVE_GETHOSTBYADDR_R 1
22044 _ACEOF
22045
22046
22047 $as_echo "#define HAVE_GETHOSTBYADDR_R 1" >>confdefs.h
22048
22049      # There are two different kinds of gethostbyaddr_r.
22050      # We look for the one that returns `int'.
22051      # Hopefully this check is robust enough.
22052      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22053 /* end confdefs.h.  */
22054 #include <netdb.h>
22055
22056 _ACEOF
22057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22058   $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then :
22059
22060
22061 $as_echo "#define GETHOSTBYADDR_R_RETURNS_INT 1" >>confdefs.h
22062
22063 fi
22064 rm -f conftest*
22065
22066 fi
22067 done
22068
22069 fi
22070 rm -f conftest*
22071
22072
22073    for ac_func in gethostname
22074 do :
22075   ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
22076 if test "x$ac_cv_func_gethostname" = x""yes; then :
22077   cat >>confdefs.h <<_ACEOF
22078 #define HAVE_GETHOSTNAME 1
22079 _ACEOF
22080
22081
22082 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
22083
22084      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22085 /* end confdefs.h.  */
22086 #include <unistd.h>
22087
22088 _ACEOF
22089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22090   $EGREP "gethostname" >/dev/null 2>&1; then :
22091
22092
22093 $as_echo "#define HAVE_GETHOSTNAME_DECL 1" >>confdefs.h
22094
22095 fi
22096 rm -f conftest*
22097
22098 fi
22099 done
22100
22101
22102    for ac_func in usleep
22103 do :
22104   ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
22105 if test "x$ac_cv_func_usleep" = x""yes; then :
22106   cat >>confdefs.h <<_ACEOF
22107 #define HAVE_USLEEP 1
22108 _ACEOF
22109
22110      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22111 /* end confdefs.h.  */
22112 #include <unistd.h>
22113
22114 _ACEOF
22115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22116   $EGREP "usleep" >/dev/null 2>&1; then :
22117
22118
22119 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
22120
22121 fi
22122 rm -f conftest*
22123
22124 fi
22125 done
22126
22127
22128    # Look for these functions in the thread library, but only bother
22129    # if using POSIX threads.
22130    if test "$THREADS" = posix; then
22131       save_LIBS="$LIBS"
22132       LIBS="$LIBS $THREADLIBS"
22133
22134       # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
22135       # Solaris 7 the name librt is preferred.
22136       for ac_func in sched_yield
22137 do :
22138   ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
22139 if test "x$ac_cv_func_sched_yield" = x""yes; then :
22140   cat >>confdefs.h <<_ACEOF
22141 #define HAVE_SCHED_YIELD 1
22142 _ACEOF
22143
22144 else
22145
22146         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
22147 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
22148 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
22149   $as_echo_n "(cached) " >&6
22150 else
22151   ac_check_lib_save_LIBS=$LIBS
22152 LIBS="-lrt  $LIBS"
22153 if test x$gcc_no_link = xyes; then
22154   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22155 fi
22156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22157 /* end confdefs.h.  */
22158
22159 /* Override any GCC internal prototype to avoid an error.
22160    Use char because int might match the return type of a GCC
22161    builtin and then its argument prototype would still apply.  */
22162 #ifdef __cplusplus
22163 extern "C"
22164 #endif
22165 char sched_yield ();
22166 int
22167 main ()
22168 {
22169 return sched_yield ();
22170   ;
22171   return 0;
22172 }
22173 _ACEOF
22174 if ac_fn_c_try_link "$LINENO"; then :
22175   ac_cv_lib_rt_sched_yield=yes
22176 else
22177   ac_cv_lib_rt_sched_yield=no
22178 fi
22179 rm -f core conftest.err conftest.$ac_objext \
22180     conftest$ac_exeext conftest.$ac_ext
22181 LIBS=$ac_check_lib_save_LIBS
22182 fi
22183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
22184 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
22185 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
22186
22187           $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22188
22189           THREADLIBS="$THREADLIBS -lrt"
22190           THREADSPEC="$THREADSPEC -lrt"
22191 else
22192
22193           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
22194 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
22195 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then :
22196   $as_echo_n "(cached) " >&6
22197 else
22198   ac_check_lib_save_LIBS=$LIBS
22199 LIBS="-lposix4  $LIBS"
22200 if test x$gcc_no_link = xyes; then
22201   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22202 fi
22203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22204 /* end confdefs.h.  */
22205
22206 /* Override any GCC internal prototype to avoid an error.
22207    Use char because int might match the return type of a GCC
22208    builtin and then its argument prototype would still apply.  */
22209 #ifdef __cplusplus
22210 extern "C"
22211 #endif
22212 char sched_yield ();
22213 int
22214 main ()
22215 {
22216 return sched_yield ();
22217   ;
22218   return 0;
22219 }
22220 _ACEOF
22221 if ac_fn_c_try_link "$LINENO"; then :
22222   ac_cv_lib_posix4_sched_yield=yes
22223 else
22224   ac_cv_lib_posix4_sched_yield=no
22225 fi
22226 rm -f core conftest.err conftest.$ac_objext \
22227     conftest$ac_exeext conftest.$ac_ext
22228 LIBS=$ac_check_lib_save_LIBS
22229 fi
22230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
22231 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
22232 if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then :
22233
22234             $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22235
22236             THREADLIBS="$THREADLIBS -lposix4"
22237             THREADSPEC="$THREADSPEC -lposix4"
22238 fi
22239
22240 fi
22241
22242 fi
22243 done
22244
22245
22246       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22247 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22248 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
22249   $as_echo_n "(cached) " >&6
22250 else
22251   ac_check_lib_save_LIBS=$LIBS
22252 LIBS="-lrt  $LIBS"
22253 if test x$gcc_no_link = xyes; then
22254   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22255 fi
22256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22257 /* end confdefs.h.  */
22258
22259 /* Override any GCC internal prototype to avoid an error.
22260    Use char because int might match the return type of a GCC
22261    builtin and then its argument prototype would still apply.  */
22262 #ifdef __cplusplus
22263 extern "C"
22264 #endif
22265 char clock_gettime ();
22266 int
22267 main ()
22268 {
22269 return clock_gettime ();
22270   ;
22271   return 0;
22272 }
22273 _ACEOF
22274 if ac_fn_c_try_link "$LINENO"; then :
22275   ac_cv_lib_rt_clock_gettime=yes
22276 else
22277   ac_cv_lib_rt_clock_gettime=no
22278 fi
22279 rm -f core conftest.err conftest.$ac_objext \
22280     conftest$ac_exeext conftest.$ac_ext
22281 LIBS=$ac_check_lib_save_LIBS
22282 fi
22283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22284 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22285 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
22286
22287
22288 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22289
22290          case "$THREADSPEC" in
22291            *-lrt*) ;;
22292            *)
22293              THREADSPEC="$THREADSPEC -lrt"
22294              THREADLIBS="$THREADLIBS -lrt"
22295              ;;
22296          esac
22297 fi
22298
22299
22300       LIBS="$save_LIBS"
22301
22302       # We can save a little space at runtime if the mutex has m_count
22303       # or __m_count.  This is a nice hack for Linux.
22304       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22305 /* end confdefs.h.  */
22306 #include <pthread.h>
22307 int
22308 main ()
22309 {
22310
22311           extern pthread_mutex_t *mutex; int q = mutex->m_count;
22312
22313   ;
22314   return 0;
22315 }
22316 _ACEOF
22317 if ac_fn_c_try_compile "$LINENO"; then :
22318
22319 $as_echo "#define PTHREAD_MUTEX_HAVE_M_COUNT 1" >>confdefs.h
22320
22321 else
22322
22323         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22324 /* end confdefs.h.  */
22325 #include <pthread.h>
22326 int
22327 main ()
22328 {
22329
22330             extern pthread_mutex_t *mutex; int q = mutex->__m_count;
22331
22332   ;
22333   return 0;
22334 }
22335 _ACEOF
22336 if ac_fn_c_try_compile "$LINENO"; then :
22337
22338 $as_echo "#define PTHREAD_MUTEX_HAVE___M_COUNT 1" >>confdefs.h
22339
22340 fi
22341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22342 fi
22343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22344    fi
22345
22346    # We require a way to get the time.
22347    time_found=no
22348    for ac_func in gettimeofday time ftime
22349 do :
22350   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22351 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22352 eval as_val=\$$as_ac_var
22353    if test "x$as_val" = x""yes; then :
22354   cat >>confdefs.h <<_ACEOF
22355 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22356 _ACEOF
22357  time_found=yes
22358 fi
22359 done
22360
22361    if test "$time_found" = no; then
22362       as_fn_error "no function found to get the time" "$LINENO" 5
22363    fi
22364
22365    for ac_func in memmove
22366 do :
22367   ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22368 if test "x$ac_cv_func_memmove" = x""yes; then :
22369   cat >>confdefs.h <<_ACEOF
22370 #define HAVE_MEMMOVE 1
22371 _ACEOF
22372
22373 fi
22374 done
22375
22376
22377    # We require memcpy.
22378    memcpy_found=no
22379    for ac_func in memcpy
22380 do :
22381   ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
22382 if test "x$ac_cv_func_memcpy" = x""yes; then :
22383   cat >>confdefs.h <<_ACEOF
22384 #define HAVE_MEMCPY 1
22385 _ACEOF
22386  memcpy_found=yes
22387 fi
22388 done
22389
22390    if test "$memcpy_found" = no; then
22391       as_fn_error "memcpy is required" "$LINENO" 5
22392    fi
22393    # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
22394    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22395 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22396 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
22397   $as_echo_n "(cached) " >&6
22398 else
22399   ac_check_lib_save_LIBS=$LIBS
22400 LIBS="-ldl  $LIBS"
22401 if test x$gcc_no_link = xyes; then
22402   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22403 fi
22404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22405 /* end confdefs.h.  */
22406
22407 /* Override any GCC internal prototype to avoid an error.
22408    Use char because int might match the return type of a GCC
22409    builtin and then its argument prototype would still apply.  */
22410 #ifdef __cplusplus
22411 extern "C"
22412 #endif
22413 char dlopen ();
22414 int
22415 main ()
22416 {
22417 return dlopen ();
22418   ;
22419   return 0;
22420 }
22421 _ACEOF
22422 if ac_fn_c_try_link "$LINENO"; then :
22423   ac_cv_lib_dl_dlopen=yes
22424 else
22425   ac_cv_lib_dl_dlopen=no
22426 fi
22427 rm -f core conftest.err conftest.$ac_objext \
22428     conftest$ac_exeext conftest.$ac_ext
22429 LIBS=$ac_check_lib_save_LIBS
22430 fi
22431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22432 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22433 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
22434
22435
22436 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22437
22438 else
22439
22440        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldld" >&5
22441 $as_echo_n "checking for dlopen in -ldld... " >&6; }
22442 if test "${ac_cv_lib_dld_dlopen+set}" = set; then :
22443   $as_echo_n "(cached) " >&6
22444 else
22445   ac_check_lib_save_LIBS=$LIBS
22446 LIBS="-ldld  $LIBS"
22447 if test x$gcc_no_link = xyes; then
22448   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22449 fi
22450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22451 /* end confdefs.h.  */
22452
22453 /* Override any GCC internal prototype to avoid an error.
22454    Use char because int might match the return type of a GCC
22455    builtin and then its argument prototype would still apply.  */
22456 #ifdef __cplusplus
22457 extern "C"
22458 #endif
22459 char dlopen ();
22460 int
22461 main ()
22462 {
22463 return dlopen ();
22464   ;
22465   return 0;
22466 }
22467 _ACEOF
22468 if ac_fn_c_try_link "$LINENO"; then :
22469   ac_cv_lib_dld_dlopen=yes
22470 else
22471   ac_cv_lib_dld_dlopen=no
22472 fi
22473 rm -f core conftest.err conftest.$ac_objext \
22474     conftest$ac_exeext conftest.$ac_ext
22475 LIBS=$ac_check_lib_save_LIBS
22476 fi
22477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dlopen" >&5
22478 $as_echo "$ac_cv_lib_dld_dlopen" >&6; }
22479 if test "x$ac_cv_lib_dld_dlopen" = x""yes; then :
22480
22481
22482 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22483
22484 fi
22485
22486 fi
22487
22488
22489    # Some library-finding code we stole from Tcl.
22490    #--------------------------------------------------------------------
22491    #    Check for the existence of the -lsocket and -lnsl libraries.
22492    #    The order here is important, so that they end up in the right
22493    #    order in the command line generated by make.  Here are some
22494    #    special considerations:
22495    #    1. Use "connect" and "accept" to check for -lsocket, and
22496    #       "gethostbyname" to check for -lnsl.
22497    #    2. Use each function name only once:  can't redo a check because
22498    #       autoconf caches the results of the last check and won't redo it.
22499    #    3. Use -lnsl and -lsocket only if they supply procedures that
22500    #       aren't already present in the normal libraries.  This is because
22501    #       IRIX 5.2 has libraries, but they aren't needed and they're
22502    #       bogus:  they goof up name resolution if used.
22503    #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
22504    #       To get around this problem, check for both libraries together
22505    #       if -lsocket doesn't work by itself.
22506    #--------------------------------------------------------------------
22507
22508    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
22509 $as_echo_n "checking for socket libraries... " >&6; }
22510 if test "${gcj_cv_lib_sockets+set}" = set; then :
22511   $as_echo_n "(cached) " >&6
22512 else
22513   gcj_cv_lib_sockets=
22514      gcj_checkBoth=0
22515      unset ac_cv_func_connect
22516      ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
22517 if test "x$ac_cv_func_connect" = x""yes; then :
22518   gcj_checkSocket=0
22519 else
22520   gcj_checkSocket=1
22521 fi
22522
22523      if test "$gcj_checkSocket" = 1; then
22524          unset ac_cv_func_connect
22525          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
22526 $as_echo_n "checking for main in -lsocket... " >&6; }
22527 if test "${ac_cv_lib_socket_main+set}" = set; then :
22528   $as_echo_n "(cached) " >&6
22529 else
22530   ac_check_lib_save_LIBS=$LIBS
22531 LIBS="-lsocket  $LIBS"
22532 if test x$gcc_no_link = xyes; then
22533   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22534 fi
22535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22536 /* end confdefs.h.  */
22537
22538
22539 int
22540 main ()
22541 {
22542 return main ();
22543   ;
22544   return 0;
22545 }
22546 _ACEOF
22547 if ac_fn_c_try_link "$LINENO"; then :
22548   ac_cv_lib_socket_main=yes
22549 else
22550   ac_cv_lib_socket_main=no
22551 fi
22552 rm -f core conftest.err conftest.$ac_objext \
22553     conftest$ac_exeext conftest.$ac_ext
22554 LIBS=$ac_check_lib_save_LIBS
22555 fi
22556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
22557 $as_echo "$ac_cv_lib_socket_main" >&6; }
22558 if test "x$ac_cv_lib_socket_main" = x""yes; then :
22559   gcj_cv_lib_sockets="-lsocket"
22560 else
22561   gcj_checkBoth=1
22562 fi
22563
22564      fi
22565      if test "$gcj_checkBoth" = 1; then
22566          gcj_oldLibs=$LIBS
22567          LIBS="$LIBS -lsocket -lnsl"
22568          unset ac_cv_func_accept
22569          ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
22570 if test "x$ac_cv_func_accept" = x""yes; then :
22571   gcj_checkNsl=0
22572                         gcj_cv_lib_sockets="-lsocket -lnsl"
22573 fi
22574
22575          unset ac_cv_func_accept
22576          LIBS=$gcj_oldLibs
22577      fi
22578      unset ac_cv_func_gethostbyname
22579      gcj_oldLibs=$LIBS
22580      LIBS="$LIBS $gcj_cv_lib_sockets"
22581      ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22582 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
22583
22584 else
22585   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
22586 $as_echo_n "checking for main in -lnsl... " >&6; }
22587 if test "${ac_cv_lib_nsl_main+set}" = set; then :
22588   $as_echo_n "(cached) " >&6
22589 else
22590   ac_check_lib_save_LIBS=$LIBS
22591 LIBS="-lnsl  $LIBS"
22592 if test x$gcc_no_link = xyes; then
22593   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22594 fi
22595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22596 /* end confdefs.h.  */
22597
22598
22599 int
22600 main ()
22601 {
22602 return main ();
22603   ;
22604   return 0;
22605 }
22606 _ACEOF
22607 if ac_fn_c_try_link "$LINENO"; then :
22608   ac_cv_lib_nsl_main=yes
22609 else
22610   ac_cv_lib_nsl_main=no
22611 fi
22612 rm -f core conftest.err conftest.$ac_objext \
22613     conftest$ac_exeext conftest.$ac_ext
22614 LIBS=$ac_check_lib_save_LIBS
22615 fi
22616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
22617 $as_echo "$ac_cv_lib_nsl_main" >&6; }
22618 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
22619   gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
22620 fi
22621
22622 fi
22623
22624      unset ac_cv_func_gethostbyname
22625      LIBS=$gcj_oldLIBS
22626
22627 fi
22628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcj_cv_lib_sockets" >&5
22629 $as_echo "$gcj_cv_lib_sockets" >&6; }
22630    SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
22631
22632    if test "$with_system_zlib" = yes; then
22633       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
22634 $as_echo_n "checking for deflate in -lz... " >&6; }
22635 if test "${ac_cv_lib_z_deflate+set}" = set; then :
22636   $as_echo_n "(cached) " >&6
22637 else
22638   ac_check_lib_save_LIBS=$LIBS
22639 LIBS="-lz  $LIBS"
22640 if test x$gcc_no_link = xyes; then
22641   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22642 fi
22643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22644 /* end confdefs.h.  */
22645
22646 /* Override any GCC internal prototype to avoid an error.
22647    Use char because int might match the return type of a GCC
22648    builtin and then its argument prototype would still apply.  */
22649 #ifdef __cplusplus
22650 extern "C"
22651 #endif
22652 char deflate ();
22653 int
22654 main ()
22655 {
22656 return deflate ();
22657   ;
22658   return 0;
22659 }
22660 _ACEOF
22661 if ac_fn_c_try_link "$LINENO"; then :
22662   ac_cv_lib_z_deflate=yes
22663 else
22664   ac_cv_lib_z_deflate=no
22665 fi
22666 rm -f core conftest.err conftest.$ac_objext \
22667     conftest$ac_exeext conftest.$ac_ext
22668 LIBS=$ac_check_lib_save_LIBS
22669 fi
22670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
22671 $as_echo "$ac_cv_lib_z_deflate" >&6; }
22672 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
22673   ZLIBSPEC=-lz
22674 else
22675   ZLIBSPEC=
22676 fi
22677
22678    fi
22679
22680    # Test for Gtk stuff, if asked for.
22681    if test "$use_gtk_awt" = yes; then
22682
22683   succeeded=no
22684
22685   if test -z "$PKG_CONFIG"; then
22686     # Extract the first word of "pkg-config", so it can be a program name with args.
22687 set dummy pkg-config; ac_word=$2
22688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22689 $as_echo_n "checking for $ac_word... " >&6; }
22690 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22691   $as_echo_n "(cached) " >&6
22692 else
22693   case $PKG_CONFIG in
22694   [\\/]* | ?:[\\/]*)
22695   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22696   ;;
22697   *)
22698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22699 for as_dir in $PATH
22700 do
22701   IFS=$as_save_IFS
22702   test -z "$as_dir" && as_dir=.
22703     for ac_exec_ext in '' $ac_executable_extensions; do
22704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22705     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22707     break 2
22708   fi
22709 done
22710   done
22711 IFS=$as_save_IFS
22712
22713   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22714   ;;
22715 esac
22716 fi
22717 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22718 if test -n "$PKG_CONFIG"; then
22719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22720 $as_echo "$PKG_CONFIG" >&6; }
22721 else
22722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22723 $as_echo "no" >&6; }
22724 fi
22725
22726
22727   fi
22728
22729   if test "$PKG_CONFIG" = "no" ; then
22730      echo "*** The pkg-config script could not be found. Make sure it is"
22731      echo "*** in your path, or set the PKG_CONFIG environment variable"
22732      echo "*** to the full path to pkg-config."
22733      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22734   else
22735      PKG_CONFIG_MIN_VERSION=0.9.0
22736      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22737         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.4" >&5
22738 $as_echo_n "checking for gtk+-2.0 >= 2.4... " >&6; }
22739
22740         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
22741             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22742 $as_echo "yes" >&6; }
22743             succeeded=yes
22744
22745             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
22746 $as_echo_n "checking GTK_CFLAGS... " >&6; }
22747             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
22748             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
22749 $as_echo "$GTK_CFLAGS" >&6; }
22750
22751             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
22752 $as_echo_n "checking GTK_LIBS... " >&6; }
22753             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
22754             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
22755 $as_echo "$GTK_LIBS" >&6; }
22756         else
22757             GTK_CFLAGS=""
22758             GTK_LIBS=""
22759             ## If we have a custom action on failure, don't print errors, but
22760             ## do set a variable so people can do so.
22761             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
22762             echo $GTK_PKG_ERRORS
22763         fi
22764
22765
22766
22767      else
22768         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22769         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22770      fi
22771   fi
22772
22773   if test $succeeded = yes; then
22774      :
22775   else
22776      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
22777   fi
22778
22779
22780
22781
22782
22783   succeeded=no
22784
22785   if test -z "$PKG_CONFIG"; then
22786     # Extract the first word of "pkg-config", so it can be a program name with args.
22787 set dummy pkg-config; ac_word=$2
22788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22789 $as_echo_n "checking for $ac_word... " >&6; }
22790 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22791   $as_echo_n "(cached) " >&6
22792 else
22793   case $PKG_CONFIG in
22794   [\\/]* | ?:[\\/]*)
22795   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22796   ;;
22797   *)
22798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22799 for as_dir in $PATH
22800 do
22801   IFS=$as_save_IFS
22802   test -z "$as_dir" && as_dir=.
22803     for ac_exec_ext in '' $ac_executable_extensions; do
22804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22805     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22806     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22807     break 2
22808   fi
22809 done
22810   done
22811 IFS=$as_save_IFS
22812
22813   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22814   ;;
22815 esac
22816 fi
22817 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22818 if test -n "$PKG_CONFIG"; then
22819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22820 $as_echo "$PKG_CONFIG" >&6; }
22821 else
22822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22823 $as_echo "no" >&6; }
22824 fi
22825
22826
22827   fi
22828
22829   if test "$PKG_CONFIG" = "no" ; then
22830      echo "*** The pkg-config script could not be found. Make sure it is"
22831      echo "*** in your path, or set the PKG_CONFIG environment variable"
22832      echo "*** to the full path to pkg-config."
22833      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22834   else
22835      PKG_CONFIG_MIN_VERSION=0.9.0
22836      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22837         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
22838 $as_echo_n "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... " >&6; }
22839
22840         if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
22841             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22842 $as_echo "yes" >&6; }
22843             succeeded=yes
22844
22845             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
22846 $as_echo_n "checking GLIB_CFLAGS... " >&6; }
22847             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22848             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
22849 $as_echo "$GLIB_CFLAGS" >&6; }
22850
22851             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
22852 $as_echo_n "checking GLIB_LIBS... " >&6; }
22853             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22854             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
22855 $as_echo "$GLIB_LIBS" >&6; }
22856         else
22857             GLIB_CFLAGS=""
22858             GLIB_LIBS=""
22859             ## If we have a custom action on failure, don't print errors, but
22860             ## do set a variable so people can do so.
22861             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22862             echo $GLIB_PKG_ERRORS
22863         fi
22864
22865
22866
22867      else
22868         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22869         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22870      fi
22871   fi
22872
22873   if test $succeeded = yes; then
22874      :
22875   else
22876      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
22877   fi
22878
22879
22880
22881
22882
22883   succeeded=no
22884
22885   if test -z "$PKG_CONFIG"; then
22886     # Extract the first word of "pkg-config", so it can be a program name with args.
22887 set dummy pkg-config; ac_word=$2
22888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22889 $as_echo_n "checking for $ac_word... " >&6; }
22890 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22891   $as_echo_n "(cached) " >&6
22892 else
22893   case $PKG_CONFIG in
22894   [\\/]* | ?:[\\/]*)
22895   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22896   ;;
22897   *)
22898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22899 for as_dir in $PATH
22900 do
22901   IFS=$as_save_IFS
22902   test -z "$as_dir" && as_dir=.
22903     for ac_exec_ext in '' $ac_executable_extensions; do
22904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22905     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22907     break 2
22908   fi
22909 done
22910   done
22911 IFS=$as_save_IFS
22912
22913   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22914   ;;
22915 esac
22916 fi
22917 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22918 if test -n "$PKG_CONFIG"; then
22919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22920 $as_echo "$PKG_CONFIG" >&6; }
22921 else
22922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22923 $as_echo "no" >&6; }
22924 fi
22925
22926
22927   fi
22928
22929   if test "$PKG_CONFIG" = "no" ; then
22930      echo "*** The pkg-config script could not be found. Make sure it is"
22931      echo "*** in your path, or set the PKG_CONFIG environment variable"
22932      echo "*** to the full path to pkg-config."
22933      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22934   else
22935      PKG_CONFIG_MIN_VERSION=0.9.0
22936      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22937         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libart-2.0 >= 2.1" >&5
22938 $as_echo_n "checking for libart-2.0 >= 2.1... " >&6; }
22939
22940         if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
22941             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22942 $as_echo "yes" >&6; }
22943             succeeded=yes
22944
22945             { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_CFLAGS" >&5
22946 $as_echo_n "checking LIBART_CFLAGS... " >&6; }
22947             LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
22948             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_CFLAGS" >&5
22949 $as_echo "$LIBART_CFLAGS" >&6; }
22950
22951             { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_LIBS" >&5
22952 $as_echo_n "checking LIBART_LIBS... " >&6; }
22953             LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
22954             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_LIBS" >&5
22955 $as_echo "$LIBART_LIBS" >&6; }
22956         else
22957             LIBART_CFLAGS=""
22958             LIBART_LIBS=""
22959             ## If we have a custom action on failure, don't print errors, but
22960             ## do set a variable so people can do so.
22961             LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
22962             echo $LIBART_PKG_ERRORS
22963         fi
22964
22965
22966
22967      else
22968         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22969         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22970      fi
22971   fi
22972
22973   if test $succeeded = yes; then
22974      :
22975   else
22976      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
22977   fi
22978
22979
22980
22981
22982       # We require the XTest Extension to support java.awt.Robot.
22983       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
22984 $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
22985 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
22986   $as_echo_n "(cached) " >&6
22987 else
22988   ac_check_lib_save_LIBS=$LIBS
22989 LIBS="-lXtst ${X_LIBS} $LIBS"
22990 if test x$gcc_no_link = xyes; then
22991   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22992 fi
22993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22994 /* end confdefs.h.  */
22995
22996 /* Override any GCC internal prototype to avoid an error.
22997    Use char because int might match the return type of a GCC
22998    builtin and then its argument prototype would still apply.  */
22999 #ifdef __cplusplus
23000 extern "C"
23001 #endif
23002 char XTestQueryExtension ();
23003 int
23004 main ()
23005 {
23006 return XTestQueryExtension ();
23007   ;
23008   return 0;
23009 }
23010 _ACEOF
23011 if ac_fn_c_try_link "$LINENO"; then :
23012   ac_cv_lib_Xtst_XTestQueryExtension=yes
23013 else
23014   ac_cv_lib_Xtst_XTestQueryExtension=no
23015 fi
23016 rm -f core conftest.err conftest.$ac_objext \
23017     conftest$ac_exeext conftest.$ac_ext
23018 LIBS=$ac_check_lib_save_LIBS
23019 fi
23020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
23021 $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
23022 if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
23023   true
23024 else
23025   as_fn_error "libXtst not found, required by java.awt.Robot" "$LINENO" 5
23026 fi
23027
23028    fi
23029
23030    # On Solaris, and maybe other architectures, the Boehm collector
23031    # requires -ldl.
23032    if test "$GC" = boehm; then
23033       case "${host}" in
23034           mips-sgi-irix6*)
23035             # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib)
23036             # libgcj.spec is used, so override here
23037             SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}"
23038           ;;
23039           *)
23040             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
23041 $as_echo_n "checking for main in -ldl... " >&6; }
23042 if test "${ac_cv_lib_dl_main+set}" = set; then :
23043   $as_echo_n "(cached) " >&6
23044 else
23045   ac_check_lib_save_LIBS=$LIBS
23046 LIBS="-ldl  $LIBS"
23047 if test x$gcc_no_link = xyes; then
23048   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23049 fi
23050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23051 /* end confdefs.h.  */
23052
23053
23054 int
23055 main ()
23056 {
23057 return main ();
23058   ;
23059   return 0;
23060 }
23061 _ACEOF
23062 if ac_fn_c_try_link "$LINENO"; then :
23063   ac_cv_lib_dl_main=yes
23064 else
23065   ac_cv_lib_dl_main=no
23066 fi
23067 rm -f core conftest.err conftest.$ac_objext \
23068     conftest$ac_exeext conftest.$ac_ext
23069 LIBS=$ac_check_lib_save_LIBS
23070 fi
23071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
23072 $as_echo "$ac_cv_lib_dl_main" >&6; }
23073 if test "x$ac_cv_lib_dl_main" = x""yes; then :
23074   SYSTEMSPEC="$SYSTEMSPEC -ldl"
23075 fi
23076
23077           ;;
23078       esac
23079    fi
23080 fi
23081
23082 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
23083 case $build in
23084     *-mingw32) CLASSPATH_SEPARATOR=';' ;;
23085     *)         CLASSPATH_SEPARATOR=':' ;;
23086 esac
23087
23088
23089 # We must search the source tree for java.lang, since we still don't
23090 # have libgcj.jar nor java/lang/*.class
23091 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
23092 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
23093
23094 # Since some classes depend on this one, we need its source available
23095 # before we can do any GCJ compilation test :-(
23096 if test ! -f gnu/classpath/Configuration.java; then
23097   test -d gnu || mkdir gnu
23098   test -d gnu/classpath || mkdir gnu/classpath
23099   # Note that it is not crucial that all the values here be correct.
23100   sed -e "s,@prefix@,$expanded_prefix," \
23101       -e "s,@VERSION@,$VERSION," \
23102       -e "s,@LIBDEBUG@,false," \
23103       -e "s,@INIT_LOAD_LIBRARY@,false," \
23104       -e "s,@@,$LIBGCJDEBUG," \
23105       -e "s,@default_toolkit@,$TOOLKIT," \
23106       -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
23107       -e "s,@GTK_CAIRO_ENABLED@,false," \
23108       -e "s,@ECJ_JAR@,," \
23109       -e "s,@WANT_NATIVE_BIG_INTEGER@,false," \
23110         < $srcdir/classpath/gnu/classpath/Configuration.java.in \
23111         > gnu/classpath/Configuration.java
23112   # We do not want to redirect the output of the grep below to /dev/null,
23113   # but we add /dev/null to the input list so that grep will print the
23114   # filename of Configuration.java in case it finds any matches.
23115   if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
23116     as_fn_error "configure.ac is missing the substitutions above" "$LINENO" 5
23117   fi
23118 fi
23119
23120
23121 if test -n "$ac_tool_prefix"; then
23122   for ac_prog in gcj
23123   do
23124     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23125 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23127 $as_echo_n "checking for $ac_word... " >&6; }
23128 if test "${ac_cv_prog_GCJ+set}" = set; then :
23129   $as_echo_n "(cached) " >&6
23130 else
23131   if test -n "$GCJ"; then
23132   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
23133 else
23134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23135 for as_dir in $PATH
23136 do
23137   IFS=$as_save_IFS
23138   test -z "$as_dir" && as_dir=.
23139     for ac_exec_ext in '' $ac_executable_extensions; do
23140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23141     ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
23142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23143     break 2
23144   fi
23145 done
23146   done
23147 IFS=$as_save_IFS
23148
23149 fi
23150 fi
23151 GCJ=$ac_cv_prog_GCJ
23152 if test -n "$GCJ"; then
23153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
23154 $as_echo "$GCJ" >&6; }
23155 else
23156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23157 $as_echo "no" >&6; }
23158 fi
23159
23160
23161     test -n "$GCJ" && break
23162   done
23163 fi
23164 if test -z "$GCJ"; then
23165   ac_ct_GCJ=$GCJ
23166   for ac_prog in gcj
23167 do
23168   # Extract the first word of "$ac_prog", so it can be a program name with args.
23169 set dummy $ac_prog; ac_word=$2
23170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23171 $as_echo_n "checking for $ac_word... " >&6; }
23172 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
23173   $as_echo_n "(cached) " >&6
23174 else
23175   if test -n "$ac_ct_GCJ"; then
23176   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
23177 else
23178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23179 for as_dir in $PATH
23180 do
23181   IFS=$as_save_IFS
23182   test -z "$as_dir" && as_dir=.
23183     for ac_exec_ext in '' $ac_executable_extensions; do
23184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23185     ac_cv_prog_ac_ct_GCJ="$ac_prog"
23186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23187     break 2
23188   fi
23189 done
23190   done
23191 IFS=$as_save_IFS
23192
23193 fi
23194 fi
23195 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
23196 if test -n "$ac_ct_GCJ"; then
23197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
23198 $as_echo "$ac_ct_GCJ" >&6; }
23199 else
23200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23201 $as_echo "no" >&6; }
23202 fi
23203
23204
23205   test -n "$ac_ct_GCJ" && break
23206 done
23207
23208   if test "x$ac_ct_GCJ" = x; then
23209     GCJ="gcj"
23210   else
23211     case $cross_compiling:$ac_tool_warned in
23212 yes:)
23213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23215 ac_tool_warned=yes ;;
23216 esac
23217     GCJ=$ac_ct_GCJ
23218   fi
23219 fi
23220
23221 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
23222 if test "x${GCJFLAGS-unset}" = xunset; then
23223    GCJFLAGS="-g -O2"
23224 fi
23225
23226
23227 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
23228
23229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23230 $as_echo_n "checking dependency style of $depcc... " >&6; }
23231 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
23232   $as_echo_n "(cached) " >&6
23233 else
23234   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23235   # We make a subdir and do the tests there.  Otherwise we can end up
23236   # making bogus files that we don't know about and never remove.  For
23237   # instance it was reported that on HP-UX the gcc test will end up
23238   # making a dummy file named `D' -- because `-MD' means `put the output
23239   # in D'.
23240   mkdir conftest.dir
23241   # Copy depcomp to subdir because otherwise we won't find it if we're
23242   # using a relative directory.
23243   cp "$am_depcomp" conftest.dir
23244   cd conftest.dir
23245   # We will build objects and dependencies in a subdirectory because
23246   # it helps to detect inapplicable dependency modes.  For instance
23247   # both Tru64's cc and ICC support -MD to output dependencies as a
23248   # side effect of compilation, but ICC will put the dependencies in
23249   # the current directory while Tru64 will put them in the object
23250   # directory.
23251   mkdir sub
23252
23253   am_cv_GCJ_dependencies_compiler_type=none
23254   if test "$am_compiler_list" = ""; then
23255      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23256   fi
23257   am__universal=false
23258
23259
23260   for depmode in $am_compiler_list; do
23261     # Setup a source with many dependencies, because some compilers
23262     # like to wrap large dependency lists on column 80 (with \), and
23263     # we should not choose a depcomp mode which is confused by this.
23264     #
23265     # We need to recreate these files for each test, as the compiler may
23266     # overwrite some of them when testing with obscure command lines.
23267     # This happens at least with the AIX C compiler.
23268     : > sub/conftest.c
23269     for i in 1 2 3 4 5 6; do
23270       echo '#include "conftst'$i'.h"' >> sub/conftest.c
23271       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23272       # Solaris 8's {/usr,}/bin/sh.
23273       touch sub/conftst$i.h
23274     done
23275     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23276
23277     # We check with `-c' and `-o' for the sake of the "dashmstdout"
23278     # mode.  It turns out that the SunPro C++ compiler does not properly
23279     # handle `-M -o', and we need to detect this.  Also, some Intel
23280     # versions had trouble with output in subdirs
23281     am__obj=sub/conftest.${OBJEXT-o}
23282     am__minus_obj="-o $am__obj"
23283     case $depmode in
23284     gcc)
23285       # This depmode causes a compiler race in universal mode.
23286       test "$am__universal" = false || continue
23287       ;;
23288     nosideeffect)
23289       # after this tag, mechanisms are not by side-effect, so they'll
23290       # only be used when explicitly requested
23291       if test "x$enable_dependency_tracking" = xyes; then
23292         continue
23293       else
23294         break
23295       fi
23296       ;;
23297     msvisualcpp | msvcmsys)
23298       # This compiler won't grok `-c -o', but also, the minuso test has
23299       # not run yet.  These depmodes are late enough in the game, and
23300       # so weak that their functioning should not be impacted.
23301       am__obj=conftest.${OBJEXT-o}
23302       am__minus_obj=
23303       ;;
23304     none) break ;;
23305     esac
23306     if depmode=$depmode \
23307        source=sub/conftest.c object=$am__obj \
23308        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23309        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23310          >/dev/null 2>conftest.err &&
23311        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23312        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23313        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23314        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23315       # icc doesn't choke on unknown options, it will just issue warnings
23316       # or remarks (even with -Werror).  So we grep stderr for any message
23317       # that says an option was ignored or not supported.
23318       # When given -MP, icc 7.0 and 7.1 complain thusly:
23319       #   icc: Command line warning: ignoring option '-M'; no argument required
23320       # The diagnosis changed in icc 8.0:
23321       #   icc: Command line remark: option '-MP' not supported
23322       if (grep 'ignoring option' conftest.err ||
23323           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23324         am_cv_GCJ_dependencies_compiler_type=$depmode
23325         break
23326       fi
23327     fi
23328   done
23329
23330   cd ..
23331   rm -rf conftest.dir
23332 else
23333   am_cv_GCJ_dependencies_compiler_type=none
23334 fi
23335
23336 fi
23337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
23338 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
23339 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
23340
23341  if
23342   test "x$enable_dependency_tracking" != xno \
23343   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
23344   am__fastdepGCJ_TRUE=
23345   am__fastdepGCJ_FALSE='#'
23346 else
23347   am__fastdepGCJ_TRUE='#'
23348   am__fastdepGCJ_FALSE=
23349 fi
23350
23351
23352
23353
23354 # Now remove it.
23355 rm -f gnu/classpath/Configuration.java
23356
23357 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
23358
23359 # The cast to long int works around a bug in the HP C Compiler
23360 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23361 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23362 # This bug is HP SR number 8606223364.
23363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
23364 $as_echo_n "checking size of void *... " >&6; }
23365 if test "${ac_cv_sizeof_void_p+set}" = set; then :
23366   $as_echo_n "(cached) " >&6
23367 else
23368   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
23369
23370 else
23371   if test "$ac_cv_type_void_p" = yes; then
23372      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23374 { as_fn_set_status 77
23375 as_fn_error "cannot compute sizeof (void *)
23376 See \`config.log' for more details." "$LINENO" 5; }; }
23377    else
23378      ac_cv_sizeof_void_p=0
23379    fi
23380 fi
23381
23382 fi
23383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
23384 $as_echo "$ac_cv_sizeof_void_p" >&6; }
23385
23386
23387
23388 cat >>confdefs.h <<_ACEOF
23389 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23390 _ACEOF
23391
23392
23393
23394  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23395 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23396 if test "${ac_cv_c_bigendian+set}" = set; then :
23397   $as_echo_n "(cached) " >&6
23398 else
23399   ac_cv_c_bigendian=unknown
23400     # See if we're dealing with a universal compiler.
23401     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23402 /* end confdefs.h.  */
23403 #ifndef __APPLE_CC__
23404                not a universal capable compiler
23405              #endif
23406              typedef int dummy;
23407
23408 _ACEOF
23409 if ac_fn_c_try_compile "$LINENO"; then :
23410
23411         # Check for potential -arch flags.  It is not universal unless
23412         # there are at least two -arch flags with different values.
23413         ac_arch=
23414         ac_prev=
23415         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23416          if test -n "$ac_prev"; then
23417            case $ac_word in
23418              i?86 | x86_64 | ppc | ppc64)
23419                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23420                  ac_arch=$ac_word
23421                else
23422                  ac_cv_c_bigendian=universal
23423                  break
23424                fi
23425                ;;
23426            esac
23427            ac_prev=
23428          elif test "x$ac_word" = "x-arch"; then
23429            ac_prev=arch
23430          fi
23431        done
23432 fi
23433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23434     if test $ac_cv_c_bigendian = unknown; then
23435       # See if sys/param.h defines the BYTE_ORDER macro.
23436       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23437 /* end confdefs.h.  */
23438 #include <sys/types.h>
23439              #include <sys/param.h>
23440
23441 int
23442 main ()
23443 {
23444 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23445                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23446                      && LITTLE_ENDIAN)
23447               bogus endian macros
23448              #endif
23449
23450   ;
23451   return 0;
23452 }
23453 _ACEOF
23454 if ac_fn_c_try_compile "$LINENO"; then :
23455   # It does; now see whether it defined to BIG_ENDIAN or not.
23456          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23457 /* end confdefs.h.  */
23458 #include <sys/types.h>
23459                 #include <sys/param.h>
23460
23461 int
23462 main ()
23463 {
23464 #if BYTE_ORDER != BIG_ENDIAN
23465                  not big endian
23466                 #endif
23467
23468   ;
23469   return 0;
23470 }
23471 _ACEOF
23472 if ac_fn_c_try_compile "$LINENO"; then :
23473   ac_cv_c_bigendian=yes
23474 else
23475   ac_cv_c_bigendian=no
23476 fi
23477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23478 fi
23479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23480     fi
23481     if test $ac_cv_c_bigendian = unknown; then
23482       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23483       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23484 /* end confdefs.h.  */
23485 #include <limits.h>
23486
23487 int
23488 main ()
23489 {
23490 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23491               bogus endian macros
23492              #endif
23493
23494   ;
23495   return 0;
23496 }
23497 _ACEOF
23498 if ac_fn_c_try_compile "$LINENO"; then :
23499   # It does; now see whether it defined to _BIG_ENDIAN or not.
23500          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23501 /* end confdefs.h.  */
23502 #include <limits.h>
23503
23504 int
23505 main ()
23506 {
23507 #ifndef _BIG_ENDIAN
23508                  not big endian
23509                 #endif
23510
23511   ;
23512   return 0;
23513 }
23514 _ACEOF
23515 if ac_fn_c_try_compile "$LINENO"; then :
23516   ac_cv_c_bigendian=yes
23517 else
23518   ac_cv_c_bigendian=no
23519 fi
23520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23521 fi
23522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23523     fi
23524     if test $ac_cv_c_bigendian = unknown; then
23525       # Compile a test program.
23526       if test "$cross_compiling" = yes; then :
23527   # Try to guess by grepping values from an object file.
23528          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23529 /* end confdefs.h.  */
23530 short int ascii_mm[] =
23531                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23532                 short int ascii_ii[] =
23533                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23534                 int use_ascii (int i) {
23535                   return ascii_mm[i] + ascii_ii[i];
23536                 }
23537                 short int ebcdic_ii[] =
23538                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23539                 short int ebcdic_mm[] =
23540                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23541                 int use_ebcdic (int i) {
23542                   return ebcdic_mm[i] + ebcdic_ii[i];
23543                 }
23544                 extern int foo;
23545
23546 int
23547 main ()
23548 {
23549 return use_ascii (foo) == use_ebcdic (foo);
23550   ;
23551   return 0;
23552 }
23553 _ACEOF
23554 if ac_fn_c_try_compile "$LINENO"; then :
23555   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23556               ac_cv_c_bigendian=yes
23557             fi
23558             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23559               if test "$ac_cv_c_bigendian" = unknown; then
23560                 ac_cv_c_bigendian=no
23561               else
23562                 # finding both strings is unlikely to happen, but who knows?
23563                 ac_cv_c_bigendian=unknown
23564               fi
23565             fi
23566 fi
23567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23568 else
23569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23570 /* end confdefs.h.  */
23571 $ac_includes_default
23572 int
23573 main ()
23574 {
23575
23576              /* Are we little or big endian?  From Harbison&Steele.  */
23577              union
23578              {
23579                long int l;
23580                char c[sizeof (long int)];
23581              } u;
23582              u.l = 1;
23583              return u.c[sizeof (long int) - 1] == 1;
23584
23585   ;
23586   return 0;
23587 }
23588 _ACEOF
23589 if ac_fn_c_try_run "$LINENO"; then :
23590   ac_cv_c_bigendian=no
23591 else
23592   ac_cv_c_bigendian=yes
23593 fi
23594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23595   conftest.$ac_objext conftest.beam conftest.$ac_ext
23596 fi
23597
23598     fi
23599 fi
23600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23601 $as_echo "$ac_cv_c_bigendian" >&6; }
23602  case $ac_cv_c_bigendian in #(
23603    yes)
23604      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23605 ;; #(
23606    no)
23607       ;; #(
23608    universal)
23609
23610 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23611
23612      ;; #(
23613    *)
23614      as_fn_error "unknown endianness
23615  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23616  esac
23617
23618
23619 ZLIBS=
23620 SYS_ZLIBS=
23621 ZINCS=
23622
23623 if test -z "$ZLIBSPEC"; then
23624    # Use zlib from the GCC tree.
23625    ZINCS='-I$(top_srcdir)/../zlib'
23626    ZLIBS=../zlib/libzgcj_convenience.la
23627 else
23628    # System's zlib.
23629    SYS_ZLIBS="$ZLIBSPEC"
23630 fi
23631
23632
23633
23634
23635
23636
23637
23638
23639
23640
23641  if test "$NATIVE" = yes; then
23642   NATIVE_TRUE=
23643   NATIVE_FALSE='#'
23644 else
23645   NATIVE_TRUE='#'
23646   NATIVE_FALSE=
23647 fi
23648
23649  if test "$enable_shared" = yes; then
23650   ENABLE_SHARED_TRUE=
23651   ENABLE_SHARED_FALSE='#'
23652 else
23653   ENABLE_SHARED_TRUE='#'
23654   ENABLE_SHARED_FALSE=
23655 fi
23656
23657  if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
23658   NEEDS_DATA_START_TRUE=
23659   NEEDS_DATA_START_FALSE='#'
23660 else
23661   NEEDS_DATA_START_TRUE='#'
23662   NEEDS_DATA_START_FALSE=
23663 fi
23664
23665  if test -z "${with_multisubdir}"; then
23666   INSTALL_BINARIES_TRUE=
23667   INSTALL_BINARIES_FALSE='#'
23668 else
23669   INSTALL_BINARIES_TRUE='#'
23670   INSTALL_BINARIES_FALSE=
23671 fi
23672
23673
23674
23675 # Process the option "--enable-version-specific-runtime-libs"
23676 # Calculate toolexeclibdir
23677 case ${version_specific_libs} in
23678   yes)
23679     # Need the gcc compiler version to know where to install libraries
23680     # and header files if --enable-version-specific-runtime-libs option
23681     # is selected.
23682     includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
23683     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
23684     toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
23685     toolexeclibdir=$toolexecmainlibdir
23686     ;;
23687   no)
23688     if test -n "$with_cross_host" &&
23689        test x"$with_cross_host" != x"no"; then
23690       # Install a library built with a cross compiler in tooldir, not libdir.
23691       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
23692       toolexecmainlibdir='$(toolexecdir)/lib'
23693     else
23694       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
23695       toolexecmainlibdir='$(libdir)'
23696     fi
23697     multi_os_directory=`$CC -print-multi-os-directory`
23698     case $multi_os_directory in
23699       .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
23700       *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
23701     esac
23702     ;;
23703 esac
23704
23705
23706
23707
23708 # Determine gcj and libgcj version number.
23709 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
23710 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
23711 GCJVERSION=$gcjversion
23712
23713
23714 cat >>confdefs.h <<_ACEOF
23715 #define GCJVERSION "$GCJVERSION"
23716 _ACEOF
23717
23718
23719 # Determine where the standard .db file and GNU Classpath JNI
23720 # libraries are found.
23721 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
23722 multi_os_directory=`$CC -print-multi-os-directory`
23723 case $multi_os_directory in
23724   .)
23725    dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
23726    ;;
23727   *)
23728    dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
23729    ;;
23730 esac
23731
23732
23733
23734
23735 $as_echo "#define JV_VERSION \"1.5.0\"" >>confdefs.h
23736
23737
23738 $as_echo "#define JV_API_VERSION \"1.5\"" >>confdefs.h
23739
23740
23741
23742 case "${with_gxx_include_dir}" in
23743   yes)
23744     as_fn_error "--with-gxx-include-dir=[dir] requires a directory" "$LINENO" 5
23745     ;;
23746   no | "")
23747     case "${enable_version_specific_runtime_libs}" in
23748       yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
23749       *)
23750         libstdcxx_incdir='c++/$(gcc_version)'
23751         gxx_include_dir='include/$(libstdcxx_incdir)'
23752         if test -n "$with_cross_host" &&
23753            test x"$with_cross_host" != x"no"; then
23754           gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
23755         else
23756           gxx_include_dir='${prefix}/'"$gxx_include_dir"
23757         fi;;
23758     esac ;;
23759   *) gxx_include_dir=${with_gxx_include_dir} ;;
23760 esac
23761
23762
23763
23764
23765 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
23766 # On that system, sys/ioctl.h will not include sys/filio.h unless
23767 # BSD_COMP is defined; just including sys/filio.h is simpler.
23768 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
23769 # for now.  If you change this, you also must update natFile.cc.
23770 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
23771                   sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
23772                   sys/socket.h netinet/in.h arpa/inet.h netdb.h \
23773                   pwd.h sys/config.h stdint.h langinfo.h locale.h \
23774                   dirent.h sys/rw_lock.h magic.h ifaddrs.h
23775 do :
23776   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23777 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23778 eval as_val=\$$as_ac_Header
23779    if test "x$as_val" = x""yes; then :
23780   cat >>confdefs.h <<_ACEOF
23781 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23782 _ACEOF
23783
23784 fi
23785
23786 done
23787
23788
23789 # sys/socket.h is a prerequisite for net/if.h on Solaris.
23790 for ac_header in net/if.h
23791 do :
23792   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
23793 #ifdef HAVE_SYS_SOCKET_H
23794 #include <sys/socket.h>
23795 #endif
23796
23797 "
23798 if test "x$ac_cv_header_net_if_h" = x""yes; then :
23799   cat >>confdefs.h <<_ACEOF
23800 #define HAVE_NET_IF_H 1
23801 _ACEOF
23802
23803 fi
23804
23805 done
23806
23807
23808 for ac_header in inttypes.h
23809 do :
23810   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
23811 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
23812   cat >>confdefs.h <<_ACEOF
23813 #define HAVE_INTTYPES_H 1
23814 _ACEOF
23815
23816
23817 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
23818
23819
23820 $as_echo "#define JV_HAVE_INTTYPES_H 1" >>confdefs.h
23821
23822
23823 fi
23824
23825 done
23826
23827
23828 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23829 if test "x$ac_cv_type_ssize_t" = x""yes; then :
23830
23831 else
23832
23833 cat >>confdefs.h <<_ACEOF
23834 #define ssize_t int
23835 _ACEOF
23836
23837 fi
23838
23839 ac_fn_c_check_type "$LINENO" "magic_t" "ac_cv_type_magic_t" "
23840 #ifdef HAVE_MAGIC_H
23841 #include <magic.h>
23842 #endif
23843 "
23844 if test "x$ac_cv_type_magic_t" = x""yes; then :
23845
23846
23847 $as_echo "#define HAVE_MAGIC_T 1" >>confdefs.h
23848
23849 fi
23850
23851
23852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5
23853 $as_echo_n "checking for in_addr_t... " >&6; }
23854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23855 /* end confdefs.h.  */
23856 #include <sys/types.h>
23857 #if STDC_HEADERS
23858 #include <stdlib.h>
23859 #include <stddef.h>
23860 #endif
23861 #if HAVE_NETINET_IN_H
23862 #include <netinet/in.h>
23863 #endif
23864 int
23865 main ()
23866 {
23867 in_addr_t foo;
23868   ;
23869   return 0;
23870 }
23871 _ACEOF
23872 if ac_fn_c_try_compile "$LINENO"; then :
23873
23874 $as_echo "#define HAVE_IN_ADDR_T 1" >>confdefs.h
23875
23876    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23877 $as_echo "yes" >&6; }
23878 else
23879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23880 $as_echo "no" >&6; }
23881 fi
23882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23883
23884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ip_mreq is in netinet/in.h" >&5
23885 $as_echo_n "checking whether struct ip_mreq is in netinet/in.h... " >&6; }
23886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23887 /* end confdefs.h.  */
23888 #include <netinet/in.h>
23889 int
23890 main ()
23891 {
23892 struct ip_mreq mreq;
23893   ;
23894   return 0;
23895 }
23896 _ACEOF
23897 if ac_fn_c_try_compile "$LINENO"; then :
23898
23899 $as_echo "#define HAVE_STRUCT_IP_MREQ 1" >>confdefs.h
23900
23901    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23902 $as_echo "yes" >&6; }
23903 else
23904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23905 $as_echo "no" >&6; }
23906 fi
23907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23908
23909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ipv6_mreq is in netinet/in.h" >&5
23910 $as_echo_n "checking whether struct ipv6_mreq is in netinet/in.h... " >&6; }
23911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23912 /* end confdefs.h.  */
23913 #include <netinet/in.h>
23914 int
23915 main ()
23916 {
23917 struct ipv6_mreq mreq6;
23918   ;
23919   return 0;
23920 }
23921 _ACEOF
23922 if ac_fn_c_try_compile "$LINENO"; then :
23923
23924 $as_echo "#define HAVE_STRUCT_IPV6_MREQ 1" >>confdefs.h
23925
23926    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23927 $as_echo "yes" >&6; }
23928 else
23929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23930 $as_echo "no" >&6; }
23931 fi
23932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23933
23934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
23935 $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
23936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23937 /* end confdefs.h.  */
23938 #include <netinet/in.h>
23939 int
23940 main ()
23941 {
23942 struct sockaddr_in6 addr6;
23943   ;
23944   return 0;
23945 }
23946 _ACEOF
23947 if ac_fn_c_try_compile "$LINENO"; then :
23948
23949 $as_echo "#define HAVE_INET6 1" >>confdefs.h
23950
23951    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23952 $as_echo "yes" >&6; }
23953 else
23954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23955 $as_echo "no" >&6; }
23956 fi
23957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23958
23959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
23960 $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
23961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23962 /* end confdefs.h.  */
23963 #define _POSIX_PII_SOCKET
23964 #include <sys/types.h>
23965 #include <sys/socket.h>
23966 int
23967 main ()
23968 {
23969 socklen_t x = 5;
23970   ;
23971   return 0;
23972 }
23973 _ACEOF
23974 if ac_fn_c_try_compile "$LINENO"; then :
23975
23976 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
23977
23978    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23979 $as_echo "yes" >&6; }
23980 else
23981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23982 $as_echo "no" >&6; }
23983 fi
23984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23985
23986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
23987 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
23988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23989 /* end confdefs.h.  */
23990 #include <time.h>
23991 int
23992 main ()
23993 {
23994 struct tm tim; tim.tm_gmtoff = 0;
23995   ;
23996   return 0;
23997 }
23998 _ACEOF
23999 if ac_fn_c_try_compile "$LINENO"; then :
24000
24001 $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
24002
24003    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24004 $as_echo "yes" >&6; }
24005 else
24006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24007 $as_echo "no" >&6; }
24008    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
24009 $as_echo_n "checking for global timezone variable... " >&6; }
24010                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24011 /* end confdefs.h.  */
24012 #include <time.h>
24013 int
24014 main ()
24015 {
24016 void i(){long z2 = 2*timezone;}
24017   ;
24018   return 0;
24019 }
24020 _ACEOF
24021 if ac_fn_c_try_compile "$LINENO"; then :
24022
24023 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
24024
24025       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24026 $as_echo "yes" >&6; }
24027 else
24028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24029 $as_echo "no" >&6; }
24030        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
24031 $as_echo_n "checking for global _timezone variable... " >&6; }
24032               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24033 /* end confdefs.h.  */
24034 #include <time.h>
24035 int
24036 main ()
24037 {
24038 long z2 = _timezone;
24039   ;
24040   return 0;
24041 }
24042 _ACEOF
24043 if ac_fn_c_try_compile "$LINENO"; then :
24044
24045 $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
24046
24047           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24048 $as_echo "yes" >&6; }
24049 else
24050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24051 $as_echo "no" >&6; }
24052 fi
24053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24054 fi
24055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24056 fi
24057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24058
24059 for ac_prog in perl
24060 do
24061   # Extract the first word of "$ac_prog", so it can be a program name with args.
24062 set dummy $ac_prog; ac_word=$2
24063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24064 $as_echo_n "checking for $ac_word... " >&6; }
24065 if test "${ac_cv_prog_PERL+set}" = set; then :
24066   $as_echo_n "(cached) " >&6
24067 else
24068   if test -n "$PERL"; then
24069   ac_cv_prog_PERL="$PERL" # Let the user override the test.
24070 else
24071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24072 for as_dir in $PATH
24073 do
24074   IFS=$as_save_IFS
24075   test -z "$as_dir" && as_dir=.
24076     for ac_exec_ext in '' $ac_executable_extensions; do
24077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24078     ac_cv_prog_PERL="$ac_prog"
24079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24080     break 2
24081   fi
24082 done
24083   done
24084 IFS=$as_save_IFS
24085
24086 fi
24087 fi
24088 PERL=$ac_cv_prog_PERL
24089 if test -n "$PERL"; then
24090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
24091 $as_echo "$PERL" >&6; }
24092 else
24093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24094 $as_echo "no" >&6; }
24095 fi
24096
24097
24098   test -n "$PERL" && break
24099 done
24100 test -n "$PERL" || PERL="false"
24101
24102
24103 SYSDEP_SOURCES=
24104 SIGNAL_HANDLER_AUX=
24105
24106 case "${host}" in
24107  i?86-*-linux*)
24108     SIGNAL_HANDLER=include/i386-signal.h
24109     ;;
24110  sparc*-sun-solaris*)
24111     SIGNAL_HANDLER=include/sparc-signal.h
24112     ;;
24113 # ia64-*)
24114 #    SYSDEP_SOURCES=sysdep/ia64.c
24115 #    test -d sysdep || mkdir sysdep
24116 #    ;;
24117  hppa*-*-linux*)
24118     SIGNAL_HANDLER=include/pa-signal.h
24119     ;;
24120  hppa*-hp-hpux*)
24121     SIGNAL_HANDLER=include/hppa-signal.h
24122     ;;
24123  ia64-*-linux*)
24124     SIGNAL_HANDLER=include/dwarf2-signal.h
24125     ;;
24126  powerpc*-*-linux*)
24127     SIGNAL_HANDLER=include/powerpc-signal.h
24128     ;;
24129  alpha*-*-linux*)
24130     SIGNAL_HANDLER=include/dwarf2-signal.h
24131     ;;
24132  s390*-*-linux*)
24133     SIGNAL_HANDLER=include/s390-signal.h
24134     ;;
24135  x86_64*-*-linux*)
24136     SIGNAL_HANDLER=include/x86_64-signal.h
24137     SIGNAL_HANDLER_AUX=include/i386-signal.h
24138     ;;
24139  sparc*-*-linux*)
24140     SIGNAL_HANDLER=include/dwarf2-signal.h
24141     ;;
24142  sh*-*-linux*)
24143     SIGNAL_HANDLER=include/sh-signal.h
24144     ;;
24145  *mingw*)
24146     SIGNAL_HANDLER=include/win32-signal.h
24147     ;;
24148  mips*-*-linux*)
24149     SIGNAL_HANDLER=include/mips-signal.h
24150     ;;
24151  m68*-*-linux*)
24152     SIGNAL_HANDLER=include/dwarf2-signal.h
24153     ;;
24154  powerpc*-*-darwin* | i?86-*-darwin[912]* | x86_64-*-darwin[912]*)
24155     SIGNAL_HANDLER=include/darwin-signal.h
24156     ;;
24157  powerpc*-*-aix*)
24158     SIGNAL_HANDLER=include/aix-signal.h
24159     ;;
24160  *)
24161     SIGNAL_HANDLER=include/default-signal.h
24162     ;;
24163 esac
24164
24165 # If we're using sjlj exceptions, forget what we just learned.
24166 if test "$enable_sjlj_exceptions" = yes; then
24167    SIGNAL_HANDLER=include/default-signal.h
24168    SIGNAL_HANDLER_AUX=
24169 fi
24170
24171
24172
24173 if test -z "$SIGNAL_HANDLER_AUX"; then
24174   SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
24175 fi
24176
24177 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
24178
24179
24180 if test "${multilib}" = "yes"; then
24181   multilib_arg="--enable-multilib"
24182 else
24183   multilib_arg=
24184 fi
24185
24186 # See if we support thread-local storage.
24187
24188
24189    # Check whether --enable-tls was given.
24190 if test "${enable_tls+set}" = set; then :
24191   enableval=$enable_tls;
24192       case "$enableval" in
24193        yes|no) ;;
24194        *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
24195       esac
24196
24197 else
24198   enable_tls=yes
24199 fi
24200
24201
24202   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
24203 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
24204 if test "${gcc_cv_have_tls+set}" = set; then :
24205   $as_echo_n "(cached) " >&6
24206 else
24207
24208     if test "$cross_compiling" = yes; then :
24209                 if test x$gcc_no_link = xyes; then
24210   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24211 fi
24212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24213 /* end confdefs.h.  */
24214 __thread int a; int b; int main() { return a = b; }
24215 _ACEOF
24216 if ac_fn_c_try_link "$LINENO"; then :
24217   chktls_save_LDFLAGS="$LDFLAGS"
24218                           case $host in
24219             *-*-linux*)
24220               LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
24221               ;;
24222           esac
24223           chktls_save_CFLAGS="$CFLAGS"
24224           CFLAGS="-fPIC $CFLAGS"
24225                   if test x$gcc_no_link = xyes; then
24226   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24227 fi
24228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24229 /* end confdefs.h.  */
24230 int f() { return 0; }
24231 _ACEOF
24232 if ac_fn_c_try_link "$LINENO"; then :
24233   if test x$gcc_no_link = xyes; then
24234   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24235 fi
24236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24237 /* end confdefs.h.  */
24238 __thread int a; int b; int f() { return a = b; }
24239 _ACEOF
24240 if ac_fn_c_try_link "$LINENO"; then :
24241   gcc_cv_have_tls=yes
24242 else
24243   gcc_cv_have_tls=no
24244 fi
24245 rm -f core conftest.err conftest.$ac_objext \
24246     conftest$ac_exeext conftest.$ac_ext
24247 else
24248   gcc_cv_have_tls=yes
24249 fi
24250 rm -f core conftest.err conftest.$ac_objext \
24251     conftest$ac_exeext conftest.$ac_ext
24252           CFLAGS="$chktls_save_CFLAGS"
24253           LDFLAGS="$chktls_save_LDFLAGS"
24254 else
24255   gcc_cv_have_tls=no
24256 fi
24257 rm -f core conftest.err conftest.$ac_objext \
24258     conftest$ac_exeext conftest.$ac_ext
24259
24260
24261 else
24262   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24263 /* end confdefs.h.  */
24264 __thread int a; int b; int main() { return a = b; }
24265 _ACEOF
24266 if ac_fn_c_try_run "$LINENO"; then :
24267                       chktls_save_LDFLAGS="$LDFLAGS"
24268       LDFLAGS="-static $LDFLAGS"
24269       if test x$gcc_no_link = xyes; then
24270   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24271 fi
24272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24273 /* end confdefs.h.  */
24274 int main() { return 0; }
24275 _ACEOF
24276 if ac_fn_c_try_link "$LINENO"; then :
24277   if test "$cross_compiling" = yes; then :
24278   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24280 as_fn_error "cannot run test program while cross compiling
24281 See \`config.log' for more details." "$LINENO" 5; }
24282 else
24283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24284 /* end confdefs.h.  */
24285 __thread int a; int b; int main() { return a = b; }
24286 _ACEOF
24287 if ac_fn_c_try_run "$LINENO"; then :
24288   gcc_cv_have_tls=yes
24289 else
24290   gcc_cv_have_tls=no
24291 fi
24292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24293   conftest.$ac_objext conftest.beam conftest.$ac_ext
24294 fi
24295
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       LDFLAGS="$chktls_save_LDFLAGS"
24302       if test $gcc_cv_have_tls = yes; then
24303                                                 chktls_save_CFLAGS="$CFLAGS"
24304         thread_CFLAGS=failed
24305         for flag in '' '-pthread' '-lpthread'; do
24306           CFLAGS="$flag $chktls_save_CFLAGS"
24307           if test x$gcc_no_link = xyes; then
24308   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24309 fi
24310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24311 /* end confdefs.h.  */
24312 #include <pthread.h>
24313                 void *g(void *d) { return NULL; }
24314 int
24315 main ()
24316 {
24317 pthread_t t; pthread_create(&t,NULL,g,NULL);
24318   ;
24319   return 0;
24320 }
24321 _ACEOF
24322 if ac_fn_c_try_link "$LINENO"; then :
24323   thread_CFLAGS="$flag"
24324 fi
24325 rm -f core conftest.err conftest.$ac_objext \
24326     conftest$ac_exeext conftest.$ac_ext
24327           if test "X$thread_CFLAGS" != Xfailed; then
24328             break
24329           fi
24330         done
24331         CFLAGS="$chktls_save_CFLAGS"
24332         if test "X$thread_CFLAGS" != Xfailed; then
24333           CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
24334           if test "$cross_compiling" = yes; then :
24335   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24337 as_fn_error "cannot run test program while cross compiling
24338 See \`config.log' for more details." "$LINENO" 5; }
24339 else
24340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24341 /* end confdefs.h.  */
24342 #include <pthread.h>
24343                 __thread int a;
24344                 static int *a_in_other_thread;
24345                 static void *
24346                 thread_func (void *arg)
24347                 {
24348                   a_in_other_thread = &a;
24349                   return (void *)0;
24350                 }
24351 int
24352 main ()
24353 {
24354 pthread_t thread;
24355                 void *thread_retval;
24356                 int *a_in_main_thread;
24357                 if (pthread_create (&thread, (pthread_attr_t *)0,
24358                                     thread_func, (void *)0))
24359                   return 0;
24360                 a_in_main_thread = &a;
24361                 if (pthread_join (thread, &thread_retval))
24362                   return 0;
24363                 return (a_in_other_thread == a_in_main_thread);
24364   ;
24365   return 0;
24366 }
24367 _ACEOF
24368 if ac_fn_c_try_run "$LINENO"; then :
24369   gcc_cv_have_tls=yes
24370 else
24371   gcc_cv_have_tls=no
24372 fi
24373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24374   conftest.$ac_objext conftest.beam conftest.$ac_ext
24375 fi
24376
24377           CFLAGS="$chktls_save_CFLAGS"
24378         fi
24379       fi
24380 else
24381   gcc_cv_have_tls=no
24382 fi
24383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24384   conftest.$ac_objext conftest.beam conftest.$ac_ext
24385 fi
24386
24387 fi
24388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
24389 $as_echo "$gcc_cv_have_tls" >&6; }
24390   if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
24391
24392 $as_echo "#define HAVE_TLS 1" >>confdefs.h
24393
24394   fi
24395
24396 # For _Unwind_GetIPInfo.
24397
24398
24399 # Check whether --with-system-libunwind was given.
24400 if test "${with_system_libunwind+set}" = set; then :
24401   withval=$with_system_libunwind;
24402 fi
24403
24404   # If system-libunwind was not specifically set, pick a default setting.
24405   if test x$with_system_libunwind = x; then
24406     case ${target} in
24407       ia64-*-hpux*) with_system_libunwind=yes ;;
24408       *) with_system_libunwind=no ;;
24409     esac
24410   fi
24411   # Based on system-libunwind and target, do we have ipinfo?
24412   if  test x$with_system_libunwind = xyes; then
24413     case ${target} in
24414       ia64-*-*) have_unwind_getipinfo=no ;;
24415       *) have_unwind_getipinfo=yes ;;
24416     esac
24417   else
24418     # Darwin before version 9 does not have _Unwind_GetIPInfo.
24419
24420     case ${target} in
24421       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
24422       *) have_unwind_getipinfo=yes ;;
24423     esac
24424
24425   fi
24426
24427   if test x$have_unwind_getipinfo = xyes; then
24428
24429 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
24430
24431   fi
24432
24433
24434 # See if linker supports anonymous version scripts.
24435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous version scripts" >&5
24436 $as_echo_n "checking whether ld supports anonymous version scripts... " >&6; }
24437 if test "${libjava_cv_anon_version_script+set}" = set; then :
24438   $as_echo_n "(cached) " >&6
24439 else
24440   save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
24441    libjava_cv_anon_version_script=no
24442    CFLAGS="$CFLAGS -fPIC"; LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
24443    echo '{ global: globalsymb*; local: *; };' > conftest.map
24444    if test x$gcc_no_link = xyes; then
24445   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24446 fi
24447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24448 /* end confdefs.h.  */
24449 void globalsymbol (void) {} void localsymbol (void) {}
24450 int
24451 main ()
24452 {
24453
24454   ;
24455   return 0;
24456 }
24457 _ACEOF
24458 if ac_fn_c_try_link "$LINENO"; then :
24459   libjava_cv_anon_version_script=yes
24460 fi
24461 rm -f core conftest.err conftest.$ac_objext \
24462     conftest$ac_exeext conftest.$ac_ext
24463    CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
24464
24465 fi
24466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_anon_version_script" >&5
24467 $as_echo "$libjava_cv_anon_version_script" >&6; }
24468  if test "$libjava_cv_anon_version_script" = yes; then
24469   ANONVERSCRIPT_TRUE=
24470   ANONVERSCRIPT_FALSE='#'
24471 else
24472   ANONVERSCRIPT_TRUE='#'
24473   ANONVERSCRIPT_FALSE=
24474 fi
24475
24476
24477 # Check if linker supports static linking on a per library basis
24478 LD_START_STATIC_SPEC=
24479 LD_FINISH_STATIC_SPEC=
24480 if $LD --help 2>&1 | grep -q -e -call_shared ; then
24481   if $LD --help 2>&1 | grep -q -e -non_shared ; then
24482     LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
24483     LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
24484   fi
24485 fi
24486
24487
24488
24489 here=`${PWDCMD-pwd}`
24490
24491
24492 # We get this from the environment.
24493
24494
24495
24496 # Check whether --with-python-dir was given.
24497 if test "${with_python_dir+set}" = set; then :
24498   withval=$with_python_dir; with_python_dir=$withval
24499 else
24500   with_python_dir=""
24501 fi
24502
24503
24504 if test "x${with_python_dir}" = "x"
24505 then
24506   # Needed for installing Python modules during make install.
24507   python_mod_dir="\${prefix}/share/python"
24508   # Needed for substituting into aot-compile*
24509   python_mod_dir_expanded="${expanded_prefix}/share/python"
24510 else
24511   python_mod_dir="\${prefix}${with_python_dir}"
24512   python_mod_dir_expanded="${expanded_prefix}${with_python_dir}"
24513 fi
24514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Python modules dir: ${python_mod_dir_expanded}" >&5
24515 $as_echo "Python modules dir: ${python_mod_dir_expanded}" >&6; };
24516
24517
24518
24519 # needed for aot-compile-rpm
24520 MAKE=`which make`
24521
24522
24523 # Check whether --enable-aot-compile-rpm was given.
24524 if test "${enable_aot_compile_rpm+set}" = set; then :
24525   enableval=$enable_aot_compile_rpm; case "${enableval}" in
24526     yes) AOT_RPM_ENABLED=yes ;;
24527     no)  AOT_RPM_ENABLED=no ;;
24528     *)   as_fn_error "Unknown argument to enable/disable aot-compile-rpm" "$LINENO" 5 ;;
24529   esac
24530 else
24531   AOT_RPM_ENABLED=no
24532
24533 fi
24534
24535  if test "x${AOT_RPM_ENABLED}" = xyes; then
24536   INSTALL_AOT_RPM_TRUE=
24537   INSTALL_AOT_RPM_FALSE='#'
24538 else
24539   INSTALL_AOT_RPM_TRUE='#'
24540   INSTALL_AOT_RPM_FALSE=
24541 fi
24542
24543
24544 # Check whether --enable-java-home was given.
24545 if test "${enable_java_home+set}" = set; then :
24546   enableval=$enable_java_home; case "${enableval}" in
24547     yes) JAVA_HOME_ENABLED=yes ;;
24548     no)  JAVA_HOME_ENABLED=no ;;
24549     *)   as_fn_error "Unknown argument to enable/disable java-home" "$LINENO" 5 ;;
24550   esac
24551 else
24552   JAVA_HOME_ENABLED=no
24553
24554 fi
24555
24556  if test "x${JAVA_HOME_ENABLED}" = xyes; then
24557   CREATE_JAVA_HOME_TRUE=
24558   CREATE_JAVA_HOME_FALSE='#'
24559 else
24560   CREATE_JAVA_HOME_TRUE='#'
24561   CREATE_JAVA_HOME_FALSE=
24562 fi
24563
24564
24565 # Only do these checks if java-home above is enabled.
24566 if test "x${JAVA_HOME_ENABLED}" = xyes
24567 then
24568
24569
24570 # Check whether --with-gcc-suffix was given.
24571 if test "${with_gcc_suffix+set}" = set; then :
24572   withval=$with_gcc_suffix; gcc_suffix=$withval
24573 else
24574   gcc_suffix=""
24575 fi
24576
24577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCC suffix: ${gcc_suffix}" >&5
24578 $as_echo "GCC suffix: ${gcc_suffix}" >&6; }
24579
24580
24581
24582 # Check whether --with-arch-directory was given.
24583 if test "${with_arch_directory+set}" = set; then :
24584   withval=$with_arch_directory; host_cpu=$withval
24585 else
24586   host_cpu=""
24587 fi
24588
24589
24590
24591 # Check whether --with-os-directory was given.
24592 if test "${with_os_directory+set}" = set; then :
24593   withval=$with_os_directory; host_os=$withval
24594 else
24595   host_os=""
24596 fi
24597
24598
24599
24600 # Check whether --with-origin-name was given.
24601 if test "${with_origin_name+set}" = set; then :
24602   withval=$with_origin_name; origin_name=$withval
24603 else
24604   origin_name=gcj${gcc_suffix}
24605 fi
24606
24607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JPackage origin name: ${origin_name}" >&5
24608 $as_echo "JPackage origin name: ${origin_name}" >&6; }
24609
24610
24611 # Check whether --with-arch-suffix was given.
24612 if test "${with_arch_suffix+set}" = set; then :
24613   withval=$with_arch_suffix; arch_suffix=$withval
24614 else
24615   arch_suffix=""
24616 fi
24617
24618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch suffix: ${arch_suffix}" >&5
24619 $as_echo "arch suffix: ${arch_suffix}" >&6; }
24620
24621
24622 # Check whether --with-jvm-root-dir was given.
24623 if test "${with_jvm_root_dir+set}" = set; then :
24624   withval=$with_jvm_root_dir; jvm_root_dir=$withval
24625 else
24626   jvm_root_dir="\${prefix}/lib/jvm"
24627 fi
24628
24629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM root installation directory: ${jvm_root_dir}" >&5
24630 $as_echo "JVM root installation directory: ${jvm_root_dir}" >&6; }
24631
24632
24633 # Check whether --with-jvm-jar-dir was given.
24634 if test "${with_jvm_jar_dir+set}" = set; then :
24635   withval=$with_jvm_jar_dir; jvm_jar_dir=$withval
24636 else
24637   jvm_jar_dir=\${prefix}/lib/jvm-exports
24638 fi
24639
24640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JAR root installation directory: ${jvm_jar_dir}" >&5
24641 $as_echo "JAR root installation directory: ${jvm_jar_dir}" >&6; }
24642
24643   JAVA_VERSION=1.5.0
24644   BUILD_VERSION=0
24645
24646
24647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Java version: ${JAVA_VERSION}" >&5
24648 $as_echo "Java version: ${JAVA_VERSION}" >&6; }
24649
24650   jre_dir=jre
24651   jre_lnk=jre-${JAVA_VERSION}-${origin_name}
24652   sdk_lnk=java-${JAVA_VERSION}-${origin_name}
24653
24654   JVM_ROOT_DIR=${jvm_root_dir}
24655
24656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
24657 $as_echo "JVM ROOT directory: ${JVM_ROOT_DIR}" >&6; }
24658
24659   JVM_JAR_ROOT_DIR=${jvm_jar_dir}
24660
24661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
24662 $as_echo "JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6; }
24663
24664   JVM_JAR_DIR=${jvm_jar_dir}
24665
24666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
24667 $as_echo "JVM JAR directory: ${JVM_JAR_DIR}" >&6; }
24668
24669   JRE_DIR=${jre_dir}
24670
24671
24672   JRE_LNK=${jre_lnk}
24673
24674
24675   SDK_LNK=${sdk_lnk}
24676
24677
24678   SDK_BIN_DIR=${jvm_root_dir}/bin
24679
24680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
24681 $as_echo "SDK tools directory: ${SDK_BIN_DIR}" >&6; }
24682
24683   SDK_LIB_DIR=${jvm_root_dir}/lib
24684
24685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
24686 $as_echo "SDK jar directory: ${SDK_LIB_DIR}" >&6; }
24687
24688   SDK_INCLUDE_DIR=${jvm_root_dir}/include
24689
24690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
24691 $as_echo "SDK include directory: ${SDK_INCLUDE_DIR}" >&6; }
24692
24693   JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
24694
24695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
24696 $as_echo "JRE tools directory: ${JRE_BIN_DIR}" >&6; }
24697
24698   JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
24699
24700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
24701 $as_echo "JRE lib directory: ${JRE_LIB_DIR}" >&6; }
24702
24703   # Find gcj prefix using gcj found in PATH.
24704   gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
24705
24706   # Where do the gcj binaries live?
24707   # For jhbuild based builds, they all live in a sibling of bin called
24708   # gcj-bin.  Check for gcj-bin first, and use bin otherwise.
24709   GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
24710
24711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
24712 $as_echo "GCJ tools directory: ${GCJ_BIN_DIR}" >&6; }
24713
24714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: host is ${host}" >&5
24715 $as_echo "host is ${host}" >&6; }
24716   if test "x${host_cpu}" = "x"
24717   then
24718     case ${host} in
24719       *-mingw* | *-cygwin*)
24720         host_cpu=x86;;
24721       i486-* | i586-* | i686-*)
24722         host_cpu=i386;;
24723       x86_64-*)
24724         host_cpu=amd64;;
24725       *)
24726         host_cpu=${host_cpu};;
24727     esac
24728   fi
24729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch directory: ${host_cpu}" >&5
24730 $as_echo "arch directory: ${host_cpu}" >&6; }
24731   CPU=${host_cpu}
24732
24733
24734   if test "x${host_os}" = "x"
24735   then
24736     case ${host} in
24737       *-mingw* | *-cygwin*)
24738         host_os=win32;;
24739       *-linux*)
24740         host_os=linux;;
24741       *)
24742         host_os=${host_os};;
24743     esac
24744   fi
24745   echo os directory: ${host_os}
24746   OS=${host_os}
24747
24748
24749   # make an expanded $libdir, for substituting into
24750   # scripts (and other non-Makefile things).
24751   LIBDIR=$libdir
24752   if test "x${exec_prefix}" = "xNONE"
24753   then
24754       lib_exec_prefix=$expanded_prefix
24755   else
24756       lib_exec_prefix=$exec_prefix
24757   fi
24758   LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
24759
24760 fi
24761
24762 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"
24763
24764
24765 if test ${multilib} = yes; then
24766   multilib_arg="--enable-multilib"
24767 else
24768   multilib_arg=
24769 fi
24770
24771 ac_config_files="$ac_config_files scripts/jar"
24772
24773 cat >confcache <<\_ACEOF
24774 # This file is a shell script that caches the results of configure
24775 # tests run on this system so they can be shared between configure
24776 # scripts and configure runs, see configure's option --config-cache.
24777 # It is not useful on other systems.  If it contains results you don't
24778 # want to keep, you may remove or edit it.
24779 #
24780 # config.status only pays attention to the cache file if you give it
24781 # the --recheck option to rerun configure.
24782 #
24783 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24784 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24785 # following values.
24786
24787 _ACEOF
24788
24789 # The following way of writing the cache mishandles newlines in values,
24790 # but we know of no workaround that is simple, portable, and efficient.
24791 # So, we kill variables containing newlines.
24792 # Ultrix sh set writes to stderr and can't be redirected directly,
24793 # and sets the high bit in the cache file unless we assign to the vars.
24794 (
24795   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24796     eval ac_val=\$$ac_var
24797     case $ac_val in #(
24798     *${as_nl}*)
24799       case $ac_var in #(
24800       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24801 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24802       esac
24803       case $ac_var in #(
24804       _ | IFS | as_nl) ;; #(
24805       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24806       *) { eval $ac_var=; unset $ac_var;} ;;
24807       esac ;;
24808     esac
24809   done
24810
24811   (set) 2>&1 |
24812     case $as_nl`(ac_space=' '; set) 2>&1` in #(
24813     *${as_nl}ac_space=\ *)
24814       # `set' does not quote correctly, so add quotes: double-quote
24815       # substitution turns \\\\ into \\, and sed turns \\ into \.
24816       sed -n \
24817         "s/'/'\\\\''/g;
24818           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24819       ;; #(
24820     *)
24821       # `set' quotes correctly as required by POSIX, so do not add quotes.
24822       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24823       ;;
24824     esac |
24825     sort
24826 ) |
24827   sed '
24828      /^ac_cv_env_/b end
24829      t clear
24830      :clear
24831      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24832      t end
24833      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24834      :end' >>confcache
24835 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24836   if test -w "$cache_file"; then
24837     test "x$cache_file" != "x/dev/null" &&
24838       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24839 $as_echo "$as_me: updating cache $cache_file" >&6;}
24840     cat confcache >$cache_file
24841   else
24842     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24843 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24844   fi
24845 fi
24846 rm -f confcache
24847
24848 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24849 # Let make expand exec_prefix.
24850 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24851
24852 DEFS=-DHAVE_CONFIG_H
24853
24854 ac_libobjs=
24855 ac_ltlibobjs=
24856 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24857   # 1. Remove the extension, and $U if already installed.
24858   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24859   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24860   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24861   #    will be set to the directory where LIBOBJS objects are built.
24862   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24863   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24864 done
24865 LIBOBJS=$ac_libobjs
24866
24867 LTLIBOBJS=$ac_ltlibobjs
24868
24869
24870 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
24871   as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
24872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24873 fi
24874 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
24875   as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
24876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24877 fi
24878 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24879   as_fn_error "conditional \"AMDEP\" was never defined.
24880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24881 fi
24882 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24883   as_fn_error "conditional \"am__fastdepCC\" was never defined.
24884 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24885 fi
24886 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24887   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
24888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24889 fi
24890  if test -n "$EXEEXT"; then
24891   am__EXEEXT_TRUE=
24892   am__EXEEXT_FALSE='#'
24893 else
24894   am__EXEEXT_TRUE='#'
24895   am__EXEEXT_FALSE=
24896 fi
24897
24898 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24899   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
24900 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24901 fi
24902 if test -z "${BUILD_SUBLIBS_TRUE}" && test -z "${BUILD_SUBLIBS_FALSE}"; then
24903   as_fn_error "conditional \"BUILD_SUBLIBS\" was never defined.
24904 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24905 fi
24906 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
24907   as_fn_error "conditional \"XLIB_AWT\" was never defined.
24908 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24909 fi
24910 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
24911   as_fn_error "conditional \"X_AWT\" was never defined.
24912 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24913 fi
24914 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24915   as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24916 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24917 fi
24918 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24919   as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24921 fi
24922 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
24923   as_fn_error "conditional \"TESTSUBDIR\" was never defined.
24924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24925 fi
24926 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
24927   as_fn_error "conditional \"BUILD_ECJ1\" was never defined.
24928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24929 fi
24930 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
24931   as_fn_error "conditional \"INSTALL_ECJ_JAR\" was never defined.
24932 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24933 fi
24934 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
24935   as_fn_error "conditional \"JAVA_HOME_SET\" was never defined.
24936 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24937 fi
24938 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
24939   as_fn_error "conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
24940 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24941 fi
24942 if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
24943   as_fn_error "conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
24944 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24945 fi
24946 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
24947   as_fn_error "conditional \"INTERPRETER\" was never defined.
24948 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24949 fi
24950 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
24951   as_fn_error "conditional \"USING_WIN32_PLATFORM\" was never defined.
24952 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24953 fi
24954 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
24955   as_fn_error "conditional \"USING_POSIX_PLATFORM\" was never defined.
24956 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24957 fi
24958 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
24959   as_fn_error "conditional \"USING_DARWIN_CRT\" was never defined.
24960 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24961 fi
24962 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
24963   as_fn_error "conditional \"USING_BOEHMGC\" was never defined.
24964 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24965 fi
24966 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
24967   as_fn_error "conditional \"USING_NOGC\" was never defined.
24968 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24969 fi
24970 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
24971   as_fn_error "conditional \"USING_POSIX_THREADS\" was never defined.
24972 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24973 fi
24974 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
24975   as_fn_error "conditional \"USING_WIN32_THREADS\" was never defined.
24976 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24977 fi
24978 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
24979   as_fn_error "conditional \"USING_NO_THREADS\" was never defined.
24980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24981 fi
24982 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
24983   as_fn_error "conditional \"USE_LIBGCJ_BC\" was never defined.
24984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24985 fi
24986 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
24987   as_fn_error "conditional \"USING_GCC\" was never defined.
24988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24989 fi
24990 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24991   as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24992 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24993 fi
24994
24995 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
24996   as_fn_error "conditional \"NATIVE\" was never defined.
24997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24998 fi
24999 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
25000   as_fn_error "conditional \"ENABLE_SHARED\" was never defined.
25001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25002 fi
25003 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
25004   as_fn_error "conditional \"NEEDS_DATA_START\" was never defined.
25005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25006 fi
25007 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
25008   as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
25009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25010 fi
25011 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
25012   as_fn_error "conditional \"ANONVERSCRIPT\" was never defined.
25013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25014 fi
25015 if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
25016   as_fn_error "conditional \"INSTALL_AOT_RPM\" was never defined.
25017 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25018 fi
25019 if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
25020   as_fn_error "conditional \"CREATE_JAVA_HOME\" was never defined.
25021 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25022 fi
25023
25024 : ${CONFIG_STATUS=./config.status}
25025 ac_write_fail=0
25026 ac_clean_files_save=$ac_clean_files
25027 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25028 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25029 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25030 as_write_fail=0
25031 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25032 #! $SHELL
25033 # Generated by $as_me.
25034 # Run this file to recreate the current configuration.
25035 # Compiler output produced by configure, useful for debugging
25036 # configure, is in config.log if it exists.
25037
25038 debug=false
25039 ac_cs_recheck=false
25040 ac_cs_silent=false
25041
25042 SHELL=\${CONFIG_SHELL-$SHELL}
25043 export SHELL
25044 _ASEOF
25045 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25046 ## -------------------- ##
25047 ## M4sh Initialization. ##
25048 ## -------------------- ##
25049
25050 # Be more Bourne compatible
25051 DUALCASE=1; export DUALCASE # for MKS sh
25052 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25053   emulate sh
25054   NULLCMD=:
25055   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25056   # is contrary to our usage.  Disable this feature.
25057   alias -g '${1+"$@"}'='"$@"'
25058   setopt NO_GLOB_SUBST
25059 else
25060   case `(set -o) 2>/dev/null` in #(
25061   *posix*) :
25062     set -o posix ;; #(
25063   *) :
25064      ;;
25065 esac
25066 fi
25067
25068
25069 as_nl='
25070 '
25071 export as_nl
25072 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25073 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25074 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25075 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25076 # Prefer a ksh shell builtin over an external printf program on Solaris,
25077 # but without wasting forks for bash or zsh.
25078 if test -z "$BASH_VERSION$ZSH_VERSION" \
25079     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25080   as_echo='print -r --'
25081   as_echo_n='print -rn --'
25082 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25083   as_echo='printf %s\n'
25084   as_echo_n='printf %s'
25085 else
25086   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25087     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25088     as_echo_n='/usr/ucb/echo -n'
25089   else
25090     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25091     as_echo_n_body='eval
25092       arg=$1;
25093       case $arg in #(
25094       *"$as_nl"*)
25095         expr "X$arg" : "X\\(.*\\)$as_nl";
25096         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25097       esac;
25098       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25099     '
25100     export as_echo_n_body
25101     as_echo_n='sh -c $as_echo_n_body as_echo'
25102   fi
25103   export as_echo_body
25104   as_echo='sh -c $as_echo_body as_echo'
25105 fi
25106
25107 # The user is always right.
25108 if test "${PATH_SEPARATOR+set}" != set; then
25109   PATH_SEPARATOR=:
25110   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25111     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25112       PATH_SEPARATOR=';'
25113   }
25114 fi
25115
25116
25117 # IFS
25118 # We need space, tab and new line, in precisely that order.  Quoting is
25119 # there to prevent editors from complaining about space-tab.
25120 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25121 # splitting by setting IFS to empty value.)
25122 IFS=" ""        $as_nl"
25123
25124 # Find who we are.  Look in the path if we contain no directory separator.
25125 case $0 in #((
25126   *[\\/]* ) as_myself=$0 ;;
25127   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25128 for as_dir in $PATH
25129 do
25130   IFS=$as_save_IFS
25131   test -z "$as_dir" && as_dir=.
25132     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25133   done
25134 IFS=$as_save_IFS
25135
25136      ;;
25137 esac
25138 # We did not find ourselves, most probably we were run as `sh COMMAND'
25139 # in which case we are not to be found in the path.
25140 if test "x$as_myself" = x; then
25141   as_myself=$0
25142 fi
25143 if test ! -f "$as_myself"; then
25144   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25145   exit 1
25146 fi
25147
25148 # Unset variables that we do not need and which cause bugs (e.g. in
25149 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
25150 # suppresses any "Segmentation fault" message there.  '((' could
25151 # trigger a bug in pdksh 5.2.14.
25152 for as_var in BASH_ENV ENV MAIL MAILPATH
25153 do eval test x\${$as_var+set} = xset \
25154   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25155 done
25156 PS1='$ '
25157 PS2='> '
25158 PS4='+ '
25159
25160 # NLS nuisances.
25161 LC_ALL=C
25162 export LC_ALL
25163 LANGUAGE=C
25164 export LANGUAGE
25165
25166 # CDPATH.
25167 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25168
25169
25170 # as_fn_error ERROR [LINENO LOG_FD]
25171 # ---------------------------------
25172 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25173 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25174 # script with status $?, using 1 if that was 0.
25175 as_fn_error ()
25176 {
25177   as_status=$?; test $as_status -eq 0 && as_status=1
25178   if test "$3"; then
25179     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25180     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25181   fi
25182   $as_echo "$as_me: error: $1" >&2
25183   as_fn_exit $as_status
25184 } # as_fn_error
25185
25186
25187 # as_fn_set_status STATUS
25188 # -----------------------
25189 # Set $? to STATUS, without forking.
25190 as_fn_set_status ()
25191 {
25192   return $1
25193 } # as_fn_set_status
25194
25195 # as_fn_exit STATUS
25196 # -----------------
25197 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25198 as_fn_exit ()
25199 {
25200   set +e
25201   as_fn_set_status $1
25202   exit $1
25203 } # as_fn_exit
25204
25205 # as_fn_unset VAR
25206 # ---------------
25207 # Portably unset VAR.
25208 as_fn_unset ()
25209 {
25210   { eval $1=; unset $1;}
25211 }
25212 as_unset=as_fn_unset
25213 # as_fn_append VAR VALUE
25214 # ----------------------
25215 # Append the text in VALUE to the end of the definition contained in VAR. Take
25216 # advantage of any shell optimizations that allow amortized linear growth over
25217 # repeated appends, instead of the typical quadratic growth present in naive
25218 # implementations.
25219 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25220   eval 'as_fn_append ()
25221   {
25222     eval $1+=\$2
25223   }'
25224 else
25225   as_fn_append ()
25226   {
25227     eval $1=\$$1\$2
25228   }
25229 fi # as_fn_append
25230
25231 # as_fn_arith ARG...
25232 # ------------------
25233 # Perform arithmetic evaluation on the ARGs, and store the result in the
25234 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25235 # must be portable across $(()) and expr.
25236 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25237   eval 'as_fn_arith ()
25238   {
25239     as_val=$(( $* ))
25240   }'
25241 else
25242   as_fn_arith ()
25243   {
25244     as_val=`expr "$@" || test $? -eq 1`
25245   }
25246 fi # as_fn_arith
25247
25248
25249 if expr a : '\(a\)' >/dev/null 2>&1 &&
25250    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25251   as_expr=expr
25252 else
25253   as_expr=false
25254 fi
25255
25256 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25257   as_basename=basename
25258 else
25259   as_basename=false
25260 fi
25261
25262 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25263   as_dirname=dirname
25264 else
25265   as_dirname=false
25266 fi
25267
25268 as_me=`$as_basename -- "$0" ||
25269 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25270          X"$0" : 'X\(//\)$' \| \
25271          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25272 $as_echo X/"$0" |
25273     sed '/^.*\/\([^/][^/]*\)\/*$/{
25274             s//\1/
25275             q
25276           }
25277           /^X\/\(\/\/\)$/{
25278             s//\1/
25279             q
25280           }
25281           /^X\/\(\/\).*/{
25282             s//\1/
25283             q
25284           }
25285           s/.*/./; q'`
25286
25287 # Avoid depending upon Character Ranges.
25288 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25289 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25290 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25291 as_cr_digits='0123456789'
25292 as_cr_alnum=$as_cr_Letters$as_cr_digits
25293
25294 ECHO_C= ECHO_N= ECHO_T=
25295 case `echo -n x` in #(((((
25296 -n*)
25297   case `echo 'xy\c'` in
25298   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25299   xy)  ECHO_C='\c';;
25300   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
25301        ECHO_T=' ';;
25302   esac;;
25303 *)
25304   ECHO_N='-n';;
25305 esac
25306
25307 rm -f conf$$ conf$$.exe conf$$.file
25308 if test -d conf$$.dir; then
25309   rm -f conf$$.dir/conf$$.file
25310 else
25311   rm -f conf$$.dir
25312   mkdir conf$$.dir 2>/dev/null
25313 fi
25314 if (echo >conf$$.file) 2>/dev/null; then
25315   if ln -s conf$$.file conf$$ 2>/dev/null; then
25316     as_ln_s='ln -s'
25317     # ... but there are two gotchas:
25318     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25319     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25320     # In both cases, we have to default to `cp -p'.
25321     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25322       as_ln_s='cp -p'
25323   elif ln conf$$.file conf$$ 2>/dev/null; then
25324     as_ln_s=ln
25325   else
25326     as_ln_s='cp -p'
25327   fi
25328 else
25329   as_ln_s='cp -p'
25330 fi
25331 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25332 rmdir conf$$.dir 2>/dev/null
25333
25334
25335 # as_fn_mkdir_p
25336 # -------------
25337 # Create "$as_dir" as a directory, including parents if necessary.
25338 as_fn_mkdir_p ()
25339 {
25340
25341   case $as_dir in #(
25342   -*) as_dir=./$as_dir;;
25343   esac
25344   test -d "$as_dir" || eval $as_mkdir_p || {
25345     as_dirs=
25346     while :; do
25347       case $as_dir in #(
25348       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25349       *) as_qdir=$as_dir;;
25350       esac
25351       as_dirs="'$as_qdir' $as_dirs"
25352       as_dir=`$as_dirname -- "$as_dir" ||
25353 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25354          X"$as_dir" : 'X\(//\)[^/]' \| \
25355          X"$as_dir" : 'X\(//\)$' \| \
25356          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25357 $as_echo X"$as_dir" |
25358     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25359             s//\1/
25360             q
25361           }
25362           /^X\(\/\/\)[^/].*/{
25363             s//\1/
25364             q
25365           }
25366           /^X\(\/\/\)$/{
25367             s//\1/
25368             q
25369           }
25370           /^X\(\/\).*/{
25371             s//\1/
25372             q
25373           }
25374           s/.*/./; q'`
25375       test -d "$as_dir" && break
25376     done
25377     test -z "$as_dirs" || eval "mkdir $as_dirs"
25378   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25379
25380
25381 } # as_fn_mkdir_p
25382 if mkdir -p . 2>/dev/null; then
25383   as_mkdir_p='mkdir -p "$as_dir"'
25384 else
25385   test -d ./-p && rmdir ./-p
25386   as_mkdir_p=false
25387 fi
25388
25389 if test -x / >/dev/null 2>&1; then
25390   as_test_x='test -x'
25391 else
25392   if ls -dL / >/dev/null 2>&1; then
25393     as_ls_L_option=L
25394   else
25395     as_ls_L_option=
25396   fi
25397   as_test_x='
25398     eval sh -c '\''
25399       if test -d "$1"; then
25400         test -d "$1/.";
25401       else
25402         case $1 in #(
25403         -*)set "./$1";;
25404         esac;
25405         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25406         ???[sx]*):;;*)false;;esac;fi
25407     '\'' sh
25408   '
25409 fi
25410 as_executable_p=$as_test_x
25411
25412 # Sed expression to map a string onto a valid CPP name.
25413 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25414
25415 # Sed expression to map a string onto a valid variable name.
25416 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25417
25418
25419 exec 6>&1
25420 ## ----------------------------------- ##
25421 ## Main body of $CONFIG_STATUS script. ##
25422 ## ----------------------------------- ##
25423 _ASEOF
25424 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25425
25426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25427 # Save the log message, to keep $0 and so on meaningful, and to
25428 # report actual input values of CONFIG_FILES etc. instead of their
25429 # values after options handling.
25430 ac_log="
25431 This file was extended by libjava $as_me version-unused, which was
25432 generated by GNU Autoconf 2.64.  Invocation command line was
25433
25434   CONFIG_FILES    = $CONFIG_FILES
25435   CONFIG_HEADERS  = $CONFIG_HEADERS
25436   CONFIG_LINKS    = $CONFIG_LINKS
25437   CONFIG_COMMANDS = $CONFIG_COMMANDS
25438   $ $0 $@
25439
25440 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25441 "
25442
25443 _ACEOF
25444
25445 case $ac_config_files in *"
25446 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25447 esac
25448
25449 case $ac_config_headers in *"
25450 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25451 esac
25452
25453
25454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25455 # Files that config.status was made for.
25456 config_files="$ac_config_files"
25457 config_headers="$ac_config_headers"
25458 config_links="$ac_config_links"
25459 config_commands="$ac_config_commands"
25460
25461 _ACEOF
25462
25463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25464 ac_cs_usage="\
25465 \`$as_me' instantiates files and other configuration actions
25466 from templates according to the current configuration.  Unless the files
25467 and actions are specified as TAGs, all are instantiated by default.
25468
25469 Usage: $0 [OPTION]... [TAG]...
25470
25471   -h, --help       print this help, then exit
25472   -V, --version    print version number and configuration settings, then exit
25473   -q, --quiet, --silent
25474                    do not print progress messages
25475   -d, --debug      don't remove temporary files
25476       --recheck    update $as_me by reconfiguring in the same conditions
25477       --file=FILE[:TEMPLATE]
25478                    instantiate the configuration file FILE
25479       --header=FILE[:TEMPLATE]
25480                    instantiate the configuration header FILE
25481
25482 Configuration files:
25483 $config_files
25484
25485 Configuration headers:
25486 $config_headers
25487
25488 Configuration links:
25489 $config_links
25490
25491 Configuration commands:
25492 $config_commands
25493
25494 Report bugs to the package provider."
25495
25496 _ACEOF
25497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25498 ac_cs_version="\\
25499 libjava config.status version-unused
25500 configured by $0, generated by GNU Autoconf 2.64,
25501   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25502
25503 Copyright (C) 2009 Free Software Foundation, Inc.
25504 This config.status script is free software; the Free Software Foundation
25505 gives unlimited permission to copy, distribute and modify it."
25506
25507 ac_pwd='$ac_pwd'
25508 srcdir='$srcdir'
25509 INSTALL='$INSTALL'
25510 MKDIR_P='$MKDIR_P'
25511 AWK='$AWK'
25512 test -n "\$AWK" || AWK=awk
25513 _ACEOF
25514
25515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25516 # The default lists apply if the user does not specify any file.
25517 ac_need_defaults=:
25518 while test $# != 0
25519 do
25520   case $1 in
25521   --*=*)
25522     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25523     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25524     ac_shift=:
25525     ;;
25526   *)
25527     ac_option=$1
25528     ac_optarg=$2
25529     ac_shift=shift
25530     ;;
25531   esac
25532
25533   case $ac_option in
25534   # Handling of the options.
25535   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25536     ac_cs_recheck=: ;;
25537   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25538     $as_echo "$ac_cs_version"; exit ;;
25539   --debug | --debu | --deb | --de | --d | -d )
25540     debug=: ;;
25541   --file | --fil | --fi | --f )
25542     $ac_shift
25543     case $ac_optarg in
25544     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25545     esac
25546     as_fn_append CONFIG_FILES " '$ac_optarg'"
25547     ac_need_defaults=false;;
25548   --header | --heade | --head | --hea )
25549     $ac_shift
25550     case $ac_optarg in
25551     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25552     esac
25553     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25554     ac_need_defaults=false;;
25555   --he | --h)
25556     # Conflict between --help and --header
25557     as_fn_error "ambiguous option: \`$1'
25558 Try \`$0 --help' for more information.";;
25559   --help | --hel | -h )
25560     $as_echo "$ac_cs_usage"; exit ;;
25561   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25562   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25563     ac_cs_silent=: ;;
25564
25565   # This is an error.
25566   -*) as_fn_error "unrecognized option: \`$1'
25567 Try \`$0 --help' for more information." ;;
25568
25569   *) as_fn_append ac_config_targets " $1"
25570      ac_need_defaults=false ;;
25571
25572   esac
25573   shift
25574 done
25575
25576 ac_configure_extra_args=
25577
25578 if $ac_cs_silent; then
25579   exec 6>/dev/null
25580   ac_configure_extra_args="$ac_configure_extra_args --silent"
25581 fi
25582
25583 _ACEOF
25584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25585 if \$ac_cs_recheck; then
25586   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25587   shift
25588   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25589   CONFIG_SHELL='$SHELL'
25590   export CONFIG_SHELL
25591   exec "\$@"
25592 fi
25593
25594 _ACEOF
25595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25596 exec 5>>config.log
25597 {
25598   echo
25599   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25600 ## Running $as_me. ##
25601 _ASBOX
25602   $as_echo "$ac_log"
25603 } >&5
25604
25605 _ACEOF
25606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25607 #
25608 # INIT-COMMANDS
25609 #
25610
25611 srcdir="$srcdir"
25612 host="$host"
25613 target="$target"
25614 with_multisubdir="$with_multisubdir"
25615 with_multisrctop="$with_multisrctop"
25616 with_target_subdir="$with_target_subdir"
25617 ac_configure_args="${multilib_arg} ${ac_configure_args}"
25618 multi_basedir="$multi_basedir"
25619 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25620 CC="$CC"
25621 CXX="$CXX"
25622 GFORTRAN="$GFORTRAN"
25623 GCJ="$GCJ"
25624 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25625
25626
25627 # The HP-UX ksh and POSIX shell print the target directory to stdout
25628 # if CDPATH is set.
25629 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25630
25631 sed_quote_subst='$sed_quote_subst'
25632 double_quote_subst='$double_quote_subst'
25633 delay_variable_subst='$delay_variable_subst'
25634 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25635 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25636 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25637 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25638 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25639 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25640 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25641 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25642 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25643 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25644 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25645 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25646 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25647 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25648 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25649 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25650 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25651 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25652 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25653 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25654 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25655 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25656 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25657 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25658 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25659 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25660 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25661 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25662 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25663 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25664 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25665 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25666 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25667 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25668 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25669 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25670 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25671 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25672 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25673 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25674 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25675 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25676 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25677 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25678 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25679 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25680 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25681 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25682 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"`'
25683 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25684 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25685 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25686 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25687 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25688 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25689 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25690 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25691 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25692 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25693 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25694 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25695 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25696 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25697 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25698 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25699 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25700 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25701 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25702 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25703 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25704 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25705 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25706 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25707 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25708 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25709 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25710 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25711 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25712 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25713 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25714 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
25715 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25716 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25717 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25718 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25719 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25720 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25721 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25722 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25723 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
25724 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25725 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25726 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25727 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25728 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25729 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25730 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25731 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25732 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25733 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25734 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25735 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25736 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25737 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25738 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25739 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25740 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25741 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25742 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25743 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25744 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25745 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25746 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25747 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25748 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25749 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25750 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25751 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25752 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25753 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25754 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25755 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25756 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25757 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25758 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25759 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25760 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25761 LD_GCJ='`$ECHO "$LD_GCJ" | $SED "$delay_single_quote_subst"`'
25762 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25763 reload_flag_GCJ='`$ECHO "$reload_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25764 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25765 reload_cmds_GCJ='`$ECHO "$reload_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25766 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25767 old_archive_cmds_GCJ='`$ECHO "$old_archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25768 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25769 compiler_GCJ='`$ECHO "$compiler_GCJ" | $SED "$delay_single_quote_subst"`'
25770 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25771 GCC_GCJ='`$ECHO "$GCC_GCJ" | $SED "$delay_single_quote_subst"`'
25772 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25773 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "$lt_prog_compiler_no_builtin_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25774 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25775 lt_prog_compiler_wl_GCJ='`$ECHO "$lt_prog_compiler_wl_GCJ" | $SED "$delay_single_quote_subst"`'
25776 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25777 lt_prog_compiler_pic_GCJ='`$ECHO "$lt_prog_compiler_pic_GCJ" | $SED "$delay_single_quote_subst"`'
25778 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25779 lt_prog_compiler_static_GCJ='`$ECHO "$lt_prog_compiler_static_GCJ" | $SED "$delay_single_quote_subst"`'
25780 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25781 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "$lt_cv_prog_compiler_c_o_GCJ" | $SED "$delay_single_quote_subst"`'
25782 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25783 archive_cmds_need_lc_GCJ='`$ECHO "$archive_cmds_need_lc_GCJ" | $SED "$delay_single_quote_subst"`'
25784 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25785 enable_shared_with_static_runtimes_GCJ='`$ECHO "$enable_shared_with_static_runtimes_GCJ" | $SED "$delay_single_quote_subst"`'
25786 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25787 export_dynamic_flag_spec_GCJ='`$ECHO "$export_dynamic_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25788 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25789 whole_archive_flag_spec_GCJ='`$ECHO "$whole_archive_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25790 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25791 compiler_needs_object_GCJ='`$ECHO "$compiler_needs_object_GCJ" | $SED "$delay_single_quote_subst"`'
25792 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25793 old_archive_from_new_cmds_GCJ='`$ECHO "$old_archive_from_new_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25794 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25795 old_archive_from_expsyms_cmds_GCJ='`$ECHO "$old_archive_from_expsyms_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25796 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25797 archive_cmds_GCJ='`$ECHO "$archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25798 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25799 archive_expsym_cmds_GCJ='`$ECHO "$archive_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25800 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25801 module_cmds_GCJ='`$ECHO "$module_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25802 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25803 module_expsym_cmds_GCJ='`$ECHO "$module_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25804 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25805 with_gnu_ld_GCJ='`$ECHO "$with_gnu_ld_GCJ" | $SED "$delay_single_quote_subst"`'
25806 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25807 allow_undefined_flag_GCJ='`$ECHO "$allow_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25808 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25809 no_undefined_flag_GCJ='`$ECHO "$no_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25810 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25811 hardcode_libdir_flag_spec_GCJ='`$ECHO "$hardcode_libdir_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25812 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
25813 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "$hardcode_libdir_flag_spec_ld_GCJ" | $SED "$delay_single_quote_subst"`'
25814 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25815 hardcode_libdir_separator_GCJ='`$ECHO "$hardcode_libdir_separator_GCJ" | $SED "$delay_single_quote_subst"`'
25816 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25817 hardcode_direct_GCJ='`$ECHO "$hardcode_direct_GCJ" | $SED "$delay_single_quote_subst"`'
25818 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25819 hardcode_direct_absolute_GCJ='`$ECHO "$hardcode_direct_absolute_GCJ" | $SED "$delay_single_quote_subst"`'
25820 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25821 hardcode_minus_L_GCJ='`$ECHO "$hardcode_minus_L_GCJ" | $SED "$delay_single_quote_subst"`'
25822 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25823 hardcode_shlibpath_var_GCJ='`$ECHO "$hardcode_shlibpath_var_GCJ" | $SED "$delay_single_quote_subst"`'
25824 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25825 hardcode_automatic_GCJ='`$ECHO "$hardcode_automatic_GCJ" | $SED "$delay_single_quote_subst"`'
25826 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25827 inherit_rpath_GCJ='`$ECHO "$inherit_rpath_GCJ" | $SED "$delay_single_quote_subst"`'
25828 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25829 link_all_deplibs_GCJ='`$ECHO "$link_all_deplibs_GCJ" | $SED "$delay_single_quote_subst"`'
25830 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
25831 fix_srcfile_path_GCJ='`$ECHO "$fix_srcfile_path_GCJ" | $SED "$delay_single_quote_subst"`'
25832 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25833 always_export_symbols_GCJ='`$ECHO "$always_export_symbols_GCJ" | $SED "$delay_single_quote_subst"`'
25834 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25835 export_symbols_cmds_GCJ='`$ECHO "$export_symbols_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25836 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25837 exclude_expsyms_GCJ='`$ECHO "$exclude_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
25838 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25839 include_expsyms_GCJ='`$ECHO "$include_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
25840 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25841 prelink_cmds_GCJ='`$ECHO "$prelink_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25842 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
25843 file_list_spec_GCJ='`$ECHO "$file_list_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25844 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
25845 hardcode_action_GCJ='`$ECHO "$hardcode_action_GCJ" | $SED "$delay_single_quote_subst"`'
25846 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
25847 compiler_lib_search_dirs_GCJ='`$ECHO "$compiler_lib_search_dirs_GCJ" | $SED "$delay_single_quote_subst"`'
25848 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25849 predep_objects_GCJ='`$ECHO "$predep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
25850 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25851 postdep_objects_GCJ='`$ECHO "$postdep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
25852 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
25853 predeps_GCJ='`$ECHO "$predeps_GCJ" | $SED "$delay_single_quote_subst"`'
25854 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
25855 postdeps_GCJ='`$ECHO "$postdeps_GCJ" | $SED "$delay_single_quote_subst"`'
25856 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
25857 compiler_lib_search_path_GCJ='`$ECHO "$compiler_lib_search_path_GCJ" | $SED "$delay_single_quote_subst"`'
25858
25859 LTCC='$LTCC'
25860 LTCFLAGS='$LTCFLAGS'
25861 compiler='$compiler_DEFAULT'
25862
25863 # A function that is used when there is no print builtin or printf.
25864 func_fallback_echo ()
25865 {
25866   eval 'cat <<_LTECHO_EOF
25867 \$1
25868 _LTECHO_EOF'
25869 }
25870
25871 # Quote evaled strings.
25872 for var in SHELL \
25873 ECHO \
25874 SED \
25875 GREP \
25876 EGREP \
25877 FGREP \
25878 LD \
25879 NM \
25880 LN_S \
25881 lt_SP2NL \
25882 lt_NL2SP \
25883 reload_flag \
25884 OBJDUMP \
25885 deplibs_check_method \
25886 file_magic_cmd \
25887 AR \
25888 AR_FLAGS \
25889 STRIP \
25890 RANLIB \
25891 CC \
25892 CFLAGS \
25893 compiler \
25894 lt_cv_sys_global_symbol_pipe \
25895 lt_cv_sys_global_symbol_to_cdecl \
25896 lt_cv_sys_global_symbol_to_c_name_address \
25897 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25898 lt_prog_compiler_no_builtin_flag \
25899 lt_prog_compiler_wl \
25900 lt_prog_compiler_pic \
25901 lt_prog_compiler_static \
25902 lt_cv_prog_compiler_c_o \
25903 need_locks \
25904 DSYMUTIL \
25905 NMEDIT \
25906 LIPO \
25907 OTOOL \
25908 OTOOL64 \
25909 shrext_cmds \
25910 export_dynamic_flag_spec \
25911 whole_archive_flag_spec \
25912 compiler_needs_object \
25913 with_gnu_ld \
25914 allow_undefined_flag \
25915 no_undefined_flag \
25916 hardcode_libdir_flag_spec \
25917 hardcode_libdir_flag_spec_ld \
25918 hardcode_libdir_separator \
25919 fix_srcfile_path \
25920 exclude_expsyms \
25921 include_expsyms \
25922 file_list_spec \
25923 variables_saved_for_relink \
25924 libname_spec \
25925 library_names_spec \
25926 soname_spec \
25927 install_override_mode \
25928 finish_eval \
25929 old_striplib \
25930 striplib \
25931 compiler_lib_search_dirs \
25932 predep_objects \
25933 postdep_objects \
25934 predeps \
25935 postdeps \
25936 compiler_lib_search_path \
25937 LD_CXX \
25938 LD_GCJ \
25939 reload_flag_CXX \
25940 reload_flag_GCJ \
25941 compiler_CXX \
25942 compiler_GCJ \
25943 lt_prog_compiler_no_builtin_flag_CXX \
25944 lt_prog_compiler_no_builtin_flag_GCJ \
25945 lt_prog_compiler_wl_CXX \
25946 lt_prog_compiler_wl_GCJ \
25947 lt_prog_compiler_pic_CXX \
25948 lt_prog_compiler_pic_GCJ \
25949 lt_prog_compiler_static_CXX \
25950 lt_prog_compiler_static_GCJ \
25951 lt_cv_prog_compiler_c_o_CXX \
25952 lt_cv_prog_compiler_c_o_GCJ \
25953 export_dynamic_flag_spec_CXX \
25954 export_dynamic_flag_spec_GCJ \
25955 whole_archive_flag_spec_CXX \
25956 whole_archive_flag_spec_GCJ \
25957 compiler_needs_object_CXX \
25958 compiler_needs_object_GCJ \
25959 with_gnu_ld_CXX \
25960 with_gnu_ld_GCJ \
25961 allow_undefined_flag_CXX \
25962 allow_undefined_flag_GCJ \
25963 no_undefined_flag_CXX \
25964 no_undefined_flag_GCJ \
25965 hardcode_libdir_flag_spec_CXX \
25966 hardcode_libdir_flag_spec_GCJ \
25967 hardcode_libdir_flag_spec_ld_CXX \
25968 hardcode_libdir_flag_spec_ld_GCJ \
25969 hardcode_libdir_separator_CXX \
25970 hardcode_libdir_separator_GCJ \
25971 fix_srcfile_path_CXX \
25972 fix_srcfile_path_GCJ \
25973 exclude_expsyms_CXX \
25974 exclude_expsyms_GCJ \
25975 include_expsyms_CXX \
25976 include_expsyms_GCJ \
25977 file_list_spec_CXX \
25978 file_list_spec_GCJ \
25979 compiler_lib_search_dirs_CXX \
25980 compiler_lib_search_dirs_GCJ \
25981 predep_objects_CXX \
25982 predep_objects_GCJ \
25983 postdep_objects_CXX \
25984 postdep_objects_GCJ \
25985 predeps_CXX \
25986 predeps_GCJ \
25987 postdeps_CXX \
25988 postdeps_GCJ \
25989 compiler_lib_search_path_CXX \
25990 compiler_lib_search_path_GCJ; do
25991     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25992     *[\\\\\\\`\\"\\\$]*)
25993       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
25994       ;;
25995     *)
25996       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25997       ;;
25998     esac
25999 done
26000
26001 # Double-quote double-evaled strings.
26002 for var in reload_cmds \
26003 old_postinstall_cmds \
26004 old_postuninstall_cmds \
26005 old_archive_cmds \
26006 extract_expsyms_cmds \
26007 old_archive_from_new_cmds \
26008 old_archive_from_expsyms_cmds \
26009 archive_cmds \
26010 archive_expsym_cmds \
26011 module_cmds \
26012 module_expsym_cmds \
26013 export_symbols_cmds \
26014 prelink_cmds \
26015 postinstall_cmds \
26016 postuninstall_cmds \
26017 finish_cmds \
26018 sys_lib_search_path_spec \
26019 sys_lib_dlsearch_path_spec \
26020 reload_cmds_CXX \
26021 reload_cmds_GCJ \
26022 old_archive_cmds_CXX \
26023 old_archive_cmds_GCJ \
26024 old_archive_from_new_cmds_CXX \
26025 old_archive_from_new_cmds_GCJ \
26026 old_archive_from_expsyms_cmds_CXX \
26027 old_archive_from_expsyms_cmds_GCJ \
26028 archive_cmds_CXX \
26029 archive_cmds_GCJ \
26030 archive_expsym_cmds_CXX \
26031 archive_expsym_cmds_GCJ \
26032 module_cmds_CXX \
26033 module_cmds_GCJ \
26034 module_expsym_cmds_CXX \
26035 module_expsym_cmds_GCJ \
26036 export_symbols_cmds_CXX \
26037 export_symbols_cmds_GCJ \
26038 prelink_cmds_CXX \
26039 prelink_cmds_GCJ; do
26040     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26041     *[\\\\\\\`\\"\\\$]*)
26042       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26043       ;;
26044     *)
26045       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26046       ;;
26047     esac
26048 done
26049
26050 ac_aux_dir='$ac_aux_dir'
26051 xsi_shell='$xsi_shell'
26052 lt_shell_append='$lt_shell_append'
26053
26054 # See if we are running on zsh, and set the options which allow our
26055 # commands through without removal of \ escapes INIT.
26056 if test -n "\${ZSH_VERSION+set}" ; then
26057    setopt NO_GLOB_SUBST
26058 fi
26059
26060
26061     PACKAGE='$PACKAGE'
26062     VERSION='$VERSION'
26063     TIMESTAMP='$TIMESTAMP'
26064     RM='$RM'
26065     ofile='$ofile'
26066
26067
26068
26069
26070
26071
26072
26073
26074 _ACEOF
26075
26076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26077
26078 # Handling of arguments.
26079 for ac_config_target in $ac_config_targets
26080 do
26081   case $ac_config_target in
26082     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
26083     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26084     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
26085     "gcj/libgcj-config.h") CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
26086     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26087     "include/platform.h") CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
26088     "java/io/natFile.cc") CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
26089     "java/lang/natConcreteProcess.cc") CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
26090     "java/net/natVMInetAddress.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
26091     "java/net/natVMNetworkInterface.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
26092     "gnu/java/net/natPlainSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
26093     "gnu/java/net/natPlainDatagramSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
26094     "gnu/java/nio/natVMPipe.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
26095     "gnu/java/nio/natVMSelector.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
26096     "gnu/java/nio/channels/natFileChannelImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
26097     "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" ;;
26098     "include/java-gc.h") CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
26099     "include/java-threads.h") CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
26100     "sysdep/locks.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
26101     "sysdep/backtrace.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
26102     "sysdep/descriptor.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
26103     "include/java-signal.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
26104     "include/java-signal-aux.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
26105     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26106     "libgcj.pc") CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
26107     "libgcj.spec") CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
26108     "libgcj-test.spec") CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
26109     "gcj/Makefile") CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
26110     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26111     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
26112     "contrib/aotcompile.py") CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
26113     "contrib/aot-compile") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
26114     "contrib/aot-compile-rpm") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
26115     "contrib/generate-cacerts.pl") CONFIG_FILES="$CONFIG_FILES contrib/generate-cacerts.pl" ;;
26116     "contrib/rebuild-gcj-db") CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
26117     "scripts/jar") CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
26118
26119   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26120   esac
26121 done
26122
26123
26124 # If the user did not use the arguments to specify the items to instantiate,
26125 # then the envvar interface is used.  Set only those that are not.
26126 # We use the long form for the default assignment because of an extremely
26127 # bizarre bug on SunOS 4.1.3.
26128 if $ac_need_defaults; then
26129   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26130   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26131   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26132   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26133 fi
26134
26135 # Have a temporary directory for convenience.  Make it in the build tree
26136 # simply because there is no reason against having it here, and in addition,
26137 # creating and moving files from /tmp can sometimes cause problems.
26138 # Hook for its removal unless debugging.
26139 # Note that there is a small window in which the directory will not be cleaned:
26140 # after its creation but before its name has been assigned to `$tmp'.
26141 $debug ||
26142 {
26143   tmp=
26144   trap 'exit_status=$?
26145   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26146 ' 0
26147   trap 'as_fn_exit 1' 1 2 13 15
26148 }
26149 # Create a (secure) tmp directory for tmp files.
26150
26151 {
26152   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26153   test -n "$tmp" && test -d "$tmp"
26154 }  ||
26155 {
26156   tmp=./conf$$-$RANDOM
26157   (umask 077 && mkdir "$tmp")
26158 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26159
26160 # Set up the scripts for CONFIG_FILES section.
26161 # No need to generate them if there are no CONFIG_FILES.
26162 # This happens for instance with `./config.status config.h'.
26163 if test -n "$CONFIG_FILES"; then
26164
26165
26166 ac_cr=`echo X | tr X '\015'`
26167 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26168 # But we know of no other shell where ac_cr would be empty at this
26169 # point, so we can use a bashism as a fallback.
26170 if test "x$ac_cr" = x; then
26171   eval ac_cr=\$\'\\r\'
26172 fi
26173 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26174 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26175   ac_cs_awk_cr='\r'
26176 else
26177   ac_cs_awk_cr=$ac_cr
26178 fi
26179
26180 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26181 _ACEOF
26182
26183
26184 {
26185   echo "cat >conf$$subs.awk <<_ACEOF" &&
26186   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26187   echo "_ACEOF"
26188 } >conf$$subs.sh ||
26189   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26190 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26191 ac_delim='%!_!# '
26192 for ac_last_try in false false false false false :; do
26193   . ./conf$$subs.sh ||
26194     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26195
26196   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26197   if test $ac_delim_n = $ac_delim_num; then
26198     break
26199   elif $ac_last_try; then
26200     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26201   else
26202     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26203   fi
26204 done
26205 rm -f conf$$subs.sh
26206
26207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26208 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26209 _ACEOF
26210 sed -n '
26211 h
26212 s/^/S["/; s/!.*/"]=/
26213 p
26214 g
26215 s/^[^!]*!//
26216 :repl
26217 t repl
26218 s/'"$ac_delim"'$//
26219 t delim
26220 :nl
26221 h
26222 s/\(.\{148\}\).*/\1/
26223 t more1
26224 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26225 p
26226 n
26227 b repl
26228 :more1
26229 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26230 p
26231 g
26232 s/.\{148\}//
26233 t nl
26234 :delim
26235 h
26236 s/\(.\{148\}\).*/\1/
26237 t more2
26238 s/["\\]/\\&/g; s/^/"/; s/$/"/
26239 p
26240 b
26241 :more2
26242 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26243 p
26244 g
26245 s/.\{148\}//
26246 t delim
26247 ' <conf$$subs.awk | sed '
26248 /^[^""]/{
26249   N
26250   s/\n//
26251 }
26252 ' >>$CONFIG_STATUS || ac_write_fail=1
26253 rm -f conf$$subs.awk
26254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26255 _ACAWK
26256 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26257   for (key in S) S_is_set[key] = 1
26258   FS = "\a"
26259
26260 }
26261 {
26262   line = $ 0
26263   nfields = split(line, field, "@")
26264   substed = 0
26265   len = length(field[1])
26266   for (i = 2; i < nfields; i++) {
26267     key = field[i]
26268     keylen = length(key)
26269     if (S_is_set[key]) {
26270       value = S[key]
26271       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26272       len += length(value) + length(field[++i])
26273       substed = 1
26274     } else
26275       len += 1 + keylen
26276   }
26277
26278   print line
26279 }
26280
26281 _ACAWK
26282 _ACEOF
26283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26284 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26285   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26286 else
26287   cat
26288 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26289   || as_fn_error "could not setup config files machinery" "$LINENO" 5
26290 _ACEOF
26291
26292 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26293 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26294 # trailing colons and then remove the whole line if VPATH becomes empty
26295 # (actually we leave an empty line to preserve line numbers).
26296 if test "x$srcdir" = x.; then
26297   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26298 s/:*\$(srcdir):*/:/
26299 s/:*\${srcdir}:*/:/
26300 s/:*@srcdir@:*/:/
26301 s/^\([^=]*=[     ]*\):*/\1/
26302 s/:*$//
26303 s/^[^=]*=[       ]*$//
26304 }'
26305 fi
26306
26307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26308 fi # test -n "$CONFIG_FILES"
26309
26310 # Set up the scripts for CONFIG_HEADERS section.
26311 # No need to generate them if there are no CONFIG_HEADERS.
26312 # This happens for instance with `./config.status Makefile'.
26313 if test -n "$CONFIG_HEADERS"; then
26314 cat >"$tmp/defines.awk" <<\_ACAWK ||
26315 BEGIN {
26316 _ACEOF
26317
26318 # Transform confdefs.h into an awk script `defines.awk', embedded as
26319 # here-document in config.status, that substitutes the proper values into
26320 # config.h.in to produce config.h.
26321
26322 # Create a delimiter string that does not exist in confdefs.h, to ease
26323 # handling of long lines.
26324 ac_delim='%!_!# '
26325 for ac_last_try in false false :; do
26326   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26327   if test -z "$ac_t"; then
26328     break
26329   elif $ac_last_try; then
26330     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26331   else
26332     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26333   fi
26334 done
26335
26336 # For the awk script, D is an array of macro values keyed by name,
26337 # likewise P contains macro parameters if any.  Preserve backslash
26338 # newline sequences.
26339
26340 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26341 sed -n '
26342 s/.\{148\}/&'"$ac_delim"'/g
26343 t rset
26344 :rset
26345 s/^[     ]*#[    ]*define[       ][      ]*/ /
26346 t def
26347 d
26348 :def
26349 s/\\$//
26350 t bsnl
26351 s/["\\]/\\&/g
26352 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26353 D["\1"]=" \3"/p
26354 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
26355 d
26356 :bsnl
26357 s/["\\]/\\&/g
26358 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26359 D["\1"]=" \3\\\\\\n"\\/p
26360 t cont
26361 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26362 t cont
26363 d
26364 :cont
26365 n
26366 s/.\{148\}/&'"$ac_delim"'/g
26367 t clear
26368 :clear
26369 s/\\$//
26370 t bsnlc
26371 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26372 d
26373 :bsnlc
26374 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26375 b cont
26376 ' <confdefs.h | sed '
26377 s/'"$ac_delim"'/"\\\
26378 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26379
26380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26381   for (key in D) D_is_set[key] = 1
26382   FS = "\a"
26383 }
26384 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26385   line = \$ 0
26386   split(line, arg, " ")
26387   if (arg[1] == "#") {
26388     defundef = arg[2]
26389     mac1 = arg[3]
26390   } else {
26391     defundef = substr(arg[1], 2)
26392     mac1 = arg[2]
26393   }
26394   split(mac1, mac2, "(") #)
26395   macro = mac2[1]
26396   prefix = substr(line, 1, index(line, defundef) - 1)
26397   if (D_is_set[macro]) {
26398     # Preserve the white space surrounding the "#".
26399     print prefix "define", macro P[macro] D[macro]
26400     next
26401   } else {
26402     # Replace #undef with comments.  This is necessary, for example,
26403     # in the case of _POSIX_SOURCE, which is predefined and required
26404     # on some systems where configure will not decide to define it.
26405     if (defundef == "undef") {
26406       print "/*", prefix defundef, macro, "*/"
26407       next
26408     }
26409   }
26410 }
26411 { print }
26412 _ACAWK
26413 _ACEOF
26414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26415   as_fn_error "could not setup config headers machinery" "$LINENO" 5
26416 fi # test -n "$CONFIG_HEADERS"
26417
26418
26419 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
26420 shift
26421 for ac_tag
26422 do
26423   case $ac_tag in
26424   :[FHLC]) ac_mode=$ac_tag; continue;;
26425   esac
26426   case $ac_mode$ac_tag in
26427   :[FHL]*:*);;
26428   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26429   :[FH]-) ac_tag=-:-;;
26430   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26431   esac
26432   ac_save_IFS=$IFS
26433   IFS=:
26434   set x $ac_tag
26435   IFS=$ac_save_IFS
26436   shift
26437   ac_file=$1
26438   shift
26439
26440   case $ac_mode in
26441   :L) ac_source=$1;;
26442   :[FH])
26443     ac_file_inputs=
26444     for ac_f
26445     do
26446       case $ac_f in
26447       -) ac_f="$tmp/stdin";;
26448       *) # Look for the file first in the build tree, then in the source tree
26449          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26450          # because $ac_f cannot contain `:'.
26451          test -f "$ac_f" ||
26452            case $ac_f in
26453            [\\/$]*) false;;
26454            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26455            esac ||
26456            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26457       esac
26458       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26459       as_fn_append ac_file_inputs " '$ac_f'"
26460     done
26461
26462     # Let's still pretend it is `configure' which instantiates (i.e., don't
26463     # use $as_me), people would be surprised to read:
26464     #    /* config.h.  Generated by config.status.  */
26465     configure_input='Generated from '`
26466           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26467         `' by configure.'
26468     if test x"$ac_file" != x-; then
26469       configure_input="$ac_file.  $configure_input"
26470       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26471 $as_echo "$as_me: creating $ac_file" >&6;}
26472     fi
26473     # Neutralize special characters interpreted by sed in replacement strings.
26474     case $configure_input in #(
26475     *\&* | *\|* | *\\* )
26476        ac_sed_conf_input=`$as_echo "$configure_input" |
26477        sed 's/[\\\\&|]/\\\\&/g'`;; #(
26478     *) ac_sed_conf_input=$configure_input;;
26479     esac
26480
26481     case $ac_tag in
26482     *:-:* | *:-) cat >"$tmp/stdin" \
26483       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26484     esac
26485     ;;
26486   esac
26487
26488   ac_dir=`$as_dirname -- "$ac_file" ||
26489 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26490          X"$ac_file" : 'X\(//\)[^/]' \| \
26491          X"$ac_file" : 'X\(//\)$' \| \
26492          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26493 $as_echo X"$ac_file" |
26494     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26495             s//\1/
26496             q
26497           }
26498           /^X\(\/\/\)[^/].*/{
26499             s//\1/
26500             q
26501           }
26502           /^X\(\/\/\)$/{
26503             s//\1/
26504             q
26505           }
26506           /^X\(\/\).*/{
26507             s//\1/
26508             q
26509           }
26510           s/.*/./; q'`
26511   as_dir="$ac_dir"; as_fn_mkdir_p
26512   ac_builddir=.
26513
26514 case "$ac_dir" in
26515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26516 *)
26517   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26518   # A ".." for each directory in $ac_dir_suffix.
26519   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26520   case $ac_top_builddir_sub in
26521   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26522   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26523   esac ;;
26524 esac
26525 ac_abs_top_builddir=$ac_pwd
26526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26527 # for backward compatibility:
26528 ac_top_builddir=$ac_top_build_prefix
26529
26530 case $srcdir in
26531   .)  # We are building in place.
26532     ac_srcdir=.
26533     ac_top_srcdir=$ac_top_builddir_sub
26534     ac_abs_top_srcdir=$ac_pwd ;;
26535   [\\/]* | ?:[\\/]* )  # Absolute name.
26536     ac_srcdir=$srcdir$ac_dir_suffix;
26537     ac_top_srcdir=$srcdir
26538     ac_abs_top_srcdir=$srcdir ;;
26539   *) # Relative name.
26540     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26541     ac_top_srcdir=$ac_top_build_prefix$srcdir
26542     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26543 esac
26544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26545
26546
26547   case $ac_mode in
26548   :F)
26549   #
26550   # CONFIG_FILE
26551   #
26552
26553   case $INSTALL in
26554   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26555   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26556   esac
26557   ac_MKDIR_P=$MKDIR_P
26558   case $MKDIR_P in
26559   [\\/$]* | ?:[\\/]* ) ;;
26560   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26561   esac
26562 _ACEOF
26563
26564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26565 # If the template does not know about datarootdir, expand it.
26566 # FIXME: This hack should be removed a few years after 2.60.
26567 ac_datarootdir_hack=; ac_datarootdir_seen=
26568 ac_sed_dataroot='
26569 /datarootdir/ {
26570   p
26571   q
26572 }
26573 /@datadir@/p
26574 /@docdir@/p
26575 /@infodir@/p
26576 /@localedir@/p
26577 /@mandir@/p'
26578 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26579 *datarootdir*) ac_datarootdir_seen=yes;;
26580 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26581   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26582 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26583 _ACEOF
26584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26585   ac_datarootdir_hack='
26586   s&@datadir@&$datadir&g
26587   s&@docdir@&$docdir&g
26588   s&@infodir@&$infodir&g
26589   s&@localedir@&$localedir&g
26590   s&@mandir@&$mandir&g
26591   s&\\\${datarootdir}&$datarootdir&g' ;;
26592 esac
26593 _ACEOF
26594
26595 # Neutralize VPATH when `$srcdir' = `.'.
26596 # Shell code in configure.ac might set extrasub.
26597 # FIXME: do we really want to maintain this feature?
26598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26599 ac_sed_extra="$ac_vpsub
26600 $extrasub
26601 _ACEOF
26602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26603 :t
26604 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26605 s|@configure_input@|$ac_sed_conf_input|;t t
26606 s&@top_builddir@&$ac_top_builddir_sub&;t t
26607 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26608 s&@srcdir@&$ac_srcdir&;t t
26609 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26610 s&@top_srcdir@&$ac_top_srcdir&;t t
26611 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26612 s&@builddir@&$ac_builddir&;t t
26613 s&@abs_builddir@&$ac_abs_builddir&;t t
26614 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26615 s&@INSTALL@&$ac_INSTALL&;t t
26616 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26617 $ac_datarootdir_hack
26618 "
26619 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26620   || as_fn_error "could not create $ac_file" "$LINENO" 5
26621
26622 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26623   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26624   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26625   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26626 which seems to be undefined.  Please make sure it is defined." >&5
26627 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26628 which seems to be undefined.  Please make sure it is defined." >&2;}
26629
26630   rm -f "$tmp/stdin"
26631   case $ac_file in
26632   -) cat "$tmp/out" && rm -f "$tmp/out";;
26633   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26634   esac \
26635   || as_fn_error "could not create $ac_file" "$LINENO" 5
26636  ;;
26637   :H)
26638   #
26639   # CONFIG_HEADER
26640   #
26641   if test x"$ac_file" != x-; then
26642     {
26643       $as_echo "/* $configure_input  */" \
26644       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26645     } >"$tmp/config.h" \
26646       || as_fn_error "could not create $ac_file" "$LINENO" 5
26647     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26648       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26649 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26650     else
26651       rm -f "$ac_file"
26652       mv "$tmp/config.h" "$ac_file" \
26653         || as_fn_error "could not create $ac_file" "$LINENO" 5
26654     fi
26655   else
26656     $as_echo "/* $configure_input  */" \
26657       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26658       || as_fn_error "could not create -" "$LINENO" 5
26659   fi
26660 # Compute "$ac_file"'s index in $config_headers.
26661 _am_arg="$ac_file"
26662 _am_stamp_count=1
26663 for _am_header in $config_headers :; do
26664   case $_am_header in
26665     $_am_arg | $_am_arg:* )
26666       break ;;
26667     * )
26668       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26669   esac
26670 done
26671 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26672 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26673          X"$_am_arg" : 'X\(//\)[^/]' \| \
26674          X"$_am_arg" : 'X\(//\)$' \| \
26675          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26676 $as_echo X"$_am_arg" |
26677     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26678             s//\1/
26679             q
26680           }
26681           /^X\(\/\/\)[^/].*/{
26682             s//\1/
26683             q
26684           }
26685           /^X\(\/\/\)$/{
26686             s//\1/
26687             q
26688           }
26689           /^X\(\/\).*/{
26690             s//\1/
26691             q
26692           }
26693           s/.*/./; q'`/stamp-h$_am_stamp_count
26694  ;;
26695   :L)
26696   #
26697   # CONFIG_LINK
26698   #
26699
26700   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
26701     :
26702   else
26703     # Prefer the file from the source tree if names are identical.
26704     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
26705       ac_source=$srcdir/$ac_source
26706     fi
26707
26708     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
26709 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
26710
26711     if test ! -r "$ac_source"; then
26712       as_fn_error "$ac_source: file not found" "$LINENO" 5
26713     fi
26714     rm -f "$ac_file"
26715
26716     # Try a relative symlink, then a hard link, then a copy.
26717     case $srcdir in
26718     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
26719         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
26720     esac
26721     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26722       ln "$ac_source" "$ac_file" 2>/dev/null ||
26723       cp -p "$ac_source" "$ac_file" ||
26724       as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
26725   fi
26726  ;;
26727   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26728 $as_echo "$as_me: executing $ac_file commands" >&6;}
26729  ;;
26730   esac
26731
26732
26733   case $ac_file$ac_mode in
26734     "default-1":C)
26735 # Only add multilib support code if we just rebuilt the top-level
26736 # Makefile.
26737 case " $CONFIG_FILES " in
26738  *" Makefile "*)
26739    ac_file=Makefile . ${multi_basedir}/config-ml.in
26740    ;;
26741 esac ;;
26742     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26743   # Autoconf 2.62 quotes --file arguments for eval, but not when files
26744   # are listed without --file.  Let's play safe and only enable the eval
26745   # if we detect the quoting.
26746   case $CONFIG_FILES in
26747   *\'*) eval set x "$CONFIG_FILES" ;;
26748   *)   set x $CONFIG_FILES ;;
26749   esac
26750   shift
26751   for mf
26752   do
26753     # Strip MF so we end up with the name of the file.
26754     mf=`echo "$mf" | sed -e 's/:.*$//'`
26755     # Check whether this is an Automake generated Makefile or not.
26756     # We used to match only the files named `Makefile.in', but
26757     # some people rename them; so instead we look at the file content.
26758     # Grep'ing the first line is not enough: some people post-process
26759     # each Makefile.in and add a new line on top of each file to say so.
26760     # Grep'ing the whole file is not good either: AIX grep has a line
26761     # limit of 2048, but all sed's we know have understand at least 4000.
26762     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26763       dirpart=`$as_dirname -- "$mf" ||
26764 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26765          X"$mf" : 'X\(//\)[^/]' \| \
26766          X"$mf" : 'X\(//\)$' \| \
26767          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26768 $as_echo X"$mf" |
26769     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26770             s//\1/
26771             q
26772           }
26773           /^X\(\/\/\)[^/].*/{
26774             s//\1/
26775             q
26776           }
26777           /^X\(\/\/\)$/{
26778             s//\1/
26779             q
26780           }
26781           /^X\(\/\).*/{
26782             s//\1/
26783             q
26784           }
26785           s/.*/./; q'`
26786     else
26787       continue
26788     fi
26789     # Extract the definition of DEPDIR, am__include, and am__quote
26790     # from the Makefile without running `make'.
26791     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26792     test -z "$DEPDIR" && continue
26793     am__include=`sed -n 's/^am__include = //p' < "$mf"`
26794     test -z "am__include" && continue
26795     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26796     # When using ansi2knr, U may be empty or an underscore; expand it
26797     U=`sed -n 's/^U = //p' < "$mf"`
26798     # Find all dependency output files, they are included files with
26799     # $(DEPDIR) in their names.  We invoke sed twice because it is the
26800     # simplest approach to changing $(DEPDIR) to its actual value in the
26801     # expansion.
26802     for file in `sed -n "
26803       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26804          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26805       # Make sure the directory exists.
26806       test -f "$dirpart/$file" && continue
26807       fdir=`$as_dirname -- "$file" ||
26808 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26809          X"$file" : 'X\(//\)[^/]' \| \
26810          X"$file" : 'X\(//\)$' \| \
26811          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26812 $as_echo X"$file" |
26813     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26814             s//\1/
26815             q
26816           }
26817           /^X\(\/\/\)[^/].*/{
26818             s//\1/
26819             q
26820           }
26821           /^X\(\/\/\)$/{
26822             s//\1/
26823             q
26824           }
26825           /^X\(\/\).*/{
26826             s//\1/
26827             q
26828           }
26829           s/.*/./; q'`
26830       as_dir=$dirpart/$fdir; as_fn_mkdir_p
26831       # echo "creating $dirpart/$file"
26832       echo '# dummy' > "$dirpart/$file"
26833     done
26834   done
26835 }
26836  ;;
26837     "libtool":C)
26838
26839     # See if we are running on zsh, and set the options which allow our
26840     # commands through without removal of \ escapes.
26841     if test -n "${ZSH_VERSION+set}" ; then
26842       setopt NO_GLOB_SUBST
26843     fi
26844
26845     cfgfile="${ofile}T"
26846     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26847     $RM "$cfgfile"
26848
26849     cat <<_LT_EOF >> "$cfgfile"
26850 #! $SHELL
26851
26852 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26853 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26854 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26855 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26856 #
26857 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26858 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
26859 #   Written by Gordon Matzigkeit, 1996
26860 #
26861 #   This file is part of GNU Libtool.
26862 #
26863 # GNU Libtool is free software; you can redistribute it and/or
26864 # modify it under the terms of the GNU General Public License as
26865 # published by the Free Software Foundation; either version 2 of
26866 # the License, or (at your option) any later version.
26867 #
26868 # As a special exception to the GNU General Public License,
26869 # if you distribute this file as part of a program or library that
26870 # is built using GNU Libtool, you may include this file under the
26871 # same distribution terms that you use for the rest of that program.
26872 #
26873 # GNU Libtool is distributed in the hope that it will be useful,
26874 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26875 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26876 # GNU General Public License for more details.
26877 #
26878 # You should have received a copy of the GNU General Public License
26879 # along with GNU Libtool; see the file COPYING.  If not, a copy
26880 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26881 # obtained by writing to the Free Software Foundation, Inc.,
26882 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26883
26884
26885 # The names of the tagged configurations supported by this script.
26886 available_tags="CXX GCJ "
26887
26888 # ### BEGIN LIBTOOL CONFIG
26889
26890 # Which release of libtool.m4 was used?
26891 macro_version=$macro_version
26892 macro_revision=$macro_revision
26893
26894 # Whether or not to build shared libraries.
26895 build_libtool_libs=$enable_shared
26896
26897 # Whether or not to build static libraries.
26898 build_old_libs=$enable_static
26899
26900 # What type of objects to build.
26901 pic_mode=$pic_mode
26902
26903 # Whether or not to optimize for fast installation.
26904 fast_install=$enable_fast_install
26905
26906 # Shell to use when invoking shell scripts.
26907 SHELL=$lt_SHELL
26908
26909 # An echo program that protects backslashes.
26910 ECHO=$lt_ECHO
26911
26912 # The host system.
26913 host_alias=$host_alias
26914 host=$host
26915 host_os=$host_os
26916
26917 # The build system.
26918 build_alias=$build_alias
26919 build=$build
26920 build_os=$build_os
26921
26922 # A sed program that does not truncate output.
26923 SED=$lt_SED
26924
26925 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26926 Xsed="\$SED -e 1s/^X//"
26927
26928 # A grep program that handles long lines.
26929 GREP=$lt_GREP
26930
26931 # An ERE matcher.
26932 EGREP=$lt_EGREP
26933
26934 # A literal string matcher.
26935 FGREP=$lt_FGREP
26936
26937 # A BSD- or MS-compatible name lister.
26938 NM=$lt_NM
26939
26940 # Whether we need soft or hard links.
26941 LN_S=$lt_LN_S
26942
26943 # What is the maximum length of a command?
26944 max_cmd_len=$max_cmd_len
26945
26946 # Object file suffix (normally "o").
26947 objext=$ac_objext
26948
26949 # Executable file suffix (normally "").
26950 exeext=$exeext
26951
26952 # whether the shell understands "unset".
26953 lt_unset=$lt_unset
26954
26955 # turn spaces into newlines.
26956 SP2NL=$lt_lt_SP2NL
26957
26958 # turn newlines into spaces.
26959 NL2SP=$lt_lt_NL2SP
26960
26961 # An object symbol dumper.
26962 OBJDUMP=$lt_OBJDUMP
26963
26964 # Method to check whether dependent libraries are shared objects.
26965 deplibs_check_method=$lt_deplibs_check_method
26966
26967 # Command to use when deplibs_check_method == "file_magic".
26968 file_magic_cmd=$lt_file_magic_cmd
26969
26970 # The archiver.
26971 AR=$lt_AR
26972 AR_FLAGS=$lt_AR_FLAGS
26973
26974 # A symbol stripping program.
26975 STRIP=$lt_STRIP
26976
26977 # Commands used to install an old-style archive.
26978 RANLIB=$lt_RANLIB
26979 old_postinstall_cmds=$lt_old_postinstall_cmds
26980 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26981
26982 # Whether to use a lock for old archive extraction.
26983 lock_old_archive_extraction=$lock_old_archive_extraction
26984
26985 # A C compiler.
26986 LTCC=$lt_CC
26987
26988 # LTCC compiler flags.
26989 LTCFLAGS=$lt_CFLAGS
26990
26991 # Take the output of nm and produce a listing of raw symbols and C names.
26992 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26993
26994 # Transform the output of nm in a proper C declaration.
26995 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26996
26997 # Transform the output of nm in a C name address pair.
26998 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26999
27000 # Transform the output of nm in a C name address pair when lib prefix is needed.
27001 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27002
27003 # The name of the directory that contains temporary libtool files.
27004 objdir=$objdir
27005
27006 # Used to examine libraries when file_magic_cmd begins with "file".
27007 MAGIC_CMD=$MAGIC_CMD
27008
27009 # Must we lock files when doing compilation?
27010 need_locks=$lt_need_locks
27011
27012 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27013 DSYMUTIL=$lt_DSYMUTIL
27014
27015 # Tool to change global to local symbols on Mac OS X.
27016 NMEDIT=$lt_NMEDIT
27017
27018 # Tool to manipulate fat objects and archives on Mac OS X.
27019 LIPO=$lt_LIPO
27020
27021 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27022 OTOOL=$lt_OTOOL
27023
27024 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27025 OTOOL64=$lt_OTOOL64
27026
27027 # Old archive suffix (normally "a").
27028 libext=$libext
27029
27030 # Shared library suffix (normally ".so").
27031 shrext_cmds=$lt_shrext_cmds
27032
27033 # The commands to extract the exported symbol list from a shared archive.
27034 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27035
27036 # Variables whose values should be saved in libtool wrapper scripts and
27037 # restored at link time.
27038 variables_saved_for_relink=$lt_variables_saved_for_relink
27039
27040 # Do we need the "lib" prefix for modules?
27041 need_lib_prefix=$need_lib_prefix
27042
27043 # Do we need a version for libraries?
27044 need_version=$need_version
27045
27046 # Library versioning type.
27047 version_type=$version_type
27048
27049 # Shared library runtime path variable.
27050 runpath_var=$runpath_var
27051
27052 # Shared library path variable.
27053 shlibpath_var=$shlibpath_var
27054
27055 # Is shlibpath searched before the hard-coded library search path?
27056 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27057
27058 # Format of library name prefix.
27059 libname_spec=$lt_libname_spec
27060
27061 # List of archive names.  First name is the real one, the rest are links.
27062 # The last name is the one that the linker finds with -lNAME
27063 library_names_spec=$lt_library_names_spec
27064
27065 # The coded name of the library, if different from the real name.
27066 soname_spec=$lt_soname_spec
27067
27068 # Permission mode override for installation of shared libraries.
27069 install_override_mode=$lt_install_override_mode
27070
27071 # Command to use after installation of a shared archive.
27072 postinstall_cmds=$lt_postinstall_cmds
27073
27074 # Command to use after uninstallation of a shared archive.
27075 postuninstall_cmds=$lt_postuninstall_cmds
27076
27077 # Commands used to finish a libtool library installation in a directory.
27078 finish_cmds=$lt_finish_cmds
27079
27080 # As "finish_cmds", except a single script fragment to be evaled but
27081 # not shown.
27082 finish_eval=$lt_finish_eval
27083
27084 # Whether we should hardcode library paths into libraries.
27085 hardcode_into_libs=$hardcode_into_libs
27086
27087 # Compile-time system search path for libraries.
27088 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27089
27090 # Run-time system search path for libraries.
27091 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27092
27093 # Whether dlopen is supported.
27094 dlopen_support=$enable_dlopen
27095
27096 # Whether dlopen of programs is supported.
27097 dlopen_self=$enable_dlopen_self
27098
27099 # Whether dlopen of statically linked programs is supported.
27100 dlopen_self_static=$enable_dlopen_self_static
27101
27102 # Commands to strip libraries.
27103 old_striplib=$lt_old_striplib
27104 striplib=$lt_striplib
27105
27106
27107 # The linker used to build libraries.
27108 LD=$lt_LD
27109
27110 # How to create reloadable object files.
27111 reload_flag=$lt_reload_flag
27112 reload_cmds=$lt_reload_cmds
27113
27114 # Commands used to build an old-style archive.
27115 old_archive_cmds=$lt_old_archive_cmds
27116
27117 # A language specific compiler.
27118 CC=$lt_compiler
27119
27120 # Is the compiler the GNU compiler?
27121 with_gcc=$GCC
27122
27123 # Compiler flag to turn off builtin functions.
27124 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27125
27126 # How to pass a linker flag through the compiler.
27127 wl=$lt_lt_prog_compiler_wl
27128
27129 # Additional compiler flags for building library objects.
27130 pic_flag=$lt_lt_prog_compiler_pic
27131
27132 # Compiler flag to prevent dynamic linking.
27133 link_static_flag=$lt_lt_prog_compiler_static
27134
27135 # Does compiler simultaneously support -c and -o options?
27136 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27137
27138 # Whether or not to add -lc for building shared libraries.
27139 build_libtool_need_lc=$archive_cmds_need_lc
27140
27141 # Whether or not to disallow shared libs when runtime libs are static.
27142 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27143
27144 # Compiler flag to allow reflexive dlopens.
27145 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27146
27147 # Compiler flag to generate shared objects directly from archives.
27148 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27149
27150 # Whether the compiler copes with passing no objects directly.
27151 compiler_needs_object=$lt_compiler_needs_object
27152
27153 # Create an old-style archive from a shared archive.
27154 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27155
27156 # Create a temporary old-style archive to link instead of a shared archive.
27157 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27158
27159 # Commands used to build a shared archive.
27160 archive_cmds=$lt_archive_cmds
27161 archive_expsym_cmds=$lt_archive_expsym_cmds
27162
27163 # Commands used to build a loadable module if different from building
27164 # a shared archive.
27165 module_cmds=$lt_module_cmds
27166 module_expsym_cmds=$lt_module_expsym_cmds
27167
27168 # Whether we are building with GNU ld or not.
27169 with_gnu_ld=$lt_with_gnu_ld
27170
27171 # Flag that allows shared libraries with undefined symbols to be built.
27172 allow_undefined_flag=$lt_allow_undefined_flag
27173
27174 # Flag that enforces no undefined symbols.
27175 no_undefined_flag=$lt_no_undefined_flag
27176
27177 # Flag to hardcode \$libdir into a binary during linking.
27178 # This must work even if \$libdir does not exist
27179 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27180
27181 # If ld is used when linking, flag to hardcode \$libdir into a binary
27182 # during linking.  This must work even if \$libdir does not exist.
27183 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27184
27185 # Whether we need a single "-rpath" flag with a separated argument.
27186 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27187
27188 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27189 # DIR into the resulting binary.
27190 hardcode_direct=$hardcode_direct
27191
27192 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27193 # DIR into the resulting binary and the resulting library dependency is
27194 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27195 # library is relocated.
27196 hardcode_direct_absolute=$hardcode_direct_absolute
27197
27198 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27199 # into the resulting binary.
27200 hardcode_minus_L=$hardcode_minus_L
27201
27202 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27203 # into the resulting binary.
27204 hardcode_shlibpath_var=$hardcode_shlibpath_var
27205
27206 # Set to "yes" if building a shared library automatically hardcodes DIR
27207 # into the library and all subsequent libraries and executables linked
27208 # against it.
27209 hardcode_automatic=$hardcode_automatic
27210
27211 # Set to yes if linker adds runtime paths of dependent libraries
27212 # to runtime path list.
27213 inherit_rpath=$inherit_rpath
27214
27215 # Whether libtool must link a program against all its dependency libraries.
27216 link_all_deplibs=$link_all_deplibs
27217
27218 # Fix the shell variable \$srcfile for the compiler.
27219 fix_srcfile_path=$lt_fix_srcfile_path
27220
27221 # Set to "yes" if exported symbols are required.
27222 always_export_symbols=$always_export_symbols
27223
27224 # The commands to list exported symbols.
27225 export_symbols_cmds=$lt_export_symbols_cmds
27226
27227 # Symbols that should not be listed in the preloaded symbols.
27228 exclude_expsyms=$lt_exclude_expsyms
27229
27230 # Symbols that must always be exported.
27231 include_expsyms=$lt_include_expsyms
27232
27233 # Commands necessary for linking programs (against libraries) with templates.
27234 prelink_cmds=$lt_prelink_cmds
27235
27236 # Specify filename containing input files.
27237 file_list_spec=$lt_file_list_spec
27238
27239 # How to hardcode a shared library path into an executable.
27240 hardcode_action=$hardcode_action
27241
27242 # The directories searched by this compiler when creating a shared library.
27243 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27244
27245 # Dependencies to place before and after the objects being linked to
27246 # create a shared library.
27247 predep_objects=$lt_predep_objects
27248 postdep_objects=$lt_postdep_objects
27249 predeps=$lt_predeps
27250 postdeps=$lt_postdeps
27251
27252 # The library search path used internally by the compiler when linking
27253 # a shared library.
27254 compiler_lib_search_path=$lt_compiler_lib_search_path
27255
27256 # ### END LIBTOOL CONFIG
27257
27258 _LT_EOF
27259
27260   case $host_os in
27261   aix3*)
27262     cat <<\_LT_EOF >> "$cfgfile"
27263 # AIX sometimes has problems with the GCC collect2 program.  For some
27264 # reason, if we set the COLLECT_NAMES environment variable, the problems
27265 # vanish in a puff of smoke.
27266 if test "X${COLLECT_NAMES+set}" != Xset; then
27267   COLLECT_NAMES=
27268   export COLLECT_NAMES
27269 fi
27270 _LT_EOF
27271     ;;
27272   esac
27273
27274
27275 ltmain="$ac_aux_dir/ltmain.sh"
27276
27277
27278   # We use sed instead of cat because bash on DJGPP gets confused if
27279   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
27280   # text mode, it properly converts lines to CR/LF.  This bash problem
27281   # is reportedly fixed, but why not run on old versions too?
27282   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27283     || (rm -f "$cfgfile"; exit 1)
27284
27285   case $xsi_shell in
27286   yes)
27287     cat << \_LT_EOF >> "$cfgfile"
27288
27289 # func_dirname file append nondir_replacement
27290 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
27291 # otherwise set result to NONDIR_REPLACEMENT.
27292 func_dirname ()
27293 {
27294   case ${1} in
27295     */*) func_dirname_result="${1%/*}${2}" ;;
27296     *  ) func_dirname_result="${3}" ;;
27297   esac
27298 }
27299
27300 # func_basename file
27301 func_basename ()
27302 {
27303   func_basename_result="${1##*/}"
27304 }
27305
27306 # func_dirname_and_basename file append nondir_replacement
27307 # perform func_basename and func_dirname in a single function
27308 # call:
27309 #   dirname:  Compute the dirname of FILE.  If nonempty,
27310 #             add APPEND to the result, otherwise set result
27311 #             to NONDIR_REPLACEMENT.
27312 #             value returned in "$func_dirname_result"
27313 #   basename: Compute filename of FILE.
27314 #             value retuned in "$func_basename_result"
27315 # Implementation must be kept synchronized with func_dirname
27316 # and func_basename. For efficiency, we do not delegate to
27317 # those functions but instead duplicate the functionality here.
27318 func_dirname_and_basename ()
27319 {
27320   case ${1} in
27321     */*) func_dirname_result="${1%/*}${2}" ;;
27322     *  ) func_dirname_result="${3}" ;;
27323   esac
27324   func_basename_result="${1##*/}"
27325 }
27326
27327 # func_stripname prefix suffix name
27328 # strip PREFIX and SUFFIX off of NAME.
27329 # PREFIX and SUFFIX must not contain globbing or regex special
27330 # characters, hashes, percent signs, but SUFFIX may contain a leading
27331 # dot (in which case that matches only a dot).
27332 func_stripname ()
27333 {
27334   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27335   # positional parameters, so assign one to ordinary parameter first.
27336   func_stripname_result=${3}
27337   func_stripname_result=${func_stripname_result#"${1}"}
27338   func_stripname_result=${func_stripname_result%"${2}"}
27339 }
27340
27341 # func_opt_split
27342 func_opt_split ()
27343 {
27344   func_opt_split_opt=${1%%=*}
27345   func_opt_split_arg=${1#*=}
27346 }
27347
27348 # func_lo2o object
27349 func_lo2o ()
27350 {
27351   case ${1} in
27352     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27353     *)    func_lo2o_result=${1} ;;
27354   esac
27355 }
27356
27357 # func_xform libobj-or-source
27358 func_xform ()
27359 {
27360   func_xform_result=${1%.*}.lo
27361 }
27362
27363 # func_arith arithmetic-term...
27364 func_arith ()
27365 {
27366   func_arith_result=$(( $* ))
27367 }
27368
27369 # func_len string
27370 # STRING may not start with a hyphen.
27371 func_len ()
27372 {
27373   func_len_result=${#1}
27374 }
27375
27376 _LT_EOF
27377     ;;
27378   *) # Bourne compatible functions.
27379     cat << \_LT_EOF >> "$cfgfile"
27380
27381 # func_dirname file append nondir_replacement
27382 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
27383 # otherwise set result to NONDIR_REPLACEMENT.
27384 func_dirname ()
27385 {
27386   # Extract subdirectory from the argument.
27387   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
27388   if test "X$func_dirname_result" = "X${1}"; then
27389     func_dirname_result="${3}"
27390   else
27391     func_dirname_result="$func_dirname_result${2}"
27392   fi
27393 }
27394
27395 # func_basename file
27396 func_basename ()
27397 {
27398   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
27399 }
27400
27401
27402 # func_stripname prefix suffix name
27403 # strip PREFIX and SUFFIX off of NAME.
27404 # PREFIX and SUFFIX must not contain globbing or regex special
27405 # characters, hashes, percent signs, but SUFFIX may contain a leading
27406 # dot (in which case that matches only a dot).
27407 # func_strip_suffix prefix name
27408 func_stripname ()
27409 {
27410   case ${2} in
27411     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
27412     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
27413   esac
27414 }
27415
27416 # sed scripts:
27417 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27418 my_sed_long_arg='1s/^-[^=]*=//'
27419
27420 # func_opt_split
27421 func_opt_split ()
27422 {
27423   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
27424   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
27425 }
27426
27427 # func_lo2o object
27428 func_lo2o ()
27429 {
27430   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
27431 }
27432
27433 # func_xform libobj-or-source
27434 func_xform ()
27435 {
27436   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
27437 }
27438
27439 # func_arith arithmetic-term...
27440 func_arith ()
27441 {
27442   func_arith_result=`expr "$@"`
27443 }
27444
27445 # func_len string
27446 # STRING may not start with a hyphen.
27447 func_len ()
27448 {
27449   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27450 }
27451
27452 _LT_EOF
27453 esac
27454
27455 case $lt_shell_append in
27456   yes)
27457     cat << \_LT_EOF >> "$cfgfile"
27458
27459 # func_append var value
27460 # Append VALUE to the end of shell variable VAR.
27461 func_append ()
27462 {
27463   eval "$1+=\$2"
27464 }
27465 _LT_EOF
27466     ;;
27467   *)
27468     cat << \_LT_EOF >> "$cfgfile"
27469
27470 # func_append var value
27471 # Append VALUE to the end of shell variable VAR.
27472 func_append ()
27473 {
27474   eval "$1=\$$1\$2"
27475 }
27476
27477 _LT_EOF
27478     ;;
27479   esac
27480
27481
27482   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27483     || (rm -f "$cfgfile"; exit 1)
27484
27485   mv -f "$cfgfile" "$ofile" ||
27486     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27487   chmod +x "$ofile"
27488
27489
27490     cat <<_LT_EOF >> "$ofile"
27491
27492 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27493
27494 # The linker used to build libraries.
27495 LD=$lt_LD_CXX
27496
27497 # How to create reloadable object files.
27498 reload_flag=$lt_reload_flag_CXX
27499 reload_cmds=$lt_reload_cmds_CXX
27500
27501 # Commands used to build an old-style archive.
27502 old_archive_cmds=$lt_old_archive_cmds_CXX
27503
27504 # A language specific compiler.
27505 CC=$lt_compiler_CXX
27506
27507 # Is the compiler the GNU compiler?
27508 with_gcc=$GCC_CXX
27509
27510 # Compiler flag to turn off builtin functions.
27511 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27512
27513 # How to pass a linker flag through the compiler.
27514 wl=$lt_lt_prog_compiler_wl_CXX
27515
27516 # Additional compiler flags for building library objects.
27517 pic_flag=$lt_lt_prog_compiler_pic_CXX
27518
27519 # Compiler flag to prevent dynamic linking.
27520 link_static_flag=$lt_lt_prog_compiler_static_CXX
27521
27522 # Does compiler simultaneously support -c and -o options?
27523 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27524
27525 # Whether or not to add -lc for building shared libraries.
27526 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27527
27528 # Whether or not to disallow shared libs when runtime libs are static.
27529 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27530
27531 # Compiler flag to allow reflexive dlopens.
27532 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27533
27534 # Compiler flag to generate shared objects directly from archives.
27535 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27536
27537 # Whether the compiler copes with passing no objects directly.
27538 compiler_needs_object=$lt_compiler_needs_object_CXX
27539
27540 # Create an old-style archive from a shared archive.
27541 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27542
27543 # Create a temporary old-style archive to link instead of a shared archive.
27544 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27545
27546 # Commands used to build a shared archive.
27547 archive_cmds=$lt_archive_cmds_CXX
27548 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27549
27550 # Commands used to build a loadable module if different from building
27551 # a shared archive.
27552 module_cmds=$lt_module_cmds_CXX
27553 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27554
27555 # Whether we are building with GNU ld or not.
27556 with_gnu_ld=$lt_with_gnu_ld_CXX
27557
27558 # Flag that allows shared libraries with undefined symbols to be built.
27559 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27560
27561 # Flag that enforces no undefined symbols.
27562 no_undefined_flag=$lt_no_undefined_flag_CXX
27563
27564 # Flag to hardcode \$libdir into a binary during linking.
27565 # This must work even if \$libdir does not exist
27566 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27567
27568 # If ld is used when linking, flag to hardcode \$libdir into a binary
27569 # during linking.  This must work even if \$libdir does not exist.
27570 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27571
27572 # Whether we need a single "-rpath" flag with a separated argument.
27573 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27574
27575 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27576 # DIR into the resulting binary.
27577 hardcode_direct=$hardcode_direct_CXX
27578
27579 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27580 # DIR into the resulting binary and the resulting library dependency is
27581 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27582 # library is relocated.
27583 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27584
27585 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27586 # into the resulting binary.
27587 hardcode_minus_L=$hardcode_minus_L_CXX
27588
27589 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27590 # into the resulting binary.
27591 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27592
27593 # Set to "yes" if building a shared library automatically hardcodes DIR
27594 # into the library and all subsequent libraries and executables linked
27595 # against it.
27596 hardcode_automatic=$hardcode_automatic_CXX
27597
27598 # Set to yes if linker adds runtime paths of dependent libraries
27599 # to runtime path list.
27600 inherit_rpath=$inherit_rpath_CXX
27601
27602 # Whether libtool must link a program against all its dependency libraries.
27603 link_all_deplibs=$link_all_deplibs_CXX
27604
27605 # Fix the shell variable \$srcfile for the compiler.
27606 fix_srcfile_path=$lt_fix_srcfile_path_CXX
27607
27608 # Set to "yes" if exported symbols are required.
27609 always_export_symbols=$always_export_symbols_CXX
27610
27611 # The commands to list exported symbols.
27612 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27613
27614 # Symbols that should not be listed in the preloaded symbols.
27615 exclude_expsyms=$lt_exclude_expsyms_CXX
27616
27617 # Symbols that must always be exported.
27618 include_expsyms=$lt_include_expsyms_CXX
27619
27620 # Commands necessary for linking programs (against libraries) with templates.
27621 prelink_cmds=$lt_prelink_cmds_CXX
27622
27623 # Specify filename containing input files.
27624 file_list_spec=$lt_file_list_spec_CXX
27625
27626 # How to hardcode a shared library path into an executable.
27627 hardcode_action=$hardcode_action_CXX
27628
27629 # The directories searched by this compiler when creating a shared library.
27630 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27631
27632 # Dependencies to place before and after the objects being linked to
27633 # create a shared library.
27634 predep_objects=$lt_predep_objects_CXX
27635 postdep_objects=$lt_postdep_objects_CXX
27636 predeps=$lt_predeps_CXX
27637 postdeps=$lt_postdeps_CXX
27638
27639 # The library search path used internally by the compiler when linking
27640 # a shared library.
27641 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27642
27643 # ### END LIBTOOL TAG CONFIG: CXX
27644 _LT_EOF
27645
27646
27647     cat <<_LT_EOF >> "$ofile"
27648
27649 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
27650
27651 # The linker used to build libraries.
27652 LD=$lt_LD_GCJ
27653
27654 # How to create reloadable object files.
27655 reload_flag=$lt_reload_flag_GCJ
27656 reload_cmds=$lt_reload_cmds_GCJ
27657
27658 # Commands used to build an old-style archive.
27659 old_archive_cmds=$lt_old_archive_cmds_GCJ
27660
27661 # A language specific compiler.
27662 CC=$lt_compiler_GCJ
27663
27664 # Is the compiler the GNU compiler?
27665 with_gcc=$GCC_GCJ
27666
27667 # Compiler flag to turn off builtin functions.
27668 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
27669
27670 # How to pass a linker flag through the compiler.
27671 wl=$lt_lt_prog_compiler_wl_GCJ
27672
27673 # Additional compiler flags for building library objects.
27674 pic_flag=$lt_lt_prog_compiler_pic_GCJ
27675
27676 # Compiler flag to prevent dynamic linking.
27677 link_static_flag=$lt_lt_prog_compiler_static_GCJ
27678
27679 # Does compiler simultaneously support -c and -o options?
27680 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
27681
27682 # Whether or not to add -lc for building shared libraries.
27683 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
27684
27685 # Whether or not to disallow shared libs when runtime libs are static.
27686 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
27687
27688 # Compiler flag to allow reflexive dlopens.
27689 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
27690
27691 # Compiler flag to generate shared objects directly from archives.
27692 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
27693
27694 # Whether the compiler copes with passing no objects directly.
27695 compiler_needs_object=$lt_compiler_needs_object_GCJ
27696
27697 # Create an old-style archive from a shared archive.
27698 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
27699
27700 # Create a temporary old-style archive to link instead of a shared archive.
27701 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
27702
27703 # Commands used to build a shared archive.
27704 archive_cmds=$lt_archive_cmds_GCJ
27705 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
27706
27707 # Commands used to build a loadable module if different from building
27708 # a shared archive.
27709 module_cmds=$lt_module_cmds_GCJ
27710 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
27711
27712 # Whether we are building with GNU ld or not.
27713 with_gnu_ld=$lt_with_gnu_ld_GCJ
27714
27715 # Flag that allows shared libraries with undefined symbols to be built.
27716 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
27717
27718 # Flag that enforces no undefined symbols.
27719 no_undefined_flag=$lt_no_undefined_flag_GCJ
27720
27721 # Flag to hardcode \$libdir into a binary during linking.
27722 # This must work even if \$libdir does not exist
27723 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
27724
27725 # If ld is used when linking, flag to hardcode \$libdir into a binary
27726 # during linking.  This must work even if \$libdir does not exist.
27727 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
27728
27729 # Whether we need a single "-rpath" flag with a separated argument.
27730 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
27731
27732 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27733 # DIR into the resulting binary.
27734 hardcode_direct=$hardcode_direct_GCJ
27735
27736 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27737 # DIR into the resulting binary and the resulting library dependency is
27738 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27739 # library is relocated.
27740 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
27741
27742 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27743 # into the resulting binary.
27744 hardcode_minus_L=$hardcode_minus_L_GCJ
27745
27746 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27747 # into the resulting binary.
27748 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
27749
27750 # Set to "yes" if building a shared library automatically hardcodes DIR
27751 # into the library and all subsequent libraries and executables linked
27752 # against it.
27753 hardcode_automatic=$hardcode_automatic_GCJ
27754
27755 # Set to yes if linker adds runtime paths of dependent libraries
27756 # to runtime path list.
27757 inherit_rpath=$inherit_rpath_GCJ
27758
27759 # Whether libtool must link a program against all its dependency libraries.
27760 link_all_deplibs=$link_all_deplibs_GCJ
27761
27762 # Fix the shell variable \$srcfile for the compiler.
27763 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
27764
27765 # Set to "yes" if exported symbols are required.
27766 always_export_symbols=$always_export_symbols_GCJ
27767
27768 # The commands to list exported symbols.
27769 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
27770
27771 # Symbols that should not be listed in the preloaded symbols.
27772 exclude_expsyms=$lt_exclude_expsyms_GCJ
27773
27774 # Symbols that must always be exported.
27775 include_expsyms=$lt_include_expsyms_GCJ
27776
27777 # Commands necessary for linking programs (against libraries) with templates.
27778 prelink_cmds=$lt_prelink_cmds_GCJ
27779
27780 # Specify filename containing input files.
27781 file_list_spec=$lt_file_list_spec_GCJ
27782
27783 # How to hardcode a shared library path into an executable.
27784 hardcode_action=$hardcode_action_GCJ
27785
27786 # The directories searched by this compiler when creating a shared library.
27787 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
27788
27789 # Dependencies to place before and after the objects being linked to
27790 # create a shared library.
27791 predep_objects=$lt_predep_objects_GCJ
27792 postdep_objects=$lt_postdep_objects_GCJ
27793 predeps=$lt_predeps_GCJ
27794 postdeps=$lt_postdeps_GCJ
27795
27796 # The library search path used internally by the compiler when linking
27797 # a shared library.
27798 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
27799
27800 # ### END LIBTOOL TAG CONFIG: GCJ
27801 _LT_EOF
27802
27803  ;;
27804     "scripts/jar":F) chmod +x scripts/jar ;;
27805
27806   esac
27807 done # for ac_tag
27808
27809
27810 as_fn_exit 0
27811 _ACEOF
27812 ac_clean_files=$ac_clean_files_save
27813
27814 test $ac_write_fail = 0 ||
27815   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27816
27817
27818 # configure is writing to config.log, and then calls config.status.
27819 # config.status does its own redirection, appending to config.log.
27820 # Unfortunately, on DOS this fails, as config.log is still kept open
27821 # by configure, so config.status won't be able to write to it; its
27822 # output is simply discarded.  So we exec the FD to /dev/null,
27823 # effectively closing config.log, so it can be properly (re)opened and
27824 # appended to by config.status.  When coming back to configure, we
27825 # need to make the FD available again.
27826 if test "$no_create" != yes; then
27827   ac_cs_success=:
27828   ac_config_status_args=
27829   test "$silent" = yes &&
27830     ac_config_status_args="$ac_config_status_args --quiet"
27831   exec 5>/dev/null
27832   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27833   exec 5>>config.log
27834   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27835   # would make configure fail if this is the last instruction.
27836   $ac_cs_success || as_fn_exit $?
27837 fi
27838
27839 #
27840 # CONFIG_SUBDIRS section.
27841 #
27842 if test "$no_recursion" != yes; then
27843
27844   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
27845   # so they do not pile up.
27846   ac_sub_configure_args=
27847   ac_prev=
27848   eval "set x $ac_configure_args"
27849   shift
27850   for ac_arg
27851   do
27852     if test -n "$ac_prev"; then
27853       ac_prev=
27854       continue
27855     fi
27856     case $ac_arg in
27857     -cache-file | --cache-file | --cache-fil | --cache-fi \
27858     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27859       ac_prev=cache_file ;;
27860     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27861     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27862     | --c=*)
27863       ;;
27864     --config-cache | -C)
27865       ;;
27866     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27867       ac_prev=srcdir ;;
27868     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27869       ;;
27870     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27871       ac_prev=prefix ;;
27872     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27873       ;;
27874     --disable-option-checking)
27875       ;;
27876     *)
27877       case $ac_arg in
27878       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27879       esac
27880       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
27881     esac
27882   done
27883
27884   # Always prepend --prefix to ensure using the same prefix
27885   # in subdir configurations.
27886   ac_arg="--prefix=$prefix"
27887   case $ac_arg in
27888   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27889   esac
27890   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
27891
27892   # Pass --silent
27893   if test "$silent" = yes; then
27894     ac_sub_configure_args="--silent $ac_sub_configure_args"
27895   fi
27896
27897   # Always prepend --disable-option-checking to silence warnings, since
27898   # different subdirs can have different --enable and --with options.
27899   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
27900
27901   ac_popdir=`pwd`
27902   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27903
27904     # Do not complain, so a configure script can configure whichever
27905     # parts of a large source tree are present.
27906     test -d "$srcdir/$ac_dir" || continue
27907
27908     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27909     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
27910     $as_echo "$ac_msg" >&6
27911     as_dir="$ac_dir"; as_fn_mkdir_p
27912     ac_builddir=.
27913
27914 case "$ac_dir" in
27915 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27916 *)
27917   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27918   # A ".." for each directory in $ac_dir_suffix.
27919   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27920   case $ac_top_builddir_sub in
27921   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27922   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27923   esac ;;
27924 esac
27925 ac_abs_top_builddir=$ac_pwd
27926 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27927 # for backward compatibility:
27928 ac_top_builddir=$ac_top_build_prefix
27929
27930 case $srcdir in
27931   .)  # We are building in place.
27932     ac_srcdir=.
27933     ac_top_srcdir=$ac_top_builddir_sub
27934     ac_abs_top_srcdir=$ac_pwd ;;
27935   [\\/]* | ?:[\\/]* )  # Absolute name.
27936     ac_srcdir=$srcdir$ac_dir_suffix;
27937     ac_top_srcdir=$srcdir
27938     ac_abs_top_srcdir=$srcdir ;;
27939   *) # Relative name.
27940     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27941     ac_top_srcdir=$ac_top_build_prefix$srcdir
27942     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27943 esac
27944 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27945
27946
27947     cd "$ac_dir"
27948
27949     # Check for guested configure; otherwise get Cygnus style configure.
27950     if test -f "$ac_srcdir/configure.gnu"; then
27951       ac_sub_configure=$ac_srcdir/configure.gnu
27952     elif test -f "$ac_srcdir/configure"; then
27953       ac_sub_configure=$ac_srcdir/configure
27954     elif test -f "$ac_srcdir/configure.in"; then
27955       # This should be Cygnus configure.
27956       ac_sub_configure=$ac_aux_dir/configure
27957     else
27958       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
27959 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27960       ac_sub_configure=
27961     fi
27962
27963     # The recursion is here.
27964     if test -n "$ac_sub_configure"; then
27965       # Make the cache file name correct relative to the subdirectory.
27966       case $cache_file in
27967       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27968       *) # Relative name.
27969         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
27970       esac
27971
27972       { $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
27973 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27974       # The eval makes quoting arguments work.
27975       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27976            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27977         as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
27978     fi
27979
27980     cd "$ac_popdir"
27981   done
27982 fi
27983 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27984   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27985 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27986 fi
27987