OSDN Git Service

Sync from git Libtool and regenerate.
[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_gij_ldflags
708 extra_ldflags_libjava
709 X_EXTRA_LIBS
710 X_LIBS
711 X_PRE_LIBS
712 X_CFLAGS
713 XMKMF
714 ZLIBTESTSPEC
715 ZLIBSPEC
716 SYSTEMSPEC
717 USING_DARWIN_CRT_FALSE
718 USING_DARWIN_CRT_TRUE
719 USING_POSIX_PLATFORM_FALSE
720 USING_POSIX_PLATFORM_TRUE
721 USING_WIN32_PLATFORM_FALSE
722 USING_WIN32_PLATFORM_TRUE
723 PLATFORM
724 LIBFFIINCS
725 LIBFFI
726 INTERPRETER_FALSE
727 INTERPRETER_TRUE
728 INTERPRETER
729 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE
730 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE
731 SUPPRESS_LIBGCJ_BC_FALSE
732 SUPPRESS_LIBGCJ_BC_TRUE
733 JAVA_HOME
734 JAVA_HOME_SET_FALSE
735 JAVA_HOME_SET_TRUE
736 INSTALL_ECJ_JAR_FALSE
737 INSTALL_ECJ_JAR_TRUE
738 BUILD_ECJ1_FALSE
739 BUILD_ECJ1_TRUE
740 ECJ_JAR
741 ECJ_BUILD_JAR
742 TESTSUBDIR_FALSE
743 TESTSUBDIR_TRUE
744 subdirs
745 am__fastdepGCJ_FALSE
746 am__fastdepGCJ_TRUE
747 GCJDEPMODE
748 GCJFLAGS
749 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_LTFLAGS
783 LIBGCJ_JAVAFLAGS
784 LIBGCJ_CXXFLAGS
785 LIBGCJ_CFLAGS
786 MAINT
787 MAINTAINER_MODE_FALSE
788 MAINTAINER_MODE_TRUE
789 UNZIP
790 ZIP
791 JAR
792 RANLIB
793 AR
794 LD
795 AS
796 am__fastdepCXX_FALSE
797 am__fastdepCXX_TRUE
798 CXXDEPMODE
799 am__fastdepCC_FALSE
800 am__fastdepCC_TRUE
801 CCDEPMODE
802 AMDEPBACKSLASH
803 AMDEP_FALSE
804 AMDEP_TRUE
805 am__quote
806 am__include
807 DEPDIR
808 am__untar
809 am__tar
810 AMTAR
811 am__leading_dot
812 SET_MAKE
813 AWK
814 mkdir_p
815 MKDIR_P
816 INSTALL_STRIP_PROGRAM
817 STRIP
818 install_sh
819 MAKEINFO
820 AUTOHEADER
821 AUTOMAKE
822 AUTOCONF
823 ACLOCAL
824 VERSION
825 PACKAGE
826 CYGPATH_W
827 am__isrc
828 INSTALL_DATA
829 INSTALL_SCRIPT
830 INSTALL_PROGRAM
831 ac_ct_CXX
832 CXXFLAGS
833 CXX
834 OBJEXT
835 EXEEXT
836 ac_ct_CC
837 CPPFLAGS
838 LDFLAGS
839 CFLAGS
840 CC
841 JAVA_MAINTAINER_MODE_FALSE
842 JAVA_MAINTAINER_MODE_TRUE
843 CREATE_GJDOC_FALSE
844 CREATE_GJDOC_TRUE
845 ANTLR_JAR
846 mkinstalldirs
847 LN_S
848 target_noncanonical
849 target_os
850 target_vendor
851 target_cpu
852 target
853 host_os
854 host_vendor
855 host_cpu
856 host
857 multi_basedir
858 target_subdir
859 host_subdir
860 build_subdir
861 build_libsubdir
862 build_os
863 build_vendor
864 build_cpu
865 build
866 target_alias
867 host_alias
868 build_alias
869 LIBS
870 ECHO_T
871 ECHO_N
872 ECHO_C
873 DEFS
874 mandir
875 localedir
876 libdir
877 psdir
878 pdfdir
879 dvidir
880 htmldir
881 infodir
882 docdir
883 oldincludedir
884 includedir
885 localstatedir
886 sharedstatedir
887 sysconfdir
888 datadir
889 datarootdir
890 libexecdir
891 sbindir
892 bindir
893 program_transform_name
894 prefix
895 exec_prefix
896 PACKAGE_URL
897 PACKAGE_BUGREPORT
898 PACKAGE_STRING
899 PACKAGE_VERSION
900 PACKAGE_TARNAME
901 PACKAGE_NAME
902 PATH_SEPARATOR
903 SHELL'
904 ac_subst_files=''
905 ac_user_opts='
906 enable_option_checking
907 with_build_libsubdir
908 with_target_subdir
909 enable_multilib
910 with_cross_host
911 with_newlib
912 enable_version_specific_runtime_libs
913 enable_browser_plugin
914 enable_gconf_peer
915 with_antlr_jar
916 enable_gjdoc
917 enable_java_maintainer_mode
918 enable_dependency_tracking
919 enable_maintainer_mode
920 enable_libgcj_sublibs
921 enable_libgcj_debug
922 with_escher
923 enable_java_awt
924 enable_shared
925 enable_static
926 with_pic
927 enable_fast_install
928 with_gnu_ld
929 enable_libtool_lock
930 enable_getenv_properties
931 enable_hash_synchronization
932 with_ecj_jar
933 with_java_home
934 enable_libgcj_bc
935 enable_reduced_reflection
936 with_win32_nlsapi
937 enable_gc_debug
938 enable_interpreter
939 enable_sjlj_exceptions
940 enable_java_net
941 with_libffi
942 enable_jvmpi
943 with_ecos
944 with_system_zlib
945 with_x
946 enable_java_gc
947 enable_rpath
948 with_libiconv_prefix
949 enable_tls
950 with_system_libunwind
951 with_python_dir
952 enable_aot_compile_rpm
953 enable_java_home
954 with_gcc_suffix
955 with_arch_directory
956 with_os_directory
957 with_origin_name
958 with_arch_suffix
959 with_jvm_root_dir
960 with_jvm_jar_dir
961 '
962       ac_precious_vars='build_alias
963 host_alias
964 target_alias
965 CPP
966 CPPFLAGS
967 CXXCPP
968 XMKMF'
969 ac_subdirs_all='classpath libltdl'
970
971 # Initialize some variables set by options.
972 ac_init_help=
973 ac_init_version=false
974 ac_unrecognized_opts=
975 ac_unrecognized_sep=
976 # The variables have the same names as the options, with
977 # dashes changed to underlines.
978 cache_file=/dev/null
979 exec_prefix=NONE
980 no_create=
981 no_recursion=
982 prefix=NONE
983 program_prefix=NONE
984 program_suffix=NONE
985 program_transform_name=s,x,x,
986 silent=
987 site=
988 srcdir=
989 verbose=
990 x_includes=NONE
991 x_libraries=NONE
992
993 # Installation directory options.
994 # These are left unexpanded so users can "make install exec_prefix=/foo"
995 # and all the variables that are supposed to be based on exec_prefix
996 # by default will actually change.
997 # Use braces instead of parens because sh, perl, etc. also accept them.
998 # (The list follows the same order as the GNU Coding Standards.)
999 bindir='${exec_prefix}/bin'
1000 sbindir='${exec_prefix}/sbin'
1001 libexecdir='${exec_prefix}/libexec'
1002 datarootdir='${prefix}/share'
1003 datadir='${datarootdir}'
1004 sysconfdir='${prefix}/etc'
1005 sharedstatedir='${prefix}/com'
1006 localstatedir='${prefix}/var'
1007 includedir='${prefix}/include'
1008 oldincludedir='/usr/include'
1009 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1010 infodir='${datarootdir}/info'
1011 htmldir='${docdir}'
1012 dvidir='${docdir}'
1013 pdfdir='${docdir}'
1014 psdir='${docdir}'
1015 libdir='${exec_prefix}/lib'
1016 localedir='${datarootdir}/locale'
1017 mandir='${datarootdir}/man'
1018
1019 ac_prev=
1020 ac_dashdash=
1021 for ac_option
1022 do
1023   # If the previous option needs an argument, assign it.
1024   if test -n "$ac_prev"; then
1025     eval $ac_prev=\$ac_option
1026     ac_prev=
1027     continue
1028   fi
1029
1030   case $ac_option in
1031   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1032   *)    ac_optarg=yes ;;
1033   esac
1034
1035   # Accept the important Cygnus configure options, so we can diagnose typos.
1036
1037   case $ac_dashdash$ac_option in
1038   --)
1039     ac_dashdash=yes ;;
1040
1041   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1042     ac_prev=bindir ;;
1043   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1044     bindir=$ac_optarg ;;
1045
1046   -build | --build | --buil | --bui | --bu)
1047     ac_prev=build_alias ;;
1048   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1049     build_alias=$ac_optarg ;;
1050
1051   -cache-file | --cache-file | --cache-fil | --cache-fi \
1052   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1053     ac_prev=cache_file ;;
1054   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1055   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1056     cache_file=$ac_optarg ;;
1057
1058   --config-cache | -C)
1059     cache_file=config.cache ;;
1060
1061   -datadir | --datadir | --datadi | --datad)
1062     ac_prev=datadir ;;
1063   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1064     datadir=$ac_optarg ;;
1065
1066   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1067   | --dataroo | --dataro | --datar)
1068     ac_prev=datarootdir ;;
1069   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1070   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1071     datarootdir=$ac_optarg ;;
1072
1073   -disable-* | --disable-*)
1074     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1075     # Reject names that are not valid shell variable names.
1076     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077       as_fn_error "invalid feature name: $ac_useropt"
1078     ac_useropt_orig=$ac_useropt
1079     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080     case $ac_user_opts in
1081       *"
1082 "enable_$ac_useropt"
1083 "*) ;;
1084       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1085          ac_unrecognized_sep=', ';;
1086     esac
1087     eval enable_$ac_useropt=no ;;
1088
1089   -docdir | --docdir | --docdi | --doc | --do)
1090     ac_prev=docdir ;;
1091   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1092     docdir=$ac_optarg ;;
1093
1094   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1095     ac_prev=dvidir ;;
1096   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1097     dvidir=$ac_optarg ;;
1098
1099   -enable-* | --enable-*)
1100     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1101     # Reject names that are not valid shell variable names.
1102     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103       as_fn_error "invalid feature name: $ac_useropt"
1104     ac_useropt_orig=$ac_useropt
1105     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106     case $ac_user_opts in
1107       *"
1108 "enable_$ac_useropt"
1109 "*) ;;
1110       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1111          ac_unrecognized_sep=', ';;
1112     esac
1113     eval enable_$ac_useropt=\$ac_optarg ;;
1114
1115   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1116   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1117   | --exec | --exe | --ex)
1118     ac_prev=exec_prefix ;;
1119   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1120   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1121   | --exec=* | --exe=* | --ex=*)
1122     exec_prefix=$ac_optarg ;;
1123
1124   -gas | --gas | --ga | --g)
1125     # Obsolete; use --with-gas.
1126     with_gas=yes ;;
1127
1128   -help | --help | --hel | --he | -h)
1129     ac_init_help=long ;;
1130   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1131     ac_init_help=recursive ;;
1132   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1133     ac_init_help=short ;;
1134
1135   -host | --host | --hos | --ho)
1136     ac_prev=host_alias ;;
1137   -host=* | --host=* | --hos=* | --ho=*)
1138     host_alias=$ac_optarg ;;
1139
1140   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1141     ac_prev=htmldir ;;
1142   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1143   | --ht=*)
1144     htmldir=$ac_optarg ;;
1145
1146   -includedir | --includedir | --includedi | --included | --include \
1147   | --includ | --inclu | --incl | --inc)
1148     ac_prev=includedir ;;
1149   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1150   | --includ=* | --inclu=* | --incl=* | --inc=*)
1151     includedir=$ac_optarg ;;
1152
1153   -infodir | --infodir | --infodi | --infod | --info | --inf)
1154     ac_prev=infodir ;;
1155   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1156     infodir=$ac_optarg ;;
1157
1158   -libdir | --libdir | --libdi | --libd)
1159     ac_prev=libdir ;;
1160   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1161     libdir=$ac_optarg ;;
1162
1163   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1164   | --libexe | --libex | --libe)
1165     ac_prev=libexecdir ;;
1166   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1167   | --libexe=* | --libex=* | --libe=*)
1168     libexecdir=$ac_optarg ;;
1169
1170   -localedir | --localedir | --localedi | --localed | --locale)
1171     ac_prev=localedir ;;
1172   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1173     localedir=$ac_optarg ;;
1174
1175   -localstatedir | --localstatedir | --localstatedi | --localstated \
1176   | --localstate | --localstat | --localsta | --localst | --locals)
1177     ac_prev=localstatedir ;;
1178   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1179   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1180     localstatedir=$ac_optarg ;;
1181
1182   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1183     ac_prev=mandir ;;
1184   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1185     mandir=$ac_optarg ;;
1186
1187   -nfp | --nfp | --nf)
1188     # Obsolete; use --without-fp.
1189     with_fp=no ;;
1190
1191   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1192   | --no-cr | --no-c | -n)
1193     no_create=yes ;;
1194
1195   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1196   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1197     no_recursion=yes ;;
1198
1199   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1200   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1201   | --oldin | --oldi | --old | --ol | --o)
1202     ac_prev=oldincludedir ;;
1203   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1204   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1205   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1206     oldincludedir=$ac_optarg ;;
1207
1208   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1209     ac_prev=prefix ;;
1210   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1211     prefix=$ac_optarg ;;
1212
1213   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1214   | --program-pre | --program-pr | --program-p)
1215     ac_prev=program_prefix ;;
1216   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1217   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1218     program_prefix=$ac_optarg ;;
1219
1220   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1221   | --program-suf | --program-su | --program-s)
1222     ac_prev=program_suffix ;;
1223   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1224   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1225     program_suffix=$ac_optarg ;;
1226
1227   -program-transform-name | --program-transform-name \
1228   | --program-transform-nam | --program-transform-na \
1229   | --program-transform-n | --program-transform- \
1230   | --program-transform | --program-transfor \
1231   | --program-transfo | --program-transf \
1232   | --program-trans | --program-tran \
1233   | --progr-tra | --program-tr | --program-t)
1234     ac_prev=program_transform_name ;;
1235   -program-transform-name=* | --program-transform-name=* \
1236   | --program-transform-nam=* | --program-transform-na=* \
1237   | --program-transform-n=* | --program-transform-=* \
1238   | --program-transform=* | --program-transfor=* \
1239   | --program-transfo=* | --program-transf=* \
1240   | --program-trans=* | --program-tran=* \
1241   | --progr-tra=* | --program-tr=* | --program-t=*)
1242     program_transform_name=$ac_optarg ;;
1243
1244   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1245     ac_prev=pdfdir ;;
1246   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1247     pdfdir=$ac_optarg ;;
1248
1249   -psdir | --psdir | --psdi | --psd | --ps)
1250     ac_prev=psdir ;;
1251   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1252     psdir=$ac_optarg ;;
1253
1254   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1255   | -silent | --silent | --silen | --sile | --sil)
1256     silent=yes ;;
1257
1258   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1259     ac_prev=sbindir ;;
1260   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1261   | --sbi=* | --sb=*)
1262     sbindir=$ac_optarg ;;
1263
1264   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1265   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1266   | --sharedst | --shareds | --shared | --share | --shar \
1267   | --sha | --sh)
1268     ac_prev=sharedstatedir ;;
1269   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1270   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1271   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1272   | --sha=* | --sh=*)
1273     sharedstatedir=$ac_optarg ;;
1274
1275   -site | --site | --sit)
1276     ac_prev=site ;;
1277   -site=* | --site=* | --sit=*)
1278     site=$ac_optarg ;;
1279
1280   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1281     ac_prev=srcdir ;;
1282   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1283     srcdir=$ac_optarg ;;
1284
1285   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1286   | --syscon | --sysco | --sysc | --sys | --sy)
1287     ac_prev=sysconfdir ;;
1288   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1289   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1290     sysconfdir=$ac_optarg ;;
1291
1292   -target | --target | --targe | --targ | --tar | --ta | --t)
1293     ac_prev=target_alias ;;
1294   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1295     target_alias=$ac_optarg ;;
1296
1297   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1298     verbose=yes ;;
1299
1300   -version | --version | --versio | --versi | --vers | -V)
1301     ac_init_version=: ;;
1302
1303   -with-* | --with-*)
1304     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1305     # Reject names that are not valid shell variable names.
1306     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1307       as_fn_error "invalid package name: $ac_useropt"
1308     ac_useropt_orig=$ac_useropt
1309     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1310     case $ac_user_opts in
1311       *"
1312 "with_$ac_useropt"
1313 "*) ;;
1314       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1315          ac_unrecognized_sep=', ';;
1316     esac
1317     eval with_$ac_useropt=\$ac_optarg ;;
1318
1319   -without-* | --without-*)
1320     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1321     # Reject names that are not valid shell variable names.
1322     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1323       as_fn_error "invalid package name: $ac_useropt"
1324     ac_useropt_orig=$ac_useropt
1325     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1326     case $ac_user_opts in
1327       *"
1328 "with_$ac_useropt"
1329 "*) ;;
1330       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1331          ac_unrecognized_sep=', ';;
1332     esac
1333     eval with_$ac_useropt=no ;;
1334
1335   --x)
1336     # Obsolete; use --with-x.
1337     with_x=yes ;;
1338
1339   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1340   | --x-incl | --x-inc | --x-in | --x-i)
1341     ac_prev=x_includes ;;
1342   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1343   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1344     x_includes=$ac_optarg ;;
1345
1346   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1347   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1348     ac_prev=x_libraries ;;
1349   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1350   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1351     x_libraries=$ac_optarg ;;
1352
1353   -*) as_fn_error "unrecognized option: \`$ac_option'
1354 Try \`$0 --help' for more information."
1355     ;;
1356
1357   *=*)
1358     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1359     # Reject names that are not valid shell variable names.
1360     case $ac_envvar in #(
1361       '' | [0-9]* | *[!_$as_cr_alnum]* )
1362       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1363     esac
1364     eval $ac_envvar=\$ac_optarg
1365     export $ac_envvar ;;
1366
1367   *)
1368     # FIXME: should be removed in autoconf 3.0.
1369     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1370     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1371       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1372     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1373     ;;
1374
1375   esac
1376 done
1377
1378 if test -n "$ac_prev"; then
1379   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1380   as_fn_error "missing argument to $ac_option"
1381 fi
1382
1383 if test -n "$ac_unrecognized_opts"; then
1384   case $enable_option_checking in
1385     no) ;;
1386     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1387     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1388   esac
1389 fi
1390
1391 # Check all directory arguments for consistency.
1392 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1393                 datadir sysconfdir sharedstatedir localstatedir includedir \
1394                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1395                 libdir localedir mandir
1396 do
1397   eval ac_val=\$$ac_var
1398   # Remove trailing slashes.
1399   case $ac_val in
1400     */ )
1401       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1402       eval $ac_var=\$ac_val;;
1403   esac
1404   # Be sure to have absolute directory names.
1405   case $ac_val in
1406     [\\/$]* | ?:[\\/]* )  continue;;
1407     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1408   esac
1409   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1410 done
1411
1412 # There might be people who depend on the old broken behavior: `$host'
1413 # used to hold the argument of --host etc.
1414 # FIXME: To remove some day.
1415 build=$build_alias
1416 host=$host_alias
1417 target=$target_alias
1418
1419 # FIXME: To remove some day.
1420 if test "x$host_alias" != x; then
1421   if test "x$build_alias" = x; then
1422     cross_compiling=maybe
1423     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1424     If a cross compiler is detected then cross compile mode will be used." >&2
1425   elif test "x$build_alias" != "x$host_alias"; then
1426     cross_compiling=yes
1427   fi
1428 fi
1429
1430 ac_tool_prefix=
1431 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1432
1433 test "$silent" = yes && exec 6>/dev/null
1434
1435
1436 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1437 ac_ls_di=`ls -di .` &&
1438 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1439   as_fn_error "working directory cannot be determined"
1440 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1441   as_fn_error "pwd does not report name of working directory"
1442
1443
1444 # Find the source files, if location was not specified.
1445 if test -z "$srcdir"; then
1446   ac_srcdir_defaulted=yes
1447   # Try the directory containing this script, then the parent directory.
1448   ac_confdir=`$as_dirname -- "$as_myself" ||
1449 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1450          X"$as_myself" : 'X\(//\)[^/]' \| \
1451          X"$as_myself" : 'X\(//\)$' \| \
1452          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1453 $as_echo X"$as_myself" |
1454     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1455             s//\1/
1456             q
1457           }
1458           /^X\(\/\/\)[^/].*/{
1459             s//\1/
1460             q
1461           }
1462           /^X\(\/\/\)$/{
1463             s//\1/
1464             q
1465           }
1466           /^X\(\/\).*/{
1467             s//\1/
1468             q
1469           }
1470           s/.*/./; q'`
1471   srcdir=$ac_confdir
1472   if test ! -r "$srcdir/$ac_unique_file"; then
1473     srcdir=..
1474   fi
1475 else
1476   ac_srcdir_defaulted=no
1477 fi
1478 if test ! -r "$srcdir/$ac_unique_file"; then
1479   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1480   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1481 fi
1482 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1483 ac_abs_confdir=`(
1484         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1485         pwd)`
1486 # When building in place, set srcdir=.
1487 if test "$ac_abs_confdir" = "$ac_pwd"; then
1488   srcdir=.
1489 fi
1490 # Remove unnecessary trailing slashes from srcdir.
1491 # Double slashes in file names in object file debugging info
1492 # mess up M-x gdb in Emacs.
1493 case $srcdir in
1494 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1495 esac
1496 for ac_var in $ac_precious_vars; do
1497   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1498   eval ac_env_${ac_var}_value=\$${ac_var}
1499   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1500   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1501 done
1502
1503 #
1504 # Report the --help message.
1505 #
1506 if test "$ac_init_help" = "long"; then
1507   # Omit some internal or obsolete options to make the list less imposing.
1508   # This message is too long to be a string in the A/UX 3.1 sh.
1509   cat <<_ACEOF
1510 \`configure' configures libjava version-unused to adapt to many kinds of systems.
1511
1512 Usage: $0 [OPTION]... [VAR=VALUE]...
1513
1514 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1515 VAR=VALUE.  See below for descriptions of some of the useful variables.
1516
1517 Defaults for the options are specified in brackets.
1518
1519 Configuration:
1520   -h, --help              display this help and exit
1521       --help=short        display options specific to this package
1522       --help=recursive    display the short help of all the included packages
1523   -V, --version           display version information and exit
1524   -q, --quiet, --silent   do not print \`checking...' messages
1525       --cache-file=FILE   cache test results in FILE [disabled]
1526   -C, --config-cache      alias for \`--cache-file=config.cache'
1527   -n, --no-create         do not create output files
1528       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1529
1530 Installation directories:
1531   --prefix=PREFIX         install architecture-independent files in PREFIX
1532                           [$ac_default_prefix]
1533   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1534                           [PREFIX]
1535
1536 By default, \`make install' will install all the files in
1537 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1538 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1539 for instance \`--prefix=\$HOME'.
1540
1541 For better control, use the options below.
1542
1543 Fine tuning of the installation directories:
1544   --bindir=DIR            user executables [EPREFIX/bin]
1545   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1546   --libexecdir=DIR        program executables [EPREFIX/libexec]
1547   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1548   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1549   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1550   --libdir=DIR            object code libraries [EPREFIX/lib]
1551   --includedir=DIR        C header files [PREFIX/include]
1552   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1553   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1554   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1555   --infodir=DIR           info documentation [DATAROOTDIR/info]
1556   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1557   --mandir=DIR            man documentation [DATAROOTDIR/man]
1558   --docdir=DIR            documentation root [DATAROOTDIR/doc/libjava]
1559   --htmldir=DIR           html documentation [DOCDIR]
1560   --dvidir=DIR            dvi documentation [DOCDIR]
1561   --pdfdir=DIR            pdf documentation [DOCDIR]
1562   --psdir=DIR             ps documentation [DOCDIR]
1563 _ACEOF
1564
1565   cat <<\_ACEOF
1566
1567 Program names:
1568   --program-prefix=PREFIX            prepend PREFIX to installed program names
1569   --program-suffix=SUFFIX            append SUFFIX to installed program names
1570   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1571
1572 X features:
1573   --x-includes=DIR    X include files are in DIR
1574   --x-libraries=DIR   X library files are in DIR
1575
1576 System types:
1577   --build=BUILD     configure for building on BUILD [guessed]
1578   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1579   --target=TARGET   configure for building compilers for TARGET [HOST]
1580 _ACEOF
1581 fi
1582
1583 if test -n "$ac_init_help"; then
1584   case $ac_init_help in
1585      short | recursive ) echo "Configuration of libjava version-unused:";;
1586    esac
1587   cat <<\_ACEOF
1588
1589 Optional Features:
1590   --disable-option-checking  ignore unrecognized --enable/--with options
1591   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1592   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1593   --enable-multilib       build many library versions (default)
1594   --enable-version-specific-runtime-libs
1595                           specify that runtime libraries should be installed
1596                           in a compiler-specific directory
1597   --enable-browser-plugin build gcjwebplugin web browser plugin
1598   --enable-gconf-peer     compile GConf native peers for util.preferences
1599   --disable-gjdoc         compile GJDoc (disabled by --disable-gjdoc)
1600                           default=yes
1601   --enable-java-maintainer-mode
1602                           allow rebuilding of .class and .h files
1603   --disable-dependency-tracking  speeds up one-time build
1604   --enable-dependency-tracking   do not reject slow dependency extractors
1605   --enable-maintainer-mode  enable make rules and dependencies not useful
1606                           (and sometimes confusing) to the casual installer
1607   --enable-libgcj-sublibs build libgcj as many sub-libraries
1608   --enable-libgcj-debug   enable runtime debugging code
1609   --enable-java-awt       list of AWT peer implementations to be built
1610   --enable-shared[=PKGS]  build shared libraries [default=yes]
1611   --enable-static[=PKGS]  build static libraries [default=yes]
1612   --enable-fast-install[=PKGS]
1613                           optimize for fast installation [default=yes]
1614   --disable-libtool-lock  avoid locking (might break parallel builds)
1615   --disable-getenv-properties
1616                           don't set system properties from GCJ_PROPERTIES
1617   --enable-hash-synchronization
1618                           use global hash table for monitor locks
1619   --enable-libgcj-bc      enable(default) or disable BC ABI for portions of
1620                           libgcj
1621   --enable-reduced-reflection
1622                           enable or disable(default) -freduced-reflection when
1623                           building portions of libgcj
1624   --enable-gc-debug       include full support for pointer backtracing etc.
1625   --enable-interpreter    enable interpreter
1626   --enable-sjlj-exceptions
1627                           force use of builtin_setjmp for exceptions
1628   --disable-java-net      disable java.net
1629   --disable-jvmpi         disable JVMPI support
1630   --enable-java-gc=TYPE   choose garbage collector (default is boehm)
1631   --disable-rpath         do not hardcode runtime library paths
1632   --enable-tls            Use thread-local storage [default=yes]
1633   --enable-aot-compile-rpm
1634                           enable installation of aot-compile-rpm [default=no]
1635   --enable-java-home      create a standard JDK-style directory layout in the
1636                           install tree [default=no]
1637
1638 Optional Packages:
1639   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1640   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1641   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1642   --with-target-subdir=SUBDIR
1643                           configure in a subdirectory
1644   --with-cross-host=HOST  configure with a cross compiler from HOST
1645   --with-newlib           configure with newlib
1646   --with-antlr-jar=file   Use ANTLR from the specified jar file
1647   --with-escher=ABS.PATH  specify path to escher dir or JAR for X peers
1648   --with-pic              try to use only PIC/non-PIC objects [default=use
1649                           both]
1650   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1651   --with-ecj-jar=FILE     use preinstalled ecj jar
1652   --with-java-home=DIRECTORY
1653                           value of java.home system property
1654   --with-win32-nlsapi=ansi or unicows or unicode
1655                           native MinGW libgcj Win32 OS API (default is ansi)
1656   --without-libffi        don't use libffi
1657   --with-ecos             enable runtime eCos target support
1658   --with-system-zlib      use installed libz
1659   --with-x                use the X Window System
1660   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1661   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1662   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1663   --with-system-libunwind use installed libunwind
1664   --with-python-dir       the location to install Python modules. This path
1665                           should NOT include the prefix.
1666   --with-gcc-suffix       the GCC tool suffix (defaults to empty string)
1667   --with-arch-directory   the arch directory under jre/lib (defaults to
1668                           auto-detect)
1669   --with-os-directory     the os directory under include (defaults to
1670                           auto-detect)
1671   --with-origin-name      the JPackage origin name of this package (default is
1672                           gcj${gcc_suffix}
1673   --with-arch-suffix      the arch directory suffix (default is the empty
1674                           string
1675   --with-jvm-root-dir     where to install SDK (default is ${prefix}/lib/jvm)
1676   --with-jvm-jar-dir      where to install jars (default is
1677                           ${prefix}/lib/jvm-exports)
1678
1679 Some influential environment variables:
1680   CC          C compiler command
1681   CFLAGS      C compiler flags
1682   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1683               nonstandard directory <lib dir>
1684   LIBS        libraries to pass to the linker, e.g. -l<library>
1685   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1686               you have headers in a nonstandard directory <include dir>
1687   CXX         C++ compiler command
1688   CXXFLAGS    C++ compiler flags
1689   CPP         C preprocessor
1690   CXXCPP      C++ preprocessor
1691   XMKMF       Path to xmkmf, Makefile generator for X Window System
1692
1693 Use these variables to override the choices made by `configure' or to help
1694 it to find libraries and programs with nonstandard names/locations.
1695
1696 Report bugs to the package provider.
1697 _ACEOF
1698 ac_status=$?
1699 fi
1700
1701 if test "$ac_init_help" = "recursive"; then
1702   # If there are subdirs, report their specific --help.
1703   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1704     test -d "$ac_dir" ||
1705       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1706       continue
1707     ac_builddir=.
1708
1709 case "$ac_dir" in
1710 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1711 *)
1712   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1713   # A ".." for each directory in $ac_dir_suffix.
1714   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1715   case $ac_top_builddir_sub in
1716   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1717   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1718   esac ;;
1719 esac
1720 ac_abs_top_builddir=$ac_pwd
1721 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1722 # for backward compatibility:
1723 ac_top_builddir=$ac_top_build_prefix
1724
1725 case $srcdir in
1726   .)  # We are building in place.
1727     ac_srcdir=.
1728     ac_top_srcdir=$ac_top_builddir_sub
1729     ac_abs_top_srcdir=$ac_pwd ;;
1730   [\\/]* | ?:[\\/]* )  # Absolute name.
1731     ac_srcdir=$srcdir$ac_dir_suffix;
1732     ac_top_srcdir=$srcdir
1733     ac_abs_top_srcdir=$srcdir ;;
1734   *) # Relative name.
1735     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1736     ac_top_srcdir=$ac_top_build_prefix$srcdir
1737     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1738 esac
1739 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1740
1741     cd "$ac_dir" || { ac_status=$?; continue; }
1742     # Check for guested configure.
1743     if test -f "$ac_srcdir/configure.gnu"; then
1744       echo &&
1745       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1746     elif test -f "$ac_srcdir/configure"; then
1747       echo &&
1748       $SHELL "$ac_srcdir/configure" --help=recursive
1749     else
1750       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1751     fi || ac_status=$?
1752     cd "$ac_pwd" || { ac_status=$?; break; }
1753   done
1754 fi
1755
1756 test -n "$ac_init_help" && exit $ac_status
1757 if $ac_init_version; then
1758   cat <<\_ACEOF
1759 libjava configure version-unused
1760 generated by GNU Autoconf 2.64
1761
1762 Copyright (C) 2009 Free Software Foundation, Inc.
1763 This configure script is free software; the Free Software Foundation
1764 gives unlimited permission to copy, distribute and modify it.
1765 _ACEOF
1766   exit
1767 fi
1768
1769 ## ------------------------ ##
1770 ## Autoconf initialization. ##
1771 ## ------------------------ ##
1772
1773 # ac_fn_c_try_compile LINENO
1774 # --------------------------
1775 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1776 ac_fn_c_try_compile ()
1777 {
1778   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779   rm -f conftest.$ac_objext
1780   if { { ac_try="$ac_compile"
1781 case "(($ac_try" in
1782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783   *) ac_try_echo=$ac_try;;
1784 esac
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787   (eval "$ac_compile") 2>conftest.err
1788   ac_status=$?
1789   if test -s conftest.err; then
1790     grep -v '^ *+' conftest.err >conftest.er1
1791     cat conftest.er1 >&5
1792     mv -f conftest.er1 conftest.err
1793   fi
1794   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795   test $ac_status = 0; } && {
1796          test -z "$ac_c_werror_flag" ||
1797          test ! -s conftest.err
1798        } && test -s conftest.$ac_objext; then :
1799   ac_retval=0
1800 else
1801   $as_echo "$as_me: failed program was:" >&5
1802 sed 's/^/| /' conftest.$ac_ext >&5
1803
1804         ac_retval=1
1805 fi
1806   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1807   return $ac_retval
1808
1809 } # ac_fn_c_try_compile
1810
1811 # ac_fn_cxx_try_compile LINENO
1812 # ----------------------------
1813 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1814 ac_fn_cxx_try_compile ()
1815 {
1816   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817   rm -f conftest.$ac_objext
1818   if { { ac_try="$ac_compile"
1819 case "(($ac_try" in
1820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821   *) ac_try_echo=$ac_try;;
1822 esac
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825   (eval "$ac_compile") 2>conftest.err
1826   ac_status=$?
1827   if test -s conftest.err; then
1828     grep -v '^ *+' conftest.err >conftest.er1
1829     cat conftest.er1 >&5
1830     mv -f conftest.er1 conftest.err
1831   fi
1832   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833   test $ac_status = 0; } && {
1834          test -z "$ac_cxx_werror_flag" ||
1835          test ! -s conftest.err
1836        } && test -s conftest.$ac_objext; then :
1837   ac_retval=0
1838 else
1839   $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1841
1842         ac_retval=1
1843 fi
1844   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1845   return $ac_retval
1846
1847 } # ac_fn_cxx_try_compile
1848
1849 # ac_fn_c_try_link LINENO
1850 # -----------------------
1851 # Try to link conftest.$ac_ext, and return whether this succeeded.
1852 ac_fn_c_try_link ()
1853 {
1854   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855   rm -f conftest.$ac_objext conftest$ac_exeext
1856   if { { ac_try="$ac_link"
1857 case "(($ac_try" in
1858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859   *) ac_try_echo=$ac_try;;
1860 esac
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863   (eval "$ac_link") 2>conftest.err
1864   ac_status=$?
1865   if test -s conftest.err; then
1866     grep -v '^ *+' conftest.err >conftest.er1
1867     cat conftest.er1 >&5
1868     mv -f conftest.er1 conftest.err
1869   fi
1870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871   test $ac_status = 0; } && {
1872          test -z "$ac_c_werror_flag" ||
1873          test ! -s conftest.err
1874        } && test -s conftest$ac_exeext && {
1875          test "$cross_compiling" = yes ||
1876          $as_test_x conftest$ac_exeext
1877        }; then :
1878   ac_retval=0
1879 else
1880   $as_echo "$as_me: failed program was:" >&5
1881 sed 's/^/| /' conftest.$ac_ext >&5
1882
1883         ac_retval=1
1884 fi
1885   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1886   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1887   # interfere with the next link command; also delete a directory that is
1888   # left behind by Apple's compiler.  We do this before executing the actions.
1889   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1890   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1891   return $ac_retval
1892
1893 } # ac_fn_c_try_link
1894
1895 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1896 # -------------------------------------------------------
1897 # Tests whether HEADER exists and can be compiled using the include files in
1898 # INCLUDES, setting the cache variable VAR accordingly.
1899 ac_fn_c_check_header_compile ()
1900 {
1901   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903 $as_echo_n "checking for $2... " >&6; }
1904 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1905   $as_echo_n "(cached) " >&6
1906 else
1907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h.  */
1909 $4
1910 #include <$2>
1911 _ACEOF
1912 if ac_fn_c_try_compile "$LINENO"; then :
1913   eval "$3=yes"
1914 else
1915   eval "$3=no"
1916 fi
1917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1918 fi
1919 eval ac_res=\$$3
1920                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921 $as_echo "$ac_res" >&6; }
1922   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1923
1924 } # ac_fn_c_check_header_compile
1925
1926 # ac_fn_c_try_cpp LINENO
1927 # ----------------------
1928 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1929 ac_fn_c_try_cpp ()
1930 {
1931   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932   if { { ac_try="$ac_cpp conftest.$ac_ext"
1933 case "(($ac_try" in
1934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935   *) ac_try_echo=$ac_try;;
1936 esac
1937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938 $as_echo "$ac_try_echo"; } >&5
1939   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1940   ac_status=$?
1941   if test -s conftest.err; then
1942     grep -v '^ *+' conftest.err >conftest.er1
1943     cat conftest.er1 >&5
1944     mv -f conftest.er1 conftest.err
1945   fi
1946   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947   test $ac_status = 0; } >/dev/null && {
1948          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1949          test ! -s conftest.err
1950        }; then :
1951   ac_retval=0
1952 else
1953   $as_echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.$ac_ext >&5
1955
1956     ac_retval=1
1957 fi
1958   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1959   return $ac_retval
1960
1961 } # ac_fn_c_try_cpp
1962
1963 # ac_fn_c_try_run LINENO
1964 # ----------------------
1965 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1966 # that executables *can* be run.
1967 ac_fn_c_try_run ()
1968 {
1969   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970   if { { ac_try="$ac_link"
1971 case "(($ac_try" in
1972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1973   *) ac_try_echo=$ac_try;;
1974 esac
1975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1976 $as_echo "$ac_try_echo"; } >&5
1977   (eval "$ac_link") 2>&5
1978   ac_status=$?
1979   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1981   { { case "(($ac_try" in
1982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1983   *) ac_try_echo=$ac_try;;
1984 esac
1985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986 $as_echo "$ac_try_echo"; } >&5
1987   (eval "$ac_try") 2>&5
1988   ac_status=$?
1989   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990   test $ac_status = 0; }; }; then :
1991   ac_retval=0
1992 else
1993   $as_echo "$as_me: program exited with status $ac_status" >&5
1994        $as_echo "$as_me: failed program was:" >&5
1995 sed 's/^/| /' conftest.$ac_ext >&5
1996
1997        ac_retval=$ac_status
1998 fi
1999   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2000   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2001   return $ac_retval
2002
2003 } # ac_fn_c_try_run
2004
2005 # ac_fn_c_check_func LINENO FUNC VAR
2006 # ----------------------------------
2007 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2008 ac_fn_c_check_func ()
2009 {
2010   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2014   $as_echo_n "(cached) " >&6
2015 else
2016   if test x$gcc_no_link = xyes; then
2017   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2018 fi
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h.  */
2021 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2022    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2023 #define $2 innocuous_$2
2024
2025 /* System header to define __stub macros and hopefully few prototypes,
2026     which can conflict with char $2 (); below.
2027     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2028     <limits.h> exists even on freestanding compilers.  */
2029
2030 #ifdef __STDC__
2031 # include <limits.h>
2032 #else
2033 # include <assert.h>
2034 #endif
2035
2036 #undef $2
2037
2038 /* Override any GCC internal prototype to avoid an error.
2039    Use char because int might match the return type of a GCC
2040    builtin and then its argument prototype would still apply.  */
2041 #ifdef __cplusplus
2042 extern "C"
2043 #endif
2044 char $2 ();
2045 /* The GNU C library defines this for functions which it implements
2046     to always fail with ENOSYS.  Some functions are actually named
2047     something starting with __ and the normal name is an alias.  */
2048 #if defined __stub_$2 || defined __stub___$2
2049 choke me
2050 #endif
2051
2052 int
2053 main ()
2054 {
2055 return $2 ();
2056   ;
2057   return 0;
2058 }
2059 _ACEOF
2060 if ac_fn_c_try_link "$LINENO"; then :
2061   eval "$3=yes"
2062 else
2063   eval "$3=no"
2064 fi
2065 rm -f core conftest.err conftest.$ac_objext \
2066     conftest$ac_exeext conftest.$ac_ext
2067 fi
2068 eval ac_res=\$$3
2069                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2070 $as_echo "$ac_res" >&6; }
2071   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2072
2073 } # ac_fn_c_check_func
2074
2075 # ac_fn_cxx_try_cpp LINENO
2076 # ------------------------
2077 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2078 ac_fn_cxx_try_cpp ()
2079 {
2080   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081   if { { ac_try="$ac_cpp conftest.$ac_ext"
2082 case "(($ac_try" in
2083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2084   *) ac_try_echo=$ac_try;;
2085 esac
2086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2087 $as_echo "$ac_try_echo"; } >&5
2088   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2089   ac_status=$?
2090   if test -s conftest.err; then
2091     grep -v '^ *+' conftest.err >conftest.er1
2092     cat conftest.er1 >&5
2093     mv -f conftest.er1 conftest.err
2094   fi
2095   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2096   test $ac_status = 0; } >/dev/null && {
2097          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2098          test ! -s conftest.err
2099        }; then :
2100   ac_retval=0
2101 else
2102   $as_echo "$as_me: failed program was:" >&5
2103 sed 's/^/| /' conftest.$ac_ext >&5
2104
2105     ac_retval=1
2106 fi
2107   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2108   return $ac_retval
2109
2110 } # ac_fn_cxx_try_cpp
2111
2112 # ac_fn_cxx_try_link LINENO
2113 # -------------------------
2114 # Try to link conftest.$ac_ext, and return whether this succeeded.
2115 ac_fn_cxx_try_link ()
2116 {
2117   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118   rm -f conftest.$ac_objext conftest$ac_exeext
2119   if { { ac_try="$ac_link"
2120 case "(($ac_try" in
2121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2122   *) ac_try_echo=$ac_try;;
2123 esac
2124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2125 $as_echo "$ac_try_echo"; } >&5
2126   (eval "$ac_link") 2>conftest.err
2127   ac_status=$?
2128   if test -s conftest.err; then
2129     grep -v '^ *+' conftest.err >conftest.er1
2130     cat conftest.er1 >&5
2131     mv -f conftest.er1 conftest.err
2132   fi
2133   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2134   test $ac_status = 0; } && {
2135          test -z "$ac_cxx_werror_flag" ||
2136          test ! -s conftest.err
2137        } && test -s conftest$ac_exeext && {
2138          test "$cross_compiling" = yes ||
2139          $as_test_x conftest$ac_exeext
2140        }; then :
2141   ac_retval=0
2142 else
2143   $as_echo "$as_me: failed program was:" >&5
2144 sed 's/^/| /' conftest.$ac_ext >&5
2145
2146         ac_retval=1
2147 fi
2148   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2149   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2150   # interfere with the next link command; also delete a directory that is
2151   # left behind by Apple's compiler.  We do this before executing the actions.
2152   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2153   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2154   return $ac_retval
2155
2156 } # ac_fn_cxx_try_link
2157
2158 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2159 # -------------------------------------------------------
2160 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2161 # the include files in INCLUDES and setting the cache variable VAR
2162 # accordingly.
2163 ac_fn_c_check_header_mongrel ()
2164 {
2165   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2166   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2167   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2168 $as_echo_n "checking for $2... " >&6; }
2169 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2170   $as_echo_n "(cached) " >&6
2171 fi
2172 eval ac_res=\$$3
2173                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2174 $as_echo "$ac_res" >&6; }
2175 else
2176   # Is the header compilable?
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2178 $as_echo_n "checking $2 usability... " >&6; }
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h.  */
2181 $4
2182 #include <$2>
2183 _ACEOF
2184 if ac_fn_c_try_compile "$LINENO"; then :
2185   ac_header_compiler=yes
2186 else
2187   ac_header_compiler=no
2188 fi
2189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2191 $as_echo "$ac_header_compiler" >&6; }
2192
2193 # Is the header present?
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2195 $as_echo_n "checking $2 presence... " >&6; }
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h.  */
2198 #include <$2>
2199 _ACEOF
2200 if ac_fn_c_try_cpp "$LINENO"; then :
2201   ac_header_preproc=yes
2202 else
2203   ac_header_preproc=no
2204 fi
2205 rm -f conftest.err conftest.$ac_ext
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2207 $as_echo "$ac_header_preproc" >&6; }
2208
2209 # So?  What about this header?
2210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2211   yes:no: )
2212     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2213 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2214     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2215 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2216     ;;
2217   no:yes:* )
2218     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2219 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2220     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2221 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2222     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2223 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2224     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2225 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2226     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2227 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2228     ;;
2229 esac
2230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2231 $as_echo_n "checking for $2... " >&6; }
2232 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2233   $as_echo_n "(cached) " >&6
2234 else
2235   eval "$3=\$ac_header_compiler"
2236 fi
2237 eval ac_res=\$$3
2238                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2239 $as_echo "$ac_res" >&6; }
2240 fi
2241   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2242
2243 } # ac_fn_c_check_header_mongrel
2244
2245 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2246 # ----------------------------------------------------
2247 # Tries to find if the field MEMBER exists in type AGGR, after including
2248 # INCLUDES, setting cache variable VAR accordingly.
2249 ac_fn_c_check_member ()
2250 {
2251   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2252   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2253 $as_echo_n "checking for $2.$3... " >&6; }
2254 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2255   $as_echo_n "(cached) " >&6
2256 else
2257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h.  */
2259 $5
2260 int
2261 main ()
2262 {
2263 static $2 ac_aggr;
2264 if (ac_aggr.$3)
2265 return 0;
2266   ;
2267   return 0;
2268 }
2269 _ACEOF
2270 if ac_fn_c_try_compile "$LINENO"; then :
2271   eval "$4=yes"
2272 else
2273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h.  */
2275 $5
2276 int
2277 main ()
2278 {
2279 static $2 ac_aggr;
2280 if (sizeof ac_aggr.$3)
2281 return 0;
2282   ;
2283   return 0;
2284 }
2285 _ACEOF
2286 if ac_fn_c_try_compile "$LINENO"; then :
2287   eval "$4=yes"
2288 else
2289   eval "$4=no"
2290 fi
2291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2292 fi
2293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2294 fi
2295 eval ac_res=\$$4
2296                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2297 $as_echo "$ac_res" >&6; }
2298   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2299
2300 } # ac_fn_c_check_member
2301
2302 # ac_fn_c_check_decl LINENO SYMBOL VAR
2303 # ------------------------------------
2304 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2305 ac_fn_c_check_decl ()
2306 {
2307   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2309 $as_echo_n "checking whether $2 is declared... " >&6; }
2310 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2311   $as_echo_n "(cached) " >&6
2312 else
2313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2314 /* end confdefs.h.  */
2315 $4
2316 int
2317 main ()
2318 {
2319 #ifndef $2
2320   (void) $2;
2321 #endif
2322
2323   ;
2324   return 0;
2325 }
2326 _ACEOF
2327 if ac_fn_c_try_compile "$LINENO"; then :
2328   eval "$3=yes"
2329 else
2330   eval "$3=no"
2331 fi
2332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2333 fi
2334 eval ac_res=\$$3
2335                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2336 $as_echo "$ac_res" >&6; }
2337   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2338
2339 } # ac_fn_c_check_decl
2340
2341 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2342 # --------------------------------------------
2343 # Tries to find the compile-time value of EXPR in a program that includes
2344 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2345 # computed
2346 ac_fn_c_compute_int ()
2347 {
2348   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2349   if test "$cross_compiling" = yes; then
2350     # Depending upon the size, compute the lo and hi bounds.
2351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2352 /* end confdefs.h.  */
2353 $4
2354 int
2355 main ()
2356 {
2357 static int test_array [1 - 2 * !(($2) >= 0)];
2358 test_array [0] = 0
2359
2360   ;
2361   return 0;
2362 }
2363 _ACEOF
2364 if ac_fn_c_try_compile "$LINENO"; then :
2365   ac_lo=0 ac_mid=0
2366   while :; do
2367     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2368 /* end confdefs.h.  */
2369 $4
2370 int
2371 main ()
2372 {
2373 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2374 test_array [0] = 0
2375
2376   ;
2377   return 0;
2378 }
2379 _ACEOF
2380 if ac_fn_c_try_compile "$LINENO"; then :
2381   ac_hi=$ac_mid; break
2382 else
2383   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2384                         if test $ac_lo -le $ac_mid; then
2385                           ac_lo= ac_hi=
2386                           break
2387                         fi
2388                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2389 fi
2390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2391   done
2392 else
2393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2394 /* end confdefs.h.  */
2395 $4
2396 int
2397 main ()
2398 {
2399 static int test_array [1 - 2 * !(($2) < 0)];
2400 test_array [0] = 0
2401
2402   ;
2403   return 0;
2404 }
2405 _ACEOF
2406 if ac_fn_c_try_compile "$LINENO"; then :
2407   ac_hi=-1 ac_mid=-1
2408   while :; do
2409     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2410 /* end confdefs.h.  */
2411 $4
2412 int
2413 main ()
2414 {
2415 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2416 test_array [0] = 0
2417
2418   ;
2419   return 0;
2420 }
2421 _ACEOF
2422 if ac_fn_c_try_compile "$LINENO"; then :
2423   ac_lo=$ac_mid; break
2424 else
2425   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2426                         if test $ac_mid -le $ac_hi; then
2427                           ac_lo= ac_hi=
2428                           break
2429                         fi
2430                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2431 fi
2432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433   done
2434 else
2435   ac_lo= ac_hi=
2436 fi
2437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2438 fi
2439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2440 # Binary search between lo and hi bounds.
2441 while test "x$ac_lo" != "x$ac_hi"; do
2442   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444 /* end confdefs.h.  */
2445 $4
2446 int
2447 main ()
2448 {
2449 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2450 test_array [0] = 0
2451
2452   ;
2453   return 0;
2454 }
2455 _ACEOF
2456 if ac_fn_c_try_compile "$LINENO"; then :
2457   ac_hi=$ac_mid
2458 else
2459   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2460 fi
2461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2462 done
2463 case $ac_lo in #((
2464 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2465 '') ac_retval=1 ;;
2466 esac
2467   else
2468     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2469 /* end confdefs.h.  */
2470 $4
2471 static long int longval () { return $2; }
2472 static unsigned long int ulongval () { return $2; }
2473 #include <stdio.h>
2474 #include <stdlib.h>
2475 int
2476 main ()
2477 {
2478
2479   FILE *f = fopen ("conftest.val", "w");
2480   if (! f)
2481     return 1;
2482   if (($2) < 0)
2483     {
2484       long int i = longval ();
2485       if (i != ($2))
2486         return 1;
2487       fprintf (f, "%ld", i);
2488     }
2489   else
2490     {
2491       unsigned long int i = ulongval ();
2492       if (i != ($2))
2493         return 1;
2494       fprintf (f, "%lu", i);
2495     }
2496   /* Do not output a trailing newline, as this causes \r\n confusion
2497      on some platforms.  */
2498   return ferror (f) || fclose (f) != 0;
2499
2500   ;
2501   return 0;
2502 }
2503 _ACEOF
2504 if ac_fn_c_try_run "$LINENO"; then :
2505   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2506 else
2507   ac_retval=1
2508 fi
2509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2510   conftest.$ac_objext conftest.beam conftest.$ac_ext
2511 rm -f conftest.val
2512
2513   fi
2514   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2515   return $ac_retval
2516
2517 } # ac_fn_c_compute_int
2518
2519 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2520 # -------------------------------------------
2521 # Tests whether TYPE exists after having included INCLUDES, setting cache
2522 # variable VAR accordingly.
2523 ac_fn_c_check_type ()
2524 {
2525   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2527 $as_echo_n "checking for $2... " >&6; }
2528 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2529   $as_echo_n "(cached) " >&6
2530 else
2531   eval "$3=no"
2532   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2533 /* end confdefs.h.  */
2534 $4
2535 int
2536 main ()
2537 {
2538 if (sizeof ($2))
2539          return 0;
2540   ;
2541   return 0;
2542 }
2543 _ACEOF
2544 if ac_fn_c_try_compile "$LINENO"; then :
2545   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2546 /* end confdefs.h.  */
2547 $4
2548 int
2549 main ()
2550 {
2551 if (sizeof (($2)))
2552             return 0;
2553   ;
2554   return 0;
2555 }
2556 _ACEOF
2557 if ac_fn_c_try_compile "$LINENO"; then :
2558
2559 else
2560   eval "$3=yes"
2561 fi
2562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2563 fi
2564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2565 fi
2566 eval ac_res=\$$3
2567                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2568 $as_echo "$ac_res" >&6; }
2569   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2570
2571 } # ac_fn_c_check_type
2572 cat >config.log <<_ACEOF
2573 This file contains any messages produced by compilers while
2574 running configure, to aid debugging if configure makes a mistake.
2575
2576 It was created by libjava $as_me version-unused, which was
2577 generated by GNU Autoconf 2.64.  Invocation command line was
2578
2579   $ $0 $@
2580
2581 _ACEOF
2582 exec 5>>config.log
2583 {
2584 cat <<_ASUNAME
2585 ## --------- ##
2586 ## Platform. ##
2587 ## --------- ##
2588
2589 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2590 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2591 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2592 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2593 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2594
2595 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2596 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2597
2598 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2599 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2600 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2601 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2602 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2603 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2604 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2605
2606 _ASUNAME
2607
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609 for as_dir in $PATH
2610 do
2611   IFS=$as_save_IFS
2612   test -z "$as_dir" && as_dir=.
2613     $as_echo "PATH: $as_dir"
2614   done
2615 IFS=$as_save_IFS
2616
2617 } >&5
2618
2619 cat >&5 <<_ACEOF
2620
2621
2622 ## ----------- ##
2623 ## Core tests. ##
2624 ## ----------- ##
2625
2626 _ACEOF
2627
2628
2629 # Keep a trace of the command line.
2630 # Strip out --no-create and --no-recursion so they do not pile up.
2631 # Strip out --silent because we don't want to record it for future runs.
2632 # Also quote any args containing shell meta-characters.
2633 # Make two passes to allow for proper duplicate-argument suppression.
2634 ac_configure_args=
2635 ac_configure_args0=
2636 ac_configure_args1=
2637 ac_must_keep_next=false
2638 for ac_pass in 1 2
2639 do
2640   for ac_arg
2641   do
2642     case $ac_arg in
2643     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2644     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2645     | -silent | --silent | --silen | --sile | --sil)
2646       continue ;;
2647     *\'*)
2648       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2649     esac
2650     case $ac_pass in
2651     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2652     2)
2653       as_fn_append ac_configure_args1 " '$ac_arg'"
2654       if test $ac_must_keep_next = true; then
2655         ac_must_keep_next=false # Got value, back to normal.
2656       else
2657         case $ac_arg in
2658           *=* | --config-cache | -C | -disable-* | --disable-* \
2659           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2660           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2661           | -with-* | --with-* | -without-* | --without-* | --x)
2662             case "$ac_configure_args0 " in
2663               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2664             esac
2665             ;;
2666           -* ) ac_must_keep_next=true ;;
2667         esac
2668       fi
2669       as_fn_append ac_configure_args " '$ac_arg'"
2670       ;;
2671     esac
2672   done
2673 done
2674 { ac_configure_args0=; unset ac_configure_args0;}
2675 { ac_configure_args1=; unset ac_configure_args1;}
2676
2677 # When interrupted or exit'd, cleanup temporary files, and complete
2678 # config.log.  We remove comments because anyway the quotes in there
2679 # would cause problems or look ugly.
2680 # WARNING: Use '\'' to represent an apostrophe within the trap.
2681 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2682 trap 'exit_status=$?
2683   # Save into config.log some information that might help in debugging.
2684   {
2685     echo
2686
2687     cat <<\_ASBOX
2688 ## ---------------- ##
2689 ## Cache variables. ##
2690 ## ---------------- ##
2691 _ASBOX
2692     echo
2693     # The following way of writing the cache mishandles newlines in values,
2694 (
2695   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2696     eval ac_val=\$$ac_var
2697     case $ac_val in #(
2698     *${as_nl}*)
2699       case $ac_var in #(
2700       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2701 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2702       esac
2703       case $ac_var in #(
2704       _ | IFS | as_nl) ;; #(
2705       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2706       *) { eval $ac_var=; unset $ac_var;} ;;
2707       esac ;;
2708     esac
2709   done
2710   (set) 2>&1 |
2711     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2712     *${as_nl}ac_space=\ *)
2713       sed -n \
2714         "s/'\''/'\''\\\\'\'''\''/g;
2715           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2716       ;; #(
2717     *)
2718       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2719       ;;
2720     esac |
2721     sort
2722 )
2723     echo
2724
2725     cat <<\_ASBOX
2726 ## ----------------- ##
2727 ## Output variables. ##
2728 ## ----------------- ##
2729 _ASBOX
2730     echo
2731     for ac_var in $ac_subst_vars
2732     do
2733       eval ac_val=\$$ac_var
2734       case $ac_val in
2735       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2736       esac
2737       $as_echo "$ac_var='\''$ac_val'\''"
2738     done | sort
2739     echo
2740
2741     if test -n "$ac_subst_files"; then
2742       cat <<\_ASBOX
2743 ## ------------------- ##
2744 ## File substitutions. ##
2745 ## ------------------- ##
2746 _ASBOX
2747       echo
2748       for ac_var in $ac_subst_files
2749       do
2750         eval ac_val=\$$ac_var
2751         case $ac_val in
2752         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2753         esac
2754         $as_echo "$ac_var='\''$ac_val'\''"
2755       done | sort
2756       echo
2757     fi
2758
2759     if test -s confdefs.h; then
2760       cat <<\_ASBOX
2761 ## ----------- ##
2762 ## confdefs.h. ##
2763 ## ----------- ##
2764 _ASBOX
2765       echo
2766       cat confdefs.h
2767       echo
2768     fi
2769     test "$ac_signal" != 0 &&
2770       $as_echo "$as_me: caught signal $ac_signal"
2771     $as_echo "$as_me: exit $exit_status"
2772   } >&5
2773   rm -f core *.core core.conftest.* &&
2774     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2775     exit $exit_status
2776 ' 0
2777 for ac_signal in 1 2 13 15; do
2778   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2779 done
2780 ac_signal=0
2781
2782 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2783 rm -f -r conftest* confdefs.h
2784
2785 $as_echo "/* confdefs.h */" > confdefs.h
2786
2787 # Predefined preprocessor variables.
2788
2789 cat >>confdefs.h <<_ACEOF
2790 #define PACKAGE_NAME "$PACKAGE_NAME"
2791 _ACEOF
2792
2793 cat >>confdefs.h <<_ACEOF
2794 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2795 _ACEOF
2796
2797 cat >>confdefs.h <<_ACEOF
2798 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2799 _ACEOF
2800
2801 cat >>confdefs.h <<_ACEOF
2802 #define PACKAGE_STRING "$PACKAGE_STRING"
2803 _ACEOF
2804
2805 cat >>confdefs.h <<_ACEOF
2806 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2807 _ACEOF
2808
2809 cat >>confdefs.h <<_ACEOF
2810 #define PACKAGE_URL "$PACKAGE_URL"
2811 _ACEOF
2812
2813
2814 # Let the site file select an alternate cache file if it wants to.
2815 # Prefer an explicitly selected file to automatically selected ones.
2816 ac_site_file1=NONE
2817 ac_site_file2=NONE
2818 if test -n "$CONFIG_SITE"; then
2819   ac_site_file1=$CONFIG_SITE
2820 elif test "x$prefix" != xNONE; then
2821   ac_site_file1=$prefix/share/config.site
2822   ac_site_file2=$prefix/etc/config.site
2823 else
2824   ac_site_file1=$ac_default_prefix/share/config.site
2825   ac_site_file2=$ac_default_prefix/etc/config.site
2826 fi
2827 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2828 do
2829   test "x$ac_site_file" = xNONE && continue
2830   if test -r "$ac_site_file"; then
2831     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2832 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2833     sed 's/^/| /' "$ac_site_file" >&5
2834     . "$ac_site_file"
2835   fi
2836 done
2837
2838 if test -r "$cache_file"; then
2839   # Some versions of bash will fail to source /dev/null (special
2840   # files actually), so we avoid doing that.
2841   if test -f "$cache_file"; then
2842     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2843 $as_echo "$as_me: loading cache $cache_file" >&6;}
2844     case $cache_file in
2845       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2846       *)                      . "./$cache_file";;
2847     esac
2848   fi
2849 else
2850   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2851 $as_echo "$as_me: creating cache $cache_file" >&6;}
2852   >$cache_file
2853 fi
2854
2855 # Check that the precious variables saved in the cache have kept the same
2856 # value.
2857 ac_cache_corrupted=false
2858 for ac_var in $ac_precious_vars; do
2859   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2860   eval ac_new_set=\$ac_env_${ac_var}_set
2861   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2862   eval ac_new_val=\$ac_env_${ac_var}_value
2863   case $ac_old_set,$ac_new_set in
2864     set,)
2865       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2866 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2867       ac_cache_corrupted=: ;;
2868     ,set)
2869       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2870 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2871       ac_cache_corrupted=: ;;
2872     ,);;
2873     *)
2874       if test "x$ac_old_val" != "x$ac_new_val"; then
2875         # differences in whitespace do not lead to failure.
2876         ac_old_val_w=`echo x $ac_old_val`
2877         ac_new_val_w=`echo x $ac_new_val`
2878         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2879           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2880 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2881           ac_cache_corrupted=:
2882         else
2883           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2884 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2885           eval $ac_var=\$ac_old_val
2886         fi
2887         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2888 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2889         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2890 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2891       fi;;
2892   esac
2893   # Pass precious variables to config.status.
2894   if test "$ac_new_set" = set; then
2895     case $ac_new_val in
2896     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2897     *) ac_arg=$ac_var=$ac_new_val ;;
2898     esac
2899     case " $ac_configure_args " in
2900       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2901       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2902     esac
2903   fi
2904 done
2905 if $ac_cache_corrupted; then
2906   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2908   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2909 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2910   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2911 fi
2912 ## -------------------- ##
2913 ## Main body of script. ##
2914 ## -------------------- ##
2915
2916 ac_ext=c
2917 ac_cpp='$CPP $CPPFLAGS'
2918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2921
2922
2923
2924
2925
2926
2927
2928
2929 ac_aux_dir=
2930 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2931   for ac_t in install-sh install.sh shtool; do
2932     if test -f "$ac_dir/$ac_t"; then
2933       ac_aux_dir=$ac_dir
2934       ac_install_sh="$ac_aux_dir/$ac_t -c"
2935       break 2
2936     fi
2937   done
2938 done
2939 if test -z "$ac_aux_dir"; then
2940   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2941 fi
2942
2943 # These three variables are undocumented and unsupported,
2944 # and are intended to be withdrawn in a future Autoconf release.
2945 # They can cause serious problems if a builder's source tree is in a directory
2946 # whose full name contains unusual characters.
2947 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2948 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2949 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2950
2951
2952 # Make sure we can run config.sub.
2953 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2954   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2955
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2957 $as_echo_n "checking build system type... " >&6; }
2958 if test "${ac_cv_build+set}" = set; then :
2959   $as_echo_n "(cached) " >&6
2960 else
2961   ac_build_alias=$build_alias
2962 test "x$ac_build_alias" = x &&
2963   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2964 test "x$ac_build_alias" = x &&
2965   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2966 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2967   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2968
2969 fi
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2971 $as_echo "$ac_cv_build" >&6; }
2972 case $ac_cv_build in
2973 *-*-*) ;;
2974 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2975 esac
2976 build=$ac_cv_build
2977 ac_save_IFS=$IFS; IFS='-'
2978 set x $ac_cv_build
2979 shift
2980 build_cpu=$1
2981 build_vendor=$2
2982 shift; shift
2983 # Remember, the first character of IFS is used to create $*,
2984 # except with old shells:
2985 build_os=$*
2986 IFS=$ac_save_IFS
2987 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2988
2989
2990  case ${build_alias} in
2991   "") build_noncanonical=${build} ;;
2992   *) build_noncanonical=${build_alias} ;;
2993 esac
2994
2995  case ${host_alias} in
2996   "") host_noncanonical=${build_noncanonical} ;;
2997   *) host_noncanonical=${host_alias} ;;
2998 esac
2999
3000  case ${target_alias} in
3001   "") target_noncanonical=${host_noncanonical} ;;
3002   *) target_noncanonical=${target_alias} ;;
3003 esac
3004
3005
3006 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3007 # have matching libraries, they should use host libraries: Makefile.tpl
3008 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3009 # However, they still use the build modules, because the corresponding
3010 # host modules (e.g. bison) are only built for the host when bootstrap
3011 # finishes. So:
3012 # - build_subdir is where we find build modules, and never changes.
3013 # - build_libsubdir is where we find build libraries, and can be overridden.
3014
3015 # Prefix 'build-' so this never conflicts with target_subdir.
3016 build_subdir="build-${build_noncanonical}"
3017
3018 # Check whether --with-build-libsubdir was given.
3019 if test "${with_build_libsubdir+set}" = set; then :
3020   withval=$with_build_libsubdir; build_libsubdir="$withval"
3021 else
3022   build_libsubdir="$build_subdir"
3023 fi
3024
3025 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3026 if ( test $srcdir = . && test -d gcc ) \
3027    || test -d $srcdir/../host-${host_noncanonical}; then
3028   host_subdir="host-${host_noncanonical}"
3029 else
3030   host_subdir=.
3031 fi
3032 # No prefix.
3033 target_subdir=${target_noncanonical}
3034
3035
3036 # We use these options to decide which functions to include.
3037
3038 # Check whether --with-target-subdir was given.
3039 if test "${with_target_subdir+set}" = set; then :
3040   withval=$with_target_subdir;
3041 fi
3042
3043
3044 # We may get other options which we don't document:
3045 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3046
3047 # Find the rest of the source tree framework.
3048 # Default to --enable-multilib
3049 # Check whether --enable-multilib was given.
3050 if test "${enable_multilib+set}" = set; then :
3051   enableval=$enable_multilib; case "$enableval" in
3052   yes) multilib=yes ;;
3053   no)  multilib=no ;;
3054   *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3055  esac
3056 else
3057   multilib=yes
3058 fi
3059
3060
3061 # We may get other options which we leave undocumented:
3062 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3063 # See config-ml.in if you want the gory details.
3064
3065 if test "$srcdir" = "."; then
3066   if test "$with_target_subdir" != "."; then
3067     multi_basedir="$srcdir/$with_multisrctop../.."
3068   else
3069     multi_basedir="$srcdir/$with_multisrctop.."
3070   fi
3071 else
3072   multi_basedir="$srcdir/.."
3073 fi
3074
3075
3076 # Even if the default multilib is not a cross compilation,
3077 # it may be that some of the other multilibs are.
3078 if test $cross_compiling = no && test $multilib = yes \
3079    && test "x${with_multisubdir}" != x ; then
3080    cross_compiling=maybe
3081 fi
3082
3083 ac_config_commands="$ac_config_commands default-1"
3084
3085
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3087 $as_echo_n "checking host system type... " >&6; }
3088 if test "${ac_cv_host+set}" = set; then :
3089   $as_echo_n "(cached) " >&6
3090 else
3091   if test "x$host_alias" = x; then
3092   ac_cv_host=$ac_cv_build
3093 else
3094   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3095     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3096 fi
3097
3098 fi
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3100 $as_echo "$ac_cv_host" >&6; }
3101 case $ac_cv_host in
3102 *-*-*) ;;
3103 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3104 esac
3105 host=$ac_cv_host
3106 ac_save_IFS=$IFS; IFS='-'
3107 set x $ac_cv_host
3108 shift
3109 host_cpu=$1
3110 host_vendor=$2
3111 shift; shift
3112 # Remember, the first character of IFS is used to create $*,
3113 # except with old shells:
3114 host_os=$*
3115 IFS=$ac_save_IFS
3116 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3117
3118
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3120 $as_echo_n "checking target system type... " >&6; }
3121 if test "${ac_cv_target+set}" = set; then :
3122   $as_echo_n "(cached) " >&6
3123 else
3124   if test "x$target_alias" = x; then
3125   ac_cv_target=$ac_cv_host
3126 else
3127   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3128     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3129 fi
3130
3131 fi
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3133 $as_echo "$ac_cv_target" >&6; }
3134 case $ac_cv_target in
3135 *-*-*) ;;
3136 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3137 esac
3138 target=$ac_cv_target
3139 ac_save_IFS=$IFS; IFS='-'
3140 set x $ac_cv_target
3141 shift
3142 target_cpu=$1
3143 target_vendor=$2
3144 shift; shift
3145 # Remember, the first character of IFS is used to create $*,
3146 # except with old shells:
3147 target_os=$*
3148 IFS=$ac_save_IFS
3149 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3150
3151
3152 # The aliases save the names the user supplied, while $host etc.
3153 # will get canonicalized.
3154 test -n "$target_alias" &&
3155   test "$program_prefix$program_suffix$program_transform_name" = \
3156     NONENONEs,x,x, &&
3157   program_prefix=${target_alias}-
3158
3159  case ${build_alias} in
3160   "") build_noncanonical=${build} ;;
3161   *) build_noncanonical=${build_alias} ;;
3162 esac
3163
3164  case ${target_alias} in
3165   "") target_noncanonical=${host_noncanonical} ;;
3166   *) target_noncanonical=${target_alias} ;;
3167 esac
3168
3169
3170
3171
3172 # This works around the fact that libtool configuration may change LD
3173 # for this particular configuration, but some shells, instead of
3174 # keeping the changes in LD private, export them just because LD is
3175 # exported.
3176 ORIGINAL_LD_FOR_MULTILIBS=$LD
3177
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3179 $as_echo_n "checking whether ln -s works... " >&6; }
3180 LN_S=$as_ln_s
3181 if test "$LN_S" = "ln -s"; then
3182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3183 $as_echo "yes" >&6; }
3184 else
3185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3186 $as_echo "no, using $LN_S" >&6; }
3187 fi
3188
3189
3190 # This works around an automake problem.
3191 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
3192
3193
3194
3195 # Check whether --with-cross-host was given.
3196 if test "${with_cross_host+set}" = set; then :
3197   withval=$with_cross_host;
3198 fi
3199
3200
3201
3202 # Check whether --with-newlib was given.
3203 if test "${with_newlib+set}" = set; then :
3204   withval=$with_newlib;
3205 fi
3206
3207
3208 # Check whether --enable-version-specific-runtime-libs was given.
3209 if test "${enable_version_specific_runtime_libs+set}" = set; then :
3210   enableval=$enable_version_specific_runtime_libs; case "$enableval" in
3211       yes) version_specific_libs=yes ;;
3212       no)  version_specific_libs=no ;;
3213       *)   as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3214      esac
3215 else
3216   version_specific_libs=no
3217
3218 fi
3219
3220
3221 # Check whether --enable-browser-plugin was given.
3222 if test "${enable_browser_plugin+set}" = set; then :
3223   enableval=$enable_browser_plugin; case "$enableval" in
3224       yes) browser_plugin_enabled=yes ;;
3225       no)  browser_plugin_enabled=no ;;
3226       *)   as_fn_error "Unknown argument to enable/disable browser plugin" "$LINENO" 5;;
3227      esac
3228 else
3229   browser_plugin_enabled=no
3230
3231 fi
3232
3233
3234 # Check whether --enable-gconf-peer was given.
3235 if test "${enable_gconf_peer+set}" = set; then :
3236   enableval=$enable_gconf_peer; case "$enableval" in
3237       yes) gconf_enabled=yes ;;
3238       no)  gconf_enabled=no ;;
3239       *)   as_fn_error "Unknown argument to enable/disable gconf-peer" "$LINENO" 5;;
3240      esac
3241 else
3242   gconf_enabled=no
3243
3244 fi
3245
3246
3247
3248 # Check whether --with-antlr-jar was given.
3249 if test "${with_antlr_jar+set}" = set; then :
3250   withval=$with_antlr_jar;
3251              ANTLR_JAR=$withval
3252
3253 else
3254
3255              ANTLR_JAR=
3256
3257 fi
3258
3259
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr.jar" >&5
3261 $as_echo_n "checking for antlr.jar... " >&6; }
3262 if test "x$ANTLR_JAR" = x; then
3263     for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
3264         /usr/share/antlr/lib /usr/share/java /usr/lib;
3265     do
3266         if test -f "$antlr_lib_home/antlr.jar"; then
3267             # FIXME: version check for antlr needed without using a VM
3268             ANTLR_JAR="$antlr_lib_home/antlr.jar"
3269             break
3270         fi
3271     done
3272     if test "x$ANTLR_JAR" = x; then
3273         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
3274 $as_echo "not found" >&6; }
3275     else
3276         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3277 $as_echo "$ANTLR_JAR" >&6; }
3278     fi
3279 else
3280     if test -f "${ANTLR_JAR}"; then
3281         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3282 $as_echo "$ANTLR_JAR" >&6; }
3283     else
3284         as_fn_error "antlr jar file not found: $ANTLR_JAR" "$LINENO" 5
3285     fi
3286 fi
3287
3288
3289 # Check whether --enable-gjdoc was given.
3290 if test "${enable_gjdoc+set}" = set; then :
3291   enableval=$enable_gjdoc; case "${enableval}" in
3292                 yes) BUILD_GJDOC=yes ;;
3293                 no) BUILD_GJDOC=no ;;
3294                 *) BUILD_GJDOC=yes ;;
3295               esac
3296 else
3297   BUILD_GJDOC=maybe
3298 fi
3299
3300
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gjdoc" >&5
3302 $as_echo_n "checking whether to build gjdoc... " >&6; }
3303 if test "x$BUILD_GJDOC" = xmaybe; then
3304     if test -f "${ANTLR_JAR}"; then
3305         BUILD_GJDOC=yes
3306         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3307 $as_echo "yes" >&6; }
3308     else
3309         BUILD_GJDOC=no
3310         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, antlr.jar not found" >&5
3311 $as_echo "no, antlr.jar not found" >&6; }
3312     fi
3313 else
3314     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_GJDOC" >&5
3315 $as_echo "$BUILD_GJDOC" >&6; }
3316 fi
3317  if test "x${BUILD_GJDOC}" = xyes; then
3318   CREATE_GJDOC_TRUE=
3319   CREATE_GJDOC_FALSE='#'
3320 else
3321   CREATE_GJDOC_TRUE='#'
3322   CREATE_GJDOC_FALSE=
3323 fi
3324
3325
3326 # Check whether --enable-java-maintainer-mode was given.
3327 if test "${enable_java_maintainer_mode+set}" = set; then :
3328   enableval=$enable_java_maintainer_mode;
3329 fi
3330
3331  if test "$enable_java_maintainer_mode" = yes; then
3332   JAVA_MAINTAINER_MODE_TRUE=
3333   JAVA_MAINTAINER_MODE_FALSE='#'
3334 else
3335   JAVA_MAINTAINER_MODE_TRUE='#'
3336   JAVA_MAINTAINER_MODE_FALSE=
3337 fi
3338
3339
3340 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
3341
3342
3343 # (1) We use an abnormal CXX (without library references), so we
3344 # must cache it under a different name.
3345 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
3346 # the non-multilib-adjusted value will be used in multilibs.
3347 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
3348 # (4) As another side effect, automake doesn't automatically include them
3349 # in Makefile.in.
3350 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
3351 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
3352 # used in later tests.  This may not be necessary in libjava; I don't know.
3353
3354
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
4411
4412
4413
4414 am__api_version='1.11'
4415
4416 # Find a good install program.  We prefer a C program (faster),
4417 # so one script is as good as another.  But avoid the broken or
4418 # incompatible versions:
4419 # SysV /etc/install, /usr/sbin/install
4420 # SunOS /usr/etc/install
4421 # IRIX /sbin/install
4422 # AIX /bin/install
4423 # AmigaOS /C/install, which installs bootblocks on floppy discs
4424 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4425 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4426 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4427 # OS/2's system install, which has a completely different semantic
4428 # ./install, which can be erroneously created by make from ./install.sh.
4429 # Reject install programs that cannot install multiple files.
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4431 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4432 if test -z "$INSTALL"; then
4433 if test "${ac_cv_path_install+set}" = set; then :
4434   $as_echo_n "(cached) " >&6
4435 else
4436   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 for as_dir in $PATH
4438 do
4439   IFS=$as_save_IFS
4440   test -z "$as_dir" && as_dir=.
4441     # Account for people who put trailing slashes in PATH elements.
4442 case $as_dir/ in #((
4443   ./ | .// | /[cC]/* | \
4444   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4445   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4446   /usr/ucb/* ) ;;
4447   *)
4448     # OSF1 and SCO ODT 3.0 have their own names for install.
4449     # Don't use installbsd from OSF since it installs stuff as root
4450     # by default.
4451     for ac_prog in ginstall scoinst install; do
4452       for ac_exec_ext in '' $ac_executable_extensions; do
4453         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4454           if test $ac_prog = install &&
4455             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4456             # AIX install.  It has an incompatible calling convention.
4457             :
4458           elif test $ac_prog = install &&
4459             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4460             # program-specific install script used by HP pwplus--don't use.
4461             :
4462           else
4463             rm -rf conftest.one conftest.two conftest.dir
4464             echo one > conftest.one
4465             echo two > conftest.two
4466             mkdir conftest.dir
4467             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4468               test -s conftest.one && test -s conftest.two &&
4469               test -s conftest.dir/conftest.one &&
4470               test -s conftest.dir/conftest.two
4471             then
4472               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4473               break 3
4474             fi
4475           fi
4476         fi
4477       done
4478     done
4479     ;;
4480 esac
4481
4482   done
4483 IFS=$as_save_IFS
4484
4485 rm -rf conftest.one conftest.two conftest.dir
4486
4487 fi
4488   if test "${ac_cv_path_install+set}" = set; then
4489     INSTALL=$ac_cv_path_install
4490   else
4491     # As a last resort, use the slow shell script.  Don't cache a
4492     # value for INSTALL within a source directory, because that will
4493     # break other packages using the cache if that directory is
4494     # removed, or if the value is a relative name.
4495     INSTALL=$ac_install_sh
4496   fi
4497 fi
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4499 $as_echo "$INSTALL" >&6; }
4500
4501 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4502 # It thinks the first close brace ends the variable substitution.
4503 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4504
4505 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4506
4507 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4508
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4510 $as_echo_n "checking whether build environment is sane... " >&6; }
4511 # Just in case
4512 sleep 1
4513 echo timestamp > conftest.file
4514 # Reject unsafe characters in $srcdir or the absolute working directory
4515 # name.  Accept space and tab only in the latter.
4516 am_lf='
4517 '
4518 case `pwd` in
4519   *[\\\"\#\$\&\'\`$am_lf]*)
4520     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4521 esac
4522 case $srcdir in
4523   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
4524     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4525 esac
4526
4527 # Do `set' in a subshell so we don't clobber the current shell's
4528 # arguments.  Must try -L first in case configure is actually a
4529 # symlink; some systems play weird games with the mod time of symlinks
4530 # (eg FreeBSD returns the mod time of the symlink's containing
4531 # directory).
4532 if (
4533    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4534    if test "$*" = "X"; then
4535       # -L didn't work.
4536       set X `ls -t "$srcdir/configure" conftest.file`
4537    fi
4538    rm -f conftest.file
4539    if test "$*" != "X $srcdir/configure conftest.file" \
4540       && test "$*" != "X conftest.file $srcdir/configure"; then
4541
4542       # If neither matched, then we have a broken ls.  This can happen
4543       # if, for instance, CONFIG_SHELL is bash and it inherits a
4544       # broken ls alias from the environment.  This has actually
4545       # happened.  Such a system could not be considered "sane".
4546       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
4547 alias in your environment" "$LINENO" 5
4548    fi
4549
4550    test "$2" = conftest.file
4551    )
4552 then
4553    # Ok.
4554    :
4555 else
4556    as_fn_error "newly created file is older than distributed files!
4557 Check your system clock" "$LINENO" 5
4558 fi
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4560 $as_echo "yes" >&6; }
4561 test "$program_prefix" != NONE &&
4562   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4563 # Use a double $ so make ignores it.
4564 test "$program_suffix" != NONE &&
4565   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4566 # Double any \ or $.
4567 # By default was `s,x,x', remove it if useless.
4568 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4569 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4570
4571 # expand $ac_aux_dir to an absolute path
4572 am_aux_dir=`cd $ac_aux_dir && pwd`
4573
4574 if test x"${MISSING+set}" != xset; then
4575   case $am_aux_dir in
4576   *\ * | *\     *)
4577     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4578   *)
4579     MISSING="\${SHELL} $am_aux_dir/missing" ;;
4580   esac
4581 fi
4582 # Use eval to expand $SHELL
4583 if eval "$MISSING --run true"; then
4584   am_missing_run="$MISSING --run "
4585 else
4586   am_missing_run=
4587   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4588 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4589 fi
4590
4591 if test x"${install_sh}" != xset; then
4592   case $am_aux_dir in
4593   *\ * | *\     *)
4594     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4595   *)
4596     install_sh="\${SHELL} $am_aux_dir/install-sh"
4597   esac
4598 fi
4599
4600 # Installed binaries are usually stripped using `strip' when the user
4601 # run `make install-strip'.  However `strip' might not be the right
4602 # tool to use in cross-compilation environments, therefore Automake
4603 # will honor the `STRIP' environment variable to overrule this program.
4604 if test "$cross_compiling" != no; then
4605   if test -n "$ac_tool_prefix"; then
4606   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4607 set dummy ${ac_tool_prefix}strip; ac_word=$2
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4609 $as_echo_n "checking for $ac_word... " >&6; }
4610 if test "${ac_cv_prog_STRIP+set}" = set; then :
4611   $as_echo_n "(cached) " >&6
4612 else
4613   if test -n "$STRIP"; then
4614   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4615 else
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 for as_dir in $PATH
4618 do
4619   IFS=$as_save_IFS
4620   test -z "$as_dir" && as_dir=.
4621     for ac_exec_ext in '' $ac_executable_extensions; do
4622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4623     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4624     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4625     break 2
4626   fi
4627 done
4628   done
4629 IFS=$as_save_IFS
4630
4631 fi
4632 fi
4633 STRIP=$ac_cv_prog_STRIP
4634 if test -n "$STRIP"; then
4635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4636 $as_echo "$STRIP" >&6; }
4637 else
4638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4639 $as_echo "no" >&6; }
4640 fi
4641
4642
4643 fi
4644 if test -z "$ac_cv_prog_STRIP"; then
4645   ac_ct_STRIP=$STRIP
4646   # Extract the first word of "strip", so it can be a program name with args.
4647 set dummy strip; ac_word=$2
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4649 $as_echo_n "checking for $ac_word... " >&6; }
4650 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4651   $as_echo_n "(cached) " >&6
4652 else
4653   if test -n "$ac_ct_STRIP"; then
4654   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4655 else
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH
4658 do
4659   IFS=$as_save_IFS
4660   test -z "$as_dir" && as_dir=.
4661     for ac_exec_ext in '' $ac_executable_extensions; do
4662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4663     ac_cv_prog_ac_ct_STRIP="strip"
4664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4665     break 2
4666   fi
4667 done
4668   done
4669 IFS=$as_save_IFS
4670
4671 fi
4672 fi
4673 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4674 if test -n "$ac_ct_STRIP"; then
4675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4676 $as_echo "$ac_ct_STRIP" >&6; }
4677 else
4678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4679 $as_echo "no" >&6; }
4680 fi
4681
4682   if test "x$ac_ct_STRIP" = x; then
4683     STRIP=":"
4684   else
4685     case $cross_compiling:$ac_tool_warned in
4686 yes:)
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4689 ac_tool_warned=yes ;;
4690 esac
4691     STRIP=$ac_ct_STRIP
4692   fi
4693 else
4694   STRIP="$ac_cv_prog_STRIP"
4695 fi
4696
4697 fi
4698 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4699
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4701 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4702 if test -z "$MKDIR_P"; then
4703   if test "${ac_cv_path_mkdir+set}" = set; then :
4704   $as_echo_n "(cached) " >&6
4705 else
4706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4708 do
4709   IFS=$as_save_IFS
4710   test -z "$as_dir" && as_dir=.
4711     for ac_prog in mkdir gmkdir; do
4712          for ac_exec_ext in '' $ac_executable_extensions; do
4713            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4714            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4715              'mkdir (GNU coreutils) '* | \
4716              'mkdir (coreutils) '* | \
4717              'mkdir (fileutils) '4.1*)
4718                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4719                break 3;;
4720            esac
4721          done
4722        done
4723   done
4724 IFS=$as_save_IFS
4725
4726 fi
4727
4728   if test "${ac_cv_path_mkdir+set}" = set; then
4729     MKDIR_P="$ac_cv_path_mkdir -p"
4730   else
4731     # As a last resort, use the slow shell script.  Don't cache a
4732     # value for MKDIR_P within a source directory, because that will
4733     # break other packages using the cache if that directory is
4734     # removed, or if the value is a relative name.
4735     test -d ./--version && rmdir ./--version
4736     MKDIR_P="$ac_install_sh -d"
4737   fi
4738 fi
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4740 $as_echo "$MKDIR_P" >&6; }
4741
4742 mkdir_p="$MKDIR_P"
4743 case $mkdir_p in
4744   [\\/$]* | ?:[\\/]*) ;;
4745   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4746 esac
4747
4748 for ac_prog in gawk mawk nawk awk
4749 do
4750   # Extract the first word of "$ac_prog", so it can be a program name with args.
4751 set dummy $ac_prog; ac_word=$2
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4753 $as_echo_n "checking for $ac_word... " >&6; }
4754 if test "${ac_cv_prog_AWK+set}" = set; then :
4755   $as_echo_n "(cached) " >&6
4756 else
4757   if test -n "$AWK"; then
4758   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4759 else
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH
4762 do
4763   IFS=$as_save_IFS
4764   test -z "$as_dir" && as_dir=.
4765     for ac_exec_ext in '' $ac_executable_extensions; do
4766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4767     ac_cv_prog_AWK="$ac_prog"
4768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4769     break 2
4770   fi
4771 done
4772   done
4773 IFS=$as_save_IFS
4774
4775 fi
4776 fi
4777 AWK=$ac_cv_prog_AWK
4778 if test -n "$AWK"; then
4779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4780 $as_echo "$AWK" >&6; }
4781 else
4782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783 $as_echo "no" >&6; }
4784 fi
4785
4786
4787   test -n "$AWK" && break
4788 done
4789
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4791 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4792 set x ${MAKE-make}
4793 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4794 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4795   $as_echo_n "(cached) " >&6
4796 else
4797   cat >conftest.make <<\_ACEOF
4798 SHELL = /bin/sh
4799 all:
4800         @echo '@@@%%%=$(MAKE)=@@@%%%'
4801 _ACEOF
4802 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4803 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4804   *@@@%%%=?*=@@@%%%*)
4805     eval ac_cv_prog_make_${ac_make}_set=yes;;
4806   *)
4807     eval ac_cv_prog_make_${ac_make}_set=no;;
4808 esac
4809 rm -f conftest.make
4810 fi
4811 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4813 $as_echo "yes" >&6; }
4814   SET_MAKE=
4815 else
4816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4817 $as_echo "no" >&6; }
4818   SET_MAKE="MAKE=${MAKE-make}"
4819 fi
4820
4821 rm -rf .tst 2>/dev/null
4822 mkdir .tst 2>/dev/null
4823 if test -d .tst; then
4824   am__leading_dot=.
4825 else
4826   am__leading_dot=_
4827 fi
4828 rmdir .tst 2>/dev/null
4829
4830 DEPDIR="${am__leading_dot}deps"
4831
4832 ac_config_commands="$ac_config_commands depfiles"
4833
4834
4835 am_make=${MAKE-make}
4836 cat > confinc << 'END'
4837 am__doit:
4838         @echo this is the am__doit target
4839 .PHONY: am__doit
4840 END
4841 # If we don't find an include directive, just comment out the code.
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4843 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4844 am__include="#"
4845 am__quote=
4846 _am_result=none
4847 # First try GNU make style include.
4848 echo "include confinc" > confmf
4849 # Ignore all kinds of additional output from `make'.
4850 case `$am_make -s -f confmf 2> /dev/null` in #(
4851 *the\ am__doit\ target*)
4852   am__include=include
4853   am__quote=
4854   _am_result=GNU
4855   ;;
4856 esac
4857 # Now try BSD make style include.
4858 if test "$am__include" = "#"; then
4859    echo '.include "confinc"' > confmf
4860    case `$am_make -s -f confmf 2> /dev/null` in #(
4861    *the\ am__doit\ target*)
4862      am__include=.include
4863      am__quote="\""
4864      _am_result=BSD
4865      ;;
4866    esac
4867 fi
4868
4869
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4871 $as_echo "$_am_result" >&6; }
4872 rm -f confinc confmf
4873
4874 # Check whether --enable-dependency-tracking was given.
4875 if test "${enable_dependency_tracking+set}" = set; then :
4876   enableval=$enable_dependency_tracking;
4877 fi
4878
4879 if test "x$enable_dependency_tracking" != xno; then
4880   am_depcomp="$ac_aux_dir/depcomp"
4881   AMDEPBACKSLASH='\'
4882 fi
4883  if test "x$enable_dependency_tracking" != xno; then
4884   AMDEP_TRUE=
4885   AMDEP_FALSE='#'
4886 else
4887   AMDEP_TRUE='#'
4888   AMDEP_FALSE=
4889 fi
4890
4891
4892 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4893   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4894   # is not polluted with repeated "-I."
4895   am__isrc=' -I$(srcdir)'
4896   # test to see if srcdir already configured
4897   if test -f $srcdir/config.status; then
4898     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4899   fi
4900 fi
4901
4902 # test whether we have cygpath
4903 if test -z "$CYGPATH_W"; then
4904   if (cygpath --version) >/dev/null 2>/dev/null; then
4905     CYGPATH_W='cygpath -w'
4906   else
4907     CYGPATH_W=echo
4908   fi
4909 fi
4910
4911
4912 # Define the identity of the package.
4913  PACKAGE='libjava'
4914  VERSION='version-unused'
4915
4916
4917 cat >>confdefs.h <<_ACEOF
4918 #define PACKAGE "$PACKAGE"
4919 _ACEOF
4920
4921
4922 cat >>confdefs.h <<_ACEOF
4923 #define VERSION "$VERSION"
4924 _ACEOF
4925
4926 # Some tools Automake needs.
4927
4928 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4929
4930
4931 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4932
4933
4934 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4935
4936
4937 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4938
4939
4940 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4941
4942 # We need awk for the "check" target.  The system "awk" is bad on
4943 # some platforms.
4944 # Always define AMTAR for backward compatibility.
4945
4946 AMTAR=${AMTAR-"${am_missing_run}tar"}
4947
4948 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4949
4950
4951
4952
4953 depcc="$CC"   am_compiler_list=
4954
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4956 $as_echo_n "checking dependency style of $depcc... " >&6; }
4957 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4958   $as_echo_n "(cached) " >&6
4959 else
4960   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4961   # We make a subdir and do the tests there.  Otherwise we can end up
4962   # making bogus files that we don't know about and never remove.  For
4963   # instance it was reported that on HP-UX the gcc test will end up
4964   # making a dummy file named `D' -- because `-MD' means `put the output
4965   # in D'.
4966   mkdir conftest.dir
4967   # Copy depcomp to subdir because otherwise we won't find it if we're
4968   # using a relative directory.
4969   cp "$am_depcomp" conftest.dir
4970   cd conftest.dir
4971   # We will build objects and dependencies in a subdirectory because
4972   # it helps to detect inapplicable dependency modes.  For instance
4973   # both Tru64's cc and ICC support -MD to output dependencies as a
4974   # side effect of compilation, but ICC will put the dependencies in
4975   # the current directory while Tru64 will put them in the object
4976   # directory.
4977   mkdir sub
4978
4979   am_cv_CC_dependencies_compiler_type=none
4980   if test "$am_compiler_list" = ""; then
4981      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4982   fi
4983   am__universal=false
4984   case " $depcc " in #(
4985      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4986      esac
4987
4988   for depmode in $am_compiler_list; do
4989     # Setup a source with many dependencies, because some compilers
4990     # like to wrap large dependency lists on column 80 (with \), and
4991     # we should not choose a depcomp mode which is confused by this.
4992     #
4993     # We need to recreate these files for each test, as the compiler may
4994     # overwrite some of them when testing with obscure command lines.
4995     # This happens at least with the AIX C compiler.
4996     : > sub/conftest.c
4997     for i in 1 2 3 4 5 6; do
4998       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4999       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5000       # Solaris 8's {/usr,}/bin/sh.
5001       touch sub/conftst$i.h
5002     done
5003     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5004
5005     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5006     # mode.  It turns out that the SunPro C++ compiler does not properly
5007     # handle `-M -o', and we need to detect this.  Also, some Intel
5008     # versions had trouble with output in subdirs
5009     am__obj=sub/conftest.${OBJEXT-o}
5010     am__minus_obj="-o $am__obj"
5011     case $depmode in
5012     gcc)
5013       # This depmode causes a compiler race in universal mode.
5014       test "$am__universal" = false || continue
5015       ;;
5016     nosideeffect)
5017       # after this tag, mechanisms are not by side-effect, so they'll
5018       # only be used when explicitly requested
5019       if test "x$enable_dependency_tracking" = xyes; then
5020         continue
5021       else
5022         break
5023       fi
5024       ;;
5025     msvisualcpp | msvcmsys)
5026       # This compiler won't grok `-c -o', but also, the minuso test has
5027       # not run yet.  These depmodes are late enough in the game, and
5028       # so weak that their functioning should not be impacted.
5029       am__obj=conftest.${OBJEXT-o}
5030       am__minus_obj=
5031       ;;
5032     none) break ;;
5033     esac
5034     if depmode=$depmode \
5035        source=sub/conftest.c object=$am__obj \
5036        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5037        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5038          >/dev/null 2>conftest.err &&
5039        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5040        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5041        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5042        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5043       # icc doesn't choke on unknown options, it will just issue warnings
5044       # or remarks (even with -Werror).  So we grep stderr for any message
5045       # that says an option was ignored or not supported.
5046       # When given -MP, icc 7.0 and 7.1 complain thusly:
5047       #   icc: Command line warning: ignoring option '-M'; no argument required
5048       # The diagnosis changed in icc 8.0:
5049       #   icc: Command line remark: option '-MP' not supported
5050       if (grep 'ignoring option' conftest.err ||
5051           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5052         am_cv_CC_dependencies_compiler_type=$depmode
5053         break
5054       fi
5055     fi
5056   done
5057
5058   cd ..
5059   rm -rf conftest.dir
5060 else
5061   am_cv_CC_dependencies_compiler_type=none
5062 fi
5063
5064 fi
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5066 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5067 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5068
5069  if
5070   test "x$enable_dependency_tracking" != xno \
5071   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5072   am__fastdepCC_TRUE=
5073   am__fastdepCC_FALSE='#'
5074 else
5075   am__fastdepCC_TRUE='#'
5076   am__fastdepCC_FALSE=
5077 fi
5078
5079
5080 depcc="$CXX"  am_compiler_list=
5081
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5083 $as_echo_n "checking dependency style of $depcc... " >&6; }
5084 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5085   $as_echo_n "(cached) " >&6
5086 else
5087   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5088   # We make a subdir and do the tests there.  Otherwise we can end up
5089   # making bogus files that we don't know about and never remove.  For
5090   # instance it was reported that on HP-UX the gcc test will end up
5091   # making a dummy file named `D' -- because `-MD' means `put the output
5092   # in D'.
5093   mkdir conftest.dir
5094   # Copy depcomp to subdir because otherwise we won't find it if we're
5095   # using a relative directory.
5096   cp "$am_depcomp" conftest.dir
5097   cd conftest.dir
5098   # We will build objects and dependencies in a subdirectory because
5099   # it helps to detect inapplicable dependency modes.  For instance
5100   # both Tru64's cc and ICC support -MD to output dependencies as a
5101   # side effect of compilation, but ICC will put the dependencies in
5102   # the current directory while Tru64 will put them in the object
5103   # directory.
5104   mkdir sub
5105
5106   am_cv_CXX_dependencies_compiler_type=none
5107   if test "$am_compiler_list" = ""; then
5108      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5109   fi
5110   am__universal=false
5111   case " $depcc " in #(
5112      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5113      esac
5114
5115   for depmode in $am_compiler_list; do
5116     # Setup a source with many dependencies, because some compilers
5117     # like to wrap large dependency lists on column 80 (with \), and
5118     # we should not choose a depcomp mode which is confused by this.
5119     #
5120     # We need to recreate these files for each test, as the compiler may
5121     # overwrite some of them when testing with obscure command lines.
5122     # This happens at least with the AIX C compiler.
5123     : > sub/conftest.c
5124     for i in 1 2 3 4 5 6; do
5125       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5126       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5127       # Solaris 8's {/usr,}/bin/sh.
5128       touch sub/conftst$i.h
5129     done
5130     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5131
5132     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5133     # mode.  It turns out that the SunPro C++ compiler does not properly
5134     # handle `-M -o', and we need to detect this.  Also, some Intel
5135     # versions had trouble with output in subdirs
5136     am__obj=sub/conftest.${OBJEXT-o}
5137     am__minus_obj="-o $am__obj"
5138     case $depmode in
5139     gcc)
5140       # This depmode causes a compiler race in universal mode.
5141       test "$am__universal" = false || continue
5142       ;;
5143     nosideeffect)
5144       # after this tag, mechanisms are not by side-effect, so they'll
5145       # only be used when explicitly requested
5146       if test "x$enable_dependency_tracking" = xyes; then
5147         continue
5148       else
5149         break
5150       fi
5151       ;;
5152     msvisualcpp | msvcmsys)
5153       # This compiler won't grok `-c -o', but also, the minuso test has
5154       # not run yet.  These depmodes are late enough in the game, and
5155       # so weak that their functioning should not be impacted.
5156       am__obj=conftest.${OBJEXT-o}
5157       am__minus_obj=
5158       ;;
5159     none) break ;;
5160     esac
5161     if depmode=$depmode \
5162        source=sub/conftest.c object=$am__obj \
5163        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5164        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5165          >/dev/null 2>conftest.err &&
5166        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5167        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5168        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5169        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5170       # icc doesn't choke on unknown options, it will just issue warnings
5171       # or remarks (even with -Werror).  So we grep stderr for any message
5172       # that says an option was ignored or not supported.
5173       # When given -MP, icc 7.0 and 7.1 complain thusly:
5174       #   icc: Command line warning: ignoring option '-M'; no argument required
5175       # The diagnosis changed in icc 8.0:
5176       #   icc: Command line remark: option '-MP' not supported
5177       if (grep 'ignoring option' conftest.err ||
5178           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5179         am_cv_CXX_dependencies_compiler_type=$depmode
5180         break
5181       fi
5182     fi
5183   done
5184
5185   cd ..
5186   rm -rf conftest.dir
5187 else
5188   am_cv_CXX_dependencies_compiler_type=none
5189 fi
5190
5191 fi
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5193 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5194 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5195
5196  if
5197   test "x$enable_dependency_tracking" != xno \
5198   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5199   am__fastdepCXX_TRUE=
5200   am__fastdepCXX_FALSE='#'
5201 else
5202   am__fastdepCXX_TRUE='#'
5203   am__fastdepCXX_FALSE=
5204 fi
5205
5206
5207
5208
5209 if test -n "$ac_tool_prefix"; then
5210   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5211 set dummy ${ac_tool_prefix}as; ac_word=$2
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5213 $as_echo_n "checking for $ac_word... " >&6; }
5214 if test "${ac_cv_prog_AS+set}" = set; then :
5215   $as_echo_n "(cached) " >&6
5216 else
5217   if test -n "$AS"; then
5218   ac_cv_prog_AS="$AS" # Let the user override the test.
5219 else
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 for as_dir in $PATH
5222 do
5223   IFS=$as_save_IFS
5224   test -z "$as_dir" && as_dir=.
5225     for ac_exec_ext in '' $ac_executable_extensions; do
5226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5227     ac_cv_prog_AS="${ac_tool_prefix}as"
5228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5229     break 2
5230   fi
5231 done
5232   done
5233 IFS=$as_save_IFS
5234
5235 fi
5236 fi
5237 AS=$ac_cv_prog_AS
5238 if test -n "$AS"; then
5239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5240 $as_echo "$AS" >&6; }
5241 else
5242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243 $as_echo "no" >&6; }
5244 fi
5245
5246
5247 fi
5248 if test -z "$ac_cv_prog_AS"; then
5249   ac_ct_AS=$AS
5250   # Extract the first word of "as", so it can be a program name with args.
5251 set dummy as; ac_word=$2
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253 $as_echo_n "checking for $ac_word... " >&6; }
5254 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5255   $as_echo_n "(cached) " >&6
5256 else
5257   if test -n "$ac_ct_AS"; then
5258   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5259 else
5260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 for as_dir in $PATH
5262 do
5263   IFS=$as_save_IFS
5264   test -z "$as_dir" && as_dir=.
5265     for ac_exec_ext in '' $ac_executable_extensions; do
5266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5267     ac_cv_prog_ac_ct_AS="as"
5268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5269     break 2
5270   fi
5271 done
5272   done
5273 IFS=$as_save_IFS
5274
5275 fi
5276 fi
5277 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5278 if test -n "$ac_ct_AS"; then
5279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5280 $as_echo "$ac_ct_AS" >&6; }
5281 else
5282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283 $as_echo "no" >&6; }
5284 fi
5285
5286   if test "x$ac_ct_AS" = x; then
5287     AS=""
5288   else
5289     case $cross_compiling:$ac_tool_warned in
5290 yes:)
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5293 ac_tool_warned=yes ;;
5294 esac
5295     AS=$ac_ct_AS
5296   fi
5297 else
5298   AS="$ac_cv_prog_AS"
5299 fi
5300
5301 if test -n "$ac_tool_prefix"; then
5302   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5303 set dummy ${ac_tool_prefix}ld; ac_word=$2
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5305 $as_echo_n "checking for $ac_word... " >&6; }
5306 if test "${ac_cv_prog_LD+set}" = set; then :
5307   $as_echo_n "(cached) " >&6
5308 else
5309   if test -n "$LD"; then
5310   ac_cv_prog_LD="$LD" # Let the user override the test.
5311 else
5312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313 for as_dir in $PATH
5314 do
5315   IFS=$as_save_IFS
5316   test -z "$as_dir" && as_dir=.
5317     for ac_exec_ext in '' $ac_executable_extensions; do
5318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5319     ac_cv_prog_LD="${ac_tool_prefix}ld"
5320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5321     break 2
5322   fi
5323 done
5324   done
5325 IFS=$as_save_IFS
5326
5327 fi
5328 fi
5329 LD=$ac_cv_prog_LD
5330 if test -n "$LD"; then
5331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5332 $as_echo "$LD" >&6; }
5333 else
5334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5335 $as_echo "no" >&6; }
5336 fi
5337
5338
5339 fi
5340 if test -z "$ac_cv_prog_LD"; then
5341   ac_ct_LD=$LD
5342   # Extract the first word of "ld", so it can be a program name with args.
5343 set dummy ld; ac_word=$2
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5345 $as_echo_n "checking for $ac_word... " >&6; }
5346 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
5347   $as_echo_n "(cached) " >&6
5348 else
5349   if test -n "$ac_ct_LD"; then
5350   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5351 else
5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353 for as_dir in $PATH
5354 do
5355   IFS=$as_save_IFS
5356   test -z "$as_dir" && as_dir=.
5357     for ac_exec_ext in '' $ac_executable_extensions; do
5358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5359     ac_cv_prog_ac_ct_LD="ld"
5360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5361     break 2
5362   fi
5363 done
5364   done
5365 IFS=$as_save_IFS
5366
5367 fi
5368 fi
5369 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5370 if test -n "$ac_ct_LD"; then
5371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
5372 $as_echo "$ac_ct_LD" >&6; }
5373 else
5374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375 $as_echo "no" >&6; }
5376 fi
5377
5378   if test "x$ac_ct_LD" = x; then
5379     LD=""
5380   else
5381     case $cross_compiling:$ac_tool_warned in
5382 yes:)
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5385 ac_tool_warned=yes ;;
5386 esac
5387     LD=$ac_ct_LD
5388   fi
5389 else
5390   LD="$ac_cv_prog_LD"
5391 fi
5392
5393 if test -n "$ac_tool_prefix"; then
5394   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5395 set dummy ${ac_tool_prefix}ar; ac_word=$2
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397 $as_echo_n "checking for $ac_word... " >&6; }
5398 if test "${ac_cv_prog_AR+set}" = set; then :
5399   $as_echo_n "(cached) " >&6
5400 else
5401   if test -n "$AR"; then
5402   ac_cv_prog_AR="$AR" # Let the user override the test.
5403 else
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 for as_dir in $PATH
5406 do
5407   IFS=$as_save_IFS
5408   test -z "$as_dir" && as_dir=.
5409     for ac_exec_ext in '' $ac_executable_extensions; do
5410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5411     ac_cv_prog_AR="${ac_tool_prefix}ar"
5412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5413     break 2
5414   fi
5415 done
5416   done
5417 IFS=$as_save_IFS
5418
5419 fi
5420 fi
5421 AR=$ac_cv_prog_AR
5422 if test -n "$AR"; then
5423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5424 $as_echo "$AR" >&6; }
5425 else
5426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427 $as_echo "no" >&6; }
5428 fi
5429
5430
5431 fi
5432 if test -z "$ac_cv_prog_AR"; then
5433   ac_ct_AR=$AR
5434   # Extract the first word of "ar", so it can be a program name with args.
5435 set dummy ar; ac_word=$2
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5437 $as_echo_n "checking for $ac_word... " >&6; }
5438 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5439   $as_echo_n "(cached) " >&6
5440 else
5441   if test -n "$ac_ct_AR"; then
5442   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5443 else
5444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445 for as_dir in $PATH
5446 do
5447   IFS=$as_save_IFS
5448   test -z "$as_dir" && as_dir=.
5449     for ac_exec_ext in '' $ac_executable_extensions; do
5450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5451     ac_cv_prog_ac_ct_AR="ar"
5452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5453     break 2
5454   fi
5455 done
5456   done
5457 IFS=$as_save_IFS
5458
5459 fi
5460 fi
5461 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5462 if test -n "$ac_ct_AR"; then
5463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5464 $as_echo "$ac_ct_AR" >&6; }
5465 else
5466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467 $as_echo "no" >&6; }
5468 fi
5469
5470   if test "x$ac_ct_AR" = x; then
5471     AR=""
5472   else
5473     case $cross_compiling:$ac_tool_warned in
5474 yes:)
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5477 ac_tool_warned=yes ;;
5478 esac
5479     AR=$ac_ct_AR
5480   fi
5481 else
5482   AR="$ac_cv_prog_AR"
5483 fi
5484
5485 if test -n "$ac_tool_prefix"; then
5486   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5487 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5489 $as_echo_n "checking for $ac_word... " >&6; }
5490 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5491   $as_echo_n "(cached) " >&6
5492 else
5493   if test -n "$RANLIB"; then
5494   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5495 else
5496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497 for as_dir in $PATH
5498 do
5499   IFS=$as_save_IFS
5500   test -z "$as_dir" && as_dir=.
5501     for ac_exec_ext in '' $ac_executable_extensions; do
5502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5503     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5505     break 2
5506   fi
5507 done
5508   done
5509 IFS=$as_save_IFS
5510
5511 fi
5512 fi
5513 RANLIB=$ac_cv_prog_RANLIB
5514 if test -n "$RANLIB"; then
5515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5516 $as_echo "$RANLIB" >&6; }
5517 else
5518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519 $as_echo "no" >&6; }
5520 fi
5521
5522
5523 fi
5524 if test -z "$ac_cv_prog_RANLIB"; then
5525   ac_ct_RANLIB=$RANLIB
5526   # Extract the first word of "ranlib", so it can be a program name with args.
5527 set dummy ranlib; ac_word=$2
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5529 $as_echo_n "checking for $ac_word... " >&6; }
5530 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5531   $as_echo_n "(cached) " >&6
5532 else
5533   if test -n "$ac_ct_RANLIB"; then
5534   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5535 else
5536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537 for as_dir in $PATH
5538 do
5539   IFS=$as_save_IFS
5540   test -z "$as_dir" && as_dir=.
5541     for ac_exec_ext in '' $ac_executable_extensions; do
5542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5543     ac_cv_prog_ac_ct_RANLIB="ranlib"
5544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5545     break 2
5546   fi
5547 done
5548   done
5549 IFS=$as_save_IFS
5550
5551 fi
5552 fi
5553 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5554 if test -n "$ac_ct_RANLIB"; then
5555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5556 $as_echo "$ac_ct_RANLIB" >&6; }
5557 else
5558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5559 $as_echo "no" >&6; }
5560 fi
5561
5562   if test "x$ac_ct_RANLIB" = x; then
5563     RANLIB=":"
5564   else
5565     case $cross_compiling:$ac_tool_warned in
5566 yes:)
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5569 ac_tool_warned=yes ;;
5570 esac
5571     RANLIB=$ac_ct_RANLIB
5572   fi
5573 else
5574   RANLIB="$ac_cv_prog_RANLIB"
5575 fi
5576
5577 for ac_prog in gawk mawk nawk awk
5578 do
5579   # Extract the first word of "$ac_prog", so it can be a program name with args.
5580 set dummy $ac_prog; ac_word=$2
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5582 $as_echo_n "checking for $ac_word... " >&6; }
5583 if test "${ac_cv_prog_AWK+set}" = set; then :
5584   $as_echo_n "(cached) " >&6
5585 else
5586   if test -n "$AWK"; then
5587   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5588 else
5589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590 for as_dir in $PATH
5591 do
5592   IFS=$as_save_IFS
5593   test -z "$as_dir" && as_dir=.
5594     for ac_exec_ext in '' $ac_executable_extensions; do
5595   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5596     ac_cv_prog_AWK="$ac_prog"
5597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5598     break 2
5599   fi
5600 done
5601   done
5602 IFS=$as_save_IFS
5603
5604 fi
5605 fi
5606 AWK=$ac_cv_prog_AWK
5607 if test -n "$AWK"; then
5608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5609 $as_echo "$AWK" >&6; }
5610 else
5611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5612 $as_echo "no" >&6; }
5613 fi
5614
5615
5616   test -n "$AWK" && break
5617 done
5618
5619 for ac_prog in jar fastjar gjar
5620 do
5621   # Extract the first word of "$ac_prog", so it can be a program name with args.
5622 set dummy $ac_prog; ac_word=$2
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5624 $as_echo_n "checking for $ac_word... " >&6; }
5625 if test "${ac_cv_prog_JAR+set}" = set; then :
5626   $as_echo_n "(cached) " >&6
5627 else
5628   if test -n "$JAR"; then
5629   ac_cv_prog_JAR="$JAR" # Let the user override the test.
5630 else
5631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632 for as_dir in $PATH
5633 do
5634   IFS=$as_save_IFS
5635   test -z "$as_dir" && as_dir=.
5636     for ac_exec_ext in '' $ac_executable_extensions; do
5637   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5638     ac_cv_prog_JAR="$ac_prog"
5639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5640     break 2
5641   fi
5642 done
5643   done
5644 IFS=$as_save_IFS
5645
5646 fi
5647 fi
5648 JAR=$ac_cv_prog_JAR
5649 if test -n "$JAR"; then
5650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
5651 $as_echo "$JAR" >&6; }
5652 else
5653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654 $as_echo "no" >&6; }
5655 fi
5656
5657
5658   test -n "$JAR" && break
5659 done
5660 test -n "$JAR" || JAR="no"
5661
5662 # Extract the first word of "zip", so it can be a program name with args.
5663 set dummy zip; ac_word=$2
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5665 $as_echo_n "checking for $ac_word... " >&6; }
5666 if test "${ac_cv_path_ZIP+set}" = set; then :
5667   $as_echo_n "(cached) " >&6
5668 else
5669   case $ZIP in
5670   [\\/]* | ?:[\\/]*)
5671   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5672   ;;
5673   *)
5674   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675 for as_dir in $PATH
5676 do
5677   IFS=$as_save_IFS
5678   test -z "$as_dir" && as_dir=.
5679     for ac_exec_ext in '' $ac_executable_extensions; do
5680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5681     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5683     break 2
5684   fi
5685 done
5686   done
5687 IFS=$as_save_IFS
5688
5689   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
5690   ;;
5691 esac
5692 fi
5693 ZIP=$ac_cv_path_ZIP
5694 if test -n "$ZIP"; then
5695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
5696 $as_echo "$ZIP" >&6; }
5697 else
5698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699 $as_echo "no" >&6; }
5700 fi
5701
5702
5703 # Extract the first word of "unzip", so it can be a program name with args.
5704 set dummy unzip; ac_word=$2
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5706 $as_echo_n "checking for $ac_word... " >&6; }
5707 if test "${ac_cv_path_UNZIP+set}" = set; then :
5708   $as_echo_n "(cached) " >&6
5709 else
5710   case $UNZIP in
5711   [\\/]* | ?:[\\/]*)
5712   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
5713   ;;
5714   *)
5715   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716 for as_dir in $PATH
5717 do
5718   IFS=$as_save_IFS
5719   test -z "$as_dir" && as_dir=.
5720     for ac_exec_ext in '' $ac_executable_extensions; do
5721   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5722     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
5723     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5724     break 2
5725   fi
5726 done
5727   done
5728 IFS=$as_save_IFS
5729
5730   test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
5731   ;;
5732 esac
5733 fi
5734 UNZIP=$ac_cv_path_UNZIP
5735 if test -n "$UNZIP"; then
5736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
5737 $as_echo "$UNZIP" >&6; }
5738 else
5739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5740 $as_echo "no" >&6; }
5741 fi
5742
5743
5744
5745 # We need a jar that supports -@.  This is a GNU extension.
5746 if test "$JAR" != no; then
5747    rm -f config-test.jar
5748    echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
5749    if test -f config-test.jar; then
5750      rm -f config-test.jar
5751    else
5752      JAR=no
5753    fi
5754 fi
5755
5756 # Prefer the jar we found, but fall back to our jar script.
5757 if test "$JAR" = no; then
5758   if test "$ZIP" = no; then
5759     as_fn_error "cannot find neither zip nor jar, cannot continue" "$LINENO" 5
5760   else
5761     # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
5762     JAR=`pwd`/scripts/jar
5763   fi
5764 fi
5765
5766
5767
5768
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5770 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5771     # Check whether --enable-maintainer-mode was given.
5772 if test "${enable_maintainer_mode+set}" = set; then :
5773   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5774 else
5775   USE_MAINTAINER_MODE=no
5776 fi
5777
5778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5779 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5780    if test $USE_MAINTAINER_MODE = yes; then
5781   MAINTAINER_MODE_TRUE=
5782   MAINTAINER_MODE_FALSE='#'
5783 else
5784   MAINTAINER_MODE_TRUE='#'
5785   MAINTAINER_MODE_FALSE=
5786 fi
5787
5788   MAINT=$MAINTAINER_MODE_TRUE
5789
5790
5791
5792
5793
5794 # configure.host sets the following important variables
5795 #       libgcj_cflags    - host specific C compiler flags
5796 #       libgcj_cxxflags  - host specific C++ compiler flags
5797 #       libgcj_javaflags - host specific Java compiler flags
5798 #       libgcj_sublib_ltflags - host specific Libtool flags
5799 #                          (only used when building sublibs)
5800 # and a number of others; see the list at the start of the file.
5801
5802 libgcj_cflags=
5803 libgcj_cxxflags=
5804 libgcj_javaflags=
5805 libgcj_sublib_ltflags=
5806
5807 . ${srcdir}/configure.host
5808
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5810 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5811 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5812   $as_echo_n "(cached) " >&6
5813 else
5814   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5815 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5816   acl_cv_prog_gnu_ld=yes
5817 else
5818   acl_cv_prog_gnu_ld=no
5819 fi
5820 fi
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5822 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5823 with_gnu_ld=$acl_cv_prog_gnu_ld
5824
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
5826 $as_echo_n "checking if the GNU linker ($LD) supports -Bsymbolic-functions... " >&6; }
5827 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then :
5828   $as_echo_n "(cached) " >&6
5829 else
5830
5831 acl_cv_prog_gnu_ld_symbolic=no
5832
5833 if test x"$with_gnu_ld" = x"yes"; then
5834   if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
5835     acl_cv_prog_gnu_ld_symbolic=yes
5836   fi
5837 fi
5838 fi
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld_symbolic" >&5
5840 $as_echo "$acl_cv_prog_gnu_ld_symbolic" >&6; }
5841 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
5842   SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
5843 else
5844   SYMBOLIC_LDFLAGS=''
5845 fi
5846
5847 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
5848 if test -z "$libgcj_ld_symbolic"; then
5849   libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
5850 fi
5851
5852 LIBGCJ_CFLAGS="${libgcj_cflags}"
5853 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
5854 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
5855 LIBGCJ_SUBLIB_LTFLAGS="${libgcj_sublib_ltflags}"
5856 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
5857 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
5858
5859
5860
5861
5862
5863
5864
5865 # Only use libltdl for non-newlib builds.
5866 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5867    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
5868 $as_echo_n "checking dynamic linker characteristics... " >&6; }
5869 library_names_spec=
5870 libname_spec='lib$name'
5871 soname_spec=
5872 shrext=".so"
5873 postinstall_cmds=
5874 postuninstall_cmds=
5875 finish_cmds=
5876 finish_eval=
5877 shlibpath_var=
5878 shlibpath_overrides_runpath=unknown
5879 version_type=none
5880 dynamic_linker="$host_os ld.so"
5881 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5882 if test "$GCC" = yes; then
5883   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
5884   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
5885     # if the path contains ";" then we assume it to be the separator
5886     # otherwise default to the standard path separator (i.e. ":") - it is
5887     # assumed that no part of a normal pathname contains ";" but that should
5888     # okay in the real world where ";" in dirpaths is itself problematic.
5889     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
5890   else
5891     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
5892   fi
5893 else
5894   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5895 fi
5896 need_lib_prefix=unknown
5897 hardcode_into_libs=no
5898
5899 # when you set need_version to no, make sure it does not cause -set_version
5900 # flags to be left without arguments
5901 need_version=unknown
5902
5903 case $host_os in
5904 aix3*)
5905   version_type=linux
5906   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
5907   shlibpath_var=LIBPATH
5908
5909   # AIX 3 has no versioning support, so we append a major version to the name.
5910   soname_spec='${libname}${release}${shared_ext}$major'
5911   ;;
5912
5913 aix[4-9]*)
5914   version_type=linux
5915   need_lib_prefix=no
5916   need_version=no
5917   hardcode_into_libs=yes
5918   if test "$host_cpu" = ia64; then
5919     # AIX 5 supports IA64
5920     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
5921     shlibpath_var=LD_LIBRARY_PATH
5922   else
5923     # With GCC up to 2.95.x, collect2 would create an import file
5924     # for dependence libraries.  The import file would start with
5925     # the line `#! .'.  This would cause the generated library to
5926     # depend on `.', always an invalid library.  This was fixed in
5927     # development snapshots of GCC prior to 3.0.
5928     case $host_os in
5929       aix4 | aix4.[01] | aix4.[01].*)
5930       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5931            echo ' yes '
5932            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5933         :
5934       else
5935         can_build_shared=no
5936       fi
5937       ;;
5938     esac
5939     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
5940     # soname into executable. Probably we can add versioning support to
5941     # collect2, so additional links can be useful in future.
5942     if test "$aix_use_runtimelinking" = yes; then
5943       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5944       # instead of lib<name>.a to let people know that these are not
5945       # typical AIX shared libraries.
5946       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5947     else
5948       # We preserve .a as extension for shared libraries through AIX4.2
5949       # and later when we are not doing run time linking.
5950       library_names_spec='${libname}${release}.a $libname.a'
5951       soname_spec='${libname}${release}${shared_ext}$major'
5952     fi
5953     shlibpath_var=LIBPATH
5954   fi
5955   ;;
5956
5957 amigaos*)
5958   library_names_spec='$libname.ixlibrary $libname.a'
5959   # Create ${libname}_ixlibrary.a entries in /sys/libs.
5960   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'
5961   ;;
5962
5963 beos*)
5964   library_names_spec='${libname}${shared_ext}'
5965   dynamic_linker="$host_os ld.so"
5966   shlibpath_var=LIBRARY_PATH
5967   ;;
5968
5969 bsdi4*)
5970   version_type=linux
5971   need_version=no
5972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5973   soname_spec='${libname}${release}${shared_ext}$major'
5974   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5975   shlibpath_var=LD_LIBRARY_PATH
5976   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5977   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5978   # the default ld.so.conf also contains /usr/contrib/lib and
5979   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5980   # libtool to hard-code these into programs
5981   ;;
5982
5983 cygwin* | mingw* | pw32*)
5984   version_type=windows
5985   shrext=".dll"
5986   need_version=no
5987   need_lib_prefix=no
5988
5989   case $GCC,$host_os in
5990   yes,cygwin* | yes,mingw* | yes,pw32*)
5991     library_names_spec='$libname.dll.a'
5992     # DLL is installed to $(libdir)/../bin by postinstall_cmds
5993     postinstall_cmds='base_file=`basename \${file}`~
5994       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
5995       dldir=$destdir/`dirname \$dlpath`~
5996       test -d \$dldir || mkdir -p \$dldir~
5997       $install_prog $dir/$dlname \$dldir/$dlname'
5998     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
5999       dlpath=$dir/\$dldll~
6000        $rm \$dlpath'
6001     shlibpath_overrides_runpath=yes
6002
6003     case $host_os in
6004     cygwin*)
6005       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6006       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6007       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
6008       ;;
6009     mingw*)
6010       # MinGW DLLs use traditional 'lib' prefix
6011       soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6012       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
6013       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6014         # It is most probably a Windows format PATH printed by
6015         # mingw gcc, but we are running on Cygwin. Gcc prints its search
6016         # path with ; separators, and with drive letters. We can handle the
6017         # drive letters (cygwin fileutils understands them), so leave them,
6018         # especially as we might pass files found there to a mingw objdump,
6019         # which wouldn't understand a cygwinified path. Ahh.
6020         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6021       else
6022         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6023       fi
6024       ;;
6025     pw32*)
6026       # pw32 DLLs use 'pw' prefix rather than 'lib'
6027       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
6028       ;;
6029     esac
6030     ;;
6031
6032   *)
6033     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6034     ;;
6035   esac
6036   dynamic_linker='Win32 ld.exe'
6037   # FIXME: first we should search . and the directory the executable is in
6038   shlibpath_var=PATH
6039   ;;
6040
6041 darwin* | rhapsody*)
6042   dynamic_linker="$host_os dyld"
6043   version_type=darwin
6044   need_lib_prefix=no
6045   need_version=no
6046   # FIXME: Relying on posixy $() will cause problems for
6047   #        cross-compilation, but unfortunately the echo tests do not
6048   #        yet detect zsh echo's removal of \ escapes.
6049   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6050   soname_spec='${libname}${release}${major}$shared_ext'
6051   shlibpath_overrides_runpath=yes
6052   shlibpath_var=DYLD_LIBRARY_PATH
6053   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
6054   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6055   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6056   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"`
6057   fi
6058   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6059   ;;
6060
6061 dgux*)
6062   version_type=linux
6063   need_lib_prefix=no
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   shlibpath_var=LD_LIBRARY_PATH
6068   ;;
6069
6070 freebsd1*)
6071   dynamic_linker=no
6072   ;;
6073
6074 freebsd*)
6075   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6076   version_type=freebsd-$objformat
6077   case $version_type in
6078     freebsd-elf*)
6079       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6080       need_version=no
6081       need_lib_prefix=no
6082       ;;
6083     freebsd-*)
6084       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6085       need_version=yes
6086       ;;
6087   esac
6088   shlibpath_var=LD_LIBRARY_PATH
6089   case $host_os in
6090   freebsd2*)
6091     shlibpath_overrides_runpath=yes
6092     ;;
6093   freebsd3.01* | freebsdelf3.01*)
6094     shlibpath_overrides_runpath=yes
6095     hardcode_into_libs=yes
6096     ;;
6097   *) # from 3.2 on
6098     shlibpath_overrides_runpath=no
6099     hardcode_into_libs=yes
6100     ;;
6101   esac
6102   ;;
6103
6104 gnu*)
6105   version_type=linux
6106   need_lib_prefix=no
6107   need_version=no
6108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6109   soname_spec='${libname}${release}${shared_ext}$major'
6110   shlibpath_var=LD_LIBRARY_PATH
6111   hardcode_into_libs=yes
6112   ;;
6113
6114 hpux9* | hpux10* | hpux11*)
6115   # Give a soname corresponding to the major version so that dld.sl refuses to
6116   # link against other versions.
6117   version_type=sunos
6118   need_lib_prefix=no
6119   need_version=no
6120   case "$host_cpu" in
6121   ia64*)
6122     shrext='.so'
6123     hardcode_into_libs=yes
6124     dynamic_linker="$host_os dld.so"
6125     shlibpath_var=LD_LIBRARY_PATH
6126     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6127     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6128     soname_spec='${libname}${release}${shared_ext}$major'
6129     if test "X$HPUX_IA64_MODE" = X32; then
6130       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6131     else
6132       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6133     fi
6134     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6135     ;;
6136    hppa*64*)
6137      shrext='.sl'
6138      hardcode_into_libs=yes
6139      dynamic_linker="$host_os dld.sl"
6140      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6141      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6142      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6143      soname_spec='${libname}${release}${shared_ext}$major'
6144      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6145      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6146      ;;
6147    *)
6148     shrext='.sl'
6149     dynamic_linker="$host_os dld.sl"
6150     shlibpath_var=SHLIB_PATH
6151     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6152     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6153     soname_spec='${libname}${release}${shared_ext}$major'
6154     ;;
6155   esac
6156   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6157   postinstall_cmds='chmod 555 $lib'
6158   ;;
6159
6160 irix5* | irix6* | nonstopux*)
6161   case $host_os in
6162     nonstopux*) version_type=nonstopux ;;
6163     *)
6164         if test "$lt_cv_prog_gnu_ld" = yes; then
6165                 version_type=linux
6166         else
6167                 version_type=irix
6168         fi ;;
6169   esac
6170   need_lib_prefix=no
6171   need_version=no
6172   soname_spec='${libname}${release}${shared_ext}$major'
6173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6174   case $host_os in
6175   irix5* | nonstopux*)
6176     libsuff= shlibsuff=
6177     ;;
6178   *)
6179     case $LD in # libtool.m4 will add one of these switches to LD
6180     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6181       libsuff= shlibsuff= libmagic=32-bit;;
6182     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6183       libsuff=32 shlibsuff=N32 libmagic=N32;;
6184     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6185       libsuff=64 shlibsuff=64 libmagic=64-bit;;
6186     *) libsuff= shlibsuff= libmagic=never-match;;
6187     esac
6188     ;;
6189   esac
6190   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6191   shlibpath_overrides_runpath=no
6192   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6193   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6194   hardcode_into_libs=yes
6195   ;;
6196
6197 # No shared lib support for Linux oldld, aout, or coff.
6198 linux*oldld* | linux*aout* | linux*coff*)
6199   dynamic_linker=no
6200   ;;
6201
6202 # This must be Linux ELF.
6203 linux*|k*bsd*-gnu)
6204   version_type=linux
6205   need_lib_prefix=no
6206   need_version=no
6207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6208   soname_spec='${libname}${release}${shared_ext}$major'
6209   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6210   shlibpath_var=LD_LIBRARY_PATH
6211   shlibpath_overrides_runpath=no
6212   # This implies no fast_install, which is unacceptable.
6213   # Some rework will be needed to allow for fast_install
6214   # before this can be enabled.
6215   hardcode_into_libs=yes
6216
6217   # We used to test for /lib/ld.so.1 and disable shared libraries on
6218   # powerpc, because MkLinux only supported shared libraries with the
6219   # GNU dynamic linker.  Since this was broken with cross compilers,
6220   # most powerpc-linux boxes support dynamic linking these days and
6221   # people can always --disable-shared, the test was removed, and we
6222   # assume the GNU/Linux dynamic linker is in use.
6223   dynamic_linker='GNU/Linux ld.so'
6224   ;;
6225
6226 netbsd*)
6227   version_type=sunos
6228   need_lib_prefix=no
6229   need_version=no
6230   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6231     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6232     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6233     dynamic_linker='NetBSD (a.out) ld.so'
6234   else
6235     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
6236     soname_spec='${libname}${release}${shared_ext}$major'
6237     dynamic_linker='NetBSD ld.elf_so'
6238   fi
6239   shlibpath_var=LD_LIBRARY_PATH
6240   shlibpath_overrides_runpath=yes
6241   hardcode_into_libs=yes
6242   ;;
6243
6244 newsos6)
6245   version_type=linux
6246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6247   shlibpath_var=LD_LIBRARY_PATH
6248   shlibpath_overrides_runpath=yes
6249   ;;
6250
6251 nto-qnx)
6252   version_type=linux
6253   need_lib_prefix=no
6254   need_version=no
6255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6256   soname_spec='${libname}${release}${shared_ext}$major'
6257   shlibpath_var=LD_LIBRARY_PATH
6258   shlibpath_overrides_runpath=yes
6259   ;;
6260
6261 openbsd*)
6262   version_type=sunos
6263   need_lib_prefix=no
6264   need_version=no
6265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6266   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6267   shlibpath_var=LD_LIBRARY_PATH
6268   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6269     case $host_os in
6270       openbsd2.[89] | openbsd2.[89].*)
6271         shlibpath_overrides_runpath=no
6272         ;;
6273       *)
6274         shlibpath_overrides_runpath=yes
6275         ;;
6276       esac
6277   else
6278     shlibpath_overrides_runpath=yes
6279   fi
6280   ;;
6281
6282 os2*)
6283   libname_spec='$name'
6284   shrext=".dll"
6285   need_lib_prefix=no
6286   library_names_spec='$libname${shared_ext} $libname.a'
6287   dynamic_linker='OS/2 ld.exe'
6288   shlibpath_var=LIBPATH
6289   ;;
6290
6291 osf3* | osf4* | osf5*)
6292   version_type=osf
6293   need_lib_prefix=no
6294   need_version=no
6295   soname_spec='${libname}${release}${shared_ext}$major'
6296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6297   shlibpath_var=LD_LIBRARY_PATH
6298   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6299   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6300   ;;
6301
6302 sco3.2v5*)
6303   version_type=osf
6304   soname_spec='${libname}${release}${shared_ext}$major'
6305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6306   shlibpath_var=LD_LIBRARY_PATH
6307   ;;
6308
6309 solaris*)
6310   version_type=linux
6311   need_lib_prefix=no
6312   need_version=no
6313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6314   soname_spec='${libname}${release}${shared_ext}$major'
6315   shlibpath_var=LD_LIBRARY_PATH
6316   shlibpath_overrides_runpath=yes
6317   hardcode_into_libs=yes
6318   # ldd complains unless libraries are executable
6319   postinstall_cmds='chmod +x $lib'
6320   ;;
6321
6322 sunos4*)
6323   version_type=sunos
6324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6325   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6326   shlibpath_var=LD_LIBRARY_PATH
6327   shlibpath_overrides_runpath=yes
6328   if test "$with_gnu_ld" = yes; then
6329     need_lib_prefix=no
6330   fi
6331   need_version=yes
6332   ;;
6333
6334 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6335   version_type=linux
6336   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6337   soname_spec='${libname}${release}${shared_ext}$major'
6338   shlibpath_var=LD_LIBRARY_PATH
6339   case $host_vendor in
6340     sni)
6341       shlibpath_overrides_runpath=no
6342       need_lib_prefix=no
6343       export_dynamic_flag_spec='${wl}-Blargedynsym'
6344       runpath_var=LD_RUN_PATH
6345       ;;
6346     siemens)
6347       need_lib_prefix=no
6348       ;;
6349     motorola)
6350       need_lib_prefix=no
6351       need_version=no
6352       shlibpath_overrides_runpath=no
6353       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6354       ;;
6355   esac
6356   ;;
6357
6358 sysv4*MP*)
6359   if test -d /usr/nec ;then
6360     version_type=linux
6361     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6362     soname_spec='$libname${shared_ext}.$major'
6363     shlibpath_var=LD_LIBRARY_PATH
6364   fi
6365   ;;
6366
6367 uts4*)
6368   version_type=linux
6369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6370   soname_spec='${libname}${release}${shared_ext}$major'
6371   shlibpath_var=LD_LIBRARY_PATH
6372   ;;
6373
6374 *)
6375   dynamic_linker=no
6376   ;;
6377 esac
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
6379 $as_echo "$dynamic_linker" >&6; }
6380 test "$dynamic_linker" = no && can_build_shared=no
6381
6382
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
6384 $as_echo_n "checking which variable specifies run-time library path... " >&6; }
6385 if test "${libltdl_cv_shlibpath_var+set}" = set; then :
6386   $as_echo_n "(cached) " >&6
6387 else
6388   libltdl_cv_shlibpath_var="$shlibpath_var"
6389 fi
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
6391 $as_echo "$libltdl_cv_shlibpath_var" >&6; }
6392 if test -n "$libltdl_cv_shlibpath_var"; then
6393
6394 cat >>confdefs.h <<_ACEOF
6395 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
6396 _ACEOF
6397
6398 fi
6399
6400 fi
6401
6402 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
6403
6404
6405 # Possibly build libgcj as many sub-libraries.
6406 # Check whether --enable-libgcj-sublibs was given.
6407 if test "${enable_libgcj_sublibs+set}" = set; then :
6408   enableval=$enable_libgcj_sublibs;
6409 fi
6410
6411
6412 if test -z "$enable_libgcj_sublibs"; then
6413    enable_libgcj_sublibs=$enable_libgcj_sublibs_default
6414 fi
6415  if test "$enable_libgcj_sublibs" = yes; then
6416   BUILD_SUBLIBS_TRUE=
6417   BUILD_SUBLIBS_FALSE='#'
6418 else
6419   BUILD_SUBLIBS_TRUE='#'
6420   BUILD_SUBLIBS_FALSE=
6421 fi
6422
6423 if test "$enable_libgcj_sublibs" = yes ; then
6424   # In theory we could make do with only one override and simply
6425   # tag "_bc" onto the end of it when we use it to generate the
6426   # spec, but that's an ugly thing to do when there are multiple
6427   # words in the string and you're relying on the ordering to
6428   # append the correct one.
6429   libgcj_spec_lgcj_override="-lgcj-noncore -lgcj"
6430   libgcj_spec_lgcj_bc_override="-lgcj-noncore -lgcj_bc"
6431 fi
6432
6433
6434 # See if the user has requested runtime debugging.
6435 LIBGCJDEBUG="disable"
6436
6437 # Check whether --enable-libgcj-debug was given.
6438 if test "${enable_libgcj_debug+set}" = set; then :
6439   enableval=$enable_libgcj_debug; if test "$enable_libgcj_debug" = yes; then
6440
6441 $as_echo "#define __GCJ_DEBUG 1" >>confdefs.h
6442
6443     LIBGCJDEBUG="enable"
6444   fi
6445 fi
6446
6447
6448
6449 # Check whether --with-escher was given.
6450 if test "${with_escher+set}" = set; then :
6451   withval=$with_escher;
6452 fi
6453
6454 case "$with_escher" in
6455 "")
6456         use_escher=false
6457         ;;
6458 "no")
6459         use_escher=false
6460         ;;
6461 "yes")
6462         as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
6463         ;;
6464 *)
6465         use_escher=true
6466         ;;
6467 esac
6468
6469 # Determine which AWT peer libraries to build
6470 # Check whether --enable-java-awt was given.
6471 if test "${enable_java_awt+set}" = set; then :
6472   enableval=$enable_java_awt;
6473 fi
6474
6475
6476 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6477 use_xlib_awt=""
6478 use_gtk_awt=""
6479 use_qt_awt=""
6480 use_x_awt=""
6481 # The default toolkit to use is the first one specified.
6482 TOOLKIT=
6483
6484
6485 for peer in $peerlibs ; do
6486   case $peer in
6487     xlib)
6488       if test "$no_x" = yes; then
6489         echo "*** xlib peers requested but no X library available" 1>&2
6490         exit 1
6491       else
6492         use_xlib_awt="yes"
6493         if test -z "$TOOLKIT"; then
6494            TOOLKIT=gnu.awt.xlib.XToolkit
6495         fi
6496       fi
6497       ;;
6498     gtk)
6499       if test "$no_x" = yes; then
6500          echo "*** gtk peers requested but no X library available" 1>&2
6501          exit 1
6502       else
6503          use_gtk_awt=yes
6504          if test -z "$TOOLKIT"; then
6505             TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
6506          fi
6507       fi
6508       ;;
6509     qt)
6510       if test "$no_x" = yes; then
6511          # Perhaps we should admit the possibility of embedded Qt.
6512          echo "*** Qt peers requested but no X library available" 1>&2
6513          exit 1
6514       else
6515          use_qt_awt=yes
6516          if test -z "$TOOLKIT"; then
6517             TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
6518          fi
6519       fi
6520       ;;
6521     x)
6522       use_x_awt=yes
6523       if test -z "$TOOLKIT"; then
6524          TOOLKIT=gnu.java.awt.peer.x.XToolkit
6525       fi
6526       ;;
6527     no)
6528       use_xlib_awt=
6529       use_gtk_awt=
6530       use_qt_awt=
6531       use_x_awt=
6532       break
6533       ;;
6534     *)
6535       echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6536       exit 1
6537   esac
6538 done
6539
6540  if test "$use_xlib_awt" = yes; then
6541   XLIB_AWT_TRUE=
6542   XLIB_AWT_FALSE='#'
6543 else
6544   XLIB_AWT_TRUE='#'
6545   XLIB_AWT_FALSE=
6546 fi
6547
6548  if test "$use_x_awt" = yes; then
6549   X_AWT_TRUE=
6550   X_AWT_FALSE='#'
6551 else
6552   X_AWT_TRUE='#'
6553   X_AWT_FALSE=
6554 fi
6555
6556
6557
6558 cat >>confdefs.h <<_ACEOF
6559 #define AWT_TOOLKIT "$TOOLKIT"
6560 _ACEOF
6561
6562
6563 expanded_prefix=$prefix
6564 if test "X$prefix" = XNONE; then
6565   expanded_prefix=${ac_default_prefix}
6566 fi
6567
6568
6569 cat >>confdefs.h <<_ACEOF
6570 #define LIBGCJ_PREFIX "$expanded_prefix"
6571 _ACEOF
6572
6573
6574 # Create standard.omit based on decisions we just made.
6575 cp $srcdir/standard.omit.in standard.omit
6576 if test "$use_xlib_awt" != yes; then
6577    echo gnu/awt/xlib >> standard.omit
6578    echo gnu/gcj/xlib >> standard.omit
6579 fi
6580 if test "$use_x_awt" != yes; then
6581    echo gnu/java/awt/peer/x >> standard.omit
6582 fi
6583
6584 # Tools that need to be compiled against classpath's tools classes
6585 : > vm-tools-packages
6586 for package in gnu/gcj/tools/gc_analyze ; do
6587     echo $package >> standard.omit
6588     echo $package >> vm-tools-packages
6589 done
6590
6591 if test -z "${with_multisubdir}"; then
6592    builddotdot=.
6593 else
6594    builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
6595 fi
6596
6597 NATIVE=yes
6598
6599 # Which gcj and host gcj (for ecjx) do we use?
6600 which_gcj=default
6601 host_exeext=${ac_exeext}
6602 GCJ_FOR_ECJX=
6603 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
6604 if test -n "${with_cross_host}"; then
6605   # We are being configured with a cross compiler. We can't
6606   # use ac_exeext, because that is for the target platform.
6607   NATIVE=no
6608   cross_host_exeext=
6609   GCJ_FOR_ECJX="${with_cross_host}-gcj"
6610   case "${with_cross_host}" in
6611      *mingw* | *cygwin*)
6612          cross_host_exeext=.exe
6613      ;;
6614   esac
6615   host_exeext=${cross_host_exeext}
6616   if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
6617      if test x"$build_noncanonical" = x"$with_cross_host"; then
6618         # Ordinary cross (host!=target and host=build)
6619         which_gcj=built
6620      else
6621         # Canadian cross (host!=target and host!=build)
6622         which_gcj=cross
6623      fi
6624   else
6625      which_gcj=cross
6626   fi
6627 else
6628   # We are being configured with a native or crossed-native compiler
6629   if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
6630      if test x"$build" = x"$host"; then
6631         # True native build (host=target and host=build)
6632         which_gcj=built
6633      else
6634         # Crossed-native build (host=target and host!=build)
6635         which_gcj=cross
6636      fi
6637   else
6638      which_gcj=path
6639   fi
6640 fi
6641 libgcjdir=`${PWDCMD-pwd}`
6642 case $GCJ in
6643 *" -B"*)
6644   # Just in case there is a comma in the build dir, quote it for the
6645   # sed command below.
6646   case $libgcjdir in
6647   *[,\\]*) qlibgcjdir=`echo "$libgcjdir" | sed 's:[,\\]:\\&:g'`;;
6648   *) qlibgcjdir=$libgcjdir;;
6649   esac
6650   GCJ=`echo "$GCJ" | sed "s, -B, -B$qlibgcjdir/&,"`
6651   ;;
6652 *)
6653   GCJ=$GCJ" -B$libgcjdir/"
6654   ;;
6655 esac
6656 case "${which_gcj}" in
6657    built)
6658       GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
6659    ;;
6660    cross)
6661       if test "x${with_newlib}" = "xyes"; then
6662          # FIXME (comment): Why is this needed?
6663          GCC_UNWIND_INCLUDE=
6664       fi
6665       GCJH='$(target_noncanonical)-gcjh'
6666    ;;
6667    path)
6668       GCJH=gcjh
6669    ;;
6670 esac
6671 JAVAC="$GCJ -C"
6672 export JAVAC
6673
6674
6675
6676
6677
6678 # Create it, so that compile/link tests don't fail
6679 test -f libgcj.spec || touch libgcj.spec
6680
6681
6682
6683 # Set up to configure Classpath.
6684 # FIXME: no supported way to pass args in autoconf.
6685 # Disable tool wrappers to avoid ltdl.h configure check.
6686 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
6687 ac_configure_args="$ac_configure_args --disable-load-library"
6688 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
6689 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
6690 dir1=`cd $srcdir && pwd`
6691 dir2=`pwd`
6692 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
6693 ac_configure_args="$ac_configure_args --disable-core-jni"
6694 ac_configure_args="$ac_configure_args --disable-examples"
6695 ac_configure_args="$ac_configure_args --with-glibj=build"
6696 if test "$browser_plugin_enabled" != yes; then
6697   ac_configure_args="$ac_configure_args --disable-plugin"
6698 else
6699   ac_configure_args="$ac_configure_args --enable-plugin"
6700 fi
6701 if test "$gconf_enabled" != yes; then
6702   ac_configure_args="$ac_configure_args --disable-gconf-peer"
6703   ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
6704 fi
6705 if test "$use_gtk_awt" != yes; then
6706   ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
6707 fi
6708 if test "$use_qt_awt" != yes; then
6709   ac_configure_args="$ac_configure_args --disable-qt-peer"
6710 else
6711   # We need this as qt is disabled by default in classpath.
6712   ac_configure_args="$ac_configure_args --enable-qt-peer"
6713 fi
6714 if test "$use_x_awt" != yes; then
6715   ac_configure_args="$ac_configure_args --without-escher"
6716 else
6717   # We need this as escher is disabled by default in classpath.
6718   if test "$use_escher" != true; then
6719     as_fn_error "Please supply an absolute path to the Escher library" "$LINENO" 5
6720   else
6721     ac_configure_args="$ac_configure_args --with-escher=$with_escher"
6722   fi
6723 fi
6724 if test "x$BUILD_GJDOC" = xno; then
6725   ac_configure_args="$ac_configure_args --disable-gjdoc"
6726 fi
6727 # -Werror causes unavoidable problems in code using alsa.
6728 ac_configure_args="$ac_configure_args --disable-regen-headers"
6729 ac_configure_args="$ac_configure_args --disable-Werror"
6730
6731 # Only use libltdl for non-newlib builds.
6732 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
6733      case $enable_ltdl_convenience in
6734   no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
6735   "") enable_ltdl_convenience=yes
6736       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
6737   esac
6738   LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
6739   LTDLINCL='-I${top_srcdir}/''libltdl'
6740   # For backwards non-gettext consistent compatibility...
6741   INCLTDL="$LTDLINCL"
6742
6743    enable_dlopen=yes
6744
6745
6746
6747    DIRLTDL=libltdl
6748
6749 $as_echo "#define USE_LTDL 1" >>confdefs.h
6750
6751    # Sigh.  Libtool's macro doesn't do the right thing.
6752    INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
6753    # FIXME: this is a hack.
6754    sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
6755    ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
6756 fi
6757
6758
6759
6760 case `pwd` in
6761   *\ * | *\     *)
6762     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6763 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6764 esac
6765
6766
6767
6768 macro_version='2.2.7a'
6769 macro_revision='1.3134'
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783 ltmain="$ac_aux_dir/ltmain.sh"
6784
6785 # Backslashify metacharacters that are still active within
6786 # double-quoted strings.
6787 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6788
6789 # Same as above, but do not quote variable references.
6790 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6791
6792 # Sed substitution to delay expansion of an escaped shell variable in a
6793 # double_quote_subst'ed string.
6794 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6795
6796 # Sed substitution to delay expansion of an escaped single quote.
6797 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6798
6799 # Sed substitution to avoid accidental globbing in evaled expressions
6800 no_glob_subst='s/\*/\\\*/g'
6801
6802 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6803 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6804 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6805
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6807 $as_echo_n "checking how to print strings... " >&6; }
6808 # Test print first, because it will be a builtin if present.
6809 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6810    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6811   ECHO='print -r --'
6812 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6813   ECHO='printf %s\n'
6814 else
6815   # Use this function as a fallback that always works.
6816   func_fallback_echo ()
6817   {
6818     eval 'cat <<_LTECHO_EOF
6819 $1
6820 _LTECHO_EOF'
6821   }
6822   ECHO='func_fallback_echo'
6823 fi
6824
6825 # func_echo_all arg...
6826 # Invoke $ECHO with all args, space-separated.
6827 func_echo_all ()
6828 {
6829     $ECHO ""
6830 }
6831
6832 case "$ECHO" in
6833   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6834 $as_echo "printf" >&6; } ;;
6835   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6836 $as_echo "print -r" >&6; } ;;
6837   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6838 $as_echo "cat" >&6; } ;;
6839 esac
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6855 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6856 if test "${ac_cv_path_SED+set}" = set; then :
6857   $as_echo_n "(cached) " >&6
6858 else
6859             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6860      for ac_i in 1 2 3 4 5 6 7; do
6861        ac_script="$ac_script$as_nl$ac_script"
6862      done
6863      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6864      { ac_script=; unset ac_script;}
6865      if test -z "$SED"; then
6866   ac_path_SED_found=false
6867   # Loop through the user's path and test for each of PROGNAME-LIST
6868   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 for as_dir in $PATH
6870 do
6871   IFS=$as_save_IFS
6872   test -z "$as_dir" && as_dir=.
6873     for ac_prog in sed gsed; do
6874     for ac_exec_ext in '' $ac_executable_extensions; do
6875       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6876       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6877 # Check for GNU ac_path_SED and select it if it is found.
6878   # Check for GNU $ac_path_SED
6879 case `"$ac_path_SED" --version 2>&1` in
6880 *GNU*)
6881   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6882 *)
6883   ac_count=0
6884   $as_echo_n 0123456789 >"conftest.in"
6885   while :
6886   do
6887     cat "conftest.in" "conftest.in" >"conftest.tmp"
6888     mv "conftest.tmp" "conftest.in"
6889     cp "conftest.in" "conftest.nl"
6890     $as_echo '' >> "conftest.nl"
6891     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6892     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6893     as_fn_arith $ac_count + 1 && ac_count=$as_val
6894     if test $ac_count -gt ${ac_path_SED_max-0}; then
6895       # Best one so far, save it but keep looking for a better one
6896       ac_cv_path_SED="$ac_path_SED"
6897       ac_path_SED_max=$ac_count
6898     fi
6899     # 10*(2^10) chars as input seems more than enough
6900     test $ac_count -gt 10 && break
6901   done
6902   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6903 esac
6904
6905       $ac_path_SED_found && break 3
6906     done
6907   done
6908   done
6909 IFS=$as_save_IFS
6910   if test -z "$ac_cv_path_SED"; then
6911     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6912   fi
6913 else
6914   ac_cv_path_SED=$SED
6915 fi
6916
6917 fi
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6919 $as_echo "$ac_cv_path_SED" >&6; }
6920  SED="$ac_cv_path_SED"
6921   rm -f conftest.sed
6922
6923 test -z "$SED" && SED=sed
6924 Xsed="$SED -e 1s/^X//"
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6937 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6938 if test "${ac_cv_path_GREP+set}" = set; then :
6939   $as_echo_n "(cached) " >&6
6940 else
6941   if test -z "$GREP"; then
6942   ac_path_GREP_found=false
6943   # Loop through the user's path and test for each of PROGNAME-LIST
6944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6946 do
6947   IFS=$as_save_IFS
6948   test -z "$as_dir" && as_dir=.
6949     for ac_prog in grep ggrep; do
6950     for ac_exec_ext in '' $ac_executable_extensions; do
6951       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6952       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6953 # Check for GNU ac_path_GREP and select it if it is found.
6954   # Check for GNU $ac_path_GREP
6955 case `"$ac_path_GREP" --version 2>&1` in
6956 *GNU*)
6957   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6958 *)
6959   ac_count=0
6960   $as_echo_n 0123456789 >"conftest.in"
6961   while :
6962   do
6963     cat "conftest.in" "conftest.in" >"conftest.tmp"
6964     mv "conftest.tmp" "conftest.in"
6965     cp "conftest.in" "conftest.nl"
6966     $as_echo 'GREP' >> "conftest.nl"
6967     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6968     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6969     as_fn_arith $ac_count + 1 && ac_count=$as_val
6970     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6971       # Best one so far, save it but keep looking for a better one
6972       ac_cv_path_GREP="$ac_path_GREP"
6973       ac_path_GREP_max=$ac_count
6974     fi
6975     # 10*(2^10) chars as input seems more than enough
6976     test $ac_count -gt 10 && break
6977   done
6978   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6979 esac
6980
6981       $ac_path_GREP_found && break 3
6982     done
6983   done
6984   done
6985 IFS=$as_save_IFS
6986   if test -z "$ac_cv_path_GREP"; then
6987     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6988   fi
6989 else
6990   ac_cv_path_GREP=$GREP
6991 fi
6992
6993 fi
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6995 $as_echo "$ac_cv_path_GREP" >&6; }
6996  GREP="$ac_cv_path_GREP"
6997
6998
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7000 $as_echo_n "checking for egrep... " >&6; }
7001 if test "${ac_cv_path_EGREP+set}" = set; then :
7002   $as_echo_n "(cached) " >&6
7003 else
7004   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7005    then ac_cv_path_EGREP="$GREP -E"
7006    else
7007      if test -z "$EGREP"; then
7008   ac_path_EGREP_found=false
7009   # Loop through the user's path and test for each of PROGNAME-LIST
7010   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7012 do
7013   IFS=$as_save_IFS
7014   test -z "$as_dir" && as_dir=.
7015     for ac_prog in egrep; do
7016     for ac_exec_ext in '' $ac_executable_extensions; do
7017       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7018       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7019 # Check for GNU ac_path_EGREP and select it if it is found.
7020   # Check for GNU $ac_path_EGREP
7021 case `"$ac_path_EGREP" --version 2>&1` in
7022 *GNU*)
7023   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7024 *)
7025   ac_count=0
7026   $as_echo_n 0123456789 >"conftest.in"
7027   while :
7028   do
7029     cat "conftest.in" "conftest.in" >"conftest.tmp"
7030     mv "conftest.tmp" "conftest.in"
7031     cp "conftest.in" "conftest.nl"
7032     $as_echo 'EGREP' >> "conftest.nl"
7033     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7034     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7035     as_fn_arith $ac_count + 1 && ac_count=$as_val
7036     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7037       # Best one so far, save it but keep looking for a better one
7038       ac_cv_path_EGREP="$ac_path_EGREP"
7039       ac_path_EGREP_max=$ac_count
7040     fi
7041     # 10*(2^10) chars as input seems more than enough
7042     test $ac_count -gt 10 && break
7043   done
7044   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7045 esac
7046
7047       $ac_path_EGREP_found && break 3
7048     done
7049   done
7050   done
7051 IFS=$as_save_IFS
7052   if test -z "$ac_cv_path_EGREP"; then
7053     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7054   fi
7055 else
7056   ac_cv_path_EGREP=$EGREP
7057 fi
7058
7059    fi
7060 fi
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7062 $as_echo "$ac_cv_path_EGREP" >&6; }
7063  EGREP="$ac_cv_path_EGREP"
7064
7065
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7067 $as_echo_n "checking for fgrep... " >&6; }
7068 if test "${ac_cv_path_FGREP+set}" = set; then :
7069   $as_echo_n "(cached) " >&6
7070 else
7071   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7072    then ac_cv_path_FGREP="$GREP -F"
7073    else
7074      if test -z "$FGREP"; then
7075   ac_path_FGREP_found=false
7076   # Loop through the user's path and test for each of PROGNAME-LIST
7077   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7079 do
7080   IFS=$as_save_IFS
7081   test -z "$as_dir" && as_dir=.
7082     for ac_prog in fgrep; do
7083     for ac_exec_ext in '' $ac_executable_extensions; do
7084       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7085       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7086 # Check for GNU ac_path_FGREP and select it if it is found.
7087   # Check for GNU $ac_path_FGREP
7088 case `"$ac_path_FGREP" --version 2>&1` in
7089 *GNU*)
7090   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7091 *)
7092   ac_count=0
7093   $as_echo_n 0123456789 >"conftest.in"
7094   while :
7095   do
7096     cat "conftest.in" "conftest.in" >"conftest.tmp"
7097     mv "conftest.tmp" "conftest.in"
7098     cp "conftest.in" "conftest.nl"
7099     $as_echo 'FGREP' >> "conftest.nl"
7100     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7101     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7102     as_fn_arith $ac_count + 1 && ac_count=$as_val
7103     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7104       # Best one so far, save it but keep looking for a better one
7105       ac_cv_path_FGREP="$ac_path_FGREP"
7106       ac_path_FGREP_max=$ac_count
7107     fi
7108     # 10*(2^10) chars as input seems more than enough
7109     test $ac_count -gt 10 && break
7110   done
7111   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7112 esac
7113
7114       $ac_path_FGREP_found && break 3
7115     done
7116   done
7117   done
7118 IFS=$as_save_IFS
7119   if test -z "$ac_cv_path_FGREP"; then
7120     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7121   fi
7122 else
7123   ac_cv_path_FGREP=$FGREP
7124 fi
7125
7126    fi
7127 fi
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7129 $as_echo "$ac_cv_path_FGREP" >&6; }
7130  FGREP="$ac_cv_path_FGREP"
7131
7132
7133 test -z "$GREP" && GREP=grep
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153 # Check whether --with-gnu-ld was given.
7154 if test "${with_gnu_ld+set}" = set; then :
7155   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7156 else
7157   with_gnu_ld=no
7158 fi
7159
7160 ac_prog=ld
7161 if test "$GCC" = yes; then
7162   # Check if gcc -print-prog-name=ld gives a path.
7163   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7164 $as_echo_n "checking for ld used by $CC... " >&6; }
7165   case $host in
7166   *-*-mingw*)
7167     # gcc leaves a trailing carriage return which upsets mingw
7168     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7169   *)
7170     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7171   esac
7172   case $ac_prog in
7173     # Accept absolute paths.
7174     [\\/]* | ?:[\\/]*)
7175       re_direlt='/[^/][^/]*/\.\./'
7176       # Canonicalize the pathname of ld
7177       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7178       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7179         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7180       done
7181       test -z "$LD" && LD="$ac_prog"
7182       ;;
7183   "")
7184     # If it fails, then pretend we aren't using GCC.
7185     ac_prog=ld
7186     ;;
7187   *)
7188     # If it is relative, then search for the first ld in PATH.
7189     with_gnu_ld=unknown
7190     ;;
7191   esac
7192 elif test "$with_gnu_ld" = yes; then
7193   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7194 $as_echo_n "checking for GNU ld... " >&6; }
7195 else
7196   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7197 $as_echo_n "checking for non-GNU ld... " >&6; }
7198 fi
7199 if test "${lt_cv_path_LD+set}" = set; then :
7200   $as_echo_n "(cached) " >&6
7201 else
7202   if test -z "$LD"; then
7203   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7204   for ac_dir in $PATH; do
7205     IFS="$lt_save_ifs"
7206     test -z "$ac_dir" && ac_dir=.
7207     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7208       lt_cv_path_LD="$ac_dir/$ac_prog"
7209       # Check to see if the program is GNU ld.  I'd rather use --version,
7210       # but apparently some variants of GNU ld only accept -v.
7211       # Break only if it was the GNU/non-GNU ld that we prefer.
7212       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7213       *GNU* | *'with BFD'*)
7214         test "$with_gnu_ld" != no && break
7215         ;;
7216       *)
7217         test "$with_gnu_ld" != yes && break
7218         ;;
7219       esac
7220     fi
7221   done
7222   IFS="$lt_save_ifs"
7223 else
7224   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7225 fi
7226 fi
7227
7228 LD="$lt_cv_path_LD"
7229 if test -n "$LD"; then
7230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7231 $as_echo "$LD" >&6; }
7232 else
7233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7234 $as_echo "no" >&6; }
7235 fi
7236 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7238 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7239 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7240   $as_echo_n "(cached) " >&6
7241 else
7242   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7243 case `$LD -v 2>&1 </dev/null` in
7244 *GNU* | *'with BFD'*)
7245   lt_cv_prog_gnu_ld=yes
7246   ;;
7247 *)
7248   lt_cv_prog_gnu_ld=no
7249   ;;
7250 esac
7251 fi
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7253 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7254 with_gnu_ld=$lt_cv_prog_gnu_ld
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7265 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7266 if test "${lt_cv_path_NM+set}" = set; then :
7267   $as_echo_n "(cached) " >&6
7268 else
7269   if test -n "$NM"; then
7270   # Let the user override the test.
7271   lt_cv_path_NM="$NM"
7272 else
7273   lt_nm_to_check="${ac_tool_prefix}nm"
7274   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7275     lt_nm_to_check="$lt_nm_to_check nm"
7276   fi
7277   for lt_tmp_nm in $lt_nm_to_check; do
7278     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7279     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7280       IFS="$lt_save_ifs"
7281       test -z "$ac_dir" && ac_dir=.
7282       tmp_nm="$ac_dir/$lt_tmp_nm"
7283       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7284         # Check to see if the nm accepts a BSD-compat flag.
7285         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7286         #   nm: unknown option "B" ignored
7287         # Tru64's nm complains that /dev/null is an invalid object file
7288         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7289         */dev/null* | *'Invalid file or object type'*)
7290           lt_cv_path_NM="$tmp_nm -B"
7291           break
7292           ;;
7293         *)
7294           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7295           */dev/null*)
7296             lt_cv_path_NM="$tmp_nm -p"
7297             break
7298             ;;
7299           *)
7300             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7301             continue # so that we can try to find one that supports BSD flags
7302             ;;
7303           esac
7304           ;;
7305         esac
7306       fi
7307     done
7308     IFS="$lt_save_ifs"
7309   done
7310   : ${lt_cv_path_NM=no}
7311 fi
7312 fi
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7314 $as_echo "$lt_cv_path_NM" >&6; }
7315 if test "$lt_cv_path_NM" != "no"; then
7316   NM="$lt_cv_path_NM"
7317 else
7318   # Didn't find any BSD compatible name lister, look for dumpbin.
7319   if test -n "$DUMPBIN"; then :
7320     # Let the user override the test.
7321   else
7322     if test -n "$ac_tool_prefix"; then
7323   for ac_prog in dumpbin "link -dump"
7324   do
7325     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7326 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7328 $as_echo_n "checking for $ac_word... " >&6; }
7329 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7330   $as_echo_n "(cached) " >&6
7331 else
7332   if test -n "$DUMPBIN"; then
7333   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7334 else
7335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336 for as_dir in $PATH
7337 do
7338   IFS=$as_save_IFS
7339   test -z "$as_dir" && as_dir=.
7340     for ac_exec_ext in '' $ac_executable_extensions; do
7341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7342     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7344     break 2
7345   fi
7346 done
7347   done
7348 IFS=$as_save_IFS
7349
7350 fi
7351 fi
7352 DUMPBIN=$ac_cv_prog_DUMPBIN
7353 if test -n "$DUMPBIN"; then
7354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7355 $as_echo "$DUMPBIN" >&6; }
7356 else
7357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7358 $as_echo "no" >&6; }
7359 fi
7360
7361
7362     test -n "$DUMPBIN" && break
7363   done
7364 fi
7365 if test -z "$DUMPBIN"; then
7366   ac_ct_DUMPBIN=$DUMPBIN
7367   for ac_prog in dumpbin "link -dump"
7368 do
7369   # Extract the first word of "$ac_prog", so it can be a program name with args.
7370 set dummy $ac_prog; ac_word=$2
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7372 $as_echo_n "checking for $ac_word... " >&6; }
7373 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7374   $as_echo_n "(cached) " >&6
7375 else
7376   if test -n "$ac_ct_DUMPBIN"; then
7377   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7378 else
7379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380 for as_dir in $PATH
7381 do
7382   IFS=$as_save_IFS
7383   test -z "$as_dir" && as_dir=.
7384     for ac_exec_ext in '' $ac_executable_extensions; do
7385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7386     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7388     break 2
7389   fi
7390 done
7391   done
7392 IFS=$as_save_IFS
7393
7394 fi
7395 fi
7396 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7397 if test -n "$ac_ct_DUMPBIN"; then
7398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7399 $as_echo "$ac_ct_DUMPBIN" >&6; }
7400 else
7401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7402 $as_echo "no" >&6; }
7403 fi
7404
7405
7406   test -n "$ac_ct_DUMPBIN" && break
7407 done
7408
7409   if test "x$ac_ct_DUMPBIN" = x; then
7410     DUMPBIN=":"
7411   else
7412     case $cross_compiling:$ac_tool_warned in
7413 yes:)
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7416 ac_tool_warned=yes ;;
7417 esac
7418     DUMPBIN=$ac_ct_DUMPBIN
7419   fi
7420 fi
7421
7422     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7423     *COFF*)
7424       DUMPBIN="$DUMPBIN -symbols"
7425       ;;
7426     *)
7427       DUMPBIN=:
7428       ;;
7429     esac
7430   fi
7431
7432   if test "$DUMPBIN" != ":"; then
7433     NM="$DUMPBIN"
7434   fi
7435 fi
7436 test -z "$NM" && NM=nm
7437
7438
7439
7440
7441
7442
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7444 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7445 if test "${lt_cv_nm_interface+set}" = set; then :
7446   $as_echo_n "(cached) " >&6
7447 else
7448   lt_cv_nm_interface="BSD nm"
7449   echo "int some_variable = 0;" > conftest.$ac_ext
7450   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7451   (eval "$ac_compile" 2>conftest.err)
7452   cat conftest.err >&5
7453   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7454   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7455   cat conftest.err >&5
7456   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7457   cat conftest.out >&5
7458   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7459     lt_cv_nm_interface="MS dumpbin"
7460   fi
7461   rm -f conftest*
7462 fi
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7464 $as_echo "$lt_cv_nm_interface" >&6; }
7465
7466 # find the maximum length of command line arguments
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7468 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7469 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7470   $as_echo_n "(cached) " >&6
7471 else
7472     i=0
7473   teststring="ABCD"
7474
7475   case $build_os in
7476   msdosdjgpp*)
7477     # On DJGPP, this test can blow up pretty badly due to problems in libc
7478     # (any single argument exceeding 2000 bytes causes a buffer overrun
7479     # during glob expansion).  Even if it were fixed, the result of this
7480     # check would be larger than it should be.
7481     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7482     ;;
7483
7484   gnu*)
7485     # Under GNU Hurd, this test is not required because there is
7486     # no limit to the length of command line arguments.
7487     # Libtool will interpret -1 as no limit whatsoever
7488     lt_cv_sys_max_cmd_len=-1;
7489     ;;
7490
7491   cygwin* | mingw* | cegcc*)
7492     # On Win9x/ME, this test blows up -- it succeeds, but takes
7493     # about 5 minutes as the teststring grows exponentially.
7494     # Worse, since 9x/ME are not pre-emptively multitasking,
7495     # you end up with a "frozen" computer, even though with patience
7496     # the test eventually succeeds (with a max line length of 256k).
7497     # Instead, let's just punt: use the minimum linelength reported by
7498     # all of the supported platforms: 8192 (on NT/2K/XP).
7499     lt_cv_sys_max_cmd_len=8192;
7500     ;;
7501
7502   mint*)
7503     # On MiNT this can take a long time and run out of memory.
7504     lt_cv_sys_max_cmd_len=8192;
7505     ;;
7506
7507   amigaos*)
7508     # On AmigaOS with pdksh, this test takes hours, literally.
7509     # So we just punt and use a minimum line length of 8192.
7510     lt_cv_sys_max_cmd_len=8192;
7511     ;;
7512
7513   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7514     # This has been around since 386BSD, at least.  Likely further.
7515     if test -x /sbin/sysctl; then
7516       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7517     elif test -x /usr/sbin/sysctl; then
7518       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7519     else
7520       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7521     fi
7522     # And add a safety zone
7523     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7524     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7525     ;;
7526
7527   interix*)
7528     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7529     lt_cv_sys_max_cmd_len=196608
7530     ;;
7531
7532   osf*)
7533     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7534     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7535     # nice to cause kernel panics so lets avoid the loop below.
7536     # First set a reasonable default.
7537     lt_cv_sys_max_cmd_len=16384
7538     #
7539     if test -x /sbin/sysconfig; then
7540       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7541         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7542       esac
7543     fi
7544     ;;
7545   sco3.2v5*)
7546     lt_cv_sys_max_cmd_len=102400
7547     ;;
7548   sysv5* | sco5v6* | sysv4.2uw2*)
7549     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7550     if test -n "$kargmax"; then
7551       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7552     else
7553       lt_cv_sys_max_cmd_len=32768
7554     fi
7555     ;;
7556   *)
7557     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7558     if test -n "$lt_cv_sys_max_cmd_len"; then
7559       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7560       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7561     else
7562       # Make teststring a little bigger before we do anything with it.
7563       # a 1K string should be a reasonable start.
7564       for i in 1 2 3 4 5 6 7 8 ; do
7565         teststring=$teststring$teststring
7566       done
7567       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7568       # If test is not a shell built-in, we'll probably end up computing a
7569       # maximum length that is only half of the actual maximum length, but
7570       # we can't tell.
7571       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7572                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7573               test $i != 17 # 1/2 MB should be enough
7574       do
7575         i=`expr $i + 1`
7576         teststring=$teststring$teststring
7577       done
7578       # Only check the string length outside the loop.
7579       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7580       teststring=
7581       # Add a significant safety factor because C++ compilers can tack on
7582       # massive amounts of additional arguments before passing them to the
7583       # linker.  It appears as though 1/2 is a usable value.
7584       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7585     fi
7586     ;;
7587   esac
7588
7589 fi
7590
7591 if test -n $lt_cv_sys_max_cmd_len ; then
7592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7593 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7594 else
7595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7596 $as_echo "none" >&6; }
7597 fi
7598 max_cmd_len=$lt_cv_sys_max_cmd_len
7599
7600
7601
7602
7603
7604
7605 : ${CP="cp -f"}
7606 : ${MV="mv -f"}
7607 : ${RM="rm -f"}
7608
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7610 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7611 # Try some XSI features
7612 xsi_shell=no
7613 ( _lt_dummy="a/b/c"
7614   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7615       = c,a/b,, \
7616     && eval 'test $(( 1 + 1 )) -eq 2 \
7617     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7618   && xsi_shell=yes
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7620 $as_echo "$xsi_shell" >&6; }
7621
7622
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7624 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7625 lt_shell_append=no
7626 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7627     >/dev/null 2>&1 \
7628   && lt_shell_append=yes
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7630 $as_echo "$lt_shell_append" >&6; }
7631
7632
7633 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7634   lt_unset=unset
7635 else
7636   lt_unset=false
7637 fi
7638
7639
7640
7641
7642
7643 # test EBCDIC or ASCII
7644 case `echo X|tr X '\101'` in
7645  A) # ASCII based system
7646     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7647   lt_SP2NL='tr \040 \012'
7648   lt_NL2SP='tr \015\012 \040\040'
7649   ;;
7650  *) # EBCDIC based system
7651   lt_SP2NL='tr \100 \n'
7652   lt_NL2SP='tr \r\n \100\100'
7653   ;;
7654 esac
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7665 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7666 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7667   $as_echo_n "(cached) " >&6
7668 else
7669   lt_cv_ld_reload_flag='-r'
7670 fi
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7672 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7673 reload_flag=$lt_cv_ld_reload_flag
7674 case $reload_flag in
7675 "" | " "*) ;;
7676 *) reload_flag=" $reload_flag" ;;
7677 esac
7678 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7679 case $host_os in
7680   darwin*)
7681     if test "$GCC" = yes; then
7682       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7683     else
7684       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7685     fi
7686     ;;
7687 esac
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697 if test -n "$ac_tool_prefix"; then
7698   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7699 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7701 $as_echo_n "checking for $ac_word... " >&6; }
7702 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7703   $as_echo_n "(cached) " >&6
7704 else
7705   if test -n "$OBJDUMP"; then
7706   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7707 else
7708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709 for as_dir in $PATH
7710 do
7711   IFS=$as_save_IFS
7712   test -z "$as_dir" && as_dir=.
7713     for ac_exec_ext in '' $ac_executable_extensions; do
7714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7715     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7717     break 2
7718   fi
7719 done
7720   done
7721 IFS=$as_save_IFS
7722
7723 fi
7724 fi
7725 OBJDUMP=$ac_cv_prog_OBJDUMP
7726 if test -n "$OBJDUMP"; then
7727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7728 $as_echo "$OBJDUMP" >&6; }
7729 else
7730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731 $as_echo "no" >&6; }
7732 fi
7733
7734
7735 fi
7736 if test -z "$ac_cv_prog_OBJDUMP"; then
7737   ac_ct_OBJDUMP=$OBJDUMP
7738   # Extract the first word of "objdump", so it can be a program name with args.
7739 set dummy objdump; ac_word=$2
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7741 $as_echo_n "checking for $ac_word... " >&6; }
7742 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7743   $as_echo_n "(cached) " >&6
7744 else
7745   if test -n "$ac_ct_OBJDUMP"; then
7746   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7747 else
7748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749 for as_dir in $PATH
7750 do
7751   IFS=$as_save_IFS
7752   test -z "$as_dir" && as_dir=.
7753     for ac_exec_ext in '' $ac_executable_extensions; do
7754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7755     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7757     break 2
7758   fi
7759 done
7760   done
7761 IFS=$as_save_IFS
7762
7763 fi
7764 fi
7765 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7766 if test -n "$ac_ct_OBJDUMP"; then
7767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7768 $as_echo "$ac_ct_OBJDUMP" >&6; }
7769 else
7770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7771 $as_echo "no" >&6; }
7772 fi
7773
7774   if test "x$ac_ct_OBJDUMP" = x; then
7775     OBJDUMP="false"
7776   else
7777     case $cross_compiling:$ac_tool_warned in
7778 yes:)
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7781 ac_tool_warned=yes ;;
7782 esac
7783     OBJDUMP=$ac_ct_OBJDUMP
7784   fi
7785 else
7786   OBJDUMP="$ac_cv_prog_OBJDUMP"
7787 fi
7788
7789 test -z "$OBJDUMP" && OBJDUMP=objdump
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7800 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7801 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7802   $as_echo_n "(cached) " >&6
7803 else
7804   lt_cv_file_magic_cmd='$MAGIC_CMD'
7805 lt_cv_file_magic_test_file=
7806 lt_cv_deplibs_check_method='unknown'
7807 # Need to set the preceding variable on all platforms that support
7808 # interlibrary dependencies.
7809 # 'none' -- dependencies not supported.
7810 # `unknown' -- same as none, but documents that we really don't know.
7811 # 'pass_all' -- all dependencies passed with no checks.
7812 # 'test_compile' -- check by making test program.
7813 # 'file_magic [[regex]]' -- check by looking for files in library path
7814 # which responds to the $file_magic_cmd with a given extended regex.
7815 # If you have `file' or equivalent on your system and you're not sure
7816 # whether `pass_all' will *always* work, you probably want this one.
7817
7818 case $host_os in
7819 aix[4-9]*)
7820   lt_cv_deplibs_check_method=pass_all
7821   ;;
7822
7823 beos*)
7824   lt_cv_deplibs_check_method=pass_all
7825   ;;
7826
7827 bsdi[45]*)
7828   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7829   lt_cv_file_magic_cmd='/usr/bin/file -L'
7830   lt_cv_file_magic_test_file=/shlib/libc.so
7831   ;;
7832
7833 cygwin*)
7834   # func_win32_libid is a shell function defined in ltmain.sh
7835   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7836   lt_cv_file_magic_cmd='func_win32_libid'
7837   ;;
7838
7839 mingw* | pw32*)
7840   # Base MSYS/MinGW do not provide the 'file' command needed by
7841   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7842   # unless we find 'file', for example because we are cross-compiling.
7843   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7844   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7845     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7846     lt_cv_file_magic_cmd='func_win32_libid'
7847   else
7848     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7849     lt_cv_file_magic_cmd='$OBJDUMP -f'
7850   fi
7851   ;;
7852
7853 cegcc*)
7854   # use the weaker test based on 'objdump'. See mingw*.
7855   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7856   lt_cv_file_magic_cmd='$OBJDUMP -f'
7857   ;;
7858
7859 darwin* | rhapsody*)
7860   lt_cv_deplibs_check_method=pass_all
7861   ;;
7862
7863 freebsd* | dragonfly*)
7864   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7865     case $host_cpu in
7866     i*86 )
7867       # Not sure whether the presence of OpenBSD here was a mistake.
7868       # Let's accept both of them until this is cleared up.
7869       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7870       lt_cv_file_magic_cmd=/usr/bin/file
7871       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7872       ;;
7873     esac
7874   else
7875     lt_cv_deplibs_check_method=pass_all
7876   fi
7877   ;;
7878
7879 gnu*)
7880   lt_cv_deplibs_check_method=pass_all
7881   ;;
7882
7883 haiku*)
7884   lt_cv_deplibs_check_method=pass_all
7885   ;;
7886
7887 hpux10.20* | hpux11*)
7888   lt_cv_file_magic_cmd=/usr/bin/file
7889   case $host_cpu in
7890   ia64*)
7891     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7892     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7893     ;;
7894   hppa*64*)
7895     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]'
7896     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7897     ;;
7898   *)
7899     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7900     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7901     ;;
7902   esac
7903   ;;
7904
7905 interix[3-9]*)
7906   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7907   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7908   ;;
7909
7910 irix5* | irix6* | nonstopux*)
7911   case $LD in
7912   *-32|*"-32 ") libmagic=32-bit;;
7913   *-n32|*"-n32 ") libmagic=N32;;
7914   *-64|*"-64 ") libmagic=64-bit;;
7915   *) libmagic=never-match;;
7916   esac
7917   lt_cv_deplibs_check_method=pass_all
7918   ;;
7919
7920 # This must be Linux ELF.
7921 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7922   lt_cv_deplibs_check_method=pass_all
7923   ;;
7924
7925 netbsd*)
7926   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7927     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7928   else
7929     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7930   fi
7931   ;;
7932
7933 newos6*)
7934   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7935   lt_cv_file_magic_cmd=/usr/bin/file
7936   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7937   ;;
7938
7939 *nto* | *qnx*)
7940   lt_cv_deplibs_check_method=pass_all
7941   ;;
7942
7943 openbsd*)
7944   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7945     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7946   else
7947     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7948   fi
7949   ;;
7950
7951 osf3* | osf4* | osf5*)
7952   lt_cv_deplibs_check_method=pass_all
7953   ;;
7954
7955 rdos*)
7956   lt_cv_deplibs_check_method=pass_all
7957   ;;
7958
7959 solaris*)
7960   lt_cv_deplibs_check_method=pass_all
7961   ;;
7962
7963 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7964   lt_cv_deplibs_check_method=pass_all
7965   ;;
7966
7967 sysv4 | sysv4.3*)
7968   case $host_vendor in
7969   motorola)
7970     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]'
7971     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7972     ;;
7973   ncr)
7974     lt_cv_deplibs_check_method=pass_all
7975     ;;
7976   sequent)
7977     lt_cv_file_magic_cmd='/bin/file'
7978     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7979     ;;
7980   sni)
7981     lt_cv_file_magic_cmd='/bin/file'
7982     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7983     lt_cv_file_magic_test_file=/lib/libc.so
7984     ;;
7985   siemens)
7986     lt_cv_deplibs_check_method=pass_all
7987     ;;
7988   pc)
7989     lt_cv_deplibs_check_method=pass_all
7990     ;;
7991   esac
7992   ;;
7993
7994 tpf*)
7995   lt_cv_deplibs_check_method=pass_all
7996   ;;
7997 esac
7998
7999 fi
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8001 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8002 file_magic_cmd=$lt_cv_file_magic_cmd
8003 deplibs_check_method=$lt_cv_deplibs_check_method
8004 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017 if test -n "$ac_tool_prefix"; then
8018   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8019 set dummy ${ac_tool_prefix}ar; ac_word=$2
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8021 $as_echo_n "checking for $ac_word... " >&6; }
8022 if test "${ac_cv_prog_AR+set}" = set; then :
8023   $as_echo_n "(cached) " >&6
8024 else
8025   if test -n "$AR"; then
8026   ac_cv_prog_AR="$AR" # Let the user override the test.
8027 else
8028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029 for as_dir in $PATH
8030 do
8031   IFS=$as_save_IFS
8032   test -z "$as_dir" && as_dir=.
8033     for ac_exec_ext in '' $ac_executable_extensions; do
8034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8035     ac_cv_prog_AR="${ac_tool_prefix}ar"
8036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8037     break 2
8038   fi
8039 done
8040   done
8041 IFS=$as_save_IFS
8042
8043 fi
8044 fi
8045 AR=$ac_cv_prog_AR
8046 if test -n "$AR"; then
8047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8048 $as_echo "$AR" >&6; }
8049 else
8050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8051 $as_echo "no" >&6; }
8052 fi
8053
8054
8055 fi
8056 if test -z "$ac_cv_prog_AR"; then
8057   ac_ct_AR=$AR
8058   # Extract the first word of "ar", so it can be a program name with args.
8059 set dummy ar; ac_word=$2
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8061 $as_echo_n "checking for $ac_word... " >&6; }
8062 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8063   $as_echo_n "(cached) " >&6
8064 else
8065   if test -n "$ac_ct_AR"; then
8066   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8067 else
8068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8069 for as_dir in $PATH
8070 do
8071   IFS=$as_save_IFS
8072   test -z "$as_dir" && as_dir=.
8073     for ac_exec_ext in '' $ac_executable_extensions; do
8074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8075     ac_cv_prog_ac_ct_AR="ar"
8076     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8077     break 2
8078   fi
8079 done
8080   done
8081 IFS=$as_save_IFS
8082
8083 fi
8084 fi
8085 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8086 if test -n "$ac_ct_AR"; then
8087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8088 $as_echo "$ac_ct_AR" >&6; }
8089 else
8090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8091 $as_echo "no" >&6; }
8092 fi
8093
8094   if test "x$ac_ct_AR" = x; then
8095     AR="false"
8096   else
8097     case $cross_compiling:$ac_tool_warned in
8098 yes:)
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8101 ac_tool_warned=yes ;;
8102 esac
8103     AR=$ac_ct_AR
8104   fi
8105 else
8106   AR="$ac_cv_prog_AR"
8107 fi
8108
8109 test -z "$AR" && AR=ar
8110 test -z "$AR_FLAGS" && AR_FLAGS=cru
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122 if test -n "$ac_tool_prefix"; then
8123   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8124 set dummy ${ac_tool_prefix}strip; ac_word=$2
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8126 $as_echo_n "checking for $ac_word... " >&6; }
8127 if test "${ac_cv_prog_STRIP+set}" = set; then :
8128   $as_echo_n "(cached) " >&6
8129 else
8130   if test -n "$STRIP"; then
8131   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8132 else
8133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8134 for as_dir in $PATH
8135 do
8136   IFS=$as_save_IFS
8137   test -z "$as_dir" && as_dir=.
8138     for ac_exec_ext in '' $ac_executable_extensions; do
8139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8140     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8142     break 2
8143   fi
8144 done
8145   done
8146 IFS=$as_save_IFS
8147
8148 fi
8149 fi
8150 STRIP=$ac_cv_prog_STRIP
8151 if test -n "$STRIP"; then
8152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8153 $as_echo "$STRIP" >&6; }
8154 else
8155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156 $as_echo "no" >&6; }
8157 fi
8158
8159
8160 fi
8161 if test -z "$ac_cv_prog_STRIP"; then
8162   ac_ct_STRIP=$STRIP
8163   # Extract the first word of "strip", so it can be a program name with args.
8164 set dummy strip; ac_word=$2
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8166 $as_echo_n "checking for $ac_word... " >&6; }
8167 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8168   $as_echo_n "(cached) " >&6
8169 else
8170   if test -n "$ac_ct_STRIP"; then
8171   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8172 else
8173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8174 for as_dir in $PATH
8175 do
8176   IFS=$as_save_IFS
8177   test -z "$as_dir" && as_dir=.
8178     for ac_exec_ext in '' $ac_executable_extensions; do
8179   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8180     ac_cv_prog_ac_ct_STRIP="strip"
8181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8182     break 2
8183   fi
8184 done
8185   done
8186 IFS=$as_save_IFS
8187
8188 fi
8189 fi
8190 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8191 if test -n "$ac_ct_STRIP"; then
8192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8193 $as_echo "$ac_ct_STRIP" >&6; }
8194 else
8195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196 $as_echo "no" >&6; }
8197 fi
8198
8199   if test "x$ac_ct_STRIP" = x; then
8200     STRIP=":"
8201   else
8202     case $cross_compiling:$ac_tool_warned in
8203 yes:)
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8206 ac_tool_warned=yes ;;
8207 esac
8208     STRIP=$ac_ct_STRIP
8209   fi
8210 else
8211   STRIP="$ac_cv_prog_STRIP"
8212 fi
8213
8214 test -z "$STRIP" && STRIP=:
8215
8216
8217
8218
8219
8220
8221 if test -n "$ac_tool_prefix"; then
8222   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8223 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8225 $as_echo_n "checking for $ac_word... " >&6; }
8226 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8227   $as_echo_n "(cached) " >&6
8228 else
8229   if test -n "$RANLIB"; then
8230   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8231 else
8232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233 for as_dir in $PATH
8234 do
8235   IFS=$as_save_IFS
8236   test -z "$as_dir" && as_dir=.
8237     for ac_exec_ext in '' $ac_executable_extensions; do
8238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8239     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8241     break 2
8242   fi
8243 done
8244   done
8245 IFS=$as_save_IFS
8246
8247 fi
8248 fi
8249 RANLIB=$ac_cv_prog_RANLIB
8250 if test -n "$RANLIB"; then
8251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8252 $as_echo "$RANLIB" >&6; }
8253 else
8254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8255 $as_echo "no" >&6; }
8256 fi
8257
8258
8259 fi
8260 if test -z "$ac_cv_prog_RANLIB"; then
8261   ac_ct_RANLIB=$RANLIB
8262   # Extract the first word of "ranlib", so it can be a program name with args.
8263 set dummy ranlib; ac_word=$2
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8265 $as_echo_n "checking for $ac_word... " >&6; }
8266 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8267   $as_echo_n "(cached) " >&6
8268 else
8269   if test -n "$ac_ct_RANLIB"; then
8270   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8271 else
8272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8273 for as_dir in $PATH
8274 do
8275   IFS=$as_save_IFS
8276   test -z "$as_dir" && as_dir=.
8277     for ac_exec_ext in '' $ac_executable_extensions; do
8278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8279     ac_cv_prog_ac_ct_RANLIB="ranlib"
8280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8281     break 2
8282   fi
8283 done
8284   done
8285 IFS=$as_save_IFS
8286
8287 fi
8288 fi
8289 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8290 if test -n "$ac_ct_RANLIB"; then
8291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8292 $as_echo "$ac_ct_RANLIB" >&6; }
8293 else
8294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8295 $as_echo "no" >&6; }
8296 fi
8297
8298   if test "x$ac_ct_RANLIB" = x; then
8299     RANLIB=":"
8300   else
8301     case $cross_compiling:$ac_tool_warned in
8302 yes:)
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8305 ac_tool_warned=yes ;;
8306 esac
8307     RANLIB=$ac_ct_RANLIB
8308   fi
8309 else
8310   RANLIB="$ac_cv_prog_RANLIB"
8311 fi
8312
8313 test -z "$RANLIB" && RANLIB=:
8314
8315
8316
8317
8318
8319
8320 # Determine commands to create old-style static archives.
8321 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8322 old_postinstall_cmds='chmod 644 $oldlib'
8323 old_postuninstall_cmds=
8324
8325 if test -n "$RANLIB"; then
8326   case $host_os in
8327   openbsd*)
8328     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8329     ;;
8330   *)
8331     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8332     ;;
8333   esac
8334   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8335 fi
8336
8337 case $host_os in
8338   darwin*)
8339     lock_old_archive_extraction=yes ;;
8340   *)
8341     lock_old_archive_extraction=no ;;
8342 esac
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382 # If no C compiler was specified, use CC.
8383 LTCC=${LTCC-"$CC"}
8384
8385 # If no C compiler flags were specified, use CFLAGS.
8386 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8387
8388 # Allow CC to be a program name with arguments.
8389 compiler=$CC
8390
8391
8392 # Check for command to grab the raw symbol name followed by C symbol from nm.
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8394 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8395 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8396   $as_echo_n "(cached) " >&6
8397 else
8398
8399 # These are sane defaults that work on at least a few old systems.
8400 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8401
8402 # Character class describing NM global symbol codes.
8403 symcode='[BCDEGRST]'
8404
8405 # Regexp to match symbols that can be accessed directly from C.
8406 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8407
8408 # Define system-specific variables.
8409 case $host_os in
8410 aix*)
8411   symcode='[BCDT]'
8412   ;;
8413 cygwin* | mingw* | pw32* | cegcc*)
8414   symcode='[ABCDGISTW]'
8415   ;;
8416 hpux*)
8417   if test "$host_cpu" = ia64; then
8418     symcode='[ABCDEGRST]'
8419   fi
8420   ;;
8421 irix* | nonstopux*)
8422   symcode='[BCDEGRST]'
8423   ;;
8424 osf*)
8425   symcode='[BCDEGQRST]'
8426   ;;
8427 solaris*)
8428   symcode='[BDRT]'
8429   ;;
8430 sco3.2v5*)
8431   symcode='[DT]'
8432   ;;
8433 sysv4.2uw2*)
8434   symcode='[DT]'
8435   ;;
8436 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8437   symcode='[ABDT]'
8438   ;;
8439 sysv4)
8440   symcode='[DFNSTU]'
8441   ;;
8442 esac
8443
8444 # If we're using GNU nm, then use its standard symbol codes.
8445 case `$NM -V 2>&1` in
8446 *GNU* | *'with BFD'*)
8447   symcode='[ABCDGIRSTW]' ;;
8448 esac
8449
8450 # Transform an extracted symbol line into a proper C declaration.
8451 # Some systems (esp. on ia64) link data and code symbols differently,
8452 # so use this general approach.
8453 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8454
8455 # Transform an extracted symbol line into symbol name and symbol address
8456 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8457 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'"
8458
8459 # Handle CRLF in mingw tool chain
8460 opt_cr=
8461 case $build_os in
8462 mingw*)
8463   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8464   ;;
8465 esac
8466
8467 # Try without a prefix underscore, then with it.
8468 for ac_symprfx in "" "_"; do
8469
8470   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8471   symxfrm="\\1 $ac_symprfx\\2 \\2"
8472
8473   # Write the raw and C identifiers.
8474   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8475     # Fake it for dumpbin and say T for any non-static function
8476     # and D for any global variable.
8477     # Also find C++ and __fastcall symbols from MSVC++,
8478     # which start with @ or ?.
8479     lt_cv_sys_global_symbol_pipe="$AWK '"\
8480 "     {last_section=section; section=\$ 3};"\
8481 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8482 "     \$ 0!~/External *\|/{next};"\
8483 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8484 "     {if(hide[section]) next};"\
8485 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8486 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8487 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8488 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8489 "     ' prfx=^$ac_symprfx"
8490   else
8491     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8492   fi
8493
8494   # Check to see that the pipe works correctly.
8495   pipe_works=no
8496
8497   rm -f conftest*
8498   cat > conftest.$ac_ext <<_LT_EOF
8499 #ifdef __cplusplus
8500 extern "C" {
8501 #endif
8502 char nm_test_var;
8503 void nm_test_func(void);
8504 void nm_test_func(void){}
8505 #ifdef __cplusplus
8506 }
8507 #endif
8508 int main(){nm_test_var='a';nm_test_func();return(0);}
8509 _LT_EOF
8510
8511   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8512   (eval $ac_compile) 2>&5
8513   ac_status=$?
8514   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8515   test $ac_status = 0; }; then
8516     # Now try to grab the symbols.
8517     nlist=conftest.nm
8518     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8519   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8520   ac_status=$?
8521   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8522   test $ac_status = 0; } && test -s "$nlist"; then
8523       # Try sorting and uniquifying the output.
8524       if sort "$nlist" | uniq > "$nlist"T; then
8525         mv -f "$nlist"T "$nlist"
8526       else
8527         rm -f "$nlist"T
8528       fi
8529
8530       # Make sure that we snagged all the symbols we need.
8531       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8532         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8533           cat <<_LT_EOF > conftest.$ac_ext
8534 #ifdef __cplusplus
8535 extern "C" {
8536 #endif
8537
8538 _LT_EOF
8539           # Now generate the symbol file.
8540           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8541
8542           cat <<_LT_EOF >> conftest.$ac_ext
8543
8544 /* The mapping between symbol names and symbols.  */
8545 const struct {
8546   const char *name;
8547   void       *address;
8548 }
8549 lt__PROGRAM__LTX_preloaded_symbols[] =
8550 {
8551   { "@PROGRAM@", (void *) 0 },
8552 _LT_EOF
8553           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8554           cat <<\_LT_EOF >> conftest.$ac_ext
8555   {0, (void *) 0}
8556 };
8557
8558 /* This works around a problem in FreeBSD linker */
8559 #ifdef FREEBSD_WORKAROUND
8560 static const void *lt_preloaded_setup() {
8561   return lt__PROGRAM__LTX_preloaded_symbols;
8562 }
8563 #endif
8564
8565 #ifdef __cplusplus
8566 }
8567 #endif
8568 _LT_EOF
8569           # Now try linking the two files.
8570           mv conftest.$ac_objext conftstm.$ac_objext
8571           lt_save_LIBS="$LIBS"
8572           lt_save_CFLAGS="$CFLAGS"
8573           LIBS="conftstm.$ac_objext"
8574           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8575           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8576   (eval $ac_link) 2>&5
8577   ac_status=$?
8578   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8579   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8580             pipe_works=yes
8581           fi
8582           LIBS="$lt_save_LIBS"
8583           CFLAGS="$lt_save_CFLAGS"
8584         else
8585           echo "cannot find nm_test_func in $nlist" >&5
8586         fi
8587       else
8588         echo "cannot find nm_test_var in $nlist" >&5
8589       fi
8590     else
8591       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8592     fi
8593   else
8594     echo "$progname: failed program was:" >&5
8595     cat conftest.$ac_ext >&5
8596   fi
8597   rm -rf conftest* conftst*
8598
8599   # Do not use the global_symbol_pipe unless it works.
8600   if test "$pipe_works" = yes; then
8601     break
8602   else
8603     lt_cv_sys_global_symbol_pipe=
8604   fi
8605 done
8606
8607 fi
8608
8609 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8610   lt_cv_sys_global_symbol_to_cdecl=
8611 fi
8612 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8614 $as_echo "failed" >&6; }
8615 else
8616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8617 $as_echo "ok" >&6; }
8618 fi
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642 # Check whether --enable-libtool-lock was given.
8643 if test "${enable_libtool_lock+set}" = set; then :
8644   enableval=$enable_libtool_lock;
8645 fi
8646
8647 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8648
8649 # Some flags need to be propagated to the compiler or linker for good
8650 # libtool support.
8651 case $host in
8652 ia64-*-hpux*)
8653   # Find out which ABI we are using.
8654   echo 'int i;' > conftest.$ac_ext
8655   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8656   (eval $ac_compile) 2>&5
8657   ac_status=$?
8658   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8659   test $ac_status = 0; }; then
8660     case `/usr/bin/file conftest.$ac_objext` in
8661       *ELF-32*)
8662         HPUX_IA64_MODE="32"
8663         ;;
8664       *ELF-64*)
8665         HPUX_IA64_MODE="64"
8666         ;;
8667     esac
8668   fi
8669   rm -rf conftest*
8670   ;;
8671 *-*-irix6*)
8672   # Find out which ABI we are using.
8673   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8674   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8675   (eval $ac_compile) 2>&5
8676   ac_status=$?
8677   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8678   test $ac_status = 0; }; then
8679     if test "$lt_cv_prog_gnu_ld" = yes; then
8680       case `/usr/bin/file conftest.$ac_objext` in
8681         *32-bit*)
8682           LD="${LD-ld} -melf32bsmip"
8683           ;;
8684         *N32*)
8685           LD="${LD-ld} -melf32bmipn32"
8686           ;;
8687         *64-bit*)
8688           LD="${LD-ld} -melf64bmip"
8689         ;;
8690       esac
8691     else
8692       case `/usr/bin/file conftest.$ac_objext` in
8693         *32-bit*)
8694           LD="${LD-ld} -32"
8695           ;;
8696         *N32*)
8697           LD="${LD-ld} -n32"
8698           ;;
8699         *64-bit*)
8700           LD="${LD-ld} -64"
8701           ;;
8702       esac
8703     fi
8704   fi
8705   rm -rf conftest*
8706   ;;
8707
8708 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8709 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8710   # Find out which ABI we are using.
8711   echo 'int i;' > conftest.$ac_ext
8712   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8713   (eval $ac_compile) 2>&5
8714   ac_status=$?
8715   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8716   test $ac_status = 0; }; then
8717     case `/usr/bin/file conftest.o` in
8718       *32-bit*)
8719         case $host in
8720           x86_64-*kfreebsd*-gnu)
8721             LD="${LD-ld} -m elf_i386_fbsd"
8722             ;;
8723           x86_64-*linux*)
8724             LD="${LD-ld} -m elf_i386"
8725             ;;
8726           ppc64-*linux*|powerpc64-*linux*)
8727             LD="${LD-ld} -m elf32ppclinux"
8728             ;;
8729           s390x-*linux*)
8730             LD="${LD-ld} -m elf_s390"
8731             ;;
8732           sparc64-*linux*)
8733             LD="${LD-ld} -m elf32_sparc"
8734             ;;
8735         esac
8736         ;;
8737       *64-bit*)
8738         case $host in
8739           x86_64-*kfreebsd*-gnu)
8740             LD="${LD-ld} -m elf_x86_64_fbsd"
8741             ;;
8742           x86_64-*linux*)
8743             LD="${LD-ld} -m elf_x86_64"
8744             ;;
8745           ppc*-*linux*|powerpc*-*linux*)
8746             LD="${LD-ld} -m elf64ppc"
8747             ;;
8748           s390*-*linux*|s390*-*tpf*)
8749             LD="${LD-ld} -m elf64_s390"
8750             ;;
8751           sparc*-*linux*)
8752             LD="${LD-ld} -m elf64_sparc"
8753             ;;
8754         esac
8755         ;;
8756     esac
8757   fi
8758   rm -rf conftest*
8759   ;;
8760
8761 *-*-sco3.2v5*)
8762   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8763   SAVE_CFLAGS="$CFLAGS"
8764   CFLAGS="$CFLAGS -belf"
8765   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8766 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8767 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8768   $as_echo_n "(cached) " >&6
8769 else
8770   ac_ext=c
8771 ac_cpp='$CPP $CPPFLAGS'
8772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8775
8776      if test x$gcc_no_link = xyes; then
8777   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8778 fi
8779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8780 /* end confdefs.h.  */
8781
8782 int
8783 main ()
8784 {
8785
8786   ;
8787   return 0;
8788 }
8789 _ACEOF
8790 if ac_fn_c_try_link "$LINENO"; then :
8791   lt_cv_cc_needs_belf=yes
8792 else
8793   lt_cv_cc_needs_belf=no
8794 fi
8795 rm -f core conftest.err conftest.$ac_objext \
8796     conftest$ac_exeext conftest.$ac_ext
8797      ac_ext=c
8798 ac_cpp='$CPP $CPPFLAGS'
8799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8802
8803 fi
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8805 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8806   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8807     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8808     CFLAGS="$SAVE_CFLAGS"
8809   fi
8810   ;;
8811 sparc*-*solaris*)
8812   # Find out which ABI we are using.
8813   echo 'int i;' > conftest.$ac_ext
8814   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8815   (eval $ac_compile) 2>&5
8816   ac_status=$?
8817   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8818   test $ac_status = 0; }; then
8819     case `/usr/bin/file conftest.o` in
8820     *64-bit*)
8821       case $lt_cv_prog_gnu_ld in
8822       yes*) LD="${LD-ld} -m elf64_sparc" ;;
8823       *)
8824         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8825           LD="${LD-ld} -64"
8826         fi
8827         ;;
8828       esac
8829       ;;
8830     esac
8831   fi
8832   rm -rf conftest*
8833   ;;
8834 esac
8835
8836 need_locks="$enable_libtool_lock"
8837
8838
8839   case $host_os in
8840     rhapsody* | darwin*)
8841     if test -n "$ac_tool_prefix"; then
8842   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8843 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8845 $as_echo_n "checking for $ac_word... " >&6; }
8846 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8847   $as_echo_n "(cached) " >&6
8848 else
8849   if test -n "$DSYMUTIL"; then
8850   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8851 else
8852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8853 for as_dir in $PATH
8854 do
8855   IFS=$as_save_IFS
8856   test -z "$as_dir" && as_dir=.
8857     for ac_exec_ext in '' $ac_executable_extensions; do
8858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8859     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8861     break 2
8862   fi
8863 done
8864   done
8865 IFS=$as_save_IFS
8866
8867 fi
8868 fi
8869 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8870 if test -n "$DSYMUTIL"; then
8871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8872 $as_echo "$DSYMUTIL" >&6; }
8873 else
8874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8875 $as_echo "no" >&6; }
8876 fi
8877
8878
8879 fi
8880 if test -z "$ac_cv_prog_DSYMUTIL"; then
8881   ac_ct_DSYMUTIL=$DSYMUTIL
8882   # Extract the first word of "dsymutil", so it can be a program name with args.
8883 set dummy dsymutil; ac_word=$2
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8885 $as_echo_n "checking for $ac_word... " >&6; }
8886 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8887   $as_echo_n "(cached) " >&6
8888 else
8889   if test -n "$ac_ct_DSYMUTIL"; then
8890   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8891 else
8892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8893 for as_dir in $PATH
8894 do
8895   IFS=$as_save_IFS
8896   test -z "$as_dir" && as_dir=.
8897     for ac_exec_ext in '' $ac_executable_extensions; do
8898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8899     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8901     break 2
8902   fi
8903 done
8904   done
8905 IFS=$as_save_IFS
8906
8907 fi
8908 fi
8909 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8910 if test -n "$ac_ct_DSYMUTIL"; then
8911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8912 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8913 else
8914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8915 $as_echo "no" >&6; }
8916 fi
8917
8918   if test "x$ac_ct_DSYMUTIL" = x; then
8919     DSYMUTIL=":"
8920   else
8921     case $cross_compiling:$ac_tool_warned in
8922 yes:)
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8925 ac_tool_warned=yes ;;
8926 esac
8927     DSYMUTIL=$ac_ct_DSYMUTIL
8928   fi
8929 else
8930   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8931 fi
8932
8933     if test -n "$ac_tool_prefix"; then
8934   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8935 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8937 $as_echo_n "checking for $ac_word... " >&6; }
8938 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8939   $as_echo_n "(cached) " >&6
8940 else
8941   if test -n "$NMEDIT"; then
8942   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8943 else
8944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8945 for as_dir in $PATH
8946 do
8947   IFS=$as_save_IFS
8948   test -z "$as_dir" && as_dir=.
8949     for ac_exec_ext in '' $ac_executable_extensions; do
8950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8951     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8953     break 2
8954   fi
8955 done
8956   done
8957 IFS=$as_save_IFS
8958
8959 fi
8960 fi
8961 NMEDIT=$ac_cv_prog_NMEDIT
8962 if test -n "$NMEDIT"; then
8963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8964 $as_echo "$NMEDIT" >&6; }
8965 else
8966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8967 $as_echo "no" >&6; }
8968 fi
8969
8970
8971 fi
8972 if test -z "$ac_cv_prog_NMEDIT"; then
8973   ac_ct_NMEDIT=$NMEDIT
8974   # Extract the first word of "nmedit", so it can be a program name with args.
8975 set dummy nmedit; ac_word=$2
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8977 $as_echo_n "checking for $ac_word... " >&6; }
8978 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8979   $as_echo_n "(cached) " >&6
8980 else
8981   if test -n "$ac_ct_NMEDIT"; then
8982   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8983 else
8984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8985 for as_dir in $PATH
8986 do
8987   IFS=$as_save_IFS
8988   test -z "$as_dir" && as_dir=.
8989     for ac_exec_ext in '' $ac_executable_extensions; do
8990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8991     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8993     break 2
8994   fi
8995 done
8996   done
8997 IFS=$as_save_IFS
8998
8999 fi
9000 fi
9001 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9002 if test -n "$ac_ct_NMEDIT"; then
9003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9004 $as_echo "$ac_ct_NMEDIT" >&6; }
9005 else
9006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9007 $as_echo "no" >&6; }
9008 fi
9009
9010   if test "x$ac_ct_NMEDIT" = x; then
9011     NMEDIT=":"
9012   else
9013     case $cross_compiling:$ac_tool_warned in
9014 yes:)
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9017 ac_tool_warned=yes ;;
9018 esac
9019     NMEDIT=$ac_ct_NMEDIT
9020   fi
9021 else
9022   NMEDIT="$ac_cv_prog_NMEDIT"
9023 fi
9024
9025     if test -n "$ac_tool_prefix"; then
9026   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9027 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9029 $as_echo_n "checking for $ac_word... " >&6; }
9030 if test "${ac_cv_prog_LIPO+set}" = set; then :
9031   $as_echo_n "(cached) " >&6
9032 else
9033   if test -n "$LIPO"; then
9034   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9035 else
9036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9037 for as_dir in $PATH
9038 do
9039   IFS=$as_save_IFS
9040   test -z "$as_dir" && as_dir=.
9041     for ac_exec_ext in '' $ac_executable_extensions; do
9042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9043     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9045     break 2
9046   fi
9047 done
9048   done
9049 IFS=$as_save_IFS
9050
9051 fi
9052 fi
9053 LIPO=$ac_cv_prog_LIPO
9054 if test -n "$LIPO"; then
9055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9056 $as_echo "$LIPO" >&6; }
9057 else
9058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9059 $as_echo "no" >&6; }
9060 fi
9061
9062
9063 fi
9064 if test -z "$ac_cv_prog_LIPO"; then
9065   ac_ct_LIPO=$LIPO
9066   # Extract the first word of "lipo", so it can be a program name with args.
9067 set dummy lipo; ac_word=$2
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9069 $as_echo_n "checking for $ac_word... " >&6; }
9070 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9071   $as_echo_n "(cached) " >&6
9072 else
9073   if test -n "$ac_ct_LIPO"; then
9074   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9075 else
9076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9077 for as_dir in $PATH
9078 do
9079   IFS=$as_save_IFS
9080   test -z "$as_dir" && as_dir=.
9081     for ac_exec_ext in '' $ac_executable_extensions; do
9082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9083     ac_cv_prog_ac_ct_LIPO="lipo"
9084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9085     break 2
9086   fi
9087 done
9088   done
9089 IFS=$as_save_IFS
9090
9091 fi
9092 fi
9093 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9094 if test -n "$ac_ct_LIPO"; then
9095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9096 $as_echo "$ac_ct_LIPO" >&6; }
9097 else
9098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9099 $as_echo "no" >&6; }
9100 fi
9101
9102   if test "x$ac_ct_LIPO" = x; then
9103     LIPO=":"
9104   else
9105     case $cross_compiling:$ac_tool_warned in
9106 yes:)
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9109 ac_tool_warned=yes ;;
9110 esac
9111     LIPO=$ac_ct_LIPO
9112   fi
9113 else
9114   LIPO="$ac_cv_prog_LIPO"
9115 fi
9116
9117     if test -n "$ac_tool_prefix"; then
9118   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9119 set dummy ${ac_tool_prefix}otool; ac_word=$2
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9121 $as_echo_n "checking for $ac_word... " >&6; }
9122 if test "${ac_cv_prog_OTOOL+set}" = set; then :
9123   $as_echo_n "(cached) " >&6
9124 else
9125   if test -n "$OTOOL"; then
9126   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9127 else
9128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9129 for as_dir in $PATH
9130 do
9131   IFS=$as_save_IFS
9132   test -z "$as_dir" && as_dir=.
9133     for ac_exec_ext in '' $ac_executable_extensions; do
9134   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9135     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9137     break 2
9138   fi
9139 done
9140   done
9141 IFS=$as_save_IFS
9142
9143 fi
9144 fi
9145 OTOOL=$ac_cv_prog_OTOOL
9146 if test -n "$OTOOL"; then
9147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9148 $as_echo "$OTOOL" >&6; }
9149 else
9150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9151 $as_echo "no" >&6; }
9152 fi
9153
9154
9155 fi
9156 if test -z "$ac_cv_prog_OTOOL"; then
9157   ac_ct_OTOOL=$OTOOL
9158   # Extract the first word of "otool", so it can be a program name with args.
9159 set dummy otool; ac_word=$2
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9161 $as_echo_n "checking for $ac_word... " >&6; }
9162 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9163   $as_echo_n "(cached) " >&6
9164 else
9165   if test -n "$ac_ct_OTOOL"; then
9166   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9167 else
9168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9169 for as_dir in $PATH
9170 do
9171   IFS=$as_save_IFS
9172   test -z "$as_dir" && as_dir=.
9173     for ac_exec_ext in '' $ac_executable_extensions; do
9174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9175     ac_cv_prog_ac_ct_OTOOL="otool"
9176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9177     break 2
9178   fi
9179 done
9180   done
9181 IFS=$as_save_IFS
9182
9183 fi
9184 fi
9185 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9186 if test -n "$ac_ct_OTOOL"; then
9187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9188 $as_echo "$ac_ct_OTOOL" >&6; }
9189 else
9190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9191 $as_echo "no" >&6; }
9192 fi
9193
9194   if test "x$ac_ct_OTOOL" = x; then
9195     OTOOL=":"
9196   else
9197     case $cross_compiling:$ac_tool_warned in
9198 yes:)
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9201 ac_tool_warned=yes ;;
9202 esac
9203     OTOOL=$ac_ct_OTOOL
9204   fi
9205 else
9206   OTOOL="$ac_cv_prog_OTOOL"
9207 fi
9208
9209     if test -n "$ac_tool_prefix"; then
9210   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9211 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9213 $as_echo_n "checking for $ac_word... " >&6; }
9214 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9215   $as_echo_n "(cached) " >&6
9216 else
9217   if test -n "$OTOOL64"; then
9218   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9219 else
9220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9221 for as_dir in $PATH
9222 do
9223   IFS=$as_save_IFS
9224   test -z "$as_dir" && as_dir=.
9225     for ac_exec_ext in '' $ac_executable_extensions; do
9226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9227     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9229     break 2
9230   fi
9231 done
9232   done
9233 IFS=$as_save_IFS
9234
9235 fi
9236 fi
9237 OTOOL64=$ac_cv_prog_OTOOL64
9238 if test -n "$OTOOL64"; then
9239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9240 $as_echo "$OTOOL64" >&6; }
9241 else
9242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9243 $as_echo "no" >&6; }
9244 fi
9245
9246
9247 fi
9248 if test -z "$ac_cv_prog_OTOOL64"; then
9249   ac_ct_OTOOL64=$OTOOL64
9250   # Extract the first word of "otool64", so it can be a program name with args.
9251 set dummy otool64; ac_word=$2
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9253 $as_echo_n "checking for $ac_word... " >&6; }
9254 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9255   $as_echo_n "(cached) " >&6
9256 else
9257   if test -n "$ac_ct_OTOOL64"; then
9258   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9259 else
9260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9261 for as_dir in $PATH
9262 do
9263   IFS=$as_save_IFS
9264   test -z "$as_dir" && as_dir=.
9265     for ac_exec_ext in '' $ac_executable_extensions; do
9266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9267     ac_cv_prog_ac_ct_OTOOL64="otool64"
9268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9269     break 2
9270   fi
9271 done
9272   done
9273 IFS=$as_save_IFS
9274
9275 fi
9276 fi
9277 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9278 if test -n "$ac_ct_OTOOL64"; then
9279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9280 $as_echo "$ac_ct_OTOOL64" >&6; }
9281 else
9282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9283 $as_echo "no" >&6; }
9284 fi
9285
9286   if test "x$ac_ct_OTOOL64" = x; then
9287     OTOOL64=":"
9288   else
9289     case $cross_compiling:$ac_tool_warned in
9290 yes:)
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9293 ac_tool_warned=yes ;;
9294 esac
9295     OTOOL64=$ac_ct_OTOOL64
9296   fi
9297 else
9298   OTOOL64="$ac_cv_prog_OTOOL64"
9299 fi
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9328 $as_echo_n "checking for -single_module linker flag... " >&6; }
9329 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9330   $as_echo_n "(cached) " >&6
9331 else
9332   lt_cv_apple_cc_single_mod=no
9333       if test -z "${LT_MULTI_MODULE}"; then
9334         # By default we will add the -single_module flag. You can override
9335         # by either setting the environment variable LT_MULTI_MODULE
9336         # non-empty at configure time, or by adding -multi_module to the
9337         # link flags.
9338         rm -rf libconftest.dylib*
9339         echo "int foo(void){return 1;}" > conftest.c
9340         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9341 -dynamiclib -Wl,-single_module conftest.c" >&5
9342         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9343           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9344         _lt_result=$?
9345         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9346           lt_cv_apple_cc_single_mod=yes
9347         else
9348           cat conftest.err >&5
9349         fi
9350         rm -rf libconftest.dylib*
9351         rm -f conftest.*
9352       fi
9353 fi
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9355 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9356     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9357 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9358 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9359   $as_echo_n "(cached) " >&6
9360 else
9361   lt_cv_ld_exported_symbols_list=no
9362       save_LDFLAGS=$LDFLAGS
9363       echo "_main" > conftest.sym
9364       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9365       if test x$gcc_no_link = xyes; then
9366   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9367 fi
9368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9369 /* end confdefs.h.  */
9370
9371 int
9372 main ()
9373 {
9374
9375   ;
9376   return 0;
9377 }
9378 _ACEOF
9379 if ac_fn_c_try_link "$LINENO"; then :
9380   lt_cv_ld_exported_symbols_list=yes
9381 else
9382   lt_cv_ld_exported_symbols_list=no
9383 fi
9384 rm -f core conftest.err conftest.$ac_objext \
9385     conftest$ac_exeext conftest.$ac_ext
9386         LDFLAGS="$save_LDFLAGS"
9387
9388 fi
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9390 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9391     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9392 $as_echo_n "checking for -force_load linker flag... " >&6; }
9393 if test "${lt_cv_ld_force_load+set}" = set; then :
9394   $as_echo_n "(cached) " >&6
9395 else
9396   lt_cv_ld_force_load=no
9397       cat > conftest.c << _LT_EOF
9398 int forced_loaded() { return 2;}
9399 _LT_EOF
9400       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9401       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9402       echo "$AR cru libconftest.a conftest.o" >&5
9403       $AR cru libconftest.a conftest.o 2>&5
9404       cat > conftest.c << _LT_EOF
9405 int main() { return 0;}
9406 _LT_EOF
9407       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9408       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9409       _lt_result=$?
9410       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9411         lt_cv_ld_force_load=yes
9412       else
9413         cat conftest.err >&5
9414       fi
9415         rm -f conftest.err libconftest.a conftest conftest.c
9416         rm -rf conftest.dSYM
9417
9418 fi
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9420 $as_echo "$lt_cv_ld_force_load" >&6; }
9421     case $host_os in
9422     rhapsody* | darwin1.[012])
9423       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9424     darwin1.*)
9425       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9426     darwin*) # darwin 5.x on
9427       # if running on 10.5 or later, the deployment target defaults
9428       # to the OS version, if on x86, and 10.4, the deployment
9429       # target defaults to 10.4. Don't you love it?
9430       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9431         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9432           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9433         10.[012]*)
9434           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9435         10.*)
9436           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9437       esac
9438     ;;
9439   esac
9440     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9441       _lt_dar_single_mod='$single_module'
9442     fi
9443     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9444       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9445     else
9446       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9447     fi
9448     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9449       _lt_dsymutil='~$DSYMUTIL $lib || :'
9450     else
9451       _lt_dsymutil=
9452     fi
9453     ;;
9454   esac
9455
9456 ac_ext=c
9457 ac_cpp='$CPP $CPPFLAGS'
9458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9462 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9463 # On Suns, sometimes $CPP names a directory.
9464 if test -n "$CPP" && test -d "$CPP"; then
9465   CPP=
9466 fi
9467 if test -z "$CPP"; then
9468   if test "${ac_cv_prog_CPP+set}" = set; then :
9469   $as_echo_n "(cached) " >&6
9470 else
9471       # Double quotes because CPP needs to be expanded
9472     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9473     do
9474       ac_preproc_ok=false
9475 for ac_c_preproc_warn_flag in '' yes
9476 do
9477   # Use a header file that comes with gcc, so configuring glibc
9478   # with a fresh cross-compiler works.
9479   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9480   # <limits.h> exists even on freestanding compilers.
9481   # On the NeXT, cc -E runs the code through the compiler's parser,
9482   # not just through cpp. "Syntax error" is here to catch this case.
9483   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9484 /* end confdefs.h.  */
9485 #ifdef __STDC__
9486 # include <limits.h>
9487 #else
9488 # include <assert.h>
9489 #endif
9490                      Syntax error
9491 _ACEOF
9492 if ac_fn_c_try_cpp "$LINENO"; then :
9493
9494 else
9495   # Broken: fails on valid input.
9496 continue
9497 fi
9498 rm -f conftest.err conftest.$ac_ext
9499
9500   # OK, works on sane cases.  Now check whether nonexistent headers
9501   # can be detected and how.
9502   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9503 /* end confdefs.h.  */
9504 #include <ac_nonexistent.h>
9505 _ACEOF
9506 if ac_fn_c_try_cpp "$LINENO"; then :
9507   # Broken: success on invalid input.
9508 continue
9509 else
9510   # Passes both tests.
9511 ac_preproc_ok=:
9512 break
9513 fi
9514 rm -f conftest.err conftest.$ac_ext
9515
9516 done
9517 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9518 rm -f conftest.err conftest.$ac_ext
9519 if $ac_preproc_ok; then :
9520   break
9521 fi
9522
9523     done
9524     ac_cv_prog_CPP=$CPP
9525
9526 fi
9527   CPP=$ac_cv_prog_CPP
9528 else
9529   ac_cv_prog_CPP=$CPP
9530 fi
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9532 $as_echo "$CPP" >&6; }
9533 ac_preproc_ok=false
9534 for ac_c_preproc_warn_flag in '' yes
9535 do
9536   # Use a header file that comes with gcc, so configuring glibc
9537   # with a fresh cross-compiler works.
9538   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9539   # <limits.h> exists even on freestanding compilers.
9540   # On the NeXT, cc -E runs the code through the compiler's parser,
9541   # not just through cpp. "Syntax error" is here to catch this case.
9542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9543 /* end confdefs.h.  */
9544 #ifdef __STDC__
9545 # include <limits.h>
9546 #else
9547 # include <assert.h>
9548 #endif
9549                      Syntax error
9550 _ACEOF
9551 if ac_fn_c_try_cpp "$LINENO"; then :
9552
9553 else
9554   # Broken: fails on valid input.
9555 continue
9556 fi
9557 rm -f conftest.err conftest.$ac_ext
9558
9559   # OK, works on sane cases.  Now check whether nonexistent headers
9560   # can be detected and how.
9561   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9562 /* end confdefs.h.  */
9563 #include <ac_nonexistent.h>
9564 _ACEOF
9565 if ac_fn_c_try_cpp "$LINENO"; then :
9566   # Broken: success on invalid input.
9567 continue
9568 else
9569   # Passes both tests.
9570 ac_preproc_ok=:
9571 break
9572 fi
9573 rm -f conftest.err conftest.$ac_ext
9574
9575 done
9576 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9577 rm -f conftest.err conftest.$ac_ext
9578 if $ac_preproc_ok; then :
9579
9580 else
9581   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9582 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9583 as_fn_error "C preprocessor \"$CPP\" fails sanity check
9584 See \`config.log' for more details." "$LINENO" 5; }
9585 fi
9586
9587 ac_ext=c
9588 ac_cpp='$CPP $CPPFLAGS'
9589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9592
9593
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9595 $as_echo_n "checking for ANSI C header files... " >&6; }
9596 if test "${ac_cv_header_stdc+set}" = set; then :
9597   $as_echo_n "(cached) " >&6
9598 else
9599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9600 /* end confdefs.h.  */
9601 #include <stdlib.h>
9602 #include <stdarg.h>
9603 #include <string.h>
9604 #include <float.h>
9605
9606 int
9607 main ()
9608 {
9609
9610   ;
9611   return 0;
9612 }
9613 _ACEOF
9614 if ac_fn_c_try_compile "$LINENO"; then :
9615   ac_cv_header_stdc=yes
9616 else
9617   ac_cv_header_stdc=no
9618 fi
9619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9620
9621 if test $ac_cv_header_stdc = yes; then
9622   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9624 /* end confdefs.h.  */
9625 #include <string.h>
9626
9627 _ACEOF
9628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9629   $EGREP "memchr" >/dev/null 2>&1; then :
9630
9631 else
9632   ac_cv_header_stdc=no
9633 fi
9634 rm -f conftest*
9635
9636 fi
9637
9638 if test $ac_cv_header_stdc = yes; then
9639   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9641 /* end confdefs.h.  */
9642 #include <stdlib.h>
9643
9644 _ACEOF
9645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9646   $EGREP "free" >/dev/null 2>&1; then :
9647
9648 else
9649   ac_cv_header_stdc=no
9650 fi
9651 rm -f conftest*
9652
9653 fi
9654
9655 if test $ac_cv_header_stdc = yes; then
9656   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9657   if test "$cross_compiling" = yes; then :
9658   :
9659 else
9660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9661 /* end confdefs.h.  */
9662 #include <ctype.h>
9663 #include <stdlib.h>
9664 #if ((' ' & 0x0FF) == 0x020)
9665 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9666 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9667 #else
9668 # define ISLOWER(c) \
9669                    (('a' <= (c) && (c) <= 'i') \
9670                      || ('j' <= (c) && (c) <= 'r') \
9671                      || ('s' <= (c) && (c) <= 'z'))
9672 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9673 #endif
9674
9675 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9676 int
9677 main ()
9678 {
9679   int i;
9680   for (i = 0; i < 256; i++)
9681     if (XOR (islower (i), ISLOWER (i))
9682         || toupper (i) != TOUPPER (i))
9683       return 2;
9684   return 0;
9685 }
9686 _ACEOF
9687 if ac_fn_c_try_run "$LINENO"; then :
9688
9689 else
9690   ac_cv_header_stdc=no
9691 fi
9692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9693   conftest.$ac_objext conftest.beam conftest.$ac_ext
9694 fi
9695
9696 fi
9697 fi
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9699 $as_echo "$ac_cv_header_stdc" >&6; }
9700 if test $ac_cv_header_stdc = yes; then
9701
9702 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9703
9704 fi
9705
9706 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9707 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9708                   inttypes.h stdint.h unistd.h
9709 do :
9710   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9711 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9712 "
9713 eval as_val=\$$as_ac_Header
9714    if test "x$as_val" = x""yes; then :
9715   cat >>confdefs.h <<_ACEOF
9716 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9717 _ACEOF
9718
9719 fi
9720
9721 done
9722
9723
9724 for ac_header in dlfcn.h
9725 do :
9726   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9727 "
9728 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9729   cat >>confdefs.h <<_ACEOF
9730 #define HAVE_DLFCN_H 1
9731 _ACEOF
9732
9733 fi
9734
9735 done
9736
9737
9738
9739
9740
9741
9742 # Set options
9743
9744
9745
9746
9747   enable_win32_dll=no
9748
9749
9750             # Check whether --enable-shared was given.
9751 if test "${enable_shared+set}" = set; then :
9752   enableval=$enable_shared; p=${PACKAGE-default}
9753     case $enableval in
9754     yes) enable_shared=yes ;;
9755     no) enable_shared=no ;;
9756     *)
9757       enable_shared=no
9758       # Look at the argument we got.  We use all the common list separators.
9759       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9760       for pkg in $enableval; do
9761         IFS="$lt_save_ifs"
9762         if test "X$pkg" = "X$p"; then
9763           enable_shared=yes
9764         fi
9765       done
9766       IFS="$lt_save_ifs"
9767       ;;
9768     esac
9769 else
9770   enable_shared=yes
9771 fi
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781   # Check whether --enable-static was given.
9782 if test "${enable_static+set}" = set; then :
9783   enableval=$enable_static; p=${PACKAGE-default}
9784     case $enableval in
9785     yes) enable_static=yes ;;
9786     no) enable_static=no ;;
9787     *)
9788      enable_static=no
9789       # Look at the argument we got.  We use all the common list separators.
9790       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9791       for pkg in $enableval; do
9792         IFS="$lt_save_ifs"
9793         if test "X$pkg" = "X$p"; then
9794           enable_static=yes
9795         fi
9796       done
9797       IFS="$lt_save_ifs"
9798       ;;
9799     esac
9800 else
9801   enable_static=yes
9802 fi
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813 # Check whether --with-pic was given.
9814 if test "${with_pic+set}" = set; then :
9815   withval=$with_pic; pic_mode="$withval"
9816 else
9817   pic_mode=default
9818 fi
9819
9820
9821 test -z "$pic_mode" && pic_mode=default
9822
9823
9824
9825
9826
9827
9828
9829   # Check whether --enable-fast-install was given.
9830 if test "${enable_fast_install+set}" = set; then :
9831   enableval=$enable_fast_install; p=${PACKAGE-default}
9832     case $enableval in
9833     yes) enable_fast_install=yes ;;
9834     no) enable_fast_install=no ;;
9835     *)
9836       enable_fast_install=no
9837       # Look at the argument we got.  We use all the common list separators.
9838       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9839       for pkg in $enableval; do
9840         IFS="$lt_save_ifs"
9841         if test "X$pkg" = "X$p"; then
9842           enable_fast_install=yes
9843         fi
9844       done
9845       IFS="$lt_save_ifs"
9846       ;;
9847     esac
9848 else
9849   enable_fast_install=yes
9850 fi
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862 # This can be used to rebuild libtool when needed
9863 LIBTOOL_DEPS="$ltmain"
9864
9865 # Always use our own libtool.
9866 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893 test -z "$LN_S" && LN_S="ln -s"
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908 if test -n "${ZSH_VERSION+set}" ; then
9909    setopt NO_GLOB_SUBST
9910 fi
9911
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9913 $as_echo_n "checking for objdir... " >&6; }
9914 if test "${lt_cv_objdir+set}" = set; then :
9915   $as_echo_n "(cached) " >&6
9916 else
9917   rm -f .libs 2>/dev/null
9918 mkdir .libs 2>/dev/null
9919 if test -d .libs; then
9920   lt_cv_objdir=.libs
9921 else
9922   # MS-DOS does not allow filenames that begin with a dot.
9923   lt_cv_objdir=_libs
9924 fi
9925 rmdir .libs 2>/dev/null
9926 fi
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9928 $as_echo "$lt_cv_objdir" >&6; }
9929 objdir=$lt_cv_objdir
9930
9931
9932
9933
9934
9935 cat >>confdefs.h <<_ACEOF
9936 #define LT_OBJDIR "$lt_cv_objdir/"
9937 _ACEOF
9938
9939
9940
9941
9942 case $host_os in
9943 aix3*)
9944   # AIX sometimes has problems with the GCC collect2 program.  For some
9945   # reason, if we set the COLLECT_NAMES environment variable, the problems
9946   # vanish in a puff of smoke.
9947   if test "X${COLLECT_NAMES+set}" != Xset; then
9948     COLLECT_NAMES=
9949     export COLLECT_NAMES
9950   fi
9951   ;;
9952 esac
9953
9954 # Global variables:
9955 ofile=libtool
9956 can_build_shared=yes
9957
9958 # All known linkers require a `.a' archive for static linking (except MSVC,
9959 # which needs '.lib').
9960 libext=a
9961
9962 with_gnu_ld="$lt_cv_prog_gnu_ld"
9963
9964 old_CC="$CC"
9965 old_CFLAGS="$CFLAGS"
9966
9967 # Set sane defaults for various variables
9968 test -z "$CC" && CC=cc
9969 test -z "$LTCC" && LTCC=$CC
9970 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9971 test -z "$LD" && LD=ld
9972 test -z "$ac_objext" && ac_objext=o
9973
9974 for cc_temp in $compiler""; do
9975   case $cc_temp in
9976     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9977     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9978     \-*) ;;
9979     *) break;;
9980   esac
9981 done
9982 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9983
9984
9985 # Only perform the check for file, if the check method requires it
9986 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9987 case $deplibs_check_method in
9988 file_magic*)
9989   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9990     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9991 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9992 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9993   $as_echo_n "(cached) " >&6
9994 else
9995   case $MAGIC_CMD in
9996 [\\/*] |  ?:[\\/]*)
9997   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9998   ;;
9999 *)
10000   lt_save_MAGIC_CMD="$MAGIC_CMD"
10001   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10002   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10003   for ac_dir in $ac_dummy; do
10004     IFS="$lt_save_ifs"
10005     test -z "$ac_dir" && ac_dir=.
10006     if test -f $ac_dir/${ac_tool_prefix}file; then
10007       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10008       if test -n "$file_magic_test_file"; then
10009         case $deplibs_check_method in
10010         "file_magic "*)
10011           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10012           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10013           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10014             $EGREP "$file_magic_regex" > /dev/null; then
10015             :
10016           else
10017             cat <<_LT_EOF 1>&2
10018
10019 *** Warning: the command libtool uses to detect shared libraries,
10020 *** $file_magic_cmd, produces output that libtool cannot recognize.
10021 *** The result is that libtool may fail to recognize shared libraries
10022 *** as such.  This will affect the creation of libtool libraries that
10023 *** depend on shared libraries, but programs linked with such libtool
10024 *** libraries will work regardless of this problem.  Nevertheless, you
10025 *** may want to report the problem to your system manager and/or to
10026 *** bug-libtool@gnu.org
10027
10028 _LT_EOF
10029           fi ;;
10030         esac
10031       fi
10032       break
10033     fi
10034   done
10035   IFS="$lt_save_ifs"
10036   MAGIC_CMD="$lt_save_MAGIC_CMD"
10037   ;;
10038 esac
10039 fi
10040
10041 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10042 if test -n "$MAGIC_CMD"; then
10043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10044 $as_echo "$MAGIC_CMD" >&6; }
10045 else
10046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10047 $as_echo "no" >&6; }
10048 fi
10049
10050
10051
10052
10053
10054 if test -z "$lt_cv_path_MAGIC_CMD"; then
10055   if test -n "$ac_tool_prefix"; then
10056     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10057 $as_echo_n "checking for file... " >&6; }
10058 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10059   $as_echo_n "(cached) " >&6
10060 else
10061   case $MAGIC_CMD in
10062 [\\/*] |  ?:[\\/]*)
10063   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10064   ;;
10065 *)
10066   lt_save_MAGIC_CMD="$MAGIC_CMD"
10067   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10068   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10069   for ac_dir in $ac_dummy; do
10070     IFS="$lt_save_ifs"
10071     test -z "$ac_dir" && ac_dir=.
10072     if test -f $ac_dir/file; then
10073       lt_cv_path_MAGIC_CMD="$ac_dir/file"
10074       if test -n "$file_magic_test_file"; then
10075         case $deplibs_check_method in
10076         "file_magic "*)
10077           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10078           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10079           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10080             $EGREP "$file_magic_regex" > /dev/null; then
10081             :
10082           else
10083             cat <<_LT_EOF 1>&2
10084
10085 *** Warning: the command libtool uses to detect shared libraries,
10086 *** $file_magic_cmd, produces output that libtool cannot recognize.
10087 *** The result is that libtool may fail to recognize shared libraries
10088 *** as such.  This will affect the creation of libtool libraries that
10089 *** depend on shared libraries, but programs linked with such libtool
10090 *** libraries will work regardless of this problem.  Nevertheless, you
10091 *** may want to report the problem to your system manager and/or to
10092 *** bug-libtool@gnu.org
10093
10094 _LT_EOF
10095           fi ;;
10096         esac
10097       fi
10098       break
10099     fi
10100   done
10101   IFS="$lt_save_ifs"
10102   MAGIC_CMD="$lt_save_MAGIC_CMD"
10103   ;;
10104 esac
10105 fi
10106
10107 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10108 if test -n "$MAGIC_CMD"; then
10109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10110 $as_echo "$MAGIC_CMD" >&6; }
10111 else
10112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10113 $as_echo "no" >&6; }
10114 fi
10115
10116
10117   else
10118     MAGIC_CMD=:
10119   fi
10120 fi
10121
10122   fi
10123   ;;
10124 esac
10125
10126 # Use C for the default configuration in the libtool script
10127
10128 lt_save_CC="$CC"
10129 ac_ext=c
10130 ac_cpp='$CPP $CPPFLAGS'
10131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10134
10135
10136 # Source file extension for C test sources.
10137 ac_ext=c
10138
10139 # Object file extension for compiled C test sources.
10140 objext=o
10141 objext=$objext
10142
10143 # Code to be used in simple compile tests
10144 lt_simple_compile_test_code="int some_variable = 0;"
10145
10146 # Code to be used in simple link tests
10147 lt_simple_link_test_code='int main(){return(0);}'
10148
10149
10150
10151
10152
10153
10154
10155 # If no C compiler was specified, use CC.
10156 LTCC=${LTCC-"$CC"}
10157
10158 # If no C compiler flags were specified, use CFLAGS.
10159 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10160
10161 # Allow CC to be a program name with arguments.
10162 compiler=$CC
10163
10164 # Save the default compiler, since it gets overwritten when the other
10165 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10166 compiler_DEFAULT=$CC
10167
10168 # save warnings/boilerplate of simple test code
10169 ac_outfile=conftest.$ac_objext
10170 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10171 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10172 _lt_compiler_boilerplate=`cat conftest.err`
10173 $RM conftest*
10174
10175 ac_outfile=conftest.$ac_objext
10176 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10177 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10178 _lt_linker_boilerplate=`cat conftest.err`
10179 $RM -r conftest*
10180
10181
10182 ## CAVEAT EMPTOR:
10183 ## There is no encapsulation within the following macros, do not change
10184 ## the running order or otherwise move them around unless you know exactly
10185 ## what you are doing...
10186 if test -n "$compiler"; then
10187
10188 lt_prog_compiler_no_builtin_flag=
10189
10190 if test "$GCC" = yes; then
10191   case $cc_basename in
10192   nvcc*)
10193     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10194   *)
10195     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10196   esac
10197
10198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10199 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10200 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10201   $as_echo_n "(cached) " >&6
10202 else
10203   lt_cv_prog_compiler_rtti_exceptions=no
10204    ac_outfile=conftest.$ac_objext
10205    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10206    lt_compiler_flag="-fno-rtti -fno-exceptions"
10207    # Insert the option either (1) after the last *FLAGS variable, or
10208    # (2) before a word containing "conftest.", or (3) at the end.
10209    # Note that $ac_compile itself does not contain backslashes and begins
10210    # with a dollar sign (not a hyphen), so the echo should work correctly.
10211    # The option is referenced via a variable to avoid confusing sed.
10212    lt_compile=`echo "$ac_compile" | $SED \
10213    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10214    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10215    -e 's:$: $lt_compiler_flag:'`
10216    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10217    (eval "$lt_compile" 2>conftest.err)
10218    ac_status=$?
10219    cat conftest.err >&5
10220    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221    if (exit $ac_status) && test -s "$ac_outfile"; then
10222      # The compiler can only warn and ignore the option if not recognized
10223      # So say no if there are warnings other than the usual output.
10224      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10225      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10226      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10227        lt_cv_prog_compiler_rtti_exceptions=yes
10228      fi
10229    fi
10230    $RM conftest*
10231
10232 fi
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10234 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10235
10236 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10237     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10238 else
10239     :
10240 fi
10241
10242 fi
10243
10244
10245
10246
10247
10248
10249   lt_prog_compiler_wl=
10250 lt_prog_compiler_pic=
10251 lt_prog_compiler_static=
10252
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10254 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10255
10256   if test "$GCC" = yes; then
10257     lt_prog_compiler_wl='-Wl,'
10258     lt_prog_compiler_static='-static'
10259
10260     case $host_os in
10261       aix*)
10262       # All AIX code is PIC.
10263       if test "$host_cpu" = ia64; then
10264         # AIX 5 now supports IA64 processor
10265         lt_prog_compiler_static='-Bstatic'
10266       fi
10267       ;;
10268
10269     amigaos*)
10270       case $host_cpu in
10271       powerpc)
10272             # see comment about AmigaOS4 .so support
10273             lt_prog_compiler_pic='-fPIC'
10274         ;;
10275       m68k)
10276             # FIXME: we need at least 68020 code to build shared libraries, but
10277             # adding the `-m68020' flag to GCC prevents building anything better,
10278             # like `-m68040'.
10279             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10280         ;;
10281       esac
10282       ;;
10283
10284     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10285       # PIC is the default for these OSes.
10286       ;;
10287
10288     mingw* | cygwin* | pw32* | os2* | cegcc*)
10289       # This hack is so that the source file can tell whether it is being
10290       # built for inclusion in a dll (and should export symbols for example).
10291       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10292       # (--disable-auto-import) libraries
10293       lt_prog_compiler_pic='-DDLL_EXPORT'
10294       ;;
10295
10296     darwin* | rhapsody*)
10297       # PIC is the default on this platform
10298       # Common symbols not allowed in MH_DYLIB files
10299       lt_prog_compiler_pic='-fno-common'
10300       ;;
10301
10302     haiku*)
10303       # PIC is the default for Haiku.
10304       # The "-static" flag exists, but is broken.
10305       lt_prog_compiler_static=
10306       ;;
10307
10308     hpux*)
10309       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10310       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10311       # sets the default TLS model and affects inlining.
10312       case $host_cpu in
10313       hppa*64*)
10314         # +Z the default
10315         ;;
10316       *)
10317         lt_prog_compiler_pic='-fPIC'
10318         ;;
10319       esac
10320       ;;
10321
10322     interix[3-9]*)
10323       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10324       # Instead, we relocate shared libraries at runtime.
10325       ;;
10326
10327     msdosdjgpp*)
10328       # Just because we use GCC doesn't mean we suddenly get shared libraries
10329       # on systems that don't support them.
10330       lt_prog_compiler_can_build_shared=no
10331       enable_shared=no
10332       ;;
10333
10334     *nto* | *qnx*)
10335       # QNX uses GNU C++, but need to define -shared option too, otherwise
10336       # it will coredump.
10337       lt_prog_compiler_pic='-fPIC -shared'
10338       ;;
10339
10340     sysv4*MP*)
10341       if test -d /usr/nec; then
10342         lt_prog_compiler_pic=-Kconform_pic
10343       fi
10344       ;;
10345
10346     *)
10347       lt_prog_compiler_pic='-fPIC'
10348       ;;
10349     esac
10350
10351     case $cc_basename in
10352     nvcc*) # Cuda Compiler Driver 2.2
10353       lt_prog_compiler_wl='-Xlinker '
10354       lt_prog_compiler_pic='-Xcompiler -fPIC'
10355       ;;
10356     esac
10357   else
10358     # PORTME Check for flag to pass linker flags through the system compiler.
10359     case $host_os in
10360     aix*)
10361       lt_prog_compiler_wl='-Wl,'
10362       if test "$host_cpu" = ia64; then
10363         # AIX 5 now supports IA64 processor
10364         lt_prog_compiler_static='-Bstatic'
10365       else
10366         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10367       fi
10368       ;;
10369
10370     mingw* | cygwin* | pw32* | os2* | cegcc*)
10371       # This hack is so that the source file can tell whether it is being
10372       # built for inclusion in a dll (and should export symbols for example).
10373       lt_prog_compiler_pic='-DDLL_EXPORT'
10374       ;;
10375
10376     hpux9* | hpux10* | hpux11*)
10377       lt_prog_compiler_wl='-Wl,'
10378       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10379       # not for PA HP-UX.
10380       case $host_cpu in
10381       hppa*64*|ia64*)
10382         # +Z the default
10383         ;;
10384       *)
10385         lt_prog_compiler_pic='+Z'
10386         ;;
10387       esac
10388       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10389       lt_prog_compiler_static='${wl}-a ${wl}archive'
10390       ;;
10391
10392     irix5* | irix6* | nonstopux*)
10393       lt_prog_compiler_wl='-Wl,'
10394       # PIC (with -KPIC) is the default.
10395       lt_prog_compiler_static='-non_shared'
10396       ;;
10397
10398     linux* | k*bsd*-gnu | kopensolaris*-gnu)
10399       case $cc_basename in
10400       # old Intel for x86_64 which still supported -KPIC.
10401       ecc*)
10402         lt_prog_compiler_wl='-Wl,'
10403         lt_prog_compiler_pic='-KPIC'
10404         lt_prog_compiler_static='-static'
10405         ;;
10406       # icc used to be incompatible with GCC.
10407       # ICC 10 doesn't accept -KPIC any more.
10408       icc* | ifort*)
10409         lt_prog_compiler_wl='-Wl,'
10410         lt_prog_compiler_pic='-fPIC'
10411         lt_prog_compiler_static='-static'
10412         ;;
10413       # Lahey Fortran 8.1.
10414       lf95*)
10415         lt_prog_compiler_wl='-Wl,'
10416         lt_prog_compiler_pic='--shared'
10417         lt_prog_compiler_static='--static'
10418         ;;
10419       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10420         # Portland Group compilers (*not* the Pentium gcc compiler,
10421         # which looks to be a dead project)
10422         lt_prog_compiler_wl='-Wl,'
10423         lt_prog_compiler_pic='-fpic'
10424         lt_prog_compiler_static='-Bstatic'
10425         ;;
10426       ccc*)
10427         lt_prog_compiler_wl='-Wl,'
10428         # All Alpha code is PIC.
10429         lt_prog_compiler_static='-non_shared'
10430         ;;
10431       xl* | bgxl* | bgf* | mpixl*)
10432         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10433         lt_prog_compiler_wl='-Wl,'
10434         lt_prog_compiler_pic='-qpic'
10435         lt_prog_compiler_static='-qstaticlink'
10436         ;;
10437       *)
10438         case `$CC -V 2>&1 | sed 5q` in
10439         *Sun\ F* | *Sun*Fortran*)
10440           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10441           lt_prog_compiler_pic='-KPIC'
10442           lt_prog_compiler_static='-Bstatic'
10443           lt_prog_compiler_wl=''
10444           ;;
10445         *Sun\ C*)
10446           # Sun C 5.9
10447           lt_prog_compiler_pic='-KPIC'
10448           lt_prog_compiler_static='-Bstatic'
10449           lt_prog_compiler_wl='-Wl,'
10450           ;;
10451         esac
10452         ;;
10453       esac
10454       ;;
10455
10456     newsos6)
10457       lt_prog_compiler_pic='-KPIC'
10458       lt_prog_compiler_static='-Bstatic'
10459       ;;
10460
10461     *nto* | *qnx*)
10462       # QNX uses GNU C++, but need to define -shared option too, otherwise
10463       # it will coredump.
10464       lt_prog_compiler_pic='-fPIC -shared'
10465       ;;
10466
10467     osf3* | osf4* | osf5*)
10468       lt_prog_compiler_wl='-Wl,'
10469       # All OSF/1 code is PIC.
10470       lt_prog_compiler_static='-non_shared'
10471       ;;
10472
10473     rdos*)
10474       lt_prog_compiler_static='-non_shared'
10475       ;;
10476
10477     solaris*)
10478       lt_prog_compiler_pic='-KPIC'
10479       lt_prog_compiler_static='-Bstatic'
10480       case $cc_basename in
10481       f77* | f90* | f95*)
10482         lt_prog_compiler_wl='-Qoption ld ';;
10483       *)
10484         lt_prog_compiler_wl='-Wl,';;
10485       esac
10486       ;;
10487
10488     sunos4*)
10489       lt_prog_compiler_wl='-Qoption ld '
10490       lt_prog_compiler_pic='-PIC'
10491       lt_prog_compiler_static='-Bstatic'
10492       ;;
10493
10494     sysv4 | sysv4.2uw2* | sysv4.3*)
10495       lt_prog_compiler_wl='-Wl,'
10496       lt_prog_compiler_pic='-KPIC'
10497       lt_prog_compiler_static='-Bstatic'
10498       ;;
10499
10500     sysv4*MP*)
10501       if test -d /usr/nec ;then
10502         lt_prog_compiler_pic='-Kconform_pic'
10503         lt_prog_compiler_static='-Bstatic'
10504       fi
10505       ;;
10506
10507     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10508       lt_prog_compiler_wl='-Wl,'
10509       lt_prog_compiler_pic='-KPIC'
10510       lt_prog_compiler_static='-Bstatic'
10511       ;;
10512
10513     unicos*)
10514       lt_prog_compiler_wl='-Wl,'
10515       lt_prog_compiler_can_build_shared=no
10516       ;;
10517
10518     uts4*)
10519       lt_prog_compiler_pic='-pic'
10520       lt_prog_compiler_static='-Bstatic'
10521       ;;
10522
10523     *)
10524       lt_prog_compiler_can_build_shared=no
10525       ;;
10526     esac
10527   fi
10528
10529 case $host_os in
10530   # For platforms which do not support PIC, -DPIC is meaningless:
10531   *djgpp*)
10532     lt_prog_compiler_pic=
10533     ;;
10534   *)
10535     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10536     ;;
10537 esac
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10539 $as_echo "$lt_prog_compiler_pic" >&6; }
10540
10541
10542
10543
10544
10545
10546 #
10547 # Check to make sure the PIC flag actually works.
10548 #
10549 if test -n "$lt_prog_compiler_pic"; then
10550   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10551 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10552 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10553   $as_echo_n "(cached) " >&6
10554 else
10555   lt_cv_prog_compiler_pic_works=no
10556    ac_outfile=conftest.$ac_objext
10557    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10558    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10559    # Insert the option either (1) after the last *FLAGS variable, or
10560    # (2) before a word containing "conftest.", or (3) at the end.
10561    # Note that $ac_compile itself does not contain backslashes and begins
10562    # with a dollar sign (not a hyphen), so the echo should work correctly.
10563    # The option is referenced via a variable to avoid confusing sed.
10564    lt_compile=`echo "$ac_compile" | $SED \
10565    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10566    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10567    -e 's:$: $lt_compiler_flag:'`
10568    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10569    (eval "$lt_compile" 2>conftest.err)
10570    ac_status=$?
10571    cat conftest.err >&5
10572    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573    if (exit $ac_status) && test -s "$ac_outfile"; then
10574      # The compiler can only warn and ignore the option if not recognized
10575      # So say no if there are warnings other than the usual output.
10576      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10577      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10578      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10579        lt_cv_prog_compiler_pic_works=yes
10580      fi
10581    fi
10582    $RM conftest*
10583
10584 fi
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10586 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10587
10588 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10589     case $lt_prog_compiler_pic in
10590      "" | " "*) ;;
10591      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10592      esac
10593 else
10594     lt_prog_compiler_pic=
10595      lt_prog_compiler_can_build_shared=no
10596 fi
10597
10598 fi
10599
10600
10601
10602
10603
10604
10605 #
10606 # Check to make sure the static flag actually works.
10607 #
10608 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10610 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10611 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10612   $as_echo_n "(cached) " >&6
10613 else
10614   lt_cv_prog_compiler_static_works=no
10615    save_LDFLAGS="$LDFLAGS"
10616    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10617    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10618    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10619      # The linker can only warn and ignore the option if not recognized
10620      # So say no if there are warnings
10621      if test -s conftest.err; then
10622        # Append any errors to the config.log.
10623        cat conftest.err 1>&5
10624        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10625        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10626        if diff conftest.exp conftest.er2 >/dev/null; then
10627          lt_cv_prog_compiler_static_works=yes
10628        fi
10629      else
10630        lt_cv_prog_compiler_static_works=yes
10631      fi
10632    fi
10633    $RM -r conftest*
10634    LDFLAGS="$save_LDFLAGS"
10635
10636 fi
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10638 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10639
10640 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10641     :
10642 else
10643     lt_prog_compiler_static=
10644 fi
10645
10646
10647
10648
10649
10650
10651
10652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10653 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10654 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10655   $as_echo_n "(cached) " >&6
10656 else
10657   lt_cv_prog_compiler_c_o=no
10658    $RM -r conftest 2>/dev/null
10659    mkdir conftest
10660    cd conftest
10661    mkdir out
10662    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10663
10664    lt_compiler_flag="-o out/conftest2.$ac_objext"
10665    # Insert the option either (1) after the last *FLAGS variable, or
10666    # (2) before a word containing "conftest.", or (3) at the end.
10667    # Note that $ac_compile itself does not contain backslashes and begins
10668    # with a dollar sign (not a hyphen), so the echo should work correctly.
10669    lt_compile=`echo "$ac_compile" | $SED \
10670    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10671    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10672    -e 's:$: $lt_compiler_flag:'`
10673    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10674    (eval "$lt_compile" 2>out/conftest.err)
10675    ac_status=$?
10676    cat out/conftest.err >&5
10677    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10679    then
10680      # The compiler can only warn and ignore the option if not recognized
10681      # So say no if there are warnings
10682      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10683      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10684      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10685        lt_cv_prog_compiler_c_o=yes
10686      fi
10687    fi
10688    chmod u+w . 2>&5
10689    $RM conftest*
10690    # SGI C++ compiler will create directory out/ii_files/ for
10691    # template instantiation
10692    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10693    $RM out/* && rmdir out
10694    cd ..
10695    $RM -r conftest
10696    $RM conftest*
10697
10698 fi
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10700 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10701
10702
10703
10704
10705
10706
10707   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10708 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10709 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10710   $as_echo_n "(cached) " >&6
10711 else
10712   lt_cv_prog_compiler_c_o=no
10713    $RM -r conftest 2>/dev/null
10714    mkdir conftest
10715    cd conftest
10716    mkdir out
10717    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10718
10719    lt_compiler_flag="-o out/conftest2.$ac_objext"
10720    # Insert the option either (1) after the last *FLAGS variable, or
10721    # (2) before a word containing "conftest.", or (3) at the end.
10722    # Note that $ac_compile itself does not contain backslashes and begins
10723    # with a dollar sign (not a hyphen), so the echo should work correctly.
10724    lt_compile=`echo "$ac_compile" | $SED \
10725    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10726    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10727    -e 's:$: $lt_compiler_flag:'`
10728    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10729    (eval "$lt_compile" 2>out/conftest.err)
10730    ac_status=$?
10731    cat out/conftest.err >&5
10732    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10734    then
10735      # The compiler can only warn and ignore the option if not recognized
10736      # So say no if there are warnings
10737      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10738      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10739      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10740        lt_cv_prog_compiler_c_o=yes
10741      fi
10742    fi
10743    chmod u+w . 2>&5
10744    $RM conftest*
10745    # SGI C++ compiler will create directory out/ii_files/ for
10746    # template instantiation
10747    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10748    $RM out/* && rmdir out
10749    cd ..
10750    $RM -r conftest
10751    $RM conftest*
10752
10753 fi
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10755 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10756
10757
10758
10759
10760 hard_links="nottested"
10761 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10762   # do not overwrite the value of need_locks provided by the user
10763   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10764 $as_echo_n "checking if we can lock with hard links... " >&6; }
10765   hard_links=yes
10766   $RM conftest*
10767   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10768   touch conftest.a
10769   ln conftest.a conftest.b 2>&5 || hard_links=no
10770   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10772 $as_echo "$hard_links" >&6; }
10773   if test "$hard_links" = no; then
10774     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10775 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10776     need_locks=warn
10777   fi
10778 else
10779   need_locks=no
10780 fi
10781
10782
10783
10784
10785
10786
10787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10788 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10789
10790   runpath_var=
10791   allow_undefined_flag=
10792   always_export_symbols=no
10793   archive_cmds=
10794   archive_expsym_cmds=
10795   compiler_needs_object=no
10796   enable_shared_with_static_runtimes=no
10797   export_dynamic_flag_spec=
10798   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10799   hardcode_automatic=no
10800   hardcode_direct=no
10801   hardcode_direct_absolute=no
10802   hardcode_libdir_flag_spec=
10803   hardcode_libdir_flag_spec_ld=
10804   hardcode_libdir_separator=
10805   hardcode_minus_L=no
10806   hardcode_shlibpath_var=unsupported
10807   inherit_rpath=no
10808   link_all_deplibs=unknown
10809   module_cmds=
10810   module_expsym_cmds=
10811   old_archive_from_new_cmds=
10812   old_archive_from_expsyms_cmds=
10813   thread_safe_flag_spec=
10814   whole_archive_flag_spec=
10815   # include_expsyms should be a list of space-separated symbols to be *always*
10816   # included in the symbol list
10817   include_expsyms=
10818   # exclude_expsyms can be an extended regexp of symbols to exclude
10819   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10820   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10821   # as well as any symbol that contains `d'.
10822   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10823   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10824   # platforms (ab)use it in PIC code, but their linkers get confused if
10825   # the symbol is explicitly referenced.  Since portable code cannot
10826   # rely on this symbol name, it's probably fine to never include it in
10827   # preloaded symbol tables.
10828   # Exclude shared library initialization/finalization symbols.
10829   extract_expsyms_cmds=
10830
10831   case $host_os in
10832   cygwin* | mingw* | pw32* | cegcc*)
10833     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10834     # When not using gcc, we currently assume that we are using
10835     # Microsoft Visual C++.
10836     if test "$GCC" != yes; then
10837       with_gnu_ld=no
10838     fi
10839     ;;
10840   interix*)
10841     # we just hope/assume this is gcc and not c89 (= MSVC++)
10842     with_gnu_ld=yes
10843     ;;
10844   openbsd*)
10845     with_gnu_ld=no
10846     ;;
10847   esac
10848
10849   ld_shlibs=yes
10850
10851   # On some targets, GNU ld is compatible enough with the native linker
10852   # that we're better off using the native interface for both.
10853   lt_use_gnu_ld_interface=no
10854   if test "$with_gnu_ld" = yes; then
10855     case $host_os in
10856       aix*)
10857         # The AIX port of GNU ld has always aspired to compatibility
10858         # with the native linker.  However, as the warning in the GNU ld
10859         # block says, versions before 2.19.5* couldn't really create working
10860         # shared libraries, regardless of the interface used.
10861         case `$LD -v 2>&1` in
10862           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10863           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10864           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10865           *)
10866             lt_use_gnu_ld_interface=yes
10867             ;;
10868         esac
10869         ;;
10870       *)
10871         lt_use_gnu_ld_interface=yes
10872         ;;
10873     esac
10874   fi
10875
10876   if test "$lt_use_gnu_ld_interface" = yes; then
10877     # If archive_cmds runs LD, not CC, wlarc should be empty
10878     wlarc='${wl}'
10879
10880     # Set some defaults for GNU ld with shared library support. These
10881     # are reset later if shared libraries are not supported. Putting them
10882     # here allows them to be overridden if necessary.
10883     runpath_var=LD_RUN_PATH
10884     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10885     export_dynamic_flag_spec='${wl}--export-dynamic'
10886     # ancient GNU ld didn't support --whole-archive et. al.
10887     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10888       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10889     else
10890       whole_archive_flag_spec=
10891     fi
10892     supports_anon_versioning=no
10893     case `$LD -v 2>&1` in
10894       *GNU\ gold*) supports_anon_versioning=yes ;;
10895       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10896       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10897       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10898       *\ 2.11.*) ;; # other 2.11 versions
10899       *) supports_anon_versioning=yes ;;
10900     esac
10901
10902     # See if GNU ld supports shared libraries.
10903     case $host_os in
10904     aix[3-9]*)
10905       # On AIX/PPC, the GNU linker is very broken
10906       if test "$host_cpu" != ia64; then
10907         ld_shlibs=no
10908         cat <<_LT_EOF 1>&2
10909
10910 *** Warning: the GNU linker, at least up to release 2.19, is reported
10911 *** to be unable to reliably create shared libraries on AIX.
10912 *** Therefore, libtool is disabling shared libraries support.  If you
10913 *** really care for shared libraries, you may want to install binutils
10914 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10915 *** You will then need to restart the configuration process.
10916
10917 _LT_EOF
10918       fi
10919       ;;
10920
10921     amigaos*)
10922       case $host_cpu in
10923       powerpc)
10924             # see comment about AmigaOS4 .so support
10925             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10926             archive_expsym_cmds=''
10927         ;;
10928       m68k)
10929             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)'
10930             hardcode_libdir_flag_spec='-L$libdir'
10931             hardcode_minus_L=yes
10932         ;;
10933       esac
10934       ;;
10935
10936     beos*)
10937       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10938         allow_undefined_flag=unsupported
10939         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10940         # support --undefined.  This deserves some investigation.  FIXME
10941         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10942       else
10943         ld_shlibs=no
10944       fi
10945       ;;
10946
10947     cygwin* | mingw* | pw32* | cegcc*)
10948       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10949       # as there is no search path for DLLs.
10950       hardcode_libdir_flag_spec='-L$libdir'
10951       export_dynamic_flag_spec='${wl}--export-all-symbols'
10952       allow_undefined_flag=unsupported
10953       always_export_symbols=no
10954       enable_shared_with_static_runtimes=yes
10955       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10956
10957       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10958         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10959         # If the export-symbols file already is a .def file (1st line
10960         # is EXPORTS), use it as is; otherwise, prepend...
10961         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10962           cp $export_symbols $output_objdir/$soname.def;
10963         else
10964           echo EXPORTS > $output_objdir/$soname.def;
10965           cat $export_symbols >> $output_objdir/$soname.def;
10966         fi~
10967         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10968       else
10969         ld_shlibs=no
10970       fi
10971       ;;
10972
10973     haiku*)
10974       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10975       link_all_deplibs=yes
10976       ;;
10977
10978     interix[3-9]*)
10979       hardcode_direct=no
10980       hardcode_shlibpath_var=no
10981       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10982       export_dynamic_flag_spec='${wl}-E'
10983       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10984       # Instead, shared libraries are loaded at an image base (0x10000000 by
10985       # default) and relocated if they conflict, which is a slow very memory
10986       # consuming and fragmenting process.  To avoid this, we pick a random,
10987       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10988       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10989       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10990       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'
10991       ;;
10992
10993     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10994       tmp_diet=no
10995       if test "$host_os" = linux-dietlibc; then
10996         case $cc_basename in
10997           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10998         esac
10999       fi
11000       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11001          && test "$tmp_diet" = no
11002       then
11003         tmp_addflag=
11004         tmp_sharedflag='-shared'
11005         case $cc_basename,$host_cpu in
11006         pgcc*)                          # Portland Group C compiler
11007           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'
11008           tmp_addflag=' $pic_flag'
11009           ;;
11010         pgf77* | pgf90* | pgf95* | pgfortran*)
11011                                         # Portland Group f77 and f90 compilers
11012           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'
11013           tmp_addflag=' $pic_flag -Mnomain' ;;
11014         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11015           tmp_addflag=' -i_dynamic' ;;
11016         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11017           tmp_addflag=' -i_dynamic -nofor_main' ;;
11018         ifc* | ifort*)                  # Intel Fortran compiler
11019           tmp_addflag=' -nofor_main' ;;
11020         lf95*)                          # Lahey Fortran 8.1
11021           whole_archive_flag_spec=
11022           tmp_sharedflag='--shared' ;;
11023         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11024           tmp_sharedflag='-qmkshrobj'
11025           tmp_addflag= ;;
11026         nvcc*)  # Cuda Compiler Driver 2.2
11027           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'
11028           compiler_needs_object=yes
11029           ;;
11030         esac
11031         case `$CC -V 2>&1 | sed 5q` in
11032         *Sun\ C*)                       # Sun C 5.9
11033           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'
11034           compiler_needs_object=yes
11035           tmp_sharedflag='-G' ;;
11036         *Sun\ F*)                       # Sun Fortran 8.3
11037           tmp_sharedflag='-G' ;;
11038         esac
11039         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11040
11041         if test "x$supports_anon_versioning" = xyes; then
11042           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11043             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11044             echo "local: *; };" >> $output_objdir/$libname.ver~
11045             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11046         fi
11047
11048         case $cc_basename in
11049         xlf* | bgf* | bgxlf* | mpixlf*)
11050           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11051           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11052           hardcode_libdir_flag_spec=
11053           hardcode_libdir_flag_spec_ld='-rpath $libdir'
11054           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11055           if test "x$supports_anon_versioning" = xyes; then
11056             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11057               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11058               echo "local: *; };" >> $output_objdir/$libname.ver~
11059               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11060           fi
11061           ;;
11062         esac
11063       else
11064         ld_shlibs=no
11065       fi
11066       ;;
11067
11068     netbsd*)
11069       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11070         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11071         wlarc=
11072       else
11073         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11074         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11075       fi
11076       ;;
11077
11078     solaris*)
11079       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11080         ld_shlibs=no
11081         cat <<_LT_EOF 1>&2
11082
11083 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11084 *** create shared libraries on Solaris systems.  Therefore, libtool
11085 *** is disabling shared libraries support.  We urge you to upgrade GNU
11086 *** binutils to release 2.9.1 or newer.  Another option is to modify
11087 *** your PATH or compiler configuration so that the native linker is
11088 *** used, and then restart.
11089
11090 _LT_EOF
11091       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11092         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11093         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11094       else
11095         ld_shlibs=no
11096       fi
11097       ;;
11098
11099     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11100       case `$LD -v 2>&1` in
11101         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11102         ld_shlibs=no
11103         cat <<_LT_EOF 1>&2
11104
11105 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11106 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11107 *** is disabling shared libraries support.  We urge you to upgrade GNU
11108 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11109 *** your PATH or compiler configuration so that the native linker is
11110 *** used, and then restart.
11111
11112 _LT_EOF
11113         ;;
11114         *)
11115           # For security reasons, it is highly recommended that you always
11116           # use absolute paths for naming shared libraries, and exclude the
11117           # DT_RUNPATH tag from executables and libraries.  But doing so
11118           # requires that you compile everything twice, which is a pain.
11119           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11120             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11121             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11122             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11123           else
11124             ld_shlibs=no
11125           fi
11126         ;;
11127       esac
11128       ;;
11129
11130     sunos4*)
11131       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11132       wlarc=
11133       hardcode_direct=yes
11134       hardcode_shlibpath_var=no
11135       ;;
11136
11137     *)
11138       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11139         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11140         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11141       else
11142         ld_shlibs=no
11143       fi
11144       ;;
11145     esac
11146
11147     if test "$ld_shlibs" = no; then
11148       runpath_var=
11149       hardcode_libdir_flag_spec=
11150       export_dynamic_flag_spec=
11151       whole_archive_flag_spec=
11152     fi
11153   else
11154     # PORTME fill in a description of your system's linker (not GNU ld)
11155     case $host_os in
11156     aix3*)
11157       allow_undefined_flag=unsupported
11158       always_export_symbols=yes
11159       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'
11160       # Note: this linker hardcodes the directories in LIBPATH if there
11161       # are no directories specified by -L.
11162       hardcode_minus_L=yes
11163       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11164         # Neither direct hardcoding nor static linking is supported with a
11165         # broken collect2.
11166         hardcode_direct=unsupported
11167       fi
11168       ;;
11169
11170     aix[4-9]*)
11171       if test "$host_cpu" = ia64; then
11172         # On IA64, the linker does run time linking by default, so we don't
11173         # have to do anything special.
11174         aix_use_runtimelinking=no
11175         exp_sym_flag='-Bexport'
11176         no_entry_flag=""
11177       else
11178         # If we're using GNU nm, then we don't want the "-C" option.
11179         # -C means demangle to AIX nm, but means don't demangle with GNU nm
11180         # Also, AIX nm treats weak defined symbols like other global
11181         # defined symbols, whereas GNU nm marks them as "W".
11182         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11183           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'
11184         else
11185           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'
11186         fi
11187         aix_use_runtimelinking=no
11188
11189         # Test if we are trying to use run time linking or normal
11190         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11191         # need to do runtime linking.
11192         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11193           for ld_flag in $LDFLAGS; do
11194           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11195             aix_use_runtimelinking=yes
11196             break
11197           fi
11198           done
11199           ;;
11200         esac
11201
11202         exp_sym_flag='-bexport'
11203         no_entry_flag='-bnoentry'
11204       fi
11205
11206       # When large executables or shared objects are built, AIX ld can
11207       # have problems creating the table of contents.  If linking a library
11208       # or program results in "error TOC overflow" add -mminimal-toc to
11209       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11210       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11211
11212       archive_cmds=''
11213       hardcode_direct=yes
11214       hardcode_direct_absolute=yes
11215       hardcode_libdir_separator=':'
11216       link_all_deplibs=yes
11217       file_list_spec='${wl}-f,'
11218
11219       if test "$GCC" = yes; then
11220         case $host_os in aix4.[012]|aix4.[012].*)
11221         # We only want to do this on AIX 4.2 and lower, the check
11222         # below for broken collect2 doesn't work under 4.3+
11223           collect2name=`${CC} -print-prog-name=collect2`
11224           if test -f "$collect2name" &&
11225            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11226           then
11227           # We have reworked collect2
11228           :
11229           else
11230           # We have old collect2
11231           hardcode_direct=unsupported
11232           # It fails to find uninstalled libraries when the uninstalled
11233           # path is not listed in the libpath.  Setting hardcode_minus_L
11234           # to unsupported forces relinking
11235           hardcode_minus_L=yes
11236           hardcode_libdir_flag_spec='-L$libdir'
11237           hardcode_libdir_separator=
11238           fi
11239           ;;
11240         esac
11241         shared_flag='-shared'
11242         if test "$aix_use_runtimelinking" = yes; then
11243           shared_flag="$shared_flag "'${wl}-G'
11244         fi
11245       else
11246         # not using gcc
11247         if test "$host_cpu" = ia64; then
11248         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11249         # chokes on -Wl,-G. The following line is correct:
11250           shared_flag='-G'
11251         else
11252           if test "$aix_use_runtimelinking" = yes; then
11253             shared_flag='${wl}-G'
11254           else
11255             shared_flag='${wl}-bM:SRE'
11256           fi
11257         fi
11258       fi
11259
11260       export_dynamic_flag_spec='${wl}-bexpall'
11261       # It seems that -bexpall does not export symbols beginning with
11262       # underscore (_), so it is better to generate a list of symbols to export.
11263       always_export_symbols=yes
11264       if test "$aix_use_runtimelinking" = yes; then
11265         # Warning - without using the other runtime loading flags (-brtl),
11266         # -berok will link without error, but may produce a broken library.
11267         allow_undefined_flag='-berok'
11268         # Determine the default libpath from the value encoded in an
11269         # empty executable.
11270         if test x$gcc_no_link = xyes; then
11271   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11272 fi
11273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11274 /* end confdefs.h.  */
11275
11276 int
11277 main ()
11278 {
11279
11280   ;
11281   return 0;
11282 }
11283 _ACEOF
11284 if ac_fn_c_try_link "$LINENO"; then :
11285
11286 lt_aix_libpath_sed='
11287     /Import File Strings/,/^$/ {
11288         /^0/ {
11289             s/^0  *\(.*\)$/\1/
11290             p
11291         }
11292     }'
11293 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11294 # Check for a 64-bit object if we didn't find anything.
11295 if test -z "$aix_libpath"; then
11296   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11297 fi
11298 fi
11299 rm -f core conftest.err conftest.$ac_objext \
11300     conftest$ac_exeext conftest.$ac_ext
11301 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11302
11303         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11304         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"
11305       else
11306         if test "$host_cpu" = ia64; then
11307           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11308           allow_undefined_flag="-z nodefs"
11309           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"
11310         else
11311          # Determine the default libpath from the value encoded in an
11312          # empty executable.
11313          if test x$gcc_no_link = xyes; then
11314   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11315 fi
11316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11317 /* end confdefs.h.  */
11318
11319 int
11320 main ()
11321 {
11322
11323   ;
11324   return 0;
11325 }
11326 _ACEOF
11327 if ac_fn_c_try_link "$LINENO"; then :
11328
11329 lt_aix_libpath_sed='
11330     /Import File Strings/,/^$/ {
11331         /^0/ {
11332             s/^0  *\(.*\)$/\1/
11333             p
11334         }
11335     }'
11336 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11337 # Check for a 64-bit object if we didn't find anything.
11338 if test -z "$aix_libpath"; then
11339   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11340 fi
11341 fi
11342 rm -f core conftest.err conftest.$ac_objext \
11343     conftest$ac_exeext conftest.$ac_ext
11344 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11345
11346          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11347           # Warning - without using the other run time loading flags,
11348           # -berok will link without error, but may produce a broken library.
11349           no_undefined_flag=' ${wl}-bernotok'
11350           allow_undefined_flag=' ${wl}-berok'
11351           if test "$with_gnu_ld" = yes; then
11352             # We only use this code for GNU lds that support --whole-archive.
11353             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11354           else
11355             # Exported symbols can be pulled into shared objects from archives
11356             whole_archive_flag_spec='$convenience'
11357           fi
11358           archive_cmds_need_lc=yes
11359           # This is similar to how AIX traditionally builds its shared libraries.
11360           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'
11361         fi
11362       fi
11363       ;;
11364
11365     amigaos*)
11366       case $host_cpu in
11367       powerpc)
11368             # see comment about AmigaOS4 .so support
11369             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11370             archive_expsym_cmds=''
11371         ;;
11372       m68k)
11373             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)'
11374             hardcode_libdir_flag_spec='-L$libdir'
11375             hardcode_minus_L=yes
11376         ;;
11377       esac
11378       ;;
11379
11380     bsdi[45]*)
11381       export_dynamic_flag_spec=-rdynamic
11382       ;;
11383
11384     cygwin* | mingw* | pw32* | cegcc*)
11385       # When not using gcc, we currently assume that we are using
11386       # Microsoft Visual C++.
11387       # hardcode_libdir_flag_spec is actually meaningless, as there is
11388       # no search path for DLLs.
11389       hardcode_libdir_flag_spec=' '
11390       allow_undefined_flag=unsupported
11391       # Tell ltmain to make .lib files, not .a files.
11392       libext=lib
11393       # Tell ltmain to make .dll files, not .so files.
11394       shrext_cmds=".dll"
11395       # FIXME: Setting linknames here is a bad hack.
11396       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11397       # The linker will automatically build a .lib file if we build a DLL.
11398       old_archive_from_new_cmds='true'
11399       # FIXME: Should let the user specify the lib program.
11400       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11401       fix_srcfile_path='`cygpath -w "$srcfile"`'
11402       enable_shared_with_static_runtimes=yes
11403       ;;
11404
11405     darwin* | rhapsody*)
11406
11407
11408   archive_cmds_need_lc=no
11409   hardcode_direct=no
11410   hardcode_automatic=yes
11411   hardcode_shlibpath_var=unsupported
11412   if test "$lt_cv_ld_force_load" = "yes"; then
11413     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\"`'
11414   else
11415     whole_archive_flag_spec=''
11416   fi
11417   link_all_deplibs=yes
11418   allow_undefined_flag="$_lt_dar_allow_undefined"
11419   case $cc_basename in
11420      ifort*) _lt_dar_can_shared=yes ;;
11421      *) _lt_dar_can_shared=$GCC ;;
11422   esac
11423   if test "$_lt_dar_can_shared" = "yes"; then
11424     output_verbose_link_cmd=func_echo_all
11425     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11426     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11427     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}"
11428     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}"
11429
11430   else
11431   ld_shlibs=no
11432   fi
11433
11434       ;;
11435
11436     dgux*)
11437       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11438       hardcode_libdir_flag_spec='-L$libdir'
11439       hardcode_shlibpath_var=no
11440       ;;
11441
11442     freebsd1*)
11443       ld_shlibs=no
11444       ;;
11445
11446     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11447     # support.  Future versions do this automatically, but an explicit c++rt0.o
11448     # does not break anything, and helps significantly (at the cost of a little
11449     # extra space).
11450     freebsd2.2*)
11451       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11452       hardcode_libdir_flag_spec='-R$libdir'
11453       hardcode_direct=yes
11454       hardcode_shlibpath_var=no
11455       ;;
11456
11457     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11458     freebsd2*)
11459       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11460       hardcode_direct=yes
11461       hardcode_minus_L=yes
11462       hardcode_shlibpath_var=no
11463       ;;
11464
11465     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11466     freebsd* | dragonfly*)
11467       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11468       hardcode_libdir_flag_spec='-R$libdir'
11469       hardcode_direct=yes
11470       hardcode_shlibpath_var=no
11471       ;;
11472
11473     hpux9*)
11474       if test "$GCC" = yes; then
11475         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'
11476       else
11477         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'
11478       fi
11479       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11480       hardcode_libdir_separator=:
11481       hardcode_direct=yes
11482
11483       # hardcode_minus_L: Not really in the search PATH,
11484       # but as the default location of the library.
11485       hardcode_minus_L=yes
11486       export_dynamic_flag_spec='${wl}-E'
11487       ;;
11488
11489     hpux10*)
11490       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11491         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11492       else
11493         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11494       fi
11495       if test "$with_gnu_ld" = no; then
11496         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11497         hardcode_libdir_flag_spec_ld='+b $libdir'
11498         hardcode_libdir_separator=:
11499         hardcode_direct=yes
11500         hardcode_direct_absolute=yes
11501         export_dynamic_flag_spec='${wl}-E'
11502         # hardcode_minus_L: Not really in the search PATH,
11503         # but as the default location of the library.
11504         hardcode_minus_L=yes
11505       fi
11506       ;;
11507
11508     hpux11*)
11509       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11510         case $host_cpu in
11511         hppa*64*)
11512           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11513           ;;
11514         ia64*)
11515           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11516           ;;
11517         *)
11518           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11519           ;;
11520         esac
11521       else
11522         case $host_cpu in
11523         hppa*64*)
11524           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11525           ;;
11526         ia64*)
11527           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11528           ;;
11529         *)
11530
11531           # Older versions of the 11.00 compiler do not understand -b yet
11532           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11533           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11534 $as_echo_n "checking if $CC understands -b... " >&6; }
11535 if test "${lt_cv_prog_compiler__b+set}" = set; then :
11536   $as_echo_n "(cached) " >&6
11537 else
11538   lt_cv_prog_compiler__b=no
11539    save_LDFLAGS="$LDFLAGS"
11540    LDFLAGS="$LDFLAGS -b"
11541    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11542    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11543      # The linker can only warn and ignore the option if not recognized
11544      # So say no if there are warnings
11545      if test -s conftest.err; then
11546        # Append any errors to the config.log.
11547        cat conftest.err 1>&5
11548        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11549        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11550        if diff conftest.exp conftest.er2 >/dev/null; then
11551          lt_cv_prog_compiler__b=yes
11552        fi
11553      else
11554        lt_cv_prog_compiler__b=yes
11555      fi
11556    fi
11557    $RM -r conftest*
11558    LDFLAGS="$save_LDFLAGS"
11559
11560 fi
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11562 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11563
11564 if test x"$lt_cv_prog_compiler__b" = xyes; then
11565     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11566 else
11567     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11568 fi
11569
11570           ;;
11571         esac
11572       fi
11573       if test "$with_gnu_ld" = no; then
11574         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11575         hardcode_libdir_separator=:
11576
11577         case $host_cpu in
11578         hppa*64*|ia64*)
11579           hardcode_direct=no
11580           hardcode_shlibpath_var=no
11581           ;;
11582         *)
11583           hardcode_direct=yes
11584           hardcode_direct_absolute=yes
11585           export_dynamic_flag_spec='${wl}-E'
11586
11587           # hardcode_minus_L: Not really in the search PATH,
11588           # but as the default location of the library.
11589           hardcode_minus_L=yes
11590           ;;
11591         esac
11592       fi
11593       ;;
11594
11595     irix5* | irix6* | nonstopux*)
11596       if test "$GCC" = yes; then
11597         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'
11598         # Try to use the -exported_symbol ld option, if it does not
11599         # work, assume that -exports_file does not work either and
11600         # implicitly export all symbols.
11601         save_LDFLAGS="$LDFLAGS"
11602         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11603         if test x$gcc_no_link = xyes; then
11604   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11605 fi
11606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11607 /* end confdefs.h.  */
11608 int foo(void) {}
11609 _ACEOF
11610 if ac_fn_c_try_link "$LINENO"; then :
11611   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'
11612
11613 fi
11614 rm -f core conftest.err conftest.$ac_objext \
11615     conftest$ac_exeext conftest.$ac_ext
11616         LDFLAGS="$save_LDFLAGS"
11617       else
11618         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'
11619         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'
11620       fi
11621       archive_cmds_need_lc='no'
11622       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11623       hardcode_libdir_separator=:
11624       inherit_rpath=yes
11625       link_all_deplibs=yes
11626       ;;
11627
11628     netbsd*)
11629       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11630         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11631       else
11632         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11633       fi
11634       hardcode_libdir_flag_spec='-R$libdir'
11635       hardcode_direct=yes
11636       hardcode_shlibpath_var=no
11637       ;;
11638
11639     newsos6)
11640       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11641       hardcode_direct=yes
11642       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11643       hardcode_libdir_separator=:
11644       hardcode_shlibpath_var=no
11645       ;;
11646
11647     *nto* | *qnx*)
11648       ;;
11649
11650     openbsd*)
11651       if test -f /usr/libexec/ld.so; then
11652         hardcode_direct=yes
11653         hardcode_shlibpath_var=no
11654         hardcode_direct_absolute=yes
11655         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11656           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11657           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11658           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11659           export_dynamic_flag_spec='${wl}-E'
11660         else
11661           case $host_os in
11662            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11663              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11664              hardcode_libdir_flag_spec='-R$libdir'
11665              ;;
11666            *)
11667              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11668              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11669              ;;
11670           esac
11671         fi
11672       else
11673         ld_shlibs=no
11674       fi
11675       ;;
11676
11677     os2*)
11678       hardcode_libdir_flag_spec='-L$libdir'
11679       hardcode_minus_L=yes
11680       allow_undefined_flag=unsupported
11681       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'
11682       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11683       ;;
11684
11685     osf3*)
11686       if test "$GCC" = yes; then
11687         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11688         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'
11689       else
11690         allow_undefined_flag=' -expect_unresolved \*'
11691         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'
11692       fi
11693       archive_cmds_need_lc='no'
11694       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11695       hardcode_libdir_separator=:
11696       ;;
11697
11698     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11699       if test "$GCC" = yes; then
11700         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11701         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'
11702         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11703       else
11704         allow_undefined_flag=' -expect_unresolved \*'
11705         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'
11706         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~
11707         $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'
11708
11709         # Both c and cxx compiler support -rpath directly
11710         hardcode_libdir_flag_spec='-rpath $libdir'
11711       fi
11712       archive_cmds_need_lc='no'
11713       hardcode_libdir_separator=:
11714       ;;
11715
11716     solaris*)
11717       no_undefined_flag=' -z defs'
11718       if test "$GCC" = yes; then
11719         wlarc='${wl}'
11720         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11721         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11722           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11723       else
11724         case `$CC -V 2>&1` in
11725         *"Compilers 5.0"*)
11726           wlarc=''
11727           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11728           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11729           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11730           ;;
11731         *)
11732           wlarc='${wl}'
11733           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11734           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11735           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11736           ;;
11737         esac
11738       fi
11739       hardcode_libdir_flag_spec='-R$libdir'
11740       hardcode_shlibpath_var=no
11741       case $host_os in
11742       solaris2.[0-5] | solaris2.[0-5].*) ;;
11743       *)
11744         # The compiler driver will combine and reorder linker options,
11745         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11746         # but is careful enough not to reorder.
11747         # Supported since Solaris 2.6 (maybe 2.5.1?)
11748         if test "$GCC" = yes; then
11749           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11750         else
11751           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11752         fi
11753         ;;
11754       esac
11755       link_all_deplibs=yes
11756       ;;
11757
11758     sunos4*)
11759       if test "x$host_vendor" = xsequent; then
11760         # Use $CC to link under sequent, because it throws in some extra .o
11761         # files that make .init and .fini sections work.
11762         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11763       else
11764         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11765       fi
11766       hardcode_libdir_flag_spec='-L$libdir'
11767       hardcode_direct=yes
11768       hardcode_minus_L=yes
11769       hardcode_shlibpath_var=no
11770       ;;
11771
11772     sysv4)
11773       case $host_vendor in
11774         sni)
11775           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11776           hardcode_direct=yes # is this really true???
11777         ;;
11778         siemens)
11779           ## LD is ld it makes a PLAMLIB
11780           ## CC just makes a GrossModule.
11781           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11782           reload_cmds='$CC -r -o $output$reload_objs'
11783           hardcode_direct=no
11784         ;;
11785         motorola)
11786           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11787           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11788         ;;
11789       esac
11790       runpath_var='LD_RUN_PATH'
11791       hardcode_shlibpath_var=no
11792       ;;
11793
11794     sysv4.3*)
11795       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11796       hardcode_shlibpath_var=no
11797       export_dynamic_flag_spec='-Bexport'
11798       ;;
11799
11800     sysv4*MP*)
11801       if test -d /usr/nec; then
11802         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11803         hardcode_shlibpath_var=no
11804         runpath_var=LD_RUN_PATH
11805         hardcode_runpath_var=yes
11806         ld_shlibs=yes
11807       fi
11808       ;;
11809
11810     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11811       no_undefined_flag='${wl}-z,text'
11812       archive_cmds_need_lc=no
11813       hardcode_shlibpath_var=no
11814       runpath_var='LD_RUN_PATH'
11815
11816       if test "$GCC" = yes; then
11817         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11818         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11819       else
11820         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11821         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11822       fi
11823       ;;
11824
11825     sysv5* | sco3.2v5* | sco5v6*)
11826       # Note: We can NOT use -z defs as we might desire, because we do not
11827       # link with -lc, and that would cause any symbols used from libc to
11828       # always be unresolved, which means just about no library would
11829       # ever link correctly.  If we're not using GNU ld we use -z text
11830       # though, which does catch some bad symbols but isn't as heavy-handed
11831       # as -z defs.
11832       no_undefined_flag='${wl}-z,text'
11833       allow_undefined_flag='${wl}-z,nodefs'
11834       archive_cmds_need_lc=no
11835       hardcode_shlibpath_var=no
11836       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11837       hardcode_libdir_separator=':'
11838       link_all_deplibs=yes
11839       export_dynamic_flag_spec='${wl}-Bexport'
11840       runpath_var='LD_RUN_PATH'
11841
11842       if test "$GCC" = yes; then
11843         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11844         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11845       else
11846         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11847         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11848       fi
11849       ;;
11850
11851     uts4*)
11852       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11853       hardcode_libdir_flag_spec='-L$libdir'
11854       hardcode_shlibpath_var=no
11855       ;;
11856
11857     *)
11858       ld_shlibs=no
11859       ;;
11860     esac
11861
11862     if test x$host_vendor = xsni; then
11863       case $host in
11864       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11865         export_dynamic_flag_spec='${wl}-Blargedynsym'
11866         ;;
11867       esac
11868     fi
11869   fi
11870
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11872 $as_echo "$ld_shlibs" >&6; }
11873 test "$ld_shlibs" = no && can_build_shared=no
11874
11875 with_gnu_ld=$with_gnu_ld
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891 #
11892 # Do we need to explicitly link libc?
11893 #
11894 case "x$archive_cmds_need_lc" in
11895 x|xyes)
11896   # Assume -lc should be added
11897   archive_cmds_need_lc=yes
11898
11899   if test "$enable_shared" = yes && test "$GCC" = yes; then
11900     case $archive_cmds in
11901     *'~'*)
11902       # FIXME: we may have to deal with multi-command sequences.
11903       ;;
11904     '$CC '*)
11905       # Test whether the compiler implicitly links with -lc since on some
11906       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11907       # to ld, don't add -lc before -lgcc.
11908       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11909 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11910 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
11911   $as_echo_n "(cached) " >&6
11912 else
11913   $RM conftest*
11914         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11915
11916         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11917   (eval $ac_compile) 2>&5
11918   ac_status=$?
11919   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11920   test $ac_status = 0; } 2>conftest.err; then
11921           soname=conftest
11922           lib=conftest
11923           libobjs=conftest.$ac_objext
11924           deplibs=
11925           wl=$lt_prog_compiler_wl
11926           pic_flag=$lt_prog_compiler_pic
11927           compiler_flags=-v
11928           linker_flags=-v
11929           verstring=
11930           output_objdir=.
11931           libname=conftest
11932           lt_save_allow_undefined_flag=$allow_undefined_flag
11933           allow_undefined_flag=
11934           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11935   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11936   ac_status=$?
11937   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11938   test $ac_status = 0; }
11939           then
11940             lt_cv_archive_cmds_need_lc=no
11941           else
11942             lt_cv_archive_cmds_need_lc=yes
11943           fi
11944           allow_undefined_flag=$lt_save_allow_undefined_flag
11945         else
11946           cat conftest.err 1>&5
11947         fi
11948         $RM conftest*
11949
11950 fi
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11952 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11953       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11954       ;;
11955     esac
11956   fi
11957   ;;
11958 esac
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12117 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12118
12119 if test "$GCC" = yes; then
12120   case $host_os in
12121     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12122     *) lt_awk_arg="/^libraries:/" ;;
12123   esac
12124   case $host_os in
12125     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12126     *) lt_sed_strip_eq="s,=/,/,g" ;;
12127   esac
12128   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12129   case $lt_search_path_spec in
12130   *\;*)
12131     # if the path contains ";" then we assume it to be the separator
12132     # otherwise default to the standard path separator (i.e. ":") - it is
12133     # assumed that no part of a normal pathname contains ";" but that should
12134     # okay in the real world where ";" in dirpaths is itself problematic.
12135     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12136     ;;
12137   *)
12138     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12139     ;;
12140   esac
12141   # Ok, now we have the path, separated by spaces, we can step through it
12142   # and add multilib dir if necessary.
12143   lt_tmp_lt_search_path_spec=
12144   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12145   for lt_sys_path in $lt_search_path_spec; do
12146     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12147       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12148     else
12149       test -d "$lt_sys_path" && \
12150         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12151     fi
12152   done
12153   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12154 BEGIN {RS=" "; FS="/|\n";} {
12155   lt_foo="";
12156   lt_count=0;
12157   for (lt_i = NF; lt_i > 0; lt_i--) {
12158     if ($lt_i != "" && $lt_i != ".") {
12159       if ($lt_i == "..") {
12160         lt_count++;
12161       } else {
12162         if (lt_count == 0) {
12163           lt_foo="/" $lt_i lt_foo;
12164         } else {
12165           lt_count--;
12166         }
12167       }
12168     }
12169   }
12170   if (lt_foo != "") { lt_freq[lt_foo]++; }
12171   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12172 }'`
12173   # AWK program above erroneously prepends '/' to C:/dos/paths
12174   # for these hosts.
12175   case $host_os in
12176     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12177       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12178   esac
12179   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12180 else
12181   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12182 fi
12183 library_names_spec=
12184 libname_spec='lib$name'
12185 soname_spec=
12186 shrext_cmds=".so"
12187 postinstall_cmds=
12188 postuninstall_cmds=
12189 finish_cmds=
12190 finish_eval=
12191 shlibpath_var=
12192 shlibpath_overrides_runpath=unknown
12193 version_type=none
12194 dynamic_linker="$host_os ld.so"
12195 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12196 need_lib_prefix=unknown
12197 hardcode_into_libs=no
12198
12199 # when you set need_version to no, make sure it does not cause -set_version
12200 # flags to be left without arguments
12201 need_version=unknown
12202
12203 case $host_os in
12204 aix3*)
12205   version_type=linux
12206   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12207   shlibpath_var=LIBPATH
12208
12209   # AIX 3 has no versioning support, so we append a major version to the name.
12210   soname_spec='${libname}${release}${shared_ext}$major'
12211   ;;
12212
12213 aix[4-9]*)
12214   version_type=linux
12215   need_lib_prefix=no
12216   need_version=no
12217   hardcode_into_libs=yes
12218   if test "$host_cpu" = ia64; then
12219     # AIX 5 supports IA64
12220     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12221     shlibpath_var=LD_LIBRARY_PATH
12222   else
12223     # With GCC up to 2.95.x, collect2 would create an import file
12224     # for dependence libraries.  The import file would start with
12225     # the line `#! .'.  This would cause the generated library to
12226     # depend on `.', always an invalid library.  This was fixed in
12227     # development snapshots of GCC prior to 3.0.
12228     case $host_os in
12229       aix4 | aix4.[01] | aix4.[01].*)
12230       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12231            echo ' yes '
12232            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12233         :
12234       else
12235         can_build_shared=no
12236       fi
12237       ;;
12238     esac
12239     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12240     # soname into executable. Probably we can add versioning support to
12241     # collect2, so additional links can be useful in future.
12242     if test "$aix_use_runtimelinking" = yes; then
12243       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12244       # instead of lib<name>.a to let people know that these are not
12245       # typical AIX shared libraries.
12246       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12247     else
12248       # We preserve .a as extension for shared libraries through AIX4.2
12249       # and later when we are not doing run time linking.
12250       library_names_spec='${libname}${release}.a $libname.a'
12251       soname_spec='${libname}${release}${shared_ext}$major'
12252     fi
12253     shlibpath_var=LIBPATH
12254   fi
12255   ;;
12256
12257 amigaos*)
12258   case $host_cpu in
12259   powerpc)
12260     # Since July 2007 AmigaOS4 officially supports .so libraries.
12261     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12262     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12263     ;;
12264   m68k)
12265     library_names_spec='$libname.ixlibrary $libname.a'
12266     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12267     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'
12268     ;;
12269   esac
12270   ;;
12271
12272 beos*)
12273   library_names_spec='${libname}${shared_ext}'
12274   dynamic_linker="$host_os ld.so"
12275   shlibpath_var=LIBRARY_PATH
12276   ;;
12277
12278 bsdi[45]*)
12279   version_type=linux
12280   need_version=no
12281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12282   soname_spec='${libname}${release}${shared_ext}$major'
12283   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12284   shlibpath_var=LD_LIBRARY_PATH
12285   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12286   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12287   # the default ld.so.conf also contains /usr/contrib/lib and
12288   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12289   # libtool to hard-code these into programs
12290   ;;
12291
12292 cygwin* | mingw* | pw32* | cegcc*)
12293   version_type=windows
12294   shrext_cmds=".dll"
12295   need_version=no
12296   need_lib_prefix=no
12297
12298   case $GCC,$host_os in
12299   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12300     library_names_spec='$libname.dll.a'
12301     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12302     postinstall_cmds='base_file=`basename \${file}`~
12303       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12304       dldir=$destdir/`dirname \$dlpath`~
12305       test -d \$dldir || mkdir -p \$dldir~
12306       $install_prog $dir/$dlname \$dldir/$dlname~
12307       chmod a+x \$dldir/$dlname~
12308       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12309         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12310       fi'
12311     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12312       dlpath=$dir/\$dldll~
12313        $RM \$dlpath'
12314     shlibpath_overrides_runpath=yes
12315
12316     case $host_os in
12317     cygwin*)
12318       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12319       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12320
12321       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12322       ;;
12323     mingw* | cegcc*)
12324       # MinGW DLLs use traditional 'lib' prefix
12325       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12326       ;;
12327     pw32*)
12328       # pw32 DLLs use 'pw' prefix rather than 'lib'
12329       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12330       ;;
12331     esac
12332     ;;
12333
12334   *)
12335     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12336     ;;
12337   esac
12338   dynamic_linker='Win32 ld.exe'
12339   # FIXME: first we should search . and the directory the executable is in
12340   shlibpath_var=PATH
12341   ;;
12342
12343 darwin* | rhapsody*)
12344   dynamic_linker="$host_os dyld"
12345   version_type=darwin
12346   need_lib_prefix=no
12347   need_version=no
12348   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12349   soname_spec='${libname}${release}${major}$shared_ext'
12350   shlibpath_overrides_runpath=yes
12351   shlibpath_var=DYLD_LIBRARY_PATH
12352   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12353
12354   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12355   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12356   ;;
12357
12358 dgux*)
12359   version_type=linux
12360   need_lib_prefix=no
12361   need_version=no
12362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12363   soname_spec='${libname}${release}${shared_ext}$major'
12364   shlibpath_var=LD_LIBRARY_PATH
12365   ;;
12366
12367 freebsd1*)
12368   dynamic_linker=no
12369   ;;
12370
12371 freebsd* | dragonfly*)
12372   # DragonFly does not have aout.  When/if they implement a new
12373   # versioning mechanism, adjust this.
12374   if test -x /usr/bin/objformat; then
12375     objformat=`/usr/bin/objformat`
12376   else
12377     case $host_os in
12378     freebsd[123]*) objformat=aout ;;
12379     *) objformat=elf ;;
12380     esac
12381   fi
12382   version_type=freebsd-$objformat
12383   case $version_type in
12384     freebsd-elf*)
12385       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12386       need_version=no
12387       need_lib_prefix=no
12388       ;;
12389     freebsd-*)
12390       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12391       need_version=yes
12392       ;;
12393   esac
12394   shlibpath_var=LD_LIBRARY_PATH
12395   case $host_os in
12396   freebsd2*)
12397     shlibpath_overrides_runpath=yes
12398     ;;
12399   freebsd3.[01]* | freebsdelf3.[01]*)
12400     shlibpath_overrides_runpath=yes
12401     hardcode_into_libs=yes
12402     ;;
12403   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12404   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12405     shlibpath_overrides_runpath=no
12406     hardcode_into_libs=yes
12407     ;;
12408   *) # from 4.6 on, and DragonFly
12409     shlibpath_overrides_runpath=yes
12410     hardcode_into_libs=yes
12411     ;;
12412   esac
12413   ;;
12414
12415 gnu*)
12416   version_type=linux
12417   need_lib_prefix=no
12418   need_version=no
12419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12420   soname_spec='${libname}${release}${shared_ext}$major'
12421   shlibpath_var=LD_LIBRARY_PATH
12422   hardcode_into_libs=yes
12423   ;;
12424
12425 haiku*)
12426   version_type=linux
12427   need_lib_prefix=no
12428   need_version=no
12429   dynamic_linker="$host_os runtime_loader"
12430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12431   soname_spec='${libname}${release}${shared_ext}$major'
12432   shlibpath_var=LIBRARY_PATH
12433   shlibpath_overrides_runpath=yes
12434   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
12435   hardcode_into_libs=yes
12436   ;;
12437
12438 hpux9* | hpux10* | hpux11*)
12439   # Give a soname corresponding to the major version so that dld.sl refuses to
12440   # link against other versions.
12441   version_type=sunos
12442   need_lib_prefix=no
12443   need_version=no
12444   case $host_cpu in
12445   ia64*)
12446     shrext_cmds='.so'
12447     hardcode_into_libs=yes
12448     dynamic_linker="$host_os dld.so"
12449     shlibpath_var=LD_LIBRARY_PATH
12450     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12451     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12452     soname_spec='${libname}${release}${shared_ext}$major'
12453     if test "X$HPUX_IA64_MODE" = X32; then
12454       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12455     else
12456       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12457     fi
12458     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12459     ;;
12460   hppa*64*)
12461     shrext_cmds='.sl'
12462     hardcode_into_libs=yes
12463     dynamic_linker="$host_os dld.sl"
12464     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12465     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12466     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12467     soname_spec='${libname}${release}${shared_ext}$major'
12468     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12469     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12470     ;;
12471   *)
12472     shrext_cmds='.sl'
12473     dynamic_linker="$host_os dld.sl"
12474     shlibpath_var=SHLIB_PATH
12475     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12476     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12477     soname_spec='${libname}${release}${shared_ext}$major'
12478     ;;
12479   esac
12480   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12481   postinstall_cmds='chmod 555 $lib'
12482   # or fails outright, so override atomically:
12483   install_override_mode=555
12484   ;;
12485
12486 interix[3-9]*)
12487   version_type=linux
12488   need_lib_prefix=no
12489   need_version=no
12490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12491   soname_spec='${libname}${release}${shared_ext}$major'
12492   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12493   shlibpath_var=LD_LIBRARY_PATH
12494   shlibpath_overrides_runpath=no
12495   hardcode_into_libs=yes
12496   ;;
12497
12498 irix5* | irix6* | nonstopux*)
12499   case $host_os in
12500     nonstopux*) version_type=nonstopux ;;
12501     *)
12502         if test "$lt_cv_prog_gnu_ld" = yes; then
12503                 version_type=linux
12504         else
12505                 version_type=irix
12506         fi ;;
12507   esac
12508   need_lib_prefix=no
12509   need_version=no
12510   soname_spec='${libname}${release}${shared_ext}$major'
12511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12512   case $host_os in
12513   irix5* | nonstopux*)
12514     libsuff= shlibsuff=
12515     ;;
12516   *)
12517     case $LD in # libtool.m4 will add one of these switches to LD
12518     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12519       libsuff= shlibsuff= libmagic=32-bit;;
12520     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12521       libsuff=32 shlibsuff=N32 libmagic=N32;;
12522     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12523       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12524     *) libsuff= shlibsuff= libmagic=never-match;;
12525     esac
12526     ;;
12527   esac
12528   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12529   shlibpath_overrides_runpath=no
12530   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12531   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12532   hardcode_into_libs=yes
12533   ;;
12534
12535 # No shared lib support for Linux oldld, aout, or coff.
12536 linux*oldld* | linux*aout* | linux*coff*)
12537   dynamic_linker=no
12538   ;;
12539
12540 # This must be Linux ELF.
12541 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12542   version_type=linux
12543   need_lib_prefix=no
12544   need_version=no
12545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12546   soname_spec='${libname}${release}${shared_ext}$major'
12547   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12548   shlibpath_var=LD_LIBRARY_PATH
12549   shlibpath_overrides_runpath=no
12550
12551   # Some binutils ld are patched to set DT_RUNPATH
12552   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12553   $as_echo_n "(cached) " >&6
12554 else
12555   lt_cv_shlibpath_overrides_runpath=no
12556     save_LDFLAGS=$LDFLAGS
12557     save_libdir=$libdir
12558     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12559          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12560     if test x$gcc_no_link = xyes; then
12561   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12562 fi
12563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12564 /* end confdefs.h.  */
12565
12566 int
12567 main ()
12568 {
12569
12570   ;
12571   return 0;
12572 }
12573 _ACEOF
12574 if ac_fn_c_try_link "$LINENO"; then :
12575   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12576   lt_cv_shlibpath_overrides_runpath=yes
12577 fi
12578 fi
12579 rm -f core conftest.err conftest.$ac_objext \
12580     conftest$ac_exeext conftest.$ac_ext
12581     LDFLAGS=$save_LDFLAGS
12582     libdir=$save_libdir
12583
12584 fi
12585
12586   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12587
12588   # This implies no fast_install, which is unacceptable.
12589   # Some rework will be needed to allow for fast_install
12590   # before this can be enabled.
12591   hardcode_into_libs=yes
12592
12593   # Append ld.so.conf contents to the search path
12594   if test -f /etc/ld.so.conf; then
12595     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' ' '`
12596     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12597   fi
12598
12599   # We used to test for /lib/ld.so.1 and disable shared libraries on
12600   # powerpc, because MkLinux only supported shared libraries with the
12601   # GNU dynamic linker.  Since this was broken with cross compilers,
12602   # most powerpc-linux boxes support dynamic linking these days and
12603   # people can always --disable-shared, the test was removed, and we
12604   # assume the GNU/Linux dynamic linker is in use.
12605   dynamic_linker='GNU/Linux ld.so'
12606   ;;
12607
12608 netbsd*)
12609   version_type=sunos
12610   need_lib_prefix=no
12611   need_version=no
12612   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12613     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12614     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12615     dynamic_linker='NetBSD (a.out) ld.so'
12616   else
12617     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12618     soname_spec='${libname}${release}${shared_ext}$major'
12619     dynamic_linker='NetBSD ld.elf_so'
12620   fi
12621   shlibpath_var=LD_LIBRARY_PATH
12622   shlibpath_overrides_runpath=yes
12623   hardcode_into_libs=yes
12624   ;;
12625
12626 newsos6)
12627   version_type=linux
12628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12629   shlibpath_var=LD_LIBRARY_PATH
12630   shlibpath_overrides_runpath=yes
12631   ;;
12632
12633 *nto* | *qnx*)
12634   version_type=qnx
12635   need_lib_prefix=no
12636   need_version=no
12637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12638   soname_spec='${libname}${release}${shared_ext}$major'
12639   shlibpath_var=LD_LIBRARY_PATH
12640   shlibpath_overrides_runpath=no
12641   hardcode_into_libs=yes
12642   dynamic_linker='ldqnx.so'
12643   ;;
12644
12645 openbsd*)
12646   version_type=sunos
12647   sys_lib_dlsearch_path_spec="/usr/lib"
12648   need_lib_prefix=no
12649   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12650   case $host_os in
12651     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12652     *)                          need_version=no  ;;
12653   esac
12654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12655   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12656   shlibpath_var=LD_LIBRARY_PATH
12657   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12658     case $host_os in
12659       openbsd2.[89] | openbsd2.[89].*)
12660         shlibpath_overrides_runpath=no
12661         ;;
12662       *)
12663         shlibpath_overrides_runpath=yes
12664         ;;
12665       esac
12666   else
12667     shlibpath_overrides_runpath=yes
12668   fi
12669   ;;
12670
12671 os2*)
12672   libname_spec='$name'
12673   shrext_cmds=".dll"
12674   need_lib_prefix=no
12675   library_names_spec='$libname${shared_ext} $libname.a'
12676   dynamic_linker='OS/2 ld.exe'
12677   shlibpath_var=LIBPATH
12678   ;;
12679
12680 osf3* | osf4* | osf5*)
12681   version_type=osf
12682   need_lib_prefix=no
12683   need_version=no
12684   soname_spec='${libname}${release}${shared_ext}$major'
12685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12686   shlibpath_var=LD_LIBRARY_PATH
12687   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12688   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12689   ;;
12690
12691 rdos*)
12692   dynamic_linker=no
12693   ;;
12694
12695 solaris*)
12696   version_type=linux
12697   need_lib_prefix=no
12698   need_version=no
12699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12700   soname_spec='${libname}${release}${shared_ext}$major'
12701   shlibpath_var=LD_LIBRARY_PATH
12702   shlibpath_overrides_runpath=yes
12703   hardcode_into_libs=yes
12704   # ldd complains unless libraries are executable
12705   postinstall_cmds='chmod +x $lib'
12706   ;;
12707
12708 sunos4*)
12709   version_type=sunos
12710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12711   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12712   shlibpath_var=LD_LIBRARY_PATH
12713   shlibpath_overrides_runpath=yes
12714   if test "$with_gnu_ld" = yes; then
12715     need_lib_prefix=no
12716   fi
12717   need_version=yes
12718   ;;
12719
12720 sysv4 | sysv4.3*)
12721   version_type=linux
12722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12723   soname_spec='${libname}${release}${shared_ext}$major'
12724   shlibpath_var=LD_LIBRARY_PATH
12725   case $host_vendor in
12726     sni)
12727       shlibpath_overrides_runpath=no
12728       need_lib_prefix=no
12729       runpath_var=LD_RUN_PATH
12730       ;;
12731     siemens)
12732       need_lib_prefix=no
12733       ;;
12734     motorola)
12735       need_lib_prefix=no
12736       need_version=no
12737       shlibpath_overrides_runpath=no
12738       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12739       ;;
12740   esac
12741   ;;
12742
12743 sysv4*MP*)
12744   if test -d /usr/nec ;then
12745     version_type=linux
12746     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12747     soname_spec='$libname${shared_ext}.$major'
12748     shlibpath_var=LD_LIBRARY_PATH
12749   fi
12750   ;;
12751
12752 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12753   version_type=freebsd-elf
12754   need_lib_prefix=no
12755   need_version=no
12756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12757   soname_spec='${libname}${release}${shared_ext}$major'
12758   shlibpath_var=LD_LIBRARY_PATH
12759   shlibpath_overrides_runpath=yes
12760   hardcode_into_libs=yes
12761   if test "$with_gnu_ld" = yes; then
12762     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12763   else
12764     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12765     case $host_os in
12766       sco3.2v5*)
12767         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12768         ;;
12769     esac
12770   fi
12771   sys_lib_dlsearch_path_spec='/usr/lib'
12772   ;;
12773
12774 tpf*)
12775   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12776   version_type=linux
12777   need_lib_prefix=no
12778   need_version=no
12779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12780   shlibpath_var=LD_LIBRARY_PATH
12781   shlibpath_overrides_runpath=no
12782   hardcode_into_libs=yes
12783   ;;
12784
12785 uts4*)
12786   version_type=linux
12787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12788   soname_spec='${libname}${release}${shared_ext}$major'
12789   shlibpath_var=LD_LIBRARY_PATH
12790   ;;
12791
12792 *)
12793   dynamic_linker=no
12794   ;;
12795 esac
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12797 $as_echo "$dynamic_linker" >&6; }
12798 test "$dynamic_linker" = no && can_build_shared=no
12799
12800 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12801 if test "$GCC" = yes; then
12802   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12803 fi
12804
12805 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12806   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12807 fi
12808 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12809   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12810 fi
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12904 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12905 hardcode_action=
12906 if test -n "$hardcode_libdir_flag_spec" ||
12907    test -n "$runpath_var" ||
12908    test "X$hardcode_automatic" = "Xyes" ; then
12909
12910   # We can hardcode non-existent directories.
12911   if test "$hardcode_direct" != no &&
12912      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12913      # have to relink, otherwise we might link with an installed library
12914      # when we should be linking with a yet-to-be-installed one
12915      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12916      test "$hardcode_minus_L" != no; then
12917     # Linking always hardcodes the temporary library directory.
12918     hardcode_action=relink
12919   else
12920     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12921     hardcode_action=immediate
12922   fi
12923 else
12924   # We cannot hardcode anything, or else we can only hardcode existing
12925   # directories.
12926   hardcode_action=unsupported
12927 fi
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12929 $as_echo "$hardcode_action" >&6; }
12930
12931 if test "$hardcode_action" = relink ||
12932    test "$inherit_rpath" = yes; then
12933   # Fast installation is not supported
12934   enable_fast_install=no
12935 elif test "$shlibpath_overrides_runpath" = yes ||
12936      test "$enable_shared" = no; then
12937   # Fast installation is not necessary
12938   enable_fast_install=needless
12939 fi
12940
12941
12942
12943
12944
12945
12946   if test "x$enable_dlopen" != xyes; then
12947   enable_dlopen=unknown
12948   enable_dlopen_self=unknown
12949   enable_dlopen_self_static=unknown
12950 else
12951   lt_cv_dlopen=no
12952   lt_cv_dlopen_libs=
12953
12954   case $host_os in
12955   beos*)
12956     lt_cv_dlopen="load_add_on"
12957     lt_cv_dlopen_libs=
12958     lt_cv_dlopen_self=yes
12959     ;;
12960
12961   mingw* | pw32* | cegcc*)
12962     lt_cv_dlopen="LoadLibrary"
12963     lt_cv_dlopen_libs=
12964     ;;
12965
12966   cygwin*)
12967     lt_cv_dlopen="dlopen"
12968     lt_cv_dlopen_libs=
12969     ;;
12970
12971   darwin*)
12972   # if libdl is installed we need to link against it
12973     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12974 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12975 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12976   $as_echo_n "(cached) " >&6
12977 else
12978   ac_check_lib_save_LIBS=$LIBS
12979 LIBS="-ldl  $LIBS"
12980 if test x$gcc_no_link = xyes; then
12981   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12982 fi
12983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12984 /* end confdefs.h.  */
12985
12986 /* Override any GCC internal prototype to avoid an error.
12987    Use char because int might match the return type of a GCC
12988    builtin and then its argument prototype would still apply.  */
12989 #ifdef __cplusplus
12990 extern "C"
12991 #endif
12992 char dlopen ();
12993 int
12994 main ()
12995 {
12996 return dlopen ();
12997   ;
12998   return 0;
12999 }
13000 _ACEOF
13001 if ac_fn_c_try_link "$LINENO"; then :
13002   ac_cv_lib_dl_dlopen=yes
13003 else
13004   ac_cv_lib_dl_dlopen=no
13005 fi
13006 rm -f core conftest.err conftest.$ac_objext \
13007     conftest$ac_exeext conftest.$ac_ext
13008 LIBS=$ac_check_lib_save_LIBS
13009 fi
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13011 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13012 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13013   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13014 else
13015
13016     lt_cv_dlopen="dyld"
13017     lt_cv_dlopen_libs=
13018     lt_cv_dlopen_self=yes
13019
13020 fi
13021
13022     ;;
13023
13024   *)
13025     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13026 if test "x$ac_cv_func_shl_load" = x""yes; then :
13027   lt_cv_dlopen="shl_load"
13028 else
13029   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13030 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13031 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13032   $as_echo_n "(cached) " >&6
13033 else
13034   ac_check_lib_save_LIBS=$LIBS
13035 LIBS="-ldld  $LIBS"
13036 if test x$gcc_no_link = xyes; then
13037   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13038 fi
13039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13040 /* end confdefs.h.  */
13041
13042 /* Override any GCC internal prototype to avoid an error.
13043    Use char because int might match the return type of a GCC
13044    builtin and then its argument prototype would still apply.  */
13045 #ifdef __cplusplus
13046 extern "C"
13047 #endif
13048 char shl_load ();
13049 int
13050 main ()
13051 {
13052 return shl_load ();
13053   ;
13054   return 0;
13055 }
13056 _ACEOF
13057 if ac_fn_c_try_link "$LINENO"; then :
13058   ac_cv_lib_dld_shl_load=yes
13059 else
13060   ac_cv_lib_dld_shl_load=no
13061 fi
13062 rm -f core conftest.err conftest.$ac_objext \
13063     conftest$ac_exeext conftest.$ac_ext
13064 LIBS=$ac_check_lib_save_LIBS
13065 fi
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13067 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13068 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13069   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13070 else
13071   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13072 if test "x$ac_cv_func_dlopen" = x""yes; then :
13073   lt_cv_dlopen="dlopen"
13074 else
13075   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13076 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13077 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13078   $as_echo_n "(cached) " >&6
13079 else
13080   ac_check_lib_save_LIBS=$LIBS
13081 LIBS="-ldl  $LIBS"
13082 if test x$gcc_no_link = xyes; then
13083   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13084 fi
13085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13086 /* end confdefs.h.  */
13087
13088 /* Override any GCC internal prototype to avoid an error.
13089    Use char because int might match the return type of a GCC
13090    builtin and then its argument prototype would still apply.  */
13091 #ifdef __cplusplus
13092 extern "C"
13093 #endif
13094 char dlopen ();
13095 int
13096 main ()
13097 {
13098 return dlopen ();
13099   ;
13100   return 0;
13101 }
13102 _ACEOF
13103 if ac_fn_c_try_link "$LINENO"; then :
13104   ac_cv_lib_dl_dlopen=yes
13105 else
13106   ac_cv_lib_dl_dlopen=no
13107 fi
13108 rm -f core conftest.err conftest.$ac_objext \
13109     conftest$ac_exeext conftest.$ac_ext
13110 LIBS=$ac_check_lib_save_LIBS
13111 fi
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13113 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13114 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13115   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13116 else
13117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13118 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13119 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13120   $as_echo_n "(cached) " >&6
13121 else
13122   ac_check_lib_save_LIBS=$LIBS
13123 LIBS="-lsvld  $LIBS"
13124 if test x$gcc_no_link = xyes; then
13125   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13126 fi
13127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13128 /* end confdefs.h.  */
13129
13130 /* Override any GCC internal prototype to avoid an error.
13131    Use char because int might match the return type of a GCC
13132    builtin and then its argument prototype would still apply.  */
13133 #ifdef __cplusplus
13134 extern "C"
13135 #endif
13136 char dlopen ();
13137 int
13138 main ()
13139 {
13140 return dlopen ();
13141   ;
13142   return 0;
13143 }
13144 _ACEOF
13145 if ac_fn_c_try_link "$LINENO"; then :
13146   ac_cv_lib_svld_dlopen=yes
13147 else
13148   ac_cv_lib_svld_dlopen=no
13149 fi
13150 rm -f core conftest.err conftest.$ac_objext \
13151     conftest$ac_exeext conftest.$ac_ext
13152 LIBS=$ac_check_lib_save_LIBS
13153 fi
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13155 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13156 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13157   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13158 else
13159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13160 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13161 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13162   $as_echo_n "(cached) " >&6
13163 else
13164   ac_check_lib_save_LIBS=$LIBS
13165 LIBS="-ldld  $LIBS"
13166 if test x$gcc_no_link = xyes; then
13167   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13168 fi
13169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13170 /* end confdefs.h.  */
13171
13172 /* Override any GCC internal prototype to avoid an error.
13173    Use char because int might match the return type of a GCC
13174    builtin and then its argument prototype would still apply.  */
13175 #ifdef __cplusplus
13176 extern "C"
13177 #endif
13178 char dld_link ();
13179 int
13180 main ()
13181 {
13182 return dld_link ();
13183   ;
13184   return 0;
13185 }
13186 _ACEOF
13187 if ac_fn_c_try_link "$LINENO"; then :
13188   ac_cv_lib_dld_dld_link=yes
13189 else
13190   ac_cv_lib_dld_dld_link=no
13191 fi
13192 rm -f core conftest.err conftest.$ac_objext \
13193     conftest$ac_exeext conftest.$ac_ext
13194 LIBS=$ac_check_lib_save_LIBS
13195 fi
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13197 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13198 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13199   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13200 fi
13201
13202
13203 fi
13204
13205
13206 fi
13207
13208
13209 fi
13210
13211
13212 fi
13213
13214
13215 fi
13216
13217     ;;
13218   esac
13219
13220   if test "x$lt_cv_dlopen" != xno; then
13221     enable_dlopen=yes
13222   else
13223     enable_dlopen=no
13224   fi
13225
13226   case $lt_cv_dlopen in
13227   dlopen)
13228     save_CPPFLAGS="$CPPFLAGS"
13229     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13230
13231     save_LDFLAGS="$LDFLAGS"
13232     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13233
13234     save_LIBS="$LIBS"
13235     LIBS="$lt_cv_dlopen_libs $LIBS"
13236
13237     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13238 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13239 if test "${lt_cv_dlopen_self+set}" = set; then :
13240   $as_echo_n "(cached) " >&6
13241 else
13242           if test "$cross_compiling" = yes; then :
13243   lt_cv_dlopen_self=cross
13244 else
13245   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13246   lt_status=$lt_dlunknown
13247   cat > conftest.$ac_ext <<_LT_EOF
13248 #line 13248 "configure"
13249 #include "confdefs.h"
13250
13251 #if HAVE_DLFCN_H
13252 #include <dlfcn.h>
13253 #endif
13254
13255 #include <stdio.h>
13256
13257 #ifdef RTLD_GLOBAL
13258 #  define LT_DLGLOBAL           RTLD_GLOBAL
13259 #else
13260 #  ifdef DL_GLOBAL
13261 #    define LT_DLGLOBAL         DL_GLOBAL
13262 #  else
13263 #    define LT_DLGLOBAL         0
13264 #  endif
13265 #endif
13266
13267 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13268    find out it does not work in some platform. */
13269 #ifndef LT_DLLAZY_OR_NOW
13270 #  ifdef RTLD_LAZY
13271 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13272 #  else
13273 #    ifdef DL_LAZY
13274 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13275 #    else
13276 #      ifdef RTLD_NOW
13277 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13278 #      else
13279 #        ifdef DL_NOW
13280 #          define LT_DLLAZY_OR_NOW      DL_NOW
13281 #        else
13282 #          define LT_DLLAZY_OR_NOW      0
13283 #        endif
13284 #      endif
13285 #    endif
13286 #  endif
13287 #endif
13288
13289 /* When -fvisbility=hidden is used, assume the code has been annotated
13290    correspondingly for the symbols needed.  */
13291 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13292 void fnord () __attribute__((visibility("default")));
13293 #endif
13294
13295 void fnord () { int i=42; }
13296 int main ()
13297 {
13298   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13299   int status = $lt_dlunknown;
13300
13301   if (self)
13302     {
13303       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13304       else
13305         {
13306           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13307           else puts (dlerror ());
13308         }
13309       /* dlclose (self); */
13310     }
13311   else
13312     puts (dlerror ());
13313
13314   return status;
13315 }
13316 _LT_EOF
13317   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13318   (eval $ac_link) 2>&5
13319   ac_status=$?
13320   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13321   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13322     (./conftest; exit; ) >&5 2>/dev/null
13323     lt_status=$?
13324     case x$lt_status in
13325       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13326       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13327       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13328     esac
13329   else :
13330     # compilation failed
13331     lt_cv_dlopen_self=no
13332   fi
13333 fi
13334 rm -fr conftest*
13335
13336
13337 fi
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13339 $as_echo "$lt_cv_dlopen_self" >&6; }
13340
13341     if test "x$lt_cv_dlopen_self" = xyes; then
13342       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13343       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13344 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13345 if test "${lt_cv_dlopen_self_static+set}" = set; then :
13346   $as_echo_n "(cached) " >&6
13347 else
13348           if test "$cross_compiling" = yes; then :
13349   lt_cv_dlopen_self_static=cross
13350 else
13351   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13352   lt_status=$lt_dlunknown
13353   cat > conftest.$ac_ext <<_LT_EOF
13354 #line 13354 "configure"
13355 #include "confdefs.h"
13356
13357 #if HAVE_DLFCN_H
13358 #include <dlfcn.h>
13359 #endif
13360
13361 #include <stdio.h>
13362
13363 #ifdef RTLD_GLOBAL
13364 #  define LT_DLGLOBAL           RTLD_GLOBAL
13365 #else
13366 #  ifdef DL_GLOBAL
13367 #    define LT_DLGLOBAL         DL_GLOBAL
13368 #  else
13369 #    define LT_DLGLOBAL         0
13370 #  endif
13371 #endif
13372
13373 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13374    find out it does not work in some platform. */
13375 #ifndef LT_DLLAZY_OR_NOW
13376 #  ifdef RTLD_LAZY
13377 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13378 #  else
13379 #    ifdef DL_LAZY
13380 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13381 #    else
13382 #      ifdef RTLD_NOW
13383 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13384 #      else
13385 #        ifdef DL_NOW
13386 #          define LT_DLLAZY_OR_NOW      DL_NOW
13387 #        else
13388 #          define LT_DLLAZY_OR_NOW      0
13389 #        endif
13390 #      endif
13391 #    endif
13392 #  endif
13393 #endif
13394
13395 /* When -fvisbility=hidden is used, assume the code has been annotated
13396    correspondingly for the symbols needed.  */
13397 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13398 void fnord () __attribute__((visibility("default")));
13399 #endif
13400
13401 void fnord () { int i=42; }
13402 int main ()
13403 {
13404   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13405   int status = $lt_dlunknown;
13406
13407   if (self)
13408     {
13409       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13410       else
13411         {
13412           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13413           else puts (dlerror ());
13414         }
13415       /* dlclose (self); */
13416     }
13417   else
13418     puts (dlerror ());
13419
13420   return status;
13421 }
13422 _LT_EOF
13423   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13424   (eval $ac_link) 2>&5
13425   ac_status=$?
13426   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13427   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13428     (./conftest; exit; ) >&5 2>/dev/null
13429     lt_status=$?
13430     case x$lt_status in
13431       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13432       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13433       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13434     esac
13435   else :
13436     # compilation failed
13437     lt_cv_dlopen_self_static=no
13438   fi
13439 fi
13440 rm -fr conftest*
13441
13442
13443 fi
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13445 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13446     fi
13447
13448     CPPFLAGS="$save_CPPFLAGS"
13449     LDFLAGS="$save_LDFLAGS"
13450     LIBS="$save_LIBS"
13451     ;;
13452   esac
13453
13454   case $lt_cv_dlopen_self in
13455   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13456   *) enable_dlopen_self=unknown ;;
13457   esac
13458
13459   case $lt_cv_dlopen_self_static in
13460   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13461   *) enable_dlopen_self_static=unknown ;;
13462   esac
13463 fi
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481 striplib=
13482 old_striplib=
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13484 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13485 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13486   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13487   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13489 $as_echo "yes" >&6; }
13490 else
13491 # FIXME - insert some real tests, host_os isn't really good enough
13492   case $host_os in
13493   darwin*)
13494     if test -n "$STRIP" ; then
13495       striplib="$STRIP -x"
13496       old_striplib="$STRIP -S"
13497       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13498 $as_echo "yes" >&6; }
13499     else
13500       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13501 $as_echo "no" >&6; }
13502     fi
13503     ;;
13504   *)
13505     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13506 $as_echo "no" >&6; }
13507     ;;
13508   esac
13509 fi
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522   # Report which library types will actually be built
13523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13524 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13526 $as_echo "$can_build_shared" >&6; }
13527
13528   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13529 $as_echo_n "checking whether to build shared libraries... " >&6; }
13530   test "$can_build_shared" = "no" && enable_shared=no
13531
13532   # On AIX, shared libraries and static libraries use the same namespace, and
13533   # are all built from PIC.
13534   case $host_os in
13535   aix3*)
13536     test "$enable_shared" = yes && enable_static=no
13537     if test -n "$RANLIB"; then
13538       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13539       postinstall_cmds='$RANLIB $lib'
13540     fi
13541     ;;
13542
13543   aix[4-9]*)
13544     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13545       test "$enable_shared" = yes && enable_static=no
13546     fi
13547     ;;
13548   esac
13549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13550 $as_echo "$enable_shared" >&6; }
13551
13552   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13553 $as_echo_n "checking whether to build static libraries... " >&6; }
13554   # Make sure either enable_shared or enable_static is yes.
13555   test "$enable_shared" = yes || enable_static=yes
13556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13557 $as_echo "$enable_static" >&6; }
13558
13559
13560
13561
13562 fi
13563 ac_ext=c
13564 ac_cpp='$CPP $CPPFLAGS'
13565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13568
13569 CC="$lt_save_CC"
13570
13571       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13572     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13573     (test "X$CXX" != "Xg++"))) ; then
13574   ac_ext=cpp
13575 ac_cpp='$CXXCPP $CPPFLAGS'
13576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13580 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13581 if test -z "$CXXCPP"; then
13582   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13583   $as_echo_n "(cached) " >&6
13584 else
13585       # Double quotes because CXXCPP needs to be expanded
13586     for CXXCPP in "$CXX -E" "/lib/cpp"
13587     do
13588       ac_preproc_ok=false
13589 for ac_cxx_preproc_warn_flag in '' yes
13590 do
13591   # Use a header file that comes with gcc, so configuring glibc
13592   # with a fresh cross-compiler works.
13593   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13594   # <limits.h> exists even on freestanding compilers.
13595   # On the NeXT, cc -E runs the code through the compiler's parser,
13596   # not just through cpp. "Syntax error" is here to catch this case.
13597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13598 /* end confdefs.h.  */
13599 #ifdef __STDC__
13600 # include <limits.h>
13601 #else
13602 # include <assert.h>
13603 #endif
13604                      Syntax error
13605 _ACEOF
13606 if ac_fn_cxx_try_cpp "$LINENO"; then :
13607
13608 else
13609   # Broken: fails on valid input.
13610 continue
13611 fi
13612 rm -f conftest.err conftest.$ac_ext
13613
13614   # OK, works on sane cases.  Now check whether nonexistent headers
13615   # can be detected and how.
13616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13617 /* end confdefs.h.  */
13618 #include <ac_nonexistent.h>
13619 _ACEOF
13620 if ac_fn_cxx_try_cpp "$LINENO"; then :
13621   # Broken: success on invalid input.
13622 continue
13623 else
13624   # Passes both tests.
13625 ac_preproc_ok=:
13626 break
13627 fi
13628 rm -f conftest.err conftest.$ac_ext
13629
13630 done
13631 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13632 rm -f conftest.err conftest.$ac_ext
13633 if $ac_preproc_ok; then :
13634   break
13635 fi
13636
13637     done
13638     ac_cv_prog_CXXCPP=$CXXCPP
13639
13640 fi
13641   CXXCPP=$ac_cv_prog_CXXCPP
13642 else
13643   ac_cv_prog_CXXCPP=$CXXCPP
13644 fi
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13646 $as_echo "$CXXCPP" >&6; }
13647 ac_preproc_ok=false
13648 for ac_cxx_preproc_warn_flag in '' yes
13649 do
13650   # Use a header file that comes with gcc, so configuring glibc
13651   # with a fresh cross-compiler works.
13652   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13653   # <limits.h> exists even on freestanding compilers.
13654   # On the NeXT, cc -E runs the code through the compiler's parser,
13655   # not just through cpp. "Syntax error" is here to catch this case.
13656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13657 /* end confdefs.h.  */
13658 #ifdef __STDC__
13659 # include <limits.h>
13660 #else
13661 # include <assert.h>
13662 #endif
13663                      Syntax error
13664 _ACEOF
13665 if ac_fn_cxx_try_cpp "$LINENO"; then :
13666
13667 else
13668   # Broken: fails on valid input.
13669 continue
13670 fi
13671 rm -f conftest.err conftest.$ac_ext
13672
13673   # OK, works on sane cases.  Now check whether nonexistent headers
13674   # can be detected and how.
13675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13676 /* end confdefs.h.  */
13677 #include <ac_nonexistent.h>
13678 _ACEOF
13679 if ac_fn_cxx_try_cpp "$LINENO"; then :
13680   # Broken: success on invalid input.
13681 continue
13682 else
13683   # Passes both tests.
13684 ac_preproc_ok=:
13685 break
13686 fi
13687 rm -f conftest.err conftest.$ac_ext
13688
13689 done
13690 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13691 rm -f conftest.err conftest.$ac_ext
13692 if $ac_preproc_ok; then :
13693
13694 else
13695   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13697 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
13698 See \`config.log' for more details." "$LINENO" 5; }
13699 fi
13700
13701 ac_ext=c
13702 ac_cpp='$CPP $CPPFLAGS'
13703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13706
13707 else
13708   _lt_caught_CXX_error=yes
13709 fi
13710
13711 ac_ext=cpp
13712 ac_cpp='$CXXCPP $CPPFLAGS'
13713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13716
13717 archive_cmds_need_lc_CXX=no
13718 allow_undefined_flag_CXX=
13719 always_export_symbols_CXX=no
13720 archive_expsym_cmds_CXX=
13721 compiler_needs_object_CXX=no
13722 export_dynamic_flag_spec_CXX=
13723 hardcode_direct_CXX=no
13724 hardcode_direct_absolute_CXX=no
13725 hardcode_libdir_flag_spec_CXX=
13726 hardcode_libdir_flag_spec_ld_CXX=
13727 hardcode_libdir_separator_CXX=
13728 hardcode_minus_L_CXX=no
13729 hardcode_shlibpath_var_CXX=unsupported
13730 hardcode_automatic_CXX=no
13731 inherit_rpath_CXX=no
13732 module_cmds_CXX=
13733 module_expsym_cmds_CXX=
13734 link_all_deplibs_CXX=unknown
13735 old_archive_cmds_CXX=$old_archive_cmds
13736 reload_flag_CXX=$reload_flag
13737 reload_cmds_CXX=$reload_cmds
13738 no_undefined_flag_CXX=
13739 whole_archive_flag_spec_CXX=
13740 enable_shared_with_static_runtimes_CXX=no
13741
13742 # Source file extension for C++ test sources.
13743 ac_ext=cpp
13744
13745 # Object file extension for compiled C++ test sources.
13746 objext=o
13747 objext_CXX=$objext
13748
13749 # No sense in running all these tests if we already determined that
13750 # the CXX compiler isn't working.  Some variables (like enable_shared)
13751 # are currently assumed to apply to all compilers on this platform,
13752 # and will be corrupted by setting them based on a non-working compiler.
13753 if test "$_lt_caught_CXX_error" != yes; then
13754   # Code to be used in simple compile tests
13755   lt_simple_compile_test_code="int some_variable = 0;"
13756
13757   # Code to be used in simple link tests
13758   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13759
13760   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13761
13762
13763
13764
13765
13766
13767 # If no C compiler was specified, use CC.
13768 LTCC=${LTCC-"$CC"}
13769
13770 # If no C compiler flags were specified, use CFLAGS.
13771 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13772
13773 # Allow CC to be a program name with arguments.
13774 compiler=$CC
13775
13776
13777   # save warnings/boilerplate of simple test code
13778   ac_outfile=conftest.$ac_objext
13779 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13780 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13781 _lt_compiler_boilerplate=`cat conftest.err`
13782 $RM conftest*
13783
13784   ac_outfile=conftest.$ac_objext
13785 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13786 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13787 _lt_linker_boilerplate=`cat conftest.err`
13788 $RM -r conftest*
13789
13790
13791   # Allow CC to be a program name with arguments.
13792   lt_save_CC=$CC
13793   lt_save_LD=$LD
13794   lt_save_GCC=$GCC
13795   GCC=$GXX
13796   lt_save_with_gnu_ld=$with_gnu_ld
13797   lt_save_path_LD=$lt_cv_path_LD
13798   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13799     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13800   else
13801     $as_unset lt_cv_prog_gnu_ld
13802   fi
13803   if test -n "${lt_cv_path_LDCXX+set}"; then
13804     lt_cv_path_LD=$lt_cv_path_LDCXX
13805   else
13806     $as_unset lt_cv_path_LD
13807   fi
13808   test -z "${LDCXX+set}" || LD=$LDCXX
13809   CC=${CXX-"c++"}
13810   compiler=$CC
13811   compiler_CXX=$CC
13812   for cc_temp in $compiler""; do
13813   case $cc_temp in
13814     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13815     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13816     \-*) ;;
13817     *) break;;
13818   esac
13819 done
13820 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13821
13822
13823   if test -n "$compiler"; then
13824     # We don't want -fno-exception when compiling C++ code, so set the
13825     # no_builtin_flag separately
13826     if test "$GXX" = yes; then
13827       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13828     else
13829       lt_prog_compiler_no_builtin_flag_CXX=
13830     fi
13831
13832     if test "$GXX" = yes; then
13833       # Set up default GNU C++ configuration
13834
13835
13836
13837 # Check whether --with-gnu-ld was given.
13838 if test "${with_gnu_ld+set}" = set; then :
13839   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13840 else
13841   with_gnu_ld=no
13842 fi
13843
13844 ac_prog=ld
13845 if test "$GCC" = yes; then
13846   # Check if gcc -print-prog-name=ld gives a path.
13847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13848 $as_echo_n "checking for ld used by $CC... " >&6; }
13849   case $host in
13850   *-*-mingw*)
13851     # gcc leaves a trailing carriage return which upsets mingw
13852     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13853   *)
13854     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13855   esac
13856   case $ac_prog in
13857     # Accept absolute paths.
13858     [\\/]* | ?:[\\/]*)
13859       re_direlt='/[^/][^/]*/\.\./'
13860       # Canonicalize the pathname of ld
13861       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13862       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13863         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13864       done
13865       test -z "$LD" && LD="$ac_prog"
13866       ;;
13867   "")
13868     # If it fails, then pretend we aren't using GCC.
13869     ac_prog=ld
13870     ;;
13871   *)
13872     # If it is relative, then search for the first ld in PATH.
13873     with_gnu_ld=unknown
13874     ;;
13875   esac
13876 elif test "$with_gnu_ld" = yes; then
13877   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13878 $as_echo_n "checking for GNU ld... " >&6; }
13879 else
13880   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13881 $as_echo_n "checking for non-GNU ld... " >&6; }
13882 fi
13883 if test "${lt_cv_path_LD+set}" = set; then :
13884   $as_echo_n "(cached) " >&6
13885 else
13886   if test -z "$LD"; then
13887   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13888   for ac_dir in $PATH; do
13889     IFS="$lt_save_ifs"
13890     test -z "$ac_dir" && ac_dir=.
13891     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13892       lt_cv_path_LD="$ac_dir/$ac_prog"
13893       # Check to see if the program is GNU ld.  I'd rather use --version,
13894       # but apparently some variants of GNU ld only accept -v.
13895       # Break only if it was the GNU/non-GNU ld that we prefer.
13896       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13897       *GNU* | *'with BFD'*)
13898         test "$with_gnu_ld" != no && break
13899         ;;
13900       *)
13901         test "$with_gnu_ld" != yes && break
13902         ;;
13903       esac
13904     fi
13905   done
13906   IFS="$lt_save_ifs"
13907 else
13908   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13909 fi
13910 fi
13911
13912 LD="$lt_cv_path_LD"
13913 if test -n "$LD"; then
13914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13915 $as_echo "$LD" >&6; }
13916 else
13917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13918 $as_echo "no" >&6; }
13919 fi
13920 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13922 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13923 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
13924   $as_echo_n "(cached) " >&6
13925 else
13926   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13927 case `$LD -v 2>&1 </dev/null` in
13928 *GNU* | *'with BFD'*)
13929   lt_cv_prog_gnu_ld=yes
13930   ;;
13931 *)
13932   lt_cv_prog_gnu_ld=no
13933   ;;
13934 esac
13935 fi
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13937 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13938 with_gnu_ld=$lt_cv_prog_gnu_ld
13939
13940
13941
13942
13943
13944
13945
13946       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13947       # archiving commands below assume that GNU ld is being used.
13948       if test "$with_gnu_ld" = yes; then
13949         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13950         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'
13951
13952         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13953         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13954
13955         # If archive_cmds runs LD, not CC, wlarc should be empty
13956         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13957         #     investigate it a little bit more. (MM)
13958         wlarc='${wl}'
13959
13960         # ancient GNU ld didn't support --whole-archive et. al.
13961         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13962           $GREP 'no-whole-archive' > /dev/null; then
13963           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13964         else
13965           whole_archive_flag_spec_CXX=
13966         fi
13967       else
13968         with_gnu_ld=no
13969         wlarc=
13970
13971         # A generic and very simple default shared library creation
13972         # command for GNU C++ for the case where it uses the native
13973         # linker, instead of GNU ld.  If possible, this setting should
13974         # overridden to take advantage of the native linker features on
13975         # the platform it is being used on.
13976         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13977       fi
13978
13979       # Commands to make compiler produce verbose output that lists
13980       # what "hidden" libraries, object files and flags are used when
13981       # linking a shared library.
13982       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13983
13984     else
13985       GXX=no
13986       with_gnu_ld=no
13987       wlarc=
13988     fi
13989
13990     # PORTME: fill in a description of your system's C++ link characteristics
13991     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13992 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13993     ld_shlibs_CXX=yes
13994     case $host_os in
13995       aix3*)
13996         # FIXME: insert proper C++ library support
13997         ld_shlibs_CXX=no
13998         ;;
13999       aix[4-9]*)
14000         if test "$host_cpu" = ia64; then
14001           # On IA64, the linker does run time linking by default, so we don't
14002           # have to do anything special.
14003           aix_use_runtimelinking=no
14004           exp_sym_flag='-Bexport'
14005           no_entry_flag=""
14006         else
14007           aix_use_runtimelinking=no
14008
14009           # Test if we are trying to use run time linking or normal
14010           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14011           # need to do runtime linking.
14012           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14013             for ld_flag in $LDFLAGS; do
14014               case $ld_flag in
14015               *-brtl*)
14016                 aix_use_runtimelinking=yes
14017                 break
14018                 ;;
14019               esac
14020             done
14021             ;;
14022           esac
14023
14024           exp_sym_flag='-bexport'
14025           no_entry_flag='-bnoentry'
14026         fi
14027
14028         # When large executables or shared objects are built, AIX ld can
14029         # have problems creating the table of contents.  If linking a library
14030         # or program results in "error TOC overflow" add -mminimal-toc to
14031         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14032         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14033
14034         archive_cmds_CXX=''
14035         hardcode_direct_CXX=yes
14036         hardcode_direct_absolute_CXX=yes
14037         hardcode_libdir_separator_CXX=':'
14038         link_all_deplibs_CXX=yes
14039         file_list_spec_CXX='${wl}-f,'
14040
14041         if test "$GXX" = yes; then
14042           case $host_os in aix4.[012]|aix4.[012].*)
14043           # We only want to do this on AIX 4.2 and lower, the check
14044           # below for broken collect2 doesn't work under 4.3+
14045           collect2name=`${CC} -print-prog-name=collect2`
14046           if test -f "$collect2name" &&
14047              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14048           then
14049             # We have reworked collect2
14050             :
14051           else
14052             # We have old collect2
14053             hardcode_direct_CXX=unsupported
14054             # It fails to find uninstalled libraries when the uninstalled
14055             # path is not listed in the libpath.  Setting hardcode_minus_L
14056             # to unsupported forces relinking
14057             hardcode_minus_L_CXX=yes
14058             hardcode_libdir_flag_spec_CXX='-L$libdir'
14059             hardcode_libdir_separator_CXX=
14060           fi
14061           esac
14062           shared_flag='-shared'
14063           if test "$aix_use_runtimelinking" = yes; then
14064             shared_flag="$shared_flag "'${wl}-G'
14065           fi
14066         else
14067           # not using gcc
14068           if test "$host_cpu" = ia64; then
14069           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14070           # chokes on -Wl,-G. The following line is correct:
14071           shared_flag='-G'
14072           else
14073             if test "$aix_use_runtimelinking" = yes; then
14074               shared_flag='${wl}-G'
14075             else
14076               shared_flag='${wl}-bM:SRE'
14077             fi
14078           fi
14079         fi
14080
14081         export_dynamic_flag_spec_CXX='${wl}-bexpall'
14082         # It seems that -bexpall does not export symbols beginning with
14083         # underscore (_), so it is better to generate a list of symbols to
14084         # export.
14085         always_export_symbols_CXX=yes
14086         if test "$aix_use_runtimelinking" = yes; then
14087           # Warning - without using the other runtime loading flags (-brtl),
14088           # -berok will link without error, but may produce a broken library.
14089           allow_undefined_flag_CXX='-berok'
14090           # Determine the default libpath from the value encoded in an empty
14091           # executable.
14092           if test x$gcc_no_link = xyes; then
14093   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14094 fi
14095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14096 /* end confdefs.h.  */
14097
14098 int
14099 main ()
14100 {
14101
14102   ;
14103   return 0;
14104 }
14105 _ACEOF
14106 if ac_fn_cxx_try_link "$LINENO"; then :
14107
14108 lt_aix_libpath_sed='
14109     /Import File Strings/,/^$/ {
14110         /^0/ {
14111             s/^0  *\(.*\)$/\1/
14112             p
14113         }
14114     }'
14115 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14116 # Check for a 64-bit object if we didn't find anything.
14117 if test -z "$aix_libpath"; then
14118   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14119 fi
14120 fi
14121 rm -f core conftest.err conftest.$ac_objext \
14122     conftest$ac_exeext conftest.$ac_ext
14123 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14124
14125           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14126
14127           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"
14128         else
14129           if test "$host_cpu" = ia64; then
14130             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14131             allow_undefined_flag_CXX="-z nodefs"
14132             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"
14133           else
14134             # Determine the default libpath from the value encoded in an
14135             # empty executable.
14136             if test x$gcc_no_link = xyes; then
14137   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14138 fi
14139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14140 /* end confdefs.h.  */
14141
14142 int
14143 main ()
14144 {
14145
14146   ;
14147   return 0;
14148 }
14149 _ACEOF
14150 if ac_fn_cxx_try_link "$LINENO"; then :
14151
14152 lt_aix_libpath_sed='
14153     /Import File Strings/,/^$/ {
14154         /^0/ {
14155             s/^0  *\(.*\)$/\1/
14156             p
14157         }
14158     }'
14159 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14160 # Check for a 64-bit object if we didn't find anything.
14161 if test -z "$aix_libpath"; then
14162   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14163 fi
14164 fi
14165 rm -f core conftest.err conftest.$ac_objext \
14166     conftest$ac_exeext conftest.$ac_ext
14167 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14168
14169             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14170             # Warning - without using the other run time loading flags,
14171             # -berok will link without error, but may produce a broken library.
14172             no_undefined_flag_CXX=' ${wl}-bernotok'
14173             allow_undefined_flag_CXX=' ${wl}-berok'
14174             if test "$with_gnu_ld" = yes; then
14175               # We only use this code for GNU lds that support --whole-archive.
14176               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14177             else
14178               # Exported symbols can be pulled into shared objects from archives
14179               whole_archive_flag_spec_CXX='$convenience'
14180             fi
14181             archive_cmds_need_lc_CXX=yes
14182             # This is similar to how AIX traditionally builds its shared
14183             # libraries.
14184             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'
14185           fi
14186         fi
14187         ;;
14188
14189       beos*)
14190         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14191           allow_undefined_flag_CXX=unsupported
14192           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14193           # support --undefined.  This deserves some investigation.  FIXME
14194           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14195         else
14196           ld_shlibs_CXX=no
14197         fi
14198         ;;
14199
14200       chorus*)
14201         case $cc_basename in
14202           *)
14203           # FIXME: insert proper C++ library support
14204           ld_shlibs_CXX=no
14205           ;;
14206         esac
14207         ;;
14208
14209       cygwin* | mingw* | pw32* | cegcc*)
14210         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14211         # as there is no search path for DLLs.
14212         hardcode_libdir_flag_spec_CXX='-L$libdir'
14213         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14214         allow_undefined_flag_CXX=unsupported
14215         always_export_symbols_CXX=no
14216         enable_shared_with_static_runtimes_CXX=yes
14217
14218         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14219           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'
14220           # If the export-symbols file already is a .def file (1st line
14221           # is EXPORTS), use it as is; otherwise, prepend...
14222           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14223             cp $export_symbols $output_objdir/$soname.def;
14224           else
14225             echo EXPORTS > $output_objdir/$soname.def;
14226             cat $export_symbols >> $output_objdir/$soname.def;
14227           fi~
14228           $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'
14229         else
14230           ld_shlibs_CXX=no
14231         fi
14232         ;;
14233       darwin* | rhapsody*)
14234
14235
14236   archive_cmds_need_lc_CXX=no
14237   hardcode_direct_CXX=no
14238   hardcode_automatic_CXX=yes
14239   hardcode_shlibpath_var_CXX=unsupported
14240   if test "$lt_cv_ld_force_load" = "yes"; then
14241     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\"`'
14242   else
14243     whole_archive_flag_spec_CXX=''
14244   fi
14245   link_all_deplibs_CXX=yes
14246   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14247   case $cc_basename in
14248      ifort*) _lt_dar_can_shared=yes ;;
14249      *) _lt_dar_can_shared=$GCC ;;
14250   esac
14251   if test "$_lt_dar_can_shared" = "yes"; then
14252     output_verbose_link_cmd=func_echo_all
14253     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}"
14254     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14255     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}"
14256     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}"
14257        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14258       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}"
14259       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}"
14260     fi
14261
14262   else
14263   ld_shlibs_CXX=no
14264   fi
14265
14266         ;;
14267
14268       dgux*)
14269         case $cc_basename in
14270           ec++*)
14271             # FIXME: insert proper C++ library support
14272             ld_shlibs_CXX=no
14273             ;;
14274           ghcx*)
14275             # Green Hills C++ Compiler
14276             # FIXME: insert proper C++ library support
14277             ld_shlibs_CXX=no
14278             ;;
14279           *)
14280             # FIXME: insert proper C++ library support
14281             ld_shlibs_CXX=no
14282             ;;
14283         esac
14284         ;;
14285
14286       freebsd[12]*)
14287         # C++ shared libraries reported to be fairly broken before
14288         # switch to ELF
14289         ld_shlibs_CXX=no
14290         ;;
14291
14292       freebsd-elf*)
14293         archive_cmds_need_lc_CXX=no
14294         ;;
14295
14296       freebsd* | dragonfly*)
14297         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14298         # conventions
14299         ld_shlibs_CXX=yes
14300         ;;
14301
14302       gnu*)
14303         ;;
14304
14305       haiku*)
14306         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14307         link_all_deplibs_CXX=yes
14308         ;;
14309
14310       hpux9*)
14311         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14312         hardcode_libdir_separator_CXX=:
14313         export_dynamic_flag_spec_CXX='${wl}-E'
14314         hardcode_direct_CXX=yes
14315         hardcode_minus_L_CXX=yes # Not in the search PATH,
14316                                              # but as the default
14317                                              # location of the library.
14318
14319         case $cc_basename in
14320           CC*)
14321             # FIXME: insert proper C++ library support
14322             ld_shlibs_CXX=no
14323             ;;
14324           aCC*)
14325             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'
14326             # Commands to make compiler produce verbose output that lists
14327             # what "hidden" libraries, object files and flags are used when
14328             # linking a shared library.
14329             #
14330             # There doesn't appear to be a way to prevent this compiler from
14331             # explicitly linking system object files so we need to strip them
14332             # from the output so that they don't get included in the library
14333             # dependencies.
14334             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"'
14335             ;;
14336           *)
14337             if test "$GXX" = yes; then
14338               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'
14339             else
14340               # FIXME: insert proper C++ library support
14341               ld_shlibs_CXX=no
14342             fi
14343             ;;
14344         esac
14345         ;;
14346
14347       hpux10*|hpux11*)
14348         if test $with_gnu_ld = no; then
14349           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14350           hardcode_libdir_separator_CXX=:
14351
14352           case $host_cpu in
14353             hppa*64*|ia64*)
14354               ;;
14355             *)
14356               export_dynamic_flag_spec_CXX='${wl}-E'
14357               ;;
14358           esac
14359         fi
14360         case $host_cpu in
14361           hppa*64*|ia64*)
14362             hardcode_direct_CXX=no
14363             hardcode_shlibpath_var_CXX=no
14364             ;;
14365           *)
14366             hardcode_direct_CXX=yes
14367             hardcode_direct_absolute_CXX=yes
14368             hardcode_minus_L_CXX=yes # Not in the search PATH,
14369                                                  # but as the default
14370                                                  # location of the library.
14371             ;;
14372         esac
14373
14374         case $cc_basename in
14375           CC*)
14376             # FIXME: insert proper C++ library support
14377             ld_shlibs_CXX=no
14378             ;;
14379           aCC*)
14380             case $host_cpu in
14381               hppa*64*)
14382                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14383                 ;;
14384               ia64*)
14385                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14386                 ;;
14387               *)
14388                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14389                 ;;
14390             esac
14391             # Commands to make compiler produce verbose output that lists
14392             # what "hidden" libraries, object files and flags are used when
14393             # linking a shared library.
14394             #
14395             # There doesn't appear to be a way to prevent this compiler from
14396             # explicitly linking system object files so we need to strip them
14397             # from the output so that they don't get included in the library
14398             # dependencies.
14399             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"'
14400             ;;
14401           *)
14402             if test "$GXX" = yes; then
14403               if test $with_gnu_ld = no; then
14404                 case $host_cpu in
14405                   hppa*64*)
14406                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14407                     ;;
14408                   ia64*)
14409                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14410                     ;;
14411                   *)
14412                     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'
14413                     ;;
14414                 esac
14415               fi
14416             else
14417               # FIXME: insert proper C++ library support
14418               ld_shlibs_CXX=no
14419             fi
14420             ;;
14421         esac
14422         ;;
14423
14424       interix[3-9]*)
14425         hardcode_direct_CXX=no
14426         hardcode_shlibpath_var_CXX=no
14427         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14428         export_dynamic_flag_spec_CXX='${wl}-E'
14429         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14430         # Instead, shared libraries are loaded at an image base (0x10000000 by
14431         # default) and relocated if they conflict, which is a slow very memory
14432         # consuming and fragmenting process.  To avoid this, we pick a random,
14433         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14434         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14435         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'
14436         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'
14437         ;;
14438       irix5* | irix6*)
14439         case $cc_basename in
14440           CC*)
14441             # SGI C++
14442             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'
14443
14444             # Archives containing C++ object files must be created using
14445             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14446             # necessary to make sure instantiated templates are included
14447             # in the archive.
14448             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14449             ;;
14450           *)
14451             if test "$GXX" = yes; then
14452               if test "$with_gnu_ld" = no; then
14453                 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'
14454               else
14455                 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'
14456               fi
14457             fi
14458             link_all_deplibs_CXX=yes
14459             ;;
14460         esac
14461         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14462         hardcode_libdir_separator_CXX=:
14463         inherit_rpath_CXX=yes
14464         ;;
14465
14466       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14467         case $cc_basename in
14468           KCC*)
14469             # Kuck and Associates, Inc. (KAI) C++ Compiler
14470
14471             # KCC will only create a shared library if the output file
14472             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14473             # to its proper name (with version) after linking.
14474             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'
14475             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'
14476             # Commands to make compiler produce verbose output that lists
14477             # what "hidden" libraries, object files and flags are used when
14478             # linking a shared library.
14479             #
14480             # There doesn't appear to be a way to prevent this compiler from
14481             # explicitly linking system object files so we need to strip them
14482             # from the output so that they don't get included in the library
14483             # dependencies.
14484             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"'
14485
14486             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14487             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14488
14489             # Archives containing C++ object files must be created using
14490             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14491             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14492             ;;
14493           icpc* | ecpc* )
14494             # Intel C++
14495             with_gnu_ld=yes
14496             # version 8.0 and above of icpc choke on multiply defined symbols
14497             # if we add $predep_objects and $postdep_objects, however 7.1 and
14498             # earlier do not add the objects themselves.
14499             case `$CC -V 2>&1` in
14500               *"Version 7."*)
14501                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14502                 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'
14503                 ;;
14504               *)  # Version 8.0 or newer
14505                 tmp_idyn=
14506                 case $host_cpu in
14507                   ia64*) tmp_idyn=' -i_dynamic';;
14508                 esac
14509                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14510                 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'
14511                 ;;
14512             esac
14513             archive_cmds_need_lc_CXX=no
14514             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14515             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14516             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14517             ;;
14518           pgCC* | pgcpp*)
14519             # Portland Group C++ compiler
14520             case `$CC -V` in
14521             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14522               prelink_cmds_CXX='tpldir=Template.dir~
14523                 rm -rf $tpldir~
14524                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14525                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14526               old_archive_cmds_CXX='tpldir=Template.dir~
14527                 rm -rf $tpldir~
14528                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14529                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14530                 $RANLIB $oldlib'
14531               archive_cmds_CXX='tpldir=Template.dir~
14532                 rm -rf $tpldir~
14533                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14534                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14535               archive_expsym_cmds_CXX='tpldir=Template.dir~
14536                 rm -rf $tpldir~
14537                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14538                 $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'
14539               ;;
14540             *) # Version 6 and above use weak symbols
14541               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14542               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'
14543               ;;
14544             esac
14545
14546             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14547             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14548             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'
14549             ;;
14550           cxx*)
14551             # Compaq C++
14552             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14553             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'
14554
14555             runpath_var=LD_RUN_PATH
14556             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14557             hardcode_libdir_separator_CXX=:
14558
14559             # Commands to make compiler produce verbose output that lists
14560             # what "hidden" libraries, object files and flags are used when
14561             # linking a shared library.
14562             #
14563             # There doesn't appear to be a way to prevent this compiler from
14564             # explicitly linking system object files so we need to strip them
14565             # from the output so that they don't get included in the library
14566             # dependencies.
14567             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'
14568             ;;
14569           xl* | mpixl* | bgxl*)
14570             # IBM XL 8.0 on PPC, with GNU ld
14571             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14572             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14573             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14574             if test "x$supports_anon_versioning" = xyes; then
14575               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14576                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14577                 echo "local: *; };" >> $output_objdir/$libname.ver~
14578                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14579             fi
14580             ;;
14581           *)
14582             case `$CC -V 2>&1 | sed 5q` in
14583             *Sun\ C*)
14584               # Sun C++ 5.9
14585               no_undefined_flag_CXX=' -zdefs'
14586               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14587               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'
14588               hardcode_libdir_flag_spec_CXX='-R$libdir'
14589               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'
14590               compiler_needs_object_CXX=yes
14591
14592               # Not sure whether something based on
14593               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14594               # would be better.
14595               output_verbose_link_cmd='func_echo_all'
14596
14597               # Archives containing C++ object files must be created using
14598               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14599               # necessary to make sure instantiated templates are included
14600               # in the archive.
14601               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14602               ;;
14603             esac
14604             ;;
14605         esac
14606         ;;
14607
14608       lynxos*)
14609         # FIXME: insert proper C++ library support
14610         ld_shlibs_CXX=no
14611         ;;
14612
14613       m88k*)
14614         # FIXME: insert proper C++ library support
14615         ld_shlibs_CXX=no
14616         ;;
14617
14618       mvs*)
14619         case $cc_basename in
14620           cxx*)
14621             # FIXME: insert proper C++ library support
14622             ld_shlibs_CXX=no
14623             ;;
14624           *)
14625             # FIXME: insert proper C++ library support
14626             ld_shlibs_CXX=no
14627             ;;
14628         esac
14629         ;;
14630
14631       netbsd*)
14632         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14633           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14634           wlarc=
14635           hardcode_libdir_flag_spec_CXX='-R$libdir'
14636           hardcode_direct_CXX=yes
14637           hardcode_shlibpath_var_CXX=no
14638         fi
14639         # Workaround some broken pre-1.5 toolchains
14640         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14641         ;;
14642
14643       *nto* | *qnx*)
14644         ld_shlibs_CXX=yes
14645         ;;
14646
14647       openbsd2*)
14648         # C++ shared libraries are fairly broken
14649         ld_shlibs_CXX=no
14650         ;;
14651
14652       openbsd*)
14653         if test -f /usr/libexec/ld.so; then
14654           hardcode_direct_CXX=yes
14655           hardcode_shlibpath_var_CXX=no
14656           hardcode_direct_absolute_CXX=yes
14657           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14658           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14659           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14660             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14661             export_dynamic_flag_spec_CXX='${wl}-E'
14662             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14663           fi
14664           output_verbose_link_cmd=func_echo_all
14665         else
14666           ld_shlibs_CXX=no
14667         fi
14668         ;;
14669
14670       osf3* | osf4* | osf5*)
14671         case $cc_basename in
14672           KCC*)
14673             # Kuck and Associates, Inc. (KAI) C++ Compiler
14674
14675             # KCC will only create a shared library if the output file
14676             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14677             # to its proper name (with version) after linking.
14678             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'
14679
14680             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14681             hardcode_libdir_separator_CXX=:
14682
14683             # Archives containing C++ object files must be created using
14684             # the KAI C++ compiler.
14685             case $host in
14686               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14687               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14688             esac
14689             ;;
14690           RCC*)
14691             # Rational C++ 2.4.1
14692             # FIXME: insert proper C++ library support
14693             ld_shlibs_CXX=no
14694             ;;
14695           cxx*)
14696             case $host in
14697               osf3*)
14698                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14699                 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'
14700                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14701                 ;;
14702               *)
14703                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14704                 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'
14705                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14706                   echo "-hidden">> $lib.exp~
14707                   $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~
14708                   $RM $lib.exp'
14709                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14710                 ;;
14711             esac
14712
14713             hardcode_libdir_separator_CXX=:
14714
14715             # Commands to make compiler produce verbose output that lists
14716             # what "hidden" libraries, object files and flags are used when
14717             # linking a shared library.
14718             #
14719             # There doesn't appear to be a way to prevent this compiler from
14720             # explicitly linking system object files so we need to strip them
14721             # from the output so that they don't get included in the library
14722             # dependencies.
14723             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"'
14724             ;;
14725           *)
14726             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14727               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14728               case $host in
14729                 osf3*)
14730                   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'
14731                   ;;
14732                 *)
14733                   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'
14734                   ;;
14735               esac
14736
14737               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14738               hardcode_libdir_separator_CXX=:
14739
14740               # Commands to make compiler produce verbose output that lists
14741               # what "hidden" libraries, object files and flags are used when
14742               # linking a shared library.
14743               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14744
14745             else
14746               # FIXME: insert proper C++ library support
14747               ld_shlibs_CXX=no
14748             fi
14749             ;;
14750         esac
14751         ;;
14752
14753       psos*)
14754         # FIXME: insert proper C++ library support
14755         ld_shlibs_CXX=no
14756         ;;
14757
14758       sunos4*)
14759         case $cc_basename in
14760           CC*)
14761             # Sun C++ 4.x
14762             # FIXME: insert proper C++ library support
14763             ld_shlibs_CXX=no
14764             ;;
14765           lcc*)
14766             # Lucid
14767             # FIXME: insert proper C++ library support
14768             ld_shlibs_CXX=no
14769             ;;
14770           *)
14771             # FIXME: insert proper C++ library support
14772             ld_shlibs_CXX=no
14773             ;;
14774         esac
14775         ;;
14776
14777       solaris*)
14778         case $cc_basename in
14779           CC*)
14780             # Sun C++ 4.2, 5.x and Centerline C++
14781             archive_cmds_need_lc_CXX=yes
14782             no_undefined_flag_CXX=' -zdefs'
14783             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14784             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14785               $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'
14786
14787             hardcode_libdir_flag_spec_CXX='-R$libdir'
14788             hardcode_shlibpath_var_CXX=no
14789             case $host_os in
14790               solaris2.[0-5] | solaris2.[0-5].*) ;;
14791               *)
14792                 # The compiler driver will combine and reorder linker options,
14793                 # but understands `-z linker_flag'.
14794                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14795                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14796                 ;;
14797             esac
14798             link_all_deplibs_CXX=yes
14799
14800             output_verbose_link_cmd='func_echo_all'
14801
14802             # Archives containing C++ object files must be created using
14803             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14804             # necessary to make sure instantiated templates are included
14805             # in the archive.
14806             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14807             ;;
14808           gcx*)
14809             # Green Hills C++ Compiler
14810             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14811
14812             # The C++ compiler must be used to create the archive.
14813             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14814             ;;
14815           *)
14816             # GNU C++ compiler with Solaris linker
14817             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14818               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14819               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14820                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14821                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14822                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14823
14824                 # Commands to make compiler produce verbose output that lists
14825                 # what "hidden" libraries, object files and flags are used when
14826                 # linking a shared library.
14827                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14828               else
14829                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14830                 # platform.
14831                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14832                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14833                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14834
14835                 # Commands to make compiler produce verbose output that lists
14836                 # what "hidden" libraries, object files and flags are used when
14837                 # linking a shared library.
14838                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14839               fi
14840
14841               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14842               case $host_os in
14843                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14844                 *)
14845                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14846                   ;;
14847               esac
14848             fi
14849             ;;
14850         esac
14851         ;;
14852
14853     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14854       no_undefined_flag_CXX='${wl}-z,text'
14855       archive_cmds_need_lc_CXX=no
14856       hardcode_shlibpath_var_CXX=no
14857       runpath_var='LD_RUN_PATH'
14858
14859       case $cc_basename in
14860         CC*)
14861           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14862           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14863           ;;
14864         *)
14865           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14866           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14867           ;;
14868       esac
14869       ;;
14870
14871       sysv5* | sco3.2v5* | sco5v6*)
14872         # Note: We can NOT use -z defs as we might desire, because we do not
14873         # link with -lc, and that would cause any symbols used from libc to
14874         # always be unresolved, which means just about no library would
14875         # ever link correctly.  If we're not using GNU ld we use -z text
14876         # though, which does catch some bad symbols but isn't as heavy-handed
14877         # as -z defs.
14878         no_undefined_flag_CXX='${wl}-z,text'
14879         allow_undefined_flag_CXX='${wl}-z,nodefs'
14880         archive_cmds_need_lc_CXX=no
14881         hardcode_shlibpath_var_CXX=no
14882         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14883         hardcode_libdir_separator_CXX=':'
14884         link_all_deplibs_CXX=yes
14885         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14886         runpath_var='LD_RUN_PATH'
14887
14888         case $cc_basename in
14889           CC*)
14890             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14891             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14892             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14893               '"$old_archive_cmds_CXX"
14894             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14895               '"$reload_cmds_CXX"
14896             ;;
14897           *)
14898             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14899             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14900             ;;
14901         esac
14902       ;;
14903
14904       tandem*)
14905         case $cc_basename in
14906           NCC*)
14907             # NonStop-UX NCC 3.20
14908             # FIXME: insert proper C++ library support
14909             ld_shlibs_CXX=no
14910             ;;
14911           *)
14912             # FIXME: insert proper C++ library support
14913             ld_shlibs_CXX=no
14914             ;;
14915         esac
14916         ;;
14917
14918       vxworks*)
14919         # FIXME: insert proper C++ library support
14920         ld_shlibs_CXX=no
14921         ;;
14922
14923       *)
14924         # FIXME: insert proper C++ library support
14925         ld_shlibs_CXX=no
14926         ;;
14927     esac
14928
14929     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14930 $as_echo "$ld_shlibs_CXX" >&6; }
14931     test "$ld_shlibs_CXX" = no && can_build_shared=no
14932
14933     GCC_CXX="$GXX"
14934     LD_CXX="$LD"
14935
14936     ## CAVEAT EMPTOR:
14937     ## There is no encapsulation within the following macros, do not change
14938     ## the running order or otherwise move them around unless you know exactly
14939     ## what you are doing...
14940     # Dependencies to place before and after the object being linked:
14941 predep_objects_CXX=
14942 postdep_objects_CXX=
14943 predeps_CXX=
14944 postdeps_CXX=
14945 compiler_lib_search_path_CXX=
14946
14947 cat > conftest.$ac_ext <<_LT_EOF
14948 class Foo
14949 {
14950 public:
14951   Foo (void) { a = 0; }
14952 private:
14953   int a;
14954 };
14955 _LT_EOF
14956
14957 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14958   (eval $ac_compile) 2>&5
14959   ac_status=$?
14960   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14961   test $ac_status = 0; }; then
14962   # Parse the compiler output and extract the necessary
14963   # objects, libraries and library flags.
14964
14965   # Sentinel used to keep track of whether or not we are before
14966   # the conftest object file.
14967   pre_test_object_deps_done=no
14968
14969   for p in `eval "$output_verbose_link_cmd"`; do
14970     case $p in
14971
14972     -L* | -R* | -l*)
14973        # Some compilers place space between "-{L,R}" and the path.
14974        # Remove the space.
14975        if test $p = "-L" ||
14976           test $p = "-R"; then
14977          prev=$p
14978          continue
14979        else
14980          prev=
14981        fi
14982
14983        if test "$pre_test_object_deps_done" = no; then
14984          case $p in
14985          -L* | -R*)
14986            # Internal compiler library paths should come after those
14987            # provided the user.  The postdeps already come after the
14988            # user supplied libs so there is no need to process them.
14989            if test -z "$compiler_lib_search_path_CXX"; then
14990              compiler_lib_search_path_CXX="${prev}${p}"
14991            else
14992              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14993            fi
14994            ;;
14995          # The "-l" case would never come before the object being
14996          # linked, so don't bother handling this case.
14997          esac
14998        else
14999          if test -z "$postdeps_CXX"; then
15000            postdeps_CXX="${prev}${p}"
15001          else
15002            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15003          fi
15004        fi
15005        ;;
15006
15007     *.$objext)
15008        # This assumes that the test object file only shows up
15009        # once in the compiler output.
15010        if test "$p" = "conftest.$objext"; then
15011          pre_test_object_deps_done=yes
15012          continue
15013        fi
15014
15015        if test "$pre_test_object_deps_done" = no; then
15016          if test -z "$predep_objects_CXX"; then
15017            predep_objects_CXX="$p"
15018          else
15019            predep_objects_CXX="$predep_objects_CXX $p"
15020          fi
15021        else
15022          if test -z "$postdep_objects_CXX"; then
15023            postdep_objects_CXX="$p"
15024          else
15025            postdep_objects_CXX="$postdep_objects_CXX $p"
15026          fi
15027        fi
15028        ;;
15029
15030     *) ;; # Ignore the rest.
15031
15032     esac
15033   done
15034
15035   # Clean up.
15036   rm -f a.out a.exe
15037 else
15038   echo "libtool.m4: error: problem compiling CXX test program"
15039 fi
15040
15041 $RM -f confest.$objext
15042
15043 # PORTME: override above test on systems where it is broken
15044 case $host_os in
15045 interix[3-9]*)
15046   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15047   # hack all around it, let's just trust "g++" to DTRT.
15048   predep_objects_CXX=
15049   postdep_objects_CXX=
15050   postdeps_CXX=
15051   ;;
15052
15053 linux*)
15054   case `$CC -V 2>&1 | sed 5q` in
15055   *Sun\ C*)
15056     # Sun C++ 5.9
15057
15058     # The more standards-conforming stlport4 library is
15059     # incompatible with the Cstd library. Avoid specifying
15060     # it if it's in CXXFLAGS. Ignore libCrun as
15061     # -library=stlport4 depends on it.
15062     case " $CXX $CXXFLAGS " in
15063     *" -library=stlport4 "*)
15064       solaris_use_stlport4=yes
15065       ;;
15066     esac
15067
15068     if test "$solaris_use_stlport4" != yes; then
15069       postdeps_CXX='-library=Cstd -library=Crun'
15070     fi
15071     ;;
15072   esac
15073   ;;
15074
15075 solaris*)
15076   case $cc_basename in
15077   CC*)
15078     # The more standards-conforming stlport4 library is
15079     # incompatible with the Cstd library. Avoid specifying
15080     # it if it's in CXXFLAGS. Ignore libCrun as
15081     # -library=stlport4 depends on it.
15082     case " $CXX $CXXFLAGS " in
15083     *" -library=stlport4 "*)
15084       solaris_use_stlport4=yes
15085       ;;
15086     esac
15087
15088     # Adding this requires a known-good setup of shared libraries for
15089     # Sun compiler versions before 5.6, else PIC objects from an old
15090     # archive will be linked into the output, leading to subtle bugs.
15091     if test "$solaris_use_stlport4" != yes; then
15092       postdeps_CXX='-library=Cstd -library=Crun'
15093     fi
15094     ;;
15095   esac
15096   ;;
15097 esac
15098
15099
15100 case " $postdeps_CXX " in
15101 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15102 esac
15103  compiler_lib_search_dirs_CXX=
15104 if test -n "${compiler_lib_search_path_CXX}"; then
15105  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15106 fi
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138     lt_prog_compiler_wl_CXX=
15139 lt_prog_compiler_pic_CXX=
15140 lt_prog_compiler_static_CXX=
15141
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15143 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15144
15145   # C++ specific cases for pic, static, wl, etc.
15146   if test "$GXX" = yes; then
15147     lt_prog_compiler_wl_CXX='-Wl,'
15148     lt_prog_compiler_static_CXX='-static'
15149
15150     case $host_os in
15151     aix*)
15152       # All AIX code is PIC.
15153       if test "$host_cpu" = ia64; then
15154         # AIX 5 now supports IA64 processor
15155         lt_prog_compiler_static_CXX='-Bstatic'
15156       fi
15157       ;;
15158
15159     amigaos*)
15160       case $host_cpu in
15161       powerpc)
15162             # see comment about AmigaOS4 .so support
15163             lt_prog_compiler_pic_CXX='-fPIC'
15164         ;;
15165       m68k)
15166             # FIXME: we need at least 68020 code to build shared libraries, but
15167             # adding the `-m68020' flag to GCC prevents building anything better,
15168             # like `-m68040'.
15169             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15170         ;;
15171       esac
15172       ;;
15173
15174     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15175       # PIC is the default for these OSes.
15176       ;;
15177     mingw* | cygwin* | os2* | pw32* | cegcc*)
15178       # This hack is so that the source file can tell whether it is being
15179       # built for inclusion in a dll (and should export symbols for example).
15180       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15181       # (--disable-auto-import) libraries
15182       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15183       ;;
15184     darwin* | rhapsody*)
15185       # PIC is the default on this platform
15186       # Common symbols not allowed in MH_DYLIB files
15187       lt_prog_compiler_pic_CXX='-fno-common'
15188       ;;
15189     *djgpp*)
15190       # DJGPP does not support shared libraries at all
15191       lt_prog_compiler_pic_CXX=
15192       ;;
15193     haiku*)
15194       # PIC is the default for Haiku.
15195       # The "-static" flag exists, but is broken.
15196       lt_prog_compiler_static_CXX=
15197       ;;
15198     interix[3-9]*)
15199       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15200       # Instead, we relocate shared libraries at runtime.
15201       ;;
15202     sysv4*MP*)
15203       if test -d /usr/nec; then
15204         lt_prog_compiler_pic_CXX=-Kconform_pic
15205       fi
15206       ;;
15207     hpux*)
15208       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15209       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15210       # sets the default TLS model and affects inlining.
15211       case $host_cpu in
15212       hppa*64*)
15213         ;;
15214       *)
15215         lt_prog_compiler_pic_CXX='-fPIC'
15216         ;;
15217       esac
15218       ;;
15219     *qnx* | *nto*)
15220       # QNX uses GNU C++, but need to define -shared option too, otherwise
15221       # it will coredump.
15222       lt_prog_compiler_pic_CXX='-fPIC -shared'
15223       ;;
15224     *)
15225       lt_prog_compiler_pic_CXX='-fPIC'
15226       ;;
15227     esac
15228   else
15229     case $host_os in
15230       aix[4-9]*)
15231         # All AIX code is PIC.
15232         if test "$host_cpu" = ia64; then
15233           # AIX 5 now supports IA64 processor
15234           lt_prog_compiler_static_CXX='-Bstatic'
15235         else
15236           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15237         fi
15238         ;;
15239       chorus*)
15240         case $cc_basename in
15241         cxch68*)
15242           # Green Hills C++ Compiler
15243           # _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"
15244           ;;
15245         esac
15246         ;;
15247       dgux*)
15248         case $cc_basename in
15249           ec++*)
15250             lt_prog_compiler_pic_CXX='-KPIC'
15251             ;;
15252           ghcx*)
15253             # Green Hills C++ Compiler
15254             lt_prog_compiler_pic_CXX='-pic'
15255             ;;
15256           *)
15257             ;;
15258         esac
15259         ;;
15260       freebsd* | dragonfly*)
15261         # FreeBSD uses GNU C++
15262         ;;
15263       hpux9* | hpux10* | hpux11*)
15264         case $cc_basename in
15265           CC*)
15266             lt_prog_compiler_wl_CXX='-Wl,'
15267             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15268             if test "$host_cpu" != ia64; then
15269               lt_prog_compiler_pic_CXX='+Z'
15270             fi
15271             ;;
15272           aCC*)
15273             lt_prog_compiler_wl_CXX='-Wl,'
15274             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15275             case $host_cpu in
15276             hppa*64*|ia64*)
15277               # +Z the default
15278               ;;
15279             *)
15280               lt_prog_compiler_pic_CXX='+Z'
15281               ;;
15282             esac
15283             ;;
15284           *)
15285             ;;
15286         esac
15287         ;;
15288       interix*)
15289         # This is c89, which is MS Visual C++ (no shared libs)
15290         # Anyone wants to do a port?
15291         ;;
15292       irix5* | irix6* | nonstopux*)
15293         case $cc_basename in
15294           CC*)
15295             lt_prog_compiler_wl_CXX='-Wl,'
15296             lt_prog_compiler_static_CXX='-non_shared'
15297             # CC pic flag -KPIC is the default.
15298             ;;
15299           *)
15300             ;;
15301         esac
15302         ;;
15303       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15304         case $cc_basename in
15305           KCC*)
15306             # KAI C++ Compiler
15307             lt_prog_compiler_wl_CXX='--backend -Wl,'
15308             lt_prog_compiler_pic_CXX='-fPIC'
15309             ;;
15310           ecpc* )
15311             # old Intel C++ for x86_64 which still supported -KPIC.
15312             lt_prog_compiler_wl_CXX='-Wl,'
15313             lt_prog_compiler_pic_CXX='-KPIC'
15314             lt_prog_compiler_static_CXX='-static'
15315             ;;
15316           icpc* )
15317             # Intel C++, used to be incompatible with GCC.
15318             # ICC 10 doesn't accept -KPIC any more.
15319             lt_prog_compiler_wl_CXX='-Wl,'
15320             lt_prog_compiler_pic_CXX='-fPIC'
15321             lt_prog_compiler_static_CXX='-static'
15322             ;;
15323           pgCC* | pgcpp*)
15324             # Portland Group C++ compiler
15325             lt_prog_compiler_wl_CXX='-Wl,'
15326             lt_prog_compiler_pic_CXX='-fpic'
15327             lt_prog_compiler_static_CXX='-Bstatic'
15328             ;;
15329           cxx*)
15330             # Compaq C++
15331             # Make sure the PIC flag is empty.  It appears that all Alpha
15332             # Linux and Compaq Tru64 Unix objects are PIC.
15333             lt_prog_compiler_pic_CXX=
15334             lt_prog_compiler_static_CXX='-non_shared'
15335             ;;
15336           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15337             # IBM XL 8.0, 9.0 on PPC and BlueGene
15338             lt_prog_compiler_wl_CXX='-Wl,'
15339             lt_prog_compiler_pic_CXX='-qpic'
15340             lt_prog_compiler_static_CXX='-qstaticlink'
15341             ;;
15342           *)
15343             case `$CC -V 2>&1 | sed 5q` in
15344             *Sun\ C*)
15345               # Sun C++ 5.9
15346               lt_prog_compiler_pic_CXX='-KPIC'
15347               lt_prog_compiler_static_CXX='-Bstatic'
15348               lt_prog_compiler_wl_CXX='-Qoption ld '
15349               ;;
15350             esac
15351             ;;
15352         esac
15353         ;;
15354       lynxos*)
15355         ;;
15356       m88k*)
15357         ;;
15358       mvs*)
15359         case $cc_basename in
15360           cxx*)
15361             lt_prog_compiler_pic_CXX='-W c,exportall'
15362             ;;
15363           *)
15364             ;;
15365         esac
15366         ;;
15367       netbsd*)
15368         ;;
15369       *qnx* | *nto*)
15370         # QNX uses GNU C++, but need to define -shared option too, otherwise
15371         # it will coredump.
15372         lt_prog_compiler_pic_CXX='-fPIC -shared'
15373         ;;
15374       osf3* | osf4* | osf5*)
15375         case $cc_basename in
15376           KCC*)
15377             lt_prog_compiler_wl_CXX='--backend -Wl,'
15378             ;;
15379           RCC*)
15380             # Rational C++ 2.4.1
15381             lt_prog_compiler_pic_CXX='-pic'
15382             ;;
15383           cxx*)
15384             # Digital/Compaq C++
15385             lt_prog_compiler_wl_CXX='-Wl,'
15386             # Make sure the PIC flag is empty.  It appears that all Alpha
15387             # Linux and Compaq Tru64 Unix objects are PIC.
15388             lt_prog_compiler_pic_CXX=
15389             lt_prog_compiler_static_CXX='-non_shared'
15390             ;;
15391           *)
15392             ;;
15393         esac
15394         ;;
15395       psos*)
15396         ;;
15397       solaris*)
15398         case $cc_basename in
15399           CC*)
15400             # Sun C++ 4.2, 5.x and Centerline C++
15401             lt_prog_compiler_pic_CXX='-KPIC'
15402             lt_prog_compiler_static_CXX='-Bstatic'
15403             lt_prog_compiler_wl_CXX='-Qoption ld '
15404             ;;
15405           gcx*)
15406             # Green Hills C++ Compiler
15407             lt_prog_compiler_pic_CXX='-PIC'
15408             ;;
15409           *)
15410             ;;
15411         esac
15412         ;;
15413       sunos4*)
15414         case $cc_basename in
15415           CC*)
15416             # Sun C++ 4.x
15417             lt_prog_compiler_pic_CXX='-pic'
15418             lt_prog_compiler_static_CXX='-Bstatic'
15419             ;;
15420           lcc*)
15421             # Lucid
15422             lt_prog_compiler_pic_CXX='-pic'
15423             ;;
15424           *)
15425             ;;
15426         esac
15427         ;;
15428       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15429         case $cc_basename in
15430           CC*)
15431             lt_prog_compiler_wl_CXX='-Wl,'
15432             lt_prog_compiler_pic_CXX='-KPIC'
15433             lt_prog_compiler_static_CXX='-Bstatic'
15434             ;;
15435         esac
15436         ;;
15437       tandem*)
15438         case $cc_basename in
15439           NCC*)
15440             # NonStop-UX NCC 3.20
15441             lt_prog_compiler_pic_CXX='-KPIC'
15442             ;;
15443           *)
15444             ;;
15445         esac
15446         ;;
15447       vxworks*)
15448         ;;
15449       *)
15450         lt_prog_compiler_can_build_shared_CXX=no
15451         ;;
15452     esac
15453   fi
15454
15455 case $host_os in
15456   # For platforms which do not support PIC, -DPIC is meaningless:
15457   *djgpp*)
15458     lt_prog_compiler_pic_CXX=
15459     ;;
15460   *)
15461     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15462     ;;
15463 esac
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15465 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15466
15467
15468
15469 #
15470 # Check to make sure the PIC flag actually works.
15471 #
15472 if test -n "$lt_prog_compiler_pic_CXX"; then
15473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15474 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15475 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15476   $as_echo_n "(cached) " >&6
15477 else
15478   lt_cv_prog_compiler_pic_works_CXX=no
15479    ac_outfile=conftest.$ac_objext
15480    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15481    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15482    # Insert the option either (1) after the last *FLAGS variable, or
15483    # (2) before a word containing "conftest.", or (3) at the end.
15484    # Note that $ac_compile itself does not contain backslashes and begins
15485    # with a dollar sign (not a hyphen), so the echo should work correctly.
15486    # The option is referenced via a variable to avoid confusing sed.
15487    lt_compile=`echo "$ac_compile" | $SED \
15488    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15489    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15490    -e 's:$: $lt_compiler_flag:'`
15491    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15492    (eval "$lt_compile" 2>conftest.err)
15493    ac_status=$?
15494    cat conftest.err >&5
15495    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496    if (exit $ac_status) && test -s "$ac_outfile"; then
15497      # The compiler can only warn and ignore the option if not recognized
15498      # So say no if there are warnings other than the usual output.
15499      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15500      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15501      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15502        lt_cv_prog_compiler_pic_works_CXX=yes
15503      fi
15504    fi
15505    $RM conftest*
15506
15507 fi
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15509 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15510
15511 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15512     case $lt_prog_compiler_pic_CXX in
15513      "" | " "*) ;;
15514      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15515      esac
15516 else
15517     lt_prog_compiler_pic_CXX=
15518      lt_prog_compiler_can_build_shared_CXX=no
15519 fi
15520
15521 fi
15522
15523
15524
15525 #
15526 # Check to make sure the static flag actually works.
15527 #
15528 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15530 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15531 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15532   $as_echo_n "(cached) " >&6
15533 else
15534   lt_cv_prog_compiler_static_works_CXX=no
15535    save_LDFLAGS="$LDFLAGS"
15536    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15537    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15538    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15539      # The linker can only warn and ignore the option if not recognized
15540      # So say no if there are warnings
15541      if test -s conftest.err; then
15542        # Append any errors to the config.log.
15543        cat conftest.err 1>&5
15544        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15545        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15546        if diff conftest.exp conftest.er2 >/dev/null; then
15547          lt_cv_prog_compiler_static_works_CXX=yes
15548        fi
15549      else
15550        lt_cv_prog_compiler_static_works_CXX=yes
15551      fi
15552    fi
15553    $RM -r conftest*
15554    LDFLAGS="$save_LDFLAGS"
15555
15556 fi
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15558 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15559
15560 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15561     :
15562 else
15563     lt_prog_compiler_static_CXX=
15564 fi
15565
15566
15567
15568
15569     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15570 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15571 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15572   $as_echo_n "(cached) " >&6
15573 else
15574   lt_cv_prog_compiler_c_o_CXX=no
15575    $RM -r conftest 2>/dev/null
15576    mkdir conftest
15577    cd conftest
15578    mkdir out
15579    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15580
15581    lt_compiler_flag="-o out/conftest2.$ac_objext"
15582    # Insert the option either (1) after the last *FLAGS variable, or
15583    # (2) before a word containing "conftest.", or (3) at the end.
15584    # Note that $ac_compile itself does not contain backslashes and begins
15585    # with a dollar sign (not a hyphen), so the echo should work correctly.
15586    lt_compile=`echo "$ac_compile" | $SED \
15587    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15588    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15589    -e 's:$: $lt_compiler_flag:'`
15590    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15591    (eval "$lt_compile" 2>out/conftest.err)
15592    ac_status=$?
15593    cat out/conftest.err >&5
15594    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15596    then
15597      # The compiler can only warn and ignore the option if not recognized
15598      # So say no if there are warnings
15599      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15600      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15601      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15602        lt_cv_prog_compiler_c_o_CXX=yes
15603      fi
15604    fi
15605    chmod u+w . 2>&5
15606    $RM conftest*
15607    # SGI C++ compiler will create directory out/ii_files/ for
15608    # template instantiation
15609    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15610    $RM out/* && rmdir out
15611    cd ..
15612    $RM -r conftest
15613    $RM conftest*
15614
15615 fi
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15617 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15618
15619
15620
15621     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15622 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15623 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15624   $as_echo_n "(cached) " >&6
15625 else
15626   lt_cv_prog_compiler_c_o_CXX=no
15627    $RM -r conftest 2>/dev/null
15628    mkdir conftest
15629    cd conftest
15630    mkdir out
15631    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15632
15633    lt_compiler_flag="-o out/conftest2.$ac_objext"
15634    # Insert the option either (1) after the last *FLAGS variable, or
15635    # (2) before a word containing "conftest.", or (3) at the end.
15636    # Note that $ac_compile itself does not contain backslashes and begins
15637    # with a dollar sign (not a hyphen), so the echo should work correctly.
15638    lt_compile=`echo "$ac_compile" | $SED \
15639    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15640    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15641    -e 's:$: $lt_compiler_flag:'`
15642    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15643    (eval "$lt_compile" 2>out/conftest.err)
15644    ac_status=$?
15645    cat out/conftest.err >&5
15646    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15648    then
15649      # The compiler can only warn and ignore the option if not recognized
15650      # So say no if there are warnings
15651      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15652      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15653      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15654        lt_cv_prog_compiler_c_o_CXX=yes
15655      fi
15656    fi
15657    chmod u+w . 2>&5
15658    $RM conftest*
15659    # SGI C++ compiler will create directory out/ii_files/ for
15660    # template instantiation
15661    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15662    $RM out/* && rmdir out
15663    cd ..
15664    $RM -r conftest
15665    $RM conftest*
15666
15667 fi
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15669 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15670
15671
15672
15673
15674 hard_links="nottested"
15675 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15676   # do not overwrite the value of need_locks provided by the user
15677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15678 $as_echo_n "checking if we can lock with hard links... " >&6; }
15679   hard_links=yes
15680   $RM conftest*
15681   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15682   touch conftest.a
15683   ln conftest.a conftest.b 2>&5 || hard_links=no
15684   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15686 $as_echo "$hard_links" >&6; }
15687   if test "$hard_links" = no; then
15688     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15689 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15690     need_locks=warn
15691   fi
15692 else
15693   need_locks=no
15694 fi
15695
15696
15697
15698     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15699 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15700
15701   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15702   case $host_os in
15703   aix[4-9]*)
15704     # If we're using GNU nm, then we don't want the "-C" option.
15705     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15706     # Also, AIX nm treats weak defined symbols like other global defined
15707     # symbols, whereas GNU nm marks them as "W".
15708     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15709       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'
15710     else
15711       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'
15712     fi
15713     ;;
15714   pw32*)
15715     export_symbols_cmds_CXX="$ltdll_cmds"
15716   ;;
15717   cygwin* | mingw* | cegcc*)
15718     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'
15719   ;;
15720   *)
15721     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15722   ;;
15723   esac
15724   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15725
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15727 $as_echo "$ld_shlibs_CXX" >&6; }
15728 test "$ld_shlibs_CXX" = no && can_build_shared=no
15729
15730 with_gnu_ld_CXX=$with_gnu_ld
15731
15732
15733
15734
15735
15736
15737 #
15738 # Do we need to explicitly link libc?
15739 #
15740 case "x$archive_cmds_need_lc_CXX" in
15741 x|xyes)
15742   # Assume -lc should be added
15743   archive_cmds_need_lc_CXX=yes
15744
15745   if test "$enable_shared" = yes && test "$GCC" = yes; then
15746     case $archive_cmds_CXX in
15747     *'~'*)
15748       # FIXME: we may have to deal with multi-command sequences.
15749       ;;
15750     '$CC '*)
15751       # Test whether the compiler implicitly links with -lc since on some
15752       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15753       # to ld, don't add -lc before -lgcc.
15754       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15755 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15756 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15757   $as_echo_n "(cached) " >&6
15758 else
15759   $RM conftest*
15760         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15761
15762         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15763   (eval $ac_compile) 2>&5
15764   ac_status=$?
15765   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15766   test $ac_status = 0; } 2>conftest.err; then
15767           soname=conftest
15768           lib=conftest
15769           libobjs=conftest.$ac_objext
15770           deplibs=
15771           wl=$lt_prog_compiler_wl_CXX
15772           pic_flag=$lt_prog_compiler_pic_CXX
15773           compiler_flags=-v
15774           linker_flags=-v
15775           verstring=
15776           output_objdir=.
15777           libname=conftest
15778           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15779           allow_undefined_flag_CXX=
15780           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15781   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15782   ac_status=$?
15783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15784   test $ac_status = 0; }
15785           then
15786             lt_cv_archive_cmds_need_lc_CXX=no
15787           else
15788             lt_cv_archive_cmds_need_lc_CXX=yes
15789           fi
15790           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15791         else
15792           cat conftest.err 1>&5
15793         fi
15794         $RM conftest*
15795
15796 fi
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15798 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15799       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15800       ;;
15801     esac
15802   fi
15803   ;;
15804 esac
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15870 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15871
15872 library_names_spec=
15873 libname_spec='lib$name'
15874 soname_spec=
15875 shrext_cmds=".so"
15876 postinstall_cmds=
15877 postuninstall_cmds=
15878 finish_cmds=
15879 finish_eval=
15880 shlibpath_var=
15881 shlibpath_overrides_runpath=unknown
15882 version_type=none
15883 dynamic_linker="$host_os ld.so"
15884 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15885 need_lib_prefix=unknown
15886 hardcode_into_libs=no
15887
15888 # when you set need_version to no, make sure it does not cause -set_version
15889 # flags to be left without arguments
15890 need_version=unknown
15891
15892 case $host_os in
15893 aix3*)
15894   version_type=linux
15895   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15896   shlibpath_var=LIBPATH
15897
15898   # AIX 3 has no versioning support, so we append a major version to the name.
15899   soname_spec='${libname}${release}${shared_ext}$major'
15900   ;;
15901
15902 aix[4-9]*)
15903   version_type=linux
15904   need_lib_prefix=no
15905   need_version=no
15906   hardcode_into_libs=yes
15907   if test "$host_cpu" = ia64; then
15908     # AIX 5 supports IA64
15909     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15910     shlibpath_var=LD_LIBRARY_PATH
15911   else
15912     # With GCC up to 2.95.x, collect2 would create an import file
15913     # for dependence libraries.  The import file would start with
15914     # the line `#! .'.  This would cause the generated library to
15915     # depend on `.', always an invalid library.  This was fixed in
15916     # development snapshots of GCC prior to 3.0.
15917     case $host_os in
15918       aix4 | aix4.[01] | aix4.[01].*)
15919       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15920            echo ' yes '
15921            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15922         :
15923       else
15924         can_build_shared=no
15925       fi
15926       ;;
15927     esac
15928     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15929     # soname into executable. Probably we can add versioning support to
15930     # collect2, so additional links can be useful in future.
15931     if test "$aix_use_runtimelinking" = yes; then
15932       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15933       # instead of lib<name>.a to let people know that these are not
15934       # typical AIX shared libraries.
15935       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15936     else
15937       # We preserve .a as extension for shared libraries through AIX4.2
15938       # and later when we are not doing run time linking.
15939       library_names_spec='${libname}${release}.a $libname.a'
15940       soname_spec='${libname}${release}${shared_ext}$major'
15941     fi
15942     shlibpath_var=LIBPATH
15943   fi
15944   ;;
15945
15946 amigaos*)
15947   case $host_cpu in
15948   powerpc)
15949     # Since July 2007 AmigaOS4 officially supports .so libraries.
15950     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15951     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15952     ;;
15953   m68k)
15954     library_names_spec='$libname.ixlibrary $libname.a'
15955     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15956     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'
15957     ;;
15958   esac
15959   ;;
15960
15961 beos*)
15962   library_names_spec='${libname}${shared_ext}'
15963   dynamic_linker="$host_os ld.so"
15964   shlibpath_var=LIBRARY_PATH
15965   ;;
15966
15967 bsdi[45]*)
15968   version_type=linux
15969   need_version=no
15970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15971   soname_spec='${libname}${release}${shared_ext}$major'
15972   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15973   shlibpath_var=LD_LIBRARY_PATH
15974   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15975   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15976   # the default ld.so.conf also contains /usr/contrib/lib and
15977   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15978   # libtool to hard-code these into programs
15979   ;;
15980
15981 cygwin* | mingw* | pw32* | cegcc*)
15982   version_type=windows
15983   shrext_cmds=".dll"
15984   need_version=no
15985   need_lib_prefix=no
15986
15987   case $GCC,$host_os in
15988   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15989     library_names_spec='$libname.dll.a'
15990     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15991     postinstall_cmds='base_file=`basename \${file}`~
15992       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15993       dldir=$destdir/`dirname \$dlpath`~
15994       test -d \$dldir || mkdir -p \$dldir~
15995       $install_prog $dir/$dlname \$dldir/$dlname~
15996       chmod a+x \$dldir/$dlname~
15997       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15998         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15999       fi'
16000     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16001       dlpath=$dir/\$dldll~
16002        $RM \$dlpath'
16003     shlibpath_overrides_runpath=yes
16004
16005     case $host_os in
16006     cygwin*)
16007       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16008       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16009
16010       ;;
16011     mingw* | cegcc*)
16012       # MinGW DLLs use traditional 'lib' prefix
16013       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16014       ;;
16015     pw32*)
16016       # pw32 DLLs use 'pw' prefix rather than 'lib'
16017       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16018       ;;
16019     esac
16020     ;;
16021
16022   *)
16023     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16024     ;;
16025   esac
16026   dynamic_linker='Win32 ld.exe'
16027   # FIXME: first we should search . and the directory the executable is in
16028   shlibpath_var=PATH
16029   ;;
16030
16031 darwin* | rhapsody*)
16032   dynamic_linker="$host_os dyld"
16033   version_type=darwin
16034   need_lib_prefix=no
16035   need_version=no
16036   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16037   soname_spec='${libname}${release}${major}$shared_ext'
16038   shlibpath_overrides_runpath=yes
16039   shlibpath_var=DYLD_LIBRARY_PATH
16040   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16041
16042   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16043   ;;
16044
16045 dgux*)
16046   version_type=linux
16047   need_lib_prefix=no
16048   need_version=no
16049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16050   soname_spec='${libname}${release}${shared_ext}$major'
16051   shlibpath_var=LD_LIBRARY_PATH
16052   ;;
16053
16054 freebsd1*)
16055   dynamic_linker=no
16056   ;;
16057
16058 freebsd* | dragonfly*)
16059   # DragonFly does not have aout.  When/if they implement a new
16060   # versioning mechanism, adjust this.
16061   if test -x /usr/bin/objformat; then
16062     objformat=`/usr/bin/objformat`
16063   else
16064     case $host_os in
16065     freebsd[123]*) objformat=aout ;;
16066     *) objformat=elf ;;
16067     esac
16068   fi
16069   version_type=freebsd-$objformat
16070   case $version_type in
16071     freebsd-elf*)
16072       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16073       need_version=no
16074       need_lib_prefix=no
16075       ;;
16076     freebsd-*)
16077       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16078       need_version=yes
16079       ;;
16080   esac
16081   shlibpath_var=LD_LIBRARY_PATH
16082   case $host_os in
16083   freebsd2*)
16084     shlibpath_overrides_runpath=yes
16085     ;;
16086   freebsd3.[01]* | freebsdelf3.[01]*)
16087     shlibpath_overrides_runpath=yes
16088     hardcode_into_libs=yes
16089     ;;
16090   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16091   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16092     shlibpath_overrides_runpath=no
16093     hardcode_into_libs=yes
16094     ;;
16095   *) # from 4.6 on, and DragonFly
16096     shlibpath_overrides_runpath=yes
16097     hardcode_into_libs=yes
16098     ;;
16099   esac
16100   ;;
16101
16102 gnu*)
16103   version_type=linux
16104   need_lib_prefix=no
16105   need_version=no
16106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16107   soname_spec='${libname}${release}${shared_ext}$major'
16108   shlibpath_var=LD_LIBRARY_PATH
16109   hardcode_into_libs=yes
16110   ;;
16111
16112 haiku*)
16113   version_type=linux
16114   need_lib_prefix=no
16115   need_version=no
16116   dynamic_linker="$host_os runtime_loader"
16117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16118   soname_spec='${libname}${release}${shared_ext}$major'
16119   shlibpath_var=LIBRARY_PATH
16120   shlibpath_overrides_runpath=yes
16121   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16122   hardcode_into_libs=yes
16123   ;;
16124
16125 hpux9* | hpux10* | hpux11*)
16126   # Give a soname corresponding to the major version so that dld.sl refuses to
16127   # link against other versions.
16128   version_type=sunos
16129   need_lib_prefix=no
16130   need_version=no
16131   case $host_cpu in
16132   ia64*)
16133     shrext_cmds='.so'
16134     hardcode_into_libs=yes
16135     dynamic_linker="$host_os dld.so"
16136     shlibpath_var=LD_LIBRARY_PATH
16137     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16138     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16139     soname_spec='${libname}${release}${shared_ext}$major'
16140     if test "X$HPUX_IA64_MODE" = X32; then
16141       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16142     else
16143       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16144     fi
16145     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16146     ;;
16147   hppa*64*)
16148     shrext_cmds='.sl'
16149     hardcode_into_libs=yes
16150     dynamic_linker="$host_os dld.sl"
16151     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16152     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16153     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16154     soname_spec='${libname}${release}${shared_ext}$major'
16155     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16156     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16157     ;;
16158   *)
16159     shrext_cmds='.sl'
16160     dynamic_linker="$host_os dld.sl"
16161     shlibpath_var=SHLIB_PATH
16162     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16163     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16164     soname_spec='${libname}${release}${shared_ext}$major'
16165     ;;
16166   esac
16167   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16168   postinstall_cmds='chmod 555 $lib'
16169   # or fails outright, so override atomically:
16170   install_override_mode=555
16171   ;;
16172
16173 interix[3-9]*)
16174   version_type=linux
16175   need_lib_prefix=no
16176   need_version=no
16177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16178   soname_spec='${libname}${release}${shared_ext}$major'
16179   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16180   shlibpath_var=LD_LIBRARY_PATH
16181   shlibpath_overrides_runpath=no
16182   hardcode_into_libs=yes
16183   ;;
16184
16185 irix5* | irix6* | nonstopux*)
16186   case $host_os in
16187     nonstopux*) version_type=nonstopux ;;
16188     *)
16189         if test "$lt_cv_prog_gnu_ld" = yes; then
16190                 version_type=linux
16191         else
16192                 version_type=irix
16193         fi ;;
16194   esac
16195   need_lib_prefix=no
16196   need_version=no
16197   soname_spec='${libname}${release}${shared_ext}$major'
16198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16199   case $host_os in
16200   irix5* | nonstopux*)
16201     libsuff= shlibsuff=
16202     ;;
16203   *)
16204     case $LD in # libtool.m4 will add one of these switches to LD
16205     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16206       libsuff= shlibsuff= libmagic=32-bit;;
16207     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16208       libsuff=32 shlibsuff=N32 libmagic=N32;;
16209     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16210       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16211     *) libsuff= shlibsuff= libmagic=never-match;;
16212     esac
16213     ;;
16214   esac
16215   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16216   shlibpath_overrides_runpath=no
16217   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16218   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16219   hardcode_into_libs=yes
16220   ;;
16221
16222 # No shared lib support for Linux oldld, aout, or coff.
16223 linux*oldld* | linux*aout* | linux*coff*)
16224   dynamic_linker=no
16225   ;;
16226
16227 # This must be Linux ELF.
16228 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16229   version_type=linux
16230   need_lib_prefix=no
16231   need_version=no
16232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16233   soname_spec='${libname}${release}${shared_ext}$major'
16234   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16235   shlibpath_var=LD_LIBRARY_PATH
16236   shlibpath_overrides_runpath=no
16237
16238   # Some binutils ld are patched to set DT_RUNPATH
16239   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16240   $as_echo_n "(cached) " >&6
16241 else
16242   lt_cv_shlibpath_overrides_runpath=no
16243     save_LDFLAGS=$LDFLAGS
16244     save_libdir=$libdir
16245     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16246          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16247     if test x$gcc_no_link = xyes; then
16248   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16249 fi
16250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16251 /* end confdefs.h.  */
16252
16253 int
16254 main ()
16255 {
16256
16257   ;
16258   return 0;
16259 }
16260 _ACEOF
16261 if ac_fn_cxx_try_link "$LINENO"; then :
16262   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16263   lt_cv_shlibpath_overrides_runpath=yes
16264 fi
16265 fi
16266 rm -f core conftest.err conftest.$ac_objext \
16267     conftest$ac_exeext conftest.$ac_ext
16268     LDFLAGS=$save_LDFLAGS
16269     libdir=$save_libdir
16270
16271 fi
16272
16273   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16274
16275   # This implies no fast_install, which is unacceptable.
16276   # Some rework will be needed to allow for fast_install
16277   # before this can be enabled.
16278   hardcode_into_libs=yes
16279
16280   # Append ld.so.conf contents to the search path
16281   if test -f /etc/ld.so.conf; then
16282     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' ' '`
16283     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16284   fi
16285
16286   # We used to test for /lib/ld.so.1 and disable shared libraries on
16287   # powerpc, because MkLinux only supported shared libraries with the
16288   # GNU dynamic linker.  Since this was broken with cross compilers,
16289   # most powerpc-linux boxes support dynamic linking these days and
16290   # people can always --disable-shared, the test was removed, and we
16291   # assume the GNU/Linux dynamic linker is in use.
16292   dynamic_linker='GNU/Linux ld.so'
16293   ;;
16294
16295 netbsd*)
16296   version_type=sunos
16297   need_lib_prefix=no
16298   need_version=no
16299   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16300     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16301     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16302     dynamic_linker='NetBSD (a.out) ld.so'
16303   else
16304     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16305     soname_spec='${libname}${release}${shared_ext}$major'
16306     dynamic_linker='NetBSD ld.elf_so'
16307   fi
16308   shlibpath_var=LD_LIBRARY_PATH
16309   shlibpath_overrides_runpath=yes
16310   hardcode_into_libs=yes
16311   ;;
16312
16313 newsos6)
16314   version_type=linux
16315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16316   shlibpath_var=LD_LIBRARY_PATH
16317   shlibpath_overrides_runpath=yes
16318   ;;
16319
16320 *nto* | *qnx*)
16321   version_type=qnx
16322   need_lib_prefix=no
16323   need_version=no
16324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16325   soname_spec='${libname}${release}${shared_ext}$major'
16326   shlibpath_var=LD_LIBRARY_PATH
16327   shlibpath_overrides_runpath=no
16328   hardcode_into_libs=yes
16329   dynamic_linker='ldqnx.so'
16330   ;;
16331
16332 openbsd*)
16333   version_type=sunos
16334   sys_lib_dlsearch_path_spec="/usr/lib"
16335   need_lib_prefix=no
16336   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16337   case $host_os in
16338     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16339     *)                          need_version=no  ;;
16340   esac
16341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16342   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16343   shlibpath_var=LD_LIBRARY_PATH
16344   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16345     case $host_os in
16346       openbsd2.[89] | openbsd2.[89].*)
16347         shlibpath_overrides_runpath=no
16348         ;;
16349       *)
16350         shlibpath_overrides_runpath=yes
16351         ;;
16352       esac
16353   else
16354     shlibpath_overrides_runpath=yes
16355   fi
16356   ;;
16357
16358 os2*)
16359   libname_spec='$name'
16360   shrext_cmds=".dll"
16361   need_lib_prefix=no
16362   library_names_spec='$libname${shared_ext} $libname.a'
16363   dynamic_linker='OS/2 ld.exe'
16364   shlibpath_var=LIBPATH
16365   ;;
16366
16367 osf3* | osf4* | osf5*)
16368   version_type=osf
16369   need_lib_prefix=no
16370   need_version=no
16371   soname_spec='${libname}${release}${shared_ext}$major'
16372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16373   shlibpath_var=LD_LIBRARY_PATH
16374   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16375   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16376   ;;
16377
16378 rdos*)
16379   dynamic_linker=no
16380   ;;
16381
16382 solaris*)
16383   version_type=linux
16384   need_lib_prefix=no
16385   need_version=no
16386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16387   soname_spec='${libname}${release}${shared_ext}$major'
16388   shlibpath_var=LD_LIBRARY_PATH
16389   shlibpath_overrides_runpath=yes
16390   hardcode_into_libs=yes
16391   # ldd complains unless libraries are executable
16392   postinstall_cmds='chmod +x $lib'
16393   ;;
16394
16395 sunos4*)
16396   version_type=sunos
16397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16398   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16399   shlibpath_var=LD_LIBRARY_PATH
16400   shlibpath_overrides_runpath=yes
16401   if test "$with_gnu_ld" = yes; then
16402     need_lib_prefix=no
16403   fi
16404   need_version=yes
16405   ;;
16406
16407 sysv4 | sysv4.3*)
16408   version_type=linux
16409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16410   soname_spec='${libname}${release}${shared_ext}$major'
16411   shlibpath_var=LD_LIBRARY_PATH
16412   case $host_vendor in
16413     sni)
16414       shlibpath_overrides_runpath=no
16415       need_lib_prefix=no
16416       runpath_var=LD_RUN_PATH
16417       ;;
16418     siemens)
16419       need_lib_prefix=no
16420       ;;
16421     motorola)
16422       need_lib_prefix=no
16423       need_version=no
16424       shlibpath_overrides_runpath=no
16425       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16426       ;;
16427   esac
16428   ;;
16429
16430 sysv4*MP*)
16431   if test -d /usr/nec ;then
16432     version_type=linux
16433     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16434     soname_spec='$libname${shared_ext}.$major'
16435     shlibpath_var=LD_LIBRARY_PATH
16436   fi
16437   ;;
16438
16439 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16440   version_type=freebsd-elf
16441   need_lib_prefix=no
16442   need_version=no
16443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16444   soname_spec='${libname}${release}${shared_ext}$major'
16445   shlibpath_var=LD_LIBRARY_PATH
16446   shlibpath_overrides_runpath=yes
16447   hardcode_into_libs=yes
16448   if test "$with_gnu_ld" = yes; then
16449     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16450   else
16451     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16452     case $host_os in
16453       sco3.2v5*)
16454         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16455         ;;
16456     esac
16457   fi
16458   sys_lib_dlsearch_path_spec='/usr/lib'
16459   ;;
16460
16461 tpf*)
16462   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16463   version_type=linux
16464   need_lib_prefix=no
16465   need_version=no
16466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16467   shlibpath_var=LD_LIBRARY_PATH
16468   shlibpath_overrides_runpath=no
16469   hardcode_into_libs=yes
16470   ;;
16471
16472 uts4*)
16473   version_type=linux
16474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16475   soname_spec='${libname}${release}${shared_ext}$major'
16476   shlibpath_var=LD_LIBRARY_PATH
16477   ;;
16478
16479 *)
16480   dynamic_linker=no
16481   ;;
16482 esac
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16484 $as_echo "$dynamic_linker" >&6; }
16485 test "$dynamic_linker" = no && can_build_shared=no
16486
16487 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16488 if test "$GCC" = yes; then
16489   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16490 fi
16491
16492 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16493   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16494 fi
16495 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16496   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16497 fi
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16537 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16538 hardcode_action_CXX=
16539 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16540    test -n "$runpath_var_CXX" ||
16541    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16542
16543   # We can hardcode non-existent directories.
16544   if test "$hardcode_direct_CXX" != no &&
16545      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16546      # have to relink, otherwise we might link with an installed library
16547      # when we should be linking with a yet-to-be-installed one
16548      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16549      test "$hardcode_minus_L_CXX" != no; then
16550     # Linking always hardcodes the temporary library directory.
16551     hardcode_action_CXX=relink
16552   else
16553     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16554     hardcode_action_CXX=immediate
16555   fi
16556 else
16557   # We cannot hardcode anything, or else we can only hardcode existing
16558   # directories.
16559   hardcode_action_CXX=unsupported
16560 fi
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16562 $as_echo "$hardcode_action_CXX" >&6; }
16563
16564 if test "$hardcode_action_CXX" = relink ||
16565    test "$inherit_rpath_CXX" = yes; then
16566   # Fast installation is not supported
16567   enable_fast_install=no
16568 elif test "$shlibpath_overrides_runpath" = yes ||
16569      test "$enable_shared" = no; then
16570   # Fast installation is not necessary
16571   enable_fast_install=needless
16572 fi
16573
16574
16575
16576
16577
16578
16579
16580   fi # test -n "$compiler"
16581
16582   CC=$lt_save_CC
16583   LDCXX=$LD
16584   LD=$lt_save_LD
16585   GCC=$lt_save_GCC
16586   with_gnu_ld=$lt_save_with_gnu_ld
16587   lt_cv_path_LDCXX=$lt_cv_path_LD
16588   lt_cv_path_LD=$lt_save_path_LD
16589   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16590   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16591 fi # test "$_lt_caught_CXX_error" != yes
16592
16593 ac_ext=c
16594 ac_cpp='$CPP $CPPFLAGS'
16595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611         ac_config_commands="$ac_config_commands libtool"
16612
16613
16614
16615
16616 # Only expand once:
16617
16618
16619
16620 for ac_prog in gcj
16621 do
16622   # Extract the first word of "$ac_prog", so it can be a program name with args.
16623 set dummy $ac_prog; ac_word=$2
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16625 $as_echo_n "checking for $ac_word... " >&6; }
16626 if test "${ac_cv_prog_GCJ+set}" = set; then :
16627   $as_echo_n "(cached) " >&6
16628 else
16629   if test -n "$GCJ"; then
16630   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16631 else
16632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16633 for as_dir in $PATH
16634 do
16635   IFS=$as_save_IFS
16636   test -z "$as_dir" && as_dir=.
16637     for ac_exec_ext in '' $ac_executable_extensions; do
16638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16639     ac_cv_prog_GCJ="$ac_prog"
16640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16641     break 2
16642   fi
16643 done
16644   done
16645 IFS=$as_save_IFS
16646
16647 fi
16648 fi
16649 GCJ=$ac_cv_prog_GCJ
16650 if test -n "$GCJ"; then
16651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16652 $as_echo "$GCJ" >&6; }
16653 else
16654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16655 $as_echo "no" >&6; }
16656 fi
16657
16658
16659   test -n "$GCJ" && break
16660 done
16661 test -n "$GCJ" || GCJ="gcj"
16662
16663 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
16664 if test "x${GCJFLAGS-unset}" = xunset; then
16665    GCJFLAGS="-g -O2"
16666 fi
16667
16668
16669 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
16670
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16672 $as_echo_n "checking dependency style of $depcc... " >&6; }
16673 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16674   $as_echo_n "(cached) " >&6
16675 else
16676   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16677   # We make a subdir and do the tests there.  Otherwise we can end up
16678   # making bogus files that we don't know about and never remove.  For
16679   # instance it was reported that on HP-UX the gcc test will end up
16680   # making a dummy file named `D' -- because `-MD' means `put the output
16681   # in D'.
16682   mkdir conftest.dir
16683   # Copy depcomp to subdir because otherwise we won't find it if we're
16684   # using a relative directory.
16685   cp "$am_depcomp" conftest.dir
16686   cd conftest.dir
16687   # We will build objects and dependencies in a subdirectory because
16688   # it helps to detect inapplicable dependency modes.  For instance
16689   # both Tru64's cc and ICC support -MD to output dependencies as a
16690   # side effect of compilation, but ICC will put the dependencies in
16691   # the current directory while Tru64 will put them in the object
16692   # directory.
16693   mkdir sub
16694
16695   am_cv_GCJ_dependencies_compiler_type=none
16696   if test "$am_compiler_list" = ""; then
16697      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16698   fi
16699   am__universal=false
16700
16701
16702   for depmode in $am_compiler_list; do
16703     # Setup a source with many dependencies, because some compilers
16704     # like to wrap large dependency lists on column 80 (with \), and
16705     # we should not choose a depcomp mode which is confused by this.
16706     #
16707     # We need to recreate these files for each test, as the compiler may
16708     # overwrite some of them when testing with obscure command lines.
16709     # This happens at least with the AIX C compiler.
16710     : > sub/conftest.c
16711     for i in 1 2 3 4 5 6; do
16712       echo '#include "conftst'$i'.h"' >> sub/conftest.c
16713       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16714       # Solaris 8's {/usr,}/bin/sh.
16715       touch sub/conftst$i.h
16716     done
16717     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16718
16719     # We check with `-c' and `-o' for the sake of the "dashmstdout"
16720     # mode.  It turns out that the SunPro C++ compiler does not properly
16721     # handle `-M -o', and we need to detect this.  Also, some Intel
16722     # versions had trouble with output in subdirs
16723     am__obj=sub/conftest.${OBJEXT-o}
16724     am__minus_obj="-o $am__obj"
16725     case $depmode in
16726     gcc)
16727       # This depmode causes a compiler race in universal mode.
16728       test "$am__universal" = false || continue
16729       ;;
16730     nosideeffect)
16731       # after this tag, mechanisms are not by side-effect, so they'll
16732       # only be used when explicitly requested
16733       if test "x$enable_dependency_tracking" = xyes; then
16734         continue
16735       else
16736         break
16737       fi
16738       ;;
16739     msvisualcpp | msvcmsys)
16740       # This compiler won't grok `-c -o', but also, the minuso test has
16741       # not run yet.  These depmodes are late enough in the game, and
16742       # so weak that their functioning should not be impacted.
16743       am__obj=conftest.${OBJEXT-o}
16744       am__minus_obj=
16745       ;;
16746     none) break ;;
16747     esac
16748     if depmode=$depmode \
16749        source=sub/conftest.c object=$am__obj \
16750        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16751        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16752          >/dev/null 2>conftest.err &&
16753        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16754        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16755        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16756        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16757       # icc doesn't choke on unknown options, it will just issue warnings
16758       # or remarks (even with -Werror).  So we grep stderr for any message
16759       # that says an option was ignored or not supported.
16760       # When given -MP, icc 7.0 and 7.1 complain thusly:
16761       #   icc: Command line warning: ignoring option '-M'; no argument required
16762       # The diagnosis changed in icc 8.0:
16763       #   icc: Command line remark: option '-MP' not supported
16764       if (grep 'ignoring option' conftest.err ||
16765           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16766         am_cv_GCJ_dependencies_compiler_type=$depmode
16767         break
16768       fi
16769     fi
16770   done
16771
16772   cd ..
16773   rm -rf conftest.dir
16774 else
16775   am_cv_GCJ_dependencies_compiler_type=none
16776 fi
16777
16778 fi
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16780 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
16781 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16782
16783  if
16784   test "x$enable_dependency_tracking" != xno \
16785   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16786   am__fastdepGCJ_TRUE=
16787   am__fastdepGCJ_FALSE='#'
16788 else
16789   am__fastdepGCJ_TRUE='#'
16790   am__fastdepGCJ_FALSE=
16791 fi
16792
16793
16794
16795 for ac_prog in gcj
16796 do
16797   # Extract the first word of "$ac_prog", so it can be a program name with args.
16798 set dummy $ac_prog; ac_word=$2
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16800 $as_echo_n "checking for $ac_word... " >&6; }
16801 if test "${ac_cv_prog_GCJ+set}" = set; then :
16802   $as_echo_n "(cached) " >&6
16803 else
16804   if test -n "$GCJ"; then
16805   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16806 else
16807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16808 for as_dir in $PATH
16809 do
16810   IFS=$as_save_IFS
16811   test -z "$as_dir" && as_dir=.
16812     for ac_exec_ext in '' $ac_executable_extensions; do
16813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16814     ac_cv_prog_GCJ="$ac_prog"
16815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16816     break 2
16817   fi
16818 done
16819   done
16820 IFS=$as_save_IFS
16821
16822 fi
16823 fi
16824 GCJ=$ac_cv_prog_GCJ
16825 if test -n "$GCJ"; then
16826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16827 $as_echo "$GCJ" >&6; }
16828 else
16829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16830 $as_echo "no" >&6; }
16831 fi
16832
16833
16834   test -n "$GCJ" && break
16835 done
16836 test -n "$GCJ" || GCJ="gcj"
16837
16838 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
16839 if test "x${GCJFLAGS-unset}" = xunset; then
16840    GCJFLAGS="-g -O2"
16841 fi
16842
16843
16844 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
16845
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16847 $as_echo_n "checking dependency style of $depcc... " >&6; }
16848 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16849   $as_echo_n "(cached) " >&6
16850 else
16851   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16852   # We make a subdir and do the tests there.  Otherwise we can end up
16853   # making bogus files that we don't know about and never remove.  For
16854   # instance it was reported that on HP-UX the gcc test will end up
16855   # making a dummy file named `D' -- because `-MD' means `put the output
16856   # in D'.
16857   mkdir conftest.dir
16858   # Copy depcomp to subdir because otherwise we won't find it if we're
16859   # using a relative directory.
16860   cp "$am_depcomp" conftest.dir
16861   cd conftest.dir
16862   # We will build objects and dependencies in a subdirectory because
16863   # it helps to detect inapplicable dependency modes.  For instance
16864   # both Tru64's cc and ICC support -MD to output dependencies as a
16865   # side effect of compilation, but ICC will put the dependencies in
16866   # the current directory while Tru64 will put them in the object
16867   # directory.
16868   mkdir sub
16869
16870   am_cv_GCJ_dependencies_compiler_type=none
16871   if test "$am_compiler_list" = ""; then
16872      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16873   fi
16874   am__universal=false
16875
16876
16877   for depmode in $am_compiler_list; do
16878     # Setup a source with many dependencies, because some compilers
16879     # like to wrap large dependency lists on column 80 (with \), and
16880     # we should not choose a depcomp mode which is confused by this.
16881     #
16882     # We need to recreate these files for each test, as the compiler may
16883     # overwrite some of them when testing with obscure command lines.
16884     # This happens at least with the AIX C compiler.
16885     : > sub/conftest.c
16886     for i in 1 2 3 4 5 6; do
16887       echo '#include "conftst'$i'.h"' >> sub/conftest.c
16888       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16889       # Solaris 8's {/usr,}/bin/sh.
16890       touch sub/conftst$i.h
16891     done
16892     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16893
16894     # We check with `-c' and `-o' for the sake of the "dashmstdout"
16895     # mode.  It turns out that the SunPro C++ compiler does not properly
16896     # handle `-M -o', and we need to detect this.  Also, some Intel
16897     # versions had trouble with output in subdirs
16898     am__obj=sub/conftest.${OBJEXT-o}
16899     am__minus_obj="-o $am__obj"
16900     case $depmode in
16901     gcc)
16902       # This depmode causes a compiler race in universal mode.
16903       test "$am__universal" = false || continue
16904       ;;
16905     nosideeffect)
16906       # after this tag, mechanisms are not by side-effect, so they'll
16907       # only be used when explicitly requested
16908       if test "x$enable_dependency_tracking" = xyes; then
16909         continue
16910       else
16911         break
16912       fi
16913       ;;
16914     msvisualcpp | msvcmsys)
16915       # This compiler won't grok `-c -o', but also, the minuso test has
16916       # not run yet.  These depmodes are late enough in the game, and
16917       # so weak that their functioning should not be impacted.
16918       am__obj=conftest.${OBJEXT-o}
16919       am__minus_obj=
16920       ;;
16921     none) break ;;
16922     esac
16923     if depmode=$depmode \
16924        source=sub/conftest.c object=$am__obj \
16925        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16926        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16927          >/dev/null 2>conftest.err &&
16928        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16929        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16930        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16931        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16932       # icc doesn't choke on unknown options, it will just issue warnings
16933       # or remarks (even with -Werror).  So we grep stderr for any message
16934       # that says an option was ignored or not supported.
16935       # When given -MP, icc 7.0 and 7.1 complain thusly:
16936       #   icc: Command line warning: ignoring option '-M'; no argument required
16937       # The diagnosis changed in icc 8.0:
16938       #   icc: Command line remark: option '-MP' not supported
16939       if (grep 'ignoring option' conftest.err ||
16940           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16941         am_cv_GCJ_dependencies_compiler_type=$depmode
16942         break
16943       fi
16944     fi
16945   done
16946
16947   cd ..
16948   rm -rf conftest.dir
16949 else
16950   am_cv_GCJ_dependencies_compiler_type=none
16951 fi
16952
16953 fi
16954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16955 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
16956 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16957
16958  if
16959   test "x$enable_dependency_tracking" != xno \
16960   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16961   am__fastdepGCJ_TRUE=
16962   am__fastdepGCJ_FALSE='#'
16963 else
16964   am__fastdepGCJ_TRUE='#'
16965   am__fastdepGCJ_FALSE=
16966 fi
16967
16968
16969
16970
16971
16972 # Source file extension for Java test sources.
16973 ac_ext=c
16974
16975 # Object file extension for compiled Java test sources.
16976 objext=o
16977 objext_GCJ=$objext
16978
16979 # Code to be used in simple compile tests
16980 lt_simple_compile_test_code="int some_variable = 0;"
16981
16982 # Code to be used in simple link tests
16983 lt_simple_link_test_code='int main(){return(0);}'
16984
16985 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16986
16987
16988
16989
16990
16991
16992 # If no C compiler was specified, use CC.
16993 LTCC=${LTCC-"$CC"}
16994
16995 # If no C compiler flags were specified, use CFLAGS.
16996 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16997
16998 # Allow CC to be a program name with arguments.
16999 compiler=$CC
17000
17001
17002 # save warnings/boilerplate of simple test code
17003 ac_outfile=conftest.$ac_objext
17004 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17005 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17006 _lt_compiler_boilerplate=`cat conftest.err`
17007 $RM conftest*
17008
17009 ac_outfile=conftest.$ac_objext
17010 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17011 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17012 _lt_linker_boilerplate=`cat conftest.err`
17013 $RM -r conftest*
17014
17015
17016 # Allow CC to be a program name with arguments.
17017 GCC=yes
17018 compiler=$CC
17019 compiler_GCJ=$CC
17020 for cc_temp in $compiler""; do
17021   case $cc_temp in
17022     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17023     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17024     \-*) ;;
17025     *) break;;
17026   esac
17027 done
17028 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17029
17030
17031 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17032 archive_cmds_need_lc_GCJ=no
17033
17034 old_archive_cmds_GCJ=$old_archive_cmds
17035
17036 ## CAVEAT EMPTOR:
17037 ## There is no encapsulation within the following macros, do not change
17038 ## the running order or otherwise move them around unless you know exactly
17039 ## what you are doing...
17040 if test -n "$compiler"; then
17041
17042 lt_prog_compiler_no_builtin_flag_GCJ=
17043
17044 if test "$GCC" = yes; then
17045   case $cc_basename in
17046   nvcc*)
17047     lt_prog_compiler_no_builtin_flag_GCJ=' -Xcompiler -fno-builtin' ;;
17048   *)
17049     lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' ;;
17050   esac
17051
17052   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17053 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17054 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
17055   $as_echo_n "(cached) " >&6
17056 else
17057   lt_cv_prog_compiler_rtti_exceptions=no
17058    ac_outfile=conftest.$ac_objext
17059    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17060    lt_compiler_flag="-fno-rtti -fno-exceptions"
17061    # Insert the option either (1) after the last *FLAGS variable, or
17062    # (2) before a word containing "conftest.", or (3) at the end.
17063    # Note that $ac_compile itself does not contain backslashes and begins
17064    # with a dollar sign (not a hyphen), so the echo should work correctly.
17065    # The option is referenced via a variable to avoid confusing sed.
17066    lt_compile=`echo "$ac_compile" | $SED \
17067    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17068    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17069    -e 's:$: $lt_compiler_flag:'`
17070    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17071    (eval "$lt_compile" 2>conftest.err)
17072    ac_status=$?
17073    cat conftest.err >&5
17074    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075    if (exit $ac_status) && test -s "$ac_outfile"; then
17076      # The compiler can only warn and ignore the option if not recognized
17077      # So say no if there are warnings other than the usual output.
17078      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17079      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17080      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17081        lt_cv_prog_compiler_rtti_exceptions=yes
17082      fi
17083    fi
17084    $RM conftest*
17085
17086 fi
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17088 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17089
17090 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17091     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17092 else
17093     :
17094 fi
17095
17096 fi
17097
17098
17099
17100   lt_prog_compiler_wl_GCJ=
17101 lt_prog_compiler_pic_GCJ=
17102 lt_prog_compiler_static_GCJ=
17103
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17105 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17106
17107   if test "$GCC" = yes; then
17108     lt_prog_compiler_wl_GCJ='-Wl,'
17109     lt_prog_compiler_static_GCJ='-static'
17110
17111     case $host_os in
17112       aix*)
17113       # All AIX code is PIC.
17114       if test "$host_cpu" = ia64; then
17115         # AIX 5 now supports IA64 processor
17116         lt_prog_compiler_static_GCJ='-Bstatic'
17117       fi
17118       ;;
17119
17120     amigaos*)
17121       case $host_cpu in
17122       powerpc)
17123             # see comment about AmigaOS4 .so support
17124             lt_prog_compiler_pic_GCJ='-fPIC'
17125         ;;
17126       m68k)
17127             # FIXME: we need at least 68020 code to build shared libraries, but
17128             # adding the `-m68020' flag to GCC prevents building anything better,
17129             # like `-m68040'.
17130             lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17131         ;;
17132       esac
17133       ;;
17134
17135     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17136       # PIC is the default for these OSes.
17137       ;;
17138
17139     mingw* | cygwin* | pw32* | os2* | cegcc*)
17140       # This hack is so that the source file can tell whether it is being
17141       # built for inclusion in a dll (and should export symbols for example).
17142       # Although the cygwin gcc ignores -fPIC, still need this for old-style
17143       # (--disable-auto-import) libraries
17144
17145       ;;
17146
17147     darwin* | rhapsody*)
17148       # PIC is the default on this platform
17149       # Common symbols not allowed in MH_DYLIB files
17150       lt_prog_compiler_pic_GCJ='-fno-common'
17151       ;;
17152
17153     haiku*)
17154       # PIC is the default for Haiku.
17155       # The "-static" flag exists, but is broken.
17156       lt_prog_compiler_static_GCJ=
17157       ;;
17158
17159     hpux*)
17160       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17161       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
17162       # sets the default TLS model and affects inlining.
17163       case $host_cpu in
17164       hppa*64*)
17165         # +Z the default
17166         ;;
17167       *)
17168         lt_prog_compiler_pic_GCJ='-fPIC'
17169         ;;
17170       esac
17171       ;;
17172
17173     interix[3-9]*)
17174       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17175       # Instead, we relocate shared libraries at runtime.
17176       ;;
17177
17178     msdosdjgpp*)
17179       # Just because we use GCC doesn't mean we suddenly get shared libraries
17180       # on systems that don't support them.
17181       lt_prog_compiler_can_build_shared_GCJ=no
17182       enable_shared=no
17183       ;;
17184
17185     *nto* | *qnx*)
17186       # QNX uses GNU C++, but need to define -shared option too, otherwise
17187       # it will coredump.
17188       lt_prog_compiler_pic_GCJ='-fPIC -shared'
17189       ;;
17190
17191     sysv4*MP*)
17192       if test -d /usr/nec; then
17193         lt_prog_compiler_pic_GCJ=-Kconform_pic
17194       fi
17195       ;;
17196
17197     *)
17198       lt_prog_compiler_pic_GCJ='-fPIC'
17199       ;;
17200     esac
17201
17202     case $cc_basename in
17203     nvcc*) # Cuda Compiler Driver 2.2
17204       lt_prog_compiler_wl_GCJ='-Xlinker '
17205       lt_prog_compiler_pic_GCJ='-Xcompiler -fPIC'
17206       ;;
17207     esac
17208   else
17209     # PORTME Check for flag to pass linker flags through the system compiler.
17210     case $host_os in
17211     aix*)
17212       lt_prog_compiler_wl_GCJ='-Wl,'
17213       if test "$host_cpu" = ia64; then
17214         # AIX 5 now supports IA64 processor
17215         lt_prog_compiler_static_GCJ='-Bstatic'
17216       else
17217         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17218       fi
17219       ;;
17220
17221     mingw* | cygwin* | pw32* | os2* | cegcc*)
17222       # This hack is so that the source file can tell whether it is being
17223       # built for inclusion in a dll (and should export symbols for example).
17224
17225       ;;
17226
17227     hpux9* | hpux10* | hpux11*)
17228       lt_prog_compiler_wl_GCJ='-Wl,'
17229       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17230       # not for PA HP-UX.
17231       case $host_cpu in
17232       hppa*64*|ia64*)
17233         # +Z the default
17234         ;;
17235       *)
17236         lt_prog_compiler_pic_GCJ='+Z'
17237         ;;
17238       esac
17239       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17240       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17241       ;;
17242
17243     irix5* | irix6* | nonstopux*)
17244       lt_prog_compiler_wl_GCJ='-Wl,'
17245       # PIC (with -KPIC) is the default.
17246       lt_prog_compiler_static_GCJ='-non_shared'
17247       ;;
17248
17249     linux* | k*bsd*-gnu | kopensolaris*-gnu)
17250       case $cc_basename in
17251       # old Intel for x86_64 which still supported -KPIC.
17252       ecc*)
17253         lt_prog_compiler_wl_GCJ='-Wl,'
17254         lt_prog_compiler_pic_GCJ='-KPIC'
17255         lt_prog_compiler_static_GCJ='-static'
17256         ;;
17257       # icc used to be incompatible with GCC.
17258       # ICC 10 doesn't accept -KPIC any more.
17259       icc* | ifort*)
17260         lt_prog_compiler_wl_GCJ='-Wl,'
17261         lt_prog_compiler_pic_GCJ='-fPIC'
17262         lt_prog_compiler_static_GCJ='-static'
17263         ;;
17264       # Lahey Fortran 8.1.
17265       lf95*)
17266         lt_prog_compiler_wl_GCJ='-Wl,'
17267         lt_prog_compiler_pic_GCJ='--shared'
17268         lt_prog_compiler_static_GCJ='--static'
17269         ;;
17270       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17271         # Portland Group compilers (*not* the Pentium gcc compiler,
17272         # which looks to be a dead project)
17273         lt_prog_compiler_wl_GCJ='-Wl,'
17274         lt_prog_compiler_pic_GCJ='-fpic'
17275         lt_prog_compiler_static_GCJ='-Bstatic'
17276         ;;
17277       ccc*)
17278         lt_prog_compiler_wl_GCJ='-Wl,'
17279         # All Alpha code is PIC.
17280         lt_prog_compiler_static_GCJ='-non_shared'
17281         ;;
17282       xl* | bgxl* | bgf* | mpixl*)
17283         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17284         lt_prog_compiler_wl_GCJ='-Wl,'
17285         lt_prog_compiler_pic_GCJ='-qpic'
17286         lt_prog_compiler_static_GCJ='-qstaticlink'
17287         ;;
17288       *)
17289         case `$CC -V 2>&1 | sed 5q` in
17290         *Sun\ F* | *Sun*Fortran*)
17291           # Sun Fortran 8.3 passes all unrecognized flags to the linker
17292           lt_prog_compiler_pic_GCJ='-KPIC'
17293           lt_prog_compiler_static_GCJ='-Bstatic'
17294           lt_prog_compiler_wl_GCJ=''
17295           ;;
17296         *Sun\ C*)
17297           # Sun C 5.9
17298           lt_prog_compiler_pic_GCJ='-KPIC'
17299           lt_prog_compiler_static_GCJ='-Bstatic'
17300           lt_prog_compiler_wl_GCJ='-Wl,'
17301           ;;
17302         esac
17303         ;;
17304       esac
17305       ;;
17306
17307     newsos6)
17308       lt_prog_compiler_pic_GCJ='-KPIC'
17309       lt_prog_compiler_static_GCJ='-Bstatic'
17310       ;;
17311
17312     *nto* | *qnx*)
17313       # QNX uses GNU C++, but need to define -shared option too, otherwise
17314       # it will coredump.
17315       lt_prog_compiler_pic_GCJ='-fPIC -shared'
17316       ;;
17317
17318     osf3* | osf4* | osf5*)
17319       lt_prog_compiler_wl_GCJ='-Wl,'
17320       # All OSF/1 code is PIC.
17321       lt_prog_compiler_static_GCJ='-non_shared'
17322       ;;
17323
17324     rdos*)
17325       lt_prog_compiler_static_GCJ='-non_shared'
17326       ;;
17327
17328     solaris*)
17329       lt_prog_compiler_pic_GCJ='-KPIC'
17330       lt_prog_compiler_static_GCJ='-Bstatic'
17331       case $cc_basename in
17332       f77* | f90* | f95*)
17333         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17334       *)
17335         lt_prog_compiler_wl_GCJ='-Wl,';;
17336       esac
17337       ;;
17338
17339     sunos4*)
17340       lt_prog_compiler_wl_GCJ='-Qoption ld '
17341       lt_prog_compiler_pic_GCJ='-PIC'
17342       lt_prog_compiler_static_GCJ='-Bstatic'
17343       ;;
17344
17345     sysv4 | sysv4.2uw2* | sysv4.3*)
17346       lt_prog_compiler_wl_GCJ='-Wl,'
17347       lt_prog_compiler_pic_GCJ='-KPIC'
17348       lt_prog_compiler_static_GCJ='-Bstatic'
17349       ;;
17350
17351     sysv4*MP*)
17352       if test -d /usr/nec ;then
17353         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17354         lt_prog_compiler_static_GCJ='-Bstatic'
17355       fi
17356       ;;
17357
17358     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17359       lt_prog_compiler_wl_GCJ='-Wl,'
17360       lt_prog_compiler_pic_GCJ='-KPIC'
17361       lt_prog_compiler_static_GCJ='-Bstatic'
17362       ;;
17363
17364     unicos*)
17365       lt_prog_compiler_wl_GCJ='-Wl,'
17366       lt_prog_compiler_can_build_shared_GCJ=no
17367       ;;
17368
17369     uts4*)
17370       lt_prog_compiler_pic_GCJ='-pic'
17371       lt_prog_compiler_static_GCJ='-Bstatic'
17372       ;;
17373
17374     *)
17375       lt_prog_compiler_can_build_shared_GCJ=no
17376       ;;
17377     esac
17378   fi
17379
17380 case $host_os in
17381   # For platforms which do not support PIC, -DPIC is meaningless:
17382   *djgpp*)
17383     lt_prog_compiler_pic_GCJ=
17384     ;;
17385   *)
17386     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17387     ;;
17388 esac
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
17390 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17391
17392
17393
17394 #
17395 # Check to make sure the PIC flag actually works.
17396 #
17397 if test -n "$lt_prog_compiler_pic_GCJ"; then
17398   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17399 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17400 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
17401   $as_echo_n "(cached) " >&6
17402 else
17403   lt_cv_prog_compiler_pic_works_GCJ=no
17404    ac_outfile=conftest.$ac_objext
17405    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17406    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17407    # Insert the option either (1) after the last *FLAGS variable, or
17408    # (2) before a word containing "conftest.", or (3) at the end.
17409    # Note that $ac_compile itself does not contain backslashes and begins
17410    # with a dollar sign (not a hyphen), so the echo should work correctly.
17411    # The option is referenced via a variable to avoid confusing sed.
17412    lt_compile=`echo "$ac_compile" | $SED \
17413    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17414    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17415    -e 's:$: $lt_compiler_flag:'`
17416    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17417    (eval "$lt_compile" 2>conftest.err)
17418    ac_status=$?
17419    cat conftest.err >&5
17420    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421    if (exit $ac_status) && test -s "$ac_outfile"; then
17422      # The compiler can only warn and ignore the option if not recognized
17423      # So say no if there are warnings other than the usual output.
17424      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17425      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17426      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17427        lt_cv_prog_compiler_pic_works_GCJ=yes
17428      fi
17429    fi
17430    $RM conftest*
17431
17432 fi
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17434 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17435
17436 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17437     case $lt_prog_compiler_pic_GCJ in
17438      "" | " "*) ;;
17439      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17440      esac
17441 else
17442     lt_prog_compiler_pic_GCJ=
17443      lt_prog_compiler_can_build_shared_GCJ=no
17444 fi
17445
17446 fi
17447
17448
17449
17450 #
17451 # Check to make sure the static flag actually works.
17452 #
17453 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17455 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17456 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
17457   $as_echo_n "(cached) " >&6
17458 else
17459   lt_cv_prog_compiler_static_works_GCJ=no
17460    save_LDFLAGS="$LDFLAGS"
17461    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17462    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17463    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17464      # The linker can only warn and ignore the option if not recognized
17465      # So say no if there are warnings
17466      if test -s conftest.err; then
17467        # Append any errors to the config.log.
17468        cat conftest.err 1>&5
17469        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17470        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17471        if diff conftest.exp conftest.er2 >/dev/null; then
17472          lt_cv_prog_compiler_static_works_GCJ=yes
17473        fi
17474      else
17475        lt_cv_prog_compiler_static_works_GCJ=yes
17476      fi
17477    fi
17478    $RM -r conftest*
17479    LDFLAGS="$save_LDFLAGS"
17480
17481 fi
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17483 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17484
17485 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17486     :
17487 else
17488     lt_prog_compiler_static_GCJ=
17489 fi
17490
17491
17492
17493
17494   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17495 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17496 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17497   $as_echo_n "(cached) " >&6
17498 else
17499   lt_cv_prog_compiler_c_o_GCJ=no
17500    $RM -r conftest 2>/dev/null
17501    mkdir conftest
17502    cd conftest
17503    mkdir out
17504    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17505
17506    lt_compiler_flag="-o out/conftest2.$ac_objext"
17507    # Insert the option either (1) after the last *FLAGS variable, or
17508    # (2) before a word containing "conftest.", or (3) at the end.
17509    # Note that $ac_compile itself does not contain backslashes and begins
17510    # with a dollar sign (not a hyphen), so the echo should work correctly.
17511    lt_compile=`echo "$ac_compile" | $SED \
17512    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17513    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17514    -e 's:$: $lt_compiler_flag:'`
17515    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17516    (eval "$lt_compile" 2>out/conftest.err)
17517    ac_status=$?
17518    cat out/conftest.err >&5
17519    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17521    then
17522      # The compiler can only warn and ignore the option if not recognized
17523      # So say no if there are warnings
17524      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17525      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17526      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17527        lt_cv_prog_compiler_c_o_GCJ=yes
17528      fi
17529    fi
17530    chmod u+w . 2>&5
17531    $RM conftest*
17532    # SGI C++ compiler will create directory out/ii_files/ for
17533    # template instantiation
17534    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17535    $RM out/* && rmdir out
17536    cd ..
17537    $RM -r conftest
17538    $RM conftest*
17539
17540 fi
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17542 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17543
17544
17545
17546   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17547 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17548 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17549   $as_echo_n "(cached) " >&6
17550 else
17551   lt_cv_prog_compiler_c_o_GCJ=no
17552    $RM -r conftest 2>/dev/null
17553    mkdir conftest
17554    cd conftest
17555    mkdir out
17556    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17557
17558    lt_compiler_flag="-o out/conftest2.$ac_objext"
17559    # Insert the option either (1) after the last *FLAGS variable, or
17560    # (2) before a word containing "conftest.", or (3) at the end.
17561    # Note that $ac_compile itself does not contain backslashes and begins
17562    # with a dollar sign (not a hyphen), so the echo should work correctly.
17563    lt_compile=`echo "$ac_compile" | $SED \
17564    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17565    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17566    -e 's:$: $lt_compiler_flag:'`
17567    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17568    (eval "$lt_compile" 2>out/conftest.err)
17569    ac_status=$?
17570    cat out/conftest.err >&5
17571    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17573    then
17574      # The compiler can only warn and ignore the option if not recognized
17575      # So say no if there are warnings
17576      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17577      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17578      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17579        lt_cv_prog_compiler_c_o_GCJ=yes
17580      fi
17581    fi
17582    chmod u+w . 2>&5
17583    $RM conftest*
17584    # SGI C++ compiler will create directory out/ii_files/ for
17585    # template instantiation
17586    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17587    $RM out/* && rmdir out
17588    cd ..
17589    $RM -r conftest
17590    $RM conftest*
17591
17592 fi
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17594 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17595
17596
17597
17598
17599 hard_links="nottested"
17600 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17601   # do not overwrite the value of need_locks provided by the user
17602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17603 $as_echo_n "checking if we can lock with hard links... " >&6; }
17604   hard_links=yes
17605   $RM conftest*
17606   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17607   touch conftest.a
17608   ln conftest.a conftest.b 2>&5 || hard_links=no
17609   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17611 $as_echo "$hard_links" >&6; }
17612   if test "$hard_links" = no; then
17613     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17614 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17615     need_locks=warn
17616   fi
17617 else
17618   need_locks=no
17619 fi
17620
17621
17622
17623   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17624 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17625
17626   runpath_var=
17627   allow_undefined_flag_GCJ=
17628   always_export_symbols_GCJ=no
17629   archive_cmds_GCJ=
17630   archive_expsym_cmds_GCJ=
17631   compiler_needs_object_GCJ=no
17632   enable_shared_with_static_runtimes_GCJ=no
17633   export_dynamic_flag_spec_GCJ=
17634   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17635   hardcode_automatic_GCJ=no
17636   hardcode_direct_GCJ=no
17637   hardcode_direct_absolute_GCJ=no
17638   hardcode_libdir_flag_spec_GCJ=
17639   hardcode_libdir_flag_spec_ld_GCJ=
17640   hardcode_libdir_separator_GCJ=
17641   hardcode_minus_L_GCJ=no
17642   hardcode_shlibpath_var_GCJ=unsupported
17643   inherit_rpath_GCJ=no
17644   link_all_deplibs_GCJ=unknown
17645   module_cmds_GCJ=
17646   module_expsym_cmds_GCJ=
17647   old_archive_from_new_cmds_GCJ=
17648   old_archive_from_expsyms_cmds_GCJ=
17649   thread_safe_flag_spec_GCJ=
17650   whole_archive_flag_spec_GCJ=
17651   # include_expsyms should be a list of space-separated symbols to be *always*
17652   # included in the symbol list
17653   include_expsyms_GCJ=
17654   # exclude_expsyms can be an extended regexp of symbols to exclude
17655   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17656   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17657   # as well as any symbol that contains `d'.
17658   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17659   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17660   # platforms (ab)use it in PIC code, but their linkers get confused if
17661   # the symbol is explicitly referenced.  Since portable code cannot
17662   # rely on this symbol name, it's probably fine to never include it in
17663   # preloaded symbol tables.
17664   # Exclude shared library initialization/finalization symbols.
17665   extract_expsyms_cmds=
17666
17667   case $host_os in
17668   cygwin* | mingw* | pw32* | cegcc*)
17669     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17670     # When not using gcc, we currently assume that we are using
17671     # Microsoft Visual C++.
17672     if test "$GCC" != yes; then
17673       with_gnu_ld=no
17674     fi
17675     ;;
17676   interix*)
17677     # we just hope/assume this is gcc and not c89 (= MSVC++)
17678     with_gnu_ld=yes
17679     ;;
17680   openbsd*)
17681     with_gnu_ld=no
17682     ;;
17683   esac
17684
17685   ld_shlibs_GCJ=yes
17686
17687   # On some targets, GNU ld is compatible enough with the native linker
17688   # that we're better off using the native interface for both.
17689   lt_use_gnu_ld_interface=no
17690   if test "$with_gnu_ld" = yes; then
17691     case $host_os in
17692       aix*)
17693         # The AIX port of GNU ld has always aspired to compatibility
17694         # with the native linker.  However, as the warning in the GNU ld
17695         # block says, versions before 2.19.5* couldn't really create working
17696         # shared libraries, regardless of the interface used.
17697         case `$LD -v 2>&1` in
17698           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17699           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17700           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17701           *)
17702             lt_use_gnu_ld_interface=yes
17703             ;;
17704         esac
17705         ;;
17706       *)
17707         lt_use_gnu_ld_interface=yes
17708         ;;
17709     esac
17710   fi
17711
17712   if test "$lt_use_gnu_ld_interface" = yes; then
17713     # If archive_cmds runs LD, not CC, wlarc should be empty
17714     wlarc='${wl}'
17715
17716     # Set some defaults for GNU ld with shared library support. These
17717     # are reset later if shared libraries are not supported. Putting them
17718     # here allows them to be overridden if necessary.
17719     runpath_var=LD_RUN_PATH
17720     hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17721     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17722     # ancient GNU ld didn't support --whole-archive et. al.
17723     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17724       whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17725     else
17726       whole_archive_flag_spec_GCJ=
17727     fi
17728     supports_anon_versioning=no
17729     case `$LD -v 2>&1` in
17730       *GNU\ gold*) supports_anon_versioning=yes ;;
17731       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17732       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17733       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17734       *\ 2.11.*) ;; # other 2.11 versions
17735       *) supports_anon_versioning=yes ;;
17736     esac
17737
17738     # See if GNU ld supports shared libraries.
17739     case $host_os in
17740     aix[3-9]*)
17741       # On AIX/PPC, the GNU linker is very broken
17742       if test "$host_cpu" != ia64; then
17743         ld_shlibs_GCJ=no
17744         cat <<_LT_EOF 1>&2
17745
17746 *** Warning: the GNU linker, at least up to release 2.19, is reported
17747 *** to be unable to reliably create shared libraries on AIX.
17748 *** Therefore, libtool is disabling shared libraries support.  If you
17749 *** really care for shared libraries, you may want to install binutils
17750 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17751 *** You will then need to restart the configuration process.
17752
17753 _LT_EOF
17754       fi
17755       ;;
17756
17757     amigaos*)
17758       case $host_cpu in
17759       powerpc)
17760             # see comment about AmigaOS4 .so support
17761             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17762             archive_expsym_cmds_GCJ=''
17763         ;;
17764       m68k)
17765             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)'
17766             hardcode_libdir_flag_spec_GCJ='-L$libdir'
17767             hardcode_minus_L_GCJ=yes
17768         ;;
17769       esac
17770       ;;
17771
17772     beos*)
17773       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17774         allow_undefined_flag_GCJ=unsupported
17775         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17776         # support --undefined.  This deserves some investigation.  FIXME
17777         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17778       else
17779         ld_shlibs_GCJ=no
17780       fi
17781       ;;
17782
17783     cygwin* | mingw* | pw32* | cegcc*)
17784       # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17785       # as there is no search path for DLLs.
17786       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17787       export_dynamic_flag_spec_GCJ='${wl}--export-all-symbols'
17788       allow_undefined_flag_GCJ=unsupported
17789       always_export_symbols_GCJ=no
17790       enable_shared_with_static_runtimes_GCJ=yes
17791       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17792
17793       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17794         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17795         # If the export-symbols file already is a .def file (1st line
17796         # is EXPORTS), use it as is; otherwise, prepend...
17797         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17798           cp $export_symbols $output_objdir/$soname.def;
17799         else
17800           echo EXPORTS > $output_objdir/$soname.def;
17801           cat $export_symbols >> $output_objdir/$soname.def;
17802         fi~
17803         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17804       else
17805         ld_shlibs_GCJ=no
17806       fi
17807       ;;
17808
17809     haiku*)
17810       archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17811       link_all_deplibs_GCJ=yes
17812       ;;
17813
17814     interix[3-9]*)
17815       hardcode_direct_GCJ=no
17816       hardcode_shlibpath_var_GCJ=no
17817       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17818       export_dynamic_flag_spec_GCJ='${wl}-E'
17819       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17820       # Instead, shared libraries are loaded at an image base (0x10000000 by
17821       # default) and relocated if they conflict, which is a slow very memory
17822       # consuming and fragmenting process.  To avoid this, we pick a random,
17823       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17824       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17825       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'
17826       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'
17827       ;;
17828
17829     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
17830       tmp_diet=no
17831       if test "$host_os" = linux-dietlibc; then
17832         case $cc_basename in
17833           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
17834         esac
17835       fi
17836       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17837          && test "$tmp_diet" = no
17838       then
17839         tmp_addflag=
17840         tmp_sharedflag='-shared'
17841         case $cc_basename,$host_cpu in
17842         pgcc*)                          # Portland Group C compiler
17843           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'
17844           tmp_addflag=' $pic_flag'
17845           ;;
17846         pgf77* | pgf90* | pgf95* | pgfortran*)
17847                                         # Portland Group f77 and f90 compilers
17848           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'
17849           tmp_addflag=' $pic_flag -Mnomain' ;;
17850         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
17851           tmp_addflag=' -i_dynamic' ;;
17852         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17853           tmp_addflag=' -i_dynamic -nofor_main' ;;
17854         ifc* | ifort*)                  # Intel Fortran compiler
17855           tmp_addflag=' -nofor_main' ;;
17856         lf95*)                          # Lahey Fortran 8.1
17857           whole_archive_flag_spec_GCJ=
17858           tmp_sharedflag='--shared' ;;
17859         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17860           tmp_sharedflag='-qmkshrobj'
17861           tmp_addflag= ;;
17862         nvcc*)  # Cuda Compiler Driver 2.2
17863           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'
17864           compiler_needs_object_GCJ=yes
17865           ;;
17866         esac
17867         case `$CC -V 2>&1 | sed 5q` in
17868         *Sun\ C*)                       # Sun C 5.9
17869           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'
17870           compiler_needs_object_GCJ=yes
17871           tmp_sharedflag='-G' ;;
17872         *Sun\ F*)                       # Sun Fortran 8.3
17873           tmp_sharedflag='-G' ;;
17874         esac
17875         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17876
17877         if test "x$supports_anon_versioning" = xyes; then
17878           archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
17879             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17880             echo "local: *; };" >> $output_objdir/$libname.ver~
17881             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17882         fi
17883
17884         case $cc_basename in
17885         xlf* | bgf* | bgxlf* | mpixlf*)
17886           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17887           whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
17888           hardcode_libdir_flag_spec_GCJ=
17889           hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17890           archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17891           if test "x$supports_anon_versioning" = xyes; then
17892             archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
17893               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17894               echo "local: *; };" >> $output_objdir/$libname.ver~
17895               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17896           fi
17897           ;;
17898         esac
17899       else
17900         ld_shlibs_GCJ=no
17901       fi
17902       ;;
17903
17904     netbsd*)
17905       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17906         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17907         wlarc=
17908       else
17909         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17910         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17911       fi
17912       ;;
17913
17914     solaris*)
17915       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17916         ld_shlibs_GCJ=no
17917         cat <<_LT_EOF 1>&2
17918
17919 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17920 *** create shared libraries on Solaris systems.  Therefore, libtool
17921 *** is disabling shared libraries support.  We urge you to upgrade GNU
17922 *** binutils to release 2.9.1 or newer.  Another option is to modify
17923 *** your PATH or compiler configuration so that the native linker is
17924 *** used, and then restart.
17925
17926 _LT_EOF
17927       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17928         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17929         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17930       else
17931         ld_shlibs_GCJ=no
17932       fi
17933       ;;
17934
17935     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17936       case `$LD -v 2>&1` in
17937         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17938         ld_shlibs_GCJ=no
17939         cat <<_LT_EOF 1>&2
17940
17941 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17942 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17943 *** is disabling shared libraries support.  We urge you to upgrade GNU
17944 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17945 *** your PATH or compiler configuration so that the native linker is
17946 *** used, and then restart.
17947
17948 _LT_EOF
17949         ;;
17950         *)
17951           # For security reasons, it is highly recommended that you always
17952           # use absolute paths for naming shared libraries, and exclude the
17953           # DT_RUNPATH tag from executables and libraries.  But doing so
17954           # requires that you compile everything twice, which is a pain.
17955           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17956             hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17957             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17958             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17959           else
17960             ld_shlibs_GCJ=no
17961           fi
17962         ;;
17963       esac
17964       ;;
17965
17966     sunos4*)
17967       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17968       wlarc=
17969       hardcode_direct_GCJ=yes
17970       hardcode_shlibpath_var_GCJ=no
17971       ;;
17972
17973     *)
17974       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17975         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17976         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17977       else
17978         ld_shlibs_GCJ=no
17979       fi
17980       ;;
17981     esac
17982
17983     if test "$ld_shlibs_GCJ" = no; then
17984       runpath_var=
17985       hardcode_libdir_flag_spec_GCJ=
17986       export_dynamic_flag_spec_GCJ=
17987       whole_archive_flag_spec_GCJ=
17988     fi
17989   else
17990     # PORTME fill in a description of your system's linker (not GNU ld)
17991     case $host_os in
17992     aix3*)
17993       allow_undefined_flag_GCJ=unsupported
17994       always_export_symbols_GCJ=yes
17995       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'
17996       # Note: this linker hardcodes the directories in LIBPATH if there
17997       # are no directories specified by -L.
17998       hardcode_minus_L_GCJ=yes
17999       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18000         # Neither direct hardcoding nor static linking is supported with a
18001         # broken collect2.
18002         hardcode_direct_GCJ=unsupported
18003       fi
18004       ;;
18005
18006     aix[4-9]*)
18007       if test "$host_cpu" = ia64; then
18008         # On IA64, the linker does run time linking by default, so we don't
18009         # have to do anything special.
18010         aix_use_runtimelinking=no
18011         exp_sym_flag='-Bexport'
18012         no_entry_flag=""
18013       else
18014         # If we're using GNU nm, then we don't want the "-C" option.
18015         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18016         # Also, AIX nm treats weak defined symbols like other global
18017         # defined symbols, whereas GNU nm marks them as "W".
18018         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18019           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'
18020         else
18021           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'
18022         fi
18023         aix_use_runtimelinking=no
18024
18025         # Test if we are trying to use run time linking or normal
18026         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18027         # need to do runtime linking.
18028         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18029           for ld_flag in $LDFLAGS; do
18030           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18031             aix_use_runtimelinking=yes
18032             break
18033           fi
18034           done
18035           ;;
18036         esac
18037
18038         exp_sym_flag='-bexport'
18039         no_entry_flag='-bnoentry'
18040       fi
18041
18042       # When large executables or shared objects are built, AIX ld can
18043       # have problems creating the table of contents.  If linking a library
18044       # or program results in "error TOC overflow" add -mminimal-toc to
18045       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18046       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18047
18048       archive_cmds_GCJ=''
18049       hardcode_direct_GCJ=yes
18050       hardcode_direct_absolute_GCJ=yes
18051       hardcode_libdir_separator_GCJ=':'
18052       link_all_deplibs_GCJ=yes
18053       file_list_spec_GCJ='${wl}-f,'
18054
18055       if test "$GCC" = yes; then
18056         case $host_os in aix4.[012]|aix4.[012].*)
18057         # We only want to do this on AIX 4.2 and lower, the check
18058         # below for broken collect2 doesn't work under 4.3+
18059           collect2name=`${CC} -print-prog-name=collect2`
18060           if test -f "$collect2name" &&
18061            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18062           then
18063           # We have reworked collect2
18064           :
18065           else
18066           # We have old collect2
18067           hardcode_direct_GCJ=unsupported
18068           # It fails to find uninstalled libraries when the uninstalled
18069           # path is not listed in the libpath.  Setting hardcode_minus_L
18070           # to unsupported forces relinking
18071           hardcode_minus_L_GCJ=yes
18072           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18073           hardcode_libdir_separator_GCJ=
18074           fi
18075           ;;
18076         esac
18077         shared_flag='-shared'
18078         if test "$aix_use_runtimelinking" = yes; then
18079           shared_flag="$shared_flag "'${wl}-G'
18080         fi
18081       else
18082         # not using gcc
18083         if test "$host_cpu" = ia64; then
18084         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18085         # chokes on -Wl,-G. The following line is correct:
18086           shared_flag='-G'
18087         else
18088           if test "$aix_use_runtimelinking" = yes; then
18089             shared_flag='${wl}-G'
18090           else
18091             shared_flag='${wl}-bM:SRE'
18092           fi
18093         fi
18094       fi
18095
18096       export_dynamic_flag_spec_GCJ='${wl}-bexpall'
18097       # It seems that -bexpall does not export symbols beginning with
18098       # underscore (_), so it is better to generate a list of symbols to export.
18099       always_export_symbols_GCJ=yes
18100       if test "$aix_use_runtimelinking" = yes; then
18101         # Warning - without using the other runtime loading flags (-brtl),
18102         # -berok will link without error, but may produce a broken library.
18103         allow_undefined_flag_GCJ='-berok'
18104         # Determine the default libpath from the value encoded in an
18105         # empty executable.
18106         if test x$gcc_no_link = xyes; then
18107   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18108 fi
18109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18110 /* end confdefs.h.  */
18111
18112 int
18113 main ()
18114 {
18115
18116   ;
18117   return 0;
18118 }
18119 _ACEOF
18120 if ac_fn_c_try_link "$LINENO"; then :
18121
18122 lt_aix_libpath_sed='
18123     /Import File Strings/,/^$/ {
18124         /^0/ {
18125             s/^0  *\(.*\)$/\1/
18126             p
18127         }
18128     }'
18129 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18130 # Check for a 64-bit object if we didn't find anything.
18131 if test -z "$aix_libpath"; then
18132   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18133 fi
18134 fi
18135 rm -f core conftest.err conftest.$ac_objext \
18136     conftest$ac_exeext conftest.$ac_ext
18137 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18138
18139         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18140         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"
18141       else
18142         if test "$host_cpu" = ia64; then
18143           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18144           allow_undefined_flag_GCJ="-z nodefs"
18145           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"
18146         else
18147          # Determine the default libpath from the value encoded in an
18148          # empty executable.
18149          if test x$gcc_no_link = xyes; then
18150   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18151 fi
18152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18153 /* end confdefs.h.  */
18154
18155 int
18156 main ()
18157 {
18158
18159   ;
18160   return 0;
18161 }
18162 _ACEOF
18163 if ac_fn_c_try_link "$LINENO"; then :
18164
18165 lt_aix_libpath_sed='
18166     /Import File Strings/,/^$/ {
18167         /^0/ {
18168             s/^0  *\(.*\)$/\1/
18169             p
18170         }
18171     }'
18172 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18173 # Check for a 64-bit object if we didn't find anything.
18174 if test -z "$aix_libpath"; then
18175   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18176 fi
18177 fi
18178 rm -f core conftest.err conftest.$ac_objext \
18179     conftest$ac_exeext conftest.$ac_ext
18180 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18181
18182          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18183           # Warning - without using the other run time loading flags,
18184           # -berok will link without error, but may produce a broken library.
18185           no_undefined_flag_GCJ=' ${wl}-bernotok'
18186           allow_undefined_flag_GCJ=' ${wl}-berok'
18187           if test "$with_gnu_ld" = yes; then
18188             # We only use this code for GNU lds that support --whole-archive.
18189             whole_archive_flag_spec_GCJ='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18190           else
18191             # Exported symbols can be pulled into shared objects from archives
18192             whole_archive_flag_spec_GCJ='$convenience'
18193           fi
18194           archive_cmds_need_lc_GCJ=yes
18195           # This is similar to how AIX traditionally builds its shared libraries.
18196           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'
18197         fi
18198       fi
18199       ;;
18200
18201     amigaos*)
18202       case $host_cpu in
18203       powerpc)
18204             # see comment about AmigaOS4 .so support
18205             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18206             archive_expsym_cmds_GCJ=''
18207         ;;
18208       m68k)
18209             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)'
18210             hardcode_libdir_flag_spec_GCJ='-L$libdir'
18211             hardcode_minus_L_GCJ=yes
18212         ;;
18213       esac
18214       ;;
18215
18216     bsdi[45]*)
18217       export_dynamic_flag_spec_GCJ=-rdynamic
18218       ;;
18219
18220     cygwin* | mingw* | pw32* | cegcc*)
18221       # When not using gcc, we currently assume that we are using
18222       # Microsoft Visual C++.
18223       # hardcode_libdir_flag_spec is actually meaningless, as there is
18224       # no search path for DLLs.
18225       hardcode_libdir_flag_spec_GCJ=' '
18226       allow_undefined_flag_GCJ=unsupported
18227       # Tell ltmain to make .lib files, not .a files.
18228       libext=lib
18229       # Tell ltmain to make .dll files, not .so files.
18230       shrext_cmds=".dll"
18231       # FIXME: Setting linknames here is a bad hack.
18232       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18233       # The linker will automatically build a .lib file if we build a DLL.
18234       old_archive_from_new_cmds_GCJ='true'
18235       # FIXME: Should let the user specify the lib program.
18236       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18237       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18238       enable_shared_with_static_runtimes_GCJ=yes
18239       ;;
18240
18241     darwin* | rhapsody*)
18242
18243
18244   archive_cmds_need_lc_GCJ=no
18245   hardcode_direct_GCJ=no
18246   hardcode_automatic_GCJ=yes
18247   hardcode_shlibpath_var_GCJ=unsupported
18248   if test "$lt_cv_ld_force_load" = "yes"; then
18249     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\"`'
18250   else
18251     whole_archive_flag_spec_GCJ=''
18252   fi
18253   link_all_deplibs_GCJ=yes
18254   allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
18255   case $cc_basename in
18256      ifort*) _lt_dar_can_shared=yes ;;
18257      *) _lt_dar_can_shared=$GCC ;;
18258   esac
18259   if test "$_lt_dar_can_shared" = "yes"; then
18260     output_verbose_link_cmd=func_echo_all
18261     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}"
18262     module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18263     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}"
18264     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}"
18265
18266   else
18267   ld_shlibs_GCJ=no
18268   fi
18269
18270       ;;
18271
18272     dgux*)
18273       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18274       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18275       hardcode_shlibpath_var_GCJ=no
18276       ;;
18277
18278     freebsd1*)
18279       ld_shlibs_GCJ=no
18280       ;;
18281
18282     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18283     # support.  Future versions do this automatically, but an explicit c++rt0.o
18284     # does not break anything, and helps significantly (at the cost of a little
18285     # extra space).
18286     freebsd2.2*)
18287       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18288       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18289       hardcode_direct_GCJ=yes
18290       hardcode_shlibpath_var_GCJ=no
18291       ;;
18292
18293     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18294     freebsd2*)
18295       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18296       hardcode_direct_GCJ=yes
18297       hardcode_minus_L_GCJ=yes
18298       hardcode_shlibpath_var_GCJ=no
18299       ;;
18300
18301     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18302     freebsd* | dragonfly*)
18303       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18304       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18305       hardcode_direct_GCJ=yes
18306       hardcode_shlibpath_var_GCJ=no
18307       ;;
18308
18309     hpux9*)
18310       if test "$GCC" = yes; then
18311         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'
18312       else
18313         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'
18314       fi
18315       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18316       hardcode_libdir_separator_GCJ=:
18317       hardcode_direct_GCJ=yes
18318
18319       # hardcode_minus_L: Not really in the search PATH,
18320       # but as the default location of the library.
18321       hardcode_minus_L_GCJ=yes
18322       export_dynamic_flag_spec_GCJ='${wl}-E'
18323       ;;
18324
18325     hpux10*)
18326       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18327         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18328       else
18329         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18330       fi
18331       if test "$with_gnu_ld" = no; then
18332         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18333         hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18334         hardcode_libdir_separator_GCJ=:
18335         hardcode_direct_GCJ=yes
18336         hardcode_direct_absolute_GCJ=yes
18337         export_dynamic_flag_spec_GCJ='${wl}-E'
18338         # hardcode_minus_L: Not really in the search PATH,
18339         # but as the default location of the library.
18340         hardcode_minus_L_GCJ=yes
18341       fi
18342       ;;
18343
18344     hpux11*)
18345       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18346         case $host_cpu in
18347         hppa*64*)
18348           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18349           ;;
18350         ia64*)
18351           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18352           ;;
18353         *)
18354           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18355           ;;
18356         esac
18357       else
18358         case $host_cpu in
18359         hppa*64*)
18360           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18361           ;;
18362         ia64*)
18363           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18364           ;;
18365         *)
18366         archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18367           ;;
18368         esac
18369       fi
18370       if test "$with_gnu_ld" = no; then
18371         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18372         hardcode_libdir_separator_GCJ=:
18373
18374         case $host_cpu in
18375         hppa*64*|ia64*)
18376           hardcode_direct_GCJ=no
18377           hardcode_shlibpath_var_GCJ=no
18378           ;;
18379         *)
18380           hardcode_direct_GCJ=yes
18381           hardcode_direct_absolute_GCJ=yes
18382           export_dynamic_flag_spec_GCJ='${wl}-E'
18383
18384           # hardcode_minus_L: Not really in the search PATH,
18385           # but as the default location of the library.
18386           hardcode_minus_L_GCJ=yes
18387           ;;
18388         esac
18389       fi
18390       ;;
18391
18392     irix5* | irix6* | nonstopux*)
18393       if test "$GCC" = yes; then
18394         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'
18395         # Try to use the -exported_symbol ld option, if it does not
18396         # work, assume that -exports_file does not work either and
18397         # implicitly export all symbols.
18398         save_LDFLAGS="$LDFLAGS"
18399         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18400         if test x$gcc_no_link = xyes; then
18401   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18402 fi
18403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18404 /* end confdefs.h.  */
18405 int foo(void) {}
18406 _ACEOF
18407 if ac_fn_c_try_link "$LINENO"; then :
18408   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'
18409
18410 fi
18411 rm -f core conftest.err conftest.$ac_objext \
18412     conftest$ac_exeext conftest.$ac_ext
18413         LDFLAGS="$save_LDFLAGS"
18414       else
18415         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'
18416         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'
18417       fi
18418       archive_cmds_need_lc_GCJ='no'
18419       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18420       hardcode_libdir_separator_GCJ=:
18421       inherit_rpath_GCJ=yes
18422       link_all_deplibs_GCJ=yes
18423       ;;
18424
18425     netbsd*)
18426       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18427         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18428       else
18429         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18430       fi
18431       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18432       hardcode_direct_GCJ=yes
18433       hardcode_shlibpath_var_GCJ=no
18434       ;;
18435
18436     newsos6)
18437       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18438       hardcode_direct_GCJ=yes
18439       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18440       hardcode_libdir_separator_GCJ=:
18441       hardcode_shlibpath_var_GCJ=no
18442       ;;
18443
18444     *nto* | *qnx*)
18445       ;;
18446
18447     openbsd*)
18448       if test -f /usr/libexec/ld.so; then
18449         hardcode_direct_GCJ=yes
18450         hardcode_shlibpath_var_GCJ=no
18451         hardcode_direct_absolute_GCJ=yes
18452         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18453           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18454           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18455           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18456           export_dynamic_flag_spec_GCJ='${wl}-E'
18457         else
18458           case $host_os in
18459            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18460              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18461              hardcode_libdir_flag_spec_GCJ='-R$libdir'
18462              ;;
18463            *)
18464              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18465              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18466              ;;
18467           esac
18468         fi
18469       else
18470         ld_shlibs_GCJ=no
18471       fi
18472       ;;
18473
18474     os2*)
18475       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18476       hardcode_minus_L_GCJ=yes
18477       allow_undefined_flag_GCJ=unsupported
18478       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'
18479       old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18480       ;;
18481
18482     osf3*)
18483       if test "$GCC" = yes; then
18484         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18485         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'
18486       else
18487         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18488         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'
18489       fi
18490       archive_cmds_need_lc_GCJ='no'
18491       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18492       hardcode_libdir_separator_GCJ=:
18493       ;;
18494
18495     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18496       if test "$GCC" = yes; then
18497         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18498         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'
18499         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18500       else
18501         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18502         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'
18503         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~
18504         $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'
18505
18506         # Both c and cxx compiler support -rpath directly
18507         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18508       fi
18509       archive_cmds_need_lc_GCJ='no'
18510       hardcode_libdir_separator_GCJ=:
18511       ;;
18512
18513     solaris*)
18514       no_undefined_flag_GCJ=' -z defs'
18515       if test "$GCC" = yes; then
18516         wlarc='${wl}'
18517         archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18518         archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18519           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18520       else
18521         case `$CC -V 2>&1` in
18522         *"Compilers 5.0"*)
18523           wlarc=''
18524           archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18525           archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18526           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18527           ;;
18528         *)
18529           wlarc='${wl}'
18530           archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18531           archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18532           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18533           ;;
18534         esac
18535       fi
18536       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18537       hardcode_shlibpath_var_GCJ=no
18538       case $host_os in
18539       solaris2.[0-5] | solaris2.[0-5].*) ;;
18540       *)
18541         # The compiler driver will combine and reorder linker options,
18542         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18543         # but is careful enough not to reorder.
18544         # Supported since Solaris 2.6 (maybe 2.5.1?)
18545         if test "$GCC" = yes; then
18546           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18547         else
18548           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18549         fi
18550         ;;
18551       esac
18552       link_all_deplibs_GCJ=yes
18553       ;;
18554
18555     sunos4*)
18556       if test "x$host_vendor" = xsequent; then
18557         # Use $CC to link under sequent, because it throws in some extra .o
18558         # files that make .init and .fini sections work.
18559         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18560       else
18561         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18562       fi
18563       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18564       hardcode_direct_GCJ=yes
18565       hardcode_minus_L_GCJ=yes
18566       hardcode_shlibpath_var_GCJ=no
18567       ;;
18568
18569     sysv4)
18570       case $host_vendor in
18571         sni)
18572           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18573           hardcode_direct_GCJ=yes # is this really true???
18574         ;;
18575         siemens)
18576           ## LD is ld it makes a PLAMLIB
18577           ## CC just makes a GrossModule.
18578           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18579           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18580           hardcode_direct_GCJ=no
18581         ;;
18582         motorola)
18583           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18584           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18585         ;;
18586       esac
18587       runpath_var='LD_RUN_PATH'
18588       hardcode_shlibpath_var_GCJ=no
18589       ;;
18590
18591     sysv4.3*)
18592       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18593       hardcode_shlibpath_var_GCJ=no
18594       export_dynamic_flag_spec_GCJ='-Bexport'
18595       ;;
18596
18597     sysv4*MP*)
18598       if test -d /usr/nec; then
18599         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18600         hardcode_shlibpath_var_GCJ=no
18601         runpath_var=LD_RUN_PATH
18602         hardcode_runpath_var=yes
18603         ld_shlibs_GCJ=yes
18604       fi
18605       ;;
18606
18607     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18608       no_undefined_flag_GCJ='${wl}-z,text'
18609       archive_cmds_need_lc_GCJ=no
18610       hardcode_shlibpath_var_GCJ=no
18611       runpath_var='LD_RUN_PATH'
18612
18613       if test "$GCC" = yes; then
18614         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18615         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18616       else
18617         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18618         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18619       fi
18620       ;;
18621
18622     sysv5* | sco3.2v5* | sco5v6*)
18623       # Note: We can NOT use -z defs as we might desire, because we do not
18624       # link with -lc, and that would cause any symbols used from libc to
18625       # always be unresolved, which means just about no library would
18626       # ever link correctly.  If we're not using GNU ld we use -z text
18627       # though, which does catch some bad symbols but isn't as heavy-handed
18628       # as -z defs.
18629       no_undefined_flag_GCJ='${wl}-z,text'
18630       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18631       archive_cmds_need_lc_GCJ=no
18632       hardcode_shlibpath_var_GCJ=no
18633       hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
18634       hardcode_libdir_separator_GCJ=':'
18635       link_all_deplibs_GCJ=yes
18636       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18637       runpath_var='LD_RUN_PATH'
18638
18639       if test "$GCC" = yes; then
18640         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18641         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18642       else
18643         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18644         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18645       fi
18646       ;;
18647
18648     uts4*)
18649       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18650       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18651       hardcode_shlibpath_var_GCJ=no
18652       ;;
18653
18654     *)
18655       ld_shlibs_GCJ=no
18656       ;;
18657     esac
18658
18659     if test x$host_vendor = xsni; then
18660       case $host in
18661       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18662         export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
18663         ;;
18664       esac
18665     fi
18666   fi
18667
18668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
18669 $as_echo "$ld_shlibs_GCJ" >&6; }
18670 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18671
18672 with_gnu_ld_GCJ=$with_gnu_ld
18673
18674
18675
18676
18677
18678
18679 #
18680 # Do we need to explicitly link libc?
18681 #
18682 case "x$archive_cmds_need_lc_GCJ" in
18683 x|xyes)
18684   # Assume -lc should be added
18685   archive_cmds_need_lc_GCJ=yes
18686
18687   if test "$enable_shared" = yes && test "$GCC" = yes; then
18688     case $archive_cmds_GCJ in
18689     *'~'*)
18690       # FIXME: we may have to deal with multi-command sequences.
18691       ;;
18692     '$CC '*)
18693       # Test whether the compiler implicitly links with -lc since on some
18694       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18695       # to ld, don't add -lc before -lgcc.
18696       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18697 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18698 if test "${lt_cv_archive_cmds_need_lc_GCJ+set}" = set; then :
18699   $as_echo_n "(cached) " >&6
18700 else
18701   $RM conftest*
18702         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18703
18704         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18705   (eval $ac_compile) 2>&5
18706   ac_status=$?
18707   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18708   test $ac_status = 0; } 2>conftest.err; then
18709           soname=conftest
18710           lib=conftest
18711           libobjs=conftest.$ac_objext
18712           deplibs=
18713           wl=$lt_prog_compiler_wl_GCJ
18714           pic_flag=$lt_prog_compiler_pic_GCJ
18715           compiler_flags=-v
18716           linker_flags=-v
18717           verstring=
18718           output_objdir=.
18719           libname=conftest
18720           lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18721           allow_undefined_flag_GCJ=
18722           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18723   (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18724   ac_status=$?
18725   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18726   test $ac_status = 0; }
18727           then
18728             lt_cv_archive_cmds_need_lc_GCJ=no
18729           else
18730             lt_cv_archive_cmds_need_lc_GCJ=yes
18731           fi
18732           allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18733         else
18734           cat conftest.err 1>&5
18735         fi
18736         $RM conftest*
18737
18738 fi
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GCJ" >&5
18740 $as_echo "$lt_cv_archive_cmds_need_lc_GCJ" >&6; }
18741       archive_cmds_need_lc_GCJ=$lt_cv_archive_cmds_need_lc_GCJ
18742       ;;
18743     esac
18744   fi
18745   ;;
18746 esac
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765
18766
18767
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790
18791
18792
18793
18794
18795
18796
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18812 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18813 hardcode_action_GCJ=
18814 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
18815    test -n "$runpath_var_GCJ" ||
18816    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18817
18818   # We can hardcode non-existent directories.
18819   if test "$hardcode_direct_GCJ" != no &&
18820      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18821      # have to relink, otherwise we might link with an installed library
18822      # when we should be linking with a yet-to-be-installed one
18823      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18824      test "$hardcode_minus_L_GCJ" != no; then
18825     # Linking always hardcodes the temporary library directory.
18826     hardcode_action_GCJ=relink
18827   else
18828     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18829     hardcode_action_GCJ=immediate
18830   fi
18831 else
18832   # We cannot hardcode anything, or else we can only hardcode existing
18833   # directories.
18834   hardcode_action_GCJ=unsupported
18835 fi
18836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18837 $as_echo "$hardcode_action_GCJ" >&6; }
18838
18839 if test "$hardcode_action_GCJ" = relink ||
18840    test "$inherit_rpath_GCJ" = yes; then
18841   # Fast installation is not supported
18842   enable_fast_install=no
18843 elif test "$shlibpath_overrides_runpath" = yes ||
18844      test "$enable_shared" = no; then
18845   # Fast installation is not necessary
18846   enable_fast_install=needless
18847 fi
18848
18849
18850
18851
18852
18853
18854
18855 fi
18856
18857 compiler_GCJ=${GCJ-gcj}
18858 ac_ext=c
18859 ac_cpp='$CPP $CPPFLAGS'
18860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18863
18864
18865 if test "x$CC" != xcc; then
18866   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
18867 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
18868 else
18869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
18870 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
18871 fi
18872 set dummy $CC; ac_cc=`$as_echo "$2" |
18873                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18874 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
18875   $as_echo_n "(cached) " >&6
18876 else
18877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18878 /* end confdefs.h.  */
18879
18880 int
18881 main ()
18882 {
18883
18884   ;
18885   return 0;
18886 }
18887 _ACEOF
18888 # Make sure it works both with $CC and with simple cc.
18889 # We do the test twice because some compilers refuse to overwrite an
18890 # existing .o file with -o, though they will create one.
18891 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
18892 rm -f conftest2.*
18893 if { { case "(($ac_try" in
18894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18895   *) ac_try_echo=$ac_try;;
18896 esac
18897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18898 $as_echo "$ac_try_echo"; } >&5
18899   (eval "$ac_try") 2>&5
18900   ac_status=$?
18901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18902   test $ac_status = 0; } &&
18903    test -f conftest2.$ac_objext && { { case "(($ac_try" in
18904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18905   *) ac_try_echo=$ac_try;;
18906 esac
18907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18908 $as_echo "$ac_try_echo"; } >&5
18909   (eval "$ac_try") 2>&5
18910   ac_status=$?
18911   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18912   test $ac_status = 0; };
18913 then
18914   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
18915   if test "x$CC" != xcc; then
18916     # Test first that cc exists at all.
18917     if { ac_try='cc -c conftest.$ac_ext >&5'
18918   { { case "(($ac_try" in
18919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18920   *) ac_try_echo=$ac_try;;
18921 esac
18922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18923 $as_echo "$ac_try_echo"; } >&5
18924   (eval "$ac_try") 2>&5
18925   ac_status=$?
18926   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18927   test $ac_status = 0; }; }; then
18928       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
18929       rm -f conftest2.*
18930       if { { case "(($ac_try" in
18931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18932   *) ac_try_echo=$ac_try;;
18933 esac
18934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18935 $as_echo "$ac_try_echo"; } >&5
18936   (eval "$ac_try") 2>&5
18937   ac_status=$?
18938   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18939   test $ac_status = 0; } &&
18940          test -f conftest2.$ac_objext && { { case "(($ac_try" in
18941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18942   *) ac_try_echo=$ac_try;;
18943 esac
18944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18945 $as_echo "$ac_try_echo"; } >&5
18946   (eval "$ac_try") 2>&5
18947   ac_status=$?
18948   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18949   test $ac_status = 0; };
18950       then
18951         # cc works too.
18952         :
18953       else
18954         # cc exists but doesn't like -o.
18955         eval ac_cv_prog_cc_${ac_cc}_c_o=no
18956       fi
18957     fi
18958   fi
18959 else
18960   eval ac_cv_prog_cc_${ac_cc}_c_o=no
18961 fi
18962 rm -f core conftest*
18963
18964 fi
18965 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
18966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18967 $as_echo "yes" >&6; }
18968 else
18969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18970 $as_echo "no" >&6; }
18971
18972 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
18973
18974 fi
18975
18976 # FIXME: we rely on the cache variable name because
18977 # there is no other way.
18978 set dummy $CC
18979 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18980 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
18981 if test "$am_t" != yes; then
18982    # Losing compiler, so override with the script.
18983    # FIXME: It is wrong to rewrite CC.
18984    # But if we don't then we get into trouble of one sort or another.
18985    # A longer-term fix would be to have automake use am__CC in this case,
18986    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
18987    CC="$am_aux_dir/compile $CC"
18988 fi
18989
18990
18991
18992
18993
18994 subdirs="$subdirs classpath libltdl"
18995
18996
18997 # The -no-testsuite modules omit the test subdir.
18998  if test -d $srcdir/testsuite; then
18999   TESTSUBDIR_TRUE=
19000   TESTSUBDIR_FALSE='#'
19001 else
19002   TESTSUBDIR_TRUE='#'
19003   TESTSUBDIR_FALSE=
19004 fi
19005
19006
19007 # Should the runtime set system properties by examining the
19008 # environment variable GCJ_PROPERTIES?
19009 # Check whether --enable-getenv-properties was given.
19010 if test "${enable_getenv_properties+set}" = set; then :
19011   enableval=$enable_getenv_properties;
19012 fi
19013
19014
19015 # Whether GCJ_PROPERTIES is used depends on the target.
19016 if test -z "$enable_getenv_properties"; then
19017    enable_getenv_properties=${enable_getenv_properties_default-yes}
19018 fi
19019 if test "$enable_getenv_properties" = no; then
19020
19021 $as_echo "#define DISABLE_GETENV_PROPERTIES 1" >>confdefs.h
19022
19023 fi
19024
19025 # Whether we should use arguments to main()
19026 if test -z "$enable_main_args"; then
19027    enable_main_args=${enable_main_args_default-yes}
19028 fi
19029 if test "$enable_main_args" = no; then
19030
19031 $as_echo "#define DISABLE_MAIN_ARGS 1" >>confdefs.h
19032
19033 fi
19034
19035
19036 # Should we use hashtable-based synchronization?
19037 # Currently works only for Linux X86/ia64
19038 # Typically faster and more space-efficient
19039 # Check whether --enable-hash-synchronization was given.
19040 if test "${enable_hash_synchronization+set}" = set; then :
19041   enableval=$enable_hash_synchronization;
19042 fi
19043
19044
19045 if test -z "$enable_hash_synchronization"; then
19046    enable_hash_synchronization=$enable_hash_synchronization_default
19047 fi
19048
19049
19050 install_ecj_jar=no
19051 ECJ_BUILD_JAR=
19052 ECJ_JAR=
19053
19054 # Check whether --with-ecj-jar was given.
19055 if test "${with_ecj_jar+set}" = set; then :
19056   withval=$with_ecj_jar; ECJ_JAR=$withval
19057 else
19058   if test -f $multi_basedir/ecj.jar; then
19059            ECJ_BUILD_JAR=$multi_basedir/ecj.jar
19060            ECJ_JAR='$(jardir)/ecj.jar'
19061            install_ecj_jar=yes
19062          fi
19063 fi
19064
19065
19066
19067  if test "$ECJ_JAR" != ""; then
19068   BUILD_ECJ1_TRUE=
19069   BUILD_ECJ1_FALSE='#'
19070 else
19071   BUILD_ECJ1_TRUE='#'
19072   BUILD_ECJ1_FALSE=
19073 fi
19074
19075  if test $install_ecj_jar = yes; then
19076   INSTALL_ECJ_JAR_TRUE=
19077   INSTALL_ECJ_JAR_FALSE='#'
19078 else
19079   INSTALL_ECJ_JAR_TRUE='#'
19080   INSTALL_ECJ_JAR_FALSE=
19081 fi
19082
19083
19084
19085 # Check whether --with-java-home was given.
19086 if test "${with_java_home+set}" = set; then :
19087   withval=$with_java_home; JAVA_HOME="${withval}"
19088 else
19089   JAVA_HOME=""
19090 fi
19091
19092  if test ! -z "$JAVA_HOME"; then
19093   JAVA_HOME_SET_TRUE=
19094   JAVA_HOME_SET_FALSE='#'
19095 else
19096   JAVA_HOME_SET_TRUE='#'
19097   JAVA_HOME_SET_FALSE=
19098 fi
19099
19100
19101
19102 suppress_libgcj_bc=no
19103 # Check whether --enable-libgcj-bc was given.
19104 if test "${enable_libgcj_bc+set}" = set; then :
19105   enableval=$enable_libgcj_bc; if test "$enable_libgcj_bc" = "no"; then
19106      suppress_libgcj_bc=yes
19107    fi
19108 fi
19109
19110  if test "$suppress_libgcj_bc" = "yes"; then
19111   SUPPRESS_LIBGCJ_BC_TRUE=
19112   SUPPRESS_LIBGCJ_BC_FALSE='#'
19113 else
19114   SUPPRESS_LIBGCJ_BC_TRUE='#'
19115   SUPPRESS_LIBGCJ_BC_FALSE=
19116 fi
19117
19118
19119 build_libgcj_reduced_reflection=no
19120 # Check whether --enable-reduced-reflection was given.
19121 if test "${enable_reduced_reflection+set}" = set; then :
19122   enableval=$enable_reduced_reflection; if test "$enable_reduced_reflection" = "yes"; then
19123      build_libgcj_reduced_reflection=yes
19124    fi
19125 fi
19126
19127  if test "$build_libgcj_reduced_reflection" = "yes"; then
19128   BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
19129   BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
19130 else
19131   BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
19132   BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
19133 fi
19134
19135
19136 # What is the native OS API for MinGW?
19137
19138 # Check whether --with-win32-nlsapi was given.
19139 if test "${with_win32_nlsapi+set}" = set; then :
19140   withval=$with_win32_nlsapi; case "${withval}" in
19141   ansi) with_win32_nlsapi=ansi ;;
19142   unicows) with_win32_nlsapi=unicows ;;
19143   unicode) with_win32_nlsapi=unicode ;;
19144   *) as_fn_error "Bad value ${withval} for --with-win32-nlsapi." "$LINENO" 5 ;;
19145 esac
19146 else
19147   with_win32_nlsapi=ansi
19148 fi
19149
19150
19151 case "${with_win32_nlsapi}" in
19152   unicows | unicode)
19153
19154 $as_echo "#define MINGW_LIBGCJ_UNICODE 1" >>confdefs.h
19155
19156     ;;
19157 esac
19158
19159 # configure.host sets slow_pthread_self if the synchronization code should
19160 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
19161 if test "${slow_pthread_self}" = "yes"; then
19162
19163 $as_echo "#define SLOW_PTHREAD_SELF 1" >>confdefs.h
19164
19165 fi
19166
19167 # Check for gc debugging.  This option is handled both here and in the GC.
19168 # Check whether --enable-gc-debug was given.
19169 if test "${enable_gc_debug+set}" = set; then :
19170   enableval=$enable_gc_debug;  if test "$enable_gc_debug" = "yes"; then
19171
19172 $as_echo "#define LIBGCJ_GC_DEBUG 1" >>confdefs.h
19173
19174   fi
19175 fi
19176
19177
19178 # See if the user has the interpreter included.
19179 # Check whether --enable-interpreter was given.
19180 if test "${enable_interpreter+set}" = set; then :
19181   enableval=$enable_interpreter; if test "$enable_interpreter" = yes; then
19182     # This can also be set in configure.host.
19183     libgcj_interpreter=yes
19184   elif test "$enable_interpreter" = no; then
19185     libgcj_interpreter=no
19186   fi
19187 fi
19188
19189
19190 if test "$libgcj_interpreter" = yes; then
19191
19192 $as_echo "#define INTERPRETER 1" >>confdefs.h
19193
19194 fi
19195 INTERPRETER="$libgcj_interpreter"
19196
19197  if test "$libgcj_interpreter" = yes; then
19198   INTERPRETER_TRUE=
19199   INTERPRETER_FALSE='#'
19200 else
19201   INTERPRETER_TRUE='#'
19202   INTERPRETER_FALSE=
19203 fi
19204
19205
19206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception model to use" >&5
19207 $as_echo_n "checking for exception model to use... " >&6; }
19208 ac_ext=cpp
19209 ac_cpp='$CXXCPP $CPPFLAGS'
19210 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19211 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19212 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19213
19214 # Check whether --enable-sjlj-exceptions was given.
19215 if test "${enable_sjlj_exceptions+set}" = set; then :
19216   enableval=$enable_sjlj_exceptions; :
19217 else
19218   cat > conftest.$ac_ext << EOF
19219 #line 19219 "configure"
19220 struct S { ~S(); };
19221 void bar();
19222 void foo()
19223 {
19224   S s;
19225   bar();
19226 }
19227 EOF
19228 old_CXXFLAGS="$CXXFLAGS"
19229 CXXFLAGS=-S
19230 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19231   (eval $ac_compile) 2>&5
19232   ac_status=$?
19233   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19234   test $ac_status = 0; }; then
19235   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
19236     enable_sjlj_exceptions=yes
19237   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
19238     enable_sjlj_exceptions=no
19239   elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
19240     # ARM EH ABI.
19241     enable_sjlj_exceptions=no
19242   fi
19243 fi
19244 CXXFLAGS="$old_CXXFLAGS"
19245 rm -f conftest*
19246 fi
19247
19248 if test x$enable_sjlj_exceptions = xyes; then
19249
19250 $as_echo "#define SJLJ_EXCEPTIONS 1" >>confdefs.h
19251
19252   ac_exception_model_name=sjlj
19253 elif test x$enable_sjlj_exceptions = xno; then
19254   ac_exception_model_name="call frame"
19255 else
19256   as_fn_error "unable to detect exception model" "$LINENO" 5
19257 fi
19258 ac_ext=c
19259 ac_cpp='$CPP $CPPFLAGS'
19260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19263
19264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception_model_name" >&5
19265 $as_echo "$ac_exception_model_name" >&6; }
19266
19267 # If we are non using SJLJ exceptions, and this host does not have support
19268 # for unwinding from a signal handler, enable checked dereferences and divides.
19269 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
19270   CHECKREFSPEC=-fcheck-references
19271   DIVIDESPEC=-fuse-divide-subroutine
19272   EXCEPTIONSPEC=
19273 fi
19274
19275 # See if the user wants to disable java.net.  This is the mildly
19276 # ugly way that we admit that target-side configuration sucks.
19277 # Check whether --enable-java-net was given.
19278 if test "${enable_java_net+set}" = set; then :
19279   enableval=$enable_java_net;
19280 fi
19281
19282
19283 # Whether java.net is built by default can depend on the target.
19284 if test -z "$enable_java_net"; then
19285    enable_java_net=${enable_java_net_default-yes}
19286 fi
19287 if test "$enable_java_net" = no; then
19288
19289 $as_echo "#define DISABLE_JAVA_NET 1" >>confdefs.h
19290
19291 fi
19292
19293 # See if the user wants to configure without libffi.  Some
19294 # architectures don't support it, and default values are set in
19295 # configure.host.
19296
19297 # Check whether --with-libffi was given.
19298 if test "${with_libffi+set}" = set; then :
19299   withval=$with_libffi; :
19300 else
19301   with_libffi=${with_libffi_default-yes}
19302 fi
19303
19304
19305 LIBFFI=
19306 LIBFFIINCS=
19307 if test "$with_libffi" != no; then
19308
19309 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
19310
19311    LIBFFI=../libffi/libffi_convenience.la
19312    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
19313 fi
19314
19315
19316
19317 # See if the user wants to disable JVMPI support.
19318 # Check whether --enable-jvmpi was given.
19319 if test "${enable_jvmpi+set}" = set; then :
19320   enableval=$enable_jvmpi;
19321 fi
19322
19323
19324 if test "$enable_jvmpi" != no; then
19325
19326 $as_echo "#define ENABLE_JVMPI 1" >>confdefs.h
19327
19328 fi
19329
19330 # If the target is an eCos system, use the appropriate eCos
19331 # I/O routines.
19332 # FIXME: this should not be a local option but a global target
19333 # system; at present there is no eCos target.
19334 TARGET_ECOS=${PROCESS-"no"}
19335
19336 # Check whether --with-ecos was given.
19337 if test "${with_ecos+set}" = set; then :
19338   withval=$with_ecos; TARGET_ECOS="$with_ecos"
19339
19340 fi
19341
19342
19343 case "$TARGET_ECOS" in
19344    no) case "$host" in
19345       *mingw*)
19346             PLATFORM=Win32
19347             PLATFORMNET=Win32
19348             PLATFORMH=win32.h
19349
19350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'ld' is at least 2.13" >&5
19351 $as_echo_n "checking whether 'ld' is at least 2.13... " >&6; }
19352 LD_PROG=`$CC --print-prog-name=ld`
19353 LD_VERSION=`$LD_PROG --version`
19354 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
19355 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
19356 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
19357   LD_OK="ok"
19358 else
19359   if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
19360     LD_OK="ok"
19361   fi
19362 fi
19363 if test "x$LD_OK" != x; then
19364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19365 $as_echo "yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19366 else
19367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19368 $as_echo "no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19369   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
19370 $as_echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
19371
19372 $as_echo "#define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1" >>confdefs.h
19373
19374 fi
19375       ;;
19376       *)
19377             PLATFORM=Posix
19378             PLATFORMNET=Posix
19379             PLATFORMH=posix.h
19380       ;;
19381       esac
19382       ;;
19383    *)
19384       PLATFORM=Ecos
19385       PLATFORMNET=NoNet
19386
19387 $as_echo "#define ECOS 1" >>confdefs.h
19388
19389       PLATFORMH=posix.h
19390       ;;
19391 esac
19392
19393 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
19394
19395
19396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19397 /* end confdefs.h.  */
19398 #include <stdint.h>
19399
19400 _ACEOF
19401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19402   $EGREP "uint32_t" >/dev/null 2>&1; then :
19403
19404 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19405
19406 fi
19407 rm -f conftest*
19408
19409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19410 /* end confdefs.h.  */
19411 #include <inttypes.h>
19412
19413 _ACEOF
19414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19415   $EGREP "uint32_t" >/dev/null 2>&1; then :
19416
19417 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19418
19419 fi
19420 rm -f conftest*
19421
19422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19423 /* end confdefs.h.  */
19424 #include <sys/types.h>
19425
19426 _ACEOF
19427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19428   $EGREP "u_int32_t" >/dev/null 2>&1; then :
19429
19430 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19431
19432 fi
19433 rm -f conftest*
19434
19435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19436 /* end confdefs.h.  */
19437 #include <sys/config.h>
19438
19439 _ACEOF
19440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19441   $EGREP "u_int32_t" >/dev/null 2>&1; then :
19442
19443 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19444
19445 fi
19446 rm -f conftest*
19447
19448
19449  if test "$PLATFORM" = Win32; then
19450   USING_WIN32_PLATFORM_TRUE=
19451   USING_WIN32_PLATFORM_FALSE='#'
19452 else
19453   USING_WIN32_PLATFORM_TRUE='#'
19454   USING_WIN32_PLATFORM_FALSE=
19455 fi
19456
19457  if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
19458   USING_POSIX_PLATFORM_TRUE=
19459   USING_POSIX_PLATFORM_FALSE='#'
19460 else
19461   USING_POSIX_PLATFORM_TRUE='#'
19462   USING_POSIX_PLATFORM_FALSE=
19463 fi
19464
19465
19466 case "$host" in
19467   *-darwin*) DARWIN_CRT=true ;;
19468   *) DARWIN_CRT=false ;;
19469 esac
19470  if $DARWIN_CRT; then
19471   USING_DARWIN_CRT_TRUE=
19472   USING_DARWIN_CRT_FALSE='#'
19473 else
19474   USING_DARWIN_CRT_TRUE='#'
19475   USING_DARWIN_CRT_FALSE=
19476 fi
19477
19478
19479 # This may not be defined in a non-ANS conformant embedded system.
19480 # FIXME: Should these case a runtime exception in that case?
19481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19482 /* end confdefs.h.  */
19483 #include <time.h>
19484
19485 _ACEOF
19486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19487   $EGREP "localtime" >/dev/null 2>&1; then :
19488
19489 $as_echo "#define HAVE_LOCALTIME 1" >>confdefs.h
19490
19491 fi
19492 rm -f conftest*
19493
19494
19495 # Create the subdirectory for natFile.cc, or the attempt
19496 # to create the link will fail.
19497 test -d java || mkdir java
19498 test -d java/io || mkdir java/io
19499 test -d gnu || mkdir gnu
19500 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
19501
19502
19503 # Likewise for natConcreteProcess.cc.
19504 test -d java/lang || mkdir java/lang
19505 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
19506
19507
19508 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
19509 test -d java/net || mkdir java/net
19510 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
19511
19512 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
19513
19514
19515 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
19516 test -d gnu/java || mkdir gnu/java
19517 test -d gnu/java/net || mkdir gnu/java/net
19518 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
19519
19520 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
19521
19522
19523 # Likewise for natVMPipe.cc and natVMSelector.cc.
19524 test -d gnu/java/nio || mkdir gnu/java/nio
19525 ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
19526
19527 ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
19528
19529
19530 # Likewise for natFileChannelImpl.cc
19531 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
19532 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
19533
19534
19535 # Likewise for natVMSecureRandom.cc
19536 test -d gnu/java/security || mkdir gnu/java/security
19537 test -d gnu/java/security/jce || mkdir gnu/java/security/jce
19538 test -d gnu/java/security/jce/prng || mkdir gnu/java/security/jce/prng
19539 ac_config_links="$ac_config_links gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc"
19540
19541
19542 case "${host}" in
19543     *mingw*)
19544       SYSTEMSPEC="-lgdi32 -lws2_32"
19545       if test "${with_win32_nlsapi}" = "unicows"; then
19546         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
19547       fi
19548     ;;
19549     *)
19550       SYSTEMSPEC=
19551     ;;
19552 esac
19553
19554
19555
19556 # Check whether --with-system-zlib was given.
19557 if test "${with_system_zlib+set}" = set; then :
19558   withval=$with_system_zlib;
19559 fi
19560
19561 ZLIBSPEC=
19562
19563 ZLIBTESTSPEC=
19564
19565
19566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19567 $as_echo_n "checking for X... " >&6; }
19568
19569
19570 # Check whether --with-x was given.
19571 if test "${with_x+set}" = set; then :
19572   withval=$with_x;
19573 fi
19574
19575 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19576 if test "x$with_x" = xno; then
19577   # The user explicitly disabled X.
19578   have_x=disabled
19579 else
19580   case $x_includes,$x_libraries in #(
19581     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
19582     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
19583   $as_echo_n "(cached) " >&6
19584 else
19585   # One or both of the vars are not set, and there is no cached value.
19586 ac_x_includes=no ac_x_libraries=no
19587 rm -f -r conftest.dir
19588 if mkdir conftest.dir; then
19589   cd conftest.dir
19590   cat >Imakefile <<'_ACEOF'
19591 incroot:
19592         @echo incroot='${INCROOT}'
19593 usrlibdir:
19594         @echo usrlibdir='${USRLIBDIR}'
19595 libdir:
19596         @echo libdir='${LIBDIR}'
19597 _ACEOF
19598   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19599     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19600     for ac_var in incroot usrlibdir libdir; do
19601       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19602     done
19603     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19604     for ac_extension in a so sl dylib la dll; do
19605       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19606          test -f "$ac_im_libdir/libX11.$ac_extension"; then
19607         ac_im_usrlibdir=$ac_im_libdir; break
19608       fi
19609     done
19610     # Screen out bogus values from the imake configuration.  They are
19611     # bogus both because they are the default anyway, and because
19612     # using them would break gcc on systems where it needs fixed includes.
19613     case $ac_im_incroot in
19614         /usr/include) ac_x_includes= ;;
19615         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19616     esac
19617     case $ac_im_usrlibdir in
19618         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19619         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19620     esac
19621   fi
19622   cd ..
19623   rm -f -r conftest.dir
19624 fi
19625
19626 # Standard set of common directories for X headers.
19627 # Check X11 before X11Rn because it is often a symlink to the current release.
19628 ac_x_header_dirs='
19629 /usr/X11/include
19630 /usr/X11R7/include
19631 /usr/X11R6/include
19632 /usr/X11R5/include
19633 /usr/X11R4/include
19634
19635 /usr/include/X11
19636 /usr/include/X11R7
19637 /usr/include/X11R6
19638 /usr/include/X11R5
19639 /usr/include/X11R4
19640
19641 /usr/local/X11/include
19642 /usr/local/X11R7/include
19643 /usr/local/X11R6/include
19644 /usr/local/X11R5/include
19645 /usr/local/X11R4/include
19646
19647 /usr/local/include/X11
19648 /usr/local/include/X11R7
19649 /usr/local/include/X11R6
19650 /usr/local/include/X11R5
19651 /usr/local/include/X11R4
19652
19653 /usr/X386/include
19654 /usr/x386/include
19655 /usr/XFree86/include/X11
19656
19657 /usr/include
19658 /usr/local/include
19659 /usr/unsupported/include
19660 /usr/athena/include
19661 /usr/local/x11r5/include
19662 /usr/lpp/Xamples/include
19663
19664 /usr/openwin/include
19665 /usr/openwin/share/include'
19666
19667 if test "$ac_x_includes" = no; then
19668   # Guess where to find include files, by looking for Xlib.h.
19669   # First, try using that file with no special directory specified.
19670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19671 /* end confdefs.h.  */
19672 #include <X11/Xlib.h>
19673 _ACEOF
19674 if ac_fn_c_try_cpp "$LINENO"; then :
19675   # We can compile using X headers with no special include directory.
19676 ac_x_includes=
19677 else
19678   for ac_dir in $ac_x_header_dirs; do
19679   if test -r "$ac_dir/X11/Xlib.h"; then
19680     ac_x_includes=$ac_dir
19681     break
19682   fi
19683 done
19684 fi
19685 rm -f conftest.err conftest.$ac_ext
19686 fi # $ac_x_includes = no
19687
19688 if test "$ac_x_libraries" = no; then
19689   # Check for the libraries.
19690   # See if we find them without any special options.
19691   # Don't add to $LIBS permanently.
19692   ac_save_LIBS=$LIBS
19693   LIBS="-lX11 $LIBS"
19694   if test x$gcc_no_link = xyes; then
19695   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19696 fi
19697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19698 /* end confdefs.h.  */
19699 #include <X11/Xlib.h>
19700 int
19701 main ()
19702 {
19703 XrmInitialize ()
19704   ;
19705   return 0;
19706 }
19707 _ACEOF
19708 if ac_fn_c_try_link "$LINENO"; then :
19709   LIBS=$ac_save_LIBS
19710 # We can link X programs with no special library path.
19711 ac_x_libraries=
19712 else
19713   LIBS=$ac_save_LIBS
19714 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19715 do
19716   # Don't even attempt the hair of trying to link an X program!
19717   for ac_extension in a so sl dylib la dll; do
19718     if test -r "$ac_dir/libX11.$ac_extension"; then
19719       ac_x_libraries=$ac_dir
19720       break 2
19721     fi
19722   done
19723 done
19724 fi
19725 rm -f core conftest.err conftest.$ac_objext \
19726     conftest$ac_exeext conftest.$ac_ext
19727 fi # $ac_x_libraries = no
19728
19729 case $ac_x_includes,$ac_x_libraries in #(
19730   no,* | *,no | *\'*)
19731     # Didn't find X, or a directory has "'" in its name.
19732     ac_cv_have_x="have_x=no";; #(
19733   *)
19734     # Record where we found X for the cache.
19735     ac_cv_have_x="have_x=yes\
19736         ac_x_includes='$ac_x_includes'\
19737         ac_x_libraries='$ac_x_libraries'"
19738 esac
19739 fi
19740 ;; #(
19741     *) have_x=yes;;
19742   esac
19743   eval "$ac_cv_have_x"
19744 fi # $with_x != no
19745
19746 if test "$have_x" != yes; then
19747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19748 $as_echo "$have_x" >&6; }
19749   no_x=yes
19750 else
19751   # If each of the values was on the command line, it overrides each guess.
19752   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19753   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19754   # Update the cache value to reflect the command line values.
19755   ac_cv_have_x="have_x=yes\
19756         ac_x_includes='$x_includes'\
19757         ac_x_libraries='$x_libraries'"
19758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19759 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19760 fi
19761
19762 if test "$no_x" = yes; then
19763   # Not all programs may use this symbol, but it does not hurt to define it.
19764
19765 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
19766
19767   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19768 else
19769   if test -n "$x_includes"; then
19770     X_CFLAGS="$X_CFLAGS -I$x_includes"
19771   fi
19772
19773   # It would also be nice to do this for all -L options, not just this one.
19774   if test -n "$x_libraries"; then
19775     X_LIBS="$X_LIBS -L$x_libraries"
19776     # For Solaris; some versions of Sun CC require a space after -R and
19777     # others require no space.  Words are not sufficient . . . .
19778     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
19779 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
19780     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19781     ac_xsave_c_werror_flag=$ac_c_werror_flag
19782     ac_c_werror_flag=yes
19783     if test x$gcc_no_link = xyes; then
19784   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19785 fi
19786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19787 /* end confdefs.h.  */
19788
19789 int
19790 main ()
19791 {
19792
19793   ;
19794   return 0;
19795 }
19796 _ACEOF
19797 if ac_fn_c_try_link "$LINENO"; then :
19798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19799 $as_echo "no" >&6; }
19800        X_LIBS="$X_LIBS -R$x_libraries"
19801 else
19802   LIBS="$ac_xsave_LIBS -R $x_libraries"
19803        if test x$gcc_no_link = xyes; then
19804   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19805 fi
19806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19807 /* end confdefs.h.  */
19808
19809 int
19810 main ()
19811 {
19812
19813   ;
19814   return 0;
19815 }
19816 _ACEOF
19817 if ac_fn_c_try_link "$LINENO"; then :
19818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19819 $as_echo "yes" >&6; }
19820           X_LIBS="$X_LIBS -R $x_libraries"
19821 else
19822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
19823 $as_echo "neither works" >&6; }
19824 fi
19825 rm -f core conftest.err conftest.$ac_objext \
19826     conftest$ac_exeext conftest.$ac_ext
19827 fi
19828 rm -f core conftest.err conftest.$ac_objext \
19829     conftest$ac_exeext conftest.$ac_ext
19830     ac_c_werror_flag=$ac_xsave_c_werror_flag
19831     LIBS=$ac_xsave_LIBS
19832   fi
19833
19834   # Check for system-dependent libraries X programs must link with.
19835   # Do this before checking for the system-independent R6 libraries
19836   # (-lICE), since we may need -lsocket or whatever for X linking.
19837
19838   if test "$ISC" = yes; then
19839     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19840   else
19841     # Martyn Johnson says this is needed for Ultrix, if the X
19842     # libraries were built with DECnet support.  And Karl Berry says
19843     # the Alpha needs dnet_stub (dnet does not exist).
19844     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19845     if test x$gcc_no_link = xyes; then
19846   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19847 fi
19848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19849 /* end confdefs.h.  */
19850
19851 /* Override any GCC internal prototype to avoid an error.
19852    Use char because int might match the return type of a GCC
19853    builtin and then its argument prototype would still apply.  */
19854 #ifdef __cplusplus
19855 extern "C"
19856 #endif
19857 char XOpenDisplay ();
19858 int
19859 main ()
19860 {
19861 return XOpenDisplay ();
19862   ;
19863   return 0;
19864 }
19865 _ACEOF
19866 if ac_fn_c_try_link "$LINENO"; then :
19867
19868 else
19869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
19870 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
19871 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
19872   $as_echo_n "(cached) " >&6
19873 else
19874   ac_check_lib_save_LIBS=$LIBS
19875 LIBS="-ldnet  $LIBS"
19876 if test x$gcc_no_link = xyes; then
19877   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19878 fi
19879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19880 /* end confdefs.h.  */
19881
19882 /* Override any GCC internal prototype to avoid an error.
19883    Use char because int might match the return type of a GCC
19884    builtin and then its argument prototype would still apply.  */
19885 #ifdef __cplusplus
19886 extern "C"
19887 #endif
19888 char dnet_ntoa ();
19889 int
19890 main ()
19891 {
19892 return dnet_ntoa ();
19893   ;
19894   return 0;
19895 }
19896 _ACEOF
19897 if ac_fn_c_try_link "$LINENO"; then :
19898   ac_cv_lib_dnet_dnet_ntoa=yes
19899 else
19900   ac_cv_lib_dnet_dnet_ntoa=no
19901 fi
19902 rm -f core conftest.err conftest.$ac_objext \
19903     conftest$ac_exeext conftest.$ac_ext
19904 LIBS=$ac_check_lib_save_LIBS
19905 fi
19906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19907 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19908 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
19909   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19910 fi
19911
19912     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19913       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
19914 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
19915 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
19916   $as_echo_n "(cached) " >&6
19917 else
19918   ac_check_lib_save_LIBS=$LIBS
19919 LIBS="-ldnet_stub  $LIBS"
19920 if test x$gcc_no_link = xyes; then
19921   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19922 fi
19923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19924 /* end confdefs.h.  */
19925
19926 /* Override any GCC internal prototype to avoid an error.
19927    Use char because int might match the return type of a GCC
19928    builtin and then its argument prototype would still apply.  */
19929 #ifdef __cplusplus
19930 extern "C"
19931 #endif
19932 char dnet_ntoa ();
19933 int
19934 main ()
19935 {
19936 return dnet_ntoa ();
19937   ;
19938   return 0;
19939 }
19940 _ACEOF
19941 if ac_fn_c_try_link "$LINENO"; then :
19942   ac_cv_lib_dnet_stub_dnet_ntoa=yes
19943 else
19944   ac_cv_lib_dnet_stub_dnet_ntoa=no
19945 fi
19946 rm -f core conftest.err conftest.$ac_objext \
19947     conftest$ac_exeext conftest.$ac_ext
19948 LIBS=$ac_check_lib_save_LIBS
19949 fi
19950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19951 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19952 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
19953   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19954 fi
19955
19956     fi
19957 fi
19958 rm -f core conftest.err conftest.$ac_objext \
19959     conftest$ac_exeext conftest.$ac_ext
19960     LIBS="$ac_xsave_LIBS"
19961
19962     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19963     # to get the SysV transport functions.
19964     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19965     # needs -lnsl.
19966     # The nsl library prevents programs from opening the X display
19967     # on Irix 5.2, according to T.E. Dickey.
19968     # The functions gethostbyname, getservbyname, and inet_addr are
19969     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19970     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19971 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
19972
19973 fi
19974
19975     if test $ac_cv_func_gethostbyname = no; then
19976       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19977 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19978 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
19979   $as_echo_n "(cached) " >&6
19980 else
19981   ac_check_lib_save_LIBS=$LIBS
19982 LIBS="-lnsl  $LIBS"
19983 if test x$gcc_no_link = xyes; then
19984   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19985 fi
19986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19987 /* end confdefs.h.  */
19988
19989 /* Override any GCC internal prototype to avoid an error.
19990    Use char because int might match the return type of a GCC
19991    builtin and then its argument prototype would still apply.  */
19992 #ifdef __cplusplus
19993 extern "C"
19994 #endif
19995 char gethostbyname ();
19996 int
19997 main ()
19998 {
19999 return gethostbyname ();
20000   ;
20001   return 0;
20002 }
20003 _ACEOF
20004 if ac_fn_c_try_link "$LINENO"; then :
20005   ac_cv_lib_nsl_gethostbyname=yes
20006 else
20007   ac_cv_lib_nsl_gethostbyname=no
20008 fi
20009 rm -f core conftest.err conftest.$ac_objext \
20010     conftest$ac_exeext conftest.$ac_ext
20011 LIBS=$ac_check_lib_save_LIBS
20012 fi
20013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20014 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20015 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
20016   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20017 fi
20018
20019       if test $ac_cv_lib_nsl_gethostbyname = no; then
20020         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20021 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20022 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
20023   $as_echo_n "(cached) " >&6
20024 else
20025   ac_check_lib_save_LIBS=$LIBS
20026 LIBS="-lbsd  $LIBS"
20027 if test x$gcc_no_link = xyes; then
20028   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20029 fi
20030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20031 /* end confdefs.h.  */
20032
20033 /* Override any GCC internal prototype to avoid an error.
20034    Use char because int might match the return type of a GCC
20035    builtin and then its argument prototype would still apply.  */
20036 #ifdef __cplusplus
20037 extern "C"
20038 #endif
20039 char gethostbyname ();
20040 int
20041 main ()
20042 {
20043 return gethostbyname ();
20044   ;
20045   return 0;
20046 }
20047 _ACEOF
20048 if ac_fn_c_try_link "$LINENO"; then :
20049   ac_cv_lib_bsd_gethostbyname=yes
20050 else
20051   ac_cv_lib_bsd_gethostbyname=no
20052 fi
20053 rm -f core conftest.err conftest.$ac_objext \
20054     conftest$ac_exeext conftest.$ac_ext
20055 LIBS=$ac_check_lib_save_LIBS
20056 fi
20057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20058 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20059 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
20060   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20061 fi
20062
20063       fi
20064     fi
20065
20066     # lieder@skyler.mavd.honeywell.com says without -lsocket,
20067     # socket/setsockopt and other routines are undefined under SCO ODT
20068     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
20069     # on later versions), says Simon Leinen: it contains gethostby*
20070     # variants that don't use the name server (or something).  -lsocket
20071     # must be given before -lnsl if both are needed.  We assume that
20072     # if connect needs -lnsl, so does gethostbyname.
20073     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20074 if test "x$ac_cv_func_connect" = x""yes; then :
20075
20076 fi
20077
20078     if test $ac_cv_func_connect = no; then
20079       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20080 $as_echo_n "checking for connect in -lsocket... " >&6; }
20081 if test "${ac_cv_lib_socket_connect+set}" = set; then :
20082   $as_echo_n "(cached) " >&6
20083 else
20084   ac_check_lib_save_LIBS=$LIBS
20085 LIBS="-lsocket $X_EXTRA_LIBS $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 connect ();
20099 int
20100 main ()
20101 {
20102 return connect ();
20103   ;
20104   return 0;
20105 }
20106 _ACEOF
20107 if ac_fn_c_try_link "$LINENO"; then :
20108   ac_cv_lib_socket_connect=yes
20109 else
20110   ac_cv_lib_socket_connect=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_socket_connect" >&5
20117 $as_echo "$ac_cv_lib_socket_connect" >&6; }
20118 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
20119   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20120 fi
20121
20122     fi
20123
20124     # Guillermo Gomez says -lposix is necessary on A/UX.
20125     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20126 if test "x$ac_cv_func_remove" = x""yes; then :
20127
20128 fi
20129
20130     if test $ac_cv_func_remove = no; then
20131       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20132 $as_echo_n "checking for remove in -lposix... " >&6; }
20133 if test "${ac_cv_lib_posix_remove+set}" = set; then :
20134   $as_echo_n "(cached) " >&6
20135 else
20136   ac_check_lib_save_LIBS=$LIBS
20137 LIBS="-lposix  $LIBS"
20138 if test x$gcc_no_link = xyes; then
20139   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20140 fi
20141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20142 /* end confdefs.h.  */
20143
20144 /* Override any GCC internal prototype to avoid an error.
20145    Use char because int might match the return type of a GCC
20146    builtin and then its argument prototype would still apply.  */
20147 #ifdef __cplusplus
20148 extern "C"
20149 #endif
20150 char remove ();
20151 int
20152 main ()
20153 {
20154 return remove ();
20155   ;
20156   return 0;
20157 }
20158 _ACEOF
20159 if ac_fn_c_try_link "$LINENO"; then :
20160   ac_cv_lib_posix_remove=yes
20161 else
20162   ac_cv_lib_posix_remove=no
20163 fi
20164 rm -f core conftest.err conftest.$ac_objext \
20165     conftest$ac_exeext conftest.$ac_ext
20166 LIBS=$ac_check_lib_save_LIBS
20167 fi
20168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20169 $as_echo "$ac_cv_lib_posix_remove" >&6; }
20170 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
20171   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20172 fi
20173
20174     fi
20175
20176     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20177     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20178 if test "x$ac_cv_func_shmat" = x""yes; then :
20179
20180 fi
20181
20182     if test $ac_cv_func_shmat = no; then
20183       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20184 $as_echo_n "checking for shmat in -lipc... " >&6; }
20185 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
20186   $as_echo_n "(cached) " >&6
20187 else
20188   ac_check_lib_save_LIBS=$LIBS
20189 LIBS="-lipc  $LIBS"
20190 if test x$gcc_no_link = xyes; then
20191   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20192 fi
20193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20194 /* end confdefs.h.  */
20195
20196 /* Override any GCC internal prototype to avoid an error.
20197    Use char because int might match the return type of a GCC
20198    builtin and then its argument prototype would still apply.  */
20199 #ifdef __cplusplus
20200 extern "C"
20201 #endif
20202 char shmat ();
20203 int
20204 main ()
20205 {
20206 return shmat ();
20207   ;
20208   return 0;
20209 }
20210 _ACEOF
20211 if ac_fn_c_try_link "$LINENO"; then :
20212   ac_cv_lib_ipc_shmat=yes
20213 else
20214   ac_cv_lib_ipc_shmat=no
20215 fi
20216 rm -f core conftest.err conftest.$ac_objext \
20217     conftest$ac_exeext conftest.$ac_ext
20218 LIBS=$ac_check_lib_save_LIBS
20219 fi
20220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20221 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20222 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
20223   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20224 fi
20225
20226     fi
20227   fi
20228
20229   # Check for libraries that X11R6 Xt/Xaw programs need.
20230   ac_save_LDFLAGS=$LDFLAGS
20231   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20232   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20233   # check for ICE first), but we must link in the order -lSM -lICE or
20234   # we get undefined symbols.  So assume we have SM if we have ICE.
20235   # These have to be linked with before -lX11, unlike the other
20236   # libraries we check for below, so use a different variable.
20237   # John Interrante, Karl Berry
20238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20239 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20240 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
20241   $as_echo_n "(cached) " >&6
20242 else
20243   ac_check_lib_save_LIBS=$LIBS
20244 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20245 if test x$gcc_no_link = xyes; then
20246   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20247 fi
20248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20249 /* end confdefs.h.  */
20250
20251 /* Override any GCC internal prototype to avoid an error.
20252    Use char because int might match the return type of a GCC
20253    builtin and then its argument prototype would still apply.  */
20254 #ifdef __cplusplus
20255 extern "C"
20256 #endif
20257 char IceConnectionNumber ();
20258 int
20259 main ()
20260 {
20261 return IceConnectionNumber ();
20262   ;
20263   return 0;
20264 }
20265 _ACEOF
20266 if ac_fn_c_try_link "$LINENO"; then :
20267   ac_cv_lib_ICE_IceConnectionNumber=yes
20268 else
20269   ac_cv_lib_ICE_IceConnectionNumber=no
20270 fi
20271 rm -f core conftest.err conftest.$ac_objext \
20272     conftest$ac_exeext conftest.$ac_ext
20273 LIBS=$ac_check_lib_save_LIBS
20274 fi
20275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20276 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20277 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
20278   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20279 fi
20280
20281   LDFLAGS=$ac_save_LDFLAGS
20282
20283 fi
20284
20285
20286 # FIXME: this should be _libs on some hosts.
20287 libsubdir=.libs
20288
20289 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20290
20291 LIBSTDCXXSPEC=
20292 # extra LD Flags which are required for targets
20293 case "${host}" in
20294 *-*-darwin[0-7].*)
20295     # For now we have to disable it on darwin[8-9] because it slows down
20296     # the linking phase. A possible bug in ld?
20297     # on Darwin -single_module speeds up loading of the dynamic libraries.
20298     extra_ldflags_libjava=-Wl,-single_module
20299     ;;
20300 *-*-darwin[912]*)
20301     extra_gij_ldflags=-Wl,-allow_stack_execute
20302     ;;
20303 arm*linux*eabi)
20304     # Some of the ARM unwinder code is actually in libstdc++.  We
20305     # could in principle replicate it in libgcj, but it's better to
20306     # have a dependency on libstdc++.
20307     extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20308     LIBSTDCXXSPEC=-lstdc++
20309     LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20310     ;;
20311 *-*-cygwin)
20312     extra_ldflags_libjava=-liconv
20313     ;;
20314 esac
20315
20316
20317
20318
20319
20320
20321
20322 # Allow the GC to be disabled.  Can be useful when debugging.
20323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for garbage collector to use" >&5
20324 $as_echo_n "checking for garbage collector to use... " >&6; }
20325 # Check whether --enable-java-gc was given.
20326 if test "${enable_java_gc+set}" = set; then :
20327   enableval=$enable_java_gc; GC=$enableval
20328 else
20329   GC=boehm
20330 fi
20331
20332 GCLIBS=
20333 GCINCS=
20334 GCDEPS=
20335 GCSPEC=
20336 JC1GCSPEC=
20337 GCTESTSPEC=
20338 case "$GC" in
20339  boehm)
20340     { $as_echo "$as_me:${as_lineno-$LINENO}: result: boehm" >&5
20341 $as_echo "boehm" >&6; }
20342     GCLIBS=../boehm-gc/libgcjgc_convenience.la
20343     JC1GCSPEC='-fuse-boehm-gc'
20344     GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20345     GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20346     GCOBJS=boehm.lo
20347     GCHDR=boehm-gc.h
20348     # The POSIX thread support needs to know this.
20349
20350 $as_echo "#define HAVE_BOEHM_GC 1" >>confdefs.h
20351
20352     ;;
20353  no)
20354     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
20355 $as_echo "none" >&6; }
20356     GCHDR=no-gc.h
20357     ;;
20358  *)
20359     as_fn_error "unrecognized collector \"$GC\"" "$LINENO" 5
20360     ;;
20361 esac
20362
20363
20364
20365
20366
20367
20368 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20369
20370  if test "$GC" = boehm; then
20371   USING_BOEHMGC_TRUE=
20372   USING_BOEHMGC_FALSE='#'
20373 else
20374   USING_BOEHMGC_TRUE='#'
20375   USING_BOEHMGC_FALSE=
20376 fi
20377
20378  if test "$GC" = no; then
20379   USING_NOGC_TRUE=
20380   USING_NOGC_FALSE='#'
20381 else
20382   USING_NOGC_TRUE='#'
20383   USING_NOGC_FALSE=
20384 fi
20385
20386
20387
20388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
20389 $as_echo_n "checking for thread model used by GCC... " >&6; }
20390 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
20392 $as_echo "$THREADS" >&6; }
20393
20394 case "$THREADS" in
20395  no | none | single)
20396     THREADS=none
20397     ;;
20398  aix | posix | posix95 | pthreads)
20399     THREADS=posix
20400     case "$host" in
20401      *-*-linux*)
20402
20403 $as_echo "#define LINUX_THREADS 1" >>confdefs.h
20404
20405         ;;
20406     esac
20407     ;;
20408  win32)
20409     ;;
20410  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
20411     as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
20412     ;;
20413  *)
20414     as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
20415     ;;
20416 esac
20417
20418 THREADCXXFLAGS=
20419 THREADLDFLAGS=
20420 THREADLIBS=
20421 THREADINCS=
20422 THREADDEPS=
20423 THREADH=
20424 THREADSPEC=
20425 THREADSTARTFILESPEC=
20426 case "$THREADS" in
20427  posix)
20428     case "$host" in
20429      *-*-cygwin*)
20430         # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
20431         ;;
20432      *-*-freebsd[1234]*)
20433         # Before FreeBSD 5, it didn't have -lpthread (or any library which
20434         # merely adds pthread_* functions) but it does have a -pthread switch
20435         # which is required at link-time to select -lc_r *instead* of -lc.
20436         THREADLDFLAGS=-pthread
20437         # Don't set THREADSPEC here as might be expected since -pthread is
20438         # not processed when found within a spec file, it must come from
20439         # the command line.  For now, the user must provide the -pthread
20440         # switch to link code compiled with gcj.  In future, consider adding
20441         # support for weak references to pthread_* functions ala gthr.h API.
20442         THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20443         ;;
20444      *-*-freebsd*)
20445         # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20446         # systems which support threads and -lpthread.
20447         THREADLDFLAGS=-pthread
20448         THREADSPEC=-lpthread
20449         ;;
20450      alpha*-dec-osf* | hppa*-hp-hpux*)
20451         THREADCXXFLAGS=-pthread
20452         # boehm-gc needs some functions from librt, so link that too.
20453         THREADLIBS='-lpthread -lrt'
20454         THREADSPEC='-lpthread -lrt'
20455         ;;
20456      *)
20457         THREADLIBS=-lpthread
20458         THREADSPEC=-lpthread
20459         ;;
20460     esac
20461     THREADH=posix-threads.h
20462     # MIT pthreads doesn't seem to have the mutexattr functions.
20463     # But for now we don't check for it.  We just assume you aren't
20464     # using MIT pthreads.
20465
20466 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20467
20468
20469     # If we're using the Boehm GC, then we happen to know that it
20470     # defines _REENTRANT, so we don't bother.  Eww.
20471     if test "$GC" != boehm; then
20472
20473 $as_echo "#define _REENTRANT 1" >>confdefs.h
20474
20475     fi
20476
20477 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
20478
20479     ;;
20480
20481  win32)
20482     THREADH=win32-threads.h
20483     THREADCXXFLAGS=-mthreads
20484     # We need thread-safe exception handling so _CRT_MT should be set to 1.
20485     # But we do not want the executables created to be dependent on
20486     # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20487     # exception handling contexts.  The following kludge achieves this effect
20488     # and causes a dummy __mingwthr_key_dtor() to be linked in from
20489     # libmingw32.a.  This causes a memory leak of about 24 bytes per thread.
20490     # A workaround is to explicitly use -mthreads while linking Java programs.
20491     # See PR libgcj/28263.
20492     #
20493     # FIXME: In Java we are able to detect thread death at the end of
20494     # Thread.run() so we should be able to clean up the exception handling
20495     # contexts ourselves.
20496     THREADSTARTFILESPEC='crtmt%O%s'
20497     ;;
20498
20499  none)
20500     THREADH=no-threads.h
20501     ;;
20502 esac
20503 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20504
20505
20506
20507
20508
20509
20510
20511
20512  if test "$THREADS" = posix; then
20513   USING_POSIX_THREADS_TRUE=
20514   USING_POSIX_THREADS_FALSE='#'
20515 else
20516   USING_POSIX_THREADS_TRUE='#'
20517   USING_POSIX_THREADS_FALSE=
20518 fi
20519
20520  if test "$THREADS" = win32; then
20521   USING_WIN32_THREADS_TRUE=
20522   USING_WIN32_THREADS_FALSE='#'
20523 else
20524   USING_WIN32_THREADS_TRUE='#'
20525   USING_WIN32_THREADS_FALSE=
20526 fi
20527
20528  if test "$THREADS" = none; then
20529   USING_NO_THREADS_TRUE=
20530   USING_NO_THREADS_FALSE='#'
20531 else
20532   USING_NO_THREADS_TRUE='#'
20533   USING_NO_THREADS_FALSE=
20534 fi
20535
20536 if test "$enable_shared" != yes; then
20537   use_libgcj_bc=no
20538 fi
20539  if test "$use_libgcj_bc" = yes; then
20540   USE_LIBGCJ_BC_TRUE=
20541   USE_LIBGCJ_BC_FALSE='#'
20542 else
20543   USE_LIBGCJ_BC_TRUE='#'
20544   USE_LIBGCJ_BC_FALSE=
20545 fi
20546
20547
20548 if test -d sysdep; then true; else mkdir sysdep; fi
20549 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20550
20551 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20552
20553 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20554
20555
20556 LIBGCJ_SPEC_LGCJ=-lgcj
20557 LIBGCJ_SPEC_LGCJ_BC=-lgcj_bc
20558 if test x"$libgcj_spec_lgcj_override" != x ; then
20559   LIBGCJ_SPEC_LGCJ=$libgcj_spec_lgcj_override
20560 fi
20561 if test x"$libgcj_spec_lgcj_bc_override" != x ; then
20562   LIBGCJ_SPEC_LGCJ_BC=$libgcj_spec_lgcj_bc_override
20563 fi
20564 LIBGCJ_SPEC="%{s-bc-abi:} $LIBGCJ_SPEC_LGCJ"
20565 if test "$use_libgcj_bc" = yes; then
20566   LIBGCJ_SPEC="%{static|static-libgcj|!s-bc-abi:$LIBGCJ_SPEC_LGCJ;:$LIBGCJ_SPEC_LGCJ_BC}"
20567   LIBGCJ_BC_SPEC="%{findirect-dispatch:-fPIC}"
20568 fi
20569
20570
20571
20572 HASH_SYNC_SPEC=
20573 # Hash synchronization is only useful with posix threads right now.
20574 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20575    HASH_SYNC_SPEC=-fhash-synchronization
20576
20577 $as_echo "#define JV_HASH_SYNCHRONIZATION 1" >>confdefs.h
20578
20579 fi
20580
20581
20582  if test "$GCC" = yes; then
20583   USING_GCC_TRUE=
20584   USING_GCC_FALSE='#'
20585 else
20586   USING_GCC_TRUE='#'
20587   USING_GCC_FALSE=
20588 fi
20589
20590
20591 # We're in the tree with gcc, and need to include some of its headers.
20592 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20593
20594 if test "x${with_newlib}" = "xyes"; then
20595    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
20596    # may not work correctly, because the compiler may not be able to
20597    # link executables.
20598
20599    # We assume newlib.  This lets us hard-code the functions we know
20600    # we'll have.
20601
20602 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20603
20604
20605 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
20606
20607
20608 $as_echo "#define HAVE_TIME 1" >>confdefs.h
20609
20610
20611 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20612
20613
20614 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
20615
20616
20617 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
20618
20619    # This is only for POSIX threads.
20620
20621 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20622
20623
20624    # Assume we do not have getuid and friends.
20625
20626 $as_echo "#define NO_GETUID 1" >>confdefs.h
20627
20628    PLATFORMNET=NoNet
20629 else
20630    for ac_func in strerror_r select fstat open fsync sleep opendir \
20631                    localtime_r getpwuid_r getcwd \
20632                    access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20633                    nl_langinfo setlocale \
20634                    inet_pton uname inet_ntoa \
20635                    getrlimit sigaction ftruncate mmap \
20636                    getifaddrs
20637 do :
20638   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20639 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20640 eval as_val=\$$as_ac_var
20641    if test "x$as_val" = x""yes; then :
20642   cat >>confdefs.h <<_ACEOF
20643 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20644 _ACEOF
20645
20646 fi
20647 done
20648
20649    for ac_func in inet_aton inet_addr
20650 do :
20651   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20652 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20653 eval as_val=\$$as_ac_var
20654    if test "x$as_val" = x""yes; then :
20655   cat >>confdefs.h <<_ACEOF
20656 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20657 _ACEOF
20658  break
20659 fi
20660 done
20661
20662    for ac_header in unistd.h dlfcn.h sys/resource.h
20663 do :
20664   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20665 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20666 eval as_val=\$$as_ac_Header
20667    if test "x$as_val" = x""yes; then :
20668   cat >>confdefs.h <<_ACEOF
20669 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20670 _ACEOF
20671
20672 fi
20673
20674 done
20675
20676    # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
20677    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
20678 $as_echo_n "checking for dladdr in -ldl... " >&6; }
20679 if test "${ac_cv_lib_dl_dladdr+set}" = set; then :
20680   $as_echo_n "(cached) " >&6
20681 else
20682   ac_check_lib_save_LIBS=$LIBS
20683 LIBS="-ldl  $LIBS"
20684 if test x$gcc_no_link = xyes; then
20685   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20686 fi
20687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20688 /* end confdefs.h.  */
20689
20690 /* Override any GCC internal prototype to avoid an error.
20691    Use char because int might match the return type of a GCC
20692    builtin and then its argument prototype would still apply.  */
20693 #ifdef __cplusplus
20694 extern "C"
20695 #endif
20696 char dladdr ();
20697 int
20698 main ()
20699 {
20700 return dladdr ();
20701   ;
20702   return 0;
20703 }
20704 _ACEOF
20705 if ac_fn_c_try_link "$LINENO"; then :
20706   ac_cv_lib_dl_dladdr=yes
20707 else
20708   ac_cv_lib_dl_dladdr=no
20709 fi
20710 rm -f core conftest.err conftest.$ac_objext \
20711     conftest$ac_exeext conftest.$ac_ext
20712 LIBS=$ac_check_lib_save_LIBS
20713 fi
20714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
20715 $as_echo "$ac_cv_lib_dl_dladdr" >&6; }
20716 if test "x$ac_cv_lib_dl_dladdr" = x""yes; then :
20717
20718
20719 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
20720
20721 else
20722
20723        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldld" >&5
20724 $as_echo_n "checking for dladdr in -ldld... " >&6; }
20725 if test "${ac_cv_lib_dld_dladdr+set}" = set; then :
20726   $as_echo_n "(cached) " >&6
20727 else
20728   ac_check_lib_save_LIBS=$LIBS
20729 LIBS="-ldld  $LIBS"
20730 if test x$gcc_no_link = xyes; then
20731   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20732 fi
20733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20734 /* end confdefs.h.  */
20735
20736 /* Override any GCC internal prototype to avoid an error.
20737    Use char because int might match the return type of a GCC
20738    builtin and then its argument prototype would still apply.  */
20739 #ifdef __cplusplus
20740 extern "C"
20741 #endif
20742 char dladdr ();
20743 int
20744 main ()
20745 {
20746 return dladdr ();
20747   ;
20748   return 0;
20749 }
20750 _ACEOF
20751 if ac_fn_c_try_link "$LINENO"; then :
20752   ac_cv_lib_dld_dladdr=yes
20753 else
20754   ac_cv_lib_dld_dladdr=no
20755 fi
20756 rm -f core conftest.err conftest.$ac_objext \
20757     conftest$ac_exeext conftest.$ac_ext
20758 LIBS=$ac_check_lib_save_LIBS
20759 fi
20760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dladdr" >&5
20761 $as_echo "$ac_cv_lib_dld_dladdr" >&6; }
20762 if test "x$ac_cv_lib_dld_dladdr" = x""yes; then :
20763
20764
20765 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
20766
20767 fi
20768
20769 fi
20770
20771
20772    if test x"$cross_compiling" = x"no"; then
20773      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/exe" >&5
20774 $as_echo_n "checking for /proc/self/exe... " >&6; }
20775 if test "${ac_cv_file__proc_self_exe+set}" = set; then :
20776   $as_echo_n "(cached) " >&6
20777 else
20778   test "$cross_compiling" = yes &&
20779   as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
20780 if test -r "/proc/self/exe"; then
20781   ac_cv_file__proc_self_exe=yes
20782 else
20783   ac_cv_file__proc_self_exe=no
20784 fi
20785 fi
20786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_exe" >&5
20787 $as_echo "$ac_cv_file__proc_self_exe" >&6; }
20788 if test "x$ac_cv_file__proc_self_exe" = x""yes; then :
20789
20790 cat >>confdefs.h <<_ACEOF
20791 #define HAVE__PROC_SELF_EXE 1
20792 _ACEOF
20793
20794
20795 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
20796
20797 fi
20798
20799      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/maps" >&5
20800 $as_echo_n "checking for /proc/self/maps... " >&6; }
20801 if test "${ac_cv_file__proc_self_maps+set}" = set; then :
20802   $as_echo_n "(cached) " >&6
20803 else
20804   test "$cross_compiling" = yes &&
20805   as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
20806 if test -r "/proc/self/maps"; then
20807   ac_cv_file__proc_self_maps=yes
20808 else
20809   ac_cv_file__proc_self_maps=no
20810 fi
20811 fi
20812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_maps" >&5
20813 $as_echo "$ac_cv_file__proc_self_maps" >&6; }
20814 if test "x$ac_cv_file__proc_self_maps" = x""yes; then :
20815
20816 cat >>confdefs.h <<_ACEOF
20817 #define HAVE__PROC_SELF_MAPS 1
20818 _ACEOF
20819
20820
20821 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
20822
20823 fi
20824
20825    else
20826      case $host in
20827      *-linux*)
20828
20829 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
20830
20831
20832 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
20833
20834        ;;
20835      esac
20836    fi
20837
20838
20839       if test "X$prefix" = "XNONE"; then
20840     acl_final_prefix="$ac_default_prefix"
20841   else
20842     acl_final_prefix="$prefix"
20843   fi
20844   if test "X$exec_prefix" = "XNONE"; then
20845     acl_final_exec_prefix='${prefix}'
20846   else
20847     acl_final_exec_prefix="$exec_prefix"
20848   fi
20849   acl_save_prefix="$prefix"
20850   prefix="$acl_final_prefix"
20851   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
20852   prefix="$acl_save_prefix"
20853
20854
20855 # Check whether --with-gnu-ld was given.
20856 if test "${with_gnu_ld+set}" = set; then :
20857   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20858 else
20859   with_gnu_ld=no
20860 fi
20861
20862 # Prepare PATH_SEPARATOR.
20863 # The user is always right.
20864 if test "${PATH_SEPARATOR+set}" != set; then
20865   echo "#! /bin/sh" >conf$$.sh
20866   echo  "exit 0"   >>conf$$.sh
20867   chmod +x conf$$.sh
20868   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20869     PATH_SEPARATOR=';'
20870   else
20871     PATH_SEPARATOR=:
20872   fi
20873   rm -f conf$$.sh
20874 fi
20875 ac_prog=ld
20876 if test "$GCC" = yes; then
20877   # Check if gcc -print-prog-name=ld gives a path.
20878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
20879 $as_echo_n "checking for ld used by GCC... " >&6; }
20880   case $host in
20881   *-*-mingw*)
20882     # gcc leaves a trailing carriage return which upsets mingw
20883     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20884   *)
20885     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20886   esac
20887   case $ac_prog in
20888     # Accept absolute paths.
20889     [\\/]* | [A-Za-z]:[\\/]*)
20890       re_direlt='/[^/][^/]*/\.\./'
20891       # Canonicalize the path of ld
20892       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
20893       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
20894         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
20895       done
20896       test -z "$LD" && LD="$ac_prog"
20897       ;;
20898   "")
20899     # If it fails, then pretend we aren't using GCC.
20900     ac_prog=ld
20901     ;;
20902   *)
20903     # If it is relative, then search for the first ld in PATH.
20904     with_gnu_ld=unknown
20905     ;;
20906   esac
20907 elif test "$with_gnu_ld" = yes; then
20908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20909 $as_echo_n "checking for GNU ld... " >&6; }
20910 else
20911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20912 $as_echo_n "checking for non-GNU ld... " >&6; }
20913 fi
20914 if test "${acl_cv_path_LD+set}" = set; then :
20915   $as_echo_n "(cached) " >&6
20916 else
20917   if test -z "$LD"; then
20918   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
20919   for ac_dir in $PATH; do
20920     test -z "$ac_dir" && ac_dir=.
20921     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20922       acl_cv_path_LD="$ac_dir/$ac_prog"
20923       # Check to see if the program is GNU ld.  I'd rather use --version,
20924       # but apparently some GNU ld's only accept -v.
20925       # Break only if it was the GNU/non-GNU ld that we prefer.
20926       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
20927         test "$with_gnu_ld" != no && break
20928       else
20929         test "$with_gnu_ld" != yes && break
20930       fi
20931     fi
20932   done
20933   IFS="$ac_save_ifs"
20934 else
20935   acl_cv_path_LD="$LD" # Let the user override the test with a path.
20936 fi
20937 fi
20938
20939 LD="$acl_cv_path_LD"
20940 if test -n "$LD"; then
20941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20942 $as_echo "$LD" >&6; }
20943 else
20944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20945 $as_echo "no" >&6; }
20946 fi
20947 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
20948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20949 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20950 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
20951   $as_echo_n "(cached) " >&6
20952 else
20953   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
20954 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
20955   acl_cv_prog_gnu_ld=yes
20956 else
20957   acl_cv_prog_gnu_ld=no
20958 fi
20959 fi
20960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
20961 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
20962 with_gnu_ld=$acl_cv_prog_gnu_ld
20963
20964
20965
20966                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
20967 $as_echo_n "checking for shared library run path origin... " >&6; }
20968 if test "${acl_cv_rpath+set}" = set; then :
20969   $as_echo_n "(cached) " >&6
20970 else
20971
20972     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
20973     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
20974     . ./conftest.sh
20975     rm -f ./conftest.sh
20976     acl_cv_rpath=done
20977
20978 fi
20979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
20980 $as_echo "$acl_cv_rpath" >&6; }
20981   wl="$acl_cv_wl"
20982   libext="$acl_cv_libext"
20983   shlibext="$acl_cv_shlibext"
20984   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
20985   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
20986   hardcode_direct="$acl_cv_hardcode_direct"
20987   hardcode_minus_L="$acl_cv_hardcode_minus_L"
20988     # Check whether --enable-rpath was given.
20989 if test "${enable_rpath+set}" = set; then :
20990   enableval=$enable_rpath; :
20991 else
20992   enable_rpath=yes
20993 fi
20994
20995
20996
20997
20998
20999
21000
21001
21002     use_additional=yes
21003
21004   acl_save_prefix="$prefix"
21005   prefix="$acl_final_prefix"
21006   acl_save_exec_prefix="$exec_prefix"
21007   exec_prefix="$acl_final_exec_prefix"
21008
21009     eval additional_includedir=\"$includedir\"
21010     eval additional_libdir=\"$libdir\"
21011
21012   exec_prefix="$acl_save_exec_prefix"
21013   prefix="$acl_save_prefix"
21014
21015
21016 # Check whether --with-libiconv-prefix was given.
21017 if test "${with_libiconv_prefix+set}" = set; then :
21018   withval=$with_libiconv_prefix;
21019     if test "X$withval" = "Xno"; then
21020       use_additional=no
21021     else
21022       if test "X$withval" = "X"; then
21023
21024   acl_save_prefix="$prefix"
21025   prefix="$acl_final_prefix"
21026   acl_save_exec_prefix="$exec_prefix"
21027   exec_prefix="$acl_final_exec_prefix"
21028
21029           eval additional_includedir=\"$includedir\"
21030           eval additional_libdir=\"$libdir\"
21031
21032   exec_prefix="$acl_save_exec_prefix"
21033   prefix="$acl_save_prefix"
21034
21035       else
21036         additional_includedir="$withval/include"
21037         additional_libdir="$withval/lib"
21038       fi
21039     fi
21040
21041 fi
21042
21043       LIBICONV=
21044   LTLIBICONV=
21045   INCICONV=
21046   rpathdirs=
21047   ltrpathdirs=
21048   names_already_handled=
21049   names_next_round='iconv '
21050   while test -n "$names_next_round"; do
21051     names_this_round="$names_next_round"
21052     names_next_round=
21053     for name in $names_this_round; do
21054       already_handled=
21055       for n in $names_already_handled; do
21056         if test "$n" = "$name"; then
21057           already_handled=yes
21058           break
21059         fi
21060       done
21061       if test -z "$already_handled"; then
21062         names_already_handled="$names_already_handled $name"
21063                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21064         eval value=\"\$HAVE_LIB$uppername\"
21065         if test -n "$value"; then
21066           if test "$value" = yes; then
21067             eval value=\"\$LIB$uppername\"
21068             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21069             eval value=\"\$LTLIB$uppername\"
21070             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21071           else
21072                                     :
21073           fi
21074         else
21075                               found_dir=
21076           found_la=
21077           found_so=
21078           found_a=
21079           if test $use_additional = yes; then
21080             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21081               found_dir="$additional_libdir"
21082               found_so="$additional_libdir/lib$name.$shlibext"
21083               if test -f "$additional_libdir/lib$name.la"; then
21084                 found_la="$additional_libdir/lib$name.la"
21085               fi
21086             else
21087               if test -f "$additional_libdir/lib$name.$libext"; then
21088                 found_dir="$additional_libdir"
21089                 found_a="$additional_libdir/lib$name.$libext"
21090                 if test -f "$additional_libdir/lib$name.la"; then
21091                   found_la="$additional_libdir/lib$name.la"
21092                 fi
21093               fi
21094             fi
21095           fi
21096           if test "X$found_dir" = "X"; then
21097             for x in $LDFLAGS $LTLIBICONV; do
21098
21099   acl_save_prefix="$prefix"
21100   prefix="$acl_final_prefix"
21101   acl_save_exec_prefix="$exec_prefix"
21102   exec_prefix="$acl_final_exec_prefix"
21103   eval x=\"$x\"
21104   exec_prefix="$acl_save_exec_prefix"
21105   prefix="$acl_save_prefix"
21106
21107               case "$x" in
21108                 -L*)
21109                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21110                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21111                     found_dir="$dir"
21112                     found_so="$dir/lib$name.$shlibext"
21113                     if test -f "$dir/lib$name.la"; then
21114                       found_la="$dir/lib$name.la"
21115                     fi
21116                   else
21117                     if test -f "$dir/lib$name.$libext"; then
21118                       found_dir="$dir"
21119                       found_a="$dir/lib$name.$libext"
21120                       if test -f "$dir/lib$name.la"; then
21121                         found_la="$dir/lib$name.la"
21122                       fi
21123                     fi
21124                   fi
21125                   ;;
21126               esac
21127               if test "X$found_dir" != "X"; then
21128                 break
21129               fi
21130             done
21131           fi
21132           if test "X$found_dir" != "X"; then
21133                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21134             if test "X$found_so" != "X"; then
21135                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21136                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21137               else
21138                                                                                 haveit=
21139                 for x in $ltrpathdirs; do
21140                   if test "X$x" = "X$found_dir"; then
21141                     haveit=yes
21142                     break
21143                   fi
21144                 done
21145                 if test -z "$haveit"; then
21146                   ltrpathdirs="$ltrpathdirs $found_dir"
21147                 fi
21148                                 if test "$hardcode_direct" = yes; then
21149                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21150                 else
21151                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21152                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21153                                                             haveit=
21154                     for x in $rpathdirs; do
21155                       if test "X$x" = "X$found_dir"; then
21156                         haveit=yes
21157                         break
21158                       fi
21159                     done
21160                     if test -z "$haveit"; then
21161                       rpathdirs="$rpathdirs $found_dir"
21162                     fi
21163                   else
21164                                                                                 haveit=
21165                     for x in $LDFLAGS $LIBICONV; do
21166
21167   acl_save_prefix="$prefix"
21168   prefix="$acl_final_prefix"
21169   acl_save_exec_prefix="$exec_prefix"
21170   exec_prefix="$acl_final_exec_prefix"
21171   eval x=\"$x\"
21172   exec_prefix="$acl_save_exec_prefix"
21173   prefix="$acl_save_prefix"
21174
21175                       if test "X$x" = "X-L$found_dir"; then
21176                         haveit=yes
21177                         break
21178                       fi
21179                     done
21180                     if test -z "$haveit"; then
21181                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21182                     fi
21183                     if test "$hardcode_minus_L" != no; then
21184                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21185                     else
21186                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21187                     fi
21188                   fi
21189                 fi
21190               fi
21191             else
21192               if test "X$found_a" != "X"; then
21193                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21194               else
21195                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21196               fi
21197             fi
21198                         additional_includedir=
21199             case "$found_dir" in
21200               */lib | */lib/)
21201                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21202                 additional_includedir="$basedir/include"
21203                 ;;
21204             esac
21205             if test "X$additional_includedir" != "X"; then
21206                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21207                 haveit=
21208                 if test "X$additional_includedir" = "X/usr/local/include"; then
21209                   if test -n "$GCC"; then
21210                     case $host_os in
21211                       linux*) haveit=yes;;
21212                     esac
21213                   fi
21214                 fi
21215                 if test -z "$haveit"; then
21216                   for x in $CPPFLAGS $INCICONV; do
21217
21218   acl_save_prefix="$prefix"
21219   prefix="$acl_final_prefix"
21220   acl_save_exec_prefix="$exec_prefix"
21221   exec_prefix="$acl_final_exec_prefix"
21222   eval x=\"$x\"
21223   exec_prefix="$acl_save_exec_prefix"
21224   prefix="$acl_save_prefix"
21225
21226                     if test "X$x" = "X-I$additional_includedir"; then
21227                       haveit=yes
21228                       break
21229                     fi
21230                   done
21231                   if test -z "$haveit"; then
21232                     if test -d "$additional_includedir"; then
21233                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21234                     fi
21235                   fi
21236                 fi
21237               fi
21238             fi
21239                         if test -n "$found_la"; then
21240                                                         save_libdir="$libdir"
21241               case "$found_la" in
21242                 */* | *\\*) . "$found_la" ;;
21243                 *) . "./$found_la" ;;
21244               esac
21245               libdir="$save_libdir"
21246                             for dep in $dependency_libs; do
21247                 case "$dep" in
21248                   -L*)
21249                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21250                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
21251                       haveit=
21252                       if test "X$additional_libdir" = "X/usr/local/lib"; then
21253                         if test -n "$GCC"; then
21254                           case $host_os in
21255                             linux*) haveit=yes;;
21256                           esac
21257                         fi
21258                       fi
21259                       if test -z "$haveit"; then
21260                         haveit=
21261                         for x in $LDFLAGS $LIBICONV; do
21262
21263   acl_save_prefix="$prefix"
21264   prefix="$acl_final_prefix"
21265   acl_save_exec_prefix="$exec_prefix"
21266   exec_prefix="$acl_final_exec_prefix"
21267   eval x=\"$x\"
21268   exec_prefix="$acl_save_exec_prefix"
21269   prefix="$acl_save_prefix"
21270
21271                           if test "X$x" = "X-L$additional_libdir"; then
21272                             haveit=yes
21273                             break
21274                           fi
21275                         done
21276                         if test -z "$haveit"; then
21277                           if test -d "$additional_libdir"; then
21278                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21279                           fi
21280                         fi
21281                         haveit=
21282                         for x in $LDFLAGS $LTLIBICONV; do
21283
21284   acl_save_prefix="$prefix"
21285   prefix="$acl_final_prefix"
21286   acl_save_exec_prefix="$exec_prefix"
21287   exec_prefix="$acl_final_exec_prefix"
21288   eval x=\"$x\"
21289   exec_prefix="$acl_save_exec_prefix"
21290   prefix="$acl_save_prefix"
21291
21292                           if test "X$x" = "X-L$additional_libdir"; then
21293                             haveit=yes
21294                             break
21295                           fi
21296                         done
21297                         if test -z "$haveit"; then
21298                           if test -d "$additional_libdir"; then
21299                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21300                           fi
21301                         fi
21302                       fi
21303                     fi
21304                     ;;
21305                   -R*)
21306                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21307                     if test "$enable_rpath" != no; then
21308                                                                   haveit=
21309                       for x in $rpathdirs; do
21310                         if test "X$x" = "X$dir"; then
21311                           haveit=yes
21312                           break
21313                         fi
21314                       done
21315                       if test -z "$haveit"; then
21316                         rpathdirs="$rpathdirs $dir"
21317                       fi
21318                                                                   haveit=
21319                       for x in $ltrpathdirs; do
21320                         if test "X$x" = "X$dir"; then
21321                           haveit=yes
21322                           break
21323                         fi
21324                       done
21325                       if test -z "$haveit"; then
21326                         ltrpathdirs="$ltrpathdirs $dir"
21327                       fi
21328                     fi
21329                     ;;
21330                   -l*)
21331                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21332                     ;;
21333                   *.la)
21334                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21335                     ;;
21336                   *)
21337                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21338                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21339                     ;;
21340                 esac
21341               done
21342             fi
21343           else
21344                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21345             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21346           fi
21347         fi
21348       fi
21349     done
21350   done
21351   if test "X$rpathdirs" != "X"; then
21352     if test -n "$hardcode_libdir_separator"; then
21353                         alldirs=
21354       for found_dir in $rpathdirs; do
21355         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21356       done
21357             acl_save_libdir="$libdir"
21358       libdir="$alldirs"
21359       eval flag=\"$hardcode_libdir_flag_spec\"
21360       libdir="$acl_save_libdir"
21361       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21362     else
21363             for found_dir in $rpathdirs; do
21364         acl_save_libdir="$libdir"
21365         libdir="$found_dir"
21366         eval flag=\"$hardcode_libdir_flag_spec\"
21367         libdir="$acl_save_libdir"
21368         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21369       done
21370     fi
21371   fi
21372   if test "X$ltrpathdirs" != "X"; then
21373             for found_dir in $ltrpathdirs; do
21374       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21375     done
21376   fi
21377
21378
21379
21380
21381
21382
21383
21384           am_save_CPPFLAGS="$CPPFLAGS"
21385
21386   for element in $INCICONV; do
21387     haveit=
21388     for x in $CPPFLAGS; do
21389
21390   acl_save_prefix="$prefix"
21391   prefix="$acl_final_prefix"
21392   acl_save_exec_prefix="$exec_prefix"
21393   exec_prefix="$acl_final_exec_prefix"
21394   eval x=\"$x\"
21395   exec_prefix="$acl_save_exec_prefix"
21396   prefix="$acl_save_prefix"
21397
21398       if test "X$x" = "X$element"; then
21399         haveit=yes
21400         break
21401       fi
21402     done
21403     if test -z "$haveit"; then
21404       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21405     fi
21406   done
21407
21408
21409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21410 $as_echo_n "checking for iconv... " >&6; }
21411 if test "${am_cv_func_iconv+set}" = set; then :
21412   $as_echo_n "(cached) " >&6
21413 else
21414
21415     am_cv_func_iconv="no, consider installing GNU libiconv"
21416     am_cv_lib_iconv=no
21417     if test x$gcc_no_link = xyes; then
21418   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21419 fi
21420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21421 /* end confdefs.h.  */
21422 #include <stdlib.h>
21423 #include <iconv.h>
21424 int
21425 main ()
21426 {
21427 iconv_t cd = iconv_open("","");
21428        iconv(cd,NULL,NULL,NULL,NULL);
21429        iconv_close(cd);
21430   ;
21431   return 0;
21432 }
21433 _ACEOF
21434 if ac_fn_c_try_link "$LINENO"; then :
21435   am_cv_func_iconv=yes
21436 fi
21437 rm -f core conftest.err conftest.$ac_objext \
21438     conftest$ac_exeext conftest.$ac_ext
21439     if test "$am_cv_func_iconv" != yes; then
21440       am_save_LIBS="$LIBS"
21441       LIBS="$LIBS $LIBICONV"
21442       if test x$gcc_no_link = xyes; then
21443   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21444 fi
21445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21446 /* end confdefs.h.  */
21447 #include <stdlib.h>
21448 #include <iconv.h>
21449 int
21450 main ()
21451 {
21452 iconv_t cd = iconv_open("","");
21453          iconv(cd,NULL,NULL,NULL,NULL);
21454          iconv_close(cd);
21455   ;
21456   return 0;
21457 }
21458 _ACEOF
21459 if ac_fn_c_try_link "$LINENO"; then :
21460   am_cv_lib_iconv=yes
21461         am_cv_func_iconv=yes
21462 fi
21463 rm -f core conftest.err conftest.$ac_objext \
21464     conftest$ac_exeext conftest.$ac_ext
21465       LIBS="$am_save_LIBS"
21466     fi
21467
21468 fi
21469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
21470 $as_echo "$am_cv_func_iconv" >&6; }
21471   if test "$am_cv_func_iconv" = yes; then
21472
21473 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
21474
21475   fi
21476   if test "$am_cv_lib_iconv" = yes; then
21477     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
21478 $as_echo_n "checking how to link with libiconv... " >&6; }
21479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
21480 $as_echo "$LIBICONV" >&6; }
21481   else
21482             CPPFLAGS="$am_save_CPPFLAGS"
21483     LIBICONV=
21484     LTLIBICONV=
21485   fi
21486
21487
21488
21489   if test "$am_cv_func_iconv" = yes; then
21490     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
21491 $as_echo_n "checking for iconv declaration... " >&6; }
21492     if test "${am_cv_proto_iconv+set}" = set; then :
21493   $as_echo_n "(cached) " >&6
21494 else
21495
21496       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21497 /* end confdefs.h.  */
21498
21499 #include <stdlib.h>
21500 #include <iconv.h>
21501 extern
21502 #ifdef __cplusplus
21503 "C"
21504 #endif
21505 #if defined(__STDC__) || defined(__cplusplus)
21506 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21507 #else
21508 size_t iconv();
21509 #endif
21510
21511 int
21512 main ()
21513 {
21514
21515   ;
21516   return 0;
21517 }
21518 _ACEOF
21519 if ac_fn_c_try_compile "$LINENO"; then :
21520   am_cv_proto_iconv_arg1=""
21521 else
21522   am_cv_proto_iconv_arg1="const"
21523 fi
21524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21525       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);"
21526 fi
21527
21528     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21529     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
21530          }$am_cv_proto_iconv" >&5
21531 $as_echo "${ac_t:-
21532          }$am_cv_proto_iconv" >&6; }
21533
21534 cat >>confdefs.h <<_ACEOF
21535 #define ICONV_CONST $am_cv_proto_iconv_arg1
21536 _ACEOF
21537
21538   fi
21539
21540
21541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
21542 $as_echo_n "checking for LC_MESSAGES... " >&6; }
21543 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
21544   $as_echo_n "(cached) " >&6
21545 else
21546   if test x$gcc_no_link = xyes; then
21547   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21548 fi
21549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21550 /* end confdefs.h.  */
21551 #include <locale.h>
21552 int
21553 main ()
21554 {
21555 return LC_MESSAGES
21556   ;
21557   return 0;
21558 }
21559 _ACEOF
21560 if ac_fn_c_try_link "$LINENO"; then :
21561   am_cv_val_LC_MESSAGES=yes
21562 else
21563   am_cv_val_LC_MESSAGES=no
21564 fi
21565 rm -f core conftest.err conftest.$ac_objext \
21566     conftest$ac_exeext conftest.$ac_ext
21567 fi
21568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
21569 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
21570   if test $am_cv_val_LC_MESSAGES = yes; then
21571
21572 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
21573
21574   fi
21575
21576    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21577 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21578 if test "${ac_cv_struct_tm+set}" = set; then :
21579   $as_echo_n "(cached) " >&6
21580 else
21581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21582 /* end confdefs.h.  */
21583 #include <sys/types.h>
21584 #include <time.h>
21585
21586 int
21587 main ()
21588 {
21589 struct tm tm;
21590                                      int *p = &tm.tm_sec;
21591                                      return !p;
21592   ;
21593   return 0;
21594 }
21595 _ACEOF
21596 if ac_fn_c_try_compile "$LINENO"; then :
21597   ac_cv_struct_tm=time.h
21598 else
21599   ac_cv_struct_tm=sys/time.h
21600 fi
21601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21602 fi
21603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21604 $as_echo "$ac_cv_struct_tm" >&6; }
21605 if test $ac_cv_struct_tm = sys/time.h; then
21606
21607 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21608
21609 fi
21610
21611 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21612 #include <$ac_cv_struct_tm>
21613
21614 "
21615 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21616
21617 cat >>confdefs.h <<_ACEOF
21618 #define HAVE_STRUCT_TM_TM_ZONE 1
21619 _ACEOF
21620
21621
21622 fi
21623
21624 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21625
21626 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21627
21628 else
21629   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21630 "
21631 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21632   ac_have_decl=1
21633 else
21634   ac_have_decl=0
21635 fi
21636
21637 cat >>confdefs.h <<_ACEOF
21638 #define HAVE_DECL_TZNAME $ac_have_decl
21639 _ACEOF
21640
21641   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21642 $as_echo_n "checking for tzname... " >&6; }
21643 if test "${ac_cv_var_tzname+set}" = set; then :
21644   $as_echo_n "(cached) " >&6
21645 else
21646   if test x$gcc_no_link = xyes; then
21647   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21648 fi
21649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21650 /* end confdefs.h.  */
21651 #include <time.h>
21652 #if !HAVE_DECL_TZNAME
21653 extern char *tzname[];
21654 #endif
21655
21656 int
21657 main ()
21658 {
21659 return tzname[0][0];
21660   ;
21661   return 0;
21662 }
21663 _ACEOF
21664 if ac_fn_c_try_link "$LINENO"; then :
21665   ac_cv_var_tzname=yes
21666 else
21667   ac_cv_var_tzname=no
21668 fi
21669 rm -f core conftest.err conftest.$ac_objext \
21670     conftest$ac_exeext conftest.$ac_ext
21671 fi
21672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21673 $as_echo "$ac_cv_var_tzname" >&6; }
21674   if test $ac_cv_var_tzname = yes; then
21675
21676 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21677
21678   fi
21679 fi
21680
21681
21682    for ac_func in gethostbyname_r
21683 do :
21684   ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
21685 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
21686   cat >>confdefs.h <<_ACEOF
21687 #define HAVE_GETHOSTBYNAME_R 1
21688 _ACEOF
21689
21690
21691 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
21692
21693      # There are two different kinds of gethostbyname_r.
21694      # We look for the one that returns `int'.
21695      # Hopefully this check is robust enough.
21696      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21697 /* end confdefs.h.  */
21698 #include <netdb.h>
21699
21700 _ACEOF
21701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21702   $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then :
21703
21704
21705 $as_echo "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h
21706
21707 fi
21708 rm -f conftest*
21709
21710
21711      case " $GCINCS " in
21712      *" -D_REENTRANT "*) ;;
21713      *)
21714                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
21715 $as_echo_n "checking whether gethostbyname_r declaration requires -D_REENTRANT... " >&6; }
21716 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then :
21717   $as_echo_n "(cached) " >&6
21718 else
21719    ac_ext=cpp
21720 ac_cpp='$CXXCPP $CPPFLAGS'
21721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21724
21725           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21726 /* end confdefs.h.  */
21727 #include <netdb.h>
21728 int
21729 main ()
21730 {
21731 gethostbyname_r("", 0, 0);
21732   ;
21733   return 0;
21734 }
21735 _ACEOF
21736 if ac_fn_cxx_try_compile "$LINENO"; then :
21737   libjava_cv_gethostbyname_r_needs_reentrant=no
21738 else
21739                 CPPFLAGS_SAVE="$CPPFLAGS"
21740                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
21741                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21742 /* end confdefs.h.  */
21743 #include <netdb.h>
21744 int
21745 main ()
21746 {
21747 gethostbyname_r("", 0, 0);
21748   ;
21749   return 0;
21750 }
21751 _ACEOF
21752 if ac_fn_cxx_try_compile "$LINENO"; then :
21753   libjava_cv_gethostbyname_r_needs_reentrant=yes
21754 else
21755   libjava_cv_gethostbyname_r_needs_reentrant=fail
21756 fi
21757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21758                 CPPFLAGS="$CPPFLAGS_SAVE"
21759
21760 fi
21761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21762           ac_ext=c
21763 ac_cpp='$CPP $CPPFLAGS'
21764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21767
21768
21769 fi
21770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
21771 $as_echo "$libjava_cv_gethostbyname_r_needs_reentrant" >&6; }
21772         if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
21773
21774 $as_echo "#define _REENTRANT 1" >>confdefs.h
21775
21776         fi
21777      ;;
21778      esac
21779
21780      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct hostent_data" >&5
21781 $as_echo_n "checking for struct hostent_data... " >&6; }
21782 if test "${libjava_cv_struct_hostent_data+set}" = set; then :
21783   $as_echo_n "(cached) " >&6
21784 else
21785         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21786 /* end confdefs.h.  */
21787
21788 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
21789 # define _REENTRANT 1
21790 #endif
21791 #include <netdb.h>
21792 int
21793 main ()
21794 {
21795 struct hostent_data data;
21796   ;
21797   return 0;
21798 }
21799 _ACEOF
21800 if ac_fn_c_try_compile "$LINENO"; then :
21801   libjava_cv_struct_hostent_data=yes
21802 else
21803   libjava_cv_struct_hostent_data=no
21804 fi
21805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21806 fi
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_struct_hostent_data" >&5
21808 $as_echo "$libjava_cv_struct_hostent_data" >&6; }
21809      if test "x$libjava_cv_struct_hostent_data" = xyes; then
21810
21811 $as_echo "#define HAVE_STRUCT_HOSTENT_DATA 1" >>confdefs.h
21812
21813      fi
21814
21815 fi
21816 done
21817
21818
21819    # FIXME: libjava source code expects to find a prototype for
21820    # gethostbyaddr_r in netdb.h.  The outer check ensures that
21821    # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
21822    # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C
21823    # linkage check is enough, yet C++ code requires proper prototypes.)
21824    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21825 /* end confdefs.h.  */
21826 #include <netdb.h>
21827
21828 _ACEOF
21829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21830   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
21831
21832    for ac_func in gethostbyaddr_r
21833 do :
21834   ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
21835 if test "x$ac_cv_func_gethostbyaddr_r" = x""yes; then :
21836   cat >>confdefs.h <<_ACEOF
21837 #define HAVE_GETHOSTBYADDR_R 1
21838 _ACEOF
21839
21840
21841 $as_echo "#define HAVE_GETHOSTBYADDR_R 1" >>confdefs.h
21842
21843      # There are two different kinds of gethostbyaddr_r.
21844      # We look for the one that returns `int'.
21845      # Hopefully this check is robust enough.
21846      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21847 /* end confdefs.h.  */
21848 #include <netdb.h>
21849
21850 _ACEOF
21851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21852   $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then :
21853
21854
21855 $as_echo "#define GETHOSTBYADDR_R_RETURNS_INT 1" >>confdefs.h
21856
21857 fi
21858 rm -f conftest*
21859
21860 fi
21861 done
21862
21863 fi
21864 rm -f conftest*
21865
21866
21867    for ac_func in gethostname
21868 do :
21869   ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
21870 if test "x$ac_cv_func_gethostname" = x""yes; then :
21871   cat >>confdefs.h <<_ACEOF
21872 #define HAVE_GETHOSTNAME 1
21873 _ACEOF
21874
21875
21876 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
21877
21878      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21879 /* end confdefs.h.  */
21880 #include <unistd.h>
21881
21882 _ACEOF
21883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21884   $EGREP "gethostname" >/dev/null 2>&1; then :
21885
21886
21887 $as_echo "#define HAVE_GETHOSTNAME_DECL 1" >>confdefs.h
21888
21889 fi
21890 rm -f conftest*
21891
21892 fi
21893 done
21894
21895
21896    for ac_func in usleep
21897 do :
21898   ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
21899 if test "x$ac_cv_func_usleep" = x""yes; then :
21900   cat >>confdefs.h <<_ACEOF
21901 #define HAVE_USLEEP 1
21902 _ACEOF
21903
21904      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21905 /* end confdefs.h.  */
21906 #include <unistd.h>
21907
21908 _ACEOF
21909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21910   $EGREP "usleep" >/dev/null 2>&1; then :
21911
21912
21913 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
21914
21915 fi
21916 rm -f conftest*
21917
21918 fi
21919 done
21920
21921
21922    # Look for these functions in the thread library, but only bother
21923    # if using POSIX threads.
21924    if test "$THREADS" = posix; then
21925       save_LIBS="$LIBS"
21926       LIBS="$LIBS $THREADLIBS"
21927
21928       # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
21929       # Solaris 7 the name librt is preferred.
21930       for ac_func in sched_yield
21931 do :
21932   ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
21933 if test "x$ac_cv_func_sched_yield" = x""yes; then :
21934   cat >>confdefs.h <<_ACEOF
21935 #define HAVE_SCHED_YIELD 1
21936 _ACEOF
21937
21938 else
21939
21940         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
21941 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
21942 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
21943   $as_echo_n "(cached) " >&6
21944 else
21945   ac_check_lib_save_LIBS=$LIBS
21946 LIBS="-lrt  $LIBS"
21947 if test x$gcc_no_link = xyes; then
21948   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21949 fi
21950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21951 /* end confdefs.h.  */
21952
21953 /* Override any GCC internal prototype to avoid an error.
21954    Use char because int might match the return type of a GCC
21955    builtin and then its argument prototype would still apply.  */
21956 #ifdef __cplusplus
21957 extern "C"
21958 #endif
21959 char sched_yield ();
21960 int
21961 main ()
21962 {
21963 return sched_yield ();
21964   ;
21965   return 0;
21966 }
21967 _ACEOF
21968 if ac_fn_c_try_link "$LINENO"; then :
21969   ac_cv_lib_rt_sched_yield=yes
21970 else
21971   ac_cv_lib_rt_sched_yield=no
21972 fi
21973 rm -f core conftest.err conftest.$ac_objext \
21974     conftest$ac_exeext conftest.$ac_ext
21975 LIBS=$ac_check_lib_save_LIBS
21976 fi
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
21978 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
21979 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
21980
21981           $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
21982
21983           THREADLIBS="$THREADLIBS -lrt"
21984           THREADSPEC="$THREADSPEC -lrt"
21985 else
21986
21987           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
21988 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
21989 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then :
21990   $as_echo_n "(cached) " >&6
21991 else
21992   ac_check_lib_save_LIBS=$LIBS
21993 LIBS="-lposix4  $LIBS"
21994 if test x$gcc_no_link = xyes; then
21995   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21996 fi
21997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21998 /* end confdefs.h.  */
21999
22000 /* Override any GCC internal prototype to avoid an error.
22001    Use char because int might match the return type of a GCC
22002    builtin and then its argument prototype would still apply.  */
22003 #ifdef __cplusplus
22004 extern "C"
22005 #endif
22006 char sched_yield ();
22007 int
22008 main ()
22009 {
22010 return sched_yield ();
22011   ;
22012   return 0;
22013 }
22014 _ACEOF
22015 if ac_fn_c_try_link "$LINENO"; then :
22016   ac_cv_lib_posix4_sched_yield=yes
22017 else
22018   ac_cv_lib_posix4_sched_yield=no
22019 fi
22020 rm -f core conftest.err conftest.$ac_objext \
22021     conftest$ac_exeext conftest.$ac_ext
22022 LIBS=$ac_check_lib_save_LIBS
22023 fi
22024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
22025 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
22026 if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then :
22027
22028             $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22029
22030             THREADLIBS="$THREADLIBS -lposix4"
22031             THREADSPEC="$THREADSPEC -lposix4"
22032 fi
22033
22034 fi
22035
22036 fi
22037 done
22038
22039
22040       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22041 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22042 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
22043   $as_echo_n "(cached) " >&6
22044 else
22045   ac_check_lib_save_LIBS=$LIBS
22046 LIBS="-lrt  $LIBS"
22047 if test x$gcc_no_link = xyes; then
22048   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22049 fi
22050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22051 /* end confdefs.h.  */
22052
22053 /* Override any GCC internal prototype to avoid an error.
22054    Use char because int might match the return type of a GCC
22055    builtin and then its argument prototype would still apply.  */
22056 #ifdef __cplusplus
22057 extern "C"
22058 #endif
22059 char clock_gettime ();
22060 int
22061 main ()
22062 {
22063 return clock_gettime ();
22064   ;
22065   return 0;
22066 }
22067 _ACEOF
22068 if ac_fn_c_try_link "$LINENO"; then :
22069   ac_cv_lib_rt_clock_gettime=yes
22070 else
22071   ac_cv_lib_rt_clock_gettime=no
22072 fi
22073 rm -f core conftest.err conftest.$ac_objext \
22074     conftest$ac_exeext conftest.$ac_ext
22075 LIBS=$ac_check_lib_save_LIBS
22076 fi
22077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22078 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22079 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
22080
22081
22082 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22083
22084          case "$THREADSPEC" in
22085            *-lrt*) ;;
22086            *)
22087              THREADSPEC="$THREADSPEC -lrt"
22088              THREADLIBS="$THREADLIBS -lrt"
22089              ;;
22090          esac
22091 fi
22092
22093
22094       LIBS="$save_LIBS"
22095
22096       # We can save a little space at runtime if the mutex has m_count
22097       # or __m_count.  This is a nice hack for Linux.
22098       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22099 /* end confdefs.h.  */
22100 #include <pthread.h>
22101 int
22102 main ()
22103 {
22104
22105           extern pthread_mutex_t *mutex; int q = mutex->m_count;
22106
22107   ;
22108   return 0;
22109 }
22110 _ACEOF
22111 if ac_fn_c_try_compile "$LINENO"; then :
22112
22113 $as_echo "#define PTHREAD_MUTEX_HAVE_M_COUNT 1" >>confdefs.h
22114
22115 else
22116
22117         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22118 /* end confdefs.h.  */
22119 #include <pthread.h>
22120 int
22121 main ()
22122 {
22123
22124             extern pthread_mutex_t *mutex; int q = mutex->__m_count;
22125
22126   ;
22127   return 0;
22128 }
22129 _ACEOF
22130 if ac_fn_c_try_compile "$LINENO"; then :
22131
22132 $as_echo "#define PTHREAD_MUTEX_HAVE___M_COUNT 1" >>confdefs.h
22133
22134 fi
22135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22136 fi
22137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22138    fi
22139
22140    # We require a way to get the time.
22141    time_found=no
22142    for ac_func in gettimeofday time ftime
22143 do :
22144   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22145 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22146 eval as_val=\$$as_ac_var
22147    if test "x$as_val" = x""yes; then :
22148   cat >>confdefs.h <<_ACEOF
22149 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22150 _ACEOF
22151  time_found=yes
22152 fi
22153 done
22154
22155    if test "$time_found" = no; then
22156       as_fn_error "no function found to get the time" "$LINENO" 5
22157    fi
22158
22159    for ac_func in memmove
22160 do :
22161   ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22162 if test "x$ac_cv_func_memmove" = x""yes; then :
22163   cat >>confdefs.h <<_ACEOF
22164 #define HAVE_MEMMOVE 1
22165 _ACEOF
22166
22167 fi
22168 done
22169
22170
22171    # We require memcpy.
22172    memcpy_found=no
22173    for ac_func in memcpy
22174 do :
22175   ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
22176 if test "x$ac_cv_func_memcpy" = x""yes; then :
22177   cat >>confdefs.h <<_ACEOF
22178 #define HAVE_MEMCPY 1
22179 _ACEOF
22180  memcpy_found=yes
22181 fi
22182 done
22183
22184    if test "$memcpy_found" = no; then
22185       as_fn_error "memcpy is required" "$LINENO" 5
22186    fi
22187    # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
22188    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22189 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22190 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
22191   $as_echo_n "(cached) " >&6
22192 else
22193   ac_check_lib_save_LIBS=$LIBS
22194 LIBS="-ldl  $LIBS"
22195 if test x$gcc_no_link = xyes; then
22196   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22197 fi
22198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22199 /* end confdefs.h.  */
22200
22201 /* Override any GCC internal prototype to avoid an error.
22202    Use char because int might match the return type of a GCC
22203    builtin and then its argument prototype would still apply.  */
22204 #ifdef __cplusplus
22205 extern "C"
22206 #endif
22207 char dlopen ();
22208 int
22209 main ()
22210 {
22211 return dlopen ();
22212   ;
22213   return 0;
22214 }
22215 _ACEOF
22216 if ac_fn_c_try_link "$LINENO"; then :
22217   ac_cv_lib_dl_dlopen=yes
22218 else
22219   ac_cv_lib_dl_dlopen=no
22220 fi
22221 rm -f core conftest.err conftest.$ac_objext \
22222     conftest$ac_exeext conftest.$ac_ext
22223 LIBS=$ac_check_lib_save_LIBS
22224 fi
22225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22226 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22227 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
22228
22229
22230 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22231
22232 else
22233
22234        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldld" >&5
22235 $as_echo_n "checking for dlopen in -ldld... " >&6; }
22236 if test "${ac_cv_lib_dld_dlopen+set}" = set; then :
22237   $as_echo_n "(cached) " >&6
22238 else
22239   ac_check_lib_save_LIBS=$LIBS
22240 LIBS="-ldld  $LIBS"
22241 if test x$gcc_no_link = xyes; then
22242   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22243 fi
22244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22245 /* end confdefs.h.  */
22246
22247 /* Override any GCC internal prototype to avoid an error.
22248    Use char because int might match the return type of a GCC
22249    builtin and then its argument prototype would still apply.  */
22250 #ifdef __cplusplus
22251 extern "C"
22252 #endif
22253 char dlopen ();
22254 int
22255 main ()
22256 {
22257 return dlopen ();
22258   ;
22259   return 0;
22260 }
22261 _ACEOF
22262 if ac_fn_c_try_link "$LINENO"; then :
22263   ac_cv_lib_dld_dlopen=yes
22264 else
22265   ac_cv_lib_dld_dlopen=no
22266 fi
22267 rm -f core conftest.err conftest.$ac_objext \
22268     conftest$ac_exeext conftest.$ac_ext
22269 LIBS=$ac_check_lib_save_LIBS
22270 fi
22271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dlopen" >&5
22272 $as_echo "$ac_cv_lib_dld_dlopen" >&6; }
22273 if test "x$ac_cv_lib_dld_dlopen" = x""yes; then :
22274
22275
22276 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22277
22278 fi
22279
22280 fi
22281
22282
22283    # Some library-finding code we stole from Tcl.
22284    #--------------------------------------------------------------------
22285    #    Check for the existence of the -lsocket and -lnsl libraries.
22286    #    The order here is important, so that they end up in the right
22287    #    order in the command line generated by make.  Here are some
22288    #    special considerations:
22289    #    1. Use "connect" and "accept" to check for -lsocket, and
22290    #       "gethostbyname" to check for -lnsl.
22291    #    2. Use each function name only once:  can't redo a check because
22292    #       autoconf caches the results of the last check and won't redo it.
22293    #    3. Use -lnsl and -lsocket only if they supply procedures that
22294    #       aren't already present in the normal libraries.  This is because
22295    #       IRIX 5.2 has libraries, but they aren't needed and they're
22296    #       bogus:  they goof up name resolution if used.
22297    #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
22298    #       To get around this problem, check for both libraries together
22299    #       if -lsocket doesn't work by itself.
22300    #--------------------------------------------------------------------
22301
22302    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
22303 $as_echo_n "checking for socket libraries... " >&6; }
22304 if test "${gcj_cv_lib_sockets+set}" = set; then :
22305   $as_echo_n "(cached) " >&6
22306 else
22307   gcj_cv_lib_sockets=
22308      gcj_checkBoth=0
22309      unset ac_cv_func_connect
22310      ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
22311 if test "x$ac_cv_func_connect" = x""yes; then :
22312   gcj_checkSocket=0
22313 else
22314   gcj_checkSocket=1
22315 fi
22316
22317      if test "$gcj_checkSocket" = 1; then
22318          unset ac_cv_func_connect
22319          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
22320 $as_echo_n "checking for main in -lsocket... " >&6; }
22321 if test "${ac_cv_lib_socket_main+set}" = set; then :
22322   $as_echo_n "(cached) " >&6
22323 else
22324   ac_check_lib_save_LIBS=$LIBS
22325 LIBS="-lsocket  $LIBS"
22326 if test x$gcc_no_link = xyes; then
22327   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22328 fi
22329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22330 /* end confdefs.h.  */
22331
22332
22333 int
22334 main ()
22335 {
22336 return main ();
22337   ;
22338   return 0;
22339 }
22340 _ACEOF
22341 if ac_fn_c_try_link "$LINENO"; then :
22342   ac_cv_lib_socket_main=yes
22343 else
22344   ac_cv_lib_socket_main=no
22345 fi
22346 rm -f core conftest.err conftest.$ac_objext \
22347     conftest$ac_exeext conftest.$ac_ext
22348 LIBS=$ac_check_lib_save_LIBS
22349 fi
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
22351 $as_echo "$ac_cv_lib_socket_main" >&6; }
22352 if test "x$ac_cv_lib_socket_main" = x""yes; then :
22353   gcj_cv_lib_sockets="-lsocket"
22354 else
22355   gcj_checkBoth=1
22356 fi
22357
22358      fi
22359      if test "$gcj_checkBoth" = 1; then
22360          gcj_oldLibs=$LIBS
22361          LIBS="$LIBS -lsocket -lnsl"
22362          unset ac_cv_func_accept
22363          ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
22364 if test "x$ac_cv_func_accept" = x""yes; then :
22365   gcj_checkNsl=0
22366                         gcj_cv_lib_sockets="-lsocket -lnsl"
22367 fi
22368
22369          unset ac_cv_func_accept
22370          LIBS=$gcj_oldLibs
22371      fi
22372      unset ac_cv_func_gethostbyname
22373      gcj_oldLibs=$LIBS
22374      LIBS="$LIBS $gcj_cv_lib_sockets"
22375      ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22376 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
22377
22378 else
22379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
22380 $as_echo_n "checking for main in -lnsl... " >&6; }
22381 if test "${ac_cv_lib_nsl_main+set}" = set; then :
22382   $as_echo_n "(cached) " >&6
22383 else
22384   ac_check_lib_save_LIBS=$LIBS
22385 LIBS="-lnsl  $LIBS"
22386 if test x$gcc_no_link = xyes; then
22387   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22388 fi
22389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22390 /* end confdefs.h.  */
22391
22392
22393 int
22394 main ()
22395 {
22396 return main ();
22397   ;
22398   return 0;
22399 }
22400 _ACEOF
22401 if ac_fn_c_try_link "$LINENO"; then :
22402   ac_cv_lib_nsl_main=yes
22403 else
22404   ac_cv_lib_nsl_main=no
22405 fi
22406 rm -f core conftest.err conftest.$ac_objext \
22407     conftest$ac_exeext conftest.$ac_ext
22408 LIBS=$ac_check_lib_save_LIBS
22409 fi
22410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
22411 $as_echo "$ac_cv_lib_nsl_main" >&6; }
22412 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
22413   gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
22414 fi
22415
22416 fi
22417
22418      unset ac_cv_func_gethostbyname
22419      LIBS=$gcj_oldLIBS
22420
22421 fi
22422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcj_cv_lib_sockets" >&5
22423 $as_echo "$gcj_cv_lib_sockets" >&6; }
22424    SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
22425
22426    if test "$with_system_zlib" = yes; then
22427       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
22428 $as_echo_n "checking for deflate in -lz... " >&6; }
22429 if test "${ac_cv_lib_z_deflate+set}" = set; then :
22430   $as_echo_n "(cached) " >&6
22431 else
22432   ac_check_lib_save_LIBS=$LIBS
22433 LIBS="-lz  $LIBS"
22434 if test x$gcc_no_link = xyes; then
22435   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22436 fi
22437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22438 /* end confdefs.h.  */
22439
22440 /* Override any GCC internal prototype to avoid an error.
22441    Use char because int might match the return type of a GCC
22442    builtin and then its argument prototype would still apply.  */
22443 #ifdef __cplusplus
22444 extern "C"
22445 #endif
22446 char deflate ();
22447 int
22448 main ()
22449 {
22450 return deflate ();
22451   ;
22452   return 0;
22453 }
22454 _ACEOF
22455 if ac_fn_c_try_link "$LINENO"; then :
22456   ac_cv_lib_z_deflate=yes
22457 else
22458   ac_cv_lib_z_deflate=no
22459 fi
22460 rm -f core conftest.err conftest.$ac_objext \
22461     conftest$ac_exeext conftest.$ac_ext
22462 LIBS=$ac_check_lib_save_LIBS
22463 fi
22464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
22465 $as_echo "$ac_cv_lib_z_deflate" >&6; }
22466 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
22467   ZLIBSPEC=-lz
22468 else
22469   ZLIBSPEC=
22470 fi
22471
22472    fi
22473
22474    # Test for Gtk stuff, if asked for.
22475    if test "$use_gtk_awt" = yes; then
22476
22477   succeeded=no
22478
22479   if test -z "$PKG_CONFIG"; then
22480     # Extract the first word of "pkg-config", so it can be a program name with args.
22481 set dummy pkg-config; ac_word=$2
22482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22483 $as_echo_n "checking for $ac_word... " >&6; }
22484 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22485   $as_echo_n "(cached) " >&6
22486 else
22487   case $PKG_CONFIG in
22488   [\\/]* | ?:[\\/]*)
22489   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22490   ;;
22491   *)
22492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22493 for as_dir in $PATH
22494 do
22495   IFS=$as_save_IFS
22496   test -z "$as_dir" && as_dir=.
22497     for ac_exec_ext in '' $ac_executable_extensions; do
22498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22499     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22501     break 2
22502   fi
22503 done
22504   done
22505 IFS=$as_save_IFS
22506
22507   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22508   ;;
22509 esac
22510 fi
22511 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22512 if test -n "$PKG_CONFIG"; then
22513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22514 $as_echo "$PKG_CONFIG" >&6; }
22515 else
22516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22517 $as_echo "no" >&6; }
22518 fi
22519
22520
22521   fi
22522
22523   if test "$PKG_CONFIG" = "no" ; then
22524      echo "*** The pkg-config script could not be found. Make sure it is"
22525      echo "*** in your path, or set the PKG_CONFIG environment variable"
22526      echo "*** to the full path to pkg-config."
22527      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22528   else
22529      PKG_CONFIG_MIN_VERSION=0.9.0
22530      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22531         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.4" >&5
22532 $as_echo_n "checking for gtk+-2.0 >= 2.4... " >&6; }
22533
22534         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
22535             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22536 $as_echo "yes" >&6; }
22537             succeeded=yes
22538
22539             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
22540 $as_echo_n "checking GTK_CFLAGS... " >&6; }
22541             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
22542             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
22543 $as_echo "$GTK_CFLAGS" >&6; }
22544
22545             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
22546 $as_echo_n "checking GTK_LIBS... " >&6; }
22547             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
22548             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
22549 $as_echo "$GTK_LIBS" >&6; }
22550         else
22551             GTK_CFLAGS=""
22552             GTK_LIBS=""
22553             ## If we have a custom action on failure, don't print errors, but
22554             ## do set a variable so people can do so.
22555             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
22556             echo $GTK_PKG_ERRORS
22557         fi
22558
22559
22560
22561      else
22562         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22563         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22564      fi
22565   fi
22566
22567   if test $succeeded = yes; then
22568      :
22569   else
22570      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
22571   fi
22572
22573
22574
22575
22576
22577   succeeded=no
22578
22579   if test -z "$PKG_CONFIG"; then
22580     # Extract the first word of "pkg-config", so it can be a program name with args.
22581 set dummy pkg-config; ac_word=$2
22582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22583 $as_echo_n "checking for $ac_word... " >&6; }
22584 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22585   $as_echo_n "(cached) " >&6
22586 else
22587   case $PKG_CONFIG in
22588   [\\/]* | ?:[\\/]*)
22589   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22590   ;;
22591   *)
22592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22593 for as_dir in $PATH
22594 do
22595   IFS=$as_save_IFS
22596   test -z "$as_dir" && as_dir=.
22597     for ac_exec_ext in '' $ac_executable_extensions; do
22598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22599     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22601     break 2
22602   fi
22603 done
22604   done
22605 IFS=$as_save_IFS
22606
22607   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22608   ;;
22609 esac
22610 fi
22611 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22612 if test -n "$PKG_CONFIG"; then
22613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22614 $as_echo "$PKG_CONFIG" >&6; }
22615 else
22616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22617 $as_echo "no" >&6; }
22618 fi
22619
22620
22621   fi
22622
22623   if test "$PKG_CONFIG" = "no" ; then
22624      echo "*** The pkg-config script could not be found. Make sure it is"
22625      echo "*** in your path, or set the PKG_CONFIG environment variable"
22626      echo "*** to the full path to pkg-config."
22627      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22628   else
22629      PKG_CONFIG_MIN_VERSION=0.9.0
22630      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22631         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
22632 $as_echo_n "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... " >&6; }
22633
22634         if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
22635             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22636 $as_echo "yes" >&6; }
22637             succeeded=yes
22638
22639             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
22640 $as_echo_n "checking GLIB_CFLAGS... " >&6; }
22641             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22642             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
22643 $as_echo "$GLIB_CFLAGS" >&6; }
22644
22645             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
22646 $as_echo_n "checking GLIB_LIBS... " >&6; }
22647             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22648             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
22649 $as_echo "$GLIB_LIBS" >&6; }
22650         else
22651             GLIB_CFLAGS=""
22652             GLIB_LIBS=""
22653             ## If we have a custom action on failure, don't print errors, but
22654             ## do set a variable so people can do so.
22655             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22656             echo $GLIB_PKG_ERRORS
22657         fi
22658
22659
22660
22661      else
22662         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22663         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22664      fi
22665   fi
22666
22667   if test $succeeded = yes; then
22668      :
22669   else
22670      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
22671   fi
22672
22673
22674
22675
22676
22677   succeeded=no
22678
22679   if test -z "$PKG_CONFIG"; then
22680     # Extract the first word of "pkg-config", so it can be a program name with args.
22681 set dummy pkg-config; ac_word=$2
22682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22683 $as_echo_n "checking for $ac_word... " >&6; }
22684 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22685   $as_echo_n "(cached) " >&6
22686 else
22687   case $PKG_CONFIG in
22688   [\\/]* | ?:[\\/]*)
22689   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22690   ;;
22691   *)
22692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22693 for as_dir in $PATH
22694 do
22695   IFS=$as_save_IFS
22696   test -z "$as_dir" && as_dir=.
22697     for ac_exec_ext in '' $ac_executable_extensions; do
22698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22699     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22701     break 2
22702   fi
22703 done
22704   done
22705 IFS=$as_save_IFS
22706
22707   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22708   ;;
22709 esac
22710 fi
22711 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22712 if test -n "$PKG_CONFIG"; then
22713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22714 $as_echo "$PKG_CONFIG" >&6; }
22715 else
22716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22717 $as_echo "no" >&6; }
22718 fi
22719
22720
22721   fi
22722
22723   if test "$PKG_CONFIG" = "no" ; then
22724      echo "*** The pkg-config script could not be found. Make sure it is"
22725      echo "*** in your path, or set the PKG_CONFIG environment variable"
22726      echo "*** to the full path to pkg-config."
22727      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22728   else
22729      PKG_CONFIG_MIN_VERSION=0.9.0
22730      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22731         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libart-2.0 >= 2.1" >&5
22732 $as_echo_n "checking for libart-2.0 >= 2.1... " >&6; }
22733
22734         if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
22735             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22736 $as_echo "yes" >&6; }
22737             succeeded=yes
22738
22739             { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_CFLAGS" >&5
22740 $as_echo_n "checking LIBART_CFLAGS... " >&6; }
22741             LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
22742             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_CFLAGS" >&5
22743 $as_echo "$LIBART_CFLAGS" >&6; }
22744
22745             { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_LIBS" >&5
22746 $as_echo_n "checking LIBART_LIBS... " >&6; }
22747             LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
22748             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_LIBS" >&5
22749 $as_echo "$LIBART_LIBS" >&6; }
22750         else
22751             LIBART_CFLAGS=""
22752             LIBART_LIBS=""
22753             ## If we have a custom action on failure, don't print errors, but
22754             ## do set a variable so people can do so.
22755             LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
22756             echo $LIBART_PKG_ERRORS
22757         fi
22758
22759
22760
22761      else
22762         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22763         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22764      fi
22765   fi
22766
22767   if test $succeeded = yes; then
22768      :
22769   else
22770      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
22771   fi
22772
22773
22774
22775
22776       # We require the XTest Extension to support java.awt.Robot.
22777       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
22778 $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
22779 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
22780   $as_echo_n "(cached) " >&6
22781 else
22782   ac_check_lib_save_LIBS=$LIBS
22783 LIBS="-lXtst ${X_LIBS} $LIBS"
22784 if test x$gcc_no_link = xyes; then
22785   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22786 fi
22787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22788 /* end confdefs.h.  */
22789
22790 /* Override any GCC internal prototype to avoid an error.
22791    Use char because int might match the return type of a GCC
22792    builtin and then its argument prototype would still apply.  */
22793 #ifdef __cplusplus
22794 extern "C"
22795 #endif
22796 char XTestQueryExtension ();
22797 int
22798 main ()
22799 {
22800 return XTestQueryExtension ();
22801   ;
22802   return 0;
22803 }
22804 _ACEOF
22805 if ac_fn_c_try_link "$LINENO"; then :
22806   ac_cv_lib_Xtst_XTestQueryExtension=yes
22807 else
22808   ac_cv_lib_Xtst_XTestQueryExtension=no
22809 fi
22810 rm -f core conftest.err conftest.$ac_objext \
22811     conftest$ac_exeext conftest.$ac_ext
22812 LIBS=$ac_check_lib_save_LIBS
22813 fi
22814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
22815 $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
22816 if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
22817   true
22818 else
22819   as_fn_error "libXtst not found, required by java.awt.Robot" "$LINENO" 5
22820 fi
22821
22822    fi
22823
22824    # On Solaris, and maybe other architectures, the Boehm collector
22825    # requires -ldl.
22826    if test "$GC" = boehm; then
22827       case "${host}" in
22828           mips-sgi-irix6*)
22829             # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib)
22830             # libgcj.spec is used, so override here
22831             SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}"
22832           ;;
22833           *)
22834             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
22835 $as_echo_n "checking for main in -ldl... " >&6; }
22836 if test "${ac_cv_lib_dl_main+set}" = set; then :
22837   $as_echo_n "(cached) " >&6
22838 else
22839   ac_check_lib_save_LIBS=$LIBS
22840 LIBS="-ldl  $LIBS"
22841 if test x$gcc_no_link = xyes; then
22842   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22843 fi
22844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22845 /* end confdefs.h.  */
22846
22847
22848 int
22849 main ()
22850 {
22851 return main ();
22852   ;
22853   return 0;
22854 }
22855 _ACEOF
22856 if ac_fn_c_try_link "$LINENO"; then :
22857   ac_cv_lib_dl_main=yes
22858 else
22859   ac_cv_lib_dl_main=no
22860 fi
22861 rm -f core conftest.err conftest.$ac_objext \
22862     conftest$ac_exeext conftest.$ac_ext
22863 LIBS=$ac_check_lib_save_LIBS
22864 fi
22865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
22866 $as_echo "$ac_cv_lib_dl_main" >&6; }
22867 if test "x$ac_cv_lib_dl_main" = x""yes; then :
22868   SYSTEMSPEC="$SYSTEMSPEC -ldl"
22869 fi
22870
22871           ;;
22872       esac
22873    fi
22874 fi
22875
22876 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
22877 case $build in
22878     *-mingw32) CLASSPATH_SEPARATOR=';' ;;
22879     *)         CLASSPATH_SEPARATOR=':' ;;
22880 esac
22881
22882
22883 # We must search the source tree for java.lang, since we still don't
22884 # have libgcj.jar nor java/lang/*.class
22885 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
22886 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
22887
22888 # Since some classes depend on this one, we need its source available
22889 # before we can do any GCJ compilation test :-(
22890 if test ! -f gnu/classpath/Configuration.java; then
22891   test -d gnu || mkdir gnu
22892   test -d gnu/classpath || mkdir gnu/classpath
22893   # Note that it is not crucial that all the values here be correct.
22894   sed -e "s,@prefix@,$expanded_prefix," \
22895       -e "s,@VERSION@,$VERSION," \
22896       -e "s,@LIBDEBUG@,false," \
22897       -e "s,@INIT_LOAD_LIBRARY@,false," \
22898       -e "s,@@,$LIBGCJDEBUG," \
22899       -e "s,@default_toolkit@,$TOOLKIT," \
22900       -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
22901       -e "s,@GTK_CAIRO_ENABLED@,false," \
22902       -e "s,@ECJ_JAR@,," \
22903       -e "s,@WANT_NATIVE_BIG_INTEGER@,false," \
22904         < $srcdir/classpath/gnu/classpath/Configuration.java.in \
22905         > gnu/classpath/Configuration.java
22906   # We do not want to redirect the output of the grep below to /dev/null,
22907   # but we add /dev/null to the input list so that grep will print the
22908   # filename of Configuration.java in case it finds any matches.
22909   if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
22910     as_fn_error "configure.ac is missing the substitutions above" "$LINENO" 5
22911   fi
22912 fi
22913
22914
22915 for ac_prog in gcj
22916 do
22917   # Extract the first word of "$ac_prog", so it can be a program name with args.
22918 set dummy $ac_prog; ac_word=$2
22919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22920 $as_echo_n "checking for $ac_word... " >&6; }
22921 if test "${ac_cv_prog_GCJ+set}" = set; then :
22922   $as_echo_n "(cached) " >&6
22923 else
22924   if test -n "$GCJ"; then
22925   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
22926 else
22927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22928 for as_dir in $PATH
22929 do
22930   IFS=$as_save_IFS
22931   test -z "$as_dir" && as_dir=.
22932     for ac_exec_ext in '' $ac_executable_extensions; do
22933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22934     ac_cv_prog_GCJ="$ac_prog"
22935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22936     break 2
22937   fi
22938 done
22939   done
22940 IFS=$as_save_IFS
22941
22942 fi
22943 fi
22944 GCJ=$ac_cv_prog_GCJ
22945 if test -n "$GCJ"; then
22946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
22947 $as_echo "$GCJ" >&6; }
22948 else
22949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22950 $as_echo "no" >&6; }
22951 fi
22952
22953
22954   test -n "$GCJ" && break
22955 done
22956 test -n "$GCJ" || GCJ="gcj"
22957
22958 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
22959 if test "x${GCJFLAGS-unset}" = xunset; then
22960    GCJFLAGS="-g -O2"
22961 fi
22962
22963
22964 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
22965
22966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
22967 $as_echo_n "checking dependency style of $depcc... " >&6; }
22968 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
22969   $as_echo_n "(cached) " >&6
22970 else
22971   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22972   # We make a subdir and do the tests there.  Otherwise we can end up
22973   # making bogus files that we don't know about and never remove.  For
22974   # instance it was reported that on HP-UX the gcc test will end up
22975   # making a dummy file named `D' -- because `-MD' means `put the output
22976   # in D'.
22977   mkdir conftest.dir
22978   # Copy depcomp to subdir because otherwise we won't find it if we're
22979   # using a relative directory.
22980   cp "$am_depcomp" conftest.dir
22981   cd conftest.dir
22982   # We will build objects and dependencies in a subdirectory because
22983   # it helps to detect inapplicable dependency modes.  For instance
22984   # both Tru64's cc and ICC support -MD to output dependencies as a
22985   # side effect of compilation, but ICC will put the dependencies in
22986   # the current directory while Tru64 will put them in the object
22987   # directory.
22988   mkdir sub
22989
22990   am_cv_GCJ_dependencies_compiler_type=none
22991   if test "$am_compiler_list" = ""; then
22992      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22993   fi
22994   am__universal=false
22995
22996
22997   for depmode in $am_compiler_list; do
22998     # Setup a source with many dependencies, because some compilers
22999     # like to wrap large dependency lists on column 80 (with \), and
23000     # we should not choose a depcomp mode which is confused by this.
23001     #
23002     # We need to recreate these files for each test, as the compiler may
23003     # overwrite some of them when testing with obscure command lines.
23004     # This happens at least with the AIX C compiler.
23005     : > sub/conftest.c
23006     for i in 1 2 3 4 5 6; do
23007       echo '#include "conftst'$i'.h"' >> sub/conftest.c
23008       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23009       # Solaris 8's {/usr,}/bin/sh.
23010       touch sub/conftst$i.h
23011     done
23012     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23013
23014     # We check with `-c' and `-o' for the sake of the "dashmstdout"
23015     # mode.  It turns out that the SunPro C++ compiler does not properly
23016     # handle `-M -o', and we need to detect this.  Also, some Intel
23017     # versions had trouble with output in subdirs
23018     am__obj=sub/conftest.${OBJEXT-o}
23019     am__minus_obj="-o $am__obj"
23020     case $depmode in
23021     gcc)
23022       # This depmode causes a compiler race in universal mode.
23023       test "$am__universal" = false || continue
23024       ;;
23025     nosideeffect)
23026       # after this tag, mechanisms are not by side-effect, so they'll
23027       # only be used when explicitly requested
23028       if test "x$enable_dependency_tracking" = xyes; then
23029         continue
23030       else
23031         break
23032       fi
23033       ;;
23034     msvisualcpp | msvcmsys)
23035       # This compiler won't grok `-c -o', but also, the minuso test has
23036       # not run yet.  These depmodes are late enough in the game, and
23037       # so weak that their functioning should not be impacted.
23038       am__obj=conftest.${OBJEXT-o}
23039       am__minus_obj=
23040       ;;
23041     none) break ;;
23042     esac
23043     if depmode=$depmode \
23044        source=sub/conftest.c object=$am__obj \
23045        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23046        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23047          >/dev/null 2>conftest.err &&
23048        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23049        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23050        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23051        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23052       # icc doesn't choke on unknown options, it will just issue warnings
23053       # or remarks (even with -Werror).  So we grep stderr for any message
23054       # that says an option was ignored or not supported.
23055       # When given -MP, icc 7.0 and 7.1 complain thusly:
23056       #   icc: Command line warning: ignoring option '-M'; no argument required
23057       # The diagnosis changed in icc 8.0:
23058       #   icc: Command line remark: option '-MP' not supported
23059       if (grep 'ignoring option' conftest.err ||
23060           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23061         am_cv_GCJ_dependencies_compiler_type=$depmode
23062         break
23063       fi
23064     fi
23065   done
23066
23067   cd ..
23068   rm -rf conftest.dir
23069 else
23070   am_cv_GCJ_dependencies_compiler_type=none
23071 fi
23072
23073 fi
23074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
23075 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
23076 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
23077
23078  if
23079   test "x$enable_dependency_tracking" != xno \
23080   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
23081   am__fastdepGCJ_TRUE=
23082   am__fastdepGCJ_FALSE='#'
23083 else
23084   am__fastdepGCJ_TRUE='#'
23085   am__fastdepGCJ_FALSE=
23086 fi
23087
23088
23089
23090
23091 # Now remove it.
23092 rm -f gnu/classpath/Configuration.java
23093
23094 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
23095
23096 # The cast to long int works around a bug in the HP C Compiler
23097 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23098 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23099 # This bug is HP SR number 8606223364.
23100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
23101 $as_echo_n "checking size of void *... " >&6; }
23102 if test "${ac_cv_sizeof_void_p+set}" = set; then :
23103   $as_echo_n "(cached) " >&6
23104 else
23105   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
23106
23107 else
23108   if test "$ac_cv_type_void_p" = yes; then
23109      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23111 { as_fn_set_status 77
23112 as_fn_error "cannot compute sizeof (void *)
23113 See \`config.log' for more details." "$LINENO" 5; }; }
23114    else
23115      ac_cv_sizeof_void_p=0
23116    fi
23117 fi
23118
23119 fi
23120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
23121 $as_echo "$ac_cv_sizeof_void_p" >&6; }
23122
23123
23124
23125 cat >>confdefs.h <<_ACEOF
23126 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23127 _ACEOF
23128
23129
23130
23131  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23132 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23133 if test "${ac_cv_c_bigendian+set}" = set; then :
23134   $as_echo_n "(cached) " >&6
23135 else
23136   ac_cv_c_bigendian=unknown
23137     # See if we're dealing with a universal compiler.
23138     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23139 /* end confdefs.h.  */
23140 #ifndef __APPLE_CC__
23141                not a universal capable compiler
23142              #endif
23143              typedef int dummy;
23144
23145 _ACEOF
23146 if ac_fn_c_try_compile "$LINENO"; then :
23147
23148         # Check for potential -arch flags.  It is not universal unless
23149         # there are at least two -arch flags with different values.
23150         ac_arch=
23151         ac_prev=
23152         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23153          if test -n "$ac_prev"; then
23154            case $ac_word in
23155              i?86 | x86_64 | ppc | ppc64)
23156                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23157                  ac_arch=$ac_word
23158                else
23159                  ac_cv_c_bigendian=universal
23160                  break
23161                fi
23162                ;;
23163            esac
23164            ac_prev=
23165          elif test "x$ac_word" = "x-arch"; then
23166            ac_prev=arch
23167          fi
23168        done
23169 fi
23170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23171     if test $ac_cv_c_bigendian = unknown; then
23172       # See if sys/param.h defines the BYTE_ORDER macro.
23173       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23174 /* end confdefs.h.  */
23175 #include <sys/types.h>
23176              #include <sys/param.h>
23177
23178 int
23179 main ()
23180 {
23181 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23182                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23183                      && LITTLE_ENDIAN)
23184               bogus endian macros
23185              #endif
23186
23187   ;
23188   return 0;
23189 }
23190 _ACEOF
23191 if ac_fn_c_try_compile "$LINENO"; then :
23192   # It does; now see whether it defined to BIG_ENDIAN or not.
23193          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23194 /* end confdefs.h.  */
23195 #include <sys/types.h>
23196                 #include <sys/param.h>
23197
23198 int
23199 main ()
23200 {
23201 #if BYTE_ORDER != BIG_ENDIAN
23202                  not big endian
23203                 #endif
23204
23205   ;
23206   return 0;
23207 }
23208 _ACEOF
23209 if ac_fn_c_try_compile "$LINENO"; then :
23210   ac_cv_c_bigendian=yes
23211 else
23212   ac_cv_c_bigendian=no
23213 fi
23214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23215 fi
23216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23217     fi
23218     if test $ac_cv_c_bigendian = unknown; then
23219       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23220       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23221 /* end confdefs.h.  */
23222 #include <limits.h>
23223
23224 int
23225 main ()
23226 {
23227 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23228               bogus endian macros
23229              #endif
23230
23231   ;
23232   return 0;
23233 }
23234 _ACEOF
23235 if ac_fn_c_try_compile "$LINENO"; then :
23236   # It does; now see whether it defined to _BIG_ENDIAN or not.
23237          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23238 /* end confdefs.h.  */
23239 #include <limits.h>
23240
23241 int
23242 main ()
23243 {
23244 #ifndef _BIG_ENDIAN
23245                  not big endian
23246                 #endif
23247
23248   ;
23249   return 0;
23250 }
23251 _ACEOF
23252 if ac_fn_c_try_compile "$LINENO"; then :
23253   ac_cv_c_bigendian=yes
23254 else
23255   ac_cv_c_bigendian=no
23256 fi
23257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23258 fi
23259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23260     fi
23261     if test $ac_cv_c_bigendian = unknown; then
23262       # Compile a test program.
23263       if test "$cross_compiling" = yes; then :
23264   # Try to guess by grepping values from an object file.
23265          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23266 /* end confdefs.h.  */
23267 short int ascii_mm[] =
23268                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23269                 short int ascii_ii[] =
23270                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23271                 int use_ascii (int i) {
23272                   return ascii_mm[i] + ascii_ii[i];
23273                 }
23274                 short int ebcdic_ii[] =
23275                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23276                 short int ebcdic_mm[] =
23277                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23278                 int use_ebcdic (int i) {
23279                   return ebcdic_mm[i] + ebcdic_ii[i];
23280                 }
23281                 extern int foo;
23282
23283 int
23284 main ()
23285 {
23286 return use_ascii (foo) == use_ebcdic (foo);
23287   ;
23288   return 0;
23289 }
23290 _ACEOF
23291 if ac_fn_c_try_compile "$LINENO"; then :
23292   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23293               ac_cv_c_bigendian=yes
23294             fi
23295             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23296               if test "$ac_cv_c_bigendian" = unknown; then
23297                 ac_cv_c_bigendian=no
23298               else
23299                 # finding both strings is unlikely to happen, but who knows?
23300                 ac_cv_c_bigendian=unknown
23301               fi
23302             fi
23303 fi
23304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23305 else
23306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23307 /* end confdefs.h.  */
23308 $ac_includes_default
23309 int
23310 main ()
23311 {
23312
23313              /* Are we little or big endian?  From Harbison&Steele.  */
23314              union
23315              {
23316                long int l;
23317                char c[sizeof (long int)];
23318              } u;
23319              u.l = 1;
23320              return u.c[sizeof (long int) - 1] == 1;
23321
23322   ;
23323   return 0;
23324 }
23325 _ACEOF
23326 if ac_fn_c_try_run "$LINENO"; then :
23327   ac_cv_c_bigendian=no
23328 else
23329   ac_cv_c_bigendian=yes
23330 fi
23331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23332   conftest.$ac_objext conftest.beam conftest.$ac_ext
23333 fi
23334
23335     fi
23336 fi
23337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23338 $as_echo "$ac_cv_c_bigendian" >&6; }
23339  case $ac_cv_c_bigendian in #(
23340    yes)
23341      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23342 ;; #(
23343    no)
23344       ;; #(
23345    universal)
23346
23347 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23348
23349      ;; #(
23350    *)
23351      as_fn_error "unknown endianness
23352  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23353  esac
23354
23355
23356 ZLIBS=
23357 SYS_ZLIBS=
23358 ZINCS=
23359
23360 if test -z "$ZLIBSPEC"; then
23361    # Use zlib from the GCC tree.
23362    ZINCS='-I$(top_srcdir)/../zlib'
23363    ZLIBS=../zlib/libzgcj_convenience.la
23364 else
23365    # System's zlib.
23366    SYS_ZLIBS="$ZLIBSPEC"
23367 fi
23368
23369
23370
23371
23372
23373
23374
23375
23376
23377
23378  if test "$NATIVE" = yes; then
23379   NATIVE_TRUE=
23380   NATIVE_FALSE='#'
23381 else
23382   NATIVE_TRUE='#'
23383   NATIVE_FALSE=
23384 fi
23385
23386  if test "$enable_shared" = yes; then
23387   ENABLE_SHARED_TRUE=
23388   ENABLE_SHARED_FALSE='#'
23389 else
23390   ENABLE_SHARED_TRUE='#'
23391   ENABLE_SHARED_FALSE=
23392 fi
23393
23394  if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
23395   NEEDS_DATA_START_TRUE=
23396   NEEDS_DATA_START_FALSE='#'
23397 else
23398   NEEDS_DATA_START_TRUE='#'
23399   NEEDS_DATA_START_FALSE=
23400 fi
23401
23402  if test -z "${with_multisubdir}"; then
23403   INSTALL_BINARIES_TRUE=
23404   INSTALL_BINARIES_FALSE='#'
23405 else
23406   INSTALL_BINARIES_TRUE='#'
23407   INSTALL_BINARIES_FALSE=
23408 fi
23409
23410
23411
23412 # Process the option "--enable-version-specific-runtime-libs"
23413 # Calculate toolexeclibdir
23414 case ${version_specific_libs} in
23415   yes)
23416     # Need the gcc compiler version to know where to install libraries
23417     # and header files if --enable-version-specific-runtime-libs option
23418     # is selected.
23419     includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
23420     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
23421     toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
23422     toolexeclibdir=$toolexecmainlibdir
23423     ;;
23424   no)
23425     if test -n "$with_cross_host" &&
23426        test x"$with_cross_host" != x"no"; then
23427       # Install a library built with a cross compiler in tooldir, not libdir.
23428       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
23429       toolexecmainlibdir='$(toolexecdir)/lib'
23430     else
23431       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
23432       toolexecmainlibdir='$(libdir)'
23433     fi
23434     multi_os_directory=`$CC -print-multi-os-directory`
23435     case $multi_os_directory in
23436       .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
23437       *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
23438     esac
23439     ;;
23440 esac
23441
23442
23443
23444
23445 # Determine gcj and libgcj version number.
23446 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
23447 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
23448 GCJVERSION=$gcjversion
23449
23450
23451 cat >>confdefs.h <<_ACEOF
23452 #define GCJVERSION "$GCJVERSION"
23453 _ACEOF
23454
23455
23456 # Determine where the standard .db file and GNU Classpath JNI
23457 # libraries are found.
23458 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
23459 multi_os_directory=`$CC -print-multi-os-directory`
23460 case $multi_os_directory in
23461   .)
23462    dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
23463    ;;
23464   *)
23465    dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
23466    ;;
23467 esac
23468
23469
23470
23471
23472 $as_echo "#define JV_VERSION \"1.5.0\"" >>confdefs.h
23473
23474
23475 $as_echo "#define JV_API_VERSION \"1.5\"" >>confdefs.h
23476
23477
23478
23479 case "${with_gxx_include_dir}" in
23480   yes)
23481     as_fn_error "--with-gxx-include-dir=[dir] requires a directory" "$LINENO" 5
23482     ;;
23483   no | "")
23484     case "${enable_version_specific_runtime_libs}" in
23485       yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
23486       *)
23487         libstdcxx_incdir='c++/$(gcc_version)'
23488         gxx_include_dir='include/$(libstdcxx_incdir)'
23489         if test -n "$with_cross_host" &&
23490            test x"$with_cross_host" != x"no"; then
23491           gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
23492         else
23493           gxx_include_dir='${prefix}/'"$gxx_include_dir"
23494         fi;;
23495     esac ;;
23496   *) gxx_include_dir=${with_gxx_include_dir} ;;
23497 esac
23498
23499
23500
23501
23502 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
23503 # On that system, sys/ioctl.h will not include sys/filio.h unless
23504 # BSD_COMP is defined; just including sys/filio.h is simpler.
23505 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
23506 # for now.  If you change this, you also must update natFile.cc.
23507 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
23508                   sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
23509                   sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
23510                   pwd.h sys/config.h stdint.h langinfo.h locale.h \
23511                   dirent.h sys/rw_lock.h magic.h ifaddrs.h
23512 do :
23513   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23514 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23515 eval as_val=\$$as_ac_Header
23516    if test "x$as_val" = x""yes; then :
23517   cat >>confdefs.h <<_ACEOF
23518 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23519 _ACEOF
23520
23521 fi
23522
23523 done
23524
23525 for ac_header in inttypes.h
23526 do :
23527   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
23528 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
23529   cat >>confdefs.h <<_ACEOF
23530 #define HAVE_INTTYPES_H 1
23531 _ACEOF
23532
23533
23534 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
23535
23536
23537 $as_echo "#define JV_HAVE_INTTYPES_H 1" >>confdefs.h
23538
23539
23540 fi
23541
23542 done
23543
23544
23545 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23546 if test "x$ac_cv_type_ssize_t" = x""yes; then :
23547
23548 else
23549
23550 cat >>confdefs.h <<_ACEOF
23551 #define ssize_t int
23552 _ACEOF
23553
23554 fi
23555
23556 ac_fn_c_check_type "$LINENO" "magic_t" "ac_cv_type_magic_t" "
23557 #ifdef HAVE_MAGIC_H
23558 #include <magic.h>
23559 #endif
23560 "
23561 if test "x$ac_cv_type_magic_t" = x""yes; then :
23562
23563
23564 $as_echo "#define HAVE_MAGIC_T 1" >>confdefs.h
23565
23566 fi
23567
23568
23569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5
23570 $as_echo_n "checking for in_addr_t... " >&6; }
23571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23572 /* end confdefs.h.  */
23573 #include <sys/types.h>
23574 #if STDC_HEADERS
23575 #include <stdlib.h>
23576 #include <stddef.h>
23577 #endif
23578 #if HAVE_NETINET_IN_H
23579 #include <netinet/in.h>
23580 #endif
23581 int
23582 main ()
23583 {
23584 in_addr_t foo;
23585   ;
23586   return 0;
23587 }
23588 _ACEOF
23589 if ac_fn_c_try_compile "$LINENO"; then :
23590
23591 $as_echo "#define HAVE_IN_ADDR_T 1" >>confdefs.h
23592
23593    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23594 $as_echo "yes" >&6; }
23595 else
23596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23597 $as_echo "no" >&6; }
23598 fi
23599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23600
23601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ip_mreq is in netinet/in.h" >&5
23602 $as_echo_n "checking whether struct ip_mreq is in netinet/in.h... " >&6; }
23603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23604 /* end confdefs.h.  */
23605 #include <netinet/in.h>
23606 int
23607 main ()
23608 {
23609 struct ip_mreq mreq;
23610   ;
23611   return 0;
23612 }
23613 _ACEOF
23614 if ac_fn_c_try_compile "$LINENO"; then :
23615
23616 $as_echo "#define HAVE_STRUCT_IP_MREQ 1" >>confdefs.h
23617
23618    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23619 $as_echo "yes" >&6; }
23620 else
23621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23622 $as_echo "no" >&6; }
23623 fi
23624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23625
23626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ipv6_mreq is in netinet/in.h" >&5
23627 $as_echo_n "checking whether struct ipv6_mreq is in netinet/in.h... " >&6; }
23628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23629 /* end confdefs.h.  */
23630 #include <netinet/in.h>
23631 int
23632 main ()
23633 {
23634 struct ipv6_mreq mreq6;
23635   ;
23636   return 0;
23637 }
23638 _ACEOF
23639 if ac_fn_c_try_compile "$LINENO"; then :
23640
23641 $as_echo "#define HAVE_STRUCT_IPV6_MREQ 1" >>confdefs.h
23642
23643    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23644 $as_echo "yes" >&6; }
23645 else
23646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23647 $as_echo "no" >&6; }
23648 fi
23649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23650
23651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
23652 $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
23653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23654 /* end confdefs.h.  */
23655 #include <netinet/in.h>
23656 int
23657 main ()
23658 {
23659 struct sockaddr_in6 addr6;
23660   ;
23661   return 0;
23662 }
23663 _ACEOF
23664 if ac_fn_c_try_compile "$LINENO"; then :
23665
23666 $as_echo "#define HAVE_INET6 1" >>confdefs.h
23667
23668    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23669 $as_echo "yes" >&6; }
23670 else
23671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23672 $as_echo "no" >&6; }
23673 fi
23674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23675
23676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
23677 $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
23678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23679 /* end confdefs.h.  */
23680 #define _POSIX_PII_SOCKET
23681 #include <sys/types.h>
23682 #include <sys/socket.h>
23683 int
23684 main ()
23685 {
23686 socklen_t x = 5;
23687   ;
23688   return 0;
23689 }
23690 _ACEOF
23691 if ac_fn_c_try_compile "$LINENO"; then :
23692
23693 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
23694
23695    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23696 $as_echo "yes" >&6; }
23697 else
23698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23699 $as_echo "no" >&6; }
23700 fi
23701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23702
23703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
23704 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
23705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23706 /* end confdefs.h.  */
23707 #include <time.h>
23708 int
23709 main ()
23710 {
23711 struct tm tim; tim.tm_gmtoff = 0;
23712   ;
23713   return 0;
23714 }
23715 _ACEOF
23716 if ac_fn_c_try_compile "$LINENO"; then :
23717
23718 $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
23719
23720    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23721 $as_echo "yes" >&6; }
23722 else
23723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23724 $as_echo "no" >&6; }
23725    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
23726 $as_echo_n "checking for global timezone variable... " >&6; }
23727                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23728 /* end confdefs.h.  */
23729 #include <time.h>
23730 int
23731 main ()
23732 {
23733 void i(){long z2 = 2*timezone;}
23734   ;
23735   return 0;
23736 }
23737 _ACEOF
23738 if ac_fn_c_try_compile "$LINENO"; then :
23739
23740 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
23741
23742       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23743 $as_echo "yes" >&6; }
23744 else
23745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23746 $as_echo "no" >&6; }
23747        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
23748 $as_echo_n "checking for global _timezone variable... " >&6; }
23749               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23750 /* end confdefs.h.  */
23751 #include <time.h>
23752 int
23753 main ()
23754 {
23755 long z2 = _timezone;
23756   ;
23757   return 0;
23758 }
23759 _ACEOF
23760 if ac_fn_c_try_compile "$LINENO"; then :
23761
23762 $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
23763
23764           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23765 $as_echo "yes" >&6; }
23766 else
23767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23768 $as_echo "no" >&6; }
23769 fi
23770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23771 fi
23772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23773 fi
23774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23775
23776 for ac_prog in perl
23777 do
23778   # Extract the first word of "$ac_prog", so it can be a program name with args.
23779 set dummy $ac_prog; ac_word=$2
23780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23781 $as_echo_n "checking for $ac_word... " >&6; }
23782 if test "${ac_cv_prog_PERL+set}" = set; then :
23783   $as_echo_n "(cached) " >&6
23784 else
23785   if test -n "$PERL"; then
23786   ac_cv_prog_PERL="$PERL" # Let the user override the test.
23787 else
23788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23789 for as_dir in $PATH
23790 do
23791   IFS=$as_save_IFS
23792   test -z "$as_dir" && as_dir=.
23793     for ac_exec_ext in '' $ac_executable_extensions; do
23794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23795     ac_cv_prog_PERL="$ac_prog"
23796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23797     break 2
23798   fi
23799 done
23800   done
23801 IFS=$as_save_IFS
23802
23803 fi
23804 fi
23805 PERL=$ac_cv_prog_PERL
23806 if test -n "$PERL"; then
23807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
23808 $as_echo "$PERL" >&6; }
23809 else
23810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23811 $as_echo "no" >&6; }
23812 fi
23813
23814
23815   test -n "$PERL" && break
23816 done
23817 test -n "$PERL" || PERL="false"
23818
23819
23820 SYSDEP_SOURCES=
23821 SIGNAL_HANDLER_AUX=
23822
23823 case "${host}" in
23824  i?86-*-linux*)
23825     SIGNAL_HANDLER=include/i386-signal.h
23826     ;;
23827  sparc*-sun-solaris*)
23828     SIGNAL_HANDLER=include/sparc-signal.h
23829     ;;
23830 # ia64-*)
23831 #    SYSDEP_SOURCES=sysdep/ia64.c
23832 #    test -d sysdep || mkdir sysdep
23833 #    ;;
23834  hppa*-*-linux*)
23835     SIGNAL_HANDLER=include/pa-signal.h
23836     ;;
23837  hppa*-hp-hpux*)
23838     SIGNAL_HANDLER=include/hppa-signal.h
23839     ;;
23840  ia64-*-linux*)
23841     SIGNAL_HANDLER=include/dwarf2-signal.h
23842     ;;
23843  powerpc*-*-linux*)
23844     SIGNAL_HANDLER=include/powerpc-signal.h
23845     ;;
23846  alpha*-*-linux*)
23847     SIGNAL_HANDLER=include/dwarf2-signal.h
23848     ;;
23849  s390*-*-linux*)
23850     SIGNAL_HANDLER=include/s390-signal.h
23851     ;;
23852  x86_64*-*-linux*)
23853     SIGNAL_HANDLER=include/x86_64-signal.h
23854     SIGNAL_HANDLER_AUX=include/i386-signal.h
23855     ;;
23856  sparc*-*-linux*)
23857     SIGNAL_HANDLER=include/dwarf2-signal.h
23858     ;;
23859  sh*-*-linux*)
23860     SIGNAL_HANDLER=include/sh-signal.h
23861     ;;
23862  *mingw*)
23863     SIGNAL_HANDLER=include/win32-signal.h
23864     ;;
23865  mips*-*-linux*)
23866     SIGNAL_HANDLER=include/mips-signal.h
23867     ;;
23868  m68*-*-linux*)
23869     SIGNAL_HANDLER=include/dwarf2-signal.h
23870     ;;
23871  powerpc*-*-darwin* | i?86-*-darwin[912]* | x86_64-*-darwin[912]*)
23872     SIGNAL_HANDLER=include/darwin-signal.h
23873     ;;
23874  powerpc*-*-aix*)
23875     SIGNAL_HANDLER=include/aix-signal.h
23876     ;;
23877  *)
23878     SIGNAL_HANDLER=include/default-signal.h
23879     ;;
23880 esac
23881
23882 # If we're using sjlj exceptions, forget what we just learned.
23883 if test "$enable_sjlj_exceptions" = yes; then
23884    SIGNAL_HANDLER=include/default-signal.h
23885    SIGNAL_HANDLER_AUX=
23886 fi
23887
23888
23889
23890 if test -z "$SIGNAL_HANDLER_AUX"; then
23891   SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
23892 fi
23893
23894 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
23895
23896
23897 if test "${multilib}" = "yes"; then
23898   multilib_arg="--enable-multilib"
23899 else
23900   multilib_arg=
23901 fi
23902
23903 # See if we support thread-local storage.
23904
23905
23906    # Check whether --enable-tls was given.
23907 if test "${enable_tls+set}" = set; then :
23908   enableval=$enable_tls;
23909       case "$enableval" in
23910        yes|no) ;;
23911        *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
23912       esac
23913
23914 else
23915   enable_tls=yes
23916 fi
23917
23918
23919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
23920 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
23921 if test "${gcc_cv_have_tls+set}" = set; then :
23922   $as_echo_n "(cached) " >&6
23923 else
23924
23925     if test "$cross_compiling" = yes; then :
23926                 if test x$gcc_no_link = xyes; then
23927   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23928 fi
23929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23930 /* end confdefs.h.  */
23931 __thread int a; int b; int main() { return a = b; }
23932 _ACEOF
23933 if ac_fn_c_try_link "$LINENO"; then :
23934   chktls_save_LDFLAGS="$LDFLAGS"
23935                           case $host in
23936             *-*-linux*)
23937               LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
23938               ;;
23939           esac
23940           chktls_save_CFLAGS="$CFLAGS"
23941           CFLAGS="-fPIC $CFLAGS"
23942                   if test x$gcc_no_link = xyes; then
23943   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23944 fi
23945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23946 /* end confdefs.h.  */
23947 int f() { return 0; }
23948 _ACEOF
23949 if ac_fn_c_try_link "$LINENO"; then :
23950   if test x$gcc_no_link = xyes; then
23951   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23952 fi
23953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23954 /* end confdefs.h.  */
23955 __thread int a; int b; int f() { return a = b; }
23956 _ACEOF
23957 if ac_fn_c_try_link "$LINENO"; then :
23958   gcc_cv_have_tls=yes
23959 else
23960   gcc_cv_have_tls=no
23961 fi
23962 rm -f core conftest.err conftest.$ac_objext \
23963     conftest$ac_exeext conftest.$ac_ext
23964 else
23965   gcc_cv_have_tls=yes
23966 fi
23967 rm -f core conftest.err conftest.$ac_objext \
23968     conftest$ac_exeext conftest.$ac_ext
23969           CFLAGS="$chktls_save_CFLAGS"
23970           LDFLAGS="$chktls_save_LDFLAGS"
23971 else
23972   gcc_cv_have_tls=no
23973 fi
23974 rm -f core conftest.err conftest.$ac_objext \
23975     conftest$ac_exeext conftest.$ac_ext
23976
23977
23978 else
23979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23980 /* end confdefs.h.  */
23981 __thread int a; int b; int main() { return a = b; }
23982 _ACEOF
23983 if ac_fn_c_try_run "$LINENO"; then :
23984                       chktls_save_LDFLAGS="$LDFLAGS"
23985       LDFLAGS="-static $LDFLAGS"
23986       if test x$gcc_no_link = xyes; then
23987   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23988 fi
23989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23990 /* end confdefs.h.  */
23991 int main() { return 0; }
23992 _ACEOF
23993 if ac_fn_c_try_link "$LINENO"; then :
23994   if test "$cross_compiling" = yes; then :
23995   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23997 as_fn_error "cannot run test program while cross compiling
23998 See \`config.log' for more details." "$LINENO" 5; }
23999 else
24000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24001 /* end confdefs.h.  */
24002 __thread int a; int b; int main() { return a = b; }
24003 _ACEOF
24004 if ac_fn_c_try_run "$LINENO"; then :
24005   gcc_cv_have_tls=yes
24006 else
24007   gcc_cv_have_tls=no
24008 fi
24009 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24010   conftest.$ac_objext conftest.beam conftest.$ac_ext
24011 fi
24012
24013 else
24014   gcc_cv_have_tls=yes
24015 fi
24016 rm -f core conftest.err conftest.$ac_objext \
24017     conftest$ac_exeext conftest.$ac_ext
24018       LDFLAGS="$chktls_save_LDFLAGS"
24019       if test $gcc_cv_have_tls = yes; then
24020                                                 chktls_save_CFLAGS="$CFLAGS"
24021         thread_CFLAGS=failed
24022         for flag in '' '-pthread' '-lpthread'; do
24023           CFLAGS="$flag $chktls_save_CFLAGS"
24024           if test x$gcc_no_link = xyes; then
24025   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24026 fi
24027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24028 /* end confdefs.h.  */
24029 #include <pthread.h>
24030                 void *g(void *d) { return NULL; }
24031 int
24032 main ()
24033 {
24034 pthread_t t; pthread_create(&t,NULL,g,NULL);
24035   ;
24036   return 0;
24037 }
24038 _ACEOF
24039 if ac_fn_c_try_link "$LINENO"; then :
24040   thread_CFLAGS="$flag"
24041 fi
24042 rm -f core conftest.err conftest.$ac_objext \
24043     conftest$ac_exeext conftest.$ac_ext
24044           if test "X$thread_CFLAGS" != Xfailed; then
24045             break
24046           fi
24047         done
24048         CFLAGS="$chktls_save_CFLAGS"
24049         if test "X$thread_CFLAGS" != Xfailed; then
24050           CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
24051           if test "$cross_compiling" = yes; then :
24052   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24054 as_fn_error "cannot run test program while cross compiling
24055 See \`config.log' for more details." "$LINENO" 5; }
24056 else
24057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24058 /* end confdefs.h.  */
24059 #include <pthread.h>
24060                 __thread int a;
24061                 static int *a_in_other_thread;
24062                 static void *
24063                 thread_func (void *arg)
24064                 {
24065                   a_in_other_thread = &a;
24066                   return (void *)0;
24067                 }
24068 int
24069 main ()
24070 {
24071 pthread_t thread;
24072                 void *thread_retval;
24073                 int *a_in_main_thread;
24074                 if (pthread_create (&thread, (pthread_attr_t *)0,
24075                                     thread_func, (void *)0))
24076                   return 0;
24077                 a_in_main_thread = &a;
24078                 if (pthread_join (thread, &thread_retval))
24079                   return 0;
24080                 return (a_in_other_thread == a_in_main_thread);
24081   ;
24082   return 0;
24083 }
24084 _ACEOF
24085 if ac_fn_c_try_run "$LINENO"; then :
24086   gcc_cv_have_tls=yes
24087 else
24088   gcc_cv_have_tls=no
24089 fi
24090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24091   conftest.$ac_objext conftest.beam conftest.$ac_ext
24092 fi
24093
24094           CFLAGS="$chktls_save_CFLAGS"
24095         fi
24096       fi
24097 else
24098   gcc_cv_have_tls=no
24099 fi
24100 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24101   conftest.$ac_objext conftest.beam conftest.$ac_ext
24102 fi
24103
24104 fi
24105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
24106 $as_echo "$gcc_cv_have_tls" >&6; }
24107   if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
24108
24109 $as_echo "#define HAVE_TLS 1" >>confdefs.h
24110
24111   fi
24112
24113 # For _Unwind_GetIPInfo.
24114
24115
24116 # Check whether --with-system-libunwind was given.
24117 if test "${with_system_libunwind+set}" = set; then :
24118   withval=$with_system_libunwind;
24119 fi
24120
24121   # If system-libunwind was not specifically set, pick a default setting.
24122   if test x$with_system_libunwind = x; then
24123     case ${target} in
24124       ia64-*-hpux*) with_system_libunwind=yes ;;
24125       *) with_system_libunwind=no ;;
24126     esac
24127   fi
24128   # Based on system-libunwind and target, do we have ipinfo?
24129   if  test x$with_system_libunwind = xyes; then
24130     case ${target} in
24131       ia64-*-*) have_unwind_getipinfo=no ;;
24132       *) have_unwind_getipinfo=yes ;;
24133     esac
24134   else
24135     # Darwin before version 9 does not have _Unwind_GetIPInfo.
24136
24137     case ${target} in
24138       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
24139       *) have_unwind_getipinfo=yes ;;
24140     esac
24141
24142   fi
24143
24144   if test x$have_unwind_getipinfo = xyes; then
24145
24146 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
24147
24148   fi
24149
24150
24151 # See if linker supports anonymous version scripts.
24152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous version scripts" >&5
24153 $as_echo_n "checking whether ld supports anonymous version scripts... " >&6; }
24154 if test "${libjava_cv_anon_version_script+set}" = set; then :
24155   $as_echo_n "(cached) " >&6
24156 else
24157   save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
24158    libjava_cv_anon_version_script=no
24159    CFLAGS="$CFLAGS -fPIC"; LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
24160    echo '{ global: globalsymb*; local: *; };' > conftest.map
24161    if test x$gcc_no_link = xyes; then
24162   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24163 fi
24164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24165 /* end confdefs.h.  */
24166 void globalsymbol (void) {} void localsymbol (void) {}
24167 int
24168 main ()
24169 {
24170
24171   ;
24172   return 0;
24173 }
24174 _ACEOF
24175 if ac_fn_c_try_link "$LINENO"; then :
24176   libjava_cv_anon_version_script=yes
24177 fi
24178 rm -f core conftest.err conftest.$ac_objext \
24179     conftest$ac_exeext conftest.$ac_ext
24180    CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
24181
24182 fi
24183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_anon_version_script" >&5
24184 $as_echo "$libjava_cv_anon_version_script" >&6; }
24185  if test "$libjava_cv_anon_version_script" = yes; then
24186   ANONVERSCRIPT_TRUE=
24187   ANONVERSCRIPT_FALSE='#'
24188 else
24189   ANONVERSCRIPT_TRUE='#'
24190   ANONVERSCRIPT_FALSE=
24191 fi
24192
24193
24194 # Check if linker supports static linking on a per library basis
24195 LD_START_STATIC_SPEC=
24196 LD_FINISH_STATIC_SPEC=
24197 if $LD --help 2>&1 | grep -q -e -call_shared ; then
24198   if $LD --help 2>&1 | grep -q -e -non_shared ; then
24199     LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
24200     LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
24201   fi
24202 fi
24203
24204
24205
24206 here=`${PWDCMD-pwd}`
24207
24208
24209 # We get this from the environment.
24210
24211
24212
24213 # Check whether --with-python-dir was given.
24214 if test "${with_python_dir+set}" = set; then :
24215   withval=$with_python_dir; with_python_dir=$withval
24216 else
24217   with_python_dir=""
24218 fi
24219
24220
24221 if test "x${with_python_dir}" = "x"
24222 then
24223   # Needed for installing Python modules during make install.
24224   python_mod_dir="\${prefix}/share/python"
24225   # Needed for substituting into aot-compile*
24226   python_mod_dir_expanded="${expanded_prefix}/share/python"
24227 else
24228   python_mod_dir="\${prefix}${with_python_dir}"
24229   python_mod_dir_expanded="${expanded_prefix}${with_python_dir}"
24230 fi
24231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Python modules dir: ${python_mod_dir_expanded}" >&5
24232 $as_echo "Python modules dir: ${python_mod_dir_expanded}" >&6; };
24233
24234
24235
24236 # needed for aot-compile-rpm
24237 MAKE=`which make`
24238
24239
24240 # Check whether --enable-aot-compile-rpm was given.
24241 if test "${enable_aot_compile_rpm+set}" = set; then :
24242   enableval=$enable_aot_compile_rpm; case "${enableval}" in
24243     yes) AOT_RPM_ENABLED=yes ;;
24244     no)  AOT_RPM_ENABLED=no ;;
24245     *)   as_fn_error "Unknown argument to enable/disable aot-compile-rpm" "$LINENO" 5 ;;
24246   esac
24247 else
24248   AOT_RPM_ENABLED=no
24249
24250 fi
24251
24252  if test "x${AOT_RPM_ENABLED}" = xyes; then
24253   INSTALL_AOT_RPM_TRUE=
24254   INSTALL_AOT_RPM_FALSE='#'
24255 else
24256   INSTALL_AOT_RPM_TRUE='#'
24257   INSTALL_AOT_RPM_FALSE=
24258 fi
24259
24260
24261 # Check whether --enable-java-home was given.
24262 if test "${enable_java_home+set}" = set; then :
24263   enableval=$enable_java_home; case "${enableval}" in
24264     yes) JAVA_HOME_ENABLED=yes ;;
24265     no)  JAVA_HOME_ENABLED=no ;;
24266     *)   as_fn_error "Unknown argument to enable/disable java-home" "$LINENO" 5 ;;
24267   esac
24268 else
24269   JAVA_HOME_ENABLED=no
24270
24271 fi
24272
24273  if test "x${JAVA_HOME_ENABLED}" = xyes; then
24274   CREATE_JAVA_HOME_TRUE=
24275   CREATE_JAVA_HOME_FALSE='#'
24276 else
24277   CREATE_JAVA_HOME_TRUE='#'
24278   CREATE_JAVA_HOME_FALSE=
24279 fi
24280
24281
24282 # Only do these checks if java-home above is enabled.
24283 if test "x${JAVA_HOME_ENABLED}" = xyes
24284 then
24285
24286
24287 # Check whether --with-gcc-suffix was given.
24288 if test "${with_gcc_suffix+set}" = set; then :
24289   withval=$with_gcc_suffix; gcc_suffix=$withval
24290 else
24291   gcc_suffix=""
24292 fi
24293
24294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCC suffix: ${gcc_suffix}" >&5
24295 $as_echo "GCC suffix: ${gcc_suffix}" >&6; }
24296
24297
24298
24299 # Check whether --with-arch-directory was given.
24300 if test "${with_arch_directory+set}" = set; then :
24301   withval=$with_arch_directory; host_cpu=$withval
24302 else
24303   host_cpu=""
24304 fi
24305
24306
24307
24308 # Check whether --with-os-directory was given.
24309 if test "${with_os_directory+set}" = set; then :
24310   withval=$with_os_directory; host_os=$withval
24311 else
24312   host_os=""
24313 fi
24314
24315
24316
24317 # Check whether --with-origin-name was given.
24318 if test "${with_origin_name+set}" = set; then :
24319   withval=$with_origin_name; origin_name=$withval
24320 else
24321   origin_name=gcj${gcc_suffix}
24322 fi
24323
24324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JPackage origin name: ${origin_name}" >&5
24325 $as_echo "JPackage origin name: ${origin_name}" >&6; }
24326
24327
24328 # Check whether --with-arch-suffix was given.
24329 if test "${with_arch_suffix+set}" = set; then :
24330   withval=$with_arch_suffix; arch_suffix=$withval
24331 else
24332   arch_suffix=""
24333 fi
24334
24335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch suffix: ${arch_suffix}" >&5
24336 $as_echo "arch suffix: ${arch_suffix}" >&6; }
24337
24338
24339 # Check whether --with-jvm-root-dir was given.
24340 if test "${with_jvm_root_dir+set}" = set; then :
24341   withval=$with_jvm_root_dir; jvm_root_dir=$withval
24342 else
24343   jvm_root_dir="\${prefix}/lib/jvm"
24344 fi
24345
24346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM root installation directory: ${jvm_root_dir}" >&5
24347 $as_echo "JVM root installation directory: ${jvm_root_dir}" >&6; }
24348
24349
24350 # Check whether --with-jvm-jar-dir was given.
24351 if test "${with_jvm_jar_dir+set}" = set; then :
24352   withval=$with_jvm_jar_dir; jvm_jar_dir=$withval
24353 else
24354   jvm_jar_dir=\${prefix}/lib/jvm-exports
24355 fi
24356
24357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JAR root installation directory: ${jvm_jar_dir}" >&5
24358 $as_echo "JAR root installation directory: ${jvm_jar_dir}" >&6; }
24359
24360   JAVA_VERSION=1.5.0
24361   BUILD_VERSION=0
24362
24363
24364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Java version: ${JAVA_VERSION}" >&5
24365 $as_echo "Java version: ${JAVA_VERSION}" >&6; }
24366
24367   jre_dir=jre
24368   jre_lnk=jre-${JAVA_VERSION}-${origin_name}
24369   sdk_lnk=java-${JAVA_VERSION}-${origin_name}
24370
24371   JVM_ROOT_DIR=${jvm_root_dir}
24372
24373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
24374 $as_echo "JVM ROOT directory: ${JVM_ROOT_DIR}" >&6; }
24375
24376   JVM_JAR_ROOT_DIR=${jvm_jar_dir}
24377
24378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
24379 $as_echo "JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6; }
24380
24381   JVM_JAR_DIR=${jvm_jar_dir}
24382
24383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
24384 $as_echo "JVM JAR directory: ${JVM_JAR_DIR}" >&6; }
24385
24386   JRE_DIR=${jre_dir}
24387
24388
24389   JRE_LNK=${jre_lnk}
24390
24391
24392   SDK_LNK=${sdk_lnk}
24393
24394
24395   SDK_BIN_DIR=${jvm_root_dir}/bin
24396
24397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
24398 $as_echo "SDK tools directory: ${SDK_BIN_DIR}" >&6; }
24399
24400   SDK_LIB_DIR=${jvm_root_dir}/lib
24401
24402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
24403 $as_echo "SDK jar directory: ${SDK_LIB_DIR}" >&6; }
24404
24405   SDK_INCLUDE_DIR=${jvm_root_dir}/include
24406
24407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
24408 $as_echo "SDK include directory: ${SDK_INCLUDE_DIR}" >&6; }
24409
24410   JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
24411
24412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
24413 $as_echo "JRE tools directory: ${JRE_BIN_DIR}" >&6; }
24414
24415   JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
24416
24417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
24418 $as_echo "JRE lib directory: ${JRE_LIB_DIR}" >&6; }
24419
24420   # Find gcj prefix using gcj found in PATH.
24421   gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
24422
24423   # Where do the gcj binaries live?
24424   # For jhbuild based builds, they all live in a sibling of bin called
24425   # gcj-bin.  Check for gcj-bin first, and use bin otherwise.
24426   GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
24427
24428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
24429 $as_echo "GCJ tools directory: ${GCJ_BIN_DIR}" >&6; }
24430
24431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: host is ${host}" >&5
24432 $as_echo "host is ${host}" >&6; }
24433   if test "x${host_cpu}" = "x"
24434   then
24435     case ${host} in
24436       *-mingw* | *-cygwin*)
24437         host_cpu=x86;;
24438       i486-* | i586-* | i686-*)
24439         host_cpu=i386;;
24440       x86_64-*)
24441         host_cpu=amd64;;
24442       *)
24443         host_cpu=${host_cpu};;
24444     esac
24445   fi
24446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch directory: ${host_cpu}" >&5
24447 $as_echo "arch directory: ${host_cpu}" >&6; }
24448   CPU=${host_cpu}
24449
24450
24451   if test "x${host_os}" = "x"
24452   then
24453     case ${host} in
24454       *-mingw* | *-cygwin*)
24455         host_os=win32;;
24456       *-linux*)
24457         host_os=linux;;
24458       *)
24459         host_os=${host_os};;
24460     esac
24461   fi
24462   echo os directory: ${host_os}
24463   OS=${host_os}
24464
24465
24466   # make an expanded $libdir, for substituting into
24467   # scripts (and other non-Makefile things).
24468   LIBDIR=$libdir
24469   if test "x${exec_prefix}" = "xNONE"
24470   then
24471       lib_exec_prefix=$expanded_prefix
24472   else
24473       lib_exec_prefix=$exec_prefix
24474   fi
24475   LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
24476
24477 fi
24478
24479 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"
24480
24481
24482 if test ${multilib} = yes; then
24483   multilib_arg="--enable-multilib"
24484 else
24485   multilib_arg=
24486 fi
24487
24488 ac_config_files="$ac_config_files scripts/jar"
24489
24490 cat >confcache <<\_ACEOF
24491 # This file is a shell script that caches the results of configure
24492 # tests run on this system so they can be shared between configure
24493 # scripts and configure runs, see configure's option --config-cache.
24494 # It is not useful on other systems.  If it contains results you don't
24495 # want to keep, you may remove or edit it.
24496 #
24497 # config.status only pays attention to the cache file if you give it
24498 # the --recheck option to rerun configure.
24499 #
24500 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24501 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24502 # following values.
24503
24504 _ACEOF
24505
24506 # The following way of writing the cache mishandles newlines in values,
24507 # but we know of no workaround that is simple, portable, and efficient.
24508 # So, we kill variables containing newlines.
24509 # Ultrix sh set writes to stderr and can't be redirected directly,
24510 # and sets the high bit in the cache file unless we assign to the vars.
24511 (
24512   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24513     eval ac_val=\$$ac_var
24514     case $ac_val in #(
24515     *${as_nl}*)
24516       case $ac_var in #(
24517       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24518 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24519       esac
24520       case $ac_var in #(
24521       _ | IFS | as_nl) ;; #(
24522       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24523       *) { eval $ac_var=; unset $ac_var;} ;;
24524       esac ;;
24525     esac
24526   done
24527
24528   (set) 2>&1 |
24529     case $as_nl`(ac_space=' '; set) 2>&1` in #(
24530     *${as_nl}ac_space=\ *)
24531       # `set' does not quote correctly, so add quotes: double-quote
24532       # substitution turns \\\\ into \\, and sed turns \\ into \.
24533       sed -n \
24534         "s/'/'\\\\''/g;
24535           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24536       ;; #(
24537     *)
24538       # `set' quotes correctly as required by POSIX, so do not add quotes.
24539       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24540       ;;
24541     esac |
24542     sort
24543 ) |
24544   sed '
24545      /^ac_cv_env_/b end
24546      t clear
24547      :clear
24548      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24549      t end
24550      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24551      :end' >>confcache
24552 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24553   if test -w "$cache_file"; then
24554     test "x$cache_file" != "x/dev/null" &&
24555       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24556 $as_echo "$as_me: updating cache $cache_file" >&6;}
24557     cat confcache >$cache_file
24558   else
24559     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24560 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24561   fi
24562 fi
24563 rm -f confcache
24564
24565 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24566 # Let make expand exec_prefix.
24567 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24568
24569 DEFS=-DHAVE_CONFIG_H
24570
24571 ac_libobjs=
24572 ac_ltlibobjs=
24573 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24574   # 1. Remove the extension, and $U if already installed.
24575   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24576   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24577   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24578   #    will be set to the directory where LIBOBJS objects are built.
24579   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24580   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24581 done
24582 LIBOBJS=$ac_libobjs
24583
24584 LTLIBOBJS=$ac_ltlibobjs
24585
24586
24587 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
24588   as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
24589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24590 fi
24591 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
24592   as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
24593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24594 fi
24595 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24596   as_fn_error "conditional \"AMDEP\" was never defined.
24597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24598 fi
24599 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24600   as_fn_error "conditional \"am__fastdepCC\" was never defined.
24601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24602 fi
24603 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24604   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
24605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24606 fi
24607  if test -n "$EXEEXT"; then
24608   am__EXEEXT_TRUE=
24609   am__EXEEXT_FALSE='#'
24610 else
24611   am__EXEEXT_TRUE='#'
24612   am__EXEEXT_FALSE=
24613 fi
24614
24615 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24616   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
24617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24618 fi
24619 if test -z "${BUILD_SUBLIBS_TRUE}" && test -z "${BUILD_SUBLIBS_FALSE}"; then
24620   as_fn_error "conditional \"BUILD_SUBLIBS\" was never defined.
24621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24622 fi
24623 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
24624   as_fn_error "conditional \"XLIB_AWT\" was never defined.
24625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24626 fi
24627 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
24628   as_fn_error "conditional \"X_AWT\" was never defined.
24629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24630 fi
24631 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24632   as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24634 fi
24635 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24636   as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24638 fi
24639 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
24640   as_fn_error "conditional \"TESTSUBDIR\" was never defined.
24641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24642 fi
24643 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
24644   as_fn_error "conditional \"BUILD_ECJ1\" was never defined.
24645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24646 fi
24647 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
24648   as_fn_error "conditional \"INSTALL_ECJ_JAR\" was never defined.
24649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24650 fi
24651 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
24652   as_fn_error "conditional \"JAVA_HOME_SET\" was never defined.
24653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24654 fi
24655 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
24656   as_fn_error "conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
24657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24658 fi
24659 if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
24660   as_fn_error "conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
24661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24662 fi
24663 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
24664   as_fn_error "conditional \"INTERPRETER\" was never defined.
24665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24666 fi
24667 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
24668   as_fn_error "conditional \"USING_WIN32_PLATFORM\" was never defined.
24669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24670 fi
24671 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
24672   as_fn_error "conditional \"USING_POSIX_PLATFORM\" was never defined.
24673 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24674 fi
24675 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
24676   as_fn_error "conditional \"USING_DARWIN_CRT\" was never defined.
24677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24678 fi
24679 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
24680   as_fn_error "conditional \"USING_BOEHMGC\" was never defined.
24681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24682 fi
24683 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
24684   as_fn_error "conditional \"USING_NOGC\" was never defined.
24685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24686 fi
24687 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
24688   as_fn_error "conditional \"USING_POSIX_THREADS\" was never defined.
24689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24690 fi
24691 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
24692   as_fn_error "conditional \"USING_WIN32_THREADS\" was never defined.
24693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24694 fi
24695 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
24696   as_fn_error "conditional \"USING_NO_THREADS\" was never defined.
24697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24698 fi
24699 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
24700   as_fn_error "conditional \"USE_LIBGCJ_BC\" was never defined.
24701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24702 fi
24703 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
24704   as_fn_error "conditional \"USING_GCC\" was never defined.
24705 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24706 fi
24707 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24708   as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24709 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24710 fi
24711
24712 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
24713   as_fn_error "conditional \"NATIVE\" was never defined.
24714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24715 fi
24716 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
24717   as_fn_error "conditional \"ENABLE_SHARED\" was never defined.
24718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24719 fi
24720 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
24721   as_fn_error "conditional \"NEEDS_DATA_START\" was never defined.
24722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24723 fi
24724 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
24725   as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
24726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24727 fi
24728 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
24729   as_fn_error "conditional \"ANONVERSCRIPT\" was never defined.
24730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24731 fi
24732 if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
24733   as_fn_error "conditional \"INSTALL_AOT_RPM\" was never defined.
24734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24735 fi
24736 if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
24737   as_fn_error "conditional \"CREATE_JAVA_HOME\" was never defined.
24738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24739 fi
24740
24741 : ${CONFIG_STATUS=./config.status}
24742 ac_write_fail=0
24743 ac_clean_files_save=$ac_clean_files
24744 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24745 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24746 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24747 as_write_fail=0
24748 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24749 #! $SHELL
24750 # Generated by $as_me.
24751 # Run this file to recreate the current configuration.
24752 # Compiler output produced by configure, useful for debugging
24753 # configure, is in config.log if it exists.
24754
24755 debug=false
24756 ac_cs_recheck=false
24757 ac_cs_silent=false
24758
24759 SHELL=\${CONFIG_SHELL-$SHELL}
24760 export SHELL
24761 _ASEOF
24762 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24763 ## -------------------- ##
24764 ## M4sh Initialization. ##
24765 ## -------------------- ##
24766
24767 # Be more Bourne compatible
24768 DUALCASE=1; export DUALCASE # for MKS sh
24769 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24770   emulate sh
24771   NULLCMD=:
24772   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24773   # is contrary to our usage.  Disable this feature.
24774   alias -g '${1+"$@"}'='"$@"'
24775   setopt NO_GLOB_SUBST
24776 else
24777   case `(set -o) 2>/dev/null` in #(
24778   *posix*) :
24779     set -o posix ;; #(
24780   *) :
24781      ;;
24782 esac
24783 fi
24784
24785
24786 as_nl='
24787 '
24788 export as_nl
24789 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24790 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24791 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24792 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24793 # Prefer a ksh shell builtin over an external printf program on Solaris,
24794 # but without wasting forks for bash or zsh.
24795 if test -z "$BASH_VERSION$ZSH_VERSION" \
24796     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24797   as_echo='print -r --'
24798   as_echo_n='print -rn --'
24799 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24800   as_echo='printf %s\n'
24801   as_echo_n='printf %s'
24802 else
24803   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24804     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24805     as_echo_n='/usr/ucb/echo -n'
24806   else
24807     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24808     as_echo_n_body='eval
24809       arg=$1;
24810       case $arg in #(
24811       *"$as_nl"*)
24812         expr "X$arg" : "X\\(.*\\)$as_nl";
24813         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24814       esac;
24815       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24816     '
24817     export as_echo_n_body
24818     as_echo_n='sh -c $as_echo_n_body as_echo'
24819   fi
24820   export as_echo_body
24821   as_echo='sh -c $as_echo_body as_echo'
24822 fi
24823
24824 # The user is always right.
24825 if test "${PATH_SEPARATOR+set}" != set; then
24826   PATH_SEPARATOR=:
24827   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24828     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24829       PATH_SEPARATOR=';'
24830   }
24831 fi
24832
24833
24834 # IFS
24835 # We need space, tab and new line, in precisely that order.  Quoting is
24836 # there to prevent editors from complaining about space-tab.
24837 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24838 # splitting by setting IFS to empty value.)
24839 IFS=" ""        $as_nl"
24840
24841 # Find who we are.  Look in the path if we contain no directory separator.
24842 case $0 in #((
24843   *[\\/]* ) as_myself=$0 ;;
24844   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24845 for as_dir in $PATH
24846 do
24847   IFS=$as_save_IFS
24848   test -z "$as_dir" && as_dir=.
24849     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24850   done
24851 IFS=$as_save_IFS
24852
24853      ;;
24854 esac
24855 # We did not find ourselves, most probably we were run as `sh COMMAND'
24856 # in which case we are not to be found in the path.
24857 if test "x$as_myself" = x; then
24858   as_myself=$0
24859 fi
24860 if test ! -f "$as_myself"; then
24861   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24862   exit 1
24863 fi
24864
24865 # Unset variables that we do not need and which cause bugs (e.g. in
24866 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
24867 # suppresses any "Segmentation fault" message there.  '((' could
24868 # trigger a bug in pdksh 5.2.14.
24869 for as_var in BASH_ENV ENV MAIL MAILPATH
24870 do eval test x\${$as_var+set} = xset \
24871   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24872 done
24873 PS1='$ '
24874 PS2='> '
24875 PS4='+ '
24876
24877 # NLS nuisances.
24878 LC_ALL=C
24879 export LC_ALL
24880 LANGUAGE=C
24881 export LANGUAGE
24882
24883 # CDPATH.
24884 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24885
24886
24887 # as_fn_error ERROR [LINENO LOG_FD]
24888 # ---------------------------------
24889 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24890 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24891 # script with status $?, using 1 if that was 0.
24892 as_fn_error ()
24893 {
24894   as_status=$?; test $as_status -eq 0 && as_status=1
24895   if test "$3"; then
24896     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24897     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24898   fi
24899   $as_echo "$as_me: error: $1" >&2
24900   as_fn_exit $as_status
24901 } # as_fn_error
24902
24903
24904 # as_fn_set_status STATUS
24905 # -----------------------
24906 # Set $? to STATUS, without forking.
24907 as_fn_set_status ()
24908 {
24909   return $1
24910 } # as_fn_set_status
24911
24912 # as_fn_exit STATUS
24913 # -----------------
24914 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24915 as_fn_exit ()
24916 {
24917   set +e
24918   as_fn_set_status $1
24919   exit $1
24920 } # as_fn_exit
24921
24922 # as_fn_unset VAR
24923 # ---------------
24924 # Portably unset VAR.
24925 as_fn_unset ()
24926 {
24927   { eval $1=; unset $1;}
24928 }
24929 as_unset=as_fn_unset
24930 # as_fn_append VAR VALUE
24931 # ----------------------
24932 # Append the text in VALUE to the end of the definition contained in VAR. Take
24933 # advantage of any shell optimizations that allow amortized linear growth over
24934 # repeated appends, instead of the typical quadratic growth present in naive
24935 # implementations.
24936 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24937   eval 'as_fn_append ()
24938   {
24939     eval $1+=\$2
24940   }'
24941 else
24942   as_fn_append ()
24943   {
24944     eval $1=\$$1\$2
24945   }
24946 fi # as_fn_append
24947
24948 # as_fn_arith ARG...
24949 # ------------------
24950 # Perform arithmetic evaluation on the ARGs, and store the result in the
24951 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24952 # must be portable across $(()) and expr.
24953 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24954   eval 'as_fn_arith ()
24955   {
24956     as_val=$(( $* ))
24957   }'
24958 else
24959   as_fn_arith ()
24960   {
24961     as_val=`expr "$@" || test $? -eq 1`
24962   }
24963 fi # as_fn_arith
24964
24965
24966 if expr a : '\(a\)' >/dev/null 2>&1 &&
24967    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24968   as_expr=expr
24969 else
24970   as_expr=false
24971 fi
24972
24973 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24974   as_basename=basename
24975 else
24976   as_basename=false
24977 fi
24978
24979 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24980   as_dirname=dirname
24981 else
24982   as_dirname=false
24983 fi
24984
24985 as_me=`$as_basename -- "$0" ||
24986 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24987          X"$0" : 'X\(//\)$' \| \
24988          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24989 $as_echo X/"$0" |
24990     sed '/^.*\/\([^/][^/]*\)\/*$/{
24991             s//\1/
24992             q
24993           }
24994           /^X\/\(\/\/\)$/{
24995             s//\1/
24996             q
24997           }
24998           /^X\/\(\/\).*/{
24999             s//\1/
25000             q
25001           }
25002           s/.*/./; q'`
25003
25004 # Avoid depending upon Character Ranges.
25005 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25006 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25007 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25008 as_cr_digits='0123456789'
25009 as_cr_alnum=$as_cr_Letters$as_cr_digits
25010
25011 ECHO_C= ECHO_N= ECHO_T=
25012 case `echo -n x` in #(((((
25013 -n*)
25014   case `echo 'xy\c'` in
25015   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25016   xy)  ECHO_C='\c';;
25017   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
25018        ECHO_T=' ';;
25019   esac;;
25020 *)
25021   ECHO_N='-n';;
25022 esac
25023
25024 rm -f conf$$ conf$$.exe conf$$.file
25025 if test -d conf$$.dir; then
25026   rm -f conf$$.dir/conf$$.file
25027 else
25028   rm -f conf$$.dir
25029   mkdir conf$$.dir 2>/dev/null
25030 fi
25031 if (echo >conf$$.file) 2>/dev/null; then
25032   if ln -s conf$$.file conf$$ 2>/dev/null; then
25033     as_ln_s='ln -s'
25034     # ... but there are two gotchas:
25035     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25036     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25037     # In both cases, we have to default to `cp -p'.
25038     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25039       as_ln_s='cp -p'
25040   elif ln conf$$.file conf$$ 2>/dev/null; then
25041     as_ln_s=ln
25042   else
25043     as_ln_s='cp -p'
25044   fi
25045 else
25046   as_ln_s='cp -p'
25047 fi
25048 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25049 rmdir conf$$.dir 2>/dev/null
25050
25051
25052 # as_fn_mkdir_p
25053 # -------------
25054 # Create "$as_dir" as a directory, including parents if necessary.
25055 as_fn_mkdir_p ()
25056 {
25057
25058   case $as_dir in #(
25059   -*) as_dir=./$as_dir;;
25060   esac
25061   test -d "$as_dir" || eval $as_mkdir_p || {
25062     as_dirs=
25063     while :; do
25064       case $as_dir in #(
25065       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25066       *) as_qdir=$as_dir;;
25067       esac
25068       as_dirs="'$as_qdir' $as_dirs"
25069       as_dir=`$as_dirname -- "$as_dir" ||
25070 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25071          X"$as_dir" : 'X\(//\)[^/]' \| \
25072          X"$as_dir" : 'X\(//\)$' \| \
25073          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25074 $as_echo X"$as_dir" |
25075     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25076             s//\1/
25077             q
25078           }
25079           /^X\(\/\/\)[^/].*/{
25080             s//\1/
25081             q
25082           }
25083           /^X\(\/\/\)$/{
25084             s//\1/
25085             q
25086           }
25087           /^X\(\/\).*/{
25088             s//\1/
25089             q
25090           }
25091           s/.*/./; q'`
25092       test -d "$as_dir" && break
25093     done
25094     test -z "$as_dirs" || eval "mkdir $as_dirs"
25095   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25096
25097
25098 } # as_fn_mkdir_p
25099 if mkdir -p . 2>/dev/null; then
25100   as_mkdir_p='mkdir -p "$as_dir"'
25101 else
25102   test -d ./-p && rmdir ./-p
25103   as_mkdir_p=false
25104 fi
25105
25106 if test -x / >/dev/null 2>&1; then
25107   as_test_x='test -x'
25108 else
25109   if ls -dL / >/dev/null 2>&1; then
25110     as_ls_L_option=L
25111   else
25112     as_ls_L_option=
25113   fi
25114   as_test_x='
25115     eval sh -c '\''
25116       if test -d "$1"; then
25117         test -d "$1/.";
25118       else
25119         case $1 in #(
25120         -*)set "./$1";;
25121         esac;
25122         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25123         ???[sx]*):;;*)false;;esac;fi
25124     '\'' sh
25125   '
25126 fi
25127 as_executable_p=$as_test_x
25128
25129 # Sed expression to map a string onto a valid CPP name.
25130 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25131
25132 # Sed expression to map a string onto a valid variable name.
25133 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25134
25135
25136 exec 6>&1
25137 ## ----------------------------------- ##
25138 ## Main body of $CONFIG_STATUS script. ##
25139 ## ----------------------------------- ##
25140 _ASEOF
25141 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25142
25143 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25144 # Save the log message, to keep $0 and so on meaningful, and to
25145 # report actual input values of CONFIG_FILES etc. instead of their
25146 # values after options handling.
25147 ac_log="
25148 This file was extended by libjava $as_me version-unused, which was
25149 generated by GNU Autoconf 2.64.  Invocation command line was
25150
25151   CONFIG_FILES    = $CONFIG_FILES
25152   CONFIG_HEADERS  = $CONFIG_HEADERS
25153   CONFIG_LINKS    = $CONFIG_LINKS
25154   CONFIG_COMMANDS = $CONFIG_COMMANDS
25155   $ $0 $@
25156
25157 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25158 "
25159
25160 _ACEOF
25161
25162 case $ac_config_files in *"
25163 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25164 esac
25165
25166 case $ac_config_headers in *"
25167 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25168 esac
25169
25170
25171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25172 # Files that config.status was made for.
25173 config_files="$ac_config_files"
25174 config_headers="$ac_config_headers"
25175 config_links="$ac_config_links"
25176 config_commands="$ac_config_commands"
25177
25178 _ACEOF
25179
25180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25181 ac_cs_usage="\
25182 \`$as_me' instantiates files and other configuration actions
25183 from templates according to the current configuration.  Unless the files
25184 and actions are specified as TAGs, all are instantiated by default.
25185
25186 Usage: $0 [OPTION]... [TAG]...
25187
25188   -h, --help       print this help, then exit
25189   -V, --version    print version number and configuration settings, then exit
25190   -q, --quiet, --silent
25191                    do not print progress messages
25192   -d, --debug      don't remove temporary files
25193       --recheck    update $as_me by reconfiguring in the same conditions
25194       --file=FILE[:TEMPLATE]
25195                    instantiate the configuration file FILE
25196       --header=FILE[:TEMPLATE]
25197                    instantiate the configuration header FILE
25198
25199 Configuration files:
25200 $config_files
25201
25202 Configuration headers:
25203 $config_headers
25204
25205 Configuration links:
25206 $config_links
25207
25208 Configuration commands:
25209 $config_commands
25210
25211 Report bugs to the package provider."
25212
25213 _ACEOF
25214 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25215 ac_cs_version="\\
25216 libjava config.status version-unused
25217 configured by $0, generated by GNU Autoconf 2.64,
25218   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25219
25220 Copyright (C) 2009 Free Software Foundation, Inc.
25221 This config.status script is free software; the Free Software Foundation
25222 gives unlimited permission to copy, distribute and modify it."
25223
25224 ac_pwd='$ac_pwd'
25225 srcdir='$srcdir'
25226 INSTALL='$INSTALL'
25227 MKDIR_P='$MKDIR_P'
25228 AWK='$AWK'
25229 test -n "\$AWK" || AWK=awk
25230 _ACEOF
25231
25232 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25233 # The default lists apply if the user does not specify any file.
25234 ac_need_defaults=:
25235 while test $# != 0
25236 do
25237   case $1 in
25238   --*=*)
25239     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25240     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25241     ac_shift=:
25242     ;;
25243   *)
25244     ac_option=$1
25245     ac_optarg=$2
25246     ac_shift=shift
25247     ;;
25248   esac
25249
25250   case $ac_option in
25251   # Handling of the options.
25252   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25253     ac_cs_recheck=: ;;
25254   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25255     $as_echo "$ac_cs_version"; exit ;;
25256   --debug | --debu | --deb | --de | --d | -d )
25257     debug=: ;;
25258   --file | --fil | --fi | --f )
25259     $ac_shift
25260     case $ac_optarg in
25261     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25262     esac
25263     as_fn_append CONFIG_FILES " '$ac_optarg'"
25264     ac_need_defaults=false;;
25265   --header | --heade | --head | --hea )
25266     $ac_shift
25267     case $ac_optarg in
25268     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25269     esac
25270     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25271     ac_need_defaults=false;;
25272   --he | --h)
25273     # Conflict between --help and --header
25274     as_fn_error "ambiguous option: \`$1'
25275 Try \`$0 --help' for more information.";;
25276   --help | --hel | -h )
25277     $as_echo "$ac_cs_usage"; exit ;;
25278   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25279   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25280     ac_cs_silent=: ;;
25281
25282   # This is an error.
25283   -*) as_fn_error "unrecognized option: \`$1'
25284 Try \`$0 --help' for more information." ;;
25285
25286   *) as_fn_append ac_config_targets " $1"
25287      ac_need_defaults=false ;;
25288
25289   esac
25290   shift
25291 done
25292
25293 ac_configure_extra_args=
25294
25295 if $ac_cs_silent; then
25296   exec 6>/dev/null
25297   ac_configure_extra_args="$ac_configure_extra_args --silent"
25298 fi
25299
25300 _ACEOF
25301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25302 if \$ac_cs_recheck; then
25303   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25304   shift
25305   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25306   CONFIG_SHELL='$SHELL'
25307   export CONFIG_SHELL
25308   exec "\$@"
25309 fi
25310
25311 _ACEOF
25312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25313 exec 5>>config.log
25314 {
25315   echo
25316   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25317 ## Running $as_me. ##
25318 _ASBOX
25319   $as_echo "$ac_log"
25320 } >&5
25321
25322 _ACEOF
25323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25324 #
25325 # INIT-COMMANDS
25326 #
25327
25328 srcdir="$srcdir"
25329 host="$host"
25330 target="$target"
25331 with_multisubdir="$with_multisubdir"
25332 with_multisrctop="$with_multisrctop"
25333 with_target_subdir="$with_target_subdir"
25334 ac_configure_args="${multilib_arg} ${ac_configure_args}"
25335 multi_basedir="$multi_basedir"
25336 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25337 CC="$CC"
25338 CXX="$CXX"
25339 GFORTRAN="$GFORTRAN"
25340 GCJ="$GCJ"
25341 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25342
25343
25344 # The HP-UX ksh and POSIX shell print the target directory to stdout
25345 # if CDPATH is set.
25346 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25347
25348 sed_quote_subst='$sed_quote_subst'
25349 double_quote_subst='$double_quote_subst'
25350 delay_variable_subst='$delay_variable_subst'
25351 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25352 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25353 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25354 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25355 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25356 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25357 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25358 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25359 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25360 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25361 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25362 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25363 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25364 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25365 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25366 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25367 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25368 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25369 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25370 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25371 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25372 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25373 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25374 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25375 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25376 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25377 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25378 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25379 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25380 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25381 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25382 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25383 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25384 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25385 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25386 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25387 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25388 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25389 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25390 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25391 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25392 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25393 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25394 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25395 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25396 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25397 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25398 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25399 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"`'
25400 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25401 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25402 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25403 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25404 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25405 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25406 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25407 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25408 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25409 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25410 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25411 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25412 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25413 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25414 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25415 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25416 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25417 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25418 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25419 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25420 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25421 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25422 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25423 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25424 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25425 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25426 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25427 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25428 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25429 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25430 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25431 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
25432 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25433 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25434 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25435 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25436 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25437 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25438 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25439 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25440 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
25441 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25442 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25443 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25444 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25445 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25446 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25447 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25448 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25449 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25450 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25451 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25452 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25453 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25454 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25455 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25456 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25457 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25458 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25459 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25460 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25461 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25462 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25463 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25464 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25465 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25466 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25467 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25468 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25469 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25470 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25471 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25472 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25473 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25474 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25475 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25476 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25477 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25478 LD_GCJ='`$ECHO "$LD_GCJ" | $SED "$delay_single_quote_subst"`'
25479 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25480 reload_flag_GCJ='`$ECHO "$reload_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25481 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25482 reload_cmds_GCJ='`$ECHO "$reload_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25483 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25484 old_archive_cmds_GCJ='`$ECHO "$old_archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25485 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25486 compiler_GCJ='`$ECHO "$compiler_GCJ" | $SED "$delay_single_quote_subst"`'
25487 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25488 GCC_GCJ='`$ECHO "$GCC_GCJ" | $SED "$delay_single_quote_subst"`'
25489 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25490 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "$lt_prog_compiler_no_builtin_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25491 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25492 lt_prog_compiler_wl_GCJ='`$ECHO "$lt_prog_compiler_wl_GCJ" | $SED "$delay_single_quote_subst"`'
25493 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25494 lt_prog_compiler_pic_GCJ='`$ECHO "$lt_prog_compiler_pic_GCJ" | $SED "$delay_single_quote_subst"`'
25495 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25496 lt_prog_compiler_static_GCJ='`$ECHO "$lt_prog_compiler_static_GCJ" | $SED "$delay_single_quote_subst"`'
25497 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25498 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "$lt_cv_prog_compiler_c_o_GCJ" | $SED "$delay_single_quote_subst"`'
25499 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25500 archive_cmds_need_lc_GCJ='`$ECHO "$archive_cmds_need_lc_GCJ" | $SED "$delay_single_quote_subst"`'
25501 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25502 enable_shared_with_static_runtimes_GCJ='`$ECHO "$enable_shared_with_static_runtimes_GCJ" | $SED "$delay_single_quote_subst"`'
25503 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25504 export_dynamic_flag_spec_GCJ='`$ECHO "$export_dynamic_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25505 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25506 whole_archive_flag_spec_GCJ='`$ECHO "$whole_archive_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25507 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25508 compiler_needs_object_GCJ='`$ECHO "$compiler_needs_object_GCJ" | $SED "$delay_single_quote_subst"`'
25509 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25510 old_archive_from_new_cmds_GCJ='`$ECHO "$old_archive_from_new_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25511 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25512 old_archive_from_expsyms_cmds_GCJ='`$ECHO "$old_archive_from_expsyms_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25513 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25514 archive_cmds_GCJ='`$ECHO "$archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25515 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25516 archive_expsym_cmds_GCJ='`$ECHO "$archive_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25517 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25518 module_cmds_GCJ='`$ECHO "$module_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25519 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25520 module_expsym_cmds_GCJ='`$ECHO "$module_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25521 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25522 with_gnu_ld_GCJ='`$ECHO "$with_gnu_ld_GCJ" | $SED "$delay_single_quote_subst"`'
25523 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25524 allow_undefined_flag_GCJ='`$ECHO "$allow_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25525 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25526 no_undefined_flag_GCJ='`$ECHO "$no_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25527 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25528 hardcode_libdir_flag_spec_GCJ='`$ECHO "$hardcode_libdir_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25529 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
25530 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "$hardcode_libdir_flag_spec_ld_GCJ" | $SED "$delay_single_quote_subst"`'
25531 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25532 hardcode_libdir_separator_GCJ='`$ECHO "$hardcode_libdir_separator_GCJ" | $SED "$delay_single_quote_subst"`'
25533 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25534 hardcode_direct_GCJ='`$ECHO "$hardcode_direct_GCJ" | $SED "$delay_single_quote_subst"`'
25535 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25536 hardcode_direct_absolute_GCJ='`$ECHO "$hardcode_direct_absolute_GCJ" | $SED "$delay_single_quote_subst"`'
25537 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25538 hardcode_minus_L_GCJ='`$ECHO "$hardcode_minus_L_GCJ" | $SED "$delay_single_quote_subst"`'
25539 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25540 hardcode_shlibpath_var_GCJ='`$ECHO "$hardcode_shlibpath_var_GCJ" | $SED "$delay_single_quote_subst"`'
25541 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25542 hardcode_automatic_GCJ='`$ECHO "$hardcode_automatic_GCJ" | $SED "$delay_single_quote_subst"`'
25543 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25544 inherit_rpath_GCJ='`$ECHO "$inherit_rpath_GCJ" | $SED "$delay_single_quote_subst"`'
25545 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25546 link_all_deplibs_GCJ='`$ECHO "$link_all_deplibs_GCJ" | $SED "$delay_single_quote_subst"`'
25547 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
25548 fix_srcfile_path_GCJ='`$ECHO "$fix_srcfile_path_GCJ" | $SED "$delay_single_quote_subst"`'
25549 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25550 always_export_symbols_GCJ='`$ECHO "$always_export_symbols_GCJ" | $SED "$delay_single_quote_subst"`'
25551 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25552 export_symbols_cmds_GCJ='`$ECHO "$export_symbols_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25553 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25554 exclude_expsyms_GCJ='`$ECHO "$exclude_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
25555 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25556 include_expsyms_GCJ='`$ECHO "$include_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
25557 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25558 prelink_cmds_GCJ='`$ECHO "$prelink_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25559 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
25560 file_list_spec_GCJ='`$ECHO "$file_list_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25561 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
25562 hardcode_action_GCJ='`$ECHO "$hardcode_action_GCJ" | $SED "$delay_single_quote_subst"`'
25563 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
25564 compiler_lib_search_dirs_GCJ='`$ECHO "$compiler_lib_search_dirs_GCJ" | $SED "$delay_single_quote_subst"`'
25565 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25566 predep_objects_GCJ='`$ECHO "$predep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
25567 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25568 postdep_objects_GCJ='`$ECHO "$postdep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
25569 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
25570 predeps_GCJ='`$ECHO "$predeps_GCJ" | $SED "$delay_single_quote_subst"`'
25571 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
25572 postdeps_GCJ='`$ECHO "$postdeps_GCJ" | $SED "$delay_single_quote_subst"`'
25573 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
25574 compiler_lib_search_path_GCJ='`$ECHO "$compiler_lib_search_path_GCJ" | $SED "$delay_single_quote_subst"`'
25575
25576 LTCC='$LTCC'
25577 LTCFLAGS='$LTCFLAGS'
25578 compiler='$compiler_DEFAULT'
25579
25580 # A function that is used when there is no print builtin or printf.
25581 func_fallback_echo ()
25582 {
25583   eval 'cat <<_LTECHO_EOF
25584 \$1
25585 _LTECHO_EOF'
25586 }
25587
25588 # Quote evaled strings.
25589 for var in SHELL \
25590 ECHO \
25591 SED \
25592 GREP \
25593 EGREP \
25594 FGREP \
25595 LD \
25596 NM \
25597 LN_S \
25598 lt_SP2NL \
25599 lt_NL2SP \
25600 reload_flag \
25601 OBJDUMP \
25602 deplibs_check_method \
25603 file_magic_cmd \
25604 AR \
25605 AR_FLAGS \
25606 STRIP \
25607 RANLIB \
25608 CC \
25609 CFLAGS \
25610 compiler \
25611 lt_cv_sys_global_symbol_pipe \
25612 lt_cv_sys_global_symbol_to_cdecl \
25613 lt_cv_sys_global_symbol_to_c_name_address \
25614 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25615 lt_prog_compiler_no_builtin_flag \
25616 lt_prog_compiler_wl \
25617 lt_prog_compiler_pic \
25618 lt_prog_compiler_static \
25619 lt_cv_prog_compiler_c_o \
25620 need_locks \
25621 DSYMUTIL \
25622 NMEDIT \
25623 LIPO \
25624 OTOOL \
25625 OTOOL64 \
25626 shrext_cmds \
25627 export_dynamic_flag_spec \
25628 whole_archive_flag_spec \
25629 compiler_needs_object \
25630 with_gnu_ld \
25631 allow_undefined_flag \
25632 no_undefined_flag \
25633 hardcode_libdir_flag_spec \
25634 hardcode_libdir_flag_spec_ld \
25635 hardcode_libdir_separator \
25636 fix_srcfile_path \
25637 exclude_expsyms \
25638 include_expsyms \
25639 file_list_spec \
25640 variables_saved_for_relink \
25641 libname_spec \
25642 library_names_spec \
25643 soname_spec \
25644 install_override_mode \
25645 finish_eval \
25646 old_striplib \
25647 striplib \
25648 compiler_lib_search_dirs \
25649 predep_objects \
25650 postdep_objects \
25651 predeps \
25652 postdeps \
25653 compiler_lib_search_path \
25654 LD_CXX \
25655 LD_GCJ \
25656 reload_flag_CXX \
25657 reload_flag_GCJ \
25658 compiler_CXX \
25659 compiler_GCJ \
25660 lt_prog_compiler_no_builtin_flag_CXX \
25661 lt_prog_compiler_no_builtin_flag_GCJ \
25662 lt_prog_compiler_wl_CXX \
25663 lt_prog_compiler_wl_GCJ \
25664 lt_prog_compiler_pic_CXX \
25665 lt_prog_compiler_pic_GCJ \
25666 lt_prog_compiler_static_CXX \
25667 lt_prog_compiler_static_GCJ \
25668 lt_cv_prog_compiler_c_o_CXX \
25669 lt_cv_prog_compiler_c_o_GCJ \
25670 export_dynamic_flag_spec_CXX \
25671 export_dynamic_flag_spec_GCJ \
25672 whole_archive_flag_spec_CXX \
25673 whole_archive_flag_spec_GCJ \
25674 compiler_needs_object_CXX \
25675 compiler_needs_object_GCJ \
25676 with_gnu_ld_CXX \
25677 with_gnu_ld_GCJ \
25678 allow_undefined_flag_CXX \
25679 allow_undefined_flag_GCJ \
25680 no_undefined_flag_CXX \
25681 no_undefined_flag_GCJ \
25682 hardcode_libdir_flag_spec_CXX \
25683 hardcode_libdir_flag_spec_GCJ \
25684 hardcode_libdir_flag_spec_ld_CXX \
25685 hardcode_libdir_flag_spec_ld_GCJ \
25686 hardcode_libdir_separator_CXX \
25687 hardcode_libdir_separator_GCJ \
25688 fix_srcfile_path_CXX \
25689 fix_srcfile_path_GCJ \
25690 exclude_expsyms_CXX \
25691 exclude_expsyms_GCJ \
25692 include_expsyms_CXX \
25693 include_expsyms_GCJ \
25694 file_list_spec_CXX \
25695 file_list_spec_GCJ \
25696 compiler_lib_search_dirs_CXX \
25697 compiler_lib_search_dirs_GCJ \
25698 predep_objects_CXX \
25699 predep_objects_GCJ \
25700 postdep_objects_CXX \
25701 postdep_objects_GCJ \
25702 predeps_CXX \
25703 predeps_GCJ \
25704 postdeps_CXX \
25705 postdeps_GCJ \
25706 compiler_lib_search_path_CXX \
25707 compiler_lib_search_path_GCJ; do
25708     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25709     *[\\\\\\\`\\"\\\$]*)
25710       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
25711       ;;
25712     *)
25713       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25714       ;;
25715     esac
25716 done
25717
25718 # Double-quote double-evaled strings.
25719 for var in reload_cmds \
25720 old_postinstall_cmds \
25721 old_postuninstall_cmds \
25722 old_archive_cmds \
25723 extract_expsyms_cmds \
25724 old_archive_from_new_cmds \
25725 old_archive_from_expsyms_cmds \
25726 archive_cmds \
25727 archive_expsym_cmds \
25728 module_cmds \
25729 module_expsym_cmds \
25730 export_symbols_cmds \
25731 prelink_cmds \
25732 postinstall_cmds \
25733 postuninstall_cmds \
25734 finish_cmds \
25735 sys_lib_search_path_spec \
25736 sys_lib_dlsearch_path_spec \
25737 reload_cmds_CXX \
25738 reload_cmds_GCJ \
25739 old_archive_cmds_CXX \
25740 old_archive_cmds_GCJ \
25741 old_archive_from_new_cmds_CXX \
25742 old_archive_from_new_cmds_GCJ \
25743 old_archive_from_expsyms_cmds_CXX \
25744 old_archive_from_expsyms_cmds_GCJ \
25745 archive_cmds_CXX \
25746 archive_cmds_GCJ \
25747 archive_expsym_cmds_CXX \
25748 archive_expsym_cmds_GCJ \
25749 module_cmds_CXX \
25750 module_cmds_GCJ \
25751 module_expsym_cmds_CXX \
25752 module_expsym_cmds_GCJ \
25753 export_symbols_cmds_CXX \
25754 export_symbols_cmds_GCJ \
25755 prelink_cmds_CXX \
25756 prelink_cmds_GCJ; do
25757     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25758     *[\\\\\\\`\\"\\\$]*)
25759       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
25760       ;;
25761     *)
25762       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25763       ;;
25764     esac
25765 done
25766
25767 ac_aux_dir='$ac_aux_dir'
25768 xsi_shell='$xsi_shell'
25769 lt_shell_append='$lt_shell_append'
25770
25771 # See if we are running on zsh, and set the options which allow our
25772 # commands through without removal of \ escapes INIT.
25773 if test -n "\${ZSH_VERSION+set}" ; then
25774    setopt NO_GLOB_SUBST
25775 fi
25776
25777
25778     PACKAGE='$PACKAGE'
25779     VERSION='$VERSION'
25780     TIMESTAMP='$TIMESTAMP'
25781     RM='$RM'
25782     ofile='$ofile'
25783
25784
25785
25786
25787
25788
25789
25790
25791 _ACEOF
25792
25793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25794
25795 # Handling of arguments.
25796 for ac_config_target in $ac_config_targets
25797 do
25798   case $ac_config_target in
25799     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
25800     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25801     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
25802     "gcj/libgcj-config.h") CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
25803     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25804     "include/platform.h") CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
25805     "java/io/natFile.cc") CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
25806     "java/lang/natConcreteProcess.cc") CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
25807     "java/net/natVMInetAddress.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
25808     "java/net/natVMNetworkInterface.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
25809     "gnu/java/net/natPlainSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
25810     "gnu/java/net/natPlainDatagramSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
25811     "gnu/java/nio/natVMPipe.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
25812     "gnu/java/nio/natVMSelector.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
25813     "gnu/java/nio/channels/natFileChannelImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
25814     "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" ;;
25815     "include/java-gc.h") CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
25816     "include/java-threads.h") CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
25817     "sysdep/locks.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
25818     "sysdep/backtrace.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
25819     "sysdep/descriptor.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
25820     "include/java-signal.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
25821     "include/java-signal-aux.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
25822     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25823     "libgcj.pc") CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
25824     "libgcj.spec") CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
25825     "libgcj-test.spec") CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
25826     "gcj/Makefile") CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
25827     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25828     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
25829     "contrib/aotcompile.py") CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
25830     "contrib/aot-compile") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
25831     "contrib/aot-compile-rpm") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
25832     "contrib/generate-cacerts.pl") CONFIG_FILES="$CONFIG_FILES contrib/generate-cacerts.pl" ;;
25833     "contrib/rebuild-gcj-db") CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
25834     "scripts/jar") CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
25835
25836   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25837   esac
25838 done
25839
25840
25841 # If the user did not use the arguments to specify the items to instantiate,
25842 # then the envvar interface is used.  Set only those that are not.
25843 # We use the long form for the default assignment because of an extremely
25844 # bizarre bug on SunOS 4.1.3.
25845 if $ac_need_defaults; then
25846   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25847   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25848   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25849   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25850 fi
25851
25852 # Have a temporary directory for convenience.  Make it in the build tree
25853 # simply because there is no reason against having it here, and in addition,
25854 # creating and moving files from /tmp can sometimes cause problems.
25855 # Hook for its removal unless debugging.
25856 # Note that there is a small window in which the directory will not be cleaned:
25857 # after its creation but before its name has been assigned to `$tmp'.
25858 $debug ||
25859 {
25860   tmp=
25861   trap 'exit_status=$?
25862   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25863 ' 0
25864   trap 'as_fn_exit 1' 1 2 13 15
25865 }
25866 # Create a (secure) tmp directory for tmp files.
25867
25868 {
25869   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25870   test -n "$tmp" && test -d "$tmp"
25871 }  ||
25872 {
25873   tmp=./conf$$-$RANDOM
25874   (umask 077 && mkdir "$tmp")
25875 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25876
25877 # Set up the scripts for CONFIG_FILES section.
25878 # No need to generate them if there are no CONFIG_FILES.
25879 # This happens for instance with `./config.status config.h'.
25880 if test -n "$CONFIG_FILES"; then
25881
25882
25883 ac_cr=`echo X | tr X '\015'`
25884 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25885 # But we know of no other shell where ac_cr would be empty at this
25886 # point, so we can use a bashism as a fallback.
25887 if test "x$ac_cr" = x; then
25888   eval ac_cr=\$\'\\r\'
25889 fi
25890 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25891 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25892   ac_cs_awk_cr='\r'
25893 else
25894   ac_cs_awk_cr=$ac_cr
25895 fi
25896
25897 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25898 _ACEOF
25899
25900
25901 {
25902   echo "cat >conf$$subs.awk <<_ACEOF" &&
25903   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25904   echo "_ACEOF"
25905 } >conf$$subs.sh ||
25906   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25907 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25908 ac_delim='%!_!# '
25909 for ac_last_try in false false false false false :; do
25910   . ./conf$$subs.sh ||
25911     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25912
25913   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25914   if test $ac_delim_n = $ac_delim_num; then
25915     break
25916   elif $ac_last_try; then
25917     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25918   else
25919     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25920   fi
25921 done
25922 rm -f conf$$subs.sh
25923
25924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25925 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25926 _ACEOF
25927 sed -n '
25928 h
25929 s/^/S["/; s/!.*/"]=/
25930 p
25931 g
25932 s/^[^!]*!//
25933 :repl
25934 t repl
25935 s/'"$ac_delim"'$//
25936 t delim
25937 :nl
25938 h
25939 s/\(.\{148\}\).*/\1/
25940 t more1
25941 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25942 p
25943 n
25944 b repl
25945 :more1
25946 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25947 p
25948 g
25949 s/.\{148\}//
25950 t nl
25951 :delim
25952 h
25953 s/\(.\{148\}\).*/\1/
25954 t more2
25955 s/["\\]/\\&/g; s/^/"/; s/$/"/
25956 p
25957 b
25958 :more2
25959 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25960 p
25961 g
25962 s/.\{148\}//
25963 t delim
25964 ' <conf$$subs.awk | sed '
25965 /^[^""]/{
25966   N
25967   s/\n//
25968 }
25969 ' >>$CONFIG_STATUS || ac_write_fail=1
25970 rm -f conf$$subs.awk
25971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25972 _ACAWK
25973 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25974   for (key in S) S_is_set[key] = 1
25975   FS = "\a"
25976
25977 }
25978 {
25979   line = $ 0
25980   nfields = split(line, field, "@")
25981   substed = 0
25982   len = length(field[1])
25983   for (i = 2; i < nfields; i++) {
25984     key = field[i]
25985     keylen = length(key)
25986     if (S_is_set[key]) {
25987       value = S[key]
25988       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25989       len += length(value) + length(field[++i])
25990       substed = 1
25991     } else
25992       len += 1 + keylen
25993   }
25994
25995   print line
25996 }
25997
25998 _ACAWK
25999 _ACEOF
26000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26001 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26002   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26003 else
26004   cat
26005 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26006   || as_fn_error "could not setup config files machinery" "$LINENO" 5
26007 _ACEOF
26008
26009 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26010 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26011 # trailing colons and then remove the whole line if VPATH becomes empty
26012 # (actually we leave an empty line to preserve line numbers).
26013 if test "x$srcdir" = x.; then
26014   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26015 s/:*\$(srcdir):*/:/
26016 s/:*\${srcdir}:*/:/
26017 s/:*@srcdir@:*/:/
26018 s/^\([^=]*=[     ]*\):*/\1/
26019 s/:*$//
26020 s/^[^=]*=[       ]*$//
26021 }'
26022 fi
26023
26024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26025 fi # test -n "$CONFIG_FILES"
26026
26027 # Set up the scripts for CONFIG_HEADERS section.
26028 # No need to generate them if there are no CONFIG_HEADERS.
26029 # This happens for instance with `./config.status Makefile'.
26030 if test -n "$CONFIG_HEADERS"; then
26031 cat >"$tmp/defines.awk" <<\_ACAWK ||
26032 BEGIN {
26033 _ACEOF
26034
26035 # Transform confdefs.h into an awk script `defines.awk', embedded as
26036 # here-document in config.status, that substitutes the proper values into
26037 # config.h.in to produce config.h.
26038
26039 # Create a delimiter string that does not exist in confdefs.h, to ease
26040 # handling of long lines.
26041 ac_delim='%!_!# '
26042 for ac_last_try in false false :; do
26043   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26044   if test -z "$ac_t"; then
26045     break
26046   elif $ac_last_try; then
26047     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26048   else
26049     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26050   fi
26051 done
26052
26053 # For the awk script, D is an array of macro values keyed by name,
26054 # likewise P contains macro parameters if any.  Preserve backslash
26055 # newline sequences.
26056
26057 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26058 sed -n '
26059 s/.\{148\}/&'"$ac_delim"'/g
26060 t rset
26061 :rset
26062 s/^[     ]*#[    ]*define[       ][      ]*/ /
26063 t def
26064 d
26065 :def
26066 s/\\$//
26067 t bsnl
26068 s/["\\]/\\&/g
26069 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26070 D["\1"]=" \3"/p
26071 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
26072 d
26073 :bsnl
26074 s/["\\]/\\&/g
26075 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26076 D["\1"]=" \3\\\\\\n"\\/p
26077 t cont
26078 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26079 t cont
26080 d
26081 :cont
26082 n
26083 s/.\{148\}/&'"$ac_delim"'/g
26084 t clear
26085 :clear
26086 s/\\$//
26087 t bsnlc
26088 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26089 d
26090 :bsnlc
26091 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26092 b cont
26093 ' <confdefs.h | sed '
26094 s/'"$ac_delim"'/"\\\
26095 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26096
26097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26098   for (key in D) D_is_set[key] = 1
26099   FS = "\a"
26100 }
26101 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26102   line = \$ 0
26103   split(line, arg, " ")
26104   if (arg[1] == "#") {
26105     defundef = arg[2]
26106     mac1 = arg[3]
26107   } else {
26108     defundef = substr(arg[1], 2)
26109     mac1 = arg[2]
26110   }
26111   split(mac1, mac2, "(") #)
26112   macro = mac2[1]
26113   prefix = substr(line, 1, index(line, defundef) - 1)
26114   if (D_is_set[macro]) {
26115     # Preserve the white space surrounding the "#".
26116     print prefix "define", macro P[macro] D[macro]
26117     next
26118   } else {
26119     # Replace #undef with comments.  This is necessary, for example,
26120     # in the case of _POSIX_SOURCE, which is predefined and required
26121     # on some systems where configure will not decide to define it.
26122     if (defundef == "undef") {
26123       print "/*", prefix defundef, macro, "*/"
26124       next
26125     }
26126   }
26127 }
26128 { print }
26129 _ACAWK
26130 _ACEOF
26131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26132   as_fn_error "could not setup config headers machinery" "$LINENO" 5
26133 fi # test -n "$CONFIG_HEADERS"
26134
26135
26136 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
26137 shift
26138 for ac_tag
26139 do
26140   case $ac_tag in
26141   :[FHLC]) ac_mode=$ac_tag; continue;;
26142   esac
26143   case $ac_mode$ac_tag in
26144   :[FHL]*:*);;
26145   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26146   :[FH]-) ac_tag=-:-;;
26147   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26148   esac
26149   ac_save_IFS=$IFS
26150   IFS=:
26151   set x $ac_tag
26152   IFS=$ac_save_IFS
26153   shift
26154   ac_file=$1
26155   shift
26156
26157   case $ac_mode in
26158   :L) ac_source=$1;;
26159   :[FH])
26160     ac_file_inputs=
26161     for ac_f
26162     do
26163       case $ac_f in
26164       -) ac_f="$tmp/stdin";;
26165       *) # Look for the file first in the build tree, then in the source tree
26166          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26167          # because $ac_f cannot contain `:'.
26168          test -f "$ac_f" ||
26169            case $ac_f in
26170            [\\/$]*) false;;
26171            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26172            esac ||
26173            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26174       esac
26175       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26176       as_fn_append ac_file_inputs " '$ac_f'"
26177     done
26178
26179     # Let's still pretend it is `configure' which instantiates (i.e., don't
26180     # use $as_me), people would be surprised to read:
26181     #    /* config.h.  Generated by config.status.  */
26182     configure_input='Generated from '`
26183           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26184         `' by configure.'
26185     if test x"$ac_file" != x-; then
26186       configure_input="$ac_file.  $configure_input"
26187       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26188 $as_echo "$as_me: creating $ac_file" >&6;}
26189     fi
26190     # Neutralize special characters interpreted by sed in replacement strings.
26191     case $configure_input in #(
26192     *\&* | *\|* | *\\* )
26193        ac_sed_conf_input=`$as_echo "$configure_input" |
26194        sed 's/[\\\\&|]/\\\\&/g'`;; #(
26195     *) ac_sed_conf_input=$configure_input;;
26196     esac
26197
26198     case $ac_tag in
26199     *:-:* | *:-) cat >"$tmp/stdin" \
26200       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26201     esac
26202     ;;
26203   esac
26204
26205   ac_dir=`$as_dirname -- "$ac_file" ||
26206 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26207          X"$ac_file" : 'X\(//\)[^/]' \| \
26208          X"$ac_file" : 'X\(//\)$' \| \
26209          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26210 $as_echo X"$ac_file" |
26211     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26212             s//\1/
26213             q
26214           }
26215           /^X\(\/\/\)[^/].*/{
26216             s//\1/
26217             q
26218           }
26219           /^X\(\/\/\)$/{
26220             s//\1/
26221             q
26222           }
26223           /^X\(\/\).*/{
26224             s//\1/
26225             q
26226           }
26227           s/.*/./; q'`
26228   as_dir="$ac_dir"; as_fn_mkdir_p
26229   ac_builddir=.
26230
26231 case "$ac_dir" in
26232 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26233 *)
26234   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26235   # A ".." for each directory in $ac_dir_suffix.
26236   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26237   case $ac_top_builddir_sub in
26238   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26239   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26240   esac ;;
26241 esac
26242 ac_abs_top_builddir=$ac_pwd
26243 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26244 # for backward compatibility:
26245 ac_top_builddir=$ac_top_build_prefix
26246
26247 case $srcdir in
26248   .)  # We are building in place.
26249     ac_srcdir=.
26250     ac_top_srcdir=$ac_top_builddir_sub
26251     ac_abs_top_srcdir=$ac_pwd ;;
26252   [\\/]* | ?:[\\/]* )  # Absolute name.
26253     ac_srcdir=$srcdir$ac_dir_suffix;
26254     ac_top_srcdir=$srcdir
26255     ac_abs_top_srcdir=$srcdir ;;
26256   *) # Relative name.
26257     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26258     ac_top_srcdir=$ac_top_build_prefix$srcdir
26259     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26260 esac
26261 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26262
26263
26264   case $ac_mode in
26265   :F)
26266   #
26267   # CONFIG_FILE
26268   #
26269
26270   case $INSTALL in
26271   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26272   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26273   esac
26274   ac_MKDIR_P=$MKDIR_P
26275   case $MKDIR_P in
26276   [\\/$]* | ?:[\\/]* ) ;;
26277   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26278   esac
26279 _ACEOF
26280
26281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26282 # If the template does not know about datarootdir, expand it.
26283 # FIXME: This hack should be removed a few years after 2.60.
26284 ac_datarootdir_hack=; ac_datarootdir_seen=
26285 ac_sed_dataroot='
26286 /datarootdir/ {
26287   p
26288   q
26289 }
26290 /@datadir@/p
26291 /@docdir@/p
26292 /@infodir@/p
26293 /@localedir@/p
26294 /@mandir@/p'
26295 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26296 *datarootdir*) ac_datarootdir_seen=yes;;
26297 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26298   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26299 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26300 _ACEOF
26301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26302   ac_datarootdir_hack='
26303   s&@datadir@&$datadir&g
26304   s&@docdir@&$docdir&g
26305   s&@infodir@&$infodir&g
26306   s&@localedir@&$localedir&g
26307   s&@mandir@&$mandir&g
26308   s&\\\${datarootdir}&$datarootdir&g' ;;
26309 esac
26310 _ACEOF
26311
26312 # Neutralize VPATH when `$srcdir' = `.'.
26313 # Shell code in configure.ac might set extrasub.
26314 # FIXME: do we really want to maintain this feature?
26315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26316 ac_sed_extra="$ac_vpsub
26317 $extrasub
26318 _ACEOF
26319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26320 :t
26321 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26322 s|@configure_input@|$ac_sed_conf_input|;t t
26323 s&@top_builddir@&$ac_top_builddir_sub&;t t
26324 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26325 s&@srcdir@&$ac_srcdir&;t t
26326 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26327 s&@top_srcdir@&$ac_top_srcdir&;t t
26328 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26329 s&@builddir@&$ac_builddir&;t t
26330 s&@abs_builddir@&$ac_abs_builddir&;t t
26331 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26332 s&@INSTALL@&$ac_INSTALL&;t t
26333 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26334 $ac_datarootdir_hack
26335 "
26336 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26337   || as_fn_error "could not create $ac_file" "$LINENO" 5
26338
26339 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26340   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26341   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26342   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26343 which seems to be undefined.  Please make sure it is defined." >&5
26344 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26345 which seems to be undefined.  Please make sure it is defined." >&2;}
26346
26347   rm -f "$tmp/stdin"
26348   case $ac_file in
26349   -) cat "$tmp/out" && rm -f "$tmp/out";;
26350   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26351   esac \
26352   || as_fn_error "could not create $ac_file" "$LINENO" 5
26353  ;;
26354   :H)
26355   #
26356   # CONFIG_HEADER
26357   #
26358   if test x"$ac_file" != x-; then
26359     {
26360       $as_echo "/* $configure_input  */" \
26361       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26362     } >"$tmp/config.h" \
26363       || as_fn_error "could not create $ac_file" "$LINENO" 5
26364     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26365       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26366 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26367     else
26368       rm -f "$ac_file"
26369       mv "$tmp/config.h" "$ac_file" \
26370         || as_fn_error "could not create $ac_file" "$LINENO" 5
26371     fi
26372   else
26373     $as_echo "/* $configure_input  */" \
26374       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26375       || as_fn_error "could not create -" "$LINENO" 5
26376   fi
26377 # Compute "$ac_file"'s index in $config_headers.
26378 _am_arg="$ac_file"
26379 _am_stamp_count=1
26380 for _am_header in $config_headers :; do
26381   case $_am_header in
26382     $_am_arg | $_am_arg:* )
26383       break ;;
26384     * )
26385       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26386   esac
26387 done
26388 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26389 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26390          X"$_am_arg" : 'X\(//\)[^/]' \| \
26391          X"$_am_arg" : 'X\(//\)$' \| \
26392          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26393 $as_echo X"$_am_arg" |
26394     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26395             s//\1/
26396             q
26397           }
26398           /^X\(\/\/\)[^/].*/{
26399             s//\1/
26400             q
26401           }
26402           /^X\(\/\/\)$/{
26403             s//\1/
26404             q
26405           }
26406           /^X\(\/\).*/{
26407             s//\1/
26408             q
26409           }
26410           s/.*/./; q'`/stamp-h$_am_stamp_count
26411  ;;
26412   :L)
26413   #
26414   # CONFIG_LINK
26415   #
26416
26417   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
26418     :
26419   else
26420     # Prefer the file from the source tree if names are identical.
26421     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
26422       ac_source=$srcdir/$ac_source
26423     fi
26424
26425     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
26426 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
26427
26428     if test ! -r "$ac_source"; then
26429       as_fn_error "$ac_source: file not found" "$LINENO" 5
26430     fi
26431     rm -f "$ac_file"
26432
26433     # Try a relative symlink, then a hard link, then a copy.
26434     case $srcdir in
26435     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
26436         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
26437     esac
26438     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26439       ln "$ac_source" "$ac_file" 2>/dev/null ||
26440       cp -p "$ac_source" "$ac_file" ||
26441       as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
26442   fi
26443  ;;
26444   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26445 $as_echo "$as_me: executing $ac_file commands" >&6;}
26446  ;;
26447   esac
26448
26449
26450   case $ac_file$ac_mode in
26451     "default-1":C)
26452 # Only add multilib support code if we just rebuilt the top-level
26453 # Makefile.
26454 case " $CONFIG_FILES " in
26455  *" Makefile "*)
26456    ac_file=Makefile . ${multi_basedir}/config-ml.in
26457    ;;
26458 esac ;;
26459     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26460   # Autoconf 2.62 quotes --file arguments for eval, but not when files
26461   # are listed without --file.  Let's play safe and only enable the eval
26462   # if we detect the quoting.
26463   case $CONFIG_FILES in
26464   *\'*) eval set x "$CONFIG_FILES" ;;
26465   *)   set x $CONFIG_FILES ;;
26466   esac
26467   shift
26468   for mf
26469   do
26470     # Strip MF so we end up with the name of the file.
26471     mf=`echo "$mf" | sed -e 's/:.*$//'`
26472     # Check whether this is an Automake generated Makefile or not.
26473     # We used to match only the files named `Makefile.in', but
26474     # some people rename them; so instead we look at the file content.
26475     # Grep'ing the first line is not enough: some people post-process
26476     # each Makefile.in and add a new line on top of each file to say so.
26477     # Grep'ing the whole file is not good either: AIX grep has a line
26478     # limit of 2048, but all sed's we know have understand at least 4000.
26479     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26480       dirpart=`$as_dirname -- "$mf" ||
26481 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26482          X"$mf" : 'X\(//\)[^/]' \| \
26483          X"$mf" : 'X\(//\)$' \| \
26484          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26485 $as_echo X"$mf" |
26486     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26487             s//\1/
26488             q
26489           }
26490           /^X\(\/\/\)[^/].*/{
26491             s//\1/
26492             q
26493           }
26494           /^X\(\/\/\)$/{
26495             s//\1/
26496             q
26497           }
26498           /^X\(\/\).*/{
26499             s//\1/
26500             q
26501           }
26502           s/.*/./; q'`
26503     else
26504       continue
26505     fi
26506     # Extract the definition of DEPDIR, am__include, and am__quote
26507     # from the Makefile without running `make'.
26508     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26509     test -z "$DEPDIR" && continue
26510     am__include=`sed -n 's/^am__include = //p' < "$mf"`
26511     test -z "am__include" && continue
26512     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26513     # When using ansi2knr, U may be empty or an underscore; expand it
26514     U=`sed -n 's/^U = //p' < "$mf"`
26515     # Find all dependency output files, they are included files with
26516     # $(DEPDIR) in their names.  We invoke sed twice because it is the
26517     # simplest approach to changing $(DEPDIR) to its actual value in the
26518     # expansion.
26519     for file in `sed -n "
26520       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26521          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26522       # Make sure the directory exists.
26523       test -f "$dirpart/$file" && continue
26524       fdir=`$as_dirname -- "$file" ||
26525 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26526          X"$file" : 'X\(//\)[^/]' \| \
26527          X"$file" : 'X\(//\)$' \| \
26528          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26529 $as_echo X"$file" |
26530     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26531             s//\1/
26532             q
26533           }
26534           /^X\(\/\/\)[^/].*/{
26535             s//\1/
26536             q
26537           }
26538           /^X\(\/\/\)$/{
26539             s//\1/
26540             q
26541           }
26542           /^X\(\/\).*/{
26543             s//\1/
26544             q
26545           }
26546           s/.*/./; q'`
26547       as_dir=$dirpart/$fdir; as_fn_mkdir_p
26548       # echo "creating $dirpart/$file"
26549       echo '# dummy' > "$dirpart/$file"
26550     done
26551   done
26552 }
26553  ;;
26554     "libtool":C)
26555
26556     # See if we are running on zsh, and set the options which allow our
26557     # commands through without removal of \ escapes.
26558     if test -n "${ZSH_VERSION+set}" ; then
26559       setopt NO_GLOB_SUBST
26560     fi
26561
26562     cfgfile="${ofile}T"
26563     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26564     $RM "$cfgfile"
26565
26566     cat <<_LT_EOF >> "$cfgfile"
26567 #! $SHELL
26568
26569 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26570 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26571 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26572 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26573 #
26574 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26575 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
26576 #   Written by Gordon Matzigkeit, 1996
26577 #
26578 #   This file is part of GNU Libtool.
26579 #
26580 # GNU Libtool is free software; you can redistribute it and/or
26581 # modify it under the terms of the GNU General Public License as
26582 # published by the Free Software Foundation; either version 2 of
26583 # the License, or (at your option) any later version.
26584 #
26585 # As a special exception to the GNU General Public License,
26586 # if you distribute this file as part of a program or library that
26587 # is built using GNU Libtool, you may include this file under the
26588 # same distribution terms that you use for the rest of that program.
26589 #
26590 # GNU Libtool is distributed in the hope that it will be useful,
26591 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26592 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26593 # GNU General Public License for more details.
26594 #
26595 # You should have received a copy of the GNU General Public License
26596 # along with GNU Libtool; see the file COPYING.  If not, a copy
26597 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26598 # obtained by writing to the Free Software Foundation, Inc.,
26599 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26600
26601
26602 # The names of the tagged configurations supported by this script.
26603 available_tags="CXX GCJ "
26604
26605 # ### BEGIN LIBTOOL CONFIG
26606
26607 # Which release of libtool.m4 was used?
26608 macro_version=$macro_version
26609 macro_revision=$macro_revision
26610
26611 # Whether or not to build shared libraries.
26612 build_libtool_libs=$enable_shared
26613
26614 # Whether or not to build static libraries.
26615 build_old_libs=$enable_static
26616
26617 # What type of objects to build.
26618 pic_mode=$pic_mode
26619
26620 # Whether or not to optimize for fast installation.
26621 fast_install=$enable_fast_install
26622
26623 # Shell to use when invoking shell scripts.
26624 SHELL=$lt_SHELL
26625
26626 # An echo program that protects backslashes.
26627 ECHO=$lt_ECHO
26628
26629 # The host system.
26630 host_alias=$host_alias
26631 host=$host
26632 host_os=$host_os
26633
26634 # The build system.
26635 build_alias=$build_alias
26636 build=$build
26637 build_os=$build_os
26638
26639 # A sed program that does not truncate output.
26640 SED=$lt_SED
26641
26642 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26643 Xsed="\$SED -e 1s/^X//"
26644
26645 # A grep program that handles long lines.
26646 GREP=$lt_GREP
26647
26648 # An ERE matcher.
26649 EGREP=$lt_EGREP
26650
26651 # A literal string matcher.
26652 FGREP=$lt_FGREP
26653
26654 # A BSD- or MS-compatible name lister.
26655 NM=$lt_NM
26656
26657 # Whether we need soft or hard links.
26658 LN_S=$lt_LN_S
26659
26660 # What is the maximum length of a command?
26661 max_cmd_len=$max_cmd_len
26662
26663 # Object file suffix (normally "o").
26664 objext=$ac_objext
26665
26666 # Executable file suffix (normally "").
26667 exeext=$exeext
26668
26669 # whether the shell understands "unset".
26670 lt_unset=$lt_unset
26671
26672 # turn spaces into newlines.
26673 SP2NL=$lt_lt_SP2NL
26674
26675 # turn newlines into spaces.
26676 NL2SP=$lt_lt_NL2SP
26677
26678 # An object symbol dumper.
26679 OBJDUMP=$lt_OBJDUMP
26680
26681 # Method to check whether dependent libraries are shared objects.
26682 deplibs_check_method=$lt_deplibs_check_method
26683
26684 # Command to use when deplibs_check_method == "file_magic".
26685 file_magic_cmd=$lt_file_magic_cmd
26686
26687 # The archiver.
26688 AR=$lt_AR
26689 AR_FLAGS=$lt_AR_FLAGS
26690
26691 # A symbol stripping program.
26692 STRIP=$lt_STRIP
26693
26694 # Commands used to install an old-style archive.
26695 RANLIB=$lt_RANLIB
26696 old_postinstall_cmds=$lt_old_postinstall_cmds
26697 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26698
26699 # Whether to use a lock for old archive extraction.
26700 lock_old_archive_extraction=$lock_old_archive_extraction
26701
26702 # A C compiler.
26703 LTCC=$lt_CC
26704
26705 # LTCC compiler flags.
26706 LTCFLAGS=$lt_CFLAGS
26707
26708 # Take the output of nm and produce a listing of raw symbols and C names.
26709 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26710
26711 # Transform the output of nm in a proper C declaration.
26712 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26713
26714 # Transform the output of nm in a C name address pair.
26715 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26716
26717 # Transform the output of nm in a C name address pair when lib prefix is needed.
26718 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26719
26720 # The name of the directory that contains temporary libtool files.
26721 objdir=$objdir
26722
26723 # Used to examine libraries when file_magic_cmd begins with "file".
26724 MAGIC_CMD=$MAGIC_CMD
26725
26726 # Must we lock files when doing compilation?
26727 need_locks=$lt_need_locks
26728
26729 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26730 DSYMUTIL=$lt_DSYMUTIL
26731
26732 # Tool to change global to local symbols on Mac OS X.
26733 NMEDIT=$lt_NMEDIT
26734
26735 # Tool to manipulate fat objects and archives on Mac OS X.
26736 LIPO=$lt_LIPO
26737
26738 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
26739 OTOOL=$lt_OTOOL
26740
26741 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26742 OTOOL64=$lt_OTOOL64
26743
26744 # Old archive suffix (normally "a").
26745 libext=$libext
26746
26747 # Shared library suffix (normally ".so").
26748 shrext_cmds=$lt_shrext_cmds
26749
26750 # The commands to extract the exported symbol list from a shared archive.
26751 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26752
26753 # Variables whose values should be saved in libtool wrapper scripts and
26754 # restored at link time.
26755 variables_saved_for_relink=$lt_variables_saved_for_relink
26756
26757 # Do we need the "lib" prefix for modules?
26758 need_lib_prefix=$need_lib_prefix
26759
26760 # Do we need a version for libraries?
26761 need_version=$need_version
26762
26763 # Library versioning type.
26764 version_type=$version_type
26765
26766 # Shared library runtime path variable.
26767 runpath_var=$runpath_var
26768
26769 # Shared library path variable.
26770 shlibpath_var=$shlibpath_var
26771
26772 # Is shlibpath searched before the hard-coded library search path?
26773 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26774
26775 # Format of library name prefix.
26776 libname_spec=$lt_libname_spec
26777
26778 # List of archive names.  First name is the real one, the rest are links.
26779 # The last name is the one that the linker finds with -lNAME
26780 library_names_spec=$lt_library_names_spec
26781
26782 # The coded name of the library, if different from the real name.
26783 soname_spec=$lt_soname_spec
26784
26785 # Permission mode override for installation of shared libraries.
26786 install_override_mode=$lt_install_override_mode
26787
26788 # Command to use after installation of a shared archive.
26789 postinstall_cmds=$lt_postinstall_cmds
26790
26791 # Command to use after uninstallation of a shared archive.
26792 postuninstall_cmds=$lt_postuninstall_cmds
26793
26794 # Commands used to finish a libtool library installation in a directory.
26795 finish_cmds=$lt_finish_cmds
26796
26797 # As "finish_cmds", except a single script fragment to be evaled but
26798 # not shown.
26799 finish_eval=$lt_finish_eval
26800
26801 # Whether we should hardcode library paths into libraries.
26802 hardcode_into_libs=$hardcode_into_libs
26803
26804 # Compile-time system search path for libraries.
26805 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26806
26807 # Run-time system search path for libraries.
26808 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26809
26810 # Whether dlopen is supported.
26811 dlopen_support=$enable_dlopen
26812
26813 # Whether dlopen of programs is supported.
26814 dlopen_self=$enable_dlopen_self
26815
26816 # Whether dlopen of statically linked programs is supported.
26817 dlopen_self_static=$enable_dlopen_self_static
26818
26819 # Commands to strip libraries.
26820 old_striplib=$lt_old_striplib
26821 striplib=$lt_striplib
26822
26823
26824 # The linker used to build libraries.
26825 LD=$lt_LD
26826
26827 # How to create reloadable object files.
26828 reload_flag=$lt_reload_flag
26829 reload_cmds=$lt_reload_cmds
26830
26831 # Commands used to build an old-style archive.
26832 old_archive_cmds=$lt_old_archive_cmds
26833
26834 # A language specific compiler.
26835 CC=$lt_compiler
26836
26837 # Is the compiler the GNU compiler?
26838 with_gcc=$GCC
26839
26840 # Compiler flag to turn off builtin functions.
26841 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26842
26843 # How to pass a linker flag through the compiler.
26844 wl=$lt_lt_prog_compiler_wl
26845
26846 # Additional compiler flags for building library objects.
26847 pic_flag=$lt_lt_prog_compiler_pic
26848
26849 # Compiler flag to prevent dynamic linking.
26850 link_static_flag=$lt_lt_prog_compiler_static
26851
26852 # Does compiler simultaneously support -c and -o options?
26853 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26854
26855 # Whether or not to add -lc for building shared libraries.
26856 build_libtool_need_lc=$archive_cmds_need_lc
26857
26858 # Whether or not to disallow shared libs when runtime libs are static.
26859 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26860
26861 # Compiler flag to allow reflexive dlopens.
26862 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26863
26864 # Compiler flag to generate shared objects directly from archives.
26865 whole_archive_flag_spec=$lt_whole_archive_flag_spec
26866
26867 # Whether the compiler copes with passing no objects directly.
26868 compiler_needs_object=$lt_compiler_needs_object
26869
26870 # Create an old-style archive from a shared archive.
26871 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26872
26873 # Create a temporary old-style archive to link instead of a shared archive.
26874 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26875
26876 # Commands used to build a shared archive.
26877 archive_cmds=$lt_archive_cmds
26878 archive_expsym_cmds=$lt_archive_expsym_cmds
26879
26880 # Commands used to build a loadable module if different from building
26881 # a shared archive.
26882 module_cmds=$lt_module_cmds
26883 module_expsym_cmds=$lt_module_expsym_cmds
26884
26885 # Whether we are building with GNU ld or not.
26886 with_gnu_ld=$lt_with_gnu_ld
26887
26888 # Flag that allows shared libraries with undefined symbols to be built.
26889 allow_undefined_flag=$lt_allow_undefined_flag
26890
26891 # Flag that enforces no undefined symbols.
26892 no_undefined_flag=$lt_no_undefined_flag
26893
26894 # Flag to hardcode \$libdir into a binary during linking.
26895 # This must work even if \$libdir does not exist
26896 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26897
26898 # If ld is used when linking, flag to hardcode \$libdir into a binary
26899 # during linking.  This must work even if \$libdir does not exist.
26900 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
26901
26902 # Whether we need a single "-rpath" flag with a separated argument.
26903 hardcode_libdir_separator=$lt_hardcode_libdir_separator
26904
26905 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26906 # DIR into the resulting binary.
26907 hardcode_direct=$hardcode_direct
26908
26909 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26910 # DIR into the resulting binary and the resulting library dependency is
26911 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
26912 # library is relocated.
26913 hardcode_direct_absolute=$hardcode_direct_absolute
26914
26915 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26916 # into the resulting binary.
26917 hardcode_minus_L=$hardcode_minus_L
26918
26919 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26920 # into the resulting binary.
26921 hardcode_shlibpath_var=$hardcode_shlibpath_var
26922
26923 # Set to "yes" if building a shared library automatically hardcodes DIR
26924 # into the library and all subsequent libraries and executables linked
26925 # against it.
26926 hardcode_automatic=$hardcode_automatic
26927
26928 # Set to yes if linker adds runtime paths of dependent libraries
26929 # to runtime path list.
26930 inherit_rpath=$inherit_rpath
26931
26932 # Whether libtool must link a program against all its dependency libraries.
26933 link_all_deplibs=$link_all_deplibs
26934
26935 # Fix the shell variable \$srcfile for the compiler.
26936 fix_srcfile_path=$lt_fix_srcfile_path
26937
26938 # Set to "yes" if exported symbols are required.
26939 always_export_symbols=$always_export_symbols
26940
26941 # The commands to list exported symbols.
26942 export_symbols_cmds=$lt_export_symbols_cmds
26943
26944 # Symbols that should not be listed in the preloaded symbols.
26945 exclude_expsyms=$lt_exclude_expsyms
26946
26947 # Symbols that must always be exported.
26948 include_expsyms=$lt_include_expsyms
26949
26950 # Commands necessary for linking programs (against libraries) with templates.
26951 prelink_cmds=$lt_prelink_cmds
26952
26953 # Specify filename containing input files.
26954 file_list_spec=$lt_file_list_spec
26955
26956 # How to hardcode a shared library path into an executable.
26957 hardcode_action=$hardcode_action
26958
26959 # The directories searched by this compiler when creating a shared library.
26960 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
26961
26962 # Dependencies to place before and after the objects being linked to
26963 # create a shared library.
26964 predep_objects=$lt_predep_objects
26965 postdep_objects=$lt_postdep_objects
26966 predeps=$lt_predeps
26967 postdeps=$lt_postdeps
26968
26969 # The library search path used internally by the compiler when linking
26970 # a shared library.
26971 compiler_lib_search_path=$lt_compiler_lib_search_path
26972
26973 # ### END LIBTOOL CONFIG
26974
26975 _LT_EOF
26976
26977   case $host_os in
26978   aix3*)
26979     cat <<\_LT_EOF >> "$cfgfile"
26980 # AIX sometimes has problems with the GCC collect2 program.  For some
26981 # reason, if we set the COLLECT_NAMES environment variable, the problems
26982 # vanish in a puff of smoke.
26983 if test "X${COLLECT_NAMES+set}" != Xset; then
26984   COLLECT_NAMES=
26985   export COLLECT_NAMES
26986 fi
26987 _LT_EOF
26988     ;;
26989   esac
26990
26991
26992 ltmain="$ac_aux_dir/ltmain.sh"
26993
26994
26995   # We use sed instead of cat because bash on DJGPP gets confused if
26996   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
26997   # text mode, it properly converts lines to CR/LF.  This bash problem
26998   # is reportedly fixed, but why not run on old versions too?
26999   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27000     || (rm -f "$cfgfile"; exit 1)
27001
27002   case $xsi_shell in
27003   yes)
27004     cat << \_LT_EOF >> "$cfgfile"
27005
27006 # func_dirname file append nondir_replacement
27007 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
27008 # otherwise set result to NONDIR_REPLACEMENT.
27009 func_dirname ()
27010 {
27011   case ${1} in
27012     */*) func_dirname_result="${1%/*}${2}" ;;
27013     *  ) func_dirname_result="${3}" ;;
27014   esac
27015 }
27016
27017 # func_basename file
27018 func_basename ()
27019 {
27020   func_basename_result="${1##*/}"
27021 }
27022
27023 # func_dirname_and_basename file append nondir_replacement
27024 # perform func_basename and func_dirname in a single function
27025 # call:
27026 #   dirname:  Compute the dirname of FILE.  If nonempty,
27027 #             add APPEND to the result, otherwise set result
27028 #             to NONDIR_REPLACEMENT.
27029 #             value returned in "$func_dirname_result"
27030 #   basename: Compute filename of FILE.
27031 #             value retuned in "$func_basename_result"
27032 # Implementation must be kept synchronized with func_dirname
27033 # and func_basename. For efficiency, we do not delegate to
27034 # those functions but instead duplicate the functionality here.
27035 func_dirname_and_basename ()
27036 {
27037   case ${1} in
27038     */*) func_dirname_result="${1%/*}${2}" ;;
27039     *  ) func_dirname_result="${3}" ;;
27040   esac
27041   func_basename_result="${1##*/}"
27042 }
27043
27044 # func_stripname prefix suffix name
27045 # strip PREFIX and SUFFIX off of NAME.
27046 # PREFIX and SUFFIX must not contain globbing or regex special
27047 # characters, hashes, percent signs, but SUFFIX may contain a leading
27048 # dot (in which case that matches only a dot).
27049 func_stripname ()
27050 {
27051   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27052   # positional parameters, so assign one to ordinary parameter first.
27053   func_stripname_result=${3}
27054   func_stripname_result=${func_stripname_result#"${1}"}
27055   func_stripname_result=${func_stripname_result%"${2}"}
27056 }
27057
27058 # func_opt_split
27059 func_opt_split ()
27060 {
27061   func_opt_split_opt=${1%%=*}
27062   func_opt_split_arg=${1#*=}
27063 }
27064
27065 # func_lo2o object
27066 func_lo2o ()
27067 {
27068   case ${1} in
27069     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27070     *)    func_lo2o_result=${1} ;;
27071   esac
27072 }
27073
27074 # func_xform libobj-or-source
27075 func_xform ()
27076 {
27077   func_xform_result=${1%.*}.lo
27078 }
27079
27080 # func_arith arithmetic-term...
27081 func_arith ()
27082 {
27083   func_arith_result=$(( $* ))
27084 }
27085
27086 # func_len string
27087 # STRING may not start with a hyphen.
27088 func_len ()
27089 {
27090   func_len_result=${#1}
27091 }
27092
27093 _LT_EOF
27094     ;;
27095   *) # Bourne compatible functions.
27096     cat << \_LT_EOF >> "$cfgfile"
27097
27098 # func_dirname file append nondir_replacement
27099 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
27100 # otherwise set result to NONDIR_REPLACEMENT.
27101 func_dirname ()
27102 {
27103   # Extract subdirectory from the argument.
27104   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
27105   if test "X$func_dirname_result" = "X${1}"; then
27106     func_dirname_result="${3}"
27107   else
27108     func_dirname_result="$func_dirname_result${2}"
27109   fi
27110 }
27111
27112 # func_basename file
27113 func_basename ()
27114 {
27115   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
27116 }
27117
27118
27119 # func_stripname prefix suffix name
27120 # strip PREFIX and SUFFIX off of NAME.
27121 # PREFIX and SUFFIX must not contain globbing or regex special
27122 # characters, hashes, percent signs, but SUFFIX may contain a leading
27123 # dot (in which case that matches only a dot).
27124 # func_strip_suffix prefix name
27125 func_stripname ()
27126 {
27127   case ${2} in
27128     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
27129     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
27130   esac
27131 }
27132
27133 # sed scripts:
27134 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27135 my_sed_long_arg='1s/^-[^=]*=//'
27136
27137 # func_opt_split
27138 func_opt_split ()
27139 {
27140   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
27141   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
27142 }
27143
27144 # func_lo2o object
27145 func_lo2o ()
27146 {
27147   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
27148 }
27149
27150 # func_xform libobj-or-source
27151 func_xform ()
27152 {
27153   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
27154 }
27155
27156 # func_arith arithmetic-term...
27157 func_arith ()
27158 {
27159   func_arith_result=`expr "$@"`
27160 }
27161
27162 # func_len string
27163 # STRING may not start with a hyphen.
27164 func_len ()
27165 {
27166   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27167 }
27168
27169 _LT_EOF
27170 esac
27171
27172 case $lt_shell_append in
27173   yes)
27174     cat << \_LT_EOF >> "$cfgfile"
27175
27176 # func_append var value
27177 # Append VALUE to the end of shell variable VAR.
27178 func_append ()
27179 {
27180   eval "$1+=\$2"
27181 }
27182 _LT_EOF
27183     ;;
27184   *)
27185     cat << \_LT_EOF >> "$cfgfile"
27186
27187 # func_append var value
27188 # Append VALUE to the end of shell variable VAR.
27189 func_append ()
27190 {
27191   eval "$1=\$$1\$2"
27192 }
27193
27194 _LT_EOF
27195     ;;
27196   esac
27197
27198
27199   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27200     || (rm -f "$cfgfile"; exit 1)
27201
27202   mv -f "$cfgfile" "$ofile" ||
27203     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27204   chmod +x "$ofile"
27205
27206
27207     cat <<_LT_EOF >> "$ofile"
27208
27209 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27210
27211 # The linker used to build libraries.
27212 LD=$lt_LD_CXX
27213
27214 # How to create reloadable object files.
27215 reload_flag=$lt_reload_flag_CXX
27216 reload_cmds=$lt_reload_cmds_CXX
27217
27218 # Commands used to build an old-style archive.
27219 old_archive_cmds=$lt_old_archive_cmds_CXX
27220
27221 # A language specific compiler.
27222 CC=$lt_compiler_CXX
27223
27224 # Is the compiler the GNU compiler?
27225 with_gcc=$GCC_CXX
27226
27227 # Compiler flag to turn off builtin functions.
27228 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27229
27230 # How to pass a linker flag through the compiler.
27231 wl=$lt_lt_prog_compiler_wl_CXX
27232
27233 # Additional compiler flags for building library objects.
27234 pic_flag=$lt_lt_prog_compiler_pic_CXX
27235
27236 # Compiler flag to prevent dynamic linking.
27237 link_static_flag=$lt_lt_prog_compiler_static_CXX
27238
27239 # Does compiler simultaneously support -c and -o options?
27240 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27241
27242 # Whether or not to add -lc for building shared libraries.
27243 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27244
27245 # Whether or not to disallow shared libs when runtime libs are static.
27246 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27247
27248 # Compiler flag to allow reflexive dlopens.
27249 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27250
27251 # Compiler flag to generate shared objects directly from archives.
27252 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27253
27254 # Whether the compiler copes with passing no objects directly.
27255 compiler_needs_object=$lt_compiler_needs_object_CXX
27256
27257 # Create an old-style archive from a shared archive.
27258 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27259
27260 # Create a temporary old-style archive to link instead of a shared archive.
27261 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27262
27263 # Commands used to build a shared archive.
27264 archive_cmds=$lt_archive_cmds_CXX
27265 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27266
27267 # Commands used to build a loadable module if different from building
27268 # a shared archive.
27269 module_cmds=$lt_module_cmds_CXX
27270 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27271
27272 # Whether we are building with GNU ld or not.
27273 with_gnu_ld=$lt_with_gnu_ld_CXX
27274
27275 # Flag that allows shared libraries with undefined symbols to be built.
27276 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27277
27278 # Flag that enforces no undefined symbols.
27279 no_undefined_flag=$lt_no_undefined_flag_CXX
27280
27281 # Flag to hardcode \$libdir into a binary during linking.
27282 # This must work even if \$libdir does not exist
27283 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27284
27285 # If ld is used when linking, flag to hardcode \$libdir into a binary
27286 # during linking.  This must work even if \$libdir does not exist.
27287 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27288
27289 # Whether we need a single "-rpath" flag with a separated argument.
27290 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27291
27292 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27293 # DIR into the resulting binary.
27294 hardcode_direct=$hardcode_direct_CXX
27295
27296 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27297 # DIR into the resulting binary and the resulting library dependency is
27298 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27299 # library is relocated.
27300 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27301
27302 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27303 # into the resulting binary.
27304 hardcode_minus_L=$hardcode_minus_L_CXX
27305
27306 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27307 # into the resulting binary.
27308 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27309
27310 # Set to "yes" if building a shared library automatically hardcodes DIR
27311 # into the library and all subsequent libraries and executables linked
27312 # against it.
27313 hardcode_automatic=$hardcode_automatic_CXX
27314
27315 # Set to yes if linker adds runtime paths of dependent libraries
27316 # to runtime path list.
27317 inherit_rpath=$inherit_rpath_CXX
27318
27319 # Whether libtool must link a program against all its dependency libraries.
27320 link_all_deplibs=$link_all_deplibs_CXX
27321
27322 # Fix the shell variable \$srcfile for the compiler.
27323 fix_srcfile_path=$lt_fix_srcfile_path_CXX
27324
27325 # Set to "yes" if exported symbols are required.
27326 always_export_symbols=$always_export_symbols_CXX
27327
27328 # The commands to list exported symbols.
27329 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27330
27331 # Symbols that should not be listed in the preloaded symbols.
27332 exclude_expsyms=$lt_exclude_expsyms_CXX
27333
27334 # Symbols that must always be exported.
27335 include_expsyms=$lt_include_expsyms_CXX
27336
27337 # Commands necessary for linking programs (against libraries) with templates.
27338 prelink_cmds=$lt_prelink_cmds_CXX
27339
27340 # Specify filename containing input files.
27341 file_list_spec=$lt_file_list_spec_CXX
27342
27343 # How to hardcode a shared library path into an executable.
27344 hardcode_action=$hardcode_action_CXX
27345
27346 # The directories searched by this compiler when creating a shared library.
27347 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27348
27349 # Dependencies to place before and after the objects being linked to
27350 # create a shared library.
27351 predep_objects=$lt_predep_objects_CXX
27352 postdep_objects=$lt_postdep_objects_CXX
27353 predeps=$lt_predeps_CXX
27354 postdeps=$lt_postdeps_CXX
27355
27356 # The library search path used internally by the compiler when linking
27357 # a shared library.
27358 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27359
27360 # ### END LIBTOOL TAG CONFIG: CXX
27361 _LT_EOF
27362
27363
27364     cat <<_LT_EOF >> "$ofile"
27365
27366 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
27367
27368 # The linker used to build libraries.
27369 LD=$lt_LD_GCJ
27370
27371 # How to create reloadable object files.
27372 reload_flag=$lt_reload_flag_GCJ
27373 reload_cmds=$lt_reload_cmds_GCJ
27374
27375 # Commands used to build an old-style archive.
27376 old_archive_cmds=$lt_old_archive_cmds_GCJ
27377
27378 # A language specific compiler.
27379 CC=$lt_compiler_GCJ
27380
27381 # Is the compiler the GNU compiler?
27382 with_gcc=$GCC_GCJ
27383
27384 # Compiler flag to turn off builtin functions.
27385 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
27386
27387 # How to pass a linker flag through the compiler.
27388 wl=$lt_lt_prog_compiler_wl_GCJ
27389
27390 # Additional compiler flags for building library objects.
27391 pic_flag=$lt_lt_prog_compiler_pic_GCJ
27392
27393 # Compiler flag to prevent dynamic linking.
27394 link_static_flag=$lt_lt_prog_compiler_static_GCJ
27395
27396 # Does compiler simultaneously support -c and -o options?
27397 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
27398
27399 # Whether or not to add -lc for building shared libraries.
27400 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
27401
27402 # Whether or not to disallow shared libs when runtime libs are static.
27403 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
27404
27405 # Compiler flag to allow reflexive dlopens.
27406 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
27407
27408 # Compiler flag to generate shared objects directly from archives.
27409 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
27410
27411 # Whether the compiler copes with passing no objects directly.
27412 compiler_needs_object=$lt_compiler_needs_object_GCJ
27413
27414 # Create an old-style archive from a shared archive.
27415 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
27416
27417 # Create a temporary old-style archive to link instead of a shared archive.
27418 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
27419
27420 # Commands used to build a shared archive.
27421 archive_cmds=$lt_archive_cmds_GCJ
27422 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
27423
27424 # Commands used to build a loadable module if different from building
27425 # a shared archive.
27426 module_cmds=$lt_module_cmds_GCJ
27427 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
27428
27429 # Whether we are building with GNU ld or not.
27430 with_gnu_ld=$lt_with_gnu_ld_GCJ
27431
27432 # Flag that allows shared libraries with undefined symbols to be built.
27433 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
27434
27435 # Flag that enforces no undefined symbols.
27436 no_undefined_flag=$lt_no_undefined_flag_GCJ
27437
27438 # Flag to hardcode \$libdir into a binary during linking.
27439 # This must work even if \$libdir does not exist
27440 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
27441
27442 # If ld is used when linking, flag to hardcode \$libdir into a binary
27443 # during linking.  This must work even if \$libdir does not exist.
27444 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
27445
27446 # Whether we need a single "-rpath" flag with a separated argument.
27447 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
27448
27449 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27450 # DIR into the resulting binary.
27451 hardcode_direct=$hardcode_direct_GCJ
27452
27453 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27454 # DIR into the resulting binary and the resulting library dependency is
27455 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27456 # library is relocated.
27457 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
27458
27459 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27460 # into the resulting binary.
27461 hardcode_minus_L=$hardcode_minus_L_GCJ
27462
27463 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27464 # into the resulting binary.
27465 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
27466
27467 # Set to "yes" if building a shared library automatically hardcodes DIR
27468 # into the library and all subsequent libraries and executables linked
27469 # against it.
27470 hardcode_automatic=$hardcode_automatic_GCJ
27471
27472 # Set to yes if linker adds runtime paths of dependent libraries
27473 # to runtime path list.
27474 inherit_rpath=$inherit_rpath_GCJ
27475
27476 # Whether libtool must link a program against all its dependency libraries.
27477 link_all_deplibs=$link_all_deplibs_GCJ
27478
27479 # Fix the shell variable \$srcfile for the compiler.
27480 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
27481
27482 # Set to "yes" if exported symbols are required.
27483 always_export_symbols=$always_export_symbols_GCJ
27484
27485 # The commands to list exported symbols.
27486 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
27487
27488 # Symbols that should not be listed in the preloaded symbols.
27489 exclude_expsyms=$lt_exclude_expsyms_GCJ
27490
27491 # Symbols that must always be exported.
27492 include_expsyms=$lt_include_expsyms_GCJ
27493
27494 # Commands necessary for linking programs (against libraries) with templates.
27495 prelink_cmds=$lt_prelink_cmds_GCJ
27496
27497 # Specify filename containing input files.
27498 file_list_spec=$lt_file_list_spec_GCJ
27499
27500 # How to hardcode a shared library path into an executable.
27501 hardcode_action=$hardcode_action_GCJ
27502
27503 # The directories searched by this compiler when creating a shared library.
27504 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
27505
27506 # Dependencies to place before and after the objects being linked to
27507 # create a shared library.
27508 predep_objects=$lt_predep_objects_GCJ
27509 postdep_objects=$lt_postdep_objects_GCJ
27510 predeps=$lt_predeps_GCJ
27511 postdeps=$lt_postdeps_GCJ
27512
27513 # The library search path used internally by the compiler when linking
27514 # a shared library.
27515 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
27516
27517 # ### END LIBTOOL TAG CONFIG: GCJ
27518 _LT_EOF
27519
27520  ;;
27521     "scripts/jar":F) chmod +x scripts/jar ;;
27522
27523   esac
27524 done # for ac_tag
27525
27526
27527 as_fn_exit 0
27528 _ACEOF
27529 ac_clean_files=$ac_clean_files_save
27530
27531 test $ac_write_fail = 0 ||
27532   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27533
27534
27535 # configure is writing to config.log, and then calls config.status.
27536 # config.status does its own redirection, appending to config.log.
27537 # Unfortunately, on DOS this fails, as config.log is still kept open
27538 # by configure, so config.status won't be able to write to it; its
27539 # output is simply discarded.  So we exec the FD to /dev/null,
27540 # effectively closing config.log, so it can be properly (re)opened and
27541 # appended to by config.status.  When coming back to configure, we
27542 # need to make the FD available again.
27543 if test "$no_create" != yes; then
27544   ac_cs_success=:
27545   ac_config_status_args=
27546   test "$silent" = yes &&
27547     ac_config_status_args="$ac_config_status_args --quiet"
27548   exec 5>/dev/null
27549   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27550   exec 5>>config.log
27551   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27552   # would make configure fail if this is the last instruction.
27553   $ac_cs_success || as_fn_exit $?
27554 fi
27555
27556 #
27557 # CONFIG_SUBDIRS section.
27558 #
27559 if test "$no_recursion" != yes; then
27560
27561   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
27562   # so they do not pile up.
27563   ac_sub_configure_args=
27564   ac_prev=
27565   eval "set x $ac_configure_args"
27566   shift
27567   for ac_arg
27568   do
27569     if test -n "$ac_prev"; then
27570       ac_prev=
27571       continue
27572     fi
27573     case $ac_arg in
27574     -cache-file | --cache-file | --cache-fil | --cache-fi \
27575     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27576       ac_prev=cache_file ;;
27577     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27578     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27579     | --c=*)
27580       ;;
27581     --config-cache | -C)
27582       ;;
27583     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27584       ac_prev=srcdir ;;
27585     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27586       ;;
27587     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27588       ac_prev=prefix ;;
27589     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27590       ;;
27591     --disable-option-checking)
27592       ;;
27593     *)
27594       case $ac_arg in
27595       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27596       esac
27597       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
27598     esac
27599   done
27600
27601   # Always prepend --prefix to ensure using the same prefix
27602   # in subdir configurations.
27603   ac_arg="--prefix=$prefix"
27604   case $ac_arg in
27605   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27606   esac
27607   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
27608
27609   # Pass --silent
27610   if test "$silent" = yes; then
27611     ac_sub_configure_args="--silent $ac_sub_configure_args"
27612   fi
27613
27614   # Always prepend --disable-option-checking to silence warnings, since
27615   # different subdirs can have different --enable and --with options.
27616   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
27617
27618   ac_popdir=`pwd`
27619   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27620
27621     # Do not complain, so a configure script can configure whichever
27622     # parts of a large source tree are present.
27623     test -d "$srcdir/$ac_dir" || continue
27624
27625     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27626     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
27627     $as_echo "$ac_msg" >&6
27628     as_dir="$ac_dir"; as_fn_mkdir_p
27629     ac_builddir=.
27630
27631 case "$ac_dir" in
27632 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27633 *)
27634   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27635   # A ".." for each directory in $ac_dir_suffix.
27636   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27637   case $ac_top_builddir_sub in
27638   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27639   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27640   esac ;;
27641 esac
27642 ac_abs_top_builddir=$ac_pwd
27643 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27644 # for backward compatibility:
27645 ac_top_builddir=$ac_top_build_prefix
27646
27647 case $srcdir in
27648   .)  # We are building in place.
27649     ac_srcdir=.
27650     ac_top_srcdir=$ac_top_builddir_sub
27651     ac_abs_top_srcdir=$ac_pwd ;;
27652   [\\/]* | ?:[\\/]* )  # Absolute name.
27653     ac_srcdir=$srcdir$ac_dir_suffix;
27654     ac_top_srcdir=$srcdir
27655     ac_abs_top_srcdir=$srcdir ;;
27656   *) # Relative name.
27657     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27658     ac_top_srcdir=$ac_top_build_prefix$srcdir
27659     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27660 esac
27661 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27662
27663
27664     cd "$ac_dir"
27665
27666     # Check for guested configure; otherwise get Cygnus style configure.
27667     if test -f "$ac_srcdir/configure.gnu"; then
27668       ac_sub_configure=$ac_srcdir/configure.gnu
27669     elif test -f "$ac_srcdir/configure"; then
27670       ac_sub_configure=$ac_srcdir/configure
27671     elif test -f "$ac_srcdir/configure.in"; then
27672       # This should be Cygnus configure.
27673       ac_sub_configure=$ac_aux_dir/configure
27674     else
27675       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
27676 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27677       ac_sub_configure=
27678     fi
27679
27680     # The recursion is here.
27681     if test -n "$ac_sub_configure"; then
27682       # Make the cache file name correct relative to the subdirectory.
27683       case $cache_file in
27684       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27685       *) # Relative name.
27686         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
27687       esac
27688
27689       { $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
27690 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27691       # The eval makes quoting arguments work.
27692       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27693            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27694         as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
27695     fi
27696
27697     cd "$ac_popdir"
27698   done
27699 fi
27700 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27701   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27702 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27703 fi
27704