]> git.ipfire.org Git - thirdparty/gcc.git/blob - libjava/configure
Regenerate configure files for libtool.m4 change
[thirdparty/gcc.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_SUN_FALSE
635 ANONVERSCRIPT_SUN_TRUE
636 ANONVERSCRIPT_GNU_FALSE
637 ANONVERSCRIPT_GNU_TRUE
638 ANONVERSCRIPT_FALSE
639 ANONVERSCRIPT_TRUE
640 SYSDEP_SOURCES
641 PERL
642 libstdcxx_incdir
643 gxx_include_dir
644 gcjsubdir
645 dbexecdir
646 GCJVERSION
647 toolexeclibdir
648 toolexecmainlibdir
649 toolexecdir
650 LIBGCC_UNWIND_INCLUDE
651 INSTALL_BINARIES_FALSE
652 INSTALL_BINARIES_TRUE
653 NEEDS_DATA_START_FALSE
654 NEEDS_DATA_START_TRUE
655 ENABLE_SHARED_FALSE
656 ENABLE_SHARED_TRUE
657 NATIVE_FALSE
658 NATIVE_TRUE
659 ATOMICSPEC
660 IEEESPEC
661 BACKTRACESPEC
662 EXCEPTIONSPEC
663 CHECKREFSPEC
664 DIVIDESPEC
665 ZINCS
666 SYS_ZLIBS
667 ZLIBS
668 CLASSPATH_SEPARATOR
669 LIBART_LIBS
670 LIBART_CFLAGS
671 GLIB_LIBS
672 GLIB_CFLAGS
673 GTK_LIBS
674 GTK_CFLAGS
675 PKG_CONFIG
676 LDLIBICONV
677 LTLIBICONV
678 LIBICONV
679 USING_GCC_FALSE
680 USING_GCC_TRUE
681 HASH_SYNC_SPEC
682 LIBGCJ_BC_SPEC
683 LIBGCJ_SPEC
684 USE_LIBGCJ_BC_FALSE
685 USE_LIBGCJ_BC_TRUE
686 USING_NO_THREADS_FALSE
687 USING_NO_THREADS_TRUE
688 USING_WIN32_THREADS_FALSE
689 USING_WIN32_THREADS_TRUE
690 USING_POSIX_THREADS_FALSE
691 USING_POSIX_THREADS_TRUE
692 THREADCXXFLAGS
693 THREADLDFLAGS
694 THREADSTARTFILESPEC
695 THREADSPEC
696 THREADDEPS
697 THREADINCS
698 THREADLIBS
699 USING_NOGC_FALSE
700 USING_NOGC_TRUE
701 USING_BOEHMGC_FALSE
702 USING_BOEHMGC_TRUE
703 GCTESTSPEC
704 JC1GCSPEC
705 GCSPEC
706 GCDEPS
707 GCINCS
708 GCLIBS
709 LIBGCJTESTSPEC
710 LIBMATHSPEC
711 LIBSTDCXXSPEC
712 extra_ldflags
713 extra_ldflags_libjava
714 X_EXTRA_LIBS
715 X_LIBS
716 X_PRE_LIBS
717 X_CFLAGS
718 XMKMF
719 ZLIBTESTSPEC
720 ZLIBSPEC
721 SYSTEMSPEC
722 USING_DARWIN_CRT_FALSE
723 USING_DARWIN_CRT_TRUE
724 USING_POSIX_PLATFORM_FALSE
725 USING_POSIX_PLATFORM_TRUE
726 USING_WIN32_PLATFORM_FALSE
727 USING_WIN32_PLATFORM_TRUE
728 PLATFORM
729 LIBFFIINCS
730 LIBFFI
731 INTERPRETER_FALSE
732 INTERPRETER_TRUE
733 INTERPRETER
734 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE
735 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE
736 SUPPRESS_LIBGCJ_BC_FALSE
737 SUPPRESS_LIBGCJ_BC_TRUE
738 JAVA_HOME
739 JAVA_HOME_SET_FALSE
740 JAVA_HOME_SET_TRUE
741 INSTALL_ECJ_JAR_FALSE
742 INSTALL_ECJ_JAR_TRUE
743 BUILD_ECJ1_FALSE
744 BUILD_ECJ1_TRUE
745 ECJ_JAR
746 ECJ_BUILD_JAR
747 TESTSUBDIR_FALSE
748 TESTSUBDIR_TRUE
749 subdirs
750 am__fastdepGCJ_FALSE
751 am__fastdepGCJ_TRUE
752 GCJDEPMODE
753 GCJFLAGS
754 ac_ct_GCJ
755 GCJ
756 lt_host_flags
757 CXXCPP
758 CPP
759 OTOOL64
760 OTOOL
761 LIPO
762 NMEDIT
763 DSYMUTIL
764 OBJDUMP
765 NM
766 ac_ct_DUMPBIN
767 DUMPBIN
768 FGREP
769 EGREP
770 GREP
771 SED
772 LIBTOOL
773 DIRLTDL
774 LIBLTDL
775 INCLTDL
776 host_exeext
777 GCJH
778 GCC_FOR_ECJX
779 GCJ_FOR_ECJX
780 X_AWT_FALSE
781 X_AWT_TRUE
782 XLIB_AWT_FALSE
783 XLIB_AWT_TRUE
784 TOOLKIT
785 LIBGCJDEBUG
786 BUILD_SUBLIBS_FALSE
787 BUILD_SUBLIBS_TRUE
788 LIBGCJ_LD_EXPORT_ALL
789 LIBGCJ_LD_SYMBOLIC_FUNCTIONS
790 LIBGCJ_LD_SYMBOLIC
791 LIBGCJ_SUBLIB_CORE_EXTRA_DEPS
792 LIBGCJ_SUBLIB_LTFLAGS
793 LIBGCJ_JAVAFLAGS
794 LIBGCJ_CXXFLAGS
795 LIBGCJ_CFLAGS
796 MAINT
797 MAINTAINER_MODE_FALSE
798 MAINTAINER_MODE_TRUE
799 UNZIP
800 ZIP
801 JAR
802 DLLTOOL
803 RANLIB
804 AR
805 LD
806 AS
807 am__fastdepCXX_FALSE
808 am__fastdepCXX_TRUE
809 CXXDEPMODE
810 am__fastdepCC_FALSE
811 am__fastdepCC_TRUE
812 CCDEPMODE
813 AMDEPBACKSLASH
814 AMDEP_FALSE
815 AMDEP_TRUE
816 am__quote
817 am__include
818 DEPDIR
819 am__untar
820 am__tar
821 AMTAR
822 am__leading_dot
823 SET_MAKE
824 AWK
825 mkdir_p
826 MKDIR_P
827 INSTALL_STRIP_PROGRAM
828 STRIP
829 install_sh
830 MAKEINFO
831 AUTOHEADER
832 AUTOMAKE
833 AUTOCONF
834 ACLOCAL
835 VERSION
836 PACKAGE
837 CYGPATH_W
838 am__isrc
839 INSTALL_DATA
840 INSTALL_SCRIPT
841 INSTALL_PROGRAM
842 ac_ct_CXX
843 CXXFLAGS
844 CXX
845 OBJEXT
846 EXEEXT
847 ac_ct_CC
848 CPPFLAGS
849 LDFLAGS
850 CFLAGS
851 CC
852 JAVA_MAINTAINER_MODE_FALSE
853 JAVA_MAINTAINER_MODE_TRUE
854 CREATE_GJDOC_FALSE
855 CREATE_GJDOC_TRUE
856 ANTLR_JAR
857 mkinstalldirs
858 LN_S
859 target_noncanonical
860 target_os
861 target_vendor
862 target_cpu
863 target
864 host_os
865 host_vendor
866 host_cpu
867 host
868 multi_basedir
869 target_subdir
870 host_subdir
871 build_subdir
872 build_libsubdir
873 build_os
874 build_vendor
875 build_cpu
876 build
877 target_alias
878 host_alias
879 build_alias
880 LIBS
881 ECHO_T
882 ECHO_N
883 ECHO_C
884 DEFS
885 mandir
886 localedir
887 libdir
888 psdir
889 pdfdir
890 dvidir
891 htmldir
892 infodir
893 docdir
894 oldincludedir
895 includedir
896 localstatedir
897 sharedstatedir
898 sysconfdir
899 datadir
900 datarootdir
901 libexecdir
902 sbindir
903 bindir
904 program_transform_name
905 prefix
906 exec_prefix
907 PACKAGE_URL
908 PACKAGE_BUGREPORT
909 PACKAGE_STRING
910 PACKAGE_VERSION
911 PACKAGE_TARNAME
912 PACKAGE_NAME
913 PATH_SEPARATOR
914 SHELL'
915 ac_subst_files=''
916 ac_user_opts='
917 enable_option_checking
918 with_build_libsubdir
919 with_target_subdir
920 enable_multilib
921 with_cross_host
922 with_newlib
923 enable_version_specific_runtime_libs
924 enable_browser_plugin
925 enable_gconf_peer
926 with_antlr_jar
927 enable_gjdoc
928 enable_java_maintainer_mode
929 enable_dependency_tracking
930 enable_maintainer_mode
931 enable_libgcj_sublibs
932 enable_libgcj_debug
933 with_escher
934 enable_java_awt
935 enable_shared
936 enable_static
937 with_pic
938 enable_fast_install
939 with_gnu_ld
940 enable_libtool_lock
941 enable_getenv_properties
942 enable_hash_synchronization
943 with_ecj_jar
944 with_java_home
945 enable_libgcj_bc
946 enable_reduced_reflection
947 with_win32_nlsapi
948 enable_gc_debug
949 enable_interpreter
950 enable_sjlj_exceptions
951 enable_java_net
952 with_libffi
953 enable_jvmpi
954 with_ecos
955 with_system_zlib
956 with_x
957 enable_java_gc
958 enable_rpath
959 with_libiconv_prefix
960 enable_tls
961 with_system_libunwind
962 enable_symvers
963 with_python_dir
964 enable_aot_compile_rpm
965 enable_java_home
966 with_gcc_suffix
967 with_arch_directory
968 with_os_directory
969 with_origin_name
970 with_arch_suffix
971 with_jvm_root_dir
972 with_jvm_jar_dir
973 '
974 ac_precious_vars='build_alias
975 host_alias
976 target_alias
977 CC
978 CFLAGS
979 LDFLAGS
980 LIBS
981 CPPFLAGS
982 CXX
983 CXXFLAGS
984 CCC
985 CPP
986 CXXCPP
987 XMKMF'
988 ac_subdirs_all='classpath libltdl'
989
990 # Initialize some variables set by options.
991 ac_init_help=
992 ac_init_version=false
993 ac_unrecognized_opts=
994 ac_unrecognized_sep=
995 # The variables have the same names as the options, with
996 # dashes changed to underlines.
997 cache_file=/dev/null
998 exec_prefix=NONE
999 no_create=
1000 no_recursion=
1001 prefix=NONE
1002 program_prefix=NONE
1003 program_suffix=NONE
1004 program_transform_name=s,x,x,
1005 silent=
1006 site=
1007 srcdir=
1008 verbose=
1009 x_includes=NONE
1010 x_libraries=NONE
1011
1012 # Installation directory options.
1013 # These are left unexpanded so users can "make install exec_prefix=/foo"
1014 # and all the variables that are supposed to be based on exec_prefix
1015 # by default will actually change.
1016 # Use braces instead of parens because sh, perl, etc. also accept them.
1017 # (The list follows the same order as the GNU Coding Standards.)
1018 bindir='${exec_prefix}/bin'
1019 sbindir='${exec_prefix}/sbin'
1020 libexecdir='${exec_prefix}/libexec'
1021 datarootdir='${prefix}/share'
1022 datadir='${datarootdir}'
1023 sysconfdir='${prefix}/etc'
1024 sharedstatedir='${prefix}/com'
1025 localstatedir='${prefix}/var'
1026 includedir='${prefix}/include'
1027 oldincludedir='/usr/include'
1028 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1029 infodir='${datarootdir}/info'
1030 htmldir='${docdir}'
1031 dvidir='${docdir}'
1032 pdfdir='${docdir}'
1033 psdir='${docdir}'
1034 libdir='${exec_prefix}/lib'
1035 localedir='${datarootdir}/locale'
1036 mandir='${datarootdir}/man'
1037
1038 ac_prev=
1039 ac_dashdash=
1040 for ac_option
1041 do
1042 # If the previous option needs an argument, assign it.
1043 if test -n "$ac_prev"; then
1044 eval $ac_prev=\$ac_option
1045 ac_prev=
1046 continue
1047 fi
1048
1049 case $ac_option in
1050 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1051 *) ac_optarg=yes ;;
1052 esac
1053
1054 # Accept the important Cygnus configure options, so we can diagnose typos.
1055
1056 case $ac_dashdash$ac_option in
1057 --)
1058 ac_dashdash=yes ;;
1059
1060 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1061 ac_prev=bindir ;;
1062 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1063 bindir=$ac_optarg ;;
1064
1065 -build | --build | --buil | --bui | --bu)
1066 ac_prev=build_alias ;;
1067 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1068 build_alias=$ac_optarg ;;
1069
1070 -cache-file | --cache-file | --cache-fil | --cache-fi \
1071 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1072 ac_prev=cache_file ;;
1073 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1074 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1075 cache_file=$ac_optarg ;;
1076
1077 --config-cache | -C)
1078 cache_file=config.cache ;;
1079
1080 -datadir | --datadir | --datadi | --datad)
1081 ac_prev=datadir ;;
1082 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1083 datadir=$ac_optarg ;;
1084
1085 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1086 | --dataroo | --dataro | --datar)
1087 ac_prev=datarootdir ;;
1088 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1089 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1090 datarootdir=$ac_optarg ;;
1091
1092 -disable-* | --disable-*)
1093 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1096 as_fn_error "invalid feature name: $ac_useropt"
1097 ac_useropt_orig=$ac_useropt
1098 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099 case $ac_user_opts in
1100 *"
1101 "enable_$ac_useropt"
1102 "*) ;;
1103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1104 ac_unrecognized_sep=', ';;
1105 esac
1106 eval enable_$ac_useropt=no ;;
1107
1108 -docdir | --docdir | --docdi | --doc | --do)
1109 ac_prev=docdir ;;
1110 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1111 docdir=$ac_optarg ;;
1112
1113 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1114 ac_prev=dvidir ;;
1115 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1116 dvidir=$ac_optarg ;;
1117
1118 -enable-* | --enable-*)
1119 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122 as_fn_error "invalid feature name: $ac_useropt"
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1126 *"
1127 "enable_$ac_useropt"
1128 "*) ;;
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1131 esac
1132 eval enable_$ac_useropt=\$ac_optarg ;;
1133
1134 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1135 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1136 | --exec | --exe | --ex)
1137 ac_prev=exec_prefix ;;
1138 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1139 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1140 | --exec=* | --exe=* | --ex=*)
1141 exec_prefix=$ac_optarg ;;
1142
1143 -gas | --gas | --ga | --g)
1144 # Obsolete; use --with-gas.
1145 with_gas=yes ;;
1146
1147 -help | --help | --hel | --he | -h)
1148 ac_init_help=long ;;
1149 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1150 ac_init_help=recursive ;;
1151 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1152 ac_init_help=short ;;
1153
1154 -host | --host | --hos | --ho)
1155 ac_prev=host_alias ;;
1156 -host=* | --host=* | --hos=* | --ho=*)
1157 host_alias=$ac_optarg ;;
1158
1159 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1160 ac_prev=htmldir ;;
1161 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1162 | --ht=*)
1163 htmldir=$ac_optarg ;;
1164
1165 -includedir | --includedir | --includedi | --included | --include \
1166 | --includ | --inclu | --incl | --inc)
1167 ac_prev=includedir ;;
1168 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1169 | --includ=* | --inclu=* | --incl=* | --inc=*)
1170 includedir=$ac_optarg ;;
1171
1172 -infodir | --infodir | --infodi | --infod | --info | --inf)
1173 ac_prev=infodir ;;
1174 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1175 infodir=$ac_optarg ;;
1176
1177 -libdir | --libdir | --libdi | --libd)
1178 ac_prev=libdir ;;
1179 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1180 libdir=$ac_optarg ;;
1181
1182 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1183 | --libexe | --libex | --libe)
1184 ac_prev=libexecdir ;;
1185 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1186 | --libexe=* | --libex=* | --libe=*)
1187 libexecdir=$ac_optarg ;;
1188
1189 -localedir | --localedir | --localedi | --localed | --locale)
1190 ac_prev=localedir ;;
1191 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1192 localedir=$ac_optarg ;;
1193
1194 -localstatedir | --localstatedir | --localstatedi | --localstated \
1195 | --localstate | --localstat | --localsta | --localst | --locals)
1196 ac_prev=localstatedir ;;
1197 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1198 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1199 localstatedir=$ac_optarg ;;
1200
1201 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1202 ac_prev=mandir ;;
1203 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1204 mandir=$ac_optarg ;;
1205
1206 -nfp | --nfp | --nf)
1207 # Obsolete; use --without-fp.
1208 with_fp=no ;;
1209
1210 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1211 | --no-cr | --no-c | -n)
1212 no_create=yes ;;
1213
1214 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1215 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1216 no_recursion=yes ;;
1217
1218 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1219 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1220 | --oldin | --oldi | --old | --ol | --o)
1221 ac_prev=oldincludedir ;;
1222 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1223 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1224 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1225 oldincludedir=$ac_optarg ;;
1226
1227 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1228 ac_prev=prefix ;;
1229 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1230 prefix=$ac_optarg ;;
1231
1232 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1233 | --program-pre | --program-pr | --program-p)
1234 ac_prev=program_prefix ;;
1235 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1236 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1237 program_prefix=$ac_optarg ;;
1238
1239 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1240 | --program-suf | --program-su | --program-s)
1241 ac_prev=program_suffix ;;
1242 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1243 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1244 program_suffix=$ac_optarg ;;
1245
1246 -program-transform-name | --program-transform-name \
1247 | --program-transform-nam | --program-transform-na \
1248 | --program-transform-n | --program-transform- \
1249 | --program-transform | --program-transfor \
1250 | --program-transfo | --program-transf \
1251 | --program-trans | --program-tran \
1252 | --progr-tra | --program-tr | --program-t)
1253 ac_prev=program_transform_name ;;
1254 -program-transform-name=* | --program-transform-name=* \
1255 | --program-transform-nam=* | --program-transform-na=* \
1256 | --program-transform-n=* | --program-transform-=* \
1257 | --program-transform=* | --program-transfor=* \
1258 | --program-transfo=* | --program-transf=* \
1259 | --program-trans=* | --program-tran=* \
1260 | --progr-tra=* | --program-tr=* | --program-t=*)
1261 program_transform_name=$ac_optarg ;;
1262
1263 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1264 ac_prev=pdfdir ;;
1265 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1266 pdfdir=$ac_optarg ;;
1267
1268 -psdir | --psdir | --psdi | --psd | --ps)
1269 ac_prev=psdir ;;
1270 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1271 psdir=$ac_optarg ;;
1272
1273 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1274 | -silent | --silent | --silen | --sile | --sil)
1275 silent=yes ;;
1276
1277 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1278 ac_prev=sbindir ;;
1279 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1280 | --sbi=* | --sb=*)
1281 sbindir=$ac_optarg ;;
1282
1283 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1284 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1285 | --sharedst | --shareds | --shared | --share | --shar \
1286 | --sha | --sh)
1287 ac_prev=sharedstatedir ;;
1288 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1289 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1290 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1291 | --sha=* | --sh=*)
1292 sharedstatedir=$ac_optarg ;;
1293
1294 -site | --site | --sit)
1295 ac_prev=site ;;
1296 -site=* | --site=* | --sit=*)
1297 site=$ac_optarg ;;
1298
1299 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1300 ac_prev=srcdir ;;
1301 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1302 srcdir=$ac_optarg ;;
1303
1304 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1305 | --syscon | --sysco | --sysc | --sys | --sy)
1306 ac_prev=sysconfdir ;;
1307 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1308 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1309 sysconfdir=$ac_optarg ;;
1310
1311 -target | --target | --targe | --targ | --tar | --ta | --t)
1312 ac_prev=target_alias ;;
1313 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1314 target_alias=$ac_optarg ;;
1315
1316 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1317 verbose=yes ;;
1318
1319 -version | --version | --versio | --versi | --vers | -V)
1320 ac_init_version=: ;;
1321
1322 -with-* | --with-*)
1323 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1324 # Reject names that are not valid shell variable names.
1325 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1326 as_fn_error "invalid package name: $ac_useropt"
1327 ac_useropt_orig=$ac_useropt
1328 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1329 case $ac_user_opts in
1330 *"
1331 "with_$ac_useropt"
1332 "*) ;;
1333 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1334 ac_unrecognized_sep=', ';;
1335 esac
1336 eval with_$ac_useropt=\$ac_optarg ;;
1337
1338 -without-* | --without-*)
1339 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1340 # Reject names that are not valid shell variable names.
1341 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1342 as_fn_error "invalid package name: $ac_useropt"
1343 ac_useropt_orig=$ac_useropt
1344 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1345 case $ac_user_opts in
1346 *"
1347 "with_$ac_useropt"
1348 "*) ;;
1349 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1350 ac_unrecognized_sep=', ';;
1351 esac
1352 eval with_$ac_useropt=no ;;
1353
1354 --x)
1355 # Obsolete; use --with-x.
1356 with_x=yes ;;
1357
1358 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1359 | --x-incl | --x-inc | --x-in | --x-i)
1360 ac_prev=x_includes ;;
1361 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1362 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1363 x_includes=$ac_optarg ;;
1364
1365 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1366 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1367 ac_prev=x_libraries ;;
1368 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1369 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1370 x_libraries=$ac_optarg ;;
1371
1372 -*) as_fn_error "unrecognized option: \`$ac_option'
1373 Try \`$0 --help' for more information."
1374 ;;
1375
1376 *=*)
1377 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1378 # Reject names that are not valid shell variable names.
1379 case $ac_envvar in #(
1380 '' | [0-9]* | *[!_$as_cr_alnum]* )
1381 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1382 esac
1383 eval $ac_envvar=\$ac_optarg
1384 export $ac_envvar ;;
1385
1386 *)
1387 # FIXME: should be removed in autoconf 3.0.
1388 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1389 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1390 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1391 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1392 ;;
1393
1394 esac
1395 done
1396
1397 if test -n "$ac_prev"; then
1398 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1399 as_fn_error "missing argument to $ac_option"
1400 fi
1401
1402 if test -n "$ac_unrecognized_opts"; then
1403 case $enable_option_checking in
1404 no) ;;
1405 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1406 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1407 esac
1408 fi
1409
1410 # Check all directory arguments for consistency.
1411 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1412 datadir sysconfdir sharedstatedir localstatedir includedir \
1413 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1414 libdir localedir mandir
1415 do
1416 eval ac_val=\$$ac_var
1417 # Remove trailing slashes.
1418 case $ac_val in
1419 */ )
1420 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1421 eval $ac_var=\$ac_val;;
1422 esac
1423 # Be sure to have absolute directory names.
1424 case $ac_val in
1425 [\\/$]* | ?:[\\/]* ) continue;;
1426 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1427 esac
1428 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1429 done
1430
1431 # There might be people who depend on the old broken behavior: `$host'
1432 # used to hold the argument of --host etc.
1433 # FIXME: To remove some day.
1434 build=$build_alias
1435 host=$host_alias
1436 target=$target_alias
1437
1438 # FIXME: To remove some day.
1439 if test "x$host_alias" != x; then
1440 if test "x$build_alias" = x; then
1441 cross_compiling=maybe
1442 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1443 If a cross compiler is detected then cross compile mode will be used." >&2
1444 elif test "x$build_alias" != "x$host_alias"; then
1445 cross_compiling=yes
1446 fi
1447 fi
1448
1449 ac_tool_prefix=
1450 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1451
1452 test "$silent" = yes && exec 6>/dev/null
1453
1454
1455 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1456 ac_ls_di=`ls -di .` &&
1457 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1458 as_fn_error "working directory cannot be determined"
1459 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1460 as_fn_error "pwd does not report name of working directory"
1461
1462
1463 # Find the source files, if location was not specified.
1464 if test -z "$srcdir"; then
1465 ac_srcdir_defaulted=yes
1466 # Try the directory containing this script, then the parent directory.
1467 ac_confdir=`$as_dirname -- "$as_myself" ||
1468 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1469 X"$as_myself" : 'X\(//\)[^/]' \| \
1470 X"$as_myself" : 'X\(//\)$' \| \
1471 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1472 $as_echo X"$as_myself" |
1473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1474 s//\1/
1475 q
1476 }
1477 /^X\(\/\/\)[^/].*/{
1478 s//\1/
1479 q
1480 }
1481 /^X\(\/\/\)$/{
1482 s//\1/
1483 q
1484 }
1485 /^X\(\/\).*/{
1486 s//\1/
1487 q
1488 }
1489 s/.*/./; q'`
1490 srcdir=$ac_confdir
1491 if test ! -r "$srcdir/$ac_unique_file"; then
1492 srcdir=..
1493 fi
1494 else
1495 ac_srcdir_defaulted=no
1496 fi
1497 if test ! -r "$srcdir/$ac_unique_file"; then
1498 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1499 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1500 fi
1501 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1502 ac_abs_confdir=`(
1503 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1504 pwd)`
1505 # When building in place, set srcdir=.
1506 if test "$ac_abs_confdir" = "$ac_pwd"; then
1507 srcdir=.
1508 fi
1509 # Remove unnecessary trailing slashes from srcdir.
1510 # Double slashes in file names in object file debugging info
1511 # mess up M-x gdb in Emacs.
1512 case $srcdir in
1513 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1514 esac
1515 for ac_var in $ac_precious_vars; do
1516 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1517 eval ac_env_${ac_var}_value=\$${ac_var}
1518 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1519 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1520 done
1521
1522 #
1523 # Report the --help message.
1524 #
1525 if test "$ac_init_help" = "long"; then
1526 # Omit some internal or obsolete options to make the list less imposing.
1527 # This message is too long to be a string in the A/UX 3.1 sh.
1528 cat <<_ACEOF
1529 \`configure' configures libjava version-unused to adapt to many kinds of systems.
1530
1531 Usage: $0 [OPTION]... [VAR=VALUE]...
1532
1533 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1534 VAR=VALUE. See below for descriptions of some of the useful variables.
1535
1536 Defaults for the options are specified in brackets.
1537
1538 Configuration:
1539 -h, --help display this help and exit
1540 --help=short display options specific to this package
1541 --help=recursive display the short help of all the included packages
1542 -V, --version display version information and exit
1543 -q, --quiet, --silent do not print \`checking...' messages
1544 --cache-file=FILE cache test results in FILE [disabled]
1545 -C, --config-cache alias for \`--cache-file=config.cache'
1546 -n, --no-create do not create output files
1547 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1548
1549 Installation directories:
1550 --prefix=PREFIX install architecture-independent files in PREFIX
1551 [$ac_default_prefix]
1552 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1553 [PREFIX]
1554
1555 By default, \`make install' will install all the files in
1556 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1557 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1558 for instance \`--prefix=\$HOME'.
1559
1560 For better control, use the options below.
1561
1562 Fine tuning of the installation directories:
1563 --bindir=DIR user executables [EPREFIX/bin]
1564 --sbindir=DIR system admin executables [EPREFIX/sbin]
1565 --libexecdir=DIR program executables [EPREFIX/libexec]
1566 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1567 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1568 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1569 --libdir=DIR object code libraries [EPREFIX/lib]
1570 --includedir=DIR C header files [PREFIX/include]
1571 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1572 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1573 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1574 --infodir=DIR info documentation [DATAROOTDIR/info]
1575 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1576 --mandir=DIR man documentation [DATAROOTDIR/man]
1577 --docdir=DIR documentation root [DATAROOTDIR/doc/libjava]
1578 --htmldir=DIR html documentation [DOCDIR]
1579 --dvidir=DIR dvi documentation [DOCDIR]
1580 --pdfdir=DIR pdf documentation [DOCDIR]
1581 --psdir=DIR ps documentation [DOCDIR]
1582 _ACEOF
1583
1584 cat <<\_ACEOF
1585
1586 Program names:
1587 --program-prefix=PREFIX prepend PREFIX to installed program names
1588 --program-suffix=SUFFIX append SUFFIX to installed program names
1589 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1590
1591 X features:
1592 --x-includes=DIR X include files are in DIR
1593 --x-libraries=DIR X library files are in DIR
1594
1595 System types:
1596 --build=BUILD configure for building on BUILD [guessed]
1597 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1598 --target=TARGET configure for building compilers for TARGET [HOST]
1599 _ACEOF
1600 fi
1601
1602 if test -n "$ac_init_help"; then
1603 case $ac_init_help in
1604 short | recursive ) echo "Configuration of libjava version-unused:";;
1605 esac
1606 cat <<\_ACEOF
1607
1608 Optional Features:
1609 --disable-option-checking ignore unrecognized --enable/--with options
1610 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1611 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1612 --enable-multilib build many library versions (default)
1613 --enable-version-specific-runtime-libs
1614 specify that runtime libraries should be installed
1615 in a compiler-specific directory
1616 --enable-browser-plugin build gcjwebplugin web browser plugin
1617 --enable-gconf-peer compile GConf native peers for util.preferences
1618 --disable-gjdoc compile GJDoc (disabled by --disable-gjdoc)
1619 default=yes
1620 --enable-java-maintainer-mode
1621 allow rebuilding of .class and .h files
1622 --disable-dependency-tracking speeds up one-time build
1623 --enable-dependency-tracking do not reject slow dependency extractors
1624 --enable-maintainer-mode enable make rules and dependencies not useful
1625 (and sometimes confusing) to the casual installer
1626 --enable-libgcj-sublibs build libgcj as many sub-libraries
1627 --enable-libgcj-debug enable runtime debugging code
1628 --enable-java-awt list of AWT peer implementations to be built
1629 --enable-shared[=PKGS] build shared libraries [default=yes]
1630 --enable-static[=PKGS] build static libraries [default=yes]
1631 --enable-fast-install[=PKGS]
1632 optimize for fast installation [default=yes]
1633 --disable-libtool-lock avoid locking (might break parallel builds)
1634 --disable-getenv-properties
1635 don't set system properties from GCJ_PROPERTIES
1636 --enable-hash-synchronization
1637 use global hash table for monitor locks
1638 --enable-libgcj-bc enable(default) or disable BC ABI for portions of
1639 libgcj
1640 --enable-reduced-reflection
1641 enable or disable(default) -freduced-reflection when
1642 building portions of libgcj
1643 --enable-gc-debug include full support for pointer backtracing etc.
1644 --enable-interpreter enable interpreter
1645 --enable-sjlj-exceptions
1646 force use of builtin_setjmp for exceptions
1647 --disable-java-net disable java.net
1648 --disable-jvmpi disable JVMPI support
1649 --enable-java-gc=TYPE choose garbage collector (default is boehm)
1650 --disable-rpath do not hardcode runtime library paths
1651 --enable-tls Use thread-local storage [default=yes]
1652 --disable-symvers disable symbol versioning for libjava
1653 --enable-aot-compile-rpm
1654 enable installation of aot-compile-rpm [default=no]
1655 --enable-java-home create a standard JDK-style directory layout in the
1656 install tree [default=no]
1657
1658 Optional Packages:
1659 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1660 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1661 --with-build-libsubdir=DIR Directory where to find libraries for build system
1662 --with-target-subdir=SUBDIR
1663 configure in a subdirectory
1664 --with-cross-host=HOST configure with a cross compiler from HOST
1665 --with-newlib configure with newlib
1666 --with-antlr-jar=file Use ANTLR from the specified jar file
1667 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
1668 --with-pic try to use only PIC/non-PIC objects [default=use
1669 both]
1670 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1671 --with-ecj-jar=FILE use preinstalled ecj jar
1672 --with-java-home=DIRECTORY
1673 value of java.home system property
1674 --with-win32-nlsapi=ansi or unicows or unicode
1675 native MinGW libgcj Win32 OS API (default is ansi)
1676 --without-libffi don't use libffi
1677 --with-ecos enable runtime eCos target support
1678 --with-system-zlib use installed libz
1679 --with-x use the X Window System
1680 --with-gnu-ld assume the C compiler uses GNU ld default=no
1681 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1682 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1683 --with-system-libunwind use installed libunwind
1684 --with-python-dir the location to install Python modules. This path
1685 should NOT include the prefix.
1686 --with-gcc-suffix the GCC tool suffix (defaults to empty string)
1687 --with-arch-directory the arch directory under jre/lib (defaults to
1688 auto-detect)
1689 --with-os-directory the os directory under include (defaults to
1690 auto-detect)
1691 --with-origin-name the JPackage origin name of this package (default is
1692 gcj${gcc_suffix}
1693 --with-arch-suffix the arch directory suffix (default is the empty
1694 string
1695 --with-jvm-root-dir where to install SDK (default is ${prefix}/lib/jvm)
1696 --with-jvm-jar-dir where to install jars (default is
1697 ${prefix}/lib/jvm-exports)
1698
1699 Some influential environment variables:
1700 CC C compiler command
1701 CFLAGS C compiler flags
1702 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1703 nonstandard directory <lib dir>
1704 LIBS libraries to pass to the linker, e.g. -l<library>
1705 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1706 you have headers in a nonstandard directory <include dir>
1707 CXX C++ compiler command
1708 CXXFLAGS C++ compiler flags
1709 CPP C preprocessor
1710 CXXCPP C++ preprocessor
1711 XMKMF Path to xmkmf, Makefile generator for X Window System
1712
1713 Use these variables to override the choices made by `configure' or to help
1714 it to find libraries and programs with nonstandard names/locations.
1715
1716 Report bugs to the package provider.
1717 _ACEOF
1718 ac_status=$?
1719 fi
1720
1721 if test "$ac_init_help" = "recursive"; then
1722 # If there are subdirs, report their specific --help.
1723 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1724 test -d "$ac_dir" ||
1725 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1726 continue
1727 ac_builddir=.
1728
1729 case "$ac_dir" in
1730 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1731 *)
1732 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1733 # A ".." for each directory in $ac_dir_suffix.
1734 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1735 case $ac_top_builddir_sub in
1736 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1737 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1738 esac ;;
1739 esac
1740 ac_abs_top_builddir=$ac_pwd
1741 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1742 # for backward compatibility:
1743 ac_top_builddir=$ac_top_build_prefix
1744
1745 case $srcdir in
1746 .) # We are building in place.
1747 ac_srcdir=.
1748 ac_top_srcdir=$ac_top_builddir_sub
1749 ac_abs_top_srcdir=$ac_pwd ;;
1750 [\\/]* | ?:[\\/]* ) # Absolute name.
1751 ac_srcdir=$srcdir$ac_dir_suffix;
1752 ac_top_srcdir=$srcdir
1753 ac_abs_top_srcdir=$srcdir ;;
1754 *) # Relative name.
1755 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1756 ac_top_srcdir=$ac_top_build_prefix$srcdir
1757 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1758 esac
1759 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1760
1761 cd "$ac_dir" || { ac_status=$?; continue; }
1762 # Check for guested configure.
1763 if test -f "$ac_srcdir/configure.gnu"; then
1764 echo &&
1765 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1766 elif test -f "$ac_srcdir/configure"; then
1767 echo &&
1768 $SHELL "$ac_srcdir/configure" --help=recursive
1769 else
1770 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1771 fi || ac_status=$?
1772 cd "$ac_pwd" || { ac_status=$?; break; }
1773 done
1774 fi
1775
1776 test -n "$ac_init_help" && exit $ac_status
1777 if $ac_init_version; then
1778 cat <<\_ACEOF
1779 libjava configure version-unused
1780 generated by GNU Autoconf 2.64
1781
1782 Copyright (C) 2009 Free Software Foundation, Inc.
1783 This configure script is free software; the Free Software Foundation
1784 gives unlimited permission to copy, distribute and modify it.
1785 _ACEOF
1786 exit
1787 fi
1788
1789 ## ------------------------ ##
1790 ## Autoconf initialization. ##
1791 ## ------------------------ ##
1792
1793 # ac_fn_c_try_compile LINENO
1794 # --------------------------
1795 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1796 ac_fn_c_try_compile ()
1797 {
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 rm -f conftest.$ac_objext
1800 if { { ac_try="$ac_compile"
1801 case "(($ac_try" in
1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803 *) ac_try_echo=$ac_try;;
1804 esac
1805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806 $as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_compile") 2>conftest.err
1808 ac_status=$?
1809 if test -s conftest.err; then
1810 grep -v '^ *+' conftest.err >conftest.er1
1811 cat conftest.er1 >&5
1812 mv -f conftest.er1 conftest.err
1813 fi
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && {
1816 test -z "$ac_c_werror_flag" ||
1817 test ! -s conftest.err
1818 } && test -s conftest.$ac_objext; then :
1819 ac_retval=0
1820 else
1821 $as_echo "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.$ac_ext >&5
1823
1824 ac_retval=1
1825 fi
1826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827 return $ac_retval
1828
1829 } # ac_fn_c_try_compile
1830
1831 # ac_fn_cxx_try_compile LINENO
1832 # ----------------------------
1833 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1834 ac_fn_cxx_try_compile ()
1835 {
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 rm -f conftest.$ac_objext
1838 if { { ac_try="$ac_compile"
1839 case "(($ac_try" in
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1842 esac
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_compile") 2>conftest.err
1846 ac_status=$?
1847 if test -s conftest.err; then
1848 grep -v '^ *+' conftest.err >conftest.er1
1849 cat conftest.er1 >&5
1850 mv -f conftest.er1 conftest.err
1851 fi
1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853 test $ac_status = 0; } && {
1854 test -z "$ac_cxx_werror_flag" ||
1855 test ! -s conftest.err
1856 } && test -s conftest.$ac_objext; then :
1857 ac_retval=0
1858 else
1859 $as_echo "$as_me: failed program was:" >&5
1860 sed 's/^/| /' conftest.$ac_ext >&5
1861
1862 ac_retval=1
1863 fi
1864 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1865 return $ac_retval
1866
1867 } # ac_fn_cxx_try_compile
1868
1869 # ac_fn_c_try_link LINENO
1870 # -----------------------
1871 # Try to link conftest.$ac_ext, and return whether this succeeded.
1872 ac_fn_c_try_link ()
1873 {
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 rm -f conftest.$ac_objext conftest$ac_exeext
1876 if { { ac_try="$ac_link"
1877 case "(($ac_try" in
1878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1879 *) ac_try_echo=$ac_try;;
1880 esac
1881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1882 $as_echo "$ac_try_echo"; } >&5
1883 (eval "$ac_link") 2>conftest.err
1884 ac_status=$?
1885 if test -s conftest.err; then
1886 grep -v '^ *+' conftest.err >conftest.er1
1887 cat conftest.er1 >&5
1888 mv -f conftest.er1 conftest.err
1889 fi
1890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891 test $ac_status = 0; } && {
1892 test -z "$ac_c_werror_flag" ||
1893 test ! -s conftest.err
1894 } && test -s conftest$ac_exeext && {
1895 test "$cross_compiling" = yes ||
1896 $as_test_x conftest$ac_exeext
1897 }; then :
1898 ac_retval=0
1899 else
1900 $as_echo "$as_me: failed program was:" >&5
1901 sed 's/^/| /' conftest.$ac_ext >&5
1902
1903 ac_retval=1
1904 fi
1905 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1906 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1907 # interfere with the next link command; also delete a directory that is
1908 # left behind by Apple's compiler. We do this before executing the actions.
1909 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1910 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1911 return $ac_retval
1912
1913 } # ac_fn_c_try_link
1914
1915 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1916 # -------------------------------------------------------
1917 # Tests whether HEADER exists and can be compiled using the include files in
1918 # INCLUDES, setting the cache variable VAR accordingly.
1919 ac_fn_c_check_header_compile ()
1920 {
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1923 $as_echo_n "checking for $2... " >&6; }
1924 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1925 $as_echo_n "(cached) " >&6
1926 else
1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h. */
1929 $4
1930 #include <$2>
1931 _ACEOF
1932 if ac_fn_c_try_compile "$LINENO"; then :
1933 eval "$3=yes"
1934 else
1935 eval "$3=no"
1936 fi
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938 fi
1939 eval ac_res=\$$3
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1942 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1943
1944 } # ac_fn_c_check_header_compile
1945
1946 # ac_fn_c_try_cpp LINENO
1947 # ----------------------
1948 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1949 ac_fn_c_try_cpp ()
1950 {
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 if { { ac_try="$ac_cpp conftest.$ac_ext"
1953 case "(($ac_try" in
1954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1955 *) ac_try_echo=$ac_try;;
1956 esac
1957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1958 $as_echo "$ac_try_echo"; } >&5
1959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1960 ac_status=$?
1961 if test -s conftest.err; then
1962 grep -v '^ *+' conftest.err >conftest.er1
1963 cat conftest.er1 >&5
1964 mv -f conftest.er1 conftest.err
1965 fi
1966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1967 test $ac_status = 0; } >/dev/null && {
1968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1969 test ! -s conftest.err
1970 }; then :
1971 ac_retval=0
1972 else
1973 $as_echo "$as_me: failed program was:" >&5
1974 sed 's/^/| /' conftest.$ac_ext >&5
1975
1976 ac_retval=1
1977 fi
1978 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1979 return $ac_retval
1980
1981 } # ac_fn_c_try_cpp
1982
1983 # ac_fn_c_try_run LINENO
1984 # ----------------------
1985 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1986 # that executables *can* be run.
1987 ac_fn_c_try_run ()
1988 {
1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990 if { { ac_try="$ac_link"
1991 case "(($ac_try" in
1992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1993 *) ac_try_echo=$ac_try;;
1994 esac
1995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996 $as_echo "$ac_try_echo"; } >&5
1997 (eval "$ac_link") 2>&5
1998 ac_status=$?
1999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2001 { { case "(($ac_try" in
2002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2003 *) ac_try_echo=$ac_try;;
2004 esac
2005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2006 $as_echo "$ac_try_echo"; } >&5
2007 (eval "$ac_try") 2>&5
2008 ac_status=$?
2009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010 test $ac_status = 0; }; }; then :
2011 ac_retval=0
2012 else
2013 $as_echo "$as_me: program exited with status $ac_status" >&5
2014 $as_echo "$as_me: failed program was:" >&5
2015 sed 's/^/| /' conftest.$ac_ext >&5
2016
2017 ac_retval=$ac_status
2018 fi
2019 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2020 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2021 return $ac_retval
2022
2023 } # ac_fn_c_try_run
2024
2025 # ac_fn_c_check_func LINENO FUNC VAR
2026 # ----------------------------------
2027 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2028 ac_fn_c_check_func ()
2029 {
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2032 $as_echo_n "checking for $2... " >&6; }
2033 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2034 $as_echo_n "(cached) " >&6
2035 else
2036 if test x$gcc_no_link = xyes; then
2037 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2038 fi
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2041 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2043 #define $2 innocuous_$2
2044
2045 /* System header to define __stub macros and hopefully few prototypes,
2046 which can conflict with char $2 (); below.
2047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2048 <limits.h> exists even on freestanding compilers. */
2049
2050 #ifdef __STDC__
2051 # include <limits.h>
2052 #else
2053 # include <assert.h>
2054 #endif
2055
2056 #undef $2
2057
2058 /* Override any GCC internal prototype to avoid an error.
2059 Use char because int might match the return type of a GCC
2060 builtin and then its argument prototype would still apply. */
2061 #ifdef __cplusplus
2062 extern "C"
2063 #endif
2064 char $2 ();
2065 /* The GNU C library defines this for functions which it implements
2066 to always fail with ENOSYS. Some functions are actually named
2067 something starting with __ and the normal name is an alias. */
2068 #if defined __stub_$2 || defined __stub___$2
2069 choke me
2070 #endif
2071
2072 int
2073 main ()
2074 {
2075 return $2 ();
2076 ;
2077 return 0;
2078 }
2079 _ACEOF
2080 if ac_fn_c_try_link "$LINENO"; then :
2081 eval "$3=yes"
2082 else
2083 eval "$3=no"
2084 fi
2085 rm -f core conftest.err conftest.$ac_objext \
2086 conftest$ac_exeext conftest.$ac_ext
2087 fi
2088 eval ac_res=\$$3
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2090 $as_echo "$ac_res" >&6; }
2091 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2092
2093 } # ac_fn_c_check_func
2094
2095 # ac_fn_cxx_try_cpp LINENO
2096 # ------------------------
2097 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2098 ac_fn_cxx_try_cpp ()
2099 {
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101 if { { ac_try="$ac_cpp conftest.$ac_ext"
2102 case "(($ac_try" in
2103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104 *) ac_try_echo=$ac_try;;
2105 esac
2106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2107 $as_echo "$ac_try_echo"; } >&5
2108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2109 ac_status=$?
2110 if test -s conftest.err; then
2111 grep -v '^ *+' conftest.err >conftest.er1
2112 cat conftest.er1 >&5
2113 mv -f conftest.er1 conftest.err
2114 fi
2115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2116 test $ac_status = 0; } >/dev/null && {
2117 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2118 test ! -s conftest.err
2119 }; then :
2120 ac_retval=0
2121 else
2122 $as_echo "$as_me: failed program was:" >&5
2123 sed 's/^/| /' conftest.$ac_ext >&5
2124
2125 ac_retval=1
2126 fi
2127 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2128 return $ac_retval
2129
2130 } # ac_fn_cxx_try_cpp
2131
2132 # ac_fn_cxx_try_link LINENO
2133 # -------------------------
2134 # Try to link conftest.$ac_ext, and return whether this succeeded.
2135 ac_fn_cxx_try_link ()
2136 {
2137 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2138 rm -f conftest.$ac_objext conftest$ac_exeext
2139 if { { ac_try="$ac_link"
2140 case "(($ac_try" in
2141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142 *) ac_try_echo=$ac_try;;
2143 esac
2144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2145 $as_echo "$ac_try_echo"; } >&5
2146 (eval "$ac_link") 2>conftest.err
2147 ac_status=$?
2148 if test -s conftest.err; then
2149 grep -v '^ *+' conftest.err >conftest.er1
2150 cat conftest.er1 >&5
2151 mv -f conftest.er1 conftest.err
2152 fi
2153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2154 test $ac_status = 0; } && {
2155 test -z "$ac_cxx_werror_flag" ||
2156 test ! -s conftest.err
2157 } && test -s conftest$ac_exeext && {
2158 test "$cross_compiling" = yes ||
2159 $as_test_x conftest$ac_exeext
2160 }; then :
2161 ac_retval=0
2162 else
2163 $as_echo "$as_me: failed program was:" >&5
2164 sed 's/^/| /' conftest.$ac_ext >&5
2165
2166 ac_retval=1
2167 fi
2168 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2169 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2170 # interfere with the next link command; also delete a directory that is
2171 # left behind by Apple's compiler. We do this before executing the actions.
2172 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2173 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2174 return $ac_retval
2175
2176 } # ac_fn_cxx_try_link
2177
2178 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2179 # -------------------------------------------------------
2180 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2181 # the include files in INCLUDES and setting the cache variable VAR
2182 # accordingly.
2183 ac_fn_c_check_header_mongrel ()
2184 {
2185 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2186 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2188 $as_echo_n "checking for $2... " >&6; }
2189 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2190 $as_echo_n "(cached) " >&6
2191 fi
2192 eval ac_res=\$$3
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2194 $as_echo "$ac_res" >&6; }
2195 else
2196 # Is the header compilable?
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2198 $as_echo_n "checking $2 usability... " >&6; }
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2201 $4
2202 #include <$2>
2203 _ACEOF
2204 if ac_fn_c_try_compile "$LINENO"; then :
2205 ac_header_compiler=yes
2206 else
2207 ac_header_compiler=no
2208 fi
2209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2211 $as_echo "$ac_header_compiler" >&6; }
2212
2213 # Is the header present?
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2215 $as_echo_n "checking $2 presence... " >&6; }
2216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2217 /* end confdefs.h. */
2218 #include <$2>
2219 _ACEOF
2220 if ac_fn_c_try_cpp "$LINENO"; then :
2221 ac_header_preproc=yes
2222 else
2223 ac_header_preproc=no
2224 fi
2225 rm -f conftest.err conftest.$ac_ext
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2227 $as_echo "$ac_header_preproc" >&6; }
2228
2229 # So? What about this header?
2230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2231 yes:no: )
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2233 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2235 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2236 ;;
2237 no:yes:* )
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2239 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2241 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2243 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2245 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2247 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2248 ;;
2249 esac
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2251 $as_echo_n "checking for $2... " >&6; }
2252 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2253 $as_echo_n "(cached) " >&6
2254 else
2255 eval "$3=\$ac_header_compiler"
2256 fi
2257 eval ac_res=\$$3
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2259 $as_echo "$ac_res" >&6; }
2260 fi
2261 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2262
2263 } # ac_fn_c_check_header_mongrel
2264
2265 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2266 # ----------------------------------------------------
2267 # Tries to find if the field MEMBER exists in type AGGR, after including
2268 # INCLUDES, setting cache variable VAR accordingly.
2269 ac_fn_c_check_member ()
2270 {
2271 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2273 $as_echo_n "checking for $2.$3... " >&6; }
2274 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2275 $as_echo_n "(cached) " >&6
2276 else
2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278 /* end confdefs.h. */
2279 $5
2280 int
2281 main ()
2282 {
2283 static $2 ac_aggr;
2284 if (ac_aggr.$3)
2285 return 0;
2286 ;
2287 return 0;
2288 }
2289 _ACEOF
2290 if ac_fn_c_try_compile "$LINENO"; then :
2291 eval "$4=yes"
2292 else
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h. */
2295 $5
2296 int
2297 main ()
2298 {
2299 static $2 ac_aggr;
2300 if (sizeof ac_aggr.$3)
2301 return 0;
2302 ;
2303 return 0;
2304 }
2305 _ACEOF
2306 if ac_fn_c_try_compile "$LINENO"; then :
2307 eval "$4=yes"
2308 else
2309 eval "$4=no"
2310 fi
2311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2312 fi
2313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2314 fi
2315 eval ac_res=\$$4
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2317 $as_echo "$ac_res" >&6; }
2318 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2319
2320 } # ac_fn_c_check_member
2321
2322 # ac_fn_c_check_decl LINENO SYMBOL VAR
2323 # ------------------------------------
2324 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2325 ac_fn_c_check_decl ()
2326 {
2327 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2328 as_decl_name=`echo $2|sed 's/ *(.*//'`
2329 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2331 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2332 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2333 $as_echo_n "(cached) " >&6
2334 else
2335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2336 /* end confdefs.h. */
2337 $4
2338 int
2339 main ()
2340 {
2341 #ifndef $as_decl_name
2342 #ifdef __cplusplus
2343 (void) $as_decl_use;
2344 #else
2345 (void) $as_decl_name;
2346 #endif
2347 #endif
2348
2349 ;
2350 return 0;
2351 }
2352 _ACEOF
2353 if ac_fn_c_try_compile "$LINENO"; then :
2354 eval "$3=yes"
2355 else
2356 eval "$3=no"
2357 fi
2358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2359 fi
2360 eval ac_res=\$$3
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2362 $as_echo "$ac_res" >&6; }
2363 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2364
2365 } # ac_fn_c_check_decl
2366
2367 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2368 # --------------------------------------------
2369 # Tries to find the compile-time value of EXPR in a program that includes
2370 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2371 # computed
2372 ac_fn_c_compute_int ()
2373 {
2374 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2375 if test "$cross_compiling" = yes; then
2376 # Depending upon the size, compute the lo and hi bounds.
2377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2378 /* end confdefs.h. */
2379 $4
2380 int
2381 main ()
2382 {
2383 static int test_array [1 - 2 * !(($2) >= 0)];
2384 test_array [0] = 0
2385
2386 ;
2387 return 0;
2388 }
2389 _ACEOF
2390 if ac_fn_c_try_compile "$LINENO"; then :
2391 ac_lo=0 ac_mid=0
2392 while :; do
2393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2394 /* end confdefs.h. */
2395 $4
2396 int
2397 main ()
2398 {
2399 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
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=$ac_mid; break
2408 else
2409 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2410 if test $ac_lo -le $ac_mid; then
2411 ac_lo= ac_hi=
2412 break
2413 fi
2414 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2415 fi
2416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2417 done
2418 else
2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420 /* end confdefs.h. */
2421 $4
2422 int
2423 main ()
2424 {
2425 static int test_array [1 - 2 * !(($2) < 0)];
2426 test_array [0] = 0
2427
2428 ;
2429 return 0;
2430 }
2431 _ACEOF
2432 if ac_fn_c_try_compile "$LINENO"; then :
2433 ac_hi=-1 ac_mid=-1
2434 while :; do
2435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2436 /* end confdefs.h. */
2437 $4
2438 int
2439 main ()
2440 {
2441 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2442 test_array [0] = 0
2443
2444 ;
2445 return 0;
2446 }
2447 _ACEOF
2448 if ac_fn_c_try_compile "$LINENO"; then :
2449 ac_lo=$ac_mid; break
2450 else
2451 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2452 if test $ac_mid -le $ac_hi; then
2453 ac_lo= ac_hi=
2454 break
2455 fi
2456 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2457 fi
2458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2459 done
2460 else
2461 ac_lo= ac_hi=
2462 fi
2463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2464 fi
2465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2466 # Binary search between lo and hi bounds.
2467 while test "x$ac_lo" != "x$ac_hi"; do
2468 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2470 /* end confdefs.h. */
2471 $4
2472 int
2473 main ()
2474 {
2475 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2476 test_array [0] = 0
2477
2478 ;
2479 return 0;
2480 }
2481 _ACEOF
2482 if ac_fn_c_try_compile "$LINENO"; then :
2483 ac_hi=$ac_mid
2484 else
2485 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2486 fi
2487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2488 done
2489 case $ac_lo in #((
2490 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2491 '') ac_retval=1 ;;
2492 esac
2493 else
2494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2495 /* end confdefs.h. */
2496 $4
2497 static long int longval () { return $2; }
2498 static unsigned long int ulongval () { return $2; }
2499 #include <stdio.h>
2500 #include <stdlib.h>
2501 int
2502 main ()
2503 {
2504
2505 FILE *f = fopen ("conftest.val", "w");
2506 if (! f)
2507 return 1;
2508 if (($2) < 0)
2509 {
2510 long int i = longval ();
2511 if (i != ($2))
2512 return 1;
2513 fprintf (f, "%ld", i);
2514 }
2515 else
2516 {
2517 unsigned long int i = ulongval ();
2518 if (i != ($2))
2519 return 1;
2520 fprintf (f, "%lu", i);
2521 }
2522 /* Do not output a trailing newline, as this causes \r\n confusion
2523 on some platforms. */
2524 return ferror (f) || fclose (f) != 0;
2525
2526 ;
2527 return 0;
2528 }
2529 _ACEOF
2530 if ac_fn_c_try_run "$LINENO"; then :
2531 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2532 else
2533 ac_retval=1
2534 fi
2535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2536 conftest.$ac_objext conftest.beam conftest.$ac_ext
2537 rm -f conftest.val
2538
2539 fi
2540 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2541 return $ac_retval
2542
2543 } # ac_fn_c_compute_int
2544
2545 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2546 # -------------------------------------------
2547 # Tests whether TYPE exists after having included INCLUDES, setting cache
2548 # variable VAR accordingly.
2549 ac_fn_c_check_type ()
2550 {
2551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2553 $as_echo_n "checking for $2... " >&6; }
2554 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2555 $as_echo_n "(cached) " >&6
2556 else
2557 eval "$3=no"
2558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2559 /* end confdefs.h. */
2560 $4
2561 int
2562 main ()
2563 {
2564 if (sizeof ($2))
2565 return 0;
2566 ;
2567 return 0;
2568 }
2569 _ACEOF
2570 if ac_fn_c_try_compile "$LINENO"; then :
2571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2572 /* end confdefs.h. */
2573 $4
2574 int
2575 main ()
2576 {
2577 if (sizeof (($2)))
2578 return 0;
2579 ;
2580 return 0;
2581 }
2582 _ACEOF
2583 if ac_fn_c_try_compile "$LINENO"; then :
2584
2585 else
2586 eval "$3=yes"
2587 fi
2588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2589 fi
2590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2591 fi
2592 eval ac_res=\$$3
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2594 $as_echo "$ac_res" >&6; }
2595 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2596
2597 } # ac_fn_c_check_type
2598 cat >config.log <<_ACEOF
2599 This file contains any messages produced by compilers while
2600 running configure, to aid debugging if configure makes a mistake.
2601
2602 It was created by libjava $as_me version-unused, which was
2603 generated by GNU Autoconf 2.64. Invocation command line was
2604
2605 $ $0 $@
2606
2607 _ACEOF
2608 exec 5>>config.log
2609 {
2610 cat <<_ASUNAME
2611 ## --------- ##
2612 ## Platform. ##
2613 ## --------- ##
2614
2615 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2616 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2617 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2618 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2619 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2620
2621 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2622 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2623
2624 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2625 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2626 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2627 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2628 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2629 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2630 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2631
2632 _ASUNAME
2633
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 for as_dir in $PATH
2636 do
2637 IFS=$as_save_IFS
2638 test -z "$as_dir" && as_dir=.
2639 $as_echo "PATH: $as_dir"
2640 done
2641 IFS=$as_save_IFS
2642
2643 } >&5
2644
2645 cat >&5 <<_ACEOF
2646
2647
2648 ## ----------- ##
2649 ## Core tests. ##
2650 ## ----------- ##
2651
2652 _ACEOF
2653
2654
2655 # Keep a trace of the command line.
2656 # Strip out --no-create and --no-recursion so they do not pile up.
2657 # Strip out --silent because we don't want to record it for future runs.
2658 # Also quote any args containing shell meta-characters.
2659 # Make two passes to allow for proper duplicate-argument suppression.
2660 ac_configure_args=
2661 ac_configure_args0=
2662 ac_configure_args1=
2663 ac_must_keep_next=false
2664 for ac_pass in 1 2
2665 do
2666 for ac_arg
2667 do
2668 case $ac_arg in
2669 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2670 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2671 | -silent | --silent | --silen | --sile | --sil)
2672 continue ;;
2673 *\'*)
2674 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2675 esac
2676 case $ac_pass in
2677 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2678 2)
2679 as_fn_append ac_configure_args1 " '$ac_arg'"
2680 if test $ac_must_keep_next = true; then
2681 ac_must_keep_next=false # Got value, back to normal.
2682 else
2683 case $ac_arg in
2684 *=* | --config-cache | -C | -disable-* | --disable-* \
2685 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2686 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2687 | -with-* | --with-* | -without-* | --without-* | --x)
2688 case "$ac_configure_args0 " in
2689 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2690 esac
2691 ;;
2692 -* ) ac_must_keep_next=true ;;
2693 esac
2694 fi
2695 as_fn_append ac_configure_args " '$ac_arg'"
2696 ;;
2697 esac
2698 done
2699 done
2700 { ac_configure_args0=; unset ac_configure_args0;}
2701 { ac_configure_args1=; unset ac_configure_args1;}
2702
2703 # When interrupted or exit'd, cleanup temporary files, and complete
2704 # config.log. We remove comments because anyway the quotes in there
2705 # would cause problems or look ugly.
2706 # WARNING: Use '\'' to represent an apostrophe within the trap.
2707 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2708 trap 'exit_status=$?
2709 # Save into config.log some information that might help in debugging.
2710 {
2711 echo
2712
2713 cat <<\_ASBOX
2714 ## ---------------- ##
2715 ## Cache variables. ##
2716 ## ---------------- ##
2717 _ASBOX
2718 echo
2719 # The following way of writing the cache mishandles newlines in values,
2720 (
2721 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2722 eval ac_val=\$$ac_var
2723 case $ac_val in #(
2724 *${as_nl}*)
2725 case $ac_var in #(
2726 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2727 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2728 esac
2729 case $ac_var in #(
2730 _ | IFS | as_nl) ;; #(
2731 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2732 *) { eval $ac_var=; unset $ac_var;} ;;
2733 esac ;;
2734 esac
2735 done
2736 (set) 2>&1 |
2737 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2738 *${as_nl}ac_space=\ *)
2739 sed -n \
2740 "s/'\''/'\''\\\\'\'''\''/g;
2741 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2742 ;; #(
2743 *)
2744 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2745 ;;
2746 esac |
2747 sort
2748 )
2749 echo
2750
2751 cat <<\_ASBOX
2752 ## ----------------- ##
2753 ## Output variables. ##
2754 ## ----------------- ##
2755 _ASBOX
2756 echo
2757 for ac_var in $ac_subst_vars
2758 do
2759 eval ac_val=\$$ac_var
2760 case $ac_val in
2761 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2762 esac
2763 $as_echo "$ac_var='\''$ac_val'\''"
2764 done | sort
2765 echo
2766
2767 if test -n "$ac_subst_files"; then
2768 cat <<\_ASBOX
2769 ## ------------------- ##
2770 ## File substitutions. ##
2771 ## ------------------- ##
2772 _ASBOX
2773 echo
2774 for ac_var in $ac_subst_files
2775 do
2776 eval ac_val=\$$ac_var
2777 case $ac_val in
2778 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2779 esac
2780 $as_echo "$ac_var='\''$ac_val'\''"
2781 done | sort
2782 echo
2783 fi
2784
2785 if test -s confdefs.h; then
2786 cat <<\_ASBOX
2787 ## ----------- ##
2788 ## confdefs.h. ##
2789 ## ----------- ##
2790 _ASBOX
2791 echo
2792 cat confdefs.h
2793 echo
2794 fi
2795 test "$ac_signal" != 0 &&
2796 $as_echo "$as_me: caught signal $ac_signal"
2797 $as_echo "$as_me: exit $exit_status"
2798 } >&5
2799 rm -f core *.core core.conftest.* &&
2800 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2801 exit $exit_status
2802 ' 0
2803 for ac_signal in 1 2 13 15; do
2804 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2805 done
2806 ac_signal=0
2807
2808 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2809 rm -f -r conftest* confdefs.h
2810
2811 $as_echo "/* confdefs.h */" > confdefs.h
2812
2813 # Predefined preprocessor variables.
2814
2815 cat >>confdefs.h <<_ACEOF
2816 #define PACKAGE_NAME "$PACKAGE_NAME"
2817 _ACEOF
2818
2819 cat >>confdefs.h <<_ACEOF
2820 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2821 _ACEOF
2822
2823 cat >>confdefs.h <<_ACEOF
2824 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2825 _ACEOF
2826
2827 cat >>confdefs.h <<_ACEOF
2828 #define PACKAGE_STRING "$PACKAGE_STRING"
2829 _ACEOF
2830
2831 cat >>confdefs.h <<_ACEOF
2832 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2833 _ACEOF
2834
2835 cat >>confdefs.h <<_ACEOF
2836 #define PACKAGE_URL "$PACKAGE_URL"
2837 _ACEOF
2838
2839
2840 # Let the site file select an alternate cache file if it wants to.
2841 # Prefer an explicitly selected file to automatically selected ones.
2842 ac_site_file1=NONE
2843 ac_site_file2=NONE
2844 if test -n "$CONFIG_SITE"; then
2845 ac_site_file1=$CONFIG_SITE
2846 elif test "x$prefix" != xNONE; then
2847 ac_site_file1=$prefix/share/config.site
2848 ac_site_file2=$prefix/etc/config.site
2849 else
2850 ac_site_file1=$ac_default_prefix/share/config.site
2851 ac_site_file2=$ac_default_prefix/etc/config.site
2852 fi
2853 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2854 do
2855 test "x$ac_site_file" = xNONE && continue
2856 if test -r "$ac_site_file"; then
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2858 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2859 sed 's/^/| /' "$ac_site_file" >&5
2860 . "$ac_site_file"
2861 fi
2862 done
2863
2864 if test -r "$cache_file"; then
2865 # Some versions of bash will fail to source /dev/null (special
2866 # files actually), so we avoid doing that.
2867 if test -f "$cache_file"; then
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2869 $as_echo "$as_me: loading cache $cache_file" >&6;}
2870 case $cache_file in
2871 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2872 *) . "./$cache_file";;
2873 esac
2874 fi
2875 else
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2877 $as_echo "$as_me: creating cache $cache_file" >&6;}
2878 >$cache_file
2879 fi
2880
2881 # Check that the precious variables saved in the cache have kept the same
2882 # value.
2883 ac_cache_corrupted=false
2884 for ac_var in $ac_precious_vars; do
2885 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2886 eval ac_new_set=\$ac_env_${ac_var}_set
2887 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2888 eval ac_new_val=\$ac_env_${ac_var}_value
2889 case $ac_old_set,$ac_new_set in
2890 set,)
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2892 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2893 ac_cache_corrupted=: ;;
2894 ,set)
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2896 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2897 ac_cache_corrupted=: ;;
2898 ,);;
2899 *)
2900 if test "x$ac_old_val" != "x$ac_new_val"; then
2901 # differences in whitespace do not lead to failure.
2902 ac_old_val_w=`echo x $ac_old_val`
2903 ac_new_val_w=`echo x $ac_new_val`
2904 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2906 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2907 ac_cache_corrupted=:
2908 else
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2910 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2911 eval $ac_var=\$ac_old_val
2912 fi
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2914 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2916 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2917 fi;;
2918 esac
2919 # Pass precious variables to config.status.
2920 if test "$ac_new_set" = set; then
2921 case $ac_new_val in
2922 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2923 *) ac_arg=$ac_var=$ac_new_val ;;
2924 esac
2925 case " $ac_configure_args " in
2926 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2927 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2928 esac
2929 fi
2930 done
2931 if $ac_cache_corrupted; then
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2935 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2936 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2937 fi
2938 ## -------------------- ##
2939 ## Main body of script. ##
2940 ## -------------------- ##
2941
2942 ac_ext=c
2943 ac_cpp='$CPP $CPPFLAGS'
2944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2947
2948
2949
2950
2951
2952
2953
2954
2955 ac_aux_dir=
2956 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2957 for ac_t in install-sh install.sh shtool; do
2958 if test -f "$ac_dir/$ac_t"; then
2959 ac_aux_dir=$ac_dir
2960 ac_install_sh="$ac_aux_dir/$ac_t -c"
2961 break 2
2962 fi
2963 done
2964 done
2965 if test -z "$ac_aux_dir"; then
2966 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2967 fi
2968
2969 # These three variables are undocumented and unsupported,
2970 # and are intended to be withdrawn in a future Autoconf release.
2971 # They can cause serious problems if a builder's source tree is in a directory
2972 # whose full name contains unusual characters.
2973 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2974 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2975 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2976
2977
2978 # Make sure we can run config.sub.
2979 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2980 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2981
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2983 $as_echo_n "checking build system type... " >&6; }
2984 if test "${ac_cv_build+set}" = set; then :
2985 $as_echo_n "(cached) " >&6
2986 else
2987 ac_build_alias=$build_alias
2988 test "x$ac_build_alias" = x &&
2989 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2990 test "x$ac_build_alias" = x &&
2991 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2992 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2993 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2994
2995 fi
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2997 $as_echo "$ac_cv_build" >&6; }
2998 case $ac_cv_build in
2999 *-*-*) ;;
3000 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3001 esac
3002 build=$ac_cv_build
3003 ac_save_IFS=$IFS; IFS='-'
3004 set x $ac_cv_build
3005 shift
3006 build_cpu=$1
3007 build_vendor=$2
3008 shift; shift
3009 # Remember, the first character of IFS is used to create $*,
3010 # except with old shells:
3011 build_os=$*
3012 IFS=$ac_save_IFS
3013 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3014
3015
3016 case ${build_alias} in
3017 "") build_noncanonical=${build} ;;
3018 *) build_noncanonical=${build_alias} ;;
3019 esac
3020
3021 case ${host_alias} in
3022 "") host_noncanonical=${build_noncanonical} ;;
3023 *) host_noncanonical=${host_alias} ;;
3024 esac
3025
3026 case ${target_alias} in
3027 "") target_noncanonical=${host_noncanonical} ;;
3028 *) target_noncanonical=${target_alias} ;;
3029 esac
3030
3031
3032 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3033 # have matching libraries, they should use host libraries: Makefile.tpl
3034 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3035 # However, they still use the build modules, because the corresponding
3036 # host modules (e.g. bison) are only built for the host when bootstrap
3037 # finishes. So:
3038 # - build_subdir is where we find build modules, and never changes.
3039 # - build_libsubdir is where we find build libraries, and can be overridden.
3040
3041 # Prefix 'build-' so this never conflicts with target_subdir.
3042 build_subdir="build-${build_noncanonical}"
3043
3044 # Check whether --with-build-libsubdir was given.
3045 if test "${with_build_libsubdir+set}" = set; then :
3046 withval=$with_build_libsubdir; build_libsubdir="$withval"
3047 else
3048 build_libsubdir="$build_subdir"
3049 fi
3050
3051 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3052 if ( test $srcdir = . && test -d gcc ) \
3053 || test -d $srcdir/../host-${host_noncanonical}; then
3054 host_subdir="host-${host_noncanonical}"
3055 else
3056 host_subdir=.
3057 fi
3058 # No prefix.
3059 target_subdir=${target_noncanonical}
3060
3061
3062 # We use these options to decide which functions to include.
3063
3064 # Check whether --with-target-subdir was given.
3065 if test "${with_target_subdir+set}" = set; then :
3066 withval=$with_target_subdir;
3067 fi
3068
3069
3070 # We may get other options which we don't document:
3071 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3072
3073 # Find the rest of the source tree framework.
3074 # Default to --enable-multilib
3075 # Check whether --enable-multilib was given.
3076 if test "${enable_multilib+set}" = set; then :
3077 enableval=$enable_multilib; case "$enableval" in
3078 yes) multilib=yes ;;
3079 no) multilib=no ;;
3080 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3081 esac
3082 else
3083 multilib=yes
3084 fi
3085
3086
3087 # We may get other options which we leave undocumented:
3088 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3089 # See config-ml.in if you want the gory details.
3090
3091 if test "$srcdir" = "."; then
3092 if test "$with_target_subdir" != "."; then
3093 multi_basedir="$srcdir/$with_multisrctop../.."
3094 else
3095 multi_basedir="$srcdir/$with_multisrctop.."
3096 fi
3097 else
3098 multi_basedir="$srcdir/.."
3099 fi
3100
3101
3102 # Even if the default multilib is not a cross compilation,
3103 # it may be that some of the other multilibs are.
3104 if test $cross_compiling = no && test $multilib = yes \
3105 && test "x${with_multisubdir}" != x ; then
3106 cross_compiling=maybe
3107 fi
3108
3109 ac_config_commands="$ac_config_commands default-1"
3110
3111
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3113 $as_echo_n "checking host system type... " >&6; }
3114 if test "${ac_cv_host+set}" = set; then :
3115 $as_echo_n "(cached) " >&6
3116 else
3117 if test "x$host_alias" = x; then
3118 ac_cv_host=$ac_cv_build
3119 else
3120 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3121 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3122 fi
3123
3124 fi
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3126 $as_echo "$ac_cv_host" >&6; }
3127 case $ac_cv_host in
3128 *-*-*) ;;
3129 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3130 esac
3131 host=$ac_cv_host
3132 ac_save_IFS=$IFS; IFS='-'
3133 set x $ac_cv_host
3134 shift
3135 host_cpu=$1
3136 host_vendor=$2
3137 shift; shift
3138 # Remember, the first character of IFS is used to create $*,
3139 # except with old shells:
3140 host_os=$*
3141 IFS=$ac_save_IFS
3142 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3143
3144
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3146 $as_echo_n "checking target system type... " >&6; }
3147 if test "${ac_cv_target+set}" = set; then :
3148 $as_echo_n "(cached) " >&6
3149 else
3150 if test "x$target_alias" = x; then
3151 ac_cv_target=$ac_cv_host
3152 else
3153 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3154 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3155 fi
3156
3157 fi
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3159 $as_echo "$ac_cv_target" >&6; }
3160 case $ac_cv_target in
3161 *-*-*) ;;
3162 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3163 esac
3164 target=$ac_cv_target
3165 ac_save_IFS=$IFS; IFS='-'
3166 set x $ac_cv_target
3167 shift
3168 target_cpu=$1
3169 target_vendor=$2
3170 shift; shift
3171 # Remember, the first character of IFS is used to create $*,
3172 # except with old shells:
3173 target_os=$*
3174 IFS=$ac_save_IFS
3175 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3176
3177
3178 # The aliases save the names the user supplied, while $host etc.
3179 # will get canonicalized.
3180 test -n "$target_alias" &&
3181 test "$program_prefix$program_suffix$program_transform_name" = \
3182 NONENONEs,x,x, &&
3183 program_prefix=${target_alias}-
3184
3185 case ${build_alias} in
3186 "") build_noncanonical=${build} ;;
3187 *) build_noncanonical=${build_alias} ;;
3188 esac
3189
3190 case ${target_alias} in
3191 "") target_noncanonical=${host_noncanonical} ;;
3192 *) target_noncanonical=${target_alias} ;;
3193 esac
3194
3195
3196
3197
3198 # This works around the fact that libtool configuration may change LD
3199 # for this particular configuration, but some shells, instead of
3200 # keeping the changes in LD private, export them just because LD is
3201 # exported.
3202 ORIGINAL_LD_FOR_MULTILIBS=$LD
3203
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3205 $as_echo_n "checking whether ln -s works... " >&6; }
3206 LN_S=$as_ln_s
3207 if test "$LN_S" = "ln -s"; then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3209 $as_echo "yes" >&6; }
3210 else
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3212 $as_echo "no, using $LN_S" >&6; }
3213 fi
3214
3215
3216 # This works around an automake problem.
3217 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
3218
3219
3220
3221 # Check whether --with-cross-host was given.
3222 if test "${with_cross_host+set}" = set; then :
3223 withval=$with_cross_host;
3224 fi
3225
3226
3227
3228 # Check whether --with-newlib was given.
3229 if test "${with_newlib+set}" = set; then :
3230 withval=$with_newlib;
3231 fi
3232
3233
3234 # Check whether --enable-version-specific-runtime-libs was given.
3235 if test "${enable_version_specific_runtime_libs+set}" = set; then :
3236 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
3237 yes) version_specific_libs=yes ;;
3238 no) version_specific_libs=no ;;
3239 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3240 esac
3241 else
3242 version_specific_libs=no
3243
3244 fi
3245
3246
3247 # Check whether --enable-browser-plugin was given.
3248 if test "${enable_browser_plugin+set}" = set; then :
3249 enableval=$enable_browser_plugin; case "$enableval" in
3250 yes) browser_plugin_enabled=yes ;;
3251 no) browser_plugin_enabled=no ;;
3252 *) as_fn_error "Unknown argument to enable/disable browser plugin" "$LINENO" 5;;
3253 esac
3254 else
3255 browser_plugin_enabled=no
3256
3257 fi
3258
3259
3260 # Check whether --enable-gconf-peer was given.
3261 if test "${enable_gconf_peer+set}" = set; then :
3262 enableval=$enable_gconf_peer; case "$enableval" in
3263 yes) gconf_enabled=yes ;;
3264 no) gconf_enabled=no ;;
3265 *) as_fn_error "Unknown argument to enable/disable gconf-peer" "$LINENO" 5;;
3266 esac
3267 else
3268 gconf_enabled=no
3269
3270 fi
3271
3272
3273
3274 # Check whether --with-antlr-jar was given.
3275 if test "${with_antlr_jar+set}" = set; then :
3276 withval=$with_antlr_jar;
3277 ANTLR_JAR=$withval
3278
3279 else
3280
3281 ANTLR_JAR=
3282
3283 fi
3284
3285
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr.jar" >&5
3287 $as_echo_n "checking for antlr.jar... " >&6; }
3288 if test "x$ANTLR_JAR" = x; then
3289 for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
3290 /usr/share/antlr/lib /usr/share/java /usr/lib;
3291 do
3292 if test -f "$antlr_lib_home/antlr.jar"; then
3293 # FIXME: version check for antlr needed without using a VM
3294 ANTLR_JAR="$antlr_lib_home/antlr.jar"
3295 break
3296 fi
3297 done
3298 if test "x$ANTLR_JAR" = x; then
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
3300 $as_echo "not found" >&6; }
3301 else
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3303 $as_echo "$ANTLR_JAR" >&6; }
3304 fi
3305 else
3306 if test -f "${ANTLR_JAR}"; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3308 $as_echo "$ANTLR_JAR" >&6; }
3309 else
3310 as_fn_error "antlr jar file not found: $ANTLR_JAR" "$LINENO" 5
3311 fi
3312 fi
3313
3314
3315 # Check whether --enable-gjdoc was given.
3316 if test "${enable_gjdoc+set}" = set; then :
3317 enableval=$enable_gjdoc; case "${enableval}" in
3318 yes) BUILD_GJDOC=yes ;;
3319 no) BUILD_GJDOC=no ;;
3320 *) BUILD_GJDOC=yes ;;
3321 esac
3322 else
3323 BUILD_GJDOC=maybe
3324 fi
3325
3326
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gjdoc" >&5
3328 $as_echo_n "checking whether to build gjdoc... " >&6; }
3329 if test "x$BUILD_GJDOC" = xmaybe; then
3330 if test -f "${ANTLR_JAR}"; then
3331 BUILD_GJDOC=yes
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3333 $as_echo "yes" >&6; }
3334 else
3335 BUILD_GJDOC=no
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, antlr.jar not found" >&5
3337 $as_echo "no, antlr.jar not found" >&6; }
3338 fi
3339 else
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_GJDOC" >&5
3341 $as_echo "$BUILD_GJDOC" >&6; }
3342 fi
3343 if test "x${BUILD_GJDOC}" = xyes; then
3344 CREATE_GJDOC_TRUE=
3345 CREATE_GJDOC_FALSE='#'
3346 else
3347 CREATE_GJDOC_TRUE='#'
3348 CREATE_GJDOC_FALSE=
3349 fi
3350
3351
3352 # Check whether --enable-java-maintainer-mode was given.
3353 if test "${enable_java_maintainer_mode+set}" = set; then :
3354 enableval=$enable_java_maintainer_mode;
3355 fi
3356
3357 if test "$enable_java_maintainer_mode" = yes; then
3358 JAVA_MAINTAINER_MODE_TRUE=
3359 JAVA_MAINTAINER_MODE_FALSE='#'
3360 else
3361 JAVA_MAINTAINER_MODE_TRUE='#'
3362 JAVA_MAINTAINER_MODE_FALSE=
3363 fi
3364
3365
3366 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
3367
3368
3369 # For libstdc++-v3, -fno-builtin must be present here so that a
3370 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
3371 # used in later tests. This may not be necessary in libjava; I don't know.
3372 save_CXXFLAGS="$CXXFLAGS"
3373 CXXFLAGS="$CXXFLAGS -fno-builtin"
3374 ac_ext=c
3375 ac_cpp='$CPP $CPPFLAGS'
3376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3379 if test -n "$ac_tool_prefix"; then
3380 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3381 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3383 $as_echo_n "checking for $ac_word... " >&6; }
3384 if test "${ac_cv_prog_CC+set}" = set; then :
3385 $as_echo_n "(cached) " >&6
3386 else
3387 if test -n "$CC"; then
3388 ac_cv_prog_CC="$CC" # Let the user override the test.
3389 else
3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 for as_dir in $PATH
3392 do
3393 IFS=$as_save_IFS
3394 test -z "$as_dir" && as_dir=.
3395 for ac_exec_ext in '' $ac_executable_extensions; do
3396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3397 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3399 break 2
3400 fi
3401 done
3402 done
3403 IFS=$as_save_IFS
3404
3405 fi
3406 fi
3407 CC=$ac_cv_prog_CC
3408 if test -n "$CC"; then
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3410 $as_echo "$CC" >&6; }
3411 else
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413 $as_echo "no" >&6; }
3414 fi
3415
3416
3417 fi
3418 if test -z "$ac_cv_prog_CC"; then
3419 ac_ct_CC=$CC
3420 # Extract the first word of "gcc", so it can be a program name with args.
3421 set dummy gcc; ac_word=$2
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423 $as_echo_n "checking for $ac_word... " >&6; }
3424 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3425 $as_echo_n "(cached) " >&6
3426 else
3427 if test -n "$ac_ct_CC"; then
3428 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3429 else
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3432 do
3433 IFS=$as_save_IFS
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3437 ac_cv_prog_ac_ct_CC="gcc"
3438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3439 break 2
3440 fi
3441 done
3442 done
3443 IFS=$as_save_IFS
3444
3445 fi
3446 fi
3447 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3448 if test -n "$ac_ct_CC"; then
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3450 $as_echo "$ac_ct_CC" >&6; }
3451 else
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3454 fi
3455
3456 if test "x$ac_ct_CC" = x; then
3457 CC=""
3458 else
3459 case $cross_compiling:$ac_tool_warned in
3460 yes:)
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3463 ac_tool_warned=yes ;;
3464 esac
3465 CC=$ac_ct_CC
3466 fi
3467 else
3468 CC="$ac_cv_prog_CC"
3469 fi
3470
3471 if test -z "$CC"; then
3472 if test -n "$ac_tool_prefix"; then
3473 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3474 set dummy ${ac_tool_prefix}cc; ac_word=$2
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476 $as_echo_n "checking for $ac_word... " >&6; }
3477 if test "${ac_cv_prog_CC+set}" = set; then :
3478 $as_echo_n "(cached) " >&6
3479 else
3480 if test -n "$CC"; then
3481 ac_cv_prog_CC="$CC" # Let the user override the test.
3482 else
3483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 for as_dir in $PATH
3485 do
3486 IFS=$as_save_IFS
3487 test -z "$as_dir" && as_dir=.
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3490 ac_cv_prog_CC="${ac_tool_prefix}cc"
3491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3492 break 2
3493 fi
3494 done
3495 done
3496 IFS=$as_save_IFS
3497
3498 fi
3499 fi
3500 CC=$ac_cv_prog_CC
3501 if test -n "$CC"; then
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3503 $as_echo "$CC" >&6; }
3504 else
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506 $as_echo "no" >&6; }
3507 fi
3508
3509
3510 fi
3511 fi
3512 if test -z "$CC"; then
3513 # Extract the first word of "cc", so it can be a program name with args.
3514 set dummy cc; ac_word=$2
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3516 $as_echo_n "checking for $ac_word... " >&6; }
3517 if test "${ac_cv_prog_CC+set}" = set; then :
3518 $as_echo_n "(cached) " >&6
3519 else
3520 if test -n "$CC"; then
3521 ac_cv_prog_CC="$CC" # Let the user override the test.
3522 else
3523 ac_prog_rejected=no
3524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525 for as_dir in $PATH
3526 do
3527 IFS=$as_save_IFS
3528 test -z "$as_dir" && as_dir=.
3529 for ac_exec_ext in '' $ac_executable_extensions; do
3530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3531 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3532 ac_prog_rejected=yes
3533 continue
3534 fi
3535 ac_cv_prog_CC="cc"
3536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3537 break 2
3538 fi
3539 done
3540 done
3541 IFS=$as_save_IFS
3542
3543 if test $ac_prog_rejected = yes; then
3544 # We found a bogon in the path, so make sure we never use it.
3545 set dummy $ac_cv_prog_CC
3546 shift
3547 if test $# != 0; then
3548 # We chose a different compiler from the bogus one.
3549 # However, it has the same basename, so the bogon will be chosen
3550 # first if we set CC to just the basename; use the full file name.
3551 shift
3552 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3553 fi
3554 fi
3555 fi
3556 fi
3557 CC=$ac_cv_prog_CC
3558 if test -n "$CC"; then
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3560 $as_echo "$CC" >&6; }
3561 else
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563 $as_echo "no" >&6; }
3564 fi
3565
3566
3567 fi
3568 if test -z "$CC"; then
3569 if test -n "$ac_tool_prefix"; then
3570 for ac_prog in cl.exe
3571 do
3572 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3573 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3575 $as_echo_n "checking for $ac_word... " >&6; }
3576 if test "${ac_cv_prog_CC+set}" = set; then :
3577 $as_echo_n "(cached) " >&6
3578 else
3579 if test -n "$CC"; then
3580 ac_cv_prog_CC="$CC" # Let the user override the test.
3581 else
3582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583 for as_dir in $PATH
3584 do
3585 IFS=$as_save_IFS
3586 test -z "$as_dir" && as_dir=.
3587 for ac_exec_ext in '' $ac_executable_extensions; do
3588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3589 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3591 break 2
3592 fi
3593 done
3594 done
3595 IFS=$as_save_IFS
3596
3597 fi
3598 fi
3599 CC=$ac_cv_prog_CC
3600 if test -n "$CC"; then
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3602 $as_echo "$CC" >&6; }
3603 else
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3605 $as_echo "no" >&6; }
3606 fi
3607
3608
3609 test -n "$CC" && break
3610 done
3611 fi
3612 if test -z "$CC"; then
3613 ac_ct_CC=$CC
3614 for ac_prog in cl.exe
3615 do
3616 # Extract the first word of "$ac_prog", so it can be a program name with args.
3617 set dummy $ac_prog; ac_word=$2
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3619 $as_echo_n "checking for $ac_word... " >&6; }
3620 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3621 $as_echo_n "(cached) " >&6
3622 else
3623 if test -n "$ac_ct_CC"; then
3624 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3625 else
3626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627 for as_dir in $PATH
3628 do
3629 IFS=$as_save_IFS
3630 test -z "$as_dir" && as_dir=.
3631 for ac_exec_ext in '' $ac_executable_extensions; do
3632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3633 ac_cv_prog_ac_ct_CC="$ac_prog"
3634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3635 break 2
3636 fi
3637 done
3638 done
3639 IFS=$as_save_IFS
3640
3641 fi
3642 fi
3643 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3644 if test -n "$ac_ct_CC"; then
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3646 $as_echo "$ac_ct_CC" >&6; }
3647 else
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3649 $as_echo "no" >&6; }
3650 fi
3651
3652
3653 test -n "$ac_ct_CC" && break
3654 done
3655
3656 if test "x$ac_ct_CC" = x; then
3657 CC=""
3658 else
3659 case $cross_compiling:$ac_tool_warned in
3660 yes:)
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3663 ac_tool_warned=yes ;;
3664 esac
3665 CC=$ac_ct_CC
3666 fi
3667 fi
3668
3669 fi
3670
3671
3672 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3674 as_fn_error "no acceptable C compiler found in \$PATH
3675 See \`config.log' for more details." "$LINENO" 5; }
3676
3677 # Provide some information about the compiler.
3678 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3679 set X $ac_compile
3680 ac_compiler=$2
3681 for ac_option in --version -v -V -qversion; do
3682 { { ac_try="$ac_compiler $ac_option >&5"
3683 case "(($ac_try" in
3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685 *) ac_try_echo=$ac_try;;
3686 esac
3687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3688 $as_echo "$ac_try_echo"; } >&5
3689 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3690 ac_status=$?
3691 if test -s conftest.err; then
3692 sed '10a\
3693 ... rest of stderr output deleted ...
3694 10q' conftest.err >conftest.er1
3695 cat conftest.er1 >&5
3696 rm -f conftest.er1 conftest.err
3697 fi
3698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3699 test $ac_status = 0; }
3700 done
3701
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h. */
3704
3705 int
3706 main ()
3707 {
3708
3709 ;
3710 return 0;
3711 }
3712 _ACEOF
3713 # FIXME: Cleanup?
3714 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3715 (eval $ac_link) 2>&5
3716 ac_status=$?
3717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3718 test $ac_status = 0; }; then :
3719 gcc_no_link=no
3720 else
3721 gcc_no_link=yes
3722 fi
3723 if test x$gcc_no_link = xyes; then
3724 # Setting cross_compile will disable run tests; it will
3725 # also disable AC_CHECK_FILE but that's generally
3726 # correct if we can't link.
3727 cross_compiling=yes
3728 EXEEXT=
3729 else
3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731 /* end confdefs.h. */
3732
3733 int
3734 main ()
3735 {
3736
3737 ;
3738 return 0;
3739 }
3740 _ACEOF
3741 ac_clean_files_save=$ac_clean_files
3742 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3743 # Try to create an executable without -o first, disregard a.out.
3744 # It will help us diagnose broken compilers, and finding out an intuition
3745 # of exeext.
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3747 $as_echo_n "checking for C compiler default output file name... " >&6; }
3748 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3749
3750 # The possible output files:
3751 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3752
3753 ac_rmfiles=
3754 for ac_file in $ac_files
3755 do
3756 case $ac_file in
3757 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3758 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3759 esac
3760 done
3761 rm -f $ac_rmfiles
3762
3763 if { { ac_try="$ac_link_default"
3764 case "(($ac_try" in
3765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766 *) ac_try_echo=$ac_try;;
3767 esac
3768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3769 $as_echo "$ac_try_echo"; } >&5
3770 (eval "$ac_link_default") 2>&5
3771 ac_status=$?
3772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3773 test $ac_status = 0; }; then :
3774 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3775 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3776 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3777 # so that the user can short-circuit this test for compilers unknown to
3778 # Autoconf.
3779 for ac_file in $ac_files ''
3780 do
3781 test -f "$ac_file" || continue
3782 case $ac_file in
3783 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3784 ;;
3785 [ab].out )
3786 # We found the default executable, but exeext='' is most
3787 # certainly right.
3788 break;;
3789 *.* )
3790 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3791 then :; else
3792 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3793 fi
3794 # We set ac_cv_exeext here because the later test for it is not
3795 # safe: cross compilers may not add the suffix if given an `-o'
3796 # argument, so we may need to know it at that point already.
3797 # Even if this section looks crufty: it has the advantage of
3798 # actually working.
3799 break;;
3800 * )
3801 break;;
3802 esac
3803 done
3804 test "$ac_cv_exeext" = no && ac_cv_exeext=
3805
3806 else
3807 ac_file=''
3808 fi
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3810 $as_echo "$ac_file" >&6; }
3811 if test -z "$ac_file"; then :
3812 $as_echo "$as_me: failed program was:" >&5
3813 sed 's/^/| /' conftest.$ac_ext >&5
3814
3815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3817 { as_fn_set_status 77
3818 as_fn_error "C compiler cannot create executables
3819 See \`config.log' for more details." "$LINENO" 5; }; }
3820 fi
3821 ac_exeext=$ac_cv_exeext
3822
3823 # Check that the compiler produces executables we can run. If not, either
3824 # the compiler is broken, or we cross compile.
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3826 $as_echo_n "checking whether the C compiler works... " >&6; }
3827 # If not cross compiling, check that we can run a simple program.
3828 if test "$cross_compiling" != yes; then
3829 if { ac_try='./$ac_file'
3830 { { case "(($ac_try" in
3831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832 *) ac_try_echo=$ac_try;;
3833 esac
3834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3835 $as_echo "$ac_try_echo"; } >&5
3836 (eval "$ac_try") 2>&5
3837 ac_status=$?
3838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3839 test $ac_status = 0; }; }; then
3840 cross_compiling=no
3841 else
3842 if test "$cross_compiling" = maybe; then
3843 cross_compiling=yes
3844 else
3845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3847 as_fn_error "cannot run C compiled programs.
3848 If you meant to cross compile, use \`--host'.
3849 See \`config.log' for more details." "$LINENO" 5; }
3850 fi
3851 fi
3852 fi
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3854 $as_echo "yes" >&6; }
3855
3856 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3857 ac_clean_files=$ac_clean_files_save
3858 # Check that the compiler produces executables we can run. If not, either
3859 # the compiler is broken, or we cross compile.
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3861 $as_echo_n "checking whether we are cross compiling... " >&6; }
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3863 $as_echo "$cross_compiling" >&6; }
3864
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3866 $as_echo_n "checking for suffix of executables... " >&6; }
3867 if { { ac_try="$ac_link"
3868 case "(($ac_try" in
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3871 esac
3872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3873 $as_echo "$ac_try_echo"; } >&5
3874 (eval "$ac_link") 2>&5
3875 ac_status=$?
3876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3877 test $ac_status = 0; }; then :
3878 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3879 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3880 # work properly (i.e., refer to `conftest.exe'), while it won't with
3881 # `rm'.
3882 for ac_file in conftest.exe conftest conftest.*; do
3883 test -f "$ac_file" || continue
3884 case $ac_file in
3885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3886 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3887 break;;
3888 * ) break;;
3889 esac
3890 done
3891 else
3892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3894 as_fn_error "cannot compute suffix of executables: cannot compile and link
3895 See \`config.log' for more details." "$LINENO" 5; }
3896 fi
3897 rm -f conftest$ac_cv_exeext
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3899 $as_echo "$ac_cv_exeext" >&6; }
3900
3901 rm -f conftest.$ac_ext
3902 EXEEXT=$ac_cv_exeext
3903 ac_exeext=$EXEEXT
3904 fi
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3906 $as_echo_n "checking for suffix of object files... " >&6; }
3907 if test "${ac_cv_objext+set}" = set; then :
3908 $as_echo_n "(cached) " >&6
3909 else
3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911 /* end confdefs.h. */
3912
3913 int
3914 main ()
3915 {
3916
3917 ;
3918 return 0;
3919 }
3920 _ACEOF
3921 rm -f conftest.o conftest.obj
3922 if { { ac_try="$ac_compile"
3923 case "(($ac_try" in
3924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925 *) ac_try_echo=$ac_try;;
3926 esac
3927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3928 $as_echo "$ac_try_echo"; } >&5
3929 (eval "$ac_compile") 2>&5
3930 ac_status=$?
3931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3932 test $ac_status = 0; }; then :
3933 for ac_file in conftest.o conftest.obj conftest.*; do
3934 test -f "$ac_file" || continue;
3935 case $ac_file in
3936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3937 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3938 break;;
3939 esac
3940 done
3941 else
3942 $as_echo "$as_me: failed program was:" >&5
3943 sed 's/^/| /' conftest.$ac_ext >&5
3944
3945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3947 as_fn_error "cannot compute suffix of object files: cannot compile
3948 See \`config.log' for more details." "$LINENO" 5; }
3949 fi
3950 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3951 fi
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3953 $as_echo "$ac_cv_objext" >&6; }
3954 OBJEXT=$ac_cv_objext
3955 ac_objext=$OBJEXT
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3957 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3958 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3959 $as_echo_n "(cached) " >&6
3960 else
3961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962 /* end confdefs.h. */
3963
3964 int
3965 main ()
3966 {
3967 #ifndef __GNUC__
3968 choke me
3969 #endif
3970
3971 ;
3972 return 0;
3973 }
3974 _ACEOF
3975 if ac_fn_c_try_compile "$LINENO"; then :
3976 ac_compiler_gnu=yes
3977 else
3978 ac_compiler_gnu=no
3979 fi
3980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3981 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3982
3983 fi
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3985 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3986 if test $ac_compiler_gnu = yes; then
3987 GCC=yes
3988 else
3989 GCC=
3990 fi
3991 ac_test_CFLAGS=${CFLAGS+set}
3992 ac_save_CFLAGS=$CFLAGS
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3994 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3995 if test "${ac_cv_prog_cc_g+set}" = set; then :
3996 $as_echo_n "(cached) " >&6
3997 else
3998 ac_save_c_werror_flag=$ac_c_werror_flag
3999 ac_c_werror_flag=yes
4000 ac_cv_prog_cc_g=no
4001 CFLAGS="-g"
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4004
4005 int
4006 main ()
4007 {
4008
4009 ;
4010 return 0;
4011 }
4012 _ACEOF
4013 if ac_fn_c_try_compile "$LINENO"; then :
4014 ac_cv_prog_cc_g=yes
4015 else
4016 CFLAGS=""
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4019
4020 int
4021 main ()
4022 {
4023
4024 ;
4025 return 0;
4026 }
4027 _ACEOF
4028 if ac_fn_c_try_compile "$LINENO"; then :
4029
4030 else
4031 ac_c_werror_flag=$ac_save_c_werror_flag
4032 CFLAGS="-g"
4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h. */
4035
4036 int
4037 main ()
4038 {
4039
4040 ;
4041 return 0;
4042 }
4043 _ACEOF
4044 if ac_fn_c_try_compile "$LINENO"; then :
4045 ac_cv_prog_cc_g=yes
4046 fi
4047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4048 fi
4049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4050 fi
4051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4052 ac_c_werror_flag=$ac_save_c_werror_flag
4053 fi
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4055 $as_echo "$ac_cv_prog_cc_g" >&6; }
4056 if test "$ac_test_CFLAGS" = set; then
4057 CFLAGS=$ac_save_CFLAGS
4058 elif test $ac_cv_prog_cc_g = yes; then
4059 if test "$GCC" = yes; then
4060 CFLAGS="-g -O2"
4061 else
4062 CFLAGS="-g"
4063 fi
4064 else
4065 if test "$GCC" = yes; then
4066 CFLAGS="-O2"
4067 else
4068 CFLAGS=
4069 fi
4070 fi
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4072 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4073 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4074 $as_echo_n "(cached) " >&6
4075 else
4076 ac_cv_prog_cc_c89=no
4077 ac_save_CC=$CC
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4080 #include <stdarg.h>
4081 #include <stdio.h>
4082 #include <sys/types.h>
4083 #include <sys/stat.h>
4084 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4085 struct buf { int x; };
4086 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4087 static char *e (p, i)
4088 char **p;
4089 int i;
4090 {
4091 return p[i];
4092 }
4093 static char *f (char * (*g) (char **, int), char **p, ...)
4094 {
4095 char *s;
4096 va_list v;
4097 va_start (v,p);
4098 s = g (p, va_arg (v,int));
4099 va_end (v);
4100 return s;
4101 }
4102
4103 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4104 function prototypes and stuff, but not '\xHH' hex character constants.
4105 These don't provoke an error unfortunately, instead are silently treated
4106 as 'x'. The following induces an error, until -std is added to get
4107 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4108 array size at least. It's necessary to write '\x00'==0 to get something
4109 that's true only with -std. */
4110 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4111
4112 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4113 inside strings and character constants. */
4114 #define FOO(x) 'x'
4115 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4116
4117 int test (int i, double x);
4118 struct s1 {int (*f) (int a);};
4119 struct s2 {int (*f) (double a);};
4120 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4121 int argc;
4122 char **argv;
4123 int
4124 main ()
4125 {
4126 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4127 ;
4128 return 0;
4129 }
4130 _ACEOF
4131 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4132 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4133 do
4134 CC="$ac_save_CC $ac_arg"
4135 if ac_fn_c_try_compile "$LINENO"; then :
4136 ac_cv_prog_cc_c89=$ac_arg
4137 fi
4138 rm -f core conftest.err conftest.$ac_objext
4139 test "x$ac_cv_prog_cc_c89" != "xno" && break
4140 done
4141 rm -f conftest.$ac_ext
4142 CC=$ac_save_CC
4143
4144 fi
4145 # AC_CACHE_VAL
4146 case "x$ac_cv_prog_cc_c89" in
4147 x)
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4149 $as_echo "none needed" >&6; } ;;
4150 xno)
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4152 $as_echo "unsupported" >&6; } ;;
4153 *)
4154 CC="$CC $ac_cv_prog_cc_c89"
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4156 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4157 esac
4158 if test "x$ac_cv_prog_cc_c89" != xno; then :
4159
4160 fi
4161
4162 ac_ext=c
4163 ac_cpp='$CPP $CPPFLAGS'
4164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4167
4168 ac_ext=cpp
4169 ac_cpp='$CXXCPP $CPPFLAGS'
4170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4173 if test -z "$CXX"; then
4174 if test -n "$CCC"; then
4175 CXX=$CCC
4176 else
4177 if test -n "$ac_tool_prefix"; then
4178 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4179 do
4180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4181 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4183 $as_echo_n "checking for $ac_word... " >&6; }
4184 if test "${ac_cv_prog_CXX+set}" = set; then :
4185 $as_echo_n "(cached) " >&6
4186 else
4187 if test -n "$CXX"; then
4188 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4189 else
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 for as_dir in $PATH
4192 do
4193 IFS=$as_save_IFS
4194 test -z "$as_dir" && as_dir=.
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4197 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4199 break 2
4200 fi
4201 done
4202 done
4203 IFS=$as_save_IFS
4204
4205 fi
4206 fi
4207 CXX=$ac_cv_prog_CXX
4208 if test -n "$CXX"; then
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4210 $as_echo "$CXX" >&6; }
4211 else
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4213 $as_echo "no" >&6; }
4214 fi
4215
4216
4217 test -n "$CXX" && break
4218 done
4219 fi
4220 if test -z "$CXX"; then
4221 ac_ct_CXX=$CXX
4222 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4223 do
4224 # Extract the first word of "$ac_prog", so it can be a program name with args.
4225 set dummy $ac_prog; ac_word=$2
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4227 $as_echo_n "checking for $ac_word... " >&6; }
4228 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4229 $as_echo_n "(cached) " >&6
4230 else
4231 if test -n "$ac_ct_CXX"; then
4232 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4233 else
4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235 for as_dir in $PATH
4236 do
4237 IFS=$as_save_IFS
4238 test -z "$as_dir" && as_dir=.
4239 for ac_exec_ext in '' $ac_executable_extensions; do
4240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4241 ac_cv_prog_ac_ct_CXX="$ac_prog"
4242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4243 break 2
4244 fi
4245 done
4246 done
4247 IFS=$as_save_IFS
4248
4249 fi
4250 fi
4251 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4252 if test -n "$ac_ct_CXX"; then
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4254 $as_echo "$ac_ct_CXX" >&6; }
4255 else
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257 $as_echo "no" >&6; }
4258 fi
4259
4260
4261 test -n "$ac_ct_CXX" && break
4262 done
4263
4264 if test "x$ac_ct_CXX" = x; then
4265 CXX="g++"
4266 else
4267 case $cross_compiling:$ac_tool_warned in
4268 yes:)
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4271 ac_tool_warned=yes ;;
4272 esac
4273 CXX=$ac_ct_CXX
4274 fi
4275 fi
4276
4277 fi
4278 fi
4279 # Provide some information about the compiler.
4280 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4281 set X $ac_compile
4282 ac_compiler=$2
4283 for ac_option in --version -v -V -qversion; do
4284 { { ac_try="$ac_compiler $ac_option >&5"
4285 case "(($ac_try" in
4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4288 esac
4289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4290 $as_echo "$ac_try_echo"; } >&5
4291 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4292 ac_status=$?
4293 if test -s conftest.err; then
4294 sed '10a\
4295 ... rest of stderr output deleted ...
4296 10q' conftest.err >conftest.er1
4297 cat conftest.er1 >&5
4298 rm -f conftest.er1 conftest.err
4299 fi
4300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4301 test $ac_status = 0; }
4302 done
4303
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4305 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4306 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4307 $as_echo_n "(cached) " >&6
4308 else
4309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4310 /* end confdefs.h. */
4311
4312 int
4313 main ()
4314 {
4315 #ifndef __GNUC__
4316 choke me
4317 #endif
4318
4319 ;
4320 return 0;
4321 }
4322 _ACEOF
4323 if ac_fn_cxx_try_compile "$LINENO"; then :
4324 ac_compiler_gnu=yes
4325 else
4326 ac_compiler_gnu=no
4327 fi
4328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4329 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4330
4331 fi
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4333 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4334 if test $ac_compiler_gnu = yes; then
4335 GXX=yes
4336 else
4337 GXX=
4338 fi
4339 ac_test_CXXFLAGS=${CXXFLAGS+set}
4340 ac_save_CXXFLAGS=$CXXFLAGS
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4342 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4343 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4344 $as_echo_n "(cached) " >&6
4345 else
4346 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4347 ac_cxx_werror_flag=yes
4348 ac_cv_prog_cxx_g=no
4349 CXXFLAGS="-g"
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4352
4353 int
4354 main ()
4355 {
4356
4357 ;
4358 return 0;
4359 }
4360 _ACEOF
4361 if ac_fn_cxx_try_compile "$LINENO"; then :
4362 ac_cv_prog_cxx_g=yes
4363 else
4364 CXXFLAGS=""
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h. */
4367
4368 int
4369 main ()
4370 {
4371
4372 ;
4373 return 0;
4374 }
4375 _ACEOF
4376 if ac_fn_cxx_try_compile "$LINENO"; then :
4377
4378 else
4379 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4380 CXXFLAGS="-g"
4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382 /* end confdefs.h. */
4383
4384 int
4385 main ()
4386 {
4387
4388 ;
4389 return 0;
4390 }
4391 _ACEOF
4392 if ac_fn_cxx_try_compile "$LINENO"; then :
4393 ac_cv_prog_cxx_g=yes
4394 fi
4395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396 fi
4397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4398 fi
4399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4400 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4401 fi
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4403 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4404 if test "$ac_test_CXXFLAGS" = set; then
4405 CXXFLAGS=$ac_save_CXXFLAGS
4406 elif test $ac_cv_prog_cxx_g = yes; then
4407 if test "$GXX" = yes; then
4408 CXXFLAGS="-g -O2"
4409 else
4410 CXXFLAGS="-g"
4411 fi
4412 else
4413 if test "$GXX" = yes; then
4414 CXXFLAGS="-O2"
4415 else
4416 CXXFLAGS=
4417 fi
4418 fi
4419 ac_ext=c
4420 ac_cpp='$CPP $CPPFLAGS'
4421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4424
4425 CXXFLAGS="$save_CXXFLAGS"
4426
4427 am__api_version='1.11'
4428
4429 # Find a good install program. We prefer a C program (faster),
4430 # so one script is as good as another. But avoid the broken or
4431 # incompatible versions:
4432 # SysV /etc/install, /usr/sbin/install
4433 # SunOS /usr/etc/install
4434 # IRIX /sbin/install
4435 # AIX /bin/install
4436 # AmigaOS /C/install, which installs bootblocks on floppy discs
4437 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4438 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4439 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4440 # OS/2's system install, which has a completely different semantic
4441 # ./install, which can be erroneously created by make from ./install.sh.
4442 # Reject install programs that cannot install multiple files.
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4444 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4445 if test -z "$INSTALL"; then
4446 if test "${ac_cv_path_install+set}" = set; then :
4447 $as_echo_n "(cached) " >&6
4448 else
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 for as_dir in $PATH
4451 do
4452 IFS=$as_save_IFS
4453 test -z "$as_dir" && as_dir=.
4454 # Account for people who put trailing slashes in PATH elements.
4455 case $as_dir/ in #((
4456 ./ | .// | /[cC]/* | \
4457 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4458 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4459 /usr/ucb/* ) ;;
4460 *)
4461 # OSF1 and SCO ODT 3.0 have their own names for install.
4462 # Don't use installbsd from OSF since it installs stuff as root
4463 # by default.
4464 for ac_prog in ginstall scoinst install; do
4465 for ac_exec_ext in '' $ac_executable_extensions; do
4466 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4467 if test $ac_prog = install &&
4468 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4469 # AIX install. It has an incompatible calling convention.
4470 :
4471 elif test $ac_prog = install &&
4472 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4473 # program-specific install script used by HP pwplus--don't use.
4474 :
4475 else
4476 rm -rf conftest.one conftest.two conftest.dir
4477 echo one > conftest.one
4478 echo two > conftest.two
4479 mkdir conftest.dir
4480 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4481 test -s conftest.one && test -s conftest.two &&
4482 test -s conftest.dir/conftest.one &&
4483 test -s conftest.dir/conftest.two
4484 then
4485 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4486 break 3
4487 fi
4488 fi
4489 fi
4490 done
4491 done
4492 ;;
4493 esac
4494
4495 done
4496 IFS=$as_save_IFS
4497
4498 rm -rf conftest.one conftest.two conftest.dir
4499
4500 fi
4501 if test "${ac_cv_path_install+set}" = set; then
4502 INSTALL=$ac_cv_path_install
4503 else
4504 # As a last resort, use the slow shell script. Don't cache a
4505 # value for INSTALL within a source directory, because that will
4506 # break other packages using the cache if that directory is
4507 # removed, or if the value is a relative name.
4508 INSTALL=$ac_install_sh
4509 fi
4510 fi
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4512 $as_echo "$INSTALL" >&6; }
4513
4514 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4515 # It thinks the first close brace ends the variable substitution.
4516 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4517
4518 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4519
4520 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4521
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4523 $as_echo_n "checking whether build environment is sane... " >&6; }
4524 # Just in case
4525 sleep 1
4526 echo timestamp > conftest.file
4527 # Reject unsafe characters in $srcdir or the absolute working directory
4528 # name. Accept space and tab only in the latter.
4529 am_lf='
4530 '
4531 case `pwd` in
4532 *[\\\"\#\$\&\'\`$am_lf]*)
4533 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4534 esac
4535 case $srcdir in
4536 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4537 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4538 esac
4539
4540 # Do `set' in a subshell so we don't clobber the current shell's
4541 # arguments. Must try -L first in case configure is actually a
4542 # symlink; some systems play weird games with the mod time of symlinks
4543 # (eg FreeBSD returns the mod time of the symlink's containing
4544 # directory).
4545 if (
4546 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4547 if test "$*" = "X"; then
4548 # -L didn't work.
4549 set X `ls -t "$srcdir/configure" conftest.file`
4550 fi
4551 rm -f conftest.file
4552 if test "$*" != "X $srcdir/configure conftest.file" \
4553 && test "$*" != "X conftest.file $srcdir/configure"; then
4554
4555 # If neither matched, then we have a broken ls. This can happen
4556 # if, for instance, CONFIG_SHELL is bash and it inherits a
4557 # broken ls alias from the environment. This has actually
4558 # happened. Such a system could not be considered "sane".
4559 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4560 alias in your environment" "$LINENO" 5
4561 fi
4562
4563 test "$2" = conftest.file
4564 )
4565 then
4566 # Ok.
4567 :
4568 else
4569 as_fn_error "newly created file is older than distributed files!
4570 Check your system clock" "$LINENO" 5
4571 fi
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4573 $as_echo "yes" >&6; }
4574 test "$program_prefix" != NONE &&
4575 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4576 # Use a double $ so make ignores it.
4577 test "$program_suffix" != NONE &&
4578 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4579 # Double any \ or $.
4580 # By default was `s,x,x', remove it if useless.
4581 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4582 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4583
4584 # expand $ac_aux_dir to an absolute path
4585 am_aux_dir=`cd $ac_aux_dir && pwd`
4586
4587 if test x"${MISSING+set}" != xset; then
4588 case $am_aux_dir in
4589 *\ * | *\ *)
4590 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4591 *)
4592 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4593 esac
4594 fi
4595 # Use eval to expand $SHELL
4596 if eval "$MISSING --run true"; then
4597 am_missing_run="$MISSING --run "
4598 else
4599 am_missing_run=
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4601 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4602 fi
4603
4604 if test x"${install_sh}" != xset; then
4605 case $am_aux_dir in
4606 *\ * | *\ *)
4607 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4608 *)
4609 install_sh="\${SHELL} $am_aux_dir/install-sh"
4610 esac
4611 fi
4612
4613 # Installed binaries are usually stripped using `strip' when the user
4614 # run `make install-strip'. However `strip' might not be the right
4615 # tool to use in cross-compilation environments, therefore Automake
4616 # will honor the `STRIP' environment variable to overrule this program.
4617 if test "$cross_compiling" != no; then
4618 if test -n "$ac_tool_prefix"; then
4619 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4620 set dummy ${ac_tool_prefix}strip; ac_word=$2
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4622 $as_echo_n "checking for $ac_word... " >&6; }
4623 if test "${ac_cv_prog_STRIP+set}" = set; then :
4624 $as_echo_n "(cached) " >&6
4625 else
4626 if test -n "$STRIP"; then
4627 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4628 else
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH
4631 do
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4636 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 break 2
4639 fi
4640 done
4641 done
4642 IFS=$as_save_IFS
4643
4644 fi
4645 fi
4646 STRIP=$ac_cv_prog_STRIP
4647 if test -n "$STRIP"; then
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4649 $as_echo "$STRIP" >&6; }
4650 else
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4652 $as_echo "no" >&6; }
4653 fi
4654
4655
4656 fi
4657 if test -z "$ac_cv_prog_STRIP"; then
4658 ac_ct_STRIP=$STRIP
4659 # Extract the first word of "strip", so it can be a program name with args.
4660 set dummy strip; ac_word=$2
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4662 $as_echo_n "checking for $ac_word... " >&6; }
4663 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4664 $as_echo_n "(cached) " >&6
4665 else
4666 if test -n "$ac_ct_STRIP"; then
4667 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4668 else
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4671 do
4672 IFS=$as_save_IFS
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4676 ac_cv_prog_ac_ct_STRIP="strip"
4677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 break 2
4679 fi
4680 done
4681 done
4682 IFS=$as_save_IFS
4683
4684 fi
4685 fi
4686 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4687 if test -n "$ac_ct_STRIP"; then
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4689 $as_echo "$ac_ct_STRIP" >&6; }
4690 else
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692 $as_echo "no" >&6; }
4693 fi
4694
4695 if test "x$ac_ct_STRIP" = x; then
4696 STRIP=":"
4697 else
4698 case $cross_compiling:$ac_tool_warned in
4699 yes:)
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4702 ac_tool_warned=yes ;;
4703 esac
4704 STRIP=$ac_ct_STRIP
4705 fi
4706 else
4707 STRIP="$ac_cv_prog_STRIP"
4708 fi
4709
4710 fi
4711 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4712
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4714 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4715 if test -z "$MKDIR_P"; then
4716 if test "${ac_cv_path_mkdir+set}" = set; then :
4717 $as_echo_n "(cached) " >&6
4718 else
4719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4721 do
4722 IFS=$as_save_IFS
4723 test -z "$as_dir" && as_dir=.
4724 for ac_prog in mkdir gmkdir; do
4725 for ac_exec_ext in '' $ac_executable_extensions; do
4726 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4727 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4728 'mkdir (GNU coreutils) '* | \
4729 'mkdir (coreutils) '* | \
4730 'mkdir (fileutils) '4.1*)
4731 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4732 break 3;;
4733 esac
4734 done
4735 done
4736 done
4737 IFS=$as_save_IFS
4738
4739 fi
4740
4741 if test "${ac_cv_path_mkdir+set}" = set; then
4742 MKDIR_P="$ac_cv_path_mkdir -p"
4743 else
4744 # As a last resort, use the slow shell script. Don't cache a
4745 # value for MKDIR_P within a source directory, because that will
4746 # break other packages using the cache if that directory is
4747 # removed, or if the value is a relative name.
4748 test -d ./--version && rmdir ./--version
4749 MKDIR_P="$ac_install_sh -d"
4750 fi
4751 fi
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4753 $as_echo "$MKDIR_P" >&6; }
4754
4755 mkdir_p="$MKDIR_P"
4756 case $mkdir_p in
4757 [\\/$]* | ?:[\\/]*) ;;
4758 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4759 esac
4760
4761 for ac_prog in gawk mawk nawk awk
4762 do
4763 # Extract the first word of "$ac_prog", so it can be a program name with args.
4764 set dummy $ac_prog; ac_word=$2
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4766 $as_echo_n "checking for $ac_word... " >&6; }
4767 if test "${ac_cv_prog_AWK+set}" = set; then :
4768 $as_echo_n "(cached) " >&6
4769 else
4770 if test -n "$AWK"; then
4771 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4772 else
4773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774 for as_dir in $PATH
4775 do
4776 IFS=$as_save_IFS
4777 test -z "$as_dir" && as_dir=.
4778 for ac_exec_ext in '' $ac_executable_extensions; do
4779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4780 ac_cv_prog_AWK="$ac_prog"
4781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4782 break 2
4783 fi
4784 done
4785 done
4786 IFS=$as_save_IFS
4787
4788 fi
4789 fi
4790 AWK=$ac_cv_prog_AWK
4791 if test -n "$AWK"; then
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4793 $as_echo "$AWK" >&6; }
4794 else
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4796 $as_echo "no" >&6; }
4797 fi
4798
4799
4800 test -n "$AWK" && break
4801 done
4802
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4804 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4805 set x ${MAKE-make}
4806 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4807 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4808 $as_echo_n "(cached) " >&6
4809 else
4810 cat >conftest.make <<\_ACEOF
4811 SHELL = /bin/sh
4812 all:
4813 @echo '@@@%%%=$(MAKE)=@@@%%%'
4814 _ACEOF
4815 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4816 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4817 *@@@%%%=?*=@@@%%%*)
4818 eval ac_cv_prog_make_${ac_make}_set=yes;;
4819 *)
4820 eval ac_cv_prog_make_${ac_make}_set=no;;
4821 esac
4822 rm -f conftest.make
4823 fi
4824 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4826 $as_echo "yes" >&6; }
4827 SET_MAKE=
4828 else
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 $as_echo "no" >&6; }
4831 SET_MAKE="MAKE=${MAKE-make}"
4832 fi
4833
4834 rm -rf .tst 2>/dev/null
4835 mkdir .tst 2>/dev/null
4836 if test -d .tst; then
4837 am__leading_dot=.
4838 else
4839 am__leading_dot=_
4840 fi
4841 rmdir .tst 2>/dev/null
4842
4843 DEPDIR="${am__leading_dot}deps"
4844
4845 ac_config_commands="$ac_config_commands depfiles"
4846
4847
4848 am_make=${MAKE-make}
4849 cat > confinc << 'END'
4850 am__doit:
4851 @echo this is the am__doit target
4852 .PHONY: am__doit
4853 END
4854 # If we don't find an include directive, just comment out the code.
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4856 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4857 am__include="#"
4858 am__quote=
4859 _am_result=none
4860 # First try GNU make style include.
4861 echo "include confinc" > confmf
4862 # Ignore all kinds of additional output from `make'.
4863 case `$am_make -s -f confmf 2> /dev/null` in #(
4864 *the\ am__doit\ target*)
4865 am__include=include
4866 am__quote=
4867 _am_result=GNU
4868 ;;
4869 esac
4870 # Now try BSD make style include.
4871 if test "$am__include" = "#"; then
4872 echo '.include "confinc"' > confmf
4873 case `$am_make -s -f confmf 2> /dev/null` in #(
4874 *the\ am__doit\ target*)
4875 am__include=.include
4876 am__quote="\""
4877 _am_result=BSD
4878 ;;
4879 esac
4880 fi
4881
4882
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4884 $as_echo "$_am_result" >&6; }
4885 rm -f confinc confmf
4886
4887 # Check whether --enable-dependency-tracking was given.
4888 if test "${enable_dependency_tracking+set}" = set; then :
4889 enableval=$enable_dependency_tracking;
4890 fi
4891
4892 if test "x$enable_dependency_tracking" != xno; then
4893 am_depcomp="$ac_aux_dir/depcomp"
4894 AMDEPBACKSLASH='\'
4895 fi
4896 if test "x$enable_dependency_tracking" != xno; then
4897 AMDEP_TRUE=
4898 AMDEP_FALSE='#'
4899 else
4900 AMDEP_TRUE='#'
4901 AMDEP_FALSE=
4902 fi
4903
4904
4905 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4906 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4907 # is not polluted with repeated "-I."
4908 am__isrc=' -I$(srcdir)'
4909 # test to see if srcdir already configured
4910 if test -f $srcdir/config.status; then
4911 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4912 fi
4913 fi
4914
4915 # test whether we have cygpath
4916 if test -z "$CYGPATH_W"; then
4917 if (cygpath --version) >/dev/null 2>/dev/null; then
4918 CYGPATH_W='cygpath -w'
4919 else
4920 CYGPATH_W=echo
4921 fi
4922 fi
4923
4924
4925 # Define the identity of the package.
4926 PACKAGE='libjava'
4927 VERSION='version-unused'
4928
4929
4930 cat >>confdefs.h <<_ACEOF
4931 #define PACKAGE "$PACKAGE"
4932 _ACEOF
4933
4934
4935 cat >>confdefs.h <<_ACEOF
4936 #define VERSION "$VERSION"
4937 _ACEOF
4938
4939 # Some tools Automake needs.
4940
4941 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4942
4943
4944 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4945
4946
4947 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4948
4949
4950 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4951
4952
4953 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4954
4955 # We need awk for the "check" target. The system "awk" is bad on
4956 # some platforms.
4957 # Always define AMTAR for backward compatibility.
4958
4959 AMTAR=${AMTAR-"${am_missing_run}tar"}
4960
4961 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4962
4963
4964
4965
4966 depcc="$CC" am_compiler_list=
4967
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4969 $as_echo_n "checking dependency style of $depcc... " >&6; }
4970 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4971 $as_echo_n "(cached) " >&6
4972 else
4973 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4974 # We make a subdir and do the tests there. Otherwise we can end up
4975 # making bogus files that we don't know about and never remove. For
4976 # instance it was reported that on HP-UX the gcc test will end up
4977 # making a dummy file named `D' -- because `-MD' means `put the output
4978 # in D'.
4979 mkdir conftest.dir
4980 # Copy depcomp to subdir because otherwise we won't find it if we're
4981 # using a relative directory.
4982 cp "$am_depcomp" conftest.dir
4983 cd conftest.dir
4984 # We will build objects and dependencies in a subdirectory because
4985 # it helps to detect inapplicable dependency modes. For instance
4986 # both Tru64's cc and ICC support -MD to output dependencies as a
4987 # side effect of compilation, but ICC will put the dependencies in
4988 # the current directory while Tru64 will put them in the object
4989 # directory.
4990 mkdir sub
4991
4992 am_cv_CC_dependencies_compiler_type=none
4993 if test "$am_compiler_list" = ""; then
4994 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4995 fi
4996 am__universal=false
4997 case " $depcc " in #(
4998 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4999 esac
5000
5001 for depmode in $am_compiler_list; do
5002 # Setup a source with many dependencies, because some compilers
5003 # like to wrap large dependency lists on column 80 (with \), and
5004 # we should not choose a depcomp mode which is confused by this.
5005 #
5006 # We need to recreate these files for each test, as the compiler may
5007 # overwrite some of them when testing with obscure command lines.
5008 # This happens at least with the AIX C compiler.
5009 : > sub/conftest.c
5010 for i in 1 2 3 4 5 6; do
5011 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5012 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5013 # Solaris 8's {/usr,}/bin/sh.
5014 touch sub/conftst$i.h
5015 done
5016 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5017
5018 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5019 # mode. It turns out that the SunPro C++ compiler does not properly
5020 # handle `-M -o', and we need to detect this. Also, some Intel
5021 # versions had trouble with output in subdirs
5022 am__obj=sub/conftest.${OBJEXT-o}
5023 am__minus_obj="-o $am__obj"
5024 case $depmode in
5025 gcc)
5026 # This depmode causes a compiler race in universal mode.
5027 test "$am__universal" = false || continue
5028 ;;
5029 nosideeffect)
5030 # after this tag, mechanisms are not by side-effect, so they'll
5031 # only be used when explicitly requested
5032 if test "x$enable_dependency_tracking" = xyes; then
5033 continue
5034 else
5035 break
5036 fi
5037 ;;
5038 msvisualcpp | msvcmsys)
5039 # This compiler won't grok `-c -o', but also, the minuso test has
5040 # not run yet. These depmodes are late enough in the game, and
5041 # so weak that their functioning should not be impacted.
5042 am__obj=conftest.${OBJEXT-o}
5043 am__minus_obj=
5044 ;;
5045 none) break ;;
5046 esac
5047 if depmode=$depmode \
5048 source=sub/conftest.c object=$am__obj \
5049 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5050 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5051 >/dev/null 2>conftest.err &&
5052 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5053 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5054 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5055 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5056 # icc doesn't choke on unknown options, it will just issue warnings
5057 # or remarks (even with -Werror). So we grep stderr for any message
5058 # that says an option was ignored or not supported.
5059 # When given -MP, icc 7.0 and 7.1 complain thusly:
5060 # icc: Command line warning: ignoring option '-M'; no argument required
5061 # The diagnosis changed in icc 8.0:
5062 # icc: Command line remark: option '-MP' not supported
5063 if (grep 'ignoring option' conftest.err ||
5064 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5065 am_cv_CC_dependencies_compiler_type=$depmode
5066 break
5067 fi
5068 fi
5069 done
5070
5071 cd ..
5072 rm -rf conftest.dir
5073 else
5074 am_cv_CC_dependencies_compiler_type=none
5075 fi
5076
5077 fi
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5079 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5080 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5081
5082 if
5083 test "x$enable_dependency_tracking" != xno \
5084 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5085 am__fastdepCC_TRUE=
5086 am__fastdepCC_FALSE='#'
5087 else
5088 am__fastdepCC_TRUE='#'
5089 am__fastdepCC_FALSE=
5090 fi
5091
5092
5093 depcc="$CXX" am_compiler_list=
5094
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5096 $as_echo_n "checking dependency style of $depcc... " >&6; }
5097 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5098 $as_echo_n "(cached) " >&6
5099 else
5100 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5101 # We make a subdir and do the tests there. Otherwise we can end up
5102 # making bogus files that we don't know about and never remove. For
5103 # instance it was reported that on HP-UX the gcc test will end up
5104 # making a dummy file named `D' -- because `-MD' means `put the output
5105 # in D'.
5106 mkdir conftest.dir
5107 # Copy depcomp to subdir because otherwise we won't find it if we're
5108 # using a relative directory.
5109 cp "$am_depcomp" conftest.dir
5110 cd conftest.dir
5111 # We will build objects and dependencies in a subdirectory because
5112 # it helps to detect inapplicable dependency modes. For instance
5113 # both Tru64's cc and ICC support -MD to output dependencies as a
5114 # side effect of compilation, but ICC will put the dependencies in
5115 # the current directory while Tru64 will put them in the object
5116 # directory.
5117 mkdir sub
5118
5119 am_cv_CXX_dependencies_compiler_type=none
5120 if test "$am_compiler_list" = ""; then
5121 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5122 fi
5123 am__universal=false
5124 case " $depcc " in #(
5125 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5126 esac
5127
5128 for depmode in $am_compiler_list; do
5129 # Setup a source with many dependencies, because some compilers
5130 # like to wrap large dependency lists on column 80 (with \), and
5131 # we should not choose a depcomp mode which is confused by this.
5132 #
5133 # We need to recreate these files for each test, as the compiler may
5134 # overwrite some of them when testing with obscure command lines.
5135 # This happens at least with the AIX C compiler.
5136 : > sub/conftest.c
5137 for i in 1 2 3 4 5 6; do
5138 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5139 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5140 # Solaris 8's {/usr,}/bin/sh.
5141 touch sub/conftst$i.h
5142 done
5143 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5144
5145 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5146 # mode. It turns out that the SunPro C++ compiler does not properly
5147 # handle `-M -o', and we need to detect this. Also, some Intel
5148 # versions had trouble with output in subdirs
5149 am__obj=sub/conftest.${OBJEXT-o}
5150 am__minus_obj="-o $am__obj"
5151 case $depmode in
5152 gcc)
5153 # This depmode causes a compiler race in universal mode.
5154 test "$am__universal" = false || continue
5155 ;;
5156 nosideeffect)
5157 # after this tag, mechanisms are not by side-effect, so they'll
5158 # only be used when explicitly requested
5159 if test "x$enable_dependency_tracking" = xyes; then
5160 continue
5161 else
5162 break
5163 fi
5164 ;;
5165 msvisualcpp | msvcmsys)
5166 # This compiler won't grok `-c -o', but also, the minuso test has
5167 # not run yet. These depmodes are late enough in the game, and
5168 # so weak that their functioning should not be impacted.
5169 am__obj=conftest.${OBJEXT-o}
5170 am__minus_obj=
5171 ;;
5172 none) break ;;
5173 esac
5174 if depmode=$depmode \
5175 source=sub/conftest.c object=$am__obj \
5176 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5177 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5178 >/dev/null 2>conftest.err &&
5179 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5180 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5181 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5182 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5183 # icc doesn't choke on unknown options, it will just issue warnings
5184 # or remarks (even with -Werror). So we grep stderr for any message
5185 # that says an option was ignored or not supported.
5186 # When given -MP, icc 7.0 and 7.1 complain thusly:
5187 # icc: Command line warning: ignoring option '-M'; no argument required
5188 # The diagnosis changed in icc 8.0:
5189 # icc: Command line remark: option '-MP' not supported
5190 if (grep 'ignoring option' conftest.err ||
5191 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5192 am_cv_CXX_dependencies_compiler_type=$depmode
5193 break
5194 fi
5195 fi
5196 done
5197
5198 cd ..
5199 rm -rf conftest.dir
5200 else
5201 am_cv_CXX_dependencies_compiler_type=none
5202 fi
5203
5204 fi
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5206 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5207 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5208
5209 if
5210 test "x$enable_dependency_tracking" != xno \
5211 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5212 am__fastdepCXX_TRUE=
5213 am__fastdepCXX_FALSE='#'
5214 else
5215 am__fastdepCXX_TRUE='#'
5216 am__fastdepCXX_FALSE=
5217 fi
5218
5219
5220
5221
5222 if test -n "$ac_tool_prefix"; then
5223 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5224 set dummy ${ac_tool_prefix}as; ac_word=$2
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5226 $as_echo_n "checking for $ac_word... " >&6; }
5227 if test "${ac_cv_prog_AS+set}" = set; then :
5228 $as_echo_n "(cached) " >&6
5229 else
5230 if test -n "$AS"; then
5231 ac_cv_prog_AS="$AS" # Let the user override the test.
5232 else
5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 for as_dir in $PATH
5235 do
5236 IFS=$as_save_IFS
5237 test -z "$as_dir" && as_dir=.
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5240 ac_cv_prog_AS="${ac_tool_prefix}as"
5241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5242 break 2
5243 fi
5244 done
5245 done
5246 IFS=$as_save_IFS
5247
5248 fi
5249 fi
5250 AS=$ac_cv_prog_AS
5251 if test -n "$AS"; then
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5253 $as_echo "$AS" >&6; }
5254 else
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256 $as_echo "no" >&6; }
5257 fi
5258
5259
5260 fi
5261 if test -z "$ac_cv_prog_AS"; then
5262 ac_ct_AS=$AS
5263 # Extract the first word of "as", so it can be a program name with args.
5264 set dummy as; ac_word=$2
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5266 $as_echo_n "checking for $ac_word... " >&6; }
5267 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5268 $as_echo_n "(cached) " >&6
5269 else
5270 if test -n "$ac_ct_AS"; then
5271 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5272 else
5273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274 for as_dir in $PATH
5275 do
5276 IFS=$as_save_IFS
5277 test -z "$as_dir" && as_dir=.
5278 for ac_exec_ext in '' $ac_executable_extensions; do
5279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5280 ac_cv_prog_ac_ct_AS="as"
5281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5282 break 2
5283 fi
5284 done
5285 done
5286 IFS=$as_save_IFS
5287
5288 fi
5289 fi
5290 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5291 if test -n "$ac_ct_AS"; then
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5293 $as_echo "$ac_ct_AS" >&6; }
5294 else
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296 $as_echo "no" >&6; }
5297 fi
5298
5299 if test "x$ac_ct_AS" = x; then
5300 AS=""
5301 else
5302 case $cross_compiling:$ac_tool_warned in
5303 yes:)
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5306 ac_tool_warned=yes ;;
5307 esac
5308 AS=$ac_ct_AS
5309 fi
5310 else
5311 AS="$ac_cv_prog_AS"
5312 fi
5313
5314 if test -n "$ac_tool_prefix"; then
5315 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5316 set dummy ${ac_tool_prefix}ld; ac_word=$2
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5318 $as_echo_n "checking for $ac_word... " >&6; }
5319 if test "${ac_cv_prog_LD+set}" = set; then :
5320 $as_echo_n "(cached) " >&6
5321 else
5322 if test -n "$LD"; then
5323 ac_cv_prog_LD="$LD" # Let the user override the test.
5324 else
5325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 for as_dir in $PATH
5327 do
5328 IFS=$as_save_IFS
5329 test -z "$as_dir" && as_dir=.
5330 for ac_exec_ext in '' $ac_executable_extensions; do
5331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5332 ac_cv_prog_LD="${ac_tool_prefix}ld"
5333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5334 break 2
5335 fi
5336 done
5337 done
5338 IFS=$as_save_IFS
5339
5340 fi
5341 fi
5342 LD=$ac_cv_prog_LD
5343 if test -n "$LD"; then
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5345 $as_echo "$LD" >&6; }
5346 else
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5348 $as_echo "no" >&6; }
5349 fi
5350
5351
5352 fi
5353 if test -z "$ac_cv_prog_LD"; then
5354 ac_ct_LD=$LD
5355 # Extract the first word of "ld", so it can be a program name with args.
5356 set dummy ld; ac_word=$2
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358 $as_echo_n "checking for $ac_word... " >&6; }
5359 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
5360 $as_echo_n "(cached) " >&6
5361 else
5362 if test -n "$ac_ct_LD"; then
5363 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5364 else
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 for as_dir in $PATH
5367 do
5368 IFS=$as_save_IFS
5369 test -z "$as_dir" && as_dir=.
5370 for ac_exec_ext in '' $ac_executable_extensions; do
5371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5372 ac_cv_prog_ac_ct_LD="ld"
5373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 break 2
5375 fi
5376 done
5377 done
5378 IFS=$as_save_IFS
5379
5380 fi
5381 fi
5382 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5383 if test -n "$ac_ct_LD"; then
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
5385 $as_echo "$ac_ct_LD" >&6; }
5386 else
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388 $as_echo "no" >&6; }
5389 fi
5390
5391 if test "x$ac_ct_LD" = x; then
5392 LD=""
5393 else
5394 case $cross_compiling:$ac_tool_warned in
5395 yes:)
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5398 ac_tool_warned=yes ;;
5399 esac
5400 LD=$ac_ct_LD
5401 fi
5402 else
5403 LD="$ac_cv_prog_LD"
5404 fi
5405
5406 if test -n "$ac_tool_prefix"; then
5407 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5408 set dummy ${ac_tool_prefix}ar; ac_word=$2
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5410 $as_echo_n "checking for $ac_word... " >&6; }
5411 if test "${ac_cv_prog_AR+set}" = set; then :
5412 $as_echo_n "(cached) " >&6
5413 else
5414 if test -n "$AR"; then
5415 ac_cv_prog_AR="$AR" # Let the user override the test.
5416 else
5417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418 for as_dir in $PATH
5419 do
5420 IFS=$as_save_IFS
5421 test -z "$as_dir" && as_dir=.
5422 for ac_exec_ext in '' $ac_executable_extensions; do
5423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5424 ac_cv_prog_AR="${ac_tool_prefix}ar"
5425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5426 break 2
5427 fi
5428 done
5429 done
5430 IFS=$as_save_IFS
5431
5432 fi
5433 fi
5434 AR=$ac_cv_prog_AR
5435 if test -n "$AR"; then
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5437 $as_echo "$AR" >&6; }
5438 else
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5440 $as_echo "no" >&6; }
5441 fi
5442
5443
5444 fi
5445 if test -z "$ac_cv_prog_AR"; then
5446 ac_ct_AR=$AR
5447 # Extract the first word of "ar", so it can be a program name with args.
5448 set dummy ar; ac_word=$2
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5450 $as_echo_n "checking for $ac_word... " >&6; }
5451 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5452 $as_echo_n "(cached) " >&6
5453 else
5454 if test -n "$ac_ct_AR"; then
5455 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5456 else
5457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458 for as_dir in $PATH
5459 do
5460 IFS=$as_save_IFS
5461 test -z "$as_dir" && as_dir=.
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464 ac_cv_prog_ac_ct_AR="ar"
5465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5466 break 2
5467 fi
5468 done
5469 done
5470 IFS=$as_save_IFS
5471
5472 fi
5473 fi
5474 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5475 if test -n "$ac_ct_AR"; then
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5477 $as_echo "$ac_ct_AR" >&6; }
5478 else
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480 $as_echo "no" >&6; }
5481 fi
5482
5483 if test "x$ac_ct_AR" = x; then
5484 AR=""
5485 else
5486 case $cross_compiling:$ac_tool_warned in
5487 yes:)
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5490 ac_tool_warned=yes ;;
5491 esac
5492 AR=$ac_ct_AR
5493 fi
5494 else
5495 AR="$ac_cv_prog_AR"
5496 fi
5497
5498 if test -n "$ac_tool_prefix"; then
5499 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5500 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5502 $as_echo_n "checking for $ac_word... " >&6; }
5503 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5504 $as_echo_n "(cached) " >&6
5505 else
5506 if test -n "$RANLIB"; then
5507 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5508 else
5509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510 for as_dir in $PATH
5511 do
5512 IFS=$as_save_IFS
5513 test -z "$as_dir" && as_dir=.
5514 for ac_exec_ext in '' $ac_executable_extensions; do
5515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5516 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5518 break 2
5519 fi
5520 done
5521 done
5522 IFS=$as_save_IFS
5523
5524 fi
5525 fi
5526 RANLIB=$ac_cv_prog_RANLIB
5527 if test -n "$RANLIB"; then
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5529 $as_echo "$RANLIB" >&6; }
5530 else
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5532 $as_echo "no" >&6; }
5533 fi
5534
5535
5536 fi
5537 if test -z "$ac_cv_prog_RANLIB"; then
5538 ac_ct_RANLIB=$RANLIB
5539 # Extract the first word of "ranlib", so it can be a program name with args.
5540 set dummy ranlib; ac_word=$2
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5542 $as_echo_n "checking for $ac_word... " >&6; }
5543 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5544 $as_echo_n "(cached) " >&6
5545 else
5546 if test -n "$ac_ct_RANLIB"; then
5547 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5548 else
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 for as_dir in $PATH
5551 do
5552 IFS=$as_save_IFS
5553 test -z "$as_dir" && as_dir=.
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5556 ac_cv_prog_ac_ct_RANLIB="ranlib"
5557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5558 break 2
5559 fi
5560 done
5561 done
5562 IFS=$as_save_IFS
5563
5564 fi
5565 fi
5566 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5567 if test -n "$ac_ct_RANLIB"; then
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5569 $as_echo "$ac_ct_RANLIB" >&6; }
5570 else
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572 $as_echo "no" >&6; }
5573 fi
5574
5575 if test "x$ac_ct_RANLIB" = x; then
5576 RANLIB=":"
5577 else
5578 case $cross_compiling:$ac_tool_warned in
5579 yes:)
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5582 ac_tool_warned=yes ;;
5583 esac
5584 RANLIB=$ac_ct_RANLIB
5585 fi
5586 else
5587 RANLIB="$ac_cv_prog_RANLIB"
5588 fi
5589
5590 if test -n "$ac_tool_prefix"; then
5591 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5592 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5594 $as_echo_n "checking for $ac_word... " >&6; }
5595 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5596 $as_echo_n "(cached) " >&6
5597 else
5598 if test -n "$DLLTOOL"; then
5599 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5600 else
5601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5602 for as_dir in $PATH
5603 do
5604 IFS=$as_save_IFS
5605 test -z "$as_dir" && as_dir=.
5606 for ac_exec_ext in '' $ac_executable_extensions; do
5607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5608 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5610 break 2
5611 fi
5612 done
5613 done
5614 IFS=$as_save_IFS
5615
5616 fi
5617 fi
5618 DLLTOOL=$ac_cv_prog_DLLTOOL
5619 if test -n "$DLLTOOL"; then
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5621 $as_echo "$DLLTOOL" >&6; }
5622 else
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5624 $as_echo "no" >&6; }
5625 fi
5626
5627
5628 fi
5629 if test -z "$ac_cv_prog_DLLTOOL"; then
5630 ac_ct_DLLTOOL=$DLLTOOL
5631 # Extract the first word of "dlltool", so it can be a program name with args.
5632 set dummy dlltool; ac_word=$2
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5634 $as_echo_n "checking for $ac_word... " >&6; }
5635 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5636 $as_echo_n "(cached) " >&6
5637 else
5638 if test -n "$ac_ct_DLLTOOL"; then
5639 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5640 else
5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 for as_dir in $PATH
5643 do
5644 IFS=$as_save_IFS
5645 test -z "$as_dir" && as_dir=.
5646 for ac_exec_ext in '' $ac_executable_extensions; do
5647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5648 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5650 break 2
5651 fi
5652 done
5653 done
5654 IFS=$as_save_IFS
5655
5656 fi
5657 fi
5658 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5659 if test -n "$ac_ct_DLLTOOL"; then
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5661 $as_echo "$ac_ct_DLLTOOL" >&6; }
5662 else
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5664 $as_echo "no" >&6; }
5665 fi
5666
5667 if test "x$ac_ct_DLLTOOL" = x; then
5668 DLLTOOL=":"
5669 else
5670 case $cross_compiling:$ac_tool_warned in
5671 yes:)
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5674 ac_tool_warned=yes ;;
5675 esac
5676 DLLTOOL=$ac_ct_DLLTOOL
5677 fi
5678 else
5679 DLLTOOL="$ac_cv_prog_DLLTOOL"
5680 fi
5681
5682 for ac_prog in gawk mawk nawk awk
5683 do
5684 # Extract the first word of "$ac_prog", so it can be a program name with args.
5685 set dummy $ac_prog; ac_word=$2
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5687 $as_echo_n "checking for $ac_word... " >&6; }
5688 if test "${ac_cv_prog_AWK+set}" = set; then :
5689 $as_echo_n "(cached) " >&6
5690 else
5691 if test -n "$AWK"; then
5692 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5693 else
5694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695 for as_dir in $PATH
5696 do
5697 IFS=$as_save_IFS
5698 test -z "$as_dir" && as_dir=.
5699 for ac_exec_ext in '' $ac_executable_extensions; do
5700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5701 ac_cv_prog_AWK="$ac_prog"
5702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5703 break 2
5704 fi
5705 done
5706 done
5707 IFS=$as_save_IFS
5708
5709 fi
5710 fi
5711 AWK=$ac_cv_prog_AWK
5712 if test -n "$AWK"; then
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5714 $as_echo "$AWK" >&6; }
5715 else
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717 $as_echo "no" >&6; }
5718 fi
5719
5720
5721 test -n "$AWK" && break
5722 done
5723
5724 for ac_prog in jar fastjar gjar
5725 do
5726 # Extract the first word of "$ac_prog", so it can be a program name with args.
5727 set dummy $ac_prog; ac_word=$2
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5729 $as_echo_n "checking for $ac_word... " >&6; }
5730 if test "${ac_cv_prog_JAR+set}" = set; then :
5731 $as_echo_n "(cached) " >&6
5732 else
5733 if test -n "$JAR"; then
5734 ac_cv_prog_JAR="$JAR" # Let the user override the test.
5735 else
5736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 for as_dir in $PATH
5738 do
5739 IFS=$as_save_IFS
5740 test -z "$as_dir" && as_dir=.
5741 for ac_exec_ext in '' $ac_executable_extensions; do
5742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5743 ac_cv_prog_JAR="$ac_prog"
5744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5745 break 2
5746 fi
5747 done
5748 done
5749 IFS=$as_save_IFS
5750
5751 fi
5752 fi
5753 JAR=$ac_cv_prog_JAR
5754 if test -n "$JAR"; then
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
5756 $as_echo "$JAR" >&6; }
5757 else
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759 $as_echo "no" >&6; }
5760 fi
5761
5762
5763 test -n "$JAR" && break
5764 done
5765 test -n "$JAR" || JAR="no"
5766
5767 # Extract the first word of "zip", so it can be a program name with args.
5768 set dummy zip; ac_word=$2
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5770 $as_echo_n "checking for $ac_word... " >&6; }
5771 if test "${ac_cv_path_ZIP+set}" = set; then :
5772 $as_echo_n "(cached) " >&6
5773 else
5774 case $ZIP in
5775 [\\/]* | ?:[\\/]*)
5776 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5777 ;;
5778 *)
5779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780 for as_dir in $PATH
5781 do
5782 IFS=$as_save_IFS
5783 test -z "$as_dir" && as_dir=.
5784 for ac_exec_ext in '' $ac_executable_extensions; do
5785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5786 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5788 break 2
5789 fi
5790 done
5791 done
5792 IFS=$as_save_IFS
5793
5794 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
5795 ;;
5796 esac
5797 fi
5798 ZIP=$ac_cv_path_ZIP
5799 if test -n "$ZIP"; then
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
5801 $as_echo "$ZIP" >&6; }
5802 else
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5804 $as_echo "no" >&6; }
5805 fi
5806
5807
5808 # Extract the first word of "unzip", so it can be a program name with args.
5809 set dummy unzip; ac_word=$2
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5811 $as_echo_n "checking for $ac_word... " >&6; }
5812 if test "${ac_cv_path_UNZIP+set}" = set; then :
5813 $as_echo_n "(cached) " >&6
5814 else
5815 case $UNZIP in
5816 [\\/]* | ?:[\\/]*)
5817 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
5818 ;;
5819 *)
5820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821 for as_dir in $PATH
5822 do
5823 IFS=$as_save_IFS
5824 test -z "$as_dir" && as_dir=.
5825 for ac_exec_ext in '' $ac_executable_extensions; do
5826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5827 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
5828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5829 break 2
5830 fi
5831 done
5832 done
5833 IFS=$as_save_IFS
5834
5835 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
5836 ;;
5837 esac
5838 fi
5839 UNZIP=$ac_cv_path_UNZIP
5840 if test -n "$UNZIP"; then
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
5842 $as_echo "$UNZIP" >&6; }
5843 else
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5845 $as_echo "no" >&6; }
5846 fi
5847
5848
5849
5850 # We need a jar that supports -@. This is a GNU extension.
5851 if test "$JAR" != no; then
5852 rm -f config-test.jar
5853 echo $srcdir/configure.ac | $JAR -cf@ config-test.jar >/dev/null 2>&1
5854 if test -f config-test.jar; then
5855 rm -f config-test.jar
5856 else
5857 JAR=no
5858 fi
5859 fi
5860
5861 # Prefer the jar we found, but fall back to our jar script.
5862 if test "$JAR" = no; then
5863 if test "$ZIP" = no; then
5864 as_fn_error "cannot find neither zip nor jar, cannot continue" "$LINENO" 5
5865 else
5866 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
5867 JAR=`pwd`/scripts/jar
5868 fi
5869 fi
5870
5871
5872
5873
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5875 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5876 # Check whether --enable-maintainer-mode was given.
5877 if test "${enable_maintainer_mode+set}" = set; then :
5878 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5879 else
5880 USE_MAINTAINER_MODE=no
5881 fi
5882
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5884 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5885 if test $USE_MAINTAINER_MODE = yes; then
5886 MAINTAINER_MODE_TRUE=
5887 MAINTAINER_MODE_FALSE='#'
5888 else
5889 MAINTAINER_MODE_TRUE='#'
5890 MAINTAINER_MODE_FALSE=
5891 fi
5892
5893 MAINT=$MAINTAINER_MODE_TRUE
5894
5895
5896
5897
5898
5899 # configure.host sets the following important variables
5900 # libgcj_cflags - host specific C compiler flags
5901 # libgcj_cxxflags - host specific C++ compiler flags
5902 # libgcj_javaflags - host specific Java compiler flags
5903 # libgcj_sublib_ltflags - host specific Libtool flags
5904 # libgcj_sublib_core_extra_deps - host specific extra
5905 # dependencies for core sublib
5906 # (these last two only used when building sublibs)
5907 # and a number of others; see the list at the start of the file.
5908
5909 libgcj_cflags=
5910 libgcj_cxxflags=
5911 libgcj_javaflags=
5912 libgcj_sublib_ltflags=
5913 libgcj_sublib_core_extra_deps=
5914
5915 . ${srcdir}/configure.host
5916
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5918 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5919 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5920 $as_echo_n "(cached) " >&6
5921 else
5922 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5923 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5924 acl_cv_prog_gnu_ld=yes
5925 else
5926 acl_cv_prog_gnu_ld=no
5927 fi
5928 fi
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5930 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5931 with_gnu_ld=$acl_cv_prog_gnu_ld
5932
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
5934 $as_echo_n "checking if the GNU linker ($LD) supports -Bsymbolic-functions... " >&6; }
5935 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then :
5936 $as_echo_n "(cached) " >&6
5937 else
5938
5939 acl_cv_prog_gnu_ld_symbolic=no
5940
5941 if test x"$with_gnu_ld" = x"yes"; then
5942 if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
5943 acl_cv_prog_gnu_ld_symbolic=yes
5944 fi
5945 fi
5946 fi
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld_symbolic" >&5
5948 $as_echo "$acl_cv_prog_gnu_ld_symbolic" >&6; }
5949 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
5950 SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
5951 else
5952 SYMBOLIC_LDFLAGS=''
5953 fi
5954
5955 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
5956 if test -z "$libgcj_ld_symbolic"; then
5957 libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
5958 fi
5959
5960 # for windows native targets enforce export of all symbols for shared libgcj.
5961 libgcj_ld_export_all=
5962 case "$host" in
5963 *mingw*)
5964 libgcj_ld_export_all=-Wl,--export-all-symbols
5965 ;;
5966 *)
5967 ;;
5968 esac
5969
5970 LIBGCJ_CFLAGS="${libgcj_cflags}"
5971 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
5972 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
5973 LIBGCJ_SUBLIB_LTFLAGS="${libgcj_sublib_ltflags}"
5974 LIBGCJ_SUBLIB_CORE_EXTRA_DEPS="${libgcj_sublib_core_extra_deps}"
5975 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
5976 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
5977 LIBGCJ_LD_EXPORT_ALL="${libgcj_ld_export_all}"
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987 # Only use libltdl for non-newlib builds.
5988 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
5990 $as_echo_n "checking dynamic linker characteristics... " >&6; }
5991 library_names_spec=
5992 libname_spec='lib$name'
5993 soname_spec=
5994 shrext=".so"
5995 postinstall_cmds=
5996 postuninstall_cmds=
5997 finish_cmds=
5998 finish_eval=
5999 shlibpath_var=
6000 shlibpath_overrides_runpath=unknown
6001 version_type=none
6002 dynamic_linker="$host_os ld.so"
6003 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6004 if test "$GCC" = yes; then
6005 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
6006 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6007 # if the path contains ";" then we assume it to be the separator
6008 # otherwise default to the standard path separator (i.e. ":") - it is
6009 # assumed that no part of a normal pathname contains ";" but that should
6010 # okay in the real world where ";" in dirpaths is itself problematic.
6011 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6012 else
6013 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6014 fi
6015 else
6016 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6017 fi
6018 need_lib_prefix=unknown
6019 hardcode_into_libs=no
6020
6021 # when you set need_version to no, make sure it does not cause -set_version
6022 # flags to be left without arguments
6023 need_version=unknown
6024
6025 case $host_os in
6026 aix3*)
6027 version_type=linux
6028 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6029 shlibpath_var=LIBPATH
6030
6031 # AIX 3 has no versioning support, so we append a major version to the name.
6032 soname_spec='${libname}${release}${shared_ext}$major'
6033 ;;
6034
6035 aix[4-9]*)
6036 version_type=linux
6037 need_lib_prefix=no
6038 need_version=no
6039 hardcode_into_libs=yes
6040 if test "$host_cpu" = ia64; then
6041 # AIX 5 supports IA64
6042 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6043 shlibpath_var=LD_LIBRARY_PATH
6044 else
6045 # With GCC up to 2.95.x, collect2 would create an import file
6046 # for dependence libraries. The import file would start with
6047 # the line `#! .'. This would cause the generated library to
6048 # depend on `.', always an invalid library. This was fixed in
6049 # development snapshots of GCC prior to 3.0.
6050 case $host_os in
6051 aix4 | aix4.[01] | aix4.[01].*)
6052 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6053 echo ' yes '
6054 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6055 :
6056 else
6057 can_build_shared=no
6058 fi
6059 ;;
6060 esac
6061 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6062 # soname into executable. Probably we can add versioning support to
6063 # collect2, so additional links can be useful in future.
6064 if test "$aix_use_runtimelinking" = yes; then
6065 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6066 # instead of lib<name>.a to let people know that these are not
6067 # typical AIX shared libraries.
6068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6069 else
6070 # We preserve .a as extension for shared libraries through AIX4.2
6071 # and later when we are not doing run time linking.
6072 library_names_spec='${libname}${release}.a $libname.a'
6073 soname_spec='${libname}${release}${shared_ext}$major'
6074 fi
6075 shlibpath_var=LIBPATH
6076 fi
6077 ;;
6078
6079 amigaos*)
6080 library_names_spec='$libname.ixlibrary $libname.a'
6081 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6082 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'
6083 ;;
6084
6085 beos*)
6086 library_names_spec='${libname}${shared_ext}'
6087 dynamic_linker="$host_os ld.so"
6088 shlibpath_var=LIBRARY_PATH
6089 ;;
6090
6091 bsdi4*)
6092 version_type=linux
6093 need_version=no
6094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6095 soname_spec='${libname}${release}${shared_ext}$major'
6096 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6097 shlibpath_var=LD_LIBRARY_PATH
6098 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6099 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6100 # the default ld.so.conf also contains /usr/contrib/lib and
6101 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6102 # libtool to hard-code these into programs
6103 ;;
6104
6105 cygwin* | mingw* | pw32*)
6106 version_type=windows
6107 shrext=".dll"
6108 need_version=no
6109 need_lib_prefix=no
6110
6111 case $GCC,$host_os in
6112 yes,cygwin* | yes,mingw* | yes,pw32*)
6113 library_names_spec='$libname.dll.a'
6114 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6115 postinstall_cmds='base_file=`basename \${file}`~
6116 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6117 dldir=$destdir/`dirname \$dlpath`~
6118 test -d \$dldir || mkdir -p \$dldir~
6119 $install_prog $dir/$dlname \$dldir/$dlname'
6120 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6121 dlpath=$dir/\$dldll~
6122 $rm \$dlpath'
6123 shlibpath_overrides_runpath=yes
6124
6125 case $host_os in
6126 cygwin*)
6127 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6128 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6129 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
6130 ;;
6131 mingw*)
6132 # MinGW DLLs use traditional 'lib' prefix
6133 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6134 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
6135 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6136 # It is most probably a Windows format PATH printed by
6137 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6138 # path with ; separators, and with drive letters. We can handle the
6139 # drive letters (cygwin fileutils understands them), so leave them,
6140 # especially as we might pass files found there to a mingw objdump,
6141 # which wouldn't understand a cygwinified path. Ahh.
6142 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6143 else
6144 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6145 fi
6146 ;;
6147 pw32*)
6148 # pw32 DLLs use 'pw' prefix rather than 'lib'
6149 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
6150 ;;
6151 esac
6152 ;;
6153
6154 *)
6155 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6156 ;;
6157 esac
6158 dynamic_linker='Win32 ld.exe'
6159 # FIXME: first we should search . and the directory the executable is in
6160 shlibpath_var=PATH
6161 ;;
6162
6163 darwin* | rhapsody*)
6164 dynamic_linker="$host_os dyld"
6165 version_type=darwin
6166 need_lib_prefix=no
6167 need_version=no
6168 # FIXME: Relying on posixy $() will cause problems for
6169 # cross-compilation, but unfortunately the echo tests do not
6170 # yet detect zsh echo's removal of \ escapes.
6171 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6172 soname_spec='${libname}${release}${major}$shared_ext'
6173 shlibpath_overrides_runpath=yes
6174 shlibpath_var=DYLD_LIBRARY_PATH
6175 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
6176 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6177 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6178 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"`
6179 fi
6180 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6181 ;;
6182
6183 dgux*)
6184 version_type=linux
6185 need_lib_prefix=no
6186 need_version=no
6187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6188 soname_spec='${libname}${release}${shared_ext}$major'
6189 shlibpath_var=LD_LIBRARY_PATH
6190 ;;
6191
6192 freebsd*)
6193 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6194 version_type=freebsd-$objformat
6195 case $version_type in
6196 freebsd-elf*)
6197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6198 need_version=no
6199 need_lib_prefix=no
6200 ;;
6201 freebsd-*)
6202 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6203 need_version=yes
6204 ;;
6205 esac
6206 shlibpath_var=LD_LIBRARY_PATH
6207 case $host_os in
6208 freebsd2*)
6209 shlibpath_overrides_runpath=yes
6210 ;;
6211 freebsd3.01* | freebsdelf3.01*)
6212 shlibpath_overrides_runpath=yes
6213 hardcode_into_libs=yes
6214 ;;
6215 *) # from 3.2 on
6216 shlibpath_overrides_runpath=no
6217 hardcode_into_libs=yes
6218 ;;
6219 esac
6220 ;;
6221
6222 gnu*)
6223 version_type=linux
6224 need_lib_prefix=no
6225 need_version=no
6226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6227 soname_spec='${libname}${release}${shared_ext}$major'
6228 shlibpath_var=LD_LIBRARY_PATH
6229 hardcode_into_libs=yes
6230 ;;
6231
6232 hpux9* | hpux10* | hpux11*)
6233 # Give a soname corresponding to the major version so that dld.sl refuses to
6234 # link against other versions.
6235 version_type=sunos
6236 need_lib_prefix=no
6237 need_version=no
6238 case "$host_cpu" in
6239 ia64*)
6240 shrext='.so'
6241 hardcode_into_libs=yes
6242 dynamic_linker="$host_os dld.so"
6243 shlibpath_var=LD_LIBRARY_PATH
6244 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6246 soname_spec='${libname}${release}${shared_ext}$major'
6247 if test "X$HPUX_IA64_MODE" = X32; then
6248 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6249 else
6250 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6251 fi
6252 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6253 ;;
6254 hppa*64*)
6255 shrext='.sl'
6256 hardcode_into_libs=yes
6257 dynamic_linker="$host_os dld.sl"
6258 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6259 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6261 soname_spec='${libname}${release}${shared_ext}$major'
6262 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6263 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6264 ;;
6265 *)
6266 shrext='.sl'
6267 dynamic_linker="$host_os dld.sl"
6268 shlibpath_var=SHLIB_PATH
6269 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6271 soname_spec='${libname}${release}${shared_ext}$major'
6272 ;;
6273 esac
6274 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6275 postinstall_cmds='chmod 555 $lib'
6276 ;;
6277
6278 irix5* | irix6* | nonstopux*)
6279 case $host_os in
6280 nonstopux*) version_type=nonstopux ;;
6281 *)
6282 if test "$lt_cv_prog_gnu_ld" = yes; then
6283 version_type=linux
6284 else
6285 version_type=irix
6286 fi ;;
6287 esac
6288 need_lib_prefix=no
6289 need_version=no
6290 soname_spec='${libname}${release}${shared_ext}$major'
6291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6292 case $host_os in
6293 irix5* | nonstopux*)
6294 libsuff= shlibsuff=
6295 ;;
6296 *)
6297 case $LD in # libtool.m4 will add one of these switches to LD
6298 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6299 libsuff= shlibsuff= libmagic=32-bit;;
6300 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6301 libsuff=32 shlibsuff=N32 libmagic=N32;;
6302 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6303 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6304 *) libsuff= shlibsuff= libmagic=never-match;;
6305 esac
6306 ;;
6307 esac
6308 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6309 shlibpath_overrides_runpath=no
6310 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6311 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6312 hardcode_into_libs=yes
6313 ;;
6314
6315 # No shared lib support for Linux oldld, aout, or coff.
6316 linux*oldld* | linux*aout* | linux*coff*)
6317 dynamic_linker=no
6318 ;;
6319
6320 # This must be Linux ELF.
6321 linux*|k*bsd*-gnu)
6322 version_type=linux
6323 need_lib_prefix=no
6324 need_version=no
6325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6326 soname_spec='${libname}${release}${shared_ext}$major'
6327 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6328 shlibpath_var=LD_LIBRARY_PATH
6329 shlibpath_overrides_runpath=no
6330 # This implies no fast_install, which is unacceptable.
6331 # Some rework will be needed to allow for fast_install
6332 # before this can be enabled.
6333 hardcode_into_libs=yes
6334
6335 # We used to test for /lib/ld.so.1 and disable shared libraries on
6336 # powerpc, because MkLinux only supported shared libraries with the
6337 # GNU dynamic linker. Since this was broken with cross compilers,
6338 # most powerpc-linux boxes support dynamic linking these days and
6339 # people can always --disable-shared, the test was removed, and we
6340 # assume the GNU/Linux dynamic linker is in use.
6341 dynamic_linker='GNU/Linux ld.so'
6342 ;;
6343
6344 netbsd*)
6345 version_type=sunos
6346 need_lib_prefix=no
6347 need_version=no
6348 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6350 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6351 dynamic_linker='NetBSD (a.out) ld.so'
6352 else
6353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
6354 soname_spec='${libname}${release}${shared_ext}$major'
6355 dynamic_linker='NetBSD ld.elf_so'
6356 fi
6357 shlibpath_var=LD_LIBRARY_PATH
6358 shlibpath_overrides_runpath=yes
6359 hardcode_into_libs=yes
6360 ;;
6361
6362 newsos6)
6363 version_type=linux
6364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6365 shlibpath_var=LD_LIBRARY_PATH
6366 shlibpath_overrides_runpath=yes
6367 ;;
6368
6369 nto-qnx)
6370 version_type=linux
6371 need_lib_prefix=no
6372 need_version=no
6373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6374 soname_spec='${libname}${release}${shared_ext}$major'
6375 shlibpath_var=LD_LIBRARY_PATH
6376 shlibpath_overrides_runpath=yes
6377 ;;
6378
6379 openbsd*)
6380 version_type=sunos
6381 need_lib_prefix=no
6382 need_version=no
6383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6384 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6385 shlibpath_var=LD_LIBRARY_PATH
6386 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6387 case $host_os in
6388 openbsd2.[89] | openbsd2.[89].*)
6389 shlibpath_overrides_runpath=no
6390 ;;
6391 *)
6392 shlibpath_overrides_runpath=yes
6393 ;;
6394 esac
6395 else
6396 shlibpath_overrides_runpath=yes
6397 fi
6398 ;;
6399
6400 os2*)
6401 libname_spec='$name'
6402 shrext=".dll"
6403 need_lib_prefix=no
6404 library_names_spec='$libname${shared_ext} $libname.a'
6405 dynamic_linker='OS/2 ld.exe'
6406 shlibpath_var=LIBPATH
6407 ;;
6408
6409 osf3* | osf4* | osf5*)
6410 version_type=osf
6411 need_lib_prefix=no
6412 need_version=no
6413 soname_spec='${libname}${release}${shared_ext}$major'
6414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6415 shlibpath_var=LD_LIBRARY_PATH
6416 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6417 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6418 ;;
6419
6420 sco3.2v5*)
6421 version_type=osf
6422 soname_spec='${libname}${release}${shared_ext}$major'
6423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6424 shlibpath_var=LD_LIBRARY_PATH
6425 ;;
6426
6427 solaris*)
6428 version_type=linux
6429 need_lib_prefix=no
6430 need_version=no
6431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6432 soname_spec='${libname}${release}${shared_ext}$major'
6433 shlibpath_var=LD_LIBRARY_PATH
6434 shlibpath_overrides_runpath=yes
6435 hardcode_into_libs=yes
6436 # ldd complains unless libraries are executable
6437 postinstall_cmds='chmod +x $lib'
6438 ;;
6439
6440 sunos4*)
6441 version_type=sunos
6442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6443 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6444 shlibpath_var=LD_LIBRARY_PATH
6445 shlibpath_overrides_runpath=yes
6446 if test "$with_gnu_ld" = yes; then
6447 need_lib_prefix=no
6448 fi
6449 need_version=yes
6450 ;;
6451
6452 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6453 version_type=linux
6454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6455 soname_spec='${libname}${release}${shared_ext}$major'
6456 shlibpath_var=LD_LIBRARY_PATH
6457 case $host_vendor in
6458 sni)
6459 shlibpath_overrides_runpath=no
6460 need_lib_prefix=no
6461 export_dynamic_flag_spec='${wl}-Blargedynsym'
6462 runpath_var=LD_RUN_PATH
6463 ;;
6464 siemens)
6465 need_lib_prefix=no
6466 ;;
6467 motorola)
6468 need_lib_prefix=no
6469 need_version=no
6470 shlibpath_overrides_runpath=no
6471 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6472 ;;
6473 esac
6474 ;;
6475
6476 sysv4*MP*)
6477 if test -d /usr/nec ;then
6478 version_type=linux
6479 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6480 soname_spec='$libname${shared_ext}.$major'
6481 shlibpath_var=LD_LIBRARY_PATH
6482 fi
6483 ;;
6484
6485 uts4*)
6486 version_type=linux
6487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6488 soname_spec='${libname}${release}${shared_ext}$major'
6489 shlibpath_var=LD_LIBRARY_PATH
6490 ;;
6491
6492 *)
6493 dynamic_linker=no
6494 ;;
6495 esac
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
6497 $as_echo "$dynamic_linker" >&6; }
6498 test "$dynamic_linker" = no && can_build_shared=no
6499
6500
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
6502 $as_echo_n "checking which variable specifies run-time library path... " >&6; }
6503 if test "${libltdl_cv_shlibpath_var+set}" = set; then :
6504 $as_echo_n "(cached) " >&6
6505 else
6506 libltdl_cv_shlibpath_var="$shlibpath_var"
6507 fi
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
6509 $as_echo "$libltdl_cv_shlibpath_var" >&6; }
6510 if test -n "$libltdl_cv_shlibpath_var"; then
6511
6512 cat >>confdefs.h <<_ACEOF
6513 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
6514 _ACEOF
6515
6516 fi
6517
6518 fi
6519
6520 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
6521
6522
6523 # Possibly build libgcj as many sub-libraries.
6524 # Check whether --enable-libgcj-sublibs was given.
6525 if test "${enable_libgcj_sublibs+set}" = set; then :
6526 enableval=$enable_libgcj_sublibs;
6527 fi
6528
6529
6530 if test -z "$enable_libgcj_sublibs"; then
6531 enable_libgcj_sublibs=$enable_libgcj_sublibs_default
6532 fi
6533 if test "$enable_libgcj_sublibs" = yes; then
6534 BUILD_SUBLIBS_TRUE=
6535 BUILD_SUBLIBS_FALSE='#'
6536 else
6537 BUILD_SUBLIBS_TRUE='#'
6538 BUILD_SUBLIBS_FALSE=
6539 fi
6540
6541 if test "$enable_libgcj_sublibs" = yes ; then
6542 # In theory we could make do with only one override and simply
6543 # tag "_bc" onto the end of it when we use it to generate the
6544 # spec, but that's an ugly thing to do when there are multiple
6545 # words in the string and you're relying on the ordering to
6546 # append the correct one.
6547 libgcj_spec_lgcj_override="-lgcj-noncore -lgcj"
6548 libgcj_spec_lgcj_bc_override="-lgcj-noncore -lgcj_bc"
6549 fi
6550
6551
6552 # See if the user has requested runtime debugging.
6553 LIBGCJDEBUG="disable"
6554
6555 # Check whether --enable-libgcj-debug was given.
6556 if test "${enable_libgcj_debug+set}" = set; then :
6557 enableval=$enable_libgcj_debug; if test "$enable_libgcj_debug" = yes; then
6558
6559 $as_echo "#define __GCJ_DEBUG 1" >>confdefs.h
6560
6561 LIBGCJDEBUG="enable"
6562 fi
6563 fi
6564
6565
6566
6567 # Check whether --with-escher was given.
6568 if test "${with_escher+set}" = set; then :
6569 withval=$with_escher;
6570 fi
6571
6572 case "$with_escher" in
6573 "")
6574 use_escher=false
6575 ;;
6576 "no")
6577 use_escher=false
6578 ;;
6579 "yes")
6580 as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
6581 ;;
6582 *)
6583 use_escher=true
6584 ;;
6585 esac
6586
6587 # Determine which AWT peer libraries to build
6588 # Check whether --enable-java-awt was given.
6589 if test "${enable_java_awt+set}" = set; then :
6590 enableval=$enable_java_awt;
6591 fi
6592
6593
6594 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6595 use_xlib_awt=""
6596 use_gtk_awt=""
6597 use_qt_awt=""
6598 use_x_awt=""
6599 # The default toolkit to use is the first one specified.
6600 TOOLKIT=
6601
6602
6603 for peer in $peerlibs ; do
6604 case $peer in
6605 xlib)
6606 if test "$no_x" = yes; then
6607 echo "*** xlib peers requested but no X library available" 1>&2
6608 exit 1
6609 else
6610 use_xlib_awt="yes"
6611 if test -z "$TOOLKIT"; then
6612 TOOLKIT=gnu.awt.xlib.XToolkit
6613 fi
6614 fi
6615 ;;
6616 gtk)
6617 if test "$no_x" = yes; then
6618 echo "*** gtk peers requested but no X library available" 1>&2
6619 exit 1
6620 else
6621 use_gtk_awt=yes
6622 if test -z "$TOOLKIT"; then
6623 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
6624 fi
6625 fi
6626 ;;
6627 qt)
6628 if test "$no_x" = yes; then
6629 # Perhaps we should admit the possibility of embedded Qt.
6630 echo "*** Qt peers requested but no X library available" 1>&2
6631 exit 1
6632 else
6633 use_qt_awt=yes
6634 if test -z "$TOOLKIT"; then
6635 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
6636 fi
6637 fi
6638 ;;
6639 x)
6640 use_x_awt=yes
6641 if test -z "$TOOLKIT"; then
6642 TOOLKIT=gnu.java.awt.peer.x.XToolkit
6643 fi
6644 ;;
6645 no)
6646 use_xlib_awt=
6647 use_gtk_awt=
6648 use_qt_awt=
6649 use_x_awt=
6650 break
6651 ;;
6652 *)
6653 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6654 exit 1
6655 esac
6656 done
6657
6658 if test "$use_xlib_awt" = yes; then
6659 XLIB_AWT_TRUE=
6660 XLIB_AWT_FALSE='#'
6661 else
6662 XLIB_AWT_TRUE='#'
6663 XLIB_AWT_FALSE=
6664 fi
6665
6666 if test "$use_x_awt" = yes; then
6667 X_AWT_TRUE=
6668 X_AWT_FALSE='#'
6669 else
6670 X_AWT_TRUE='#'
6671 X_AWT_FALSE=
6672 fi
6673
6674
6675
6676 cat >>confdefs.h <<_ACEOF
6677 #define AWT_TOOLKIT "$TOOLKIT"
6678 _ACEOF
6679
6680
6681 expanded_prefix=$prefix
6682 if test "X$prefix" = XNONE; then
6683 expanded_prefix=${ac_default_prefix}
6684 fi
6685
6686
6687 cat >>confdefs.h <<_ACEOF
6688 #define LIBGCJ_PREFIX "$expanded_prefix"
6689 _ACEOF
6690
6691
6692 # Create standard.omit based on decisions we just made.
6693 cp $srcdir/standard.omit.in standard.omit
6694 if test "$use_xlib_awt" != yes; then
6695 echo gnu/awt/xlib >> standard.omit
6696 echo gnu/gcj/xlib >> standard.omit
6697 fi
6698 if test "$use_x_awt" != yes; then
6699 echo gnu/java/awt/peer/x >> standard.omit
6700 fi
6701
6702 # Tools that need to be compiled against classpath's tools classes
6703 : > vm-tools-packages
6704 for package in gnu/gcj/tools/gc_analyze ; do
6705 echo $package >> standard.omit
6706 echo $package >> vm-tools-packages
6707 done
6708
6709 if test -z "${with_multisubdir}"; then
6710 builddotdot=.
6711 else
6712 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
6713 fi
6714
6715 NATIVE=yes
6716
6717 # Which gcj and host gcj (for ecjx) do we use?
6718 which_gcj=default
6719 host_exeext=${ac_exeext}
6720 GCJ_FOR_ECJX='$(GCJ)'
6721 GCC_FOR_ECJX='$(CXX)'
6722 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
6723 if test -n "${with_cross_host}"; then
6724 # We are being configured with a cross compiler. We can't
6725 # use ac_exeext, because that is for the target platform.
6726 NATIVE=no
6727 cross_host_exeext=
6728 GCJ_FOR_ECJX="${with_cross_host}-gcj"
6729 GCC_FOR_ECJX="${with_cross_host}-gcc"
6730 case "${with_cross_host}" in
6731 *mingw* | *cygwin*)
6732 cross_host_exeext=.exe
6733 ;;
6734 esac
6735 host_exeext=${cross_host_exeext}
6736 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
6737 if test x"$build_noncanonical" = x"$with_cross_host"; then
6738 # Ordinary cross (host!=target and host=build)
6739 which_gcj=built
6740 else
6741 # Canadian cross (host!=target and host!=build)
6742 which_gcj=cross
6743 fi
6744 else
6745 which_gcj=cross
6746 fi
6747 else
6748 # We are being configured with a native or crossed-native compiler
6749 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
6750 if test x"$build" = x"$host"; then
6751 # True native build (host=target and host=build)
6752 which_gcj=built
6753 else
6754 # Crossed-native build (host=target and host!=build)
6755 which_gcj=cross
6756 fi
6757 else
6758 which_gcj=path
6759 fi
6760 fi
6761 libgcjdir=`${PWDCMD-pwd}`
6762 case $GCJ in
6763 *" -B"*)
6764 # Just in case there is a comma in the build dir, quote it for the
6765 # sed command below.
6766 case $libgcjdir in
6767 *[,\\]*) qlibgcjdir=`echo "$libgcjdir" | sed 's:[,\\]:\\&:g'`;;
6768 *) qlibgcjdir=$libgcjdir;;
6769 esac
6770 GCJ=`echo "$GCJ" | sed "s, -B, -B$qlibgcjdir/&,"`
6771 ;;
6772 *)
6773 GCJ=$GCJ" -B$libgcjdir/"
6774 ;;
6775 esac
6776 case "${which_gcj}" in
6777 built)
6778 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
6779 ;;
6780 cross)
6781 if test "x${with_newlib}" = "xyes"; then
6782 # FIXME (comment): Why is this needed?
6783 LIBGCC_UNWIND_INCLUDE=
6784 fi
6785 GCJH='$(target_noncanonical)-gcjh'
6786 ;;
6787 path)
6788 GCJH=gcjh
6789 ;;
6790 esac
6791 JAVAC="$GCJ -C"
6792 export JAVAC
6793
6794
6795
6796
6797
6798
6799 # Create it, so that compile/link tests don't fail
6800 test -f libgcj.spec || touch libgcj.spec
6801
6802
6803
6804 # Set up to configure Classpath.
6805 # FIXME: no supported way to pass args in autoconf.
6806 # Disable tool wrappers to avoid ltdl.h configure check.
6807 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
6808 ac_configure_args="$ac_configure_args --disable-load-library"
6809 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
6810 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
6811 dir1=`cd $srcdir && pwd`
6812 dir2=`pwd`
6813 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
6814 ac_configure_args="$ac_configure_args --disable-core-jni"
6815 ac_configure_args="$ac_configure_args --disable-examples"
6816 ac_configure_args="$ac_configure_args --with-glibj=build"
6817 if test "$browser_plugin_enabled" != yes; then
6818 ac_configure_args="$ac_configure_args --disable-plugin"
6819 else
6820 ac_configure_args="$ac_configure_args --enable-plugin"
6821 fi
6822 if test "$gconf_enabled" != yes; then
6823 ac_configure_args="$ac_configure_args --disable-gconf-peer"
6824 ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
6825 fi
6826 if test "$use_gtk_awt" != yes; then
6827 ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
6828 fi
6829 if test "$use_qt_awt" != yes; then
6830 ac_configure_args="$ac_configure_args --disable-qt-peer"
6831 else
6832 # We need this as qt is disabled by default in classpath.
6833 ac_configure_args="$ac_configure_args --enable-qt-peer"
6834 fi
6835 if test "$use_x_awt" != yes; then
6836 ac_configure_args="$ac_configure_args --without-escher"
6837 else
6838 # We need this as escher is disabled by default in classpath.
6839 if test "$use_escher" != true; then
6840 as_fn_error "Please supply an absolute path to the Escher library" "$LINENO" 5
6841 else
6842 ac_configure_args="$ac_configure_args --with-escher=$with_escher"
6843 fi
6844 fi
6845 if test "x$BUILD_GJDOC" = xno; then
6846 ac_configure_args="$ac_configure_args --disable-gjdoc"
6847 fi
6848 # -Werror causes unavoidable problems in code using alsa.
6849 ac_configure_args="$ac_configure_args --disable-regen-headers"
6850 ac_configure_args="$ac_configure_args --disable-Werror"
6851
6852 # Only use libltdl for non-newlib builds.
6853 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
6854 case $enable_ltdl_convenience in
6855 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
6856 "") enable_ltdl_convenience=yes
6857 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
6858 esac
6859 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
6860 LTDLINCL='-I${top_srcdir}/''libltdl'
6861 # For backwards non-gettext consistent compatibility...
6862 INCLTDL="$LTDLINCL"
6863
6864 enable_dlopen=yes
6865
6866
6867
6868 DIRLTDL=libltdl
6869
6870 $as_echo "#define USE_LTDL 1" >>confdefs.h
6871
6872 # Sigh. Libtool's macro doesn't do the right thing.
6873 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
6874 # FIXME: this is a hack.
6875 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
6876 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
6877 fi
6878
6879
6880
6881 case `pwd` in
6882 *\ * | *\ *)
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6884 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6885 esac
6886
6887
6888
6889 macro_version='2.2.7a'
6890 macro_revision='1.3134'
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904 ltmain="$ac_aux_dir/ltmain.sh"
6905
6906 # Backslashify metacharacters that are still active within
6907 # double-quoted strings.
6908 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6909
6910 # Same as above, but do not quote variable references.
6911 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6912
6913 # Sed substitution to delay expansion of an escaped shell variable in a
6914 # double_quote_subst'ed string.
6915 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6916
6917 # Sed substitution to delay expansion of an escaped single quote.
6918 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6919
6920 # Sed substitution to avoid accidental globbing in evaled expressions
6921 no_glob_subst='s/\*/\\\*/g'
6922
6923 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6924 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6925 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6926
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6928 $as_echo_n "checking how to print strings... " >&6; }
6929 # Test print first, because it will be a builtin if present.
6930 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6931 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6932 ECHO='print -r --'
6933 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6934 ECHO='printf %s\n'
6935 else
6936 # Use this function as a fallback that always works.
6937 func_fallback_echo ()
6938 {
6939 eval 'cat <<_LTECHO_EOF
6940 $1
6941 _LTECHO_EOF'
6942 }
6943 ECHO='func_fallback_echo'
6944 fi
6945
6946 # func_echo_all arg...
6947 # Invoke $ECHO with all args, space-separated.
6948 func_echo_all ()
6949 {
6950 $ECHO ""
6951 }
6952
6953 case "$ECHO" in
6954 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6955 $as_echo "printf" >&6; } ;;
6956 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6957 $as_echo "print -r" >&6; } ;;
6958 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6959 $as_echo "cat" >&6; } ;;
6960 esac
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6976 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6977 if test "${ac_cv_path_SED+set}" = set; then :
6978 $as_echo_n "(cached) " >&6
6979 else
6980 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6981 for ac_i in 1 2 3 4 5 6 7; do
6982 ac_script="$ac_script$as_nl$ac_script"
6983 done
6984 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6985 { ac_script=; unset ac_script;}
6986 if test -z "$SED"; then
6987 ac_path_SED_found=false
6988 # Loop through the user's path and test for each of PROGNAME-LIST
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990 for as_dir in $PATH
6991 do
6992 IFS=$as_save_IFS
6993 test -z "$as_dir" && as_dir=.
6994 for ac_prog in sed gsed; do
6995 for ac_exec_ext in '' $ac_executable_extensions; do
6996 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6997 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6998 # Check for GNU ac_path_SED and select it if it is found.
6999 # Check for GNU $ac_path_SED
7000 case `"$ac_path_SED" --version 2>&1` in
7001 *GNU*)
7002 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7003 *)
7004 ac_count=0
7005 $as_echo_n 0123456789 >"conftest.in"
7006 while :
7007 do
7008 cat "conftest.in" "conftest.in" >"conftest.tmp"
7009 mv "conftest.tmp" "conftest.in"
7010 cp "conftest.in" "conftest.nl"
7011 $as_echo '' >> "conftest.nl"
7012 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7013 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7014 as_fn_arith $ac_count + 1 && ac_count=$as_val
7015 if test $ac_count -gt ${ac_path_SED_max-0}; then
7016 # Best one so far, save it but keep looking for a better one
7017 ac_cv_path_SED="$ac_path_SED"
7018 ac_path_SED_max=$ac_count
7019 fi
7020 # 10*(2^10) chars as input seems more than enough
7021 test $ac_count -gt 10 && break
7022 done
7023 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7024 esac
7025
7026 $ac_path_SED_found && break 3
7027 done
7028 done
7029 done
7030 IFS=$as_save_IFS
7031 if test -z "$ac_cv_path_SED"; then
7032 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7033 fi
7034 else
7035 ac_cv_path_SED=$SED
7036 fi
7037
7038 fi
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7040 $as_echo "$ac_cv_path_SED" >&6; }
7041 SED="$ac_cv_path_SED"
7042 rm -f conftest.sed
7043
7044 test -z "$SED" && SED=sed
7045 Xsed="$SED -e 1s/^X//"
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7058 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7059 if test "${ac_cv_path_GREP+set}" = set; then :
7060 $as_echo_n "(cached) " >&6
7061 else
7062 if test -z "$GREP"; then
7063 ac_path_GREP_found=false
7064 # Loop through the user's path and test for each of PROGNAME-LIST
7065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7067 do
7068 IFS=$as_save_IFS
7069 test -z "$as_dir" && as_dir=.
7070 for ac_prog in grep ggrep; do
7071 for ac_exec_ext in '' $ac_executable_extensions; do
7072 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7073 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7074 # Check for GNU ac_path_GREP and select it if it is found.
7075 # Check for GNU $ac_path_GREP
7076 case `"$ac_path_GREP" --version 2>&1` in
7077 *GNU*)
7078 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7079 *)
7080 ac_count=0
7081 $as_echo_n 0123456789 >"conftest.in"
7082 while :
7083 do
7084 cat "conftest.in" "conftest.in" >"conftest.tmp"
7085 mv "conftest.tmp" "conftest.in"
7086 cp "conftest.in" "conftest.nl"
7087 $as_echo 'GREP' >> "conftest.nl"
7088 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7089 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7090 as_fn_arith $ac_count + 1 && ac_count=$as_val
7091 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7092 # Best one so far, save it but keep looking for a better one
7093 ac_cv_path_GREP="$ac_path_GREP"
7094 ac_path_GREP_max=$ac_count
7095 fi
7096 # 10*(2^10) chars as input seems more than enough
7097 test $ac_count -gt 10 && break
7098 done
7099 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7100 esac
7101
7102 $ac_path_GREP_found && break 3
7103 done
7104 done
7105 done
7106 IFS=$as_save_IFS
7107 if test -z "$ac_cv_path_GREP"; then
7108 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7109 fi
7110 else
7111 ac_cv_path_GREP=$GREP
7112 fi
7113
7114 fi
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7116 $as_echo "$ac_cv_path_GREP" >&6; }
7117 GREP="$ac_cv_path_GREP"
7118
7119
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7121 $as_echo_n "checking for egrep... " >&6; }
7122 if test "${ac_cv_path_EGREP+set}" = set; then :
7123 $as_echo_n "(cached) " >&6
7124 else
7125 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7126 then ac_cv_path_EGREP="$GREP -E"
7127 else
7128 if test -z "$EGREP"; then
7129 ac_path_EGREP_found=false
7130 # Loop through the user's path and test for each of PROGNAME-LIST
7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7133 do
7134 IFS=$as_save_IFS
7135 test -z "$as_dir" && as_dir=.
7136 for ac_prog in egrep; do
7137 for ac_exec_ext in '' $ac_executable_extensions; do
7138 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7139 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7140 # Check for GNU ac_path_EGREP and select it if it is found.
7141 # Check for GNU $ac_path_EGREP
7142 case `"$ac_path_EGREP" --version 2>&1` in
7143 *GNU*)
7144 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7145 *)
7146 ac_count=0
7147 $as_echo_n 0123456789 >"conftest.in"
7148 while :
7149 do
7150 cat "conftest.in" "conftest.in" >"conftest.tmp"
7151 mv "conftest.tmp" "conftest.in"
7152 cp "conftest.in" "conftest.nl"
7153 $as_echo 'EGREP' >> "conftest.nl"
7154 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7155 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7156 as_fn_arith $ac_count + 1 && ac_count=$as_val
7157 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7158 # Best one so far, save it but keep looking for a better one
7159 ac_cv_path_EGREP="$ac_path_EGREP"
7160 ac_path_EGREP_max=$ac_count
7161 fi
7162 # 10*(2^10) chars as input seems more than enough
7163 test $ac_count -gt 10 && break
7164 done
7165 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7166 esac
7167
7168 $ac_path_EGREP_found && break 3
7169 done
7170 done
7171 done
7172 IFS=$as_save_IFS
7173 if test -z "$ac_cv_path_EGREP"; then
7174 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7175 fi
7176 else
7177 ac_cv_path_EGREP=$EGREP
7178 fi
7179
7180 fi
7181 fi
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7183 $as_echo "$ac_cv_path_EGREP" >&6; }
7184 EGREP="$ac_cv_path_EGREP"
7185
7186
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7188 $as_echo_n "checking for fgrep... " >&6; }
7189 if test "${ac_cv_path_FGREP+set}" = set; then :
7190 $as_echo_n "(cached) " >&6
7191 else
7192 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7193 then ac_cv_path_FGREP="$GREP -F"
7194 else
7195 if test -z "$FGREP"; then
7196 ac_path_FGREP_found=false
7197 # Loop through the user's path and test for each of PROGNAME-LIST
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7200 do
7201 IFS=$as_save_IFS
7202 test -z "$as_dir" && as_dir=.
7203 for ac_prog in fgrep; do
7204 for ac_exec_ext in '' $ac_executable_extensions; do
7205 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7206 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7207 # Check for GNU ac_path_FGREP and select it if it is found.
7208 # Check for GNU $ac_path_FGREP
7209 case `"$ac_path_FGREP" --version 2>&1` in
7210 *GNU*)
7211 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7212 *)
7213 ac_count=0
7214 $as_echo_n 0123456789 >"conftest.in"
7215 while :
7216 do
7217 cat "conftest.in" "conftest.in" >"conftest.tmp"
7218 mv "conftest.tmp" "conftest.in"
7219 cp "conftest.in" "conftest.nl"
7220 $as_echo 'FGREP' >> "conftest.nl"
7221 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7222 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7223 as_fn_arith $ac_count + 1 && ac_count=$as_val
7224 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7225 # Best one so far, save it but keep looking for a better one
7226 ac_cv_path_FGREP="$ac_path_FGREP"
7227 ac_path_FGREP_max=$ac_count
7228 fi
7229 # 10*(2^10) chars as input seems more than enough
7230 test $ac_count -gt 10 && break
7231 done
7232 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7233 esac
7234
7235 $ac_path_FGREP_found && break 3
7236 done
7237 done
7238 done
7239 IFS=$as_save_IFS
7240 if test -z "$ac_cv_path_FGREP"; then
7241 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7242 fi
7243 else
7244 ac_cv_path_FGREP=$FGREP
7245 fi
7246
7247 fi
7248 fi
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7250 $as_echo "$ac_cv_path_FGREP" >&6; }
7251 FGREP="$ac_cv_path_FGREP"
7252
7253
7254 test -z "$GREP" && GREP=grep
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274 # Check whether --with-gnu-ld was given.
7275 if test "${with_gnu_ld+set}" = set; then :
7276 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7277 else
7278 with_gnu_ld=no
7279 fi
7280
7281 ac_prog=ld
7282 if test "$GCC" = yes; then
7283 # Check if gcc -print-prog-name=ld gives a path.
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7285 $as_echo_n "checking for ld used by $CC... " >&6; }
7286 case $host in
7287 *-*-mingw*)
7288 # gcc leaves a trailing carriage return which upsets mingw
7289 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7290 *)
7291 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7292 esac
7293 case $ac_prog in
7294 # Accept absolute paths.
7295 [\\/]* | ?:[\\/]*)
7296 re_direlt='/[^/][^/]*/\.\./'
7297 # Canonicalize the pathname of ld
7298 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7299 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7300 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7301 done
7302 test -z "$LD" && LD="$ac_prog"
7303 ;;
7304 "")
7305 # If it fails, then pretend we aren't using GCC.
7306 ac_prog=ld
7307 ;;
7308 *)
7309 # If it is relative, then search for the first ld in PATH.
7310 with_gnu_ld=unknown
7311 ;;
7312 esac
7313 elif test "$with_gnu_ld" = yes; then
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7315 $as_echo_n "checking for GNU ld... " >&6; }
7316 else
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7318 $as_echo_n "checking for non-GNU ld... " >&6; }
7319 fi
7320 if test "${lt_cv_path_LD+set}" = set; then :
7321 $as_echo_n "(cached) " >&6
7322 else
7323 if test -z "$LD"; then
7324 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7325 for ac_dir in $PATH; do
7326 IFS="$lt_save_ifs"
7327 test -z "$ac_dir" && ac_dir=.
7328 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7329 lt_cv_path_LD="$ac_dir/$ac_prog"
7330 # Check to see if the program is GNU ld. I'd rather use --version,
7331 # but apparently some variants of GNU ld only accept -v.
7332 # Break only if it was the GNU/non-GNU ld that we prefer.
7333 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7334 *GNU* | *'with BFD'*)
7335 test "$with_gnu_ld" != no && break
7336 ;;
7337 *)
7338 test "$with_gnu_ld" != yes && break
7339 ;;
7340 esac
7341 fi
7342 done
7343 IFS="$lt_save_ifs"
7344 else
7345 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7346 fi
7347 fi
7348
7349 LD="$lt_cv_path_LD"
7350 if test -n "$LD"; then
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7352 $as_echo "$LD" >&6; }
7353 else
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7355 $as_echo "no" >&6; }
7356 fi
7357 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7359 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7360 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7361 $as_echo_n "(cached) " >&6
7362 else
7363 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7364 case `$LD -v 2>&1 </dev/null` in
7365 *GNU* | *'with BFD'*)
7366 lt_cv_prog_gnu_ld=yes
7367 ;;
7368 *)
7369 lt_cv_prog_gnu_ld=no
7370 ;;
7371 esac
7372 fi
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7374 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7375 with_gnu_ld=$lt_cv_prog_gnu_ld
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7386 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7387 if test "${lt_cv_path_NM+set}" = set; then :
7388 $as_echo_n "(cached) " >&6
7389 else
7390 if test -n "$NM"; then
7391 # Let the user override the test.
7392 lt_cv_path_NM="$NM"
7393 else
7394 lt_nm_to_check="${ac_tool_prefix}nm"
7395 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7396 lt_nm_to_check="$lt_nm_to_check nm"
7397 fi
7398 for lt_tmp_nm in $lt_nm_to_check; do
7399 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7400 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7401 IFS="$lt_save_ifs"
7402 test -z "$ac_dir" && ac_dir=.
7403 tmp_nm="$ac_dir/$lt_tmp_nm"
7404 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7405 # Check to see if the nm accepts a BSD-compat flag.
7406 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7407 # nm: unknown option "B" ignored
7408 # Tru64's nm complains that /dev/null is an invalid object file
7409 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7410 */dev/null* | *'Invalid file or object type'*)
7411 lt_cv_path_NM="$tmp_nm -B"
7412 break
7413 ;;
7414 *)
7415 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7416 */dev/null*)
7417 lt_cv_path_NM="$tmp_nm -p"
7418 break
7419 ;;
7420 *)
7421 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7422 continue # so that we can try to find one that supports BSD flags
7423 ;;
7424 esac
7425 ;;
7426 esac
7427 fi
7428 done
7429 IFS="$lt_save_ifs"
7430 done
7431 : ${lt_cv_path_NM=no}
7432 fi
7433 fi
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7435 $as_echo "$lt_cv_path_NM" >&6; }
7436 if test "$lt_cv_path_NM" != "no"; then
7437 NM="$lt_cv_path_NM"
7438 else
7439 # Didn't find any BSD compatible name lister, look for dumpbin.
7440 if test -n "$DUMPBIN"; then :
7441 # Let the user override the test.
7442 else
7443 if test -n "$ac_tool_prefix"; then
7444 for ac_prog in dumpbin "link -dump"
7445 do
7446 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7447 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7449 $as_echo_n "checking for $ac_word... " >&6; }
7450 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7451 $as_echo_n "(cached) " >&6
7452 else
7453 if test -n "$DUMPBIN"; then
7454 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7455 else
7456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457 for as_dir in $PATH
7458 do
7459 IFS=$as_save_IFS
7460 test -z "$as_dir" && as_dir=.
7461 for ac_exec_ext in '' $ac_executable_extensions; do
7462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7463 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7465 break 2
7466 fi
7467 done
7468 done
7469 IFS=$as_save_IFS
7470
7471 fi
7472 fi
7473 DUMPBIN=$ac_cv_prog_DUMPBIN
7474 if test -n "$DUMPBIN"; then
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7476 $as_echo "$DUMPBIN" >&6; }
7477 else
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7479 $as_echo "no" >&6; }
7480 fi
7481
7482
7483 test -n "$DUMPBIN" && break
7484 done
7485 fi
7486 if test -z "$DUMPBIN"; then
7487 ac_ct_DUMPBIN=$DUMPBIN
7488 for ac_prog in dumpbin "link -dump"
7489 do
7490 # Extract the first word of "$ac_prog", so it can be a program name with args.
7491 set dummy $ac_prog; ac_word=$2
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7493 $as_echo_n "checking for $ac_word... " >&6; }
7494 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7495 $as_echo_n "(cached) " >&6
7496 else
7497 if test -n "$ac_ct_DUMPBIN"; then
7498 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7499 else
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501 for as_dir in $PATH
7502 do
7503 IFS=$as_save_IFS
7504 test -z "$as_dir" && as_dir=.
7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7507 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7509 break 2
7510 fi
7511 done
7512 done
7513 IFS=$as_save_IFS
7514
7515 fi
7516 fi
7517 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7518 if test -n "$ac_ct_DUMPBIN"; then
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7520 $as_echo "$ac_ct_DUMPBIN" >&6; }
7521 else
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7523 $as_echo "no" >&6; }
7524 fi
7525
7526
7527 test -n "$ac_ct_DUMPBIN" && break
7528 done
7529
7530 if test "x$ac_ct_DUMPBIN" = x; then
7531 DUMPBIN=":"
7532 else
7533 case $cross_compiling:$ac_tool_warned in
7534 yes:)
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7537 ac_tool_warned=yes ;;
7538 esac
7539 DUMPBIN=$ac_ct_DUMPBIN
7540 fi
7541 fi
7542
7543 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7544 *COFF*)
7545 DUMPBIN="$DUMPBIN -symbols"
7546 ;;
7547 *)
7548 DUMPBIN=:
7549 ;;
7550 esac
7551 fi
7552
7553 if test "$DUMPBIN" != ":"; then
7554 NM="$DUMPBIN"
7555 fi
7556 fi
7557 test -z "$NM" && NM=nm
7558
7559
7560
7561
7562
7563
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7565 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7566 if test "${lt_cv_nm_interface+set}" = set; then :
7567 $as_echo_n "(cached) " >&6
7568 else
7569 lt_cv_nm_interface="BSD nm"
7570 echo "int some_variable = 0;" > conftest.$ac_ext
7571 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7572 (eval "$ac_compile" 2>conftest.err)
7573 cat conftest.err >&5
7574 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7575 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7576 cat conftest.err >&5
7577 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7578 cat conftest.out >&5
7579 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7580 lt_cv_nm_interface="MS dumpbin"
7581 fi
7582 rm -f conftest*
7583 fi
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7585 $as_echo "$lt_cv_nm_interface" >&6; }
7586
7587 # find the maximum length of command line arguments
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7589 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7590 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7591 $as_echo_n "(cached) " >&6
7592 else
7593 i=0
7594 teststring="ABCD"
7595
7596 case $build_os in
7597 msdosdjgpp*)
7598 # On DJGPP, this test can blow up pretty badly due to problems in libc
7599 # (any single argument exceeding 2000 bytes causes a buffer overrun
7600 # during glob expansion). Even if it were fixed, the result of this
7601 # check would be larger than it should be.
7602 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7603 ;;
7604
7605 gnu*)
7606 # Under GNU Hurd, this test is not required because there is
7607 # no limit to the length of command line arguments.
7608 # Libtool will interpret -1 as no limit whatsoever
7609 lt_cv_sys_max_cmd_len=-1;
7610 ;;
7611
7612 cygwin* | mingw* | cegcc*)
7613 # On Win9x/ME, this test blows up -- it succeeds, but takes
7614 # about 5 minutes as the teststring grows exponentially.
7615 # Worse, since 9x/ME are not pre-emptively multitasking,
7616 # you end up with a "frozen" computer, even though with patience
7617 # the test eventually succeeds (with a max line length of 256k).
7618 # Instead, let's just punt: use the minimum linelength reported by
7619 # all of the supported platforms: 8192 (on NT/2K/XP).
7620 lt_cv_sys_max_cmd_len=8192;
7621 ;;
7622
7623 mint*)
7624 # On MiNT this can take a long time and run out of memory.
7625 lt_cv_sys_max_cmd_len=8192;
7626 ;;
7627
7628 amigaos*)
7629 # On AmigaOS with pdksh, this test takes hours, literally.
7630 # So we just punt and use a minimum line length of 8192.
7631 lt_cv_sys_max_cmd_len=8192;
7632 ;;
7633
7634 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7635 # This has been around since 386BSD, at least. Likely further.
7636 if test -x /sbin/sysctl; then
7637 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7638 elif test -x /usr/sbin/sysctl; then
7639 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7640 else
7641 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7642 fi
7643 # And add a safety zone
7644 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7645 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7646 ;;
7647
7648 interix*)
7649 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7650 lt_cv_sys_max_cmd_len=196608
7651 ;;
7652
7653 osf*)
7654 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7655 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7656 # nice to cause kernel panics so lets avoid the loop below.
7657 # First set a reasonable default.
7658 lt_cv_sys_max_cmd_len=16384
7659 #
7660 if test -x /sbin/sysconfig; then
7661 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7662 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7663 esac
7664 fi
7665 ;;
7666 sco3.2v5*)
7667 lt_cv_sys_max_cmd_len=102400
7668 ;;
7669 sysv5* | sco5v6* | sysv4.2uw2*)
7670 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7671 if test -n "$kargmax"; then
7672 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7673 else
7674 lt_cv_sys_max_cmd_len=32768
7675 fi
7676 ;;
7677 *)
7678 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7679 if test -n "$lt_cv_sys_max_cmd_len"; then
7680 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7681 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7682 else
7683 # Make teststring a little bigger before we do anything with it.
7684 # a 1K string should be a reasonable start.
7685 for i in 1 2 3 4 5 6 7 8 ; do
7686 teststring=$teststring$teststring
7687 done
7688 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7689 # If test is not a shell built-in, we'll probably end up computing a
7690 # maximum length that is only half of the actual maximum length, but
7691 # we can't tell.
7692 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7693 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7694 test $i != 17 # 1/2 MB should be enough
7695 do
7696 i=`expr $i + 1`
7697 teststring=$teststring$teststring
7698 done
7699 # Only check the string length outside the loop.
7700 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7701 teststring=
7702 # Add a significant safety factor because C++ compilers can tack on
7703 # massive amounts of additional arguments before passing them to the
7704 # linker. It appears as though 1/2 is a usable value.
7705 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7706 fi
7707 ;;
7708 esac
7709
7710 fi
7711
7712 if test -n $lt_cv_sys_max_cmd_len ; then
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7714 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7715 else
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7717 $as_echo "none" >&6; }
7718 fi
7719 max_cmd_len=$lt_cv_sys_max_cmd_len
7720
7721
7722
7723
7724
7725
7726 : ${CP="cp -f"}
7727 : ${MV="mv -f"}
7728 : ${RM="rm -f"}
7729
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7731 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7732 # Try some XSI features
7733 xsi_shell=no
7734 ( _lt_dummy="a/b/c"
7735 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7736 = c,a/b,, \
7737 && eval 'test $(( 1 + 1 )) -eq 2 \
7738 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7739 && xsi_shell=yes
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7741 $as_echo "$xsi_shell" >&6; }
7742
7743
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7745 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7746 lt_shell_append=no
7747 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7748 >/dev/null 2>&1 \
7749 && lt_shell_append=yes
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7751 $as_echo "$lt_shell_append" >&6; }
7752
7753
7754 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7755 lt_unset=unset
7756 else
7757 lt_unset=false
7758 fi
7759
7760
7761
7762
7763
7764 # test EBCDIC or ASCII
7765 case `echo X|tr X '\101'` in
7766 A) # ASCII based system
7767 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7768 lt_SP2NL='tr \040 \012'
7769 lt_NL2SP='tr \015\012 \040\040'
7770 ;;
7771 *) # EBCDIC based system
7772 lt_SP2NL='tr \100 \n'
7773 lt_NL2SP='tr \r\n \100\100'
7774 ;;
7775 esac
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7786 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7787 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7788 $as_echo_n "(cached) " >&6
7789 else
7790 lt_cv_ld_reload_flag='-r'
7791 fi
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7793 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7794 reload_flag=$lt_cv_ld_reload_flag
7795 case $reload_flag in
7796 "" | " "*) ;;
7797 *) reload_flag=" $reload_flag" ;;
7798 esac
7799 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7800 case $host_os in
7801 darwin*)
7802 if test "$GCC" = yes; then
7803 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7804 else
7805 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7806 fi
7807 ;;
7808 esac
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818 if test -n "$ac_tool_prefix"; then
7819 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7820 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7822 $as_echo_n "checking for $ac_word... " >&6; }
7823 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7824 $as_echo_n "(cached) " >&6
7825 else
7826 if test -n "$OBJDUMP"; then
7827 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7828 else
7829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7830 for as_dir in $PATH
7831 do
7832 IFS=$as_save_IFS
7833 test -z "$as_dir" && as_dir=.
7834 for ac_exec_ext in '' $ac_executable_extensions; do
7835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7836 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7838 break 2
7839 fi
7840 done
7841 done
7842 IFS=$as_save_IFS
7843
7844 fi
7845 fi
7846 OBJDUMP=$ac_cv_prog_OBJDUMP
7847 if test -n "$OBJDUMP"; then
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7849 $as_echo "$OBJDUMP" >&6; }
7850 else
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852 $as_echo "no" >&6; }
7853 fi
7854
7855
7856 fi
7857 if test -z "$ac_cv_prog_OBJDUMP"; then
7858 ac_ct_OBJDUMP=$OBJDUMP
7859 # Extract the first word of "objdump", so it can be a program name with args.
7860 set dummy objdump; ac_word=$2
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7862 $as_echo_n "checking for $ac_word... " >&6; }
7863 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7864 $as_echo_n "(cached) " >&6
7865 else
7866 if test -n "$ac_ct_OBJDUMP"; then
7867 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7868 else
7869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870 for as_dir in $PATH
7871 do
7872 IFS=$as_save_IFS
7873 test -z "$as_dir" && as_dir=.
7874 for ac_exec_ext in '' $ac_executable_extensions; do
7875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7876 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7878 break 2
7879 fi
7880 done
7881 done
7882 IFS=$as_save_IFS
7883
7884 fi
7885 fi
7886 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7887 if test -n "$ac_ct_OBJDUMP"; then
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7889 $as_echo "$ac_ct_OBJDUMP" >&6; }
7890 else
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7892 $as_echo "no" >&6; }
7893 fi
7894
7895 if test "x$ac_ct_OBJDUMP" = x; then
7896 OBJDUMP="false"
7897 else
7898 case $cross_compiling:$ac_tool_warned in
7899 yes:)
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7902 ac_tool_warned=yes ;;
7903 esac
7904 OBJDUMP=$ac_ct_OBJDUMP
7905 fi
7906 else
7907 OBJDUMP="$ac_cv_prog_OBJDUMP"
7908 fi
7909
7910 test -z "$OBJDUMP" && OBJDUMP=objdump
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7921 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7922 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7923 $as_echo_n "(cached) " >&6
7924 else
7925 lt_cv_file_magic_cmd='$MAGIC_CMD'
7926 lt_cv_file_magic_test_file=
7927 lt_cv_deplibs_check_method='unknown'
7928 # Need to set the preceding variable on all platforms that support
7929 # interlibrary dependencies.
7930 # 'none' -- dependencies not supported.
7931 # `unknown' -- same as none, but documents that we really don't know.
7932 # 'pass_all' -- all dependencies passed with no checks.
7933 # 'test_compile' -- check by making test program.
7934 # 'file_magic [[regex]]' -- check by looking for files in library path
7935 # which responds to the $file_magic_cmd with a given extended regex.
7936 # If you have `file' or equivalent on your system and you're not sure
7937 # whether `pass_all' will *always* work, you probably want this one.
7938
7939 case $host_os in
7940 aix[4-9]*)
7941 lt_cv_deplibs_check_method=pass_all
7942 ;;
7943
7944 beos*)
7945 lt_cv_deplibs_check_method=pass_all
7946 ;;
7947
7948 bsdi[45]*)
7949 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7950 lt_cv_file_magic_cmd='/usr/bin/file -L'
7951 lt_cv_file_magic_test_file=/shlib/libc.so
7952 ;;
7953
7954 cygwin*)
7955 # func_win32_libid is a shell function defined in ltmain.sh
7956 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7957 lt_cv_file_magic_cmd='func_win32_libid'
7958 ;;
7959
7960 mingw* | pw32*)
7961 # Base MSYS/MinGW do not provide the 'file' command needed by
7962 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7963 # unless we find 'file', for example because we are cross-compiling.
7964 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7965 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7966 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7967 lt_cv_file_magic_cmd='func_win32_libid'
7968 else
7969 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7970 lt_cv_file_magic_cmd='$OBJDUMP -f'
7971 fi
7972 ;;
7973
7974 cegcc*)
7975 # use the weaker test based on 'objdump'. See mingw*.
7976 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7977 lt_cv_file_magic_cmd='$OBJDUMP -f'
7978 ;;
7979
7980 darwin* | rhapsody*)
7981 lt_cv_deplibs_check_method=pass_all
7982 ;;
7983
7984 freebsd* | dragonfly*)
7985 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7986 case $host_cpu in
7987 i*86 )
7988 # Not sure whether the presence of OpenBSD here was a mistake.
7989 # Let's accept both of them until this is cleared up.
7990 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7991 lt_cv_file_magic_cmd=/usr/bin/file
7992 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7993 ;;
7994 esac
7995 else
7996 lt_cv_deplibs_check_method=pass_all
7997 fi
7998 ;;
7999
8000 gnu*)
8001 lt_cv_deplibs_check_method=pass_all
8002 ;;
8003
8004 haiku*)
8005 lt_cv_deplibs_check_method=pass_all
8006 ;;
8007
8008 hpux10.20* | hpux11*)
8009 lt_cv_file_magic_cmd=/usr/bin/file
8010 case $host_cpu in
8011 ia64*)
8012 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8013 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8014 ;;
8015 hppa*64*)
8016 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]'
8017 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8018 ;;
8019 *)
8020 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8021 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8022 ;;
8023 esac
8024 ;;
8025
8026 interix[3-9]*)
8027 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8028 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8029 ;;
8030
8031 irix5* | irix6* | nonstopux*)
8032 case $LD in
8033 *-32|*"-32 ") libmagic=32-bit;;
8034 *-n32|*"-n32 ") libmagic=N32;;
8035 *-64|*"-64 ") libmagic=64-bit;;
8036 *) libmagic=never-match;;
8037 esac
8038 lt_cv_deplibs_check_method=pass_all
8039 ;;
8040
8041 # This must be Linux ELF.
8042 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8043 lt_cv_deplibs_check_method=pass_all
8044 ;;
8045
8046 netbsd*)
8047 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8048 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8049 else
8050 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8051 fi
8052 ;;
8053
8054 newos6*)
8055 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8056 lt_cv_file_magic_cmd=/usr/bin/file
8057 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8058 ;;
8059
8060 *nto* | *qnx*)
8061 lt_cv_deplibs_check_method=pass_all
8062 ;;
8063
8064 openbsd*)
8065 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8066 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8067 else
8068 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8069 fi
8070 ;;
8071
8072 osf3* | osf4* | osf5*)
8073 lt_cv_deplibs_check_method=pass_all
8074 ;;
8075
8076 rdos*)
8077 lt_cv_deplibs_check_method=pass_all
8078 ;;
8079
8080 solaris*)
8081 lt_cv_deplibs_check_method=pass_all
8082 ;;
8083
8084 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8085 lt_cv_deplibs_check_method=pass_all
8086 ;;
8087
8088 sysv4 | sysv4.3*)
8089 case $host_vendor in
8090 motorola)
8091 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]'
8092 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8093 ;;
8094 ncr)
8095 lt_cv_deplibs_check_method=pass_all
8096 ;;
8097 sequent)
8098 lt_cv_file_magic_cmd='/bin/file'
8099 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8100 ;;
8101 sni)
8102 lt_cv_file_magic_cmd='/bin/file'
8103 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8104 lt_cv_file_magic_test_file=/lib/libc.so
8105 ;;
8106 siemens)
8107 lt_cv_deplibs_check_method=pass_all
8108 ;;
8109 pc)
8110 lt_cv_deplibs_check_method=pass_all
8111 ;;
8112 esac
8113 ;;
8114
8115 tpf*)
8116 lt_cv_deplibs_check_method=pass_all
8117 ;;
8118 esac
8119
8120 fi
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8122 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8123 file_magic_cmd=$lt_cv_file_magic_cmd
8124 deplibs_check_method=$lt_cv_deplibs_check_method
8125 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138 if test -n "$ac_tool_prefix"; then
8139 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8140 set dummy ${ac_tool_prefix}ar; ac_word=$2
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8142 $as_echo_n "checking for $ac_word... " >&6; }
8143 if test "${ac_cv_prog_AR+set}" = set; then :
8144 $as_echo_n "(cached) " >&6
8145 else
8146 if test -n "$AR"; then
8147 ac_cv_prog_AR="$AR" # Let the user override the test.
8148 else
8149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150 for as_dir in $PATH
8151 do
8152 IFS=$as_save_IFS
8153 test -z "$as_dir" && as_dir=.
8154 for ac_exec_ext in '' $ac_executable_extensions; do
8155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8156 ac_cv_prog_AR="${ac_tool_prefix}ar"
8157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8158 break 2
8159 fi
8160 done
8161 done
8162 IFS=$as_save_IFS
8163
8164 fi
8165 fi
8166 AR=$ac_cv_prog_AR
8167 if test -n "$AR"; then
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8169 $as_echo "$AR" >&6; }
8170 else
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8172 $as_echo "no" >&6; }
8173 fi
8174
8175
8176 fi
8177 if test -z "$ac_cv_prog_AR"; then
8178 ac_ct_AR=$AR
8179 # Extract the first word of "ar", so it can be a program name with args.
8180 set dummy ar; ac_word=$2
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8182 $as_echo_n "checking for $ac_word... " >&6; }
8183 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8184 $as_echo_n "(cached) " >&6
8185 else
8186 if test -n "$ac_ct_AR"; then
8187 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8188 else
8189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190 for as_dir in $PATH
8191 do
8192 IFS=$as_save_IFS
8193 test -z "$as_dir" && as_dir=.
8194 for ac_exec_ext in '' $ac_executable_extensions; do
8195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8196 ac_cv_prog_ac_ct_AR="ar"
8197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8198 break 2
8199 fi
8200 done
8201 done
8202 IFS=$as_save_IFS
8203
8204 fi
8205 fi
8206 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8207 if test -n "$ac_ct_AR"; then
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8209 $as_echo "$ac_ct_AR" >&6; }
8210 else
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8212 $as_echo "no" >&6; }
8213 fi
8214
8215 if test "x$ac_ct_AR" = x; then
8216 AR="false"
8217 else
8218 case $cross_compiling:$ac_tool_warned in
8219 yes:)
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8222 ac_tool_warned=yes ;;
8223 esac
8224 AR=$ac_ct_AR
8225 fi
8226 else
8227 AR="$ac_cv_prog_AR"
8228 fi
8229
8230 test -z "$AR" && AR=ar
8231 test -z "$AR_FLAGS" && AR_FLAGS=cru
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243 if test -n "$ac_tool_prefix"; then
8244 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8245 set dummy ${ac_tool_prefix}strip; ac_word=$2
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8247 $as_echo_n "checking for $ac_word... " >&6; }
8248 if test "${ac_cv_prog_STRIP+set}" = set; then :
8249 $as_echo_n "(cached) " >&6
8250 else
8251 if test -n "$STRIP"; then
8252 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8253 else
8254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8255 for as_dir in $PATH
8256 do
8257 IFS=$as_save_IFS
8258 test -z "$as_dir" && as_dir=.
8259 for ac_exec_ext in '' $ac_executable_extensions; do
8260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8261 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8263 break 2
8264 fi
8265 done
8266 done
8267 IFS=$as_save_IFS
8268
8269 fi
8270 fi
8271 STRIP=$ac_cv_prog_STRIP
8272 if test -n "$STRIP"; then
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8274 $as_echo "$STRIP" >&6; }
8275 else
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277 $as_echo "no" >&6; }
8278 fi
8279
8280
8281 fi
8282 if test -z "$ac_cv_prog_STRIP"; then
8283 ac_ct_STRIP=$STRIP
8284 # Extract the first word of "strip", so it can be a program name with args.
8285 set dummy strip; ac_word=$2
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8287 $as_echo_n "checking for $ac_word... " >&6; }
8288 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8289 $as_echo_n "(cached) " >&6
8290 else
8291 if test -n "$ac_ct_STRIP"; then
8292 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8293 else
8294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8295 for as_dir in $PATH
8296 do
8297 IFS=$as_save_IFS
8298 test -z "$as_dir" && as_dir=.
8299 for ac_exec_ext in '' $ac_executable_extensions; do
8300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8301 ac_cv_prog_ac_ct_STRIP="strip"
8302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8303 break 2
8304 fi
8305 done
8306 done
8307 IFS=$as_save_IFS
8308
8309 fi
8310 fi
8311 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8312 if test -n "$ac_ct_STRIP"; then
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8314 $as_echo "$ac_ct_STRIP" >&6; }
8315 else
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8317 $as_echo "no" >&6; }
8318 fi
8319
8320 if test "x$ac_ct_STRIP" = x; then
8321 STRIP=":"
8322 else
8323 case $cross_compiling:$ac_tool_warned in
8324 yes:)
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8327 ac_tool_warned=yes ;;
8328 esac
8329 STRIP=$ac_ct_STRIP
8330 fi
8331 else
8332 STRIP="$ac_cv_prog_STRIP"
8333 fi
8334
8335 test -z "$STRIP" && STRIP=:
8336
8337
8338
8339
8340
8341
8342 if test -n "$ac_tool_prefix"; then
8343 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8344 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8346 $as_echo_n "checking for $ac_word... " >&6; }
8347 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8348 $as_echo_n "(cached) " >&6
8349 else
8350 if test -n "$RANLIB"; then
8351 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8352 else
8353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8354 for as_dir in $PATH
8355 do
8356 IFS=$as_save_IFS
8357 test -z "$as_dir" && as_dir=.
8358 for ac_exec_ext in '' $ac_executable_extensions; do
8359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8360 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8362 break 2
8363 fi
8364 done
8365 done
8366 IFS=$as_save_IFS
8367
8368 fi
8369 fi
8370 RANLIB=$ac_cv_prog_RANLIB
8371 if test -n "$RANLIB"; then
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8373 $as_echo "$RANLIB" >&6; }
8374 else
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376 $as_echo "no" >&6; }
8377 fi
8378
8379
8380 fi
8381 if test -z "$ac_cv_prog_RANLIB"; then
8382 ac_ct_RANLIB=$RANLIB
8383 # Extract the first word of "ranlib", so it can be a program name with args.
8384 set dummy ranlib; ac_word=$2
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8386 $as_echo_n "checking for $ac_word... " >&6; }
8387 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8388 $as_echo_n "(cached) " >&6
8389 else
8390 if test -n "$ac_ct_RANLIB"; then
8391 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8392 else
8393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8394 for as_dir in $PATH
8395 do
8396 IFS=$as_save_IFS
8397 test -z "$as_dir" && as_dir=.
8398 for ac_exec_ext in '' $ac_executable_extensions; do
8399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8400 ac_cv_prog_ac_ct_RANLIB="ranlib"
8401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8402 break 2
8403 fi
8404 done
8405 done
8406 IFS=$as_save_IFS
8407
8408 fi
8409 fi
8410 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8411 if test -n "$ac_ct_RANLIB"; then
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8413 $as_echo "$ac_ct_RANLIB" >&6; }
8414 else
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8416 $as_echo "no" >&6; }
8417 fi
8418
8419 if test "x$ac_ct_RANLIB" = x; then
8420 RANLIB=":"
8421 else
8422 case $cross_compiling:$ac_tool_warned in
8423 yes:)
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8426 ac_tool_warned=yes ;;
8427 esac
8428 RANLIB=$ac_ct_RANLIB
8429 fi
8430 else
8431 RANLIB="$ac_cv_prog_RANLIB"
8432 fi
8433
8434 test -z "$RANLIB" && RANLIB=:
8435
8436
8437
8438
8439
8440
8441 # Determine commands to create old-style static archives.
8442 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8443 old_postinstall_cmds='chmod 644 $oldlib'
8444 old_postuninstall_cmds=
8445
8446 if test -n "$RANLIB"; then
8447 case $host_os in
8448 openbsd*)
8449 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8450 ;;
8451 *)
8452 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8453 ;;
8454 esac
8455 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8456 fi
8457
8458 case $host_os in
8459 darwin*)
8460 lock_old_archive_extraction=yes ;;
8461 *)
8462 lock_old_archive_extraction=no ;;
8463 esac
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503 # If no C compiler was specified, use CC.
8504 LTCC=${LTCC-"$CC"}
8505
8506 # If no C compiler flags were specified, use CFLAGS.
8507 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8508
8509 # Allow CC to be a program name with arguments.
8510 compiler=$CC
8511
8512
8513 # Check for command to grab the raw symbol name followed by C symbol from nm.
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8515 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8516 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8517 $as_echo_n "(cached) " >&6
8518 else
8519
8520 # These are sane defaults that work on at least a few old systems.
8521 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8522
8523 # Character class describing NM global symbol codes.
8524 symcode='[BCDEGRST]'
8525
8526 # Regexp to match symbols that can be accessed directly from C.
8527 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8528
8529 # Define system-specific variables.
8530 case $host_os in
8531 aix*)
8532 symcode='[BCDT]'
8533 ;;
8534 cygwin* | mingw* | pw32* | cegcc*)
8535 symcode='[ABCDGISTW]'
8536 ;;
8537 hpux*)
8538 if test "$host_cpu" = ia64; then
8539 symcode='[ABCDEGRST]'
8540 fi
8541 ;;
8542 irix* | nonstopux*)
8543 symcode='[BCDEGRST]'
8544 ;;
8545 osf*)
8546 symcode='[BCDEGQRST]'
8547 ;;
8548 solaris*)
8549 symcode='[BDRT]'
8550 ;;
8551 sco3.2v5*)
8552 symcode='[DT]'
8553 ;;
8554 sysv4.2uw2*)
8555 symcode='[DT]'
8556 ;;
8557 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8558 symcode='[ABDT]'
8559 ;;
8560 sysv4)
8561 symcode='[DFNSTU]'
8562 ;;
8563 esac
8564
8565 # If we're using GNU nm, then use its standard symbol codes.
8566 case `$NM -V 2>&1` in
8567 *GNU* | *'with BFD'*)
8568 symcode='[ABCDGIRSTW]' ;;
8569 esac
8570
8571 # Transform an extracted symbol line into a proper C declaration.
8572 # Some systems (esp. on ia64) link data and code symbols differently,
8573 # so use this general approach.
8574 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8575
8576 # Transform an extracted symbol line into symbol name and symbol address
8577 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8578 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'"
8579
8580 # Handle CRLF in mingw tool chain
8581 opt_cr=
8582 case $build_os in
8583 mingw*)
8584 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8585 ;;
8586 esac
8587
8588 # Try without a prefix underscore, then with it.
8589 for ac_symprfx in "" "_"; do
8590
8591 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8592 symxfrm="\\1 $ac_symprfx\\2 \\2"
8593
8594 # Write the raw and C identifiers.
8595 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8596 # Fake it for dumpbin and say T for any non-static function
8597 # and D for any global variable.
8598 # Also find C++ and __fastcall symbols from MSVC++,
8599 # which start with @ or ?.
8600 lt_cv_sys_global_symbol_pipe="$AWK '"\
8601 " {last_section=section; section=\$ 3};"\
8602 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8603 " \$ 0!~/External *\|/{next};"\
8604 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8605 " {if(hide[section]) next};"\
8606 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8607 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8608 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8609 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8610 " ' prfx=^$ac_symprfx"
8611 else
8612 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8613 fi
8614
8615 # Check to see that the pipe works correctly.
8616 pipe_works=no
8617
8618 rm -f conftest*
8619 cat > conftest.$ac_ext <<_LT_EOF
8620 #ifdef __cplusplus
8621 extern "C" {
8622 #endif
8623 char nm_test_var;
8624 void nm_test_func(void);
8625 void nm_test_func(void){}
8626 #ifdef __cplusplus
8627 }
8628 #endif
8629 int main(){nm_test_var='a';nm_test_func();return(0);}
8630 _LT_EOF
8631
8632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8633 (eval $ac_compile) 2>&5
8634 ac_status=$?
8635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8636 test $ac_status = 0; }; then
8637 # Now try to grab the symbols.
8638 nlist=conftest.nm
8639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8640 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8641 ac_status=$?
8642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8643 test $ac_status = 0; } && test -s "$nlist"; then
8644 # Try sorting and uniquifying the output.
8645 if sort "$nlist" | uniq > "$nlist"T; then
8646 mv -f "$nlist"T "$nlist"
8647 else
8648 rm -f "$nlist"T
8649 fi
8650
8651 # Make sure that we snagged all the symbols we need.
8652 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8653 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8654 cat <<_LT_EOF > conftest.$ac_ext
8655 #ifdef __cplusplus
8656 extern "C" {
8657 #endif
8658
8659 _LT_EOF
8660 # Now generate the symbol file.
8661 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8662
8663 cat <<_LT_EOF >> conftest.$ac_ext
8664
8665 /* The mapping between symbol names and symbols. */
8666 const struct {
8667 const char *name;
8668 void *address;
8669 }
8670 lt__PROGRAM__LTX_preloaded_symbols[] =
8671 {
8672 { "@PROGRAM@", (void *) 0 },
8673 _LT_EOF
8674 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8675 cat <<\_LT_EOF >> conftest.$ac_ext
8676 {0, (void *) 0}
8677 };
8678
8679 /* This works around a problem in FreeBSD linker */
8680 #ifdef FREEBSD_WORKAROUND
8681 static const void *lt_preloaded_setup() {
8682 return lt__PROGRAM__LTX_preloaded_symbols;
8683 }
8684 #endif
8685
8686 #ifdef __cplusplus
8687 }
8688 #endif
8689 _LT_EOF
8690 # Now try linking the two files.
8691 mv conftest.$ac_objext conftstm.$ac_objext
8692 lt_save_LIBS="$LIBS"
8693 lt_save_CFLAGS="$CFLAGS"
8694 LIBS="conftstm.$ac_objext"
8695 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8697 (eval $ac_link) 2>&5
8698 ac_status=$?
8699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8700 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8701 pipe_works=yes
8702 fi
8703 LIBS="$lt_save_LIBS"
8704 CFLAGS="$lt_save_CFLAGS"
8705 else
8706 echo "cannot find nm_test_func in $nlist" >&5
8707 fi
8708 else
8709 echo "cannot find nm_test_var in $nlist" >&5
8710 fi
8711 else
8712 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8713 fi
8714 else
8715 echo "$progname: failed program was:" >&5
8716 cat conftest.$ac_ext >&5
8717 fi
8718 rm -rf conftest* conftst*
8719
8720 # Do not use the global_symbol_pipe unless it works.
8721 if test "$pipe_works" = yes; then
8722 break
8723 else
8724 lt_cv_sys_global_symbol_pipe=
8725 fi
8726 done
8727
8728 fi
8729
8730 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8731 lt_cv_sys_global_symbol_to_cdecl=
8732 fi
8733 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8735 $as_echo "failed" >&6; }
8736 else
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8738 $as_echo "ok" >&6; }
8739 fi
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763 # Check whether --enable-libtool-lock was given.
8764 if test "${enable_libtool_lock+set}" = set; then :
8765 enableval=$enable_libtool_lock;
8766 fi
8767
8768 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8769
8770 # Some flags need to be propagated to the compiler or linker for good
8771 # libtool support.
8772 case $host in
8773 ia64-*-hpux*)
8774 # Find out which ABI we are using.
8775 echo 'int i;' > conftest.$ac_ext
8776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8777 (eval $ac_compile) 2>&5
8778 ac_status=$?
8779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8780 test $ac_status = 0; }; then
8781 case `/usr/bin/file conftest.$ac_objext` in
8782 *ELF-32*)
8783 HPUX_IA64_MODE="32"
8784 ;;
8785 *ELF-64*)
8786 HPUX_IA64_MODE="64"
8787 ;;
8788 esac
8789 fi
8790 rm -rf conftest*
8791 ;;
8792 *-*-irix6*)
8793 # Find out which ABI we are using.
8794 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8796 (eval $ac_compile) 2>&5
8797 ac_status=$?
8798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8799 test $ac_status = 0; }; then
8800 if test "$lt_cv_prog_gnu_ld" = yes; then
8801 case `/usr/bin/file conftest.$ac_objext` in
8802 *32-bit*)
8803 LD="${LD-ld} -melf32bsmip"
8804 ;;
8805 *N32*)
8806 LD="${LD-ld} -melf32bmipn32"
8807 ;;
8808 *64-bit*)
8809 LD="${LD-ld} -melf64bmip"
8810 ;;
8811 esac
8812 else
8813 case `/usr/bin/file conftest.$ac_objext` in
8814 *32-bit*)
8815 LD="${LD-ld} -32"
8816 ;;
8817 *N32*)
8818 LD="${LD-ld} -n32"
8819 ;;
8820 *64-bit*)
8821 LD="${LD-ld} -64"
8822 ;;
8823 esac
8824 fi
8825 fi
8826 rm -rf conftest*
8827 ;;
8828
8829 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8830 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8831 # Find out which ABI we are using.
8832 echo 'int i;' > conftest.$ac_ext
8833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8834 (eval $ac_compile) 2>&5
8835 ac_status=$?
8836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8837 test $ac_status = 0; }; then
8838 case `/usr/bin/file conftest.o` in
8839 *32-bit*)
8840 case $host in
8841 x86_64-*kfreebsd*-gnu)
8842 LD="${LD-ld} -m elf_i386_fbsd"
8843 ;;
8844 x86_64-*linux*)
8845 case `/usr/bin/file conftest.o` in
8846 *x86-64*)
8847 LD="${LD-ld} -m elf32_x86_64"
8848 ;;
8849 *)
8850 LD="${LD-ld} -m elf_i386"
8851 ;;
8852 esac
8853 ;;
8854 ppc64-*linux*|powerpc64-*linux*)
8855 LD="${LD-ld} -m elf32ppclinux"
8856 ;;
8857 s390x-*linux*)
8858 LD="${LD-ld} -m elf_s390"
8859 ;;
8860 sparc64-*linux*)
8861 LD="${LD-ld} -m elf32_sparc"
8862 ;;
8863 esac
8864 ;;
8865 *64-bit*)
8866 case $host in
8867 x86_64-*kfreebsd*-gnu)
8868 LD="${LD-ld} -m elf_x86_64_fbsd"
8869 ;;
8870 x86_64-*linux*)
8871 LD="${LD-ld} -m elf_x86_64"
8872 ;;
8873 ppc*-*linux*|powerpc*-*linux*)
8874 LD="${LD-ld} -m elf64ppc"
8875 ;;
8876 s390*-*linux*|s390*-*tpf*)
8877 LD="${LD-ld} -m elf64_s390"
8878 ;;
8879 sparc*-*linux*)
8880 LD="${LD-ld} -m elf64_sparc"
8881 ;;
8882 esac
8883 ;;
8884 esac
8885 fi
8886 rm -rf conftest*
8887 ;;
8888
8889 *-*-sco3.2v5*)
8890 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8891 SAVE_CFLAGS="$CFLAGS"
8892 CFLAGS="$CFLAGS -belf"
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8894 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8895 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8896 $as_echo_n "(cached) " >&6
8897 else
8898 ac_ext=c
8899 ac_cpp='$CPP $CPPFLAGS'
8900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8903
8904 if test x$gcc_no_link = xyes; then
8905 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8906 fi
8907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8908 /* end confdefs.h. */
8909
8910 int
8911 main ()
8912 {
8913
8914 ;
8915 return 0;
8916 }
8917 _ACEOF
8918 if ac_fn_c_try_link "$LINENO"; then :
8919 lt_cv_cc_needs_belf=yes
8920 else
8921 lt_cv_cc_needs_belf=no
8922 fi
8923 rm -f core conftest.err conftest.$ac_objext \
8924 conftest$ac_exeext conftest.$ac_ext
8925 ac_ext=c
8926 ac_cpp='$CPP $CPPFLAGS'
8927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8930
8931 fi
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8933 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8934 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8935 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8936 CFLAGS="$SAVE_CFLAGS"
8937 fi
8938 ;;
8939 sparc*-*solaris*)
8940 # Find out which ABI we are using.
8941 echo 'int i;' > conftest.$ac_ext
8942 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8943 (eval $ac_compile) 2>&5
8944 ac_status=$?
8945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8946 test $ac_status = 0; }; then
8947 case `/usr/bin/file conftest.o` in
8948 *64-bit*)
8949 case $lt_cv_prog_gnu_ld in
8950 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8951 *)
8952 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8953 LD="${LD-ld} -64"
8954 fi
8955 ;;
8956 esac
8957 ;;
8958 esac
8959 fi
8960 rm -rf conftest*
8961 ;;
8962 esac
8963
8964 need_locks="$enable_libtool_lock"
8965
8966
8967 case $host_os in
8968 rhapsody* | darwin*)
8969 if test -n "$ac_tool_prefix"; then
8970 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8971 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8973 $as_echo_n "checking for $ac_word... " >&6; }
8974 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8975 $as_echo_n "(cached) " >&6
8976 else
8977 if test -n "$DSYMUTIL"; then
8978 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8979 else
8980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8981 for as_dir in $PATH
8982 do
8983 IFS=$as_save_IFS
8984 test -z "$as_dir" && as_dir=.
8985 for ac_exec_ext in '' $ac_executable_extensions; do
8986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8987 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8989 break 2
8990 fi
8991 done
8992 done
8993 IFS=$as_save_IFS
8994
8995 fi
8996 fi
8997 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8998 if test -n "$DSYMUTIL"; then
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9000 $as_echo "$DSYMUTIL" >&6; }
9001 else
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9003 $as_echo "no" >&6; }
9004 fi
9005
9006
9007 fi
9008 if test -z "$ac_cv_prog_DSYMUTIL"; then
9009 ac_ct_DSYMUTIL=$DSYMUTIL
9010 # Extract the first word of "dsymutil", so it can be a program name with args.
9011 set dummy dsymutil; ac_word=$2
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9013 $as_echo_n "checking for $ac_word... " >&6; }
9014 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
9015 $as_echo_n "(cached) " >&6
9016 else
9017 if test -n "$ac_ct_DSYMUTIL"; then
9018 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9019 else
9020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9021 for as_dir in $PATH
9022 do
9023 IFS=$as_save_IFS
9024 test -z "$as_dir" && as_dir=.
9025 for ac_exec_ext in '' $ac_executable_extensions; do
9026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9027 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9029 break 2
9030 fi
9031 done
9032 done
9033 IFS=$as_save_IFS
9034
9035 fi
9036 fi
9037 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9038 if test -n "$ac_ct_DSYMUTIL"; then
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9040 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9041 else
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9043 $as_echo "no" >&6; }
9044 fi
9045
9046 if test "x$ac_ct_DSYMUTIL" = x; then
9047 DSYMUTIL=":"
9048 else
9049 case $cross_compiling:$ac_tool_warned in
9050 yes:)
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9053 ac_tool_warned=yes ;;
9054 esac
9055 DSYMUTIL=$ac_ct_DSYMUTIL
9056 fi
9057 else
9058 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9059 fi
9060
9061 if test -n "$ac_tool_prefix"; then
9062 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9063 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9065 $as_echo_n "checking for $ac_word... " >&6; }
9066 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
9067 $as_echo_n "(cached) " >&6
9068 else
9069 if test -n "$NMEDIT"; then
9070 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9071 else
9072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9073 for as_dir in $PATH
9074 do
9075 IFS=$as_save_IFS
9076 test -z "$as_dir" && as_dir=.
9077 for ac_exec_ext in '' $ac_executable_extensions; do
9078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9079 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9081 break 2
9082 fi
9083 done
9084 done
9085 IFS=$as_save_IFS
9086
9087 fi
9088 fi
9089 NMEDIT=$ac_cv_prog_NMEDIT
9090 if test -n "$NMEDIT"; then
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9092 $as_echo "$NMEDIT" >&6; }
9093 else
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9095 $as_echo "no" >&6; }
9096 fi
9097
9098
9099 fi
9100 if test -z "$ac_cv_prog_NMEDIT"; then
9101 ac_ct_NMEDIT=$NMEDIT
9102 # Extract the first word of "nmedit", so it can be a program name with args.
9103 set dummy nmedit; ac_word=$2
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9105 $as_echo_n "checking for $ac_word... " >&6; }
9106 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9107 $as_echo_n "(cached) " >&6
9108 else
9109 if test -n "$ac_ct_NMEDIT"; then
9110 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9111 else
9112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9113 for as_dir in $PATH
9114 do
9115 IFS=$as_save_IFS
9116 test -z "$as_dir" && as_dir=.
9117 for ac_exec_ext in '' $ac_executable_extensions; do
9118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9119 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9121 break 2
9122 fi
9123 done
9124 done
9125 IFS=$as_save_IFS
9126
9127 fi
9128 fi
9129 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9130 if test -n "$ac_ct_NMEDIT"; then
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9132 $as_echo "$ac_ct_NMEDIT" >&6; }
9133 else
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9135 $as_echo "no" >&6; }
9136 fi
9137
9138 if test "x$ac_ct_NMEDIT" = x; then
9139 NMEDIT=":"
9140 else
9141 case $cross_compiling:$ac_tool_warned in
9142 yes:)
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9145 ac_tool_warned=yes ;;
9146 esac
9147 NMEDIT=$ac_ct_NMEDIT
9148 fi
9149 else
9150 NMEDIT="$ac_cv_prog_NMEDIT"
9151 fi
9152
9153 if test -n "$ac_tool_prefix"; then
9154 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9155 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9157 $as_echo_n "checking for $ac_word... " >&6; }
9158 if test "${ac_cv_prog_LIPO+set}" = set; then :
9159 $as_echo_n "(cached) " >&6
9160 else
9161 if test -n "$LIPO"; then
9162 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9163 else
9164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9165 for as_dir in $PATH
9166 do
9167 IFS=$as_save_IFS
9168 test -z "$as_dir" && as_dir=.
9169 for ac_exec_ext in '' $ac_executable_extensions; do
9170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9171 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9173 break 2
9174 fi
9175 done
9176 done
9177 IFS=$as_save_IFS
9178
9179 fi
9180 fi
9181 LIPO=$ac_cv_prog_LIPO
9182 if test -n "$LIPO"; then
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9184 $as_echo "$LIPO" >&6; }
9185 else
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9187 $as_echo "no" >&6; }
9188 fi
9189
9190
9191 fi
9192 if test -z "$ac_cv_prog_LIPO"; then
9193 ac_ct_LIPO=$LIPO
9194 # Extract the first word of "lipo", so it can be a program name with args.
9195 set dummy lipo; ac_word=$2
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9197 $as_echo_n "checking for $ac_word... " >&6; }
9198 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9199 $as_echo_n "(cached) " >&6
9200 else
9201 if test -n "$ac_ct_LIPO"; then
9202 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9203 else
9204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9205 for as_dir in $PATH
9206 do
9207 IFS=$as_save_IFS
9208 test -z "$as_dir" && as_dir=.
9209 for ac_exec_ext in '' $ac_executable_extensions; do
9210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9211 ac_cv_prog_ac_ct_LIPO="lipo"
9212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9213 break 2
9214 fi
9215 done
9216 done
9217 IFS=$as_save_IFS
9218
9219 fi
9220 fi
9221 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9222 if test -n "$ac_ct_LIPO"; then
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9224 $as_echo "$ac_ct_LIPO" >&6; }
9225 else
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9227 $as_echo "no" >&6; }
9228 fi
9229
9230 if test "x$ac_ct_LIPO" = x; then
9231 LIPO=":"
9232 else
9233 case $cross_compiling:$ac_tool_warned in
9234 yes:)
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9237 ac_tool_warned=yes ;;
9238 esac
9239 LIPO=$ac_ct_LIPO
9240 fi
9241 else
9242 LIPO="$ac_cv_prog_LIPO"
9243 fi
9244
9245 if test -n "$ac_tool_prefix"; then
9246 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9247 set dummy ${ac_tool_prefix}otool; ac_word=$2
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9249 $as_echo_n "checking for $ac_word... " >&6; }
9250 if test "${ac_cv_prog_OTOOL+set}" = set; then :
9251 $as_echo_n "(cached) " >&6
9252 else
9253 if test -n "$OTOOL"; then
9254 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9255 else
9256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9257 for as_dir in $PATH
9258 do
9259 IFS=$as_save_IFS
9260 test -z "$as_dir" && as_dir=.
9261 for ac_exec_ext in '' $ac_executable_extensions; do
9262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9263 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9265 break 2
9266 fi
9267 done
9268 done
9269 IFS=$as_save_IFS
9270
9271 fi
9272 fi
9273 OTOOL=$ac_cv_prog_OTOOL
9274 if test -n "$OTOOL"; then
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9276 $as_echo "$OTOOL" >&6; }
9277 else
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9279 $as_echo "no" >&6; }
9280 fi
9281
9282
9283 fi
9284 if test -z "$ac_cv_prog_OTOOL"; then
9285 ac_ct_OTOOL=$OTOOL
9286 # Extract the first word of "otool", so it can be a program name with args.
9287 set dummy otool; ac_word=$2
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9289 $as_echo_n "checking for $ac_word... " >&6; }
9290 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9291 $as_echo_n "(cached) " >&6
9292 else
9293 if test -n "$ac_ct_OTOOL"; then
9294 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9295 else
9296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9297 for as_dir in $PATH
9298 do
9299 IFS=$as_save_IFS
9300 test -z "$as_dir" && as_dir=.
9301 for ac_exec_ext in '' $ac_executable_extensions; do
9302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9303 ac_cv_prog_ac_ct_OTOOL="otool"
9304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9305 break 2
9306 fi
9307 done
9308 done
9309 IFS=$as_save_IFS
9310
9311 fi
9312 fi
9313 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9314 if test -n "$ac_ct_OTOOL"; then
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9316 $as_echo "$ac_ct_OTOOL" >&6; }
9317 else
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9319 $as_echo "no" >&6; }
9320 fi
9321
9322 if test "x$ac_ct_OTOOL" = x; then
9323 OTOOL=":"
9324 else
9325 case $cross_compiling:$ac_tool_warned in
9326 yes:)
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9329 ac_tool_warned=yes ;;
9330 esac
9331 OTOOL=$ac_ct_OTOOL
9332 fi
9333 else
9334 OTOOL="$ac_cv_prog_OTOOL"
9335 fi
9336
9337 if test -n "$ac_tool_prefix"; then
9338 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9339 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9341 $as_echo_n "checking for $ac_word... " >&6; }
9342 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9343 $as_echo_n "(cached) " >&6
9344 else
9345 if test -n "$OTOOL64"; then
9346 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9347 else
9348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9349 for as_dir in $PATH
9350 do
9351 IFS=$as_save_IFS
9352 test -z "$as_dir" && as_dir=.
9353 for ac_exec_ext in '' $ac_executable_extensions; do
9354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9355 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9357 break 2
9358 fi
9359 done
9360 done
9361 IFS=$as_save_IFS
9362
9363 fi
9364 fi
9365 OTOOL64=$ac_cv_prog_OTOOL64
9366 if test -n "$OTOOL64"; then
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9368 $as_echo "$OTOOL64" >&6; }
9369 else
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9371 $as_echo "no" >&6; }
9372 fi
9373
9374
9375 fi
9376 if test -z "$ac_cv_prog_OTOOL64"; then
9377 ac_ct_OTOOL64=$OTOOL64
9378 # Extract the first word of "otool64", so it can be a program name with args.
9379 set dummy otool64; ac_word=$2
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9381 $as_echo_n "checking for $ac_word... " >&6; }
9382 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9383 $as_echo_n "(cached) " >&6
9384 else
9385 if test -n "$ac_ct_OTOOL64"; then
9386 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9387 else
9388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9389 for as_dir in $PATH
9390 do
9391 IFS=$as_save_IFS
9392 test -z "$as_dir" && as_dir=.
9393 for ac_exec_ext in '' $ac_executable_extensions; do
9394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9395 ac_cv_prog_ac_ct_OTOOL64="otool64"
9396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9397 break 2
9398 fi
9399 done
9400 done
9401 IFS=$as_save_IFS
9402
9403 fi
9404 fi
9405 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9406 if test -n "$ac_ct_OTOOL64"; then
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9408 $as_echo "$ac_ct_OTOOL64" >&6; }
9409 else
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9411 $as_echo "no" >&6; }
9412 fi
9413
9414 if test "x$ac_ct_OTOOL64" = x; then
9415 OTOOL64=":"
9416 else
9417 case $cross_compiling:$ac_tool_warned in
9418 yes:)
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9421 ac_tool_warned=yes ;;
9422 esac
9423 OTOOL64=$ac_ct_OTOOL64
9424 fi
9425 else
9426 OTOOL64="$ac_cv_prog_OTOOL64"
9427 fi
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9456 $as_echo_n "checking for -single_module linker flag... " >&6; }
9457 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9458 $as_echo_n "(cached) " >&6
9459 else
9460 lt_cv_apple_cc_single_mod=no
9461 if test -z "${LT_MULTI_MODULE}"; then
9462 # By default we will add the -single_module flag. You can override
9463 # by either setting the environment variable LT_MULTI_MODULE
9464 # non-empty at configure time, or by adding -multi_module to the
9465 # link flags.
9466 rm -rf libconftest.dylib*
9467 echo "int foo(void){return 1;}" > conftest.c
9468 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9469 -dynamiclib -Wl,-single_module conftest.c" >&5
9470 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9471 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9472 _lt_result=$?
9473 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9474 lt_cv_apple_cc_single_mod=yes
9475 else
9476 cat conftest.err >&5
9477 fi
9478 rm -rf libconftest.dylib*
9479 rm -f conftest.*
9480 fi
9481 fi
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9483 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9485 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9486 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9487 $as_echo_n "(cached) " >&6
9488 else
9489 lt_cv_ld_exported_symbols_list=no
9490 save_LDFLAGS=$LDFLAGS
9491 echo "_main" > conftest.sym
9492 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9493 if test x$gcc_no_link = xyes; then
9494 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9495 fi
9496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497 /* end confdefs.h. */
9498
9499 int
9500 main ()
9501 {
9502
9503 ;
9504 return 0;
9505 }
9506 _ACEOF
9507 if ac_fn_c_try_link "$LINENO"; then :
9508 lt_cv_ld_exported_symbols_list=yes
9509 else
9510 lt_cv_ld_exported_symbols_list=no
9511 fi
9512 rm -f core conftest.err conftest.$ac_objext \
9513 conftest$ac_exeext conftest.$ac_ext
9514 LDFLAGS="$save_LDFLAGS"
9515
9516 fi
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9518 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9520 $as_echo_n "checking for -force_load linker flag... " >&6; }
9521 if test "${lt_cv_ld_force_load+set}" = set; then :
9522 $as_echo_n "(cached) " >&6
9523 else
9524 lt_cv_ld_force_load=no
9525 cat > conftest.c << _LT_EOF
9526 int forced_loaded() { return 2;}
9527 _LT_EOF
9528 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9529 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9530 echo "$AR cru libconftest.a conftest.o" >&5
9531 $AR cru libconftest.a conftest.o 2>&5
9532 cat > conftest.c << _LT_EOF
9533 int main() { return 0;}
9534 _LT_EOF
9535 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9536 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9537 _lt_result=$?
9538 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9539 lt_cv_ld_force_load=yes
9540 else
9541 cat conftest.err >&5
9542 fi
9543 rm -f conftest.err libconftest.a conftest conftest.c
9544 rm -rf conftest.dSYM
9545
9546 fi
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9548 $as_echo "$lt_cv_ld_force_load" >&6; }
9549 case $host_os in
9550 rhapsody* | darwin1.[012])
9551 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9552 darwin1.*)
9553 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9554 darwin*) # darwin 5.x on
9555 # if running on 10.5 or later, the deployment target defaults
9556 # to the OS version, if on x86, and 10.4, the deployment
9557 # target defaults to 10.4. Don't you love it?
9558 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9559 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9560 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9561 10.[012]*)
9562 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9563 10.*)
9564 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9565 esac
9566 ;;
9567 esac
9568 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9569 _lt_dar_single_mod='$single_module'
9570 fi
9571 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9572 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9573 else
9574 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9575 fi
9576 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9577 _lt_dsymutil='~$DSYMUTIL $lib || :'
9578 else
9579 _lt_dsymutil=
9580 fi
9581 ;;
9582 esac
9583
9584 ac_ext=c
9585 ac_cpp='$CPP $CPPFLAGS'
9586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9590 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9591 # On Suns, sometimes $CPP names a directory.
9592 if test -n "$CPP" && test -d "$CPP"; then
9593 CPP=
9594 fi
9595 if test -z "$CPP"; then
9596 if test "${ac_cv_prog_CPP+set}" = set; then :
9597 $as_echo_n "(cached) " >&6
9598 else
9599 # Double quotes because CPP needs to be expanded
9600 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9601 do
9602 ac_preproc_ok=false
9603 for ac_c_preproc_warn_flag in '' yes
9604 do
9605 # Use a header file that comes with gcc, so configuring glibc
9606 # with a fresh cross-compiler works.
9607 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9608 # <limits.h> exists even on freestanding compilers.
9609 # On the NeXT, cc -E runs the code through the compiler's parser,
9610 # not just through cpp. "Syntax error" is here to catch this case.
9611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9612 /* end confdefs.h. */
9613 #ifdef __STDC__
9614 # include <limits.h>
9615 #else
9616 # include <assert.h>
9617 #endif
9618 Syntax error
9619 _ACEOF
9620 if ac_fn_c_try_cpp "$LINENO"; then :
9621
9622 else
9623 # Broken: fails on valid input.
9624 continue
9625 fi
9626 rm -f conftest.err conftest.$ac_ext
9627
9628 # OK, works on sane cases. Now check whether nonexistent headers
9629 # can be detected and how.
9630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9631 /* end confdefs.h. */
9632 #include <ac_nonexistent.h>
9633 _ACEOF
9634 if ac_fn_c_try_cpp "$LINENO"; then :
9635 # Broken: success on invalid input.
9636 continue
9637 else
9638 # Passes both tests.
9639 ac_preproc_ok=:
9640 break
9641 fi
9642 rm -f conftest.err conftest.$ac_ext
9643
9644 done
9645 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9646 rm -f conftest.err conftest.$ac_ext
9647 if $ac_preproc_ok; then :
9648 break
9649 fi
9650
9651 done
9652 ac_cv_prog_CPP=$CPP
9653
9654 fi
9655 CPP=$ac_cv_prog_CPP
9656 else
9657 ac_cv_prog_CPP=$CPP
9658 fi
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9660 $as_echo "$CPP" >&6; }
9661 ac_preproc_ok=false
9662 for ac_c_preproc_warn_flag in '' yes
9663 do
9664 # Use a header file that comes with gcc, so configuring glibc
9665 # with a fresh cross-compiler works.
9666 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9667 # <limits.h> exists even on freestanding compilers.
9668 # On the NeXT, cc -E runs the code through the compiler's parser,
9669 # not just through cpp. "Syntax error" is here to catch this case.
9670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9671 /* end confdefs.h. */
9672 #ifdef __STDC__
9673 # include <limits.h>
9674 #else
9675 # include <assert.h>
9676 #endif
9677 Syntax error
9678 _ACEOF
9679 if ac_fn_c_try_cpp "$LINENO"; then :
9680
9681 else
9682 # Broken: fails on valid input.
9683 continue
9684 fi
9685 rm -f conftest.err conftest.$ac_ext
9686
9687 # OK, works on sane cases. Now check whether nonexistent headers
9688 # can be detected and how.
9689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9690 /* end confdefs.h. */
9691 #include <ac_nonexistent.h>
9692 _ACEOF
9693 if ac_fn_c_try_cpp "$LINENO"; then :
9694 # Broken: success on invalid input.
9695 continue
9696 else
9697 # Passes both tests.
9698 ac_preproc_ok=:
9699 break
9700 fi
9701 rm -f conftest.err conftest.$ac_ext
9702
9703 done
9704 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9705 rm -f conftest.err conftest.$ac_ext
9706 if $ac_preproc_ok; then :
9707
9708 else
9709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9711 as_fn_error "C preprocessor \"$CPP\" fails sanity check
9712 See \`config.log' for more details." "$LINENO" 5; }
9713 fi
9714
9715 ac_ext=c
9716 ac_cpp='$CPP $CPPFLAGS'
9717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9720
9721
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9723 $as_echo_n "checking for ANSI C header files... " >&6; }
9724 if test "${ac_cv_header_stdc+set}" = set; then :
9725 $as_echo_n "(cached) " >&6
9726 else
9727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728 /* end confdefs.h. */
9729 #include <stdlib.h>
9730 #include <stdarg.h>
9731 #include <string.h>
9732 #include <float.h>
9733
9734 int
9735 main ()
9736 {
9737
9738 ;
9739 return 0;
9740 }
9741 _ACEOF
9742 if ac_fn_c_try_compile "$LINENO"; then :
9743 ac_cv_header_stdc=yes
9744 else
9745 ac_cv_header_stdc=no
9746 fi
9747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9748
9749 if test $ac_cv_header_stdc = yes; then
9750 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9752 /* end confdefs.h. */
9753 #include <string.h>
9754
9755 _ACEOF
9756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9757 $EGREP "memchr" >/dev/null 2>&1; then :
9758
9759 else
9760 ac_cv_header_stdc=no
9761 fi
9762 rm -f conftest*
9763
9764 fi
9765
9766 if test $ac_cv_header_stdc = yes; then
9767 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769 /* end confdefs.h. */
9770 #include <stdlib.h>
9771
9772 _ACEOF
9773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9774 $EGREP "free" >/dev/null 2>&1; then :
9775
9776 else
9777 ac_cv_header_stdc=no
9778 fi
9779 rm -f conftest*
9780
9781 fi
9782
9783 if test $ac_cv_header_stdc = yes; then
9784 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9785 if test "$cross_compiling" = yes; then :
9786 :
9787 else
9788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9789 /* end confdefs.h. */
9790 #include <ctype.h>
9791 #include <stdlib.h>
9792 #if ((' ' & 0x0FF) == 0x020)
9793 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9794 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9795 #else
9796 # define ISLOWER(c) \
9797 (('a' <= (c) && (c) <= 'i') \
9798 || ('j' <= (c) && (c) <= 'r') \
9799 || ('s' <= (c) && (c) <= 'z'))
9800 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9801 #endif
9802
9803 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9804 int
9805 main ()
9806 {
9807 int i;
9808 for (i = 0; i < 256; i++)
9809 if (XOR (islower (i), ISLOWER (i))
9810 || toupper (i) != TOUPPER (i))
9811 return 2;
9812 return 0;
9813 }
9814 _ACEOF
9815 if ac_fn_c_try_run "$LINENO"; then :
9816
9817 else
9818 ac_cv_header_stdc=no
9819 fi
9820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9821 conftest.$ac_objext conftest.beam conftest.$ac_ext
9822 fi
9823
9824 fi
9825 fi
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9827 $as_echo "$ac_cv_header_stdc" >&6; }
9828 if test $ac_cv_header_stdc = yes; then
9829
9830 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9831
9832 fi
9833
9834 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9835 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9836 inttypes.h stdint.h unistd.h
9837 do :
9838 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9839 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9840 "
9841 eval as_val=\$$as_ac_Header
9842 if test "x$as_val" = x""yes; then :
9843 cat >>confdefs.h <<_ACEOF
9844 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9845 _ACEOF
9846
9847 fi
9848
9849 done
9850
9851
9852 for ac_header in dlfcn.h
9853 do :
9854 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9855 "
9856 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9857 cat >>confdefs.h <<_ACEOF
9858 #define HAVE_DLFCN_H 1
9859 _ACEOF
9860
9861 fi
9862
9863 done
9864
9865
9866
9867
9868
9869
9870 # Set options
9871
9872
9873
9874
9875 enable_win32_dll=no
9876
9877
9878 # Check whether --enable-shared was given.
9879 if test "${enable_shared+set}" = set; then :
9880 enableval=$enable_shared; p=${PACKAGE-default}
9881 case $enableval in
9882 yes) enable_shared=yes ;;
9883 no) enable_shared=no ;;
9884 *)
9885 enable_shared=no
9886 # Look at the argument we got. We use all the common list separators.
9887 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9888 for pkg in $enableval; do
9889 IFS="$lt_save_ifs"
9890 if test "X$pkg" = "X$p"; then
9891 enable_shared=yes
9892 fi
9893 done
9894 IFS="$lt_save_ifs"
9895 ;;
9896 esac
9897 else
9898 enable_shared=yes
9899 fi
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909 # Check whether --enable-static was given.
9910 if test "${enable_static+set}" = set; then :
9911 enableval=$enable_static; p=${PACKAGE-default}
9912 case $enableval in
9913 yes) enable_static=yes ;;
9914 no) enable_static=no ;;
9915 *)
9916 enable_static=no
9917 # Look at the argument we got. We use all the common list separators.
9918 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9919 for pkg in $enableval; do
9920 IFS="$lt_save_ifs"
9921 if test "X$pkg" = "X$p"; then
9922 enable_static=yes
9923 fi
9924 done
9925 IFS="$lt_save_ifs"
9926 ;;
9927 esac
9928 else
9929 enable_static=yes
9930 fi
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941 # Check whether --with-pic was given.
9942 if test "${with_pic+set}" = set; then :
9943 withval=$with_pic; pic_mode="$withval"
9944 else
9945 pic_mode=default
9946 fi
9947
9948
9949 test -z "$pic_mode" && pic_mode=default
9950
9951
9952
9953
9954
9955
9956
9957 # Check whether --enable-fast-install was given.
9958 if test "${enable_fast_install+set}" = set; then :
9959 enableval=$enable_fast_install; p=${PACKAGE-default}
9960 case $enableval in
9961 yes) enable_fast_install=yes ;;
9962 no) enable_fast_install=no ;;
9963 *)
9964 enable_fast_install=no
9965 # Look at the argument we got. We use all the common list separators.
9966 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9967 for pkg in $enableval; do
9968 IFS="$lt_save_ifs"
9969 if test "X$pkg" = "X$p"; then
9970 enable_fast_install=yes
9971 fi
9972 done
9973 IFS="$lt_save_ifs"
9974 ;;
9975 esac
9976 else
9977 enable_fast_install=yes
9978 fi
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990 # This can be used to rebuild libtool when needed
9991 LIBTOOL_DEPS="$ltmain"
9992
9993 # Always use our own libtool.
9994 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021 test -z "$LN_S" && LN_S="ln -s"
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036 if test -n "${ZSH_VERSION+set}" ; then
10037 setopt NO_GLOB_SUBST
10038 fi
10039
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10041 $as_echo_n "checking for objdir... " >&6; }
10042 if test "${lt_cv_objdir+set}" = set; then :
10043 $as_echo_n "(cached) " >&6
10044 else
10045 rm -f .libs 2>/dev/null
10046 mkdir .libs 2>/dev/null
10047 if test -d .libs; then
10048 lt_cv_objdir=.libs
10049 else
10050 # MS-DOS does not allow filenames that begin with a dot.
10051 lt_cv_objdir=_libs
10052 fi
10053 rmdir .libs 2>/dev/null
10054 fi
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10056 $as_echo "$lt_cv_objdir" >&6; }
10057 objdir=$lt_cv_objdir
10058
10059
10060
10061
10062
10063 cat >>confdefs.h <<_ACEOF
10064 #define LT_OBJDIR "$lt_cv_objdir/"
10065 _ACEOF
10066
10067
10068
10069
10070 case $host_os in
10071 aix3*)
10072 # AIX sometimes has problems with the GCC collect2 program. For some
10073 # reason, if we set the COLLECT_NAMES environment variable, the problems
10074 # vanish in a puff of smoke.
10075 if test "X${COLLECT_NAMES+set}" != Xset; then
10076 COLLECT_NAMES=
10077 export COLLECT_NAMES
10078 fi
10079 ;;
10080 esac
10081
10082 # Global variables:
10083 ofile=libtool
10084 can_build_shared=yes
10085
10086 # All known linkers require a `.a' archive for static linking (except MSVC,
10087 # which needs '.lib').
10088 libext=a
10089
10090 with_gnu_ld="$lt_cv_prog_gnu_ld"
10091
10092 old_CC="$CC"
10093 old_CFLAGS="$CFLAGS"
10094
10095 # Set sane defaults for various variables
10096 test -z "$CC" && CC=cc
10097 test -z "$LTCC" && LTCC=$CC
10098 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10099 test -z "$LD" && LD=ld
10100 test -z "$ac_objext" && ac_objext=o
10101
10102 for cc_temp in $compiler""; do
10103 case $cc_temp in
10104 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10105 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10106 \-*) ;;
10107 *) break;;
10108 esac
10109 done
10110 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10111
10112
10113 # Only perform the check for file, if the check method requires it
10114 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10115 case $deplibs_check_method in
10116 file_magic*)
10117 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10119 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10120 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10121 $as_echo_n "(cached) " >&6
10122 else
10123 case $MAGIC_CMD in
10124 [\\/*] | ?:[\\/]*)
10125 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10126 ;;
10127 *)
10128 lt_save_MAGIC_CMD="$MAGIC_CMD"
10129 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10130 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10131 for ac_dir in $ac_dummy; do
10132 IFS="$lt_save_ifs"
10133 test -z "$ac_dir" && ac_dir=.
10134 if test -f $ac_dir/${ac_tool_prefix}file; then
10135 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10136 if test -n "$file_magic_test_file"; then
10137 case $deplibs_check_method in
10138 "file_magic "*)
10139 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10140 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10141 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10142 $EGREP "$file_magic_regex" > /dev/null; then
10143 :
10144 else
10145 cat <<_LT_EOF 1>&2
10146
10147 *** Warning: the command libtool uses to detect shared libraries,
10148 *** $file_magic_cmd, produces output that libtool cannot recognize.
10149 *** The result is that libtool may fail to recognize shared libraries
10150 *** as such. This will affect the creation of libtool libraries that
10151 *** depend on shared libraries, but programs linked with such libtool
10152 *** libraries will work regardless of this problem. Nevertheless, you
10153 *** may want to report the problem to your system manager and/or to
10154 *** bug-libtool@gnu.org
10155
10156 _LT_EOF
10157 fi ;;
10158 esac
10159 fi
10160 break
10161 fi
10162 done
10163 IFS="$lt_save_ifs"
10164 MAGIC_CMD="$lt_save_MAGIC_CMD"
10165 ;;
10166 esac
10167 fi
10168
10169 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10170 if test -n "$MAGIC_CMD"; then
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10172 $as_echo "$MAGIC_CMD" >&6; }
10173 else
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10175 $as_echo "no" >&6; }
10176 fi
10177
10178
10179
10180
10181
10182 if test -z "$lt_cv_path_MAGIC_CMD"; then
10183 if test -n "$ac_tool_prefix"; then
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10185 $as_echo_n "checking for file... " >&6; }
10186 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10187 $as_echo_n "(cached) " >&6
10188 else
10189 case $MAGIC_CMD in
10190 [\\/*] | ?:[\\/]*)
10191 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10192 ;;
10193 *)
10194 lt_save_MAGIC_CMD="$MAGIC_CMD"
10195 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10196 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10197 for ac_dir in $ac_dummy; do
10198 IFS="$lt_save_ifs"
10199 test -z "$ac_dir" && ac_dir=.
10200 if test -f $ac_dir/file; then
10201 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10202 if test -n "$file_magic_test_file"; then
10203 case $deplibs_check_method in
10204 "file_magic "*)
10205 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10206 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10207 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10208 $EGREP "$file_magic_regex" > /dev/null; then
10209 :
10210 else
10211 cat <<_LT_EOF 1>&2
10212
10213 *** Warning: the command libtool uses to detect shared libraries,
10214 *** $file_magic_cmd, produces output that libtool cannot recognize.
10215 *** The result is that libtool may fail to recognize shared libraries
10216 *** as such. This will affect the creation of libtool libraries that
10217 *** depend on shared libraries, but programs linked with such libtool
10218 *** libraries will work regardless of this problem. Nevertheless, you
10219 *** may want to report the problem to your system manager and/or to
10220 *** bug-libtool@gnu.org
10221
10222 _LT_EOF
10223 fi ;;
10224 esac
10225 fi
10226 break
10227 fi
10228 done
10229 IFS="$lt_save_ifs"
10230 MAGIC_CMD="$lt_save_MAGIC_CMD"
10231 ;;
10232 esac
10233 fi
10234
10235 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10236 if test -n "$MAGIC_CMD"; then
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10238 $as_echo "$MAGIC_CMD" >&6; }
10239 else
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10241 $as_echo "no" >&6; }
10242 fi
10243
10244
10245 else
10246 MAGIC_CMD=:
10247 fi
10248 fi
10249
10250 fi
10251 ;;
10252 esac
10253
10254 # Use C for the default configuration in the libtool script
10255
10256 lt_save_CC="$CC"
10257 ac_ext=c
10258 ac_cpp='$CPP $CPPFLAGS'
10259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10262
10263
10264 # Source file extension for C test sources.
10265 ac_ext=c
10266
10267 # Object file extension for compiled C test sources.
10268 objext=o
10269 objext=$objext
10270
10271 # Code to be used in simple compile tests
10272 lt_simple_compile_test_code="int some_variable = 0;"
10273
10274 # Code to be used in simple link tests
10275 lt_simple_link_test_code='int main(){return(0);}'
10276
10277
10278
10279
10280
10281
10282
10283 # If no C compiler was specified, use CC.
10284 LTCC=${LTCC-"$CC"}
10285
10286 # If no C compiler flags were specified, use CFLAGS.
10287 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10288
10289 # Allow CC to be a program name with arguments.
10290 compiler=$CC
10291
10292 # Save the default compiler, since it gets overwritten when the other
10293 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10294 compiler_DEFAULT=$CC
10295
10296 # save warnings/boilerplate of simple test code
10297 ac_outfile=conftest.$ac_objext
10298 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10299 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10300 _lt_compiler_boilerplate=`cat conftest.err`
10301 $RM conftest*
10302
10303 ac_outfile=conftest.$ac_objext
10304 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10305 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10306 _lt_linker_boilerplate=`cat conftest.err`
10307 $RM -r conftest*
10308
10309
10310 ## CAVEAT EMPTOR:
10311 ## There is no encapsulation within the following macros, do not change
10312 ## the running order or otherwise move them around unless you know exactly
10313 ## what you are doing...
10314 if test -n "$compiler"; then
10315
10316 lt_prog_compiler_no_builtin_flag=
10317
10318 if test "$GCC" = yes; then
10319 case $cc_basename in
10320 nvcc*)
10321 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10322 *)
10323 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10324 esac
10325
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10327 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10328 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10329 $as_echo_n "(cached) " >&6
10330 else
10331 lt_cv_prog_compiler_rtti_exceptions=no
10332 ac_outfile=conftest.$ac_objext
10333 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10334 lt_compiler_flag="-fno-rtti -fno-exceptions"
10335 # Insert the option either (1) after the last *FLAGS variable, or
10336 # (2) before a word containing "conftest.", or (3) at the end.
10337 # Note that $ac_compile itself does not contain backslashes and begins
10338 # with a dollar sign (not a hyphen), so the echo should work correctly.
10339 # The option is referenced via a variable to avoid confusing sed.
10340 lt_compile=`echo "$ac_compile" | $SED \
10341 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10342 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10343 -e 's:$: $lt_compiler_flag:'`
10344 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10345 (eval "$lt_compile" 2>conftest.err)
10346 ac_status=$?
10347 cat conftest.err >&5
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 if (exit $ac_status) && test -s "$ac_outfile"; then
10350 # The compiler can only warn and ignore the option if not recognized
10351 # So say no if there are warnings other than the usual output.
10352 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10353 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10354 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10355 lt_cv_prog_compiler_rtti_exceptions=yes
10356 fi
10357 fi
10358 $RM conftest*
10359
10360 fi
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10362 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10363
10364 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10365 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10366 else
10367 :
10368 fi
10369
10370 fi
10371
10372
10373
10374
10375
10376
10377 lt_prog_compiler_wl=
10378 lt_prog_compiler_pic=
10379 lt_prog_compiler_static=
10380
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10382 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10383
10384 if test "$GCC" = yes; then
10385 lt_prog_compiler_wl='-Wl,'
10386 lt_prog_compiler_static='-static'
10387
10388 case $host_os in
10389 aix*)
10390 # All AIX code is PIC.
10391 if test "$host_cpu" = ia64; then
10392 # AIX 5 now supports IA64 processor
10393 lt_prog_compiler_static='-Bstatic'
10394 fi
10395 ;;
10396
10397 amigaos*)
10398 case $host_cpu in
10399 powerpc)
10400 # see comment about AmigaOS4 .so support
10401 lt_prog_compiler_pic='-fPIC'
10402 ;;
10403 m68k)
10404 # FIXME: we need at least 68020 code to build shared libraries, but
10405 # adding the `-m68020' flag to GCC prevents building anything better,
10406 # like `-m68040'.
10407 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10408 ;;
10409 esac
10410 ;;
10411
10412 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10413 # PIC is the default for these OSes.
10414 ;;
10415
10416 mingw* | cygwin* | pw32* | os2* | cegcc*)
10417 # This hack is so that the source file can tell whether it is being
10418 # built for inclusion in a dll (and should export symbols for example).
10419 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10420 # (--disable-auto-import) libraries
10421 lt_prog_compiler_pic='-DDLL_EXPORT'
10422 ;;
10423
10424 darwin* | rhapsody*)
10425 # PIC is the default on this platform
10426 # Common symbols not allowed in MH_DYLIB files
10427 lt_prog_compiler_pic='-fno-common'
10428 ;;
10429
10430 haiku*)
10431 # PIC is the default for Haiku.
10432 # The "-static" flag exists, but is broken.
10433 lt_prog_compiler_static=
10434 ;;
10435
10436 hpux*)
10437 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10438 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10439 # sets the default TLS model and affects inlining.
10440 case $host_cpu in
10441 hppa*64*)
10442 # +Z the default
10443 ;;
10444 *)
10445 lt_prog_compiler_pic='-fPIC'
10446 ;;
10447 esac
10448 ;;
10449
10450 interix[3-9]*)
10451 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10452 # Instead, we relocate shared libraries at runtime.
10453 ;;
10454
10455 msdosdjgpp*)
10456 # Just because we use GCC doesn't mean we suddenly get shared libraries
10457 # on systems that don't support them.
10458 lt_prog_compiler_can_build_shared=no
10459 enable_shared=no
10460 ;;
10461
10462 *nto* | *qnx*)
10463 # QNX uses GNU C++, but need to define -shared option too, otherwise
10464 # it will coredump.
10465 lt_prog_compiler_pic='-fPIC -shared'
10466 ;;
10467
10468 sysv4*MP*)
10469 if test -d /usr/nec; then
10470 lt_prog_compiler_pic=-Kconform_pic
10471 fi
10472 ;;
10473
10474 *)
10475 lt_prog_compiler_pic='-fPIC'
10476 ;;
10477 esac
10478
10479 case $cc_basename in
10480 nvcc*) # Cuda Compiler Driver 2.2
10481 lt_prog_compiler_wl='-Xlinker '
10482 lt_prog_compiler_pic='-Xcompiler -fPIC'
10483 ;;
10484 esac
10485 else
10486 # PORTME Check for flag to pass linker flags through the system compiler.
10487 case $host_os in
10488 aix*)
10489 lt_prog_compiler_wl='-Wl,'
10490 if test "$host_cpu" = ia64; then
10491 # AIX 5 now supports IA64 processor
10492 lt_prog_compiler_static='-Bstatic'
10493 else
10494 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10495 fi
10496 ;;
10497
10498 mingw* | cygwin* | pw32* | os2* | cegcc*)
10499 # This hack is so that the source file can tell whether it is being
10500 # built for inclusion in a dll (and should export symbols for example).
10501 lt_prog_compiler_pic='-DDLL_EXPORT'
10502 ;;
10503
10504 hpux9* | hpux10* | hpux11*)
10505 lt_prog_compiler_wl='-Wl,'
10506 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10507 # not for PA HP-UX.
10508 case $host_cpu in
10509 hppa*64*|ia64*)
10510 # +Z the default
10511 ;;
10512 *)
10513 lt_prog_compiler_pic='+Z'
10514 ;;
10515 esac
10516 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10517 lt_prog_compiler_static='${wl}-a ${wl}archive'
10518 ;;
10519
10520 irix5* | irix6* | nonstopux*)
10521 lt_prog_compiler_wl='-Wl,'
10522 # PIC (with -KPIC) is the default.
10523 lt_prog_compiler_static='-non_shared'
10524 ;;
10525
10526 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10527 case $cc_basename in
10528 # old Intel for x86_64 which still supported -KPIC.
10529 ecc*)
10530 lt_prog_compiler_wl='-Wl,'
10531 lt_prog_compiler_pic='-KPIC'
10532 lt_prog_compiler_static='-static'
10533 ;;
10534 # icc used to be incompatible with GCC.
10535 # ICC 10 doesn't accept -KPIC any more.
10536 icc* | ifort*)
10537 lt_prog_compiler_wl='-Wl,'
10538 lt_prog_compiler_pic='-fPIC'
10539 lt_prog_compiler_static='-static'
10540 ;;
10541 # Lahey Fortran 8.1.
10542 lf95*)
10543 lt_prog_compiler_wl='-Wl,'
10544 lt_prog_compiler_pic='--shared'
10545 lt_prog_compiler_static='--static'
10546 ;;
10547 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10548 # Portland Group compilers (*not* the Pentium gcc compiler,
10549 # which looks to be a dead project)
10550 lt_prog_compiler_wl='-Wl,'
10551 lt_prog_compiler_pic='-fpic'
10552 lt_prog_compiler_static='-Bstatic'
10553 ;;
10554 ccc*)
10555 lt_prog_compiler_wl='-Wl,'
10556 # All Alpha code is PIC.
10557 lt_prog_compiler_static='-non_shared'
10558 ;;
10559 xl* | bgxl* | bgf* | mpixl*)
10560 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10561 lt_prog_compiler_wl='-Wl,'
10562 lt_prog_compiler_pic='-qpic'
10563 lt_prog_compiler_static='-qstaticlink'
10564 ;;
10565 *)
10566 case `$CC -V 2>&1 | sed 5q` in
10567 *Sun\ F* | *Sun*Fortran*)
10568 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10569 lt_prog_compiler_pic='-KPIC'
10570 lt_prog_compiler_static='-Bstatic'
10571 lt_prog_compiler_wl=''
10572 ;;
10573 *Sun\ C*)
10574 # Sun C 5.9
10575 lt_prog_compiler_pic='-KPIC'
10576 lt_prog_compiler_static='-Bstatic'
10577 lt_prog_compiler_wl='-Wl,'
10578 ;;
10579 esac
10580 ;;
10581 esac
10582 ;;
10583
10584 newsos6)
10585 lt_prog_compiler_pic='-KPIC'
10586 lt_prog_compiler_static='-Bstatic'
10587 ;;
10588
10589 *nto* | *qnx*)
10590 # QNX uses GNU C++, but need to define -shared option too, otherwise
10591 # it will coredump.
10592 lt_prog_compiler_pic='-fPIC -shared'
10593 ;;
10594
10595 osf3* | osf4* | osf5*)
10596 lt_prog_compiler_wl='-Wl,'
10597 # All OSF/1 code is PIC.
10598 lt_prog_compiler_static='-non_shared'
10599 ;;
10600
10601 rdos*)
10602 lt_prog_compiler_static='-non_shared'
10603 ;;
10604
10605 solaris*)
10606 lt_prog_compiler_pic='-KPIC'
10607 lt_prog_compiler_static='-Bstatic'
10608 case $cc_basename in
10609 f77* | f90* | f95*)
10610 lt_prog_compiler_wl='-Qoption ld ';;
10611 *)
10612 lt_prog_compiler_wl='-Wl,';;
10613 esac
10614 ;;
10615
10616 sunos4*)
10617 lt_prog_compiler_wl='-Qoption ld '
10618 lt_prog_compiler_pic='-PIC'
10619 lt_prog_compiler_static='-Bstatic'
10620 ;;
10621
10622 sysv4 | sysv4.2uw2* | sysv4.3*)
10623 lt_prog_compiler_wl='-Wl,'
10624 lt_prog_compiler_pic='-KPIC'
10625 lt_prog_compiler_static='-Bstatic'
10626 ;;
10627
10628 sysv4*MP*)
10629 if test -d /usr/nec ;then
10630 lt_prog_compiler_pic='-Kconform_pic'
10631 lt_prog_compiler_static='-Bstatic'
10632 fi
10633 ;;
10634
10635 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10636 lt_prog_compiler_wl='-Wl,'
10637 lt_prog_compiler_pic='-KPIC'
10638 lt_prog_compiler_static='-Bstatic'
10639 ;;
10640
10641 unicos*)
10642 lt_prog_compiler_wl='-Wl,'
10643 lt_prog_compiler_can_build_shared=no
10644 ;;
10645
10646 uts4*)
10647 lt_prog_compiler_pic='-pic'
10648 lt_prog_compiler_static='-Bstatic'
10649 ;;
10650
10651 *)
10652 lt_prog_compiler_can_build_shared=no
10653 ;;
10654 esac
10655 fi
10656
10657 case $host_os in
10658 # For platforms which do not support PIC, -DPIC is meaningless:
10659 *djgpp*)
10660 lt_prog_compiler_pic=
10661 ;;
10662 *)
10663 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10664 ;;
10665 esac
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10667 $as_echo "$lt_prog_compiler_pic" >&6; }
10668
10669
10670
10671
10672
10673
10674 #
10675 # Check to make sure the PIC flag actually works.
10676 #
10677 if test -n "$lt_prog_compiler_pic"; then
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10679 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10680 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10681 $as_echo_n "(cached) " >&6
10682 else
10683 lt_cv_prog_compiler_pic_works=no
10684 ac_outfile=conftest.$ac_objext
10685 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10686 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10687 # Insert the option either (1) after the last *FLAGS variable, or
10688 # (2) before a word containing "conftest.", or (3) at the end.
10689 # Note that $ac_compile itself does not contain backslashes and begins
10690 # with a dollar sign (not a hyphen), so the echo should work correctly.
10691 # The option is referenced via a variable to avoid confusing sed.
10692 lt_compile=`echo "$ac_compile" | $SED \
10693 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10694 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10695 -e 's:$: $lt_compiler_flag:'`
10696 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10697 (eval "$lt_compile" 2>conftest.err)
10698 ac_status=$?
10699 cat conftest.err >&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 if (exit $ac_status) && test -s "$ac_outfile"; then
10702 # The compiler can only warn and ignore the option if not recognized
10703 # So say no if there are warnings other than the usual output.
10704 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10705 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10706 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10707 lt_cv_prog_compiler_pic_works=yes
10708 fi
10709 fi
10710 $RM conftest*
10711
10712 fi
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10714 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10715
10716 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10717 case $lt_prog_compiler_pic in
10718 "" | " "*) ;;
10719 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10720 esac
10721 else
10722 lt_prog_compiler_pic=
10723 lt_prog_compiler_can_build_shared=no
10724 fi
10725
10726 fi
10727
10728
10729
10730
10731
10732
10733 #
10734 # Check to make sure the static flag actually works.
10735 #
10736 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10738 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10739 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10740 $as_echo_n "(cached) " >&6
10741 else
10742 lt_cv_prog_compiler_static_works=no
10743 save_LDFLAGS="$LDFLAGS"
10744 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10745 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10746 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10747 # The linker can only warn and ignore the option if not recognized
10748 # So say no if there are warnings
10749 if test -s conftest.err; then
10750 # Append any errors to the config.log.
10751 cat conftest.err 1>&5
10752 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10753 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10754 if diff conftest.exp conftest.er2 >/dev/null; then
10755 lt_cv_prog_compiler_static_works=yes
10756 fi
10757 else
10758 lt_cv_prog_compiler_static_works=yes
10759 fi
10760 fi
10761 $RM -r conftest*
10762 LDFLAGS="$save_LDFLAGS"
10763
10764 fi
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10766 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10767
10768 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10769 :
10770 else
10771 lt_prog_compiler_static=
10772 fi
10773
10774
10775
10776
10777
10778
10779
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10781 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10782 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10783 $as_echo_n "(cached) " >&6
10784 else
10785 lt_cv_prog_compiler_c_o=no
10786 $RM -r conftest 2>/dev/null
10787 mkdir conftest
10788 cd conftest
10789 mkdir out
10790 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10791
10792 lt_compiler_flag="-o out/conftest2.$ac_objext"
10793 # Insert the option either (1) after the last *FLAGS variable, or
10794 # (2) before a word containing "conftest.", or (3) at the end.
10795 # Note that $ac_compile itself does not contain backslashes and begins
10796 # with a dollar sign (not a hyphen), so the echo should work correctly.
10797 lt_compile=`echo "$ac_compile" | $SED \
10798 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10799 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10800 -e 's:$: $lt_compiler_flag:'`
10801 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10802 (eval "$lt_compile" 2>out/conftest.err)
10803 ac_status=$?
10804 cat out/conftest.err >&5
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10807 then
10808 # The compiler can only warn and ignore the option if not recognized
10809 # So say no if there are warnings
10810 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10811 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10812 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10813 lt_cv_prog_compiler_c_o=yes
10814 fi
10815 fi
10816 chmod u+w . 2>&5
10817 $RM conftest*
10818 # SGI C++ compiler will create directory out/ii_files/ for
10819 # template instantiation
10820 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10821 $RM out/* && rmdir out
10822 cd ..
10823 $RM -r conftest
10824 $RM conftest*
10825
10826 fi
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10828 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10829
10830
10831
10832
10833
10834
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10836 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10837 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10838 $as_echo_n "(cached) " >&6
10839 else
10840 lt_cv_prog_compiler_c_o=no
10841 $RM -r conftest 2>/dev/null
10842 mkdir conftest
10843 cd conftest
10844 mkdir out
10845 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10846
10847 lt_compiler_flag="-o out/conftest2.$ac_objext"
10848 # Insert the option either (1) after the last *FLAGS variable, or
10849 # (2) before a word containing "conftest.", or (3) at the end.
10850 # Note that $ac_compile itself does not contain backslashes and begins
10851 # with a dollar sign (not a hyphen), so the echo should work correctly.
10852 lt_compile=`echo "$ac_compile" | $SED \
10853 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10854 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10855 -e 's:$: $lt_compiler_flag:'`
10856 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10857 (eval "$lt_compile" 2>out/conftest.err)
10858 ac_status=$?
10859 cat out/conftest.err >&5
10860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10862 then
10863 # The compiler can only warn and ignore the option if not recognized
10864 # So say no if there are warnings
10865 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10866 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10867 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10868 lt_cv_prog_compiler_c_o=yes
10869 fi
10870 fi
10871 chmod u+w . 2>&5
10872 $RM conftest*
10873 # SGI C++ compiler will create directory out/ii_files/ for
10874 # template instantiation
10875 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10876 $RM out/* && rmdir out
10877 cd ..
10878 $RM -r conftest
10879 $RM conftest*
10880
10881 fi
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10883 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10884
10885
10886
10887
10888 hard_links="nottested"
10889 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10890 # do not overwrite the value of need_locks provided by the user
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10892 $as_echo_n "checking if we can lock with hard links... " >&6; }
10893 hard_links=yes
10894 $RM conftest*
10895 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10896 touch conftest.a
10897 ln conftest.a conftest.b 2>&5 || hard_links=no
10898 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10900 $as_echo "$hard_links" >&6; }
10901 if test "$hard_links" = no; then
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10903 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10904 need_locks=warn
10905 fi
10906 else
10907 need_locks=no
10908 fi
10909
10910
10911
10912
10913
10914
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10916 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10917
10918 runpath_var=
10919 allow_undefined_flag=
10920 always_export_symbols=no
10921 archive_cmds=
10922 archive_expsym_cmds=
10923 compiler_needs_object=no
10924 enable_shared_with_static_runtimes=no
10925 export_dynamic_flag_spec=
10926 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10927 hardcode_automatic=no
10928 hardcode_direct=no
10929 hardcode_direct_absolute=no
10930 hardcode_libdir_flag_spec=
10931 hardcode_libdir_flag_spec_ld=
10932 hardcode_libdir_separator=
10933 hardcode_minus_L=no
10934 hardcode_shlibpath_var=unsupported
10935 inherit_rpath=no
10936 link_all_deplibs=unknown
10937 module_cmds=
10938 module_expsym_cmds=
10939 old_archive_from_new_cmds=
10940 old_archive_from_expsyms_cmds=
10941 thread_safe_flag_spec=
10942 whole_archive_flag_spec=
10943 # include_expsyms should be a list of space-separated symbols to be *always*
10944 # included in the symbol list
10945 include_expsyms=
10946 # exclude_expsyms can be an extended regexp of symbols to exclude
10947 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10948 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10949 # as well as any symbol that contains `d'.
10950 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10951 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10952 # platforms (ab)use it in PIC code, but their linkers get confused if
10953 # the symbol is explicitly referenced. Since portable code cannot
10954 # rely on this symbol name, it's probably fine to never include it in
10955 # preloaded symbol tables.
10956 # Exclude shared library initialization/finalization symbols.
10957 extract_expsyms_cmds=
10958
10959 case $host_os in
10960 cygwin* | mingw* | pw32* | cegcc*)
10961 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10962 # When not using gcc, we currently assume that we are using
10963 # Microsoft Visual C++.
10964 if test "$GCC" != yes; then
10965 with_gnu_ld=no
10966 fi
10967 ;;
10968 interix*)
10969 # we just hope/assume this is gcc and not c89 (= MSVC++)
10970 with_gnu_ld=yes
10971 ;;
10972 openbsd*)
10973 with_gnu_ld=no
10974 ;;
10975 esac
10976
10977 ld_shlibs=yes
10978
10979 # On some targets, GNU ld is compatible enough with the native linker
10980 # that we're better off using the native interface for both.
10981 lt_use_gnu_ld_interface=no
10982 if test "$with_gnu_ld" = yes; then
10983 case $host_os in
10984 aix*)
10985 # The AIX port of GNU ld has always aspired to compatibility
10986 # with the native linker. However, as the warning in the GNU ld
10987 # block says, versions before 2.19.5* couldn't really create working
10988 # shared libraries, regardless of the interface used.
10989 case `$LD -v 2>&1` in
10990 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10991 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10992 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10993 *)
10994 lt_use_gnu_ld_interface=yes
10995 ;;
10996 esac
10997 ;;
10998 *)
10999 lt_use_gnu_ld_interface=yes
11000 ;;
11001 esac
11002 fi
11003
11004 if test "$lt_use_gnu_ld_interface" = yes; then
11005 # If archive_cmds runs LD, not CC, wlarc should be empty
11006 wlarc='${wl}'
11007
11008 # Set some defaults for GNU ld with shared library support. These
11009 # are reset later if shared libraries are not supported. Putting them
11010 # here allows them to be overridden if necessary.
11011 runpath_var=LD_RUN_PATH
11012 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11013 export_dynamic_flag_spec='${wl}--export-dynamic'
11014 # ancient GNU ld didn't support --whole-archive et. al.
11015 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11016 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11017 else
11018 whole_archive_flag_spec=
11019 fi
11020 supports_anon_versioning=no
11021 case `$LD -v 2>&1` in
11022 *GNU\ gold*) supports_anon_versioning=yes ;;
11023 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11024 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11025 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11026 *\ 2.11.*) ;; # other 2.11 versions
11027 *) supports_anon_versioning=yes ;;
11028 esac
11029
11030 # See if GNU ld supports shared libraries.
11031 case $host_os in
11032 aix[3-9]*)
11033 # On AIX/PPC, the GNU linker is very broken
11034 if test "$host_cpu" != ia64; then
11035 ld_shlibs=no
11036 cat <<_LT_EOF 1>&2
11037
11038 *** Warning: the GNU linker, at least up to release 2.19, is reported
11039 *** to be unable to reliably create shared libraries on AIX.
11040 *** Therefore, libtool is disabling shared libraries support. If you
11041 *** really care for shared libraries, you may want to install binutils
11042 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11043 *** You will then need to restart the configuration process.
11044
11045 _LT_EOF
11046 fi
11047 ;;
11048
11049 amigaos*)
11050 case $host_cpu in
11051 powerpc)
11052 # see comment about AmigaOS4 .so support
11053 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11054 archive_expsym_cmds=''
11055 ;;
11056 m68k)
11057 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)'
11058 hardcode_libdir_flag_spec='-L$libdir'
11059 hardcode_minus_L=yes
11060 ;;
11061 esac
11062 ;;
11063
11064 beos*)
11065 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11066 allow_undefined_flag=unsupported
11067 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11068 # support --undefined. This deserves some investigation. FIXME
11069 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11070 else
11071 ld_shlibs=no
11072 fi
11073 ;;
11074
11075 cygwin* | mingw* | pw32* | cegcc*)
11076 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11077 # as there is no search path for DLLs.
11078 hardcode_libdir_flag_spec='-L$libdir'
11079 export_dynamic_flag_spec='${wl}--export-all-symbols'
11080 allow_undefined_flag=unsupported
11081 always_export_symbols=no
11082 enable_shared_with_static_runtimes=yes
11083 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11084
11085 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11086 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11087 # If the export-symbols file already is a .def file (1st line
11088 # is EXPORTS), use it as is; otherwise, prepend...
11089 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11090 cp $export_symbols $output_objdir/$soname.def;
11091 else
11092 echo EXPORTS > $output_objdir/$soname.def;
11093 cat $export_symbols >> $output_objdir/$soname.def;
11094 fi~
11095 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11096 else
11097 ld_shlibs=no
11098 fi
11099 ;;
11100
11101 haiku*)
11102 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11103 link_all_deplibs=yes
11104 ;;
11105
11106 interix[3-9]*)
11107 hardcode_direct=no
11108 hardcode_shlibpath_var=no
11109 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11110 export_dynamic_flag_spec='${wl}-E'
11111 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11112 # Instead, shared libraries are loaded at an image base (0x10000000 by
11113 # default) and relocated if they conflict, which is a slow very memory
11114 # consuming and fragmenting process. To avoid this, we pick a random,
11115 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11116 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11117 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11118 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'
11119 ;;
11120
11121 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11122 tmp_diet=no
11123 if test "$host_os" = linux-dietlibc; then
11124 case $cc_basename in
11125 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11126 esac
11127 fi
11128 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11129 && test "$tmp_diet" = no
11130 then
11131 tmp_addflag=
11132 tmp_sharedflag='-shared'
11133 case $cc_basename,$host_cpu in
11134 pgcc*) # Portland Group C compiler
11135 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'
11136 tmp_addflag=' $pic_flag'
11137 ;;
11138 pgf77* | pgf90* | pgf95* | pgfortran*)
11139 # Portland Group f77 and f90 compilers
11140 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'
11141 tmp_addflag=' $pic_flag -Mnomain' ;;
11142 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11143 tmp_addflag=' -i_dynamic' ;;
11144 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11145 tmp_addflag=' -i_dynamic -nofor_main' ;;
11146 ifc* | ifort*) # Intel Fortran compiler
11147 tmp_addflag=' -nofor_main' ;;
11148 lf95*) # Lahey Fortran 8.1
11149 whole_archive_flag_spec=
11150 tmp_sharedflag='--shared' ;;
11151 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11152 tmp_sharedflag='-qmkshrobj'
11153 tmp_addflag= ;;
11154 nvcc*) # Cuda Compiler Driver 2.2
11155 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'
11156 compiler_needs_object=yes
11157 ;;
11158 esac
11159 case `$CC -V 2>&1 | sed 5q` in
11160 *Sun\ C*) # Sun C 5.9
11161 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'
11162 compiler_needs_object=yes
11163 tmp_sharedflag='-G' ;;
11164 *Sun\ F*) # Sun Fortran 8.3
11165 tmp_sharedflag='-G' ;;
11166 esac
11167 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11168
11169 if test "x$supports_anon_versioning" = xyes; then
11170 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11171 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11172 echo "local: *; };" >> $output_objdir/$libname.ver~
11173 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11174 fi
11175
11176 case $cc_basename in
11177 xlf* | bgf* | bgxlf* | mpixlf*)
11178 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11179 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11180 hardcode_libdir_flag_spec=
11181 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11182 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11183 if test "x$supports_anon_versioning" = xyes; then
11184 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11185 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11186 echo "local: *; };" >> $output_objdir/$libname.ver~
11187 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11188 fi
11189 ;;
11190 esac
11191 else
11192 ld_shlibs=no
11193 fi
11194 ;;
11195
11196 netbsd*)
11197 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11198 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11199 wlarc=
11200 else
11201 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11202 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11203 fi
11204 ;;
11205
11206 solaris*)
11207 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11208 ld_shlibs=no
11209 cat <<_LT_EOF 1>&2
11210
11211 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11212 *** create shared libraries on Solaris systems. Therefore, libtool
11213 *** is disabling shared libraries support. We urge you to upgrade GNU
11214 *** binutils to release 2.9.1 or newer. Another option is to modify
11215 *** your PATH or compiler configuration so that the native linker is
11216 *** used, and then restart.
11217
11218 _LT_EOF
11219 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11220 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11221 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11222 else
11223 ld_shlibs=no
11224 fi
11225 ;;
11226
11227 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11228 case `$LD -v 2>&1` in
11229 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11230 ld_shlibs=no
11231 cat <<_LT_EOF 1>&2
11232
11233 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11234 *** reliably create shared libraries on SCO systems. Therefore, libtool
11235 *** is disabling shared libraries support. We urge you to upgrade GNU
11236 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11237 *** your PATH or compiler configuration so that the native linker is
11238 *** used, and then restart.
11239
11240 _LT_EOF
11241 ;;
11242 *)
11243 # For security reasons, it is highly recommended that you always
11244 # use absolute paths for naming shared libraries, and exclude the
11245 # DT_RUNPATH tag from executables and libraries. But doing so
11246 # requires that you compile everything twice, which is a pain.
11247 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11248 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11249 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11250 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11251 else
11252 ld_shlibs=no
11253 fi
11254 ;;
11255 esac
11256 ;;
11257
11258 sunos4*)
11259 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11260 wlarc=
11261 hardcode_direct=yes
11262 hardcode_shlibpath_var=no
11263 ;;
11264
11265 *)
11266 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11267 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11268 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11269 else
11270 ld_shlibs=no
11271 fi
11272 ;;
11273 esac
11274
11275 if test "$ld_shlibs" = no; then
11276 runpath_var=
11277 hardcode_libdir_flag_spec=
11278 export_dynamic_flag_spec=
11279 whole_archive_flag_spec=
11280 fi
11281 else
11282 # PORTME fill in a description of your system's linker (not GNU ld)
11283 case $host_os in
11284 aix3*)
11285 allow_undefined_flag=unsupported
11286 always_export_symbols=yes
11287 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'
11288 # Note: this linker hardcodes the directories in LIBPATH if there
11289 # are no directories specified by -L.
11290 hardcode_minus_L=yes
11291 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11292 # Neither direct hardcoding nor static linking is supported with a
11293 # broken collect2.
11294 hardcode_direct=unsupported
11295 fi
11296 ;;
11297
11298 aix[4-9]*)
11299 if test "$host_cpu" = ia64; then
11300 # On IA64, the linker does run time linking by default, so we don't
11301 # have to do anything special.
11302 aix_use_runtimelinking=no
11303 exp_sym_flag='-Bexport'
11304 no_entry_flag=""
11305 else
11306 # If we're using GNU nm, then we don't want the "-C" option.
11307 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11308 # Also, AIX nm treats weak defined symbols like other global
11309 # defined symbols, whereas GNU nm marks them as "W".
11310 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11311 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'
11312 else
11313 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'
11314 fi
11315 aix_use_runtimelinking=no
11316
11317 # Test if we are trying to use run time linking or normal
11318 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11319 # need to do runtime linking.
11320 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11321 for ld_flag in $LDFLAGS; do
11322 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11323 aix_use_runtimelinking=yes
11324 break
11325 fi
11326 done
11327 ;;
11328 esac
11329
11330 exp_sym_flag='-bexport'
11331 no_entry_flag='-bnoentry'
11332 fi
11333
11334 # When large executables or shared objects are built, AIX ld can
11335 # have problems creating the table of contents. If linking a library
11336 # or program results in "error TOC overflow" add -mminimal-toc to
11337 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11338 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11339
11340 archive_cmds=''
11341 hardcode_direct=yes
11342 hardcode_direct_absolute=yes
11343 hardcode_libdir_separator=':'
11344 link_all_deplibs=yes
11345 file_list_spec='${wl}-f,'
11346
11347 if test "$GCC" = yes; then
11348 case $host_os in aix4.[012]|aix4.[012].*)
11349 # We only want to do this on AIX 4.2 and lower, the check
11350 # below for broken collect2 doesn't work under 4.3+
11351 collect2name=`${CC} -print-prog-name=collect2`
11352 if test -f "$collect2name" &&
11353 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11354 then
11355 # We have reworked collect2
11356 :
11357 else
11358 # We have old collect2
11359 hardcode_direct=unsupported
11360 # It fails to find uninstalled libraries when the uninstalled
11361 # path is not listed in the libpath. Setting hardcode_minus_L
11362 # to unsupported forces relinking
11363 hardcode_minus_L=yes
11364 hardcode_libdir_flag_spec='-L$libdir'
11365 hardcode_libdir_separator=
11366 fi
11367 ;;
11368 esac
11369 shared_flag='-shared'
11370 if test "$aix_use_runtimelinking" = yes; then
11371 shared_flag="$shared_flag "'${wl}-G'
11372 fi
11373 else
11374 # not using gcc
11375 if test "$host_cpu" = ia64; then
11376 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11377 # chokes on -Wl,-G. The following line is correct:
11378 shared_flag='-G'
11379 else
11380 if test "$aix_use_runtimelinking" = yes; then
11381 shared_flag='${wl}-G'
11382 else
11383 shared_flag='${wl}-bM:SRE'
11384 fi
11385 fi
11386 fi
11387
11388 export_dynamic_flag_spec='${wl}-bexpall'
11389 # It seems that -bexpall does not export symbols beginning with
11390 # underscore (_), so it is better to generate a list of symbols to export.
11391 always_export_symbols=yes
11392 if test "$aix_use_runtimelinking" = yes; then
11393 # Warning - without using the other runtime loading flags (-brtl),
11394 # -berok will link without error, but may produce a broken library.
11395 allow_undefined_flag='-berok'
11396 # Determine the default libpath from the value encoded in an
11397 # empty executable.
11398 if test x$gcc_no_link = xyes; then
11399 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11400 fi
11401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11402 /* end confdefs.h. */
11403
11404 int
11405 main ()
11406 {
11407
11408 ;
11409 return 0;
11410 }
11411 _ACEOF
11412 if ac_fn_c_try_link "$LINENO"; then :
11413
11414 lt_aix_libpath_sed='
11415 /Import File Strings/,/^$/ {
11416 /^0/ {
11417 s/^0 *\(.*\)$/\1/
11418 p
11419 }
11420 }'
11421 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11422 # Check for a 64-bit object if we didn't find anything.
11423 if test -z "$aix_libpath"; then
11424 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11425 fi
11426 fi
11427 rm -f core conftest.err conftest.$ac_objext \
11428 conftest$ac_exeext conftest.$ac_ext
11429 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11430
11431 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11432 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"
11433 else
11434 if test "$host_cpu" = ia64; then
11435 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11436 allow_undefined_flag="-z nodefs"
11437 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"
11438 else
11439 # Determine the default libpath from the value encoded in an
11440 # empty executable.
11441 if test x$gcc_no_link = xyes; then
11442 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11443 fi
11444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11445 /* end confdefs.h. */
11446
11447 int
11448 main ()
11449 {
11450
11451 ;
11452 return 0;
11453 }
11454 _ACEOF
11455 if ac_fn_c_try_link "$LINENO"; then :
11456
11457 lt_aix_libpath_sed='
11458 /Import File Strings/,/^$/ {
11459 /^0/ {
11460 s/^0 *\(.*\)$/\1/
11461 p
11462 }
11463 }'
11464 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11465 # Check for a 64-bit object if we didn't find anything.
11466 if test -z "$aix_libpath"; then
11467 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11468 fi
11469 fi
11470 rm -f core conftest.err conftest.$ac_objext \
11471 conftest$ac_exeext conftest.$ac_ext
11472 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11473
11474 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11475 # Warning - without using the other run time loading flags,
11476 # -berok will link without error, but may produce a broken library.
11477 no_undefined_flag=' ${wl}-bernotok'
11478 allow_undefined_flag=' ${wl}-berok'
11479 if test "$with_gnu_ld" = yes; then
11480 # We only use this code for GNU lds that support --whole-archive.
11481 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11482 else
11483 # Exported symbols can be pulled into shared objects from archives
11484 whole_archive_flag_spec='$convenience'
11485 fi
11486 archive_cmds_need_lc=yes
11487 # This is similar to how AIX traditionally builds its shared libraries.
11488 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11489 fi
11490 fi
11491 ;;
11492
11493 amigaos*)
11494 case $host_cpu in
11495 powerpc)
11496 # see comment about AmigaOS4 .so support
11497 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11498 archive_expsym_cmds=''
11499 ;;
11500 m68k)
11501 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)'
11502 hardcode_libdir_flag_spec='-L$libdir'
11503 hardcode_minus_L=yes
11504 ;;
11505 esac
11506 ;;
11507
11508 bsdi[45]*)
11509 export_dynamic_flag_spec=-rdynamic
11510 ;;
11511
11512 cygwin* | mingw* | pw32* | cegcc*)
11513 # When not using gcc, we currently assume that we are using
11514 # Microsoft Visual C++.
11515 # hardcode_libdir_flag_spec is actually meaningless, as there is
11516 # no search path for DLLs.
11517 hardcode_libdir_flag_spec=' '
11518 allow_undefined_flag=unsupported
11519 # Tell ltmain to make .lib files, not .a files.
11520 libext=lib
11521 # Tell ltmain to make .dll files, not .so files.
11522 shrext_cmds=".dll"
11523 # FIXME: Setting linknames here is a bad hack.
11524 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11525 # The linker will automatically build a .lib file if we build a DLL.
11526 old_archive_from_new_cmds='true'
11527 # FIXME: Should let the user specify the lib program.
11528 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11529 fix_srcfile_path='`cygpath -w "$srcfile"`'
11530 enable_shared_with_static_runtimes=yes
11531 ;;
11532
11533 darwin* | rhapsody*)
11534
11535
11536 archive_cmds_need_lc=no
11537 hardcode_direct=no
11538 hardcode_automatic=yes
11539 hardcode_shlibpath_var=unsupported
11540 if test "$lt_cv_ld_force_load" = "yes"; then
11541 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\"`'
11542 else
11543 whole_archive_flag_spec=''
11544 fi
11545 link_all_deplibs=yes
11546 allow_undefined_flag="$_lt_dar_allow_undefined"
11547 case $cc_basename in
11548 ifort*) _lt_dar_can_shared=yes ;;
11549 *) _lt_dar_can_shared=$GCC ;;
11550 esac
11551 if test "$_lt_dar_can_shared" = "yes"; then
11552 output_verbose_link_cmd=func_echo_all
11553 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11554 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11555 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}"
11556 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}"
11557
11558 else
11559 ld_shlibs=no
11560 fi
11561
11562 ;;
11563
11564 dgux*)
11565 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11566 hardcode_libdir_flag_spec='-L$libdir'
11567 hardcode_shlibpath_var=no
11568 ;;
11569
11570 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11571 # support. Future versions do this automatically, but an explicit c++rt0.o
11572 # does not break anything, and helps significantly (at the cost of a little
11573 # extra space).
11574 freebsd2.2*)
11575 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11576 hardcode_libdir_flag_spec='-R$libdir'
11577 hardcode_direct=yes
11578 hardcode_shlibpath_var=no
11579 ;;
11580
11581 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11582 freebsd2.*)
11583 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11584 hardcode_direct=yes
11585 hardcode_minus_L=yes
11586 hardcode_shlibpath_var=no
11587 ;;
11588
11589 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11590 freebsd* | dragonfly*)
11591 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11592 hardcode_libdir_flag_spec='-R$libdir'
11593 hardcode_direct=yes
11594 hardcode_shlibpath_var=no
11595 ;;
11596
11597 hpux9*)
11598 if test "$GCC" = yes; then
11599 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'
11600 else
11601 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'
11602 fi
11603 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11604 hardcode_libdir_separator=:
11605 hardcode_direct=yes
11606
11607 # hardcode_minus_L: Not really in the search PATH,
11608 # but as the default location of the library.
11609 hardcode_minus_L=yes
11610 export_dynamic_flag_spec='${wl}-E'
11611 ;;
11612
11613 hpux10*)
11614 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11615 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11616 else
11617 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11618 fi
11619 if test "$with_gnu_ld" = no; then
11620 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11621 hardcode_libdir_flag_spec_ld='+b $libdir'
11622 hardcode_libdir_separator=:
11623 hardcode_direct=yes
11624 hardcode_direct_absolute=yes
11625 export_dynamic_flag_spec='${wl}-E'
11626 # hardcode_minus_L: Not really in the search PATH,
11627 # but as the default location of the library.
11628 hardcode_minus_L=yes
11629 fi
11630 ;;
11631
11632 hpux11*)
11633 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11634 case $host_cpu in
11635 hppa*64*)
11636 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11637 ;;
11638 ia64*)
11639 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11640 ;;
11641 *)
11642 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11643 ;;
11644 esac
11645 else
11646 case $host_cpu in
11647 hppa*64*)
11648 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11649 ;;
11650 ia64*)
11651 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11652 ;;
11653 *)
11654
11655 # Older versions of the 11.00 compiler do not understand -b yet
11656 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11658 $as_echo_n "checking if $CC understands -b... " >&6; }
11659 if test "${lt_cv_prog_compiler__b+set}" = set; then :
11660 $as_echo_n "(cached) " >&6
11661 else
11662 lt_cv_prog_compiler__b=no
11663 save_LDFLAGS="$LDFLAGS"
11664 LDFLAGS="$LDFLAGS -b"
11665 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11666 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11667 # The linker can only warn and ignore the option if not recognized
11668 # So say no if there are warnings
11669 if test -s conftest.err; then
11670 # Append any errors to the config.log.
11671 cat conftest.err 1>&5
11672 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11673 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11674 if diff conftest.exp conftest.er2 >/dev/null; then
11675 lt_cv_prog_compiler__b=yes
11676 fi
11677 else
11678 lt_cv_prog_compiler__b=yes
11679 fi
11680 fi
11681 $RM -r conftest*
11682 LDFLAGS="$save_LDFLAGS"
11683
11684 fi
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11686 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11687
11688 if test x"$lt_cv_prog_compiler__b" = xyes; then
11689 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11690 else
11691 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11692 fi
11693
11694 ;;
11695 esac
11696 fi
11697 if test "$with_gnu_ld" = no; then
11698 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11699 hardcode_libdir_separator=:
11700
11701 case $host_cpu in
11702 hppa*64*|ia64*)
11703 hardcode_direct=no
11704 hardcode_shlibpath_var=no
11705 ;;
11706 *)
11707 hardcode_direct=yes
11708 hardcode_direct_absolute=yes
11709 export_dynamic_flag_spec='${wl}-E'
11710
11711 # hardcode_minus_L: Not really in the search PATH,
11712 # but as the default location of the library.
11713 hardcode_minus_L=yes
11714 ;;
11715 esac
11716 fi
11717 ;;
11718
11719 irix5* | irix6* | nonstopux*)
11720 if test "$GCC" = yes; then
11721 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'
11722 # Try to use the -exported_symbol ld option, if it does not
11723 # work, assume that -exports_file does not work either and
11724 # implicitly export all symbols.
11725 save_LDFLAGS="$LDFLAGS"
11726 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11727 if test x$gcc_no_link = xyes; then
11728 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11729 fi
11730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11731 /* end confdefs.h. */
11732 int foo(void) {}
11733 _ACEOF
11734 if ac_fn_c_try_link "$LINENO"; then :
11735 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'
11736
11737 fi
11738 rm -f core conftest.err conftest.$ac_objext \
11739 conftest$ac_exeext conftest.$ac_ext
11740 LDFLAGS="$save_LDFLAGS"
11741 else
11742 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'
11743 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'
11744 fi
11745 archive_cmds_need_lc='no'
11746 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11747 hardcode_libdir_separator=:
11748 inherit_rpath=yes
11749 link_all_deplibs=yes
11750 ;;
11751
11752 netbsd*)
11753 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11754 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11755 else
11756 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11757 fi
11758 hardcode_libdir_flag_spec='-R$libdir'
11759 hardcode_direct=yes
11760 hardcode_shlibpath_var=no
11761 ;;
11762
11763 newsos6)
11764 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11765 hardcode_direct=yes
11766 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11767 hardcode_libdir_separator=:
11768 hardcode_shlibpath_var=no
11769 ;;
11770
11771 *nto* | *qnx*)
11772 ;;
11773
11774 openbsd*)
11775 if test -f /usr/libexec/ld.so; then
11776 hardcode_direct=yes
11777 hardcode_shlibpath_var=no
11778 hardcode_direct_absolute=yes
11779 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11780 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11781 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11782 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11783 export_dynamic_flag_spec='${wl}-E'
11784 else
11785 case $host_os in
11786 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11787 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11788 hardcode_libdir_flag_spec='-R$libdir'
11789 ;;
11790 *)
11791 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11792 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11793 ;;
11794 esac
11795 fi
11796 else
11797 ld_shlibs=no
11798 fi
11799 ;;
11800
11801 os2*)
11802 hardcode_libdir_flag_spec='-L$libdir'
11803 hardcode_minus_L=yes
11804 allow_undefined_flag=unsupported
11805 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'
11806 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11807 ;;
11808
11809 osf3*)
11810 if test "$GCC" = yes; then
11811 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11812 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'
11813 else
11814 allow_undefined_flag=' -expect_unresolved \*'
11815 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'
11816 fi
11817 archive_cmds_need_lc='no'
11818 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11819 hardcode_libdir_separator=:
11820 ;;
11821
11822 osf4* | osf5*) # as osf3* with the addition of -msym flag
11823 if test "$GCC" = yes; then
11824 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11825 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'
11826 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11827 else
11828 allow_undefined_flag=' -expect_unresolved \*'
11829 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'
11830 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~
11831 $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'
11832
11833 # Both c and cxx compiler support -rpath directly
11834 hardcode_libdir_flag_spec='-rpath $libdir'
11835 fi
11836 archive_cmds_need_lc='no'
11837 hardcode_libdir_separator=:
11838 ;;
11839
11840 solaris*)
11841 no_undefined_flag=' -z defs'
11842 if test "$GCC" = yes; then
11843 wlarc='${wl}'
11844 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11845 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11846 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11847 else
11848 case `$CC -V 2>&1` in
11849 *"Compilers 5.0"*)
11850 wlarc=''
11851 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11852 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11853 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11854 ;;
11855 *)
11856 wlarc='${wl}'
11857 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11858 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11859 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11860 ;;
11861 esac
11862 fi
11863 hardcode_libdir_flag_spec='-R$libdir'
11864 hardcode_shlibpath_var=no
11865 case $host_os in
11866 solaris2.[0-5] | solaris2.[0-5].*) ;;
11867 *)
11868 # The compiler driver will combine and reorder linker options,
11869 # but understands `-z linker_flag'. GCC discards it without `$wl',
11870 # but is careful enough not to reorder.
11871 # Supported since Solaris 2.6 (maybe 2.5.1?)
11872 if test "$GCC" = yes; then
11873 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11874 else
11875 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11876 fi
11877 ;;
11878 esac
11879 link_all_deplibs=yes
11880 ;;
11881
11882 sunos4*)
11883 if test "x$host_vendor" = xsequent; then
11884 # Use $CC to link under sequent, because it throws in some extra .o
11885 # files that make .init and .fini sections work.
11886 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11887 else
11888 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11889 fi
11890 hardcode_libdir_flag_spec='-L$libdir'
11891 hardcode_direct=yes
11892 hardcode_minus_L=yes
11893 hardcode_shlibpath_var=no
11894 ;;
11895
11896 sysv4)
11897 case $host_vendor in
11898 sni)
11899 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11900 hardcode_direct=yes # is this really true???
11901 ;;
11902 siemens)
11903 ## LD is ld it makes a PLAMLIB
11904 ## CC just makes a GrossModule.
11905 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11906 reload_cmds='$CC -r -o $output$reload_objs'
11907 hardcode_direct=no
11908 ;;
11909 motorola)
11910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11911 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11912 ;;
11913 esac
11914 runpath_var='LD_RUN_PATH'
11915 hardcode_shlibpath_var=no
11916 ;;
11917
11918 sysv4.3*)
11919 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11920 hardcode_shlibpath_var=no
11921 export_dynamic_flag_spec='-Bexport'
11922 ;;
11923
11924 sysv4*MP*)
11925 if test -d /usr/nec; then
11926 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11927 hardcode_shlibpath_var=no
11928 runpath_var=LD_RUN_PATH
11929 hardcode_runpath_var=yes
11930 ld_shlibs=yes
11931 fi
11932 ;;
11933
11934 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11935 no_undefined_flag='${wl}-z,text'
11936 archive_cmds_need_lc=no
11937 hardcode_shlibpath_var=no
11938 runpath_var='LD_RUN_PATH'
11939
11940 if test "$GCC" = yes; then
11941 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11942 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11943 else
11944 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11945 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11946 fi
11947 ;;
11948
11949 sysv5* | sco3.2v5* | sco5v6*)
11950 # Note: We can NOT use -z defs as we might desire, because we do not
11951 # link with -lc, and that would cause any symbols used from libc to
11952 # always be unresolved, which means just about no library would
11953 # ever link correctly. If we're not using GNU ld we use -z text
11954 # though, which does catch some bad symbols but isn't as heavy-handed
11955 # as -z defs.
11956 no_undefined_flag='${wl}-z,text'
11957 allow_undefined_flag='${wl}-z,nodefs'
11958 archive_cmds_need_lc=no
11959 hardcode_shlibpath_var=no
11960 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11961 hardcode_libdir_separator=':'
11962 link_all_deplibs=yes
11963 export_dynamic_flag_spec='${wl}-Bexport'
11964 runpath_var='LD_RUN_PATH'
11965
11966 if test "$GCC" = yes; then
11967 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11968 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11969 else
11970 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11971 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11972 fi
11973 ;;
11974
11975 uts4*)
11976 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11977 hardcode_libdir_flag_spec='-L$libdir'
11978 hardcode_shlibpath_var=no
11979 ;;
11980
11981 *)
11982 ld_shlibs=no
11983 ;;
11984 esac
11985
11986 if test x$host_vendor = xsni; then
11987 case $host in
11988 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11989 export_dynamic_flag_spec='${wl}-Blargedynsym'
11990 ;;
11991 esac
11992 fi
11993 fi
11994
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11996 $as_echo "$ld_shlibs" >&6; }
11997 test "$ld_shlibs" = no && can_build_shared=no
11998
11999 with_gnu_ld=$with_gnu_ld
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015 #
12016 # Do we need to explicitly link libc?
12017 #
12018 case "x$archive_cmds_need_lc" in
12019 x|xyes)
12020 # Assume -lc should be added
12021 archive_cmds_need_lc=yes
12022
12023 if test "$enable_shared" = yes && test "$GCC" = yes; then
12024 case $archive_cmds in
12025 *'~'*)
12026 # FIXME: we may have to deal with multi-command sequences.
12027 ;;
12028 '$CC '*)
12029 # Test whether the compiler implicitly links with -lc since on some
12030 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12031 # to ld, don't add -lc before -lgcc.
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12033 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12034 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
12035 $as_echo_n "(cached) " >&6
12036 else
12037 $RM conftest*
12038 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12039
12040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12041 (eval $ac_compile) 2>&5
12042 ac_status=$?
12043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12044 test $ac_status = 0; } 2>conftest.err; then
12045 soname=conftest
12046 lib=conftest
12047 libobjs=conftest.$ac_objext
12048 deplibs=
12049 wl=$lt_prog_compiler_wl
12050 pic_flag=$lt_prog_compiler_pic
12051 compiler_flags=-v
12052 linker_flags=-v
12053 verstring=
12054 output_objdir=.
12055 libname=conftest
12056 lt_save_allow_undefined_flag=$allow_undefined_flag
12057 allow_undefined_flag=
12058 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12059 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12060 ac_status=$?
12061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12062 test $ac_status = 0; }
12063 then
12064 lt_cv_archive_cmds_need_lc=no
12065 else
12066 lt_cv_archive_cmds_need_lc=yes
12067 fi
12068 allow_undefined_flag=$lt_save_allow_undefined_flag
12069 else
12070 cat conftest.err 1>&5
12071 fi
12072 $RM conftest*
12073
12074 fi
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12076 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12077 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12078 ;;
12079 esac
12080 fi
12081 ;;
12082 esac
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12241 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12242
12243 if test "$GCC" = yes; then
12244 case $host_os in
12245 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12246 *) lt_awk_arg="/^libraries:/" ;;
12247 esac
12248 case $host_os in
12249 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12250 *) lt_sed_strip_eq="s,=/,/,g" ;;
12251 esac
12252 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12253 case $lt_search_path_spec in
12254 *\;*)
12255 # if the path contains ";" then we assume it to be the separator
12256 # otherwise default to the standard path separator (i.e. ":") - it is
12257 # assumed that no part of a normal pathname contains ";" but that should
12258 # okay in the real world where ";" in dirpaths is itself problematic.
12259 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12260 ;;
12261 *)
12262 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12263 ;;
12264 esac
12265 # Ok, now we have the path, separated by spaces, we can step through it
12266 # and add multilib dir if necessary.
12267 lt_tmp_lt_search_path_spec=
12268 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12269 for lt_sys_path in $lt_search_path_spec; do
12270 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12271 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12272 else
12273 test -d "$lt_sys_path" && \
12274 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12275 fi
12276 done
12277 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12278 BEGIN {RS=" "; FS="/|\n";} {
12279 lt_foo="";
12280 lt_count=0;
12281 for (lt_i = NF; lt_i > 0; lt_i--) {
12282 if ($lt_i != "" && $lt_i != ".") {
12283 if ($lt_i == "..") {
12284 lt_count++;
12285 } else {
12286 if (lt_count == 0) {
12287 lt_foo="/" $lt_i lt_foo;
12288 } else {
12289 lt_count--;
12290 }
12291 }
12292 }
12293 }
12294 if (lt_foo != "") { lt_freq[lt_foo]++; }
12295 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12296 }'`
12297 # AWK program above erroneously prepends '/' to C:/dos/paths
12298 # for these hosts.
12299 case $host_os in
12300 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12301 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12302 esac
12303 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12304 else
12305 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12306 fi
12307 library_names_spec=
12308 libname_spec='lib$name'
12309 soname_spec=
12310 shrext_cmds=".so"
12311 postinstall_cmds=
12312 postuninstall_cmds=
12313 finish_cmds=
12314 finish_eval=
12315 shlibpath_var=
12316 shlibpath_overrides_runpath=unknown
12317 version_type=none
12318 dynamic_linker="$host_os ld.so"
12319 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12320 need_lib_prefix=unknown
12321 hardcode_into_libs=no
12322
12323 # when you set need_version to no, make sure it does not cause -set_version
12324 # flags to be left without arguments
12325 need_version=unknown
12326
12327 case $host_os in
12328 aix3*)
12329 version_type=linux
12330 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12331 shlibpath_var=LIBPATH
12332
12333 # AIX 3 has no versioning support, so we append a major version to the name.
12334 soname_spec='${libname}${release}${shared_ext}$major'
12335 ;;
12336
12337 aix[4-9]*)
12338 version_type=linux
12339 need_lib_prefix=no
12340 need_version=no
12341 hardcode_into_libs=yes
12342 if test "$host_cpu" = ia64; then
12343 # AIX 5 supports IA64
12344 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12345 shlibpath_var=LD_LIBRARY_PATH
12346 else
12347 # With GCC up to 2.95.x, collect2 would create an import file
12348 # for dependence libraries. The import file would start with
12349 # the line `#! .'. This would cause the generated library to
12350 # depend on `.', always an invalid library. This was fixed in
12351 # development snapshots of GCC prior to 3.0.
12352 case $host_os in
12353 aix4 | aix4.[01] | aix4.[01].*)
12354 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12355 echo ' yes '
12356 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12357 :
12358 else
12359 can_build_shared=no
12360 fi
12361 ;;
12362 esac
12363 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12364 # soname into executable. Probably we can add versioning support to
12365 # collect2, so additional links can be useful in future.
12366 if test "$aix_use_runtimelinking" = yes; then
12367 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12368 # instead of lib<name>.a to let people know that these are not
12369 # typical AIX shared libraries.
12370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12371 else
12372 # We preserve .a as extension for shared libraries through AIX4.2
12373 # and later when we are not doing run time linking.
12374 library_names_spec='${libname}${release}.a $libname.a'
12375 soname_spec='${libname}${release}${shared_ext}$major'
12376 fi
12377 shlibpath_var=LIBPATH
12378 fi
12379 ;;
12380
12381 amigaos*)
12382 case $host_cpu in
12383 powerpc)
12384 # Since July 2007 AmigaOS4 officially supports .so libraries.
12385 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12387 ;;
12388 m68k)
12389 library_names_spec='$libname.ixlibrary $libname.a'
12390 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12391 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'
12392 ;;
12393 esac
12394 ;;
12395
12396 beos*)
12397 library_names_spec='${libname}${shared_ext}'
12398 dynamic_linker="$host_os ld.so"
12399 shlibpath_var=LIBRARY_PATH
12400 ;;
12401
12402 bsdi[45]*)
12403 version_type=linux
12404 need_version=no
12405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12406 soname_spec='${libname}${release}${shared_ext}$major'
12407 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12408 shlibpath_var=LD_LIBRARY_PATH
12409 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12410 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12411 # the default ld.so.conf also contains /usr/contrib/lib and
12412 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12413 # libtool to hard-code these into programs
12414 ;;
12415
12416 cygwin* | mingw* | pw32* | cegcc*)
12417 version_type=windows
12418 shrext_cmds=".dll"
12419 need_version=no
12420 need_lib_prefix=no
12421
12422 case $GCC,$host_os in
12423 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12424 library_names_spec='$libname.dll.a'
12425 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12426 postinstall_cmds='base_file=`basename \${file}`~
12427 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12428 dldir=$destdir/`dirname \$dlpath`~
12429 test -d \$dldir || mkdir -p \$dldir~
12430 $install_prog $dir/$dlname \$dldir/$dlname~
12431 chmod a+x \$dldir/$dlname~
12432 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12433 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12434 fi'
12435 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12436 dlpath=$dir/\$dldll~
12437 $RM \$dlpath'
12438 shlibpath_overrides_runpath=yes
12439
12440 case $host_os in
12441 cygwin*)
12442 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12443 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12444
12445 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12446 ;;
12447 mingw* | cegcc*)
12448 # MinGW DLLs use traditional 'lib' prefix
12449 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12450 ;;
12451 pw32*)
12452 # pw32 DLLs use 'pw' prefix rather than 'lib'
12453 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12454 ;;
12455 esac
12456 ;;
12457
12458 *)
12459 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12460 ;;
12461 esac
12462 dynamic_linker='Win32 ld.exe'
12463 # FIXME: first we should search . and the directory the executable is in
12464 shlibpath_var=PATH
12465 ;;
12466
12467 darwin* | rhapsody*)
12468 dynamic_linker="$host_os dyld"
12469 version_type=darwin
12470 need_lib_prefix=no
12471 need_version=no
12472 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12473 soname_spec='${libname}${release}${major}$shared_ext'
12474 shlibpath_overrides_runpath=yes
12475 shlibpath_var=DYLD_LIBRARY_PATH
12476 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12477
12478 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12479 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12480 ;;
12481
12482 dgux*)
12483 version_type=linux
12484 need_lib_prefix=no
12485 need_version=no
12486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12487 soname_spec='${libname}${release}${shared_ext}$major'
12488 shlibpath_var=LD_LIBRARY_PATH
12489 ;;
12490
12491 freebsd* | dragonfly*)
12492 # DragonFly does not have aout. When/if they implement a new
12493 # versioning mechanism, adjust this.
12494 if test -x /usr/bin/objformat; then
12495 objformat=`/usr/bin/objformat`
12496 else
12497 case $host_os in
12498 freebsd[23].*) objformat=aout ;;
12499 *) objformat=elf ;;
12500 esac
12501 fi
12502 version_type=freebsd-$objformat
12503 case $version_type in
12504 freebsd-elf*)
12505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12506 need_version=no
12507 need_lib_prefix=no
12508 ;;
12509 freebsd-*)
12510 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12511 need_version=yes
12512 ;;
12513 esac
12514 shlibpath_var=LD_LIBRARY_PATH
12515 case $host_os in
12516 freebsd2.*)
12517 shlibpath_overrides_runpath=yes
12518 ;;
12519 freebsd3.[01]* | freebsdelf3.[01]*)
12520 shlibpath_overrides_runpath=yes
12521 hardcode_into_libs=yes
12522 ;;
12523 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12524 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12525 shlibpath_overrides_runpath=no
12526 hardcode_into_libs=yes
12527 ;;
12528 *) # from 4.6 on, and DragonFly
12529 shlibpath_overrides_runpath=yes
12530 hardcode_into_libs=yes
12531 ;;
12532 esac
12533 ;;
12534
12535 gnu*)
12536 version_type=linux
12537 need_lib_prefix=no
12538 need_version=no
12539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12540 soname_spec='${libname}${release}${shared_ext}$major'
12541 shlibpath_var=LD_LIBRARY_PATH
12542 hardcode_into_libs=yes
12543 ;;
12544
12545 haiku*)
12546 version_type=linux
12547 need_lib_prefix=no
12548 need_version=no
12549 dynamic_linker="$host_os runtime_loader"
12550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12551 soname_spec='${libname}${release}${shared_ext}$major'
12552 shlibpath_var=LIBRARY_PATH
12553 shlibpath_overrides_runpath=yes
12554 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
12555 hardcode_into_libs=yes
12556 ;;
12557
12558 hpux9* | hpux10* | hpux11*)
12559 # Give a soname corresponding to the major version so that dld.sl refuses to
12560 # link against other versions.
12561 version_type=sunos
12562 need_lib_prefix=no
12563 need_version=no
12564 case $host_cpu in
12565 ia64*)
12566 shrext_cmds='.so'
12567 hardcode_into_libs=yes
12568 dynamic_linker="$host_os dld.so"
12569 shlibpath_var=LD_LIBRARY_PATH
12570 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12572 soname_spec='${libname}${release}${shared_ext}$major'
12573 if test "X$HPUX_IA64_MODE" = X32; then
12574 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12575 else
12576 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12577 fi
12578 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12579 ;;
12580 hppa*64*)
12581 shrext_cmds='.sl'
12582 hardcode_into_libs=yes
12583 dynamic_linker="$host_os dld.sl"
12584 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12585 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12587 soname_spec='${libname}${release}${shared_ext}$major'
12588 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12589 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12590 ;;
12591 *)
12592 shrext_cmds='.sl'
12593 dynamic_linker="$host_os dld.sl"
12594 shlibpath_var=SHLIB_PATH
12595 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12597 soname_spec='${libname}${release}${shared_ext}$major'
12598 ;;
12599 esac
12600 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12601 postinstall_cmds='chmod 555 $lib'
12602 # or fails outright, so override atomically:
12603 install_override_mode=555
12604 ;;
12605
12606 interix[3-9]*)
12607 version_type=linux
12608 need_lib_prefix=no
12609 need_version=no
12610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12611 soname_spec='${libname}${release}${shared_ext}$major'
12612 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12613 shlibpath_var=LD_LIBRARY_PATH
12614 shlibpath_overrides_runpath=no
12615 hardcode_into_libs=yes
12616 ;;
12617
12618 irix5* | irix6* | nonstopux*)
12619 case $host_os in
12620 nonstopux*) version_type=nonstopux ;;
12621 *)
12622 if test "$lt_cv_prog_gnu_ld" = yes; then
12623 version_type=linux
12624 else
12625 version_type=irix
12626 fi ;;
12627 esac
12628 need_lib_prefix=no
12629 need_version=no
12630 soname_spec='${libname}${release}${shared_ext}$major'
12631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12632 case $host_os in
12633 irix5* | nonstopux*)
12634 libsuff= shlibsuff=
12635 ;;
12636 *)
12637 case $LD in # libtool.m4 will add one of these switches to LD
12638 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12639 libsuff= shlibsuff= libmagic=32-bit;;
12640 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12641 libsuff=32 shlibsuff=N32 libmagic=N32;;
12642 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12643 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12644 *) libsuff= shlibsuff= libmagic=never-match;;
12645 esac
12646 ;;
12647 esac
12648 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12649 shlibpath_overrides_runpath=no
12650 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12651 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12652 hardcode_into_libs=yes
12653 ;;
12654
12655 # No shared lib support for Linux oldld, aout, or coff.
12656 linux*oldld* | linux*aout* | linux*coff*)
12657 dynamic_linker=no
12658 ;;
12659
12660 # This must be Linux ELF.
12661 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12662 version_type=linux
12663 need_lib_prefix=no
12664 need_version=no
12665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12666 soname_spec='${libname}${release}${shared_ext}$major'
12667 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12668 shlibpath_var=LD_LIBRARY_PATH
12669 shlibpath_overrides_runpath=no
12670
12671 # Some binutils ld are patched to set DT_RUNPATH
12672 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12673 $as_echo_n "(cached) " >&6
12674 else
12675 lt_cv_shlibpath_overrides_runpath=no
12676 save_LDFLAGS=$LDFLAGS
12677 save_libdir=$libdir
12678 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12679 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12680 if test x$gcc_no_link = xyes; then
12681 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12682 fi
12683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12684 /* end confdefs.h. */
12685
12686 int
12687 main ()
12688 {
12689
12690 ;
12691 return 0;
12692 }
12693 _ACEOF
12694 if ac_fn_c_try_link "$LINENO"; then :
12695 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12696 lt_cv_shlibpath_overrides_runpath=yes
12697 fi
12698 fi
12699 rm -f core conftest.err conftest.$ac_objext \
12700 conftest$ac_exeext conftest.$ac_ext
12701 LDFLAGS=$save_LDFLAGS
12702 libdir=$save_libdir
12703
12704 fi
12705
12706 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12707
12708 # This implies no fast_install, which is unacceptable.
12709 # Some rework will be needed to allow for fast_install
12710 # before this can be enabled.
12711 hardcode_into_libs=yes
12712
12713 # Append ld.so.conf contents to the search path
12714 if test -f /etc/ld.so.conf; then
12715 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' ' '`
12716 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12717 fi
12718
12719 # We used to test for /lib/ld.so.1 and disable shared libraries on
12720 # powerpc, because MkLinux only supported shared libraries with the
12721 # GNU dynamic linker. Since this was broken with cross compilers,
12722 # most powerpc-linux boxes support dynamic linking these days and
12723 # people can always --disable-shared, the test was removed, and we
12724 # assume the GNU/Linux dynamic linker is in use.
12725 dynamic_linker='GNU/Linux ld.so'
12726 ;;
12727
12728 netbsd*)
12729 version_type=sunos
12730 need_lib_prefix=no
12731 need_version=no
12732 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12734 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12735 dynamic_linker='NetBSD (a.out) ld.so'
12736 else
12737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12738 soname_spec='${libname}${release}${shared_ext}$major'
12739 dynamic_linker='NetBSD ld.elf_so'
12740 fi
12741 shlibpath_var=LD_LIBRARY_PATH
12742 shlibpath_overrides_runpath=yes
12743 hardcode_into_libs=yes
12744 ;;
12745
12746 newsos6)
12747 version_type=linux
12748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12749 shlibpath_var=LD_LIBRARY_PATH
12750 shlibpath_overrides_runpath=yes
12751 ;;
12752
12753 *nto* | *qnx*)
12754 version_type=qnx
12755 need_lib_prefix=no
12756 need_version=no
12757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12758 soname_spec='${libname}${release}${shared_ext}$major'
12759 shlibpath_var=LD_LIBRARY_PATH
12760 shlibpath_overrides_runpath=no
12761 hardcode_into_libs=yes
12762 dynamic_linker='ldqnx.so'
12763 ;;
12764
12765 openbsd*)
12766 version_type=sunos
12767 sys_lib_dlsearch_path_spec="/usr/lib"
12768 need_lib_prefix=no
12769 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12770 case $host_os in
12771 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12772 *) need_version=no ;;
12773 esac
12774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12775 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12776 shlibpath_var=LD_LIBRARY_PATH
12777 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12778 case $host_os in
12779 openbsd2.[89] | openbsd2.[89].*)
12780 shlibpath_overrides_runpath=no
12781 ;;
12782 *)
12783 shlibpath_overrides_runpath=yes
12784 ;;
12785 esac
12786 else
12787 shlibpath_overrides_runpath=yes
12788 fi
12789 ;;
12790
12791 os2*)
12792 libname_spec='$name'
12793 shrext_cmds=".dll"
12794 need_lib_prefix=no
12795 library_names_spec='$libname${shared_ext} $libname.a'
12796 dynamic_linker='OS/2 ld.exe'
12797 shlibpath_var=LIBPATH
12798 ;;
12799
12800 osf3* | osf4* | osf5*)
12801 version_type=osf
12802 need_lib_prefix=no
12803 need_version=no
12804 soname_spec='${libname}${release}${shared_ext}$major'
12805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12806 shlibpath_var=LD_LIBRARY_PATH
12807 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12808 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12809 ;;
12810
12811 rdos*)
12812 dynamic_linker=no
12813 ;;
12814
12815 solaris*)
12816 version_type=linux
12817 need_lib_prefix=no
12818 need_version=no
12819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12820 soname_spec='${libname}${release}${shared_ext}$major'
12821 shlibpath_var=LD_LIBRARY_PATH
12822 shlibpath_overrides_runpath=yes
12823 hardcode_into_libs=yes
12824 # ldd complains unless libraries are executable
12825 postinstall_cmds='chmod +x $lib'
12826 ;;
12827
12828 sunos4*)
12829 version_type=sunos
12830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12831 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12832 shlibpath_var=LD_LIBRARY_PATH
12833 shlibpath_overrides_runpath=yes
12834 if test "$with_gnu_ld" = yes; then
12835 need_lib_prefix=no
12836 fi
12837 need_version=yes
12838 ;;
12839
12840 sysv4 | sysv4.3*)
12841 version_type=linux
12842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12843 soname_spec='${libname}${release}${shared_ext}$major'
12844 shlibpath_var=LD_LIBRARY_PATH
12845 case $host_vendor in
12846 sni)
12847 shlibpath_overrides_runpath=no
12848 need_lib_prefix=no
12849 runpath_var=LD_RUN_PATH
12850 ;;
12851 siemens)
12852 need_lib_prefix=no
12853 ;;
12854 motorola)
12855 need_lib_prefix=no
12856 need_version=no
12857 shlibpath_overrides_runpath=no
12858 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12859 ;;
12860 esac
12861 ;;
12862
12863 sysv4*MP*)
12864 if test -d /usr/nec ;then
12865 version_type=linux
12866 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12867 soname_spec='$libname${shared_ext}.$major'
12868 shlibpath_var=LD_LIBRARY_PATH
12869 fi
12870 ;;
12871
12872 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12873 version_type=freebsd-elf
12874 need_lib_prefix=no
12875 need_version=no
12876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12877 soname_spec='${libname}${release}${shared_ext}$major'
12878 shlibpath_var=LD_LIBRARY_PATH
12879 shlibpath_overrides_runpath=yes
12880 hardcode_into_libs=yes
12881 if test "$with_gnu_ld" = yes; then
12882 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12883 else
12884 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12885 case $host_os in
12886 sco3.2v5*)
12887 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12888 ;;
12889 esac
12890 fi
12891 sys_lib_dlsearch_path_spec='/usr/lib'
12892 ;;
12893
12894 tpf*)
12895 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12896 version_type=linux
12897 need_lib_prefix=no
12898 need_version=no
12899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12900 shlibpath_var=LD_LIBRARY_PATH
12901 shlibpath_overrides_runpath=no
12902 hardcode_into_libs=yes
12903 ;;
12904
12905 uts4*)
12906 version_type=linux
12907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12908 soname_spec='${libname}${release}${shared_ext}$major'
12909 shlibpath_var=LD_LIBRARY_PATH
12910 ;;
12911
12912 *)
12913 dynamic_linker=no
12914 ;;
12915 esac
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12917 $as_echo "$dynamic_linker" >&6; }
12918 test "$dynamic_linker" = no && can_build_shared=no
12919
12920 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12921 if test "$GCC" = yes; then
12922 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12923 fi
12924
12925 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12926 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12927 fi
12928 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12929 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12930 fi
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13024 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13025 hardcode_action=
13026 if test -n "$hardcode_libdir_flag_spec" ||
13027 test -n "$runpath_var" ||
13028 test "X$hardcode_automatic" = "Xyes" ; then
13029
13030 # We can hardcode non-existent directories.
13031 if test "$hardcode_direct" != no &&
13032 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13033 # have to relink, otherwise we might link with an installed library
13034 # when we should be linking with a yet-to-be-installed one
13035 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13036 test "$hardcode_minus_L" != no; then
13037 # Linking always hardcodes the temporary library directory.
13038 hardcode_action=relink
13039 else
13040 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13041 hardcode_action=immediate
13042 fi
13043 else
13044 # We cannot hardcode anything, or else we can only hardcode existing
13045 # directories.
13046 hardcode_action=unsupported
13047 fi
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13049 $as_echo "$hardcode_action" >&6; }
13050
13051 if test "$hardcode_action" = relink ||
13052 test "$inherit_rpath" = yes; then
13053 # Fast installation is not supported
13054 enable_fast_install=no
13055 elif test "$shlibpath_overrides_runpath" = yes ||
13056 test "$enable_shared" = no; then
13057 # Fast installation is not necessary
13058 enable_fast_install=needless
13059 fi
13060
13061
13062
13063
13064
13065
13066 if test "x$enable_dlopen" != xyes; then
13067 enable_dlopen=unknown
13068 enable_dlopen_self=unknown
13069 enable_dlopen_self_static=unknown
13070 else
13071 lt_cv_dlopen=no
13072 lt_cv_dlopen_libs=
13073
13074 case $host_os in
13075 beos*)
13076 lt_cv_dlopen="load_add_on"
13077 lt_cv_dlopen_libs=
13078 lt_cv_dlopen_self=yes
13079 ;;
13080
13081 mingw* | pw32* | cegcc*)
13082 lt_cv_dlopen="LoadLibrary"
13083 lt_cv_dlopen_libs=
13084 ;;
13085
13086 cygwin*)
13087 lt_cv_dlopen="dlopen"
13088 lt_cv_dlopen_libs=
13089 ;;
13090
13091 darwin*)
13092 # if libdl is installed we need to link against it
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13094 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13095 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13096 $as_echo_n "(cached) " >&6
13097 else
13098 ac_check_lib_save_LIBS=$LIBS
13099 LIBS="-ldl $LIBS"
13100 if test x$gcc_no_link = xyes; then
13101 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13102 fi
13103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13104 /* end confdefs.h. */
13105
13106 /* Override any GCC internal prototype to avoid an error.
13107 Use char because int might match the return type of a GCC
13108 builtin and then its argument prototype would still apply. */
13109 #ifdef __cplusplus
13110 extern "C"
13111 #endif
13112 char dlopen ();
13113 int
13114 main ()
13115 {
13116 return dlopen ();
13117 ;
13118 return 0;
13119 }
13120 _ACEOF
13121 if ac_fn_c_try_link "$LINENO"; then :
13122 ac_cv_lib_dl_dlopen=yes
13123 else
13124 ac_cv_lib_dl_dlopen=no
13125 fi
13126 rm -f core conftest.err conftest.$ac_objext \
13127 conftest$ac_exeext conftest.$ac_ext
13128 LIBS=$ac_check_lib_save_LIBS
13129 fi
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13131 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13132 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13133 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13134 else
13135
13136 lt_cv_dlopen="dyld"
13137 lt_cv_dlopen_libs=
13138 lt_cv_dlopen_self=yes
13139
13140 fi
13141
13142 ;;
13143
13144 *)
13145 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13146 if test "x$ac_cv_func_shl_load" = x""yes; then :
13147 lt_cv_dlopen="shl_load"
13148 else
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13150 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13151 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13152 $as_echo_n "(cached) " >&6
13153 else
13154 ac_check_lib_save_LIBS=$LIBS
13155 LIBS="-ldld $LIBS"
13156 if test x$gcc_no_link = xyes; then
13157 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13158 fi
13159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13160 /* end confdefs.h. */
13161
13162 /* Override any GCC internal prototype to avoid an error.
13163 Use char because int might match the return type of a GCC
13164 builtin and then its argument prototype would still apply. */
13165 #ifdef __cplusplus
13166 extern "C"
13167 #endif
13168 char shl_load ();
13169 int
13170 main ()
13171 {
13172 return shl_load ();
13173 ;
13174 return 0;
13175 }
13176 _ACEOF
13177 if ac_fn_c_try_link "$LINENO"; then :
13178 ac_cv_lib_dld_shl_load=yes
13179 else
13180 ac_cv_lib_dld_shl_load=no
13181 fi
13182 rm -f core conftest.err conftest.$ac_objext \
13183 conftest$ac_exeext conftest.$ac_ext
13184 LIBS=$ac_check_lib_save_LIBS
13185 fi
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13187 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13188 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13189 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13190 else
13191 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13192 if test "x$ac_cv_func_dlopen" = x""yes; then :
13193 lt_cv_dlopen="dlopen"
13194 else
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13196 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13197 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13198 $as_echo_n "(cached) " >&6
13199 else
13200 ac_check_lib_save_LIBS=$LIBS
13201 LIBS="-ldl $LIBS"
13202 if test x$gcc_no_link = xyes; then
13203 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13204 fi
13205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13206 /* end confdefs.h. */
13207
13208 /* Override any GCC internal prototype to avoid an error.
13209 Use char because int might match the return type of a GCC
13210 builtin and then its argument prototype would still apply. */
13211 #ifdef __cplusplus
13212 extern "C"
13213 #endif
13214 char dlopen ();
13215 int
13216 main ()
13217 {
13218 return dlopen ();
13219 ;
13220 return 0;
13221 }
13222 _ACEOF
13223 if ac_fn_c_try_link "$LINENO"; then :
13224 ac_cv_lib_dl_dlopen=yes
13225 else
13226 ac_cv_lib_dl_dlopen=no
13227 fi
13228 rm -f core conftest.err conftest.$ac_objext \
13229 conftest$ac_exeext conftest.$ac_ext
13230 LIBS=$ac_check_lib_save_LIBS
13231 fi
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13233 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13234 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13235 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13236 else
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13238 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13239 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13240 $as_echo_n "(cached) " >&6
13241 else
13242 ac_check_lib_save_LIBS=$LIBS
13243 LIBS="-lsvld $LIBS"
13244 if test x$gcc_no_link = xyes; then
13245 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13246 fi
13247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13248 /* end confdefs.h. */
13249
13250 /* Override any GCC internal prototype to avoid an error.
13251 Use char because int might match the return type of a GCC
13252 builtin and then its argument prototype would still apply. */
13253 #ifdef __cplusplus
13254 extern "C"
13255 #endif
13256 char dlopen ();
13257 int
13258 main ()
13259 {
13260 return dlopen ();
13261 ;
13262 return 0;
13263 }
13264 _ACEOF
13265 if ac_fn_c_try_link "$LINENO"; then :
13266 ac_cv_lib_svld_dlopen=yes
13267 else
13268 ac_cv_lib_svld_dlopen=no
13269 fi
13270 rm -f core conftest.err conftest.$ac_objext \
13271 conftest$ac_exeext conftest.$ac_ext
13272 LIBS=$ac_check_lib_save_LIBS
13273 fi
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13275 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13276 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13277 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13278 else
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13280 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13281 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13282 $as_echo_n "(cached) " >&6
13283 else
13284 ac_check_lib_save_LIBS=$LIBS
13285 LIBS="-ldld $LIBS"
13286 if test x$gcc_no_link = xyes; then
13287 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13288 fi
13289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13290 /* end confdefs.h. */
13291
13292 /* Override any GCC internal prototype to avoid an error.
13293 Use char because int might match the return type of a GCC
13294 builtin and then its argument prototype would still apply. */
13295 #ifdef __cplusplus
13296 extern "C"
13297 #endif
13298 char dld_link ();
13299 int
13300 main ()
13301 {
13302 return dld_link ();
13303 ;
13304 return 0;
13305 }
13306 _ACEOF
13307 if ac_fn_c_try_link "$LINENO"; then :
13308 ac_cv_lib_dld_dld_link=yes
13309 else
13310 ac_cv_lib_dld_dld_link=no
13311 fi
13312 rm -f core conftest.err conftest.$ac_objext \
13313 conftest$ac_exeext conftest.$ac_ext
13314 LIBS=$ac_check_lib_save_LIBS
13315 fi
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13317 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13318 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13319 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13320 fi
13321
13322
13323 fi
13324
13325
13326 fi
13327
13328
13329 fi
13330
13331
13332 fi
13333
13334
13335 fi
13336
13337 ;;
13338 esac
13339
13340 if test "x$lt_cv_dlopen" != xno; then
13341 enable_dlopen=yes
13342 else
13343 enable_dlopen=no
13344 fi
13345
13346 case $lt_cv_dlopen in
13347 dlopen)
13348 save_CPPFLAGS="$CPPFLAGS"
13349 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13350
13351 save_LDFLAGS="$LDFLAGS"
13352 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13353
13354 save_LIBS="$LIBS"
13355 LIBS="$lt_cv_dlopen_libs $LIBS"
13356
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13358 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13359 if test "${lt_cv_dlopen_self+set}" = set; then :
13360 $as_echo_n "(cached) " >&6
13361 else
13362 if test "$cross_compiling" = yes; then :
13363 lt_cv_dlopen_self=cross
13364 else
13365 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13366 lt_status=$lt_dlunknown
13367 cat > conftest.$ac_ext <<_LT_EOF
13368 #line 13368 "configure"
13369 #include "confdefs.h"
13370
13371 #if HAVE_DLFCN_H
13372 #include <dlfcn.h>
13373 #endif
13374
13375 #include <stdio.h>
13376
13377 #ifdef RTLD_GLOBAL
13378 # define LT_DLGLOBAL RTLD_GLOBAL
13379 #else
13380 # ifdef DL_GLOBAL
13381 # define LT_DLGLOBAL DL_GLOBAL
13382 # else
13383 # define LT_DLGLOBAL 0
13384 # endif
13385 #endif
13386
13387 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13388 find out it does not work in some platform. */
13389 #ifndef LT_DLLAZY_OR_NOW
13390 # ifdef RTLD_LAZY
13391 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13392 # else
13393 # ifdef DL_LAZY
13394 # define LT_DLLAZY_OR_NOW DL_LAZY
13395 # else
13396 # ifdef RTLD_NOW
13397 # define LT_DLLAZY_OR_NOW RTLD_NOW
13398 # else
13399 # ifdef DL_NOW
13400 # define LT_DLLAZY_OR_NOW DL_NOW
13401 # else
13402 # define LT_DLLAZY_OR_NOW 0
13403 # endif
13404 # endif
13405 # endif
13406 # endif
13407 #endif
13408
13409 /* When -fvisbility=hidden is used, assume the code has been annotated
13410 correspondingly for the symbols needed. */
13411 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13412 void fnord () __attribute__((visibility("default")));
13413 #endif
13414
13415 void fnord () { int i=42; }
13416 int main ()
13417 {
13418 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13419 int status = $lt_dlunknown;
13420
13421 if (self)
13422 {
13423 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13424 else
13425 {
13426 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13427 else puts (dlerror ());
13428 }
13429 /* dlclose (self); */
13430 }
13431 else
13432 puts (dlerror ());
13433
13434 return status;
13435 }
13436 _LT_EOF
13437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13438 (eval $ac_link) 2>&5
13439 ac_status=$?
13440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13441 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13442 (./conftest; exit; ) >&5 2>/dev/null
13443 lt_status=$?
13444 case x$lt_status in
13445 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13446 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13447 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13448 esac
13449 else :
13450 # compilation failed
13451 lt_cv_dlopen_self=no
13452 fi
13453 fi
13454 rm -fr conftest*
13455
13456
13457 fi
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13459 $as_echo "$lt_cv_dlopen_self" >&6; }
13460
13461 if test "x$lt_cv_dlopen_self" = xyes; then
13462 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13464 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13465 if test "${lt_cv_dlopen_self_static+set}" = set; then :
13466 $as_echo_n "(cached) " >&6
13467 else
13468 if test "$cross_compiling" = yes; then :
13469 lt_cv_dlopen_self_static=cross
13470 else
13471 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13472 lt_status=$lt_dlunknown
13473 cat > conftest.$ac_ext <<_LT_EOF
13474 #line 13474 "configure"
13475 #include "confdefs.h"
13476
13477 #if HAVE_DLFCN_H
13478 #include <dlfcn.h>
13479 #endif
13480
13481 #include <stdio.h>
13482
13483 #ifdef RTLD_GLOBAL
13484 # define LT_DLGLOBAL RTLD_GLOBAL
13485 #else
13486 # ifdef DL_GLOBAL
13487 # define LT_DLGLOBAL DL_GLOBAL
13488 # else
13489 # define LT_DLGLOBAL 0
13490 # endif
13491 #endif
13492
13493 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13494 find out it does not work in some platform. */
13495 #ifndef LT_DLLAZY_OR_NOW
13496 # ifdef RTLD_LAZY
13497 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13498 # else
13499 # ifdef DL_LAZY
13500 # define LT_DLLAZY_OR_NOW DL_LAZY
13501 # else
13502 # ifdef RTLD_NOW
13503 # define LT_DLLAZY_OR_NOW RTLD_NOW
13504 # else
13505 # ifdef DL_NOW
13506 # define LT_DLLAZY_OR_NOW DL_NOW
13507 # else
13508 # define LT_DLLAZY_OR_NOW 0
13509 # endif
13510 # endif
13511 # endif
13512 # endif
13513 #endif
13514
13515 /* When -fvisbility=hidden is used, assume the code has been annotated
13516 correspondingly for the symbols needed. */
13517 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13518 void fnord () __attribute__((visibility("default")));
13519 #endif
13520
13521 void fnord () { int i=42; }
13522 int main ()
13523 {
13524 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13525 int status = $lt_dlunknown;
13526
13527 if (self)
13528 {
13529 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13530 else
13531 {
13532 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13533 else puts (dlerror ());
13534 }
13535 /* dlclose (self); */
13536 }
13537 else
13538 puts (dlerror ());
13539
13540 return status;
13541 }
13542 _LT_EOF
13543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13544 (eval $ac_link) 2>&5
13545 ac_status=$?
13546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13547 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13548 (./conftest; exit; ) >&5 2>/dev/null
13549 lt_status=$?
13550 case x$lt_status in
13551 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13552 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13553 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13554 esac
13555 else :
13556 # compilation failed
13557 lt_cv_dlopen_self_static=no
13558 fi
13559 fi
13560 rm -fr conftest*
13561
13562
13563 fi
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13565 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13566 fi
13567
13568 CPPFLAGS="$save_CPPFLAGS"
13569 LDFLAGS="$save_LDFLAGS"
13570 LIBS="$save_LIBS"
13571 ;;
13572 esac
13573
13574 case $lt_cv_dlopen_self in
13575 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13576 *) enable_dlopen_self=unknown ;;
13577 esac
13578
13579 case $lt_cv_dlopen_self_static in
13580 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13581 *) enable_dlopen_self_static=unknown ;;
13582 esac
13583 fi
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601 striplib=
13602 old_striplib=
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13604 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13605 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13606 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13607 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13609 $as_echo "yes" >&6; }
13610 else
13611 # FIXME - insert some real tests, host_os isn't really good enough
13612 case $host_os in
13613 darwin*)
13614 if test -n "$STRIP" ; then
13615 striplib="$STRIP -x"
13616 old_striplib="$STRIP -S"
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13618 $as_echo "yes" >&6; }
13619 else
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13621 $as_echo "no" >&6; }
13622 fi
13623 ;;
13624 *)
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13626 $as_echo "no" >&6; }
13627 ;;
13628 esac
13629 fi
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642 # Report which library types will actually be built
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13644 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13646 $as_echo "$can_build_shared" >&6; }
13647
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13649 $as_echo_n "checking whether to build shared libraries... " >&6; }
13650 test "$can_build_shared" = "no" && enable_shared=no
13651
13652 # On AIX, shared libraries and static libraries use the same namespace, and
13653 # are all built from PIC.
13654 case $host_os in
13655 aix3*)
13656 test "$enable_shared" = yes && enable_static=no
13657 if test -n "$RANLIB"; then
13658 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13659 postinstall_cmds='$RANLIB $lib'
13660 fi
13661 ;;
13662
13663 aix[4-9]*)
13664 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13665 test "$enable_shared" = yes && enable_static=no
13666 fi
13667 ;;
13668 esac
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13670 $as_echo "$enable_shared" >&6; }
13671
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13673 $as_echo_n "checking whether to build static libraries... " >&6; }
13674 # Make sure either enable_shared or enable_static is yes.
13675 test "$enable_shared" = yes || enable_static=yes
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13677 $as_echo "$enable_static" >&6; }
13678
13679
13680
13681
13682 fi
13683 ac_ext=c
13684 ac_cpp='$CPP $CPPFLAGS'
13685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13688
13689 CC="$lt_save_CC"
13690
13691 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13692 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13693 (test "X$CXX" != "Xg++"))) ; then
13694 ac_ext=cpp
13695 ac_cpp='$CXXCPP $CPPFLAGS'
13696 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13697 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13698 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13700 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13701 if test -z "$CXXCPP"; then
13702 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13703 $as_echo_n "(cached) " >&6
13704 else
13705 # Double quotes because CXXCPP needs to be expanded
13706 for CXXCPP in "$CXX -E" "/lib/cpp"
13707 do
13708 ac_preproc_ok=false
13709 for ac_cxx_preproc_warn_flag in '' yes
13710 do
13711 # Use a header file that comes with gcc, so configuring glibc
13712 # with a fresh cross-compiler works.
13713 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13714 # <limits.h> exists even on freestanding compilers.
13715 # On the NeXT, cc -E runs the code through the compiler's parser,
13716 # not just through cpp. "Syntax error" is here to catch this case.
13717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13718 /* end confdefs.h. */
13719 #ifdef __STDC__
13720 # include <limits.h>
13721 #else
13722 # include <assert.h>
13723 #endif
13724 Syntax error
13725 _ACEOF
13726 if ac_fn_cxx_try_cpp "$LINENO"; then :
13727
13728 else
13729 # Broken: fails on valid input.
13730 continue
13731 fi
13732 rm -f conftest.err conftest.$ac_ext
13733
13734 # OK, works on sane cases. Now check whether nonexistent headers
13735 # can be detected and how.
13736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13737 /* end confdefs.h. */
13738 #include <ac_nonexistent.h>
13739 _ACEOF
13740 if ac_fn_cxx_try_cpp "$LINENO"; then :
13741 # Broken: success on invalid input.
13742 continue
13743 else
13744 # Passes both tests.
13745 ac_preproc_ok=:
13746 break
13747 fi
13748 rm -f conftest.err conftest.$ac_ext
13749
13750 done
13751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13752 rm -f conftest.err conftest.$ac_ext
13753 if $ac_preproc_ok; then :
13754 break
13755 fi
13756
13757 done
13758 ac_cv_prog_CXXCPP=$CXXCPP
13759
13760 fi
13761 CXXCPP=$ac_cv_prog_CXXCPP
13762 else
13763 ac_cv_prog_CXXCPP=$CXXCPP
13764 fi
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13766 $as_echo "$CXXCPP" >&6; }
13767 ac_preproc_ok=false
13768 for ac_cxx_preproc_warn_flag in '' yes
13769 do
13770 # Use a header file that comes with gcc, so configuring glibc
13771 # with a fresh cross-compiler works.
13772 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13773 # <limits.h> exists even on freestanding compilers.
13774 # On the NeXT, cc -E runs the code through the compiler's parser,
13775 # not just through cpp. "Syntax error" is here to catch this case.
13776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13777 /* end confdefs.h. */
13778 #ifdef __STDC__
13779 # include <limits.h>
13780 #else
13781 # include <assert.h>
13782 #endif
13783 Syntax error
13784 _ACEOF
13785 if ac_fn_cxx_try_cpp "$LINENO"; then :
13786
13787 else
13788 # Broken: fails on valid input.
13789 continue
13790 fi
13791 rm -f conftest.err conftest.$ac_ext
13792
13793 # OK, works on sane cases. Now check whether nonexistent headers
13794 # can be detected and how.
13795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13796 /* end confdefs.h. */
13797 #include <ac_nonexistent.h>
13798 _ACEOF
13799 if ac_fn_cxx_try_cpp "$LINENO"; then :
13800 # Broken: success on invalid input.
13801 continue
13802 else
13803 # Passes both tests.
13804 ac_preproc_ok=:
13805 break
13806 fi
13807 rm -f conftest.err conftest.$ac_ext
13808
13809 done
13810 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13811 rm -f conftest.err conftest.$ac_ext
13812 if $ac_preproc_ok; then :
13813
13814 else
13815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13817 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
13818 See \`config.log' for more details." "$LINENO" 5; }
13819 fi
13820
13821 ac_ext=c
13822 ac_cpp='$CPP $CPPFLAGS'
13823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13826
13827 else
13828 _lt_caught_CXX_error=yes
13829 fi
13830
13831 ac_ext=cpp
13832 ac_cpp='$CXXCPP $CPPFLAGS'
13833 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13834 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13835 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13836
13837 archive_cmds_need_lc_CXX=no
13838 allow_undefined_flag_CXX=
13839 always_export_symbols_CXX=no
13840 archive_expsym_cmds_CXX=
13841 compiler_needs_object_CXX=no
13842 export_dynamic_flag_spec_CXX=
13843 hardcode_direct_CXX=no
13844 hardcode_direct_absolute_CXX=no
13845 hardcode_libdir_flag_spec_CXX=
13846 hardcode_libdir_flag_spec_ld_CXX=
13847 hardcode_libdir_separator_CXX=
13848 hardcode_minus_L_CXX=no
13849 hardcode_shlibpath_var_CXX=unsupported
13850 hardcode_automatic_CXX=no
13851 inherit_rpath_CXX=no
13852 module_cmds_CXX=
13853 module_expsym_cmds_CXX=
13854 link_all_deplibs_CXX=unknown
13855 old_archive_cmds_CXX=$old_archive_cmds
13856 reload_flag_CXX=$reload_flag
13857 reload_cmds_CXX=$reload_cmds
13858 no_undefined_flag_CXX=
13859 whole_archive_flag_spec_CXX=
13860 enable_shared_with_static_runtimes_CXX=no
13861
13862 # Source file extension for C++ test sources.
13863 ac_ext=cpp
13864
13865 # Object file extension for compiled C++ test sources.
13866 objext=o
13867 objext_CXX=$objext
13868
13869 # No sense in running all these tests if we already determined that
13870 # the CXX compiler isn't working. Some variables (like enable_shared)
13871 # are currently assumed to apply to all compilers on this platform,
13872 # and will be corrupted by setting them based on a non-working compiler.
13873 if test "$_lt_caught_CXX_error" != yes; then
13874 # Code to be used in simple compile tests
13875 lt_simple_compile_test_code="int some_variable = 0;"
13876
13877 # Code to be used in simple link tests
13878 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13879
13880 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13881
13882
13883
13884
13885
13886
13887 # If no C compiler was specified, use CC.
13888 LTCC=${LTCC-"$CC"}
13889
13890 # If no C compiler flags were specified, use CFLAGS.
13891 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13892
13893 # Allow CC to be a program name with arguments.
13894 compiler=$CC
13895
13896
13897 # save warnings/boilerplate of simple test code
13898 ac_outfile=conftest.$ac_objext
13899 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13900 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13901 _lt_compiler_boilerplate=`cat conftest.err`
13902 $RM conftest*
13903
13904 ac_outfile=conftest.$ac_objext
13905 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13906 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13907 _lt_linker_boilerplate=`cat conftest.err`
13908 $RM -r conftest*
13909
13910
13911 # Allow CC to be a program name with arguments.
13912 lt_save_CC=$CC
13913 lt_save_LD=$LD
13914 lt_save_GCC=$GCC
13915 GCC=$GXX
13916 lt_save_with_gnu_ld=$with_gnu_ld
13917 lt_save_path_LD=$lt_cv_path_LD
13918 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13919 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13920 else
13921 $as_unset lt_cv_prog_gnu_ld
13922 fi
13923 if test -n "${lt_cv_path_LDCXX+set}"; then
13924 lt_cv_path_LD=$lt_cv_path_LDCXX
13925 else
13926 $as_unset lt_cv_path_LD
13927 fi
13928 test -z "${LDCXX+set}" || LD=$LDCXX
13929 CC=${CXX-"c++"}
13930 compiler=$CC
13931 compiler_CXX=$CC
13932 for cc_temp in $compiler""; do
13933 case $cc_temp in
13934 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13935 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13936 \-*) ;;
13937 *) break;;
13938 esac
13939 done
13940 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13941
13942
13943 if test -n "$compiler"; then
13944 # We don't want -fno-exception when compiling C++ code, so set the
13945 # no_builtin_flag separately
13946 if test "$GXX" = yes; then
13947 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13948 else
13949 lt_prog_compiler_no_builtin_flag_CXX=
13950 fi
13951
13952 if test "$GXX" = yes; then
13953 # Set up default GNU C++ configuration
13954
13955
13956
13957 # Check whether --with-gnu-ld was given.
13958 if test "${with_gnu_ld+set}" = set; then :
13959 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13960 else
13961 with_gnu_ld=no
13962 fi
13963
13964 ac_prog=ld
13965 if test "$GCC" = yes; then
13966 # Check if gcc -print-prog-name=ld gives a path.
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13968 $as_echo_n "checking for ld used by $CC... " >&6; }
13969 case $host in
13970 *-*-mingw*)
13971 # gcc leaves a trailing carriage return which upsets mingw
13972 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13973 *)
13974 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13975 esac
13976 case $ac_prog in
13977 # Accept absolute paths.
13978 [\\/]* | ?:[\\/]*)
13979 re_direlt='/[^/][^/]*/\.\./'
13980 # Canonicalize the pathname of ld
13981 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13982 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13983 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13984 done
13985 test -z "$LD" && LD="$ac_prog"
13986 ;;
13987 "")
13988 # If it fails, then pretend we aren't using GCC.
13989 ac_prog=ld
13990 ;;
13991 *)
13992 # If it is relative, then search for the first ld in PATH.
13993 with_gnu_ld=unknown
13994 ;;
13995 esac
13996 elif test "$with_gnu_ld" = yes; then
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13998 $as_echo_n "checking for GNU ld... " >&6; }
13999 else
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14001 $as_echo_n "checking for non-GNU ld... " >&6; }
14002 fi
14003 if test "${lt_cv_path_LD+set}" = set; then :
14004 $as_echo_n "(cached) " >&6
14005 else
14006 if test -z "$LD"; then
14007 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14008 for ac_dir in $PATH; do
14009 IFS="$lt_save_ifs"
14010 test -z "$ac_dir" && ac_dir=.
14011 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14012 lt_cv_path_LD="$ac_dir/$ac_prog"
14013 # Check to see if the program is GNU ld. I'd rather use --version,
14014 # but apparently some variants of GNU ld only accept -v.
14015 # Break only if it was the GNU/non-GNU ld that we prefer.
14016 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14017 *GNU* | *'with BFD'*)
14018 test "$with_gnu_ld" != no && break
14019 ;;
14020 *)
14021 test "$with_gnu_ld" != yes && break
14022 ;;
14023 esac
14024 fi
14025 done
14026 IFS="$lt_save_ifs"
14027 else
14028 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14029 fi
14030 fi
14031
14032 LD="$lt_cv_path_LD"
14033 if test -n "$LD"; then
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14035 $as_echo "$LD" >&6; }
14036 else
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14038 $as_echo "no" >&6; }
14039 fi
14040 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14042 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14043 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14044 $as_echo_n "(cached) " >&6
14045 else
14046 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14047 case `$LD -v 2>&1 </dev/null` in
14048 *GNU* | *'with BFD'*)
14049 lt_cv_prog_gnu_ld=yes
14050 ;;
14051 *)
14052 lt_cv_prog_gnu_ld=no
14053 ;;
14054 esac
14055 fi
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14057 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14058 with_gnu_ld=$lt_cv_prog_gnu_ld
14059
14060
14061
14062
14063
14064
14065
14066 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14067 # archiving commands below assume that GNU ld is being used.
14068 if test "$with_gnu_ld" = yes; then
14069 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14070 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'
14071
14072 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14073 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14074
14075 # If archive_cmds runs LD, not CC, wlarc should be empty
14076 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14077 # investigate it a little bit more. (MM)
14078 wlarc='${wl}'
14079
14080 # ancient GNU ld didn't support --whole-archive et. al.
14081 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14082 $GREP 'no-whole-archive' > /dev/null; then
14083 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14084 else
14085 whole_archive_flag_spec_CXX=
14086 fi
14087 else
14088 with_gnu_ld=no
14089 wlarc=
14090
14091 # A generic and very simple default shared library creation
14092 # command for GNU C++ for the case where it uses the native
14093 # linker, instead of GNU ld. If possible, this setting should
14094 # overridden to take advantage of the native linker features on
14095 # the platform it is being used on.
14096 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14097 fi
14098
14099 # Commands to make compiler produce verbose output that lists
14100 # what "hidden" libraries, object files and flags are used when
14101 # linking a shared library.
14102 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14103
14104 else
14105 GXX=no
14106 with_gnu_ld=no
14107 wlarc=
14108 fi
14109
14110 # PORTME: fill in a description of your system's C++ link characteristics
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14112 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14113 ld_shlibs_CXX=yes
14114 case $host_os in
14115 aix3*)
14116 # FIXME: insert proper C++ library support
14117 ld_shlibs_CXX=no
14118 ;;
14119 aix[4-9]*)
14120 if test "$host_cpu" = ia64; then
14121 # On IA64, the linker does run time linking by default, so we don't
14122 # have to do anything special.
14123 aix_use_runtimelinking=no
14124 exp_sym_flag='-Bexport'
14125 no_entry_flag=""
14126 else
14127 aix_use_runtimelinking=no
14128
14129 # Test if we are trying to use run time linking or normal
14130 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14131 # need to do runtime linking.
14132 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14133 for ld_flag in $LDFLAGS; do
14134 case $ld_flag in
14135 *-brtl*)
14136 aix_use_runtimelinking=yes
14137 break
14138 ;;
14139 esac
14140 done
14141 ;;
14142 esac
14143
14144 exp_sym_flag='-bexport'
14145 no_entry_flag='-bnoentry'
14146 fi
14147
14148 # When large executables or shared objects are built, AIX ld can
14149 # have problems creating the table of contents. If linking a library
14150 # or program results in "error TOC overflow" add -mminimal-toc to
14151 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14152 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14153
14154 archive_cmds_CXX=''
14155 hardcode_direct_CXX=yes
14156 hardcode_direct_absolute_CXX=yes
14157 hardcode_libdir_separator_CXX=':'
14158 link_all_deplibs_CXX=yes
14159 file_list_spec_CXX='${wl}-f,'
14160
14161 if test "$GXX" = yes; then
14162 case $host_os in aix4.[012]|aix4.[012].*)
14163 # We only want to do this on AIX 4.2 and lower, the check
14164 # below for broken collect2 doesn't work under 4.3+
14165 collect2name=`${CC} -print-prog-name=collect2`
14166 if test -f "$collect2name" &&
14167 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14168 then
14169 # We have reworked collect2
14170 :
14171 else
14172 # We have old collect2
14173 hardcode_direct_CXX=unsupported
14174 # It fails to find uninstalled libraries when the uninstalled
14175 # path is not listed in the libpath. Setting hardcode_minus_L
14176 # to unsupported forces relinking
14177 hardcode_minus_L_CXX=yes
14178 hardcode_libdir_flag_spec_CXX='-L$libdir'
14179 hardcode_libdir_separator_CXX=
14180 fi
14181 esac
14182 shared_flag='-shared'
14183 if test "$aix_use_runtimelinking" = yes; then
14184 shared_flag="$shared_flag "'${wl}-G'
14185 fi
14186 else
14187 # not using gcc
14188 if test "$host_cpu" = ia64; then
14189 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14190 # chokes on -Wl,-G. The following line is correct:
14191 shared_flag='-G'
14192 else
14193 if test "$aix_use_runtimelinking" = yes; then
14194 shared_flag='${wl}-G'
14195 else
14196 shared_flag='${wl}-bM:SRE'
14197 fi
14198 fi
14199 fi
14200
14201 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14202 # It seems that -bexpall does not export symbols beginning with
14203 # underscore (_), so it is better to generate a list of symbols to
14204 # export.
14205 always_export_symbols_CXX=yes
14206 if test "$aix_use_runtimelinking" = yes; then
14207 # Warning - without using the other runtime loading flags (-brtl),
14208 # -berok will link without error, but may produce a broken library.
14209 allow_undefined_flag_CXX='-berok'
14210 # Determine the default libpath from the value encoded in an empty
14211 # executable.
14212 if test x$gcc_no_link = xyes; then
14213 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14214 fi
14215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14216 /* end confdefs.h. */
14217
14218 int
14219 main ()
14220 {
14221
14222 ;
14223 return 0;
14224 }
14225 _ACEOF
14226 if ac_fn_cxx_try_link "$LINENO"; then :
14227
14228 lt_aix_libpath_sed='
14229 /Import File Strings/,/^$/ {
14230 /^0/ {
14231 s/^0 *\(.*\)$/\1/
14232 p
14233 }
14234 }'
14235 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14236 # Check for a 64-bit object if we didn't find anything.
14237 if test -z "$aix_libpath"; then
14238 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14239 fi
14240 fi
14241 rm -f core conftest.err conftest.$ac_objext \
14242 conftest$ac_exeext conftest.$ac_ext
14243 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14244
14245 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14246
14247 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"
14248 else
14249 if test "$host_cpu" = ia64; then
14250 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14251 allow_undefined_flag_CXX="-z nodefs"
14252 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"
14253 else
14254 # Determine the default libpath from the value encoded in an
14255 # empty executable.
14256 if test x$gcc_no_link = xyes; then
14257 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14258 fi
14259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14260 /* end confdefs.h. */
14261
14262 int
14263 main ()
14264 {
14265
14266 ;
14267 return 0;
14268 }
14269 _ACEOF
14270 if ac_fn_cxx_try_link "$LINENO"; then :
14271
14272 lt_aix_libpath_sed='
14273 /Import File Strings/,/^$/ {
14274 /^0/ {
14275 s/^0 *\(.*\)$/\1/
14276 p
14277 }
14278 }'
14279 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14280 # Check for a 64-bit object if we didn't find anything.
14281 if test -z "$aix_libpath"; then
14282 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14283 fi
14284 fi
14285 rm -f core conftest.err conftest.$ac_objext \
14286 conftest$ac_exeext conftest.$ac_ext
14287 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14288
14289 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14290 # Warning - without using the other run time loading flags,
14291 # -berok will link without error, but may produce a broken library.
14292 no_undefined_flag_CXX=' ${wl}-bernotok'
14293 allow_undefined_flag_CXX=' ${wl}-berok'
14294 if test "$with_gnu_ld" = yes; then
14295 # We only use this code for GNU lds that support --whole-archive.
14296 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14297 else
14298 # Exported symbols can be pulled into shared objects from archives
14299 whole_archive_flag_spec_CXX='$convenience'
14300 fi
14301 archive_cmds_need_lc_CXX=yes
14302 # This is similar to how AIX traditionally builds its shared
14303 # libraries.
14304 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14305 fi
14306 fi
14307 ;;
14308
14309 beos*)
14310 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14311 allow_undefined_flag_CXX=unsupported
14312 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14313 # support --undefined. This deserves some investigation. FIXME
14314 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14315 else
14316 ld_shlibs_CXX=no
14317 fi
14318 ;;
14319
14320 chorus*)
14321 case $cc_basename in
14322 *)
14323 # FIXME: insert proper C++ library support
14324 ld_shlibs_CXX=no
14325 ;;
14326 esac
14327 ;;
14328
14329 cygwin* | mingw* | pw32* | cegcc*)
14330 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14331 # as there is no search path for DLLs.
14332 hardcode_libdir_flag_spec_CXX='-L$libdir'
14333 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14334 allow_undefined_flag_CXX=unsupported
14335 always_export_symbols_CXX=no
14336 enable_shared_with_static_runtimes_CXX=yes
14337
14338 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14339 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'
14340 # If the export-symbols file already is a .def file (1st line
14341 # is EXPORTS), use it as is; otherwise, prepend...
14342 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14343 cp $export_symbols $output_objdir/$soname.def;
14344 else
14345 echo EXPORTS > $output_objdir/$soname.def;
14346 cat $export_symbols >> $output_objdir/$soname.def;
14347 fi~
14348 $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'
14349 else
14350 ld_shlibs_CXX=no
14351 fi
14352 ;;
14353 darwin* | rhapsody*)
14354
14355
14356 archive_cmds_need_lc_CXX=no
14357 hardcode_direct_CXX=no
14358 hardcode_automatic_CXX=yes
14359 hardcode_shlibpath_var_CXX=unsupported
14360 if test "$lt_cv_ld_force_load" = "yes"; then
14361 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\"`'
14362 else
14363 whole_archive_flag_spec_CXX=''
14364 fi
14365 link_all_deplibs_CXX=yes
14366 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14367 case $cc_basename in
14368 ifort*) _lt_dar_can_shared=yes ;;
14369 *) _lt_dar_can_shared=$GCC ;;
14370 esac
14371 if test "$_lt_dar_can_shared" = "yes"; then
14372 output_verbose_link_cmd=func_echo_all
14373 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}"
14374 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14375 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}"
14376 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}"
14377 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14378 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}"
14379 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}"
14380 fi
14381
14382 else
14383 ld_shlibs_CXX=no
14384 fi
14385
14386 ;;
14387
14388 dgux*)
14389 case $cc_basename in
14390 ec++*)
14391 # FIXME: insert proper C++ library support
14392 ld_shlibs_CXX=no
14393 ;;
14394 ghcx*)
14395 # Green Hills C++ Compiler
14396 # FIXME: insert proper C++ library support
14397 ld_shlibs_CXX=no
14398 ;;
14399 *)
14400 # FIXME: insert proper C++ library support
14401 ld_shlibs_CXX=no
14402 ;;
14403 esac
14404 ;;
14405
14406 freebsd2.*)
14407 # C++ shared libraries reported to be fairly broken before
14408 # switch to ELF
14409 ld_shlibs_CXX=no
14410 ;;
14411
14412 freebsd-elf*)
14413 archive_cmds_need_lc_CXX=no
14414 ;;
14415
14416 freebsd* | dragonfly*)
14417 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14418 # conventions
14419 ld_shlibs_CXX=yes
14420 ;;
14421
14422 gnu*)
14423 ;;
14424
14425 haiku*)
14426 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14427 link_all_deplibs_CXX=yes
14428 ;;
14429
14430 hpux9*)
14431 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14432 hardcode_libdir_separator_CXX=:
14433 export_dynamic_flag_spec_CXX='${wl}-E'
14434 hardcode_direct_CXX=yes
14435 hardcode_minus_L_CXX=yes # Not in the search PATH,
14436 # but as the default
14437 # location of the library.
14438
14439 case $cc_basename in
14440 CC*)
14441 # FIXME: insert proper C++ library support
14442 ld_shlibs_CXX=no
14443 ;;
14444 aCC*)
14445 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'
14446 # Commands to make compiler produce verbose output that lists
14447 # what "hidden" libraries, object files and flags are used when
14448 # linking a shared library.
14449 #
14450 # There doesn't appear to be a way to prevent this compiler from
14451 # explicitly linking system object files so we need to strip them
14452 # from the output so that they don't get included in the library
14453 # dependencies.
14454 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"'
14455 ;;
14456 *)
14457 if test "$GXX" = yes; then
14458 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'
14459 else
14460 # FIXME: insert proper C++ library support
14461 ld_shlibs_CXX=no
14462 fi
14463 ;;
14464 esac
14465 ;;
14466
14467 hpux10*|hpux11*)
14468 if test $with_gnu_ld = no; then
14469 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14470 hardcode_libdir_separator_CXX=:
14471
14472 case $host_cpu in
14473 hppa*64*|ia64*)
14474 ;;
14475 *)
14476 export_dynamic_flag_spec_CXX='${wl}-E'
14477 ;;
14478 esac
14479 fi
14480 case $host_cpu in
14481 hppa*64*|ia64*)
14482 hardcode_direct_CXX=no
14483 hardcode_shlibpath_var_CXX=no
14484 ;;
14485 *)
14486 hardcode_direct_CXX=yes
14487 hardcode_direct_absolute_CXX=yes
14488 hardcode_minus_L_CXX=yes # Not in the search PATH,
14489 # but as the default
14490 # location of the library.
14491 ;;
14492 esac
14493
14494 case $cc_basename in
14495 CC*)
14496 # FIXME: insert proper C++ library support
14497 ld_shlibs_CXX=no
14498 ;;
14499 aCC*)
14500 case $host_cpu in
14501 hppa*64*)
14502 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14503 ;;
14504 ia64*)
14505 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14506 ;;
14507 *)
14508 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14509 ;;
14510 esac
14511 # Commands to make compiler produce verbose output that lists
14512 # what "hidden" libraries, object files and flags are used when
14513 # linking a shared library.
14514 #
14515 # There doesn't appear to be a way to prevent this compiler from
14516 # explicitly linking system object files so we need to strip them
14517 # from the output so that they don't get included in the library
14518 # dependencies.
14519 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"'
14520 ;;
14521 *)
14522 if test "$GXX" = yes; then
14523 if test $with_gnu_ld = no; then
14524 case $host_cpu in
14525 hppa*64*)
14526 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14527 ;;
14528 ia64*)
14529 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14530 ;;
14531 *)
14532 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'
14533 ;;
14534 esac
14535 fi
14536 else
14537 # FIXME: insert proper C++ library support
14538 ld_shlibs_CXX=no
14539 fi
14540 ;;
14541 esac
14542 ;;
14543
14544 interix[3-9]*)
14545 hardcode_direct_CXX=no
14546 hardcode_shlibpath_var_CXX=no
14547 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14548 export_dynamic_flag_spec_CXX='${wl}-E'
14549 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14550 # Instead, shared libraries are loaded at an image base (0x10000000 by
14551 # default) and relocated if they conflict, which is a slow very memory
14552 # consuming and fragmenting process. To avoid this, we pick a random,
14553 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14554 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14555 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'
14556 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'
14557 ;;
14558 irix5* | irix6*)
14559 case $cc_basename in
14560 CC*)
14561 # SGI C++
14562 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'
14563
14564 # Archives containing C++ object files must be created using
14565 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14566 # necessary to make sure instantiated templates are included
14567 # in the archive.
14568 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14569 ;;
14570 *)
14571 if test "$GXX" = yes; then
14572 if test "$with_gnu_ld" = no; then
14573 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'
14574 else
14575 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'
14576 fi
14577 fi
14578 link_all_deplibs_CXX=yes
14579 ;;
14580 esac
14581 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14582 hardcode_libdir_separator_CXX=:
14583 inherit_rpath_CXX=yes
14584 ;;
14585
14586 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14587 case $cc_basename in
14588 KCC*)
14589 # Kuck and Associates, Inc. (KAI) C++ Compiler
14590
14591 # KCC will only create a shared library if the output file
14592 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14593 # to its proper name (with version) after linking.
14594 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'
14595 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'
14596 # Commands to make compiler produce verbose output that lists
14597 # what "hidden" libraries, object files and flags are used when
14598 # linking a shared library.
14599 #
14600 # There doesn't appear to be a way to prevent this compiler from
14601 # explicitly linking system object files so we need to strip them
14602 # from the output so that they don't get included in the library
14603 # dependencies.
14604 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"'
14605
14606 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14607 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14608
14609 # Archives containing C++ object files must be created using
14610 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14611 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14612 ;;
14613 icpc* | ecpc* )
14614 # Intel C++
14615 with_gnu_ld=yes
14616 # version 8.0 and above of icpc choke on multiply defined symbols
14617 # if we add $predep_objects and $postdep_objects, however 7.1 and
14618 # earlier do not add the objects themselves.
14619 case `$CC -V 2>&1` in
14620 *"Version 7."*)
14621 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14622 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'
14623 ;;
14624 *) # Version 8.0 or newer
14625 tmp_idyn=
14626 case $host_cpu in
14627 ia64*) tmp_idyn=' -i_dynamic';;
14628 esac
14629 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14630 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'
14631 ;;
14632 esac
14633 archive_cmds_need_lc_CXX=no
14634 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14635 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14636 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14637 ;;
14638 pgCC* | pgcpp*)
14639 # Portland Group C++ compiler
14640 case `$CC -V` in
14641 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14642 prelink_cmds_CXX='tpldir=Template.dir~
14643 rm -rf $tpldir~
14644 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14645 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14646 old_archive_cmds_CXX='tpldir=Template.dir~
14647 rm -rf $tpldir~
14648 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14649 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14650 $RANLIB $oldlib'
14651 archive_cmds_CXX='tpldir=Template.dir~
14652 rm -rf $tpldir~
14653 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14654 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14655 archive_expsym_cmds_CXX='tpldir=Template.dir~
14656 rm -rf $tpldir~
14657 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14658 $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'
14659 ;;
14660 *) # Version 6 and above use weak symbols
14661 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14662 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'
14663 ;;
14664 esac
14665
14666 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14667 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14668 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'
14669 ;;
14670 cxx*)
14671 # Compaq C++
14672 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14673 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'
14674
14675 runpath_var=LD_RUN_PATH
14676 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14677 hardcode_libdir_separator_CXX=:
14678
14679 # Commands to make compiler produce verbose output that lists
14680 # what "hidden" libraries, object files and flags are used when
14681 # linking a shared library.
14682 #
14683 # There doesn't appear to be a way to prevent this compiler from
14684 # explicitly linking system object files so we need to strip them
14685 # from the output so that they don't get included in the library
14686 # dependencies.
14687 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'
14688 ;;
14689 xl* | mpixl* | bgxl*)
14690 # IBM XL 8.0 on PPC, with GNU ld
14691 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14692 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14693 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14694 if test "x$supports_anon_versioning" = xyes; then
14695 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14696 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14697 echo "local: *; };" >> $output_objdir/$libname.ver~
14698 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14699 fi
14700 ;;
14701 *)
14702 case `$CC -V 2>&1 | sed 5q` in
14703 *Sun\ C*)
14704 # Sun C++ 5.9
14705 no_undefined_flag_CXX=' -zdefs'
14706 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14707 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'
14708 hardcode_libdir_flag_spec_CXX='-R$libdir'
14709 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'
14710 compiler_needs_object_CXX=yes
14711
14712 # Not sure whether something based on
14713 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14714 # would be better.
14715 output_verbose_link_cmd='func_echo_all'
14716
14717 # Archives containing C++ object files must be created using
14718 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14719 # necessary to make sure instantiated templates are included
14720 # in the archive.
14721 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14722 ;;
14723 esac
14724 ;;
14725 esac
14726 ;;
14727
14728 lynxos*)
14729 # FIXME: insert proper C++ library support
14730 ld_shlibs_CXX=no
14731 ;;
14732
14733 m88k*)
14734 # FIXME: insert proper C++ library support
14735 ld_shlibs_CXX=no
14736 ;;
14737
14738 mvs*)
14739 case $cc_basename in
14740 cxx*)
14741 # FIXME: insert proper C++ library support
14742 ld_shlibs_CXX=no
14743 ;;
14744 *)
14745 # FIXME: insert proper C++ library support
14746 ld_shlibs_CXX=no
14747 ;;
14748 esac
14749 ;;
14750
14751 netbsd*)
14752 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14753 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14754 wlarc=
14755 hardcode_libdir_flag_spec_CXX='-R$libdir'
14756 hardcode_direct_CXX=yes
14757 hardcode_shlibpath_var_CXX=no
14758 fi
14759 # Workaround some broken pre-1.5 toolchains
14760 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14761 ;;
14762
14763 *nto* | *qnx*)
14764 ld_shlibs_CXX=yes
14765 ;;
14766
14767 openbsd2*)
14768 # C++ shared libraries are fairly broken
14769 ld_shlibs_CXX=no
14770 ;;
14771
14772 openbsd*)
14773 if test -f /usr/libexec/ld.so; then
14774 hardcode_direct_CXX=yes
14775 hardcode_shlibpath_var_CXX=no
14776 hardcode_direct_absolute_CXX=yes
14777 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14778 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14779 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14780 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14781 export_dynamic_flag_spec_CXX='${wl}-E'
14782 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14783 fi
14784 output_verbose_link_cmd=func_echo_all
14785 else
14786 ld_shlibs_CXX=no
14787 fi
14788 ;;
14789
14790 osf3* | osf4* | osf5*)
14791 case $cc_basename in
14792 KCC*)
14793 # Kuck and Associates, Inc. (KAI) C++ Compiler
14794
14795 # KCC will only create a shared library if the output file
14796 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14797 # to its proper name (with version) after linking.
14798 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'
14799
14800 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14801 hardcode_libdir_separator_CXX=:
14802
14803 # Archives containing C++ object files must be created using
14804 # the KAI C++ compiler.
14805 case $host in
14806 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14807 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14808 esac
14809 ;;
14810 RCC*)
14811 # Rational C++ 2.4.1
14812 # FIXME: insert proper C++ library support
14813 ld_shlibs_CXX=no
14814 ;;
14815 cxx*)
14816 case $host in
14817 osf3*)
14818 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14819 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'
14820 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14821 ;;
14822 *)
14823 allow_undefined_flag_CXX=' -expect_unresolved \*'
14824 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'
14825 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14826 echo "-hidden">> $lib.exp~
14827 $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~
14828 $RM $lib.exp'
14829 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14830 ;;
14831 esac
14832
14833 hardcode_libdir_separator_CXX=:
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 #
14839 # There doesn't appear to be a way to prevent this compiler from
14840 # explicitly linking system object files so we need to strip them
14841 # from the output so that they don't get included in the library
14842 # dependencies.
14843 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"'
14844 ;;
14845 *)
14846 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14847 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14848 case $host in
14849 osf3*)
14850 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'
14851 ;;
14852 *)
14853 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'
14854 ;;
14855 esac
14856
14857 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14858 hardcode_libdir_separator_CXX=:
14859
14860 # Commands to make compiler produce verbose output that lists
14861 # what "hidden" libraries, object files and flags are used when
14862 # linking a shared library.
14863 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14864
14865 else
14866 # FIXME: insert proper C++ library support
14867 ld_shlibs_CXX=no
14868 fi
14869 ;;
14870 esac
14871 ;;
14872
14873 psos*)
14874 # FIXME: insert proper C++ library support
14875 ld_shlibs_CXX=no
14876 ;;
14877
14878 sunos4*)
14879 case $cc_basename in
14880 CC*)
14881 # Sun C++ 4.x
14882 # FIXME: insert proper C++ library support
14883 ld_shlibs_CXX=no
14884 ;;
14885 lcc*)
14886 # Lucid
14887 # FIXME: insert proper C++ library support
14888 ld_shlibs_CXX=no
14889 ;;
14890 *)
14891 # FIXME: insert proper C++ library support
14892 ld_shlibs_CXX=no
14893 ;;
14894 esac
14895 ;;
14896
14897 solaris*)
14898 case $cc_basename in
14899 CC*)
14900 # Sun C++ 4.2, 5.x and Centerline C++
14901 archive_cmds_need_lc_CXX=yes
14902 no_undefined_flag_CXX=' -zdefs'
14903 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14904 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14905 $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'
14906
14907 hardcode_libdir_flag_spec_CXX='-R$libdir'
14908 hardcode_shlibpath_var_CXX=no
14909 case $host_os in
14910 solaris2.[0-5] | solaris2.[0-5].*) ;;
14911 *)
14912 # The compiler driver will combine and reorder linker options,
14913 # but understands `-z linker_flag'.
14914 # Supported since Solaris 2.6 (maybe 2.5.1?)
14915 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14916 ;;
14917 esac
14918 link_all_deplibs_CXX=yes
14919
14920 output_verbose_link_cmd='func_echo_all'
14921
14922 # Archives containing C++ object files must be created using
14923 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14924 # necessary to make sure instantiated templates are included
14925 # in the archive.
14926 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14927 ;;
14928 gcx*)
14929 # Green Hills C++ Compiler
14930 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14931
14932 # The C++ compiler must be used to create the archive.
14933 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14934 ;;
14935 *)
14936 # GNU C++ compiler with Solaris linker
14937 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14938 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14939 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14940 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14941 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14942 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14943
14944 # Commands to make compiler produce verbose output that lists
14945 # what "hidden" libraries, object files and flags are used when
14946 # linking a shared library.
14947 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14948 else
14949 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14950 # platform.
14951 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14952 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14953 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14954
14955 # Commands to make compiler produce verbose output that lists
14956 # what "hidden" libraries, object files and flags are used when
14957 # linking a shared library.
14958 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14959 fi
14960
14961 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14962 case $host_os in
14963 solaris2.[0-5] | solaris2.[0-5].*) ;;
14964 *)
14965 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14966 ;;
14967 esac
14968 fi
14969 ;;
14970 esac
14971 ;;
14972
14973 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14974 no_undefined_flag_CXX='${wl}-z,text'
14975 archive_cmds_need_lc_CXX=no
14976 hardcode_shlibpath_var_CXX=no
14977 runpath_var='LD_RUN_PATH'
14978
14979 case $cc_basename in
14980 CC*)
14981 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14982 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14983 ;;
14984 *)
14985 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14986 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14987 ;;
14988 esac
14989 ;;
14990
14991 sysv5* | sco3.2v5* | sco5v6*)
14992 # Note: We can NOT use -z defs as we might desire, because we do not
14993 # link with -lc, and that would cause any symbols used from libc to
14994 # always be unresolved, which means just about no library would
14995 # ever link correctly. If we're not using GNU ld we use -z text
14996 # though, which does catch some bad symbols but isn't as heavy-handed
14997 # as -z defs.
14998 no_undefined_flag_CXX='${wl}-z,text'
14999 allow_undefined_flag_CXX='${wl}-z,nodefs'
15000 archive_cmds_need_lc_CXX=no
15001 hardcode_shlibpath_var_CXX=no
15002 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15003 hardcode_libdir_separator_CXX=':'
15004 link_all_deplibs_CXX=yes
15005 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15006 runpath_var='LD_RUN_PATH'
15007
15008 case $cc_basename in
15009 CC*)
15010 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15011 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15012 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15013 '"$old_archive_cmds_CXX"
15014 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15015 '"$reload_cmds_CXX"
15016 ;;
15017 *)
15018 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15019 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15020 ;;
15021 esac
15022 ;;
15023
15024 tandem*)
15025 case $cc_basename in
15026 NCC*)
15027 # NonStop-UX NCC 3.20
15028 # FIXME: insert proper C++ library support
15029 ld_shlibs_CXX=no
15030 ;;
15031 *)
15032 # FIXME: insert proper C++ library support
15033 ld_shlibs_CXX=no
15034 ;;
15035 esac
15036 ;;
15037
15038 vxworks*)
15039 # FIXME: insert proper C++ library support
15040 ld_shlibs_CXX=no
15041 ;;
15042
15043 *)
15044 # FIXME: insert proper C++ library support
15045 ld_shlibs_CXX=no
15046 ;;
15047 esac
15048
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15050 $as_echo "$ld_shlibs_CXX" >&6; }
15051 test "$ld_shlibs_CXX" = no && can_build_shared=no
15052
15053 GCC_CXX="$GXX"
15054 LD_CXX="$LD"
15055
15056 ## CAVEAT EMPTOR:
15057 ## There is no encapsulation within the following macros, do not change
15058 ## the running order or otherwise move them around unless you know exactly
15059 ## what you are doing...
15060 # Dependencies to place before and after the object being linked:
15061 predep_objects_CXX=
15062 postdep_objects_CXX=
15063 predeps_CXX=
15064 postdeps_CXX=
15065 compiler_lib_search_path_CXX=
15066
15067 cat > conftest.$ac_ext <<_LT_EOF
15068 class Foo
15069 {
15070 public:
15071 Foo (void) { a = 0; }
15072 private:
15073 int a;
15074 };
15075 _LT_EOF
15076
15077 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15078 (eval $ac_compile) 2>&5
15079 ac_status=$?
15080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15081 test $ac_status = 0; }; then
15082 # Parse the compiler output and extract the necessary
15083 # objects, libraries and library flags.
15084
15085 # Sentinel used to keep track of whether or not we are before
15086 # the conftest object file.
15087 pre_test_object_deps_done=no
15088
15089 for p in `eval "$output_verbose_link_cmd"`; do
15090 case $p in
15091
15092 -L* | -R* | -l*)
15093 # Some compilers place space between "-{L,R}" and the path.
15094 # Remove the space.
15095 if test $p = "-L" ||
15096 test $p = "-R"; then
15097 prev=$p
15098 continue
15099 else
15100 prev=
15101 fi
15102
15103 if test "$pre_test_object_deps_done" = no; then
15104 case $p in
15105 -L* | -R*)
15106 # Internal compiler library paths should come after those
15107 # provided the user. The postdeps already come after the
15108 # user supplied libs so there is no need to process them.
15109 if test -z "$compiler_lib_search_path_CXX"; then
15110 compiler_lib_search_path_CXX="${prev}${p}"
15111 else
15112 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15113 fi
15114 ;;
15115 # The "-l" case would never come before the object being
15116 # linked, so don't bother handling this case.
15117 esac
15118 else
15119 if test -z "$postdeps_CXX"; then
15120 postdeps_CXX="${prev}${p}"
15121 else
15122 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15123 fi
15124 fi
15125 ;;
15126
15127 *.$objext)
15128 # This assumes that the test object file only shows up
15129 # once in the compiler output.
15130 if test "$p" = "conftest.$objext"; then
15131 pre_test_object_deps_done=yes
15132 continue
15133 fi
15134
15135 if test "$pre_test_object_deps_done" = no; then
15136 if test -z "$predep_objects_CXX"; then
15137 predep_objects_CXX="$p"
15138 else
15139 predep_objects_CXX="$predep_objects_CXX $p"
15140 fi
15141 else
15142 if test -z "$postdep_objects_CXX"; then
15143 postdep_objects_CXX="$p"
15144 else
15145 postdep_objects_CXX="$postdep_objects_CXX $p"
15146 fi
15147 fi
15148 ;;
15149
15150 *) ;; # Ignore the rest.
15151
15152 esac
15153 done
15154
15155 # Clean up.
15156 rm -f a.out a.exe
15157 else
15158 echo "libtool.m4: error: problem compiling CXX test program"
15159 fi
15160
15161 $RM -f confest.$objext
15162
15163 # PORTME: override above test on systems where it is broken
15164 case $host_os in
15165 interix[3-9]*)
15166 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15167 # hack all around it, let's just trust "g++" to DTRT.
15168 predep_objects_CXX=
15169 postdep_objects_CXX=
15170 postdeps_CXX=
15171 ;;
15172
15173 linux*)
15174 case `$CC -V 2>&1 | sed 5q` in
15175 *Sun\ C*)
15176 # Sun C++ 5.9
15177
15178 # The more standards-conforming stlport4 library is
15179 # incompatible with the Cstd library. Avoid specifying
15180 # it if it's in CXXFLAGS. Ignore libCrun as
15181 # -library=stlport4 depends on it.
15182 case " $CXX $CXXFLAGS " in
15183 *" -library=stlport4 "*)
15184 solaris_use_stlport4=yes
15185 ;;
15186 esac
15187
15188 if test "$solaris_use_stlport4" != yes; then
15189 postdeps_CXX='-library=Cstd -library=Crun'
15190 fi
15191 ;;
15192 esac
15193 ;;
15194
15195 solaris*)
15196 case $cc_basename in
15197 CC*)
15198 # The more standards-conforming stlport4 library is
15199 # incompatible with the Cstd library. Avoid specifying
15200 # it if it's in CXXFLAGS. Ignore libCrun as
15201 # -library=stlport4 depends on it.
15202 case " $CXX $CXXFLAGS " in
15203 *" -library=stlport4 "*)
15204 solaris_use_stlport4=yes
15205 ;;
15206 esac
15207
15208 # Adding this requires a known-good setup of shared libraries for
15209 # Sun compiler versions before 5.6, else PIC objects from an old
15210 # archive will be linked into the output, leading to subtle bugs.
15211 if test "$solaris_use_stlport4" != yes; then
15212 postdeps_CXX='-library=Cstd -library=Crun'
15213 fi
15214 ;;
15215 esac
15216 ;;
15217 esac
15218
15219
15220 case " $postdeps_CXX " in
15221 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15222 esac
15223 compiler_lib_search_dirs_CXX=
15224 if test -n "${compiler_lib_search_path_CXX}"; then
15225 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15226 fi
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258 lt_prog_compiler_wl_CXX=
15259 lt_prog_compiler_pic_CXX=
15260 lt_prog_compiler_static_CXX=
15261
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15263 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15264
15265 # C++ specific cases for pic, static, wl, etc.
15266 if test "$GXX" = yes; then
15267 lt_prog_compiler_wl_CXX='-Wl,'
15268 lt_prog_compiler_static_CXX='-static'
15269
15270 case $host_os in
15271 aix*)
15272 # All AIX code is PIC.
15273 if test "$host_cpu" = ia64; then
15274 # AIX 5 now supports IA64 processor
15275 lt_prog_compiler_static_CXX='-Bstatic'
15276 fi
15277 ;;
15278
15279 amigaos*)
15280 case $host_cpu in
15281 powerpc)
15282 # see comment about AmigaOS4 .so support
15283 lt_prog_compiler_pic_CXX='-fPIC'
15284 ;;
15285 m68k)
15286 # FIXME: we need at least 68020 code to build shared libraries, but
15287 # adding the `-m68020' flag to GCC prevents building anything better,
15288 # like `-m68040'.
15289 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15290 ;;
15291 esac
15292 ;;
15293
15294 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15295 # PIC is the default for these OSes.
15296 ;;
15297 mingw* | cygwin* | os2* | pw32* | cegcc*)
15298 # This hack is so that the source file can tell whether it is being
15299 # built for inclusion in a dll (and should export symbols for example).
15300 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15301 # (--disable-auto-import) libraries
15302 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15303 ;;
15304 darwin* | rhapsody*)
15305 # PIC is the default on this platform
15306 # Common symbols not allowed in MH_DYLIB files
15307 lt_prog_compiler_pic_CXX='-fno-common'
15308 ;;
15309 *djgpp*)
15310 # DJGPP does not support shared libraries at all
15311 lt_prog_compiler_pic_CXX=
15312 ;;
15313 haiku*)
15314 # PIC is the default for Haiku.
15315 # The "-static" flag exists, but is broken.
15316 lt_prog_compiler_static_CXX=
15317 ;;
15318 interix[3-9]*)
15319 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15320 # Instead, we relocate shared libraries at runtime.
15321 ;;
15322 sysv4*MP*)
15323 if test -d /usr/nec; then
15324 lt_prog_compiler_pic_CXX=-Kconform_pic
15325 fi
15326 ;;
15327 hpux*)
15328 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15329 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15330 # sets the default TLS model and affects inlining.
15331 case $host_cpu in
15332 hppa*64*)
15333 ;;
15334 *)
15335 lt_prog_compiler_pic_CXX='-fPIC'
15336 ;;
15337 esac
15338 ;;
15339 *qnx* | *nto*)
15340 # QNX uses GNU C++, but need to define -shared option too, otherwise
15341 # it will coredump.
15342 lt_prog_compiler_pic_CXX='-fPIC -shared'
15343 ;;
15344 *)
15345 lt_prog_compiler_pic_CXX='-fPIC'
15346 ;;
15347 esac
15348 else
15349 case $host_os in
15350 aix[4-9]*)
15351 # All AIX code is PIC.
15352 if test "$host_cpu" = ia64; then
15353 # AIX 5 now supports IA64 processor
15354 lt_prog_compiler_static_CXX='-Bstatic'
15355 else
15356 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15357 fi
15358 ;;
15359 chorus*)
15360 case $cc_basename in
15361 cxch68*)
15362 # Green Hills C++ Compiler
15363 # _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"
15364 ;;
15365 esac
15366 ;;
15367 dgux*)
15368 case $cc_basename in
15369 ec++*)
15370 lt_prog_compiler_pic_CXX='-KPIC'
15371 ;;
15372 ghcx*)
15373 # Green Hills C++ Compiler
15374 lt_prog_compiler_pic_CXX='-pic'
15375 ;;
15376 *)
15377 ;;
15378 esac
15379 ;;
15380 freebsd* | dragonfly*)
15381 # FreeBSD uses GNU C++
15382 ;;
15383 hpux9* | hpux10* | hpux11*)
15384 case $cc_basename in
15385 CC*)
15386 lt_prog_compiler_wl_CXX='-Wl,'
15387 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15388 if test "$host_cpu" != ia64; then
15389 lt_prog_compiler_pic_CXX='+Z'
15390 fi
15391 ;;
15392 aCC*)
15393 lt_prog_compiler_wl_CXX='-Wl,'
15394 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15395 case $host_cpu in
15396 hppa*64*|ia64*)
15397 # +Z the default
15398 ;;
15399 *)
15400 lt_prog_compiler_pic_CXX='+Z'
15401 ;;
15402 esac
15403 ;;
15404 *)
15405 ;;
15406 esac
15407 ;;
15408 interix*)
15409 # This is c89, which is MS Visual C++ (no shared libs)
15410 # Anyone wants to do a port?
15411 ;;
15412 irix5* | irix6* | nonstopux*)
15413 case $cc_basename in
15414 CC*)
15415 lt_prog_compiler_wl_CXX='-Wl,'
15416 lt_prog_compiler_static_CXX='-non_shared'
15417 # CC pic flag -KPIC is the default.
15418 ;;
15419 *)
15420 ;;
15421 esac
15422 ;;
15423 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15424 case $cc_basename in
15425 KCC*)
15426 # KAI C++ Compiler
15427 lt_prog_compiler_wl_CXX='--backend -Wl,'
15428 lt_prog_compiler_pic_CXX='-fPIC'
15429 ;;
15430 ecpc* )
15431 # old Intel C++ for x86_64 which still supported -KPIC.
15432 lt_prog_compiler_wl_CXX='-Wl,'
15433 lt_prog_compiler_pic_CXX='-KPIC'
15434 lt_prog_compiler_static_CXX='-static'
15435 ;;
15436 icpc* )
15437 # Intel C++, used to be incompatible with GCC.
15438 # ICC 10 doesn't accept -KPIC any more.
15439 lt_prog_compiler_wl_CXX='-Wl,'
15440 lt_prog_compiler_pic_CXX='-fPIC'
15441 lt_prog_compiler_static_CXX='-static'
15442 ;;
15443 pgCC* | pgcpp*)
15444 # Portland Group C++ compiler
15445 lt_prog_compiler_wl_CXX='-Wl,'
15446 lt_prog_compiler_pic_CXX='-fpic'
15447 lt_prog_compiler_static_CXX='-Bstatic'
15448 ;;
15449 cxx*)
15450 # Compaq C++
15451 # Make sure the PIC flag is empty. It appears that all Alpha
15452 # Linux and Compaq Tru64 Unix objects are PIC.
15453 lt_prog_compiler_pic_CXX=
15454 lt_prog_compiler_static_CXX='-non_shared'
15455 ;;
15456 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15457 # IBM XL 8.0, 9.0 on PPC and BlueGene
15458 lt_prog_compiler_wl_CXX='-Wl,'
15459 lt_prog_compiler_pic_CXX='-qpic'
15460 lt_prog_compiler_static_CXX='-qstaticlink'
15461 ;;
15462 *)
15463 case `$CC -V 2>&1 | sed 5q` in
15464 *Sun\ C*)
15465 # Sun C++ 5.9
15466 lt_prog_compiler_pic_CXX='-KPIC'
15467 lt_prog_compiler_static_CXX='-Bstatic'
15468 lt_prog_compiler_wl_CXX='-Qoption ld '
15469 ;;
15470 esac
15471 ;;
15472 esac
15473 ;;
15474 lynxos*)
15475 ;;
15476 m88k*)
15477 ;;
15478 mvs*)
15479 case $cc_basename in
15480 cxx*)
15481 lt_prog_compiler_pic_CXX='-W c,exportall'
15482 ;;
15483 *)
15484 ;;
15485 esac
15486 ;;
15487 netbsd*)
15488 ;;
15489 *qnx* | *nto*)
15490 # QNX uses GNU C++, but need to define -shared option too, otherwise
15491 # it will coredump.
15492 lt_prog_compiler_pic_CXX='-fPIC -shared'
15493 ;;
15494 osf3* | osf4* | osf5*)
15495 case $cc_basename in
15496 KCC*)
15497 lt_prog_compiler_wl_CXX='--backend -Wl,'
15498 ;;
15499 RCC*)
15500 # Rational C++ 2.4.1
15501 lt_prog_compiler_pic_CXX='-pic'
15502 ;;
15503 cxx*)
15504 # Digital/Compaq C++
15505 lt_prog_compiler_wl_CXX='-Wl,'
15506 # Make sure the PIC flag is empty. It appears that all Alpha
15507 # Linux and Compaq Tru64 Unix objects are PIC.
15508 lt_prog_compiler_pic_CXX=
15509 lt_prog_compiler_static_CXX='-non_shared'
15510 ;;
15511 *)
15512 ;;
15513 esac
15514 ;;
15515 psos*)
15516 ;;
15517 solaris*)
15518 case $cc_basename in
15519 CC*)
15520 # Sun C++ 4.2, 5.x and Centerline C++
15521 lt_prog_compiler_pic_CXX='-KPIC'
15522 lt_prog_compiler_static_CXX='-Bstatic'
15523 lt_prog_compiler_wl_CXX='-Qoption ld '
15524 ;;
15525 gcx*)
15526 # Green Hills C++ Compiler
15527 lt_prog_compiler_pic_CXX='-PIC'
15528 ;;
15529 *)
15530 ;;
15531 esac
15532 ;;
15533 sunos4*)
15534 case $cc_basename in
15535 CC*)
15536 # Sun C++ 4.x
15537 lt_prog_compiler_pic_CXX='-pic'
15538 lt_prog_compiler_static_CXX='-Bstatic'
15539 ;;
15540 lcc*)
15541 # Lucid
15542 lt_prog_compiler_pic_CXX='-pic'
15543 ;;
15544 *)
15545 ;;
15546 esac
15547 ;;
15548 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15549 case $cc_basename in
15550 CC*)
15551 lt_prog_compiler_wl_CXX='-Wl,'
15552 lt_prog_compiler_pic_CXX='-KPIC'
15553 lt_prog_compiler_static_CXX='-Bstatic'
15554 ;;
15555 esac
15556 ;;
15557 tandem*)
15558 case $cc_basename in
15559 NCC*)
15560 # NonStop-UX NCC 3.20
15561 lt_prog_compiler_pic_CXX='-KPIC'
15562 ;;
15563 *)
15564 ;;
15565 esac
15566 ;;
15567 vxworks*)
15568 ;;
15569 *)
15570 lt_prog_compiler_can_build_shared_CXX=no
15571 ;;
15572 esac
15573 fi
15574
15575 case $host_os in
15576 # For platforms which do not support PIC, -DPIC is meaningless:
15577 *djgpp*)
15578 lt_prog_compiler_pic_CXX=
15579 ;;
15580 *)
15581 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15582 ;;
15583 esac
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15585 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15586
15587
15588
15589 #
15590 # Check to make sure the PIC flag actually works.
15591 #
15592 if test -n "$lt_prog_compiler_pic_CXX"; then
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15594 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15595 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15596 $as_echo_n "(cached) " >&6
15597 else
15598 lt_cv_prog_compiler_pic_works_CXX=no
15599 ac_outfile=conftest.$ac_objext
15600 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15601 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15602 # Insert the option either (1) after the last *FLAGS variable, or
15603 # (2) before a word containing "conftest.", or (3) at the end.
15604 # Note that $ac_compile itself does not contain backslashes and begins
15605 # with a dollar sign (not a hyphen), so the echo should work correctly.
15606 # The option is referenced via a variable to avoid confusing sed.
15607 lt_compile=`echo "$ac_compile" | $SED \
15608 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15609 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15610 -e 's:$: $lt_compiler_flag:'`
15611 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15612 (eval "$lt_compile" 2>conftest.err)
15613 ac_status=$?
15614 cat conftest.err >&5
15615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616 if (exit $ac_status) && test -s "$ac_outfile"; then
15617 # The compiler can only warn and ignore the option if not recognized
15618 # So say no if there are warnings other than the usual output.
15619 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15620 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15621 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15622 lt_cv_prog_compiler_pic_works_CXX=yes
15623 fi
15624 fi
15625 $RM conftest*
15626
15627 fi
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15629 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15630
15631 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15632 case $lt_prog_compiler_pic_CXX in
15633 "" | " "*) ;;
15634 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15635 esac
15636 else
15637 lt_prog_compiler_pic_CXX=
15638 lt_prog_compiler_can_build_shared_CXX=no
15639 fi
15640
15641 fi
15642
15643
15644
15645 #
15646 # Check to make sure the static flag actually works.
15647 #
15648 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15650 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15651 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15652 $as_echo_n "(cached) " >&6
15653 else
15654 lt_cv_prog_compiler_static_works_CXX=no
15655 save_LDFLAGS="$LDFLAGS"
15656 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15657 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15658 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15659 # The linker can only warn and ignore the option if not recognized
15660 # So say no if there are warnings
15661 if test -s conftest.err; then
15662 # Append any errors to the config.log.
15663 cat conftest.err 1>&5
15664 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15665 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15666 if diff conftest.exp conftest.er2 >/dev/null; then
15667 lt_cv_prog_compiler_static_works_CXX=yes
15668 fi
15669 else
15670 lt_cv_prog_compiler_static_works_CXX=yes
15671 fi
15672 fi
15673 $RM -r conftest*
15674 LDFLAGS="$save_LDFLAGS"
15675
15676 fi
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15678 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15679
15680 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15681 :
15682 else
15683 lt_prog_compiler_static_CXX=
15684 fi
15685
15686
15687
15688
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15690 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15691 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15692 $as_echo_n "(cached) " >&6
15693 else
15694 lt_cv_prog_compiler_c_o_CXX=no
15695 $RM -r conftest 2>/dev/null
15696 mkdir conftest
15697 cd conftest
15698 mkdir out
15699 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15700
15701 lt_compiler_flag="-o out/conftest2.$ac_objext"
15702 # Insert the option either (1) after the last *FLAGS variable, or
15703 # (2) before a word containing "conftest.", or (3) at the end.
15704 # Note that $ac_compile itself does not contain backslashes and begins
15705 # with a dollar sign (not a hyphen), so the echo should work correctly.
15706 lt_compile=`echo "$ac_compile" | $SED \
15707 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15708 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15709 -e 's:$: $lt_compiler_flag:'`
15710 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15711 (eval "$lt_compile" 2>out/conftest.err)
15712 ac_status=$?
15713 cat out/conftest.err >&5
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15716 then
15717 # The compiler can only warn and ignore the option if not recognized
15718 # So say no if there are warnings
15719 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15720 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15721 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15722 lt_cv_prog_compiler_c_o_CXX=yes
15723 fi
15724 fi
15725 chmod u+w . 2>&5
15726 $RM conftest*
15727 # SGI C++ compiler will create directory out/ii_files/ for
15728 # template instantiation
15729 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15730 $RM out/* && rmdir out
15731 cd ..
15732 $RM -r conftest
15733 $RM conftest*
15734
15735 fi
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15737 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15738
15739
15740
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15742 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15743 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15744 $as_echo_n "(cached) " >&6
15745 else
15746 lt_cv_prog_compiler_c_o_CXX=no
15747 $RM -r conftest 2>/dev/null
15748 mkdir conftest
15749 cd conftest
15750 mkdir out
15751 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15752
15753 lt_compiler_flag="-o out/conftest2.$ac_objext"
15754 # Insert the option either (1) after the last *FLAGS variable, or
15755 # (2) before a word containing "conftest.", or (3) at the end.
15756 # Note that $ac_compile itself does not contain backslashes and begins
15757 # with a dollar sign (not a hyphen), so the echo should work correctly.
15758 lt_compile=`echo "$ac_compile" | $SED \
15759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15761 -e 's:$: $lt_compiler_flag:'`
15762 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15763 (eval "$lt_compile" 2>out/conftest.err)
15764 ac_status=$?
15765 cat out/conftest.err >&5
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15768 then
15769 # The compiler can only warn and ignore the option if not recognized
15770 # So say no if there are warnings
15771 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15772 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15773 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15774 lt_cv_prog_compiler_c_o_CXX=yes
15775 fi
15776 fi
15777 chmod u+w . 2>&5
15778 $RM conftest*
15779 # SGI C++ compiler will create directory out/ii_files/ for
15780 # template instantiation
15781 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15782 $RM out/* && rmdir out
15783 cd ..
15784 $RM -r conftest
15785 $RM conftest*
15786
15787 fi
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15789 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15790
15791
15792
15793
15794 hard_links="nottested"
15795 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15796 # do not overwrite the value of need_locks provided by the user
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15798 $as_echo_n "checking if we can lock with hard links... " >&6; }
15799 hard_links=yes
15800 $RM conftest*
15801 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15802 touch conftest.a
15803 ln conftest.a conftest.b 2>&5 || hard_links=no
15804 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15806 $as_echo "$hard_links" >&6; }
15807 if test "$hard_links" = no; then
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15809 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15810 need_locks=warn
15811 fi
15812 else
15813 need_locks=no
15814 fi
15815
15816
15817
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15819 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15820
15821 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15822 case $host_os in
15823 aix[4-9]*)
15824 # If we're using GNU nm, then we don't want the "-C" option.
15825 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15826 # Also, AIX nm treats weak defined symbols like other global defined
15827 # symbols, whereas GNU nm marks them as "W".
15828 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15829 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'
15830 else
15831 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'
15832 fi
15833 ;;
15834 pw32*)
15835 export_symbols_cmds_CXX="$ltdll_cmds"
15836 ;;
15837 cygwin* | mingw* | cegcc*)
15838 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'
15839 ;;
15840 *)
15841 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15842 ;;
15843 esac
15844 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15845
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15847 $as_echo "$ld_shlibs_CXX" >&6; }
15848 test "$ld_shlibs_CXX" = no && can_build_shared=no
15849
15850 with_gnu_ld_CXX=$with_gnu_ld
15851
15852
15853
15854
15855
15856
15857 #
15858 # Do we need to explicitly link libc?
15859 #
15860 case "x$archive_cmds_need_lc_CXX" in
15861 x|xyes)
15862 # Assume -lc should be added
15863 archive_cmds_need_lc_CXX=yes
15864
15865 if test "$enable_shared" = yes && test "$GCC" = yes; then
15866 case $archive_cmds_CXX in
15867 *'~'*)
15868 # FIXME: we may have to deal with multi-command sequences.
15869 ;;
15870 '$CC '*)
15871 # Test whether the compiler implicitly links with -lc since on some
15872 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15873 # to ld, don't add -lc before -lgcc.
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15875 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15876 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15877 $as_echo_n "(cached) " >&6
15878 else
15879 $RM conftest*
15880 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15881
15882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15883 (eval $ac_compile) 2>&5
15884 ac_status=$?
15885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15886 test $ac_status = 0; } 2>conftest.err; then
15887 soname=conftest
15888 lib=conftest
15889 libobjs=conftest.$ac_objext
15890 deplibs=
15891 wl=$lt_prog_compiler_wl_CXX
15892 pic_flag=$lt_prog_compiler_pic_CXX
15893 compiler_flags=-v
15894 linker_flags=-v
15895 verstring=
15896 output_objdir=.
15897 libname=conftest
15898 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15899 allow_undefined_flag_CXX=
15900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15901 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15902 ac_status=$?
15903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15904 test $ac_status = 0; }
15905 then
15906 lt_cv_archive_cmds_need_lc_CXX=no
15907 else
15908 lt_cv_archive_cmds_need_lc_CXX=yes
15909 fi
15910 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15911 else
15912 cat conftest.err 1>&5
15913 fi
15914 $RM conftest*
15915
15916 fi
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15918 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15919 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15920 ;;
15921 esac
15922 fi
15923 ;;
15924 esac
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15990 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15991
15992 library_names_spec=
15993 libname_spec='lib$name'
15994 soname_spec=
15995 shrext_cmds=".so"
15996 postinstall_cmds=
15997 postuninstall_cmds=
15998 finish_cmds=
15999 finish_eval=
16000 shlibpath_var=
16001 shlibpath_overrides_runpath=unknown
16002 version_type=none
16003 dynamic_linker="$host_os ld.so"
16004 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16005 need_lib_prefix=unknown
16006 hardcode_into_libs=no
16007
16008 # when you set need_version to no, make sure it does not cause -set_version
16009 # flags to be left without arguments
16010 need_version=unknown
16011
16012 case $host_os in
16013 aix3*)
16014 version_type=linux
16015 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16016 shlibpath_var=LIBPATH
16017
16018 # AIX 3 has no versioning support, so we append a major version to the name.
16019 soname_spec='${libname}${release}${shared_ext}$major'
16020 ;;
16021
16022 aix[4-9]*)
16023 version_type=linux
16024 need_lib_prefix=no
16025 need_version=no
16026 hardcode_into_libs=yes
16027 if test "$host_cpu" = ia64; then
16028 # AIX 5 supports IA64
16029 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16030 shlibpath_var=LD_LIBRARY_PATH
16031 else
16032 # With GCC up to 2.95.x, collect2 would create an import file
16033 # for dependence libraries. The import file would start with
16034 # the line `#! .'. This would cause the generated library to
16035 # depend on `.', always an invalid library. This was fixed in
16036 # development snapshots of GCC prior to 3.0.
16037 case $host_os in
16038 aix4 | aix4.[01] | aix4.[01].*)
16039 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16040 echo ' yes '
16041 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16042 :
16043 else
16044 can_build_shared=no
16045 fi
16046 ;;
16047 esac
16048 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16049 # soname into executable. Probably we can add versioning support to
16050 # collect2, so additional links can be useful in future.
16051 if test "$aix_use_runtimelinking" = yes; then
16052 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16053 # instead of lib<name>.a to let people know that these are not
16054 # typical AIX shared libraries.
16055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16056 else
16057 # We preserve .a as extension for shared libraries through AIX4.2
16058 # and later when we are not doing run time linking.
16059 library_names_spec='${libname}${release}.a $libname.a'
16060 soname_spec='${libname}${release}${shared_ext}$major'
16061 fi
16062 shlibpath_var=LIBPATH
16063 fi
16064 ;;
16065
16066 amigaos*)
16067 case $host_cpu in
16068 powerpc)
16069 # Since July 2007 AmigaOS4 officially supports .so libraries.
16070 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16072 ;;
16073 m68k)
16074 library_names_spec='$libname.ixlibrary $libname.a'
16075 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16076 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'
16077 ;;
16078 esac
16079 ;;
16080
16081 beos*)
16082 library_names_spec='${libname}${shared_ext}'
16083 dynamic_linker="$host_os ld.so"
16084 shlibpath_var=LIBRARY_PATH
16085 ;;
16086
16087 bsdi[45]*)
16088 version_type=linux
16089 need_version=no
16090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16091 soname_spec='${libname}${release}${shared_ext}$major'
16092 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16093 shlibpath_var=LD_LIBRARY_PATH
16094 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16095 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16096 # the default ld.so.conf also contains /usr/contrib/lib and
16097 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16098 # libtool to hard-code these into programs
16099 ;;
16100
16101 cygwin* | mingw* | pw32* | cegcc*)
16102 version_type=windows
16103 shrext_cmds=".dll"
16104 need_version=no
16105 need_lib_prefix=no
16106
16107 case $GCC,$host_os in
16108 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16109 library_names_spec='$libname.dll.a'
16110 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16111 postinstall_cmds='base_file=`basename \${file}`~
16112 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16113 dldir=$destdir/`dirname \$dlpath`~
16114 test -d \$dldir || mkdir -p \$dldir~
16115 $install_prog $dir/$dlname \$dldir/$dlname~
16116 chmod a+x \$dldir/$dlname~
16117 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16118 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16119 fi'
16120 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16121 dlpath=$dir/\$dldll~
16122 $RM \$dlpath'
16123 shlibpath_overrides_runpath=yes
16124
16125 case $host_os in
16126 cygwin*)
16127 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16128 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16129
16130 ;;
16131 mingw* | cegcc*)
16132 # MinGW DLLs use traditional 'lib' prefix
16133 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16134 ;;
16135 pw32*)
16136 # pw32 DLLs use 'pw' prefix rather than 'lib'
16137 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16138 ;;
16139 esac
16140 ;;
16141
16142 *)
16143 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16144 ;;
16145 esac
16146 dynamic_linker='Win32 ld.exe'
16147 # FIXME: first we should search . and the directory the executable is in
16148 shlibpath_var=PATH
16149 ;;
16150
16151 darwin* | rhapsody*)
16152 dynamic_linker="$host_os dyld"
16153 version_type=darwin
16154 need_lib_prefix=no
16155 need_version=no
16156 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16157 soname_spec='${libname}${release}${major}$shared_ext'
16158 shlibpath_overrides_runpath=yes
16159 shlibpath_var=DYLD_LIBRARY_PATH
16160 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16161
16162 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16163 ;;
16164
16165 dgux*)
16166 version_type=linux
16167 need_lib_prefix=no
16168 need_version=no
16169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16170 soname_spec='${libname}${release}${shared_ext}$major'
16171 shlibpath_var=LD_LIBRARY_PATH
16172 ;;
16173
16174 freebsd* | dragonfly*)
16175 # DragonFly does not have aout. When/if they implement a new
16176 # versioning mechanism, adjust this.
16177 if test -x /usr/bin/objformat; then
16178 objformat=`/usr/bin/objformat`
16179 else
16180 case $host_os in
16181 freebsd[23].*) objformat=aout ;;
16182 *) objformat=elf ;;
16183 esac
16184 fi
16185 version_type=freebsd-$objformat
16186 case $version_type in
16187 freebsd-elf*)
16188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16189 need_version=no
16190 need_lib_prefix=no
16191 ;;
16192 freebsd-*)
16193 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16194 need_version=yes
16195 ;;
16196 esac
16197 shlibpath_var=LD_LIBRARY_PATH
16198 case $host_os in
16199 freebsd2.*)
16200 shlibpath_overrides_runpath=yes
16201 ;;
16202 freebsd3.[01]* | freebsdelf3.[01]*)
16203 shlibpath_overrides_runpath=yes
16204 hardcode_into_libs=yes
16205 ;;
16206 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16207 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16208 shlibpath_overrides_runpath=no
16209 hardcode_into_libs=yes
16210 ;;
16211 *) # from 4.6 on, and DragonFly
16212 shlibpath_overrides_runpath=yes
16213 hardcode_into_libs=yes
16214 ;;
16215 esac
16216 ;;
16217
16218 gnu*)
16219 version_type=linux
16220 need_lib_prefix=no
16221 need_version=no
16222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16223 soname_spec='${libname}${release}${shared_ext}$major'
16224 shlibpath_var=LD_LIBRARY_PATH
16225 hardcode_into_libs=yes
16226 ;;
16227
16228 haiku*)
16229 version_type=linux
16230 need_lib_prefix=no
16231 need_version=no
16232 dynamic_linker="$host_os runtime_loader"
16233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16234 soname_spec='${libname}${release}${shared_ext}$major'
16235 shlibpath_var=LIBRARY_PATH
16236 shlibpath_overrides_runpath=yes
16237 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16238 hardcode_into_libs=yes
16239 ;;
16240
16241 hpux9* | hpux10* | hpux11*)
16242 # Give a soname corresponding to the major version so that dld.sl refuses to
16243 # link against other versions.
16244 version_type=sunos
16245 need_lib_prefix=no
16246 need_version=no
16247 case $host_cpu in
16248 ia64*)
16249 shrext_cmds='.so'
16250 hardcode_into_libs=yes
16251 dynamic_linker="$host_os dld.so"
16252 shlibpath_var=LD_LIBRARY_PATH
16253 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16255 soname_spec='${libname}${release}${shared_ext}$major'
16256 if test "X$HPUX_IA64_MODE" = X32; then
16257 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16258 else
16259 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16260 fi
16261 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16262 ;;
16263 hppa*64*)
16264 shrext_cmds='.sl'
16265 hardcode_into_libs=yes
16266 dynamic_linker="$host_os dld.sl"
16267 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16268 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16270 soname_spec='${libname}${release}${shared_ext}$major'
16271 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16272 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16273 ;;
16274 *)
16275 shrext_cmds='.sl'
16276 dynamic_linker="$host_os dld.sl"
16277 shlibpath_var=SHLIB_PATH
16278 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16280 soname_spec='${libname}${release}${shared_ext}$major'
16281 ;;
16282 esac
16283 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16284 postinstall_cmds='chmod 555 $lib'
16285 # or fails outright, so override atomically:
16286 install_override_mode=555
16287 ;;
16288
16289 interix[3-9]*)
16290 version_type=linux
16291 need_lib_prefix=no
16292 need_version=no
16293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16294 soname_spec='${libname}${release}${shared_ext}$major'
16295 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16296 shlibpath_var=LD_LIBRARY_PATH
16297 shlibpath_overrides_runpath=no
16298 hardcode_into_libs=yes
16299 ;;
16300
16301 irix5* | irix6* | nonstopux*)
16302 case $host_os in
16303 nonstopux*) version_type=nonstopux ;;
16304 *)
16305 if test "$lt_cv_prog_gnu_ld" = yes; then
16306 version_type=linux
16307 else
16308 version_type=irix
16309 fi ;;
16310 esac
16311 need_lib_prefix=no
16312 need_version=no
16313 soname_spec='${libname}${release}${shared_ext}$major'
16314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16315 case $host_os in
16316 irix5* | nonstopux*)
16317 libsuff= shlibsuff=
16318 ;;
16319 *)
16320 case $LD in # libtool.m4 will add one of these switches to LD
16321 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16322 libsuff= shlibsuff= libmagic=32-bit;;
16323 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16324 libsuff=32 shlibsuff=N32 libmagic=N32;;
16325 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16326 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16327 *) libsuff= shlibsuff= libmagic=never-match;;
16328 esac
16329 ;;
16330 esac
16331 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16332 shlibpath_overrides_runpath=no
16333 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16334 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16335 hardcode_into_libs=yes
16336 ;;
16337
16338 # No shared lib support for Linux oldld, aout, or coff.
16339 linux*oldld* | linux*aout* | linux*coff*)
16340 dynamic_linker=no
16341 ;;
16342
16343 # This must be Linux ELF.
16344 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16345 version_type=linux
16346 need_lib_prefix=no
16347 need_version=no
16348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16349 soname_spec='${libname}${release}${shared_ext}$major'
16350 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16351 shlibpath_var=LD_LIBRARY_PATH
16352 shlibpath_overrides_runpath=no
16353
16354 # Some binutils ld are patched to set DT_RUNPATH
16355 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16356 $as_echo_n "(cached) " >&6
16357 else
16358 lt_cv_shlibpath_overrides_runpath=no
16359 save_LDFLAGS=$LDFLAGS
16360 save_libdir=$libdir
16361 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16362 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16363 if test x$gcc_no_link = xyes; then
16364 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16365 fi
16366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16367 /* end confdefs.h. */
16368
16369 int
16370 main ()
16371 {
16372
16373 ;
16374 return 0;
16375 }
16376 _ACEOF
16377 if ac_fn_cxx_try_link "$LINENO"; then :
16378 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16379 lt_cv_shlibpath_overrides_runpath=yes
16380 fi
16381 fi
16382 rm -f core conftest.err conftest.$ac_objext \
16383 conftest$ac_exeext conftest.$ac_ext
16384 LDFLAGS=$save_LDFLAGS
16385 libdir=$save_libdir
16386
16387 fi
16388
16389 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16390
16391 # This implies no fast_install, which is unacceptable.
16392 # Some rework will be needed to allow for fast_install
16393 # before this can be enabled.
16394 hardcode_into_libs=yes
16395
16396 # Append ld.so.conf contents to the search path
16397 if test -f /etc/ld.so.conf; then
16398 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' ' '`
16399 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16400 fi
16401
16402 # We used to test for /lib/ld.so.1 and disable shared libraries on
16403 # powerpc, because MkLinux only supported shared libraries with the
16404 # GNU dynamic linker. Since this was broken with cross compilers,
16405 # most powerpc-linux boxes support dynamic linking these days and
16406 # people can always --disable-shared, the test was removed, and we
16407 # assume the GNU/Linux dynamic linker is in use.
16408 dynamic_linker='GNU/Linux ld.so'
16409 ;;
16410
16411 netbsd*)
16412 version_type=sunos
16413 need_lib_prefix=no
16414 need_version=no
16415 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16418 dynamic_linker='NetBSD (a.out) ld.so'
16419 else
16420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16421 soname_spec='${libname}${release}${shared_ext}$major'
16422 dynamic_linker='NetBSD ld.elf_so'
16423 fi
16424 shlibpath_var=LD_LIBRARY_PATH
16425 shlibpath_overrides_runpath=yes
16426 hardcode_into_libs=yes
16427 ;;
16428
16429 newsos6)
16430 version_type=linux
16431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16432 shlibpath_var=LD_LIBRARY_PATH
16433 shlibpath_overrides_runpath=yes
16434 ;;
16435
16436 *nto* | *qnx*)
16437 version_type=qnx
16438 need_lib_prefix=no
16439 need_version=no
16440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16441 soname_spec='${libname}${release}${shared_ext}$major'
16442 shlibpath_var=LD_LIBRARY_PATH
16443 shlibpath_overrides_runpath=no
16444 hardcode_into_libs=yes
16445 dynamic_linker='ldqnx.so'
16446 ;;
16447
16448 openbsd*)
16449 version_type=sunos
16450 sys_lib_dlsearch_path_spec="/usr/lib"
16451 need_lib_prefix=no
16452 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16453 case $host_os in
16454 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16455 *) need_version=no ;;
16456 esac
16457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16458 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16459 shlibpath_var=LD_LIBRARY_PATH
16460 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16461 case $host_os in
16462 openbsd2.[89] | openbsd2.[89].*)
16463 shlibpath_overrides_runpath=no
16464 ;;
16465 *)
16466 shlibpath_overrides_runpath=yes
16467 ;;
16468 esac
16469 else
16470 shlibpath_overrides_runpath=yes
16471 fi
16472 ;;
16473
16474 os2*)
16475 libname_spec='$name'
16476 shrext_cmds=".dll"
16477 need_lib_prefix=no
16478 library_names_spec='$libname${shared_ext} $libname.a'
16479 dynamic_linker='OS/2 ld.exe'
16480 shlibpath_var=LIBPATH
16481 ;;
16482
16483 osf3* | osf4* | osf5*)
16484 version_type=osf
16485 need_lib_prefix=no
16486 need_version=no
16487 soname_spec='${libname}${release}${shared_ext}$major'
16488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16489 shlibpath_var=LD_LIBRARY_PATH
16490 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16491 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16492 ;;
16493
16494 rdos*)
16495 dynamic_linker=no
16496 ;;
16497
16498 solaris*)
16499 version_type=linux
16500 need_lib_prefix=no
16501 need_version=no
16502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16503 soname_spec='${libname}${release}${shared_ext}$major'
16504 shlibpath_var=LD_LIBRARY_PATH
16505 shlibpath_overrides_runpath=yes
16506 hardcode_into_libs=yes
16507 # ldd complains unless libraries are executable
16508 postinstall_cmds='chmod +x $lib'
16509 ;;
16510
16511 sunos4*)
16512 version_type=sunos
16513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16514 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16515 shlibpath_var=LD_LIBRARY_PATH
16516 shlibpath_overrides_runpath=yes
16517 if test "$with_gnu_ld" = yes; then
16518 need_lib_prefix=no
16519 fi
16520 need_version=yes
16521 ;;
16522
16523 sysv4 | sysv4.3*)
16524 version_type=linux
16525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16526 soname_spec='${libname}${release}${shared_ext}$major'
16527 shlibpath_var=LD_LIBRARY_PATH
16528 case $host_vendor in
16529 sni)
16530 shlibpath_overrides_runpath=no
16531 need_lib_prefix=no
16532 runpath_var=LD_RUN_PATH
16533 ;;
16534 siemens)
16535 need_lib_prefix=no
16536 ;;
16537 motorola)
16538 need_lib_prefix=no
16539 need_version=no
16540 shlibpath_overrides_runpath=no
16541 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16542 ;;
16543 esac
16544 ;;
16545
16546 sysv4*MP*)
16547 if test -d /usr/nec ;then
16548 version_type=linux
16549 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16550 soname_spec='$libname${shared_ext}.$major'
16551 shlibpath_var=LD_LIBRARY_PATH
16552 fi
16553 ;;
16554
16555 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16556 version_type=freebsd-elf
16557 need_lib_prefix=no
16558 need_version=no
16559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16560 soname_spec='${libname}${release}${shared_ext}$major'
16561 shlibpath_var=LD_LIBRARY_PATH
16562 shlibpath_overrides_runpath=yes
16563 hardcode_into_libs=yes
16564 if test "$with_gnu_ld" = yes; then
16565 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16566 else
16567 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16568 case $host_os in
16569 sco3.2v5*)
16570 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16571 ;;
16572 esac
16573 fi
16574 sys_lib_dlsearch_path_spec='/usr/lib'
16575 ;;
16576
16577 tpf*)
16578 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16579 version_type=linux
16580 need_lib_prefix=no
16581 need_version=no
16582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16583 shlibpath_var=LD_LIBRARY_PATH
16584 shlibpath_overrides_runpath=no
16585 hardcode_into_libs=yes
16586 ;;
16587
16588 uts4*)
16589 version_type=linux
16590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16591 soname_spec='${libname}${release}${shared_ext}$major'
16592 shlibpath_var=LD_LIBRARY_PATH
16593 ;;
16594
16595 *)
16596 dynamic_linker=no
16597 ;;
16598 esac
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16600 $as_echo "$dynamic_linker" >&6; }
16601 test "$dynamic_linker" = no && can_build_shared=no
16602
16603 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16604 if test "$GCC" = yes; then
16605 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16606 fi
16607
16608 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16609 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16610 fi
16611 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16612 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16613 fi
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16653 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16654 hardcode_action_CXX=
16655 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16656 test -n "$runpath_var_CXX" ||
16657 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16658
16659 # We can hardcode non-existent directories.
16660 if test "$hardcode_direct_CXX" != no &&
16661 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16662 # have to relink, otherwise we might link with an installed library
16663 # when we should be linking with a yet-to-be-installed one
16664 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16665 test "$hardcode_minus_L_CXX" != no; then
16666 # Linking always hardcodes the temporary library directory.
16667 hardcode_action_CXX=relink
16668 else
16669 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16670 hardcode_action_CXX=immediate
16671 fi
16672 else
16673 # We cannot hardcode anything, or else we can only hardcode existing
16674 # directories.
16675 hardcode_action_CXX=unsupported
16676 fi
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16678 $as_echo "$hardcode_action_CXX" >&6; }
16679
16680 if test "$hardcode_action_CXX" = relink ||
16681 test "$inherit_rpath_CXX" = yes; then
16682 # Fast installation is not supported
16683 enable_fast_install=no
16684 elif test "$shlibpath_overrides_runpath" = yes ||
16685 test "$enable_shared" = no; then
16686 # Fast installation is not necessary
16687 enable_fast_install=needless
16688 fi
16689
16690
16691
16692
16693
16694
16695
16696 fi # test -n "$compiler"
16697
16698 CC=$lt_save_CC
16699 LDCXX=$LD
16700 LD=$lt_save_LD
16701 GCC=$lt_save_GCC
16702 with_gnu_ld=$lt_save_with_gnu_ld
16703 lt_cv_path_LDCXX=$lt_cv_path_LD
16704 lt_cv_path_LD=$lt_save_path_LD
16705 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16706 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16707 fi # test "$_lt_caught_CXX_error" != yes
16708
16709 ac_ext=c
16710 ac_cpp='$CPP $CPPFLAGS'
16711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727 ac_config_commands="$ac_config_commands libtool"
16728
16729
16730
16731
16732 # Only expand once:
16733
16734
16735
16736
16737
16738 case $host in
16739 *-cygwin* | *-mingw*)
16740 # 'host' will be top-level target in the case of a target lib,
16741 # we must compare to with_cross_host to decide if this is a native
16742 # or cross-compiler and select where to install dlls appropriately.
16743 if test -n "$with_cross_host" &&
16744 test x"$with_cross_host" != x"no"; then
16745 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
16746 else
16747 lt_host_flags='-no-undefined -bindir "$(bindir)"';
16748 fi
16749 ;;
16750 *)
16751 lt_host_flags=
16752 ;;
16753 esac
16754
16755
16756
16757
16758 if test -n "$ac_tool_prefix"; then
16759 for ac_prog in gcj
16760 do
16761 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16762 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16764 $as_echo_n "checking for $ac_word... " >&6; }
16765 if test "${ac_cv_prog_GCJ+set}" = set; then :
16766 $as_echo_n "(cached) " >&6
16767 else
16768 if test -n "$GCJ"; then
16769 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16770 else
16771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16772 for as_dir in $PATH
16773 do
16774 IFS=$as_save_IFS
16775 test -z "$as_dir" && as_dir=.
16776 for ac_exec_ext in '' $ac_executable_extensions; do
16777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16778 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
16779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16780 break 2
16781 fi
16782 done
16783 done
16784 IFS=$as_save_IFS
16785
16786 fi
16787 fi
16788 GCJ=$ac_cv_prog_GCJ
16789 if test -n "$GCJ"; then
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16791 $as_echo "$GCJ" >&6; }
16792 else
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16794 $as_echo "no" >&6; }
16795 fi
16796
16797
16798 test -n "$GCJ" && break
16799 done
16800 fi
16801 if test -z "$GCJ"; then
16802 ac_ct_GCJ=$GCJ
16803 for ac_prog in gcj
16804 do
16805 # Extract the first word of "$ac_prog", so it can be a program name with args.
16806 set dummy $ac_prog; ac_word=$2
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16808 $as_echo_n "checking for $ac_word... " >&6; }
16809 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
16810 $as_echo_n "(cached) " >&6
16811 else
16812 if test -n "$ac_ct_GCJ"; then
16813 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
16814 else
16815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16816 for as_dir in $PATH
16817 do
16818 IFS=$as_save_IFS
16819 test -z "$as_dir" && as_dir=.
16820 for ac_exec_ext in '' $ac_executable_extensions; do
16821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16822 ac_cv_prog_ac_ct_GCJ="$ac_prog"
16823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16824 break 2
16825 fi
16826 done
16827 done
16828 IFS=$as_save_IFS
16829
16830 fi
16831 fi
16832 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
16833 if test -n "$ac_ct_GCJ"; then
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
16835 $as_echo "$ac_ct_GCJ" >&6; }
16836 else
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16838 $as_echo "no" >&6; }
16839 fi
16840
16841
16842 test -n "$ac_ct_GCJ" && break
16843 done
16844
16845 if test "x$ac_ct_GCJ" = x; then
16846 GCJ="gcj"
16847 else
16848 case $cross_compiling:$ac_tool_warned in
16849 yes:)
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16852 ac_tool_warned=yes ;;
16853 esac
16854 GCJ=$ac_ct_GCJ
16855 fi
16856 fi
16857
16858 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
16859 if test "x${GCJFLAGS-unset}" = xunset; then
16860 GCJFLAGS="-g -O2"
16861 fi
16862
16863
16864 depcc="$GCJ" am_compiler_list='gcc3 gcc'
16865
16866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16867 $as_echo_n "checking dependency style of $depcc... " >&6; }
16868 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16869 $as_echo_n "(cached) " >&6
16870 else
16871 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16872 # We make a subdir and do the tests there. Otherwise we can end up
16873 # making bogus files that we don't know about and never remove. For
16874 # instance it was reported that on HP-UX the gcc test will end up
16875 # making a dummy file named `D' -- because `-MD' means `put the output
16876 # in D'.
16877 mkdir conftest.dir
16878 # Copy depcomp to subdir because otherwise we won't find it if we're
16879 # using a relative directory.
16880 cp "$am_depcomp" conftest.dir
16881 cd conftest.dir
16882 # We will build objects and dependencies in a subdirectory because
16883 # it helps to detect inapplicable dependency modes. For instance
16884 # both Tru64's cc and ICC support -MD to output dependencies as a
16885 # side effect of compilation, but ICC will put the dependencies in
16886 # the current directory while Tru64 will put them in the object
16887 # directory.
16888 mkdir sub
16889
16890 am_cv_GCJ_dependencies_compiler_type=none
16891 if test "$am_compiler_list" = ""; then
16892 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16893 fi
16894 am__universal=false
16895
16896
16897 for depmode in $am_compiler_list; do
16898 # Setup a source with many dependencies, because some compilers
16899 # like to wrap large dependency lists on column 80 (with \), and
16900 # we should not choose a depcomp mode which is confused by this.
16901 #
16902 # We need to recreate these files for each test, as the compiler may
16903 # overwrite some of them when testing with obscure command lines.
16904 # This happens at least with the AIX C compiler.
16905 : > sub/conftest.c
16906 for i in 1 2 3 4 5 6; do
16907 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16908 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16909 # Solaris 8's {/usr,}/bin/sh.
16910 touch sub/conftst$i.h
16911 done
16912 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16913
16914 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16915 # mode. It turns out that the SunPro C++ compiler does not properly
16916 # handle `-M -o', and we need to detect this. Also, some Intel
16917 # versions had trouble with output in subdirs
16918 am__obj=sub/conftest.${OBJEXT-o}
16919 am__minus_obj="-o $am__obj"
16920 case $depmode in
16921 gcc)
16922 # This depmode causes a compiler race in universal mode.
16923 test "$am__universal" = false || continue
16924 ;;
16925 nosideeffect)
16926 # after this tag, mechanisms are not by side-effect, so they'll
16927 # only be used when explicitly requested
16928 if test "x$enable_dependency_tracking" = xyes; then
16929 continue
16930 else
16931 break
16932 fi
16933 ;;
16934 msvisualcpp | msvcmsys)
16935 # This compiler won't grok `-c -o', but also, the minuso test has
16936 # not run yet. These depmodes are late enough in the game, and
16937 # so weak that their functioning should not be impacted.
16938 am__obj=conftest.${OBJEXT-o}
16939 am__minus_obj=
16940 ;;
16941 none) break ;;
16942 esac
16943 if depmode=$depmode \
16944 source=sub/conftest.c object=$am__obj \
16945 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16946 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16947 >/dev/null 2>conftest.err &&
16948 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16949 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16950 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16951 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16952 # icc doesn't choke on unknown options, it will just issue warnings
16953 # or remarks (even with -Werror). So we grep stderr for any message
16954 # that says an option was ignored or not supported.
16955 # When given -MP, icc 7.0 and 7.1 complain thusly:
16956 # icc: Command line warning: ignoring option '-M'; no argument required
16957 # The diagnosis changed in icc 8.0:
16958 # icc: Command line remark: option '-MP' not supported
16959 if (grep 'ignoring option' conftest.err ||
16960 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16961 am_cv_GCJ_dependencies_compiler_type=$depmode
16962 break
16963 fi
16964 fi
16965 done
16966
16967 cd ..
16968 rm -rf conftest.dir
16969 else
16970 am_cv_GCJ_dependencies_compiler_type=none
16971 fi
16972
16973 fi
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16975 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
16976 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16977
16978 if
16979 test "x$enable_dependency_tracking" != xno \
16980 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16981 am__fastdepGCJ_TRUE=
16982 am__fastdepGCJ_FALSE='#'
16983 else
16984 am__fastdepGCJ_TRUE='#'
16985 am__fastdepGCJ_FALSE=
16986 fi
16987
16988
16989
16990 if test -n "$ac_tool_prefix"; then
16991 for ac_prog in gcj
16992 do
16993 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16994 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16996 $as_echo_n "checking for $ac_word... " >&6; }
16997 if test "${ac_cv_prog_GCJ+set}" = set; then :
16998 $as_echo_n "(cached) " >&6
16999 else
17000 if test -n "$GCJ"; then
17001 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
17002 else
17003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17004 for as_dir in $PATH
17005 do
17006 IFS=$as_save_IFS
17007 test -z "$as_dir" && as_dir=.
17008 for ac_exec_ext in '' $ac_executable_extensions; do
17009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17010 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
17011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17012 break 2
17013 fi
17014 done
17015 done
17016 IFS=$as_save_IFS
17017
17018 fi
17019 fi
17020 GCJ=$ac_cv_prog_GCJ
17021 if test -n "$GCJ"; then
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
17023 $as_echo "$GCJ" >&6; }
17024 else
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17026 $as_echo "no" >&6; }
17027 fi
17028
17029
17030 test -n "$GCJ" && break
17031 done
17032 fi
17033 if test -z "$GCJ"; then
17034 ac_ct_GCJ=$GCJ
17035 for ac_prog in gcj
17036 do
17037 # Extract the first word of "$ac_prog", so it can be a program name with args.
17038 set dummy $ac_prog; ac_word=$2
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17040 $as_echo_n "checking for $ac_word... " >&6; }
17041 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
17042 $as_echo_n "(cached) " >&6
17043 else
17044 if test -n "$ac_ct_GCJ"; then
17045 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
17046 else
17047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17048 for as_dir in $PATH
17049 do
17050 IFS=$as_save_IFS
17051 test -z "$as_dir" && as_dir=.
17052 for ac_exec_ext in '' $ac_executable_extensions; do
17053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17054 ac_cv_prog_ac_ct_GCJ="$ac_prog"
17055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17056 break 2
17057 fi
17058 done
17059 done
17060 IFS=$as_save_IFS
17061
17062 fi
17063 fi
17064 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
17065 if test -n "$ac_ct_GCJ"; then
17066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
17067 $as_echo "$ac_ct_GCJ" >&6; }
17068 else
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17070 $as_echo "no" >&6; }
17071 fi
17072
17073
17074 test -n "$ac_ct_GCJ" && break
17075 done
17076
17077 if test "x$ac_ct_GCJ" = x; then
17078 GCJ="gcj"
17079 else
17080 case $cross_compiling:$ac_tool_warned in
17081 yes:)
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17084 ac_tool_warned=yes ;;
17085 esac
17086 GCJ=$ac_ct_GCJ
17087 fi
17088 fi
17089
17090 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
17091 if test "x${GCJFLAGS-unset}" = xunset; then
17092 GCJFLAGS="-g -O2"
17093 fi
17094
17095
17096 depcc="$GCJ" am_compiler_list='gcc3 gcc'
17097
17098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17099 $as_echo_n "checking dependency style of $depcc... " >&6; }
17100 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
17101 $as_echo_n "(cached) " >&6
17102 else
17103 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17104 # We make a subdir and do the tests there. Otherwise we can end up
17105 # making bogus files that we don't know about and never remove. For
17106 # instance it was reported that on HP-UX the gcc test will end up
17107 # making a dummy file named `D' -- because `-MD' means `put the output
17108 # in D'.
17109 mkdir conftest.dir
17110 # Copy depcomp to subdir because otherwise we won't find it if we're
17111 # using a relative directory.
17112 cp "$am_depcomp" conftest.dir
17113 cd conftest.dir
17114 # We will build objects and dependencies in a subdirectory because
17115 # it helps to detect inapplicable dependency modes. For instance
17116 # both Tru64's cc and ICC support -MD to output dependencies as a
17117 # side effect of compilation, but ICC will put the dependencies in
17118 # the current directory while Tru64 will put them in the object
17119 # directory.
17120 mkdir sub
17121
17122 am_cv_GCJ_dependencies_compiler_type=none
17123 if test "$am_compiler_list" = ""; then
17124 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17125 fi
17126 am__universal=false
17127
17128
17129 for depmode in $am_compiler_list; do
17130 # Setup a source with many dependencies, because some compilers
17131 # like to wrap large dependency lists on column 80 (with \), and
17132 # we should not choose a depcomp mode which is confused by this.
17133 #
17134 # We need to recreate these files for each test, as the compiler may
17135 # overwrite some of them when testing with obscure command lines.
17136 # This happens at least with the AIX C compiler.
17137 : > sub/conftest.c
17138 for i in 1 2 3 4 5 6; do
17139 echo '#include "conftst'$i'.h"' >> sub/conftest.c
17140 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17141 # Solaris 8's {/usr,}/bin/sh.
17142 touch sub/conftst$i.h
17143 done
17144 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17145
17146 # We check with `-c' and `-o' for the sake of the "dashmstdout"
17147 # mode. It turns out that the SunPro C++ compiler does not properly
17148 # handle `-M -o', and we need to detect this. Also, some Intel
17149 # versions had trouble with output in subdirs
17150 am__obj=sub/conftest.${OBJEXT-o}
17151 am__minus_obj="-o $am__obj"
17152 case $depmode in
17153 gcc)
17154 # This depmode causes a compiler race in universal mode.
17155 test "$am__universal" = false || continue
17156 ;;
17157 nosideeffect)
17158 # after this tag, mechanisms are not by side-effect, so they'll
17159 # only be used when explicitly requested
17160 if test "x$enable_dependency_tracking" = xyes; then
17161 continue
17162 else
17163 break
17164 fi
17165 ;;
17166 msvisualcpp | msvcmsys)
17167 # This compiler won't grok `-c -o', but also, the minuso test has
17168 # not run yet. These depmodes are late enough in the game, and
17169 # so weak that their functioning should not be impacted.
17170 am__obj=conftest.${OBJEXT-o}
17171 am__minus_obj=
17172 ;;
17173 none) break ;;
17174 esac
17175 if depmode=$depmode \
17176 source=sub/conftest.c object=$am__obj \
17177 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17178 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17179 >/dev/null 2>conftest.err &&
17180 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17181 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17182 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17183 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17184 # icc doesn't choke on unknown options, it will just issue warnings
17185 # or remarks (even with -Werror). So we grep stderr for any message
17186 # that says an option was ignored or not supported.
17187 # When given -MP, icc 7.0 and 7.1 complain thusly:
17188 # icc: Command line warning: ignoring option '-M'; no argument required
17189 # The diagnosis changed in icc 8.0:
17190 # icc: Command line remark: option '-MP' not supported
17191 if (grep 'ignoring option' conftest.err ||
17192 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17193 am_cv_GCJ_dependencies_compiler_type=$depmode
17194 break
17195 fi
17196 fi
17197 done
17198
17199 cd ..
17200 rm -rf conftest.dir
17201 else
17202 am_cv_GCJ_dependencies_compiler_type=none
17203 fi
17204
17205 fi
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
17207 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
17208 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
17209
17210 if
17211 test "x$enable_dependency_tracking" != xno \
17212 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
17213 am__fastdepGCJ_TRUE=
17214 am__fastdepGCJ_FALSE='#'
17215 else
17216 am__fastdepGCJ_TRUE='#'
17217 am__fastdepGCJ_FALSE=
17218 fi
17219
17220
17221
17222
17223
17224 # Source file extension for Java test sources.
17225 ac_ext=c
17226
17227 # Object file extension for compiled Java test sources.
17228 objext=o
17229 objext_GCJ=$objext
17230
17231 # Code to be used in simple compile tests
17232 lt_simple_compile_test_code="int some_variable = 0;"
17233
17234 # Code to be used in simple link tests
17235 lt_simple_link_test_code='int main(){return(0);}'
17236
17237 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17238
17239
17240
17241
17242
17243
17244 # If no C compiler was specified, use CC.
17245 LTCC=${LTCC-"$CC"}
17246
17247 # If no C compiler flags were specified, use CFLAGS.
17248 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17249
17250 # Allow CC to be a program name with arguments.
17251 compiler=$CC
17252
17253
17254 # save warnings/boilerplate of simple test code
17255 ac_outfile=conftest.$ac_objext
17256 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17257 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17258 _lt_compiler_boilerplate=`cat conftest.err`
17259 $RM conftest*
17260
17261 ac_outfile=conftest.$ac_objext
17262 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17263 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17264 _lt_linker_boilerplate=`cat conftest.err`
17265 $RM -r conftest*
17266
17267
17268 # Allow CC to be a program name with arguments.
17269 GCC=yes
17270 compiler=$CC
17271 compiler_GCJ=$CC
17272 for cc_temp in $compiler""; do
17273 case $cc_temp in
17274 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17275 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17276 \-*) ;;
17277 *) break;;
17278 esac
17279 done
17280 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17281
17282
17283 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17284 archive_cmds_need_lc_GCJ=no
17285
17286 old_archive_cmds_GCJ=$old_archive_cmds
17287
17288 ## CAVEAT EMPTOR:
17289 ## There is no encapsulation within the following macros, do not change
17290 ## the running order or otherwise move them around unless you know exactly
17291 ## what you are doing...
17292 if test -n "$compiler"; then
17293
17294 lt_prog_compiler_no_builtin_flag_GCJ=
17295
17296 if test "$GCC" = yes; then
17297 case $cc_basename in
17298 nvcc*)
17299 lt_prog_compiler_no_builtin_flag_GCJ=' -Xcompiler -fno-builtin' ;;
17300 *)
17301 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' ;;
17302 esac
17303
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17305 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17306 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
17307 $as_echo_n "(cached) " >&6
17308 else
17309 lt_cv_prog_compiler_rtti_exceptions=no
17310 ac_outfile=conftest.$ac_objext
17311 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17312 lt_compiler_flag="-fno-rtti -fno-exceptions"
17313 # Insert the option either (1) after the last *FLAGS variable, or
17314 # (2) before a word containing "conftest.", or (3) at the end.
17315 # Note that $ac_compile itself does not contain backslashes and begins
17316 # with a dollar sign (not a hyphen), so the echo should work correctly.
17317 # The option is referenced via a variable to avoid confusing sed.
17318 lt_compile=`echo "$ac_compile" | $SED \
17319 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17320 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17321 -e 's:$: $lt_compiler_flag:'`
17322 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17323 (eval "$lt_compile" 2>conftest.err)
17324 ac_status=$?
17325 cat conftest.err >&5
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 if (exit $ac_status) && test -s "$ac_outfile"; then
17328 # The compiler can only warn and ignore the option if not recognized
17329 # So say no if there are warnings other than the usual output.
17330 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17331 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17332 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17333 lt_cv_prog_compiler_rtti_exceptions=yes
17334 fi
17335 fi
17336 $RM conftest*
17337
17338 fi
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17340 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17341
17342 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17343 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17344 else
17345 :
17346 fi
17347
17348 fi
17349
17350
17351
17352 lt_prog_compiler_wl_GCJ=
17353 lt_prog_compiler_pic_GCJ=
17354 lt_prog_compiler_static_GCJ=
17355
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17357 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17358
17359 if test "$GCC" = yes; then
17360 lt_prog_compiler_wl_GCJ='-Wl,'
17361 lt_prog_compiler_static_GCJ='-static'
17362
17363 case $host_os in
17364 aix*)
17365 # All AIX code is PIC.
17366 if test "$host_cpu" = ia64; then
17367 # AIX 5 now supports IA64 processor
17368 lt_prog_compiler_static_GCJ='-Bstatic'
17369 fi
17370 ;;
17371
17372 amigaos*)
17373 case $host_cpu in
17374 powerpc)
17375 # see comment about AmigaOS4 .so support
17376 lt_prog_compiler_pic_GCJ='-fPIC'
17377 ;;
17378 m68k)
17379 # FIXME: we need at least 68020 code to build shared libraries, but
17380 # adding the `-m68020' flag to GCC prevents building anything better,
17381 # like `-m68040'.
17382 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17383 ;;
17384 esac
17385 ;;
17386
17387 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17388 # PIC is the default for these OSes.
17389 ;;
17390
17391 mingw* | cygwin* | pw32* | os2* | cegcc*)
17392 # This hack is so that the source file can tell whether it is being
17393 # built for inclusion in a dll (and should export symbols for example).
17394 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17395 # (--disable-auto-import) libraries
17396
17397 ;;
17398
17399 darwin* | rhapsody*)
17400 # PIC is the default on this platform
17401 # Common symbols not allowed in MH_DYLIB files
17402 lt_prog_compiler_pic_GCJ='-fno-common'
17403 ;;
17404
17405 haiku*)
17406 # PIC is the default for Haiku.
17407 # The "-static" flag exists, but is broken.
17408 lt_prog_compiler_static_GCJ=
17409 ;;
17410
17411 hpux*)
17412 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17413 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17414 # sets the default TLS model and affects inlining.
17415 case $host_cpu in
17416 hppa*64*)
17417 # +Z the default
17418 ;;
17419 *)
17420 lt_prog_compiler_pic_GCJ='-fPIC'
17421 ;;
17422 esac
17423 ;;
17424
17425 interix[3-9]*)
17426 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17427 # Instead, we relocate shared libraries at runtime.
17428 ;;
17429
17430 msdosdjgpp*)
17431 # Just because we use GCC doesn't mean we suddenly get shared libraries
17432 # on systems that don't support them.
17433 lt_prog_compiler_can_build_shared_GCJ=no
17434 enable_shared=no
17435 ;;
17436
17437 *nto* | *qnx*)
17438 # QNX uses GNU C++, but need to define -shared option too, otherwise
17439 # it will coredump.
17440 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17441 ;;
17442
17443 sysv4*MP*)
17444 if test -d /usr/nec; then
17445 lt_prog_compiler_pic_GCJ=-Kconform_pic
17446 fi
17447 ;;
17448
17449 *)
17450 lt_prog_compiler_pic_GCJ='-fPIC'
17451 ;;
17452 esac
17453
17454 case $cc_basename in
17455 nvcc*) # Cuda Compiler Driver 2.2
17456 lt_prog_compiler_wl_GCJ='-Xlinker '
17457 lt_prog_compiler_pic_GCJ='-Xcompiler -fPIC'
17458 ;;
17459 esac
17460 else
17461 # PORTME Check for flag to pass linker flags through the system compiler.
17462 case $host_os in
17463 aix*)
17464 lt_prog_compiler_wl_GCJ='-Wl,'
17465 if test "$host_cpu" = ia64; then
17466 # AIX 5 now supports IA64 processor
17467 lt_prog_compiler_static_GCJ='-Bstatic'
17468 else
17469 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17470 fi
17471 ;;
17472
17473 mingw* | cygwin* | pw32* | os2* | cegcc*)
17474 # This hack is so that the source file can tell whether it is being
17475 # built for inclusion in a dll (and should export symbols for example).
17476
17477 ;;
17478
17479 hpux9* | hpux10* | hpux11*)
17480 lt_prog_compiler_wl_GCJ='-Wl,'
17481 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17482 # not for PA HP-UX.
17483 case $host_cpu in
17484 hppa*64*|ia64*)
17485 # +Z the default
17486 ;;
17487 *)
17488 lt_prog_compiler_pic_GCJ='+Z'
17489 ;;
17490 esac
17491 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17492 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17493 ;;
17494
17495 irix5* | irix6* | nonstopux*)
17496 lt_prog_compiler_wl_GCJ='-Wl,'
17497 # PIC (with -KPIC) is the default.
17498 lt_prog_compiler_static_GCJ='-non_shared'
17499 ;;
17500
17501 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17502 case $cc_basename in
17503 # old Intel for x86_64 which still supported -KPIC.
17504 ecc*)
17505 lt_prog_compiler_wl_GCJ='-Wl,'
17506 lt_prog_compiler_pic_GCJ='-KPIC'
17507 lt_prog_compiler_static_GCJ='-static'
17508 ;;
17509 # icc used to be incompatible with GCC.
17510 # ICC 10 doesn't accept -KPIC any more.
17511 icc* | ifort*)
17512 lt_prog_compiler_wl_GCJ='-Wl,'
17513 lt_prog_compiler_pic_GCJ='-fPIC'
17514 lt_prog_compiler_static_GCJ='-static'
17515 ;;
17516 # Lahey Fortran 8.1.
17517 lf95*)
17518 lt_prog_compiler_wl_GCJ='-Wl,'
17519 lt_prog_compiler_pic_GCJ='--shared'
17520 lt_prog_compiler_static_GCJ='--static'
17521 ;;
17522 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17523 # Portland Group compilers (*not* the Pentium gcc compiler,
17524 # which looks to be a dead project)
17525 lt_prog_compiler_wl_GCJ='-Wl,'
17526 lt_prog_compiler_pic_GCJ='-fpic'
17527 lt_prog_compiler_static_GCJ='-Bstatic'
17528 ;;
17529 ccc*)
17530 lt_prog_compiler_wl_GCJ='-Wl,'
17531 # All Alpha code is PIC.
17532 lt_prog_compiler_static_GCJ='-non_shared'
17533 ;;
17534 xl* | bgxl* | bgf* | mpixl*)
17535 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17536 lt_prog_compiler_wl_GCJ='-Wl,'
17537 lt_prog_compiler_pic_GCJ='-qpic'
17538 lt_prog_compiler_static_GCJ='-qstaticlink'
17539 ;;
17540 *)
17541 case `$CC -V 2>&1 | sed 5q` in
17542 *Sun\ F* | *Sun*Fortran*)
17543 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17544 lt_prog_compiler_pic_GCJ='-KPIC'
17545 lt_prog_compiler_static_GCJ='-Bstatic'
17546 lt_prog_compiler_wl_GCJ=''
17547 ;;
17548 *Sun\ C*)
17549 # Sun C 5.9
17550 lt_prog_compiler_pic_GCJ='-KPIC'
17551 lt_prog_compiler_static_GCJ='-Bstatic'
17552 lt_prog_compiler_wl_GCJ='-Wl,'
17553 ;;
17554 esac
17555 ;;
17556 esac
17557 ;;
17558
17559 newsos6)
17560 lt_prog_compiler_pic_GCJ='-KPIC'
17561 lt_prog_compiler_static_GCJ='-Bstatic'
17562 ;;
17563
17564 *nto* | *qnx*)
17565 # QNX uses GNU C++, but need to define -shared option too, otherwise
17566 # it will coredump.
17567 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17568 ;;
17569
17570 osf3* | osf4* | osf5*)
17571 lt_prog_compiler_wl_GCJ='-Wl,'
17572 # All OSF/1 code is PIC.
17573 lt_prog_compiler_static_GCJ='-non_shared'
17574 ;;
17575
17576 rdos*)
17577 lt_prog_compiler_static_GCJ='-non_shared'
17578 ;;
17579
17580 solaris*)
17581 lt_prog_compiler_pic_GCJ='-KPIC'
17582 lt_prog_compiler_static_GCJ='-Bstatic'
17583 case $cc_basename in
17584 f77* | f90* | f95*)
17585 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17586 *)
17587 lt_prog_compiler_wl_GCJ='-Wl,';;
17588 esac
17589 ;;
17590
17591 sunos4*)
17592 lt_prog_compiler_wl_GCJ='-Qoption ld '
17593 lt_prog_compiler_pic_GCJ='-PIC'
17594 lt_prog_compiler_static_GCJ='-Bstatic'
17595 ;;
17596
17597 sysv4 | sysv4.2uw2* | sysv4.3*)
17598 lt_prog_compiler_wl_GCJ='-Wl,'
17599 lt_prog_compiler_pic_GCJ='-KPIC'
17600 lt_prog_compiler_static_GCJ='-Bstatic'
17601 ;;
17602
17603 sysv4*MP*)
17604 if test -d /usr/nec ;then
17605 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17606 lt_prog_compiler_static_GCJ='-Bstatic'
17607 fi
17608 ;;
17609
17610 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17611 lt_prog_compiler_wl_GCJ='-Wl,'
17612 lt_prog_compiler_pic_GCJ='-KPIC'
17613 lt_prog_compiler_static_GCJ='-Bstatic'
17614 ;;
17615
17616 unicos*)
17617 lt_prog_compiler_wl_GCJ='-Wl,'
17618 lt_prog_compiler_can_build_shared_GCJ=no
17619 ;;
17620
17621 uts4*)
17622 lt_prog_compiler_pic_GCJ='-pic'
17623 lt_prog_compiler_static_GCJ='-Bstatic'
17624 ;;
17625
17626 *)
17627 lt_prog_compiler_can_build_shared_GCJ=no
17628 ;;
17629 esac
17630 fi
17631
17632 case $host_os in
17633 # For platforms which do not support PIC, -DPIC is meaningless:
17634 *djgpp*)
17635 lt_prog_compiler_pic_GCJ=
17636 ;;
17637 *)
17638 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17639 ;;
17640 esac
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
17642 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17643
17644
17645
17646 #
17647 # Check to make sure the PIC flag actually works.
17648 #
17649 if test -n "$lt_prog_compiler_pic_GCJ"; then
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17651 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17652 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
17653 $as_echo_n "(cached) " >&6
17654 else
17655 lt_cv_prog_compiler_pic_works_GCJ=no
17656 ac_outfile=conftest.$ac_objext
17657 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17658 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17659 # Insert the option either (1) after the last *FLAGS variable, or
17660 # (2) before a word containing "conftest.", or (3) at the end.
17661 # Note that $ac_compile itself does not contain backslashes and begins
17662 # with a dollar sign (not a hyphen), so the echo should work correctly.
17663 # The option is referenced via a variable to avoid confusing sed.
17664 lt_compile=`echo "$ac_compile" | $SED \
17665 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17666 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17667 -e 's:$: $lt_compiler_flag:'`
17668 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17669 (eval "$lt_compile" 2>conftest.err)
17670 ac_status=$?
17671 cat conftest.err >&5
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 if (exit $ac_status) && test -s "$ac_outfile"; then
17674 # The compiler can only warn and ignore the option if not recognized
17675 # So say no if there are warnings other than the usual output.
17676 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17677 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17678 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17679 lt_cv_prog_compiler_pic_works_GCJ=yes
17680 fi
17681 fi
17682 $RM conftest*
17683
17684 fi
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17686 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17687
17688 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17689 case $lt_prog_compiler_pic_GCJ in
17690 "" | " "*) ;;
17691 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17692 esac
17693 else
17694 lt_prog_compiler_pic_GCJ=
17695 lt_prog_compiler_can_build_shared_GCJ=no
17696 fi
17697
17698 fi
17699
17700
17701
17702 #
17703 # Check to make sure the static flag actually works.
17704 #
17705 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17707 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17708 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
17709 $as_echo_n "(cached) " >&6
17710 else
17711 lt_cv_prog_compiler_static_works_GCJ=no
17712 save_LDFLAGS="$LDFLAGS"
17713 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17714 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17715 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17716 # The linker can only warn and ignore the option if not recognized
17717 # So say no if there are warnings
17718 if test -s conftest.err; then
17719 # Append any errors to the config.log.
17720 cat conftest.err 1>&5
17721 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17722 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17723 if diff conftest.exp conftest.er2 >/dev/null; then
17724 lt_cv_prog_compiler_static_works_GCJ=yes
17725 fi
17726 else
17727 lt_cv_prog_compiler_static_works_GCJ=yes
17728 fi
17729 fi
17730 $RM -r conftest*
17731 LDFLAGS="$save_LDFLAGS"
17732
17733 fi
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17735 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17736
17737 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17738 :
17739 else
17740 lt_prog_compiler_static_GCJ=
17741 fi
17742
17743
17744
17745
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17747 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17748 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17749 $as_echo_n "(cached) " >&6
17750 else
17751 lt_cv_prog_compiler_c_o_GCJ=no
17752 $RM -r conftest 2>/dev/null
17753 mkdir conftest
17754 cd conftest
17755 mkdir out
17756 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17757
17758 lt_compiler_flag="-o out/conftest2.$ac_objext"
17759 # Insert the option either (1) after the last *FLAGS variable, or
17760 # (2) before a word containing "conftest.", or (3) at the end.
17761 # Note that $ac_compile itself does not contain backslashes and begins
17762 # with a dollar sign (not a hyphen), so the echo should work correctly.
17763 lt_compile=`echo "$ac_compile" | $SED \
17764 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17765 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17766 -e 's:$: $lt_compiler_flag:'`
17767 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17768 (eval "$lt_compile" 2>out/conftest.err)
17769 ac_status=$?
17770 cat out/conftest.err >&5
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17773 then
17774 # The compiler can only warn and ignore the option if not recognized
17775 # So say no if there are warnings
17776 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17777 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17778 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17779 lt_cv_prog_compiler_c_o_GCJ=yes
17780 fi
17781 fi
17782 chmod u+w . 2>&5
17783 $RM conftest*
17784 # SGI C++ compiler will create directory out/ii_files/ for
17785 # template instantiation
17786 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17787 $RM out/* && rmdir out
17788 cd ..
17789 $RM -r conftest
17790 $RM conftest*
17791
17792 fi
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17794 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17795
17796
17797
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17799 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17800 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17801 $as_echo_n "(cached) " >&6
17802 else
17803 lt_cv_prog_compiler_c_o_GCJ=no
17804 $RM -r conftest 2>/dev/null
17805 mkdir conftest
17806 cd conftest
17807 mkdir out
17808 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17809
17810 lt_compiler_flag="-o out/conftest2.$ac_objext"
17811 # Insert the option either (1) after the last *FLAGS variable, or
17812 # (2) before a word containing "conftest.", or (3) at the end.
17813 # Note that $ac_compile itself does not contain backslashes and begins
17814 # with a dollar sign (not a hyphen), so the echo should work correctly.
17815 lt_compile=`echo "$ac_compile" | $SED \
17816 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17817 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17818 -e 's:$: $lt_compiler_flag:'`
17819 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17820 (eval "$lt_compile" 2>out/conftest.err)
17821 ac_status=$?
17822 cat out/conftest.err >&5
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17825 then
17826 # The compiler can only warn and ignore the option if not recognized
17827 # So say no if there are warnings
17828 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17829 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17830 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17831 lt_cv_prog_compiler_c_o_GCJ=yes
17832 fi
17833 fi
17834 chmod u+w . 2>&5
17835 $RM conftest*
17836 # SGI C++ compiler will create directory out/ii_files/ for
17837 # template instantiation
17838 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17839 $RM out/* && rmdir out
17840 cd ..
17841 $RM -r conftest
17842 $RM conftest*
17843
17844 fi
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17846 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17847
17848
17849
17850
17851 hard_links="nottested"
17852 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17853 # do not overwrite the value of need_locks provided by the user
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17855 $as_echo_n "checking if we can lock with hard links... " >&6; }
17856 hard_links=yes
17857 $RM conftest*
17858 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17859 touch conftest.a
17860 ln conftest.a conftest.b 2>&5 || hard_links=no
17861 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17863 $as_echo "$hard_links" >&6; }
17864 if test "$hard_links" = no; then
17865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17866 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17867 need_locks=warn
17868 fi
17869 else
17870 need_locks=no
17871 fi
17872
17873
17874
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17876 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17877
17878 runpath_var=
17879 allow_undefined_flag_GCJ=
17880 always_export_symbols_GCJ=no
17881 archive_cmds_GCJ=
17882 archive_expsym_cmds_GCJ=
17883 compiler_needs_object_GCJ=no
17884 enable_shared_with_static_runtimes_GCJ=no
17885 export_dynamic_flag_spec_GCJ=
17886 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17887 hardcode_automatic_GCJ=no
17888 hardcode_direct_GCJ=no
17889 hardcode_direct_absolute_GCJ=no
17890 hardcode_libdir_flag_spec_GCJ=
17891 hardcode_libdir_flag_spec_ld_GCJ=
17892 hardcode_libdir_separator_GCJ=
17893 hardcode_minus_L_GCJ=no
17894 hardcode_shlibpath_var_GCJ=unsupported
17895 inherit_rpath_GCJ=no
17896 link_all_deplibs_GCJ=unknown
17897 module_cmds_GCJ=
17898 module_expsym_cmds_GCJ=
17899 old_archive_from_new_cmds_GCJ=
17900 old_archive_from_expsyms_cmds_GCJ=
17901 thread_safe_flag_spec_GCJ=
17902 whole_archive_flag_spec_GCJ=
17903 # include_expsyms should be a list of space-separated symbols to be *always*
17904 # included in the symbol list
17905 include_expsyms_GCJ=
17906 # exclude_expsyms can be an extended regexp of symbols to exclude
17907 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17908 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17909 # as well as any symbol that contains `d'.
17910 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17911 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17912 # platforms (ab)use it in PIC code, but their linkers get confused if
17913 # the symbol is explicitly referenced. Since portable code cannot
17914 # rely on this symbol name, it's probably fine to never include it in
17915 # preloaded symbol tables.
17916 # Exclude shared library initialization/finalization symbols.
17917 extract_expsyms_cmds=
17918
17919 case $host_os in
17920 cygwin* | mingw* | pw32* | cegcc*)
17921 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17922 # When not using gcc, we currently assume that we are using
17923 # Microsoft Visual C++.
17924 if test "$GCC" != yes; then
17925 with_gnu_ld=no
17926 fi
17927 ;;
17928 interix*)
17929 # we just hope/assume this is gcc and not c89 (= MSVC++)
17930 with_gnu_ld=yes
17931 ;;
17932 openbsd*)
17933 with_gnu_ld=no
17934 ;;
17935 esac
17936
17937 ld_shlibs_GCJ=yes
17938
17939 # On some targets, GNU ld is compatible enough with the native linker
17940 # that we're better off using the native interface for both.
17941 lt_use_gnu_ld_interface=no
17942 if test "$with_gnu_ld" = yes; then
17943 case $host_os in
17944 aix*)
17945 # The AIX port of GNU ld has always aspired to compatibility
17946 # with the native linker. However, as the warning in the GNU ld
17947 # block says, versions before 2.19.5* couldn't really create working
17948 # shared libraries, regardless of the interface used.
17949 case `$LD -v 2>&1` in
17950 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17951 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17952 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17953 *)
17954 lt_use_gnu_ld_interface=yes
17955 ;;
17956 esac
17957 ;;
17958 *)
17959 lt_use_gnu_ld_interface=yes
17960 ;;
17961 esac
17962 fi
17963
17964 if test "$lt_use_gnu_ld_interface" = yes; then
17965 # If archive_cmds runs LD, not CC, wlarc should be empty
17966 wlarc='${wl}'
17967
17968 # Set some defaults for GNU ld with shared library support. These
17969 # are reset later if shared libraries are not supported. Putting them
17970 # here allows them to be overridden if necessary.
17971 runpath_var=LD_RUN_PATH
17972 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17973 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17974 # ancient GNU ld didn't support --whole-archive et. al.
17975 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17976 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17977 else
17978 whole_archive_flag_spec_GCJ=
17979 fi
17980 supports_anon_versioning=no
17981 case `$LD -v 2>&1` in
17982 *GNU\ gold*) supports_anon_versioning=yes ;;
17983 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17984 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17985 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17986 *\ 2.11.*) ;; # other 2.11 versions
17987 *) supports_anon_versioning=yes ;;
17988 esac
17989
17990 # See if GNU ld supports shared libraries.
17991 case $host_os in
17992 aix[3-9]*)
17993 # On AIX/PPC, the GNU linker is very broken
17994 if test "$host_cpu" != ia64; then
17995 ld_shlibs_GCJ=no
17996 cat <<_LT_EOF 1>&2
17997
17998 *** Warning: the GNU linker, at least up to release 2.19, is reported
17999 *** to be unable to reliably create shared libraries on AIX.
18000 *** Therefore, libtool is disabling shared libraries support. If you
18001 *** really care for shared libraries, you may want to install binutils
18002 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
18003 *** You will then need to restart the configuration process.
18004
18005 _LT_EOF
18006 fi
18007 ;;
18008
18009 amigaos*)
18010 case $host_cpu in
18011 powerpc)
18012 # see comment about AmigaOS4 .so support
18013 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18014 archive_expsym_cmds_GCJ=''
18015 ;;
18016 m68k)
18017 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)'
18018 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18019 hardcode_minus_L_GCJ=yes
18020 ;;
18021 esac
18022 ;;
18023
18024 beos*)
18025 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18026 allow_undefined_flag_GCJ=unsupported
18027 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18028 # support --undefined. This deserves some investigation. FIXME
18029 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18030 else
18031 ld_shlibs_GCJ=no
18032 fi
18033 ;;
18034
18035 cygwin* | mingw* | pw32* | cegcc*)
18036 # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18037 # as there is no search path for DLLs.
18038 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18039 export_dynamic_flag_spec_GCJ='${wl}--export-all-symbols'
18040 allow_undefined_flag_GCJ=unsupported
18041 always_export_symbols_GCJ=no
18042 enable_shared_with_static_runtimes_GCJ=yes
18043 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18044
18045 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18046 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18047 # If the export-symbols file already is a .def file (1st line
18048 # is EXPORTS), use it as is; otherwise, prepend...
18049 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18050 cp $export_symbols $output_objdir/$soname.def;
18051 else
18052 echo EXPORTS > $output_objdir/$soname.def;
18053 cat $export_symbols >> $output_objdir/$soname.def;
18054 fi~
18055 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18056 else
18057 ld_shlibs_GCJ=no
18058 fi
18059 ;;
18060
18061 haiku*)
18062 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18063 link_all_deplibs_GCJ=yes
18064 ;;
18065
18066 interix[3-9]*)
18067 hardcode_direct_GCJ=no
18068 hardcode_shlibpath_var_GCJ=no
18069 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18070 export_dynamic_flag_spec_GCJ='${wl}-E'
18071 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18072 # Instead, shared libraries are loaded at an image base (0x10000000 by
18073 # default) and relocated if they conflict, which is a slow very memory
18074 # consuming and fragmenting process. To avoid this, we pick a random,
18075 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18076 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18077 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'
18078 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'
18079 ;;
18080
18081 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
18082 tmp_diet=no
18083 if test "$host_os" = linux-dietlibc; then
18084 case $cc_basename in
18085 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
18086 esac
18087 fi
18088 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
18089 && test "$tmp_diet" = no
18090 then
18091 tmp_addflag=
18092 tmp_sharedflag='-shared'
18093 case $cc_basename,$host_cpu in
18094 pgcc*) # Portland Group C compiler
18095 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'
18096 tmp_addflag=' $pic_flag'
18097 ;;
18098 pgf77* | pgf90* | pgf95* | pgfortran*)
18099 # Portland Group f77 and f90 compilers
18100 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'
18101 tmp_addflag=' $pic_flag -Mnomain' ;;
18102 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18103 tmp_addflag=' -i_dynamic' ;;
18104 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18105 tmp_addflag=' -i_dynamic -nofor_main' ;;
18106 ifc* | ifort*) # Intel Fortran compiler
18107 tmp_addflag=' -nofor_main' ;;
18108 lf95*) # Lahey Fortran 8.1
18109 whole_archive_flag_spec_GCJ=
18110 tmp_sharedflag='--shared' ;;
18111 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
18112 tmp_sharedflag='-qmkshrobj'
18113 tmp_addflag= ;;
18114 nvcc*) # Cuda Compiler Driver 2.2
18115 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'
18116 compiler_needs_object_GCJ=yes
18117 ;;
18118 esac
18119 case `$CC -V 2>&1 | sed 5q` in
18120 *Sun\ C*) # Sun C 5.9
18121 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'
18122 compiler_needs_object_GCJ=yes
18123 tmp_sharedflag='-G' ;;
18124 *Sun\ F*) # Sun Fortran 8.3
18125 tmp_sharedflag='-G' ;;
18126 esac
18127 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18128
18129 if test "x$supports_anon_versioning" = xyes; then
18130 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18131 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18132 echo "local: *; };" >> $output_objdir/$libname.ver~
18133 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18134 fi
18135
18136 case $cc_basename in
18137 xlf* | bgf* | bgxlf* | mpixlf*)
18138 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
18139 whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
18140 hardcode_libdir_flag_spec_GCJ=
18141 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18142 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
18143 if test "x$supports_anon_versioning" = xyes; then
18144 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18145 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18146 echo "local: *; };" >> $output_objdir/$libname.ver~
18147 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
18148 fi
18149 ;;
18150 esac
18151 else
18152 ld_shlibs_GCJ=no
18153 fi
18154 ;;
18155
18156 netbsd*)
18157 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18158 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18159 wlarc=
18160 else
18161 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18162 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18163 fi
18164 ;;
18165
18166 solaris*)
18167 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
18168 ld_shlibs_GCJ=no
18169 cat <<_LT_EOF 1>&2
18170
18171 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18172 *** create shared libraries on Solaris systems. Therefore, libtool
18173 *** is disabling shared libraries support. We urge you to upgrade GNU
18174 *** binutils to release 2.9.1 or newer. Another option is to modify
18175 *** your PATH or compiler configuration so that the native linker is
18176 *** used, and then restart.
18177
18178 _LT_EOF
18179 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18180 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18181 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18182 else
18183 ld_shlibs_GCJ=no
18184 fi
18185 ;;
18186
18187 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18188 case `$LD -v 2>&1` in
18189 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18190 ld_shlibs_GCJ=no
18191 cat <<_LT_EOF 1>&2
18192
18193 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18194 *** reliably create shared libraries on SCO systems. Therefore, libtool
18195 *** is disabling shared libraries support. We urge you to upgrade GNU
18196 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18197 *** your PATH or compiler configuration so that the native linker is
18198 *** used, and then restart.
18199
18200 _LT_EOF
18201 ;;
18202 *)
18203 # For security reasons, it is highly recommended that you always
18204 # use absolute paths for naming shared libraries, and exclude the
18205 # DT_RUNPATH tag from executables and libraries. But doing so
18206 # requires that you compile everything twice, which is a pain.
18207 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18208 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18209 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18210 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18211 else
18212 ld_shlibs_GCJ=no
18213 fi
18214 ;;
18215 esac
18216 ;;
18217
18218 sunos4*)
18219 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18220 wlarc=
18221 hardcode_direct_GCJ=yes
18222 hardcode_shlibpath_var_GCJ=no
18223 ;;
18224
18225 *)
18226 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18227 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18228 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18229 else
18230 ld_shlibs_GCJ=no
18231 fi
18232 ;;
18233 esac
18234
18235 if test "$ld_shlibs_GCJ" = no; then
18236 runpath_var=
18237 hardcode_libdir_flag_spec_GCJ=
18238 export_dynamic_flag_spec_GCJ=
18239 whole_archive_flag_spec_GCJ=
18240 fi
18241 else
18242 # PORTME fill in a description of your system's linker (not GNU ld)
18243 case $host_os in
18244 aix3*)
18245 allow_undefined_flag_GCJ=unsupported
18246 always_export_symbols_GCJ=yes
18247 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'
18248 # Note: this linker hardcodes the directories in LIBPATH if there
18249 # are no directories specified by -L.
18250 hardcode_minus_L_GCJ=yes
18251 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18252 # Neither direct hardcoding nor static linking is supported with a
18253 # broken collect2.
18254 hardcode_direct_GCJ=unsupported
18255 fi
18256 ;;
18257
18258 aix[4-9]*)
18259 if test "$host_cpu" = ia64; then
18260 # On IA64, the linker does run time linking by default, so we don't
18261 # have to do anything special.
18262 aix_use_runtimelinking=no
18263 exp_sym_flag='-Bexport'
18264 no_entry_flag=""
18265 else
18266 # If we're using GNU nm, then we don't want the "-C" option.
18267 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18268 # Also, AIX nm treats weak defined symbols like other global
18269 # defined symbols, whereas GNU nm marks them as "W".
18270 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18271 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'
18272 else
18273 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'
18274 fi
18275 aix_use_runtimelinking=no
18276
18277 # Test if we are trying to use run time linking or normal
18278 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18279 # need to do runtime linking.
18280 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18281 for ld_flag in $LDFLAGS; do
18282 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18283 aix_use_runtimelinking=yes
18284 break
18285 fi
18286 done
18287 ;;
18288 esac
18289
18290 exp_sym_flag='-bexport'
18291 no_entry_flag='-bnoentry'
18292 fi
18293
18294 # When large executables or shared objects are built, AIX ld can
18295 # have problems creating the table of contents. If linking a library
18296 # or program results in "error TOC overflow" add -mminimal-toc to
18297 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18298 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18299
18300 archive_cmds_GCJ=''
18301 hardcode_direct_GCJ=yes
18302 hardcode_direct_absolute_GCJ=yes
18303 hardcode_libdir_separator_GCJ=':'
18304 link_all_deplibs_GCJ=yes
18305 file_list_spec_GCJ='${wl}-f,'
18306
18307 if test "$GCC" = yes; then
18308 case $host_os in aix4.[012]|aix4.[012].*)
18309 # We only want to do this on AIX 4.2 and lower, the check
18310 # below for broken collect2 doesn't work under 4.3+
18311 collect2name=`${CC} -print-prog-name=collect2`
18312 if test -f "$collect2name" &&
18313 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18314 then
18315 # We have reworked collect2
18316 :
18317 else
18318 # We have old collect2
18319 hardcode_direct_GCJ=unsupported
18320 # It fails to find uninstalled libraries when the uninstalled
18321 # path is not listed in the libpath. Setting hardcode_minus_L
18322 # to unsupported forces relinking
18323 hardcode_minus_L_GCJ=yes
18324 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18325 hardcode_libdir_separator_GCJ=
18326 fi
18327 ;;
18328 esac
18329 shared_flag='-shared'
18330 if test "$aix_use_runtimelinking" = yes; then
18331 shared_flag="$shared_flag "'${wl}-G'
18332 fi
18333 else
18334 # not using gcc
18335 if test "$host_cpu" = ia64; then
18336 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18337 # chokes on -Wl,-G. The following line is correct:
18338 shared_flag='-G'
18339 else
18340 if test "$aix_use_runtimelinking" = yes; then
18341 shared_flag='${wl}-G'
18342 else
18343 shared_flag='${wl}-bM:SRE'
18344 fi
18345 fi
18346 fi
18347
18348 export_dynamic_flag_spec_GCJ='${wl}-bexpall'
18349 # It seems that -bexpall does not export symbols beginning with
18350 # underscore (_), so it is better to generate a list of symbols to export.
18351 always_export_symbols_GCJ=yes
18352 if test "$aix_use_runtimelinking" = yes; then
18353 # Warning - without using the other runtime loading flags (-brtl),
18354 # -berok will link without error, but may produce a broken library.
18355 allow_undefined_flag_GCJ='-berok'
18356 # Determine the default libpath from the value encoded in an
18357 # empty executable.
18358 if test x$gcc_no_link = xyes; then
18359 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18360 fi
18361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18362 /* end confdefs.h. */
18363
18364 int
18365 main ()
18366 {
18367
18368 ;
18369 return 0;
18370 }
18371 _ACEOF
18372 if ac_fn_c_try_link "$LINENO"; then :
18373
18374 lt_aix_libpath_sed='
18375 /Import File Strings/,/^$/ {
18376 /^0/ {
18377 s/^0 *\(.*\)$/\1/
18378 p
18379 }
18380 }'
18381 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18382 # Check for a 64-bit object if we didn't find anything.
18383 if test -z "$aix_libpath"; then
18384 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18385 fi
18386 fi
18387 rm -f core conftest.err conftest.$ac_objext \
18388 conftest$ac_exeext conftest.$ac_ext
18389 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18390
18391 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18392 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"
18393 else
18394 if test "$host_cpu" = ia64; then
18395 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18396 allow_undefined_flag_GCJ="-z nodefs"
18397 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"
18398 else
18399 # Determine the default libpath from the value encoded in an
18400 # empty executable.
18401 if test x$gcc_no_link = xyes; then
18402 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18403 fi
18404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18405 /* end confdefs.h. */
18406
18407 int
18408 main ()
18409 {
18410
18411 ;
18412 return 0;
18413 }
18414 _ACEOF
18415 if ac_fn_c_try_link "$LINENO"; then :
18416
18417 lt_aix_libpath_sed='
18418 /Import File Strings/,/^$/ {
18419 /^0/ {
18420 s/^0 *\(.*\)$/\1/
18421 p
18422 }
18423 }'
18424 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18425 # Check for a 64-bit object if we didn't find anything.
18426 if test -z "$aix_libpath"; then
18427 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18428 fi
18429 fi
18430 rm -f core conftest.err conftest.$ac_objext \
18431 conftest$ac_exeext conftest.$ac_ext
18432 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18433
18434 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18435 # Warning - without using the other run time loading flags,
18436 # -berok will link without error, but may produce a broken library.
18437 no_undefined_flag_GCJ=' ${wl}-bernotok'
18438 allow_undefined_flag_GCJ=' ${wl}-berok'
18439 if test "$with_gnu_ld" = yes; then
18440 # We only use this code for GNU lds that support --whole-archive.
18441 whole_archive_flag_spec_GCJ='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18442 else
18443 # Exported symbols can be pulled into shared objects from archives
18444 whole_archive_flag_spec_GCJ='$convenience'
18445 fi
18446 archive_cmds_need_lc_GCJ=yes
18447 # This is similar to how AIX traditionally builds its shared libraries.
18448 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18449 fi
18450 fi
18451 ;;
18452
18453 amigaos*)
18454 case $host_cpu in
18455 powerpc)
18456 # see comment about AmigaOS4 .so support
18457 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18458 archive_expsym_cmds_GCJ=''
18459 ;;
18460 m68k)
18461 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)'
18462 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18463 hardcode_minus_L_GCJ=yes
18464 ;;
18465 esac
18466 ;;
18467
18468 bsdi[45]*)
18469 export_dynamic_flag_spec_GCJ=-rdynamic
18470 ;;
18471
18472 cygwin* | mingw* | pw32* | cegcc*)
18473 # When not using gcc, we currently assume that we are using
18474 # Microsoft Visual C++.
18475 # hardcode_libdir_flag_spec is actually meaningless, as there is
18476 # no search path for DLLs.
18477 hardcode_libdir_flag_spec_GCJ=' '
18478 allow_undefined_flag_GCJ=unsupported
18479 # Tell ltmain to make .lib files, not .a files.
18480 libext=lib
18481 # Tell ltmain to make .dll files, not .so files.
18482 shrext_cmds=".dll"
18483 # FIXME: Setting linknames here is a bad hack.
18484 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18485 # The linker will automatically build a .lib file if we build a DLL.
18486 old_archive_from_new_cmds_GCJ='true'
18487 # FIXME: Should let the user specify the lib program.
18488 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18489 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18490 enable_shared_with_static_runtimes_GCJ=yes
18491 ;;
18492
18493 darwin* | rhapsody*)
18494
18495
18496 archive_cmds_need_lc_GCJ=no
18497 hardcode_direct_GCJ=no
18498 hardcode_automatic_GCJ=yes
18499 hardcode_shlibpath_var_GCJ=unsupported
18500 if test "$lt_cv_ld_force_load" = "yes"; then
18501 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\"`'
18502 else
18503 whole_archive_flag_spec_GCJ=''
18504 fi
18505 link_all_deplibs_GCJ=yes
18506 allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
18507 case $cc_basename in
18508 ifort*) _lt_dar_can_shared=yes ;;
18509 *) _lt_dar_can_shared=$GCC ;;
18510 esac
18511 if test "$_lt_dar_can_shared" = "yes"; then
18512 output_verbose_link_cmd=func_echo_all
18513 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}"
18514 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18515 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}"
18516 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}"
18517
18518 else
18519 ld_shlibs_GCJ=no
18520 fi
18521
18522 ;;
18523
18524 dgux*)
18525 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18526 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18527 hardcode_shlibpath_var_GCJ=no
18528 ;;
18529
18530 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18531 # support. Future versions do this automatically, but an explicit c++rt0.o
18532 # does not break anything, and helps significantly (at the cost of a little
18533 # extra space).
18534 freebsd2.2*)
18535 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18536 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18537 hardcode_direct_GCJ=yes
18538 hardcode_shlibpath_var_GCJ=no
18539 ;;
18540
18541 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18542 freebsd2.*)
18543 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18544 hardcode_direct_GCJ=yes
18545 hardcode_minus_L_GCJ=yes
18546 hardcode_shlibpath_var_GCJ=no
18547 ;;
18548
18549 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18550 freebsd* | dragonfly*)
18551 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18552 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18553 hardcode_direct_GCJ=yes
18554 hardcode_shlibpath_var_GCJ=no
18555 ;;
18556
18557 hpux9*)
18558 if test "$GCC" = yes; then
18559 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'
18560 else
18561 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'
18562 fi
18563 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18564 hardcode_libdir_separator_GCJ=:
18565 hardcode_direct_GCJ=yes
18566
18567 # hardcode_minus_L: Not really in the search PATH,
18568 # but as the default location of the library.
18569 hardcode_minus_L_GCJ=yes
18570 export_dynamic_flag_spec_GCJ='${wl}-E'
18571 ;;
18572
18573 hpux10*)
18574 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18575 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18576 else
18577 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18578 fi
18579 if test "$with_gnu_ld" = no; then
18580 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18581 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18582 hardcode_libdir_separator_GCJ=:
18583 hardcode_direct_GCJ=yes
18584 hardcode_direct_absolute_GCJ=yes
18585 export_dynamic_flag_spec_GCJ='${wl}-E'
18586 # hardcode_minus_L: Not really in the search PATH,
18587 # but as the default location of the library.
18588 hardcode_minus_L_GCJ=yes
18589 fi
18590 ;;
18591
18592 hpux11*)
18593 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18594 case $host_cpu in
18595 hppa*64*)
18596 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18597 ;;
18598 ia64*)
18599 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18600 ;;
18601 *)
18602 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18603 ;;
18604 esac
18605 else
18606 case $host_cpu in
18607 hppa*64*)
18608 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18609 ;;
18610 ia64*)
18611 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18612 ;;
18613 *)
18614 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18615 ;;
18616 esac
18617 fi
18618 if test "$with_gnu_ld" = no; then
18619 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18620 hardcode_libdir_separator_GCJ=:
18621
18622 case $host_cpu in
18623 hppa*64*|ia64*)
18624 hardcode_direct_GCJ=no
18625 hardcode_shlibpath_var_GCJ=no
18626 ;;
18627 *)
18628 hardcode_direct_GCJ=yes
18629 hardcode_direct_absolute_GCJ=yes
18630 export_dynamic_flag_spec_GCJ='${wl}-E'
18631
18632 # hardcode_minus_L: Not really in the search PATH,
18633 # but as the default location of the library.
18634 hardcode_minus_L_GCJ=yes
18635 ;;
18636 esac
18637 fi
18638 ;;
18639
18640 irix5* | irix6* | nonstopux*)
18641 if test "$GCC" = yes; then
18642 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'
18643 # Try to use the -exported_symbol ld option, if it does not
18644 # work, assume that -exports_file does not work either and
18645 # implicitly export all symbols.
18646 save_LDFLAGS="$LDFLAGS"
18647 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18648 if test x$gcc_no_link = xyes; then
18649 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18650 fi
18651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18652 /* end confdefs.h. */
18653 int foo(void) {}
18654 _ACEOF
18655 if ac_fn_c_try_link "$LINENO"; then :
18656 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'
18657
18658 fi
18659 rm -f core conftest.err conftest.$ac_objext \
18660 conftest$ac_exeext conftest.$ac_ext
18661 LDFLAGS="$save_LDFLAGS"
18662 else
18663 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'
18664 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'
18665 fi
18666 archive_cmds_need_lc_GCJ='no'
18667 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18668 hardcode_libdir_separator_GCJ=:
18669 inherit_rpath_GCJ=yes
18670 link_all_deplibs_GCJ=yes
18671 ;;
18672
18673 netbsd*)
18674 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18675 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18676 else
18677 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18678 fi
18679 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18680 hardcode_direct_GCJ=yes
18681 hardcode_shlibpath_var_GCJ=no
18682 ;;
18683
18684 newsos6)
18685 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18686 hardcode_direct_GCJ=yes
18687 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18688 hardcode_libdir_separator_GCJ=:
18689 hardcode_shlibpath_var_GCJ=no
18690 ;;
18691
18692 *nto* | *qnx*)
18693 ;;
18694
18695 openbsd*)
18696 if test -f /usr/libexec/ld.so; then
18697 hardcode_direct_GCJ=yes
18698 hardcode_shlibpath_var_GCJ=no
18699 hardcode_direct_absolute_GCJ=yes
18700 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18701 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18702 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18703 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18704 export_dynamic_flag_spec_GCJ='${wl}-E'
18705 else
18706 case $host_os in
18707 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18708 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18709 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18710 ;;
18711 *)
18712 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18713 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18714 ;;
18715 esac
18716 fi
18717 else
18718 ld_shlibs_GCJ=no
18719 fi
18720 ;;
18721
18722 os2*)
18723 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18724 hardcode_minus_L_GCJ=yes
18725 allow_undefined_flag_GCJ=unsupported
18726 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'
18727 old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18728 ;;
18729
18730 osf3*)
18731 if test "$GCC" = yes; then
18732 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18733 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'
18734 else
18735 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18736 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'
18737 fi
18738 archive_cmds_need_lc_GCJ='no'
18739 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18740 hardcode_libdir_separator_GCJ=:
18741 ;;
18742
18743 osf4* | osf5*) # as osf3* with the addition of -msym flag
18744 if test "$GCC" = yes; then
18745 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18746 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'
18747 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18748 else
18749 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18750 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'
18751 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~
18752 $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'
18753
18754 # Both c and cxx compiler support -rpath directly
18755 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18756 fi
18757 archive_cmds_need_lc_GCJ='no'
18758 hardcode_libdir_separator_GCJ=:
18759 ;;
18760
18761 solaris*)
18762 no_undefined_flag_GCJ=' -z defs'
18763 if test "$GCC" = yes; then
18764 wlarc='${wl}'
18765 archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18766 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18767 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18768 else
18769 case `$CC -V 2>&1` in
18770 *"Compilers 5.0"*)
18771 wlarc=''
18772 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18773 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18774 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18775 ;;
18776 *)
18777 wlarc='${wl}'
18778 archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18779 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18780 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18781 ;;
18782 esac
18783 fi
18784 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18785 hardcode_shlibpath_var_GCJ=no
18786 case $host_os in
18787 solaris2.[0-5] | solaris2.[0-5].*) ;;
18788 *)
18789 # The compiler driver will combine and reorder linker options,
18790 # but understands `-z linker_flag'. GCC discards it without `$wl',
18791 # but is careful enough not to reorder.
18792 # Supported since Solaris 2.6 (maybe 2.5.1?)
18793 if test "$GCC" = yes; then
18794 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18795 else
18796 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18797 fi
18798 ;;
18799 esac
18800 link_all_deplibs_GCJ=yes
18801 ;;
18802
18803 sunos4*)
18804 if test "x$host_vendor" = xsequent; then
18805 # Use $CC to link under sequent, because it throws in some extra .o
18806 # files that make .init and .fini sections work.
18807 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18808 else
18809 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18810 fi
18811 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18812 hardcode_direct_GCJ=yes
18813 hardcode_minus_L_GCJ=yes
18814 hardcode_shlibpath_var_GCJ=no
18815 ;;
18816
18817 sysv4)
18818 case $host_vendor in
18819 sni)
18820 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18821 hardcode_direct_GCJ=yes # is this really true???
18822 ;;
18823 siemens)
18824 ## LD is ld it makes a PLAMLIB
18825 ## CC just makes a GrossModule.
18826 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18827 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18828 hardcode_direct_GCJ=no
18829 ;;
18830 motorola)
18831 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18832 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18833 ;;
18834 esac
18835 runpath_var='LD_RUN_PATH'
18836 hardcode_shlibpath_var_GCJ=no
18837 ;;
18838
18839 sysv4.3*)
18840 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18841 hardcode_shlibpath_var_GCJ=no
18842 export_dynamic_flag_spec_GCJ='-Bexport'
18843 ;;
18844
18845 sysv4*MP*)
18846 if test -d /usr/nec; then
18847 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18848 hardcode_shlibpath_var_GCJ=no
18849 runpath_var=LD_RUN_PATH
18850 hardcode_runpath_var=yes
18851 ld_shlibs_GCJ=yes
18852 fi
18853 ;;
18854
18855 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18856 no_undefined_flag_GCJ='${wl}-z,text'
18857 archive_cmds_need_lc_GCJ=no
18858 hardcode_shlibpath_var_GCJ=no
18859 runpath_var='LD_RUN_PATH'
18860
18861 if test "$GCC" = yes; then
18862 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18863 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18864 else
18865 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18866 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18867 fi
18868 ;;
18869
18870 sysv5* | sco3.2v5* | sco5v6*)
18871 # Note: We can NOT use -z defs as we might desire, because we do not
18872 # link with -lc, and that would cause any symbols used from libc to
18873 # always be unresolved, which means just about no library would
18874 # ever link correctly. If we're not using GNU ld we use -z text
18875 # though, which does catch some bad symbols but isn't as heavy-handed
18876 # as -z defs.
18877 no_undefined_flag_GCJ='${wl}-z,text'
18878 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18879 archive_cmds_need_lc_GCJ=no
18880 hardcode_shlibpath_var_GCJ=no
18881 hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
18882 hardcode_libdir_separator_GCJ=':'
18883 link_all_deplibs_GCJ=yes
18884 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18885 runpath_var='LD_RUN_PATH'
18886
18887 if test "$GCC" = yes; then
18888 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18889 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18890 else
18891 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18892 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18893 fi
18894 ;;
18895
18896 uts4*)
18897 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18898 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18899 hardcode_shlibpath_var_GCJ=no
18900 ;;
18901
18902 *)
18903 ld_shlibs_GCJ=no
18904 ;;
18905 esac
18906
18907 if test x$host_vendor = xsni; then
18908 case $host in
18909 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18910 export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
18911 ;;
18912 esac
18913 fi
18914 fi
18915
18916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
18917 $as_echo "$ld_shlibs_GCJ" >&6; }
18918 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18919
18920 with_gnu_ld_GCJ=$with_gnu_ld
18921
18922
18923
18924
18925
18926
18927 #
18928 # Do we need to explicitly link libc?
18929 #
18930 case "x$archive_cmds_need_lc_GCJ" in
18931 x|xyes)
18932 # Assume -lc should be added
18933 archive_cmds_need_lc_GCJ=yes
18934
18935 if test "$enable_shared" = yes && test "$GCC" = yes; then
18936 case $archive_cmds_GCJ in
18937 *'~'*)
18938 # FIXME: we may have to deal with multi-command sequences.
18939 ;;
18940 '$CC '*)
18941 # Test whether the compiler implicitly links with -lc since on some
18942 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18943 # to ld, don't add -lc before -lgcc.
18944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18945 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18946 if test "${lt_cv_archive_cmds_need_lc_GCJ+set}" = set; then :
18947 $as_echo_n "(cached) " >&6
18948 else
18949 $RM conftest*
18950 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18951
18952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18953 (eval $ac_compile) 2>&5
18954 ac_status=$?
18955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18956 test $ac_status = 0; } 2>conftest.err; then
18957 soname=conftest
18958 lib=conftest
18959 libobjs=conftest.$ac_objext
18960 deplibs=
18961 wl=$lt_prog_compiler_wl_GCJ
18962 pic_flag=$lt_prog_compiler_pic_GCJ
18963 compiler_flags=-v
18964 linker_flags=-v
18965 verstring=
18966 output_objdir=.
18967 libname=conftest
18968 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18969 allow_undefined_flag_GCJ=
18970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18971 (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18972 ac_status=$?
18973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18974 test $ac_status = 0; }
18975 then
18976 lt_cv_archive_cmds_need_lc_GCJ=no
18977 else
18978 lt_cv_archive_cmds_need_lc_GCJ=yes
18979 fi
18980 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18981 else
18982 cat conftest.err 1>&5
18983 fi
18984 $RM conftest*
18985
18986 fi
18987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GCJ" >&5
18988 $as_echo "$lt_cv_archive_cmds_need_lc_GCJ" >&6; }
18989 archive_cmds_need_lc_GCJ=$lt_cv_archive_cmds_need_lc_GCJ
18990 ;;
18991 esac
18992 fi
18993 ;;
18994 esac
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19060 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19061 hardcode_action_GCJ=
19062 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
19063 test -n "$runpath_var_GCJ" ||
19064 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19065
19066 # We can hardcode non-existent directories.
19067 if test "$hardcode_direct_GCJ" != no &&
19068 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19069 # have to relink, otherwise we might link with an installed library
19070 # when we should be linking with a yet-to-be-installed one
19071 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19072 test "$hardcode_minus_L_GCJ" != no; then
19073 # Linking always hardcodes the temporary library directory.
19074 hardcode_action_GCJ=relink
19075 else
19076 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19077 hardcode_action_GCJ=immediate
19078 fi
19079 else
19080 # We cannot hardcode anything, or else we can only hardcode existing
19081 # directories.
19082 hardcode_action_GCJ=unsupported
19083 fi
19084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
19085 $as_echo "$hardcode_action_GCJ" >&6; }
19086
19087 if test "$hardcode_action_GCJ" = relink ||
19088 test "$inherit_rpath_GCJ" = yes; then
19089 # Fast installation is not supported
19090 enable_fast_install=no
19091 elif test "$shlibpath_overrides_runpath" = yes ||
19092 test "$enable_shared" = no; then
19093 # Fast installation is not necessary
19094 enable_fast_install=needless
19095 fi
19096
19097
19098
19099
19100
19101
19102
19103 fi
19104
19105 compiler_GCJ=${GCJ-gcj}
19106 ac_ext=c
19107 ac_cpp='$CPP $CPPFLAGS'
19108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19111
19112
19113 if test "x$CC" != xcc; then
19114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
19115 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
19116 else
19117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
19118 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
19119 fi
19120 set dummy $CC; ac_cc=`$as_echo "$2" |
19121 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19122 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
19123 $as_echo_n "(cached) " >&6
19124 else
19125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19126 /* end confdefs.h. */
19127
19128 int
19129 main ()
19130 {
19131
19132 ;
19133 return 0;
19134 }
19135 _ACEOF
19136 # Make sure it works both with $CC and with simple cc.
19137 # We do the test twice because some compilers refuse to overwrite an
19138 # existing .o file with -o, though they will create one.
19139 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19140 rm -f conftest2.*
19141 if { { case "(($ac_try" in
19142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143 *) ac_try_echo=$ac_try;;
19144 esac
19145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19146 $as_echo "$ac_try_echo"; } >&5
19147 (eval "$ac_try") 2>&5
19148 ac_status=$?
19149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19150 test $ac_status = 0; } &&
19151 test -f conftest2.$ac_objext && { { case "(($ac_try" in
19152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19153 *) ac_try_echo=$ac_try;;
19154 esac
19155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19156 $as_echo "$ac_try_echo"; } >&5
19157 (eval "$ac_try") 2>&5
19158 ac_status=$?
19159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19160 test $ac_status = 0; };
19161 then
19162 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
19163 if test "x$CC" != xcc; then
19164 # Test first that cc exists at all.
19165 if { ac_try='cc -c conftest.$ac_ext >&5'
19166 { { case "(($ac_try" in
19167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19168 *) ac_try_echo=$ac_try;;
19169 esac
19170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19171 $as_echo "$ac_try_echo"; } >&5
19172 (eval "$ac_try") 2>&5
19173 ac_status=$?
19174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19175 test $ac_status = 0; }; }; then
19176 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19177 rm -f conftest2.*
19178 if { { case "(($ac_try" in
19179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19180 *) ac_try_echo=$ac_try;;
19181 esac
19182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19183 $as_echo "$ac_try_echo"; } >&5
19184 (eval "$ac_try") 2>&5
19185 ac_status=$?
19186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19187 test $ac_status = 0; } &&
19188 test -f conftest2.$ac_objext && { { case "(($ac_try" in
19189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19190 *) ac_try_echo=$ac_try;;
19191 esac
19192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19193 $as_echo "$ac_try_echo"; } >&5
19194 (eval "$ac_try") 2>&5
19195 ac_status=$?
19196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19197 test $ac_status = 0; };
19198 then
19199 # cc works too.
19200 :
19201 else
19202 # cc exists but doesn't like -o.
19203 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19204 fi
19205 fi
19206 fi
19207 else
19208 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19209 fi
19210 rm -f core conftest*
19211
19212 fi
19213 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
19214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19215 $as_echo "yes" >&6; }
19216 else
19217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19218 $as_echo "no" >&6; }
19219
19220 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
19221
19222 fi
19223
19224 # FIXME: we rely on the cache variable name because
19225 # there is no other way.
19226 set dummy $CC
19227 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19228 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
19229 if test "$am_t" != yes; then
19230 # Losing compiler, so override with the script.
19231 # FIXME: It is wrong to rewrite CC.
19232 # But if we don't then we get into trouble of one sort or another.
19233 # A longer-term fix would be to have automake use am__CC in this case,
19234 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19235 CC="$am_aux_dir/compile $CC"
19236 fi
19237
19238
19239
19240
19241
19242 subdirs="$subdirs classpath libltdl"
19243
19244
19245 # The -no-testsuite modules omit the test subdir.
19246 if test -d $srcdir/testsuite; then
19247 TESTSUBDIR_TRUE=
19248 TESTSUBDIR_FALSE='#'
19249 else
19250 TESTSUBDIR_TRUE='#'
19251 TESTSUBDIR_FALSE=
19252 fi
19253
19254
19255 # Should the runtime set system properties by examining the
19256 # environment variable GCJ_PROPERTIES?
19257 # Check whether --enable-getenv-properties was given.
19258 if test "${enable_getenv_properties+set}" = set; then :
19259 enableval=$enable_getenv_properties;
19260 fi
19261
19262
19263 # Whether GCJ_PROPERTIES is used depends on the target.
19264 if test -z "$enable_getenv_properties"; then
19265 enable_getenv_properties=${enable_getenv_properties_default-yes}
19266 fi
19267 if test "$enable_getenv_properties" = no; then
19268
19269 $as_echo "#define DISABLE_GETENV_PROPERTIES 1" >>confdefs.h
19270
19271 fi
19272
19273 # Whether we should use arguments to main()
19274 if test -z "$enable_main_args"; then
19275 enable_main_args=${enable_main_args_default-yes}
19276 fi
19277 if test "$enable_main_args" = no; then
19278
19279 $as_echo "#define DISABLE_MAIN_ARGS 1" >>confdefs.h
19280
19281 fi
19282
19283
19284 # Should we use hashtable-based synchronization?
19285 # Currently works only for Linux X86/ia64
19286 # Typically faster and more space-efficient
19287 # Check whether --enable-hash-synchronization was given.
19288 if test "${enable_hash_synchronization+set}" = set; then :
19289 enableval=$enable_hash_synchronization;
19290 fi
19291
19292
19293 if test -z "$enable_hash_synchronization"; then
19294 enable_hash_synchronization=$enable_hash_synchronization_default
19295 fi
19296
19297
19298 install_ecj_jar=no
19299 ECJ_BUILD_JAR=
19300 ECJ_JAR=
19301
19302 # Check whether --with-ecj-jar was given.
19303 if test "${with_ecj_jar+set}" = set; then :
19304 withval=$with_ecj_jar; ECJ_JAR=$withval
19305 else
19306 if test -f $multi_basedir/ecj.jar; then
19307 ECJ_BUILD_JAR=$multi_basedir/ecj.jar
19308 ECJ_JAR='$(jardir)/ecj.jar'
19309 install_ecj_jar=yes
19310 fi
19311 fi
19312
19313
19314
19315 if test "$ECJ_JAR" != ""; then
19316 BUILD_ECJ1_TRUE=
19317 BUILD_ECJ1_FALSE='#'
19318 else
19319 BUILD_ECJ1_TRUE='#'
19320 BUILD_ECJ1_FALSE=
19321 fi
19322
19323 if test $install_ecj_jar = yes; then
19324 INSTALL_ECJ_JAR_TRUE=
19325 INSTALL_ECJ_JAR_FALSE='#'
19326 else
19327 INSTALL_ECJ_JAR_TRUE='#'
19328 INSTALL_ECJ_JAR_FALSE=
19329 fi
19330
19331
19332
19333 # Check whether --with-java-home was given.
19334 if test "${with_java_home+set}" = set; then :
19335 withval=$with_java_home; JAVA_HOME="${withval}"
19336 else
19337 JAVA_HOME=""
19338 fi
19339
19340 if test ! -z "$JAVA_HOME"; then
19341 JAVA_HOME_SET_TRUE=
19342 JAVA_HOME_SET_FALSE='#'
19343 else
19344 JAVA_HOME_SET_TRUE='#'
19345 JAVA_HOME_SET_FALSE=
19346 fi
19347
19348
19349
19350 suppress_libgcj_bc=no
19351 # Check whether --enable-libgcj-bc was given.
19352 if test "${enable_libgcj_bc+set}" = set; then :
19353 enableval=$enable_libgcj_bc; if test "$enable_libgcj_bc" = "no"; then
19354 suppress_libgcj_bc=yes
19355 fi
19356 fi
19357
19358 if test "$suppress_libgcj_bc" = "yes"; then
19359 SUPPRESS_LIBGCJ_BC_TRUE=
19360 SUPPRESS_LIBGCJ_BC_FALSE='#'
19361 else
19362 SUPPRESS_LIBGCJ_BC_TRUE='#'
19363 SUPPRESS_LIBGCJ_BC_FALSE=
19364 fi
19365
19366
19367 build_libgcj_reduced_reflection=no
19368 # Check whether --enable-reduced-reflection was given.
19369 if test "${enable_reduced_reflection+set}" = set; then :
19370 enableval=$enable_reduced_reflection; if test "$enable_reduced_reflection" = "yes"; then
19371 build_libgcj_reduced_reflection=yes
19372 fi
19373 fi
19374
19375 if test "$build_libgcj_reduced_reflection" = "yes"; then
19376 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
19377 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
19378 else
19379 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
19380 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
19381 fi
19382
19383
19384 # What is the native OS API for MinGW?
19385
19386 # Check whether --with-win32-nlsapi was given.
19387 if test "${with_win32_nlsapi+set}" = set; then :
19388 withval=$with_win32_nlsapi; case "${withval}" in
19389 ansi) with_win32_nlsapi=ansi ;;
19390 unicows) with_win32_nlsapi=unicows ;;
19391 unicode) with_win32_nlsapi=unicode ;;
19392 *) as_fn_error "Bad value ${withval} for --with-win32-nlsapi." "$LINENO" 5 ;;
19393 esac
19394 else
19395 with_win32_nlsapi=ansi
19396 fi
19397
19398
19399 case "${with_win32_nlsapi}" in
19400 unicows | unicode)
19401
19402 $as_echo "#define MINGW_LIBGCJ_UNICODE 1" >>confdefs.h
19403
19404 ;;
19405 esac
19406
19407 # configure.host sets slow_pthread_self if the synchronization code should
19408 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
19409 if test "${slow_pthread_self}" = "yes"; then
19410
19411 $as_echo "#define SLOW_PTHREAD_SELF 1" >>confdefs.h
19412
19413 fi
19414
19415 # Check for gc debugging. This option is handled both here and in the GC.
19416 # Check whether --enable-gc-debug was given.
19417 if test "${enable_gc_debug+set}" = set; then :
19418 enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then
19419
19420 $as_echo "#define LIBGCJ_GC_DEBUG 1" >>confdefs.h
19421
19422 fi
19423 fi
19424
19425
19426 # See if the user has the interpreter included.
19427 # Check whether --enable-interpreter was given.
19428 if test "${enable_interpreter+set}" = set; then :
19429 enableval=$enable_interpreter; if test "$enable_interpreter" = yes; then
19430 # This can also be set in configure.host.
19431 libgcj_interpreter=yes
19432 elif test "$enable_interpreter" = no; then
19433 libgcj_interpreter=no
19434 fi
19435 fi
19436
19437
19438 if test "$libgcj_interpreter" = yes; then
19439
19440 $as_echo "#define INTERPRETER 1" >>confdefs.h
19441
19442 fi
19443 INTERPRETER="$libgcj_interpreter"
19444
19445 if test "$libgcj_interpreter" = yes; then
19446 INTERPRETER_TRUE=
19447 INTERPRETER_FALSE='#'
19448 else
19449 INTERPRETER_TRUE='#'
19450 INTERPRETER_FALSE=
19451 fi
19452
19453
19454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception model to use" >&5
19455 $as_echo_n "checking for exception model to use... " >&6; }
19456 ac_ext=cpp
19457 ac_cpp='$CXXCPP $CPPFLAGS'
19458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19461
19462 # Check whether --enable-sjlj-exceptions was given.
19463 if test "${enable_sjlj_exceptions+set}" = set; then :
19464 enableval=$enable_sjlj_exceptions; :
19465 else
19466 cat > conftest.$ac_ext << EOF
19467 #line 19467 "configure"
19468 struct S { ~S(); };
19469 void bar();
19470 void foo()
19471 {
19472 S s;
19473 bar();
19474 }
19475 EOF
19476 old_CXXFLAGS="$CXXFLAGS"
19477 CXXFLAGS=-S
19478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19479 (eval $ac_compile) 2>&5
19480 ac_status=$?
19481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19482 test $ac_status = 0; }; then
19483 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
19484 enable_sjlj_exceptions=yes
19485 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
19486 enable_sjlj_exceptions=no
19487 elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
19488 # ARM EH ABI.
19489 enable_sjlj_exceptions=no
19490 fi
19491 fi
19492 CXXFLAGS="$old_CXXFLAGS"
19493 rm -f conftest*
19494 fi
19495
19496 if test x$enable_sjlj_exceptions = xyes; then
19497
19498 $as_echo "#define SJLJ_EXCEPTIONS 1" >>confdefs.h
19499
19500 ac_exception_model_name=sjlj
19501 elif test x$enable_sjlj_exceptions = xno; then
19502 ac_exception_model_name="call frame"
19503 else
19504 as_fn_error "unable to detect exception model" "$LINENO" 5
19505 fi
19506 ac_ext=c
19507 ac_cpp='$CPP $CPPFLAGS'
19508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19511
19512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception_model_name" >&5
19513 $as_echo "$ac_exception_model_name" >&6; }
19514
19515 # If we are non using SJLJ exceptions, and this host does not have support
19516 # for unwinding from a signal handler, enable checked dereferences and divides.
19517 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
19518 CHECKREFSPEC=-fcheck-references
19519 DIVIDESPEC=-fuse-divide-subroutine
19520 EXCEPTIONSPEC=
19521 fi
19522
19523 # See if the user wants to disable java.net. This is the mildly
19524 # ugly way that we admit that target-side configuration sucks.
19525 # Check whether --enable-java-net was given.
19526 if test "${enable_java_net+set}" = set; then :
19527 enableval=$enable_java_net;
19528 fi
19529
19530
19531 # Whether java.net is built by default can depend on the target.
19532 if test -z "$enable_java_net"; then
19533 enable_java_net=${enable_java_net_default-yes}
19534 fi
19535 if test "$enable_java_net" = no; then
19536
19537 $as_echo "#define DISABLE_JAVA_NET 1" >>confdefs.h
19538
19539 fi
19540
19541 # See if the user wants to configure without libffi. Some
19542 # architectures don't support it, and default values are set in
19543 # configure.host.
19544
19545 # Check whether --with-libffi was given.
19546 if test "${with_libffi+set}" = set; then :
19547 withval=$with_libffi; :
19548 else
19549 with_libffi=${with_libffi_default-yes}
19550 fi
19551
19552
19553 LIBFFI=
19554 LIBFFIINCS=
19555 if test "$with_libffi" != no; then
19556
19557 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
19558
19559 LIBFFI=../libffi/libffi_convenience.la
19560 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
19561 fi
19562
19563
19564
19565 # See if the user wants to disable JVMPI support.
19566 # Check whether --enable-jvmpi was given.
19567 if test "${enable_jvmpi+set}" = set; then :
19568 enableval=$enable_jvmpi;
19569 fi
19570
19571
19572 if test "$enable_jvmpi" != no; then
19573
19574 $as_echo "#define ENABLE_JVMPI 1" >>confdefs.h
19575
19576 fi
19577
19578 # If the target is an eCos system, use the appropriate eCos
19579 # I/O routines.
19580 # FIXME: this should not be a local option but a global target
19581 # system; at present there is no eCos target.
19582 TARGET_ECOS=${PROCESS-"no"}
19583
19584 # Check whether --with-ecos was given.
19585 if test "${with_ecos+set}" = set; then :
19586 withval=$with_ecos; TARGET_ECOS="$with_ecos"
19587
19588 fi
19589
19590
19591 case "$TARGET_ECOS" in
19592 no) case "$host" in
19593 *mingw*)
19594 PLATFORM=Win32
19595 PLATFORMNET=Win32
19596 PLATFORMH=win32.h
19597
19598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'ld' is at least 2.13" >&5
19599 $as_echo_n "checking whether 'ld' is at least 2.13... " >&6; }
19600 LD_PROG=`$CC --print-prog-name=ld`
19601 LD_VERSION=`$LD_PROG --version`
19602 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
19603 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
19604 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
19605 LD_OK="ok"
19606 else
19607 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
19608 LD_OK="ok"
19609 fi
19610 fi
19611 if test "x$LD_OK" != x; then
19612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19613 $as_echo "yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19614 else
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19616 $as_echo "no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
19618 $as_echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
19619
19620 $as_echo "#define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1" >>confdefs.h
19621
19622 fi
19623 ;;
19624 *)
19625 PLATFORM=Posix
19626 PLATFORMNET=Posix
19627 PLATFORMH=posix.h
19628 ;;
19629 esac
19630 ;;
19631 *)
19632 PLATFORM=Ecos
19633 PLATFORMNET=NoNet
19634
19635 $as_echo "#define ECOS 1" >>confdefs.h
19636
19637 PLATFORMH=posix.h
19638 ;;
19639 esac
19640
19641 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
19642
19643
19644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19645 /* end confdefs.h. */
19646 #include <stdint.h>
19647
19648 _ACEOF
19649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19650 $EGREP "uint32_t" >/dev/null 2>&1; then :
19651
19652 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19653
19654 fi
19655 rm -f conftest*
19656
19657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19658 /* end confdefs.h. */
19659 #include <inttypes.h>
19660
19661 _ACEOF
19662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19663 $EGREP "uint32_t" >/dev/null 2>&1; then :
19664
19665 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19666
19667 fi
19668 rm -f conftest*
19669
19670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19671 /* end confdefs.h. */
19672 #include <sys/types.h>
19673
19674 _ACEOF
19675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19676 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19677
19678 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19679
19680 fi
19681 rm -f conftest*
19682
19683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19684 /* end confdefs.h. */
19685 #include <sys/config.h>
19686
19687 _ACEOF
19688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19689 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19690
19691 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19692
19693 fi
19694 rm -f conftest*
19695
19696
19697 if test "$PLATFORM" = Win32; then
19698 USING_WIN32_PLATFORM_TRUE=
19699 USING_WIN32_PLATFORM_FALSE='#'
19700 else
19701 USING_WIN32_PLATFORM_TRUE='#'
19702 USING_WIN32_PLATFORM_FALSE=
19703 fi
19704
19705 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
19706 USING_POSIX_PLATFORM_TRUE=
19707 USING_POSIX_PLATFORM_FALSE='#'
19708 else
19709 USING_POSIX_PLATFORM_TRUE='#'
19710 USING_POSIX_PLATFORM_FALSE=
19711 fi
19712
19713
19714 case "$host" in
19715 *-darwin*) DARWIN_CRT=true ;;
19716 *) DARWIN_CRT=false ;;
19717 esac
19718 if $DARWIN_CRT; then
19719 USING_DARWIN_CRT_TRUE=
19720 USING_DARWIN_CRT_FALSE='#'
19721 else
19722 USING_DARWIN_CRT_TRUE='#'
19723 USING_DARWIN_CRT_FALSE=
19724 fi
19725
19726
19727 # This may not be defined in a non-ANS conformant embedded system.
19728 # FIXME: Should these case a runtime exception in that case?
19729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19730 /* end confdefs.h. */
19731 #include <time.h>
19732
19733 _ACEOF
19734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19735 $EGREP "localtime" >/dev/null 2>&1; then :
19736
19737 $as_echo "#define HAVE_LOCALTIME 1" >>confdefs.h
19738
19739 fi
19740 rm -f conftest*
19741
19742
19743 # Create the subdirectory for natFile.cc, or the attempt
19744 # to create the link will fail.
19745 test -d java || mkdir java
19746 test -d java/io || mkdir java/io
19747 test -d gnu || mkdir gnu
19748 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
19749
19750
19751 # Likewise for natConcreteProcess.cc.
19752 test -d java/lang || mkdir java/lang
19753 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
19754
19755
19756 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
19757 test -d java/net || mkdir java/net
19758 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
19759
19760 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
19761
19762
19763 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
19764 test -d gnu/java || mkdir gnu/java
19765 test -d gnu/java/net || mkdir gnu/java/net
19766 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
19767
19768 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
19769
19770
19771 # Likewise for natVMPipe.cc and natVMSelector.cc.
19772 test -d gnu/java/nio || mkdir gnu/java/nio
19773 ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
19774
19775 ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
19776
19777
19778 # Likewise for natFileChannelImpl.cc
19779 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
19780 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
19781
19782
19783 # Likewise for natVMSecureRandom.cc
19784 test -d gnu/java/security || mkdir gnu/java/security
19785 test -d gnu/java/security/jce || mkdir gnu/java/security/jce
19786 test -d gnu/java/security/jce/prng || mkdir gnu/java/security/jce/prng
19787 ac_config_links="$ac_config_links gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc"
19788
19789
19790 case "${host}" in
19791 *mingw*)
19792 SYSTEMSPEC="-lgdi32 -lws2_32"
19793 if test "${with_win32_nlsapi}" = "unicows"; then
19794 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
19795 fi
19796 ;;
19797 *-*-darwin[912]*)
19798 SYSTEMSPEC="%{!Zdynamiclib:%{!Zbundle:-allow_stack_execute}}"
19799 ;;
19800 *)
19801 SYSTEMSPEC=
19802 ;;
19803 esac
19804
19805
19806
19807 # Check whether --with-system-zlib was given.
19808 if test "${with_system_zlib+set}" = set; then :
19809 withval=$with_system_zlib;
19810 fi
19811
19812 ZLIBSPEC=
19813
19814 ZLIBTESTSPEC=
19815
19816
19817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19818 $as_echo_n "checking for X... " >&6; }
19819
19820
19821 # Check whether --with-x was given.
19822 if test "${with_x+set}" = set; then :
19823 withval=$with_x;
19824 fi
19825
19826 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19827 if test "x$with_x" = xno; then
19828 # The user explicitly disabled X.
19829 have_x=disabled
19830 else
19831 case $x_includes,$x_libraries in #(
19832 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
19833 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
19834 $as_echo_n "(cached) " >&6
19835 else
19836 # One or both of the vars are not set, and there is no cached value.
19837 ac_x_includes=no ac_x_libraries=no
19838 rm -f -r conftest.dir
19839 if mkdir conftest.dir; then
19840 cd conftest.dir
19841 cat >Imakefile <<'_ACEOF'
19842 incroot:
19843 @echo incroot='${INCROOT}'
19844 usrlibdir:
19845 @echo usrlibdir='${USRLIBDIR}'
19846 libdir:
19847 @echo libdir='${LIBDIR}'
19848 _ACEOF
19849 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19850 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19851 for ac_var in incroot usrlibdir libdir; do
19852 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19853 done
19854 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19855 for ac_extension in a so sl dylib la dll; do
19856 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19857 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19858 ac_im_usrlibdir=$ac_im_libdir; break
19859 fi
19860 done
19861 # Screen out bogus values from the imake configuration. They are
19862 # bogus both because they are the default anyway, and because
19863 # using them would break gcc on systems where it needs fixed includes.
19864 case $ac_im_incroot in
19865 /usr/include) ac_x_includes= ;;
19866 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19867 esac
19868 case $ac_im_usrlibdir in
19869 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19870 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19871 esac
19872 fi
19873 cd ..
19874 rm -f -r conftest.dir
19875 fi
19876
19877 # Standard set of common directories for X headers.
19878 # Check X11 before X11Rn because it is often a symlink to the current release.
19879 ac_x_header_dirs='
19880 /usr/X11/include
19881 /usr/X11R7/include
19882 /usr/X11R6/include
19883 /usr/X11R5/include
19884 /usr/X11R4/include
19885
19886 /usr/include/X11
19887 /usr/include/X11R7
19888 /usr/include/X11R6
19889 /usr/include/X11R5
19890 /usr/include/X11R4
19891
19892 /usr/local/X11/include
19893 /usr/local/X11R7/include
19894 /usr/local/X11R6/include
19895 /usr/local/X11R5/include
19896 /usr/local/X11R4/include
19897
19898 /usr/local/include/X11
19899 /usr/local/include/X11R7
19900 /usr/local/include/X11R6
19901 /usr/local/include/X11R5
19902 /usr/local/include/X11R4
19903
19904 /usr/X386/include
19905 /usr/x386/include
19906 /usr/XFree86/include/X11
19907
19908 /usr/include
19909 /usr/local/include
19910 /usr/unsupported/include
19911 /usr/athena/include
19912 /usr/local/x11r5/include
19913 /usr/lpp/Xamples/include
19914
19915 /usr/openwin/include
19916 /usr/openwin/share/include'
19917
19918 if test "$ac_x_includes" = no; then
19919 # Guess where to find include files, by looking for Xlib.h.
19920 # First, try using that file with no special directory specified.
19921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19922 /* end confdefs.h. */
19923 #include <X11/Xlib.h>
19924 _ACEOF
19925 if ac_fn_c_try_cpp "$LINENO"; then :
19926 # We can compile using X headers with no special include directory.
19927 ac_x_includes=
19928 else
19929 for ac_dir in $ac_x_header_dirs; do
19930 if test -r "$ac_dir/X11/Xlib.h"; then
19931 ac_x_includes=$ac_dir
19932 break
19933 fi
19934 done
19935 fi
19936 rm -f conftest.err conftest.$ac_ext
19937 fi # $ac_x_includes = no
19938
19939 if test "$ac_x_libraries" = no; then
19940 # Check for the libraries.
19941 # See if we find them without any special options.
19942 # Don't add to $LIBS permanently.
19943 ac_save_LIBS=$LIBS
19944 LIBS="-lX11 $LIBS"
19945 if test x$gcc_no_link = xyes; then
19946 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19947 fi
19948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19949 /* end confdefs.h. */
19950 #include <X11/Xlib.h>
19951 int
19952 main ()
19953 {
19954 XrmInitialize ()
19955 ;
19956 return 0;
19957 }
19958 _ACEOF
19959 if ac_fn_c_try_link "$LINENO"; then :
19960 LIBS=$ac_save_LIBS
19961 # We can link X programs with no special library path.
19962 ac_x_libraries=
19963 else
19964 LIBS=$ac_save_LIBS
19965 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19966 do
19967 # Don't even attempt the hair of trying to link an X program!
19968 for ac_extension in a so sl dylib la dll; do
19969 if test -r "$ac_dir/libX11.$ac_extension"; then
19970 ac_x_libraries=$ac_dir
19971 break 2
19972 fi
19973 done
19974 done
19975 fi
19976 rm -f core conftest.err conftest.$ac_objext \
19977 conftest$ac_exeext conftest.$ac_ext
19978 fi # $ac_x_libraries = no
19979
19980 case $ac_x_includes,$ac_x_libraries in #(
19981 no,* | *,no | *\'*)
19982 # Didn't find X, or a directory has "'" in its name.
19983 ac_cv_have_x="have_x=no";; #(
19984 *)
19985 # Record where we found X for the cache.
19986 ac_cv_have_x="have_x=yes\
19987 ac_x_includes='$ac_x_includes'\
19988 ac_x_libraries='$ac_x_libraries'"
19989 esac
19990 fi
19991 ;; #(
19992 *) have_x=yes;;
19993 esac
19994 eval "$ac_cv_have_x"
19995 fi # $with_x != no
19996
19997 if test "$have_x" != yes; then
19998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19999 $as_echo "$have_x" >&6; }
20000 no_x=yes
20001 else
20002 # If each of the values was on the command line, it overrides each guess.
20003 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20004 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20005 # Update the cache value to reflect the command line values.
20006 ac_cv_have_x="have_x=yes\
20007 ac_x_includes='$x_includes'\
20008 ac_x_libraries='$x_libraries'"
20009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
20010 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
20011 fi
20012
20013 if test "$no_x" = yes; then
20014 # Not all programs may use this symbol, but it does not hurt to define it.
20015
20016 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
20017
20018 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20019 else
20020 if test -n "$x_includes"; then
20021 X_CFLAGS="$X_CFLAGS -I$x_includes"
20022 fi
20023
20024 # It would also be nice to do this for all -L options, not just this one.
20025 if test -n "$x_libraries"; then
20026 X_LIBS="$X_LIBS -L$x_libraries"
20027 # For Solaris; some versions of Sun CC require a space after -R and
20028 # others require no space. Words are not sufficient . . . .
20029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
20030 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
20031 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20032 ac_xsave_c_werror_flag=$ac_c_werror_flag
20033 ac_c_werror_flag=yes
20034 if test x$gcc_no_link = xyes; then
20035 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20036 fi
20037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20038 /* end confdefs.h. */
20039
20040 int
20041 main ()
20042 {
20043
20044 ;
20045 return 0;
20046 }
20047 _ACEOF
20048 if ac_fn_c_try_link "$LINENO"; then :
20049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20050 $as_echo "no" >&6; }
20051 X_LIBS="$X_LIBS -R$x_libraries"
20052 else
20053 LIBS="$ac_xsave_LIBS -R $x_libraries"
20054 if test x$gcc_no_link = xyes; then
20055 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20056 fi
20057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20058 /* end confdefs.h. */
20059
20060 int
20061 main ()
20062 {
20063
20064 ;
20065 return 0;
20066 }
20067 _ACEOF
20068 if ac_fn_c_try_link "$LINENO"; then :
20069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20070 $as_echo "yes" >&6; }
20071 X_LIBS="$X_LIBS -R $x_libraries"
20072 else
20073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
20074 $as_echo "neither works" >&6; }
20075 fi
20076 rm -f core conftest.err conftest.$ac_objext \
20077 conftest$ac_exeext conftest.$ac_ext
20078 fi
20079 rm -f core conftest.err conftest.$ac_objext \
20080 conftest$ac_exeext conftest.$ac_ext
20081 ac_c_werror_flag=$ac_xsave_c_werror_flag
20082 LIBS=$ac_xsave_LIBS
20083 fi
20084
20085 # Check for system-dependent libraries X programs must link with.
20086 # Do this before checking for the system-independent R6 libraries
20087 # (-lICE), since we may need -lsocket or whatever for X linking.
20088
20089 if test "$ISC" = yes; then
20090 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20091 else
20092 # Martyn Johnson says this is needed for Ultrix, if the X
20093 # libraries were built with DECnet support. And Karl Berry says
20094 # the Alpha needs dnet_stub (dnet does not exist).
20095 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20096 if test x$gcc_no_link = xyes; then
20097 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20098 fi
20099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20100 /* end confdefs.h. */
20101
20102 /* Override any GCC internal prototype to avoid an error.
20103 Use char because int might match the return type of a GCC
20104 builtin and then its argument prototype would still apply. */
20105 #ifdef __cplusplus
20106 extern "C"
20107 #endif
20108 char XOpenDisplay ();
20109 int
20110 main ()
20111 {
20112 return XOpenDisplay ();
20113 ;
20114 return 0;
20115 }
20116 _ACEOF
20117 if ac_fn_c_try_link "$LINENO"; then :
20118
20119 else
20120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
20121 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
20122 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
20123 $as_echo_n "(cached) " >&6
20124 else
20125 ac_check_lib_save_LIBS=$LIBS
20126 LIBS="-ldnet $LIBS"
20127 if test x$gcc_no_link = xyes; then
20128 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20129 fi
20130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20131 /* end confdefs.h. */
20132
20133 /* Override any GCC internal prototype to avoid an error.
20134 Use char because int might match the return type of a GCC
20135 builtin and then its argument prototype would still apply. */
20136 #ifdef __cplusplus
20137 extern "C"
20138 #endif
20139 char dnet_ntoa ();
20140 int
20141 main ()
20142 {
20143 return dnet_ntoa ();
20144 ;
20145 return 0;
20146 }
20147 _ACEOF
20148 if ac_fn_c_try_link "$LINENO"; then :
20149 ac_cv_lib_dnet_dnet_ntoa=yes
20150 else
20151 ac_cv_lib_dnet_dnet_ntoa=no
20152 fi
20153 rm -f core conftest.err conftest.$ac_objext \
20154 conftest$ac_exeext conftest.$ac_ext
20155 LIBS=$ac_check_lib_save_LIBS
20156 fi
20157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20158 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20159 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
20160 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20161 fi
20162
20163 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
20165 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
20166 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
20167 $as_echo_n "(cached) " >&6
20168 else
20169 ac_check_lib_save_LIBS=$LIBS
20170 LIBS="-ldnet_stub $LIBS"
20171 if test x$gcc_no_link = xyes; then
20172 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20173 fi
20174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20175 /* end confdefs.h. */
20176
20177 /* Override any GCC internal prototype to avoid an error.
20178 Use char because int might match the return type of a GCC
20179 builtin and then its argument prototype would still apply. */
20180 #ifdef __cplusplus
20181 extern "C"
20182 #endif
20183 char dnet_ntoa ();
20184 int
20185 main ()
20186 {
20187 return dnet_ntoa ();
20188 ;
20189 return 0;
20190 }
20191 _ACEOF
20192 if ac_fn_c_try_link "$LINENO"; then :
20193 ac_cv_lib_dnet_stub_dnet_ntoa=yes
20194 else
20195 ac_cv_lib_dnet_stub_dnet_ntoa=no
20196 fi
20197 rm -f core conftest.err conftest.$ac_objext \
20198 conftest$ac_exeext conftest.$ac_ext
20199 LIBS=$ac_check_lib_save_LIBS
20200 fi
20201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20202 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20203 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
20204 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20205 fi
20206
20207 fi
20208 fi
20209 rm -f core conftest.err conftest.$ac_objext \
20210 conftest$ac_exeext conftest.$ac_ext
20211 LIBS="$ac_xsave_LIBS"
20212
20213 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20214 # to get the SysV transport functions.
20215 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20216 # needs -lnsl.
20217 # The nsl library prevents programs from opening the X display
20218 # on Irix 5.2, according to T.E. Dickey.
20219 # The functions gethostbyname, getservbyname, and inet_addr are
20220 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20221 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20222 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
20223
20224 fi
20225
20226 if test $ac_cv_func_gethostbyname = no; then
20227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20228 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20229 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
20230 $as_echo_n "(cached) " >&6
20231 else
20232 ac_check_lib_save_LIBS=$LIBS
20233 LIBS="-lnsl $LIBS"
20234 if test x$gcc_no_link = xyes; then
20235 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20236 fi
20237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20238 /* end confdefs.h. */
20239
20240 /* Override any GCC internal prototype to avoid an error.
20241 Use char because int might match the return type of a GCC
20242 builtin and then its argument prototype would still apply. */
20243 #ifdef __cplusplus
20244 extern "C"
20245 #endif
20246 char gethostbyname ();
20247 int
20248 main ()
20249 {
20250 return gethostbyname ();
20251 ;
20252 return 0;
20253 }
20254 _ACEOF
20255 if ac_fn_c_try_link "$LINENO"; then :
20256 ac_cv_lib_nsl_gethostbyname=yes
20257 else
20258 ac_cv_lib_nsl_gethostbyname=no
20259 fi
20260 rm -f core conftest.err conftest.$ac_objext \
20261 conftest$ac_exeext conftest.$ac_ext
20262 LIBS=$ac_check_lib_save_LIBS
20263 fi
20264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20265 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20266 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
20267 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20268 fi
20269
20270 if test $ac_cv_lib_nsl_gethostbyname = no; then
20271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20272 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20273 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
20274 $as_echo_n "(cached) " >&6
20275 else
20276 ac_check_lib_save_LIBS=$LIBS
20277 LIBS="-lbsd $LIBS"
20278 if test x$gcc_no_link = xyes; then
20279 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20280 fi
20281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20282 /* end confdefs.h. */
20283
20284 /* Override any GCC internal prototype to avoid an error.
20285 Use char because int might match the return type of a GCC
20286 builtin and then its argument prototype would still apply. */
20287 #ifdef __cplusplus
20288 extern "C"
20289 #endif
20290 char gethostbyname ();
20291 int
20292 main ()
20293 {
20294 return gethostbyname ();
20295 ;
20296 return 0;
20297 }
20298 _ACEOF
20299 if ac_fn_c_try_link "$LINENO"; then :
20300 ac_cv_lib_bsd_gethostbyname=yes
20301 else
20302 ac_cv_lib_bsd_gethostbyname=no
20303 fi
20304 rm -f core conftest.err conftest.$ac_objext \
20305 conftest$ac_exeext conftest.$ac_ext
20306 LIBS=$ac_check_lib_save_LIBS
20307 fi
20308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20309 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20310 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
20311 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20312 fi
20313
20314 fi
20315 fi
20316
20317 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20318 # socket/setsockopt and other routines are undefined under SCO ODT
20319 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20320 # on later versions), says Simon Leinen: it contains gethostby*
20321 # variants that don't use the name server (or something). -lsocket
20322 # must be given before -lnsl if both are needed. We assume that
20323 # if connect needs -lnsl, so does gethostbyname.
20324 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20325 if test "x$ac_cv_func_connect" = x""yes; then :
20326
20327 fi
20328
20329 if test $ac_cv_func_connect = no; then
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20331 $as_echo_n "checking for connect in -lsocket... " >&6; }
20332 if test "${ac_cv_lib_socket_connect+set}" = set; then :
20333 $as_echo_n "(cached) " >&6
20334 else
20335 ac_check_lib_save_LIBS=$LIBS
20336 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20337 if test x$gcc_no_link = xyes; then
20338 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20339 fi
20340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20341 /* end confdefs.h. */
20342
20343 /* Override any GCC internal prototype to avoid an error.
20344 Use char because int might match the return type of a GCC
20345 builtin and then its argument prototype would still apply. */
20346 #ifdef __cplusplus
20347 extern "C"
20348 #endif
20349 char connect ();
20350 int
20351 main ()
20352 {
20353 return connect ();
20354 ;
20355 return 0;
20356 }
20357 _ACEOF
20358 if ac_fn_c_try_link "$LINENO"; then :
20359 ac_cv_lib_socket_connect=yes
20360 else
20361 ac_cv_lib_socket_connect=no
20362 fi
20363 rm -f core conftest.err conftest.$ac_objext \
20364 conftest$ac_exeext conftest.$ac_ext
20365 LIBS=$ac_check_lib_save_LIBS
20366 fi
20367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20368 $as_echo "$ac_cv_lib_socket_connect" >&6; }
20369 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
20370 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20371 fi
20372
20373 fi
20374
20375 # Guillermo Gomez says -lposix is necessary on A/UX.
20376 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20377 if test "x$ac_cv_func_remove" = x""yes; then :
20378
20379 fi
20380
20381 if test $ac_cv_func_remove = no; then
20382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20383 $as_echo_n "checking for remove in -lposix... " >&6; }
20384 if test "${ac_cv_lib_posix_remove+set}" = set; then :
20385 $as_echo_n "(cached) " >&6
20386 else
20387 ac_check_lib_save_LIBS=$LIBS
20388 LIBS="-lposix $LIBS"
20389 if test x$gcc_no_link = xyes; then
20390 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20391 fi
20392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20393 /* end confdefs.h. */
20394
20395 /* Override any GCC internal prototype to avoid an error.
20396 Use char because int might match the return type of a GCC
20397 builtin and then its argument prototype would still apply. */
20398 #ifdef __cplusplus
20399 extern "C"
20400 #endif
20401 char remove ();
20402 int
20403 main ()
20404 {
20405 return remove ();
20406 ;
20407 return 0;
20408 }
20409 _ACEOF
20410 if ac_fn_c_try_link "$LINENO"; then :
20411 ac_cv_lib_posix_remove=yes
20412 else
20413 ac_cv_lib_posix_remove=no
20414 fi
20415 rm -f core conftest.err conftest.$ac_objext \
20416 conftest$ac_exeext conftest.$ac_ext
20417 LIBS=$ac_check_lib_save_LIBS
20418 fi
20419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20420 $as_echo "$ac_cv_lib_posix_remove" >&6; }
20421 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
20422 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20423 fi
20424
20425 fi
20426
20427 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20428 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20429 if test "x$ac_cv_func_shmat" = x""yes; then :
20430
20431 fi
20432
20433 if test $ac_cv_func_shmat = no; then
20434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20435 $as_echo_n "checking for shmat in -lipc... " >&6; }
20436 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
20437 $as_echo_n "(cached) " >&6
20438 else
20439 ac_check_lib_save_LIBS=$LIBS
20440 LIBS="-lipc $LIBS"
20441 if test x$gcc_no_link = xyes; then
20442 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20443 fi
20444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20445 /* end confdefs.h. */
20446
20447 /* Override any GCC internal prototype to avoid an error.
20448 Use char because int might match the return type of a GCC
20449 builtin and then its argument prototype would still apply. */
20450 #ifdef __cplusplus
20451 extern "C"
20452 #endif
20453 char shmat ();
20454 int
20455 main ()
20456 {
20457 return shmat ();
20458 ;
20459 return 0;
20460 }
20461 _ACEOF
20462 if ac_fn_c_try_link "$LINENO"; then :
20463 ac_cv_lib_ipc_shmat=yes
20464 else
20465 ac_cv_lib_ipc_shmat=no
20466 fi
20467 rm -f core conftest.err conftest.$ac_objext \
20468 conftest$ac_exeext conftest.$ac_ext
20469 LIBS=$ac_check_lib_save_LIBS
20470 fi
20471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20472 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20473 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
20474 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20475 fi
20476
20477 fi
20478 fi
20479
20480 # Check for libraries that X11R6 Xt/Xaw programs need.
20481 ac_save_LDFLAGS=$LDFLAGS
20482 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20483 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20484 # check for ICE first), but we must link in the order -lSM -lICE or
20485 # we get undefined symbols. So assume we have SM if we have ICE.
20486 # These have to be linked with before -lX11, unlike the other
20487 # libraries we check for below, so use a different variable.
20488 # John Interrante, Karl Berry
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20490 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20491 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
20492 $as_echo_n "(cached) " >&6
20493 else
20494 ac_check_lib_save_LIBS=$LIBS
20495 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20496 if test x$gcc_no_link = xyes; then
20497 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20498 fi
20499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20500 /* end confdefs.h. */
20501
20502 /* Override any GCC internal prototype to avoid an error.
20503 Use char because int might match the return type of a GCC
20504 builtin and then its argument prototype would still apply. */
20505 #ifdef __cplusplus
20506 extern "C"
20507 #endif
20508 char IceConnectionNumber ();
20509 int
20510 main ()
20511 {
20512 return IceConnectionNumber ();
20513 ;
20514 return 0;
20515 }
20516 _ACEOF
20517 if ac_fn_c_try_link "$LINENO"; then :
20518 ac_cv_lib_ICE_IceConnectionNumber=yes
20519 else
20520 ac_cv_lib_ICE_IceConnectionNumber=no
20521 fi
20522 rm -f core conftest.err conftest.$ac_objext \
20523 conftest$ac_exeext conftest.$ac_ext
20524 LIBS=$ac_check_lib_save_LIBS
20525 fi
20526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20527 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20528 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
20529 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20530 fi
20531
20532 LDFLAGS=$ac_save_LDFLAGS
20533
20534 fi
20535
20536
20537 # FIXME: this should be _libs on some hosts.
20538 libsubdir=.libs
20539
20540 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20541
20542 LIBSTDCXXSPEC=
20543 # extra LD Flags which are required for targets
20544 case "${host}" in
20545 *-*-darwin[0-7].*)
20546 # For now we have to disable it on darwin[8-9] because it slows down
20547 # the linking phase. A possible bug in ld?
20548 # on Darwin -single_module speeds up loading of the dynamic libraries.
20549 extra_ldflags_libjava=-Wl,-single_module
20550 ;;
20551 arm*linux*eabi)
20552 # Some of the ARM unwinder code is actually in libstdc++. We
20553 # could in principle replicate it in libgcj, but it's better to
20554 # have a dependency on libstdc++.
20555 extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20556 LIBSTDCXXSPEC=-lstdc++
20557 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20558 ;;
20559 *-*-cygwin)
20560 extra_ldflags_libjava=-liconv
20561 ;;
20562 *-*-mingw*)
20563 extra_ldflags_libjava=-lws2_32
20564 ;;
20565 esac
20566
20567 LIBMATHSPEC=
20568 # extra LD Flags which are required for targets
20569 case "${host}" in
20570 *-*-darwin*)
20571 ;;
20572 *)
20573 LIBMATHSPEC=-lm
20574 ;;
20575 esac
20576
20577 # Check for --no-merge-exidx-entries, an ARM-specific linker option.
20578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --no-merge-exidx-entries" >&5
20579 $as_echo_n "checking for --no-merge-exidx-entries... " >&6; }
20580 if test "${libgcj_cv_exidx+set}" = set; then :
20581 $as_echo_n "(cached) " >&6
20582 else
20583 saved_ldflags="$LDFLAGS"
20584 LDFLAGS="${LDFLAGS} -Wl,--no-merge-exidx-entries"
20585 if test x$gcc_no_link = xyes; then
20586 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20587 fi
20588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20589 /* end confdefs.h. */
20590 int main(void){ return 0;}
20591 _ACEOF
20592 if ac_fn_c_try_link "$LINENO"; then :
20593 eval "libgcj_cv_exidx=yes"
20594 else
20595 eval "libgcj_cv_exidx=no"
20596 fi
20597 rm -f core conftest.err conftest.$ac_objext \
20598 conftest$ac_exeext conftest.$ac_ext
20599 LDFLAGS="${saved_ldflags}"
20600
20601 fi
20602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcj_cv_exidx" >&5
20603 $as_echo "$libgcj_cv_exidx" >&6; }
20604 if test "${libgcj_cv_exidx}" = "yes"; then
20605 SYSTEMSPEC="${SYSTEMSPEC} --no-merge-exidx-entries"
20606 extra_ldflags="${extra_ldflags} -Wl,--no-merge-exidx-entries"
20607 fi
20608
20609
20610
20611
20612
20613
20614
20615
20616 # Allow the GC to be disabled. Can be useful when debugging.
20617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for garbage collector to use" >&5
20618 $as_echo_n "checking for garbage collector to use... " >&6; }
20619 # Check whether --enable-java-gc was given.
20620 if test "${enable_java_gc+set}" = set; then :
20621 enableval=$enable_java_gc; GC=$enableval
20622 else
20623 GC=boehm
20624 fi
20625
20626 GCLIBS=
20627 GCINCS=
20628 GCDEPS=
20629 GCSPEC=
20630 JC1GCSPEC=
20631 GCTESTSPEC=
20632 case "$GC" in
20633 boehm)
20634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: boehm" >&5
20635 $as_echo "boehm" >&6; }
20636 GCLIBS=../boehm-gc/libgcjgc_convenience.la
20637 JC1GCSPEC='-fuse-boehm-gc'
20638 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20639 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20640 GCOBJS=boehm.lo
20641 GCHDR=boehm-gc.h
20642 # The POSIX thread support needs to know this.
20643
20644 $as_echo "#define HAVE_BOEHM_GC 1" >>confdefs.h
20645
20646 ;;
20647 no)
20648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
20649 $as_echo "none" >&6; }
20650 GCHDR=no-gc.h
20651 ;;
20652 *)
20653 as_fn_error "unrecognized collector \"$GC\"" "$LINENO" 5
20654 ;;
20655 esac
20656
20657
20658
20659
20660
20661
20662 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20663
20664 if test "$GC" = boehm; then
20665 USING_BOEHMGC_TRUE=
20666 USING_BOEHMGC_FALSE='#'
20667 else
20668 USING_BOEHMGC_TRUE='#'
20669 USING_BOEHMGC_FALSE=
20670 fi
20671
20672 if test "$GC" = no; then
20673 USING_NOGC_TRUE=
20674 USING_NOGC_FALSE='#'
20675 else
20676 USING_NOGC_TRUE='#'
20677 USING_NOGC_FALSE=
20678 fi
20679
20680
20681
20682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
20683 $as_echo_n "checking for thread model used by GCC... " >&6; }
20684 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
20686 $as_echo "$THREADS" >&6; }
20687
20688 case "$THREADS" in
20689 no | none | single)
20690 THREADS=none
20691 ;;
20692 aix | posix | pthreads)
20693 THREADS=posix
20694 case "$host" in
20695 *-*-linux*)
20696
20697 $as_echo "#define LINUX_THREADS 1" >>confdefs.h
20698
20699 ;;
20700 esac
20701 ;;
20702 win32)
20703 ;;
20704 dce | vxworks)
20705 as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
20706 ;;
20707 *)
20708 as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
20709 ;;
20710 esac
20711
20712 THREADCXXFLAGS=
20713 THREADLDFLAGS=
20714 THREADLIBS=
20715 THREADINCS=
20716 THREADDEPS=
20717 THREADH=
20718 THREADSPEC=
20719 THREADSTARTFILESPEC=
20720 case "$THREADS" in
20721 posix)
20722 case "$host" in
20723 *-*-cygwin*)
20724 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
20725 ;;
20726 *-*-freebsd[34].*)
20727 # Before FreeBSD 5, it didn't have -lpthread (or any library which
20728 # merely adds pthread_* functions) but it does have a -pthread switch
20729 # which is required at link-time to select -lc_r *instead* of -lc.
20730 THREADLDFLAGS=-pthread
20731 # Don't set THREADSPEC here as might be expected since -pthread is
20732 # not processed when found within a spec file, it must come from
20733 # the command line. For now, the user must provide the -pthread
20734 # switch to link code compiled with gcj. In future, consider adding
20735 # support for weak references to pthread_* functions ala gthr.h API.
20736 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20737 ;;
20738 *-*-freebsd*)
20739 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20740 # systems which support threads and -lpthread.
20741 THREADLDFLAGS=-pthread
20742 THREADSPEC=-lpthread
20743 ;;
20744 hppa*-hp-hpux*)
20745 THREADCXXFLAGS=-pthread
20746 # boehm-gc needs some functions from librt, so link that too.
20747 THREADLIBS='-lpthread -lrt'
20748 THREADSPEC='-lpthread -lrt'
20749 ;;
20750 *-*-solaris2.9)
20751 # Need libthread for TLS support.
20752 THREADLIBS='-lpthread -lthread'
20753 THREADSPEC='-lpthread -lthread'
20754 ;;
20755 *-*-darwin*)
20756 # Don't set THREADLIBS or THREADSPEC as Darwin already
20757 # provides pthread via libSystem.
20758 ;;
20759 *)
20760 THREADLIBS=-lpthread
20761 THREADSPEC=-lpthread
20762 ;;
20763 esac
20764 THREADH=posix-threads.h
20765 # MIT pthreads doesn't seem to have the mutexattr functions.
20766 # But for now we don't check for it. We just assume you aren't
20767 # using MIT pthreads.
20768
20769 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20770
20771
20772 # If we're using the Boehm GC, then we happen to know that it
20773 # defines _REENTRANT, so we don't bother. Eww.
20774 if test "$GC" != boehm; then
20775
20776 $as_echo "#define _REENTRANT 1" >>confdefs.h
20777
20778 fi
20779
20780 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
20781
20782 ;;
20783
20784 win32)
20785 THREADH=win32-threads.h
20786 THREADCXXFLAGS=-mthreads
20787 # We need thread-safe exception handling so _CRT_MT should be set to 1.
20788 # But we do not want the executables created to be dependent on
20789 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20790 # exception handling contexts. The following kludge achieves this effect
20791 # and causes a dummy __mingwthr_key_dtor() to be linked in from
20792 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
20793 # A workaround is to explicitly use -mthreads while linking Java programs.
20794 # See PR libgcj/28263.
20795 #
20796 # FIXME: In Java we are able to detect thread death at the end of
20797 # Thread.run() so we should be able to clean up the exception handling
20798 # contexts ourselves.
20799 case "$host" in
20800 *-w64-mingw*)
20801 ;;
20802 *)
20803 THREADSTARTFILESPEC='crtmt%O%s'
20804 ;;
20805 esac
20806 ;;
20807 none)
20808 THREADH=no-threads.h
20809 ;;
20810 esac
20811 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20812
20813
20814
20815
20816
20817
20818
20819
20820 if test "$THREADS" = posix; then
20821 USING_POSIX_THREADS_TRUE=
20822 USING_POSIX_THREADS_FALSE='#'
20823 else
20824 USING_POSIX_THREADS_TRUE='#'
20825 USING_POSIX_THREADS_FALSE=
20826 fi
20827
20828 if test "$THREADS" = win32; then
20829 USING_WIN32_THREADS_TRUE=
20830 USING_WIN32_THREADS_FALSE='#'
20831 else
20832 USING_WIN32_THREADS_TRUE='#'
20833 USING_WIN32_THREADS_FALSE=
20834 fi
20835
20836 if test "$THREADS" = none; then
20837 USING_NO_THREADS_TRUE=
20838 USING_NO_THREADS_FALSE='#'
20839 else
20840 USING_NO_THREADS_TRUE='#'
20841 USING_NO_THREADS_FALSE=
20842 fi
20843
20844 if test "$enable_shared" != yes; then
20845 use_libgcj_bc=no
20846 fi
20847 if test "$use_libgcj_bc" = yes; then
20848 USE_LIBGCJ_BC_TRUE=
20849 USE_LIBGCJ_BC_FALSE='#'
20850 else
20851 USE_LIBGCJ_BC_TRUE='#'
20852 USE_LIBGCJ_BC_FALSE=
20853 fi
20854
20855
20856 if test -d sysdep; then true; else mkdir sysdep; fi
20857 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20858
20859 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20860
20861 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20862
20863
20864 LIBGCJ_SPEC_LGCJ=-lgcj
20865 LIBGCJ_SPEC_LGCJ_BC=-lgcj_bc
20866 if test x"$libgcj_spec_lgcj_override" != x ; then
20867 LIBGCJ_SPEC_LGCJ=$libgcj_spec_lgcj_override
20868 fi
20869 if test x"$libgcj_spec_lgcj_bc_override" != x ; then
20870 LIBGCJ_SPEC_LGCJ_BC=$libgcj_spec_lgcj_bc_override
20871 fi
20872 LIBGCJ_SPEC="%{s-bc-abi:} $LIBGCJ_SPEC_LGCJ"
20873 if test "$use_libgcj_bc" = yes; then
20874 LIBGCJ_SPEC="%{static|static-libgcj|!s-bc-abi:$LIBGCJ_SPEC_LGCJ;:$LIBGCJ_SPEC_LGCJ_BC}"
20875 LIBGCJ_BC_SPEC="%{findirect-dispatch:-fPIC}"
20876 fi
20877
20878
20879
20880 HASH_SYNC_SPEC=
20881 # Hash synchronization is only useful with posix threads right now.
20882 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20883 HASH_SYNC_SPEC=-fhash-synchronization
20884
20885 $as_echo "#define JV_HASH_SYNCHRONIZATION 1" >>confdefs.h
20886
20887 fi
20888
20889
20890 if test "$GCC" = yes; then
20891 USING_GCC_TRUE=
20892 USING_GCC_FALSE='#'
20893 else
20894 USING_GCC_TRUE='#'
20895 USING_GCC_FALSE=
20896 fi
20897
20898
20899 # We're in the tree with libgcc, and need to include some of its headers.
20900 LIBGCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../libgcc'
20901
20902 if test "x${with_newlib}" = "xyes"; then
20903 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
20904 # may not work correctly, because the compiler may not be able to
20905 # link executables.
20906
20907 # We assume newlib. This lets us hard-code the functions we know
20908 # we'll have.
20909
20910 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20911
20912
20913 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
20914
20915
20916 $as_echo "#define HAVE_TIME 1" >>confdefs.h
20917
20918
20919 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20920
20921
20922 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
20923
20924
20925 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
20926
20927 # This is only for POSIX threads.
20928
20929 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20930
20931
20932 # Assume we do not have getuid and friends.
20933
20934 $as_echo "#define NO_GETUID 1" >>confdefs.h
20935
20936 PLATFORMNET=NoNet
20937 else
20938 for ac_func in strerror_r select fstat open fsync sleep opendir \
20939 localtime_r getpwuid_r getcwd \
20940 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20941 nl_langinfo setlocale \
20942 inet_pton uname inet_ntoa \
20943 getrlimit sigaction ftruncate mmap \
20944 getifaddrs
20945 do :
20946 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20947 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20948 eval as_val=\$$as_ac_var
20949 if test "x$as_val" = x""yes; then :
20950 cat >>confdefs.h <<_ACEOF
20951 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20952 _ACEOF
20953
20954 fi
20955 done
20956
20957 for ac_func in inet_aton inet_addr
20958 do :
20959 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20960 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20961 eval as_val=\$$as_ac_var
20962 if test "x$as_val" = x""yes; then :
20963 cat >>confdefs.h <<_ACEOF
20964 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20965 _ACEOF
20966 break
20967 fi
20968 done
20969
20970 for ac_header in unistd.h dlfcn.h sys/resource.h
20971 do :
20972 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20973 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20974 eval as_val=\$$as_ac_Header
20975 if test "x$as_val" = x""yes; then :
20976 cat >>confdefs.h <<_ACEOF
20977 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20978 _ACEOF
20979
20980 fi
20981
20982 done
20983
20984 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
20985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
20986 $as_echo_n "checking for dladdr in -ldl... " >&6; }
20987 if test "${ac_cv_lib_dl_dladdr+set}" = set; then :
20988 $as_echo_n "(cached) " >&6
20989 else
20990 ac_check_lib_save_LIBS=$LIBS
20991 LIBS="-ldl $LIBS"
20992 if test x$gcc_no_link = xyes; then
20993 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20994 fi
20995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20996 /* end confdefs.h. */
20997
20998 /* Override any GCC internal prototype to avoid an error.
20999 Use char because int might match the return type of a GCC
21000 builtin and then its argument prototype would still apply. */
21001 #ifdef __cplusplus
21002 extern "C"
21003 #endif
21004 char dladdr ();
21005 int
21006 main ()
21007 {
21008 return dladdr ();
21009 ;
21010 return 0;
21011 }
21012 _ACEOF
21013 if ac_fn_c_try_link "$LINENO"; then :
21014 ac_cv_lib_dl_dladdr=yes
21015 else
21016 ac_cv_lib_dl_dladdr=no
21017 fi
21018 rm -f core conftest.err conftest.$ac_objext \
21019 conftest$ac_exeext conftest.$ac_ext
21020 LIBS=$ac_check_lib_save_LIBS
21021 fi
21022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
21023 $as_echo "$ac_cv_lib_dl_dladdr" >&6; }
21024 if test "x$ac_cv_lib_dl_dladdr" = x""yes; then :
21025
21026
21027 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
21028
21029 else
21030
21031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldld" >&5
21032 $as_echo_n "checking for dladdr in -ldld... " >&6; }
21033 if test "${ac_cv_lib_dld_dladdr+set}" = set; then :
21034 $as_echo_n "(cached) " >&6
21035 else
21036 ac_check_lib_save_LIBS=$LIBS
21037 LIBS="-ldld $LIBS"
21038 if test x$gcc_no_link = xyes; then
21039 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21040 fi
21041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21042 /* end confdefs.h. */
21043
21044 /* Override any GCC internal prototype to avoid an error.
21045 Use char because int might match the return type of a GCC
21046 builtin and then its argument prototype would still apply. */
21047 #ifdef __cplusplus
21048 extern "C"
21049 #endif
21050 char dladdr ();
21051 int
21052 main ()
21053 {
21054 return dladdr ();
21055 ;
21056 return 0;
21057 }
21058 _ACEOF
21059 if ac_fn_c_try_link "$LINENO"; then :
21060 ac_cv_lib_dld_dladdr=yes
21061 else
21062 ac_cv_lib_dld_dladdr=no
21063 fi
21064 rm -f core conftest.err conftest.$ac_objext \
21065 conftest$ac_exeext conftest.$ac_ext
21066 LIBS=$ac_check_lib_save_LIBS
21067 fi
21068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dladdr" >&5
21069 $as_echo "$ac_cv_lib_dld_dladdr" >&6; }
21070 if test "x$ac_cv_lib_dld_dladdr" = x""yes; then :
21071
21072
21073 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
21074
21075 fi
21076
21077 fi
21078
21079
21080 if test x"$cross_compiling" = x"no"; then
21081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/exe" >&5
21082 $as_echo_n "checking for /proc/self/exe... " >&6; }
21083 if test "${ac_cv_file__proc_self_exe+set}" = set; then :
21084 $as_echo_n "(cached) " >&6
21085 else
21086 test "$cross_compiling" = yes &&
21087 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
21088 if test -r "/proc/self/exe"; then
21089 ac_cv_file__proc_self_exe=yes
21090 else
21091 ac_cv_file__proc_self_exe=no
21092 fi
21093 fi
21094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_exe" >&5
21095 $as_echo "$ac_cv_file__proc_self_exe" >&6; }
21096 if test "x$ac_cv_file__proc_self_exe" = x""yes; then :
21097
21098 cat >>confdefs.h <<_ACEOF
21099 #define HAVE__PROC_SELF_EXE 1
21100 _ACEOF
21101
21102
21103 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
21104
21105 fi
21106
21107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/maps" >&5
21108 $as_echo_n "checking for /proc/self/maps... " >&6; }
21109 if test "${ac_cv_file__proc_self_maps+set}" = set; then :
21110 $as_echo_n "(cached) " >&6
21111 else
21112 test "$cross_compiling" = yes &&
21113 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
21114 if test -r "/proc/self/maps"; then
21115 ac_cv_file__proc_self_maps=yes
21116 else
21117 ac_cv_file__proc_self_maps=no
21118 fi
21119 fi
21120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_maps" >&5
21121 $as_echo "$ac_cv_file__proc_self_maps" >&6; }
21122 if test "x$ac_cv_file__proc_self_maps" = x""yes; then :
21123
21124 cat >>confdefs.h <<_ACEOF
21125 #define HAVE__PROC_SELF_MAPS 1
21126 _ACEOF
21127
21128
21129 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
21130
21131 fi
21132
21133 else
21134 case $host in
21135 *-linux*)
21136
21137 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
21138
21139
21140 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
21141
21142 ;;
21143 esac
21144 fi
21145
21146
21147 if test "X$prefix" = "XNONE"; then
21148 acl_final_prefix="$ac_default_prefix"
21149 else
21150 acl_final_prefix="$prefix"
21151 fi
21152 if test "X$exec_prefix" = "XNONE"; then
21153 acl_final_exec_prefix='${prefix}'
21154 else
21155 acl_final_exec_prefix="$exec_prefix"
21156 fi
21157 acl_save_prefix="$prefix"
21158 prefix="$acl_final_prefix"
21159 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21160 prefix="$acl_save_prefix"
21161
21162
21163 # Check whether --with-gnu-ld was given.
21164 if test "${with_gnu_ld+set}" = set; then :
21165 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
21166 else
21167 with_gnu_ld=no
21168 fi
21169
21170 # Prepare PATH_SEPARATOR.
21171 # The user is always right.
21172 if test "${PATH_SEPARATOR+set}" != set; then
21173 echo "#! /bin/sh" >conf$$.sh
21174 echo "exit 0" >>conf$$.sh
21175 chmod +x conf$$.sh
21176 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21177 PATH_SEPARATOR=';'
21178 else
21179 PATH_SEPARATOR=:
21180 fi
21181 rm -f conf$$.sh
21182 fi
21183 ac_prog=ld
21184 if test "$GCC" = yes; then
21185 # Check if gcc -print-prog-name=ld gives a path.
21186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
21187 $as_echo_n "checking for ld used by GCC... " >&6; }
21188 case $host in
21189 *-*-mingw*)
21190 # gcc leaves a trailing carriage return which upsets mingw
21191 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21192 *)
21193 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21194 esac
21195 case $ac_prog in
21196 # Accept absolute paths.
21197 [\\/]* | [A-Za-z]:[\\/]*)
21198 re_direlt='/[^/][^/]*/\.\./'
21199 # Canonicalize the path of ld
21200 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21201 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21202 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21203 done
21204 test -z "$LD" && LD="$ac_prog"
21205 ;;
21206 "")
21207 # If it fails, then pretend we aren't using GCC.
21208 ac_prog=ld
21209 ;;
21210 *)
21211 # If it is relative, then search for the first ld in PATH.
21212 with_gnu_ld=unknown
21213 ;;
21214 esac
21215 elif test "$with_gnu_ld" = yes; then
21216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
21217 $as_echo_n "checking for GNU ld... " >&6; }
21218 else
21219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
21220 $as_echo_n "checking for non-GNU ld... " >&6; }
21221 fi
21222 if test "${acl_cv_path_LD+set}" = set; then :
21223 $as_echo_n "(cached) " >&6
21224 else
21225 if test -z "$LD"; then
21226 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21227 for ac_dir in $PATH; do
21228 test -z "$ac_dir" && ac_dir=.
21229 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21230 acl_cv_path_LD="$ac_dir/$ac_prog"
21231 # Check to see if the program is GNU ld. I'd rather use --version,
21232 # but apparently some GNU ld's only accept -v.
21233 # Break only if it was the GNU/non-GNU ld that we prefer.
21234 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
21235 test "$with_gnu_ld" != no && break
21236 else
21237 test "$with_gnu_ld" != yes && break
21238 fi
21239 fi
21240 done
21241 IFS="$ac_save_ifs"
21242 else
21243 acl_cv_path_LD="$LD" # Let the user override the test with a path.
21244 fi
21245 fi
21246
21247 LD="$acl_cv_path_LD"
21248 if test -n "$LD"; then
21249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
21250 $as_echo "$LD" >&6; }
21251 else
21252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21253 $as_echo "no" >&6; }
21254 fi
21255 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
21256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
21257 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
21258 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
21259 $as_echo_n "(cached) " >&6
21260 else
21261 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21262 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21263 acl_cv_prog_gnu_ld=yes
21264 else
21265 acl_cv_prog_gnu_ld=no
21266 fi
21267 fi
21268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
21269 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
21270 with_gnu_ld=$acl_cv_prog_gnu_ld
21271
21272
21273
21274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
21275 $as_echo_n "checking for shared library run path origin... " >&6; }
21276 if test "${acl_cv_rpath+set}" = set; then :
21277 $as_echo_n "(cached) " >&6
21278 else
21279
21280 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21281 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21282 . ./conftest.sh
21283 rm -f ./conftest.sh
21284 acl_cv_rpath=done
21285
21286 fi
21287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
21288 $as_echo "$acl_cv_rpath" >&6; }
21289 wl="$acl_cv_wl"
21290 libext="$acl_cv_libext"
21291 shlibext="$acl_cv_shlibext"
21292 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21293 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21294 hardcode_direct="$acl_cv_hardcode_direct"
21295 hardcode_minus_L="$acl_cv_hardcode_minus_L"
21296 # Check whether --enable-rpath was given.
21297 if test "${enable_rpath+set}" = set; then :
21298 enableval=$enable_rpath; :
21299 else
21300 enable_rpath=yes
21301 fi
21302
21303
21304
21305
21306
21307
21308
21309
21310 use_additional=yes
21311
21312 acl_save_prefix="$prefix"
21313 prefix="$acl_final_prefix"
21314 acl_save_exec_prefix="$exec_prefix"
21315 exec_prefix="$acl_final_exec_prefix"
21316
21317 eval additional_includedir=\"$includedir\"
21318 eval additional_libdir=\"$libdir\"
21319
21320 exec_prefix="$acl_save_exec_prefix"
21321 prefix="$acl_save_prefix"
21322
21323
21324 # Check whether --with-libiconv-prefix was given.
21325 if test "${with_libiconv_prefix+set}" = set; then :
21326 withval=$with_libiconv_prefix;
21327 if test "X$withval" = "Xno"; then
21328 use_additional=no
21329 else
21330 if test "X$withval" = "X"; then
21331
21332 acl_save_prefix="$prefix"
21333 prefix="$acl_final_prefix"
21334 acl_save_exec_prefix="$exec_prefix"
21335 exec_prefix="$acl_final_exec_prefix"
21336
21337 eval additional_includedir=\"$includedir\"
21338 eval additional_libdir=\"$libdir\"
21339
21340 exec_prefix="$acl_save_exec_prefix"
21341 prefix="$acl_save_prefix"
21342
21343 else
21344 additional_includedir="$withval/include"
21345 additional_libdir="$withval/lib"
21346 fi
21347 fi
21348
21349 fi
21350
21351 LIBICONV=
21352 LTLIBICONV=
21353 INCICONV=
21354 rpathdirs=
21355 ltrpathdirs=
21356 names_already_handled=
21357 names_next_round='iconv '
21358 while test -n "$names_next_round"; do
21359 names_this_round="$names_next_round"
21360 names_next_round=
21361 for name in $names_this_round; do
21362 already_handled=
21363 for n in $names_already_handled; do
21364 if test "$n" = "$name"; then
21365 already_handled=yes
21366 break
21367 fi
21368 done
21369 if test -z "$already_handled"; then
21370 names_already_handled="$names_already_handled $name"
21371 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21372 eval value=\"\$HAVE_LIB$uppername\"
21373 if test -n "$value"; then
21374 if test "$value" = yes; then
21375 eval value=\"\$LIB$uppername\"
21376 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21377 eval value=\"\$LTLIB$uppername\"
21378 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21379 else
21380 :
21381 fi
21382 else
21383 found_dir=
21384 found_la=
21385 found_so=
21386 found_a=
21387 if test $use_additional = yes; then
21388 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21389 found_dir="$additional_libdir"
21390 found_so="$additional_libdir/lib$name.$shlibext"
21391 if test -f "$additional_libdir/lib$name.la"; then
21392 found_la="$additional_libdir/lib$name.la"
21393 fi
21394 else
21395 if test -f "$additional_libdir/lib$name.$libext"; then
21396 found_dir="$additional_libdir"
21397 found_a="$additional_libdir/lib$name.$libext"
21398 if test -f "$additional_libdir/lib$name.la"; then
21399 found_la="$additional_libdir/lib$name.la"
21400 fi
21401 fi
21402 fi
21403 fi
21404 if test "X$found_dir" = "X"; then
21405 for x in $LDFLAGS $LTLIBICONV; do
21406
21407 acl_save_prefix="$prefix"
21408 prefix="$acl_final_prefix"
21409 acl_save_exec_prefix="$exec_prefix"
21410 exec_prefix="$acl_final_exec_prefix"
21411 eval x=\"$x\"
21412 exec_prefix="$acl_save_exec_prefix"
21413 prefix="$acl_save_prefix"
21414
21415 case "$x" in
21416 -L*)
21417 dir=`echo "X$x" | sed -e 's/^X-L//'`
21418 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21419 found_dir="$dir"
21420 found_so="$dir/lib$name.$shlibext"
21421 if test -f "$dir/lib$name.la"; then
21422 found_la="$dir/lib$name.la"
21423 fi
21424 else
21425 if test -f "$dir/lib$name.$libext"; then
21426 found_dir="$dir"
21427 found_a="$dir/lib$name.$libext"
21428 if test -f "$dir/lib$name.la"; then
21429 found_la="$dir/lib$name.la"
21430 fi
21431 fi
21432 fi
21433 ;;
21434 esac
21435 if test "X$found_dir" != "X"; then
21436 break
21437 fi
21438 done
21439 fi
21440 if test "X$found_dir" != "X"; then
21441 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21442 if test "X$found_so" != "X"; then
21443 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21444 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21445 else
21446 haveit=
21447 for x in $ltrpathdirs; do
21448 if test "X$x" = "X$found_dir"; then
21449 haveit=yes
21450 break
21451 fi
21452 done
21453 if test -z "$haveit"; then
21454 ltrpathdirs="$ltrpathdirs $found_dir"
21455 fi
21456 if test "$hardcode_direct" = yes; then
21457 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21458 else
21459 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21460 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21461 haveit=
21462 for x in $rpathdirs; do
21463 if test "X$x" = "X$found_dir"; then
21464 haveit=yes
21465 break
21466 fi
21467 done
21468 if test -z "$haveit"; then
21469 rpathdirs="$rpathdirs $found_dir"
21470 fi
21471 else
21472 haveit=
21473 for x in $LDFLAGS $LIBICONV; do
21474
21475 acl_save_prefix="$prefix"
21476 prefix="$acl_final_prefix"
21477 acl_save_exec_prefix="$exec_prefix"
21478 exec_prefix="$acl_final_exec_prefix"
21479 eval x=\"$x\"
21480 exec_prefix="$acl_save_exec_prefix"
21481 prefix="$acl_save_prefix"
21482
21483 if test "X$x" = "X-L$found_dir"; then
21484 haveit=yes
21485 break
21486 fi
21487 done
21488 if test -z "$haveit"; then
21489 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21490 fi
21491 if test "$hardcode_minus_L" != no; then
21492 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21493 else
21494 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21495 fi
21496 fi
21497 fi
21498 fi
21499 else
21500 if test "X$found_a" != "X"; then
21501 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21502 else
21503 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21504 fi
21505 fi
21506 additional_includedir=
21507 case "$found_dir" in
21508 */lib | */lib/)
21509 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21510 additional_includedir="$basedir/include"
21511 ;;
21512 esac
21513 if test "X$additional_includedir" != "X"; then
21514 if test "X$additional_includedir" != "X/usr/include"; then
21515 haveit=
21516 if test "X$additional_includedir" = "X/usr/local/include"; then
21517 if test -n "$GCC"; then
21518 case $host_os in
21519 linux*) haveit=yes;;
21520 esac
21521 fi
21522 fi
21523 if test -z "$haveit"; then
21524 for x in $CPPFLAGS $INCICONV; do
21525
21526 acl_save_prefix="$prefix"
21527 prefix="$acl_final_prefix"
21528 acl_save_exec_prefix="$exec_prefix"
21529 exec_prefix="$acl_final_exec_prefix"
21530 eval x=\"$x\"
21531 exec_prefix="$acl_save_exec_prefix"
21532 prefix="$acl_save_prefix"
21533
21534 if test "X$x" = "X-I$additional_includedir"; then
21535 haveit=yes
21536 break
21537 fi
21538 done
21539 if test -z "$haveit"; then
21540 if test -d "$additional_includedir"; then
21541 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21542 fi
21543 fi
21544 fi
21545 fi
21546 fi
21547 if test -n "$found_la"; then
21548 save_libdir="$libdir"
21549 case "$found_la" in
21550 */* | *\\*) . "$found_la" ;;
21551 *) . "./$found_la" ;;
21552 esac
21553 libdir="$save_libdir"
21554 for dep in $dependency_libs; do
21555 case "$dep" in
21556 -L*)
21557 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21558 if test "X$additional_libdir" != "X/usr/lib"; then
21559 haveit=
21560 if test "X$additional_libdir" = "X/usr/local/lib"; then
21561 if test -n "$GCC"; then
21562 case $host_os in
21563 linux*) haveit=yes;;
21564 esac
21565 fi
21566 fi
21567 if test -z "$haveit"; then
21568 haveit=
21569 for x in $LDFLAGS $LIBICONV; do
21570
21571 acl_save_prefix="$prefix"
21572 prefix="$acl_final_prefix"
21573 acl_save_exec_prefix="$exec_prefix"
21574 exec_prefix="$acl_final_exec_prefix"
21575 eval x=\"$x\"
21576 exec_prefix="$acl_save_exec_prefix"
21577 prefix="$acl_save_prefix"
21578
21579 if test "X$x" = "X-L$additional_libdir"; then
21580 haveit=yes
21581 break
21582 fi
21583 done
21584 if test -z "$haveit"; then
21585 if test -d "$additional_libdir"; then
21586 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21587 fi
21588 fi
21589 haveit=
21590 for x in $LDFLAGS $LTLIBICONV; do
21591
21592 acl_save_prefix="$prefix"
21593 prefix="$acl_final_prefix"
21594 acl_save_exec_prefix="$exec_prefix"
21595 exec_prefix="$acl_final_exec_prefix"
21596 eval x=\"$x\"
21597 exec_prefix="$acl_save_exec_prefix"
21598 prefix="$acl_save_prefix"
21599
21600 if test "X$x" = "X-L$additional_libdir"; then
21601 haveit=yes
21602 break
21603 fi
21604 done
21605 if test -z "$haveit"; then
21606 if test -d "$additional_libdir"; then
21607 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21608 fi
21609 fi
21610 fi
21611 fi
21612 ;;
21613 -R*)
21614 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21615 if test "$enable_rpath" != no; then
21616 haveit=
21617 for x in $rpathdirs; do
21618 if test "X$x" = "X$dir"; then
21619 haveit=yes
21620 break
21621 fi
21622 done
21623 if test -z "$haveit"; then
21624 rpathdirs="$rpathdirs $dir"
21625 fi
21626 haveit=
21627 for x in $ltrpathdirs; do
21628 if test "X$x" = "X$dir"; then
21629 haveit=yes
21630 break
21631 fi
21632 done
21633 if test -z "$haveit"; then
21634 ltrpathdirs="$ltrpathdirs $dir"
21635 fi
21636 fi
21637 ;;
21638 -l*)
21639 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21640 ;;
21641 *.la)
21642 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21643 ;;
21644 *)
21645 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21646 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21647 ;;
21648 esac
21649 done
21650 fi
21651 else
21652 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21653 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21654 fi
21655 fi
21656 fi
21657 done
21658 done
21659 if test "X$rpathdirs" != "X"; then
21660 if test -n "$hardcode_libdir_separator"; then
21661 alldirs=
21662 for found_dir in $rpathdirs; do
21663 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21664 done
21665 acl_save_libdir="$libdir"
21666 libdir="$alldirs"
21667 eval flag=\"$hardcode_libdir_flag_spec\"
21668 libdir="$acl_save_libdir"
21669 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21670 else
21671 for found_dir in $rpathdirs; do
21672 acl_save_libdir="$libdir"
21673 libdir="$found_dir"
21674 eval flag=\"$hardcode_libdir_flag_spec\"
21675 libdir="$acl_save_libdir"
21676 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21677 done
21678 fi
21679 fi
21680 if test "X$ltrpathdirs" != "X"; then
21681 for found_dir in $ltrpathdirs; do
21682 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21683 done
21684 fi
21685
21686
21687
21688
21689
21690
21691
21692 am_save_CPPFLAGS="$CPPFLAGS"
21693
21694 for element in $INCICONV; do
21695 haveit=
21696 for x in $CPPFLAGS; do
21697
21698 acl_save_prefix="$prefix"
21699 prefix="$acl_final_prefix"
21700 acl_save_exec_prefix="$exec_prefix"
21701 exec_prefix="$acl_final_exec_prefix"
21702 eval x=\"$x\"
21703 exec_prefix="$acl_save_exec_prefix"
21704 prefix="$acl_save_prefix"
21705
21706 if test "X$x" = "X$element"; then
21707 haveit=yes
21708 break
21709 fi
21710 done
21711 if test -z "$haveit"; then
21712 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21713 fi
21714 done
21715
21716
21717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21718 $as_echo_n "checking for iconv... " >&6; }
21719 if test "${am_cv_func_iconv+set}" = set; then :
21720 $as_echo_n "(cached) " >&6
21721 else
21722
21723 am_cv_func_iconv="no, consider installing GNU libiconv"
21724 am_cv_lib_iconv=no
21725 if test x$gcc_no_link = xyes; then
21726 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21727 fi
21728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21729 /* end confdefs.h. */
21730 #include <stdlib.h>
21731 #include <iconv.h>
21732 int
21733 main ()
21734 {
21735 iconv_t cd = iconv_open("","");
21736 iconv(cd,NULL,NULL,NULL,NULL);
21737 iconv_close(cd);
21738 ;
21739 return 0;
21740 }
21741 _ACEOF
21742 if ac_fn_c_try_link "$LINENO"; then :
21743 am_cv_func_iconv=yes
21744 fi
21745 rm -f core conftest.err conftest.$ac_objext \
21746 conftest$ac_exeext conftest.$ac_ext
21747 if test "$am_cv_func_iconv" != yes; then
21748 am_save_LIBS="$LIBS"
21749 LIBS="$LIBS $LIBICONV"
21750 if test x$gcc_no_link = xyes; then
21751 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21752 fi
21753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21754 /* end confdefs.h. */
21755 #include <stdlib.h>
21756 #include <iconv.h>
21757 int
21758 main ()
21759 {
21760 iconv_t cd = iconv_open("","");
21761 iconv(cd,NULL,NULL,NULL,NULL);
21762 iconv_close(cd);
21763 ;
21764 return 0;
21765 }
21766 _ACEOF
21767 if ac_fn_c_try_link "$LINENO"; then :
21768 am_cv_lib_iconv=yes
21769 am_cv_func_iconv=yes
21770 fi
21771 rm -f core conftest.err conftest.$ac_objext \
21772 conftest$ac_exeext conftest.$ac_ext
21773 LIBS="$am_save_LIBS"
21774 fi
21775
21776 fi
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
21778 $as_echo "$am_cv_func_iconv" >&6; }
21779 if test "$am_cv_func_iconv" = yes; then
21780
21781 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
21782
21783 fi
21784 if test "$am_cv_lib_iconv" = yes; then
21785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
21786 $as_echo_n "checking how to link with libiconv... " >&6; }
21787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
21788 $as_echo "$LIBICONV" >&6; }
21789 else
21790 CPPFLAGS="$am_save_CPPFLAGS"
21791 LIBICONV=
21792 LTLIBICONV=
21793 fi
21794
21795
21796
21797 if test "$am_cv_func_iconv" = yes; then
21798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
21799 $as_echo_n "checking for iconv declaration... " >&6; }
21800 if test "${am_cv_proto_iconv+set}" = set; then :
21801 $as_echo_n "(cached) " >&6
21802 else
21803
21804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21805 /* end confdefs.h. */
21806
21807 #include <stdlib.h>
21808 #include <iconv.h>
21809 extern
21810 #ifdef __cplusplus
21811 "C"
21812 #endif
21813 #if defined(__STDC__) || defined(__cplusplus)
21814 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21815 #else
21816 size_t iconv();
21817 #endif
21818
21819 int
21820 main ()
21821 {
21822
21823 ;
21824 return 0;
21825 }
21826 _ACEOF
21827 if ac_fn_c_try_compile "$LINENO"; then :
21828 am_cv_proto_iconv_arg1=""
21829 else
21830 am_cv_proto_iconv_arg1="const"
21831 fi
21832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21833 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);"
21834 fi
21835
21836 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
21838 }$am_cv_proto_iconv" >&5
21839 $as_echo "${ac_t:-
21840 }$am_cv_proto_iconv" >&6; }
21841
21842 cat >>confdefs.h <<_ACEOF
21843 #define ICONV_CONST $am_cv_proto_iconv_arg1
21844 _ACEOF
21845
21846 fi
21847
21848
21849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
21850 $as_echo_n "checking for LC_MESSAGES... " >&6; }
21851 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
21852 $as_echo_n "(cached) " >&6
21853 else
21854 if test x$gcc_no_link = xyes; then
21855 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21856 fi
21857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21858 /* end confdefs.h. */
21859 #include <locale.h>
21860 int
21861 main ()
21862 {
21863 return LC_MESSAGES
21864 ;
21865 return 0;
21866 }
21867 _ACEOF
21868 if ac_fn_c_try_link "$LINENO"; then :
21869 am_cv_val_LC_MESSAGES=yes
21870 else
21871 am_cv_val_LC_MESSAGES=no
21872 fi
21873 rm -f core conftest.err conftest.$ac_objext \
21874 conftest$ac_exeext conftest.$ac_ext
21875 fi
21876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
21877 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
21878 if test $am_cv_val_LC_MESSAGES = yes; then
21879
21880 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
21881
21882 fi
21883
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21885 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21886 if test "${ac_cv_struct_tm+set}" = set; then :
21887 $as_echo_n "(cached) " >&6
21888 else
21889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21890 /* end confdefs.h. */
21891 #include <sys/types.h>
21892 #include <time.h>
21893
21894 int
21895 main ()
21896 {
21897 struct tm tm;
21898 int *p = &tm.tm_sec;
21899 return !p;
21900 ;
21901 return 0;
21902 }
21903 _ACEOF
21904 if ac_fn_c_try_compile "$LINENO"; then :
21905 ac_cv_struct_tm=time.h
21906 else
21907 ac_cv_struct_tm=sys/time.h
21908 fi
21909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21910 fi
21911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21912 $as_echo "$ac_cv_struct_tm" >&6; }
21913 if test $ac_cv_struct_tm = sys/time.h; then
21914
21915 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21916
21917 fi
21918
21919 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21920 #include <$ac_cv_struct_tm>
21921
21922 "
21923 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21924
21925 cat >>confdefs.h <<_ACEOF
21926 #define HAVE_STRUCT_TM_TM_ZONE 1
21927 _ACEOF
21928
21929
21930 fi
21931
21932 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21933
21934 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21935
21936 else
21937 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21938 "
21939 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21940 ac_have_decl=1
21941 else
21942 ac_have_decl=0
21943 fi
21944
21945 cat >>confdefs.h <<_ACEOF
21946 #define HAVE_DECL_TZNAME $ac_have_decl
21947 _ACEOF
21948
21949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21950 $as_echo_n "checking for tzname... " >&6; }
21951 if test "${ac_cv_var_tzname+set}" = set; then :
21952 $as_echo_n "(cached) " >&6
21953 else
21954 if test x$gcc_no_link = xyes; then
21955 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21956 fi
21957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21958 /* end confdefs.h. */
21959 #include <time.h>
21960 #if !HAVE_DECL_TZNAME
21961 extern char *tzname[];
21962 #endif
21963
21964 int
21965 main ()
21966 {
21967 return tzname[0][0];
21968 ;
21969 return 0;
21970 }
21971 _ACEOF
21972 if ac_fn_c_try_link "$LINENO"; then :
21973 ac_cv_var_tzname=yes
21974 else
21975 ac_cv_var_tzname=no
21976 fi
21977 rm -f core conftest.err conftest.$ac_objext \
21978 conftest$ac_exeext conftest.$ac_ext
21979 fi
21980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21981 $as_echo "$ac_cv_var_tzname" >&6; }
21982 if test $ac_cv_var_tzname = yes; then
21983
21984 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21985
21986 fi
21987 fi
21988
21989 LDLIBICONV=`echo " $LIBICONV " | sed "s/${acl_cv_wl--Wl,}/ /g; s/,/ /g"`
21990
21991
21992 for ac_func in gethostbyname_r
21993 do :
21994 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
21995 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
21996 cat >>confdefs.h <<_ACEOF
21997 #define HAVE_GETHOSTBYNAME_R 1
21998 _ACEOF
21999
22000
22001 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
22002
22003 # There are two different kinds of gethostbyname_r.
22004 # We look for the one that returns `int'.
22005 # Hopefully this check is robust enough.
22006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22007 /* end confdefs.h. */
22008 #include <netdb.h>
22009
22010 _ACEOF
22011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22012 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then :
22013
22014
22015 $as_echo "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h
22016
22017 fi
22018 rm -f conftest*
22019
22020
22021 case " $GCINCS " in
22022 *" -D_REENTRANT "*) ;;
22023 *)
22024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
22025 $as_echo_n "checking whether gethostbyname_r declaration requires -D_REENTRANT... " >&6; }
22026 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then :
22027 $as_echo_n "(cached) " >&6
22028 else
22029 ac_ext=cpp
22030 ac_cpp='$CXXCPP $CPPFLAGS'
22031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22034
22035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22036 /* end confdefs.h. */
22037 #include <netdb.h>
22038 int
22039 main ()
22040 {
22041 gethostbyname_r("", 0, 0);
22042 ;
22043 return 0;
22044 }
22045 _ACEOF
22046 if ac_fn_cxx_try_compile "$LINENO"; then :
22047 libjava_cv_gethostbyname_r_needs_reentrant=no
22048 else
22049 CPPFLAGS_SAVE="$CPPFLAGS"
22050 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
22051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22052 /* end confdefs.h. */
22053 #include <netdb.h>
22054 int
22055 main ()
22056 {
22057 gethostbyname_r("", 0, 0);
22058 ;
22059 return 0;
22060 }
22061 _ACEOF
22062 if ac_fn_cxx_try_compile "$LINENO"; then :
22063 libjava_cv_gethostbyname_r_needs_reentrant=yes
22064 else
22065 libjava_cv_gethostbyname_r_needs_reentrant=fail
22066 fi
22067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22068 CPPFLAGS="$CPPFLAGS_SAVE"
22069
22070 fi
22071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22072 ac_ext=c
22073 ac_cpp='$CPP $CPPFLAGS'
22074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22077
22078
22079 fi
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
22081 $as_echo "$libjava_cv_gethostbyname_r_needs_reentrant" >&6; }
22082 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
22083
22084 $as_echo "#define _REENTRANT 1" >>confdefs.h
22085
22086 fi
22087 ;;
22088 esac
22089
22090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct hostent_data" >&5
22091 $as_echo_n "checking for struct hostent_data... " >&6; }
22092 if test "${libjava_cv_struct_hostent_data+set}" = set; then :
22093 $as_echo_n "(cached) " >&6
22094 else
22095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22096 /* end confdefs.h. */
22097
22098 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
22099 # define _REENTRANT 1
22100 #endif
22101 #include <netdb.h>
22102 int
22103 main ()
22104 {
22105 struct hostent_data data;
22106 ;
22107 return 0;
22108 }
22109 _ACEOF
22110 if ac_fn_c_try_compile "$LINENO"; then :
22111 libjava_cv_struct_hostent_data=yes
22112 else
22113 libjava_cv_struct_hostent_data=no
22114 fi
22115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22116 fi
22117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_struct_hostent_data" >&5
22118 $as_echo "$libjava_cv_struct_hostent_data" >&6; }
22119 if test "x$libjava_cv_struct_hostent_data" = xyes; then
22120
22121 $as_echo "#define HAVE_STRUCT_HOSTENT_DATA 1" >>confdefs.h
22122
22123 fi
22124
22125 fi
22126 done
22127
22128
22129 # FIXME: libjava source code expects to find a prototype for
22130 # gethostbyaddr_r in netdb.h. The outer check ensures that
22131 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
22132 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
22133 # linkage check is enough, yet C++ code requires proper prototypes.)
22134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22135 /* end confdefs.h. */
22136 #include <netdb.h>
22137
22138 _ACEOF
22139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22140 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
22141
22142 for ac_func in gethostbyaddr_r
22143 do :
22144 ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
22145 if test "x$ac_cv_func_gethostbyaddr_r" = x""yes; then :
22146 cat >>confdefs.h <<_ACEOF
22147 #define HAVE_GETHOSTBYADDR_R 1
22148 _ACEOF
22149
22150
22151 $as_echo "#define HAVE_GETHOSTBYADDR_R 1" >>confdefs.h
22152
22153 # There are two different kinds of gethostbyaddr_r.
22154 # We look for the one that returns `int'.
22155 # Hopefully this check is robust enough.
22156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22157 /* end confdefs.h. */
22158 #include <netdb.h>
22159
22160 _ACEOF
22161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22162 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then :
22163
22164
22165 $as_echo "#define GETHOSTBYADDR_R_RETURNS_INT 1" >>confdefs.h
22166
22167 fi
22168 rm -f conftest*
22169
22170 fi
22171 done
22172
22173 fi
22174 rm -f conftest*
22175
22176
22177 for ac_func in gethostname
22178 do :
22179 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
22180 if test "x$ac_cv_func_gethostname" = x""yes; then :
22181 cat >>confdefs.h <<_ACEOF
22182 #define HAVE_GETHOSTNAME 1
22183 _ACEOF
22184
22185
22186 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
22187
22188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22189 /* end confdefs.h. */
22190 #include <unistd.h>
22191
22192 _ACEOF
22193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22194 $EGREP "gethostname" >/dev/null 2>&1; then :
22195
22196
22197 $as_echo "#define HAVE_GETHOSTNAME_DECL 1" >>confdefs.h
22198
22199 fi
22200 rm -f conftest*
22201
22202 fi
22203 done
22204
22205
22206 for ac_func in usleep
22207 do :
22208 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
22209 if test "x$ac_cv_func_usleep" = x""yes; then :
22210 cat >>confdefs.h <<_ACEOF
22211 #define HAVE_USLEEP 1
22212 _ACEOF
22213
22214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22215 /* end confdefs.h. */
22216 #include <unistd.h>
22217
22218 _ACEOF
22219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22220 $EGREP "usleep" >/dev/null 2>&1; then :
22221
22222
22223 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
22224
22225 fi
22226 rm -f conftest*
22227
22228 fi
22229 done
22230
22231
22232 # Look for these functions in the thread library, but only bother
22233 # if using POSIX threads.
22234 if test "$THREADS" = posix; then
22235 save_LIBS="$LIBS"
22236 LIBS="$LIBS $THREADLIBS"
22237
22238 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
22239 # Solaris 7 the name librt is preferred.
22240 for ac_func in sched_yield
22241 do :
22242 ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
22243 if test "x$ac_cv_func_sched_yield" = x""yes; then :
22244 cat >>confdefs.h <<_ACEOF
22245 #define HAVE_SCHED_YIELD 1
22246 _ACEOF
22247
22248 else
22249
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
22251 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
22252 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
22253 $as_echo_n "(cached) " >&6
22254 else
22255 ac_check_lib_save_LIBS=$LIBS
22256 LIBS="-lrt $LIBS"
22257 if test x$gcc_no_link = xyes; then
22258 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22259 fi
22260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22261 /* end confdefs.h. */
22262
22263 /* Override any GCC internal prototype to avoid an error.
22264 Use char because int might match the return type of a GCC
22265 builtin and then its argument prototype would still apply. */
22266 #ifdef __cplusplus
22267 extern "C"
22268 #endif
22269 char sched_yield ();
22270 int
22271 main ()
22272 {
22273 return sched_yield ();
22274 ;
22275 return 0;
22276 }
22277 _ACEOF
22278 if ac_fn_c_try_link "$LINENO"; then :
22279 ac_cv_lib_rt_sched_yield=yes
22280 else
22281 ac_cv_lib_rt_sched_yield=no
22282 fi
22283 rm -f core conftest.err conftest.$ac_objext \
22284 conftest$ac_exeext conftest.$ac_ext
22285 LIBS=$ac_check_lib_save_LIBS
22286 fi
22287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
22288 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
22289 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
22290
22291 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22292
22293 THREADLIBS="$THREADLIBS -lrt"
22294 THREADSPEC="$THREADSPEC -lrt"
22295 else
22296
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
22298 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
22299 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then :
22300 $as_echo_n "(cached) " >&6
22301 else
22302 ac_check_lib_save_LIBS=$LIBS
22303 LIBS="-lposix4 $LIBS"
22304 if test x$gcc_no_link = xyes; then
22305 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22306 fi
22307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22308 /* end confdefs.h. */
22309
22310 /* Override any GCC internal prototype to avoid an error.
22311 Use char because int might match the return type of a GCC
22312 builtin and then its argument prototype would still apply. */
22313 #ifdef __cplusplus
22314 extern "C"
22315 #endif
22316 char sched_yield ();
22317 int
22318 main ()
22319 {
22320 return sched_yield ();
22321 ;
22322 return 0;
22323 }
22324 _ACEOF
22325 if ac_fn_c_try_link "$LINENO"; then :
22326 ac_cv_lib_posix4_sched_yield=yes
22327 else
22328 ac_cv_lib_posix4_sched_yield=no
22329 fi
22330 rm -f core conftest.err conftest.$ac_objext \
22331 conftest$ac_exeext conftest.$ac_ext
22332 LIBS=$ac_check_lib_save_LIBS
22333 fi
22334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
22335 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
22336 if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then :
22337
22338 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22339
22340 THREADLIBS="$THREADLIBS -lposix4"
22341 THREADSPEC="$THREADSPEC -lposix4"
22342 fi
22343
22344 fi
22345
22346 fi
22347 done
22348
22349
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22351 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22352 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
22353 $as_echo_n "(cached) " >&6
22354 else
22355 ac_check_lib_save_LIBS=$LIBS
22356 LIBS="-lrt $LIBS"
22357 if test x$gcc_no_link = xyes; then
22358 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22359 fi
22360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22361 /* end confdefs.h. */
22362
22363 /* Override any GCC internal prototype to avoid an error.
22364 Use char because int might match the return type of a GCC
22365 builtin and then its argument prototype would still apply. */
22366 #ifdef __cplusplus
22367 extern "C"
22368 #endif
22369 char clock_gettime ();
22370 int
22371 main ()
22372 {
22373 return clock_gettime ();
22374 ;
22375 return 0;
22376 }
22377 _ACEOF
22378 if ac_fn_c_try_link "$LINENO"; then :
22379 ac_cv_lib_rt_clock_gettime=yes
22380 else
22381 ac_cv_lib_rt_clock_gettime=no
22382 fi
22383 rm -f core conftest.err conftest.$ac_objext \
22384 conftest$ac_exeext conftest.$ac_ext
22385 LIBS=$ac_check_lib_save_LIBS
22386 fi
22387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22388 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22389 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
22390
22391
22392 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22393
22394 case "$THREADSPEC" in
22395 *-lrt*) ;;
22396 *)
22397 THREADSPEC="$THREADSPEC -lrt"
22398 THREADLIBS="$THREADLIBS -lrt"
22399 ;;
22400 esac
22401 fi
22402
22403
22404 LIBS="$save_LIBS"
22405
22406 # We can save a little space at runtime if the mutex has m_count
22407 # or __m_count. This is a nice hack for Linux.
22408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22409 /* end confdefs.h. */
22410 #include <pthread.h>
22411 int
22412 main ()
22413 {
22414
22415 extern pthread_mutex_t *mutex; int q = mutex->m_count;
22416
22417 ;
22418 return 0;
22419 }
22420 _ACEOF
22421 if ac_fn_c_try_compile "$LINENO"; then :
22422
22423 $as_echo "#define PTHREAD_MUTEX_HAVE_M_COUNT 1" >>confdefs.h
22424
22425 else
22426
22427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22428 /* end confdefs.h. */
22429 #include <pthread.h>
22430 int
22431 main ()
22432 {
22433
22434 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
22435
22436 ;
22437 return 0;
22438 }
22439 _ACEOF
22440 if ac_fn_c_try_compile "$LINENO"; then :
22441
22442 $as_echo "#define PTHREAD_MUTEX_HAVE___M_COUNT 1" >>confdefs.h
22443
22444 fi
22445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22446 fi
22447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22448 fi
22449
22450 # We require a way to get the time.
22451 time_found=no
22452 for ac_func in gettimeofday time ftime
22453 do :
22454 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22455 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22456 eval as_val=\$$as_ac_var
22457 if test "x$as_val" = x""yes; then :
22458 cat >>confdefs.h <<_ACEOF
22459 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22460 _ACEOF
22461 time_found=yes
22462 fi
22463 done
22464
22465 if test "$time_found" = no; then
22466 as_fn_error "no function found to get the time" "$LINENO" 5
22467 fi
22468
22469 for ac_func in memmove
22470 do :
22471 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22472 if test "x$ac_cv_func_memmove" = x""yes; then :
22473 cat >>confdefs.h <<_ACEOF
22474 #define HAVE_MEMMOVE 1
22475 _ACEOF
22476
22477 fi
22478 done
22479
22480
22481 # We require memcpy.
22482 memcpy_found=no
22483 for ac_func in memcpy
22484 do :
22485 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
22486 if test "x$ac_cv_func_memcpy" = x""yes; then :
22487 cat >>confdefs.h <<_ACEOF
22488 #define HAVE_MEMCPY 1
22489 _ACEOF
22490 memcpy_found=yes
22491 fi
22492 done
22493
22494 if test "$memcpy_found" = no; then
22495 as_fn_error "memcpy is required" "$LINENO" 5
22496 fi
22497 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
22498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22499 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22500 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
22501 $as_echo_n "(cached) " >&6
22502 else
22503 ac_check_lib_save_LIBS=$LIBS
22504 LIBS="-ldl $LIBS"
22505 if test x$gcc_no_link = xyes; then
22506 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22507 fi
22508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22509 /* end confdefs.h. */
22510
22511 /* Override any GCC internal prototype to avoid an error.
22512 Use char because int might match the return type of a GCC
22513 builtin and then its argument prototype would still apply. */
22514 #ifdef __cplusplus
22515 extern "C"
22516 #endif
22517 char dlopen ();
22518 int
22519 main ()
22520 {
22521 return dlopen ();
22522 ;
22523 return 0;
22524 }
22525 _ACEOF
22526 if ac_fn_c_try_link "$LINENO"; then :
22527 ac_cv_lib_dl_dlopen=yes
22528 else
22529 ac_cv_lib_dl_dlopen=no
22530 fi
22531 rm -f core conftest.err conftest.$ac_objext \
22532 conftest$ac_exeext conftest.$ac_ext
22533 LIBS=$ac_check_lib_save_LIBS
22534 fi
22535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22536 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22537 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
22538
22539
22540 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22541
22542 else
22543
22544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldld" >&5
22545 $as_echo_n "checking for dlopen in -ldld... " >&6; }
22546 if test "${ac_cv_lib_dld_dlopen+set}" = set; then :
22547 $as_echo_n "(cached) " >&6
22548 else
22549 ac_check_lib_save_LIBS=$LIBS
22550 LIBS="-ldld $LIBS"
22551 if test x$gcc_no_link = xyes; then
22552 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22553 fi
22554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22555 /* end confdefs.h. */
22556
22557 /* Override any GCC internal prototype to avoid an error.
22558 Use char because int might match the return type of a GCC
22559 builtin and then its argument prototype would still apply. */
22560 #ifdef __cplusplus
22561 extern "C"
22562 #endif
22563 char dlopen ();
22564 int
22565 main ()
22566 {
22567 return dlopen ();
22568 ;
22569 return 0;
22570 }
22571 _ACEOF
22572 if ac_fn_c_try_link "$LINENO"; then :
22573 ac_cv_lib_dld_dlopen=yes
22574 else
22575 ac_cv_lib_dld_dlopen=no
22576 fi
22577 rm -f core conftest.err conftest.$ac_objext \
22578 conftest$ac_exeext conftest.$ac_ext
22579 LIBS=$ac_check_lib_save_LIBS
22580 fi
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dlopen" >&5
22582 $as_echo "$ac_cv_lib_dld_dlopen" >&6; }
22583 if test "x$ac_cv_lib_dld_dlopen" = x""yes; then :
22584
22585
22586 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22587
22588 fi
22589
22590 fi
22591
22592
22593 # Some library-finding code we stole from Tcl.
22594 #--------------------------------------------------------------------
22595 # Check for the existence of the -lsocket and -lnsl libraries.
22596 # The order here is important, so that they end up in the right
22597 # order in the command line generated by make. Here are some
22598 # special considerations:
22599 # 1. Use "connect" and "accept" to check for -lsocket, and
22600 # "gethostbyname" to check for -lnsl.
22601 # 2. Use each function name only once: can't redo a check because
22602 # autoconf caches the results of the last check and won't redo it.
22603 # 3. Use -lnsl and -lsocket only if they supply procedures that
22604 # aren't already present in the normal libraries. This is because
22605 # IRIX 5.2 has libraries, but they aren't needed and they're
22606 # bogus: they goof up name resolution if used.
22607 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
22608 # To get around this problem, check for both libraries together
22609 # if -lsocket doesn't work by itself.
22610 #--------------------------------------------------------------------
22611
22612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
22613 $as_echo_n "checking for socket libraries... " >&6; }
22614 if test "${gcj_cv_lib_sockets+set}" = set; then :
22615 $as_echo_n "(cached) " >&6
22616 else
22617 gcj_cv_lib_sockets=
22618 gcj_checkBoth=0
22619 unset ac_cv_func_connect
22620 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
22621 if test "x$ac_cv_func_connect" = x""yes; then :
22622 gcj_checkSocket=0
22623 else
22624 gcj_checkSocket=1
22625 fi
22626
22627 if test "$gcj_checkSocket" = 1; then
22628 unset ac_cv_func_connect
22629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
22630 $as_echo_n "checking for main in -lsocket... " >&6; }
22631 if test "${ac_cv_lib_socket_main+set}" = set; then :
22632 $as_echo_n "(cached) " >&6
22633 else
22634 ac_check_lib_save_LIBS=$LIBS
22635 LIBS="-lsocket $LIBS"
22636 if test x$gcc_no_link = xyes; then
22637 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22638 fi
22639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22640 /* end confdefs.h. */
22641
22642
22643 int
22644 main ()
22645 {
22646 return main ();
22647 ;
22648 return 0;
22649 }
22650 _ACEOF
22651 if ac_fn_c_try_link "$LINENO"; then :
22652 ac_cv_lib_socket_main=yes
22653 else
22654 ac_cv_lib_socket_main=no
22655 fi
22656 rm -f core conftest.err conftest.$ac_objext \
22657 conftest$ac_exeext conftest.$ac_ext
22658 LIBS=$ac_check_lib_save_LIBS
22659 fi
22660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
22661 $as_echo "$ac_cv_lib_socket_main" >&6; }
22662 if test "x$ac_cv_lib_socket_main" = x""yes; then :
22663 gcj_cv_lib_sockets="-lsocket"
22664 else
22665 gcj_checkBoth=1
22666 fi
22667
22668 fi
22669 if test "$gcj_checkBoth" = 1; then
22670 gcj_oldLibs=$LIBS
22671 LIBS="$LIBS -lsocket -lnsl"
22672 unset ac_cv_func_accept
22673 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
22674 if test "x$ac_cv_func_accept" = x""yes; then :
22675 gcj_checkNsl=0
22676 gcj_cv_lib_sockets="-lsocket -lnsl"
22677 fi
22678
22679 unset ac_cv_func_accept
22680 LIBS=$gcj_oldLibs
22681 fi
22682 unset ac_cv_func_gethostbyname
22683 gcj_oldLibs=$LIBS
22684 LIBS="$LIBS $gcj_cv_lib_sockets"
22685 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22686 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
22687
22688 else
22689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
22690 $as_echo_n "checking for main in -lnsl... " >&6; }
22691 if test "${ac_cv_lib_nsl_main+set}" = set; then :
22692 $as_echo_n "(cached) " >&6
22693 else
22694 ac_check_lib_save_LIBS=$LIBS
22695 LIBS="-lnsl $LIBS"
22696 if test x$gcc_no_link = xyes; then
22697 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22698 fi
22699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22700 /* end confdefs.h. */
22701
22702
22703 int
22704 main ()
22705 {
22706 return main ();
22707 ;
22708 return 0;
22709 }
22710 _ACEOF
22711 if ac_fn_c_try_link "$LINENO"; then :
22712 ac_cv_lib_nsl_main=yes
22713 else
22714 ac_cv_lib_nsl_main=no
22715 fi
22716 rm -f core conftest.err conftest.$ac_objext \
22717 conftest$ac_exeext conftest.$ac_ext
22718 LIBS=$ac_check_lib_save_LIBS
22719 fi
22720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
22721 $as_echo "$ac_cv_lib_nsl_main" >&6; }
22722 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
22723 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
22724 fi
22725
22726 fi
22727
22728 unset ac_cv_func_gethostbyname
22729 LIBS=$gcj_oldLIBS
22730
22731 fi
22732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcj_cv_lib_sockets" >&5
22733 $as_echo "$gcj_cv_lib_sockets" >&6; }
22734 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
22735
22736 if test "$with_system_zlib" = yes; then
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
22738 $as_echo_n "checking for deflate in -lz... " >&6; }
22739 if test "${ac_cv_lib_z_deflate+set}" = set; then :
22740 $as_echo_n "(cached) " >&6
22741 else
22742 ac_check_lib_save_LIBS=$LIBS
22743 LIBS="-lz $LIBS"
22744 if test x$gcc_no_link = xyes; then
22745 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22746 fi
22747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22748 /* end confdefs.h. */
22749
22750 /* Override any GCC internal prototype to avoid an error.
22751 Use char because int might match the return type of a GCC
22752 builtin and then its argument prototype would still apply. */
22753 #ifdef __cplusplus
22754 extern "C"
22755 #endif
22756 char deflate ();
22757 int
22758 main ()
22759 {
22760 return deflate ();
22761 ;
22762 return 0;
22763 }
22764 _ACEOF
22765 if ac_fn_c_try_link "$LINENO"; then :
22766 ac_cv_lib_z_deflate=yes
22767 else
22768 ac_cv_lib_z_deflate=no
22769 fi
22770 rm -f core conftest.err conftest.$ac_objext \
22771 conftest$ac_exeext conftest.$ac_ext
22772 LIBS=$ac_check_lib_save_LIBS
22773 fi
22774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
22775 $as_echo "$ac_cv_lib_z_deflate" >&6; }
22776 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
22777 ZLIBSPEC=-lz
22778 else
22779 ZLIBSPEC=
22780 fi
22781
22782 fi
22783
22784 # Test for Gtk stuff, if asked for.
22785 if test "$use_gtk_awt" = yes; then
22786
22787 succeeded=no
22788
22789 if test -z "$PKG_CONFIG"; then
22790 # Extract the first word of "pkg-config", so it can be a program name with args.
22791 set dummy pkg-config; ac_word=$2
22792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22793 $as_echo_n "checking for $ac_word... " >&6; }
22794 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22795 $as_echo_n "(cached) " >&6
22796 else
22797 case $PKG_CONFIG in
22798 [\\/]* | ?:[\\/]*)
22799 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22800 ;;
22801 *)
22802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22803 for as_dir in $PATH
22804 do
22805 IFS=$as_save_IFS
22806 test -z "$as_dir" && as_dir=.
22807 for ac_exec_ext in '' $ac_executable_extensions; do
22808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22809 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22811 break 2
22812 fi
22813 done
22814 done
22815 IFS=$as_save_IFS
22816
22817 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22818 ;;
22819 esac
22820 fi
22821 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22822 if test -n "$PKG_CONFIG"; then
22823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22824 $as_echo "$PKG_CONFIG" >&6; }
22825 else
22826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22827 $as_echo "no" >&6; }
22828 fi
22829
22830
22831 fi
22832
22833 if test "$PKG_CONFIG" = "no" ; then
22834 echo "*** The pkg-config script could not be found. Make sure it is"
22835 echo "*** in your path, or set the PKG_CONFIG environment variable"
22836 echo "*** to the full path to pkg-config."
22837 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22838 else
22839 PKG_CONFIG_MIN_VERSION=0.9.0
22840 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.4" >&5
22842 $as_echo_n "checking for gtk+-2.0 >= 2.4... " >&6; }
22843
22844 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
22845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22846 $as_echo "yes" >&6; }
22847 succeeded=yes
22848
22849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
22850 $as_echo_n "checking GTK_CFLAGS... " >&6; }
22851 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
22852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
22853 $as_echo "$GTK_CFLAGS" >&6; }
22854
22855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
22856 $as_echo_n "checking GTK_LIBS... " >&6; }
22857 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
22858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
22859 $as_echo "$GTK_LIBS" >&6; }
22860 else
22861 GTK_CFLAGS=""
22862 GTK_LIBS=""
22863 ## If we have a custom action on failure, don't print errors, but
22864 ## do set a variable so people can do so.
22865 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
22866 echo $GTK_PKG_ERRORS
22867 fi
22868
22869
22870
22871 else
22872 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22873 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22874 fi
22875 fi
22876
22877 if test $succeeded = yes; then
22878 :
22879 else
22880 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
22881 fi
22882
22883
22884
22885
22886
22887 succeeded=no
22888
22889 if test -z "$PKG_CONFIG"; then
22890 # Extract the first word of "pkg-config", so it can be a program name with args.
22891 set dummy pkg-config; ac_word=$2
22892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22893 $as_echo_n "checking for $ac_word... " >&6; }
22894 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22895 $as_echo_n "(cached) " >&6
22896 else
22897 case $PKG_CONFIG in
22898 [\\/]* | ?:[\\/]*)
22899 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22900 ;;
22901 *)
22902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22903 for as_dir in $PATH
22904 do
22905 IFS=$as_save_IFS
22906 test -z "$as_dir" && as_dir=.
22907 for ac_exec_ext in '' $ac_executable_extensions; do
22908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22909 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22911 break 2
22912 fi
22913 done
22914 done
22915 IFS=$as_save_IFS
22916
22917 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22918 ;;
22919 esac
22920 fi
22921 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22922 if test -n "$PKG_CONFIG"; then
22923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22924 $as_echo "$PKG_CONFIG" >&6; }
22925 else
22926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22927 $as_echo "no" >&6; }
22928 fi
22929
22930
22931 fi
22932
22933 if test "$PKG_CONFIG" = "no" ; then
22934 echo "*** The pkg-config script could not be found. Make sure it is"
22935 echo "*** in your path, or set the PKG_CONFIG environment variable"
22936 echo "*** to the full path to pkg-config."
22937 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22938 else
22939 PKG_CONFIG_MIN_VERSION=0.9.0
22940 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
22942 $as_echo_n "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... " >&6; }
22943
22944 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
22945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22946 $as_echo "yes" >&6; }
22947 succeeded=yes
22948
22949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
22950 $as_echo_n "checking GLIB_CFLAGS... " >&6; }
22951 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
22953 $as_echo "$GLIB_CFLAGS" >&6; }
22954
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
22956 $as_echo_n "checking GLIB_LIBS... " >&6; }
22957 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
22959 $as_echo "$GLIB_LIBS" >&6; }
22960 else
22961 GLIB_CFLAGS=""
22962 GLIB_LIBS=""
22963 ## If we have a custom action on failure, don't print errors, but
22964 ## do set a variable so people can do so.
22965 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22966 echo $GLIB_PKG_ERRORS
22967 fi
22968
22969
22970
22971 else
22972 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22973 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22974 fi
22975 fi
22976
22977 if test $succeeded = yes; then
22978 :
22979 else
22980 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
22981 fi
22982
22983
22984
22985
22986
22987 succeeded=no
22988
22989 if test -z "$PKG_CONFIG"; then
22990 # Extract the first word of "pkg-config", so it can be a program name with args.
22991 set dummy pkg-config; ac_word=$2
22992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22993 $as_echo_n "checking for $ac_word... " >&6; }
22994 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22995 $as_echo_n "(cached) " >&6
22996 else
22997 case $PKG_CONFIG in
22998 [\\/]* | ?:[\\/]*)
22999 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23000 ;;
23001 *)
23002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23003 for as_dir in $PATH
23004 do
23005 IFS=$as_save_IFS
23006 test -z "$as_dir" && as_dir=.
23007 for ac_exec_ext in '' $ac_executable_extensions; do
23008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23009 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23011 break 2
23012 fi
23013 done
23014 done
23015 IFS=$as_save_IFS
23016
23017 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23018 ;;
23019 esac
23020 fi
23021 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23022 if test -n "$PKG_CONFIG"; then
23023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
23024 $as_echo "$PKG_CONFIG" >&6; }
23025 else
23026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23027 $as_echo "no" >&6; }
23028 fi
23029
23030
23031 fi
23032
23033 if test "$PKG_CONFIG" = "no" ; then
23034 echo "*** The pkg-config script could not be found. Make sure it is"
23035 echo "*** in your path, or set the PKG_CONFIG environment variable"
23036 echo "*** to the full path to pkg-config."
23037 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23038 else
23039 PKG_CONFIG_MIN_VERSION=0.9.0
23040 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libart-2.0 >= 2.1" >&5
23042 $as_echo_n "checking for libart-2.0 >= 2.1... " >&6; }
23043
23044 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
23045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23046 $as_echo "yes" >&6; }
23047 succeeded=yes
23048
23049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_CFLAGS" >&5
23050 $as_echo_n "checking LIBART_CFLAGS... " >&6; }
23051 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
23052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_CFLAGS" >&5
23053 $as_echo "$LIBART_CFLAGS" >&6; }
23054
23055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_LIBS" >&5
23056 $as_echo_n "checking LIBART_LIBS... " >&6; }
23057 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
23058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_LIBS" >&5
23059 $as_echo "$LIBART_LIBS" >&6; }
23060 else
23061 LIBART_CFLAGS=""
23062 LIBART_LIBS=""
23063 ## If we have a custom action on failure, don't print errors, but
23064 ## do set a variable so people can do so.
23065 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
23066 echo $LIBART_PKG_ERRORS
23067 fi
23068
23069
23070
23071 else
23072 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23073 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23074 fi
23075 fi
23076
23077 if test $succeeded = yes; then
23078 :
23079 else
23080 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
23081 fi
23082
23083
23084
23085
23086 # We require the XTest Extension to support java.awt.Robot.
23087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
23088 $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
23089 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
23090 $as_echo_n "(cached) " >&6
23091 else
23092 ac_check_lib_save_LIBS=$LIBS
23093 LIBS="-lXtst ${X_LIBS} $LIBS"
23094 if test x$gcc_no_link = xyes; then
23095 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23096 fi
23097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23098 /* end confdefs.h. */
23099
23100 /* Override any GCC internal prototype to avoid an error.
23101 Use char because int might match the return type of a GCC
23102 builtin and then its argument prototype would still apply. */
23103 #ifdef __cplusplus
23104 extern "C"
23105 #endif
23106 char XTestQueryExtension ();
23107 int
23108 main ()
23109 {
23110 return XTestQueryExtension ();
23111 ;
23112 return 0;
23113 }
23114 _ACEOF
23115 if ac_fn_c_try_link "$LINENO"; then :
23116 ac_cv_lib_Xtst_XTestQueryExtension=yes
23117 else
23118 ac_cv_lib_Xtst_XTestQueryExtension=no
23119 fi
23120 rm -f core conftest.err conftest.$ac_objext \
23121 conftest$ac_exeext conftest.$ac_ext
23122 LIBS=$ac_check_lib_save_LIBS
23123 fi
23124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
23125 $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
23126 if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
23127 true
23128 else
23129 as_fn_error "libXtst not found, required by java.awt.Robot" "$LINENO" 5
23130 fi
23131
23132 fi
23133
23134 # On Solaris, and maybe other architectures, the Boehm collector
23135 # requires -ldl.
23136 if test "$GC" = boehm; then
23137 case "${host}" in
23138 *-*-darwin*)
23139 ;;
23140 *)
23141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
23142 $as_echo_n "checking for main in -ldl... " >&6; }
23143 if test "${ac_cv_lib_dl_main+set}" = set; then :
23144 $as_echo_n "(cached) " >&6
23145 else
23146 ac_check_lib_save_LIBS=$LIBS
23147 LIBS="-ldl $LIBS"
23148 if test x$gcc_no_link = xyes; then
23149 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23150 fi
23151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23152 /* end confdefs.h. */
23153
23154
23155 int
23156 main ()
23157 {
23158 return main ();
23159 ;
23160 return 0;
23161 }
23162 _ACEOF
23163 if ac_fn_c_try_link "$LINENO"; then :
23164 ac_cv_lib_dl_main=yes
23165 else
23166 ac_cv_lib_dl_main=no
23167 fi
23168 rm -f core conftest.err conftest.$ac_objext \
23169 conftest$ac_exeext conftest.$ac_ext
23170 LIBS=$ac_check_lib_save_LIBS
23171 fi
23172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
23173 $as_echo "$ac_cv_lib_dl_main" >&6; }
23174 if test "x$ac_cv_lib_dl_main" = x""yes; then :
23175 SYSTEMSPEC="$SYSTEMSPEC -ldl"
23176 fi
23177
23178 ;;
23179 esac
23180 fi
23181 fi
23182
23183 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
23184 case $build in
23185 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
23186 *) CLASSPATH_SEPARATOR=':' ;;
23187 esac
23188
23189
23190 # We must search the source tree for java.lang, since we still don't
23191 # have libgcj.jar nor java/lang/*.class
23192 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
23193 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
23194
23195 # Since some classes depend on this one, we need its source available
23196 # before we can do any GCJ compilation test :-(
23197 if test ! -f gnu/classpath/Configuration.java; then
23198 test -d gnu || mkdir gnu
23199 test -d gnu/classpath || mkdir gnu/classpath
23200 # Note that it is not crucial that all the values here be correct.
23201 sed -e "s,@prefix@,$expanded_prefix," \
23202 -e "s,@VERSION@,$VERSION," \
23203 -e "s,@LIBDEBUG@,false," \
23204 -e "s,@INIT_LOAD_LIBRARY@,false," \
23205 -e "s,@@,$LIBGCJDEBUG," \
23206 -e "s,@default_toolkit@,$TOOLKIT," \
23207 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
23208 -e "s,@GTK_CAIRO_ENABLED@,false," \
23209 -e "s,@ECJ_JAR@,," \
23210 -e "s,@WANT_NATIVE_BIG_INTEGER@,false," \
23211 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
23212 > gnu/classpath/Configuration.java
23213 # We do not want to redirect the output of the grep below to /dev/null,
23214 # but we add /dev/null to the input list so that grep will print the
23215 # filename of Configuration.java in case it finds any matches.
23216 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
23217 as_fn_error "configure.ac is missing the substitutions above" "$LINENO" 5
23218 fi
23219 fi
23220
23221
23222 if test -n "$ac_tool_prefix"; then
23223 for ac_prog in gcj
23224 do
23225 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23226 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23228 $as_echo_n "checking for $ac_word... " >&6; }
23229 if test "${ac_cv_prog_GCJ+set}" = set; then :
23230 $as_echo_n "(cached) " >&6
23231 else
23232 if test -n "$GCJ"; then
23233 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
23234 else
23235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23236 for as_dir in $PATH
23237 do
23238 IFS=$as_save_IFS
23239 test -z "$as_dir" && as_dir=.
23240 for ac_exec_ext in '' $ac_executable_extensions; do
23241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23242 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
23243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23244 break 2
23245 fi
23246 done
23247 done
23248 IFS=$as_save_IFS
23249
23250 fi
23251 fi
23252 GCJ=$ac_cv_prog_GCJ
23253 if test -n "$GCJ"; then
23254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
23255 $as_echo "$GCJ" >&6; }
23256 else
23257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23258 $as_echo "no" >&6; }
23259 fi
23260
23261
23262 test -n "$GCJ" && break
23263 done
23264 fi
23265 if test -z "$GCJ"; then
23266 ac_ct_GCJ=$GCJ
23267 for ac_prog in gcj
23268 do
23269 # Extract the first word of "$ac_prog", so it can be a program name with args.
23270 set dummy $ac_prog; ac_word=$2
23271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23272 $as_echo_n "checking for $ac_word... " >&6; }
23273 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
23274 $as_echo_n "(cached) " >&6
23275 else
23276 if test -n "$ac_ct_GCJ"; then
23277 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
23278 else
23279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23280 for as_dir in $PATH
23281 do
23282 IFS=$as_save_IFS
23283 test -z "$as_dir" && as_dir=.
23284 for ac_exec_ext in '' $ac_executable_extensions; do
23285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23286 ac_cv_prog_ac_ct_GCJ="$ac_prog"
23287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23288 break 2
23289 fi
23290 done
23291 done
23292 IFS=$as_save_IFS
23293
23294 fi
23295 fi
23296 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
23297 if test -n "$ac_ct_GCJ"; then
23298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
23299 $as_echo "$ac_ct_GCJ" >&6; }
23300 else
23301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23302 $as_echo "no" >&6; }
23303 fi
23304
23305
23306 test -n "$ac_ct_GCJ" && break
23307 done
23308
23309 if test "x$ac_ct_GCJ" = x; then
23310 GCJ="gcj"
23311 else
23312 case $cross_compiling:$ac_tool_warned in
23313 yes:)
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23316 ac_tool_warned=yes ;;
23317 esac
23318 GCJ=$ac_ct_GCJ
23319 fi
23320 fi
23321
23322 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
23323 if test "x${GCJFLAGS-unset}" = xunset; then
23324 GCJFLAGS="-g -O2"
23325 fi
23326
23327
23328 depcc="$GCJ" am_compiler_list='gcc3 gcc'
23329
23330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23331 $as_echo_n "checking dependency style of $depcc... " >&6; }
23332 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
23333 $as_echo_n "(cached) " >&6
23334 else
23335 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23336 # We make a subdir and do the tests there. Otherwise we can end up
23337 # making bogus files that we don't know about and never remove. For
23338 # instance it was reported that on HP-UX the gcc test will end up
23339 # making a dummy file named `D' -- because `-MD' means `put the output
23340 # in D'.
23341 mkdir conftest.dir
23342 # Copy depcomp to subdir because otherwise we won't find it if we're
23343 # using a relative directory.
23344 cp "$am_depcomp" conftest.dir
23345 cd conftest.dir
23346 # We will build objects and dependencies in a subdirectory because
23347 # it helps to detect inapplicable dependency modes. For instance
23348 # both Tru64's cc and ICC support -MD to output dependencies as a
23349 # side effect of compilation, but ICC will put the dependencies in
23350 # the current directory while Tru64 will put them in the object
23351 # directory.
23352 mkdir sub
23353
23354 am_cv_GCJ_dependencies_compiler_type=none
23355 if test "$am_compiler_list" = ""; then
23356 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23357 fi
23358 am__universal=false
23359
23360
23361 for depmode in $am_compiler_list; do
23362 # Setup a source with many dependencies, because some compilers
23363 # like to wrap large dependency lists on column 80 (with \), and
23364 # we should not choose a depcomp mode which is confused by this.
23365 #
23366 # We need to recreate these files for each test, as the compiler may
23367 # overwrite some of them when testing with obscure command lines.
23368 # This happens at least with the AIX C compiler.
23369 : > sub/conftest.c
23370 for i in 1 2 3 4 5 6; do
23371 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23372 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23373 # Solaris 8's {/usr,}/bin/sh.
23374 touch sub/conftst$i.h
23375 done
23376 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23377
23378 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23379 # mode. It turns out that the SunPro C++ compiler does not properly
23380 # handle `-M -o', and we need to detect this. Also, some Intel
23381 # versions had trouble with output in subdirs
23382 am__obj=sub/conftest.${OBJEXT-o}
23383 am__minus_obj="-o $am__obj"
23384 case $depmode in
23385 gcc)
23386 # This depmode causes a compiler race in universal mode.
23387 test "$am__universal" = false || continue
23388 ;;
23389 nosideeffect)
23390 # after this tag, mechanisms are not by side-effect, so they'll
23391 # only be used when explicitly requested
23392 if test "x$enable_dependency_tracking" = xyes; then
23393 continue
23394 else
23395 break
23396 fi
23397 ;;
23398 msvisualcpp | msvcmsys)
23399 # This compiler won't grok `-c -o', but also, the minuso test has
23400 # not run yet. These depmodes are late enough in the game, and
23401 # so weak that their functioning should not be impacted.
23402 am__obj=conftest.${OBJEXT-o}
23403 am__minus_obj=
23404 ;;
23405 none) break ;;
23406 esac
23407 if depmode=$depmode \
23408 source=sub/conftest.c object=$am__obj \
23409 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23410 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23411 >/dev/null 2>conftest.err &&
23412 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23413 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23414 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23415 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23416 # icc doesn't choke on unknown options, it will just issue warnings
23417 # or remarks (even with -Werror). So we grep stderr for any message
23418 # that says an option was ignored or not supported.
23419 # When given -MP, icc 7.0 and 7.1 complain thusly:
23420 # icc: Command line warning: ignoring option '-M'; no argument required
23421 # The diagnosis changed in icc 8.0:
23422 # icc: Command line remark: option '-MP' not supported
23423 if (grep 'ignoring option' conftest.err ||
23424 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23425 am_cv_GCJ_dependencies_compiler_type=$depmode
23426 break
23427 fi
23428 fi
23429 done
23430
23431 cd ..
23432 rm -rf conftest.dir
23433 else
23434 am_cv_GCJ_dependencies_compiler_type=none
23435 fi
23436
23437 fi
23438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
23439 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
23440 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
23441
23442 if
23443 test "x$enable_dependency_tracking" != xno \
23444 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
23445 am__fastdepGCJ_TRUE=
23446 am__fastdepGCJ_FALSE='#'
23447 else
23448 am__fastdepGCJ_TRUE='#'
23449 am__fastdepGCJ_FALSE=
23450 fi
23451
23452
23453
23454
23455 # Now remove it.
23456 rm -f gnu/classpath/Configuration.java
23457
23458 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
23459
23460 # The cast to long int works around a bug in the HP C Compiler
23461 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23462 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23463 # This bug is HP SR number 8606223364.
23464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
23465 $as_echo_n "checking size of void *... " >&6; }
23466 if test "${ac_cv_sizeof_void_p+set}" = set; then :
23467 $as_echo_n "(cached) " >&6
23468 else
23469 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
23470
23471 else
23472 if test "$ac_cv_type_void_p" = yes; then
23473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23475 { as_fn_set_status 77
23476 as_fn_error "cannot compute sizeof (void *)
23477 See \`config.log' for more details." "$LINENO" 5; }; }
23478 else
23479 ac_cv_sizeof_void_p=0
23480 fi
23481 fi
23482
23483 fi
23484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
23485 $as_echo "$ac_cv_sizeof_void_p" >&6; }
23486
23487
23488
23489 cat >>confdefs.h <<_ACEOF
23490 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23491 _ACEOF
23492
23493
23494
23495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23496 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23497 if test "${ac_cv_c_bigendian+set}" = set; then :
23498 $as_echo_n "(cached) " >&6
23499 else
23500 ac_cv_c_bigendian=unknown
23501 # See if we're dealing with a universal compiler.
23502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23503 /* end confdefs.h. */
23504 #ifndef __APPLE_CC__
23505 not a universal capable compiler
23506 #endif
23507 typedef int dummy;
23508
23509 _ACEOF
23510 if ac_fn_c_try_compile "$LINENO"; then :
23511
23512 # Check for potential -arch flags. It is not universal unless
23513 # there are at least two -arch flags with different values.
23514 ac_arch=
23515 ac_prev=
23516 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23517 if test -n "$ac_prev"; then
23518 case $ac_word in
23519 i?86 | x86_64 | ppc | ppc64)
23520 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23521 ac_arch=$ac_word
23522 else
23523 ac_cv_c_bigendian=universal
23524 break
23525 fi
23526 ;;
23527 esac
23528 ac_prev=
23529 elif test "x$ac_word" = "x-arch"; then
23530 ac_prev=arch
23531 fi
23532 done
23533 fi
23534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23535 if test $ac_cv_c_bigendian = unknown; then
23536 # See if sys/param.h defines the BYTE_ORDER macro.
23537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23538 /* end confdefs.h. */
23539 #include <sys/types.h>
23540 #include <sys/param.h>
23541
23542 int
23543 main ()
23544 {
23545 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23546 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23547 && LITTLE_ENDIAN)
23548 bogus endian macros
23549 #endif
23550
23551 ;
23552 return 0;
23553 }
23554 _ACEOF
23555 if ac_fn_c_try_compile "$LINENO"; then :
23556 # It does; now see whether it defined to BIG_ENDIAN or not.
23557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23558 /* end confdefs.h. */
23559 #include <sys/types.h>
23560 #include <sys/param.h>
23561
23562 int
23563 main ()
23564 {
23565 #if BYTE_ORDER != BIG_ENDIAN
23566 not big endian
23567 #endif
23568
23569 ;
23570 return 0;
23571 }
23572 _ACEOF
23573 if ac_fn_c_try_compile "$LINENO"; then :
23574 ac_cv_c_bigendian=yes
23575 else
23576 ac_cv_c_bigendian=no
23577 fi
23578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23579 fi
23580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23581 fi
23582 if test $ac_cv_c_bigendian = unknown; then
23583 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23585 /* end confdefs.h. */
23586 #include <limits.h>
23587
23588 int
23589 main ()
23590 {
23591 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23592 bogus endian macros
23593 #endif
23594
23595 ;
23596 return 0;
23597 }
23598 _ACEOF
23599 if ac_fn_c_try_compile "$LINENO"; then :
23600 # It does; now see whether it defined to _BIG_ENDIAN or not.
23601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23602 /* end confdefs.h. */
23603 #include <limits.h>
23604
23605 int
23606 main ()
23607 {
23608 #ifndef _BIG_ENDIAN
23609 not big endian
23610 #endif
23611
23612 ;
23613 return 0;
23614 }
23615 _ACEOF
23616 if ac_fn_c_try_compile "$LINENO"; then :
23617 ac_cv_c_bigendian=yes
23618 else
23619 ac_cv_c_bigendian=no
23620 fi
23621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23622 fi
23623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23624 fi
23625 if test $ac_cv_c_bigendian = unknown; then
23626 # Compile a test program.
23627 if test "$cross_compiling" = yes; then :
23628 # Try to guess by grepping values from an object file.
23629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23630 /* end confdefs.h. */
23631 short int ascii_mm[] =
23632 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23633 short int ascii_ii[] =
23634 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23635 int use_ascii (int i) {
23636 return ascii_mm[i] + ascii_ii[i];
23637 }
23638 short int ebcdic_ii[] =
23639 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23640 short int ebcdic_mm[] =
23641 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23642 int use_ebcdic (int i) {
23643 return ebcdic_mm[i] + ebcdic_ii[i];
23644 }
23645 extern int foo;
23646
23647 int
23648 main ()
23649 {
23650 return use_ascii (foo) == use_ebcdic (foo);
23651 ;
23652 return 0;
23653 }
23654 _ACEOF
23655 if ac_fn_c_try_compile "$LINENO"; then :
23656 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23657 ac_cv_c_bigendian=yes
23658 fi
23659 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23660 if test "$ac_cv_c_bigendian" = unknown; then
23661 ac_cv_c_bigendian=no
23662 else
23663 # finding both strings is unlikely to happen, but who knows?
23664 ac_cv_c_bigendian=unknown
23665 fi
23666 fi
23667 fi
23668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23669 else
23670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23671 /* end confdefs.h. */
23672 $ac_includes_default
23673 int
23674 main ()
23675 {
23676
23677 /* Are we little or big endian? From Harbison&Steele. */
23678 union
23679 {
23680 long int l;
23681 char c[sizeof (long int)];
23682 } u;
23683 u.l = 1;
23684 return u.c[sizeof (long int) - 1] == 1;
23685
23686 ;
23687 return 0;
23688 }
23689 _ACEOF
23690 if ac_fn_c_try_run "$LINENO"; then :
23691 ac_cv_c_bigendian=no
23692 else
23693 ac_cv_c_bigendian=yes
23694 fi
23695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23696 conftest.$ac_objext conftest.beam conftest.$ac_ext
23697 fi
23698
23699 fi
23700 fi
23701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23702 $as_echo "$ac_cv_c_bigendian" >&6; }
23703 case $ac_cv_c_bigendian in #(
23704 yes)
23705 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23706 ;; #(
23707 no)
23708 ;; #(
23709 universal)
23710
23711 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23712
23713 ;; #(
23714 *)
23715 as_fn_error "unknown endianness
23716 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23717 esac
23718
23719
23720 ZLIBS=
23721 SYS_ZLIBS=
23722 ZINCS=
23723
23724 if test -z "$ZLIBSPEC"; then
23725 # Use zlib from the GCC tree.
23726 ZINCS='-I$(top_srcdir)/../zlib'
23727 ZLIBS=../zlib/libzgcj_convenience.la
23728 else
23729 # System's zlib.
23730 SYS_ZLIBS="$ZLIBSPEC"
23731 fi
23732
23733
23734
23735
23736
23737
23738
23739
23740
23741
23742 if test "$NATIVE" = yes; then
23743 NATIVE_TRUE=
23744 NATIVE_FALSE='#'
23745 else
23746 NATIVE_TRUE='#'
23747 NATIVE_FALSE=
23748 fi
23749
23750 if test "$enable_shared" = yes; then
23751 ENABLE_SHARED_TRUE=
23752 ENABLE_SHARED_FALSE='#'
23753 else
23754 ENABLE_SHARED_TRUE='#'
23755 ENABLE_SHARED_FALSE=
23756 fi
23757
23758 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
23759 NEEDS_DATA_START_TRUE=
23760 NEEDS_DATA_START_FALSE='#'
23761 else
23762 NEEDS_DATA_START_TRUE='#'
23763 NEEDS_DATA_START_FALSE=
23764 fi
23765
23766 if test -z "${with_multisubdir}"; then
23767 INSTALL_BINARIES_TRUE=
23768 INSTALL_BINARIES_FALSE='#'
23769 else
23770 INSTALL_BINARIES_TRUE='#'
23771 INSTALL_BINARIES_FALSE=
23772 fi
23773
23774
23775
23776 # Process the option "--enable-version-specific-runtime-libs"
23777 # Calculate toolexeclibdir
23778 case ${version_specific_libs} in
23779 yes)
23780 # Need the gcc compiler version to know where to install libraries
23781 # and header files if --enable-version-specific-runtime-libs option
23782 # is selected.
23783 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
23784 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
23785 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
23786 toolexeclibdir=$toolexecmainlibdir
23787 ;;
23788 no)
23789 if test -n "$with_cross_host" &&
23790 test x"$with_cross_host" != x"no"; then
23791 # Install a library built with a cross compiler in tooldir, not libdir.
23792 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
23793 toolexecmainlibdir='$(toolexecdir)/lib'
23794 else
23795 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
23796 toolexecmainlibdir='$(libdir)'
23797 fi
23798 multi_os_directory=`$CC -print-multi-os-directory`
23799 case $multi_os_directory in
23800 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
23801 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
23802 esac
23803 ;;
23804 esac
23805
23806
23807
23808
23809 # Determine gcj and libgcj version number.
23810 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
23811 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
23812 GCJVERSION=$gcjversion
23813
23814
23815 cat >>confdefs.h <<_ACEOF
23816 #define GCJVERSION "$GCJVERSION"
23817 _ACEOF
23818
23819
23820 # Determine where the standard .db file and GNU Classpath JNI
23821 # libraries are found.
23822 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
23823 multi_os_directory=`$CC -print-multi-os-directory`
23824 case $multi_os_directory in
23825 .)
23826 dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
23827 ;;
23828 *)
23829 dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
23830 ;;
23831 esac
23832
23833
23834
23835
23836 $as_echo "#define JV_VERSION \"1.5.0\"" >>confdefs.h
23837
23838
23839 $as_echo "#define JV_API_VERSION \"1.5\"" >>confdefs.h
23840
23841
23842
23843 case "${with_gxx_include_dir}" in
23844 yes)
23845 as_fn_error "--with-gxx-include-dir=[dir] requires a directory" "$LINENO" 5
23846 ;;
23847 no | "")
23848 case "${enable_version_specific_runtime_libs}" in
23849 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
23850 *)
23851 libstdcxx_incdir='c++/$(gcc_version)'
23852 gxx_include_dir='include/$(libstdcxx_incdir)'
23853 if test -n "$with_cross_host" &&
23854 test x"$with_cross_host" != x"no"; then
23855 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
23856 else
23857 gxx_include_dir='${prefix}/'"$gxx_include_dir"
23858 fi;;
23859 esac ;;
23860 *) gxx_include_dir=${with_gxx_include_dir} ;;
23861 esac
23862
23863
23864
23865
23866 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
23867 # On that system, sys/ioctl.h will not include sys/filio.h unless
23868 # BSD_COMP is defined; just including sys/filio.h is simpler.
23869 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
23870 # for now. If you change this, you also must update natFile.cc.
23871 for ac_header in unistd.h sys/time.h sys/types.h fcntl.h \
23872 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
23873 sys/socket.h netinet/in.h arpa/inet.h netdb.h \
23874 pwd.h sys/config.h stdint.h langinfo.h locale.h \
23875 dirent.h sys/rw_lock.h magic.h ifaddrs.h
23876 do :
23877 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23878 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23879 eval as_val=\$$as_ac_Header
23880 if test "x$as_val" = x""yes; then :
23881 cat >>confdefs.h <<_ACEOF
23882 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23883 _ACEOF
23884
23885 fi
23886
23887 done
23888
23889
23890 # sys/socket.h is a prerequisite for net/if.h on Solaris.
23891 for ac_header in net/if.h
23892 do :
23893 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
23894 #ifdef HAVE_SYS_SOCKET_H
23895 #include <sys/socket.h>
23896 #endif
23897
23898 "
23899 if test "x$ac_cv_header_net_if_h" = x""yes; then :
23900 cat >>confdefs.h <<_ACEOF
23901 #define HAVE_NET_IF_H 1
23902 _ACEOF
23903
23904 fi
23905
23906 done
23907
23908
23909 for ac_header in inttypes.h
23910 do :
23911 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
23912 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
23913 cat >>confdefs.h <<_ACEOF
23914 #define HAVE_INTTYPES_H 1
23915 _ACEOF
23916
23917
23918 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
23919
23920
23921 $as_echo "#define JV_HAVE_INTTYPES_H 1" >>confdefs.h
23922
23923
23924 fi
23925
23926 done
23927
23928
23929 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23930 if test "x$ac_cv_type_ssize_t" = x""yes; then :
23931
23932 else
23933
23934 cat >>confdefs.h <<_ACEOF
23935 #define ssize_t int
23936 _ACEOF
23937
23938 fi
23939
23940 ac_fn_c_check_type "$LINENO" "magic_t" "ac_cv_type_magic_t" "
23941 #ifdef HAVE_MAGIC_H
23942 #include <magic.h>
23943 #endif
23944 "
23945 if test "x$ac_cv_type_magic_t" = x""yes; then :
23946
23947
23948 $as_echo "#define HAVE_MAGIC_T 1" >>confdefs.h
23949
23950 fi
23951
23952
23953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5
23954 $as_echo_n "checking for in_addr_t... " >&6; }
23955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23956 /* end confdefs.h. */
23957 #include <sys/types.h>
23958 #if STDC_HEADERS
23959 #include <stdlib.h>
23960 #include <stddef.h>
23961 #endif
23962 #if HAVE_NETINET_IN_H
23963 #include <netinet/in.h>
23964 #endif
23965 int
23966 main ()
23967 {
23968 in_addr_t foo;
23969 ;
23970 return 0;
23971 }
23972 _ACEOF
23973 if ac_fn_c_try_compile "$LINENO"; then :
23974
23975 $as_echo "#define HAVE_IN_ADDR_T 1" >>confdefs.h
23976
23977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23978 $as_echo "yes" >&6; }
23979 else
23980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23981 $as_echo "no" >&6; }
23982 fi
23983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23984
23985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ip_mreq is in netinet/in.h" >&5
23986 $as_echo_n "checking whether struct ip_mreq is in netinet/in.h... " >&6; }
23987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23988 /* end confdefs.h. */
23989 #include <netinet/in.h>
23990 int
23991 main ()
23992 {
23993 struct ip_mreq mreq;
23994 ;
23995 return 0;
23996 }
23997 _ACEOF
23998 if ac_fn_c_try_compile "$LINENO"; then :
23999
24000 $as_echo "#define HAVE_STRUCT_IP_MREQ 1" >>confdefs.h
24001
24002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24003 $as_echo "yes" >&6; }
24004 else
24005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24006 $as_echo "no" >&6; }
24007 fi
24008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24009
24010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ipv6_mreq is in netinet/in.h" >&5
24011 $as_echo_n "checking whether struct ipv6_mreq is in netinet/in.h... " >&6; }
24012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24013 /* end confdefs.h. */
24014 #include <netinet/in.h>
24015 int
24016 main ()
24017 {
24018 struct ipv6_mreq mreq6;
24019 ;
24020 return 0;
24021 }
24022 _ACEOF
24023 if ac_fn_c_try_compile "$LINENO"; then :
24024
24025 $as_echo "#define HAVE_STRUCT_IPV6_MREQ 1" >>confdefs.h
24026
24027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24028 $as_echo "yes" >&6; }
24029 else
24030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24031 $as_echo "no" >&6; }
24032 fi
24033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24034
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
24036 $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
24037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24038 /* end confdefs.h. */
24039 #include <netinet/in.h>
24040 int
24041 main ()
24042 {
24043 struct sockaddr_in6 addr6;
24044 ;
24045 return 0;
24046 }
24047 _ACEOF
24048 if ac_fn_c_try_compile "$LINENO"; then :
24049
24050 $as_echo "#define HAVE_INET6 1" >>confdefs.h
24051
24052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24053 $as_echo "yes" >&6; }
24054 else
24055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24056 $as_echo "no" >&6; }
24057 fi
24058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24059
24060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
24061 $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
24062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24063 /* end confdefs.h. */
24064 #define _POSIX_PII_SOCKET
24065 #include <sys/types.h>
24066 #include <sys/socket.h>
24067 int
24068 main ()
24069 {
24070 socklen_t x = 5;
24071 ;
24072 return 0;
24073 }
24074 _ACEOF
24075 if ac_fn_c_try_compile "$LINENO"; then :
24076
24077 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
24078
24079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24080 $as_echo "yes" >&6; }
24081 else
24082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24083 $as_echo "no" >&6; }
24084 fi
24085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24086
24087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
24088 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
24089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24090 /* end confdefs.h. */
24091 #include <time.h>
24092 int
24093 main ()
24094 {
24095 struct tm tim; tim.tm_gmtoff = 0;
24096 ;
24097 return 0;
24098 }
24099 _ACEOF
24100 if ac_fn_c_try_compile "$LINENO"; then :
24101
24102 $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
24103
24104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24105 $as_echo "yes" >&6; }
24106 else
24107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24108 $as_echo "no" >&6; }
24109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
24110 $as_echo_n "checking for global timezone variable... " >&6; }
24111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24112 /* end confdefs.h. */
24113 #include <time.h>
24114 int
24115 main ()
24116 {
24117 void i(){long z2 = 2*timezone;}
24118 ;
24119 return 0;
24120 }
24121 _ACEOF
24122 if ac_fn_c_try_compile "$LINENO"; then :
24123
24124 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
24125
24126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24127 $as_echo "yes" >&6; }
24128 else
24129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24130 $as_echo "no" >&6; }
24131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
24132 $as_echo_n "checking for global _timezone variable... " >&6; }
24133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24134 /* end confdefs.h. */
24135 #include <time.h>
24136 int
24137 main ()
24138 {
24139 long z2 = _timezone;
24140 ;
24141 return 0;
24142 }
24143 _ACEOF
24144 if ac_fn_c_try_compile "$LINENO"; then :
24145
24146 $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
24147
24148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24149 $as_echo "yes" >&6; }
24150 else
24151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24152 $as_echo "no" >&6; }
24153 fi
24154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24155 fi
24156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24157 fi
24158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24159
24160 for ac_prog in perl
24161 do
24162 # Extract the first word of "$ac_prog", so it can be a program name with args.
24163 set dummy $ac_prog; ac_word=$2
24164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24165 $as_echo_n "checking for $ac_word... " >&6; }
24166 if test "${ac_cv_prog_PERL+set}" = set; then :
24167 $as_echo_n "(cached) " >&6
24168 else
24169 if test -n "$PERL"; then
24170 ac_cv_prog_PERL="$PERL" # Let the user override the test.
24171 else
24172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24173 for as_dir in $PATH
24174 do
24175 IFS=$as_save_IFS
24176 test -z "$as_dir" && as_dir=.
24177 for ac_exec_ext in '' $ac_executable_extensions; do
24178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24179 ac_cv_prog_PERL="$ac_prog"
24180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24181 break 2
24182 fi
24183 done
24184 done
24185 IFS=$as_save_IFS
24186
24187 fi
24188 fi
24189 PERL=$ac_cv_prog_PERL
24190 if test -n "$PERL"; then
24191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
24192 $as_echo "$PERL" >&6; }
24193 else
24194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24195 $as_echo "no" >&6; }
24196 fi
24197
24198
24199 test -n "$PERL" && break
24200 done
24201 test -n "$PERL" || PERL="false"
24202
24203
24204 SYSDEP_SOURCES=
24205 SIGNAL_HANDLER_AUX=
24206
24207 case "${host}" in
24208 *-*-solaris2*)
24209 SIGNAL_HANDLER=include/posix-signal.h
24210 ;;
24211 i?86-*-linux*)
24212 SIGNAL_HANDLER=include/i386-signal.h
24213 SIGNAL_HANDLER_AUX=include/x86_64-signal.h
24214 ;;
24215 # ia64-*)
24216 # SYSDEP_SOURCES=sysdep/ia64.c
24217 # test -d sysdep || mkdir sysdep
24218 # ;;
24219 hppa*-*-linux*)
24220 SIGNAL_HANDLER=include/pa-signal.h
24221 ;;
24222 hppa*-hp-hpux*)
24223 SIGNAL_HANDLER=include/hppa-signal.h
24224 ;;
24225 ia64-*-linux*)
24226 SIGNAL_HANDLER=include/dwarf2-signal.h
24227 ;;
24228 powerpc*-*-linux*)
24229 SIGNAL_HANDLER=include/powerpc-signal.h
24230 ;;
24231 alpha*-*-linux*)
24232 SIGNAL_HANDLER=include/dwarf2-signal.h
24233 ;;
24234 s390*-*-linux*)
24235 SIGNAL_HANDLER=include/s390-signal.h
24236 ;;
24237 x86_64*-*-linux*)
24238 SIGNAL_HANDLER=include/x86_64-signal.h
24239 SIGNAL_HANDLER_AUX=include/i386-signal.h
24240 ;;
24241 sparc*-*-linux*)
24242 SIGNAL_HANDLER=include/dwarf2-signal.h
24243 ;;
24244 sh*-*-linux*)
24245 SIGNAL_HANDLER=include/sh-signal.h
24246 ;;
24247 *mingw*)
24248 SIGNAL_HANDLER=include/win32-signal.h
24249 ;;
24250 mips*-*-linux*)
24251 SIGNAL_HANDLER=include/mips-signal.h
24252 ;;
24253 m68*-*-linux*)
24254 SIGNAL_HANDLER=include/dwarf2-signal.h
24255 ;;
24256 powerpc*-*-darwin* | i?86-*-darwin[912]* | x86_64-*-darwin[912]*)
24257 SIGNAL_HANDLER=include/darwin-signal.h
24258 ;;
24259 powerpc*-*-aix*)
24260 SIGNAL_HANDLER=include/aix-signal.h
24261 ;;
24262 *)
24263 SIGNAL_HANDLER=include/default-signal.h
24264 ;;
24265 esac
24266
24267 # If we're using sjlj exceptions, forget what we just learned.
24268 if test "$enable_sjlj_exceptions" = yes; then
24269 SIGNAL_HANDLER=include/default-signal.h
24270 SIGNAL_HANDLER_AUX=
24271 fi
24272
24273
24274
24275 if test -z "$SIGNAL_HANDLER_AUX"; then
24276 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
24277 fi
24278
24279 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
24280
24281
24282 if test "${multilib}" = "yes"; then
24283 multilib_arg="--enable-multilib"
24284 else
24285 multilib_arg=
24286 fi
24287
24288 # See if we support thread-local storage.
24289
24290
24291 # Check whether --enable-tls was given.
24292 if test "${enable_tls+set}" = set; then :
24293 enableval=$enable_tls;
24294 case "$enableval" in
24295 yes|no) ;;
24296 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
24297 esac
24298
24299 else
24300 enable_tls=yes
24301 fi
24302
24303
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
24305 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
24306 if test "${gcc_cv_have_tls+set}" = set; then :
24307 $as_echo_n "(cached) " >&6
24308 else
24309
24310 if test "$cross_compiling" = yes; then :
24311 if test x$gcc_no_link = xyes; then
24312 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24313 fi
24314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24315 /* end confdefs.h. */
24316 __thread int a; int b; int main() { return a = b; }
24317 _ACEOF
24318 if ac_fn_c_try_link "$LINENO"; then :
24319 chktls_save_LDFLAGS="$LDFLAGS"
24320 case $host in
24321 *-*-linux*)
24322 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
24323 ;;
24324 esac
24325 chktls_save_CFLAGS="$CFLAGS"
24326 CFLAGS="-fPIC $CFLAGS"
24327 if test x$gcc_no_link = xyes; then
24328 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24329 fi
24330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24331 /* end confdefs.h. */
24332 int f() { return 0; }
24333 _ACEOF
24334 if ac_fn_c_try_link "$LINENO"; then :
24335 if test x$gcc_no_link = xyes; then
24336 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24337 fi
24338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24339 /* end confdefs.h. */
24340 __thread int a; int b; int f() { return a = b; }
24341 _ACEOF
24342 if ac_fn_c_try_link "$LINENO"; then :
24343 gcc_cv_have_tls=yes
24344 else
24345 gcc_cv_have_tls=no
24346 fi
24347 rm -f core conftest.err conftest.$ac_objext \
24348 conftest$ac_exeext conftest.$ac_ext
24349 else
24350 gcc_cv_have_tls=yes
24351 fi
24352 rm -f core conftest.err conftest.$ac_objext \
24353 conftest$ac_exeext conftest.$ac_ext
24354 CFLAGS="$chktls_save_CFLAGS"
24355 LDFLAGS="$chktls_save_LDFLAGS"
24356 else
24357 gcc_cv_have_tls=no
24358 fi
24359 rm -f core conftest.err conftest.$ac_objext \
24360 conftest$ac_exeext conftest.$ac_ext
24361
24362
24363 else
24364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24365 /* end confdefs.h. */
24366 __thread int a; int b; int main() { return a = b; }
24367 _ACEOF
24368 if ac_fn_c_try_run "$LINENO"; then :
24369 chktls_save_LDFLAGS="$LDFLAGS"
24370 LDFLAGS="-static $LDFLAGS"
24371 if test x$gcc_no_link = xyes; then
24372 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24373 fi
24374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24375 /* end confdefs.h. */
24376 int main() { return 0; }
24377 _ACEOF
24378 if ac_fn_c_try_link "$LINENO"; then :
24379 if test "$cross_compiling" = yes; then :
24380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24382 as_fn_error "cannot run test program while cross compiling
24383 See \`config.log' for more details." "$LINENO" 5; }
24384 else
24385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24386 /* end confdefs.h. */
24387 __thread int a; int b; int main() { return a = b; }
24388 _ACEOF
24389 if ac_fn_c_try_run "$LINENO"; then :
24390 gcc_cv_have_tls=yes
24391 else
24392 gcc_cv_have_tls=no
24393 fi
24394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24395 conftest.$ac_objext conftest.beam conftest.$ac_ext
24396 fi
24397
24398 else
24399 gcc_cv_have_tls=yes
24400 fi
24401 rm -f core conftest.err conftest.$ac_objext \
24402 conftest$ac_exeext conftest.$ac_ext
24403 LDFLAGS="$chktls_save_LDFLAGS"
24404 if test $gcc_cv_have_tls = yes; then
24405 chktls_save_CFLAGS="$CFLAGS"
24406 thread_CFLAGS=failed
24407 for flag in '' '-pthread' '-lpthread'; do
24408 CFLAGS="$flag $chktls_save_CFLAGS"
24409 if test x$gcc_no_link = xyes; then
24410 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24411 fi
24412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24413 /* end confdefs.h. */
24414 #include <pthread.h>
24415 void *g(void *d) { return NULL; }
24416 int
24417 main ()
24418 {
24419 pthread_t t; pthread_create(&t,NULL,g,NULL);
24420 ;
24421 return 0;
24422 }
24423 _ACEOF
24424 if ac_fn_c_try_link "$LINENO"; then :
24425 thread_CFLAGS="$flag"
24426 fi
24427 rm -f core conftest.err conftest.$ac_objext \
24428 conftest$ac_exeext conftest.$ac_ext
24429 if test "X$thread_CFLAGS" != Xfailed; then
24430 break
24431 fi
24432 done
24433 CFLAGS="$chktls_save_CFLAGS"
24434 if test "X$thread_CFLAGS" != Xfailed; then
24435 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
24436 if test "$cross_compiling" = yes; then :
24437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24439 as_fn_error "cannot run test program while cross compiling
24440 See \`config.log' for more details." "$LINENO" 5; }
24441 else
24442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24443 /* end confdefs.h. */
24444 #include <pthread.h>
24445 __thread int a;
24446 static int *volatile a_in_other_thread;
24447 static void *
24448 thread_func (void *arg)
24449 {
24450 a_in_other_thread = &a;
24451 return (void *)0;
24452 }
24453 int
24454 main ()
24455 {
24456 pthread_t thread;
24457 void *thread_retval;
24458 int *volatile a_in_main_thread;
24459 a_in_main_thread = &a;
24460 if (pthread_create (&thread, (pthread_attr_t *)0,
24461 thread_func, (void *)0))
24462 return 0;
24463 if (pthread_join (thread, &thread_retval))
24464 return 0;
24465 return (a_in_other_thread == a_in_main_thread);
24466 ;
24467 return 0;
24468 }
24469 _ACEOF
24470 if ac_fn_c_try_run "$LINENO"; then :
24471 gcc_cv_have_tls=yes
24472 else
24473 gcc_cv_have_tls=no
24474 fi
24475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24476 conftest.$ac_objext conftest.beam conftest.$ac_ext
24477 fi
24478
24479 CFLAGS="$chktls_save_CFLAGS"
24480 fi
24481 fi
24482 else
24483 gcc_cv_have_tls=no
24484 fi
24485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24486 conftest.$ac_objext conftest.beam conftest.$ac_ext
24487 fi
24488
24489 fi
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
24491 $as_echo "$gcc_cv_have_tls" >&6; }
24492 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
24493
24494 $as_echo "#define HAVE_TLS 1" >>confdefs.h
24495
24496 fi
24497
24498 # For _Unwind_GetIPInfo.
24499
24500
24501 # Check whether --with-system-libunwind was given.
24502 if test "${with_system_libunwind+set}" = set; then :
24503 withval=$with_system_libunwind;
24504 fi
24505
24506 # If system-libunwind was not specifically set, pick a default setting.
24507 if test x$with_system_libunwind = x; then
24508 case ${target} in
24509 ia64-*-hpux*) with_system_libunwind=yes ;;
24510 *) with_system_libunwind=no ;;
24511 esac
24512 fi
24513 # Based on system-libunwind and target, do we have ipinfo?
24514 if test x$with_system_libunwind = xyes; then
24515 case ${target} in
24516 ia64-*-*) have_unwind_getipinfo=no ;;
24517 *) have_unwind_getipinfo=yes ;;
24518 esac
24519 else
24520 # Darwin before version 9 does not have _Unwind_GetIPInfo.
24521
24522 case ${target} in
24523 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
24524 *) have_unwind_getipinfo=yes ;;
24525 esac
24526
24527 fi
24528
24529 if test x$have_unwind_getipinfo = xyes; then
24530
24531 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
24532
24533 fi
24534
24535
24536 # See if linker supports anonymous version scripts.
24537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous version scripts" >&5
24538 $as_echo_n "checking whether ld supports anonymous version scripts... " >&6; }
24539 if test "${libjava_cv_anon_version_script+set}" = set; then :
24540 $as_echo_n "(cached) " >&6
24541 else
24542 # Check whether --enable-symvers was given.
24543 if test "${enable_symvers+set}" = set; then :
24544 enableval=$enable_symvers; case "$enableval" in
24545 yes) libjava_cv_anon_version_script=yes ;;
24546 no) libjava_cv_anon_version_script=no ;;
24547 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5;;
24548 esac
24549 else
24550 libjava_cv_anon_version_script=yes
24551
24552 fi
24553
24554 if test x$libjava_cv_anon_version_script = xyes; then
24555 save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
24556 CFLAGS="$CFLAGS -fPIC";
24557 LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
24558 echo '{ global: globalsymb*; local: *; };' > conftest.map
24559 if test x$gcc_no_link = xyes; then
24560 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24561 fi
24562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24563 /* end confdefs.h. */
24564 void globalsymbol (void) {} void localsymbol (void) {}
24565 int
24566 main ()
24567 {
24568
24569 ;
24570 return 0;
24571 }
24572 _ACEOF
24573 if ac_fn_c_try_link "$LINENO"; then :
24574 libjava_cv_anon_version_script=gnu
24575 else
24576 libjava_cv_anon_version_script=no
24577 fi
24578 rm -f core conftest.err conftest.$ac_objext \
24579 conftest$ac_exeext conftest.$ac_ext
24580 if test x$libjava_cv_anon_version_script = xno; then
24581 case "$target_os" in
24582 solaris2*)
24583 LDFLAGS="$save_LDFLAGS"
24584 LDFLAGS="$LDFLAGS -shared -Wl,-M,conftest.map"
24585 # Sun ld doesn't understand wildcards here.
24586 echo '{ global: globalsymbol; local: *; };' > conftest.map
24587 if test x$gcc_no_link = xyes; then
24588 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24589 fi
24590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24591 /* end confdefs.h. */
24592 void globalsymbol (void) {} void localsymbol (void) {}
24593 int
24594 main ()
24595 {
24596
24597 ;
24598 return 0;
24599 }
24600 _ACEOF
24601 if ac_fn_c_try_link "$LINENO"; then :
24602 libjava_cv_anon_version_script=sun
24603 fi
24604 rm -f core conftest.err conftest.$ac_objext \
24605 conftest$ac_exeext conftest.$ac_ext
24606 ;;
24607 esac
24608 fi
24609 CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
24610 fi
24611
24612 fi
24613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_anon_version_script" >&5
24614 $as_echo "$libjava_cv_anon_version_script" >&6; }
24615 if test "$libjava_cv_anon_version_script" != no; then
24616 ANONVERSCRIPT_TRUE=
24617 ANONVERSCRIPT_FALSE='#'
24618 else
24619 ANONVERSCRIPT_TRUE='#'
24620 ANONVERSCRIPT_FALSE=
24621 fi
24622
24623 if test "$libjava_cv_anon_version_script" = gnu; then
24624 ANONVERSCRIPT_GNU_TRUE=
24625 ANONVERSCRIPT_GNU_FALSE='#'
24626 else
24627 ANONVERSCRIPT_GNU_TRUE='#'
24628 ANONVERSCRIPT_GNU_FALSE=
24629 fi
24630
24631 if test "$libjava_cv_anon_version_script" = sun; then
24632 ANONVERSCRIPT_SUN_TRUE=
24633 ANONVERSCRIPT_SUN_FALSE='#'
24634 else
24635 ANONVERSCRIPT_SUN_TRUE='#'
24636 ANONVERSCRIPT_SUN_FALSE=
24637 fi
24638
24639
24640 # Check if linker supports static linking on a per library basis
24641 LD_START_STATIC_SPEC=
24642 LD_FINISH_STATIC_SPEC=
24643 if $LD --help 2>&1 | grep -- -call_shared >/dev/null 2>&1; then
24644 if $LD --help 2>&1 | grep -- -non_shared >/dev/null 2>&1; then
24645 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
24646 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
24647 fi
24648 fi
24649
24650
24651
24652 here=`${PWDCMD-pwd}`
24653
24654
24655 # We get this from the environment.
24656
24657
24658 default_python_dir="/share/gcc-`cat ${srcdir}/../gcc/BASE-VER`/python/libjava"
24659
24660 # Check whether --with-python-dir was given.
24661 if test "${with_python_dir+set}" = set; then :
24662 withval=$with_python_dir; with_python_dir=$withval
24663 else
24664 with_python_dir="${default_python_dir}"
24665 fi
24666
24667
24668 # Needed for installing Python modules during make install.
24669 python_mod_dir="\${prefix}${with_python_dir}"
24670
24671 # Needed for substituting into aot-compile*
24672 python_mod_dir_expanded="${expanded_prefix}${with_python_dir}"
24673
24674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Python modules dir: ${python_mod_dir_expanded}" >&5
24675 $as_echo "Python modules dir: ${python_mod_dir_expanded}" >&6; };
24676
24677
24678
24679 # needed for aot-compile-rpm
24680 MAKE=`which make`
24681
24682
24683 # Check whether --enable-aot-compile-rpm was given.
24684 if test "${enable_aot_compile_rpm+set}" = set; then :
24685 enableval=$enable_aot_compile_rpm; case "${enableval}" in
24686 yes) AOT_RPM_ENABLED=yes ;;
24687 no) AOT_RPM_ENABLED=no ;;
24688 *) as_fn_error "Unknown argument to enable/disable aot-compile-rpm" "$LINENO" 5 ;;
24689 esac
24690 else
24691 AOT_RPM_ENABLED=no
24692
24693 fi
24694
24695 if test "x${AOT_RPM_ENABLED}" = xyes; then
24696 INSTALL_AOT_RPM_TRUE=
24697 INSTALL_AOT_RPM_FALSE='#'
24698 else
24699 INSTALL_AOT_RPM_TRUE='#'
24700 INSTALL_AOT_RPM_FALSE=
24701 fi
24702
24703
24704 # Check whether --enable-java-home was given.
24705 if test "${enable_java_home+set}" = set; then :
24706 enableval=$enable_java_home; case "${enableval}" in
24707 yes) JAVA_HOME_ENABLED=yes ;;
24708 no) JAVA_HOME_ENABLED=no ;;
24709 *) as_fn_error "Unknown argument to enable/disable java-home" "$LINENO" 5 ;;
24710 esac
24711 else
24712 JAVA_HOME_ENABLED=no
24713
24714 fi
24715
24716 if test "x${JAVA_HOME_ENABLED}" = xyes; then
24717 CREATE_JAVA_HOME_TRUE=
24718 CREATE_JAVA_HOME_FALSE='#'
24719 else
24720 CREATE_JAVA_HOME_TRUE='#'
24721 CREATE_JAVA_HOME_FALSE=
24722 fi
24723
24724
24725 # Only do these checks if java-home above is enabled.
24726 if test "x${JAVA_HOME_ENABLED}" = xyes
24727 then
24728
24729
24730 # Check whether --with-gcc-suffix was given.
24731 if test "${with_gcc_suffix+set}" = set; then :
24732 withval=$with_gcc_suffix; gcc_suffix=$withval
24733 else
24734 gcc_suffix=""
24735 fi
24736
24737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCC suffix: ${gcc_suffix}" >&5
24738 $as_echo "GCC suffix: ${gcc_suffix}" >&6; }
24739
24740
24741
24742 # Check whether --with-arch-directory was given.
24743 if test "${with_arch_directory+set}" = set; then :
24744 withval=$with_arch_directory; host_cpu=$withval
24745 else
24746 host_cpu=""
24747 fi
24748
24749
24750
24751 # Check whether --with-os-directory was given.
24752 if test "${with_os_directory+set}" = set; then :
24753 withval=$with_os_directory; host_os=$withval
24754 else
24755 host_os=""
24756 fi
24757
24758
24759
24760 # Check whether --with-origin-name was given.
24761 if test "${with_origin_name+set}" = set; then :
24762 withval=$with_origin_name; origin_name=$withval
24763 else
24764 origin_name=gcj${gcc_suffix}
24765 fi
24766
24767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JPackage origin name: ${origin_name}" >&5
24768 $as_echo "JPackage origin name: ${origin_name}" >&6; }
24769
24770
24771 # Check whether --with-arch-suffix was given.
24772 if test "${with_arch_suffix+set}" = set; then :
24773 withval=$with_arch_suffix; arch_suffix=$withval
24774 else
24775 arch_suffix=""
24776 fi
24777
24778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch suffix: ${arch_suffix}" >&5
24779 $as_echo "arch suffix: ${arch_suffix}" >&6; }
24780
24781
24782 # Check whether --with-jvm-root-dir was given.
24783 if test "${with_jvm_root_dir+set}" = set; then :
24784 withval=$with_jvm_root_dir; jvm_root_dir=$withval
24785 else
24786 jvm_root_dir="\${prefix}/lib/jvm"
24787 fi
24788
24789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM root installation directory: ${jvm_root_dir}" >&5
24790 $as_echo "JVM root installation directory: ${jvm_root_dir}" >&6; }
24791
24792
24793 # Check whether --with-jvm-jar-dir was given.
24794 if test "${with_jvm_jar_dir+set}" = set; then :
24795 withval=$with_jvm_jar_dir; jvm_jar_dir=$withval
24796 else
24797 jvm_jar_dir=\${prefix}/lib/jvm-exports
24798 fi
24799
24800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JAR root installation directory: ${jvm_jar_dir}" >&5
24801 $as_echo "JAR root installation directory: ${jvm_jar_dir}" >&6; }
24802
24803 JAVA_VERSION=1.5.0
24804 BUILD_VERSION=0
24805
24806
24807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Java version: ${JAVA_VERSION}" >&5
24808 $as_echo "Java version: ${JAVA_VERSION}" >&6; }
24809
24810 jre_dir=jre
24811 jre_lnk=jre-${JAVA_VERSION}-${origin_name}
24812 sdk_lnk=java-${JAVA_VERSION}-${origin_name}
24813
24814 JVM_ROOT_DIR=${jvm_root_dir}
24815
24816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
24817 $as_echo "JVM ROOT directory: ${JVM_ROOT_DIR}" >&6; }
24818
24819 JVM_JAR_ROOT_DIR=${jvm_jar_dir}
24820
24821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
24822 $as_echo "JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6; }
24823
24824 JVM_JAR_DIR=${jvm_jar_dir}
24825
24826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
24827 $as_echo "JVM JAR directory: ${JVM_JAR_DIR}" >&6; }
24828
24829 JRE_DIR=${jre_dir}
24830
24831
24832 JRE_LNK=${jre_lnk}
24833
24834
24835 SDK_LNK=${sdk_lnk}
24836
24837
24838 SDK_BIN_DIR=${jvm_root_dir}/bin
24839
24840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
24841 $as_echo "SDK tools directory: ${SDK_BIN_DIR}" >&6; }
24842
24843 SDK_LIB_DIR=${jvm_root_dir}/lib
24844
24845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
24846 $as_echo "SDK jar directory: ${SDK_LIB_DIR}" >&6; }
24847
24848 SDK_INCLUDE_DIR=${jvm_root_dir}/include
24849
24850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
24851 $as_echo "SDK include directory: ${SDK_INCLUDE_DIR}" >&6; }
24852
24853 JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
24854
24855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
24856 $as_echo "JRE tools directory: ${JRE_BIN_DIR}" >&6; }
24857
24858 JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
24859
24860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
24861 $as_echo "JRE lib directory: ${JRE_LIB_DIR}" >&6; }
24862
24863 # Find gcj prefix using gcj found in PATH.
24864 gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
24865
24866 # Where do the gcj binaries live?
24867 # For jhbuild based builds, they all live in a sibling of bin called
24868 # gcj-bin. Check for gcj-bin first, and use bin otherwise.
24869 GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
24870
24871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
24872 $as_echo "GCJ tools directory: ${GCJ_BIN_DIR}" >&6; }
24873
24874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host is ${host}" >&5
24875 $as_echo "host is ${host}" >&6; }
24876 if test "x${host_cpu}" = "x"
24877 then
24878 case ${host} in
24879 *-mingw* | *-cygwin*)
24880 host_cpu=x86;;
24881 i486-* | i586-* | i686-*)
24882 host_cpu=i386;;
24883 x86_64-*)
24884 host_cpu=amd64;;
24885 *)
24886 host_cpu=${host_cpu};;
24887 esac
24888 fi
24889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch directory: ${host_cpu}" >&5
24890 $as_echo "arch directory: ${host_cpu}" >&6; }
24891 CPU=${host_cpu}
24892
24893
24894 if test "x${host_os}" = "x"
24895 then
24896 case ${host} in
24897 *-mingw* | *-cygwin*)
24898 host_os=win32;;
24899 *-linux*)
24900 host_os=linux;;
24901 *)
24902 host_os=${host_os};;
24903 esac
24904 fi
24905 echo os directory: ${host_os}
24906 OS=${host_os}
24907
24908
24909 # make an expanded $libdir, for substituting into
24910 # scripts (and other non-Makefile things).
24911 LIBDIR=$libdir
24912 if test "x${exec_prefix}" = "xNONE"
24913 then
24914 lib_exec_prefix=$expanded_prefix
24915 else
24916 lib_exec_prefix=$exec_prefix
24917 fi
24918 LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
24919
24920 fi
24921
24922 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"
24923
24924
24925 if test ${multilib} = yes; then
24926 multilib_arg="--enable-multilib"
24927 else
24928 multilib_arg=
24929 fi
24930
24931 ac_config_files="$ac_config_files scripts/jar"
24932
24933 cat >confcache <<\_ACEOF
24934 # This file is a shell script that caches the results of configure
24935 # tests run on this system so they can be shared between configure
24936 # scripts and configure runs, see configure's option --config-cache.
24937 # It is not useful on other systems. If it contains results you don't
24938 # want to keep, you may remove or edit it.
24939 #
24940 # config.status only pays attention to the cache file if you give it
24941 # the --recheck option to rerun configure.
24942 #
24943 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24944 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24945 # following values.
24946
24947 _ACEOF
24948
24949 # The following way of writing the cache mishandles newlines in values,
24950 # but we know of no workaround that is simple, portable, and efficient.
24951 # So, we kill variables containing newlines.
24952 # Ultrix sh set writes to stderr and can't be redirected directly,
24953 # and sets the high bit in the cache file unless we assign to the vars.
24954 (
24955 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24956 eval ac_val=\$$ac_var
24957 case $ac_val in #(
24958 *${as_nl}*)
24959 case $ac_var in #(
24960 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24961 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24962 esac
24963 case $ac_var in #(
24964 _ | IFS | as_nl) ;; #(
24965 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24966 *) { eval $ac_var=; unset $ac_var;} ;;
24967 esac ;;
24968 esac
24969 done
24970
24971 (set) 2>&1 |
24972 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24973 *${as_nl}ac_space=\ *)
24974 # `set' does not quote correctly, so add quotes: double-quote
24975 # substitution turns \\\\ into \\, and sed turns \\ into \.
24976 sed -n \
24977 "s/'/'\\\\''/g;
24978 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24979 ;; #(
24980 *)
24981 # `set' quotes correctly as required by POSIX, so do not add quotes.
24982 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24983 ;;
24984 esac |
24985 sort
24986 ) |
24987 sed '
24988 /^ac_cv_env_/b end
24989 t clear
24990 :clear
24991 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24992 t end
24993 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24994 :end' >>confcache
24995 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24996 if test -w "$cache_file"; then
24997 test "x$cache_file" != "x/dev/null" &&
24998 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24999 $as_echo "$as_me: updating cache $cache_file" >&6;}
25000 cat confcache >$cache_file
25001 else
25002 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25003 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25004 fi
25005 fi
25006 rm -f confcache
25007
25008 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25009 # Let make expand exec_prefix.
25010 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25011
25012 DEFS=-DHAVE_CONFIG_H
25013
25014 ac_libobjs=
25015 ac_ltlibobjs=
25016 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25017 # 1. Remove the extension, and $U if already installed.
25018 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25019 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25020 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25021 # will be set to the directory where LIBOBJS objects are built.
25022 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25023 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25024 done
25025 LIBOBJS=$ac_libobjs
25026
25027 LTLIBOBJS=$ac_ltlibobjs
25028
25029
25030 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
25031 as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
25032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25033 fi
25034 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
25035 as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
25036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25037 fi
25038 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25039 as_fn_error "conditional \"AMDEP\" was never defined.
25040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25041 fi
25042 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25043 as_fn_error "conditional \"am__fastdepCC\" was never defined.
25044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25045 fi
25046 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25047 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
25048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25049 fi
25050 if test -n "$EXEEXT"; then
25051 am__EXEEXT_TRUE=
25052 am__EXEEXT_FALSE='#'
25053 else
25054 am__EXEEXT_TRUE='#'
25055 am__EXEEXT_FALSE=
25056 fi
25057
25058 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25059 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
25060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25061 fi
25062 if test -z "${BUILD_SUBLIBS_TRUE}" && test -z "${BUILD_SUBLIBS_FALSE}"; then
25063 as_fn_error "conditional \"BUILD_SUBLIBS\" was never defined.
25064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25065 fi
25066 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
25067 as_fn_error "conditional \"XLIB_AWT\" was never defined.
25068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25069 fi
25070 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
25071 as_fn_error "conditional \"X_AWT\" was never defined.
25072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25073 fi
25074 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25075 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25077 fi
25078 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25079 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25080 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25081 fi
25082 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
25083 as_fn_error "conditional \"TESTSUBDIR\" was never defined.
25084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25085 fi
25086 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
25087 as_fn_error "conditional \"BUILD_ECJ1\" was never defined.
25088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25089 fi
25090 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
25091 as_fn_error "conditional \"INSTALL_ECJ_JAR\" was never defined.
25092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25093 fi
25094 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
25095 as_fn_error "conditional \"JAVA_HOME_SET\" was never defined.
25096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25097 fi
25098 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
25099 as_fn_error "conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
25100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25101 fi
25102 if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
25103 as_fn_error "conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
25104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25105 fi
25106 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
25107 as_fn_error "conditional \"INTERPRETER\" was never defined.
25108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25109 fi
25110 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
25111 as_fn_error "conditional \"USING_WIN32_PLATFORM\" was never defined.
25112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25113 fi
25114 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
25115 as_fn_error "conditional \"USING_POSIX_PLATFORM\" was never defined.
25116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25117 fi
25118 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
25119 as_fn_error "conditional \"USING_DARWIN_CRT\" was never defined.
25120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25121 fi
25122 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
25123 as_fn_error "conditional \"USING_BOEHMGC\" was never defined.
25124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25125 fi
25126 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
25127 as_fn_error "conditional \"USING_NOGC\" was never defined.
25128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25129 fi
25130 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
25131 as_fn_error "conditional \"USING_POSIX_THREADS\" was never defined.
25132 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25133 fi
25134 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
25135 as_fn_error "conditional \"USING_WIN32_THREADS\" was never defined.
25136 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25137 fi
25138 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
25139 as_fn_error "conditional \"USING_NO_THREADS\" was never defined.
25140 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25141 fi
25142 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
25143 as_fn_error "conditional \"USE_LIBGCJ_BC\" was never defined.
25144 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25145 fi
25146 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
25147 as_fn_error "conditional \"USING_GCC\" was never defined.
25148 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25149 fi
25150 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25151 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25152 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25153 fi
25154
25155 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
25156 as_fn_error "conditional \"NATIVE\" was never defined.
25157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25158 fi
25159 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
25160 as_fn_error "conditional \"ENABLE_SHARED\" was never defined.
25161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25162 fi
25163 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
25164 as_fn_error "conditional \"NEEDS_DATA_START\" was never defined.
25165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25166 fi
25167 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
25168 as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
25169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25170 fi
25171 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
25172 as_fn_error "conditional \"ANONVERSCRIPT\" was never defined.
25173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25174 fi
25175 if test -z "${ANONVERSCRIPT_GNU_TRUE}" && test -z "${ANONVERSCRIPT_GNU_FALSE}"; then
25176 as_fn_error "conditional \"ANONVERSCRIPT_GNU\" was never defined.
25177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25178 fi
25179 if test -z "${ANONVERSCRIPT_SUN_TRUE}" && test -z "${ANONVERSCRIPT_SUN_FALSE}"; then
25180 as_fn_error "conditional \"ANONVERSCRIPT_SUN\" was never defined.
25181 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25182 fi
25183 if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
25184 as_fn_error "conditional \"INSTALL_AOT_RPM\" was never defined.
25185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25186 fi
25187 if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
25188 as_fn_error "conditional \"CREATE_JAVA_HOME\" was never defined.
25189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25190 fi
25191
25192 : ${CONFIG_STATUS=./config.status}
25193 ac_write_fail=0
25194 ac_clean_files_save=$ac_clean_files
25195 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25196 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25197 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25198 as_write_fail=0
25199 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25200 #! $SHELL
25201 # Generated by $as_me.
25202 # Run this file to recreate the current configuration.
25203 # Compiler output produced by configure, useful for debugging
25204 # configure, is in config.log if it exists.
25205
25206 debug=false
25207 ac_cs_recheck=false
25208 ac_cs_silent=false
25209
25210 SHELL=\${CONFIG_SHELL-$SHELL}
25211 export SHELL
25212 _ASEOF
25213 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25214 ## -------------------- ##
25215 ## M4sh Initialization. ##
25216 ## -------------------- ##
25217
25218 # Be more Bourne compatible
25219 DUALCASE=1; export DUALCASE # for MKS sh
25220 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25221 emulate sh
25222 NULLCMD=:
25223 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25224 # is contrary to our usage. Disable this feature.
25225 alias -g '${1+"$@"}'='"$@"'
25226 setopt NO_GLOB_SUBST
25227 else
25228 case `(set -o) 2>/dev/null` in #(
25229 *posix*) :
25230 set -o posix ;; #(
25231 *) :
25232 ;;
25233 esac
25234 fi
25235
25236
25237 as_nl='
25238 '
25239 export as_nl
25240 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25241 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25242 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25243 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25244 # Prefer a ksh shell builtin over an external printf program on Solaris,
25245 # but without wasting forks for bash or zsh.
25246 if test -z "$BASH_VERSION$ZSH_VERSION" \
25247 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25248 as_echo='print -r --'
25249 as_echo_n='print -rn --'
25250 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25251 as_echo='printf %s\n'
25252 as_echo_n='printf %s'
25253 else
25254 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25255 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25256 as_echo_n='/usr/ucb/echo -n'
25257 else
25258 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25259 as_echo_n_body='eval
25260 arg=$1;
25261 case $arg in #(
25262 *"$as_nl"*)
25263 expr "X$arg" : "X\\(.*\\)$as_nl";
25264 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25265 esac;
25266 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25267 '
25268 export as_echo_n_body
25269 as_echo_n='sh -c $as_echo_n_body as_echo'
25270 fi
25271 export as_echo_body
25272 as_echo='sh -c $as_echo_body as_echo'
25273 fi
25274
25275 # The user is always right.
25276 if test "${PATH_SEPARATOR+set}" != set; then
25277 PATH_SEPARATOR=:
25278 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25279 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25280 PATH_SEPARATOR=';'
25281 }
25282 fi
25283
25284
25285 # IFS
25286 # We need space, tab and new line, in precisely that order. Quoting is
25287 # there to prevent editors from complaining about space-tab.
25288 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25289 # splitting by setting IFS to empty value.)
25290 IFS=" "" $as_nl"
25291
25292 # Find who we are. Look in the path if we contain no directory separator.
25293 case $0 in #((
25294 *[\\/]* ) as_myself=$0 ;;
25295 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25296 for as_dir in $PATH
25297 do
25298 IFS=$as_save_IFS
25299 test -z "$as_dir" && as_dir=.
25300 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25301 done
25302 IFS=$as_save_IFS
25303
25304 ;;
25305 esac
25306 # We did not find ourselves, most probably we were run as `sh COMMAND'
25307 # in which case we are not to be found in the path.
25308 if test "x$as_myself" = x; then
25309 as_myself=$0
25310 fi
25311 if test ! -f "$as_myself"; then
25312 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25313 exit 1
25314 fi
25315
25316 # Unset variables that we do not need and which cause bugs (e.g. in
25317 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25318 # suppresses any "Segmentation fault" message there. '((' could
25319 # trigger a bug in pdksh 5.2.14.
25320 for as_var in BASH_ENV ENV MAIL MAILPATH
25321 do eval test x\${$as_var+set} = xset \
25322 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25323 done
25324 PS1='$ '
25325 PS2='> '
25326 PS4='+ '
25327
25328 # NLS nuisances.
25329 LC_ALL=C
25330 export LC_ALL
25331 LANGUAGE=C
25332 export LANGUAGE
25333
25334 # CDPATH.
25335 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25336
25337
25338 # as_fn_error ERROR [LINENO LOG_FD]
25339 # ---------------------------------
25340 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25341 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25342 # script with status $?, using 1 if that was 0.
25343 as_fn_error ()
25344 {
25345 as_status=$?; test $as_status -eq 0 && as_status=1
25346 if test "$3"; then
25347 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25348 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25349 fi
25350 $as_echo "$as_me: error: $1" >&2
25351 as_fn_exit $as_status
25352 } # as_fn_error
25353
25354
25355 # as_fn_set_status STATUS
25356 # -----------------------
25357 # Set $? to STATUS, without forking.
25358 as_fn_set_status ()
25359 {
25360 return $1
25361 } # as_fn_set_status
25362
25363 # as_fn_exit STATUS
25364 # -----------------
25365 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25366 as_fn_exit ()
25367 {
25368 set +e
25369 as_fn_set_status $1
25370 exit $1
25371 } # as_fn_exit
25372
25373 # as_fn_unset VAR
25374 # ---------------
25375 # Portably unset VAR.
25376 as_fn_unset ()
25377 {
25378 { eval $1=; unset $1;}
25379 }
25380 as_unset=as_fn_unset
25381 # as_fn_append VAR VALUE
25382 # ----------------------
25383 # Append the text in VALUE to the end of the definition contained in VAR. Take
25384 # advantage of any shell optimizations that allow amortized linear growth over
25385 # repeated appends, instead of the typical quadratic growth present in naive
25386 # implementations.
25387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25388 eval 'as_fn_append ()
25389 {
25390 eval $1+=\$2
25391 }'
25392 else
25393 as_fn_append ()
25394 {
25395 eval $1=\$$1\$2
25396 }
25397 fi # as_fn_append
25398
25399 # as_fn_arith ARG...
25400 # ------------------
25401 # Perform arithmetic evaluation on the ARGs, and store the result in the
25402 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25403 # must be portable across $(()) and expr.
25404 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25405 eval 'as_fn_arith ()
25406 {
25407 as_val=$(( $* ))
25408 }'
25409 else
25410 as_fn_arith ()
25411 {
25412 as_val=`expr "$@" || test $? -eq 1`
25413 }
25414 fi # as_fn_arith
25415
25416
25417 if expr a : '\(a\)' >/dev/null 2>&1 &&
25418 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25419 as_expr=expr
25420 else
25421 as_expr=false
25422 fi
25423
25424 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25425 as_basename=basename
25426 else
25427 as_basename=false
25428 fi
25429
25430 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25431 as_dirname=dirname
25432 else
25433 as_dirname=false
25434 fi
25435
25436 as_me=`$as_basename -- "$0" ||
25437 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25438 X"$0" : 'X\(//\)$' \| \
25439 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25440 $as_echo X/"$0" |
25441 sed '/^.*\/\([^/][^/]*\)\/*$/{
25442 s//\1/
25443 q
25444 }
25445 /^X\/\(\/\/\)$/{
25446 s//\1/
25447 q
25448 }
25449 /^X\/\(\/\).*/{
25450 s//\1/
25451 q
25452 }
25453 s/.*/./; q'`
25454
25455 # Avoid depending upon Character Ranges.
25456 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25457 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25458 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25459 as_cr_digits='0123456789'
25460 as_cr_alnum=$as_cr_Letters$as_cr_digits
25461
25462 ECHO_C= ECHO_N= ECHO_T=
25463 case `echo -n x` in #(((((
25464 -n*)
25465 case `echo 'xy\c'` in
25466 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25467 xy) ECHO_C='\c';;
25468 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25469 ECHO_T=' ';;
25470 esac;;
25471 *)
25472 ECHO_N='-n';;
25473 esac
25474
25475 rm -f conf$$ conf$$.exe conf$$.file
25476 if test -d conf$$.dir; then
25477 rm -f conf$$.dir/conf$$.file
25478 else
25479 rm -f conf$$.dir
25480 mkdir conf$$.dir 2>/dev/null
25481 fi
25482 if (echo >conf$$.file) 2>/dev/null; then
25483 if ln -s conf$$.file conf$$ 2>/dev/null; then
25484 as_ln_s='ln -s'
25485 # ... but there are two gotchas:
25486 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25487 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25488 # In both cases, we have to default to `cp -p'.
25489 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25490 as_ln_s='cp -p'
25491 elif ln conf$$.file conf$$ 2>/dev/null; then
25492 as_ln_s=ln
25493 else
25494 as_ln_s='cp -p'
25495 fi
25496 else
25497 as_ln_s='cp -p'
25498 fi
25499 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25500 rmdir conf$$.dir 2>/dev/null
25501
25502
25503 # as_fn_mkdir_p
25504 # -------------
25505 # Create "$as_dir" as a directory, including parents if necessary.
25506 as_fn_mkdir_p ()
25507 {
25508
25509 case $as_dir in #(
25510 -*) as_dir=./$as_dir;;
25511 esac
25512 test -d "$as_dir" || eval $as_mkdir_p || {
25513 as_dirs=
25514 while :; do
25515 case $as_dir in #(
25516 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25517 *) as_qdir=$as_dir;;
25518 esac
25519 as_dirs="'$as_qdir' $as_dirs"
25520 as_dir=`$as_dirname -- "$as_dir" ||
25521 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25522 X"$as_dir" : 'X\(//\)[^/]' \| \
25523 X"$as_dir" : 'X\(//\)$' \| \
25524 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25525 $as_echo X"$as_dir" |
25526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25527 s//\1/
25528 q
25529 }
25530 /^X\(\/\/\)[^/].*/{
25531 s//\1/
25532 q
25533 }
25534 /^X\(\/\/\)$/{
25535 s//\1/
25536 q
25537 }
25538 /^X\(\/\).*/{
25539 s//\1/
25540 q
25541 }
25542 s/.*/./; q'`
25543 test -d "$as_dir" && break
25544 done
25545 test -z "$as_dirs" || eval "mkdir $as_dirs"
25546 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25547
25548
25549 } # as_fn_mkdir_p
25550 if mkdir -p . 2>/dev/null; then
25551 as_mkdir_p='mkdir -p "$as_dir"'
25552 else
25553 test -d ./-p && rmdir ./-p
25554 as_mkdir_p=false
25555 fi
25556
25557 if test -x / >/dev/null 2>&1; then
25558 as_test_x='test -x'
25559 else
25560 if ls -dL / >/dev/null 2>&1; then
25561 as_ls_L_option=L
25562 else
25563 as_ls_L_option=
25564 fi
25565 as_test_x='
25566 eval sh -c '\''
25567 if test -d "$1"; then
25568 test -d "$1/.";
25569 else
25570 case $1 in #(
25571 -*)set "./$1";;
25572 esac;
25573 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25574 ???[sx]*):;;*)false;;esac;fi
25575 '\'' sh
25576 '
25577 fi
25578 as_executable_p=$as_test_x
25579
25580 # Sed expression to map a string onto a valid CPP name.
25581 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25582
25583 # Sed expression to map a string onto a valid variable name.
25584 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25585
25586
25587 exec 6>&1
25588 ## ----------------------------------- ##
25589 ## Main body of $CONFIG_STATUS script. ##
25590 ## ----------------------------------- ##
25591 _ASEOF
25592 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25593
25594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25595 # Save the log message, to keep $0 and so on meaningful, and to
25596 # report actual input values of CONFIG_FILES etc. instead of their
25597 # values after options handling.
25598 ac_log="
25599 This file was extended by libjava $as_me version-unused, which was
25600 generated by GNU Autoconf 2.64. Invocation command line was
25601
25602 CONFIG_FILES = $CONFIG_FILES
25603 CONFIG_HEADERS = $CONFIG_HEADERS
25604 CONFIG_LINKS = $CONFIG_LINKS
25605 CONFIG_COMMANDS = $CONFIG_COMMANDS
25606 $ $0 $@
25607
25608 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25609 "
25610
25611 _ACEOF
25612
25613 case $ac_config_files in *"
25614 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25615 esac
25616
25617 case $ac_config_headers in *"
25618 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25619 esac
25620
25621
25622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25623 # Files that config.status was made for.
25624 config_files="$ac_config_files"
25625 config_headers="$ac_config_headers"
25626 config_links="$ac_config_links"
25627 config_commands="$ac_config_commands"
25628
25629 _ACEOF
25630
25631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25632 ac_cs_usage="\
25633 \`$as_me' instantiates files and other configuration actions
25634 from templates according to the current configuration. Unless the files
25635 and actions are specified as TAGs, all are instantiated by default.
25636
25637 Usage: $0 [OPTION]... [TAG]...
25638
25639 -h, --help print this help, then exit
25640 -V, --version print version number and configuration settings, then exit
25641 -q, --quiet, --silent
25642 do not print progress messages
25643 -d, --debug don't remove temporary files
25644 --recheck update $as_me by reconfiguring in the same conditions
25645 --file=FILE[:TEMPLATE]
25646 instantiate the configuration file FILE
25647 --header=FILE[:TEMPLATE]
25648 instantiate the configuration header FILE
25649
25650 Configuration files:
25651 $config_files
25652
25653 Configuration headers:
25654 $config_headers
25655
25656 Configuration links:
25657 $config_links
25658
25659 Configuration commands:
25660 $config_commands
25661
25662 Report bugs to the package provider."
25663
25664 _ACEOF
25665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25666 ac_cs_version="\\
25667 libjava config.status version-unused
25668 configured by $0, generated by GNU Autoconf 2.64,
25669 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25670
25671 Copyright (C) 2009 Free Software Foundation, Inc.
25672 This config.status script is free software; the Free Software Foundation
25673 gives unlimited permission to copy, distribute and modify it."
25674
25675 ac_pwd='$ac_pwd'
25676 srcdir='$srcdir'
25677 INSTALL='$INSTALL'
25678 MKDIR_P='$MKDIR_P'
25679 AWK='$AWK'
25680 test -n "\$AWK" || AWK=awk
25681 _ACEOF
25682
25683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25684 # The default lists apply if the user does not specify any file.
25685 ac_need_defaults=:
25686 while test $# != 0
25687 do
25688 case $1 in
25689 --*=*)
25690 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25691 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25692 ac_shift=:
25693 ;;
25694 *)
25695 ac_option=$1
25696 ac_optarg=$2
25697 ac_shift=shift
25698 ;;
25699 esac
25700
25701 case $ac_option in
25702 # Handling of the options.
25703 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25704 ac_cs_recheck=: ;;
25705 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25706 $as_echo "$ac_cs_version"; exit ;;
25707 --debug | --debu | --deb | --de | --d | -d )
25708 debug=: ;;
25709 --file | --fil | --fi | --f )
25710 $ac_shift
25711 case $ac_optarg in
25712 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25713 esac
25714 as_fn_append CONFIG_FILES " '$ac_optarg'"
25715 ac_need_defaults=false;;
25716 --header | --heade | --head | --hea )
25717 $ac_shift
25718 case $ac_optarg in
25719 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25720 esac
25721 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25722 ac_need_defaults=false;;
25723 --he | --h)
25724 # Conflict between --help and --header
25725 as_fn_error "ambiguous option: \`$1'
25726 Try \`$0 --help' for more information.";;
25727 --help | --hel | -h )
25728 $as_echo "$ac_cs_usage"; exit ;;
25729 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25730 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25731 ac_cs_silent=: ;;
25732
25733 # This is an error.
25734 -*) as_fn_error "unrecognized option: \`$1'
25735 Try \`$0 --help' for more information." ;;
25736
25737 *) as_fn_append ac_config_targets " $1"
25738 ac_need_defaults=false ;;
25739
25740 esac
25741 shift
25742 done
25743
25744 ac_configure_extra_args=
25745
25746 if $ac_cs_silent; then
25747 exec 6>/dev/null
25748 ac_configure_extra_args="$ac_configure_extra_args --silent"
25749 fi
25750
25751 _ACEOF
25752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25753 if \$ac_cs_recheck; then
25754 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25755 shift
25756 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25757 CONFIG_SHELL='$SHELL'
25758 export CONFIG_SHELL
25759 exec "\$@"
25760 fi
25761
25762 _ACEOF
25763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25764 exec 5>>config.log
25765 {
25766 echo
25767 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25768 ## Running $as_me. ##
25769 _ASBOX
25770 $as_echo "$ac_log"
25771 } >&5
25772
25773 _ACEOF
25774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25775 #
25776 # INIT-COMMANDS
25777 #
25778
25779 srcdir="$srcdir"
25780 host="$host"
25781 target="$target"
25782 with_multisubdir="$with_multisubdir"
25783 with_multisrctop="$with_multisrctop"
25784 with_target_subdir="$with_target_subdir"
25785 ac_configure_args="${multilib_arg} ${ac_configure_args}"
25786 multi_basedir="$multi_basedir"
25787 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25788 CC="$CC"
25789 CXX="$CXX"
25790 GFORTRAN="$GFORTRAN"
25791 GCJ="$GCJ"
25792 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25793
25794
25795 # The HP-UX ksh and POSIX shell print the target directory to stdout
25796 # if CDPATH is set.
25797 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25798
25799 sed_quote_subst='$sed_quote_subst'
25800 double_quote_subst='$double_quote_subst'
25801 delay_variable_subst='$delay_variable_subst'
25802 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25803 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25804 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25805 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25806 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25807 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25808 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25809 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25810 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25811 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25812 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25813 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25814 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25815 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25816 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25817 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25818 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25819 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25820 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25821 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25822 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25823 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25824 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25825 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25826 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25827 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25828 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25829 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25830 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25831 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25832 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25833 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25834 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25835 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25836 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25837 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25838 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25839 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25840 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25841 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25842 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25843 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25844 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25845 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25846 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25847 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25848 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25849 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25850 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"`'
25851 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25852 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25853 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25854 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25855 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25856 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25857 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25858 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25859 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25860 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25861 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25862 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25863 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25864 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25865 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25866 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25867 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25868 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25869 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25870 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25871 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25872 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25873 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25874 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25875 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25876 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25877 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25878 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25879 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25880 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25881 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25882 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
25883 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25884 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25885 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25886 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25887 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25888 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25889 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25890 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25891 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
25892 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25893 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25894 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25895 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25896 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25897 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25898 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25899 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25900 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25901 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25902 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25903 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25904 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25905 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25906 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25907 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25908 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25909 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25910 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25911 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25912 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25913 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25914 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25915 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25916 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25917 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25918 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25919 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25920 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25921 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25922 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25923 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25924 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25925 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25926 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25927 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25928 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25929 LD_GCJ='`$ECHO "$LD_GCJ" | $SED "$delay_single_quote_subst"`'
25930 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25931 reload_flag_GCJ='`$ECHO "$reload_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25932 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25933 reload_cmds_GCJ='`$ECHO "$reload_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25934 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25935 old_archive_cmds_GCJ='`$ECHO "$old_archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25936 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25937 compiler_GCJ='`$ECHO "$compiler_GCJ" | $SED "$delay_single_quote_subst"`'
25938 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25939 GCC_GCJ='`$ECHO "$GCC_GCJ" | $SED "$delay_single_quote_subst"`'
25940 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25941 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "$lt_prog_compiler_no_builtin_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25942 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25943 lt_prog_compiler_wl_GCJ='`$ECHO "$lt_prog_compiler_wl_GCJ" | $SED "$delay_single_quote_subst"`'
25944 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25945 lt_prog_compiler_pic_GCJ='`$ECHO "$lt_prog_compiler_pic_GCJ" | $SED "$delay_single_quote_subst"`'
25946 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25947 lt_prog_compiler_static_GCJ='`$ECHO "$lt_prog_compiler_static_GCJ" | $SED "$delay_single_quote_subst"`'
25948 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25949 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "$lt_cv_prog_compiler_c_o_GCJ" | $SED "$delay_single_quote_subst"`'
25950 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25951 archive_cmds_need_lc_GCJ='`$ECHO "$archive_cmds_need_lc_GCJ" | $SED "$delay_single_quote_subst"`'
25952 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25953 enable_shared_with_static_runtimes_GCJ='`$ECHO "$enable_shared_with_static_runtimes_GCJ" | $SED "$delay_single_quote_subst"`'
25954 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25955 export_dynamic_flag_spec_GCJ='`$ECHO "$export_dynamic_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25956 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25957 whole_archive_flag_spec_GCJ='`$ECHO "$whole_archive_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25958 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25959 compiler_needs_object_GCJ='`$ECHO "$compiler_needs_object_GCJ" | $SED "$delay_single_quote_subst"`'
25960 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25961 old_archive_from_new_cmds_GCJ='`$ECHO "$old_archive_from_new_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25962 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25963 old_archive_from_expsyms_cmds_GCJ='`$ECHO "$old_archive_from_expsyms_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25964 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25965 archive_cmds_GCJ='`$ECHO "$archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25966 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25967 archive_expsym_cmds_GCJ='`$ECHO "$archive_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25968 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25969 module_cmds_GCJ='`$ECHO "$module_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25970 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25971 module_expsym_cmds_GCJ='`$ECHO "$module_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25972 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25973 with_gnu_ld_GCJ='`$ECHO "$with_gnu_ld_GCJ" | $SED "$delay_single_quote_subst"`'
25974 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25975 allow_undefined_flag_GCJ='`$ECHO "$allow_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25976 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25977 no_undefined_flag_GCJ='`$ECHO "$no_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25978 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25979 hardcode_libdir_flag_spec_GCJ='`$ECHO "$hardcode_libdir_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25980 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
25981 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "$hardcode_libdir_flag_spec_ld_GCJ" | $SED "$delay_single_quote_subst"`'
25982 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25983 hardcode_libdir_separator_GCJ='`$ECHO "$hardcode_libdir_separator_GCJ" | $SED "$delay_single_quote_subst"`'
25984 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25985 hardcode_direct_GCJ='`$ECHO "$hardcode_direct_GCJ" | $SED "$delay_single_quote_subst"`'
25986 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25987 hardcode_direct_absolute_GCJ='`$ECHO "$hardcode_direct_absolute_GCJ" | $SED "$delay_single_quote_subst"`'
25988 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25989 hardcode_minus_L_GCJ='`$ECHO "$hardcode_minus_L_GCJ" | $SED "$delay_single_quote_subst"`'
25990 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25991 hardcode_shlibpath_var_GCJ='`$ECHO "$hardcode_shlibpath_var_GCJ" | $SED "$delay_single_quote_subst"`'
25992 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25993 hardcode_automatic_GCJ='`$ECHO "$hardcode_automatic_GCJ" | $SED "$delay_single_quote_subst"`'
25994 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25995 inherit_rpath_GCJ='`$ECHO "$inherit_rpath_GCJ" | $SED "$delay_single_quote_subst"`'
25996 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25997 link_all_deplibs_GCJ='`$ECHO "$link_all_deplibs_GCJ" | $SED "$delay_single_quote_subst"`'
25998 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
25999 fix_srcfile_path_GCJ='`$ECHO "$fix_srcfile_path_GCJ" | $SED "$delay_single_quote_subst"`'
26000 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
26001 always_export_symbols_GCJ='`$ECHO "$always_export_symbols_GCJ" | $SED "$delay_single_quote_subst"`'
26002 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26003 export_symbols_cmds_GCJ='`$ECHO "$export_symbols_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26004 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26005 exclude_expsyms_GCJ='`$ECHO "$exclude_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
26006 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26007 include_expsyms_GCJ='`$ECHO "$include_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
26008 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26009 prelink_cmds_GCJ='`$ECHO "$prelink_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26010 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
26011 file_list_spec_GCJ='`$ECHO "$file_list_spec_GCJ" | $SED "$delay_single_quote_subst"`'
26012 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
26013 hardcode_action_GCJ='`$ECHO "$hardcode_action_GCJ" | $SED "$delay_single_quote_subst"`'
26014 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
26015 compiler_lib_search_dirs_GCJ='`$ECHO "$compiler_lib_search_dirs_GCJ" | $SED "$delay_single_quote_subst"`'
26016 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26017 predep_objects_GCJ='`$ECHO "$predep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
26018 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26019 postdep_objects_GCJ='`$ECHO "$postdep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
26020 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
26021 predeps_GCJ='`$ECHO "$predeps_GCJ" | $SED "$delay_single_quote_subst"`'
26022 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
26023 postdeps_GCJ='`$ECHO "$postdeps_GCJ" | $SED "$delay_single_quote_subst"`'
26024 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
26025 compiler_lib_search_path_GCJ='`$ECHO "$compiler_lib_search_path_GCJ" | $SED "$delay_single_quote_subst"`'
26026
26027 LTCC='$LTCC'
26028 LTCFLAGS='$LTCFLAGS'
26029 compiler='$compiler_DEFAULT'
26030
26031 # A function that is used when there is no print builtin or printf.
26032 func_fallback_echo ()
26033 {
26034 eval 'cat <<_LTECHO_EOF
26035 \$1
26036 _LTECHO_EOF'
26037 }
26038
26039 # Quote evaled strings.
26040 for var in SHELL \
26041 ECHO \
26042 SED \
26043 GREP \
26044 EGREP \
26045 FGREP \
26046 LD \
26047 NM \
26048 LN_S \
26049 lt_SP2NL \
26050 lt_NL2SP \
26051 reload_flag \
26052 OBJDUMP \
26053 deplibs_check_method \
26054 file_magic_cmd \
26055 AR \
26056 AR_FLAGS \
26057 STRIP \
26058 RANLIB \
26059 CC \
26060 CFLAGS \
26061 compiler \
26062 lt_cv_sys_global_symbol_pipe \
26063 lt_cv_sys_global_symbol_to_cdecl \
26064 lt_cv_sys_global_symbol_to_c_name_address \
26065 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26066 lt_prog_compiler_no_builtin_flag \
26067 lt_prog_compiler_wl \
26068 lt_prog_compiler_pic \
26069 lt_prog_compiler_static \
26070 lt_cv_prog_compiler_c_o \
26071 need_locks \
26072 DSYMUTIL \
26073 NMEDIT \
26074 LIPO \
26075 OTOOL \
26076 OTOOL64 \
26077 shrext_cmds \
26078 export_dynamic_flag_spec \
26079 whole_archive_flag_spec \
26080 compiler_needs_object \
26081 with_gnu_ld \
26082 allow_undefined_flag \
26083 no_undefined_flag \
26084 hardcode_libdir_flag_spec \
26085 hardcode_libdir_flag_spec_ld \
26086 hardcode_libdir_separator \
26087 fix_srcfile_path \
26088 exclude_expsyms \
26089 include_expsyms \
26090 file_list_spec \
26091 variables_saved_for_relink \
26092 libname_spec \
26093 library_names_spec \
26094 soname_spec \
26095 install_override_mode \
26096 finish_eval \
26097 old_striplib \
26098 striplib \
26099 compiler_lib_search_dirs \
26100 predep_objects \
26101 postdep_objects \
26102 predeps \
26103 postdeps \
26104 compiler_lib_search_path \
26105 LD_CXX \
26106 LD_GCJ \
26107 reload_flag_CXX \
26108 reload_flag_GCJ \
26109 compiler_CXX \
26110 compiler_GCJ \
26111 lt_prog_compiler_no_builtin_flag_CXX \
26112 lt_prog_compiler_no_builtin_flag_GCJ \
26113 lt_prog_compiler_wl_CXX \
26114 lt_prog_compiler_wl_GCJ \
26115 lt_prog_compiler_pic_CXX \
26116 lt_prog_compiler_pic_GCJ \
26117 lt_prog_compiler_static_CXX \
26118 lt_prog_compiler_static_GCJ \
26119 lt_cv_prog_compiler_c_o_CXX \
26120 lt_cv_prog_compiler_c_o_GCJ \
26121 export_dynamic_flag_spec_CXX \
26122 export_dynamic_flag_spec_GCJ \
26123 whole_archive_flag_spec_CXX \
26124 whole_archive_flag_spec_GCJ \
26125 compiler_needs_object_CXX \
26126 compiler_needs_object_GCJ \
26127 with_gnu_ld_CXX \
26128 with_gnu_ld_GCJ \
26129 allow_undefined_flag_CXX \
26130 allow_undefined_flag_GCJ \
26131 no_undefined_flag_CXX \
26132 no_undefined_flag_GCJ \
26133 hardcode_libdir_flag_spec_CXX \
26134 hardcode_libdir_flag_spec_GCJ \
26135 hardcode_libdir_flag_spec_ld_CXX \
26136 hardcode_libdir_flag_spec_ld_GCJ \
26137 hardcode_libdir_separator_CXX \
26138 hardcode_libdir_separator_GCJ \
26139 fix_srcfile_path_CXX \
26140 fix_srcfile_path_GCJ \
26141 exclude_expsyms_CXX \
26142 exclude_expsyms_GCJ \
26143 include_expsyms_CXX \
26144 include_expsyms_GCJ \
26145 file_list_spec_CXX \
26146 file_list_spec_GCJ \
26147 compiler_lib_search_dirs_CXX \
26148 compiler_lib_search_dirs_GCJ \
26149 predep_objects_CXX \
26150 predep_objects_GCJ \
26151 postdep_objects_CXX \
26152 postdep_objects_GCJ \
26153 predeps_CXX \
26154 predeps_GCJ \
26155 postdeps_CXX \
26156 postdeps_GCJ \
26157 compiler_lib_search_path_CXX \
26158 compiler_lib_search_path_GCJ; do
26159 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26160 *[\\\\\\\`\\"\\\$]*)
26161 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26162 ;;
26163 *)
26164 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26165 ;;
26166 esac
26167 done
26168
26169 # Double-quote double-evaled strings.
26170 for var in reload_cmds \
26171 old_postinstall_cmds \
26172 old_postuninstall_cmds \
26173 old_archive_cmds \
26174 extract_expsyms_cmds \
26175 old_archive_from_new_cmds \
26176 old_archive_from_expsyms_cmds \
26177 archive_cmds \
26178 archive_expsym_cmds \
26179 module_cmds \
26180 module_expsym_cmds \
26181 export_symbols_cmds \
26182 prelink_cmds \
26183 postinstall_cmds \
26184 postuninstall_cmds \
26185 finish_cmds \
26186 sys_lib_search_path_spec \
26187 sys_lib_dlsearch_path_spec \
26188 reload_cmds_CXX \
26189 reload_cmds_GCJ \
26190 old_archive_cmds_CXX \
26191 old_archive_cmds_GCJ \
26192 old_archive_from_new_cmds_CXX \
26193 old_archive_from_new_cmds_GCJ \
26194 old_archive_from_expsyms_cmds_CXX \
26195 old_archive_from_expsyms_cmds_GCJ \
26196 archive_cmds_CXX \
26197 archive_cmds_GCJ \
26198 archive_expsym_cmds_CXX \
26199 archive_expsym_cmds_GCJ \
26200 module_cmds_CXX \
26201 module_cmds_GCJ \
26202 module_expsym_cmds_CXX \
26203 module_expsym_cmds_GCJ \
26204 export_symbols_cmds_CXX \
26205 export_symbols_cmds_GCJ \
26206 prelink_cmds_CXX \
26207 prelink_cmds_GCJ; do
26208 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26209 *[\\\\\\\`\\"\\\$]*)
26210 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26211 ;;
26212 *)
26213 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26214 ;;
26215 esac
26216 done
26217
26218 ac_aux_dir='$ac_aux_dir'
26219 xsi_shell='$xsi_shell'
26220 lt_shell_append='$lt_shell_append'
26221
26222 # See if we are running on zsh, and set the options which allow our
26223 # commands through without removal of \ escapes INIT.
26224 if test -n "\${ZSH_VERSION+set}" ; then
26225 setopt NO_GLOB_SUBST
26226 fi
26227
26228
26229 PACKAGE='$PACKAGE'
26230 VERSION='$VERSION'
26231 TIMESTAMP='$TIMESTAMP'
26232 RM='$RM'
26233 ofile='$ofile'
26234
26235
26236
26237
26238
26239
26240
26241
26242 _ACEOF
26243
26244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26245
26246 # Handling of arguments.
26247 for ac_config_target in $ac_config_targets
26248 do
26249 case $ac_config_target in
26250 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
26251 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26252 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
26253 "gcj/libgcj-config.h") CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
26254 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26255 "include/platform.h") CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
26256 "java/io/natFile.cc") CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
26257 "java/lang/natConcreteProcess.cc") CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
26258 "java/net/natVMInetAddress.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
26259 "java/net/natVMNetworkInterface.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
26260 "gnu/java/net/natPlainSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
26261 "gnu/java/net/natPlainDatagramSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
26262 "gnu/java/nio/natVMPipe.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
26263 "gnu/java/nio/natVMSelector.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
26264 "gnu/java/nio/channels/natFileChannelImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
26265 "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" ;;
26266 "include/java-gc.h") CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
26267 "include/java-threads.h") CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
26268 "sysdep/locks.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
26269 "sysdep/backtrace.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
26270 "sysdep/descriptor.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
26271 "include/java-signal.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
26272 "include/java-signal-aux.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
26273 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26274 "libgcj.pc") CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
26275 "libgcj.spec") CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
26276 "libgcj-test.spec") CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
26277 "gcj/Makefile") CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
26278 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26279 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
26280 "contrib/aotcompile.py") CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
26281 "contrib/aot-compile") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
26282 "contrib/aot-compile-rpm") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
26283 "contrib/generate-cacerts.pl") CONFIG_FILES="$CONFIG_FILES contrib/generate-cacerts.pl" ;;
26284 "contrib/rebuild-gcj-db") CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
26285 "scripts/jar") CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
26286
26287 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26288 esac
26289 done
26290
26291
26292 # If the user did not use the arguments to specify the items to instantiate,
26293 # then the envvar interface is used. Set only those that are not.
26294 # We use the long form for the default assignment because of an extremely
26295 # bizarre bug on SunOS 4.1.3.
26296 if $ac_need_defaults; then
26297 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26298 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26299 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26300 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26301 fi
26302
26303 # Have a temporary directory for convenience. Make it in the build tree
26304 # simply because there is no reason against having it here, and in addition,
26305 # creating and moving files from /tmp can sometimes cause problems.
26306 # Hook for its removal unless debugging.
26307 # Note that there is a small window in which the directory will not be cleaned:
26308 # after its creation but before its name has been assigned to `$tmp'.
26309 $debug ||
26310 {
26311 tmp=
26312 trap 'exit_status=$?
26313 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26314 ' 0
26315 trap 'as_fn_exit 1' 1 2 13 15
26316 }
26317 # Create a (secure) tmp directory for tmp files.
26318
26319 {
26320 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26321 test -n "$tmp" && test -d "$tmp"
26322 } ||
26323 {
26324 tmp=./conf$$-$RANDOM
26325 (umask 077 && mkdir "$tmp")
26326 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26327
26328 # Set up the scripts for CONFIG_FILES section.
26329 # No need to generate them if there are no CONFIG_FILES.
26330 # This happens for instance with `./config.status config.h'.
26331 if test -n "$CONFIG_FILES"; then
26332
26333
26334 ac_cr=`echo X | tr X '\015'`
26335 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26336 # But we know of no other shell where ac_cr would be empty at this
26337 # point, so we can use a bashism as a fallback.
26338 if test "x$ac_cr" = x; then
26339 eval ac_cr=\$\'\\r\'
26340 fi
26341 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26342 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26343 ac_cs_awk_cr='\r'
26344 else
26345 ac_cs_awk_cr=$ac_cr
26346 fi
26347
26348 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26349 _ACEOF
26350
26351
26352 {
26353 echo "cat >conf$$subs.awk <<_ACEOF" &&
26354 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26355 echo "_ACEOF"
26356 } >conf$$subs.sh ||
26357 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26358 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26359 ac_delim='%!_!# '
26360 for ac_last_try in false false false false false :; do
26361 . ./conf$$subs.sh ||
26362 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26363
26364 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26365 if test $ac_delim_n = $ac_delim_num; then
26366 break
26367 elif $ac_last_try; then
26368 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26369 else
26370 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26371 fi
26372 done
26373 rm -f conf$$subs.sh
26374
26375 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26376 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26377 _ACEOF
26378 sed -n '
26379 h
26380 s/^/S["/; s/!.*/"]=/
26381 p
26382 g
26383 s/^[^!]*!//
26384 :repl
26385 t repl
26386 s/'"$ac_delim"'$//
26387 t delim
26388 :nl
26389 h
26390 s/\(.\{148\}\).*/\1/
26391 t more1
26392 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26393 p
26394 n
26395 b repl
26396 :more1
26397 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26398 p
26399 g
26400 s/.\{148\}//
26401 t nl
26402 :delim
26403 h
26404 s/\(.\{148\}\).*/\1/
26405 t more2
26406 s/["\\]/\\&/g; s/^/"/; s/$/"/
26407 p
26408 b
26409 :more2
26410 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26411 p
26412 g
26413 s/.\{148\}//
26414 t delim
26415 ' <conf$$subs.awk | sed '
26416 /^[^""]/{
26417 N
26418 s/\n//
26419 }
26420 ' >>$CONFIG_STATUS || ac_write_fail=1
26421 rm -f conf$$subs.awk
26422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26423 _ACAWK
26424 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26425 for (key in S) S_is_set[key] = 1
26426 FS = "\a"
26427
26428 }
26429 {
26430 line = $ 0
26431 nfields = split(line, field, "@")
26432 substed = 0
26433 len = length(field[1])
26434 for (i = 2; i < nfields; i++) {
26435 key = field[i]
26436 keylen = length(key)
26437 if (S_is_set[key]) {
26438 value = S[key]
26439 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26440 len += length(value) + length(field[++i])
26441 substed = 1
26442 } else
26443 len += 1 + keylen
26444 }
26445
26446 print line
26447 }
26448
26449 _ACAWK
26450 _ACEOF
26451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26452 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26453 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26454 else
26455 cat
26456 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26457 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26458 _ACEOF
26459
26460 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26461 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26462 # trailing colons and then remove the whole line if VPATH becomes empty
26463 # (actually we leave an empty line to preserve line numbers).
26464 if test "x$srcdir" = x.; then
26465 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26466 s/:*\$(srcdir):*/:/
26467 s/:*\${srcdir}:*/:/
26468 s/:*@srcdir@:*/:/
26469 s/^\([^=]*=[ ]*\):*/\1/
26470 s/:*$//
26471 s/^[^=]*=[ ]*$//
26472 }'
26473 fi
26474
26475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26476 fi # test -n "$CONFIG_FILES"
26477
26478 # Set up the scripts for CONFIG_HEADERS section.
26479 # No need to generate them if there are no CONFIG_HEADERS.
26480 # This happens for instance with `./config.status Makefile'.
26481 if test -n "$CONFIG_HEADERS"; then
26482 cat >"$tmp/defines.awk" <<\_ACAWK ||
26483 BEGIN {
26484 _ACEOF
26485
26486 # Transform confdefs.h into an awk script `defines.awk', embedded as
26487 # here-document in config.status, that substitutes the proper values into
26488 # config.h.in to produce config.h.
26489
26490 # Create a delimiter string that does not exist in confdefs.h, to ease
26491 # handling of long lines.
26492 ac_delim='%!_!# '
26493 for ac_last_try in false false :; do
26494 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26495 if test -z "$ac_t"; then
26496 break
26497 elif $ac_last_try; then
26498 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26499 else
26500 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26501 fi
26502 done
26503
26504 # For the awk script, D is an array of macro values keyed by name,
26505 # likewise P contains macro parameters if any. Preserve backslash
26506 # newline sequences.
26507
26508 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26509 sed -n '
26510 s/.\{148\}/&'"$ac_delim"'/g
26511 t rset
26512 :rset
26513 s/^[ ]*#[ ]*define[ ][ ]*/ /
26514 t def
26515 d
26516 :def
26517 s/\\$//
26518 t bsnl
26519 s/["\\]/\\&/g
26520 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26521 D["\1"]=" \3"/p
26522 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26523 d
26524 :bsnl
26525 s/["\\]/\\&/g
26526 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26527 D["\1"]=" \3\\\\\\n"\\/p
26528 t cont
26529 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26530 t cont
26531 d
26532 :cont
26533 n
26534 s/.\{148\}/&'"$ac_delim"'/g
26535 t clear
26536 :clear
26537 s/\\$//
26538 t bsnlc
26539 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26540 d
26541 :bsnlc
26542 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26543 b cont
26544 ' <confdefs.h | sed '
26545 s/'"$ac_delim"'/"\\\
26546 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26547
26548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26549 for (key in D) D_is_set[key] = 1
26550 FS = "\a"
26551 }
26552 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26553 line = \$ 0
26554 split(line, arg, " ")
26555 if (arg[1] == "#") {
26556 defundef = arg[2]
26557 mac1 = arg[3]
26558 } else {
26559 defundef = substr(arg[1], 2)
26560 mac1 = arg[2]
26561 }
26562 split(mac1, mac2, "(") #)
26563 macro = mac2[1]
26564 prefix = substr(line, 1, index(line, defundef) - 1)
26565 if (D_is_set[macro]) {
26566 # Preserve the white space surrounding the "#".
26567 print prefix "define", macro P[macro] D[macro]
26568 next
26569 } else {
26570 # Replace #undef with comments. This is necessary, for example,
26571 # in the case of _POSIX_SOURCE, which is predefined and required
26572 # on some systems where configure will not decide to define it.
26573 if (defundef == "undef") {
26574 print "/*", prefix defundef, macro, "*/"
26575 next
26576 }
26577 }
26578 }
26579 { print }
26580 _ACAWK
26581 _ACEOF
26582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26583 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26584 fi # test -n "$CONFIG_HEADERS"
26585
26586
26587 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
26588 shift
26589 for ac_tag
26590 do
26591 case $ac_tag in
26592 :[FHLC]) ac_mode=$ac_tag; continue;;
26593 esac
26594 case $ac_mode$ac_tag in
26595 :[FHL]*:*);;
26596 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26597 :[FH]-) ac_tag=-:-;;
26598 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26599 esac
26600 ac_save_IFS=$IFS
26601 IFS=:
26602 set x $ac_tag
26603 IFS=$ac_save_IFS
26604 shift
26605 ac_file=$1
26606 shift
26607
26608 case $ac_mode in
26609 :L) ac_source=$1;;
26610 :[FH])
26611 ac_file_inputs=
26612 for ac_f
26613 do
26614 case $ac_f in
26615 -) ac_f="$tmp/stdin";;
26616 *) # Look for the file first in the build tree, then in the source tree
26617 # (if the path is not absolute). The absolute path cannot be DOS-style,
26618 # because $ac_f cannot contain `:'.
26619 test -f "$ac_f" ||
26620 case $ac_f in
26621 [\\/$]*) false;;
26622 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26623 esac ||
26624 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26625 esac
26626 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26627 as_fn_append ac_file_inputs " '$ac_f'"
26628 done
26629
26630 # Let's still pretend it is `configure' which instantiates (i.e., don't
26631 # use $as_me), people would be surprised to read:
26632 # /* config.h. Generated by config.status. */
26633 configure_input='Generated from '`
26634 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26635 `' by configure.'
26636 if test x"$ac_file" != x-; then
26637 configure_input="$ac_file. $configure_input"
26638 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26639 $as_echo "$as_me: creating $ac_file" >&6;}
26640 fi
26641 # Neutralize special characters interpreted by sed in replacement strings.
26642 case $configure_input in #(
26643 *\&* | *\|* | *\\* )
26644 ac_sed_conf_input=`$as_echo "$configure_input" |
26645 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26646 *) ac_sed_conf_input=$configure_input;;
26647 esac
26648
26649 case $ac_tag in
26650 *:-:* | *:-) cat >"$tmp/stdin" \
26651 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26652 esac
26653 ;;
26654 esac
26655
26656 ac_dir=`$as_dirname -- "$ac_file" ||
26657 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26658 X"$ac_file" : 'X\(//\)[^/]' \| \
26659 X"$ac_file" : 'X\(//\)$' \| \
26660 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26661 $as_echo X"$ac_file" |
26662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26663 s//\1/
26664 q
26665 }
26666 /^X\(\/\/\)[^/].*/{
26667 s//\1/
26668 q
26669 }
26670 /^X\(\/\/\)$/{
26671 s//\1/
26672 q
26673 }
26674 /^X\(\/\).*/{
26675 s//\1/
26676 q
26677 }
26678 s/.*/./; q'`
26679 as_dir="$ac_dir"; as_fn_mkdir_p
26680 ac_builddir=.
26681
26682 case "$ac_dir" in
26683 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26684 *)
26685 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26686 # A ".." for each directory in $ac_dir_suffix.
26687 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26688 case $ac_top_builddir_sub in
26689 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26690 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26691 esac ;;
26692 esac
26693 ac_abs_top_builddir=$ac_pwd
26694 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26695 # for backward compatibility:
26696 ac_top_builddir=$ac_top_build_prefix
26697
26698 case $srcdir in
26699 .) # We are building in place.
26700 ac_srcdir=.
26701 ac_top_srcdir=$ac_top_builddir_sub
26702 ac_abs_top_srcdir=$ac_pwd ;;
26703 [\\/]* | ?:[\\/]* ) # Absolute name.
26704 ac_srcdir=$srcdir$ac_dir_suffix;
26705 ac_top_srcdir=$srcdir
26706 ac_abs_top_srcdir=$srcdir ;;
26707 *) # Relative name.
26708 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26709 ac_top_srcdir=$ac_top_build_prefix$srcdir
26710 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26711 esac
26712 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26713
26714
26715 case $ac_mode in
26716 :F)
26717 #
26718 # CONFIG_FILE
26719 #
26720
26721 case $INSTALL in
26722 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26723 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26724 esac
26725 ac_MKDIR_P=$MKDIR_P
26726 case $MKDIR_P in
26727 [\\/$]* | ?:[\\/]* ) ;;
26728 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26729 esac
26730 _ACEOF
26731
26732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26733 # If the template does not know about datarootdir, expand it.
26734 # FIXME: This hack should be removed a few years after 2.60.
26735 ac_datarootdir_hack=; ac_datarootdir_seen=
26736 ac_sed_dataroot='
26737 /datarootdir/ {
26738 p
26739 q
26740 }
26741 /@datadir@/p
26742 /@docdir@/p
26743 /@infodir@/p
26744 /@localedir@/p
26745 /@mandir@/p'
26746 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26747 *datarootdir*) ac_datarootdir_seen=yes;;
26748 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26750 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26751 _ACEOF
26752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26753 ac_datarootdir_hack='
26754 s&@datadir@&$datadir&g
26755 s&@docdir@&$docdir&g
26756 s&@infodir@&$infodir&g
26757 s&@localedir@&$localedir&g
26758 s&@mandir@&$mandir&g
26759 s&\\\${datarootdir}&$datarootdir&g' ;;
26760 esac
26761 _ACEOF
26762
26763 # Neutralize VPATH when `$srcdir' = `.'.
26764 # Shell code in configure.ac might set extrasub.
26765 # FIXME: do we really want to maintain this feature?
26766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26767 ac_sed_extra="$ac_vpsub
26768 $extrasub
26769 _ACEOF
26770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26771 :t
26772 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26773 s|@configure_input@|$ac_sed_conf_input|;t t
26774 s&@top_builddir@&$ac_top_builddir_sub&;t t
26775 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26776 s&@srcdir@&$ac_srcdir&;t t
26777 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26778 s&@top_srcdir@&$ac_top_srcdir&;t t
26779 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26780 s&@builddir@&$ac_builddir&;t t
26781 s&@abs_builddir@&$ac_abs_builddir&;t t
26782 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26783 s&@INSTALL@&$ac_INSTALL&;t t
26784 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26785 $ac_datarootdir_hack
26786 "
26787 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26788 || as_fn_error "could not create $ac_file" "$LINENO" 5
26789
26790 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26791 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26792 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26794 which seems to be undefined. Please make sure it is defined." >&5
26795 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26796 which seems to be undefined. Please make sure it is defined." >&2;}
26797
26798 rm -f "$tmp/stdin"
26799 case $ac_file in
26800 -) cat "$tmp/out" && rm -f "$tmp/out";;
26801 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26802 esac \
26803 || as_fn_error "could not create $ac_file" "$LINENO" 5
26804 ;;
26805 :H)
26806 #
26807 # CONFIG_HEADER
26808 #
26809 if test x"$ac_file" != x-; then
26810 {
26811 $as_echo "/* $configure_input */" \
26812 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26813 } >"$tmp/config.h" \
26814 || as_fn_error "could not create $ac_file" "$LINENO" 5
26815 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26816 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26817 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26818 else
26819 rm -f "$ac_file"
26820 mv "$tmp/config.h" "$ac_file" \
26821 || as_fn_error "could not create $ac_file" "$LINENO" 5
26822 fi
26823 else
26824 $as_echo "/* $configure_input */" \
26825 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26826 || as_fn_error "could not create -" "$LINENO" 5
26827 fi
26828 # Compute "$ac_file"'s index in $config_headers.
26829 _am_arg="$ac_file"
26830 _am_stamp_count=1
26831 for _am_header in $config_headers :; do
26832 case $_am_header in
26833 $_am_arg | $_am_arg:* )
26834 break ;;
26835 * )
26836 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26837 esac
26838 done
26839 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26840 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26841 X"$_am_arg" : 'X\(//\)[^/]' \| \
26842 X"$_am_arg" : 'X\(//\)$' \| \
26843 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26844 $as_echo X"$_am_arg" |
26845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26846 s//\1/
26847 q
26848 }
26849 /^X\(\/\/\)[^/].*/{
26850 s//\1/
26851 q
26852 }
26853 /^X\(\/\/\)$/{
26854 s//\1/
26855 q
26856 }
26857 /^X\(\/\).*/{
26858 s//\1/
26859 q
26860 }
26861 s/.*/./; q'`/stamp-h$_am_stamp_count
26862 ;;
26863 :L)
26864 #
26865 # CONFIG_LINK
26866 #
26867
26868 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
26869 :
26870 else
26871 # Prefer the file from the source tree if names are identical.
26872 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
26873 ac_source=$srcdir/$ac_source
26874 fi
26875
26876 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
26877 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
26878
26879 if test ! -r "$ac_source"; then
26880 as_fn_error "$ac_source: file not found" "$LINENO" 5
26881 fi
26882 rm -f "$ac_file"
26883
26884 # Try a relative symlink, then a hard link, then a copy.
26885 case $srcdir in
26886 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
26887 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
26888 esac
26889 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26890 ln "$ac_source" "$ac_file" 2>/dev/null ||
26891 cp -p "$ac_source" "$ac_file" ||
26892 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
26893 fi
26894 ;;
26895 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26896 $as_echo "$as_me: executing $ac_file commands" >&6;}
26897 ;;
26898 esac
26899
26900
26901 case $ac_file$ac_mode in
26902 "default-1":C)
26903 # Only add multilib support code if we just rebuilt the top-level
26904 # Makefile.
26905 case " $CONFIG_FILES " in
26906 *" Makefile "*)
26907 ac_file=Makefile . ${multi_basedir}/config-ml.in
26908 ;;
26909 esac ;;
26910 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26911 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26912 # are listed without --file. Let's play safe and only enable the eval
26913 # if we detect the quoting.
26914 case $CONFIG_FILES in
26915 *\'*) eval set x "$CONFIG_FILES" ;;
26916 *) set x $CONFIG_FILES ;;
26917 esac
26918 shift
26919 for mf
26920 do
26921 # Strip MF so we end up with the name of the file.
26922 mf=`echo "$mf" | sed -e 's/:.*$//'`
26923 # Check whether this is an Automake generated Makefile or not.
26924 # We used to match only the files named `Makefile.in', but
26925 # some people rename them; so instead we look at the file content.
26926 # Grep'ing the first line is not enough: some people post-process
26927 # each Makefile.in and add a new line on top of each file to say so.
26928 # Grep'ing the whole file is not good either: AIX grep has a line
26929 # limit of 2048, but all sed's we know have understand at least 4000.
26930 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26931 dirpart=`$as_dirname -- "$mf" ||
26932 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26933 X"$mf" : 'X\(//\)[^/]' \| \
26934 X"$mf" : 'X\(//\)$' \| \
26935 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26936 $as_echo X"$mf" |
26937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26938 s//\1/
26939 q
26940 }
26941 /^X\(\/\/\)[^/].*/{
26942 s//\1/
26943 q
26944 }
26945 /^X\(\/\/\)$/{
26946 s//\1/
26947 q
26948 }
26949 /^X\(\/\).*/{
26950 s//\1/
26951 q
26952 }
26953 s/.*/./; q'`
26954 else
26955 continue
26956 fi
26957 # Extract the definition of DEPDIR, am__include, and am__quote
26958 # from the Makefile without running `make'.
26959 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26960 test -z "$DEPDIR" && continue
26961 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26962 test -z "am__include" && continue
26963 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26964 # When using ansi2knr, U may be empty or an underscore; expand it
26965 U=`sed -n 's/^U = //p' < "$mf"`
26966 # Find all dependency output files, they are included files with
26967 # $(DEPDIR) in their names. We invoke sed twice because it is the
26968 # simplest approach to changing $(DEPDIR) to its actual value in the
26969 # expansion.
26970 for file in `sed -n "
26971 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26972 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26973 # Make sure the directory exists.
26974 test -f "$dirpart/$file" && continue
26975 fdir=`$as_dirname -- "$file" ||
26976 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26977 X"$file" : 'X\(//\)[^/]' \| \
26978 X"$file" : 'X\(//\)$' \| \
26979 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26980 $as_echo X"$file" |
26981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26982 s//\1/
26983 q
26984 }
26985 /^X\(\/\/\)[^/].*/{
26986 s//\1/
26987 q
26988 }
26989 /^X\(\/\/\)$/{
26990 s//\1/
26991 q
26992 }
26993 /^X\(\/\).*/{
26994 s//\1/
26995 q
26996 }
26997 s/.*/./; q'`
26998 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26999 # echo "creating $dirpart/$file"
27000 echo '# dummy' > "$dirpart/$file"
27001 done
27002 done
27003 }
27004 ;;
27005 "libtool":C)
27006
27007 # See if we are running on zsh, and set the options which allow our
27008 # commands through without removal of \ escapes.
27009 if test -n "${ZSH_VERSION+set}" ; then
27010 setopt NO_GLOB_SUBST
27011 fi
27012
27013 cfgfile="${ofile}T"
27014 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27015 $RM "$cfgfile"
27016
27017 cat <<_LT_EOF >> "$cfgfile"
27018 #! $SHELL
27019
27020 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
27021 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
27022 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27023 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
27024 #
27025 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
27026 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
27027 # Written by Gordon Matzigkeit, 1996
27028 #
27029 # This file is part of GNU Libtool.
27030 #
27031 # GNU Libtool is free software; you can redistribute it and/or
27032 # modify it under the terms of the GNU General Public License as
27033 # published by the Free Software Foundation; either version 2 of
27034 # the License, or (at your option) any later version.
27035 #
27036 # As a special exception to the GNU General Public License,
27037 # if you distribute this file as part of a program or library that
27038 # is built using GNU Libtool, you may include this file under the
27039 # same distribution terms that you use for the rest of that program.
27040 #
27041 # GNU Libtool is distributed in the hope that it will be useful,
27042 # but WITHOUT ANY WARRANTY; without even the implied warranty of
27043 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27044 # GNU General Public License for more details.
27045 #
27046 # You should have received a copy of the GNU General Public License
27047 # along with GNU Libtool; see the file COPYING. If not, a copy
27048 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27049 # obtained by writing to the Free Software Foundation, Inc.,
27050 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27051
27052
27053 # The names of the tagged configurations supported by this script.
27054 available_tags="CXX GCJ "
27055
27056 # ### BEGIN LIBTOOL CONFIG
27057
27058 # Which release of libtool.m4 was used?
27059 macro_version=$macro_version
27060 macro_revision=$macro_revision
27061
27062 # Whether or not to build shared libraries.
27063 build_libtool_libs=$enable_shared
27064
27065 # Whether or not to build static libraries.
27066 build_old_libs=$enable_static
27067
27068 # What type of objects to build.
27069 pic_mode=$pic_mode
27070
27071 # Whether or not to optimize for fast installation.
27072 fast_install=$enable_fast_install
27073
27074 # Shell to use when invoking shell scripts.
27075 SHELL=$lt_SHELL
27076
27077 # An echo program that protects backslashes.
27078 ECHO=$lt_ECHO
27079
27080 # The host system.
27081 host_alias=$host_alias
27082 host=$host
27083 host_os=$host_os
27084
27085 # The build system.
27086 build_alias=$build_alias
27087 build=$build
27088 build_os=$build_os
27089
27090 # A sed program that does not truncate output.
27091 SED=$lt_SED
27092
27093 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27094 Xsed="\$SED -e 1s/^X//"
27095
27096 # A grep program that handles long lines.
27097 GREP=$lt_GREP
27098
27099 # An ERE matcher.
27100 EGREP=$lt_EGREP
27101
27102 # A literal string matcher.
27103 FGREP=$lt_FGREP
27104
27105 # A BSD- or MS-compatible name lister.
27106 NM=$lt_NM
27107
27108 # Whether we need soft or hard links.
27109 LN_S=$lt_LN_S
27110
27111 # What is the maximum length of a command?
27112 max_cmd_len=$max_cmd_len
27113
27114 # Object file suffix (normally "o").
27115 objext=$ac_objext
27116
27117 # Executable file suffix (normally "").
27118 exeext=$exeext
27119
27120 # whether the shell understands "unset".
27121 lt_unset=$lt_unset
27122
27123 # turn spaces into newlines.
27124 SP2NL=$lt_lt_SP2NL
27125
27126 # turn newlines into spaces.
27127 NL2SP=$lt_lt_NL2SP
27128
27129 # An object symbol dumper.
27130 OBJDUMP=$lt_OBJDUMP
27131
27132 # Method to check whether dependent libraries are shared objects.
27133 deplibs_check_method=$lt_deplibs_check_method
27134
27135 # Command to use when deplibs_check_method == "file_magic".
27136 file_magic_cmd=$lt_file_magic_cmd
27137
27138 # The archiver.
27139 AR=$lt_AR
27140 AR_FLAGS=$lt_AR_FLAGS
27141
27142 # A symbol stripping program.
27143 STRIP=$lt_STRIP
27144
27145 # Commands used to install an old-style archive.
27146 RANLIB=$lt_RANLIB
27147 old_postinstall_cmds=$lt_old_postinstall_cmds
27148 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27149
27150 # Whether to use a lock for old archive extraction.
27151 lock_old_archive_extraction=$lock_old_archive_extraction
27152
27153 # A C compiler.
27154 LTCC=$lt_CC
27155
27156 # LTCC compiler flags.
27157 LTCFLAGS=$lt_CFLAGS
27158
27159 # Take the output of nm and produce a listing of raw symbols and C names.
27160 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27161
27162 # Transform the output of nm in a proper C declaration.
27163 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27164
27165 # Transform the output of nm in a C name address pair.
27166 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27167
27168 # Transform the output of nm in a C name address pair when lib prefix is needed.
27169 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27170
27171 # The name of the directory that contains temporary libtool files.
27172 objdir=$objdir
27173
27174 # Used to examine libraries when file_magic_cmd begins with "file".
27175 MAGIC_CMD=$MAGIC_CMD
27176
27177 # Must we lock files when doing compilation?
27178 need_locks=$lt_need_locks
27179
27180 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27181 DSYMUTIL=$lt_DSYMUTIL
27182
27183 # Tool to change global to local symbols on Mac OS X.
27184 NMEDIT=$lt_NMEDIT
27185
27186 # Tool to manipulate fat objects and archives on Mac OS X.
27187 LIPO=$lt_LIPO
27188
27189 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27190 OTOOL=$lt_OTOOL
27191
27192 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27193 OTOOL64=$lt_OTOOL64
27194
27195 # Old archive suffix (normally "a").
27196 libext=$libext
27197
27198 # Shared library suffix (normally ".so").
27199 shrext_cmds=$lt_shrext_cmds
27200
27201 # The commands to extract the exported symbol list from a shared archive.
27202 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27203
27204 # Variables whose values should be saved in libtool wrapper scripts and
27205 # restored at link time.
27206 variables_saved_for_relink=$lt_variables_saved_for_relink
27207
27208 # Do we need the "lib" prefix for modules?
27209 need_lib_prefix=$need_lib_prefix
27210
27211 # Do we need a version for libraries?
27212 need_version=$need_version
27213
27214 # Library versioning type.
27215 version_type=$version_type
27216
27217 # Shared library runtime path variable.
27218 runpath_var=$runpath_var
27219
27220 # Shared library path variable.
27221 shlibpath_var=$shlibpath_var
27222
27223 # Is shlibpath searched before the hard-coded library search path?
27224 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27225
27226 # Format of library name prefix.
27227 libname_spec=$lt_libname_spec
27228
27229 # List of archive names. First name is the real one, the rest are links.
27230 # The last name is the one that the linker finds with -lNAME
27231 library_names_spec=$lt_library_names_spec
27232
27233 # The coded name of the library, if different from the real name.
27234 soname_spec=$lt_soname_spec
27235
27236 # Permission mode override for installation of shared libraries.
27237 install_override_mode=$lt_install_override_mode
27238
27239 # Command to use after installation of a shared archive.
27240 postinstall_cmds=$lt_postinstall_cmds
27241
27242 # Command to use after uninstallation of a shared archive.
27243 postuninstall_cmds=$lt_postuninstall_cmds
27244
27245 # Commands used to finish a libtool library installation in a directory.
27246 finish_cmds=$lt_finish_cmds
27247
27248 # As "finish_cmds", except a single script fragment to be evaled but
27249 # not shown.
27250 finish_eval=$lt_finish_eval
27251
27252 # Whether we should hardcode library paths into libraries.
27253 hardcode_into_libs=$hardcode_into_libs
27254
27255 # Compile-time system search path for libraries.
27256 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27257
27258 # Run-time system search path for libraries.
27259 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27260
27261 # Whether dlopen is supported.
27262 dlopen_support=$enable_dlopen
27263
27264 # Whether dlopen of programs is supported.
27265 dlopen_self=$enable_dlopen_self
27266
27267 # Whether dlopen of statically linked programs is supported.
27268 dlopen_self_static=$enable_dlopen_self_static
27269
27270 # Commands to strip libraries.
27271 old_striplib=$lt_old_striplib
27272 striplib=$lt_striplib
27273
27274
27275 # The linker used to build libraries.
27276 LD=$lt_LD
27277
27278 # How to create reloadable object files.
27279 reload_flag=$lt_reload_flag
27280 reload_cmds=$lt_reload_cmds
27281
27282 # Commands used to build an old-style archive.
27283 old_archive_cmds=$lt_old_archive_cmds
27284
27285 # A language specific compiler.
27286 CC=$lt_compiler
27287
27288 # Is the compiler the GNU compiler?
27289 with_gcc=$GCC
27290
27291 # Compiler flag to turn off builtin functions.
27292 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27293
27294 # How to pass a linker flag through the compiler.
27295 wl=$lt_lt_prog_compiler_wl
27296
27297 # Additional compiler flags for building library objects.
27298 pic_flag=$lt_lt_prog_compiler_pic
27299
27300 # Compiler flag to prevent dynamic linking.
27301 link_static_flag=$lt_lt_prog_compiler_static
27302
27303 # Does compiler simultaneously support -c and -o options?
27304 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27305
27306 # Whether or not to add -lc for building shared libraries.
27307 build_libtool_need_lc=$archive_cmds_need_lc
27308
27309 # Whether or not to disallow shared libs when runtime libs are static.
27310 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27311
27312 # Compiler flag to allow reflexive dlopens.
27313 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27314
27315 # Compiler flag to generate shared objects directly from archives.
27316 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27317
27318 # Whether the compiler copes with passing no objects directly.
27319 compiler_needs_object=$lt_compiler_needs_object
27320
27321 # Create an old-style archive from a shared archive.
27322 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27323
27324 # Create a temporary old-style archive to link instead of a shared archive.
27325 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27326
27327 # Commands used to build a shared archive.
27328 archive_cmds=$lt_archive_cmds
27329 archive_expsym_cmds=$lt_archive_expsym_cmds
27330
27331 # Commands used to build a loadable module if different from building
27332 # a shared archive.
27333 module_cmds=$lt_module_cmds
27334 module_expsym_cmds=$lt_module_expsym_cmds
27335
27336 # Whether we are building with GNU ld or not.
27337 with_gnu_ld=$lt_with_gnu_ld
27338
27339 # Flag that allows shared libraries with undefined symbols to be built.
27340 allow_undefined_flag=$lt_allow_undefined_flag
27341
27342 # Flag that enforces no undefined symbols.
27343 no_undefined_flag=$lt_no_undefined_flag
27344
27345 # Flag to hardcode \$libdir into a binary during linking.
27346 # This must work even if \$libdir does not exist
27347 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27348
27349 # If ld is used when linking, flag to hardcode \$libdir into a binary
27350 # during linking. This must work even if \$libdir does not exist.
27351 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27352
27353 # Whether we need a single "-rpath" flag with a separated argument.
27354 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27355
27356 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27357 # DIR into the resulting binary.
27358 hardcode_direct=$hardcode_direct
27359
27360 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27361 # DIR into the resulting binary and the resulting library dependency is
27362 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27363 # library is relocated.
27364 hardcode_direct_absolute=$hardcode_direct_absolute
27365
27366 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27367 # into the resulting binary.
27368 hardcode_minus_L=$hardcode_minus_L
27369
27370 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27371 # into the resulting binary.
27372 hardcode_shlibpath_var=$hardcode_shlibpath_var
27373
27374 # Set to "yes" if building a shared library automatically hardcodes DIR
27375 # into the library and all subsequent libraries and executables linked
27376 # against it.
27377 hardcode_automatic=$hardcode_automatic
27378
27379 # Set to yes if linker adds runtime paths of dependent libraries
27380 # to runtime path list.
27381 inherit_rpath=$inherit_rpath
27382
27383 # Whether libtool must link a program against all its dependency libraries.
27384 link_all_deplibs=$link_all_deplibs
27385
27386 # Fix the shell variable \$srcfile for the compiler.
27387 fix_srcfile_path=$lt_fix_srcfile_path
27388
27389 # Set to "yes" if exported symbols are required.
27390 always_export_symbols=$always_export_symbols
27391
27392 # The commands to list exported symbols.
27393 export_symbols_cmds=$lt_export_symbols_cmds
27394
27395 # Symbols that should not be listed in the preloaded symbols.
27396 exclude_expsyms=$lt_exclude_expsyms
27397
27398 # Symbols that must always be exported.
27399 include_expsyms=$lt_include_expsyms
27400
27401 # Commands necessary for linking programs (against libraries) with templates.
27402 prelink_cmds=$lt_prelink_cmds
27403
27404 # Specify filename containing input files.
27405 file_list_spec=$lt_file_list_spec
27406
27407 # How to hardcode a shared library path into an executable.
27408 hardcode_action=$hardcode_action
27409
27410 # The directories searched by this compiler when creating a shared library.
27411 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27412
27413 # Dependencies to place before and after the objects being linked to
27414 # create a shared library.
27415 predep_objects=$lt_predep_objects
27416 postdep_objects=$lt_postdep_objects
27417 predeps=$lt_predeps
27418 postdeps=$lt_postdeps
27419
27420 # The library search path used internally by the compiler when linking
27421 # a shared library.
27422 compiler_lib_search_path=$lt_compiler_lib_search_path
27423
27424 # ### END LIBTOOL CONFIG
27425
27426 _LT_EOF
27427
27428 case $host_os in
27429 aix3*)
27430 cat <<\_LT_EOF >> "$cfgfile"
27431 # AIX sometimes has problems with the GCC collect2 program. For some
27432 # reason, if we set the COLLECT_NAMES environment variable, the problems
27433 # vanish in a puff of smoke.
27434 if test "X${COLLECT_NAMES+set}" != Xset; then
27435 COLLECT_NAMES=
27436 export COLLECT_NAMES
27437 fi
27438 _LT_EOF
27439 ;;
27440 esac
27441
27442
27443 ltmain="$ac_aux_dir/ltmain.sh"
27444
27445
27446 # We use sed instead of cat because bash on DJGPP gets confused if
27447 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27448 # text mode, it properly converts lines to CR/LF. This bash problem
27449 # is reportedly fixed, but why not run on old versions too?
27450 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27451 || (rm -f "$cfgfile"; exit 1)
27452
27453 case $xsi_shell in
27454 yes)
27455 cat << \_LT_EOF >> "$cfgfile"
27456
27457 # func_dirname file append nondir_replacement
27458 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27459 # otherwise set result to NONDIR_REPLACEMENT.
27460 func_dirname ()
27461 {
27462 case ${1} in
27463 */*) func_dirname_result="${1%/*}${2}" ;;
27464 * ) func_dirname_result="${3}" ;;
27465 esac
27466 }
27467
27468 # func_basename file
27469 func_basename ()
27470 {
27471 func_basename_result="${1##*/}"
27472 }
27473
27474 # func_dirname_and_basename file append nondir_replacement
27475 # perform func_basename and func_dirname in a single function
27476 # call:
27477 # dirname: Compute the dirname of FILE. If nonempty,
27478 # add APPEND to the result, otherwise set result
27479 # to NONDIR_REPLACEMENT.
27480 # value returned in "$func_dirname_result"
27481 # basename: Compute filename of FILE.
27482 # value retuned in "$func_basename_result"
27483 # Implementation must be kept synchronized with func_dirname
27484 # and func_basename. For efficiency, we do not delegate to
27485 # those functions but instead duplicate the functionality here.
27486 func_dirname_and_basename ()
27487 {
27488 case ${1} in
27489 */*) func_dirname_result="${1%/*}${2}" ;;
27490 * ) func_dirname_result="${3}" ;;
27491 esac
27492 func_basename_result="${1##*/}"
27493 }
27494
27495 # func_stripname prefix suffix name
27496 # strip PREFIX and SUFFIX off of NAME.
27497 # PREFIX and SUFFIX must not contain globbing or regex special
27498 # characters, hashes, percent signs, but SUFFIX may contain a leading
27499 # dot (in which case that matches only a dot).
27500 func_stripname ()
27501 {
27502 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27503 # positional parameters, so assign one to ordinary parameter first.
27504 func_stripname_result=${3}
27505 func_stripname_result=${func_stripname_result#"${1}"}
27506 func_stripname_result=${func_stripname_result%"${2}"}
27507 }
27508
27509 # func_opt_split
27510 func_opt_split ()
27511 {
27512 func_opt_split_opt=${1%%=*}
27513 func_opt_split_arg=${1#*=}
27514 }
27515
27516 # func_lo2o object
27517 func_lo2o ()
27518 {
27519 case ${1} in
27520 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27521 *) func_lo2o_result=${1} ;;
27522 esac
27523 }
27524
27525 # func_xform libobj-or-source
27526 func_xform ()
27527 {
27528 func_xform_result=${1%.*}.lo
27529 }
27530
27531 # func_arith arithmetic-term...
27532 func_arith ()
27533 {
27534 func_arith_result=$(( $* ))
27535 }
27536
27537 # func_len string
27538 # STRING may not start with a hyphen.
27539 func_len ()
27540 {
27541 func_len_result=${#1}
27542 }
27543
27544 _LT_EOF
27545 ;;
27546 *) # Bourne compatible functions.
27547 cat << \_LT_EOF >> "$cfgfile"
27548
27549 # func_dirname file append nondir_replacement
27550 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27551 # otherwise set result to NONDIR_REPLACEMENT.
27552 func_dirname ()
27553 {
27554 # Extract subdirectory from the argument.
27555 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
27556 if test "X$func_dirname_result" = "X${1}"; then
27557 func_dirname_result="${3}"
27558 else
27559 func_dirname_result="$func_dirname_result${2}"
27560 fi
27561 }
27562
27563 # func_basename file
27564 func_basename ()
27565 {
27566 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
27567 }
27568
27569
27570 # func_stripname prefix suffix name
27571 # strip PREFIX and SUFFIX off of NAME.
27572 # PREFIX and SUFFIX must not contain globbing or regex special
27573 # characters, hashes, percent signs, but SUFFIX may contain a leading
27574 # dot (in which case that matches only a dot).
27575 # func_strip_suffix prefix name
27576 func_stripname ()
27577 {
27578 case ${2} in
27579 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
27580 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
27581 esac
27582 }
27583
27584 # sed scripts:
27585 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27586 my_sed_long_arg='1s/^-[^=]*=//'
27587
27588 # func_opt_split
27589 func_opt_split ()
27590 {
27591 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
27592 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
27593 }
27594
27595 # func_lo2o object
27596 func_lo2o ()
27597 {
27598 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
27599 }
27600
27601 # func_xform libobj-or-source
27602 func_xform ()
27603 {
27604 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
27605 }
27606
27607 # func_arith arithmetic-term...
27608 func_arith ()
27609 {
27610 func_arith_result=`expr "$@"`
27611 }
27612
27613 # func_len string
27614 # STRING may not start with a hyphen.
27615 func_len ()
27616 {
27617 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27618 }
27619
27620 _LT_EOF
27621 esac
27622
27623 case $lt_shell_append in
27624 yes)
27625 cat << \_LT_EOF >> "$cfgfile"
27626
27627 # func_append var value
27628 # Append VALUE to the end of shell variable VAR.
27629 func_append ()
27630 {
27631 eval "$1+=\$2"
27632 }
27633 _LT_EOF
27634 ;;
27635 *)
27636 cat << \_LT_EOF >> "$cfgfile"
27637
27638 # func_append var value
27639 # Append VALUE to the end of shell variable VAR.
27640 func_append ()
27641 {
27642 eval "$1=\$$1\$2"
27643 }
27644
27645 _LT_EOF
27646 ;;
27647 esac
27648
27649
27650 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27651 || (rm -f "$cfgfile"; exit 1)
27652
27653 mv -f "$cfgfile" "$ofile" ||
27654 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27655 chmod +x "$ofile"
27656
27657
27658 cat <<_LT_EOF >> "$ofile"
27659
27660 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27661
27662 # The linker used to build libraries.
27663 LD=$lt_LD_CXX
27664
27665 # How to create reloadable object files.
27666 reload_flag=$lt_reload_flag_CXX
27667 reload_cmds=$lt_reload_cmds_CXX
27668
27669 # Commands used to build an old-style archive.
27670 old_archive_cmds=$lt_old_archive_cmds_CXX
27671
27672 # A language specific compiler.
27673 CC=$lt_compiler_CXX
27674
27675 # Is the compiler the GNU compiler?
27676 with_gcc=$GCC_CXX
27677
27678 # Compiler flag to turn off builtin functions.
27679 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27680
27681 # How to pass a linker flag through the compiler.
27682 wl=$lt_lt_prog_compiler_wl_CXX
27683
27684 # Additional compiler flags for building library objects.
27685 pic_flag=$lt_lt_prog_compiler_pic_CXX
27686
27687 # Compiler flag to prevent dynamic linking.
27688 link_static_flag=$lt_lt_prog_compiler_static_CXX
27689
27690 # Does compiler simultaneously support -c and -o options?
27691 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27692
27693 # Whether or not to add -lc for building shared libraries.
27694 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27695
27696 # Whether or not to disallow shared libs when runtime libs are static.
27697 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27698
27699 # Compiler flag to allow reflexive dlopens.
27700 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27701
27702 # Compiler flag to generate shared objects directly from archives.
27703 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27704
27705 # Whether the compiler copes with passing no objects directly.
27706 compiler_needs_object=$lt_compiler_needs_object_CXX
27707
27708 # Create an old-style archive from a shared archive.
27709 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27710
27711 # Create a temporary old-style archive to link instead of a shared archive.
27712 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27713
27714 # Commands used to build a shared archive.
27715 archive_cmds=$lt_archive_cmds_CXX
27716 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27717
27718 # Commands used to build a loadable module if different from building
27719 # a shared archive.
27720 module_cmds=$lt_module_cmds_CXX
27721 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27722
27723 # Whether we are building with GNU ld or not.
27724 with_gnu_ld=$lt_with_gnu_ld_CXX
27725
27726 # Flag that allows shared libraries with undefined symbols to be built.
27727 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27728
27729 # Flag that enforces no undefined symbols.
27730 no_undefined_flag=$lt_no_undefined_flag_CXX
27731
27732 # Flag to hardcode \$libdir into a binary during linking.
27733 # This must work even if \$libdir does not exist
27734 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27735
27736 # If ld is used when linking, flag to hardcode \$libdir into a binary
27737 # during linking. This must work even if \$libdir does not exist.
27738 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27739
27740 # Whether we need a single "-rpath" flag with a separated argument.
27741 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27742
27743 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27744 # DIR into the resulting binary.
27745 hardcode_direct=$hardcode_direct_CXX
27746
27747 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27748 # DIR into the resulting binary and the resulting library dependency is
27749 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27750 # library is relocated.
27751 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27752
27753 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27754 # into the resulting binary.
27755 hardcode_minus_L=$hardcode_minus_L_CXX
27756
27757 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27758 # into the resulting binary.
27759 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27760
27761 # Set to "yes" if building a shared library automatically hardcodes DIR
27762 # into the library and all subsequent libraries and executables linked
27763 # against it.
27764 hardcode_automatic=$hardcode_automatic_CXX
27765
27766 # Set to yes if linker adds runtime paths of dependent libraries
27767 # to runtime path list.
27768 inherit_rpath=$inherit_rpath_CXX
27769
27770 # Whether libtool must link a program against all its dependency libraries.
27771 link_all_deplibs=$link_all_deplibs_CXX
27772
27773 # Fix the shell variable \$srcfile for the compiler.
27774 fix_srcfile_path=$lt_fix_srcfile_path_CXX
27775
27776 # Set to "yes" if exported symbols are required.
27777 always_export_symbols=$always_export_symbols_CXX
27778
27779 # The commands to list exported symbols.
27780 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27781
27782 # Symbols that should not be listed in the preloaded symbols.
27783 exclude_expsyms=$lt_exclude_expsyms_CXX
27784
27785 # Symbols that must always be exported.
27786 include_expsyms=$lt_include_expsyms_CXX
27787
27788 # Commands necessary for linking programs (against libraries) with templates.
27789 prelink_cmds=$lt_prelink_cmds_CXX
27790
27791 # Specify filename containing input files.
27792 file_list_spec=$lt_file_list_spec_CXX
27793
27794 # How to hardcode a shared library path into an executable.
27795 hardcode_action=$hardcode_action_CXX
27796
27797 # The directories searched by this compiler when creating a shared library.
27798 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27799
27800 # Dependencies to place before and after the objects being linked to
27801 # create a shared library.
27802 predep_objects=$lt_predep_objects_CXX
27803 postdep_objects=$lt_postdep_objects_CXX
27804 predeps=$lt_predeps_CXX
27805 postdeps=$lt_postdeps_CXX
27806
27807 # The library search path used internally by the compiler when linking
27808 # a shared library.
27809 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27810
27811 # ### END LIBTOOL TAG CONFIG: CXX
27812 _LT_EOF
27813
27814
27815 cat <<_LT_EOF >> "$ofile"
27816
27817 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
27818
27819 # The linker used to build libraries.
27820 LD=$lt_LD_GCJ
27821
27822 # How to create reloadable object files.
27823 reload_flag=$lt_reload_flag_GCJ
27824 reload_cmds=$lt_reload_cmds_GCJ
27825
27826 # Commands used to build an old-style archive.
27827 old_archive_cmds=$lt_old_archive_cmds_GCJ
27828
27829 # A language specific compiler.
27830 CC=$lt_compiler_GCJ
27831
27832 # Is the compiler the GNU compiler?
27833 with_gcc=$GCC_GCJ
27834
27835 # Compiler flag to turn off builtin functions.
27836 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
27837
27838 # How to pass a linker flag through the compiler.
27839 wl=$lt_lt_prog_compiler_wl_GCJ
27840
27841 # Additional compiler flags for building library objects.
27842 pic_flag=$lt_lt_prog_compiler_pic_GCJ
27843
27844 # Compiler flag to prevent dynamic linking.
27845 link_static_flag=$lt_lt_prog_compiler_static_GCJ
27846
27847 # Does compiler simultaneously support -c and -o options?
27848 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
27849
27850 # Whether or not to add -lc for building shared libraries.
27851 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
27852
27853 # Whether or not to disallow shared libs when runtime libs are static.
27854 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
27855
27856 # Compiler flag to allow reflexive dlopens.
27857 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
27858
27859 # Compiler flag to generate shared objects directly from archives.
27860 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
27861
27862 # Whether the compiler copes with passing no objects directly.
27863 compiler_needs_object=$lt_compiler_needs_object_GCJ
27864
27865 # Create an old-style archive from a shared archive.
27866 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
27867
27868 # Create a temporary old-style archive to link instead of a shared archive.
27869 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
27870
27871 # Commands used to build a shared archive.
27872 archive_cmds=$lt_archive_cmds_GCJ
27873 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
27874
27875 # Commands used to build a loadable module if different from building
27876 # a shared archive.
27877 module_cmds=$lt_module_cmds_GCJ
27878 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
27879
27880 # Whether we are building with GNU ld or not.
27881 with_gnu_ld=$lt_with_gnu_ld_GCJ
27882
27883 # Flag that allows shared libraries with undefined symbols to be built.
27884 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
27885
27886 # Flag that enforces no undefined symbols.
27887 no_undefined_flag=$lt_no_undefined_flag_GCJ
27888
27889 # Flag to hardcode \$libdir into a binary during linking.
27890 # This must work even if \$libdir does not exist
27891 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
27892
27893 # If ld is used when linking, flag to hardcode \$libdir into a binary
27894 # during linking. This must work even if \$libdir does not exist.
27895 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
27896
27897 # Whether we need a single "-rpath" flag with a separated argument.
27898 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
27899
27900 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27901 # DIR into the resulting binary.
27902 hardcode_direct=$hardcode_direct_GCJ
27903
27904 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27905 # DIR into the resulting binary and the resulting library dependency is
27906 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27907 # library is relocated.
27908 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
27909
27910 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27911 # into the resulting binary.
27912 hardcode_minus_L=$hardcode_minus_L_GCJ
27913
27914 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27915 # into the resulting binary.
27916 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
27917
27918 # Set to "yes" if building a shared library automatically hardcodes DIR
27919 # into the library and all subsequent libraries and executables linked
27920 # against it.
27921 hardcode_automatic=$hardcode_automatic_GCJ
27922
27923 # Set to yes if linker adds runtime paths of dependent libraries
27924 # to runtime path list.
27925 inherit_rpath=$inherit_rpath_GCJ
27926
27927 # Whether libtool must link a program against all its dependency libraries.
27928 link_all_deplibs=$link_all_deplibs_GCJ
27929
27930 # Fix the shell variable \$srcfile for the compiler.
27931 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
27932
27933 # Set to "yes" if exported symbols are required.
27934 always_export_symbols=$always_export_symbols_GCJ
27935
27936 # The commands to list exported symbols.
27937 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
27938
27939 # Symbols that should not be listed in the preloaded symbols.
27940 exclude_expsyms=$lt_exclude_expsyms_GCJ
27941
27942 # Symbols that must always be exported.
27943 include_expsyms=$lt_include_expsyms_GCJ
27944
27945 # Commands necessary for linking programs (against libraries) with templates.
27946 prelink_cmds=$lt_prelink_cmds_GCJ
27947
27948 # Specify filename containing input files.
27949 file_list_spec=$lt_file_list_spec_GCJ
27950
27951 # How to hardcode a shared library path into an executable.
27952 hardcode_action=$hardcode_action_GCJ
27953
27954 # The directories searched by this compiler when creating a shared library.
27955 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
27956
27957 # Dependencies to place before and after the objects being linked to
27958 # create a shared library.
27959 predep_objects=$lt_predep_objects_GCJ
27960 postdep_objects=$lt_postdep_objects_GCJ
27961 predeps=$lt_predeps_GCJ
27962 postdeps=$lt_postdeps_GCJ
27963
27964 # The library search path used internally by the compiler when linking
27965 # a shared library.
27966 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
27967
27968 # ### END LIBTOOL TAG CONFIG: GCJ
27969 _LT_EOF
27970
27971 ;;
27972 "scripts/jar":F) chmod +x scripts/jar ;;
27973
27974 esac
27975 done # for ac_tag
27976
27977
27978 as_fn_exit 0
27979 _ACEOF
27980 ac_clean_files=$ac_clean_files_save
27981
27982 test $ac_write_fail = 0 ||
27983 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27984
27985
27986 # configure is writing to config.log, and then calls config.status.
27987 # config.status does its own redirection, appending to config.log.
27988 # Unfortunately, on DOS this fails, as config.log is still kept open
27989 # by configure, so config.status won't be able to write to it; its
27990 # output is simply discarded. So we exec the FD to /dev/null,
27991 # effectively closing config.log, so it can be properly (re)opened and
27992 # appended to by config.status. When coming back to configure, we
27993 # need to make the FD available again.
27994 if test "$no_create" != yes; then
27995 ac_cs_success=:
27996 ac_config_status_args=
27997 test "$silent" = yes &&
27998 ac_config_status_args="$ac_config_status_args --quiet"
27999 exec 5>/dev/null
28000 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28001 exec 5>>config.log
28002 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28003 # would make configure fail if this is the last instruction.
28004 $ac_cs_success || as_fn_exit $?
28005 fi
28006
28007 #
28008 # CONFIG_SUBDIRS section.
28009 #
28010 if test "$no_recursion" != yes; then
28011
28012 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
28013 # so they do not pile up.
28014 ac_sub_configure_args=
28015 ac_prev=
28016 eval "set x $ac_configure_args"
28017 shift
28018 for ac_arg
28019 do
28020 if test -n "$ac_prev"; then
28021 ac_prev=
28022 continue
28023 fi
28024 case $ac_arg in
28025 -cache-file | --cache-file | --cache-fil | --cache-fi \
28026 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
28027 ac_prev=cache_file ;;
28028 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
28029 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
28030 | --c=*)
28031 ;;
28032 --config-cache | -C)
28033 ;;
28034 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
28035 ac_prev=srcdir ;;
28036 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
28037 ;;
28038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28039 ac_prev=prefix ;;
28040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28041 ;;
28042 --disable-option-checking)
28043 ;;
28044 *)
28045 case $ac_arg in
28046 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28047 esac
28048 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
28049 esac
28050 done
28051
28052 # Always prepend --prefix to ensure using the same prefix
28053 # in subdir configurations.
28054 ac_arg="--prefix=$prefix"
28055 case $ac_arg in
28056 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28057 esac
28058 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
28059
28060 # Pass --silent
28061 if test "$silent" = yes; then
28062 ac_sub_configure_args="--silent $ac_sub_configure_args"
28063 fi
28064
28065 # Always prepend --disable-option-checking to silence warnings, since
28066 # different subdirs can have different --enable and --with options.
28067 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
28068
28069 ac_popdir=`pwd`
28070 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
28071
28072 # Do not complain, so a configure script can configure whichever
28073 # parts of a large source tree are present.
28074 test -d "$srcdir/$ac_dir" || continue
28075
28076 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
28077 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
28078 $as_echo "$ac_msg" >&6
28079 as_dir="$ac_dir"; as_fn_mkdir_p
28080 ac_builddir=.
28081
28082 case "$ac_dir" in
28083 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28084 *)
28085 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28086 # A ".." for each directory in $ac_dir_suffix.
28087 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28088 case $ac_top_builddir_sub in
28089 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28090 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28091 esac ;;
28092 esac
28093 ac_abs_top_builddir=$ac_pwd
28094 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28095 # for backward compatibility:
28096 ac_top_builddir=$ac_top_build_prefix
28097
28098 case $srcdir in
28099 .) # We are building in place.
28100 ac_srcdir=.
28101 ac_top_srcdir=$ac_top_builddir_sub
28102 ac_abs_top_srcdir=$ac_pwd ;;
28103 [\\/]* | ?:[\\/]* ) # Absolute name.
28104 ac_srcdir=$srcdir$ac_dir_suffix;
28105 ac_top_srcdir=$srcdir
28106 ac_abs_top_srcdir=$srcdir ;;
28107 *) # Relative name.
28108 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28109 ac_top_srcdir=$ac_top_build_prefix$srcdir
28110 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28111 esac
28112 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28113
28114
28115 cd "$ac_dir"
28116
28117 # Check for guested configure; otherwise get Cygnus style configure.
28118 if test -f "$ac_srcdir/configure.gnu"; then
28119 ac_sub_configure=$ac_srcdir/configure.gnu
28120 elif test -f "$ac_srcdir/configure"; then
28121 ac_sub_configure=$ac_srcdir/configure
28122 elif test -f "$ac_srcdir/configure.in"; then
28123 # This should be Cygnus configure.
28124 ac_sub_configure=$ac_aux_dir/configure
28125 else
28126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
28127 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
28128 ac_sub_configure=
28129 fi
28130
28131 # The recursion is here.
28132 if test -n "$ac_sub_configure"; then
28133 # Make the cache file name correct relative to the subdirectory.
28134 case $cache_file in
28135 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
28136 *) # Relative name.
28137 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
28138 esac
28139
28140 { $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
28141 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
28142 # The eval makes quoting arguments work.
28143 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
28144 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
28145 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
28146 fi
28147
28148 cd "$ac_popdir"
28149 done
28150 fi
28151 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28153 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28154 fi
28155