]> git.ipfire.org Git - thirdparty/gcc.git/blob - libjava/configure
configure.host (libgcj_sublib_ltflags): New variable.
[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 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
177 fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198 fi
199 fi
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233 fi
234 exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252 { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261 return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332 else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349 else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459 *)
460 ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484 else
485 as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527
528 # Check that we are running under the correct shell.
529 SHELL=${CONFIG_SHELL-/bin/sh}
530
531 case X$lt_ECHO in
532 X*--fallback-echo)
533 # Remove one level of quotation (which was required for Make).
534 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
535 ;;
536 esac
537
538 ECHO=${lt_ECHO-echo}
539 if test "X$1" = X--no-reexec; then
540 # Discard the --no-reexec flag, and continue.
541 shift
542 elif test "X$1" = X--fallback-echo; then
543 # Avoid inline document here, it may be left over
544 :
545 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546 # Yippee, $ECHO works!
547 :
548 else
549 # Restart under the correct shell.
550 exec $SHELL "$0" --no-reexec ${1+"$@"}
551 fi
552
553 if test "X$1" = X--fallback-echo; then
554 # used as fallback echo
555 shift
556 cat <<_LT_EOF
557 $*
558 _LT_EOF
559 exit 0
560 fi
561
562 # The HP-UX ksh and POSIX shell print the target directory to stdout
563 # if CDPATH is set.
564 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
565
566 if test -z "$lt_ECHO"; then
567 if test "X${echo_test_string+set}" != Xset; then
568 # find a string as large as possible, as long as the shell can cope with it
569 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
573 then
574 break
575 fi
576 done
577 fi
578
579 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581 test "X$echo_testing_string" = "X$echo_test_string"; then
582 :
583 else
584 # The Solaris, AIX, and Digital Unix default echo programs unquote
585 # backslashes. This makes it impossible to quote backslashes using
586 # echo "$something" | sed 's/\\/\\\\/g'
587 #
588 # So, first we look for a working echo in the user's PATH.
589
590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591 for dir in $PATH /usr/ucb; do
592 IFS="$lt_save_ifs"
593 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 ECHO="$dir/echo"
598 break
599 fi
600 done
601 IFS="$lt_save_ifs"
602
603 if test "X$ECHO" = Xecho; then
604 # We didn't find a better echo, so look for alternatives.
605 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 # This shell has a builtin print -r that does the trick.
609 ECHO='print -r'
610 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611 test "X$CONFIG_SHELL" != X/bin/ksh; then
612 # If we have ksh, try running configure again with it.
613 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614 export ORIGINAL_CONFIG_SHELL
615 CONFIG_SHELL=/bin/ksh
616 export CONFIG_SHELL
617 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
618 else
619 # Try using printf.
620 ECHO='printf %s\n'
621 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
624 # Cool, printf works
625 :
626 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627 test "X$echo_testing_string" = 'X\t' &&
628 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
630 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
631 export CONFIG_SHELL
632 SHELL="$CONFIG_SHELL"
633 export SHELL
634 ECHO="$CONFIG_SHELL $0 --fallback-echo"
635 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636 test "X$echo_testing_string" = 'X\t' &&
637 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 else
641 # maybe with a smaller string...
642 prev=:
643
644 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
646 then
647 break
648 fi
649 prev="$cmd"
650 done
651
652 if test "$prev" != 'sed 50q "$0"'; then
653 echo_test_string=`eval $prev`
654 export echo_test_string
655 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
656 else
657 # Oops. We lost completely, so just stick with echo.
658 ECHO=echo
659 fi
660 fi
661 fi
662 fi
663 fi
664 fi
665
666 # Copy echo and quote the copy suitably for passing to libtool from
667 # the Makefile, instead of quoting the original, which is used later.
668 lt_ECHO=$ECHO
669 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
671 fi
672
673
674
675
676 exec 7<&0 </dev/null 6>&1
677
678 # Name of the host.
679 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680 # so uname gets run too.
681 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
682
683 #
684 # Initializations.
685 #
686 ac_default_prefix=/usr/local
687 ac_clean_files=
688 ac_config_libobj_dir=.
689 LIBOBJS=
690 cross_compiling=no
691 subdirs=
692 MFLAGS=
693 MAKEFLAGS=
694
695 # Identity of this package.
696 PACKAGE_NAME='libjava'
697 PACKAGE_TARNAME='libjava'
698 PACKAGE_VERSION='version-unused'
699 PACKAGE_STRING='libjava version-unused'
700 PACKAGE_BUGREPORT=''
701 PACKAGE_URL=''
702
703 ac_unique_file="java/lang/System.java"
704 # Factoring default headers for most tests.
705 ac_includes_default="\
706 #include <stdio.h>
707 #ifdef HAVE_SYS_TYPES_H
708 # include <sys/types.h>
709 #endif
710 #ifdef HAVE_SYS_STAT_H
711 # include <sys/stat.h>
712 #endif
713 #ifdef STDC_HEADERS
714 # include <stdlib.h>
715 # include <stddef.h>
716 #else
717 # ifdef HAVE_STDLIB_H
718 # include <stdlib.h>
719 # endif
720 #endif
721 #ifdef HAVE_STRING_H
722 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
723 # include <memory.h>
724 # endif
725 # include <string.h>
726 #endif
727 #ifdef HAVE_STRINGS_H
728 # include <strings.h>
729 #endif
730 #ifdef HAVE_INTTYPES_H
731 # include <inttypes.h>
732 #endif
733 #ifdef HAVE_STDINT_H
734 # include <stdint.h>
735 #endif
736 #ifdef HAVE_UNISTD_H
737 # include <unistd.h>
738 #endif"
739
740 enable_option_checking=no
741 ac_subst_vars='am__EXEEXT_FALSE
742 am__EXEEXT_TRUE
743 LTLIBOBJS
744 LIBOBJS
745 LIBDIR
746 OS
747 CPU
748 GCJ_BIN_DIR
749 JRE_LIB_DIR
750 JRE_BIN_DIR
751 SDK_INCLUDE_DIR
752 SDK_LIB_DIR
753 SDK_BIN_DIR
754 SDK_LNK
755 JRE_LNK
756 JRE_DIR
757 JVM_JAR_DIR
758 JVM_JAR_ROOT_DIR
759 JVM_ROOT_DIR
760 BUILD_VERSION
761 JAVA_VERSION
762 gcc_suffix
763 CREATE_JAVA_HOME_FALSE
764 CREATE_JAVA_HOME_TRUE
765 INSTALL_AOT_RPM_FALSE
766 INSTALL_AOT_RPM_TRUE
767 MAKE
768 python_mod_dir_expanded
769 python_mod_dir
770 here
771 LD_FINISH_STATIC_SPEC
772 LD_START_STATIC_SPEC
773 ANONVERSCRIPT_FALSE
774 ANONVERSCRIPT_TRUE
775 SYSDEP_SOURCES
776 PERL
777 libstdcxx_incdir
778 gxx_include_dir
779 gcjsubdir
780 dbexecdir
781 GCJVERSION
782 toolexeclibdir
783 toolexecmainlibdir
784 toolexecdir
785 GCC_UNWIND_INCLUDE
786 INSTALL_BINARIES_FALSE
787 INSTALL_BINARIES_TRUE
788 NEEDS_DATA_START_FALSE
789 NEEDS_DATA_START_TRUE
790 ENABLE_SHARED_FALSE
791 ENABLE_SHARED_TRUE
792 NATIVE_FALSE
793 NATIVE_TRUE
794 ATOMICSPEC
795 IEEESPEC
796 BACKTRACESPEC
797 EXCEPTIONSPEC
798 CHECKREFSPEC
799 DIVIDESPEC
800 ZINCS
801 SYS_ZLIBS
802 ZLIBS
803 CLASSPATH_SEPARATOR
804 LIBART_LIBS
805 LIBART_CFLAGS
806 GLIB_LIBS
807 GLIB_CFLAGS
808 GTK_LIBS
809 GTK_CFLAGS
810 PKG_CONFIG
811 LTLIBICONV
812 LIBICONV
813 USING_GCC_FALSE
814 USING_GCC_TRUE
815 HASH_SYNC_SPEC
816 LIBGCJ_BC_SPEC
817 LIBGCJ_SPEC
818 USE_LIBGCJ_BC_FALSE
819 USE_LIBGCJ_BC_TRUE
820 USING_NO_THREADS_FALSE
821 USING_NO_THREADS_TRUE
822 USING_WIN32_THREADS_FALSE
823 USING_WIN32_THREADS_TRUE
824 USING_POSIX_THREADS_FALSE
825 USING_POSIX_THREADS_TRUE
826 THREADCXXFLAGS
827 THREADLDFLAGS
828 THREADSTARTFILESPEC
829 THREADSPEC
830 THREADDEPS
831 THREADINCS
832 THREADLIBS
833 USING_NOGC_FALSE
834 USING_NOGC_TRUE
835 USING_BOEHMGC_FALSE
836 USING_BOEHMGC_TRUE
837 GCTESTSPEC
838 JC1GCSPEC
839 GCSPEC
840 GCDEPS
841 GCINCS
842 GCLIBS
843 LIBGCJTESTSPEC
844 LIBSTDCXXSPEC
845 extra_ldflags
846 extra_gij_ldflags
847 extra_ldflags_libjava
848 X_EXTRA_LIBS
849 X_LIBS
850 X_PRE_LIBS
851 X_CFLAGS
852 XMKMF
853 ZLIBTESTSPEC
854 ZLIBSPEC
855 SYSTEMSPEC
856 USING_DARWIN_CRT_FALSE
857 USING_DARWIN_CRT_TRUE
858 USING_POSIX_PLATFORM_FALSE
859 USING_POSIX_PLATFORM_TRUE
860 USING_WIN32_PLATFORM_FALSE
861 USING_WIN32_PLATFORM_TRUE
862 PLATFORM
863 LIBFFIINCS
864 LIBFFI
865 INTERPRETER_FALSE
866 INTERPRETER_TRUE
867 INTERPRETER
868 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE
869 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE
870 SUPPRESS_LIBGCJ_BC_FALSE
871 SUPPRESS_LIBGCJ_BC_TRUE
872 JAVA_HOME
873 JAVA_HOME_SET_FALSE
874 JAVA_HOME_SET_TRUE
875 INSTALL_ECJ_JAR_FALSE
876 INSTALL_ECJ_JAR_TRUE
877 BUILD_ECJ1_FALSE
878 BUILD_ECJ1_TRUE
879 ECJ_JAR
880 ECJ_BUILD_JAR
881 TESTSUBDIR_FALSE
882 TESTSUBDIR_TRUE
883 subdirs
884 am__fastdepGCJ_FALSE
885 am__fastdepGCJ_TRUE
886 GCJDEPMODE
887 GCJFLAGS
888 GCJ
889 CXXCPP
890 CPP
891 OTOOL64
892 OTOOL
893 LIPO
894 NMEDIT
895 DSYMUTIL
896 lt_ECHO
897 OBJDUMP
898 NM
899 ac_ct_DUMPBIN
900 DUMPBIN
901 FGREP
902 EGREP
903 GREP
904 SED
905 LIBTOOL
906 DIRLTDL
907 LIBLTDL
908 INCLTDL
909 host_exeext
910 GCJH
911 GCJ_FOR_ECJX
912 X_AWT_FALSE
913 X_AWT_TRUE
914 XLIB_AWT_FALSE
915 XLIB_AWT_TRUE
916 TOOLKIT
917 LIBGCJDEBUG
918 BUILD_SUBLIBS_FALSE
919 BUILD_SUBLIBS_TRUE
920 LIBGCJ_LD_SYMBOLIC_FUNCTIONS
921 LIBGCJ_LD_SYMBOLIC
922 LIBGCJ_SUBLIB_LTFLAGS
923 LIBGCJ_JAVAFLAGS
924 LIBGCJ_CXXFLAGS
925 LIBGCJ_CFLAGS
926 MAINT
927 MAINTAINER_MODE_FALSE
928 MAINTAINER_MODE_TRUE
929 UNZIP
930 ZIP
931 JAR
932 RANLIB
933 AR
934 LD
935 AS
936 am__fastdepCXX_FALSE
937 am__fastdepCXX_TRUE
938 CXXDEPMODE
939 am__fastdepCC_FALSE
940 am__fastdepCC_TRUE
941 CCDEPMODE
942 AMDEPBACKSLASH
943 AMDEP_FALSE
944 AMDEP_TRUE
945 am__quote
946 am__include
947 DEPDIR
948 am__untar
949 am__tar
950 AMTAR
951 am__leading_dot
952 SET_MAKE
953 AWK
954 mkdir_p
955 MKDIR_P
956 INSTALL_STRIP_PROGRAM
957 STRIP
958 install_sh
959 MAKEINFO
960 AUTOHEADER
961 AUTOMAKE
962 AUTOCONF
963 ACLOCAL
964 VERSION
965 PACKAGE
966 CYGPATH_W
967 am__isrc
968 INSTALL_DATA
969 INSTALL_SCRIPT
970 INSTALL_PROGRAM
971 ac_ct_CXX
972 CXXFLAGS
973 CXX
974 OBJEXT
975 EXEEXT
976 ac_ct_CC
977 CPPFLAGS
978 LDFLAGS
979 CFLAGS
980 CC
981 JAVA_MAINTAINER_MODE_FALSE
982 JAVA_MAINTAINER_MODE_TRUE
983 CREATE_GJDOC_FALSE
984 CREATE_GJDOC_TRUE
985 ANTLR_JAR
986 mkinstalldirs
987 LN_S
988 target_noncanonical
989 target_os
990 target_vendor
991 target_cpu
992 target
993 host_os
994 host_vendor
995 host_cpu
996 host
997 multi_basedir
998 target_subdir
999 host_subdir
1000 build_subdir
1001 build_libsubdir
1002 build_os
1003 build_vendor
1004 build_cpu
1005 build
1006 target_alias
1007 host_alias
1008 build_alias
1009 LIBS
1010 ECHO_T
1011 ECHO_N
1012 ECHO_C
1013 DEFS
1014 mandir
1015 localedir
1016 libdir
1017 psdir
1018 pdfdir
1019 dvidir
1020 htmldir
1021 infodir
1022 docdir
1023 oldincludedir
1024 includedir
1025 localstatedir
1026 sharedstatedir
1027 sysconfdir
1028 datadir
1029 datarootdir
1030 libexecdir
1031 sbindir
1032 bindir
1033 program_transform_name
1034 prefix
1035 exec_prefix
1036 PACKAGE_URL
1037 PACKAGE_BUGREPORT
1038 PACKAGE_STRING
1039 PACKAGE_VERSION
1040 PACKAGE_TARNAME
1041 PACKAGE_NAME
1042 PATH_SEPARATOR
1043 SHELL'
1044 ac_subst_files=''
1045 ac_user_opts='
1046 enable_option_checking
1047 with_build_libsubdir
1048 with_target_subdir
1049 enable_multilib
1050 with_cross_host
1051 with_newlib
1052 enable_version_specific_runtime_libs
1053 enable_plugin
1054 enable_gconf_peer
1055 with_antlr_jar
1056 enable_gjdoc
1057 enable_java_maintainer_mode
1058 enable_dependency_tracking
1059 enable_maintainer_mode
1060 enable_libgcj_sublibs
1061 enable_libgcj_debug
1062 with_escher
1063 enable_java_awt
1064 enable_shared
1065 enable_static
1066 with_pic
1067 enable_fast_install
1068 with_gnu_ld
1069 enable_libtool_lock
1070 enable_getenv_properties
1071 enable_hash_synchronization
1072 with_ecj_jar
1073 with_java_home
1074 enable_libgcj_bc
1075 enable_reduced_reflection
1076 with_win32_nlsapi
1077 enable_gc_debug
1078 enable_interpreter
1079 enable_sjlj_exceptions
1080 enable_java_net
1081 with_libffi
1082 enable_jvmpi
1083 with_ecos
1084 with_system_zlib
1085 with_x
1086 enable_java_gc
1087 enable_rpath
1088 with_libiconv_prefix
1089 enable_tls
1090 with_system_libunwind
1091 with_python_dir
1092 enable_aot_compile_rpm
1093 enable_java_home
1094 with_gcc_suffix
1095 with_arch_directory
1096 with_os_directory
1097 with_origin_name
1098 with_arch_suffix
1099 with_jvm_root_dir
1100 with_jvm_jar_dir
1101 '
1102 ac_precious_vars='build_alias
1103 host_alias
1104 target_alias
1105 CPP
1106 CPPFLAGS
1107 CXX
1108 CXXFLAGS
1109 LDFLAGS
1110 LIBS
1111 CCC
1112 CXXCPP
1113 XMKMF'
1114 ac_subdirs_all='classpath libltdl'
1115
1116 # Initialize some variables set by options.
1117 ac_init_help=
1118 ac_init_version=false
1119 ac_unrecognized_opts=
1120 ac_unrecognized_sep=
1121 # The variables have the same names as the options, with
1122 # dashes changed to underlines.
1123 cache_file=/dev/null
1124 exec_prefix=NONE
1125 no_create=
1126 no_recursion=
1127 prefix=NONE
1128 program_prefix=NONE
1129 program_suffix=NONE
1130 program_transform_name=s,x,x,
1131 silent=
1132 site=
1133 srcdir=
1134 verbose=
1135 x_includes=NONE
1136 x_libraries=NONE
1137
1138 # Installation directory options.
1139 # These are left unexpanded so users can "make install exec_prefix=/foo"
1140 # and all the variables that are supposed to be based on exec_prefix
1141 # by default will actually change.
1142 # Use braces instead of parens because sh, perl, etc. also accept them.
1143 # (The list follows the same order as the GNU Coding Standards.)
1144 bindir='${exec_prefix}/bin'
1145 sbindir='${exec_prefix}/sbin'
1146 libexecdir='${exec_prefix}/libexec'
1147 datarootdir='${prefix}/share'
1148 datadir='${datarootdir}'
1149 sysconfdir='${prefix}/etc'
1150 sharedstatedir='${prefix}/com'
1151 localstatedir='${prefix}/var'
1152 includedir='${prefix}/include'
1153 oldincludedir='/usr/include'
1154 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1155 infodir='${datarootdir}/info'
1156 htmldir='${docdir}'
1157 dvidir='${docdir}'
1158 pdfdir='${docdir}'
1159 psdir='${docdir}'
1160 libdir='${exec_prefix}/lib'
1161 localedir='${datarootdir}/locale'
1162 mandir='${datarootdir}/man'
1163
1164 ac_prev=
1165 ac_dashdash=
1166 for ac_option
1167 do
1168 # If the previous option needs an argument, assign it.
1169 if test -n "$ac_prev"; then
1170 eval $ac_prev=\$ac_option
1171 ac_prev=
1172 continue
1173 fi
1174
1175 case $ac_option in
1176 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1177 *) ac_optarg=yes ;;
1178 esac
1179
1180 # Accept the important Cygnus configure options, so we can diagnose typos.
1181
1182 case $ac_dashdash$ac_option in
1183 --)
1184 ac_dashdash=yes ;;
1185
1186 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1187 ac_prev=bindir ;;
1188 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1189 bindir=$ac_optarg ;;
1190
1191 -build | --build | --buil | --bui | --bu)
1192 ac_prev=build_alias ;;
1193 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1194 build_alias=$ac_optarg ;;
1195
1196 -cache-file | --cache-file | --cache-fil | --cache-fi \
1197 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1198 ac_prev=cache_file ;;
1199 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1200 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1201 cache_file=$ac_optarg ;;
1202
1203 --config-cache | -C)
1204 cache_file=config.cache ;;
1205
1206 -datadir | --datadir | --datadi | --datad)
1207 ac_prev=datadir ;;
1208 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1209 datadir=$ac_optarg ;;
1210
1211 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1212 | --dataroo | --dataro | --datar)
1213 ac_prev=datarootdir ;;
1214 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1215 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1216 datarootdir=$ac_optarg ;;
1217
1218 -disable-* | --disable-*)
1219 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1220 # Reject names that are not valid shell variable names.
1221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1222 as_fn_error "invalid feature name: $ac_useropt"
1223 ac_useropt_orig=$ac_useropt
1224 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1225 case $ac_user_opts in
1226 *"
1227 "enable_$ac_useropt"
1228 "*) ;;
1229 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1230 ac_unrecognized_sep=', ';;
1231 esac
1232 eval enable_$ac_useropt=no ;;
1233
1234 -docdir | --docdir | --docdi | --doc | --do)
1235 ac_prev=docdir ;;
1236 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1237 docdir=$ac_optarg ;;
1238
1239 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1240 ac_prev=dvidir ;;
1241 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1242 dvidir=$ac_optarg ;;
1243
1244 -enable-* | --enable-*)
1245 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1246 # Reject names that are not valid shell variable names.
1247 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1248 as_fn_error "invalid feature name: $ac_useropt"
1249 ac_useropt_orig=$ac_useropt
1250 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1251 case $ac_user_opts in
1252 *"
1253 "enable_$ac_useropt"
1254 "*) ;;
1255 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1256 ac_unrecognized_sep=', ';;
1257 esac
1258 eval enable_$ac_useropt=\$ac_optarg ;;
1259
1260 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1261 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1262 | --exec | --exe | --ex)
1263 ac_prev=exec_prefix ;;
1264 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1265 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1266 | --exec=* | --exe=* | --ex=*)
1267 exec_prefix=$ac_optarg ;;
1268
1269 -gas | --gas | --ga | --g)
1270 # Obsolete; use --with-gas.
1271 with_gas=yes ;;
1272
1273 -help | --help | --hel | --he | -h)
1274 ac_init_help=long ;;
1275 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1276 ac_init_help=recursive ;;
1277 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1278 ac_init_help=short ;;
1279
1280 -host | --host | --hos | --ho)
1281 ac_prev=host_alias ;;
1282 -host=* | --host=* | --hos=* | --ho=*)
1283 host_alias=$ac_optarg ;;
1284
1285 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1286 ac_prev=htmldir ;;
1287 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1288 | --ht=*)
1289 htmldir=$ac_optarg ;;
1290
1291 -includedir | --includedir | --includedi | --included | --include \
1292 | --includ | --inclu | --incl | --inc)
1293 ac_prev=includedir ;;
1294 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1295 | --includ=* | --inclu=* | --incl=* | --inc=*)
1296 includedir=$ac_optarg ;;
1297
1298 -infodir | --infodir | --infodi | --infod | --info | --inf)
1299 ac_prev=infodir ;;
1300 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1301 infodir=$ac_optarg ;;
1302
1303 -libdir | --libdir | --libdi | --libd)
1304 ac_prev=libdir ;;
1305 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1306 libdir=$ac_optarg ;;
1307
1308 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1309 | --libexe | --libex | --libe)
1310 ac_prev=libexecdir ;;
1311 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1312 | --libexe=* | --libex=* | --libe=*)
1313 libexecdir=$ac_optarg ;;
1314
1315 -localedir | --localedir | --localedi | --localed | --locale)
1316 ac_prev=localedir ;;
1317 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1318 localedir=$ac_optarg ;;
1319
1320 -localstatedir | --localstatedir | --localstatedi | --localstated \
1321 | --localstate | --localstat | --localsta | --localst | --locals)
1322 ac_prev=localstatedir ;;
1323 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1324 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1325 localstatedir=$ac_optarg ;;
1326
1327 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1328 ac_prev=mandir ;;
1329 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1330 mandir=$ac_optarg ;;
1331
1332 -nfp | --nfp | --nf)
1333 # Obsolete; use --without-fp.
1334 with_fp=no ;;
1335
1336 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1337 | --no-cr | --no-c | -n)
1338 no_create=yes ;;
1339
1340 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1341 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1342 no_recursion=yes ;;
1343
1344 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1345 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1346 | --oldin | --oldi | --old | --ol | --o)
1347 ac_prev=oldincludedir ;;
1348 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1349 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1350 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1351 oldincludedir=$ac_optarg ;;
1352
1353 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1354 ac_prev=prefix ;;
1355 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1356 prefix=$ac_optarg ;;
1357
1358 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1359 | --program-pre | --program-pr | --program-p)
1360 ac_prev=program_prefix ;;
1361 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1362 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1363 program_prefix=$ac_optarg ;;
1364
1365 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1366 | --program-suf | --program-su | --program-s)
1367 ac_prev=program_suffix ;;
1368 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1369 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1370 program_suffix=$ac_optarg ;;
1371
1372 -program-transform-name | --program-transform-name \
1373 | --program-transform-nam | --program-transform-na \
1374 | --program-transform-n | --program-transform- \
1375 | --program-transform | --program-transfor \
1376 | --program-transfo | --program-transf \
1377 | --program-trans | --program-tran \
1378 | --progr-tra | --program-tr | --program-t)
1379 ac_prev=program_transform_name ;;
1380 -program-transform-name=* | --program-transform-name=* \
1381 | --program-transform-nam=* | --program-transform-na=* \
1382 | --program-transform-n=* | --program-transform-=* \
1383 | --program-transform=* | --program-transfor=* \
1384 | --program-transfo=* | --program-transf=* \
1385 | --program-trans=* | --program-tran=* \
1386 | --progr-tra=* | --program-tr=* | --program-t=*)
1387 program_transform_name=$ac_optarg ;;
1388
1389 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1390 ac_prev=pdfdir ;;
1391 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1392 pdfdir=$ac_optarg ;;
1393
1394 -psdir | --psdir | --psdi | --psd | --ps)
1395 ac_prev=psdir ;;
1396 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1397 psdir=$ac_optarg ;;
1398
1399 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1400 | -silent | --silent | --silen | --sile | --sil)
1401 silent=yes ;;
1402
1403 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1404 ac_prev=sbindir ;;
1405 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1406 | --sbi=* | --sb=*)
1407 sbindir=$ac_optarg ;;
1408
1409 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1410 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1411 | --sharedst | --shareds | --shared | --share | --shar \
1412 | --sha | --sh)
1413 ac_prev=sharedstatedir ;;
1414 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1415 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1416 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1417 | --sha=* | --sh=*)
1418 sharedstatedir=$ac_optarg ;;
1419
1420 -site | --site | --sit)
1421 ac_prev=site ;;
1422 -site=* | --site=* | --sit=*)
1423 site=$ac_optarg ;;
1424
1425 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1426 ac_prev=srcdir ;;
1427 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1428 srcdir=$ac_optarg ;;
1429
1430 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1431 | --syscon | --sysco | --sysc | --sys | --sy)
1432 ac_prev=sysconfdir ;;
1433 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1434 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1435 sysconfdir=$ac_optarg ;;
1436
1437 -target | --target | --targe | --targ | --tar | --ta | --t)
1438 ac_prev=target_alias ;;
1439 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1440 target_alias=$ac_optarg ;;
1441
1442 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1443 verbose=yes ;;
1444
1445 -version | --version | --versio | --versi | --vers | -V)
1446 ac_init_version=: ;;
1447
1448 -with-* | --with-*)
1449 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1450 # Reject names that are not valid shell variable names.
1451 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1452 as_fn_error "invalid package name: $ac_useropt"
1453 ac_useropt_orig=$ac_useropt
1454 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1455 case $ac_user_opts in
1456 *"
1457 "with_$ac_useropt"
1458 "*) ;;
1459 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1460 ac_unrecognized_sep=', ';;
1461 esac
1462 eval with_$ac_useropt=\$ac_optarg ;;
1463
1464 -without-* | --without-*)
1465 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1466 # Reject names that are not valid shell variable names.
1467 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1468 as_fn_error "invalid package name: $ac_useropt"
1469 ac_useropt_orig=$ac_useropt
1470 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1471 case $ac_user_opts in
1472 *"
1473 "with_$ac_useropt"
1474 "*) ;;
1475 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1476 ac_unrecognized_sep=', ';;
1477 esac
1478 eval with_$ac_useropt=no ;;
1479
1480 --x)
1481 # Obsolete; use --with-x.
1482 with_x=yes ;;
1483
1484 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1485 | --x-incl | --x-inc | --x-in | --x-i)
1486 ac_prev=x_includes ;;
1487 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1488 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1489 x_includes=$ac_optarg ;;
1490
1491 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1492 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1493 ac_prev=x_libraries ;;
1494 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1495 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1496 x_libraries=$ac_optarg ;;
1497
1498 -*) as_fn_error "unrecognized option: \`$ac_option'
1499 Try \`$0 --help' for more information."
1500 ;;
1501
1502 *=*)
1503 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1504 # Reject names that are not valid shell variable names.
1505 case $ac_envvar in #(
1506 '' | [0-9]* | *[!_$as_cr_alnum]* )
1507 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1508 esac
1509 eval $ac_envvar=\$ac_optarg
1510 export $ac_envvar ;;
1511
1512 *)
1513 # FIXME: should be removed in autoconf 3.0.
1514 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1515 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1516 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1517 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1518 ;;
1519
1520 esac
1521 done
1522
1523 if test -n "$ac_prev"; then
1524 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1525 as_fn_error "missing argument to $ac_option"
1526 fi
1527
1528 if test -n "$ac_unrecognized_opts"; then
1529 case $enable_option_checking in
1530 no) ;;
1531 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1532 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1533 esac
1534 fi
1535
1536 # Check all directory arguments for consistency.
1537 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1538 datadir sysconfdir sharedstatedir localstatedir includedir \
1539 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1540 libdir localedir mandir
1541 do
1542 eval ac_val=\$$ac_var
1543 # Remove trailing slashes.
1544 case $ac_val in
1545 */ )
1546 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1547 eval $ac_var=\$ac_val;;
1548 esac
1549 # Be sure to have absolute directory names.
1550 case $ac_val in
1551 [\\/$]* | ?:[\\/]* ) continue;;
1552 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1553 esac
1554 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1555 done
1556
1557 # There might be people who depend on the old broken behavior: `$host'
1558 # used to hold the argument of --host etc.
1559 # FIXME: To remove some day.
1560 build=$build_alias
1561 host=$host_alias
1562 target=$target_alias
1563
1564 # FIXME: To remove some day.
1565 if test "x$host_alias" != x; then
1566 if test "x$build_alias" = x; then
1567 cross_compiling=maybe
1568 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1569 If a cross compiler is detected then cross compile mode will be used." >&2
1570 elif test "x$build_alias" != "x$host_alias"; then
1571 cross_compiling=yes
1572 fi
1573 fi
1574
1575 ac_tool_prefix=
1576 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1577
1578 test "$silent" = yes && exec 6>/dev/null
1579
1580
1581 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1582 ac_ls_di=`ls -di .` &&
1583 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1584 as_fn_error "working directory cannot be determined"
1585 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1586 as_fn_error "pwd does not report name of working directory"
1587
1588
1589 # Find the source files, if location was not specified.
1590 if test -z "$srcdir"; then
1591 ac_srcdir_defaulted=yes
1592 # Try the directory containing this script, then the parent directory.
1593 ac_confdir=`$as_dirname -- "$as_myself" ||
1594 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1595 X"$as_myself" : 'X\(//\)[^/]' \| \
1596 X"$as_myself" : 'X\(//\)$' \| \
1597 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1598 $as_echo X"$as_myself" |
1599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1600 s//\1/
1601 q
1602 }
1603 /^X\(\/\/\)[^/].*/{
1604 s//\1/
1605 q
1606 }
1607 /^X\(\/\/\)$/{
1608 s//\1/
1609 q
1610 }
1611 /^X\(\/\).*/{
1612 s//\1/
1613 q
1614 }
1615 s/.*/./; q'`
1616 srcdir=$ac_confdir
1617 if test ! -r "$srcdir/$ac_unique_file"; then
1618 srcdir=..
1619 fi
1620 else
1621 ac_srcdir_defaulted=no
1622 fi
1623 if test ! -r "$srcdir/$ac_unique_file"; then
1624 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1625 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1626 fi
1627 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1628 ac_abs_confdir=`(
1629 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1630 pwd)`
1631 # When building in place, set srcdir=.
1632 if test "$ac_abs_confdir" = "$ac_pwd"; then
1633 srcdir=.
1634 fi
1635 # Remove unnecessary trailing slashes from srcdir.
1636 # Double slashes in file names in object file debugging info
1637 # mess up M-x gdb in Emacs.
1638 case $srcdir in
1639 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1640 esac
1641 for ac_var in $ac_precious_vars; do
1642 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1643 eval ac_env_${ac_var}_value=\$${ac_var}
1644 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1645 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1646 done
1647
1648 #
1649 # Report the --help message.
1650 #
1651 if test "$ac_init_help" = "long"; then
1652 # Omit some internal or obsolete options to make the list less imposing.
1653 # This message is too long to be a string in the A/UX 3.1 sh.
1654 cat <<_ACEOF
1655 \`configure' configures libjava version-unused to adapt to many kinds of systems.
1656
1657 Usage: $0 [OPTION]... [VAR=VALUE]...
1658
1659 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1660 VAR=VALUE. See below for descriptions of some of the useful variables.
1661
1662 Defaults for the options are specified in brackets.
1663
1664 Configuration:
1665 -h, --help display this help and exit
1666 --help=short display options specific to this package
1667 --help=recursive display the short help of all the included packages
1668 -V, --version display version information and exit
1669 -q, --quiet, --silent do not print \`checking...' messages
1670 --cache-file=FILE cache test results in FILE [disabled]
1671 -C, --config-cache alias for \`--cache-file=config.cache'
1672 -n, --no-create do not create output files
1673 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1674
1675 Installation directories:
1676 --prefix=PREFIX install architecture-independent files in PREFIX
1677 [$ac_default_prefix]
1678 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1679 [PREFIX]
1680
1681 By default, \`make install' will install all the files in
1682 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1683 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1684 for instance \`--prefix=\$HOME'.
1685
1686 For better control, use the options below.
1687
1688 Fine tuning of the installation directories:
1689 --bindir=DIR user executables [EPREFIX/bin]
1690 --sbindir=DIR system admin executables [EPREFIX/sbin]
1691 --libexecdir=DIR program executables [EPREFIX/libexec]
1692 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1693 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1694 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1695 --libdir=DIR object code libraries [EPREFIX/lib]
1696 --includedir=DIR C header files [PREFIX/include]
1697 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1698 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1699 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1700 --infodir=DIR info documentation [DATAROOTDIR/info]
1701 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1702 --mandir=DIR man documentation [DATAROOTDIR/man]
1703 --docdir=DIR documentation root [DATAROOTDIR/doc/libjava]
1704 --htmldir=DIR html documentation [DOCDIR]
1705 --dvidir=DIR dvi documentation [DOCDIR]
1706 --pdfdir=DIR pdf documentation [DOCDIR]
1707 --psdir=DIR ps documentation [DOCDIR]
1708 _ACEOF
1709
1710 cat <<\_ACEOF
1711
1712 Program names:
1713 --program-prefix=PREFIX prepend PREFIX to installed program names
1714 --program-suffix=SUFFIX append SUFFIX to installed program names
1715 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1716
1717 X features:
1718 --x-includes=DIR X include files are in DIR
1719 --x-libraries=DIR X library files are in DIR
1720
1721 System types:
1722 --build=BUILD configure for building on BUILD [guessed]
1723 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1724 --target=TARGET configure for building compilers for TARGET [HOST]
1725 _ACEOF
1726 fi
1727
1728 if test -n "$ac_init_help"; then
1729 case $ac_init_help in
1730 short | recursive ) echo "Configuration of libjava version-unused:";;
1731 esac
1732 cat <<\_ACEOF
1733
1734 Optional Features:
1735 --disable-option-checking ignore unrecognized --enable/--with options
1736 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1737 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1738 --enable-multilib build many library versions (default)
1739 --enable-version-specific-runtime-libs
1740 specify that runtime libraries should be installed
1741 in a compiler-specific directory
1742 --enable-plugin build gcjwebplugin web browser plugin
1743 --enable-gconf-peer compile GConf native peers for util.preferences
1744 --disable-gjdoc compile GJDoc (disabled by --disable-gjdoc)
1745 default=yes
1746 --enable-java-maintainer-mode
1747 allow rebuilding of .class and .h files
1748 --disable-dependency-tracking speeds up one-time build
1749 --enable-dependency-tracking do not reject slow dependency extractors
1750 --enable-maintainer-mode enable make rules and dependencies not useful
1751 (and sometimes confusing) to the casual installer
1752 --enable-libgcj-sublibs build libgcj as many sub-libraries
1753 --enable-libgcj-debug enable runtime debugging code
1754 --enable-java-awt list of AWT peer implementations to be built
1755 --enable-shared[=PKGS] build shared libraries [default=yes]
1756 --enable-static[=PKGS] build static libraries [default=yes]
1757 --enable-fast-install[=PKGS]
1758 optimize for fast installation [default=yes]
1759 --disable-libtool-lock avoid locking (might break parallel builds)
1760 --disable-getenv-properties
1761 don't set system properties from GCJ_PROPERTIES
1762 --enable-hash-synchronization
1763 use global hash table for monitor locks
1764 --enable-libgcj-bc enable(default) or disable BC ABI for portions of
1765 libgcj
1766 --enable-reduced-reflection
1767 enable or disable(default) -freduced-reflection when
1768 building portions of libgcj
1769 --enable-gc-debug include full support for pointer backtracing etc.
1770 --enable-interpreter enable interpreter
1771 --enable-sjlj-exceptions
1772 force use of builtin_setjmp for exceptions
1773 --disable-java-net disable java.net
1774 --disable-jvmpi disable JVMPI support
1775 --enable-java-gc=TYPE choose garbage collector (default is boehm)
1776 --disable-rpath do not hardcode runtime library paths
1777 --enable-tls Use thread-local storage [default=yes]
1778 --enable-aot-compile-rpm
1779 enable installation of aot-compile-rpm [default=no]
1780 --enable-java-home create a standard JDK-style directory layout in the
1781 install tree [default=no]
1782
1783 Optional Packages:
1784 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1785 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1786 --with-build-libsubdir=DIR Directory where to find libraries for build system
1787 --with-target-subdir=SUBDIR
1788 configure in a subdirectory
1789 --with-cross-host=HOST configure with a cross compiler from HOST
1790 --with-newlib configure with newlib
1791 --with-antlr-jar=file Use ANTLR from the specified jar file
1792 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
1793 --with-pic try to use only PIC/non-PIC objects [default=use
1794 both]
1795 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1796 --with-ecj-jar=FILE use preinstalled ecj jar
1797 --with-java-home=DIRECTORY
1798 value of java.home system property
1799 --with-win32-nlsapi=ansi or unicows or unicode
1800 native MinGW libgcj Win32 OS API (default is ansi)
1801 --without-libffi don't use libffi
1802 --with-ecos enable runtime eCos target support
1803 --with-system-zlib use installed libz
1804 --with-x use the X Window System
1805 --with-gnu-ld assume the C compiler uses GNU ld default=no
1806 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1807 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1808 --with-system-libunwind use installed libunwind
1809 --with-python-dir the location to install Python modules. This path
1810 should NOT include the prefix.
1811 --with-gcc-suffix the GCC tool suffix (defaults to empty string)
1812 --with-arch-directory the arch directory under jre/lib (defaults to
1813 auto-detect)
1814 --with-os-directory the os directory under include (defaults to
1815 auto-detect)
1816 --with-origin-name the JPackage origin name of this package (default is
1817 gcj${gcc_suffix}
1818 --with-arch-suffix the arch directory suffix (default is the empty
1819 string
1820 --with-jvm-root-dir where to install SDK (default is ${prefix}/lib/jvm)
1821 --with-jvm-jar-dir where to install jars (default is
1822 ${prefix}/lib/jvm-exports)
1823
1824 Some influential environment variables:
1825 CC C compiler command
1826 CFLAGS C compiler flags
1827 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1828 nonstandard directory <lib dir>
1829 LIBS libraries to pass to the linker, e.g. -l<library>
1830 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1831 you have headers in a nonstandard directory <include dir>
1832 CXX C++ compiler command
1833 CXXFLAGS C++ compiler flags
1834 CPP C preprocessor
1835 CXXCPP C++ preprocessor
1836 XMKMF Path to xmkmf, Makefile generator for X Window System
1837
1838 Use these variables to override the choices made by `configure' or to help
1839 it to find libraries and programs with nonstandard names/locations.
1840
1841 Report bugs to the package provider.
1842 _ACEOF
1843 ac_status=$?
1844 fi
1845
1846 if test "$ac_init_help" = "recursive"; then
1847 # If there are subdirs, report their specific --help.
1848 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1849 test -d "$ac_dir" ||
1850 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1851 continue
1852 ac_builddir=.
1853
1854 case "$ac_dir" in
1855 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1856 *)
1857 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1858 # A ".." for each directory in $ac_dir_suffix.
1859 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1860 case $ac_top_builddir_sub in
1861 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1862 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1863 esac ;;
1864 esac
1865 ac_abs_top_builddir=$ac_pwd
1866 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1867 # for backward compatibility:
1868 ac_top_builddir=$ac_top_build_prefix
1869
1870 case $srcdir in
1871 .) # We are building in place.
1872 ac_srcdir=.
1873 ac_top_srcdir=$ac_top_builddir_sub
1874 ac_abs_top_srcdir=$ac_pwd ;;
1875 [\\/]* | ?:[\\/]* ) # Absolute name.
1876 ac_srcdir=$srcdir$ac_dir_suffix;
1877 ac_top_srcdir=$srcdir
1878 ac_abs_top_srcdir=$srcdir ;;
1879 *) # Relative name.
1880 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1881 ac_top_srcdir=$ac_top_build_prefix$srcdir
1882 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1883 esac
1884 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1885
1886 cd "$ac_dir" || { ac_status=$?; continue; }
1887 # Check for guested configure.
1888 if test -f "$ac_srcdir/configure.gnu"; then
1889 echo &&
1890 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1891 elif test -f "$ac_srcdir/configure"; then
1892 echo &&
1893 $SHELL "$ac_srcdir/configure" --help=recursive
1894 else
1895 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1896 fi || ac_status=$?
1897 cd "$ac_pwd" || { ac_status=$?; break; }
1898 done
1899 fi
1900
1901 test -n "$ac_init_help" && exit $ac_status
1902 if $ac_init_version; then
1903 cat <<\_ACEOF
1904 libjava configure version-unused
1905 generated by GNU Autoconf 2.64
1906
1907 Copyright (C) 2009 Free Software Foundation, Inc.
1908 This configure script is free software; the Free Software Foundation
1909 gives unlimited permission to copy, distribute and modify it.
1910 _ACEOF
1911 exit
1912 fi
1913
1914 ## ------------------------ ##
1915 ## Autoconf initialization. ##
1916 ## ------------------------ ##
1917
1918 # ac_fn_c_try_compile LINENO
1919 # --------------------------
1920 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1921 ac_fn_c_try_compile ()
1922 {
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 rm -f conftest.$ac_objext
1925 if { { ac_try="$ac_compile"
1926 case "(($ac_try" in
1927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928 *) ac_try_echo=$ac_try;;
1929 esac
1930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931 $as_echo "$ac_try_echo"; } >&5
1932 (eval "$ac_compile") 2>conftest.err
1933 ac_status=$?
1934 if test -s conftest.err; then
1935 grep -v '^ *+' conftest.err >conftest.er1
1936 cat conftest.er1 >&5
1937 mv -f conftest.er1 conftest.err
1938 fi
1939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1940 test $ac_status = 0; } && {
1941 test -z "$ac_c_werror_flag" ||
1942 test ! -s conftest.err
1943 } && test -s conftest.$ac_objext; then :
1944 ac_retval=0
1945 else
1946 $as_echo "$as_me: failed program was:" >&5
1947 sed 's/^/| /' conftest.$ac_ext >&5
1948
1949 ac_retval=1
1950 fi
1951 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1952 return $ac_retval
1953
1954 } # ac_fn_c_try_compile
1955
1956 # ac_fn_cxx_try_compile LINENO
1957 # ----------------------------
1958 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1959 ac_fn_cxx_try_compile ()
1960 {
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 rm -f conftest.$ac_objext
1963 if { { ac_try="$ac_compile"
1964 case "(($ac_try" in
1965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1966 *) ac_try_echo=$ac_try;;
1967 esac
1968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1969 $as_echo "$ac_try_echo"; } >&5
1970 (eval "$ac_compile") 2>conftest.err
1971 ac_status=$?
1972 if test -s conftest.err; then
1973 grep -v '^ *+' conftest.err >conftest.er1
1974 cat conftest.er1 >&5
1975 mv -f conftest.er1 conftest.err
1976 fi
1977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1978 test $ac_status = 0; } && {
1979 test -z "$ac_cxx_werror_flag" ||
1980 test ! -s conftest.err
1981 } && test -s conftest.$ac_objext; then :
1982 ac_retval=0
1983 else
1984 $as_echo "$as_me: failed program was:" >&5
1985 sed 's/^/| /' conftest.$ac_ext >&5
1986
1987 ac_retval=1
1988 fi
1989 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1990 return $ac_retval
1991
1992 } # ac_fn_cxx_try_compile
1993
1994 # ac_fn_c_try_link LINENO
1995 # -----------------------
1996 # Try to link conftest.$ac_ext, and return whether this succeeded.
1997 ac_fn_c_try_link ()
1998 {
1999 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2000 rm -f conftest.$ac_objext conftest$ac_exeext
2001 if { { ac_try="$ac_link"
2002 case "(($ac_try" in
2003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2004 *) ac_try_echo=$ac_try;;
2005 esac
2006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2007 $as_echo "$ac_try_echo"; } >&5
2008 (eval "$ac_link") 2>conftest.err
2009 ac_status=$?
2010 if test -s conftest.err; then
2011 grep -v '^ *+' conftest.err >conftest.er1
2012 cat conftest.er1 >&5
2013 mv -f conftest.er1 conftest.err
2014 fi
2015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2016 test $ac_status = 0; } && {
2017 test -z "$ac_c_werror_flag" ||
2018 test ! -s conftest.err
2019 } && test -s conftest$ac_exeext && {
2020 test "$cross_compiling" = yes ||
2021 $as_test_x conftest$ac_exeext
2022 }; then :
2023 ac_retval=0
2024 else
2025 $as_echo "$as_me: failed program was:" >&5
2026 sed 's/^/| /' conftest.$ac_ext >&5
2027
2028 ac_retval=1
2029 fi
2030 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2031 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2032 # interfere with the next link command; also delete a directory that is
2033 # left behind by Apple's compiler. We do this before executing the actions.
2034 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2035 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2036 return $ac_retval
2037
2038 } # ac_fn_c_try_link
2039
2040 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2041 # -------------------------------------------------------
2042 # Tests whether HEADER exists and can be compiled using the include files in
2043 # INCLUDES, setting the cache variable VAR accordingly.
2044 ac_fn_c_check_header_compile ()
2045 {
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2048 $as_echo_n "checking for $2... " >&6; }
2049 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2050 $as_echo_n "(cached) " >&6
2051 else
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h. */
2054 $4
2055 #include <$2>
2056 _ACEOF
2057 if ac_fn_c_try_compile "$LINENO"; then :
2058 eval "$3=yes"
2059 else
2060 eval "$3=no"
2061 fi
2062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2063 fi
2064 eval ac_res=\$$3
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2066 $as_echo "$ac_res" >&6; }
2067 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2068
2069 } # ac_fn_c_check_header_compile
2070
2071 # ac_fn_c_try_cpp LINENO
2072 # ----------------------
2073 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2074 ac_fn_c_try_cpp ()
2075 {
2076 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2077 if { { ac_try="$ac_cpp conftest.$ac_ext"
2078 case "(($ac_try" in
2079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2080 *) ac_try_echo=$ac_try;;
2081 esac
2082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2083 $as_echo "$ac_try_echo"; } >&5
2084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2085 ac_status=$?
2086 if test -s conftest.err; then
2087 grep -v '^ *+' conftest.err >conftest.er1
2088 cat conftest.er1 >&5
2089 mv -f conftest.er1 conftest.err
2090 fi
2091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2092 test $ac_status = 0; } >/dev/null && {
2093 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2094 test ! -s conftest.err
2095 }; then :
2096 ac_retval=0
2097 else
2098 $as_echo "$as_me: failed program was:" >&5
2099 sed 's/^/| /' conftest.$ac_ext >&5
2100
2101 ac_retval=1
2102 fi
2103 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2104 return $ac_retval
2105
2106 } # ac_fn_c_try_cpp
2107
2108 # ac_fn_c_try_run LINENO
2109 # ----------------------
2110 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2111 # that executables *can* be run.
2112 ac_fn_c_try_run ()
2113 {
2114 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115 if { { ac_try="$ac_link"
2116 case "(($ac_try" in
2117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2118 *) ac_try_echo=$ac_try;;
2119 esac
2120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2121 $as_echo "$ac_try_echo"; } >&5
2122 (eval "$ac_link") 2>&5
2123 ac_status=$?
2124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2125 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2126 { { case "(($ac_try" in
2127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2128 *) ac_try_echo=$ac_try;;
2129 esac
2130 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2131 $as_echo "$ac_try_echo"; } >&5
2132 (eval "$ac_try") 2>&5
2133 ac_status=$?
2134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2135 test $ac_status = 0; }; }; then :
2136 ac_retval=0
2137 else
2138 $as_echo "$as_me: program exited with status $ac_status" >&5
2139 $as_echo "$as_me: failed program was:" >&5
2140 sed 's/^/| /' conftest.$ac_ext >&5
2141
2142 ac_retval=$ac_status
2143 fi
2144 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2145 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2146 return $ac_retval
2147
2148 } # ac_fn_c_try_run
2149
2150 # ac_fn_c_check_func LINENO FUNC VAR
2151 # ----------------------------------
2152 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2153 ac_fn_c_check_func ()
2154 {
2155 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2157 $as_echo_n "checking for $2... " >&6; }
2158 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2159 $as_echo_n "(cached) " >&6
2160 else
2161 if test x$gcc_no_link = xyes; then
2162 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2163 fi
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2166 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2168 #define $2 innocuous_$2
2169
2170 /* System header to define __stub macros and hopefully few prototypes,
2171 which can conflict with char $2 (); below.
2172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2173 <limits.h> exists even on freestanding compilers. */
2174
2175 #ifdef __STDC__
2176 # include <limits.h>
2177 #else
2178 # include <assert.h>
2179 #endif
2180
2181 #undef $2
2182
2183 /* Override any GCC internal prototype to avoid an error.
2184 Use char because int might match the return type of a GCC
2185 builtin and then its argument prototype would still apply. */
2186 #ifdef __cplusplus
2187 extern "C"
2188 #endif
2189 char $2 ();
2190 /* The GNU C library defines this for functions which it implements
2191 to always fail with ENOSYS. Some functions are actually named
2192 something starting with __ and the normal name is an alias. */
2193 #if defined __stub_$2 || defined __stub___$2
2194 choke me
2195 #endif
2196
2197 int
2198 main ()
2199 {
2200 return $2 ();
2201 ;
2202 return 0;
2203 }
2204 _ACEOF
2205 if ac_fn_c_try_link "$LINENO"; then :
2206 eval "$3=yes"
2207 else
2208 eval "$3=no"
2209 fi
2210 rm -f core conftest.err conftest.$ac_objext \
2211 conftest$ac_exeext conftest.$ac_ext
2212 fi
2213 eval ac_res=\$$3
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2215 $as_echo "$ac_res" >&6; }
2216 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2217
2218 } # ac_fn_c_check_func
2219
2220 # ac_fn_cxx_try_cpp LINENO
2221 # ------------------------
2222 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2223 ac_fn_cxx_try_cpp ()
2224 {
2225 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2226 if { { ac_try="$ac_cpp conftest.$ac_ext"
2227 case "(($ac_try" in
2228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2229 *) ac_try_echo=$ac_try;;
2230 esac
2231 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2232 $as_echo "$ac_try_echo"; } >&5
2233 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2234 ac_status=$?
2235 if test -s conftest.err; then
2236 grep -v '^ *+' conftest.err >conftest.er1
2237 cat conftest.er1 >&5
2238 mv -f conftest.er1 conftest.err
2239 fi
2240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2241 test $ac_status = 0; } >/dev/null && {
2242 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2243 test ! -s conftest.err
2244 }; then :
2245 ac_retval=0
2246 else
2247 $as_echo "$as_me: failed program was:" >&5
2248 sed 's/^/| /' conftest.$ac_ext >&5
2249
2250 ac_retval=1
2251 fi
2252 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2253 return $ac_retval
2254
2255 } # ac_fn_cxx_try_cpp
2256
2257 # ac_fn_cxx_try_link LINENO
2258 # -------------------------
2259 # Try to link conftest.$ac_ext, and return whether this succeeded.
2260 ac_fn_cxx_try_link ()
2261 {
2262 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2263 rm -f conftest.$ac_objext conftest$ac_exeext
2264 if { { ac_try="$ac_link"
2265 case "(($ac_try" in
2266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267 *) ac_try_echo=$ac_try;;
2268 esac
2269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2270 $as_echo "$ac_try_echo"; } >&5
2271 (eval "$ac_link") 2>conftest.err
2272 ac_status=$?
2273 if test -s conftest.err; then
2274 grep -v '^ *+' conftest.err >conftest.er1
2275 cat conftest.er1 >&5
2276 mv -f conftest.er1 conftest.err
2277 fi
2278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2279 test $ac_status = 0; } && {
2280 test -z "$ac_cxx_werror_flag" ||
2281 test ! -s conftest.err
2282 } && test -s conftest$ac_exeext && {
2283 test "$cross_compiling" = yes ||
2284 $as_test_x conftest$ac_exeext
2285 }; then :
2286 ac_retval=0
2287 else
2288 $as_echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2290
2291 ac_retval=1
2292 fi
2293 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2294 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2295 # interfere with the next link command; also delete a directory that is
2296 # left behind by Apple's compiler. We do this before executing the actions.
2297 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2298 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2299 return $ac_retval
2300
2301 } # ac_fn_cxx_try_link
2302
2303 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2304 # -------------------------------------------------------
2305 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2306 # the include files in INCLUDES and setting the cache variable VAR
2307 # accordingly.
2308 ac_fn_c_check_header_mongrel ()
2309 {
2310 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2311 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2313 $as_echo_n "checking for $2... " >&6; }
2314 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2315 $as_echo_n "(cached) " >&6
2316 fi
2317 eval ac_res=\$$3
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2319 $as_echo "$ac_res" >&6; }
2320 else
2321 # Is the header compilable?
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2323 $as_echo_n "checking $2 usability... " >&6; }
2324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325 /* end confdefs.h. */
2326 $4
2327 #include <$2>
2328 _ACEOF
2329 if ac_fn_c_try_compile "$LINENO"; then :
2330 ac_header_compiler=yes
2331 else
2332 ac_header_compiler=no
2333 fi
2334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2336 $as_echo "$ac_header_compiler" >&6; }
2337
2338 # Is the header present?
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2340 $as_echo_n "checking $2 presence... " >&6; }
2341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2342 /* end confdefs.h. */
2343 #include <$2>
2344 _ACEOF
2345 if ac_fn_c_try_cpp "$LINENO"; then :
2346 ac_header_preproc=yes
2347 else
2348 ac_header_preproc=no
2349 fi
2350 rm -f conftest.err conftest.$ac_ext
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2352 $as_echo "$ac_header_preproc" >&6; }
2353
2354 # So? What about this header?
2355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2356 yes:no: )
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2358 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2360 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2361 ;;
2362 no:yes:* )
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2364 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2366 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2368 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2370 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2372 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2373 ;;
2374 esac
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2376 $as_echo_n "checking for $2... " >&6; }
2377 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2378 $as_echo_n "(cached) " >&6
2379 else
2380 eval "$3=\$ac_header_compiler"
2381 fi
2382 eval ac_res=\$$3
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2384 $as_echo "$ac_res" >&6; }
2385 fi
2386 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2387
2388 } # ac_fn_c_check_header_mongrel
2389
2390 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2391 # ----------------------------------------------------
2392 # Tries to find if the field MEMBER exists in type AGGR, after including
2393 # INCLUDES, setting cache variable VAR accordingly.
2394 ac_fn_c_check_member ()
2395 {
2396 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2398 $as_echo_n "checking for $2.$3... " >&6; }
2399 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2400 $as_echo_n "(cached) " >&6
2401 else
2402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2403 /* end confdefs.h. */
2404 $5
2405 int
2406 main ()
2407 {
2408 static $2 ac_aggr;
2409 if (ac_aggr.$3)
2410 return 0;
2411 ;
2412 return 0;
2413 }
2414 _ACEOF
2415 if ac_fn_c_try_compile "$LINENO"; then :
2416 eval "$4=yes"
2417 else
2418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2419 /* end confdefs.h. */
2420 $5
2421 int
2422 main ()
2423 {
2424 static $2 ac_aggr;
2425 if (sizeof ac_aggr.$3)
2426 return 0;
2427 ;
2428 return 0;
2429 }
2430 _ACEOF
2431 if ac_fn_c_try_compile "$LINENO"; then :
2432 eval "$4=yes"
2433 else
2434 eval "$4=no"
2435 fi
2436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437 fi
2438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2439 fi
2440 eval ac_res=\$$4
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2442 $as_echo "$ac_res" >&6; }
2443 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2444
2445 } # ac_fn_c_check_member
2446
2447 # ac_fn_c_check_decl LINENO SYMBOL VAR
2448 # ------------------------------------
2449 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2450 ac_fn_c_check_decl ()
2451 {
2452 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2454 $as_echo_n "checking whether $2 is declared... " >&6; }
2455 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2456 $as_echo_n "(cached) " >&6
2457 else
2458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2459 /* end confdefs.h. */
2460 $4
2461 int
2462 main ()
2463 {
2464 #ifndef $2
2465 (void) $2;
2466 #endif
2467
2468 ;
2469 return 0;
2470 }
2471 _ACEOF
2472 if ac_fn_c_try_compile "$LINENO"; then :
2473 eval "$3=yes"
2474 else
2475 eval "$3=no"
2476 fi
2477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2478 fi
2479 eval ac_res=\$$3
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2481 $as_echo "$ac_res" >&6; }
2482 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2483
2484 } # ac_fn_c_check_decl
2485
2486 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2487 # --------------------------------------------
2488 # Tries to find the compile-time value of EXPR in a program that includes
2489 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2490 # computed
2491 ac_fn_c_compute_int ()
2492 {
2493 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2494 if test "$cross_compiling" = yes; then
2495 # Depending upon the size, compute the lo and hi bounds.
2496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2497 /* end confdefs.h. */
2498 $4
2499 int
2500 main ()
2501 {
2502 static int test_array [1 - 2 * !(($2) >= 0)];
2503 test_array [0] = 0
2504
2505 ;
2506 return 0;
2507 }
2508 _ACEOF
2509 if ac_fn_c_try_compile "$LINENO"; then :
2510 ac_lo=0 ac_mid=0
2511 while :; do
2512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513 /* end confdefs.h. */
2514 $4
2515 int
2516 main ()
2517 {
2518 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2519 test_array [0] = 0
2520
2521 ;
2522 return 0;
2523 }
2524 _ACEOF
2525 if ac_fn_c_try_compile "$LINENO"; then :
2526 ac_hi=$ac_mid; break
2527 else
2528 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2529 if test $ac_lo -le $ac_mid; then
2530 ac_lo= ac_hi=
2531 break
2532 fi
2533 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2534 fi
2535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2536 done
2537 else
2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h. */
2540 $4
2541 int
2542 main ()
2543 {
2544 static int test_array [1 - 2 * !(($2) < 0)];
2545 test_array [0] = 0
2546
2547 ;
2548 return 0;
2549 }
2550 _ACEOF
2551 if ac_fn_c_try_compile "$LINENO"; then :
2552 ac_hi=-1 ac_mid=-1
2553 while :; do
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2556 $4
2557 int
2558 main ()
2559 {
2560 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2561 test_array [0] = 0
2562
2563 ;
2564 return 0;
2565 }
2566 _ACEOF
2567 if ac_fn_c_try_compile "$LINENO"; then :
2568 ac_lo=$ac_mid; break
2569 else
2570 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2571 if test $ac_mid -le $ac_hi; then
2572 ac_lo= ac_hi=
2573 break
2574 fi
2575 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2576 fi
2577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2578 done
2579 else
2580 ac_lo= ac_hi=
2581 fi
2582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2583 fi
2584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2585 # Binary search between lo and hi bounds.
2586 while test "x$ac_lo" != "x$ac_hi"; do
2587 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2589 /* end confdefs.h. */
2590 $4
2591 int
2592 main ()
2593 {
2594 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2595 test_array [0] = 0
2596
2597 ;
2598 return 0;
2599 }
2600 _ACEOF
2601 if ac_fn_c_try_compile "$LINENO"; then :
2602 ac_hi=$ac_mid
2603 else
2604 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2605 fi
2606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607 done
2608 case $ac_lo in #((
2609 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2610 '') ac_retval=1 ;;
2611 esac
2612 else
2613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2614 /* end confdefs.h. */
2615 $4
2616 static long int longval () { return $2; }
2617 static unsigned long int ulongval () { return $2; }
2618 #include <stdio.h>
2619 #include <stdlib.h>
2620 int
2621 main ()
2622 {
2623
2624 FILE *f = fopen ("conftest.val", "w");
2625 if (! f)
2626 return 1;
2627 if (($2) < 0)
2628 {
2629 long int i = longval ();
2630 if (i != ($2))
2631 return 1;
2632 fprintf (f, "%ld", i);
2633 }
2634 else
2635 {
2636 unsigned long int i = ulongval ();
2637 if (i != ($2))
2638 return 1;
2639 fprintf (f, "%lu", i);
2640 }
2641 /* Do not output a trailing newline, as this causes \r\n confusion
2642 on some platforms. */
2643 return ferror (f) || fclose (f) != 0;
2644
2645 ;
2646 return 0;
2647 }
2648 _ACEOF
2649 if ac_fn_c_try_run "$LINENO"; then :
2650 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2651 else
2652 ac_retval=1
2653 fi
2654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2655 conftest.$ac_objext conftest.beam conftest.$ac_ext
2656 rm -f conftest.val
2657
2658 fi
2659 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2660 return $ac_retval
2661
2662 } # ac_fn_c_compute_int
2663
2664 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2665 # -------------------------------------------
2666 # Tests whether TYPE exists after having included INCLUDES, setting cache
2667 # variable VAR accordingly.
2668 ac_fn_c_check_type ()
2669 {
2670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2672 $as_echo_n "checking for $2... " >&6; }
2673 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2674 $as_echo_n "(cached) " >&6
2675 else
2676 eval "$3=no"
2677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2678 /* end confdefs.h. */
2679 $4
2680 int
2681 main ()
2682 {
2683 if (sizeof ($2))
2684 return 0;
2685 ;
2686 return 0;
2687 }
2688 _ACEOF
2689 if ac_fn_c_try_compile "$LINENO"; then :
2690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2691 /* end confdefs.h. */
2692 $4
2693 int
2694 main ()
2695 {
2696 if (sizeof (($2)))
2697 return 0;
2698 ;
2699 return 0;
2700 }
2701 _ACEOF
2702 if ac_fn_c_try_compile "$LINENO"; then :
2703
2704 else
2705 eval "$3=yes"
2706 fi
2707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2708 fi
2709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2710 fi
2711 eval ac_res=\$$3
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2713 $as_echo "$ac_res" >&6; }
2714 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2715
2716 } # ac_fn_c_check_type
2717 cat >config.log <<_ACEOF
2718 This file contains any messages produced by compilers while
2719 running configure, to aid debugging if configure makes a mistake.
2720
2721 It was created by libjava $as_me version-unused, which was
2722 generated by GNU Autoconf 2.64. Invocation command line was
2723
2724 $ $0 $@
2725
2726 _ACEOF
2727 exec 5>>config.log
2728 {
2729 cat <<_ASUNAME
2730 ## --------- ##
2731 ## Platform. ##
2732 ## --------- ##
2733
2734 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2735 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2736 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2737 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2738 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2739
2740 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2741 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2742
2743 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2744 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2745 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2746 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2747 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2748 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2749 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2750
2751 _ASUNAME
2752
2753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754 for as_dir in $PATH
2755 do
2756 IFS=$as_save_IFS
2757 test -z "$as_dir" && as_dir=.
2758 $as_echo "PATH: $as_dir"
2759 done
2760 IFS=$as_save_IFS
2761
2762 } >&5
2763
2764 cat >&5 <<_ACEOF
2765
2766
2767 ## ----------- ##
2768 ## Core tests. ##
2769 ## ----------- ##
2770
2771 _ACEOF
2772
2773
2774 # Keep a trace of the command line.
2775 # Strip out --no-create and --no-recursion so they do not pile up.
2776 # Strip out --silent because we don't want to record it for future runs.
2777 # Also quote any args containing shell meta-characters.
2778 # Make two passes to allow for proper duplicate-argument suppression.
2779 ac_configure_args=
2780 ac_configure_args0=
2781 ac_configure_args1=
2782 ac_must_keep_next=false
2783 for ac_pass in 1 2
2784 do
2785 for ac_arg
2786 do
2787 case $ac_arg in
2788 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2789 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2790 | -silent | --silent | --silen | --sile | --sil)
2791 continue ;;
2792 *\'*)
2793 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2794 esac
2795 case $ac_pass in
2796 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2797 2)
2798 as_fn_append ac_configure_args1 " '$ac_arg'"
2799 if test $ac_must_keep_next = true; then
2800 ac_must_keep_next=false # Got value, back to normal.
2801 else
2802 case $ac_arg in
2803 *=* | --config-cache | -C | -disable-* | --disable-* \
2804 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2805 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2806 | -with-* | --with-* | -without-* | --without-* | --x)
2807 case "$ac_configure_args0 " in
2808 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2809 esac
2810 ;;
2811 -* ) ac_must_keep_next=true ;;
2812 esac
2813 fi
2814 as_fn_append ac_configure_args " '$ac_arg'"
2815 ;;
2816 esac
2817 done
2818 done
2819 { ac_configure_args0=; unset ac_configure_args0;}
2820 { ac_configure_args1=; unset ac_configure_args1;}
2821
2822 # When interrupted or exit'd, cleanup temporary files, and complete
2823 # config.log. We remove comments because anyway the quotes in there
2824 # would cause problems or look ugly.
2825 # WARNING: Use '\'' to represent an apostrophe within the trap.
2826 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2827 trap 'exit_status=$?
2828 # Save into config.log some information that might help in debugging.
2829 {
2830 echo
2831
2832 cat <<\_ASBOX
2833 ## ---------------- ##
2834 ## Cache variables. ##
2835 ## ---------------- ##
2836 _ASBOX
2837 echo
2838 # The following way of writing the cache mishandles newlines in values,
2839 (
2840 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2841 eval ac_val=\$$ac_var
2842 case $ac_val in #(
2843 *${as_nl}*)
2844 case $ac_var in #(
2845 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2846 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2847 esac
2848 case $ac_var in #(
2849 _ | IFS | as_nl) ;; #(
2850 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2851 *) { eval $ac_var=; unset $ac_var;} ;;
2852 esac ;;
2853 esac
2854 done
2855 (set) 2>&1 |
2856 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2857 *${as_nl}ac_space=\ *)
2858 sed -n \
2859 "s/'\''/'\''\\\\'\'''\''/g;
2860 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2861 ;; #(
2862 *)
2863 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2864 ;;
2865 esac |
2866 sort
2867 )
2868 echo
2869
2870 cat <<\_ASBOX
2871 ## ----------------- ##
2872 ## Output variables. ##
2873 ## ----------------- ##
2874 _ASBOX
2875 echo
2876 for ac_var in $ac_subst_vars
2877 do
2878 eval ac_val=\$$ac_var
2879 case $ac_val in
2880 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2881 esac
2882 $as_echo "$ac_var='\''$ac_val'\''"
2883 done | sort
2884 echo
2885
2886 if test -n "$ac_subst_files"; then
2887 cat <<\_ASBOX
2888 ## ------------------- ##
2889 ## File substitutions. ##
2890 ## ------------------- ##
2891 _ASBOX
2892 echo
2893 for ac_var in $ac_subst_files
2894 do
2895 eval ac_val=\$$ac_var
2896 case $ac_val in
2897 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2898 esac
2899 $as_echo "$ac_var='\''$ac_val'\''"
2900 done | sort
2901 echo
2902 fi
2903
2904 if test -s confdefs.h; then
2905 cat <<\_ASBOX
2906 ## ----------- ##
2907 ## confdefs.h. ##
2908 ## ----------- ##
2909 _ASBOX
2910 echo
2911 cat confdefs.h
2912 echo
2913 fi
2914 test "$ac_signal" != 0 &&
2915 $as_echo "$as_me: caught signal $ac_signal"
2916 $as_echo "$as_me: exit $exit_status"
2917 } >&5
2918 rm -f core *.core core.conftest.* &&
2919 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2920 exit $exit_status
2921 ' 0
2922 for ac_signal in 1 2 13 15; do
2923 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2924 done
2925 ac_signal=0
2926
2927 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2928 rm -f -r conftest* confdefs.h
2929
2930 $as_echo "/* confdefs.h */" > confdefs.h
2931
2932 # Predefined preprocessor variables.
2933
2934 cat >>confdefs.h <<_ACEOF
2935 #define PACKAGE_NAME "$PACKAGE_NAME"
2936 _ACEOF
2937
2938 cat >>confdefs.h <<_ACEOF
2939 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2940 _ACEOF
2941
2942 cat >>confdefs.h <<_ACEOF
2943 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2944 _ACEOF
2945
2946 cat >>confdefs.h <<_ACEOF
2947 #define PACKAGE_STRING "$PACKAGE_STRING"
2948 _ACEOF
2949
2950 cat >>confdefs.h <<_ACEOF
2951 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2952 _ACEOF
2953
2954 cat >>confdefs.h <<_ACEOF
2955 #define PACKAGE_URL "$PACKAGE_URL"
2956 _ACEOF
2957
2958
2959 # Let the site file select an alternate cache file if it wants to.
2960 # Prefer an explicitly selected file to automatically selected ones.
2961 ac_site_file1=NONE
2962 ac_site_file2=NONE
2963 if test -n "$CONFIG_SITE"; then
2964 ac_site_file1=$CONFIG_SITE
2965 elif test "x$prefix" != xNONE; then
2966 ac_site_file1=$prefix/share/config.site
2967 ac_site_file2=$prefix/etc/config.site
2968 else
2969 ac_site_file1=$ac_default_prefix/share/config.site
2970 ac_site_file2=$ac_default_prefix/etc/config.site
2971 fi
2972 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2973 do
2974 test "x$ac_site_file" = xNONE && continue
2975 if test -r "$ac_site_file"; then
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2977 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2978 sed 's/^/| /' "$ac_site_file" >&5
2979 . "$ac_site_file"
2980 fi
2981 done
2982
2983 if test -r "$cache_file"; then
2984 # Some versions of bash will fail to source /dev/null (special
2985 # files actually), so we avoid doing that.
2986 if test -f "$cache_file"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2988 $as_echo "$as_me: loading cache $cache_file" >&6;}
2989 case $cache_file in
2990 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2991 *) . "./$cache_file";;
2992 esac
2993 fi
2994 else
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2996 $as_echo "$as_me: creating cache $cache_file" >&6;}
2997 >$cache_file
2998 fi
2999
3000 # Check that the precious variables saved in the cache have kept the same
3001 # value.
3002 ac_cache_corrupted=false
3003 for ac_var in $ac_precious_vars; do
3004 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3005 eval ac_new_set=\$ac_env_${ac_var}_set
3006 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3007 eval ac_new_val=\$ac_env_${ac_var}_value
3008 case $ac_old_set,$ac_new_set in
3009 set,)
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3011 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3012 ac_cache_corrupted=: ;;
3013 ,set)
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3015 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3016 ac_cache_corrupted=: ;;
3017 ,);;
3018 *)
3019 if test "x$ac_old_val" != "x$ac_new_val"; then
3020 # differences in whitespace do not lead to failure.
3021 ac_old_val_w=`echo x $ac_old_val`
3022 ac_new_val_w=`echo x $ac_new_val`
3023 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3025 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3026 ac_cache_corrupted=:
3027 else
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3029 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3030 eval $ac_var=\$ac_old_val
3031 fi
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3033 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3035 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3036 fi;;
3037 esac
3038 # Pass precious variables to config.status.
3039 if test "$ac_new_set" = set; then
3040 case $ac_new_val in
3041 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3042 *) ac_arg=$ac_var=$ac_new_val ;;
3043 esac
3044 case " $ac_configure_args " in
3045 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3046 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3047 esac
3048 fi
3049 done
3050 if $ac_cache_corrupted; then
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3054 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3055 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3056 fi
3057 ## -------------------- ##
3058 ## Main body of script. ##
3059 ## -------------------- ##
3060
3061 ac_ext=c
3062 ac_cpp='$CPP $CPPFLAGS'
3063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3066
3067
3068
3069
3070
3071
3072
3073
3074 ac_aux_dir=
3075 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3076 for ac_t in install-sh install.sh shtool; do
3077 if test -f "$ac_dir/$ac_t"; then
3078 ac_aux_dir=$ac_dir
3079 ac_install_sh="$ac_aux_dir/$ac_t -c"
3080 break 2
3081 fi
3082 done
3083 done
3084 if test -z "$ac_aux_dir"; then
3085 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3086 fi
3087
3088 # These three variables are undocumented and unsupported,
3089 # and are intended to be withdrawn in a future Autoconf release.
3090 # They can cause serious problems if a builder's source tree is in a directory
3091 # whose full name contains unusual characters.
3092 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3093 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3094 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3095
3096
3097 # Make sure we can run config.sub.
3098 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3099 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3100
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3102 $as_echo_n "checking build system type... " >&6; }
3103 if test "${ac_cv_build+set}" = set; then :
3104 $as_echo_n "(cached) " >&6
3105 else
3106 ac_build_alias=$build_alias
3107 test "x$ac_build_alias" = x &&
3108 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3109 test "x$ac_build_alias" = x &&
3110 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3111 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3112 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3113
3114 fi
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3116 $as_echo "$ac_cv_build" >&6; }
3117 case $ac_cv_build in
3118 *-*-*) ;;
3119 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3120 esac
3121 build=$ac_cv_build
3122 ac_save_IFS=$IFS; IFS='-'
3123 set x $ac_cv_build
3124 shift
3125 build_cpu=$1
3126 build_vendor=$2
3127 shift; shift
3128 # Remember, the first character of IFS is used to create $*,
3129 # except with old shells:
3130 build_os=$*
3131 IFS=$ac_save_IFS
3132 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3133
3134
3135 case ${build_alias} in
3136 "") build_noncanonical=${build} ;;
3137 *) build_noncanonical=${build_alias} ;;
3138 esac
3139
3140 case ${host_alias} in
3141 "") host_noncanonical=${build_noncanonical} ;;
3142 *) host_noncanonical=${host_alias} ;;
3143 esac
3144
3145 case ${target_alias} in
3146 "") target_noncanonical=${host_noncanonical} ;;
3147 *) target_noncanonical=${target_alias} ;;
3148 esac
3149
3150
3151 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3152 # have matching libraries, they should use host libraries: Makefile.tpl
3153 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3154 # However, they still use the build modules, because the corresponding
3155 # host modules (e.g. bison) are only built for the host when bootstrap
3156 # finishes. So:
3157 # - build_subdir is where we find build modules, and never changes.
3158 # - build_libsubdir is where we find build libraries, and can be overridden.
3159
3160 # Prefix 'build-' so this never conflicts with target_subdir.
3161 build_subdir="build-${build_noncanonical}"
3162
3163 # Check whether --with-build-libsubdir was given.
3164 if test "${with_build_libsubdir+set}" = set; then :
3165 withval=$with_build_libsubdir; build_libsubdir="$withval"
3166 else
3167 build_libsubdir="$build_subdir"
3168 fi
3169
3170 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3171 if ( test $srcdir = . && test -d gcc ) \
3172 || test -d $srcdir/../host-${host_noncanonical}; then
3173 host_subdir="host-${host_noncanonical}"
3174 else
3175 host_subdir=.
3176 fi
3177 # No prefix.
3178 target_subdir=${target_noncanonical}
3179
3180
3181 # We use these options to decide which functions to include.
3182
3183 # Check whether --with-target-subdir was given.
3184 if test "${with_target_subdir+set}" = set; then :
3185 withval=$with_target_subdir;
3186 fi
3187
3188
3189 # We may get other options which we don't document:
3190 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3191
3192 # Find the rest of the source tree framework.
3193 # Default to --enable-multilib
3194 # Check whether --enable-multilib was given.
3195 if test "${enable_multilib+set}" = set; then :
3196 enableval=$enable_multilib; case "$enableval" in
3197 yes) multilib=yes ;;
3198 no) multilib=no ;;
3199 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3200 esac
3201 else
3202 multilib=yes
3203 fi
3204
3205
3206 # We may get other options which we leave undocumented:
3207 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3208 # See config-ml.in if you want the gory details.
3209
3210 if test "$srcdir" = "."; then
3211 if test "$with_target_subdir" != "."; then
3212 multi_basedir="$srcdir/$with_multisrctop../.."
3213 else
3214 multi_basedir="$srcdir/$with_multisrctop.."
3215 fi
3216 else
3217 multi_basedir="$srcdir/.."
3218 fi
3219
3220
3221 # Even if the default multilib is not a cross compilation,
3222 # it may be that some of the other multilibs are.
3223 if test $cross_compiling = no && test $multilib = yes \
3224 && test "x${with_multisubdir}" != x ; then
3225 cross_compiling=maybe
3226 fi
3227
3228 ac_config_commands="$ac_config_commands default-1"
3229
3230
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3232 $as_echo_n "checking host system type... " >&6; }
3233 if test "${ac_cv_host+set}" = set; then :
3234 $as_echo_n "(cached) " >&6
3235 else
3236 if test "x$host_alias" = x; then
3237 ac_cv_host=$ac_cv_build
3238 else
3239 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3240 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3241 fi
3242
3243 fi
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3245 $as_echo "$ac_cv_host" >&6; }
3246 case $ac_cv_host in
3247 *-*-*) ;;
3248 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3249 esac
3250 host=$ac_cv_host
3251 ac_save_IFS=$IFS; IFS='-'
3252 set x $ac_cv_host
3253 shift
3254 host_cpu=$1
3255 host_vendor=$2
3256 shift; shift
3257 # Remember, the first character of IFS is used to create $*,
3258 # except with old shells:
3259 host_os=$*
3260 IFS=$ac_save_IFS
3261 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3262
3263
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3265 $as_echo_n "checking target system type... " >&6; }
3266 if test "${ac_cv_target+set}" = set; then :
3267 $as_echo_n "(cached) " >&6
3268 else
3269 if test "x$target_alias" = x; then
3270 ac_cv_target=$ac_cv_host
3271 else
3272 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3273 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3274 fi
3275
3276 fi
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3278 $as_echo "$ac_cv_target" >&6; }
3279 case $ac_cv_target in
3280 *-*-*) ;;
3281 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3282 esac
3283 target=$ac_cv_target
3284 ac_save_IFS=$IFS; IFS='-'
3285 set x $ac_cv_target
3286 shift
3287 target_cpu=$1
3288 target_vendor=$2
3289 shift; shift
3290 # Remember, the first character of IFS is used to create $*,
3291 # except with old shells:
3292 target_os=$*
3293 IFS=$ac_save_IFS
3294 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3295
3296
3297 # The aliases save the names the user supplied, while $host etc.
3298 # will get canonicalized.
3299 test -n "$target_alias" &&
3300 test "$program_prefix$program_suffix$program_transform_name" = \
3301 NONENONEs,x,x, &&
3302 program_prefix=${target_alias}-
3303
3304 case ${build_alias} in
3305 "") build_noncanonical=${build} ;;
3306 *) build_noncanonical=${build_alias} ;;
3307 esac
3308
3309 case ${target_alias} in
3310 "") target_noncanonical=${host_noncanonical} ;;
3311 *) target_noncanonical=${target_alias} ;;
3312 esac
3313
3314
3315
3316
3317 # This works around the fact that libtool configuration may change LD
3318 # for this particular configuration, but some shells, instead of
3319 # keeping the changes in LD private, export them just because LD is
3320 # exported.
3321 ORIGINAL_LD_FOR_MULTILIBS=$LD
3322
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3324 $as_echo_n "checking whether ln -s works... " >&6; }
3325 LN_S=$as_ln_s
3326 if test "$LN_S" = "ln -s"; then
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3328 $as_echo "yes" >&6; }
3329 else
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3331 $as_echo "no, using $LN_S" >&6; }
3332 fi
3333
3334
3335 # This works around an automake problem.
3336 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
3337
3338
3339
3340 # Check whether --with-cross-host was given.
3341 if test "${with_cross_host+set}" = set; then :
3342 withval=$with_cross_host;
3343 fi
3344
3345
3346
3347 # Check whether --with-newlib was given.
3348 if test "${with_newlib+set}" = set; then :
3349 withval=$with_newlib;
3350 fi
3351
3352
3353 # Check whether --enable-version-specific-runtime-libs was given.
3354 if test "${enable_version_specific_runtime_libs+set}" = set; then :
3355 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
3356 yes) version_specific_libs=yes ;;
3357 no) version_specific_libs=no ;;
3358 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3359 esac
3360 else
3361 version_specific_libs=no
3362
3363 fi
3364
3365
3366 # Check whether --enable-plugin was given.
3367 if test "${enable_plugin+set}" = set; then :
3368 enableval=$enable_plugin; case "$enableval" in
3369 yes) plugin_enabled=yes ;;
3370 no) plugin_enabled=no ;;
3371 *) as_fn_error "Unknown argument to enable/disable plugin" "$LINENO" 5;;
3372 esac
3373 else
3374 plugin_enabled=no
3375
3376 fi
3377
3378
3379 # Check whether --enable-gconf-peer was given.
3380 if test "${enable_gconf_peer+set}" = set; then :
3381 enableval=$enable_gconf_peer; case "$enableval" in
3382 yes) gconf_enabled=yes ;;
3383 no) gconf_enabled=no ;;
3384 *) as_fn_error "Unknown argument to enable/disable gconf-peer" "$LINENO" 5;;
3385 esac
3386 else
3387 gconf_enabled=no
3388
3389 fi
3390
3391
3392
3393 # Check whether --with-antlr-jar was given.
3394 if test "${with_antlr_jar+set}" = set; then :
3395 withval=$with_antlr_jar;
3396 ANTLR_JAR=$withval
3397
3398 else
3399
3400 ANTLR_JAR=
3401
3402 fi
3403
3404
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr.jar" >&5
3406 $as_echo_n "checking for antlr.jar... " >&6; }
3407 if test "x$ANTLR_JAR" = x; then
3408 for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
3409 /usr/share/antlr/lib /usr/share/java /usr/lib;
3410 do
3411 if test -f "$antlr_lib_home/antlr.jar"; then
3412 # FIXME: version check for antlr needed without using a VM
3413 ANTLR_JAR="$antlr_lib_home/antlr.jar"
3414 break
3415 fi
3416 done
3417 if test "x$ANTLR_JAR" = x; then
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
3419 $as_echo "not found" >&6; }
3420 else
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3422 $as_echo "$ANTLR_JAR" >&6; }
3423 fi
3424 else
3425 if test -f "${ANTLR_JAR}"; then
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3427 $as_echo "$ANTLR_JAR" >&6; }
3428 else
3429 as_fn_error "antlr jar file not found: $ANTLR_JAR" "$LINENO" 5
3430 fi
3431 fi
3432
3433
3434 # Check whether --enable-gjdoc was given.
3435 if test "${enable_gjdoc+set}" = set; then :
3436 enableval=$enable_gjdoc; case "${enableval}" in
3437 yes) BUILD_GJDOC=yes ;;
3438 no) BUILD_GJDOC=no ;;
3439 *) BUILD_GJDOC=yes ;;
3440 esac
3441 else
3442 BUILD_GJDOC=maybe
3443 fi
3444
3445
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gjdoc" >&5
3447 $as_echo_n "checking whether to build gjdoc... " >&6; }
3448 if test "x$BUILD_GJDOC" = xmaybe; then
3449 if test -f "${ANTLR_JAR}"; then
3450 BUILD_GJDOC=yes
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3452 $as_echo "yes" >&6; }
3453 else
3454 BUILD_GJDOC=no
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, antlr.jar not found" >&5
3456 $as_echo "no, antlr.jar not found" >&6; }
3457 fi
3458 else
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_GJDOC" >&5
3460 $as_echo "$BUILD_GJDOC" >&6; }
3461 fi
3462 if test "x${BUILD_GJDOC}" = xyes; then
3463 CREATE_GJDOC_TRUE=
3464 CREATE_GJDOC_FALSE='#'
3465 else
3466 CREATE_GJDOC_TRUE='#'
3467 CREATE_GJDOC_FALSE=
3468 fi
3469
3470
3471 # Check whether --enable-java-maintainer-mode was given.
3472 if test "${enable_java_maintainer_mode+set}" = set; then :
3473 enableval=$enable_java_maintainer_mode;
3474 fi
3475
3476 if test "$enable_java_maintainer_mode" = yes; then
3477 JAVA_MAINTAINER_MODE_TRUE=
3478 JAVA_MAINTAINER_MODE_FALSE='#'
3479 else
3480 JAVA_MAINTAINER_MODE_TRUE='#'
3481 JAVA_MAINTAINER_MODE_FALSE=
3482 fi
3483
3484
3485 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
3486
3487
3488 # (1) We use an abnormal CXX (without library references), so we
3489 # must cache it under a different name.
3490 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
3491 # the non-multilib-adjusted value will be used in multilibs.
3492 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
3493 # (4) As another side effect, automake doesn't automatically include them
3494 # in Makefile.in.
3495 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
3496 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
3497 # used in later tests. This may not be necessary in libjava; I don't know.
3498
3499
3500 save_CXXFLAGS="$CXXFLAGS"
3501 CXXFLAGS="$CXXFLAGS -fno-builtin"
3502 ac_ext=c
3503 ac_cpp='$CPP $CPPFLAGS'
3504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3507 if test -n "$ac_tool_prefix"; then
3508 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3509 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3511 $as_echo_n "checking for $ac_word... " >&6; }
3512 if test "${ac_cv_prog_CC+set}" = set; then :
3513 $as_echo_n "(cached) " >&6
3514 else
3515 if test -n "$CC"; then
3516 ac_cv_prog_CC="$CC" # Let the user override the test.
3517 else
3518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 for as_dir in $PATH
3520 do
3521 IFS=$as_save_IFS
3522 test -z "$as_dir" && as_dir=.
3523 for ac_exec_ext in '' $ac_executable_extensions; do
3524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3525 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3527 break 2
3528 fi
3529 done
3530 done
3531 IFS=$as_save_IFS
3532
3533 fi
3534 fi
3535 CC=$ac_cv_prog_CC
3536 if test -n "$CC"; then
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3538 $as_echo "$CC" >&6; }
3539 else
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 $as_echo "no" >&6; }
3542 fi
3543
3544
3545 fi
3546 if test -z "$ac_cv_prog_CC"; then
3547 ac_ct_CC=$CC
3548 # Extract the first word of "gcc", so it can be a program name with args.
3549 set dummy gcc; ac_word=$2
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3551 $as_echo_n "checking for $ac_word... " >&6; }
3552 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3553 $as_echo_n "(cached) " >&6
3554 else
3555 if test -n "$ac_ct_CC"; then
3556 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3557 else
3558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559 for as_dir in $PATH
3560 do
3561 IFS=$as_save_IFS
3562 test -z "$as_dir" && as_dir=.
3563 for ac_exec_ext in '' $ac_executable_extensions; do
3564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3565 ac_cv_prog_ac_ct_CC="gcc"
3566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3567 break 2
3568 fi
3569 done
3570 done
3571 IFS=$as_save_IFS
3572
3573 fi
3574 fi
3575 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3576 if test -n "$ac_ct_CC"; then
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3578 $as_echo "$ac_ct_CC" >&6; }
3579 else
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581 $as_echo "no" >&6; }
3582 fi
3583
3584 if test "x$ac_ct_CC" = x; then
3585 CC=""
3586 else
3587 case $cross_compiling:$ac_tool_warned in
3588 yes:)
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3591 ac_tool_warned=yes ;;
3592 esac
3593 CC=$ac_ct_CC
3594 fi
3595 else
3596 CC="$ac_cv_prog_CC"
3597 fi
3598
3599 if test -z "$CC"; then
3600 if test -n "$ac_tool_prefix"; then
3601 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3602 set dummy ${ac_tool_prefix}cc; ac_word=$2
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3604 $as_echo_n "checking for $ac_word... " >&6; }
3605 if test "${ac_cv_prog_CC+set}" = set; then :
3606 $as_echo_n "(cached) " >&6
3607 else
3608 if test -n "$CC"; then
3609 ac_cv_prog_CC="$CC" # Let the user override the test.
3610 else
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 for as_dir in $PATH
3613 do
3614 IFS=$as_save_IFS
3615 test -z "$as_dir" && as_dir=.
3616 for ac_exec_ext in '' $ac_executable_extensions; do
3617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3618 ac_cv_prog_CC="${ac_tool_prefix}cc"
3619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3620 break 2
3621 fi
3622 done
3623 done
3624 IFS=$as_save_IFS
3625
3626 fi
3627 fi
3628 CC=$ac_cv_prog_CC
3629 if test -n "$CC"; then
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3631 $as_echo "$CC" >&6; }
3632 else
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3634 $as_echo "no" >&6; }
3635 fi
3636
3637
3638 fi
3639 fi
3640 if test -z "$CC"; then
3641 # Extract the first word of "cc", so it can be a program name with args.
3642 set dummy cc; ac_word=$2
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3644 $as_echo_n "checking for $ac_word... " >&6; }
3645 if test "${ac_cv_prog_CC+set}" = set; then :
3646 $as_echo_n "(cached) " >&6
3647 else
3648 if test -n "$CC"; then
3649 ac_cv_prog_CC="$CC" # Let the user override the test.
3650 else
3651 ac_prog_rejected=no
3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653 for as_dir in $PATH
3654 do
3655 IFS=$as_save_IFS
3656 test -z "$as_dir" && as_dir=.
3657 for ac_exec_ext in '' $ac_executable_extensions; do
3658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3659 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3660 ac_prog_rejected=yes
3661 continue
3662 fi
3663 ac_cv_prog_CC="cc"
3664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3665 break 2
3666 fi
3667 done
3668 done
3669 IFS=$as_save_IFS
3670
3671 if test $ac_prog_rejected = yes; then
3672 # We found a bogon in the path, so make sure we never use it.
3673 set dummy $ac_cv_prog_CC
3674 shift
3675 if test $# != 0; then
3676 # We chose a different compiler from the bogus one.
3677 # However, it has the same basename, so the bogon will be chosen
3678 # first if we set CC to just the basename; use the full file name.
3679 shift
3680 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3681 fi
3682 fi
3683 fi
3684 fi
3685 CC=$ac_cv_prog_CC
3686 if test -n "$CC"; then
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3688 $as_echo "$CC" >&6; }
3689 else
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3691 $as_echo "no" >&6; }
3692 fi
3693
3694
3695 fi
3696 if test -z "$CC"; then
3697 if test -n "$ac_tool_prefix"; then
3698 for ac_prog in cl.exe
3699 do
3700 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3701 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3703 $as_echo_n "checking for $ac_word... " >&6; }
3704 if test "${ac_cv_prog_CC+set}" = set; then :
3705 $as_echo_n "(cached) " >&6
3706 else
3707 if test -n "$CC"; then
3708 ac_cv_prog_CC="$CC" # Let the user override the test.
3709 else
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH
3712 do
3713 IFS=$as_save_IFS
3714 test -z "$as_dir" && as_dir=.
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3717 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3719 break 2
3720 fi
3721 done
3722 done
3723 IFS=$as_save_IFS
3724
3725 fi
3726 fi
3727 CC=$ac_cv_prog_CC
3728 if test -n "$CC"; then
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3730 $as_echo "$CC" >&6; }
3731 else
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3733 $as_echo "no" >&6; }
3734 fi
3735
3736
3737 test -n "$CC" && break
3738 done
3739 fi
3740 if test -z "$CC"; then
3741 ac_ct_CC=$CC
3742 for ac_prog in cl.exe
3743 do
3744 # Extract the first word of "$ac_prog", so it can be a program name with args.
3745 set dummy $ac_prog; ac_word=$2
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3747 $as_echo_n "checking for $ac_word... " >&6; }
3748 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3749 $as_echo_n "(cached) " >&6
3750 else
3751 if test -n "$ac_ct_CC"; then
3752 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3753 else
3754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755 for as_dir in $PATH
3756 do
3757 IFS=$as_save_IFS
3758 test -z "$as_dir" && as_dir=.
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3761 ac_cv_prog_ac_ct_CC="$ac_prog"
3762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3763 break 2
3764 fi
3765 done
3766 done
3767 IFS=$as_save_IFS
3768
3769 fi
3770 fi
3771 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3772 if test -n "$ac_ct_CC"; then
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3774 $as_echo "$ac_ct_CC" >&6; }
3775 else
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3777 $as_echo "no" >&6; }
3778 fi
3779
3780
3781 test -n "$ac_ct_CC" && break
3782 done
3783
3784 if test "x$ac_ct_CC" = x; then
3785 CC=""
3786 else
3787 case $cross_compiling:$ac_tool_warned in
3788 yes:)
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3791 ac_tool_warned=yes ;;
3792 esac
3793 CC=$ac_ct_CC
3794 fi
3795 fi
3796
3797 fi
3798
3799
3800 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3802 as_fn_error "no acceptable C compiler found in \$PATH
3803 See \`config.log' for more details." "$LINENO" 5; }
3804
3805 # Provide some information about the compiler.
3806 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3807 set X $ac_compile
3808 ac_compiler=$2
3809 for ac_option in --version -v -V -qversion; do
3810 { { ac_try="$ac_compiler $ac_option >&5"
3811 case "(($ac_try" in
3812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813 *) ac_try_echo=$ac_try;;
3814 esac
3815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3816 $as_echo "$ac_try_echo"; } >&5
3817 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3818 ac_status=$?
3819 if test -s conftest.err; then
3820 sed '10a\
3821 ... rest of stderr output deleted ...
3822 10q' conftest.err >conftest.er1
3823 cat conftest.er1 >&5
3824 rm -f conftest.er1 conftest.err
3825 fi
3826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827 test $ac_status = 0; }
3828 done
3829
3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h. */
3832
3833 int
3834 main ()
3835 {
3836
3837 ;
3838 return 0;
3839 }
3840 _ACEOF
3841 # FIXME: Cleanup?
3842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3843 (eval $ac_link) 2>&5
3844 ac_status=$?
3845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3846 test $ac_status = 0; }; then :
3847 gcc_no_link=no
3848 else
3849 gcc_no_link=yes
3850 fi
3851 if test x$gcc_no_link = xyes; then
3852 # Setting cross_compile will disable run tests; it will
3853 # also disable AC_CHECK_FILE but that's generally
3854 # correct if we can't link.
3855 cross_compiling=yes
3856 EXEEXT=
3857 else
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859 /* end confdefs.h. */
3860
3861 int
3862 main ()
3863 {
3864
3865 ;
3866 return 0;
3867 }
3868 _ACEOF
3869 ac_clean_files_save=$ac_clean_files
3870 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3871 # Try to create an executable without -o first, disregard a.out.
3872 # It will help us diagnose broken compilers, and finding out an intuition
3873 # of exeext.
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3875 $as_echo_n "checking for C compiler default output file name... " >&6; }
3876 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3877
3878 # The possible output files:
3879 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3880
3881 ac_rmfiles=
3882 for ac_file in $ac_files
3883 do
3884 case $ac_file in
3885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3886 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3887 esac
3888 done
3889 rm -f $ac_rmfiles
3890
3891 if { { ac_try="$ac_link_default"
3892 case "(($ac_try" in
3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894 *) ac_try_echo=$ac_try;;
3895 esac
3896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3897 $as_echo "$ac_try_echo"; } >&5
3898 (eval "$ac_link_default") 2>&5
3899 ac_status=$?
3900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3901 test $ac_status = 0; }; then :
3902 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3903 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3904 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3905 # so that the user can short-circuit this test for compilers unknown to
3906 # Autoconf.
3907 for ac_file in $ac_files ''
3908 do
3909 test -f "$ac_file" || continue
3910 case $ac_file in
3911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3912 ;;
3913 [ab].out )
3914 # We found the default executable, but exeext='' is most
3915 # certainly right.
3916 break;;
3917 *.* )
3918 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3919 then :; else
3920 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3921 fi
3922 # We set ac_cv_exeext here because the later test for it is not
3923 # safe: cross compilers may not add the suffix if given an `-o'
3924 # argument, so we may need to know it at that point already.
3925 # Even if this section looks crufty: it has the advantage of
3926 # actually working.
3927 break;;
3928 * )
3929 break;;
3930 esac
3931 done
3932 test "$ac_cv_exeext" = no && ac_cv_exeext=
3933
3934 else
3935 ac_file=''
3936 fi
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3938 $as_echo "$ac_file" >&6; }
3939 if test -z "$ac_file"; then :
3940 $as_echo "$as_me: failed program was:" >&5
3941 sed 's/^/| /' conftest.$ac_ext >&5
3942
3943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3945 { as_fn_set_status 77
3946 as_fn_error "C compiler cannot create executables
3947 See \`config.log' for more details." "$LINENO" 5; }; }
3948 fi
3949 ac_exeext=$ac_cv_exeext
3950
3951 # Check that the compiler produces executables we can run. If not, either
3952 # the compiler is broken, or we cross compile.
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3954 $as_echo_n "checking whether the C compiler works... " >&6; }
3955 # If not cross compiling, check that we can run a simple program.
3956 if test "$cross_compiling" != yes; then
3957 if { ac_try='./$ac_file'
3958 { { case "(($ac_try" in
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3961 esac
3962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3963 $as_echo "$ac_try_echo"; } >&5
3964 (eval "$ac_try") 2>&5
3965 ac_status=$?
3966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3967 test $ac_status = 0; }; }; then
3968 cross_compiling=no
3969 else
3970 if test "$cross_compiling" = maybe; then
3971 cross_compiling=yes
3972 else
3973 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3974 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3975 as_fn_error "cannot run C compiled programs.
3976 If you meant to cross compile, use \`--host'.
3977 See \`config.log' for more details." "$LINENO" 5; }
3978 fi
3979 fi
3980 fi
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3982 $as_echo "yes" >&6; }
3983
3984 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3985 ac_clean_files=$ac_clean_files_save
3986 # Check that the compiler produces executables we can run. If not, either
3987 # the compiler is broken, or we cross compile.
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3989 $as_echo_n "checking whether we are cross compiling... " >&6; }
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3991 $as_echo "$cross_compiling" >&6; }
3992
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3994 $as_echo_n "checking for suffix of executables... " >&6; }
3995 if { { ac_try="$ac_link"
3996 case "(($ac_try" in
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
3999 esac
4000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4001 $as_echo "$ac_try_echo"; } >&5
4002 (eval "$ac_link") 2>&5
4003 ac_status=$?
4004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4005 test $ac_status = 0; }; then :
4006 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4007 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4008 # work properly (i.e., refer to `conftest.exe'), while it won't with
4009 # `rm'.
4010 for ac_file in conftest.exe conftest conftest.*; do
4011 test -f "$ac_file" || continue
4012 case $ac_file in
4013 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4014 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4015 break;;
4016 * ) break;;
4017 esac
4018 done
4019 else
4020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4022 as_fn_error "cannot compute suffix of executables: cannot compile and link
4023 See \`config.log' for more details." "$LINENO" 5; }
4024 fi
4025 rm -f conftest$ac_cv_exeext
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4027 $as_echo "$ac_cv_exeext" >&6; }
4028
4029 rm -f conftest.$ac_ext
4030 EXEEXT=$ac_cv_exeext
4031 ac_exeext=$EXEEXT
4032 fi
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4034 $as_echo_n "checking for suffix of object files... " >&6; }
4035 if test "${ac_cv_objext+set}" = set; then :
4036 $as_echo_n "(cached) " >&6
4037 else
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4040
4041 int
4042 main ()
4043 {
4044
4045 ;
4046 return 0;
4047 }
4048 _ACEOF
4049 rm -f conftest.o conftest.obj
4050 if { { ac_try="$ac_compile"
4051 case "(($ac_try" in
4052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053 *) ac_try_echo=$ac_try;;
4054 esac
4055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4056 $as_echo "$ac_try_echo"; } >&5
4057 (eval "$ac_compile") 2>&5
4058 ac_status=$?
4059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4060 test $ac_status = 0; }; then :
4061 for ac_file in conftest.o conftest.obj conftest.*; do
4062 test -f "$ac_file" || continue;
4063 case $ac_file in
4064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4065 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4066 break;;
4067 esac
4068 done
4069 else
4070 $as_echo "$as_me: failed program was:" >&5
4071 sed 's/^/| /' conftest.$ac_ext >&5
4072
4073 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4075 as_fn_error "cannot compute suffix of object files: cannot compile
4076 See \`config.log' for more details." "$LINENO" 5; }
4077 fi
4078 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4079 fi
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4081 $as_echo "$ac_cv_objext" >&6; }
4082 OBJEXT=$ac_cv_objext
4083 ac_objext=$OBJEXT
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4085 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4086 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4087 $as_echo_n "(cached) " >&6
4088 else
4089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h. */
4091
4092 int
4093 main ()
4094 {
4095 #ifndef __GNUC__
4096 choke me
4097 #endif
4098
4099 ;
4100 return 0;
4101 }
4102 _ACEOF
4103 if ac_fn_c_try_compile "$LINENO"; then :
4104 ac_compiler_gnu=yes
4105 else
4106 ac_compiler_gnu=no
4107 fi
4108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4110
4111 fi
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4113 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4114 if test $ac_compiler_gnu = yes; then
4115 GCC=yes
4116 else
4117 GCC=
4118 fi
4119 ac_test_CFLAGS=${CFLAGS+set}
4120 ac_save_CFLAGS=$CFLAGS
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4122 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4123 if test "${ac_cv_prog_cc_g+set}" = set; then :
4124 $as_echo_n "(cached) " >&6
4125 else
4126 ac_save_c_werror_flag=$ac_c_werror_flag
4127 ac_c_werror_flag=yes
4128 ac_cv_prog_cc_g=no
4129 CFLAGS="-g"
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4132
4133 int
4134 main ()
4135 {
4136
4137 ;
4138 return 0;
4139 }
4140 _ACEOF
4141 if ac_fn_c_try_compile "$LINENO"; then :
4142 ac_cv_prog_cc_g=yes
4143 else
4144 CFLAGS=""
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4147
4148 int
4149 main ()
4150 {
4151
4152 ;
4153 return 0;
4154 }
4155 _ACEOF
4156 if ac_fn_c_try_compile "$LINENO"; then :
4157
4158 else
4159 ac_c_werror_flag=$ac_save_c_werror_flag
4160 CFLAGS="-g"
4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4163
4164 int
4165 main ()
4166 {
4167
4168 ;
4169 return 0;
4170 }
4171 _ACEOF
4172 if ac_fn_c_try_compile "$LINENO"; then :
4173 ac_cv_prog_cc_g=yes
4174 fi
4175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176 fi
4177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178 fi
4179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180 ac_c_werror_flag=$ac_save_c_werror_flag
4181 fi
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4183 $as_echo "$ac_cv_prog_cc_g" >&6; }
4184 if test "$ac_test_CFLAGS" = set; then
4185 CFLAGS=$ac_save_CFLAGS
4186 elif test $ac_cv_prog_cc_g = yes; then
4187 if test "$GCC" = yes; then
4188 CFLAGS="-g -O2"
4189 else
4190 CFLAGS="-g"
4191 fi
4192 else
4193 if test "$GCC" = yes; then
4194 CFLAGS="-O2"
4195 else
4196 CFLAGS=
4197 fi
4198 fi
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4200 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4201 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4202 $as_echo_n "(cached) " >&6
4203 else
4204 ac_cv_prog_cc_c89=no
4205 ac_save_CC=$CC
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4208 #include <stdarg.h>
4209 #include <stdio.h>
4210 #include <sys/types.h>
4211 #include <sys/stat.h>
4212 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4213 struct buf { int x; };
4214 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4215 static char *e (p, i)
4216 char **p;
4217 int i;
4218 {
4219 return p[i];
4220 }
4221 static char *f (char * (*g) (char **, int), char **p, ...)
4222 {
4223 char *s;
4224 va_list v;
4225 va_start (v,p);
4226 s = g (p, va_arg (v,int));
4227 va_end (v);
4228 return s;
4229 }
4230
4231 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4232 function prototypes and stuff, but not '\xHH' hex character constants.
4233 These don't provoke an error unfortunately, instead are silently treated
4234 as 'x'. The following induces an error, until -std is added to get
4235 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4236 array size at least. It's necessary to write '\x00'==0 to get something
4237 that's true only with -std. */
4238 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4239
4240 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4241 inside strings and character constants. */
4242 #define FOO(x) 'x'
4243 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4244
4245 int test (int i, double x);
4246 struct s1 {int (*f) (int a);};
4247 struct s2 {int (*f) (double a);};
4248 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4249 int argc;
4250 char **argv;
4251 int
4252 main ()
4253 {
4254 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4255 ;
4256 return 0;
4257 }
4258 _ACEOF
4259 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4260 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4261 do
4262 CC="$ac_save_CC $ac_arg"
4263 if ac_fn_c_try_compile "$LINENO"; then :
4264 ac_cv_prog_cc_c89=$ac_arg
4265 fi
4266 rm -f core conftest.err conftest.$ac_objext
4267 test "x$ac_cv_prog_cc_c89" != "xno" && break
4268 done
4269 rm -f conftest.$ac_ext
4270 CC=$ac_save_CC
4271
4272 fi
4273 # AC_CACHE_VAL
4274 case "x$ac_cv_prog_cc_c89" in
4275 x)
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4277 $as_echo "none needed" >&6; } ;;
4278 xno)
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4280 $as_echo "unsupported" >&6; } ;;
4281 *)
4282 CC="$CC $ac_cv_prog_cc_c89"
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4284 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4285 esac
4286 if test "x$ac_cv_prog_cc_c89" != xno; then :
4287
4288 fi
4289
4290 ac_ext=c
4291 ac_cpp='$CPP $CPPFLAGS'
4292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4295
4296 ac_ext=cpp
4297 ac_cpp='$CXXCPP $CPPFLAGS'
4298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4301 if test -z "$CXX"; then
4302 if test -n "$CCC"; then
4303 CXX=$CCC
4304 else
4305 if test -n "$ac_tool_prefix"; then
4306 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4307 do
4308 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4309 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4311 $as_echo_n "checking for $ac_word... " >&6; }
4312 if test "${ac_cv_prog_CXX+set}" = set; then :
4313 $as_echo_n "(cached) " >&6
4314 else
4315 if test -n "$CXX"; then
4316 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4317 else
4318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 for as_dir in $PATH
4320 do
4321 IFS=$as_save_IFS
4322 test -z "$as_dir" && as_dir=.
4323 for ac_exec_ext in '' $ac_executable_extensions; do
4324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4325 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4327 break 2
4328 fi
4329 done
4330 done
4331 IFS=$as_save_IFS
4332
4333 fi
4334 fi
4335 CXX=$ac_cv_prog_CXX
4336 if test -n "$CXX"; then
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4338 $as_echo "$CXX" >&6; }
4339 else
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4341 $as_echo "no" >&6; }
4342 fi
4343
4344
4345 test -n "$CXX" && break
4346 done
4347 fi
4348 if test -z "$CXX"; then
4349 ac_ct_CXX=$CXX
4350 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4351 do
4352 # Extract the first word of "$ac_prog", so it can be a program name with args.
4353 set dummy $ac_prog; ac_word=$2
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4355 $as_echo_n "checking for $ac_word... " >&6; }
4356 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4357 $as_echo_n "(cached) " >&6
4358 else
4359 if test -n "$ac_ct_CXX"; then
4360 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4361 else
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 for as_dir in $PATH
4364 do
4365 IFS=$as_save_IFS
4366 test -z "$as_dir" && as_dir=.
4367 for ac_exec_ext in '' $ac_executable_extensions; do
4368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4369 ac_cv_prog_ac_ct_CXX="$ac_prog"
4370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4371 break 2
4372 fi
4373 done
4374 done
4375 IFS=$as_save_IFS
4376
4377 fi
4378 fi
4379 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4380 if test -n "$ac_ct_CXX"; then
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4382 $as_echo "$ac_ct_CXX" >&6; }
4383 else
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4385 $as_echo "no" >&6; }
4386 fi
4387
4388
4389 test -n "$ac_ct_CXX" && break
4390 done
4391
4392 if test "x$ac_ct_CXX" = x; then
4393 CXX="g++"
4394 else
4395 case $cross_compiling:$ac_tool_warned in
4396 yes:)
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4399 ac_tool_warned=yes ;;
4400 esac
4401 CXX=$ac_ct_CXX
4402 fi
4403 fi
4404
4405 fi
4406 fi
4407 # Provide some information about the compiler.
4408 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4409 set X $ac_compile
4410 ac_compiler=$2
4411 for ac_option in --version -v -V -qversion; do
4412 { { ac_try="$ac_compiler $ac_option >&5"
4413 case "(($ac_try" in
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4416 esac
4417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4418 $as_echo "$ac_try_echo"; } >&5
4419 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4420 ac_status=$?
4421 if test -s conftest.err; then
4422 sed '10a\
4423 ... rest of stderr output deleted ...
4424 10q' conftest.err >conftest.er1
4425 cat conftest.er1 >&5
4426 rm -f conftest.er1 conftest.err
4427 fi
4428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4429 test $ac_status = 0; }
4430 done
4431
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4433 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4434 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4435 $as_echo_n "(cached) " >&6
4436 else
4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h. */
4439
4440 int
4441 main ()
4442 {
4443 #ifndef __GNUC__
4444 choke me
4445 #endif
4446
4447 ;
4448 return 0;
4449 }
4450 _ACEOF
4451 if ac_fn_cxx_try_compile "$LINENO"; then :
4452 ac_compiler_gnu=yes
4453 else
4454 ac_compiler_gnu=no
4455 fi
4456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4457 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4458
4459 fi
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4461 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4462 if test $ac_compiler_gnu = yes; then
4463 GXX=yes
4464 else
4465 GXX=
4466 fi
4467 ac_test_CXXFLAGS=${CXXFLAGS+set}
4468 ac_save_CXXFLAGS=$CXXFLAGS
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4470 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4471 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4472 $as_echo_n "(cached) " >&6
4473 else
4474 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4475 ac_cxx_werror_flag=yes
4476 ac_cv_prog_cxx_g=no
4477 CXXFLAGS="-g"
4478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479 /* end confdefs.h. */
4480
4481 int
4482 main ()
4483 {
4484
4485 ;
4486 return 0;
4487 }
4488 _ACEOF
4489 if ac_fn_cxx_try_compile "$LINENO"; then :
4490 ac_cv_prog_cxx_g=yes
4491 else
4492 CXXFLAGS=""
4493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h. */
4495
4496 int
4497 main ()
4498 {
4499
4500 ;
4501 return 0;
4502 }
4503 _ACEOF
4504 if ac_fn_cxx_try_compile "$LINENO"; then :
4505
4506 else
4507 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4508 CXXFLAGS="-g"
4509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h. */
4511
4512 int
4513 main ()
4514 {
4515
4516 ;
4517 return 0;
4518 }
4519 _ACEOF
4520 if ac_fn_cxx_try_compile "$LINENO"; then :
4521 ac_cv_prog_cxx_g=yes
4522 fi
4523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524 fi
4525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4526 fi
4527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4528 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4529 fi
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4531 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4532 if test "$ac_test_CXXFLAGS" = set; then
4533 CXXFLAGS=$ac_save_CXXFLAGS
4534 elif test $ac_cv_prog_cxx_g = yes; then
4535 if test "$GXX" = yes; then
4536 CXXFLAGS="-g -O2"
4537 else
4538 CXXFLAGS="-g"
4539 fi
4540 else
4541 if test "$GXX" = yes; then
4542 CXXFLAGS="-O2"
4543 else
4544 CXXFLAGS=
4545 fi
4546 fi
4547 ac_ext=c
4548 ac_cpp='$CPP $CPPFLAGS'
4549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4552
4553 CXXFLAGS="$save_CXXFLAGS"
4554
4555
4556
4557
4558
4559 am__api_version='1.11'
4560
4561 # Find a good install program. We prefer a C program (faster),
4562 # so one script is as good as another. But avoid the broken or
4563 # incompatible versions:
4564 # SysV /etc/install, /usr/sbin/install
4565 # SunOS /usr/etc/install
4566 # IRIX /sbin/install
4567 # AIX /bin/install
4568 # AmigaOS /C/install, which installs bootblocks on floppy discs
4569 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4570 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4571 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4572 # OS/2's system install, which has a completely different semantic
4573 # ./install, which can be erroneously created by make from ./install.sh.
4574 # Reject install programs that cannot install multiple files.
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4576 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4577 if test -z "$INSTALL"; then
4578 if test "${ac_cv_path_install+set}" = set; then :
4579 $as_echo_n "(cached) " >&6
4580 else
4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 for as_dir in $PATH
4583 do
4584 IFS=$as_save_IFS
4585 test -z "$as_dir" && as_dir=.
4586 # Account for people who put trailing slashes in PATH elements.
4587 case $as_dir/ in #((
4588 ./ | .// | /[cC]/* | \
4589 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4590 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4591 /usr/ucb/* ) ;;
4592 *)
4593 # OSF1 and SCO ODT 3.0 have their own names for install.
4594 # Don't use installbsd from OSF since it installs stuff as root
4595 # by default.
4596 for ac_prog in ginstall scoinst install; do
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4599 if test $ac_prog = install &&
4600 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4601 # AIX install. It has an incompatible calling convention.
4602 :
4603 elif test $ac_prog = install &&
4604 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4605 # program-specific install script used by HP pwplus--don't use.
4606 :
4607 else
4608 rm -rf conftest.one conftest.two conftest.dir
4609 echo one > conftest.one
4610 echo two > conftest.two
4611 mkdir conftest.dir
4612 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4613 test -s conftest.one && test -s conftest.two &&
4614 test -s conftest.dir/conftest.one &&
4615 test -s conftest.dir/conftest.two
4616 then
4617 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4618 break 3
4619 fi
4620 fi
4621 fi
4622 done
4623 done
4624 ;;
4625 esac
4626
4627 done
4628 IFS=$as_save_IFS
4629
4630 rm -rf conftest.one conftest.two conftest.dir
4631
4632 fi
4633 if test "${ac_cv_path_install+set}" = set; then
4634 INSTALL=$ac_cv_path_install
4635 else
4636 # As a last resort, use the slow shell script. Don't cache a
4637 # value for INSTALL within a source directory, because that will
4638 # break other packages using the cache if that directory is
4639 # removed, or if the value is a relative name.
4640 INSTALL=$ac_install_sh
4641 fi
4642 fi
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4644 $as_echo "$INSTALL" >&6; }
4645
4646 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4647 # It thinks the first close brace ends the variable substitution.
4648 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4649
4650 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4651
4652 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4653
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4655 $as_echo_n "checking whether build environment is sane... " >&6; }
4656 # Just in case
4657 sleep 1
4658 echo timestamp > conftest.file
4659 # Reject unsafe characters in $srcdir or the absolute working directory
4660 # name. Accept space and tab only in the latter.
4661 am_lf='
4662 '
4663 case `pwd` in
4664 *[\\\"\#\$\&\'\`$am_lf]*)
4665 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4666 esac
4667 case $srcdir in
4668 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4669 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4670 esac
4671
4672 # Do `set' in a subshell so we don't clobber the current shell's
4673 # arguments. Must try -L first in case configure is actually a
4674 # symlink; some systems play weird games with the mod time of symlinks
4675 # (eg FreeBSD returns the mod time of the symlink's containing
4676 # directory).
4677 if (
4678 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4679 if test "$*" = "X"; then
4680 # -L didn't work.
4681 set X `ls -t "$srcdir/configure" conftest.file`
4682 fi
4683 rm -f conftest.file
4684 if test "$*" != "X $srcdir/configure conftest.file" \
4685 && test "$*" != "X conftest.file $srcdir/configure"; then
4686
4687 # If neither matched, then we have a broken ls. This can happen
4688 # if, for instance, CONFIG_SHELL is bash and it inherits a
4689 # broken ls alias from the environment. This has actually
4690 # happened. Such a system could not be considered "sane".
4691 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4692 alias in your environment" "$LINENO" 5
4693 fi
4694
4695 test "$2" = conftest.file
4696 )
4697 then
4698 # Ok.
4699 :
4700 else
4701 as_fn_error "newly created file is older than distributed files!
4702 Check your system clock" "$LINENO" 5
4703 fi
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4705 $as_echo "yes" >&6; }
4706 test "$program_prefix" != NONE &&
4707 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4708 # Use a double $ so make ignores it.
4709 test "$program_suffix" != NONE &&
4710 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4711 # Double any \ or $.
4712 # By default was `s,x,x', remove it if useless.
4713 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4714 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4715
4716 # expand $ac_aux_dir to an absolute path
4717 am_aux_dir=`cd $ac_aux_dir && pwd`
4718
4719 if test x"${MISSING+set}" != xset; then
4720 case $am_aux_dir in
4721 *\ * | *\ *)
4722 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4723 *)
4724 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4725 esac
4726 fi
4727 # Use eval to expand $SHELL
4728 if eval "$MISSING --run true"; then
4729 am_missing_run="$MISSING --run "
4730 else
4731 am_missing_run=
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4733 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4734 fi
4735
4736 if test x"${install_sh}" != xset; then
4737 case $am_aux_dir in
4738 *\ * | *\ *)
4739 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4740 *)
4741 install_sh="\${SHELL} $am_aux_dir/install-sh"
4742 esac
4743 fi
4744
4745 # Installed binaries are usually stripped using `strip' when the user
4746 # run `make install-strip'. However `strip' might not be the right
4747 # tool to use in cross-compilation environments, therefore Automake
4748 # will honor the `STRIP' environment variable to overrule this program.
4749 if test "$cross_compiling" != no; then
4750 if test -n "$ac_tool_prefix"; then
4751 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4752 set dummy ${ac_tool_prefix}strip; ac_word=$2
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4754 $as_echo_n "checking for $ac_word... " >&6; }
4755 if test "${ac_cv_prog_STRIP+set}" = set; then :
4756 $as_echo_n "(cached) " >&6
4757 else
4758 if test -n "$STRIP"; then
4759 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4760 else
4761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762 for as_dir in $PATH
4763 do
4764 IFS=$as_save_IFS
4765 test -z "$as_dir" && as_dir=.
4766 for ac_exec_ext in '' $ac_executable_extensions; do
4767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4768 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4770 break 2
4771 fi
4772 done
4773 done
4774 IFS=$as_save_IFS
4775
4776 fi
4777 fi
4778 STRIP=$ac_cv_prog_STRIP
4779 if test -n "$STRIP"; then
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4781 $as_echo "$STRIP" >&6; }
4782 else
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784 $as_echo "no" >&6; }
4785 fi
4786
4787
4788 fi
4789 if test -z "$ac_cv_prog_STRIP"; then
4790 ac_ct_STRIP=$STRIP
4791 # Extract the first word of "strip", so it can be a program name with args.
4792 set dummy strip; ac_word=$2
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4794 $as_echo_n "checking for $ac_word... " >&6; }
4795 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4796 $as_echo_n "(cached) " >&6
4797 else
4798 if test -n "$ac_ct_STRIP"; then
4799 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4800 else
4801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 for as_dir in $PATH
4803 do
4804 IFS=$as_save_IFS
4805 test -z "$as_dir" && as_dir=.
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4808 ac_cv_prog_ac_ct_STRIP="strip"
4809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 break 2
4811 fi
4812 done
4813 done
4814 IFS=$as_save_IFS
4815
4816 fi
4817 fi
4818 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4819 if test -n "$ac_ct_STRIP"; then
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4821 $as_echo "$ac_ct_STRIP" >&6; }
4822 else
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4824 $as_echo "no" >&6; }
4825 fi
4826
4827 if test "x$ac_ct_STRIP" = x; then
4828 STRIP=":"
4829 else
4830 case $cross_compiling:$ac_tool_warned in
4831 yes:)
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4834 ac_tool_warned=yes ;;
4835 esac
4836 STRIP=$ac_ct_STRIP
4837 fi
4838 else
4839 STRIP="$ac_cv_prog_STRIP"
4840 fi
4841
4842 fi
4843 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4844
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4846 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4847 if test -z "$MKDIR_P"; then
4848 if test "${ac_cv_path_mkdir+set}" = set; then :
4849 $as_echo_n "(cached) " >&6
4850 else
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4853 do
4854 IFS=$as_save_IFS
4855 test -z "$as_dir" && as_dir=.
4856 for ac_prog in mkdir gmkdir; do
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4859 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4860 'mkdir (GNU coreutils) '* | \
4861 'mkdir (coreutils) '* | \
4862 'mkdir (fileutils) '4.1*)
4863 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4864 break 3;;
4865 esac
4866 done
4867 done
4868 done
4869 IFS=$as_save_IFS
4870
4871 fi
4872
4873 if test "${ac_cv_path_mkdir+set}" = set; then
4874 MKDIR_P="$ac_cv_path_mkdir -p"
4875 else
4876 # As a last resort, use the slow shell script. Don't cache a
4877 # value for MKDIR_P within a source directory, because that will
4878 # break other packages using the cache if that directory is
4879 # removed, or if the value is a relative name.
4880 test -d ./--version && rmdir ./--version
4881 MKDIR_P="$ac_install_sh -d"
4882 fi
4883 fi
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4885 $as_echo "$MKDIR_P" >&6; }
4886
4887 mkdir_p="$MKDIR_P"
4888 case $mkdir_p in
4889 [\\/$]* | ?:[\\/]*) ;;
4890 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4891 esac
4892
4893 for ac_prog in gawk mawk nawk awk
4894 do
4895 # Extract the first word of "$ac_prog", so it can be a program name with args.
4896 set dummy $ac_prog; ac_word=$2
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4898 $as_echo_n "checking for $ac_word... " >&6; }
4899 if test "${ac_cv_prog_AWK+set}" = set; then :
4900 $as_echo_n "(cached) " >&6
4901 else
4902 if test -n "$AWK"; then
4903 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4904 else
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4907 do
4908 IFS=$as_save_IFS
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4912 ac_cv_prog_AWK="$ac_prog"
4913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4914 break 2
4915 fi
4916 done
4917 done
4918 IFS=$as_save_IFS
4919
4920 fi
4921 fi
4922 AWK=$ac_cv_prog_AWK
4923 if test -n "$AWK"; then
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4925 $as_echo "$AWK" >&6; }
4926 else
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4928 $as_echo "no" >&6; }
4929 fi
4930
4931
4932 test -n "$AWK" && break
4933 done
4934
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4936 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4937 set x ${MAKE-make}
4938 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4939 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4940 $as_echo_n "(cached) " >&6
4941 else
4942 cat >conftest.make <<\_ACEOF
4943 SHELL = /bin/sh
4944 all:
4945 @echo '@@@%%%=$(MAKE)=@@@%%%'
4946 _ACEOF
4947 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4948 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4949 *@@@%%%=?*=@@@%%%*)
4950 eval ac_cv_prog_make_${ac_make}_set=yes;;
4951 *)
4952 eval ac_cv_prog_make_${ac_make}_set=no;;
4953 esac
4954 rm -f conftest.make
4955 fi
4956 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4958 $as_echo "yes" >&6; }
4959 SET_MAKE=
4960 else
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962 $as_echo "no" >&6; }
4963 SET_MAKE="MAKE=${MAKE-make}"
4964 fi
4965
4966 rm -rf .tst 2>/dev/null
4967 mkdir .tst 2>/dev/null
4968 if test -d .tst; then
4969 am__leading_dot=.
4970 else
4971 am__leading_dot=_
4972 fi
4973 rmdir .tst 2>/dev/null
4974
4975 DEPDIR="${am__leading_dot}deps"
4976
4977 ac_config_commands="$ac_config_commands depfiles"
4978
4979
4980 am_make=${MAKE-make}
4981 cat > confinc << 'END'
4982 am__doit:
4983 @echo this is the am__doit target
4984 .PHONY: am__doit
4985 END
4986 # If we don't find an include directive, just comment out the code.
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4988 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4989 am__include="#"
4990 am__quote=
4991 _am_result=none
4992 # First try GNU make style include.
4993 echo "include confinc" > confmf
4994 # Ignore all kinds of additional output from `make'.
4995 case `$am_make -s -f confmf 2> /dev/null` in #(
4996 *the\ am__doit\ target*)
4997 am__include=include
4998 am__quote=
4999 _am_result=GNU
5000 ;;
5001 esac
5002 # Now try BSD make style include.
5003 if test "$am__include" = "#"; then
5004 echo '.include "confinc"' > confmf
5005 case `$am_make -s -f confmf 2> /dev/null` in #(
5006 *the\ am__doit\ target*)
5007 am__include=.include
5008 am__quote="\""
5009 _am_result=BSD
5010 ;;
5011 esac
5012 fi
5013
5014
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5016 $as_echo "$_am_result" >&6; }
5017 rm -f confinc confmf
5018
5019 # Check whether --enable-dependency-tracking was given.
5020 if test "${enable_dependency_tracking+set}" = set; then :
5021 enableval=$enable_dependency_tracking;
5022 fi
5023
5024 if test "x$enable_dependency_tracking" != xno; then
5025 am_depcomp="$ac_aux_dir/depcomp"
5026 AMDEPBACKSLASH='\'
5027 fi
5028 if test "x$enable_dependency_tracking" != xno; then
5029 AMDEP_TRUE=
5030 AMDEP_FALSE='#'
5031 else
5032 AMDEP_TRUE='#'
5033 AMDEP_FALSE=
5034 fi
5035
5036
5037 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5038 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5039 # is not polluted with repeated "-I."
5040 am__isrc=' -I$(srcdir)'
5041 # test to see if srcdir already configured
5042 if test -f $srcdir/config.status; then
5043 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5044 fi
5045 fi
5046
5047 # test whether we have cygpath
5048 if test -z "$CYGPATH_W"; then
5049 if (cygpath --version) >/dev/null 2>/dev/null; then
5050 CYGPATH_W='cygpath -w'
5051 else
5052 CYGPATH_W=echo
5053 fi
5054 fi
5055
5056
5057 # Define the identity of the package.
5058 PACKAGE='libjava'
5059 VERSION='version-unused'
5060
5061
5062 cat >>confdefs.h <<_ACEOF
5063 #define PACKAGE "$PACKAGE"
5064 _ACEOF
5065
5066
5067 cat >>confdefs.h <<_ACEOF
5068 #define VERSION "$VERSION"
5069 _ACEOF
5070
5071 # Some tools Automake needs.
5072
5073 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5074
5075
5076 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5077
5078
5079 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5080
5081
5082 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5083
5084
5085 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5086
5087 # We need awk for the "check" target. The system "awk" is bad on
5088 # some platforms.
5089 # Always define AMTAR for backward compatibility.
5090
5091 AMTAR=${AMTAR-"${am_missing_run}tar"}
5092
5093 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5094
5095
5096
5097
5098 depcc="$CC" am_compiler_list=
5099
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5101 $as_echo_n "checking dependency style of $depcc... " >&6; }
5102 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5103 $as_echo_n "(cached) " >&6
5104 else
5105 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5106 # We make a subdir and do the tests there. Otherwise we can end up
5107 # making bogus files that we don't know about and never remove. For
5108 # instance it was reported that on HP-UX the gcc test will end up
5109 # making a dummy file named `D' -- because `-MD' means `put the output
5110 # in D'.
5111 mkdir conftest.dir
5112 # Copy depcomp to subdir because otherwise we won't find it if we're
5113 # using a relative directory.
5114 cp "$am_depcomp" conftest.dir
5115 cd conftest.dir
5116 # We will build objects and dependencies in a subdirectory because
5117 # it helps to detect inapplicable dependency modes. For instance
5118 # both Tru64's cc and ICC support -MD to output dependencies as a
5119 # side effect of compilation, but ICC will put the dependencies in
5120 # the current directory while Tru64 will put them in the object
5121 # directory.
5122 mkdir sub
5123
5124 am_cv_CC_dependencies_compiler_type=none
5125 if test "$am_compiler_list" = ""; then
5126 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5127 fi
5128 am__universal=false
5129 case " $depcc " in #(
5130 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5131 esac
5132
5133 for depmode in $am_compiler_list; do
5134 # Setup a source with many dependencies, because some compilers
5135 # like to wrap large dependency lists on column 80 (with \), and
5136 # we should not choose a depcomp mode which is confused by this.
5137 #
5138 # We need to recreate these files for each test, as the compiler may
5139 # overwrite some of them when testing with obscure command lines.
5140 # This happens at least with the AIX C compiler.
5141 : > sub/conftest.c
5142 for i in 1 2 3 4 5 6; do
5143 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5144 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5145 # Solaris 8's {/usr,}/bin/sh.
5146 touch sub/conftst$i.h
5147 done
5148 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5149
5150 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5151 # mode. It turns out that the SunPro C++ compiler does not properly
5152 # handle `-M -o', and we need to detect this. Also, some Intel
5153 # versions had trouble with output in subdirs
5154 am__obj=sub/conftest.${OBJEXT-o}
5155 am__minus_obj="-o $am__obj"
5156 case $depmode in
5157 gcc)
5158 # This depmode causes a compiler race in universal mode.
5159 test "$am__universal" = false || continue
5160 ;;
5161 nosideeffect)
5162 # after this tag, mechanisms are not by side-effect, so they'll
5163 # only be used when explicitly requested
5164 if test "x$enable_dependency_tracking" = xyes; then
5165 continue
5166 else
5167 break
5168 fi
5169 ;;
5170 msvisualcpp | msvcmsys)
5171 # This compiler won't grok `-c -o', but also, the minuso test has
5172 # not run yet. These depmodes are late enough in the game, and
5173 # so weak that their functioning should not be impacted.
5174 am__obj=conftest.${OBJEXT-o}
5175 am__minus_obj=
5176 ;;
5177 none) break ;;
5178 esac
5179 if depmode=$depmode \
5180 source=sub/conftest.c object=$am__obj \
5181 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5182 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5183 >/dev/null 2>conftest.err &&
5184 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5185 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5186 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5187 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5188 # icc doesn't choke on unknown options, it will just issue warnings
5189 # or remarks (even with -Werror). So we grep stderr for any message
5190 # that says an option was ignored or not supported.
5191 # When given -MP, icc 7.0 and 7.1 complain thusly:
5192 # icc: Command line warning: ignoring option '-M'; no argument required
5193 # The diagnosis changed in icc 8.0:
5194 # icc: Command line remark: option '-MP' not supported
5195 if (grep 'ignoring option' conftest.err ||
5196 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5197 am_cv_CC_dependencies_compiler_type=$depmode
5198 break
5199 fi
5200 fi
5201 done
5202
5203 cd ..
5204 rm -rf conftest.dir
5205 else
5206 am_cv_CC_dependencies_compiler_type=none
5207 fi
5208
5209 fi
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5211 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5212 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5213
5214 if
5215 test "x$enable_dependency_tracking" != xno \
5216 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5217 am__fastdepCC_TRUE=
5218 am__fastdepCC_FALSE='#'
5219 else
5220 am__fastdepCC_TRUE='#'
5221 am__fastdepCC_FALSE=
5222 fi
5223
5224
5225 depcc="$CXX" am_compiler_list=
5226
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5228 $as_echo_n "checking dependency style of $depcc... " >&6; }
5229 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5230 $as_echo_n "(cached) " >&6
5231 else
5232 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5233 # We make a subdir and do the tests there. Otherwise we can end up
5234 # making bogus files that we don't know about and never remove. For
5235 # instance it was reported that on HP-UX the gcc test will end up
5236 # making a dummy file named `D' -- because `-MD' means `put the output
5237 # in D'.
5238 mkdir conftest.dir
5239 # Copy depcomp to subdir because otherwise we won't find it if we're
5240 # using a relative directory.
5241 cp "$am_depcomp" conftest.dir
5242 cd conftest.dir
5243 # We will build objects and dependencies in a subdirectory because
5244 # it helps to detect inapplicable dependency modes. For instance
5245 # both Tru64's cc and ICC support -MD to output dependencies as a
5246 # side effect of compilation, but ICC will put the dependencies in
5247 # the current directory while Tru64 will put them in the object
5248 # directory.
5249 mkdir sub
5250
5251 am_cv_CXX_dependencies_compiler_type=none
5252 if test "$am_compiler_list" = ""; then
5253 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5254 fi
5255 am__universal=false
5256 case " $depcc " in #(
5257 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5258 esac
5259
5260 for depmode in $am_compiler_list; do
5261 # Setup a source with many dependencies, because some compilers
5262 # like to wrap large dependency lists on column 80 (with \), and
5263 # we should not choose a depcomp mode which is confused by this.
5264 #
5265 # We need to recreate these files for each test, as the compiler may
5266 # overwrite some of them when testing with obscure command lines.
5267 # This happens at least with the AIX C compiler.
5268 : > sub/conftest.c
5269 for i in 1 2 3 4 5 6; do
5270 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5271 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5272 # Solaris 8's {/usr,}/bin/sh.
5273 touch sub/conftst$i.h
5274 done
5275 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5276
5277 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5278 # mode. It turns out that the SunPro C++ compiler does not properly
5279 # handle `-M -o', and we need to detect this. Also, some Intel
5280 # versions had trouble with output in subdirs
5281 am__obj=sub/conftest.${OBJEXT-o}
5282 am__minus_obj="-o $am__obj"
5283 case $depmode in
5284 gcc)
5285 # This depmode causes a compiler race in universal mode.
5286 test "$am__universal" = false || continue
5287 ;;
5288 nosideeffect)
5289 # after this tag, mechanisms are not by side-effect, so they'll
5290 # only be used when explicitly requested
5291 if test "x$enable_dependency_tracking" = xyes; then
5292 continue
5293 else
5294 break
5295 fi
5296 ;;
5297 msvisualcpp | msvcmsys)
5298 # This compiler won't grok `-c -o', but also, the minuso test has
5299 # not run yet. These depmodes are late enough in the game, and
5300 # so weak that their functioning should not be impacted.
5301 am__obj=conftest.${OBJEXT-o}
5302 am__minus_obj=
5303 ;;
5304 none) break ;;
5305 esac
5306 if depmode=$depmode \
5307 source=sub/conftest.c object=$am__obj \
5308 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5309 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5310 >/dev/null 2>conftest.err &&
5311 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5312 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5313 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5314 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5315 # icc doesn't choke on unknown options, it will just issue warnings
5316 # or remarks (even with -Werror). So we grep stderr for any message
5317 # that says an option was ignored or not supported.
5318 # When given -MP, icc 7.0 and 7.1 complain thusly:
5319 # icc: Command line warning: ignoring option '-M'; no argument required
5320 # The diagnosis changed in icc 8.0:
5321 # icc: Command line remark: option '-MP' not supported
5322 if (grep 'ignoring option' conftest.err ||
5323 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5324 am_cv_CXX_dependencies_compiler_type=$depmode
5325 break
5326 fi
5327 fi
5328 done
5329
5330 cd ..
5331 rm -rf conftest.dir
5332 else
5333 am_cv_CXX_dependencies_compiler_type=none
5334 fi
5335
5336 fi
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5338 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5339 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5340
5341 if
5342 test "x$enable_dependency_tracking" != xno \
5343 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5344 am__fastdepCXX_TRUE=
5345 am__fastdepCXX_FALSE='#'
5346 else
5347 am__fastdepCXX_TRUE='#'
5348 am__fastdepCXX_FALSE=
5349 fi
5350
5351
5352
5353
5354 if test -n "$ac_tool_prefix"; then
5355 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5356 set dummy ${ac_tool_prefix}as; 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_AS+set}" = set; then :
5360 $as_echo_n "(cached) " >&6
5361 else
5362 if test -n "$AS"; then
5363 ac_cv_prog_AS="$AS" # 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_AS="${ac_tool_prefix}as"
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 AS=$ac_cv_prog_AS
5383 if test -n "$AS"; then
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5385 $as_echo "$AS" >&6; }
5386 else
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388 $as_echo "no" >&6; }
5389 fi
5390
5391
5392 fi
5393 if test -z "$ac_cv_prog_AS"; then
5394 ac_ct_AS=$AS
5395 # Extract the first word of "as", so it can be a program name with args.
5396 set dummy as; ac_word=$2
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5398 $as_echo_n "checking for $ac_word... " >&6; }
5399 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5400 $as_echo_n "(cached) " >&6
5401 else
5402 if test -n "$ac_ct_AS"; then
5403 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5404 else
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 for as_dir in $PATH
5407 do
5408 IFS=$as_save_IFS
5409 test -z "$as_dir" && as_dir=.
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5412 ac_cv_prog_ac_ct_AS="as"
5413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5414 break 2
5415 fi
5416 done
5417 done
5418 IFS=$as_save_IFS
5419
5420 fi
5421 fi
5422 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5423 if test -n "$ac_ct_AS"; then
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5425 $as_echo "$ac_ct_AS" >&6; }
5426 else
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5428 $as_echo "no" >&6; }
5429 fi
5430
5431 if test "x$ac_ct_AS" = x; then
5432 AS=""
5433 else
5434 case $cross_compiling:$ac_tool_warned in
5435 yes:)
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5438 ac_tool_warned=yes ;;
5439 esac
5440 AS=$ac_ct_AS
5441 fi
5442 else
5443 AS="$ac_cv_prog_AS"
5444 fi
5445
5446 if test -n "$ac_tool_prefix"; then
5447 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5448 set dummy ${ac_tool_prefix}ld; 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_LD+set}" = set; then :
5452 $as_echo_n "(cached) " >&6
5453 else
5454 if test -n "$LD"; then
5455 ac_cv_prog_LD="$LD" # 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_LD="${ac_tool_prefix}ld"
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 LD=$ac_cv_prog_LD
5475 if test -n "$LD"; then
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5477 $as_echo "$LD" >&6; }
5478 else
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480 $as_echo "no" >&6; }
5481 fi
5482
5483
5484 fi
5485 if test -z "$ac_cv_prog_LD"; then
5486 ac_ct_LD=$LD
5487 # Extract the first word of "ld", so it can be a program name with args.
5488 set dummy ld; ac_word=$2
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5490 $as_echo_n "checking for $ac_word... " >&6; }
5491 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
5492 $as_echo_n "(cached) " >&6
5493 else
5494 if test -n "$ac_ct_LD"; then
5495 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5496 else
5497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498 for as_dir in $PATH
5499 do
5500 IFS=$as_save_IFS
5501 test -z "$as_dir" && as_dir=.
5502 for ac_exec_ext in '' $ac_executable_extensions; do
5503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5504 ac_cv_prog_ac_ct_LD="ld"
5505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5506 break 2
5507 fi
5508 done
5509 done
5510 IFS=$as_save_IFS
5511
5512 fi
5513 fi
5514 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5515 if test -n "$ac_ct_LD"; then
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
5517 $as_echo "$ac_ct_LD" >&6; }
5518 else
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5520 $as_echo "no" >&6; }
5521 fi
5522
5523 if test "x$ac_ct_LD" = x; then
5524 LD=""
5525 else
5526 case $cross_compiling:$ac_tool_warned in
5527 yes:)
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5530 ac_tool_warned=yes ;;
5531 esac
5532 LD=$ac_ct_LD
5533 fi
5534 else
5535 LD="$ac_cv_prog_LD"
5536 fi
5537
5538 if test -n "$ac_tool_prefix"; then
5539 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5540 set dummy ${ac_tool_prefix}ar; 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_AR+set}" = set; then :
5544 $as_echo_n "(cached) " >&6
5545 else
5546 if test -n "$AR"; then
5547 ac_cv_prog_AR="$AR" # 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_AR="${ac_tool_prefix}ar"
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 AR=$ac_cv_prog_AR
5567 if test -n "$AR"; then
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5569 $as_echo "$AR" >&6; }
5570 else
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572 $as_echo "no" >&6; }
5573 fi
5574
5575
5576 fi
5577 if test -z "$ac_cv_prog_AR"; then
5578 ac_ct_AR=$AR
5579 # Extract the first word of "ar", so it can be a program name with args.
5580 set dummy ar; ac_word=$2
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5582 $as_echo_n "checking for $ac_word... " >&6; }
5583 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5584 $as_echo_n "(cached) " >&6
5585 else
5586 if test -n "$ac_ct_AR"; then
5587 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5588 else
5589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590 for as_dir in $PATH
5591 do
5592 IFS=$as_save_IFS
5593 test -z "$as_dir" && as_dir=.
5594 for ac_exec_ext in '' $ac_executable_extensions; do
5595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5596 ac_cv_prog_ac_ct_AR="ar"
5597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5598 break 2
5599 fi
5600 done
5601 done
5602 IFS=$as_save_IFS
5603
5604 fi
5605 fi
5606 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5607 if test -n "$ac_ct_AR"; then
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5609 $as_echo "$ac_ct_AR" >&6; }
5610 else
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5612 $as_echo "no" >&6; }
5613 fi
5614
5615 if test "x$ac_ct_AR" = x; then
5616 AR=""
5617 else
5618 case $cross_compiling:$ac_tool_warned in
5619 yes:)
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5622 ac_tool_warned=yes ;;
5623 esac
5624 AR=$ac_ct_AR
5625 fi
5626 else
5627 AR="$ac_cv_prog_AR"
5628 fi
5629
5630 if test -n "$ac_tool_prefix"; then
5631 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5632 set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+set}" = set; then :
5636 $as_echo_n "(cached) " >&6
5637 else
5638 if test -n "$RANLIB"; then
5639 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
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 RANLIB=$ac_cv_prog_RANLIB
5659 if test -n "$RANLIB"; then
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5661 $as_echo "$RANLIB" >&6; }
5662 else
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5664 $as_echo "no" >&6; }
5665 fi
5666
5667
5668 fi
5669 if test -z "$ac_cv_prog_RANLIB"; then
5670 ac_ct_RANLIB=$RANLIB
5671 # Extract the first word of "ranlib", so it can be a program name with args.
5672 set dummy ranlib; ac_word=$2
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5674 $as_echo_n "checking for $ac_word... " >&6; }
5675 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5676 $as_echo_n "(cached) " >&6
5677 else
5678 if test -n "$ac_ct_RANLIB"; then
5679 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5680 else
5681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682 for as_dir in $PATH
5683 do
5684 IFS=$as_save_IFS
5685 test -z "$as_dir" && as_dir=.
5686 for ac_exec_ext in '' $ac_executable_extensions; do
5687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5688 ac_cv_prog_ac_ct_RANLIB="ranlib"
5689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5690 break 2
5691 fi
5692 done
5693 done
5694 IFS=$as_save_IFS
5695
5696 fi
5697 fi
5698 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5699 if test -n "$ac_ct_RANLIB"; then
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5701 $as_echo "$ac_ct_RANLIB" >&6; }
5702 else
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5704 $as_echo "no" >&6; }
5705 fi
5706
5707 if test "x$ac_ct_RANLIB" = x; then
5708 RANLIB=":"
5709 else
5710 case $cross_compiling:$ac_tool_warned in
5711 yes:)
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5714 ac_tool_warned=yes ;;
5715 esac
5716 RANLIB=$ac_ct_RANLIB
5717 fi
5718 else
5719 RANLIB="$ac_cv_prog_RANLIB"
5720 fi
5721
5722 for ac_prog in gawk mawk nawk awk
5723 do
5724 # Extract the first word of "$ac_prog", so it can be a program name with args.
5725 set dummy $ac_prog; ac_word=$2
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5727 $as_echo_n "checking for $ac_word... " >&6; }
5728 if test "${ac_cv_prog_AWK+set}" = set; then :
5729 $as_echo_n "(cached) " >&6
5730 else
5731 if test -n "$AWK"; then
5732 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5733 else
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 for as_dir in $PATH
5736 do
5737 IFS=$as_save_IFS
5738 test -z "$as_dir" && as_dir=.
5739 for ac_exec_ext in '' $ac_executable_extensions; do
5740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5741 ac_cv_prog_AWK="$ac_prog"
5742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5743 break 2
5744 fi
5745 done
5746 done
5747 IFS=$as_save_IFS
5748
5749 fi
5750 fi
5751 AWK=$ac_cv_prog_AWK
5752 if test -n "$AWK"; then
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5754 $as_echo "$AWK" >&6; }
5755 else
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757 $as_echo "no" >&6; }
5758 fi
5759
5760
5761 test -n "$AWK" && break
5762 done
5763
5764 for ac_prog in jar fastjar gjar
5765 do
5766 # Extract the first word of "$ac_prog", so it can be a program name with args.
5767 set dummy $ac_prog; ac_word=$2
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5769 $as_echo_n "checking for $ac_word... " >&6; }
5770 if test "${ac_cv_prog_JAR+set}" = set; then :
5771 $as_echo_n "(cached) " >&6
5772 else
5773 if test -n "$JAR"; then
5774 ac_cv_prog_JAR="$JAR" # Let the user override the test.
5775 else
5776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777 for as_dir in $PATH
5778 do
5779 IFS=$as_save_IFS
5780 test -z "$as_dir" && as_dir=.
5781 for ac_exec_ext in '' $ac_executable_extensions; do
5782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5783 ac_cv_prog_JAR="$ac_prog"
5784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5785 break 2
5786 fi
5787 done
5788 done
5789 IFS=$as_save_IFS
5790
5791 fi
5792 fi
5793 JAR=$ac_cv_prog_JAR
5794 if test -n "$JAR"; then
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
5796 $as_echo "$JAR" >&6; }
5797 else
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799 $as_echo "no" >&6; }
5800 fi
5801
5802
5803 test -n "$JAR" && break
5804 done
5805 test -n "$JAR" || JAR="no"
5806
5807 # Extract the first word of "zip", so it can be a program name with args.
5808 set dummy zip; ac_word=$2
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5810 $as_echo_n "checking for $ac_word... " >&6; }
5811 if test "${ac_cv_path_ZIP+set}" = set; then :
5812 $as_echo_n "(cached) " >&6
5813 else
5814 case $ZIP in
5815 [\\/]* | ?:[\\/]*)
5816 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5817 ;;
5818 *)
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820 for as_dir in $PATH
5821 do
5822 IFS=$as_save_IFS
5823 test -z "$as_dir" && as_dir=.
5824 for ac_exec_ext in '' $ac_executable_extensions; do
5825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5826 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5828 break 2
5829 fi
5830 done
5831 done
5832 IFS=$as_save_IFS
5833
5834 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
5835 ;;
5836 esac
5837 fi
5838 ZIP=$ac_cv_path_ZIP
5839 if test -n "$ZIP"; then
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
5841 $as_echo "$ZIP" >&6; }
5842 else
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844 $as_echo "no" >&6; }
5845 fi
5846
5847
5848 # Extract the first word of "unzip", so it can be a program name with args.
5849 set dummy unzip; ac_word=$2
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5851 $as_echo_n "checking for $ac_word... " >&6; }
5852 if test "${ac_cv_path_UNZIP+set}" = set; then :
5853 $as_echo_n "(cached) " >&6
5854 else
5855 case $UNZIP in
5856 [\\/]* | ?:[\\/]*)
5857 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
5858 ;;
5859 *)
5860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861 for as_dir in $PATH
5862 do
5863 IFS=$as_save_IFS
5864 test -z "$as_dir" && as_dir=.
5865 for ac_exec_ext in '' $ac_executable_extensions; do
5866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5867 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
5868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5869 break 2
5870 fi
5871 done
5872 done
5873 IFS=$as_save_IFS
5874
5875 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
5876 ;;
5877 esac
5878 fi
5879 UNZIP=$ac_cv_path_UNZIP
5880 if test -n "$UNZIP"; then
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
5882 $as_echo "$UNZIP" >&6; }
5883 else
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5885 $as_echo "no" >&6; }
5886 fi
5887
5888
5889
5890 # We need a jar that supports -@. This is a GNU extension.
5891 if test "$JAR" != no; then
5892 rm -f config-test.jar
5893 echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
5894 if test -f config-test.jar; then
5895 rm -f config-test.jar
5896 else
5897 JAR=no
5898 fi
5899 fi
5900
5901 # Prefer the jar we found, but fall back to our jar script.
5902 if test "$JAR" = no; then
5903 if test "$ZIP" = no; then
5904 as_fn_error "cannot find neither zip nor jar, cannot continue" "$LINENO" 5
5905 else
5906 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
5907 JAR=`pwd`/scripts/jar
5908 fi
5909 fi
5910
5911
5912
5913
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5915 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5916 # Check whether --enable-maintainer-mode was given.
5917 if test "${enable_maintainer_mode+set}" = set; then :
5918 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5919 else
5920 USE_MAINTAINER_MODE=no
5921 fi
5922
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5924 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5925 if test $USE_MAINTAINER_MODE = yes; then
5926 MAINTAINER_MODE_TRUE=
5927 MAINTAINER_MODE_FALSE='#'
5928 else
5929 MAINTAINER_MODE_TRUE='#'
5930 MAINTAINER_MODE_FALSE=
5931 fi
5932
5933 MAINT=$MAINTAINER_MODE_TRUE
5934
5935
5936
5937
5938
5939 # configure.host sets the following important variables
5940 # libgcj_cflags - host specific C compiler flags
5941 # libgcj_cxxflags - host specific C++ compiler flags
5942 # libgcj_javaflags - host specific Java compiler flags
5943 # libgcj_sublib_ltflags - host specific Libtool flags
5944 # (only used when building sublibs)
5945 # and a number of others; see the list at the start of the file.
5946
5947 libgcj_cflags=
5948 libgcj_cxxflags=
5949 libgcj_javaflags=
5950 libgcj_sublib_ltflags=
5951
5952 . ${srcdir}/configure.host
5953
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5955 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5956 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5957 $as_echo_n "(cached) " >&6
5958 else
5959 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5960 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5961 acl_cv_prog_gnu_ld=yes
5962 else
5963 acl_cv_prog_gnu_ld=no
5964 fi
5965 fi
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5967 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5968 with_gnu_ld=$acl_cv_prog_gnu_ld
5969
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
5971 $as_echo_n "checking if the GNU linker ($LD) supports -Bsymbolic-functions... " >&6; }
5972 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then :
5973 $as_echo_n "(cached) " >&6
5974 else
5975
5976 acl_cv_prog_gnu_ld_symbolic=no
5977
5978 if test x"$with_gnu_ld" = x"yes"; then
5979 if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
5980 acl_cv_prog_gnu_ld_symbolic=yes
5981 fi
5982 fi
5983 fi
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld_symbolic" >&5
5985 $as_echo "$acl_cv_prog_gnu_ld_symbolic" >&6; }
5986 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
5987 SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
5988 else
5989 SYMBOLIC_LDFLAGS=''
5990 fi
5991
5992 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
5993 if test -z "$libgcj_ld_symbolic"; then
5994 libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
5995 fi
5996
5997 LIBGCJ_CFLAGS="${libgcj_cflags}"
5998 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
5999 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
6000 LIBGCJ_SUBLIB_LTFLAGS="${libgcj_sublib_ltflags}"
6001 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
6002 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
6003
6004
6005
6006
6007
6008
6009
6010 # Only use libltdl for non-newlib builds.
6011 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
6013 $as_echo_n "checking dynamic linker characteristics... " >&6; }
6014 library_names_spec=
6015 libname_spec='lib$name'
6016 soname_spec=
6017 shrext=".so"
6018 postinstall_cmds=
6019 postuninstall_cmds=
6020 finish_cmds=
6021 finish_eval=
6022 shlibpath_var=
6023 shlibpath_overrides_runpath=unknown
6024 version_type=none
6025 dynamic_linker="$host_os ld.so"
6026 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6027 if test "$GCC" = yes; then
6028 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
6029 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6030 # if the path contains ";" then we assume it to be the separator
6031 # otherwise default to the standard path separator (i.e. ":") - it is
6032 # assumed that no part of a normal pathname contains ";" but that should
6033 # okay in the real world where ";" in dirpaths is itself problematic.
6034 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6035 else
6036 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6037 fi
6038 else
6039 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6040 fi
6041 need_lib_prefix=unknown
6042 hardcode_into_libs=no
6043
6044 # when you set need_version to no, make sure it does not cause -set_version
6045 # flags to be left without arguments
6046 need_version=unknown
6047
6048 case $host_os in
6049 aix3*)
6050 version_type=linux
6051 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6052 shlibpath_var=LIBPATH
6053
6054 # AIX 3 has no versioning support, so we append a major version to the name.
6055 soname_spec='${libname}${release}${shared_ext}$major'
6056 ;;
6057
6058 aix[4-9]*)
6059 version_type=linux
6060 need_lib_prefix=no
6061 need_version=no
6062 hardcode_into_libs=yes
6063 if test "$host_cpu" = ia64; then
6064 # AIX 5 supports IA64
6065 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6066 shlibpath_var=LD_LIBRARY_PATH
6067 else
6068 # With GCC up to 2.95.x, collect2 would create an import file
6069 # for dependence libraries. The import file would start with
6070 # the line `#! .'. This would cause the generated library to
6071 # depend on `.', always an invalid library. This was fixed in
6072 # development snapshots of GCC prior to 3.0.
6073 case $host_os in
6074 aix4 | aix4.[01] | aix4.[01].*)
6075 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6076 echo ' yes '
6077 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6078 :
6079 else
6080 can_build_shared=no
6081 fi
6082 ;;
6083 esac
6084 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6085 # soname into executable. Probably we can add versioning support to
6086 # collect2, so additional links can be useful in future.
6087 if test "$aix_use_runtimelinking" = yes; then
6088 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6089 # instead of lib<name>.a to let people know that these are not
6090 # typical AIX shared libraries.
6091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6092 else
6093 # We preserve .a as extension for shared libraries through AIX4.2
6094 # and later when we are not doing run time linking.
6095 library_names_spec='${libname}${release}.a $libname.a'
6096 soname_spec='${libname}${release}${shared_ext}$major'
6097 fi
6098 shlibpath_var=LIBPATH
6099 fi
6100 ;;
6101
6102 amigaos*)
6103 library_names_spec='$libname.ixlibrary $libname.a'
6104 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6105 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'
6106 ;;
6107
6108 beos*)
6109 library_names_spec='${libname}${shared_ext}'
6110 dynamic_linker="$host_os ld.so"
6111 shlibpath_var=LIBRARY_PATH
6112 ;;
6113
6114 bsdi4*)
6115 version_type=linux
6116 need_version=no
6117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6118 soname_spec='${libname}${release}${shared_ext}$major'
6119 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6120 shlibpath_var=LD_LIBRARY_PATH
6121 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6122 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6123 # the default ld.so.conf also contains /usr/contrib/lib and
6124 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6125 # libtool to hard-code these into programs
6126 ;;
6127
6128 cygwin* | mingw* | pw32*)
6129 version_type=windows
6130 shrext=".dll"
6131 need_version=no
6132 need_lib_prefix=no
6133
6134 case $GCC,$host_os in
6135 yes,cygwin* | yes,mingw* | yes,pw32*)
6136 library_names_spec='$libname.dll.a'
6137 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6138 postinstall_cmds='base_file=`basename \${file}`~
6139 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6140 dldir=$destdir/`dirname \$dlpath`~
6141 test -d \$dldir || mkdir -p \$dldir~
6142 $install_prog $dir/$dlname \$dldir/$dlname'
6143 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6144 dlpath=$dir/\$dldll~
6145 $rm \$dlpath'
6146 shlibpath_overrides_runpath=yes
6147
6148 case $host_os in
6149 cygwin*)
6150 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6151 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6152 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
6153 ;;
6154 mingw*)
6155 # MinGW DLLs use traditional 'lib' prefix
6156 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6157 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
6158 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6159 # It is most probably a Windows format PATH printed by
6160 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6161 # path with ; separators, and with drive letters. We can handle the
6162 # drive letters (cygwin fileutils understands them), so leave them,
6163 # especially as we might pass files found there to a mingw objdump,
6164 # which wouldn't understand a cygwinified path. Ahh.
6165 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6166 else
6167 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6168 fi
6169 ;;
6170 pw32*)
6171 # pw32 DLLs use 'pw' prefix rather than 'lib'
6172 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
6173 ;;
6174 esac
6175 ;;
6176
6177 *)
6178 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6179 ;;
6180 esac
6181 dynamic_linker='Win32 ld.exe'
6182 # FIXME: first we should search . and the directory the executable is in
6183 shlibpath_var=PATH
6184 ;;
6185
6186 darwin* | rhapsody*)
6187 dynamic_linker="$host_os dyld"
6188 version_type=darwin
6189 need_lib_prefix=no
6190 need_version=no
6191 # FIXME: Relying on posixy $() will cause problems for
6192 # cross-compilation, but unfortunately the echo tests do not
6193 # yet detect zsh echo's removal of \ escapes.
6194 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6195 soname_spec='${libname}${release}${major}$shared_ext'
6196 shlibpath_overrides_runpath=yes
6197 shlibpath_var=DYLD_LIBRARY_PATH
6198 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
6199 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6200 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6201 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"`
6202 fi
6203 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6204 ;;
6205
6206 dgux*)
6207 version_type=linux
6208 need_lib_prefix=no
6209 need_version=no
6210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6211 soname_spec='${libname}${release}${shared_ext}$major'
6212 shlibpath_var=LD_LIBRARY_PATH
6213 ;;
6214
6215 freebsd1*)
6216 dynamic_linker=no
6217 ;;
6218
6219 freebsd*)
6220 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6221 version_type=freebsd-$objformat
6222 case $version_type in
6223 freebsd-elf*)
6224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6225 need_version=no
6226 need_lib_prefix=no
6227 ;;
6228 freebsd-*)
6229 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6230 need_version=yes
6231 ;;
6232 esac
6233 shlibpath_var=LD_LIBRARY_PATH
6234 case $host_os in
6235 freebsd2*)
6236 shlibpath_overrides_runpath=yes
6237 ;;
6238 freebsd3.01* | freebsdelf3.01*)
6239 shlibpath_overrides_runpath=yes
6240 hardcode_into_libs=yes
6241 ;;
6242 *) # from 3.2 on
6243 shlibpath_overrides_runpath=no
6244 hardcode_into_libs=yes
6245 ;;
6246 esac
6247 ;;
6248
6249 gnu*)
6250 version_type=linux
6251 need_lib_prefix=no
6252 need_version=no
6253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6254 soname_spec='${libname}${release}${shared_ext}$major'
6255 shlibpath_var=LD_LIBRARY_PATH
6256 hardcode_into_libs=yes
6257 ;;
6258
6259 hpux9* | hpux10* | hpux11*)
6260 # Give a soname corresponding to the major version so that dld.sl refuses to
6261 # link against other versions.
6262 version_type=sunos
6263 need_lib_prefix=no
6264 need_version=no
6265 case "$host_cpu" in
6266 ia64*)
6267 shrext='.so'
6268 hardcode_into_libs=yes
6269 dynamic_linker="$host_os dld.so"
6270 shlibpath_var=LD_LIBRARY_PATH
6271 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6273 soname_spec='${libname}${release}${shared_ext}$major'
6274 if test "X$HPUX_IA64_MODE" = X32; then
6275 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6276 else
6277 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6278 fi
6279 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6280 ;;
6281 hppa*64*)
6282 shrext='.sl'
6283 hardcode_into_libs=yes
6284 dynamic_linker="$host_os dld.sl"
6285 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6286 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6288 soname_spec='${libname}${release}${shared_ext}$major'
6289 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6290 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6291 ;;
6292 *)
6293 shrext='.sl'
6294 dynamic_linker="$host_os dld.sl"
6295 shlibpath_var=SHLIB_PATH
6296 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6298 soname_spec='${libname}${release}${shared_ext}$major'
6299 ;;
6300 esac
6301 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6302 postinstall_cmds='chmod 555 $lib'
6303 ;;
6304
6305 irix5* | irix6* | nonstopux*)
6306 case $host_os in
6307 nonstopux*) version_type=nonstopux ;;
6308 *)
6309 if test "$lt_cv_prog_gnu_ld" = yes; then
6310 version_type=linux
6311 else
6312 version_type=irix
6313 fi ;;
6314 esac
6315 need_lib_prefix=no
6316 need_version=no
6317 soname_spec='${libname}${release}${shared_ext}$major'
6318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6319 case $host_os in
6320 irix5* | nonstopux*)
6321 libsuff= shlibsuff=
6322 ;;
6323 *)
6324 case $LD in # libtool.m4 will add one of these switches to LD
6325 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6326 libsuff= shlibsuff= libmagic=32-bit;;
6327 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6328 libsuff=32 shlibsuff=N32 libmagic=N32;;
6329 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6330 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6331 *) libsuff= shlibsuff= libmagic=never-match;;
6332 esac
6333 ;;
6334 esac
6335 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6336 shlibpath_overrides_runpath=no
6337 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6338 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6339 hardcode_into_libs=yes
6340 ;;
6341
6342 # No shared lib support for Linux oldld, aout, or coff.
6343 linux*oldld* | linux*aout* | linux*coff*)
6344 dynamic_linker=no
6345 ;;
6346
6347 # This must be Linux ELF.
6348 linux*|k*bsd*-gnu)
6349 version_type=linux
6350 need_lib_prefix=no
6351 need_version=no
6352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6353 soname_spec='${libname}${release}${shared_ext}$major'
6354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6355 shlibpath_var=LD_LIBRARY_PATH
6356 shlibpath_overrides_runpath=no
6357 # This implies no fast_install, which is unacceptable.
6358 # Some rework will be needed to allow for fast_install
6359 # before this can be enabled.
6360 hardcode_into_libs=yes
6361
6362 # We used to test for /lib/ld.so.1 and disable shared libraries on
6363 # powerpc, because MkLinux only supported shared libraries with the
6364 # GNU dynamic linker. Since this was broken with cross compilers,
6365 # most powerpc-linux boxes support dynamic linking these days and
6366 # people can always --disable-shared, the test was removed, and we
6367 # assume the GNU/Linux dynamic linker is in use.
6368 dynamic_linker='GNU/Linux ld.so'
6369 ;;
6370
6371 netbsd*)
6372 version_type=sunos
6373 need_lib_prefix=no
6374 need_version=no
6375 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6377 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6378 dynamic_linker='NetBSD (a.out) ld.so'
6379 else
6380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
6381 soname_spec='${libname}${release}${shared_ext}$major'
6382 dynamic_linker='NetBSD ld.elf_so'
6383 fi
6384 shlibpath_var=LD_LIBRARY_PATH
6385 shlibpath_overrides_runpath=yes
6386 hardcode_into_libs=yes
6387 ;;
6388
6389 newsos6)
6390 version_type=linux
6391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6392 shlibpath_var=LD_LIBRARY_PATH
6393 shlibpath_overrides_runpath=yes
6394 ;;
6395
6396 nto-qnx)
6397 version_type=linux
6398 need_lib_prefix=no
6399 need_version=no
6400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6401 soname_spec='${libname}${release}${shared_ext}$major'
6402 shlibpath_var=LD_LIBRARY_PATH
6403 shlibpath_overrides_runpath=yes
6404 ;;
6405
6406 openbsd*)
6407 version_type=sunos
6408 need_lib_prefix=no
6409 need_version=no
6410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6411 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6412 shlibpath_var=LD_LIBRARY_PATH
6413 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6414 case $host_os in
6415 openbsd2.[89] | openbsd2.[89].*)
6416 shlibpath_overrides_runpath=no
6417 ;;
6418 *)
6419 shlibpath_overrides_runpath=yes
6420 ;;
6421 esac
6422 else
6423 shlibpath_overrides_runpath=yes
6424 fi
6425 ;;
6426
6427 os2*)
6428 libname_spec='$name'
6429 shrext=".dll"
6430 need_lib_prefix=no
6431 library_names_spec='$libname${shared_ext} $libname.a'
6432 dynamic_linker='OS/2 ld.exe'
6433 shlibpath_var=LIBPATH
6434 ;;
6435
6436 osf3* | osf4* | osf5*)
6437 version_type=osf
6438 need_lib_prefix=no
6439 need_version=no
6440 soname_spec='${libname}${release}${shared_ext}$major'
6441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6442 shlibpath_var=LD_LIBRARY_PATH
6443 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6444 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6445 ;;
6446
6447 sco3.2v5*)
6448 version_type=osf
6449 soname_spec='${libname}${release}${shared_ext}$major'
6450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6451 shlibpath_var=LD_LIBRARY_PATH
6452 ;;
6453
6454 solaris*)
6455 version_type=linux
6456 need_lib_prefix=no
6457 need_version=no
6458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6459 soname_spec='${libname}${release}${shared_ext}$major'
6460 shlibpath_var=LD_LIBRARY_PATH
6461 shlibpath_overrides_runpath=yes
6462 hardcode_into_libs=yes
6463 # ldd complains unless libraries are executable
6464 postinstall_cmds='chmod +x $lib'
6465 ;;
6466
6467 sunos4*)
6468 version_type=sunos
6469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6470 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6471 shlibpath_var=LD_LIBRARY_PATH
6472 shlibpath_overrides_runpath=yes
6473 if test "$with_gnu_ld" = yes; then
6474 need_lib_prefix=no
6475 fi
6476 need_version=yes
6477 ;;
6478
6479 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6480 version_type=linux
6481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6482 soname_spec='${libname}${release}${shared_ext}$major'
6483 shlibpath_var=LD_LIBRARY_PATH
6484 case $host_vendor in
6485 sni)
6486 shlibpath_overrides_runpath=no
6487 need_lib_prefix=no
6488 export_dynamic_flag_spec='${wl}-Blargedynsym'
6489 runpath_var=LD_RUN_PATH
6490 ;;
6491 siemens)
6492 need_lib_prefix=no
6493 ;;
6494 motorola)
6495 need_lib_prefix=no
6496 need_version=no
6497 shlibpath_overrides_runpath=no
6498 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6499 ;;
6500 esac
6501 ;;
6502
6503 sysv4*MP*)
6504 if test -d /usr/nec ;then
6505 version_type=linux
6506 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6507 soname_spec='$libname${shared_ext}.$major'
6508 shlibpath_var=LD_LIBRARY_PATH
6509 fi
6510 ;;
6511
6512 uts4*)
6513 version_type=linux
6514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6515 soname_spec='${libname}${release}${shared_ext}$major'
6516 shlibpath_var=LD_LIBRARY_PATH
6517 ;;
6518
6519 *)
6520 dynamic_linker=no
6521 ;;
6522 esac
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
6524 $as_echo "$dynamic_linker" >&6; }
6525 test "$dynamic_linker" = no && can_build_shared=no
6526
6527
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
6529 $as_echo_n "checking which variable specifies run-time library path... " >&6; }
6530 if test "${libltdl_cv_shlibpath_var+set}" = set; then :
6531 $as_echo_n "(cached) " >&6
6532 else
6533 libltdl_cv_shlibpath_var="$shlibpath_var"
6534 fi
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
6536 $as_echo "$libltdl_cv_shlibpath_var" >&6; }
6537 if test -n "$libltdl_cv_shlibpath_var"; then
6538
6539 cat >>confdefs.h <<_ACEOF
6540 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
6541 _ACEOF
6542
6543 fi
6544
6545 fi
6546
6547 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
6548
6549
6550 # Possibly build libgcj as many sub-libraries.
6551 # Check whether --enable-libgcj-sublibs was given.
6552 if test "${enable_libgcj_sublibs+set}" = set; then :
6553 enableval=$enable_libgcj_sublibs;
6554 fi
6555
6556
6557 if test -z "$enable_libgcj_sublibs"; then
6558 enable_libgcj_sublibs=$enable_libgcj_sublibs_default
6559 fi
6560 if test "$enable_libgcj_sublibs" = yes; then
6561 BUILD_SUBLIBS_TRUE=
6562 BUILD_SUBLIBS_FALSE='#'
6563 else
6564 BUILD_SUBLIBS_TRUE='#'
6565 BUILD_SUBLIBS_FALSE=
6566 fi
6567
6568 if test "$enable_libgcj_sublibs" = yes ; then
6569 # In theory we could make do with only one override and simply
6570 # tag "_bc" onto the end of it when we use it to generate the
6571 # spec, but that's an ugly thing to do when there are multiple
6572 # words in the string and you're relying on the ordering to
6573 # append the correct one.
6574 libgcj_spec_lgcj_override="-lgcj-noncore -lgcj"
6575 libgcj_spec_lgcj_bc_override="-lgcj-noncore -lgcj_bc"
6576 fi
6577
6578
6579 # See if the user has requested runtime debugging.
6580 LIBGCJDEBUG="disable"
6581
6582 # Check whether --enable-libgcj-debug was given.
6583 if test "${enable_libgcj_debug+set}" = set; then :
6584 enableval=$enable_libgcj_debug; if test "$enable_libgcj_debug" = yes; then
6585
6586 $as_echo "#define __GCJ_DEBUG 1" >>confdefs.h
6587
6588 LIBGCJDEBUG="enable"
6589 fi
6590 fi
6591
6592
6593
6594 # Check whether --with-escher was given.
6595 if test "${with_escher+set}" = set; then :
6596 withval=$with_escher;
6597 fi
6598
6599 case "$with_escher" in
6600 "")
6601 use_escher=false
6602 ;;
6603 "no")
6604 use_escher=false
6605 ;;
6606 "yes")
6607 as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
6608 ;;
6609 *)
6610 use_escher=true
6611 ;;
6612 esac
6613
6614 # Determine which AWT peer libraries to build
6615 # Check whether --enable-java-awt was given.
6616 if test "${enable_java_awt+set}" = set; then :
6617 enableval=$enable_java_awt;
6618 fi
6619
6620
6621 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6622 use_xlib_awt=""
6623 use_gtk_awt=""
6624 use_qt_awt=""
6625 use_x_awt=""
6626 # The default toolkit to use is the first one specified.
6627 TOOLKIT=
6628
6629
6630 for peer in $peerlibs ; do
6631 case $peer in
6632 xlib)
6633 if test "$no_x" = yes; then
6634 echo "*** xlib peers requested but no X library available" 1>&2
6635 exit 1
6636 else
6637 use_xlib_awt="yes"
6638 if test -z "$TOOLKIT"; then
6639 TOOLKIT=gnu.awt.xlib.XToolkit
6640 fi
6641 fi
6642 ;;
6643 gtk)
6644 if test "$no_x" = yes; then
6645 echo "*** gtk peers requested but no X library available" 1>&2
6646 exit 1
6647 else
6648 use_gtk_awt=yes
6649 if test -z "$TOOLKIT"; then
6650 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
6651 fi
6652 fi
6653 ;;
6654 qt)
6655 if test "$no_x" = yes; then
6656 # Perhaps we should admit the possibility of embedded Qt.
6657 echo "*** Qt peers requested but no X library available" 1>&2
6658 exit 1
6659 else
6660 use_qt_awt=yes
6661 if test -z "$TOOLKIT"; then
6662 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
6663 fi
6664 fi
6665 ;;
6666 x)
6667 use_x_awt=yes
6668 if test -z "$TOOLKIT"; then
6669 TOOLKIT=gnu.java.awt.peer.x.XToolkit
6670 fi
6671 ;;
6672 no)
6673 use_xlib_awt=
6674 use_gtk_awt=
6675 use_qt_awt=
6676 use_x_awt=
6677 break
6678 ;;
6679 *)
6680 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6681 exit 1
6682 esac
6683 done
6684
6685 if test "$use_xlib_awt" = yes; then
6686 XLIB_AWT_TRUE=
6687 XLIB_AWT_FALSE='#'
6688 else
6689 XLIB_AWT_TRUE='#'
6690 XLIB_AWT_FALSE=
6691 fi
6692
6693 if test "$use_x_awt" = yes; then
6694 X_AWT_TRUE=
6695 X_AWT_FALSE='#'
6696 else
6697 X_AWT_TRUE='#'
6698 X_AWT_FALSE=
6699 fi
6700
6701
6702
6703 cat >>confdefs.h <<_ACEOF
6704 #define AWT_TOOLKIT "$TOOLKIT"
6705 _ACEOF
6706
6707
6708
6709 cat >>confdefs.h <<_ACEOF
6710 #define LIBGCJ_PREFIX "$prefix"
6711 _ACEOF
6712
6713
6714 # Create standard.omit based on decisions we just made.
6715 cp $srcdir/standard.omit.in standard.omit
6716 if test "$use_xlib_awt" != yes; then
6717 echo gnu/awt/xlib >> standard.omit
6718 echo gnu/gcj/xlib >> standard.omit
6719 fi
6720 if test "$use_x_awt" != yes; then
6721 echo gnu/java/awt/peer/x >> standard.omit
6722 fi
6723
6724 # Tools that need to be compiled against classpath's tools classes
6725 : > vm-tools-packages
6726 for package in gnu/gcj/tools/gc_analyze ; do
6727 echo $package >> standard.omit
6728 echo $package >> vm-tools-packages
6729 done
6730
6731 if test -z "${with_multisubdir}"; then
6732 builddotdot=.
6733 else
6734 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
6735 fi
6736
6737 NATIVE=yes
6738
6739 # Which gcj and host gcj (for ecjx) do we use?
6740 which_gcj=default
6741 host_exeext=${ac_exeext}
6742 GCJ_FOR_ECJX=
6743 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
6744 if test -n "${with_cross_host}"; then
6745 # We are being configured with a cross compiler. We can't
6746 # use ac_exeext, because that is for the target platform.
6747 NATIVE=no
6748 cross_host_exeext=
6749 GCJ_FOR_ECJX="${with_cross_host}-gcj"
6750 case "${with_cross_host}" in
6751 *mingw* | *cygwin*)
6752 cross_host_exeext=.exe
6753 ;;
6754 esac
6755 host_exeext=${cross_host_exeext}
6756 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
6757 if test x"$build_noncanonical" = x"$with_cross_host"; then
6758 # Ordinary cross (host!=target and host=build)
6759 which_gcj=built
6760 else
6761 # Canadian cross (host!=target and host!=build)
6762 which_gcj=cross
6763 fi
6764 else
6765 which_gcj=cross
6766 fi
6767 else
6768 # We are being configured with a native or crossed-native compiler
6769 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
6770 if test x"$build" = x"$host"; then
6771 # True native build (host=target and host=build)
6772 which_gcj=built
6773 else
6774 # Crossed-native build (host=target and host!=build)
6775 which_gcj=cross
6776 fi
6777 else
6778 which_gcj=path
6779 fi
6780 fi
6781 libgcjdir=`${PWDCMD-pwd}`
6782 case $GCJ in
6783 *" -B"*)
6784 # Just in case there is a comma in the build dir, quote it for the
6785 # sed command below.
6786 case $libgcjdir in
6787 *[,\\]*) qlibgcjdir=`echo "$libgcjdir" | sed 's:[,\\]:\\&:g'`;;
6788 *) qlibgcjdir=$libgcjdir;;
6789 esac
6790 GCJ=`echo "$GCJ" | sed "s, -B, -B$qlibgcjdir/&,"`
6791 ;;
6792 *)
6793 GCJ=$GCJ" -B$libgcjdir/"
6794 ;;
6795 esac
6796 case "${which_gcj}" in
6797 built)
6798 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
6799 ;;
6800 cross)
6801 if test "x${with_newlib}" = "xyes"; then
6802 # FIXME (comment): Why is this needed?
6803 GCC_UNWIND_INCLUDE=
6804 fi
6805 GCJH='$(target_noncanonical)-gcjh'
6806 ;;
6807 path)
6808 GCJH=gcjh
6809 ;;
6810 esac
6811 JAVAC="$GCJ -C"
6812 export JAVAC
6813
6814
6815
6816
6817
6818 # Create it, so that compile/link tests don't fail
6819 test -f libgcj.spec || touch libgcj.spec
6820
6821
6822
6823 # Set up to configure Classpath.
6824 # FIXME: no supported way to pass args in autoconf.
6825 # Disable tool wrappers to avoid ltdl.h configure check.
6826 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
6827 ac_configure_args="$ac_configure_args --disable-load-library"
6828 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
6829 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
6830 dir1=`cd $srcdir && pwd`
6831 dir2=`pwd`
6832 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
6833 ac_configure_args="$ac_configure_args --disable-core-jni"
6834 ac_configure_args="$ac_configure_args --disable-examples"
6835 ac_configure_args="$ac_configure_args --with-glibj=build"
6836 if test "$plugin_enabled" != yes; then
6837 ac_configure_args="$ac_configure_args --disable-plugin"
6838 fi
6839 if test "$gconf_enabled" != yes; then
6840 ac_configure_args="$ac_configure_args --disable-gconf-peer"
6841 ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
6842 fi
6843 if test "$use_gtk_awt" != yes; then
6844 ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
6845 fi
6846 if test "$use_qt_awt" != yes; then
6847 ac_configure_args="$ac_configure_args --disable-qt-peer"
6848 else
6849 # We need this as qt is disabled by default in classpath.
6850 ac_configure_args="$ac_configure_args --enable-qt-peer"
6851 fi
6852 if test "$use_x_awt" != yes; then
6853 ac_configure_args="$ac_configure_args --without-escher"
6854 else
6855 # We need this as escher is disabled by default in classpath.
6856 if test "$use_escher" != true; then
6857 as_fn_error "Please supply an absolute path to the Escher library" "$LINENO" 5
6858 else
6859 ac_configure_args="$ac_configure_args --with-escher=$with_escher"
6860 fi
6861 fi
6862 if test "x$BUILD_GJDOC" = xno; then
6863 ac_configure_args="$ac_configure_args --disable-gjdoc"
6864 fi
6865 # -Werror causes unavoidable problems in code using alsa.
6866 ac_configure_args="$ac_configure_args --disable-regen-headers"
6867 ac_configure_args="$ac_configure_args --disable-Werror"
6868
6869 # Only use libltdl for non-newlib builds.
6870 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
6871 case $enable_ltdl_convenience in
6872 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
6873 "") enable_ltdl_convenience=yes
6874 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
6875 esac
6876 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
6877 LTDLINCL='-I${top_srcdir}/''libltdl'
6878 # For backwards non-gettext consistent compatibility...
6879 INCLTDL="$LTDLINCL"
6880
6881 enable_dlopen=yes
6882
6883
6884
6885 DIRLTDL=libltdl
6886
6887 $as_echo "#define USE_LTDL 1" >>confdefs.h
6888
6889 # Sigh. Libtool's macro doesn't do the right thing.
6890 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
6891 # FIXME: this is a hack.
6892 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
6893 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
6894 fi
6895
6896
6897
6898 case `pwd` in
6899 *\ * | *\ *)
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6901 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6902 esac
6903
6904
6905
6906 macro_version='2.2.6'
6907 macro_revision='1.3012'
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921 ltmain="$ac_aux_dir/ltmain.sh"
6922
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6924 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6925 if test "${ac_cv_path_SED+set}" = set; then :
6926 $as_echo_n "(cached) " >&6
6927 else
6928 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6929 for ac_i in 1 2 3 4 5 6 7; do
6930 ac_script="$ac_script$as_nl$ac_script"
6931 done
6932 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6933 { ac_script=; unset ac_script;}
6934 if test -z "$SED"; then
6935 ac_path_SED_found=false
6936 # Loop through the user's path and test for each of PROGNAME-LIST
6937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938 for as_dir in $PATH
6939 do
6940 IFS=$as_save_IFS
6941 test -z "$as_dir" && as_dir=.
6942 for ac_prog in sed gsed; do
6943 for ac_exec_ext in '' $ac_executable_extensions; do
6944 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6945 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6946 # Check for GNU ac_path_SED and select it if it is found.
6947 # Check for GNU $ac_path_SED
6948 case `"$ac_path_SED" --version 2>&1` in
6949 *GNU*)
6950 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6951 *)
6952 ac_count=0
6953 $as_echo_n 0123456789 >"conftest.in"
6954 while :
6955 do
6956 cat "conftest.in" "conftest.in" >"conftest.tmp"
6957 mv "conftest.tmp" "conftest.in"
6958 cp "conftest.in" "conftest.nl"
6959 $as_echo '' >> "conftest.nl"
6960 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6961 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6962 as_fn_arith $ac_count + 1 && ac_count=$as_val
6963 if test $ac_count -gt ${ac_path_SED_max-0}; then
6964 # Best one so far, save it but keep looking for a better one
6965 ac_cv_path_SED="$ac_path_SED"
6966 ac_path_SED_max=$ac_count
6967 fi
6968 # 10*(2^10) chars as input seems more than enough
6969 test $ac_count -gt 10 && break
6970 done
6971 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6972 esac
6973
6974 $ac_path_SED_found && break 3
6975 done
6976 done
6977 done
6978 IFS=$as_save_IFS
6979 if test -z "$ac_cv_path_SED"; then
6980 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6981 fi
6982 else
6983 ac_cv_path_SED=$SED
6984 fi
6985
6986 fi
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6988 $as_echo "$ac_cv_path_SED" >&6; }
6989 SED="$ac_cv_path_SED"
6990 rm -f conftest.sed
6991
6992 test -z "$SED" && SED=sed
6993 Xsed="$SED -e 1s/^X//"
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7006 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7007 if test "${ac_cv_path_GREP+set}" = set; then :
7008 $as_echo_n "(cached) " >&6
7009 else
7010 if test -z "$GREP"; then
7011 ac_path_GREP_found=false
7012 # Loop through the user's path and test for each of PROGNAME-LIST
7013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7015 do
7016 IFS=$as_save_IFS
7017 test -z "$as_dir" && as_dir=.
7018 for ac_prog in grep ggrep; do
7019 for ac_exec_ext in '' $ac_executable_extensions; do
7020 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7021 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7022 # Check for GNU ac_path_GREP and select it if it is found.
7023 # Check for GNU $ac_path_GREP
7024 case `"$ac_path_GREP" --version 2>&1` in
7025 *GNU*)
7026 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7027 *)
7028 ac_count=0
7029 $as_echo_n 0123456789 >"conftest.in"
7030 while :
7031 do
7032 cat "conftest.in" "conftest.in" >"conftest.tmp"
7033 mv "conftest.tmp" "conftest.in"
7034 cp "conftest.in" "conftest.nl"
7035 $as_echo 'GREP' >> "conftest.nl"
7036 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7037 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7038 as_fn_arith $ac_count + 1 && ac_count=$as_val
7039 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7040 # Best one so far, save it but keep looking for a better one
7041 ac_cv_path_GREP="$ac_path_GREP"
7042 ac_path_GREP_max=$ac_count
7043 fi
7044 # 10*(2^10) chars as input seems more than enough
7045 test $ac_count -gt 10 && break
7046 done
7047 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7048 esac
7049
7050 $ac_path_GREP_found && break 3
7051 done
7052 done
7053 done
7054 IFS=$as_save_IFS
7055 if test -z "$ac_cv_path_GREP"; then
7056 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7057 fi
7058 else
7059 ac_cv_path_GREP=$GREP
7060 fi
7061
7062 fi
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7064 $as_echo "$ac_cv_path_GREP" >&6; }
7065 GREP="$ac_cv_path_GREP"
7066
7067
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7069 $as_echo_n "checking for egrep... " >&6; }
7070 if test "${ac_cv_path_EGREP+set}" = set; then :
7071 $as_echo_n "(cached) " >&6
7072 else
7073 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7074 then ac_cv_path_EGREP="$GREP -E"
7075 else
7076 if test -z "$EGREP"; then
7077 ac_path_EGREP_found=false
7078 # Loop through the user's path and test for each of PROGNAME-LIST
7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7081 do
7082 IFS=$as_save_IFS
7083 test -z "$as_dir" && as_dir=.
7084 for ac_prog in egrep; do
7085 for ac_exec_ext in '' $ac_executable_extensions; do
7086 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7087 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7088 # Check for GNU ac_path_EGREP and select it if it is found.
7089 # Check for GNU $ac_path_EGREP
7090 case `"$ac_path_EGREP" --version 2>&1` in
7091 *GNU*)
7092 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7093 *)
7094 ac_count=0
7095 $as_echo_n 0123456789 >"conftest.in"
7096 while :
7097 do
7098 cat "conftest.in" "conftest.in" >"conftest.tmp"
7099 mv "conftest.tmp" "conftest.in"
7100 cp "conftest.in" "conftest.nl"
7101 $as_echo 'EGREP' >> "conftest.nl"
7102 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7103 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7104 as_fn_arith $ac_count + 1 && ac_count=$as_val
7105 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7106 # Best one so far, save it but keep looking for a better one
7107 ac_cv_path_EGREP="$ac_path_EGREP"
7108 ac_path_EGREP_max=$ac_count
7109 fi
7110 # 10*(2^10) chars as input seems more than enough
7111 test $ac_count -gt 10 && break
7112 done
7113 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7114 esac
7115
7116 $ac_path_EGREP_found && break 3
7117 done
7118 done
7119 done
7120 IFS=$as_save_IFS
7121 if test -z "$ac_cv_path_EGREP"; then
7122 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7123 fi
7124 else
7125 ac_cv_path_EGREP=$EGREP
7126 fi
7127
7128 fi
7129 fi
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7131 $as_echo "$ac_cv_path_EGREP" >&6; }
7132 EGREP="$ac_cv_path_EGREP"
7133
7134
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7136 $as_echo_n "checking for fgrep... " >&6; }
7137 if test "${ac_cv_path_FGREP+set}" = set; then :
7138 $as_echo_n "(cached) " >&6
7139 else
7140 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7141 then ac_cv_path_FGREP="$GREP -F"
7142 else
7143 if test -z "$FGREP"; then
7144 ac_path_FGREP_found=false
7145 # Loop through the user's path and test for each of PROGNAME-LIST
7146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7148 do
7149 IFS=$as_save_IFS
7150 test -z "$as_dir" && as_dir=.
7151 for ac_prog in fgrep; do
7152 for ac_exec_ext in '' $ac_executable_extensions; do
7153 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7154 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7155 # Check for GNU ac_path_FGREP and select it if it is found.
7156 # Check for GNU $ac_path_FGREP
7157 case `"$ac_path_FGREP" --version 2>&1` in
7158 *GNU*)
7159 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7160 *)
7161 ac_count=0
7162 $as_echo_n 0123456789 >"conftest.in"
7163 while :
7164 do
7165 cat "conftest.in" "conftest.in" >"conftest.tmp"
7166 mv "conftest.tmp" "conftest.in"
7167 cp "conftest.in" "conftest.nl"
7168 $as_echo 'FGREP' >> "conftest.nl"
7169 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7170 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7171 as_fn_arith $ac_count + 1 && ac_count=$as_val
7172 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7173 # Best one so far, save it but keep looking for a better one
7174 ac_cv_path_FGREP="$ac_path_FGREP"
7175 ac_path_FGREP_max=$ac_count
7176 fi
7177 # 10*(2^10) chars as input seems more than enough
7178 test $ac_count -gt 10 && break
7179 done
7180 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7181 esac
7182
7183 $ac_path_FGREP_found && break 3
7184 done
7185 done
7186 done
7187 IFS=$as_save_IFS
7188 if test -z "$ac_cv_path_FGREP"; then
7189 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7190 fi
7191 else
7192 ac_cv_path_FGREP=$FGREP
7193 fi
7194
7195 fi
7196 fi
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7198 $as_echo "$ac_cv_path_FGREP" >&6; }
7199 FGREP="$ac_cv_path_FGREP"
7200
7201
7202 test -z "$GREP" && GREP=grep
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222 # Check whether --with-gnu-ld was given.
7223 if test "${with_gnu_ld+set}" = set; then :
7224 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7225 else
7226 with_gnu_ld=no
7227 fi
7228
7229 ac_prog=ld
7230 if test "$GCC" = yes; then
7231 # Check if gcc -print-prog-name=ld gives a path.
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7233 $as_echo_n "checking for ld used by $CC... " >&6; }
7234 case $host in
7235 *-*-mingw*)
7236 # gcc leaves a trailing carriage return which upsets mingw
7237 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7238 *)
7239 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7240 esac
7241 case $ac_prog in
7242 # Accept absolute paths.
7243 [\\/]* | ?:[\\/]*)
7244 re_direlt='/[^/][^/]*/\.\./'
7245 # Canonicalize the pathname of ld
7246 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7247 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7248 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7249 done
7250 test -z "$LD" && LD="$ac_prog"
7251 ;;
7252 "")
7253 # If it fails, then pretend we aren't using GCC.
7254 ac_prog=ld
7255 ;;
7256 *)
7257 # If it is relative, then search for the first ld in PATH.
7258 with_gnu_ld=unknown
7259 ;;
7260 esac
7261 elif test "$with_gnu_ld" = yes; then
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7263 $as_echo_n "checking for GNU ld... " >&6; }
7264 else
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7266 $as_echo_n "checking for non-GNU ld... " >&6; }
7267 fi
7268 if test "${lt_cv_path_LD+set}" = set; then :
7269 $as_echo_n "(cached) " >&6
7270 else
7271 if test -z "$LD"; then
7272 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7273 for ac_dir in $PATH; do
7274 IFS="$lt_save_ifs"
7275 test -z "$ac_dir" && ac_dir=.
7276 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7277 lt_cv_path_LD="$ac_dir/$ac_prog"
7278 # Check to see if the program is GNU ld. I'd rather use --version,
7279 # but apparently some variants of GNU ld only accept -v.
7280 # Break only if it was the GNU/non-GNU ld that we prefer.
7281 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7282 *GNU* | *'with BFD'*)
7283 test "$with_gnu_ld" != no && break
7284 ;;
7285 *)
7286 test "$with_gnu_ld" != yes && break
7287 ;;
7288 esac
7289 fi
7290 done
7291 IFS="$lt_save_ifs"
7292 else
7293 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7294 fi
7295 fi
7296
7297 LD="$lt_cv_path_LD"
7298 if test -n "$LD"; then
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7300 $as_echo "$LD" >&6; }
7301 else
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7303 $as_echo "no" >&6; }
7304 fi
7305 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7307 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7308 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7309 $as_echo_n "(cached) " >&6
7310 else
7311 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7312 case `$LD -v 2>&1 </dev/null` in
7313 *GNU* | *'with BFD'*)
7314 lt_cv_prog_gnu_ld=yes
7315 ;;
7316 *)
7317 lt_cv_prog_gnu_ld=no
7318 ;;
7319 esac
7320 fi
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7322 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7323 with_gnu_ld=$lt_cv_prog_gnu_ld
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7334 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7335 if test "${lt_cv_path_NM+set}" = set; then :
7336 $as_echo_n "(cached) " >&6
7337 else
7338 if test -n "$NM"; then
7339 # Let the user override the test.
7340 lt_cv_path_NM="$NM"
7341 else
7342 lt_nm_to_check="${ac_tool_prefix}nm"
7343 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7344 lt_nm_to_check="$lt_nm_to_check nm"
7345 fi
7346 for lt_tmp_nm in $lt_nm_to_check; do
7347 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7348 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7349 IFS="$lt_save_ifs"
7350 test -z "$ac_dir" && ac_dir=.
7351 tmp_nm="$ac_dir/$lt_tmp_nm"
7352 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7353 # Check to see if the nm accepts a BSD-compat flag.
7354 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7355 # nm: unknown option "B" ignored
7356 # Tru64's nm complains that /dev/null is an invalid object file
7357 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7358 */dev/null* | *'Invalid file or object type'*)
7359 lt_cv_path_NM="$tmp_nm -B"
7360 break
7361 ;;
7362 *)
7363 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7364 */dev/null*)
7365 lt_cv_path_NM="$tmp_nm -p"
7366 break
7367 ;;
7368 *)
7369 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7370 continue # so that we can try to find one that supports BSD flags
7371 ;;
7372 esac
7373 ;;
7374 esac
7375 fi
7376 done
7377 IFS="$lt_save_ifs"
7378 done
7379 : ${lt_cv_path_NM=no}
7380 fi
7381 fi
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7383 $as_echo "$lt_cv_path_NM" >&6; }
7384 if test "$lt_cv_path_NM" != "no"; then
7385 NM="$lt_cv_path_NM"
7386 else
7387 # Didn't find any BSD compatible name lister, look for dumpbin.
7388 if test -n "$ac_tool_prefix"; then
7389 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7390 do
7391 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7392 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7394 $as_echo_n "checking for $ac_word... " >&6; }
7395 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7396 $as_echo_n "(cached) " >&6
7397 else
7398 if test -n "$DUMPBIN"; then
7399 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7400 else
7401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402 for as_dir in $PATH
7403 do
7404 IFS=$as_save_IFS
7405 test -z "$as_dir" && as_dir=.
7406 for ac_exec_ext in '' $ac_executable_extensions; do
7407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7408 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7410 break 2
7411 fi
7412 done
7413 done
7414 IFS=$as_save_IFS
7415
7416 fi
7417 fi
7418 DUMPBIN=$ac_cv_prog_DUMPBIN
7419 if test -n "$DUMPBIN"; then
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7421 $as_echo "$DUMPBIN" >&6; }
7422 else
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7424 $as_echo "no" >&6; }
7425 fi
7426
7427
7428 test -n "$DUMPBIN" && break
7429 done
7430 fi
7431 if test -z "$DUMPBIN"; then
7432 ac_ct_DUMPBIN=$DUMPBIN
7433 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7434 do
7435 # Extract the first word of "$ac_prog", so it can be a program name with args.
7436 set dummy $ac_prog; ac_word=$2
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7438 $as_echo_n "checking for $ac_word... " >&6; }
7439 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7440 $as_echo_n "(cached) " >&6
7441 else
7442 if test -n "$ac_ct_DUMPBIN"; then
7443 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7444 else
7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 for as_dir in $PATH
7447 do
7448 IFS=$as_save_IFS
7449 test -z "$as_dir" && as_dir=.
7450 for ac_exec_ext in '' $ac_executable_extensions; do
7451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7452 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7454 break 2
7455 fi
7456 done
7457 done
7458 IFS=$as_save_IFS
7459
7460 fi
7461 fi
7462 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7463 if test -n "$ac_ct_DUMPBIN"; then
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7465 $as_echo "$ac_ct_DUMPBIN" >&6; }
7466 else
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7468 $as_echo "no" >&6; }
7469 fi
7470
7471
7472 test -n "$ac_ct_DUMPBIN" && break
7473 done
7474
7475 if test "x$ac_ct_DUMPBIN" = x; then
7476 DUMPBIN=":"
7477 else
7478 case $cross_compiling:$ac_tool_warned in
7479 yes:)
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7482 ac_tool_warned=yes ;;
7483 esac
7484 DUMPBIN=$ac_ct_DUMPBIN
7485 fi
7486 fi
7487
7488
7489 if test "$DUMPBIN" != ":"; then
7490 NM="$DUMPBIN"
7491 fi
7492 fi
7493 test -z "$NM" && NM=nm
7494
7495
7496
7497
7498
7499
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7501 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7502 if test "${lt_cv_nm_interface+set}" = set; then :
7503 $as_echo_n "(cached) " >&6
7504 else
7505 lt_cv_nm_interface="BSD nm"
7506 echo "int some_variable = 0;" > conftest.$ac_ext
7507 (eval echo "\"\$as_me:7507: $ac_compile\"" >&5)
7508 (eval "$ac_compile" 2>conftest.err)
7509 cat conftest.err >&5
7510 (eval echo "\"\$as_me:7510: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7511 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7512 cat conftest.err >&5
7513 (eval echo "\"\$as_me:7513: output\"" >&5)
7514 cat conftest.out >&5
7515 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7516 lt_cv_nm_interface="MS dumpbin"
7517 fi
7518 rm -f conftest*
7519 fi
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7521 $as_echo "$lt_cv_nm_interface" >&6; }
7522
7523 # find the maximum length of command line arguments
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7525 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7526 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7527 $as_echo_n "(cached) " >&6
7528 else
7529 i=0
7530 teststring="ABCD"
7531
7532 case $build_os in
7533 msdosdjgpp*)
7534 # On DJGPP, this test can blow up pretty badly due to problems in libc
7535 # (any single argument exceeding 2000 bytes causes a buffer overrun
7536 # during glob expansion). Even if it were fixed, the result of this
7537 # check would be larger than it should be.
7538 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7539 ;;
7540
7541 gnu*)
7542 # Under GNU Hurd, this test is not required because there is
7543 # no limit to the length of command line arguments.
7544 # Libtool will interpret -1 as no limit whatsoever
7545 lt_cv_sys_max_cmd_len=-1;
7546 ;;
7547
7548 cygwin* | mingw* | cegcc*)
7549 # On Win9x/ME, this test blows up -- it succeeds, but takes
7550 # about 5 minutes as the teststring grows exponentially.
7551 # Worse, since 9x/ME are not pre-emptively multitasking,
7552 # you end up with a "frozen" computer, even though with patience
7553 # the test eventually succeeds (with a max line length of 256k).
7554 # Instead, let's just punt: use the minimum linelength reported by
7555 # all of the supported platforms: 8192 (on NT/2K/XP).
7556 lt_cv_sys_max_cmd_len=8192;
7557 ;;
7558
7559 amigaos*)
7560 # On AmigaOS with pdksh, this test takes hours, literally.
7561 # So we just punt and use a minimum line length of 8192.
7562 lt_cv_sys_max_cmd_len=8192;
7563 ;;
7564
7565 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7566 # This has been around since 386BSD, at least. Likely further.
7567 if test -x /sbin/sysctl; then
7568 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7569 elif test -x /usr/sbin/sysctl; then
7570 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7571 else
7572 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7573 fi
7574 # And add a safety zone
7575 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7576 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7577 ;;
7578
7579 interix*)
7580 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7581 lt_cv_sys_max_cmd_len=196608
7582 ;;
7583
7584 osf*)
7585 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7586 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7587 # nice to cause kernel panics so lets avoid the loop below.
7588 # First set a reasonable default.
7589 lt_cv_sys_max_cmd_len=16384
7590 #
7591 if test -x /sbin/sysconfig; then
7592 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7593 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7594 esac
7595 fi
7596 ;;
7597 sco3.2v5*)
7598 lt_cv_sys_max_cmd_len=102400
7599 ;;
7600 sysv5* | sco5v6* | sysv4.2uw2*)
7601 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7602 if test -n "$kargmax"; then
7603 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7604 else
7605 lt_cv_sys_max_cmd_len=32768
7606 fi
7607 ;;
7608 *)
7609 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7610 if test -n "$lt_cv_sys_max_cmd_len"; then
7611 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7612 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7613 else
7614 # Make teststring a little bigger before we do anything with it.
7615 # a 1K string should be a reasonable start.
7616 for i in 1 2 3 4 5 6 7 8 ; do
7617 teststring=$teststring$teststring
7618 done
7619 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7620 # If test is not a shell built-in, we'll probably end up computing a
7621 # maximum length that is only half of the actual maximum length, but
7622 # we can't tell.
7623 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
7624 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
7625 test $i != 17 # 1/2 MB should be enough
7626 do
7627 i=`expr $i + 1`
7628 teststring=$teststring$teststring
7629 done
7630 # Only check the string length outside the loop.
7631 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7632 teststring=
7633 # Add a significant safety factor because C++ compilers can tack on
7634 # massive amounts of additional arguments before passing them to the
7635 # linker. It appears as though 1/2 is a usable value.
7636 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7637 fi
7638 ;;
7639 esac
7640
7641 fi
7642
7643 if test -n $lt_cv_sys_max_cmd_len ; then
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7645 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7646 else
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7648 $as_echo "none" >&6; }
7649 fi
7650 max_cmd_len=$lt_cv_sys_max_cmd_len
7651
7652
7653
7654
7655
7656
7657 : ${CP="cp -f"}
7658 : ${MV="mv -f"}
7659 : ${RM="rm -f"}
7660
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7662 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7663 # Try some XSI features
7664 xsi_shell=no
7665 ( _lt_dummy="a/b/c"
7666 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7667 = c,a/b,, \
7668 && eval 'test $(( 1 + 1 )) -eq 2 \
7669 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7670 && xsi_shell=yes
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7672 $as_echo "$xsi_shell" >&6; }
7673
7674
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7676 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7677 lt_shell_append=no
7678 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7679 >/dev/null 2>&1 \
7680 && lt_shell_append=yes
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7682 $as_echo "$lt_shell_append" >&6; }
7683
7684
7685 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7686 lt_unset=unset
7687 else
7688 lt_unset=false
7689 fi
7690
7691
7692
7693
7694
7695 # test EBCDIC or ASCII
7696 case `echo X|tr X '\101'` in
7697 A) # ASCII based system
7698 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7699 lt_SP2NL='tr \040 \012'
7700 lt_NL2SP='tr \015\012 \040\040'
7701 ;;
7702 *) # EBCDIC based system
7703 lt_SP2NL='tr \100 \n'
7704 lt_NL2SP='tr \r\n \100\100'
7705 ;;
7706 esac
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7717 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7718 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7719 $as_echo_n "(cached) " >&6
7720 else
7721 lt_cv_ld_reload_flag='-r'
7722 fi
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7724 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7725 reload_flag=$lt_cv_ld_reload_flag
7726 case $reload_flag in
7727 "" | " "*) ;;
7728 *) reload_flag=" $reload_flag" ;;
7729 esac
7730 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7731 case $host_os in
7732 darwin*)
7733 if test "$GCC" = yes; then
7734 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7735 else
7736 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7737 fi
7738 ;;
7739 esac
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749 if test -n "$ac_tool_prefix"; then
7750 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7751 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7753 $as_echo_n "checking for $ac_word... " >&6; }
7754 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7755 $as_echo_n "(cached) " >&6
7756 else
7757 if test -n "$OBJDUMP"; then
7758 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7759 else
7760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761 for as_dir in $PATH
7762 do
7763 IFS=$as_save_IFS
7764 test -z "$as_dir" && as_dir=.
7765 for ac_exec_ext in '' $ac_executable_extensions; do
7766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7767 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7769 break 2
7770 fi
7771 done
7772 done
7773 IFS=$as_save_IFS
7774
7775 fi
7776 fi
7777 OBJDUMP=$ac_cv_prog_OBJDUMP
7778 if test -n "$OBJDUMP"; then
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7780 $as_echo "$OBJDUMP" >&6; }
7781 else
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783 $as_echo "no" >&6; }
7784 fi
7785
7786
7787 fi
7788 if test -z "$ac_cv_prog_OBJDUMP"; then
7789 ac_ct_OBJDUMP=$OBJDUMP
7790 # Extract the first word of "objdump", so it can be a program name with args.
7791 set dummy objdump; ac_word=$2
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7793 $as_echo_n "checking for $ac_word... " >&6; }
7794 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7795 $as_echo_n "(cached) " >&6
7796 else
7797 if test -n "$ac_ct_OBJDUMP"; then
7798 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7799 else
7800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801 for as_dir in $PATH
7802 do
7803 IFS=$as_save_IFS
7804 test -z "$as_dir" && as_dir=.
7805 for ac_exec_ext in '' $ac_executable_extensions; do
7806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7807 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7809 break 2
7810 fi
7811 done
7812 done
7813 IFS=$as_save_IFS
7814
7815 fi
7816 fi
7817 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7818 if test -n "$ac_ct_OBJDUMP"; then
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7820 $as_echo "$ac_ct_OBJDUMP" >&6; }
7821 else
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823 $as_echo "no" >&6; }
7824 fi
7825
7826 if test "x$ac_ct_OBJDUMP" = x; then
7827 OBJDUMP="false"
7828 else
7829 case $cross_compiling:$ac_tool_warned in
7830 yes:)
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7833 ac_tool_warned=yes ;;
7834 esac
7835 OBJDUMP=$ac_ct_OBJDUMP
7836 fi
7837 else
7838 OBJDUMP="$ac_cv_prog_OBJDUMP"
7839 fi
7840
7841 test -z "$OBJDUMP" && OBJDUMP=objdump
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7852 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7853 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7854 $as_echo_n "(cached) " >&6
7855 else
7856 lt_cv_file_magic_cmd='$MAGIC_CMD'
7857 lt_cv_file_magic_test_file=
7858 lt_cv_deplibs_check_method='unknown'
7859 # Need to set the preceding variable on all platforms that support
7860 # interlibrary dependencies.
7861 # 'none' -- dependencies not supported.
7862 # `unknown' -- same as none, but documents that we really don't know.
7863 # 'pass_all' -- all dependencies passed with no checks.
7864 # 'test_compile' -- check by making test program.
7865 # 'file_magic [[regex]]' -- check by looking for files in library path
7866 # which responds to the $file_magic_cmd with a given extended regex.
7867 # If you have `file' or equivalent on your system and you're not sure
7868 # whether `pass_all' will *always* work, you probably want this one.
7869
7870 case $host_os in
7871 aix[4-9]*)
7872 lt_cv_deplibs_check_method=pass_all
7873 ;;
7874
7875 beos*)
7876 lt_cv_deplibs_check_method=pass_all
7877 ;;
7878
7879 bsdi[45]*)
7880 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7881 lt_cv_file_magic_cmd='/usr/bin/file -L'
7882 lt_cv_file_magic_test_file=/shlib/libc.so
7883 ;;
7884
7885 cygwin*)
7886 # func_win32_libid is a shell function defined in ltmain.sh
7887 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7888 lt_cv_file_magic_cmd='func_win32_libid'
7889 ;;
7890
7891 mingw* | pw32*)
7892 # Base MSYS/MinGW do not provide the 'file' command needed by
7893 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7894 # unless we find 'file', for example because we are cross-compiling.
7895 if ( file / ) >/dev/null 2>&1; then
7896 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7897 lt_cv_file_magic_cmd='func_win32_libid'
7898 else
7899 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7900 lt_cv_file_magic_cmd='$OBJDUMP -f'
7901 fi
7902 ;;
7903
7904 cegcc)
7905 # use the weaker test based on 'objdump'. See mingw*.
7906 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7907 lt_cv_file_magic_cmd='$OBJDUMP -f'
7908 ;;
7909
7910 darwin* | rhapsody*)
7911 lt_cv_deplibs_check_method=pass_all
7912 ;;
7913
7914 freebsd* | dragonfly*)
7915 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7916 case $host_cpu in
7917 i*86 )
7918 # Not sure whether the presence of OpenBSD here was a mistake.
7919 # Let's accept both of them until this is cleared up.
7920 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7921 lt_cv_file_magic_cmd=/usr/bin/file
7922 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7923 ;;
7924 esac
7925 else
7926 lt_cv_deplibs_check_method=pass_all
7927 fi
7928 ;;
7929
7930 gnu*)
7931 lt_cv_deplibs_check_method=pass_all
7932 ;;
7933
7934 hpux10.20* | hpux11*)
7935 lt_cv_file_magic_cmd=/usr/bin/file
7936 case $host_cpu in
7937 ia64*)
7938 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7939 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7940 ;;
7941 hppa*64*)
7942 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
7943 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7944 ;;
7945 *)
7946 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7947 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7948 ;;
7949 esac
7950 ;;
7951
7952 interix[3-9]*)
7953 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7954 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7955 ;;
7956
7957 irix5* | irix6* | nonstopux*)
7958 case $LD in
7959 *-32|*"-32 ") libmagic=32-bit;;
7960 *-n32|*"-n32 ") libmagic=N32;;
7961 *-64|*"-64 ") libmagic=64-bit;;
7962 *) libmagic=never-match;;
7963 esac
7964 lt_cv_deplibs_check_method=pass_all
7965 ;;
7966
7967 # This must be Linux ELF.
7968 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7969 lt_cv_deplibs_check_method=pass_all
7970 ;;
7971
7972 netbsd*)
7973 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7974 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7975 else
7976 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7977 fi
7978 ;;
7979
7980 newos6*)
7981 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7982 lt_cv_file_magic_cmd=/usr/bin/file
7983 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7984 ;;
7985
7986 *nto* | *qnx*)
7987 lt_cv_deplibs_check_method=pass_all
7988 ;;
7989
7990 openbsd*)
7991 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7992 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7993 else
7994 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7995 fi
7996 ;;
7997
7998 osf3* | osf4* | osf5*)
7999 lt_cv_deplibs_check_method=pass_all
8000 ;;
8001
8002 rdos*)
8003 lt_cv_deplibs_check_method=pass_all
8004 ;;
8005
8006 solaris*)
8007 lt_cv_deplibs_check_method=pass_all
8008 ;;
8009
8010 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8011 lt_cv_deplibs_check_method=pass_all
8012 ;;
8013
8014 sysv4 | sysv4.3*)
8015 case $host_vendor in
8016 motorola)
8017 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]'
8018 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8019 ;;
8020 ncr)
8021 lt_cv_deplibs_check_method=pass_all
8022 ;;
8023 sequent)
8024 lt_cv_file_magic_cmd='/bin/file'
8025 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8026 ;;
8027 sni)
8028 lt_cv_file_magic_cmd='/bin/file'
8029 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8030 lt_cv_file_magic_test_file=/lib/libc.so
8031 ;;
8032 siemens)
8033 lt_cv_deplibs_check_method=pass_all
8034 ;;
8035 pc)
8036 lt_cv_deplibs_check_method=pass_all
8037 ;;
8038 esac
8039 ;;
8040
8041 tpf*)
8042 lt_cv_deplibs_check_method=pass_all
8043 ;;
8044 esac
8045
8046 fi
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8048 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8049 file_magic_cmd=$lt_cv_file_magic_cmd
8050 deplibs_check_method=$lt_cv_deplibs_check_method
8051 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064 if test -n "$ac_tool_prefix"; then
8065 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8066 set dummy ${ac_tool_prefix}ar; ac_word=$2
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8068 $as_echo_n "checking for $ac_word... " >&6; }
8069 if test "${ac_cv_prog_AR+set}" = set; then :
8070 $as_echo_n "(cached) " >&6
8071 else
8072 if test -n "$AR"; then
8073 ac_cv_prog_AR="$AR" # Let the user override the test.
8074 else
8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076 for as_dir in $PATH
8077 do
8078 IFS=$as_save_IFS
8079 test -z "$as_dir" && as_dir=.
8080 for ac_exec_ext in '' $ac_executable_extensions; do
8081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8082 ac_cv_prog_AR="${ac_tool_prefix}ar"
8083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8084 break 2
8085 fi
8086 done
8087 done
8088 IFS=$as_save_IFS
8089
8090 fi
8091 fi
8092 AR=$ac_cv_prog_AR
8093 if test -n "$AR"; then
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8095 $as_echo "$AR" >&6; }
8096 else
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8098 $as_echo "no" >&6; }
8099 fi
8100
8101
8102 fi
8103 if test -z "$ac_cv_prog_AR"; then
8104 ac_ct_AR=$AR
8105 # Extract the first word of "ar", so it can be a program name with args.
8106 set dummy ar; ac_word=$2
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8108 $as_echo_n "checking for $ac_word... " >&6; }
8109 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8110 $as_echo_n "(cached) " >&6
8111 else
8112 if test -n "$ac_ct_AR"; then
8113 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8114 else
8115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116 for as_dir in $PATH
8117 do
8118 IFS=$as_save_IFS
8119 test -z "$as_dir" && as_dir=.
8120 for ac_exec_ext in '' $ac_executable_extensions; do
8121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8122 ac_cv_prog_ac_ct_AR="ar"
8123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8124 break 2
8125 fi
8126 done
8127 done
8128 IFS=$as_save_IFS
8129
8130 fi
8131 fi
8132 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8133 if test -n "$ac_ct_AR"; then
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8135 $as_echo "$ac_ct_AR" >&6; }
8136 else
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8138 $as_echo "no" >&6; }
8139 fi
8140
8141 if test "x$ac_ct_AR" = x; then
8142 AR="false"
8143 else
8144 case $cross_compiling:$ac_tool_warned in
8145 yes:)
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8148 ac_tool_warned=yes ;;
8149 esac
8150 AR=$ac_ct_AR
8151 fi
8152 else
8153 AR="$ac_cv_prog_AR"
8154 fi
8155
8156 test -z "$AR" && AR=ar
8157 test -z "$AR_FLAGS" && AR_FLAGS=cru
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169 if test -n "$ac_tool_prefix"; then
8170 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8171 set dummy ${ac_tool_prefix}strip; ac_word=$2
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8173 $as_echo_n "checking for $ac_word... " >&6; }
8174 if test "${ac_cv_prog_STRIP+set}" = set; then :
8175 $as_echo_n "(cached) " >&6
8176 else
8177 if test -n "$STRIP"; then
8178 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8179 else
8180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8181 for as_dir in $PATH
8182 do
8183 IFS=$as_save_IFS
8184 test -z "$as_dir" && as_dir=.
8185 for ac_exec_ext in '' $ac_executable_extensions; do
8186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8187 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8189 break 2
8190 fi
8191 done
8192 done
8193 IFS=$as_save_IFS
8194
8195 fi
8196 fi
8197 STRIP=$ac_cv_prog_STRIP
8198 if test -n "$STRIP"; then
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8200 $as_echo "$STRIP" >&6; }
8201 else
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8203 $as_echo "no" >&6; }
8204 fi
8205
8206
8207 fi
8208 if test -z "$ac_cv_prog_STRIP"; then
8209 ac_ct_STRIP=$STRIP
8210 # Extract the first word of "strip", so it can be a program name with args.
8211 set dummy strip; ac_word=$2
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8213 $as_echo_n "checking for $ac_word... " >&6; }
8214 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8215 $as_echo_n "(cached) " >&6
8216 else
8217 if test -n "$ac_ct_STRIP"; then
8218 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8219 else
8220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221 for as_dir in $PATH
8222 do
8223 IFS=$as_save_IFS
8224 test -z "$as_dir" && as_dir=.
8225 for ac_exec_ext in '' $ac_executable_extensions; do
8226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8227 ac_cv_prog_ac_ct_STRIP="strip"
8228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8229 break 2
8230 fi
8231 done
8232 done
8233 IFS=$as_save_IFS
8234
8235 fi
8236 fi
8237 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8238 if test -n "$ac_ct_STRIP"; then
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8240 $as_echo "$ac_ct_STRIP" >&6; }
8241 else
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8243 $as_echo "no" >&6; }
8244 fi
8245
8246 if test "x$ac_ct_STRIP" = x; then
8247 STRIP=":"
8248 else
8249 case $cross_compiling:$ac_tool_warned in
8250 yes:)
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8253 ac_tool_warned=yes ;;
8254 esac
8255 STRIP=$ac_ct_STRIP
8256 fi
8257 else
8258 STRIP="$ac_cv_prog_STRIP"
8259 fi
8260
8261 test -z "$STRIP" && STRIP=:
8262
8263
8264
8265
8266
8267
8268 if test -n "$ac_tool_prefix"; then
8269 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8270 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8272 $as_echo_n "checking for $ac_word... " >&6; }
8273 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8274 $as_echo_n "(cached) " >&6
8275 else
8276 if test -n "$RANLIB"; then
8277 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8278 else
8279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8280 for as_dir in $PATH
8281 do
8282 IFS=$as_save_IFS
8283 test -z "$as_dir" && as_dir=.
8284 for ac_exec_ext in '' $ac_executable_extensions; do
8285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8286 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8288 break 2
8289 fi
8290 done
8291 done
8292 IFS=$as_save_IFS
8293
8294 fi
8295 fi
8296 RANLIB=$ac_cv_prog_RANLIB
8297 if test -n "$RANLIB"; then
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8299 $as_echo "$RANLIB" >&6; }
8300 else
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8302 $as_echo "no" >&6; }
8303 fi
8304
8305
8306 fi
8307 if test -z "$ac_cv_prog_RANLIB"; then
8308 ac_ct_RANLIB=$RANLIB
8309 # Extract the first word of "ranlib", so it can be a program name with args.
8310 set dummy ranlib; ac_word=$2
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8312 $as_echo_n "checking for $ac_word... " >&6; }
8313 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8314 $as_echo_n "(cached) " >&6
8315 else
8316 if test -n "$ac_ct_RANLIB"; then
8317 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8318 else
8319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8320 for as_dir in $PATH
8321 do
8322 IFS=$as_save_IFS
8323 test -z "$as_dir" && as_dir=.
8324 for ac_exec_ext in '' $ac_executable_extensions; do
8325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8326 ac_cv_prog_ac_ct_RANLIB="ranlib"
8327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8328 break 2
8329 fi
8330 done
8331 done
8332 IFS=$as_save_IFS
8333
8334 fi
8335 fi
8336 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8337 if test -n "$ac_ct_RANLIB"; then
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8339 $as_echo "$ac_ct_RANLIB" >&6; }
8340 else
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8342 $as_echo "no" >&6; }
8343 fi
8344
8345 if test "x$ac_ct_RANLIB" = x; then
8346 RANLIB=":"
8347 else
8348 case $cross_compiling:$ac_tool_warned in
8349 yes:)
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8352 ac_tool_warned=yes ;;
8353 esac
8354 RANLIB=$ac_ct_RANLIB
8355 fi
8356 else
8357 RANLIB="$ac_cv_prog_RANLIB"
8358 fi
8359
8360 test -z "$RANLIB" && RANLIB=:
8361
8362
8363
8364
8365
8366
8367 # Determine commands to create old-style static archives.
8368 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8369 old_postinstall_cmds='chmod 644 $oldlib'
8370 old_postuninstall_cmds=
8371
8372 if test -n "$RANLIB"; then
8373 case $host_os in
8374 openbsd*)
8375 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8376 ;;
8377 *)
8378 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8379 ;;
8380 esac
8381 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8382 fi
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417 # If no C compiler was specified, use CC.
8418 LTCC=${LTCC-"$CC"}
8419
8420 # If no C compiler flags were specified, use CFLAGS.
8421 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8422
8423 # Allow CC to be a program name with arguments.
8424 compiler=$CC
8425
8426
8427 # Check for command to grab the raw symbol name followed by C symbol from nm.
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8429 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8430 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8431 $as_echo_n "(cached) " >&6
8432 else
8433
8434 # These are sane defaults that work on at least a few old systems.
8435 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8436
8437 # Character class describing NM global symbol codes.
8438 symcode='[BCDEGRST]'
8439
8440 # Regexp to match symbols that can be accessed directly from C.
8441 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8442
8443 # Define system-specific variables.
8444 case $host_os in
8445 aix*)
8446 symcode='[BCDT]'
8447 ;;
8448 cygwin* | mingw* | pw32* | cegcc*)
8449 symcode='[ABCDGISTW]'
8450 ;;
8451 hpux*)
8452 if test "$host_cpu" = ia64; then
8453 symcode='[ABCDEGRST]'
8454 fi
8455 ;;
8456 irix* | nonstopux*)
8457 symcode='[BCDEGRST]'
8458 ;;
8459 osf*)
8460 symcode='[BCDEGQRST]'
8461 ;;
8462 solaris*)
8463 symcode='[BDRT]'
8464 ;;
8465 sco3.2v5*)
8466 symcode='[DT]'
8467 ;;
8468 sysv4.2uw2*)
8469 symcode='[DT]'
8470 ;;
8471 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8472 symcode='[ABDT]'
8473 ;;
8474 sysv4)
8475 symcode='[DFNSTU]'
8476 ;;
8477 esac
8478
8479 # If we're using GNU nm, then use its standard symbol codes.
8480 case `$NM -V 2>&1` in
8481 *GNU* | *'with BFD'*)
8482 symcode='[ABCDGIRSTW]' ;;
8483 esac
8484
8485 # Transform an extracted symbol line into a proper C declaration.
8486 # Some systems (esp. on ia64) link data and code symbols differently,
8487 # so use this general approach.
8488 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8489
8490 # Transform an extracted symbol line into symbol name and symbol address
8491 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8492 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'"
8493
8494 # Handle CRLF in mingw tool chain
8495 opt_cr=
8496 case $build_os in
8497 mingw*)
8498 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8499 ;;
8500 esac
8501
8502 # Try without a prefix underscore, then with it.
8503 for ac_symprfx in "" "_"; do
8504
8505 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8506 symxfrm="\\1 $ac_symprfx\\2 \\2"
8507
8508 # Write the raw and C identifiers.
8509 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8510 # Fake it for dumpbin and say T for any non-static function
8511 # and D for any global variable.
8512 # Also find C++ and __fastcall symbols from MSVC++,
8513 # which start with @ or ?.
8514 lt_cv_sys_global_symbol_pipe="$AWK '"\
8515 " {last_section=section; section=\$ 3};"\
8516 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8517 " \$ 0!~/External *\|/{next};"\
8518 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8519 " {if(hide[section]) next};"\
8520 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8521 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8522 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8523 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8524 " ' prfx=^$ac_symprfx"
8525 else
8526 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8527 fi
8528
8529 # Check to see that the pipe works correctly.
8530 pipe_works=no
8531
8532 rm -f conftest*
8533 cat > conftest.$ac_ext <<_LT_EOF
8534 #ifdef __cplusplus
8535 extern "C" {
8536 #endif
8537 char nm_test_var;
8538 void nm_test_func(void);
8539 void nm_test_func(void){}
8540 #ifdef __cplusplus
8541 }
8542 #endif
8543 int main(){nm_test_var='a';nm_test_func();return(0);}
8544 _LT_EOF
8545
8546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8547 (eval $ac_compile) 2>&5
8548 ac_status=$?
8549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8550 test $ac_status = 0; }; then
8551 # Now try to grab the symbols.
8552 nlist=conftest.nm
8553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
8554 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8555 ac_status=$?
8556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8557 test $ac_status = 0; } && test -s "$nlist"; then
8558 # Try sorting and uniquifying the output.
8559 if sort "$nlist" | uniq > "$nlist"T; then
8560 mv -f "$nlist"T "$nlist"
8561 else
8562 rm -f "$nlist"T
8563 fi
8564
8565 # Make sure that we snagged all the symbols we need.
8566 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8567 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8568 cat <<_LT_EOF > conftest.$ac_ext
8569 #ifdef __cplusplus
8570 extern "C" {
8571 #endif
8572
8573 _LT_EOF
8574 # Now generate the symbol file.
8575 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8576
8577 cat <<_LT_EOF >> conftest.$ac_ext
8578
8579 /* The mapping between symbol names and symbols. */
8580 const struct {
8581 const char *name;
8582 void *address;
8583 }
8584 lt__PROGRAM__LTX_preloaded_symbols[] =
8585 {
8586 { "@PROGRAM@", (void *) 0 },
8587 _LT_EOF
8588 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8589 cat <<\_LT_EOF >> conftest.$ac_ext
8590 {0, (void *) 0}
8591 };
8592
8593 /* This works around a problem in FreeBSD linker */
8594 #ifdef FREEBSD_WORKAROUND
8595 static const void *lt_preloaded_setup() {
8596 return lt__PROGRAM__LTX_preloaded_symbols;
8597 }
8598 #endif
8599
8600 #ifdef __cplusplus
8601 }
8602 #endif
8603 _LT_EOF
8604 # Now try linking the two files.
8605 mv conftest.$ac_objext conftstm.$ac_objext
8606 lt_save_LIBS="$LIBS"
8607 lt_save_CFLAGS="$CFLAGS"
8608 LIBS="conftstm.$ac_objext"
8609 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8610 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8611 (eval $ac_link) 2>&5
8612 ac_status=$?
8613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8614 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8615 pipe_works=yes
8616 fi
8617 LIBS="$lt_save_LIBS"
8618 CFLAGS="$lt_save_CFLAGS"
8619 else
8620 echo "cannot find nm_test_func in $nlist" >&5
8621 fi
8622 else
8623 echo "cannot find nm_test_var in $nlist" >&5
8624 fi
8625 else
8626 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8627 fi
8628 else
8629 echo "$progname: failed program was:" >&5
8630 cat conftest.$ac_ext >&5
8631 fi
8632 rm -rf conftest* conftst*
8633
8634 # Do not use the global_symbol_pipe unless it works.
8635 if test "$pipe_works" = yes; then
8636 break
8637 else
8638 lt_cv_sys_global_symbol_pipe=
8639 fi
8640 done
8641
8642 fi
8643
8644 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8645 lt_cv_sys_global_symbol_to_cdecl=
8646 fi
8647 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8649 $as_echo "failed" >&6; }
8650 else
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8652 $as_echo "ok" >&6; }
8653 fi
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677 # Check whether --enable-libtool-lock was given.
8678 if test "${enable_libtool_lock+set}" = set; then :
8679 enableval=$enable_libtool_lock;
8680 fi
8681
8682 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8683
8684 # Some flags need to be propagated to the compiler or linker for good
8685 # libtool support.
8686 case $host in
8687 ia64-*-hpux*)
8688 # Find out which ABI we are using.
8689 echo 'int i;' > conftest.$ac_ext
8690 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8691 (eval $ac_compile) 2>&5
8692 ac_status=$?
8693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8694 test $ac_status = 0; }; then
8695 case `/usr/bin/file conftest.$ac_objext` in
8696 *ELF-32*)
8697 HPUX_IA64_MODE="32"
8698 ;;
8699 *ELF-64*)
8700 HPUX_IA64_MODE="64"
8701 ;;
8702 esac
8703 fi
8704 rm -rf conftest*
8705 ;;
8706 *-*-irix6*)
8707 # Find out which ABI we are using.
8708 echo '#line 8708 "configure"' > conftest.$ac_ext
8709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8710 (eval $ac_compile) 2>&5
8711 ac_status=$?
8712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8713 test $ac_status = 0; }; then
8714 if test "$lt_cv_prog_gnu_ld" = yes; then
8715 case `/usr/bin/file conftest.$ac_objext` in
8716 *32-bit*)
8717 LD="${LD-ld} -melf32bsmip"
8718 ;;
8719 *N32*)
8720 LD="${LD-ld} -melf32bmipn32"
8721 ;;
8722 *64-bit*)
8723 LD="${LD-ld} -melf64bmip"
8724 ;;
8725 esac
8726 else
8727 case `/usr/bin/file conftest.$ac_objext` in
8728 *32-bit*)
8729 LD="${LD-ld} -32"
8730 ;;
8731 *N32*)
8732 LD="${LD-ld} -n32"
8733 ;;
8734 *64-bit*)
8735 LD="${LD-ld} -64"
8736 ;;
8737 esac
8738 fi
8739 fi
8740 rm -rf conftest*
8741 ;;
8742
8743 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8744 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8745 # Find out which ABI we are using.
8746 echo 'int i;' > conftest.$ac_ext
8747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8748 (eval $ac_compile) 2>&5
8749 ac_status=$?
8750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8751 test $ac_status = 0; }; then
8752 case `/usr/bin/file conftest.o` in
8753 *32-bit*)
8754 case $host in
8755 x86_64-*kfreebsd*-gnu)
8756 LD="${LD-ld} -m elf_i386_fbsd"
8757 ;;
8758 x86_64-*linux*)
8759 LD="${LD-ld} -m elf_i386"
8760 ;;
8761 ppc64-*linux*|powerpc64-*linux*)
8762 LD="${LD-ld} -m elf32ppclinux"
8763 ;;
8764 s390x-*linux*)
8765 LD="${LD-ld} -m elf_s390"
8766 ;;
8767 sparc64-*linux*)
8768 LD="${LD-ld} -m elf32_sparc"
8769 ;;
8770 esac
8771 ;;
8772 *64-bit*)
8773 case $host in
8774 x86_64-*kfreebsd*-gnu)
8775 LD="${LD-ld} -m elf_x86_64_fbsd"
8776 ;;
8777 x86_64-*linux*)
8778 LD="${LD-ld} -m elf_x86_64"
8779 ;;
8780 ppc*-*linux*|powerpc*-*linux*)
8781 LD="${LD-ld} -m elf64ppc"
8782 ;;
8783 s390*-*linux*|s390*-*tpf*)
8784 LD="${LD-ld} -m elf64_s390"
8785 ;;
8786 sparc*-*linux*)
8787 LD="${LD-ld} -m elf64_sparc"
8788 ;;
8789 esac
8790 ;;
8791 esac
8792 fi
8793 rm -rf conftest*
8794 ;;
8795
8796 *-*-sco3.2v5*)
8797 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8798 SAVE_CFLAGS="$CFLAGS"
8799 CFLAGS="$CFLAGS -belf"
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8801 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8802 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8803 $as_echo_n "(cached) " >&6
8804 else
8805 ac_ext=c
8806 ac_cpp='$CPP $CPPFLAGS'
8807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8810
8811 if test x$gcc_no_link = xyes; then
8812 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8813 fi
8814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8815 /* end confdefs.h. */
8816
8817 int
8818 main ()
8819 {
8820
8821 ;
8822 return 0;
8823 }
8824 _ACEOF
8825 if ac_fn_c_try_link "$LINENO"; then :
8826 lt_cv_cc_needs_belf=yes
8827 else
8828 lt_cv_cc_needs_belf=no
8829 fi
8830 rm -f core conftest.err conftest.$ac_objext \
8831 conftest$ac_exeext conftest.$ac_ext
8832 ac_ext=c
8833 ac_cpp='$CPP $CPPFLAGS'
8834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8837
8838 fi
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8840 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8841 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8842 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8843 CFLAGS="$SAVE_CFLAGS"
8844 fi
8845 ;;
8846 sparc*-*solaris*)
8847 # Find out which ABI we are using.
8848 echo 'int i;' > conftest.$ac_ext
8849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8850 (eval $ac_compile) 2>&5
8851 ac_status=$?
8852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8853 test $ac_status = 0; }; then
8854 case `/usr/bin/file conftest.o` in
8855 *64-bit*)
8856 case $lt_cv_prog_gnu_ld in
8857 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8858 *)
8859 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8860 LD="${LD-ld} -64"
8861 fi
8862 ;;
8863 esac
8864 ;;
8865 esac
8866 fi
8867 rm -rf conftest*
8868 ;;
8869 esac
8870
8871 need_locks="$enable_libtool_lock"
8872
8873
8874 case $host_os in
8875 rhapsody* | darwin*)
8876 if test -n "$ac_tool_prefix"; then
8877 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8878 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8880 $as_echo_n "checking for $ac_word... " >&6; }
8881 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8882 $as_echo_n "(cached) " >&6
8883 else
8884 if test -n "$DSYMUTIL"; then
8885 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8886 else
8887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8888 for as_dir in $PATH
8889 do
8890 IFS=$as_save_IFS
8891 test -z "$as_dir" && as_dir=.
8892 for ac_exec_ext in '' $ac_executable_extensions; do
8893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8894 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8896 break 2
8897 fi
8898 done
8899 done
8900 IFS=$as_save_IFS
8901
8902 fi
8903 fi
8904 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8905 if test -n "$DSYMUTIL"; then
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8907 $as_echo "$DSYMUTIL" >&6; }
8908 else
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8910 $as_echo "no" >&6; }
8911 fi
8912
8913
8914 fi
8915 if test -z "$ac_cv_prog_DSYMUTIL"; then
8916 ac_ct_DSYMUTIL=$DSYMUTIL
8917 # Extract the first word of "dsymutil", so it can be a program name with args.
8918 set dummy dsymutil; ac_word=$2
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8920 $as_echo_n "checking for $ac_word... " >&6; }
8921 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8922 $as_echo_n "(cached) " >&6
8923 else
8924 if test -n "$ac_ct_DSYMUTIL"; then
8925 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8926 else
8927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8928 for as_dir in $PATH
8929 do
8930 IFS=$as_save_IFS
8931 test -z "$as_dir" && as_dir=.
8932 for ac_exec_ext in '' $ac_executable_extensions; do
8933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8934 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8936 break 2
8937 fi
8938 done
8939 done
8940 IFS=$as_save_IFS
8941
8942 fi
8943 fi
8944 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8945 if test -n "$ac_ct_DSYMUTIL"; then
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8947 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8948 else
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8950 $as_echo "no" >&6; }
8951 fi
8952
8953 if test "x$ac_ct_DSYMUTIL" = x; then
8954 DSYMUTIL=":"
8955 else
8956 case $cross_compiling:$ac_tool_warned in
8957 yes:)
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8960 ac_tool_warned=yes ;;
8961 esac
8962 DSYMUTIL=$ac_ct_DSYMUTIL
8963 fi
8964 else
8965 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8966 fi
8967
8968 if test -n "$ac_tool_prefix"; then
8969 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8970 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8972 $as_echo_n "checking for $ac_word... " >&6; }
8973 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8974 $as_echo_n "(cached) " >&6
8975 else
8976 if test -n "$NMEDIT"; then
8977 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8978 else
8979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8980 for as_dir in $PATH
8981 do
8982 IFS=$as_save_IFS
8983 test -z "$as_dir" && as_dir=.
8984 for ac_exec_ext in '' $ac_executable_extensions; do
8985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8986 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8988 break 2
8989 fi
8990 done
8991 done
8992 IFS=$as_save_IFS
8993
8994 fi
8995 fi
8996 NMEDIT=$ac_cv_prog_NMEDIT
8997 if test -n "$NMEDIT"; then
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8999 $as_echo "$NMEDIT" >&6; }
9000 else
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9002 $as_echo "no" >&6; }
9003 fi
9004
9005
9006 fi
9007 if test -z "$ac_cv_prog_NMEDIT"; then
9008 ac_ct_NMEDIT=$NMEDIT
9009 # Extract the first word of "nmedit", so it can be a program name with args.
9010 set dummy nmedit; ac_word=$2
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9012 $as_echo_n "checking for $ac_word... " >&6; }
9013 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9014 $as_echo_n "(cached) " >&6
9015 else
9016 if test -n "$ac_ct_NMEDIT"; then
9017 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9018 else
9019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9020 for as_dir in $PATH
9021 do
9022 IFS=$as_save_IFS
9023 test -z "$as_dir" && as_dir=.
9024 for ac_exec_ext in '' $ac_executable_extensions; do
9025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9026 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9028 break 2
9029 fi
9030 done
9031 done
9032 IFS=$as_save_IFS
9033
9034 fi
9035 fi
9036 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9037 if test -n "$ac_ct_NMEDIT"; then
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9039 $as_echo "$ac_ct_NMEDIT" >&6; }
9040 else
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9042 $as_echo "no" >&6; }
9043 fi
9044
9045 if test "x$ac_ct_NMEDIT" = x; then
9046 NMEDIT=":"
9047 else
9048 case $cross_compiling:$ac_tool_warned in
9049 yes:)
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9052 ac_tool_warned=yes ;;
9053 esac
9054 NMEDIT=$ac_ct_NMEDIT
9055 fi
9056 else
9057 NMEDIT="$ac_cv_prog_NMEDIT"
9058 fi
9059
9060 if test -n "$ac_tool_prefix"; then
9061 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9062 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9064 $as_echo_n "checking for $ac_word... " >&6; }
9065 if test "${ac_cv_prog_LIPO+set}" = set; then :
9066 $as_echo_n "(cached) " >&6
9067 else
9068 if test -n "$LIPO"; then
9069 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9070 else
9071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9072 for as_dir in $PATH
9073 do
9074 IFS=$as_save_IFS
9075 test -z "$as_dir" && as_dir=.
9076 for ac_exec_ext in '' $ac_executable_extensions; do
9077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9078 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9080 break 2
9081 fi
9082 done
9083 done
9084 IFS=$as_save_IFS
9085
9086 fi
9087 fi
9088 LIPO=$ac_cv_prog_LIPO
9089 if test -n "$LIPO"; then
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9091 $as_echo "$LIPO" >&6; }
9092 else
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9094 $as_echo "no" >&6; }
9095 fi
9096
9097
9098 fi
9099 if test -z "$ac_cv_prog_LIPO"; then
9100 ac_ct_LIPO=$LIPO
9101 # Extract the first word of "lipo", so it can be a program name with args.
9102 set dummy lipo; ac_word=$2
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9104 $as_echo_n "checking for $ac_word... " >&6; }
9105 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9106 $as_echo_n "(cached) " >&6
9107 else
9108 if test -n "$ac_ct_LIPO"; then
9109 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9110 else
9111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9112 for as_dir in $PATH
9113 do
9114 IFS=$as_save_IFS
9115 test -z "$as_dir" && as_dir=.
9116 for ac_exec_ext in '' $ac_executable_extensions; do
9117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9118 ac_cv_prog_ac_ct_LIPO="lipo"
9119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9120 break 2
9121 fi
9122 done
9123 done
9124 IFS=$as_save_IFS
9125
9126 fi
9127 fi
9128 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9129 if test -n "$ac_ct_LIPO"; then
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9131 $as_echo "$ac_ct_LIPO" >&6; }
9132 else
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9134 $as_echo "no" >&6; }
9135 fi
9136
9137 if test "x$ac_ct_LIPO" = x; then
9138 LIPO=":"
9139 else
9140 case $cross_compiling:$ac_tool_warned in
9141 yes:)
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9144 ac_tool_warned=yes ;;
9145 esac
9146 LIPO=$ac_ct_LIPO
9147 fi
9148 else
9149 LIPO="$ac_cv_prog_LIPO"
9150 fi
9151
9152 if test -n "$ac_tool_prefix"; then
9153 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9154 set dummy ${ac_tool_prefix}otool; ac_word=$2
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9156 $as_echo_n "checking for $ac_word... " >&6; }
9157 if test "${ac_cv_prog_OTOOL+set}" = set; then :
9158 $as_echo_n "(cached) " >&6
9159 else
9160 if test -n "$OTOOL"; then
9161 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9162 else
9163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9164 for as_dir in $PATH
9165 do
9166 IFS=$as_save_IFS
9167 test -z "$as_dir" && as_dir=.
9168 for ac_exec_ext in '' $ac_executable_extensions; do
9169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9170 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9172 break 2
9173 fi
9174 done
9175 done
9176 IFS=$as_save_IFS
9177
9178 fi
9179 fi
9180 OTOOL=$ac_cv_prog_OTOOL
9181 if test -n "$OTOOL"; then
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9183 $as_echo "$OTOOL" >&6; }
9184 else
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9186 $as_echo "no" >&6; }
9187 fi
9188
9189
9190 fi
9191 if test -z "$ac_cv_prog_OTOOL"; then
9192 ac_ct_OTOOL=$OTOOL
9193 # Extract the first word of "otool", so it can be a program name with args.
9194 set dummy otool; ac_word=$2
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9196 $as_echo_n "checking for $ac_word... " >&6; }
9197 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9198 $as_echo_n "(cached) " >&6
9199 else
9200 if test -n "$ac_ct_OTOOL"; then
9201 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9202 else
9203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9204 for as_dir in $PATH
9205 do
9206 IFS=$as_save_IFS
9207 test -z "$as_dir" && as_dir=.
9208 for ac_exec_ext in '' $ac_executable_extensions; do
9209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9210 ac_cv_prog_ac_ct_OTOOL="otool"
9211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9212 break 2
9213 fi
9214 done
9215 done
9216 IFS=$as_save_IFS
9217
9218 fi
9219 fi
9220 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9221 if test -n "$ac_ct_OTOOL"; then
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9223 $as_echo "$ac_ct_OTOOL" >&6; }
9224 else
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9226 $as_echo "no" >&6; }
9227 fi
9228
9229 if test "x$ac_ct_OTOOL" = x; then
9230 OTOOL=":"
9231 else
9232 case $cross_compiling:$ac_tool_warned in
9233 yes:)
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9236 ac_tool_warned=yes ;;
9237 esac
9238 OTOOL=$ac_ct_OTOOL
9239 fi
9240 else
9241 OTOOL="$ac_cv_prog_OTOOL"
9242 fi
9243
9244 if test -n "$ac_tool_prefix"; then
9245 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9246 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9248 $as_echo_n "checking for $ac_word... " >&6; }
9249 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9250 $as_echo_n "(cached) " >&6
9251 else
9252 if test -n "$OTOOL64"; then
9253 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9254 else
9255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9256 for as_dir in $PATH
9257 do
9258 IFS=$as_save_IFS
9259 test -z "$as_dir" && as_dir=.
9260 for ac_exec_ext in '' $ac_executable_extensions; do
9261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9262 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9264 break 2
9265 fi
9266 done
9267 done
9268 IFS=$as_save_IFS
9269
9270 fi
9271 fi
9272 OTOOL64=$ac_cv_prog_OTOOL64
9273 if test -n "$OTOOL64"; then
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9275 $as_echo "$OTOOL64" >&6; }
9276 else
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9278 $as_echo "no" >&6; }
9279 fi
9280
9281
9282 fi
9283 if test -z "$ac_cv_prog_OTOOL64"; then
9284 ac_ct_OTOOL64=$OTOOL64
9285 # Extract the first word of "otool64", so it can be a program name with args.
9286 set dummy otool64; ac_word=$2
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9288 $as_echo_n "checking for $ac_word... " >&6; }
9289 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9290 $as_echo_n "(cached) " >&6
9291 else
9292 if test -n "$ac_ct_OTOOL64"; then
9293 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9294 else
9295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9296 for as_dir in $PATH
9297 do
9298 IFS=$as_save_IFS
9299 test -z "$as_dir" && as_dir=.
9300 for ac_exec_ext in '' $ac_executable_extensions; do
9301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9302 ac_cv_prog_ac_ct_OTOOL64="otool64"
9303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9304 break 2
9305 fi
9306 done
9307 done
9308 IFS=$as_save_IFS
9309
9310 fi
9311 fi
9312 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9313 if test -n "$ac_ct_OTOOL64"; then
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9315 $as_echo "$ac_ct_OTOOL64" >&6; }
9316 else
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9318 $as_echo "no" >&6; }
9319 fi
9320
9321 if test "x$ac_ct_OTOOL64" = x; then
9322 OTOOL64=":"
9323 else
9324 case $cross_compiling:$ac_tool_warned in
9325 yes:)
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9328 ac_tool_warned=yes ;;
9329 esac
9330 OTOOL64=$ac_ct_OTOOL64
9331 fi
9332 else
9333 OTOOL64="$ac_cv_prog_OTOOL64"
9334 fi
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9363 $as_echo_n "checking for -single_module linker flag... " >&6; }
9364 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9365 $as_echo_n "(cached) " >&6
9366 else
9367 lt_cv_apple_cc_single_mod=no
9368 if test -z "${LT_MULTI_MODULE}"; then
9369 # By default we will add the -single_module flag. You can override
9370 # by either setting the environment variable LT_MULTI_MODULE
9371 # non-empty at configure time, or by adding -multi_module to the
9372 # link flags.
9373 rm -rf libconftest.dylib*
9374 echo "int foo(void){return 1;}" > conftest.c
9375 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9376 -dynamiclib -Wl,-single_module conftest.c" >&5
9377 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9378 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9379 _lt_result=$?
9380 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9381 lt_cv_apple_cc_single_mod=yes
9382 else
9383 cat conftest.err >&5
9384 fi
9385 rm -rf libconftest.dylib*
9386 rm -f conftest.*
9387 fi
9388 fi
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9390 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9392 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9393 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9394 $as_echo_n "(cached) " >&6
9395 else
9396 lt_cv_ld_exported_symbols_list=no
9397 save_LDFLAGS=$LDFLAGS
9398 echo "_main" > conftest.sym
9399 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9400 if test x$gcc_no_link = xyes; then
9401 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9402 fi
9403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9404 /* end confdefs.h. */
9405
9406 int
9407 main ()
9408 {
9409
9410 ;
9411 return 0;
9412 }
9413 _ACEOF
9414 if ac_fn_c_try_link "$LINENO"; then :
9415 lt_cv_ld_exported_symbols_list=yes
9416 else
9417 lt_cv_ld_exported_symbols_list=no
9418 fi
9419 rm -f core conftest.err conftest.$ac_objext \
9420 conftest$ac_exeext conftest.$ac_ext
9421 LDFLAGS="$save_LDFLAGS"
9422
9423 fi
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9425 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9426 case $host_os in
9427 rhapsody* | darwin1.[012])
9428 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9429 darwin1.*)
9430 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9431 darwin*) # darwin 5.x on
9432 # if running on 10.5 or later, the deployment target defaults
9433 # to the OS version, if on x86, and 10.4, the deployment
9434 # target defaults to 10.4. Don't you love it?
9435 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9436 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9437 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9438 10.[012]*)
9439 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9440 10.*)
9441 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9442 esac
9443 ;;
9444 esac
9445 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9446 _lt_dar_single_mod='$single_module'
9447 fi
9448 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9449 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9450 else
9451 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9452 fi
9453 if test "$DSYMUTIL" != ":"; then
9454 _lt_dsymutil='~$DSYMUTIL $lib || :'
9455 else
9456 _lt_dsymutil=
9457 fi
9458 ;;
9459 esac
9460
9461 ac_ext=c
9462 ac_cpp='$CPP $CPPFLAGS'
9463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9467 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9468 # On Suns, sometimes $CPP names a directory.
9469 if test -n "$CPP" && test -d "$CPP"; then
9470 CPP=
9471 fi
9472 if test -z "$CPP"; then
9473 if test "${ac_cv_prog_CPP+set}" = set; then :
9474 $as_echo_n "(cached) " >&6
9475 else
9476 # Double quotes because CPP needs to be expanded
9477 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9478 do
9479 ac_preproc_ok=false
9480 for ac_c_preproc_warn_flag in '' yes
9481 do
9482 # Use a header file that comes with gcc, so configuring glibc
9483 # with a fresh cross-compiler works.
9484 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9485 # <limits.h> exists even on freestanding compilers.
9486 # On the NeXT, cc -E runs the code through the compiler's parser,
9487 # not just through cpp. "Syntax error" is here to catch this case.
9488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9489 /* end confdefs.h. */
9490 #ifdef __STDC__
9491 # include <limits.h>
9492 #else
9493 # include <assert.h>
9494 #endif
9495 Syntax error
9496 _ACEOF
9497 if ac_fn_c_try_cpp "$LINENO"; then :
9498
9499 else
9500 # Broken: fails on valid input.
9501 continue
9502 fi
9503 rm -f conftest.err conftest.$ac_ext
9504
9505 # OK, works on sane cases. Now check whether nonexistent headers
9506 # can be detected and how.
9507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9508 /* end confdefs.h. */
9509 #include <ac_nonexistent.h>
9510 _ACEOF
9511 if ac_fn_c_try_cpp "$LINENO"; then :
9512 # Broken: success on invalid input.
9513 continue
9514 else
9515 # Passes both tests.
9516 ac_preproc_ok=:
9517 break
9518 fi
9519 rm -f conftest.err conftest.$ac_ext
9520
9521 done
9522 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9523 rm -f conftest.err conftest.$ac_ext
9524 if $ac_preproc_ok; then :
9525 break
9526 fi
9527
9528 done
9529 ac_cv_prog_CPP=$CPP
9530
9531 fi
9532 CPP=$ac_cv_prog_CPP
9533 else
9534 ac_cv_prog_CPP=$CPP
9535 fi
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9537 $as_echo "$CPP" >&6; }
9538 ac_preproc_ok=false
9539 for ac_c_preproc_warn_flag in '' yes
9540 do
9541 # Use a header file that comes with gcc, so configuring glibc
9542 # with a fresh cross-compiler works.
9543 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9544 # <limits.h> exists even on freestanding compilers.
9545 # On the NeXT, cc -E runs the code through the compiler's parser,
9546 # not just through cpp. "Syntax error" is here to catch this case.
9547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9548 /* end confdefs.h. */
9549 #ifdef __STDC__
9550 # include <limits.h>
9551 #else
9552 # include <assert.h>
9553 #endif
9554 Syntax error
9555 _ACEOF
9556 if ac_fn_c_try_cpp "$LINENO"; then :
9557
9558 else
9559 # Broken: fails on valid input.
9560 continue
9561 fi
9562 rm -f conftest.err conftest.$ac_ext
9563
9564 # OK, works on sane cases. Now check whether nonexistent headers
9565 # can be detected and how.
9566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9567 /* end confdefs.h. */
9568 #include <ac_nonexistent.h>
9569 _ACEOF
9570 if ac_fn_c_try_cpp "$LINENO"; then :
9571 # Broken: success on invalid input.
9572 continue
9573 else
9574 # Passes both tests.
9575 ac_preproc_ok=:
9576 break
9577 fi
9578 rm -f conftest.err conftest.$ac_ext
9579
9580 done
9581 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9582 rm -f conftest.err conftest.$ac_ext
9583 if $ac_preproc_ok; then :
9584
9585 else
9586 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9588 as_fn_error "C preprocessor \"$CPP\" fails sanity check
9589 See \`config.log' for more details." "$LINENO" 5; }
9590 fi
9591
9592 ac_ext=c
9593 ac_cpp='$CPP $CPPFLAGS'
9594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9597
9598
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9600 $as_echo_n "checking for ANSI C header files... " >&6; }
9601 if test "${ac_cv_header_stdc+set}" = set; then :
9602 $as_echo_n "(cached) " >&6
9603 else
9604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9605 /* end confdefs.h. */
9606 #include <stdlib.h>
9607 #include <stdarg.h>
9608 #include <string.h>
9609 #include <float.h>
9610
9611 int
9612 main ()
9613 {
9614
9615 ;
9616 return 0;
9617 }
9618 _ACEOF
9619 if ac_fn_c_try_compile "$LINENO"; then :
9620 ac_cv_header_stdc=yes
9621 else
9622 ac_cv_header_stdc=no
9623 fi
9624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9625
9626 if test $ac_cv_header_stdc = yes; then
9627 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9629 /* end confdefs.h. */
9630 #include <string.h>
9631
9632 _ACEOF
9633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9634 $EGREP "memchr" >/dev/null 2>&1; then :
9635
9636 else
9637 ac_cv_header_stdc=no
9638 fi
9639 rm -f conftest*
9640
9641 fi
9642
9643 if test $ac_cv_header_stdc = yes; then
9644 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9646 /* end confdefs.h. */
9647 #include <stdlib.h>
9648
9649 _ACEOF
9650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9651 $EGREP "free" >/dev/null 2>&1; then :
9652
9653 else
9654 ac_cv_header_stdc=no
9655 fi
9656 rm -f conftest*
9657
9658 fi
9659
9660 if test $ac_cv_header_stdc = yes; then
9661 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9662 if test "$cross_compiling" = yes; then :
9663 :
9664 else
9665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9666 /* end confdefs.h. */
9667 #include <ctype.h>
9668 #include <stdlib.h>
9669 #if ((' ' & 0x0FF) == 0x020)
9670 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9671 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9672 #else
9673 # define ISLOWER(c) \
9674 (('a' <= (c) && (c) <= 'i') \
9675 || ('j' <= (c) && (c) <= 'r') \
9676 || ('s' <= (c) && (c) <= 'z'))
9677 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9678 #endif
9679
9680 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9681 int
9682 main ()
9683 {
9684 int i;
9685 for (i = 0; i < 256; i++)
9686 if (XOR (islower (i), ISLOWER (i))
9687 || toupper (i) != TOUPPER (i))
9688 return 2;
9689 return 0;
9690 }
9691 _ACEOF
9692 if ac_fn_c_try_run "$LINENO"; then :
9693
9694 else
9695 ac_cv_header_stdc=no
9696 fi
9697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9698 conftest.$ac_objext conftest.beam conftest.$ac_ext
9699 fi
9700
9701 fi
9702 fi
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9704 $as_echo "$ac_cv_header_stdc" >&6; }
9705 if test $ac_cv_header_stdc = yes; then
9706
9707 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9708
9709 fi
9710
9711 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9712 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9713 inttypes.h stdint.h unistd.h
9714 do :
9715 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9716 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9717 "
9718 eval as_val=\$$as_ac_Header
9719 if test "x$as_val" = x""yes; then :
9720 cat >>confdefs.h <<_ACEOF
9721 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9722 _ACEOF
9723
9724 fi
9725
9726 done
9727
9728
9729 for ac_header in dlfcn.h
9730 do :
9731 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9732 "
9733 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9734 cat >>confdefs.h <<_ACEOF
9735 #define HAVE_DLFCN_H 1
9736 _ACEOF
9737
9738 fi
9739
9740 done
9741
9742
9743
9744 ac_ext=cpp
9745 ac_cpp='$CXXCPP $CPPFLAGS'
9746 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9747 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9748 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9749 if test -z "$CXX"; then
9750 if test -n "$CCC"; then
9751 CXX=$CCC
9752 else
9753 if test -n "$ac_tool_prefix"; then
9754 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9755 do
9756 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9757 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9759 $as_echo_n "checking for $ac_word... " >&6; }
9760 if test "${ac_cv_prog_CXX+set}" = set; then :
9761 $as_echo_n "(cached) " >&6
9762 else
9763 if test -n "$CXX"; then
9764 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9765 else
9766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9767 for as_dir in $PATH
9768 do
9769 IFS=$as_save_IFS
9770 test -z "$as_dir" && as_dir=.
9771 for ac_exec_ext in '' $ac_executable_extensions; do
9772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9773 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9775 break 2
9776 fi
9777 done
9778 done
9779 IFS=$as_save_IFS
9780
9781 fi
9782 fi
9783 CXX=$ac_cv_prog_CXX
9784 if test -n "$CXX"; then
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
9786 $as_echo "$CXX" >&6; }
9787 else
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9789 $as_echo "no" >&6; }
9790 fi
9791
9792
9793 test -n "$CXX" && break
9794 done
9795 fi
9796 if test -z "$CXX"; then
9797 ac_ct_CXX=$CXX
9798 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9799 do
9800 # Extract the first word of "$ac_prog", so it can be a program name with args.
9801 set dummy $ac_prog; ac_word=$2
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9803 $as_echo_n "checking for $ac_word... " >&6; }
9804 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
9805 $as_echo_n "(cached) " >&6
9806 else
9807 if test -n "$ac_ct_CXX"; then
9808 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9809 else
9810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9811 for as_dir in $PATH
9812 do
9813 IFS=$as_save_IFS
9814 test -z "$as_dir" && as_dir=.
9815 for ac_exec_ext in '' $ac_executable_extensions; do
9816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9817 ac_cv_prog_ac_ct_CXX="$ac_prog"
9818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9819 break 2
9820 fi
9821 done
9822 done
9823 IFS=$as_save_IFS
9824
9825 fi
9826 fi
9827 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9828 if test -n "$ac_ct_CXX"; then
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
9830 $as_echo "$ac_ct_CXX" >&6; }
9831 else
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9833 $as_echo "no" >&6; }
9834 fi
9835
9836
9837 test -n "$ac_ct_CXX" && break
9838 done
9839
9840 if test "x$ac_ct_CXX" = x; then
9841 CXX="g++"
9842 else
9843 case $cross_compiling:$ac_tool_warned in
9844 yes:)
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9847 ac_tool_warned=yes ;;
9848 esac
9849 CXX=$ac_ct_CXX
9850 fi
9851 fi
9852
9853 fi
9854 fi
9855 # Provide some information about the compiler.
9856 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
9857 set X $ac_compile
9858 ac_compiler=$2
9859 for ac_option in --version -v -V -qversion; do
9860 { { ac_try="$ac_compiler $ac_option >&5"
9861 case "(($ac_try" in
9862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9863 *) ac_try_echo=$ac_try;;
9864 esac
9865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9866 $as_echo "$ac_try_echo"; } >&5
9867 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
9868 ac_status=$?
9869 if test -s conftest.err; then
9870 sed '10a\
9871 ... rest of stderr output deleted ...
9872 10q' conftest.err >conftest.er1
9873 cat conftest.er1 >&5
9874 rm -f conftest.er1 conftest.err
9875 fi
9876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9877 test $ac_status = 0; }
9878 done
9879
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
9881 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
9882 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
9883 $as_echo_n "(cached) " >&6
9884 else
9885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9886 /* end confdefs.h. */
9887
9888 int
9889 main ()
9890 {
9891 #ifndef __GNUC__
9892 choke me
9893 #endif
9894
9895 ;
9896 return 0;
9897 }
9898 _ACEOF
9899 if ac_fn_cxx_try_compile "$LINENO"; then :
9900 ac_compiler_gnu=yes
9901 else
9902 ac_compiler_gnu=no
9903 fi
9904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9905 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9906
9907 fi
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
9909 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
9910 if test $ac_compiler_gnu = yes; then
9911 GXX=yes
9912 else
9913 GXX=
9914 fi
9915 ac_test_CXXFLAGS=${CXXFLAGS+set}
9916 ac_save_CXXFLAGS=$CXXFLAGS
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
9918 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
9919 if test "${ac_cv_prog_cxx_g+set}" = set; then :
9920 $as_echo_n "(cached) " >&6
9921 else
9922 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
9923 ac_cxx_werror_flag=yes
9924 ac_cv_prog_cxx_g=no
9925 CXXFLAGS="-g"
9926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927 /* end confdefs.h. */
9928
9929 int
9930 main ()
9931 {
9932
9933 ;
9934 return 0;
9935 }
9936 _ACEOF
9937 if ac_fn_cxx_try_compile "$LINENO"; then :
9938 ac_cv_prog_cxx_g=yes
9939 else
9940 CXXFLAGS=""
9941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9942 /* end confdefs.h. */
9943
9944 int
9945 main ()
9946 {
9947
9948 ;
9949 return 0;
9950 }
9951 _ACEOF
9952 if ac_fn_cxx_try_compile "$LINENO"; then :
9953
9954 else
9955 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9956 CXXFLAGS="-g"
9957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9958 /* end confdefs.h. */
9959
9960 int
9961 main ()
9962 {
9963
9964 ;
9965 return 0;
9966 }
9967 _ACEOF
9968 if ac_fn_cxx_try_compile "$LINENO"; then :
9969 ac_cv_prog_cxx_g=yes
9970 fi
9971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9972 fi
9973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9974 fi
9975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9976 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9977 fi
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
9979 $as_echo "$ac_cv_prog_cxx_g" >&6; }
9980 if test "$ac_test_CXXFLAGS" = set; then
9981 CXXFLAGS=$ac_save_CXXFLAGS
9982 elif test $ac_cv_prog_cxx_g = yes; then
9983 if test "$GXX" = yes; then
9984 CXXFLAGS="-g -O2"
9985 else
9986 CXXFLAGS="-g"
9987 fi
9988 else
9989 if test "$GXX" = yes; then
9990 CXXFLAGS="-O2"
9991 else
9992 CXXFLAGS=
9993 fi
9994 fi
9995 ac_ext=c
9996 ac_cpp='$CPP $CPPFLAGS'
9997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10000
10001 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10002 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10003 (test "X$CXX" != "Xg++"))) ; then
10004 ac_ext=cpp
10005 ac_cpp='$CXXCPP $CPPFLAGS'
10006 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10007 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10008 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10010 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10011 if test -z "$CXXCPP"; then
10012 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
10013 $as_echo_n "(cached) " >&6
10014 else
10015 # Double quotes because CXXCPP needs to be expanded
10016 for CXXCPP in "$CXX -E" "/lib/cpp"
10017 do
10018 ac_preproc_ok=false
10019 for ac_cxx_preproc_warn_flag in '' yes
10020 do
10021 # Use a header file that comes with gcc, so configuring glibc
10022 # with a fresh cross-compiler works.
10023 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10024 # <limits.h> exists even on freestanding compilers.
10025 # On the NeXT, cc -E runs the code through the compiler's parser,
10026 # not just through cpp. "Syntax error" is here to catch this case.
10027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10028 /* end confdefs.h. */
10029 #ifdef __STDC__
10030 # include <limits.h>
10031 #else
10032 # include <assert.h>
10033 #endif
10034 Syntax error
10035 _ACEOF
10036 if ac_fn_cxx_try_cpp "$LINENO"; then :
10037
10038 else
10039 # Broken: fails on valid input.
10040 continue
10041 fi
10042 rm -f conftest.err conftest.$ac_ext
10043
10044 # OK, works on sane cases. Now check whether nonexistent headers
10045 # can be detected and how.
10046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10047 /* end confdefs.h. */
10048 #include <ac_nonexistent.h>
10049 _ACEOF
10050 if ac_fn_cxx_try_cpp "$LINENO"; then :
10051 # Broken: success on invalid input.
10052 continue
10053 else
10054 # Passes both tests.
10055 ac_preproc_ok=:
10056 break
10057 fi
10058 rm -f conftest.err conftest.$ac_ext
10059
10060 done
10061 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10062 rm -f conftest.err conftest.$ac_ext
10063 if $ac_preproc_ok; then :
10064 break
10065 fi
10066
10067 done
10068 ac_cv_prog_CXXCPP=$CXXCPP
10069
10070 fi
10071 CXXCPP=$ac_cv_prog_CXXCPP
10072 else
10073 ac_cv_prog_CXXCPP=$CXXCPP
10074 fi
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10076 $as_echo "$CXXCPP" >&6; }
10077 ac_preproc_ok=false
10078 for ac_cxx_preproc_warn_flag in '' yes
10079 do
10080 # Use a header file that comes with gcc, so configuring glibc
10081 # with a fresh cross-compiler works.
10082 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10083 # <limits.h> exists even on freestanding compilers.
10084 # On the NeXT, cc -E runs the code through the compiler's parser,
10085 # not just through cpp. "Syntax error" is here to catch this case.
10086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10087 /* end confdefs.h. */
10088 #ifdef __STDC__
10089 # include <limits.h>
10090 #else
10091 # include <assert.h>
10092 #endif
10093 Syntax error
10094 _ACEOF
10095 if ac_fn_cxx_try_cpp "$LINENO"; then :
10096
10097 else
10098 # Broken: fails on valid input.
10099 continue
10100 fi
10101 rm -f conftest.err conftest.$ac_ext
10102
10103 # OK, works on sane cases. Now check whether nonexistent headers
10104 # can be detected and how.
10105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10106 /* end confdefs.h. */
10107 #include <ac_nonexistent.h>
10108 _ACEOF
10109 if ac_fn_cxx_try_cpp "$LINENO"; then :
10110 # Broken: success on invalid input.
10111 continue
10112 else
10113 # Passes both tests.
10114 ac_preproc_ok=:
10115 break
10116 fi
10117 rm -f conftest.err conftest.$ac_ext
10118
10119 done
10120 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10121 rm -f conftest.err conftest.$ac_ext
10122 if $ac_preproc_ok; then :
10123
10124 else
10125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10127 _lt_caught_CXX_error=yes; }
10128 fi
10129
10130 ac_ext=c
10131 ac_cpp='$CPP $CPPFLAGS'
10132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10135
10136 else
10137 _lt_caught_CXX_error=yes
10138 fi
10139
10140
10141
10142
10143
10144 # Set options
10145
10146
10147
10148
10149 enable_win32_dll=no
10150
10151
10152 # Check whether --enable-shared was given.
10153 if test "${enable_shared+set}" = set; then :
10154 enableval=$enable_shared; p=${PACKAGE-default}
10155 case $enableval in
10156 yes) enable_shared=yes ;;
10157 no) enable_shared=no ;;
10158 *)
10159 enable_shared=no
10160 # Look at the argument we got. We use all the common list separators.
10161 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10162 for pkg in $enableval; do
10163 IFS="$lt_save_ifs"
10164 if test "X$pkg" = "X$p"; then
10165 enable_shared=yes
10166 fi
10167 done
10168 IFS="$lt_save_ifs"
10169 ;;
10170 esac
10171 else
10172 enable_shared=yes
10173 fi
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183 # Check whether --enable-static was given.
10184 if test "${enable_static+set}" = set; then :
10185 enableval=$enable_static; p=${PACKAGE-default}
10186 case $enableval in
10187 yes) enable_static=yes ;;
10188 no) enable_static=no ;;
10189 *)
10190 enable_static=no
10191 # Look at the argument we got. We use all the common list separators.
10192 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10193 for pkg in $enableval; do
10194 IFS="$lt_save_ifs"
10195 if test "X$pkg" = "X$p"; then
10196 enable_static=yes
10197 fi
10198 done
10199 IFS="$lt_save_ifs"
10200 ;;
10201 esac
10202 else
10203 enable_static=yes
10204 fi
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215 # Check whether --with-pic was given.
10216 if test "${with_pic+set}" = set; then :
10217 withval=$with_pic; pic_mode="$withval"
10218 else
10219 pic_mode=default
10220 fi
10221
10222
10223 test -z "$pic_mode" && pic_mode=default
10224
10225
10226
10227
10228
10229
10230
10231 # Check whether --enable-fast-install was given.
10232 if test "${enable_fast_install+set}" = set; then :
10233 enableval=$enable_fast_install; p=${PACKAGE-default}
10234 case $enableval in
10235 yes) enable_fast_install=yes ;;
10236 no) enable_fast_install=no ;;
10237 *)
10238 enable_fast_install=no
10239 # Look at the argument we got. We use all the common list separators.
10240 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10241 for pkg in $enableval; do
10242 IFS="$lt_save_ifs"
10243 if test "X$pkg" = "X$p"; then
10244 enable_fast_install=yes
10245 fi
10246 done
10247 IFS="$lt_save_ifs"
10248 ;;
10249 esac
10250 else
10251 enable_fast_install=yes
10252 fi
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264 # This can be used to rebuild libtool when needed
10265 LIBTOOL_DEPS="$ltmain"
10266
10267 # Always use our own libtool.
10268 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294 test -z "$LN_S" && LN_S="ln -s"
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309 if test -n "${ZSH_VERSION+set}" ; then
10310 setopt NO_GLOB_SUBST
10311 fi
10312
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10314 $as_echo_n "checking for objdir... " >&6; }
10315 if test "${lt_cv_objdir+set}" = set; then :
10316 $as_echo_n "(cached) " >&6
10317 else
10318 rm -f .libs 2>/dev/null
10319 mkdir .libs 2>/dev/null
10320 if test -d .libs; then
10321 lt_cv_objdir=.libs
10322 else
10323 # MS-DOS does not allow filenames that begin with a dot.
10324 lt_cv_objdir=_libs
10325 fi
10326 rmdir .libs 2>/dev/null
10327 fi
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10329 $as_echo "$lt_cv_objdir" >&6; }
10330 objdir=$lt_cv_objdir
10331
10332
10333
10334
10335
10336 cat >>confdefs.h <<_ACEOF
10337 #define LT_OBJDIR "$lt_cv_objdir/"
10338 _ACEOF
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356 case $host_os in
10357 aix3*)
10358 # AIX sometimes has problems with the GCC collect2 program. For some
10359 # reason, if we set the COLLECT_NAMES environment variable, the problems
10360 # vanish in a puff of smoke.
10361 if test "X${COLLECT_NAMES+set}" != Xset; then
10362 COLLECT_NAMES=
10363 export COLLECT_NAMES
10364 fi
10365 ;;
10366 esac
10367
10368 # Sed substitution that helps us do robust quoting. It backslashifies
10369 # metacharacters that are still active within double-quoted strings.
10370 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10371
10372 # Same as above, but do not quote variable references.
10373 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10374
10375 # Sed substitution to delay expansion of an escaped shell variable in a
10376 # double_quote_subst'ed string.
10377 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10378
10379 # Sed substitution to delay expansion of an escaped single quote.
10380 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10381
10382 # Sed substitution to avoid accidental globbing in evaled expressions
10383 no_glob_subst='s/\*/\\\*/g'
10384
10385 # Global variables:
10386 ofile=libtool
10387 can_build_shared=yes
10388
10389 # All known linkers require a `.a' archive for static linking (except MSVC,
10390 # which needs '.lib').
10391 libext=a
10392
10393 with_gnu_ld="$lt_cv_prog_gnu_ld"
10394
10395 old_CC="$CC"
10396 old_CFLAGS="$CFLAGS"
10397
10398 # Set sane defaults for various variables
10399 test -z "$CC" && CC=cc
10400 test -z "$LTCC" && LTCC=$CC
10401 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10402 test -z "$LD" && LD=ld
10403 test -z "$ac_objext" && ac_objext=o
10404
10405 for cc_temp in $compiler""; do
10406 case $cc_temp in
10407 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10408 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10409 \-*) ;;
10410 *) break;;
10411 esac
10412 done
10413 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10414
10415
10416 # Only perform the check for file, if the check method requires it
10417 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10418 case $deplibs_check_method in
10419 file_magic*)
10420 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10422 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10423 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10424 $as_echo_n "(cached) " >&6
10425 else
10426 case $MAGIC_CMD in
10427 [\\/*] | ?:[\\/]*)
10428 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10429 ;;
10430 *)
10431 lt_save_MAGIC_CMD="$MAGIC_CMD"
10432 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10433 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10434 for ac_dir in $ac_dummy; do
10435 IFS="$lt_save_ifs"
10436 test -z "$ac_dir" && ac_dir=.
10437 if test -f $ac_dir/${ac_tool_prefix}file; then
10438 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10439 if test -n "$file_magic_test_file"; then
10440 case $deplibs_check_method in
10441 "file_magic "*)
10442 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10443 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10444 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10445 $EGREP "$file_magic_regex" > /dev/null; then
10446 :
10447 else
10448 cat <<_LT_EOF 1>&2
10449
10450 *** Warning: the command libtool uses to detect shared libraries,
10451 *** $file_magic_cmd, produces output that libtool cannot recognize.
10452 *** The result is that libtool may fail to recognize shared libraries
10453 *** as such. This will affect the creation of libtool libraries that
10454 *** depend on shared libraries, but programs linked with such libtool
10455 *** libraries will work regardless of this problem. Nevertheless, you
10456 *** may want to report the problem to your system manager and/or to
10457 *** bug-libtool@gnu.org
10458
10459 _LT_EOF
10460 fi ;;
10461 esac
10462 fi
10463 break
10464 fi
10465 done
10466 IFS="$lt_save_ifs"
10467 MAGIC_CMD="$lt_save_MAGIC_CMD"
10468 ;;
10469 esac
10470 fi
10471
10472 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10473 if test -n "$MAGIC_CMD"; then
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10475 $as_echo "$MAGIC_CMD" >&6; }
10476 else
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10478 $as_echo "no" >&6; }
10479 fi
10480
10481
10482
10483
10484
10485 if test -z "$lt_cv_path_MAGIC_CMD"; then
10486 if test -n "$ac_tool_prefix"; then
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10488 $as_echo_n "checking for file... " >&6; }
10489 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10490 $as_echo_n "(cached) " >&6
10491 else
10492 case $MAGIC_CMD in
10493 [\\/*] | ?:[\\/]*)
10494 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10495 ;;
10496 *)
10497 lt_save_MAGIC_CMD="$MAGIC_CMD"
10498 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10499 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10500 for ac_dir in $ac_dummy; do
10501 IFS="$lt_save_ifs"
10502 test -z "$ac_dir" && ac_dir=.
10503 if test -f $ac_dir/file; then
10504 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10505 if test -n "$file_magic_test_file"; then
10506 case $deplibs_check_method in
10507 "file_magic "*)
10508 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10509 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10510 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10511 $EGREP "$file_magic_regex" > /dev/null; then
10512 :
10513 else
10514 cat <<_LT_EOF 1>&2
10515
10516 *** Warning: the command libtool uses to detect shared libraries,
10517 *** $file_magic_cmd, produces output that libtool cannot recognize.
10518 *** The result is that libtool may fail to recognize shared libraries
10519 *** as such. This will affect the creation of libtool libraries that
10520 *** depend on shared libraries, but programs linked with such libtool
10521 *** libraries will work regardless of this problem. Nevertheless, you
10522 *** may want to report the problem to your system manager and/or to
10523 *** bug-libtool@gnu.org
10524
10525 _LT_EOF
10526 fi ;;
10527 esac
10528 fi
10529 break
10530 fi
10531 done
10532 IFS="$lt_save_ifs"
10533 MAGIC_CMD="$lt_save_MAGIC_CMD"
10534 ;;
10535 esac
10536 fi
10537
10538 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10539 if test -n "$MAGIC_CMD"; then
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10541 $as_echo "$MAGIC_CMD" >&6; }
10542 else
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10544 $as_echo "no" >&6; }
10545 fi
10546
10547
10548 else
10549 MAGIC_CMD=:
10550 fi
10551 fi
10552
10553 fi
10554 ;;
10555 esac
10556
10557 # Use C for the default configuration in the libtool script
10558
10559 lt_save_CC="$CC"
10560 ac_ext=c
10561 ac_cpp='$CPP $CPPFLAGS'
10562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10565
10566
10567 # Source file extension for C test sources.
10568 ac_ext=c
10569
10570 # Object file extension for compiled C test sources.
10571 objext=o
10572 objext=$objext
10573
10574 # Code to be used in simple compile tests
10575 lt_simple_compile_test_code="int some_variable = 0;"
10576
10577 # Code to be used in simple link tests
10578 lt_simple_link_test_code='int main(){return(0);}'
10579
10580
10581
10582
10583
10584
10585
10586 # If no C compiler was specified, use CC.
10587 LTCC=${LTCC-"$CC"}
10588
10589 # If no C compiler flags were specified, use CFLAGS.
10590 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10591
10592 # Allow CC to be a program name with arguments.
10593 compiler=$CC
10594
10595 # Save the default compiler, since it gets overwritten when the other
10596 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10597 compiler_DEFAULT=$CC
10598
10599 # save warnings/boilerplate of simple test code
10600 ac_outfile=conftest.$ac_objext
10601 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10602 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10603 _lt_compiler_boilerplate=`cat conftest.err`
10604 $RM conftest*
10605
10606 ac_outfile=conftest.$ac_objext
10607 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10608 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10609 _lt_linker_boilerplate=`cat conftest.err`
10610 $RM -r conftest*
10611
10612
10613 ## CAVEAT EMPTOR:
10614 ## There is no encapsulation within the following macros, do not change
10615 ## the running order or otherwise move them around unless you know exactly
10616 ## what you are doing...
10617 if test -n "$compiler"; then
10618
10619 lt_prog_compiler_no_builtin_flag=
10620
10621 if test "$GCC" = yes; then
10622 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10623
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10625 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10626 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10627 $as_echo_n "(cached) " >&6
10628 else
10629 lt_cv_prog_compiler_rtti_exceptions=no
10630 ac_outfile=conftest.$ac_objext
10631 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10632 lt_compiler_flag="-fno-rtti -fno-exceptions"
10633 # Insert the option either (1) after the last *FLAGS variable, or
10634 # (2) before a word containing "conftest.", or (3) at the end.
10635 # Note that $ac_compile itself does not contain backslashes and begins
10636 # with a dollar sign (not a hyphen), so the echo should work correctly.
10637 # The option is referenced via a variable to avoid confusing sed.
10638 lt_compile=`echo "$ac_compile" | $SED \
10639 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10640 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10641 -e 's:$: $lt_compiler_flag:'`
10642 (eval echo "\"\$as_me:10642: $lt_compile\"" >&5)
10643 (eval "$lt_compile" 2>conftest.err)
10644 ac_status=$?
10645 cat conftest.err >&5
10646 echo "$as_me:10646: \$? = $ac_status" >&5
10647 if (exit $ac_status) && test -s "$ac_outfile"; then
10648 # The compiler can only warn and ignore the option if not recognized
10649 # So say no if there are warnings other than the usual output.
10650 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10651 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10652 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10653 lt_cv_prog_compiler_rtti_exceptions=yes
10654 fi
10655 fi
10656 $RM conftest*
10657
10658 fi
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10660 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10661
10662 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10663 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10664 else
10665 :
10666 fi
10667
10668 fi
10669
10670
10671
10672
10673
10674
10675 lt_prog_compiler_wl=
10676 lt_prog_compiler_pic=
10677 lt_prog_compiler_static=
10678
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10680 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10681
10682 if test "$GCC" = yes; then
10683 lt_prog_compiler_wl='-Wl,'
10684 lt_prog_compiler_static='-static'
10685
10686 case $host_os in
10687 aix*)
10688 # All AIX code is PIC.
10689 if test "$host_cpu" = ia64; then
10690 # AIX 5 now supports IA64 processor
10691 lt_prog_compiler_static='-Bstatic'
10692 fi
10693 ;;
10694
10695 amigaos*)
10696 case $host_cpu in
10697 powerpc)
10698 # see comment about AmigaOS4 .so support
10699 lt_prog_compiler_pic='-fPIC'
10700 ;;
10701 m68k)
10702 # FIXME: we need at least 68020 code to build shared libraries, but
10703 # adding the `-m68020' flag to GCC prevents building anything better,
10704 # like `-m68040'.
10705 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10706 ;;
10707 esac
10708 ;;
10709
10710 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10711 # PIC is the default for these OSes.
10712 ;;
10713
10714 mingw* | cygwin* | pw32* | os2* | cegcc*)
10715 # This hack is so that the source file can tell whether it is being
10716 # built for inclusion in a dll (and should export symbols for example).
10717 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10718 # (--disable-auto-import) libraries
10719 lt_prog_compiler_pic='-DDLL_EXPORT'
10720 ;;
10721
10722 darwin* | rhapsody*)
10723 # PIC is the default on this platform
10724 # Common symbols not allowed in MH_DYLIB files
10725 lt_prog_compiler_pic='-fno-common'
10726 ;;
10727
10728 hpux*)
10729 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10730 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10731 # sets the default TLS model and affects inlining.
10732 case $host_cpu in
10733 hppa*64*)
10734 # +Z the default
10735 ;;
10736 *)
10737 lt_prog_compiler_pic='-fPIC'
10738 ;;
10739 esac
10740 ;;
10741
10742 interix[3-9]*)
10743 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10744 # Instead, we relocate shared libraries at runtime.
10745 ;;
10746
10747 msdosdjgpp*)
10748 # Just because we use GCC doesn't mean we suddenly get shared libraries
10749 # on systems that don't support them.
10750 lt_prog_compiler_can_build_shared=no
10751 enable_shared=no
10752 ;;
10753
10754 *nto* | *qnx*)
10755 # QNX uses GNU C++, but need to define -shared option too, otherwise
10756 # it will coredump.
10757 lt_prog_compiler_pic='-fPIC -shared'
10758 ;;
10759
10760 sysv4*MP*)
10761 if test -d /usr/nec; then
10762 lt_prog_compiler_pic=-Kconform_pic
10763 fi
10764 ;;
10765
10766 *)
10767 lt_prog_compiler_pic='-fPIC'
10768 ;;
10769 esac
10770 else
10771 # PORTME Check for flag to pass linker flags through the system compiler.
10772 case $host_os in
10773 aix*)
10774 lt_prog_compiler_wl='-Wl,'
10775 if test "$host_cpu" = ia64; then
10776 # AIX 5 now supports IA64 processor
10777 lt_prog_compiler_static='-Bstatic'
10778 else
10779 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10780 fi
10781 ;;
10782
10783 mingw* | cygwin* | pw32* | os2* | cegcc*)
10784 # This hack is so that the source file can tell whether it is being
10785 # built for inclusion in a dll (and should export symbols for example).
10786 lt_prog_compiler_pic='-DDLL_EXPORT'
10787 ;;
10788
10789 hpux9* | hpux10* | hpux11*)
10790 lt_prog_compiler_wl='-Wl,'
10791 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10792 # not for PA HP-UX.
10793 case $host_cpu in
10794 hppa*64*|ia64*)
10795 # +Z the default
10796 ;;
10797 *)
10798 lt_prog_compiler_pic='+Z'
10799 ;;
10800 esac
10801 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10802 lt_prog_compiler_static='${wl}-a ${wl}archive'
10803 ;;
10804
10805 irix5* | irix6* | nonstopux*)
10806 lt_prog_compiler_wl='-Wl,'
10807 # PIC (with -KPIC) is the default.
10808 lt_prog_compiler_static='-non_shared'
10809 ;;
10810
10811 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10812 case $cc_basename in
10813 # old Intel for x86_64 which still supported -KPIC.
10814 ecc*)
10815 lt_prog_compiler_wl='-Wl,'
10816 lt_prog_compiler_pic='-KPIC'
10817 lt_prog_compiler_static='-static'
10818 ;;
10819 # icc used to be incompatible with GCC.
10820 # ICC 10 doesn't accept -KPIC any more.
10821 icc* | ifort*)
10822 lt_prog_compiler_wl='-Wl,'
10823 lt_prog_compiler_pic='-fPIC'
10824 lt_prog_compiler_static='-static'
10825 ;;
10826 # Lahey Fortran 8.1.
10827 lf95*)
10828 lt_prog_compiler_wl='-Wl,'
10829 lt_prog_compiler_pic='--shared'
10830 lt_prog_compiler_static='--static'
10831 ;;
10832 pgcc* | pgf77* | pgf90* | pgf95*)
10833 # Portland Group compilers (*not* the Pentium gcc compiler,
10834 # which looks to be a dead project)
10835 lt_prog_compiler_wl='-Wl,'
10836 lt_prog_compiler_pic='-fpic'
10837 lt_prog_compiler_static='-Bstatic'
10838 ;;
10839 ccc*)
10840 lt_prog_compiler_wl='-Wl,'
10841 # All Alpha code is PIC.
10842 lt_prog_compiler_static='-non_shared'
10843 ;;
10844 xl*)
10845 # IBM XL C 8.0/Fortran 10.1 on PPC
10846 lt_prog_compiler_wl='-Wl,'
10847 lt_prog_compiler_pic='-qpic'
10848 lt_prog_compiler_static='-qstaticlink'
10849 ;;
10850 *)
10851 case `$CC -V 2>&1 | sed 5q` in
10852 *Sun\ C*)
10853 # Sun C 5.9
10854 lt_prog_compiler_pic='-KPIC'
10855 lt_prog_compiler_static='-Bstatic'
10856 lt_prog_compiler_wl='-Wl,'
10857 ;;
10858 *Sun\ F*)
10859 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10860 lt_prog_compiler_pic='-KPIC'
10861 lt_prog_compiler_static='-Bstatic'
10862 lt_prog_compiler_wl=''
10863 ;;
10864 esac
10865 ;;
10866 esac
10867 ;;
10868
10869 newsos6)
10870 lt_prog_compiler_pic='-KPIC'
10871 lt_prog_compiler_static='-Bstatic'
10872 ;;
10873
10874 *nto* | *qnx*)
10875 # QNX uses GNU C++, but need to define -shared option too, otherwise
10876 # it will coredump.
10877 lt_prog_compiler_pic='-fPIC -shared'
10878 ;;
10879
10880 osf3* | osf4* | osf5*)
10881 lt_prog_compiler_wl='-Wl,'
10882 # All OSF/1 code is PIC.
10883 lt_prog_compiler_static='-non_shared'
10884 ;;
10885
10886 rdos*)
10887 lt_prog_compiler_static='-non_shared'
10888 ;;
10889
10890 solaris*)
10891 lt_prog_compiler_pic='-KPIC'
10892 lt_prog_compiler_static='-Bstatic'
10893 case $cc_basename in
10894 f77* | f90* | f95*)
10895 lt_prog_compiler_wl='-Qoption ld ';;
10896 *)
10897 lt_prog_compiler_wl='-Wl,';;
10898 esac
10899 ;;
10900
10901 sunos4*)
10902 lt_prog_compiler_wl='-Qoption ld '
10903 lt_prog_compiler_pic='-PIC'
10904 lt_prog_compiler_static='-Bstatic'
10905 ;;
10906
10907 sysv4 | sysv4.2uw2* | sysv4.3*)
10908 lt_prog_compiler_wl='-Wl,'
10909 lt_prog_compiler_pic='-KPIC'
10910 lt_prog_compiler_static='-Bstatic'
10911 ;;
10912
10913 sysv4*MP*)
10914 if test -d /usr/nec ;then
10915 lt_prog_compiler_pic='-Kconform_pic'
10916 lt_prog_compiler_static='-Bstatic'
10917 fi
10918 ;;
10919
10920 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10921 lt_prog_compiler_wl='-Wl,'
10922 lt_prog_compiler_pic='-KPIC'
10923 lt_prog_compiler_static='-Bstatic'
10924 ;;
10925
10926 unicos*)
10927 lt_prog_compiler_wl='-Wl,'
10928 lt_prog_compiler_can_build_shared=no
10929 ;;
10930
10931 uts4*)
10932 lt_prog_compiler_pic='-pic'
10933 lt_prog_compiler_static='-Bstatic'
10934 ;;
10935
10936 *)
10937 lt_prog_compiler_can_build_shared=no
10938 ;;
10939 esac
10940 fi
10941
10942 case $host_os in
10943 # For platforms which do not support PIC, -DPIC is meaningless:
10944 *djgpp*)
10945 lt_prog_compiler_pic=
10946 ;;
10947 *)
10948 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10949 ;;
10950 esac
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10952 $as_echo "$lt_prog_compiler_pic" >&6; }
10953
10954
10955
10956
10957
10958
10959 #
10960 # Check to make sure the PIC flag actually works.
10961 #
10962 if test -n "$lt_prog_compiler_pic"; then
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10964 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10965 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10966 $as_echo_n "(cached) " >&6
10967 else
10968 lt_cv_prog_compiler_pic_works=no
10969 ac_outfile=conftest.$ac_objext
10970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10971 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10972 # Insert the option either (1) after the last *FLAGS variable, or
10973 # (2) before a word containing "conftest.", or (3) at the end.
10974 # Note that $ac_compile itself does not contain backslashes and begins
10975 # with a dollar sign (not a hyphen), so the echo should work correctly.
10976 # The option is referenced via a variable to avoid confusing sed.
10977 lt_compile=`echo "$ac_compile" | $SED \
10978 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10980 -e 's:$: $lt_compiler_flag:'`
10981 (eval echo "\"\$as_me:10981: $lt_compile\"" >&5)
10982 (eval "$lt_compile" 2>conftest.err)
10983 ac_status=$?
10984 cat conftest.err >&5
10985 echo "$as_me:10985: \$? = $ac_status" >&5
10986 if (exit $ac_status) && test -s "$ac_outfile"; then
10987 # The compiler can only warn and ignore the option if not recognized
10988 # So say no if there are warnings other than the usual output.
10989 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10990 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10991 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10992 lt_cv_prog_compiler_pic_works=yes
10993 fi
10994 fi
10995 $RM conftest*
10996
10997 fi
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10999 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11000
11001 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11002 case $lt_prog_compiler_pic in
11003 "" | " "*) ;;
11004 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11005 esac
11006 else
11007 lt_prog_compiler_pic=
11008 lt_prog_compiler_can_build_shared=no
11009 fi
11010
11011 fi
11012
11013
11014
11015
11016
11017
11018 #
11019 # Check to make sure the static flag actually works.
11020 #
11021 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11023 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11024 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
11025 $as_echo_n "(cached) " >&6
11026 else
11027 lt_cv_prog_compiler_static_works=no
11028 save_LDFLAGS="$LDFLAGS"
11029 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11030 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11031 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11032 # The linker can only warn and ignore the option if not recognized
11033 # So say no if there are warnings
11034 if test -s conftest.err; then
11035 # Append any errors to the config.log.
11036 cat conftest.err 1>&5
11037 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11038 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11039 if diff conftest.exp conftest.er2 >/dev/null; then
11040 lt_cv_prog_compiler_static_works=yes
11041 fi
11042 else
11043 lt_cv_prog_compiler_static_works=yes
11044 fi
11045 fi
11046 $RM -r conftest*
11047 LDFLAGS="$save_LDFLAGS"
11048
11049 fi
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11051 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11052
11053 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11054 :
11055 else
11056 lt_prog_compiler_static=
11057 fi
11058
11059
11060
11061
11062
11063
11064
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11066 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11067 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
11068 $as_echo_n "(cached) " >&6
11069 else
11070 lt_cv_prog_compiler_c_o=no
11071 $RM -r conftest 2>/dev/null
11072 mkdir conftest
11073 cd conftest
11074 mkdir out
11075 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11076
11077 lt_compiler_flag="-o out/conftest2.$ac_objext"
11078 # Insert the option either (1) after the last *FLAGS variable, or
11079 # (2) before a word containing "conftest.", or (3) at the end.
11080 # Note that $ac_compile itself does not contain backslashes and begins
11081 # with a dollar sign (not a hyphen), so the echo should work correctly.
11082 lt_compile=`echo "$ac_compile" | $SED \
11083 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11084 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11085 -e 's:$: $lt_compiler_flag:'`
11086 (eval echo "\"\$as_me:11086: $lt_compile\"" >&5)
11087 (eval "$lt_compile" 2>out/conftest.err)
11088 ac_status=$?
11089 cat out/conftest.err >&5
11090 echo "$as_me:11090: \$? = $ac_status" >&5
11091 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11092 then
11093 # The compiler can only warn and ignore the option if not recognized
11094 # So say no if there are warnings
11095 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11096 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11097 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11098 lt_cv_prog_compiler_c_o=yes
11099 fi
11100 fi
11101 chmod u+w . 2>&5
11102 $RM conftest*
11103 # SGI C++ compiler will create directory out/ii_files/ for
11104 # template instantiation
11105 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11106 $RM out/* && rmdir out
11107 cd ..
11108 $RM -r conftest
11109 $RM conftest*
11110
11111 fi
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11113 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11114
11115
11116
11117
11118
11119
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11121 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11122 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
11123 $as_echo_n "(cached) " >&6
11124 else
11125 lt_cv_prog_compiler_c_o=no
11126 $RM -r conftest 2>/dev/null
11127 mkdir conftest
11128 cd conftest
11129 mkdir out
11130 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11131
11132 lt_compiler_flag="-o out/conftest2.$ac_objext"
11133 # Insert the option either (1) after the last *FLAGS variable, or
11134 # (2) before a word containing "conftest.", or (3) at the end.
11135 # Note that $ac_compile itself does not contain backslashes and begins
11136 # with a dollar sign (not a hyphen), so the echo should work correctly.
11137 lt_compile=`echo "$ac_compile" | $SED \
11138 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11139 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11140 -e 's:$: $lt_compiler_flag:'`
11141 (eval echo "\"\$as_me:11141: $lt_compile\"" >&5)
11142 (eval "$lt_compile" 2>out/conftest.err)
11143 ac_status=$?
11144 cat out/conftest.err >&5
11145 echo "$as_me:11145: \$? = $ac_status" >&5
11146 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11147 then
11148 # The compiler can only warn and ignore the option if not recognized
11149 # So say no if there are warnings
11150 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11151 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11152 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11153 lt_cv_prog_compiler_c_o=yes
11154 fi
11155 fi
11156 chmod u+w . 2>&5
11157 $RM conftest*
11158 # SGI C++ compiler will create directory out/ii_files/ for
11159 # template instantiation
11160 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11161 $RM out/* && rmdir out
11162 cd ..
11163 $RM -r conftest
11164 $RM conftest*
11165
11166 fi
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11168 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11169
11170
11171
11172
11173 hard_links="nottested"
11174 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11175 # do not overwrite the value of need_locks provided by the user
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11177 $as_echo_n "checking if we can lock with hard links... " >&6; }
11178 hard_links=yes
11179 $RM conftest*
11180 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11181 touch conftest.a
11182 ln conftest.a conftest.b 2>&5 || hard_links=no
11183 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11185 $as_echo "$hard_links" >&6; }
11186 if test "$hard_links" = no; then
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11188 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11189 need_locks=warn
11190 fi
11191 else
11192 need_locks=no
11193 fi
11194
11195
11196
11197
11198
11199
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11201 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11202
11203 runpath_var=
11204 allow_undefined_flag=
11205 always_export_symbols=no
11206 archive_cmds=
11207 archive_expsym_cmds=
11208 compiler_needs_object=no
11209 enable_shared_with_static_runtimes=no
11210 export_dynamic_flag_spec=
11211 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11212 hardcode_automatic=no
11213 hardcode_direct=no
11214 hardcode_direct_absolute=no
11215 hardcode_libdir_flag_spec=
11216 hardcode_libdir_flag_spec_ld=
11217 hardcode_libdir_separator=
11218 hardcode_minus_L=no
11219 hardcode_shlibpath_var=unsupported
11220 inherit_rpath=no
11221 link_all_deplibs=unknown
11222 module_cmds=
11223 module_expsym_cmds=
11224 old_archive_from_new_cmds=
11225 old_archive_from_expsyms_cmds=
11226 thread_safe_flag_spec=
11227 whole_archive_flag_spec=
11228 # include_expsyms should be a list of space-separated symbols to be *always*
11229 # included in the symbol list
11230 include_expsyms=
11231 # exclude_expsyms can be an extended regexp of symbols to exclude
11232 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11233 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11234 # as well as any symbol that contains `d'.
11235 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11236 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11237 # platforms (ab)use it in PIC code, but their linkers get confused if
11238 # the symbol is explicitly referenced. Since portable code cannot
11239 # rely on this symbol name, it's probably fine to never include it in
11240 # preloaded symbol tables.
11241 # Exclude shared library initialization/finalization symbols.
11242 extract_expsyms_cmds=
11243
11244 case $host_os in
11245 cygwin* | mingw* | pw32* | cegcc*)
11246 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11247 # When not using gcc, we currently assume that we are using
11248 # Microsoft Visual C++.
11249 if test "$GCC" != yes; then
11250 with_gnu_ld=no
11251 fi
11252 ;;
11253 interix*)
11254 # we just hope/assume this is gcc and not c89 (= MSVC++)
11255 with_gnu_ld=yes
11256 ;;
11257 openbsd*)
11258 with_gnu_ld=no
11259 ;;
11260 esac
11261
11262 ld_shlibs=yes
11263 if test "$with_gnu_ld" = yes; then
11264 # If archive_cmds runs LD, not CC, wlarc should be empty
11265 wlarc='${wl}'
11266
11267 # Set some defaults for GNU ld with shared library support. These
11268 # are reset later if shared libraries are not supported. Putting them
11269 # here allows them to be overridden if necessary.
11270 runpath_var=LD_RUN_PATH
11271 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11272 export_dynamic_flag_spec='${wl}--export-dynamic'
11273 # ancient GNU ld didn't support --whole-archive et. al.
11274 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11275 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11276 else
11277 whole_archive_flag_spec=
11278 fi
11279 supports_anon_versioning=no
11280 case `$LD -v 2>&1` in
11281 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11282 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11283 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11284 *\ 2.11.*) ;; # other 2.11 versions
11285 *) supports_anon_versioning=yes ;;
11286 esac
11287
11288 # See if GNU ld supports shared libraries.
11289 case $host_os in
11290 aix[3-9]*)
11291 # On AIX/PPC, the GNU linker is very broken
11292 if test "$host_cpu" != ia64; then
11293 ld_shlibs=no
11294 cat <<_LT_EOF 1>&2
11295
11296 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
11297 *** to be unable to reliably create shared libraries on AIX.
11298 *** Therefore, libtool is disabling shared libraries support. If you
11299 *** really care for shared libraries, you may want to modify your PATH
11300 *** so that a non-GNU linker is found, and then restart.
11301
11302 _LT_EOF
11303 fi
11304 ;;
11305
11306 amigaos*)
11307 case $host_cpu in
11308 powerpc)
11309 # see comment about AmigaOS4 .so support
11310 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11311 archive_expsym_cmds=''
11312 ;;
11313 m68k)
11314 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)'
11315 hardcode_libdir_flag_spec='-L$libdir'
11316 hardcode_minus_L=yes
11317 ;;
11318 esac
11319 ;;
11320
11321 beos*)
11322 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11323 allow_undefined_flag=unsupported
11324 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11325 # support --undefined. This deserves some investigation. FIXME
11326 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11327 else
11328 ld_shlibs=no
11329 fi
11330 ;;
11331
11332 cygwin* | mingw* | pw32* | cegcc*)
11333 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11334 # as there is no search path for DLLs.
11335 hardcode_libdir_flag_spec='-L$libdir'
11336 allow_undefined_flag=unsupported
11337 always_export_symbols=no
11338 enable_shared_with_static_runtimes=yes
11339 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11340
11341 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11343 # If the export-symbols file already is a .def file (1st line
11344 # is EXPORTS), use it as is; otherwise, prepend...
11345 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11346 cp $export_symbols $output_objdir/$soname.def;
11347 else
11348 echo EXPORTS > $output_objdir/$soname.def;
11349 cat $export_symbols >> $output_objdir/$soname.def;
11350 fi~
11351 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11352 else
11353 ld_shlibs=no
11354 fi
11355 ;;
11356
11357 interix[3-9]*)
11358 hardcode_direct=no
11359 hardcode_shlibpath_var=no
11360 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11361 export_dynamic_flag_spec='${wl}-E'
11362 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11363 # Instead, shared libraries are loaded at an image base (0x10000000 by
11364 # default) and relocated if they conflict, which is a slow very memory
11365 # consuming and fragmenting process. To avoid this, we pick a random,
11366 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11367 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11368 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11369 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'
11370 ;;
11371
11372 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11373 tmp_diet=no
11374 if test "$host_os" = linux-dietlibc; then
11375 case $cc_basename in
11376 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11377 esac
11378 fi
11379 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11380 && test "$tmp_diet" = no
11381 then
11382 tmp_addflag=
11383 tmp_sharedflag='-shared'
11384 case $cc_basename,$host_cpu in
11385 pgcc*) # Portland Group C compiler
11386 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11387 tmp_addflag=' $pic_flag'
11388 ;;
11389 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
11390 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11391 tmp_addflag=' $pic_flag -Mnomain' ;;
11392 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11393 tmp_addflag=' -i_dynamic' ;;
11394 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11395 tmp_addflag=' -i_dynamic -nofor_main' ;;
11396 ifc* | ifort*) # Intel Fortran compiler
11397 tmp_addflag=' -nofor_main' ;;
11398 lf95*) # Lahey Fortran 8.1
11399 whole_archive_flag_spec=
11400 tmp_sharedflag='--shared' ;;
11401 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11402 tmp_sharedflag='-qmkshrobj'
11403 tmp_addflag= ;;
11404 esac
11405 case `$CC -V 2>&1 | sed 5q` in
11406 *Sun\ C*) # Sun C 5.9
11407 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11408 compiler_needs_object=yes
11409 tmp_sharedflag='-G' ;;
11410 *Sun\ F*) # Sun Fortran 8.3
11411 tmp_sharedflag='-G' ;;
11412 esac
11413 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11414
11415 if test "x$supports_anon_versioning" = xyes; then
11416 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11417 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11418 echo "local: *; };" >> $output_objdir/$libname.ver~
11419 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11420 fi
11421
11422 case $cc_basename in
11423 xlf*)
11424 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11425 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11426 hardcode_libdir_flag_spec=
11427 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11428 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11429 if test "x$supports_anon_versioning" = xyes; then
11430 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11431 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11432 echo "local: *; };" >> $output_objdir/$libname.ver~
11433 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11434 fi
11435 ;;
11436 esac
11437 else
11438 ld_shlibs=no
11439 fi
11440 ;;
11441
11442 netbsd*)
11443 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11444 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11445 wlarc=
11446 else
11447 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11448 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11449 fi
11450 ;;
11451
11452 solaris*)
11453 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11454 ld_shlibs=no
11455 cat <<_LT_EOF 1>&2
11456
11457 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11458 *** create shared libraries on Solaris systems. Therefore, libtool
11459 *** is disabling shared libraries support. We urge you to upgrade GNU
11460 *** binutils to release 2.9.1 or newer. Another option is to modify
11461 *** your PATH or compiler configuration so that the native linker is
11462 *** used, and then restart.
11463
11464 _LT_EOF
11465 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11466 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11467 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11468 else
11469 ld_shlibs=no
11470 fi
11471 ;;
11472
11473 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11474 case `$LD -v 2>&1` in
11475 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11476 ld_shlibs=no
11477 cat <<_LT_EOF 1>&2
11478
11479 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11480 *** reliably create shared libraries on SCO systems. Therefore, libtool
11481 *** is disabling shared libraries support. We urge you to upgrade GNU
11482 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11483 *** your PATH or compiler configuration so that the native linker is
11484 *** used, and then restart.
11485
11486 _LT_EOF
11487 ;;
11488 *)
11489 # For security reasons, it is highly recommended that you always
11490 # use absolute paths for naming shared libraries, and exclude the
11491 # DT_RUNPATH tag from executables and libraries. But doing so
11492 # requires that you compile everything twice, which is a pain.
11493 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11494 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11495 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11496 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11497 else
11498 ld_shlibs=no
11499 fi
11500 ;;
11501 esac
11502 ;;
11503
11504 sunos4*)
11505 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11506 wlarc=
11507 hardcode_direct=yes
11508 hardcode_shlibpath_var=no
11509 ;;
11510
11511 *)
11512 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11513 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11514 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11515 else
11516 ld_shlibs=no
11517 fi
11518 ;;
11519 esac
11520
11521 if test "$ld_shlibs" = no; then
11522 runpath_var=
11523 hardcode_libdir_flag_spec=
11524 export_dynamic_flag_spec=
11525 whole_archive_flag_spec=
11526 fi
11527 else
11528 # PORTME fill in a description of your system's linker (not GNU ld)
11529 case $host_os in
11530 aix3*)
11531 allow_undefined_flag=unsupported
11532 always_export_symbols=yes
11533 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'
11534 # Note: this linker hardcodes the directories in LIBPATH if there
11535 # are no directories specified by -L.
11536 hardcode_minus_L=yes
11537 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11538 # Neither direct hardcoding nor static linking is supported with a
11539 # broken collect2.
11540 hardcode_direct=unsupported
11541 fi
11542 ;;
11543
11544 aix[4-9]*)
11545 if test "$host_cpu" = ia64; then
11546 # On IA64, the linker does run time linking by default, so we don't
11547 # have to do anything special.
11548 aix_use_runtimelinking=no
11549 exp_sym_flag='-Bexport'
11550 no_entry_flag=""
11551 else
11552 # If we're using GNU nm, then we don't want the "-C" option.
11553 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11554 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11555 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11556 else
11557 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'
11558 fi
11559 aix_use_runtimelinking=no
11560
11561 # Test if we are trying to use run time linking or normal
11562 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11563 # need to do runtime linking.
11564 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11565 for ld_flag in $LDFLAGS; do
11566 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11567 aix_use_runtimelinking=yes
11568 break
11569 fi
11570 done
11571 ;;
11572 esac
11573
11574 exp_sym_flag='-bexport'
11575 no_entry_flag='-bnoentry'
11576 fi
11577
11578 # When large executables or shared objects are built, AIX ld can
11579 # have problems creating the table of contents. If linking a library
11580 # or program results in "error TOC overflow" add -mminimal-toc to
11581 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11582 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11583
11584 archive_cmds=''
11585 hardcode_direct=yes
11586 hardcode_direct_absolute=yes
11587 hardcode_libdir_separator=':'
11588 link_all_deplibs=yes
11589 file_list_spec='${wl}-f,'
11590
11591 if test "$GCC" = yes; then
11592 case $host_os in aix4.[012]|aix4.[012].*)
11593 # We only want to do this on AIX 4.2 and lower, the check
11594 # below for broken collect2 doesn't work under 4.3+
11595 collect2name=`${CC} -print-prog-name=collect2`
11596 if test -f "$collect2name" &&
11597 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11598 then
11599 # We have reworked collect2
11600 :
11601 else
11602 # We have old collect2
11603 hardcode_direct=unsupported
11604 # It fails to find uninstalled libraries when the uninstalled
11605 # path is not listed in the libpath. Setting hardcode_minus_L
11606 # to unsupported forces relinking
11607 hardcode_minus_L=yes
11608 hardcode_libdir_flag_spec='-L$libdir'
11609 hardcode_libdir_separator=
11610 fi
11611 ;;
11612 esac
11613 shared_flag='-shared'
11614 if test "$aix_use_runtimelinking" = yes; then
11615 shared_flag="$shared_flag "'${wl}-G'
11616 fi
11617 else
11618 # not using gcc
11619 if test "$host_cpu" = ia64; then
11620 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11621 # chokes on -Wl,-G. The following line is correct:
11622 shared_flag='-G'
11623 else
11624 if test "$aix_use_runtimelinking" = yes; then
11625 shared_flag='${wl}-G'
11626 else
11627 shared_flag='${wl}-bM:SRE'
11628 fi
11629 fi
11630 fi
11631
11632 export_dynamic_flag_spec='${wl}-bexpall'
11633 # It seems that -bexpall does not export symbols beginning with
11634 # underscore (_), so it is better to generate a list of symbols to export.
11635 always_export_symbols=yes
11636 if test "$aix_use_runtimelinking" = yes; then
11637 # Warning - without using the other runtime loading flags (-brtl),
11638 # -berok will link without error, but may produce a broken library.
11639 allow_undefined_flag='-berok'
11640 # Determine the default libpath from the value encoded in an
11641 # empty executable.
11642 if test x$gcc_no_link = xyes; then
11643 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11644 fi
11645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11646 /* end confdefs.h. */
11647
11648 int
11649 main ()
11650 {
11651
11652 ;
11653 return 0;
11654 }
11655 _ACEOF
11656 if ac_fn_c_try_link "$LINENO"; then :
11657
11658 lt_aix_libpath_sed='
11659 /Import File Strings/,/^$/ {
11660 /^0/ {
11661 s/^0 *\(.*\)$/\1/
11662 p
11663 }
11664 }'
11665 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11666 # Check for a 64-bit object if we didn't find anything.
11667 if test -z "$aix_libpath"; then
11668 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11669 fi
11670 fi
11671 rm -f core conftest.err conftest.$ac_objext \
11672 conftest$ac_exeext conftest.$ac_ext
11673 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11674
11675 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11676 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11677 else
11678 if test "$host_cpu" = ia64; then
11679 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11680 allow_undefined_flag="-z nodefs"
11681 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"
11682 else
11683 # Determine the default libpath from the value encoded in an
11684 # empty executable.
11685 if test x$gcc_no_link = xyes; then
11686 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11687 fi
11688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11689 /* end confdefs.h. */
11690
11691 int
11692 main ()
11693 {
11694
11695 ;
11696 return 0;
11697 }
11698 _ACEOF
11699 if ac_fn_c_try_link "$LINENO"; then :
11700
11701 lt_aix_libpath_sed='
11702 /Import File Strings/,/^$/ {
11703 /^0/ {
11704 s/^0 *\(.*\)$/\1/
11705 p
11706 }
11707 }'
11708 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11709 # Check for a 64-bit object if we didn't find anything.
11710 if test -z "$aix_libpath"; then
11711 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11712 fi
11713 fi
11714 rm -f core conftest.err conftest.$ac_objext \
11715 conftest$ac_exeext conftest.$ac_ext
11716 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11717
11718 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11719 # Warning - without using the other run time loading flags,
11720 # -berok will link without error, but may produce a broken library.
11721 no_undefined_flag=' ${wl}-bernotok'
11722 allow_undefined_flag=' ${wl}-berok'
11723 # Exported symbols can be pulled into shared objects from archives
11724 whole_archive_flag_spec='$convenience'
11725 archive_cmds_need_lc=yes
11726 # This is similar to how AIX traditionally builds its shared libraries.
11727 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'
11728 fi
11729 fi
11730 ;;
11731
11732 amigaos*)
11733 case $host_cpu in
11734 powerpc)
11735 # see comment about AmigaOS4 .so support
11736 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11737 archive_expsym_cmds=''
11738 ;;
11739 m68k)
11740 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)'
11741 hardcode_libdir_flag_spec='-L$libdir'
11742 hardcode_minus_L=yes
11743 ;;
11744 esac
11745 ;;
11746
11747 bsdi[45]*)
11748 export_dynamic_flag_spec=-rdynamic
11749 ;;
11750
11751 cygwin* | mingw* | pw32* | cegcc*)
11752 # When not using gcc, we currently assume that we are using
11753 # Microsoft Visual C++.
11754 # hardcode_libdir_flag_spec is actually meaningless, as there is
11755 # no search path for DLLs.
11756 hardcode_libdir_flag_spec=' '
11757 allow_undefined_flag=unsupported
11758 # Tell ltmain to make .lib files, not .a files.
11759 libext=lib
11760 # Tell ltmain to make .dll files, not .so files.
11761 shrext_cmds=".dll"
11762 # FIXME: Setting linknames here is a bad hack.
11763 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11764 # The linker will automatically build a .lib file if we build a DLL.
11765 old_archive_from_new_cmds='true'
11766 # FIXME: Should let the user specify the lib program.
11767 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11768 fix_srcfile_path='`cygpath -w "$srcfile"`'
11769 enable_shared_with_static_runtimes=yes
11770 ;;
11771
11772 darwin* | rhapsody*)
11773
11774
11775 archive_cmds_need_lc=no
11776 hardcode_direct=no
11777 hardcode_automatic=yes
11778 hardcode_shlibpath_var=unsupported
11779 whole_archive_flag_spec=''
11780 link_all_deplibs=yes
11781 allow_undefined_flag="$_lt_dar_allow_undefined"
11782 case $cc_basename in
11783 ifort*) _lt_dar_can_shared=yes ;;
11784 *) _lt_dar_can_shared=$GCC ;;
11785 esac
11786 if test "$_lt_dar_can_shared" = "yes"; then
11787 output_verbose_link_cmd=echo
11788 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11789 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11790 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}"
11791 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}"
11792
11793 else
11794 ld_shlibs=no
11795 fi
11796
11797 ;;
11798
11799 dgux*)
11800 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11801 hardcode_libdir_flag_spec='-L$libdir'
11802 hardcode_shlibpath_var=no
11803 ;;
11804
11805 freebsd1*)
11806 ld_shlibs=no
11807 ;;
11808
11809 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11810 # support. Future versions do this automatically, but an explicit c++rt0.o
11811 # does not break anything, and helps significantly (at the cost of a little
11812 # extra space).
11813 freebsd2.2*)
11814 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11815 hardcode_libdir_flag_spec='-R$libdir'
11816 hardcode_direct=yes
11817 hardcode_shlibpath_var=no
11818 ;;
11819
11820 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11821 freebsd2*)
11822 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11823 hardcode_direct=yes
11824 hardcode_minus_L=yes
11825 hardcode_shlibpath_var=no
11826 ;;
11827
11828 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11829 freebsd* | dragonfly*)
11830 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11831 hardcode_libdir_flag_spec='-R$libdir'
11832 hardcode_direct=yes
11833 hardcode_shlibpath_var=no
11834 ;;
11835
11836 hpux9*)
11837 if test "$GCC" = yes; then
11838 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'
11839 else
11840 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'
11841 fi
11842 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11843 hardcode_libdir_separator=:
11844 hardcode_direct=yes
11845
11846 # hardcode_minus_L: Not really in the search PATH,
11847 # but as the default location of the library.
11848 hardcode_minus_L=yes
11849 export_dynamic_flag_spec='${wl}-E'
11850 ;;
11851
11852 hpux10*)
11853 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11854 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11855 else
11856 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11857 fi
11858 if test "$with_gnu_ld" = no; then
11859 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11860 hardcode_libdir_flag_spec_ld='+b $libdir'
11861 hardcode_libdir_separator=:
11862 hardcode_direct=yes
11863 hardcode_direct_absolute=yes
11864 export_dynamic_flag_spec='${wl}-E'
11865 # hardcode_minus_L: Not really in the search PATH,
11866 # but as the default location of the library.
11867 hardcode_minus_L=yes
11868 fi
11869 ;;
11870
11871 hpux11*)
11872 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11873 case $host_cpu in
11874 hppa*64*)
11875 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11876 ;;
11877 ia64*)
11878 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11879 ;;
11880 *)
11881 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11882 ;;
11883 esac
11884 else
11885 case $host_cpu in
11886 hppa*64*)
11887 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11888 ;;
11889 ia64*)
11890 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11891 ;;
11892 *)
11893 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11894 ;;
11895 esac
11896 fi
11897 if test "$with_gnu_ld" = no; then
11898 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11899 hardcode_libdir_separator=:
11900
11901 case $host_cpu in
11902 hppa*64*|ia64*)
11903 hardcode_direct=no
11904 hardcode_shlibpath_var=no
11905 ;;
11906 *)
11907 hardcode_direct=yes
11908 hardcode_direct_absolute=yes
11909 export_dynamic_flag_spec='${wl}-E'
11910
11911 # hardcode_minus_L: Not really in the search PATH,
11912 # but as the default location of the library.
11913 hardcode_minus_L=yes
11914 ;;
11915 esac
11916 fi
11917 ;;
11918
11919 irix5* | irix6* | nonstopux*)
11920 if test "$GCC" = yes; then
11921 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11922 # Try to use the -exported_symbol ld option, if it does not
11923 # work, assume that -exports_file does not work either and
11924 # implicitly export all symbols.
11925 save_LDFLAGS="$LDFLAGS"
11926 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11927 if test x$gcc_no_link = xyes; then
11928 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11929 fi
11930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11931 /* end confdefs.h. */
11932 int foo(void) {}
11933 _ACEOF
11934 if ac_fn_c_try_link "$LINENO"; then :
11935 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11936
11937 fi
11938 rm -f core conftest.err conftest.$ac_objext \
11939 conftest$ac_exeext conftest.$ac_ext
11940 LDFLAGS="$save_LDFLAGS"
11941 else
11942 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11943 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11944 fi
11945 archive_cmds_need_lc='no'
11946 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11947 hardcode_libdir_separator=:
11948 inherit_rpath=yes
11949 link_all_deplibs=yes
11950 ;;
11951
11952 netbsd*)
11953 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11954 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11955 else
11956 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11957 fi
11958 hardcode_libdir_flag_spec='-R$libdir'
11959 hardcode_direct=yes
11960 hardcode_shlibpath_var=no
11961 ;;
11962
11963 newsos6)
11964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11965 hardcode_direct=yes
11966 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11967 hardcode_libdir_separator=:
11968 hardcode_shlibpath_var=no
11969 ;;
11970
11971 *nto* | *qnx*)
11972 ;;
11973
11974 openbsd*)
11975 if test -f /usr/libexec/ld.so; then
11976 hardcode_direct=yes
11977 hardcode_shlibpath_var=no
11978 hardcode_direct_absolute=yes
11979 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11980 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11981 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11982 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11983 export_dynamic_flag_spec='${wl}-E'
11984 else
11985 case $host_os in
11986 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11987 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11988 hardcode_libdir_flag_spec='-R$libdir'
11989 ;;
11990 *)
11991 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11992 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11993 ;;
11994 esac
11995 fi
11996 else
11997 ld_shlibs=no
11998 fi
11999 ;;
12000
12001 os2*)
12002 hardcode_libdir_flag_spec='-L$libdir'
12003 hardcode_minus_L=yes
12004 allow_undefined_flag=unsupported
12005 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'
12006 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12007 ;;
12008
12009 osf3*)
12010 if test "$GCC" = yes; then
12011 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12012 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12013 else
12014 allow_undefined_flag=' -expect_unresolved \*'
12015 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12016 fi
12017 archive_cmds_need_lc='no'
12018 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12019 hardcode_libdir_separator=:
12020 ;;
12021
12022 osf4* | osf5*) # as osf3* with the addition of -msym flag
12023 if test "$GCC" = yes; then
12024 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12025 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12026 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12027 else
12028 allow_undefined_flag=' -expect_unresolved \*'
12029 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12030 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~
12031 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
12032
12033 # Both c and cxx compiler support -rpath directly
12034 hardcode_libdir_flag_spec='-rpath $libdir'
12035 fi
12036 archive_cmds_need_lc='no'
12037 hardcode_libdir_separator=:
12038 ;;
12039
12040 solaris*)
12041 no_undefined_flag=' -z defs'
12042 if test "$GCC" = yes; then
12043 wlarc='${wl}'
12044 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12045 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12046 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12047 else
12048 case `$CC -V 2>&1` in
12049 *"Compilers 5.0"*)
12050 wlarc=''
12051 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12052 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12053 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12054 ;;
12055 *)
12056 wlarc='${wl}'
12057 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12058 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12059 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12060 ;;
12061 esac
12062 fi
12063 hardcode_libdir_flag_spec='-R$libdir'
12064 hardcode_shlibpath_var=no
12065 case $host_os in
12066 solaris2.[0-5] | solaris2.[0-5].*) ;;
12067 *)
12068 # The compiler driver will combine and reorder linker options,
12069 # but understands `-z linker_flag'. GCC discards it without `$wl',
12070 # but is careful enough not to reorder.
12071 # Supported since Solaris 2.6 (maybe 2.5.1?)
12072 if test "$GCC" = yes; then
12073 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12074 else
12075 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12076 fi
12077 ;;
12078 esac
12079 link_all_deplibs=yes
12080 ;;
12081
12082 sunos4*)
12083 if test "x$host_vendor" = xsequent; then
12084 # Use $CC to link under sequent, because it throws in some extra .o
12085 # files that make .init and .fini sections work.
12086 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12087 else
12088 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12089 fi
12090 hardcode_libdir_flag_spec='-L$libdir'
12091 hardcode_direct=yes
12092 hardcode_minus_L=yes
12093 hardcode_shlibpath_var=no
12094 ;;
12095
12096 sysv4)
12097 case $host_vendor in
12098 sni)
12099 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12100 hardcode_direct=yes # is this really true???
12101 ;;
12102 siemens)
12103 ## LD is ld it makes a PLAMLIB
12104 ## CC just makes a GrossModule.
12105 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12106 reload_cmds='$CC -r -o $output$reload_objs'
12107 hardcode_direct=no
12108 ;;
12109 motorola)
12110 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12111 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12112 ;;
12113 esac
12114 runpath_var='LD_RUN_PATH'
12115 hardcode_shlibpath_var=no
12116 ;;
12117
12118 sysv4.3*)
12119 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12120 hardcode_shlibpath_var=no
12121 export_dynamic_flag_spec='-Bexport'
12122 ;;
12123
12124 sysv4*MP*)
12125 if test -d /usr/nec; then
12126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12127 hardcode_shlibpath_var=no
12128 runpath_var=LD_RUN_PATH
12129 hardcode_runpath_var=yes
12130 ld_shlibs=yes
12131 fi
12132 ;;
12133
12134 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12135 no_undefined_flag='${wl}-z,text'
12136 archive_cmds_need_lc=no
12137 hardcode_shlibpath_var=no
12138 runpath_var='LD_RUN_PATH'
12139
12140 if test "$GCC" = yes; then
12141 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12142 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12143 else
12144 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12145 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12146 fi
12147 ;;
12148
12149 sysv5* | sco3.2v5* | sco5v6*)
12150 # Note: We can NOT use -z defs as we might desire, because we do not
12151 # link with -lc, and that would cause any symbols used from libc to
12152 # always be unresolved, which means just about no library would
12153 # ever link correctly. If we're not using GNU ld we use -z text
12154 # though, which does catch some bad symbols but isn't as heavy-handed
12155 # as -z defs.
12156 no_undefined_flag='${wl}-z,text'
12157 allow_undefined_flag='${wl}-z,nodefs'
12158 archive_cmds_need_lc=no
12159 hardcode_shlibpath_var=no
12160 hardcode_libdir_flag_spec='${wl}-R,$libdir'
12161 hardcode_libdir_separator=':'
12162 link_all_deplibs=yes
12163 export_dynamic_flag_spec='${wl}-Bexport'
12164 runpath_var='LD_RUN_PATH'
12165
12166 if test "$GCC" = yes; then
12167 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12168 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12169 else
12170 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12171 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12172 fi
12173 ;;
12174
12175 uts4*)
12176 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12177 hardcode_libdir_flag_spec='-L$libdir'
12178 hardcode_shlibpath_var=no
12179 ;;
12180
12181 *)
12182 ld_shlibs=no
12183 ;;
12184 esac
12185
12186 if test x$host_vendor = xsni; then
12187 case $host in
12188 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12189 export_dynamic_flag_spec='${wl}-Blargedynsym'
12190 ;;
12191 esac
12192 fi
12193 fi
12194
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12196 $as_echo "$ld_shlibs" >&6; }
12197 test "$ld_shlibs" = no && can_build_shared=no
12198
12199 with_gnu_ld=$with_gnu_ld
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215 #
12216 # Do we need to explicitly link libc?
12217 #
12218 case "x$archive_cmds_need_lc" in
12219 x|xyes)
12220 # Assume -lc should be added
12221 archive_cmds_need_lc=yes
12222
12223 if test "$enable_shared" = yes && test "$GCC" = yes; then
12224 case $archive_cmds in
12225 *'~'*)
12226 # FIXME: we may have to deal with multi-command sequences.
12227 ;;
12228 '$CC '*)
12229 # Test whether the compiler implicitly links with -lc since on some
12230 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12231 # to ld, don't add -lc before -lgcc.
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12233 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12234 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
12235 $as_echo_n "(cached) " >&6
12236 else
12237 $RM conftest*
12238 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12239
12240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12241 (eval $ac_compile) 2>&5
12242 ac_status=$?
12243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12244 test $ac_status = 0; } 2>conftest.err; then
12245 soname=conftest
12246 lib=conftest
12247 libobjs=conftest.$ac_objext
12248 deplibs=
12249 wl=$lt_prog_compiler_wl
12250 pic_flag=$lt_prog_compiler_pic
12251 compiler_flags=-v
12252 linker_flags=-v
12253 verstring=
12254 output_objdir=.
12255 libname=conftest
12256 lt_save_allow_undefined_flag=$allow_undefined_flag
12257 allow_undefined_flag=
12258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12259 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12260 ac_status=$?
12261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12262 test $ac_status = 0; }
12263 then
12264 lt_cv_archive_cmds_need_lc=no
12265 else
12266 lt_cv_archive_cmds_need_lc=yes
12267 fi
12268 allow_undefined_flag=$lt_save_allow_undefined_flag
12269 else
12270 cat conftest.err 1>&5
12271 fi
12272 $RM conftest*
12273
12274 fi
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12276 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12277 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12278 ;;
12279 esac
12280 fi
12281 ;;
12282 esac
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12441 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12442
12443 if test "$GCC" = yes; then
12444 case $host_os in
12445 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12446 *) lt_awk_arg="/^libraries:/" ;;
12447 esac
12448 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12449 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
12450 # if the path contains ";" then we assume it to be the separator
12451 # otherwise default to the standard path separator (i.e. ":") - it is
12452 # assumed that no part of a normal pathname contains ";" but that should
12453 # okay in the real world where ";" in dirpaths is itself problematic.
12454 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
12455 else
12456 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12457 fi
12458 # Ok, now we have the path, separated by spaces, we can step through it
12459 # and add multilib dir if necessary.
12460 lt_tmp_lt_search_path_spec=
12461 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12462 for lt_sys_path in $lt_search_path_spec; do
12463 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12464 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12465 else
12466 test -d "$lt_sys_path" && \
12467 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12468 fi
12469 done
12470 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
12471 BEGIN {RS=" "; FS="/|\n";} {
12472 lt_foo="";
12473 lt_count=0;
12474 for (lt_i = NF; lt_i > 0; lt_i--) {
12475 if ($lt_i != "" && $lt_i != ".") {
12476 if ($lt_i == "..") {
12477 lt_count++;
12478 } else {
12479 if (lt_count == 0) {
12480 lt_foo="/" $lt_i lt_foo;
12481 } else {
12482 lt_count--;
12483 }
12484 }
12485 }
12486 }
12487 if (lt_foo != "") { lt_freq[lt_foo]++; }
12488 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12489 }'`
12490 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
12491 else
12492 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12493 fi
12494 library_names_spec=
12495 libname_spec='lib$name'
12496 soname_spec=
12497 shrext_cmds=".so"
12498 postinstall_cmds=
12499 postuninstall_cmds=
12500 finish_cmds=
12501 finish_eval=
12502 shlibpath_var=
12503 shlibpath_overrides_runpath=unknown
12504 version_type=none
12505 dynamic_linker="$host_os ld.so"
12506 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12507 need_lib_prefix=unknown
12508 hardcode_into_libs=no
12509
12510 # when you set need_version to no, make sure it does not cause -set_version
12511 # flags to be left without arguments
12512 need_version=unknown
12513
12514 case $host_os in
12515 aix3*)
12516 version_type=linux
12517 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12518 shlibpath_var=LIBPATH
12519
12520 # AIX 3 has no versioning support, so we append a major version to the name.
12521 soname_spec='${libname}${release}${shared_ext}$major'
12522 ;;
12523
12524 aix[4-9]*)
12525 version_type=linux
12526 need_lib_prefix=no
12527 need_version=no
12528 hardcode_into_libs=yes
12529 if test "$host_cpu" = ia64; then
12530 # AIX 5 supports IA64
12531 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12532 shlibpath_var=LD_LIBRARY_PATH
12533 else
12534 # With GCC up to 2.95.x, collect2 would create an import file
12535 # for dependence libraries. The import file would start with
12536 # the line `#! .'. This would cause the generated library to
12537 # depend on `.', always an invalid library. This was fixed in
12538 # development snapshots of GCC prior to 3.0.
12539 case $host_os in
12540 aix4 | aix4.[01] | aix4.[01].*)
12541 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12542 echo ' yes '
12543 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12544 :
12545 else
12546 can_build_shared=no
12547 fi
12548 ;;
12549 esac
12550 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12551 # soname into executable. Probably we can add versioning support to
12552 # collect2, so additional links can be useful in future.
12553 if test "$aix_use_runtimelinking" = yes; then
12554 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12555 # instead of lib<name>.a to let people know that these are not
12556 # typical AIX shared libraries.
12557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12558 else
12559 # We preserve .a as extension for shared libraries through AIX4.2
12560 # and later when we are not doing run time linking.
12561 library_names_spec='${libname}${release}.a $libname.a'
12562 soname_spec='${libname}${release}${shared_ext}$major'
12563 fi
12564 shlibpath_var=LIBPATH
12565 fi
12566 ;;
12567
12568 amigaos*)
12569 case $host_cpu in
12570 powerpc)
12571 # Since July 2007 AmigaOS4 officially supports .so libraries.
12572 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12574 ;;
12575 m68k)
12576 library_names_spec='$libname.ixlibrary $libname.a'
12577 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12578 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'
12579 ;;
12580 esac
12581 ;;
12582
12583 beos*)
12584 library_names_spec='${libname}${shared_ext}'
12585 dynamic_linker="$host_os ld.so"
12586 shlibpath_var=LIBRARY_PATH
12587 ;;
12588
12589 bsdi[45]*)
12590 version_type=linux
12591 need_version=no
12592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12593 soname_spec='${libname}${release}${shared_ext}$major'
12594 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12595 shlibpath_var=LD_LIBRARY_PATH
12596 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12597 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12598 # the default ld.so.conf also contains /usr/contrib/lib and
12599 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12600 # libtool to hard-code these into programs
12601 ;;
12602
12603 cygwin* | mingw* | pw32* | cegcc*)
12604 version_type=windows
12605 shrext_cmds=".dll"
12606 need_version=no
12607 need_lib_prefix=no
12608
12609 case $GCC,$host_os in
12610 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12611 library_names_spec='$libname.dll.a'
12612 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12613 postinstall_cmds='base_file=`basename \${file}`~
12614 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12615 dldir=$destdir/`dirname \$dlpath`~
12616 test -d \$dldir || mkdir -p \$dldir~
12617 $install_prog $dir/$dlname \$dldir/$dlname~
12618 chmod a+x \$dldir/$dlname~
12619 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12620 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12621 fi'
12622 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12623 dlpath=$dir/\$dldll~
12624 $RM \$dlpath'
12625 shlibpath_overrides_runpath=yes
12626
12627 case $host_os in
12628 cygwin*)
12629 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12630 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12631 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12632 ;;
12633 mingw* | cegcc*)
12634 # MinGW DLLs use traditional 'lib' prefix
12635 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12636 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12637 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12638 # It is most probably a Windows format PATH printed by
12639 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12640 # path with ; separators, and with drive letters. We can handle the
12641 # drive letters (cygwin fileutils understands them), so leave them,
12642 # especially as we might pass files found there to a mingw objdump,
12643 # which wouldn't understand a cygwinified path. Ahh.
12644 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12645 else
12646 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12647 fi
12648 ;;
12649 pw32*)
12650 # pw32 DLLs use 'pw' prefix rather than 'lib'
12651 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12652 ;;
12653 esac
12654 ;;
12655
12656 *)
12657 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12658 ;;
12659 esac
12660 dynamic_linker='Win32 ld.exe'
12661 # FIXME: first we should search . and the directory the executable is in
12662 shlibpath_var=PATH
12663 ;;
12664
12665 darwin* | rhapsody*)
12666 dynamic_linker="$host_os dyld"
12667 version_type=darwin
12668 need_lib_prefix=no
12669 need_version=no
12670 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12671 soname_spec='${libname}${release}${major}$shared_ext'
12672 shlibpath_overrides_runpath=yes
12673 shlibpath_var=DYLD_LIBRARY_PATH
12674 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12675
12676 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12677 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12678 ;;
12679
12680 dgux*)
12681 version_type=linux
12682 need_lib_prefix=no
12683 need_version=no
12684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12685 soname_spec='${libname}${release}${shared_ext}$major'
12686 shlibpath_var=LD_LIBRARY_PATH
12687 ;;
12688
12689 freebsd1*)
12690 dynamic_linker=no
12691 ;;
12692
12693 freebsd* | dragonfly*)
12694 # DragonFly does not have aout. When/if they implement a new
12695 # versioning mechanism, adjust this.
12696 if test -x /usr/bin/objformat; then
12697 objformat=`/usr/bin/objformat`
12698 else
12699 case $host_os in
12700 freebsd[123]*) objformat=aout ;;
12701 *) objformat=elf ;;
12702 esac
12703 fi
12704 version_type=freebsd-$objformat
12705 case $version_type in
12706 freebsd-elf*)
12707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12708 need_version=no
12709 need_lib_prefix=no
12710 ;;
12711 freebsd-*)
12712 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12713 need_version=yes
12714 ;;
12715 esac
12716 shlibpath_var=LD_LIBRARY_PATH
12717 case $host_os in
12718 freebsd2*)
12719 shlibpath_overrides_runpath=yes
12720 ;;
12721 freebsd3.[01]* | freebsdelf3.[01]*)
12722 shlibpath_overrides_runpath=yes
12723 hardcode_into_libs=yes
12724 ;;
12725 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12726 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12727 shlibpath_overrides_runpath=no
12728 hardcode_into_libs=yes
12729 ;;
12730 *) # from 4.6 on, and DragonFly
12731 shlibpath_overrides_runpath=yes
12732 hardcode_into_libs=yes
12733 ;;
12734 esac
12735 ;;
12736
12737 gnu*)
12738 version_type=linux
12739 need_lib_prefix=no
12740 need_version=no
12741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12742 soname_spec='${libname}${release}${shared_ext}$major'
12743 shlibpath_var=LD_LIBRARY_PATH
12744 hardcode_into_libs=yes
12745 ;;
12746
12747 hpux9* | hpux10* | hpux11*)
12748 # Give a soname corresponding to the major version so that dld.sl refuses to
12749 # link against other versions.
12750 version_type=sunos
12751 need_lib_prefix=no
12752 need_version=no
12753 case $host_cpu in
12754 ia64*)
12755 shrext_cmds='.so'
12756 hardcode_into_libs=yes
12757 dynamic_linker="$host_os dld.so"
12758 shlibpath_var=LD_LIBRARY_PATH
12759 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12761 soname_spec='${libname}${release}${shared_ext}$major'
12762 if test "X$HPUX_IA64_MODE" = X32; then
12763 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12764 else
12765 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12766 fi
12767 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12768 ;;
12769 hppa*64*)
12770 shrext_cmds='.sl'
12771 hardcode_into_libs=yes
12772 dynamic_linker="$host_os dld.sl"
12773 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12774 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12776 soname_spec='${libname}${release}${shared_ext}$major'
12777 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12778 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12779 ;;
12780 *)
12781 shrext_cmds='.sl'
12782 dynamic_linker="$host_os dld.sl"
12783 shlibpath_var=SHLIB_PATH
12784 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12786 soname_spec='${libname}${release}${shared_ext}$major'
12787 ;;
12788 esac
12789 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12790 postinstall_cmds='chmod 555 $lib'
12791 ;;
12792
12793 interix[3-9]*)
12794 version_type=linux
12795 need_lib_prefix=no
12796 need_version=no
12797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12798 soname_spec='${libname}${release}${shared_ext}$major'
12799 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12800 shlibpath_var=LD_LIBRARY_PATH
12801 shlibpath_overrides_runpath=no
12802 hardcode_into_libs=yes
12803 ;;
12804
12805 irix5* | irix6* | nonstopux*)
12806 case $host_os in
12807 nonstopux*) version_type=nonstopux ;;
12808 *)
12809 if test "$lt_cv_prog_gnu_ld" = yes; then
12810 version_type=linux
12811 else
12812 version_type=irix
12813 fi ;;
12814 esac
12815 need_lib_prefix=no
12816 need_version=no
12817 soname_spec='${libname}${release}${shared_ext}$major'
12818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12819 case $host_os in
12820 irix5* | nonstopux*)
12821 libsuff= shlibsuff=
12822 ;;
12823 *)
12824 case $LD in # libtool.m4 will add one of these switches to LD
12825 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12826 libsuff= shlibsuff= libmagic=32-bit;;
12827 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12828 libsuff=32 shlibsuff=N32 libmagic=N32;;
12829 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12830 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12831 *) libsuff= shlibsuff= libmagic=never-match;;
12832 esac
12833 ;;
12834 esac
12835 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12836 shlibpath_overrides_runpath=no
12837 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12838 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12839 hardcode_into_libs=yes
12840 ;;
12841
12842 # No shared lib support for Linux oldld, aout, or coff.
12843 linux*oldld* | linux*aout* | linux*coff*)
12844 dynamic_linker=no
12845 ;;
12846
12847 # This must be Linux ELF.
12848 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12849 version_type=linux
12850 need_lib_prefix=no
12851 need_version=no
12852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12853 soname_spec='${libname}${release}${shared_ext}$major'
12854 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12855 shlibpath_var=LD_LIBRARY_PATH
12856 shlibpath_overrides_runpath=no
12857
12858 # Some binutils ld are patched to set DT_RUNPATH
12859 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12860 $as_echo_n "(cached) " >&6
12861 else
12862 lt_cv_shlibpath_overrides_runpath=no
12863 save_LDFLAGS=$LDFLAGS
12864 save_libdir=$libdir
12865 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12866 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12867 if test x$gcc_no_link = xyes; then
12868 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12869 fi
12870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12871 /* end confdefs.h. */
12872
12873 int
12874 main ()
12875 {
12876
12877 ;
12878 return 0;
12879 }
12880 _ACEOF
12881 if ac_fn_c_try_link "$LINENO"; then :
12882 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12883 lt_cv_shlibpath_overrides_runpath=yes
12884 fi
12885 fi
12886 rm -f core conftest.err conftest.$ac_objext \
12887 conftest$ac_exeext conftest.$ac_ext
12888 LDFLAGS=$save_LDFLAGS
12889 libdir=$save_libdir
12890
12891 fi
12892
12893 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12894
12895 # This implies no fast_install, which is unacceptable.
12896 # Some rework will be needed to allow for fast_install
12897 # before this can be enabled.
12898 hardcode_into_libs=yes
12899
12900 # Append ld.so.conf contents to the search path
12901 if test -f /etc/ld.so.conf; then
12902 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;/^$/d' | tr '\n' ' '`
12903 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12904 fi
12905
12906 # We used to test for /lib/ld.so.1 and disable shared libraries on
12907 # powerpc, because MkLinux only supported shared libraries with the
12908 # GNU dynamic linker. Since this was broken with cross compilers,
12909 # most powerpc-linux boxes support dynamic linking these days and
12910 # people can always --disable-shared, the test was removed, and we
12911 # assume the GNU/Linux dynamic linker is in use.
12912 dynamic_linker='GNU/Linux ld.so'
12913 ;;
12914
12915 netbsd*)
12916 version_type=sunos
12917 need_lib_prefix=no
12918 need_version=no
12919 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12922 dynamic_linker='NetBSD (a.out) ld.so'
12923 else
12924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12925 soname_spec='${libname}${release}${shared_ext}$major'
12926 dynamic_linker='NetBSD ld.elf_so'
12927 fi
12928 shlibpath_var=LD_LIBRARY_PATH
12929 shlibpath_overrides_runpath=yes
12930 hardcode_into_libs=yes
12931 ;;
12932
12933 newsos6)
12934 version_type=linux
12935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12936 shlibpath_var=LD_LIBRARY_PATH
12937 shlibpath_overrides_runpath=yes
12938 ;;
12939
12940 *nto* | *qnx*)
12941 version_type=qnx
12942 need_lib_prefix=no
12943 need_version=no
12944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12945 soname_spec='${libname}${release}${shared_ext}$major'
12946 shlibpath_var=LD_LIBRARY_PATH
12947 shlibpath_overrides_runpath=no
12948 hardcode_into_libs=yes
12949 dynamic_linker='ldqnx.so'
12950 ;;
12951
12952 openbsd*)
12953 version_type=sunos
12954 sys_lib_dlsearch_path_spec="/usr/lib"
12955 need_lib_prefix=no
12956 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12957 case $host_os in
12958 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12959 *) need_version=no ;;
12960 esac
12961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12962 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12963 shlibpath_var=LD_LIBRARY_PATH
12964 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12965 case $host_os in
12966 openbsd2.[89] | openbsd2.[89].*)
12967 shlibpath_overrides_runpath=no
12968 ;;
12969 *)
12970 shlibpath_overrides_runpath=yes
12971 ;;
12972 esac
12973 else
12974 shlibpath_overrides_runpath=yes
12975 fi
12976 ;;
12977
12978 os2*)
12979 libname_spec='$name'
12980 shrext_cmds=".dll"
12981 need_lib_prefix=no
12982 library_names_spec='$libname${shared_ext} $libname.a'
12983 dynamic_linker='OS/2 ld.exe'
12984 shlibpath_var=LIBPATH
12985 ;;
12986
12987 osf3* | osf4* | osf5*)
12988 version_type=osf
12989 need_lib_prefix=no
12990 need_version=no
12991 soname_spec='${libname}${release}${shared_ext}$major'
12992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12993 shlibpath_var=LD_LIBRARY_PATH
12994 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12995 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12996 ;;
12997
12998 rdos*)
12999 dynamic_linker=no
13000 ;;
13001
13002 solaris*)
13003 version_type=linux
13004 need_lib_prefix=no
13005 need_version=no
13006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13007 soname_spec='${libname}${release}${shared_ext}$major'
13008 shlibpath_var=LD_LIBRARY_PATH
13009 shlibpath_overrides_runpath=yes
13010 hardcode_into_libs=yes
13011 # ldd complains unless libraries are executable
13012 postinstall_cmds='chmod +x $lib'
13013 ;;
13014
13015 sunos4*)
13016 version_type=sunos
13017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13018 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13019 shlibpath_var=LD_LIBRARY_PATH
13020 shlibpath_overrides_runpath=yes
13021 if test "$with_gnu_ld" = yes; then
13022 need_lib_prefix=no
13023 fi
13024 need_version=yes
13025 ;;
13026
13027 sysv4 | sysv4.3*)
13028 version_type=linux
13029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13030 soname_spec='${libname}${release}${shared_ext}$major'
13031 shlibpath_var=LD_LIBRARY_PATH
13032 case $host_vendor in
13033 sni)
13034 shlibpath_overrides_runpath=no
13035 need_lib_prefix=no
13036 runpath_var=LD_RUN_PATH
13037 ;;
13038 siemens)
13039 need_lib_prefix=no
13040 ;;
13041 motorola)
13042 need_lib_prefix=no
13043 need_version=no
13044 shlibpath_overrides_runpath=no
13045 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13046 ;;
13047 esac
13048 ;;
13049
13050 sysv4*MP*)
13051 if test -d /usr/nec ;then
13052 version_type=linux
13053 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13054 soname_spec='$libname${shared_ext}.$major'
13055 shlibpath_var=LD_LIBRARY_PATH
13056 fi
13057 ;;
13058
13059 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13060 version_type=freebsd-elf
13061 need_lib_prefix=no
13062 need_version=no
13063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13064 soname_spec='${libname}${release}${shared_ext}$major'
13065 shlibpath_var=LD_LIBRARY_PATH
13066 shlibpath_overrides_runpath=yes
13067 hardcode_into_libs=yes
13068 if test "$with_gnu_ld" = yes; then
13069 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13070 else
13071 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13072 case $host_os in
13073 sco3.2v5*)
13074 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13075 ;;
13076 esac
13077 fi
13078 sys_lib_dlsearch_path_spec='/usr/lib'
13079 ;;
13080
13081 tpf*)
13082 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13083 version_type=linux
13084 need_lib_prefix=no
13085 need_version=no
13086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13087 shlibpath_var=LD_LIBRARY_PATH
13088 shlibpath_overrides_runpath=no
13089 hardcode_into_libs=yes
13090 ;;
13091
13092 uts4*)
13093 version_type=linux
13094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13095 soname_spec='${libname}${release}${shared_ext}$major'
13096 shlibpath_var=LD_LIBRARY_PATH
13097 ;;
13098
13099 *)
13100 dynamic_linker=no
13101 ;;
13102 esac
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13104 $as_echo "$dynamic_linker" >&6; }
13105 test "$dynamic_linker" = no && can_build_shared=no
13106
13107 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13108 if test "$GCC" = yes; then
13109 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13110 fi
13111
13112 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13113 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13114 fi
13115 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13116 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13117 fi
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13206 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13207 hardcode_action=
13208 if test -n "$hardcode_libdir_flag_spec" ||
13209 test -n "$runpath_var" ||
13210 test "X$hardcode_automatic" = "Xyes" ; then
13211
13212 # We can hardcode non-existent directories.
13213 if test "$hardcode_direct" != no &&
13214 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13215 # have to relink, otherwise we might link with an installed library
13216 # when we should be linking with a yet-to-be-installed one
13217 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13218 test "$hardcode_minus_L" != no; then
13219 # Linking always hardcodes the temporary library directory.
13220 hardcode_action=relink
13221 else
13222 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13223 hardcode_action=immediate
13224 fi
13225 else
13226 # We cannot hardcode anything, or else we can only hardcode existing
13227 # directories.
13228 hardcode_action=unsupported
13229 fi
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13231 $as_echo "$hardcode_action" >&6; }
13232
13233 if test "$hardcode_action" = relink ||
13234 test "$inherit_rpath" = yes; then
13235 # Fast installation is not supported
13236 enable_fast_install=no
13237 elif test "$shlibpath_overrides_runpath" = yes ||
13238 test "$enable_shared" = no; then
13239 # Fast installation is not necessary
13240 enable_fast_install=needless
13241 fi
13242
13243
13244
13245
13246
13247
13248 if test "x$enable_dlopen" != xyes; then
13249 enable_dlopen=unknown
13250 enable_dlopen_self=unknown
13251 enable_dlopen_self_static=unknown
13252 else
13253 lt_cv_dlopen=no
13254 lt_cv_dlopen_libs=
13255
13256 case $host_os in
13257 beos*)
13258 lt_cv_dlopen="load_add_on"
13259 lt_cv_dlopen_libs=
13260 lt_cv_dlopen_self=yes
13261 ;;
13262
13263 mingw* | pw32* | cegcc*)
13264 lt_cv_dlopen="LoadLibrary"
13265 lt_cv_dlopen_libs=
13266 ;;
13267
13268 cygwin*)
13269 lt_cv_dlopen="dlopen"
13270 lt_cv_dlopen_libs=
13271 ;;
13272
13273 darwin*)
13274 # if libdl is installed we need to link against it
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13276 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13277 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13278 $as_echo_n "(cached) " >&6
13279 else
13280 ac_check_lib_save_LIBS=$LIBS
13281 LIBS="-ldl $LIBS"
13282 if test x$gcc_no_link = xyes; then
13283 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13284 fi
13285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13286 /* end confdefs.h. */
13287
13288 /* Override any GCC internal prototype to avoid an error.
13289 Use char because int might match the return type of a GCC
13290 builtin and then its argument prototype would still apply. */
13291 #ifdef __cplusplus
13292 extern "C"
13293 #endif
13294 char dlopen ();
13295 int
13296 main ()
13297 {
13298 return dlopen ();
13299 ;
13300 return 0;
13301 }
13302 _ACEOF
13303 if ac_fn_c_try_link "$LINENO"; then :
13304 ac_cv_lib_dl_dlopen=yes
13305 else
13306 ac_cv_lib_dl_dlopen=no
13307 fi
13308 rm -f core conftest.err conftest.$ac_objext \
13309 conftest$ac_exeext conftest.$ac_ext
13310 LIBS=$ac_check_lib_save_LIBS
13311 fi
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13313 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13314 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13315 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13316 else
13317
13318 lt_cv_dlopen="dyld"
13319 lt_cv_dlopen_libs=
13320 lt_cv_dlopen_self=yes
13321
13322 fi
13323
13324 ;;
13325
13326 *)
13327 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13328 if test "x$ac_cv_func_shl_load" = x""yes; then :
13329 lt_cv_dlopen="shl_load"
13330 else
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13332 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13333 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13334 $as_echo_n "(cached) " >&6
13335 else
13336 ac_check_lib_save_LIBS=$LIBS
13337 LIBS="-ldld $LIBS"
13338 if test x$gcc_no_link = xyes; then
13339 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13340 fi
13341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13342 /* end confdefs.h. */
13343
13344 /* Override any GCC internal prototype to avoid an error.
13345 Use char because int might match the return type of a GCC
13346 builtin and then its argument prototype would still apply. */
13347 #ifdef __cplusplus
13348 extern "C"
13349 #endif
13350 char shl_load ();
13351 int
13352 main ()
13353 {
13354 return shl_load ();
13355 ;
13356 return 0;
13357 }
13358 _ACEOF
13359 if ac_fn_c_try_link "$LINENO"; then :
13360 ac_cv_lib_dld_shl_load=yes
13361 else
13362 ac_cv_lib_dld_shl_load=no
13363 fi
13364 rm -f core conftest.err conftest.$ac_objext \
13365 conftest$ac_exeext conftest.$ac_ext
13366 LIBS=$ac_check_lib_save_LIBS
13367 fi
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13369 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13370 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13371 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13372 else
13373 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13374 if test "x$ac_cv_func_dlopen" = x""yes; then :
13375 lt_cv_dlopen="dlopen"
13376 else
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13378 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13379 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13380 $as_echo_n "(cached) " >&6
13381 else
13382 ac_check_lib_save_LIBS=$LIBS
13383 LIBS="-ldl $LIBS"
13384 if test x$gcc_no_link = xyes; then
13385 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13386 fi
13387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13388 /* end confdefs.h. */
13389
13390 /* Override any GCC internal prototype to avoid an error.
13391 Use char because int might match the return type of a GCC
13392 builtin and then its argument prototype would still apply. */
13393 #ifdef __cplusplus
13394 extern "C"
13395 #endif
13396 char dlopen ();
13397 int
13398 main ()
13399 {
13400 return dlopen ();
13401 ;
13402 return 0;
13403 }
13404 _ACEOF
13405 if ac_fn_c_try_link "$LINENO"; then :
13406 ac_cv_lib_dl_dlopen=yes
13407 else
13408 ac_cv_lib_dl_dlopen=no
13409 fi
13410 rm -f core conftest.err conftest.$ac_objext \
13411 conftest$ac_exeext conftest.$ac_ext
13412 LIBS=$ac_check_lib_save_LIBS
13413 fi
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13415 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13416 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13417 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13418 else
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13420 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13421 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13422 $as_echo_n "(cached) " >&6
13423 else
13424 ac_check_lib_save_LIBS=$LIBS
13425 LIBS="-lsvld $LIBS"
13426 if test x$gcc_no_link = xyes; then
13427 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13428 fi
13429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13430 /* end confdefs.h. */
13431
13432 /* Override any GCC internal prototype to avoid an error.
13433 Use char because int might match the return type of a GCC
13434 builtin and then its argument prototype would still apply. */
13435 #ifdef __cplusplus
13436 extern "C"
13437 #endif
13438 char dlopen ();
13439 int
13440 main ()
13441 {
13442 return dlopen ();
13443 ;
13444 return 0;
13445 }
13446 _ACEOF
13447 if ac_fn_c_try_link "$LINENO"; then :
13448 ac_cv_lib_svld_dlopen=yes
13449 else
13450 ac_cv_lib_svld_dlopen=no
13451 fi
13452 rm -f core conftest.err conftest.$ac_objext \
13453 conftest$ac_exeext conftest.$ac_ext
13454 LIBS=$ac_check_lib_save_LIBS
13455 fi
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13457 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13458 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13459 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13460 else
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13462 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13463 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13464 $as_echo_n "(cached) " >&6
13465 else
13466 ac_check_lib_save_LIBS=$LIBS
13467 LIBS="-ldld $LIBS"
13468 if test x$gcc_no_link = xyes; then
13469 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13470 fi
13471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13472 /* end confdefs.h. */
13473
13474 /* Override any GCC internal prototype to avoid an error.
13475 Use char because int might match the return type of a GCC
13476 builtin and then its argument prototype would still apply. */
13477 #ifdef __cplusplus
13478 extern "C"
13479 #endif
13480 char dld_link ();
13481 int
13482 main ()
13483 {
13484 return dld_link ();
13485 ;
13486 return 0;
13487 }
13488 _ACEOF
13489 if ac_fn_c_try_link "$LINENO"; then :
13490 ac_cv_lib_dld_dld_link=yes
13491 else
13492 ac_cv_lib_dld_dld_link=no
13493 fi
13494 rm -f core conftest.err conftest.$ac_objext \
13495 conftest$ac_exeext conftest.$ac_ext
13496 LIBS=$ac_check_lib_save_LIBS
13497 fi
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13499 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13500 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13501 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13502 fi
13503
13504
13505 fi
13506
13507
13508 fi
13509
13510
13511 fi
13512
13513
13514 fi
13515
13516
13517 fi
13518
13519 ;;
13520 esac
13521
13522 if test "x$lt_cv_dlopen" != xno; then
13523 enable_dlopen=yes
13524 else
13525 enable_dlopen=no
13526 fi
13527
13528 case $lt_cv_dlopen in
13529 dlopen)
13530 save_CPPFLAGS="$CPPFLAGS"
13531 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13532
13533 save_LDFLAGS="$LDFLAGS"
13534 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13535
13536 save_LIBS="$LIBS"
13537 LIBS="$lt_cv_dlopen_libs $LIBS"
13538
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13540 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13541 if test "${lt_cv_dlopen_self+set}" = set; then :
13542 $as_echo_n "(cached) " >&6
13543 else
13544 if test "$cross_compiling" = yes; then :
13545 lt_cv_dlopen_self=cross
13546 else
13547 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13548 lt_status=$lt_dlunknown
13549 cat > conftest.$ac_ext <<_LT_EOF
13550 #line 13550 "configure"
13551 #include "confdefs.h"
13552
13553 #if HAVE_DLFCN_H
13554 #include <dlfcn.h>
13555 #endif
13556
13557 #include <stdio.h>
13558
13559 #ifdef RTLD_GLOBAL
13560 # define LT_DLGLOBAL RTLD_GLOBAL
13561 #else
13562 # ifdef DL_GLOBAL
13563 # define LT_DLGLOBAL DL_GLOBAL
13564 # else
13565 # define LT_DLGLOBAL 0
13566 # endif
13567 #endif
13568
13569 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13570 find out it does not work in some platform. */
13571 #ifndef LT_DLLAZY_OR_NOW
13572 # ifdef RTLD_LAZY
13573 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13574 # else
13575 # ifdef DL_LAZY
13576 # define LT_DLLAZY_OR_NOW DL_LAZY
13577 # else
13578 # ifdef RTLD_NOW
13579 # define LT_DLLAZY_OR_NOW RTLD_NOW
13580 # else
13581 # ifdef DL_NOW
13582 # define LT_DLLAZY_OR_NOW DL_NOW
13583 # else
13584 # define LT_DLLAZY_OR_NOW 0
13585 # endif
13586 # endif
13587 # endif
13588 # endif
13589 #endif
13590
13591 void fnord() { int i=42;}
13592 int main ()
13593 {
13594 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13595 int status = $lt_dlunknown;
13596
13597 if (self)
13598 {
13599 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13600 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13601 /* dlclose (self); */
13602 }
13603 else
13604 puts (dlerror ());
13605
13606 return status;
13607 }
13608 _LT_EOF
13609 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13610 (eval $ac_link) 2>&5
13611 ac_status=$?
13612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13613 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13614 (./conftest; exit; ) >&5 2>/dev/null
13615 lt_status=$?
13616 case x$lt_status in
13617 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13618 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13619 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13620 esac
13621 else :
13622 # compilation failed
13623 lt_cv_dlopen_self=no
13624 fi
13625 fi
13626 rm -fr conftest*
13627
13628
13629 fi
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13631 $as_echo "$lt_cv_dlopen_self" >&6; }
13632
13633 if test "x$lt_cv_dlopen_self" = xyes; then
13634 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13636 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13637 if test "${lt_cv_dlopen_self_static+set}" = set; then :
13638 $as_echo_n "(cached) " >&6
13639 else
13640 if test "$cross_compiling" = yes; then :
13641 lt_cv_dlopen_self_static=cross
13642 else
13643 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13644 lt_status=$lt_dlunknown
13645 cat > conftest.$ac_ext <<_LT_EOF
13646 #line 13646 "configure"
13647 #include "confdefs.h"
13648
13649 #if HAVE_DLFCN_H
13650 #include <dlfcn.h>
13651 #endif
13652
13653 #include <stdio.h>
13654
13655 #ifdef RTLD_GLOBAL
13656 # define LT_DLGLOBAL RTLD_GLOBAL
13657 #else
13658 # ifdef DL_GLOBAL
13659 # define LT_DLGLOBAL DL_GLOBAL
13660 # else
13661 # define LT_DLGLOBAL 0
13662 # endif
13663 #endif
13664
13665 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13666 find out it does not work in some platform. */
13667 #ifndef LT_DLLAZY_OR_NOW
13668 # ifdef RTLD_LAZY
13669 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13670 # else
13671 # ifdef DL_LAZY
13672 # define LT_DLLAZY_OR_NOW DL_LAZY
13673 # else
13674 # ifdef RTLD_NOW
13675 # define LT_DLLAZY_OR_NOW RTLD_NOW
13676 # else
13677 # ifdef DL_NOW
13678 # define LT_DLLAZY_OR_NOW DL_NOW
13679 # else
13680 # define LT_DLLAZY_OR_NOW 0
13681 # endif
13682 # endif
13683 # endif
13684 # endif
13685 #endif
13686
13687 void fnord() { int i=42;}
13688 int main ()
13689 {
13690 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13691 int status = $lt_dlunknown;
13692
13693 if (self)
13694 {
13695 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13696 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13697 /* dlclose (self); */
13698 }
13699 else
13700 puts (dlerror ());
13701
13702 return status;
13703 }
13704 _LT_EOF
13705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13706 (eval $ac_link) 2>&5
13707 ac_status=$?
13708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13709 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13710 (./conftest; exit; ) >&5 2>/dev/null
13711 lt_status=$?
13712 case x$lt_status in
13713 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13714 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13715 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13716 esac
13717 else :
13718 # compilation failed
13719 lt_cv_dlopen_self_static=no
13720 fi
13721 fi
13722 rm -fr conftest*
13723
13724
13725 fi
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13727 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13728 fi
13729
13730 CPPFLAGS="$save_CPPFLAGS"
13731 LDFLAGS="$save_LDFLAGS"
13732 LIBS="$save_LIBS"
13733 ;;
13734 esac
13735
13736 case $lt_cv_dlopen_self in
13737 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13738 *) enable_dlopen_self=unknown ;;
13739 esac
13740
13741 case $lt_cv_dlopen_self_static in
13742 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13743 *) enable_dlopen_self_static=unknown ;;
13744 esac
13745 fi
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763 striplib=
13764 old_striplib=
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13766 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13767 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13768 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13769 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13771 $as_echo "yes" >&6; }
13772 else
13773 # FIXME - insert some real tests, host_os isn't really good enough
13774 case $host_os in
13775 darwin*)
13776 if test -n "$STRIP" ; then
13777 striplib="$STRIP -x"
13778 old_striplib="$STRIP -S"
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13780 $as_echo "yes" >&6; }
13781 else
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13783 $as_echo "no" >&6; }
13784 fi
13785 ;;
13786 *)
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13788 $as_echo "no" >&6; }
13789 ;;
13790 esac
13791 fi
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804 # Report which library types will actually be built
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13806 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13808 $as_echo "$can_build_shared" >&6; }
13809
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13811 $as_echo_n "checking whether to build shared libraries... " >&6; }
13812 test "$can_build_shared" = "no" && enable_shared=no
13813
13814 # On AIX, shared libraries and static libraries use the same namespace, and
13815 # are all built from PIC.
13816 case $host_os in
13817 aix3*)
13818 test "$enable_shared" = yes && enable_static=no
13819 if test -n "$RANLIB"; then
13820 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13821 postinstall_cmds='$RANLIB $lib'
13822 fi
13823 ;;
13824
13825 aix[4-9]*)
13826 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13827 test "$enable_shared" = yes && enable_static=no
13828 fi
13829 ;;
13830 esac
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13832 $as_echo "$enable_shared" >&6; }
13833
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13835 $as_echo_n "checking whether to build static libraries... " >&6; }
13836 # Make sure either enable_shared or enable_static is yes.
13837 test "$enable_shared" = yes || enable_static=yes
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13839 $as_echo "$enable_static" >&6; }
13840
13841
13842
13843
13844 fi
13845 ac_ext=c
13846 ac_cpp='$CPP $CPPFLAGS'
13847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13850
13851 CC="$lt_save_CC"
13852
13853
13854 ac_ext=cpp
13855 ac_cpp='$CXXCPP $CPPFLAGS'
13856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13859
13860 archive_cmds_need_lc_CXX=no
13861 allow_undefined_flag_CXX=
13862 always_export_symbols_CXX=no
13863 archive_expsym_cmds_CXX=
13864 compiler_needs_object_CXX=no
13865 export_dynamic_flag_spec_CXX=
13866 hardcode_direct_CXX=no
13867 hardcode_direct_absolute_CXX=no
13868 hardcode_libdir_flag_spec_CXX=
13869 hardcode_libdir_flag_spec_ld_CXX=
13870 hardcode_libdir_separator_CXX=
13871 hardcode_minus_L_CXX=no
13872 hardcode_shlibpath_var_CXX=unsupported
13873 hardcode_automatic_CXX=no
13874 inherit_rpath_CXX=no
13875 module_cmds_CXX=
13876 module_expsym_cmds_CXX=
13877 link_all_deplibs_CXX=unknown
13878 old_archive_cmds_CXX=$old_archive_cmds
13879 no_undefined_flag_CXX=
13880 whole_archive_flag_spec_CXX=
13881 enable_shared_with_static_runtimes_CXX=no
13882
13883 # Source file extension for C++ test sources.
13884 ac_ext=cpp
13885
13886 # Object file extension for compiled C++ test sources.
13887 objext=o
13888 objext_CXX=$objext
13889
13890 # No sense in running all these tests if we already determined that
13891 # the CXX compiler isn't working. Some variables (like enable_shared)
13892 # are currently assumed to apply to all compilers on this platform,
13893 # and will be corrupted by setting them based on a non-working compiler.
13894 if test "$_lt_caught_CXX_error" != yes; then
13895 # Code to be used in simple compile tests
13896 lt_simple_compile_test_code="int some_variable = 0;"
13897
13898 # Code to be used in simple link tests
13899 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13900
13901 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13902
13903
13904
13905
13906
13907
13908 # If no C compiler was specified, use CC.
13909 LTCC=${LTCC-"$CC"}
13910
13911 # If no C compiler flags were specified, use CFLAGS.
13912 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13913
13914 # Allow CC to be a program name with arguments.
13915 compiler=$CC
13916
13917
13918 # save warnings/boilerplate of simple test code
13919 ac_outfile=conftest.$ac_objext
13920 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13921 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13922 _lt_compiler_boilerplate=`cat conftest.err`
13923 $RM conftest*
13924
13925 ac_outfile=conftest.$ac_objext
13926 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13927 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13928 _lt_linker_boilerplate=`cat conftest.err`
13929 $RM -r conftest*
13930
13931
13932 # Allow CC to be a program name with arguments.
13933 lt_save_CC=$CC
13934 lt_save_LD=$LD
13935 lt_save_GCC=$GCC
13936 GCC=$GXX
13937 lt_save_with_gnu_ld=$with_gnu_ld
13938 lt_save_path_LD=$lt_cv_path_LD
13939 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13940 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13941 else
13942 $as_unset lt_cv_prog_gnu_ld
13943 fi
13944 if test -n "${lt_cv_path_LDCXX+set}"; then
13945 lt_cv_path_LD=$lt_cv_path_LDCXX
13946 else
13947 $as_unset lt_cv_path_LD
13948 fi
13949 test -z "${LDCXX+set}" || LD=$LDCXX
13950 CC=${CXX-"c++"}
13951 compiler=$CC
13952 compiler_CXX=$CC
13953 for cc_temp in $compiler""; do
13954 case $cc_temp in
13955 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13956 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13957 \-*) ;;
13958 *) break;;
13959 esac
13960 done
13961 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13962
13963
13964 if test -n "$compiler"; then
13965 # We don't want -fno-exception when compiling C++ code, so set the
13966 # no_builtin_flag separately
13967 if test "$GXX" = yes; then
13968 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13969 else
13970 lt_prog_compiler_no_builtin_flag_CXX=
13971 fi
13972
13973 if test "$GXX" = yes; then
13974 # Set up default GNU C++ configuration
13975
13976
13977
13978 # Check whether --with-gnu-ld was given.
13979 if test "${with_gnu_ld+set}" = set; then :
13980 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13981 else
13982 with_gnu_ld=no
13983 fi
13984
13985 ac_prog=ld
13986 if test "$GCC" = yes; then
13987 # Check if gcc -print-prog-name=ld gives a path.
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13989 $as_echo_n "checking for ld used by $CC... " >&6; }
13990 case $host in
13991 *-*-mingw*)
13992 # gcc leaves a trailing carriage return which upsets mingw
13993 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13994 *)
13995 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13996 esac
13997 case $ac_prog in
13998 # Accept absolute paths.
13999 [\\/]* | ?:[\\/]*)
14000 re_direlt='/[^/][^/]*/\.\./'
14001 # Canonicalize the pathname of ld
14002 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14003 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14004 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14005 done
14006 test -z "$LD" && LD="$ac_prog"
14007 ;;
14008 "")
14009 # If it fails, then pretend we aren't using GCC.
14010 ac_prog=ld
14011 ;;
14012 *)
14013 # If it is relative, then search for the first ld in PATH.
14014 with_gnu_ld=unknown
14015 ;;
14016 esac
14017 elif test "$with_gnu_ld" = yes; then
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14019 $as_echo_n "checking for GNU ld... " >&6; }
14020 else
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14022 $as_echo_n "checking for non-GNU ld... " >&6; }
14023 fi
14024 if test "${lt_cv_path_LD+set}" = set; then :
14025 $as_echo_n "(cached) " >&6
14026 else
14027 if test -z "$LD"; then
14028 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14029 for ac_dir in $PATH; do
14030 IFS="$lt_save_ifs"
14031 test -z "$ac_dir" && ac_dir=.
14032 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14033 lt_cv_path_LD="$ac_dir/$ac_prog"
14034 # Check to see if the program is GNU ld. I'd rather use --version,
14035 # but apparently some variants of GNU ld only accept -v.
14036 # Break only if it was the GNU/non-GNU ld that we prefer.
14037 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14038 *GNU* | *'with BFD'*)
14039 test "$with_gnu_ld" != no && break
14040 ;;
14041 *)
14042 test "$with_gnu_ld" != yes && break
14043 ;;
14044 esac
14045 fi
14046 done
14047 IFS="$lt_save_ifs"
14048 else
14049 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14050 fi
14051 fi
14052
14053 LD="$lt_cv_path_LD"
14054 if test -n "$LD"; then
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14056 $as_echo "$LD" >&6; }
14057 else
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14059 $as_echo "no" >&6; }
14060 fi
14061 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14063 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14064 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14065 $as_echo_n "(cached) " >&6
14066 else
14067 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14068 case `$LD -v 2>&1 </dev/null` in
14069 *GNU* | *'with BFD'*)
14070 lt_cv_prog_gnu_ld=yes
14071 ;;
14072 *)
14073 lt_cv_prog_gnu_ld=no
14074 ;;
14075 esac
14076 fi
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14078 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14079 with_gnu_ld=$lt_cv_prog_gnu_ld
14080
14081
14082
14083
14084
14085
14086
14087 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14088 # archiving commands below assume that GNU ld is being used.
14089 if test "$with_gnu_ld" = yes; then
14090 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14091 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'
14092
14093 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14094 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14095
14096 # If archive_cmds runs LD, not CC, wlarc should be empty
14097 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14098 # investigate it a little bit more. (MM)
14099 wlarc='${wl}'
14100
14101 # ancient GNU ld didn't support --whole-archive et. al.
14102 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14103 $GREP 'no-whole-archive' > /dev/null; then
14104 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14105 else
14106 whole_archive_flag_spec_CXX=
14107 fi
14108 else
14109 with_gnu_ld=no
14110 wlarc=
14111
14112 # A generic and very simple default shared library creation
14113 # command for GNU C++ for the case where it uses the native
14114 # linker, instead of GNU ld. If possible, this setting should
14115 # overridden to take advantage of the native linker features on
14116 # the platform it is being used on.
14117 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14118 fi
14119
14120 # Commands to make compiler produce verbose output that lists
14121 # what "hidden" libraries, object files and flags are used when
14122 # linking a shared library.
14123 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
14124
14125 else
14126 GXX=no
14127 with_gnu_ld=no
14128 wlarc=
14129 fi
14130
14131 # PORTME: fill in a description of your system's C++ link characteristics
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14133 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14134 ld_shlibs_CXX=yes
14135 case $host_os in
14136 aix3*)
14137 # FIXME: insert proper C++ library support
14138 ld_shlibs_CXX=no
14139 ;;
14140 aix[4-9]*)
14141 if test "$host_cpu" = ia64; then
14142 # On IA64, the linker does run time linking by default, so we don't
14143 # have to do anything special.
14144 aix_use_runtimelinking=no
14145 exp_sym_flag='-Bexport'
14146 no_entry_flag=""
14147 else
14148 aix_use_runtimelinking=no
14149
14150 # Test if we are trying to use run time linking or normal
14151 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14152 # need to do runtime linking.
14153 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14154 for ld_flag in $LDFLAGS; do
14155 case $ld_flag in
14156 *-brtl*)
14157 aix_use_runtimelinking=yes
14158 break
14159 ;;
14160 esac
14161 done
14162 ;;
14163 esac
14164
14165 exp_sym_flag='-bexport'
14166 no_entry_flag='-bnoentry'
14167 fi
14168
14169 # When large executables or shared objects are built, AIX ld can
14170 # have problems creating the table of contents. If linking a library
14171 # or program results in "error TOC overflow" add -mminimal-toc to
14172 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14173 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14174
14175 archive_cmds_CXX=''
14176 hardcode_direct_CXX=yes
14177 hardcode_direct_absolute_CXX=yes
14178 hardcode_libdir_separator_CXX=':'
14179 link_all_deplibs_CXX=yes
14180 file_list_spec_CXX='${wl}-f,'
14181
14182 if test "$GXX" = yes; then
14183 case $host_os in aix4.[012]|aix4.[012].*)
14184 # We only want to do this on AIX 4.2 and lower, the check
14185 # below for broken collect2 doesn't work under 4.3+
14186 collect2name=`${CC} -print-prog-name=collect2`
14187 if test -f "$collect2name" &&
14188 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14189 then
14190 # We have reworked collect2
14191 :
14192 else
14193 # We have old collect2
14194 hardcode_direct_CXX=unsupported
14195 # It fails to find uninstalled libraries when the uninstalled
14196 # path is not listed in the libpath. Setting hardcode_minus_L
14197 # to unsupported forces relinking
14198 hardcode_minus_L_CXX=yes
14199 hardcode_libdir_flag_spec_CXX='-L$libdir'
14200 hardcode_libdir_separator_CXX=
14201 fi
14202 esac
14203 shared_flag='-shared'
14204 if test "$aix_use_runtimelinking" = yes; then
14205 shared_flag="$shared_flag "'${wl}-G'
14206 fi
14207 else
14208 # not using gcc
14209 if test "$host_cpu" = ia64; then
14210 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14211 # chokes on -Wl,-G. The following line is correct:
14212 shared_flag='-G'
14213 else
14214 if test "$aix_use_runtimelinking" = yes; then
14215 shared_flag='${wl}-G'
14216 else
14217 shared_flag='${wl}-bM:SRE'
14218 fi
14219 fi
14220 fi
14221
14222 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14223 # It seems that -bexpall does not export symbols beginning with
14224 # underscore (_), so it is better to generate a list of symbols to
14225 # export.
14226 always_export_symbols_CXX=yes
14227 if test "$aix_use_runtimelinking" = yes; then
14228 # Warning - without using the other runtime loading flags (-brtl),
14229 # -berok will link without error, but may produce a broken library.
14230 allow_undefined_flag_CXX='-berok'
14231 # Determine the default libpath from the value encoded in an empty
14232 # executable.
14233 if test x$gcc_no_link = xyes; then
14234 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14235 fi
14236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14237 /* end confdefs.h. */
14238
14239 int
14240 main ()
14241 {
14242
14243 ;
14244 return 0;
14245 }
14246 _ACEOF
14247 if ac_fn_cxx_try_link "$LINENO"; then :
14248
14249 lt_aix_libpath_sed='
14250 /Import File Strings/,/^$/ {
14251 /^0/ {
14252 s/^0 *\(.*\)$/\1/
14253 p
14254 }
14255 }'
14256 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14257 # Check for a 64-bit object if we didn't find anything.
14258 if test -z "$aix_libpath"; then
14259 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14260 fi
14261 fi
14262 rm -f core conftest.err conftest.$ac_objext \
14263 conftest$ac_exeext conftest.$ac_ext
14264 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14265
14266 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14267
14268 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14269 else
14270 if test "$host_cpu" = ia64; then
14271 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14272 allow_undefined_flag_CXX="-z nodefs"
14273 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"
14274 else
14275 # Determine the default libpath from the value encoded in an
14276 # empty executable.
14277 if test x$gcc_no_link = xyes; then
14278 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14279 fi
14280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14281 /* end confdefs.h. */
14282
14283 int
14284 main ()
14285 {
14286
14287 ;
14288 return 0;
14289 }
14290 _ACEOF
14291 if ac_fn_cxx_try_link "$LINENO"; then :
14292
14293 lt_aix_libpath_sed='
14294 /Import File Strings/,/^$/ {
14295 /^0/ {
14296 s/^0 *\(.*\)$/\1/
14297 p
14298 }
14299 }'
14300 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14301 # Check for a 64-bit object if we didn't find anything.
14302 if test -z "$aix_libpath"; then
14303 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14304 fi
14305 fi
14306 rm -f core conftest.err conftest.$ac_objext \
14307 conftest$ac_exeext conftest.$ac_ext
14308 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14309
14310 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14311 # Warning - without using the other run time loading flags,
14312 # -berok will link without error, but may produce a broken library.
14313 no_undefined_flag_CXX=' ${wl}-bernotok'
14314 allow_undefined_flag_CXX=' ${wl}-berok'
14315 # Exported symbols can be pulled into shared objects from archives
14316 whole_archive_flag_spec_CXX='$convenience'
14317 archive_cmds_need_lc_CXX=yes
14318 # This is similar to how AIX traditionally builds its shared
14319 # libraries.
14320 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'
14321 fi
14322 fi
14323 ;;
14324
14325 beos*)
14326 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14327 allow_undefined_flag_CXX=unsupported
14328 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14329 # support --undefined. This deserves some investigation. FIXME
14330 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14331 else
14332 ld_shlibs_CXX=no
14333 fi
14334 ;;
14335
14336 chorus*)
14337 case $cc_basename in
14338 *)
14339 # FIXME: insert proper C++ library support
14340 ld_shlibs_CXX=no
14341 ;;
14342 esac
14343 ;;
14344
14345 cygwin* | mingw* | pw32* | cegcc*)
14346 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14347 # as there is no search path for DLLs.
14348 hardcode_libdir_flag_spec_CXX='-L$libdir'
14349 allow_undefined_flag_CXX=unsupported
14350 always_export_symbols_CXX=no
14351 enable_shared_with_static_runtimes_CXX=yes
14352
14353 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14354 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'
14355 # If the export-symbols file already is a .def file (1st line
14356 # is EXPORTS), use it as is; otherwise, prepend...
14357 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14358 cp $export_symbols $output_objdir/$soname.def;
14359 else
14360 echo EXPORTS > $output_objdir/$soname.def;
14361 cat $export_symbols >> $output_objdir/$soname.def;
14362 fi~
14363 $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'
14364 else
14365 ld_shlibs_CXX=no
14366 fi
14367 ;;
14368 darwin* | rhapsody*)
14369
14370
14371 archive_cmds_need_lc_CXX=no
14372 hardcode_direct_CXX=no
14373 hardcode_automatic_CXX=yes
14374 hardcode_shlibpath_var_CXX=unsupported
14375 whole_archive_flag_spec_CXX=''
14376 link_all_deplibs_CXX=yes
14377 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14378 case $cc_basename in
14379 ifort*) _lt_dar_can_shared=yes ;;
14380 *) _lt_dar_can_shared=$GCC ;;
14381 esac
14382 if test "$_lt_dar_can_shared" = "yes"; then
14383 output_verbose_link_cmd=echo
14384 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}"
14385 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14386 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}"
14387 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}"
14388 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14389 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}"
14390 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}"
14391 fi
14392
14393 else
14394 ld_shlibs_CXX=no
14395 fi
14396
14397 ;;
14398
14399 dgux*)
14400 case $cc_basename in
14401 ec++*)
14402 # FIXME: insert proper C++ library support
14403 ld_shlibs_CXX=no
14404 ;;
14405 ghcx*)
14406 # Green Hills C++ Compiler
14407 # FIXME: insert proper C++ library support
14408 ld_shlibs_CXX=no
14409 ;;
14410 *)
14411 # FIXME: insert proper C++ library support
14412 ld_shlibs_CXX=no
14413 ;;
14414 esac
14415 ;;
14416
14417 freebsd[12]*)
14418 # C++ shared libraries reported to be fairly broken before
14419 # switch to ELF
14420 ld_shlibs_CXX=no
14421 ;;
14422
14423 freebsd-elf*)
14424 archive_cmds_need_lc_CXX=no
14425 ;;
14426
14427 freebsd* | dragonfly*)
14428 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14429 # conventions
14430 ld_shlibs_CXX=yes
14431 ;;
14432
14433 gnu*)
14434 ;;
14435
14436 hpux9*)
14437 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14438 hardcode_libdir_separator_CXX=:
14439 export_dynamic_flag_spec_CXX='${wl}-E'
14440 hardcode_direct_CXX=yes
14441 hardcode_minus_L_CXX=yes # Not in the search PATH,
14442 # but as the default
14443 # location of the library.
14444
14445 case $cc_basename in
14446 CC*)
14447 # FIXME: insert proper C++ library support
14448 ld_shlibs_CXX=no
14449 ;;
14450 aCC*)
14451 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'
14452 # Commands to make compiler produce verbose output that lists
14453 # what "hidden" libraries, object files and flags are used when
14454 # linking a shared library.
14455 #
14456 # There doesn't appear to be a way to prevent this compiler from
14457 # explicitly linking system object files so we need to strip them
14458 # from the output so that they don't get included in the library
14459 # dependencies.
14460 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; $ECHO "X$list" | $Xsed'
14461 ;;
14462 *)
14463 if test "$GXX" = yes; then
14464 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'
14465 else
14466 # FIXME: insert proper C++ library support
14467 ld_shlibs_CXX=no
14468 fi
14469 ;;
14470 esac
14471 ;;
14472
14473 hpux10*|hpux11*)
14474 if test $with_gnu_ld = no; then
14475 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14476 hardcode_libdir_separator_CXX=:
14477
14478 case $host_cpu in
14479 hppa*64*|ia64*)
14480 ;;
14481 *)
14482 export_dynamic_flag_spec_CXX='${wl}-E'
14483 ;;
14484 esac
14485 fi
14486 case $host_cpu in
14487 hppa*64*|ia64*)
14488 hardcode_direct_CXX=no
14489 hardcode_shlibpath_var_CXX=no
14490 ;;
14491 *)
14492 hardcode_direct_CXX=yes
14493 hardcode_direct_absolute_CXX=yes
14494 hardcode_minus_L_CXX=yes # Not in the search PATH,
14495 # but as the default
14496 # location of the library.
14497 ;;
14498 esac
14499
14500 case $cc_basename in
14501 CC*)
14502 # FIXME: insert proper C++ library support
14503 ld_shlibs_CXX=no
14504 ;;
14505 aCC*)
14506 case $host_cpu in
14507 hppa*64*)
14508 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14509 ;;
14510 ia64*)
14511 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14512 ;;
14513 *)
14514 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14515 ;;
14516 esac
14517 # Commands to make compiler produce verbose output that lists
14518 # what "hidden" libraries, object files and flags are used when
14519 # linking a shared library.
14520 #
14521 # There doesn't appear to be a way to prevent this compiler from
14522 # explicitly linking system object files so we need to strip them
14523 # from the output so that they don't get included in the library
14524 # dependencies.
14525 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; $ECHO "X$list" | $Xsed'
14526 ;;
14527 *)
14528 if test "$GXX" = yes; then
14529 if test $with_gnu_ld = no; then
14530 case $host_cpu in
14531 hppa*64*)
14532 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14533 ;;
14534 ia64*)
14535 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14536 ;;
14537 *)
14538 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'
14539 ;;
14540 esac
14541 fi
14542 else
14543 # FIXME: insert proper C++ library support
14544 ld_shlibs_CXX=no
14545 fi
14546 ;;
14547 esac
14548 ;;
14549
14550 interix[3-9]*)
14551 hardcode_direct_CXX=no
14552 hardcode_shlibpath_var_CXX=no
14553 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14554 export_dynamic_flag_spec_CXX='${wl}-E'
14555 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14556 # Instead, shared libraries are loaded at an image base (0x10000000 by
14557 # default) and relocated if they conflict, which is a slow very memory
14558 # consuming and fragmenting process. To avoid this, we pick a random,
14559 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14560 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14561 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'
14562 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'
14563 ;;
14564 irix5* | irix6*)
14565 case $cc_basename in
14566 CC*)
14567 # SGI C++
14568 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14569
14570 # Archives containing C++ object files must be created using
14571 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14572 # necessary to make sure instantiated templates are included
14573 # in the archive.
14574 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14575 ;;
14576 *)
14577 if test "$GXX" = yes; then
14578 if test "$with_gnu_ld" = no; then
14579 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14580 else
14581 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
14582 fi
14583 fi
14584 link_all_deplibs_CXX=yes
14585 ;;
14586 esac
14587 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14588 hardcode_libdir_separator_CXX=:
14589 inherit_rpath_CXX=yes
14590 ;;
14591
14592 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14593 case $cc_basename in
14594 KCC*)
14595 # Kuck and Associates, Inc. (KAI) C++ Compiler
14596
14597 # KCC will only create a shared library if the output file
14598 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14599 # to its proper name (with version) after linking.
14600 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'
14601 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'
14602 # Commands to make compiler produce verbose output that lists
14603 # what "hidden" libraries, object files and flags are used when
14604 # linking a shared library.
14605 #
14606 # There doesn't appear to be a way to prevent this compiler from
14607 # explicitly linking system object files so we need to strip them
14608 # from the output so that they don't get included in the library
14609 # dependencies.
14610 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; $ECHO "X$list" | $Xsed'
14611
14612 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14613 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14614
14615 # Archives containing C++ object files must be created using
14616 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14617 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14618 ;;
14619 icpc* | ecpc* )
14620 # Intel C++
14621 with_gnu_ld=yes
14622 # version 8.0 and above of icpc choke on multiply defined symbols
14623 # if we add $predep_objects and $postdep_objects, however 7.1 and
14624 # earlier do not add the objects themselves.
14625 case `$CC -V 2>&1` in
14626 *"Version 7."*)
14627 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14628 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'
14629 ;;
14630 *) # Version 8.0 or newer
14631 tmp_idyn=
14632 case $host_cpu in
14633 ia64*) tmp_idyn=' -i_dynamic';;
14634 esac
14635 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14636 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'
14637 ;;
14638 esac
14639 archive_cmds_need_lc_CXX=no
14640 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14641 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14642 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14643 ;;
14644 pgCC* | pgcpp*)
14645 # Portland Group C++ compiler
14646 case `$CC -V` in
14647 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14648 prelink_cmds_CXX='tpldir=Template.dir~
14649 rm -rf $tpldir~
14650 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14651 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14652 old_archive_cmds_CXX='tpldir=Template.dir~
14653 rm -rf $tpldir~
14654 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14655 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14656 $RANLIB $oldlib'
14657 archive_cmds_CXX='tpldir=Template.dir~
14658 rm -rf $tpldir~
14659 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14660 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14661 archive_expsym_cmds_CXX='tpldir=Template.dir~
14662 rm -rf $tpldir~
14663 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14664 $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'
14665 ;;
14666 *) # Version 6 will use weak symbols
14667 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14668 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'
14669 ;;
14670 esac
14671
14672 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14673 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14674 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
14675 ;;
14676 cxx*)
14677 # Compaq C++
14678 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14679 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'
14680
14681 runpath_var=LD_RUN_PATH
14682 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14683 hardcode_libdir_separator_CXX=:
14684
14685 # Commands to make compiler produce verbose output that lists
14686 # what "hidden" libraries, object files and flags are used when
14687 # linking a shared library.
14688 #
14689 # There doesn't appear to be a way to prevent this compiler from
14690 # explicitly linking system object files so we need to strip them
14691 # from the output so that they don't get included in the library
14692 # dependencies.
14693 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14694 ;;
14695 xl*)
14696 # IBM XL 8.0 on PPC, with GNU ld
14697 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14698 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14699 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14700 if test "x$supports_anon_versioning" = xyes; then
14701 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14702 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14703 echo "local: *; };" >> $output_objdir/$libname.ver~
14704 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14705 fi
14706 ;;
14707 *)
14708 case `$CC -V 2>&1 | sed 5q` in
14709 *Sun\ C*)
14710 # Sun C++ 5.9
14711 no_undefined_flag_CXX=' -zdefs'
14712 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14713 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'
14714 hardcode_libdir_flag_spec_CXX='-R$libdir'
14715 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
14716 compiler_needs_object_CXX=yes
14717
14718 # Not sure whether something based on
14719 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14720 # would be better.
14721 output_verbose_link_cmd='echo'
14722
14723 # Archives containing C++ object files must be created using
14724 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14725 # necessary to make sure instantiated templates are included
14726 # in the archive.
14727 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14728 ;;
14729 esac
14730 ;;
14731 esac
14732 ;;
14733
14734 lynxos*)
14735 # FIXME: insert proper C++ library support
14736 ld_shlibs_CXX=no
14737 ;;
14738
14739 m88k*)
14740 # FIXME: insert proper C++ library support
14741 ld_shlibs_CXX=no
14742 ;;
14743
14744 mvs*)
14745 case $cc_basename in
14746 cxx*)
14747 # FIXME: insert proper C++ library support
14748 ld_shlibs_CXX=no
14749 ;;
14750 *)
14751 # FIXME: insert proper C++ library support
14752 ld_shlibs_CXX=no
14753 ;;
14754 esac
14755 ;;
14756
14757 netbsd*)
14758 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14759 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14760 wlarc=
14761 hardcode_libdir_flag_spec_CXX='-R$libdir'
14762 hardcode_direct_CXX=yes
14763 hardcode_shlibpath_var_CXX=no
14764 fi
14765 # Workaround some broken pre-1.5 toolchains
14766 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14767 ;;
14768
14769 *nto* | *qnx*)
14770 ld_shlibs_CXX=yes
14771 ;;
14772
14773 openbsd2*)
14774 # C++ shared libraries are fairly broken
14775 ld_shlibs_CXX=no
14776 ;;
14777
14778 openbsd*)
14779 if test -f /usr/libexec/ld.so; then
14780 hardcode_direct_CXX=yes
14781 hardcode_shlibpath_var_CXX=no
14782 hardcode_direct_absolute_CXX=yes
14783 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14784 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14785 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14786 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14787 export_dynamic_flag_spec_CXX='${wl}-E'
14788 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14789 fi
14790 output_verbose_link_cmd=echo
14791 else
14792 ld_shlibs_CXX=no
14793 fi
14794 ;;
14795
14796 osf3* | osf4* | osf5*)
14797 case $cc_basename in
14798 KCC*)
14799 # Kuck and Associates, Inc. (KAI) C++ Compiler
14800
14801 # KCC will only create a shared library if the output file
14802 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14803 # to its proper name (with version) after linking.
14804 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'
14805
14806 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14807 hardcode_libdir_separator_CXX=:
14808
14809 # Archives containing C++ object files must be created using
14810 # the KAI C++ compiler.
14811 case $host in
14812 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14813 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14814 esac
14815 ;;
14816 RCC*)
14817 # Rational C++ 2.4.1
14818 # FIXME: insert proper C++ library support
14819 ld_shlibs_CXX=no
14820 ;;
14821 cxx*)
14822 case $host in
14823 osf3*)
14824 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14825 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14826 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14827 ;;
14828 *)
14829 allow_undefined_flag_CXX=' -expect_unresolved \*'
14830 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14831 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14832 echo "-hidden">> $lib.exp~
14833 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
14834 $RM $lib.exp'
14835 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14836 ;;
14837 esac
14838
14839 hardcode_libdir_separator_CXX=:
14840
14841 # Commands to make compiler produce verbose output that lists
14842 # what "hidden" libraries, object files and flags are used when
14843 # linking a shared library.
14844 #
14845 # There doesn't appear to be a way to prevent this compiler from
14846 # explicitly linking system object files so we need to strip them
14847 # from the output so that they don't get included in the library
14848 # dependencies.
14849 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14850 ;;
14851 *)
14852 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14853 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14854 case $host in
14855 osf3*)
14856 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14857 ;;
14858 *)
14859 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" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14860 ;;
14861 esac
14862
14863 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14864 hardcode_libdir_separator_CXX=:
14865
14866 # Commands to make compiler produce verbose output that lists
14867 # what "hidden" libraries, object files and flags are used when
14868 # linking a shared library.
14869 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
14870
14871 else
14872 # FIXME: insert proper C++ library support
14873 ld_shlibs_CXX=no
14874 fi
14875 ;;
14876 esac
14877 ;;
14878
14879 psos*)
14880 # FIXME: insert proper C++ library support
14881 ld_shlibs_CXX=no
14882 ;;
14883
14884 sunos4*)
14885 case $cc_basename in
14886 CC*)
14887 # Sun C++ 4.x
14888 # FIXME: insert proper C++ library support
14889 ld_shlibs_CXX=no
14890 ;;
14891 lcc*)
14892 # Lucid
14893 # FIXME: insert proper C++ library support
14894 ld_shlibs_CXX=no
14895 ;;
14896 *)
14897 # FIXME: insert proper C++ library support
14898 ld_shlibs_CXX=no
14899 ;;
14900 esac
14901 ;;
14902
14903 solaris*)
14904 case $cc_basename in
14905 CC*)
14906 # Sun C++ 4.2, 5.x and Centerline C++
14907 archive_cmds_need_lc_CXX=yes
14908 no_undefined_flag_CXX=' -zdefs'
14909 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14910 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14911 $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'
14912
14913 hardcode_libdir_flag_spec_CXX='-R$libdir'
14914 hardcode_shlibpath_var_CXX=no
14915 case $host_os in
14916 solaris2.[0-5] | solaris2.[0-5].*) ;;
14917 *)
14918 # The compiler driver will combine and reorder linker options,
14919 # but understands `-z linker_flag'.
14920 # Supported since Solaris 2.6 (maybe 2.5.1?)
14921 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14922 ;;
14923 esac
14924 link_all_deplibs_CXX=yes
14925
14926 output_verbose_link_cmd='echo'
14927
14928 # Archives containing C++ object files must be created using
14929 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14930 # necessary to make sure instantiated templates are included
14931 # in the archive.
14932 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14933 ;;
14934 gcx*)
14935 # Green Hills C++ Compiler
14936 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14937
14938 # The C++ compiler must be used to create the archive.
14939 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14940 ;;
14941 *)
14942 # GNU C++ compiler with Solaris linker
14943 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14944 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14945 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14946 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14947 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14948 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14949
14950 # Commands to make compiler produce verbose output that lists
14951 # what "hidden" libraries, object files and flags are used when
14952 # linking a shared library.
14953 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
14954 else
14955 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14956 # platform.
14957 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14958 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14959 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14960
14961 # Commands to make compiler produce verbose output that lists
14962 # what "hidden" libraries, object files and flags are used when
14963 # linking a shared library.
14964 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
14965 fi
14966
14967 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14968 case $host_os in
14969 solaris2.[0-5] | solaris2.[0-5].*) ;;
14970 *)
14971 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14972 ;;
14973 esac
14974 fi
14975 ;;
14976 esac
14977 ;;
14978
14979 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14980 no_undefined_flag_CXX='${wl}-z,text'
14981 archive_cmds_need_lc_CXX=no
14982 hardcode_shlibpath_var_CXX=no
14983 runpath_var='LD_RUN_PATH'
14984
14985 case $cc_basename in
14986 CC*)
14987 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14988 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14989 ;;
14990 *)
14991 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14992 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14993 ;;
14994 esac
14995 ;;
14996
14997 sysv5* | sco3.2v5* | sco5v6*)
14998 # Note: We can NOT use -z defs as we might desire, because we do not
14999 # link with -lc, and that would cause any symbols used from libc to
15000 # always be unresolved, which means just about no library would
15001 # ever link correctly. If we're not using GNU ld we use -z text
15002 # though, which does catch some bad symbols but isn't as heavy-handed
15003 # as -z defs.
15004 no_undefined_flag_CXX='${wl}-z,text'
15005 allow_undefined_flag_CXX='${wl}-z,nodefs'
15006 archive_cmds_need_lc_CXX=no
15007 hardcode_shlibpath_var_CXX=no
15008 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15009 hardcode_libdir_separator_CXX=':'
15010 link_all_deplibs_CXX=yes
15011 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15012 runpath_var='LD_RUN_PATH'
15013
15014 case $cc_basename in
15015 CC*)
15016 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15017 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15018 ;;
15019 *)
15020 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15021 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15022 ;;
15023 esac
15024 ;;
15025
15026 tandem*)
15027 case $cc_basename in
15028 NCC*)
15029 # NonStop-UX NCC 3.20
15030 # FIXME: insert proper C++ library support
15031 ld_shlibs_CXX=no
15032 ;;
15033 *)
15034 # FIXME: insert proper C++ library support
15035 ld_shlibs_CXX=no
15036 ;;
15037 esac
15038 ;;
15039
15040 vxworks*)
15041 # FIXME: insert proper C++ library support
15042 ld_shlibs_CXX=no
15043 ;;
15044
15045 *)
15046 # FIXME: insert proper C++ library support
15047 ld_shlibs_CXX=no
15048 ;;
15049 esac
15050
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15052 $as_echo "$ld_shlibs_CXX" >&6; }
15053 test "$ld_shlibs_CXX" = no && can_build_shared=no
15054
15055 GCC_CXX="$GXX"
15056 LD_CXX="$LD"
15057
15058 ## CAVEAT EMPTOR:
15059 ## There is no encapsulation within the following macros, do not change
15060 ## the running order or otherwise move them around unless you know exactly
15061 ## what you are doing...
15062 # Dependencies to place before and after the object being linked:
15063 predep_objects_CXX=
15064 postdep_objects_CXX=
15065 predeps_CXX=
15066 postdeps_CXX=
15067 compiler_lib_search_path_CXX=
15068
15069 cat > conftest.$ac_ext <<_LT_EOF
15070 class Foo
15071 {
15072 public:
15073 Foo (void) { a = 0; }
15074 private:
15075 int a;
15076 };
15077 _LT_EOF
15078
15079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15080 (eval $ac_compile) 2>&5
15081 ac_status=$?
15082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15083 test $ac_status = 0; }; then
15084 # Parse the compiler output and extract the necessary
15085 # objects, libraries and library flags.
15086
15087 # Sentinel used to keep track of whether or not we are before
15088 # the conftest object file.
15089 pre_test_object_deps_done=no
15090
15091 for p in `eval "$output_verbose_link_cmd"`; do
15092 case $p in
15093
15094 -L* | -R* | -l*)
15095 # Some compilers place space between "-{L,R}" and the path.
15096 # Remove the space.
15097 if test $p = "-L" ||
15098 test $p = "-R"; then
15099 prev=$p
15100 continue
15101 else
15102 prev=
15103 fi
15104
15105 if test "$pre_test_object_deps_done" = no; then
15106 case $p in
15107 -L* | -R*)
15108 # Internal compiler library paths should come after those
15109 # provided the user. The postdeps already come after the
15110 # user supplied libs so there is no need to process them.
15111 if test -z "$compiler_lib_search_path_CXX"; then
15112 compiler_lib_search_path_CXX="${prev}${p}"
15113 else
15114 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15115 fi
15116 ;;
15117 # The "-l" case would never come before the object being
15118 # linked, so don't bother handling this case.
15119 esac
15120 else
15121 if test -z "$postdeps_CXX"; then
15122 postdeps_CXX="${prev}${p}"
15123 else
15124 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15125 fi
15126 fi
15127 ;;
15128
15129 *.$objext)
15130 # This assumes that the test object file only shows up
15131 # once in the compiler output.
15132 if test "$p" = "conftest.$objext"; then
15133 pre_test_object_deps_done=yes
15134 continue
15135 fi
15136
15137 if test "$pre_test_object_deps_done" = no; then
15138 if test -z "$predep_objects_CXX"; then
15139 predep_objects_CXX="$p"
15140 else
15141 predep_objects_CXX="$predep_objects_CXX $p"
15142 fi
15143 else
15144 if test -z "$postdep_objects_CXX"; then
15145 postdep_objects_CXX="$p"
15146 else
15147 postdep_objects_CXX="$postdep_objects_CXX $p"
15148 fi
15149 fi
15150 ;;
15151
15152 *) ;; # Ignore the rest.
15153
15154 esac
15155 done
15156
15157 # Clean up.
15158 rm -f a.out a.exe
15159 else
15160 echo "libtool.m4: error: problem compiling CXX test program"
15161 fi
15162
15163 $RM -f confest.$objext
15164
15165 # PORTME: override above test on systems where it is broken
15166 case $host_os in
15167 interix[3-9]*)
15168 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15169 # hack all around it, let's just trust "g++" to DTRT.
15170 predep_objects_CXX=
15171 postdep_objects_CXX=
15172 postdeps_CXX=
15173 ;;
15174
15175 linux*)
15176 case `$CC -V 2>&1 | sed 5q` in
15177 *Sun\ C*)
15178 # Sun C++ 5.9
15179
15180 # The more standards-conforming stlport4 library is
15181 # incompatible with the Cstd library. Avoid specifying
15182 # it if it's in CXXFLAGS. Ignore libCrun as
15183 # -library=stlport4 depends on it.
15184 case " $CXX $CXXFLAGS " in
15185 *" -library=stlport4 "*)
15186 solaris_use_stlport4=yes
15187 ;;
15188 esac
15189
15190 if test "$solaris_use_stlport4" != yes; then
15191 postdeps_CXX='-library=Cstd -library=Crun'
15192 fi
15193 ;;
15194 esac
15195 ;;
15196
15197 solaris*)
15198 case $cc_basename in
15199 CC*)
15200 # The more standards-conforming stlport4 library is
15201 # incompatible with the Cstd library. Avoid specifying
15202 # it if it's in CXXFLAGS. Ignore libCrun as
15203 # -library=stlport4 depends on it.
15204 case " $CXX $CXXFLAGS " in
15205 *" -library=stlport4 "*)
15206 solaris_use_stlport4=yes
15207 ;;
15208 esac
15209
15210 # Adding this requires a known-good setup of shared libraries for
15211 # Sun compiler versions before 5.6, else PIC objects from an old
15212 # archive will be linked into the output, leading to subtle bugs.
15213 if test "$solaris_use_stlport4" != yes; then
15214 postdeps_CXX='-library=Cstd -library=Crun'
15215 fi
15216 ;;
15217 esac
15218 ;;
15219 esac
15220
15221
15222 case " $postdeps_CXX " in
15223 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15224 esac
15225 compiler_lib_search_dirs_CXX=
15226 if test -n "${compiler_lib_search_path_CXX}"; then
15227 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15228 fi
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
15259
15260 lt_prog_compiler_wl_CXX=
15261 lt_prog_compiler_pic_CXX=
15262 lt_prog_compiler_static_CXX=
15263
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15265 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15266
15267 # C++ specific cases for pic, static, wl, etc.
15268 if test "$GXX" = yes; then
15269 lt_prog_compiler_wl_CXX='-Wl,'
15270 lt_prog_compiler_static_CXX='-static'
15271
15272 case $host_os in
15273 aix*)
15274 # All AIX code is PIC.
15275 if test "$host_cpu" = ia64; then
15276 # AIX 5 now supports IA64 processor
15277 lt_prog_compiler_static_CXX='-Bstatic'
15278 fi
15279 ;;
15280
15281 amigaos*)
15282 case $host_cpu in
15283 powerpc)
15284 # see comment about AmigaOS4 .so support
15285 lt_prog_compiler_pic_CXX='-fPIC'
15286 ;;
15287 m68k)
15288 # FIXME: we need at least 68020 code to build shared libraries, but
15289 # adding the `-m68020' flag to GCC prevents building anything better,
15290 # like `-m68040'.
15291 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15292 ;;
15293 esac
15294 ;;
15295
15296 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15297 # PIC is the default for these OSes.
15298 ;;
15299 mingw* | cygwin* | os2* | pw32* | cegcc*)
15300 # This hack is so that the source file can tell whether it is being
15301 # built for inclusion in a dll (and should export symbols for example).
15302 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15303 # (--disable-auto-import) libraries
15304 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15305 ;;
15306 darwin* | rhapsody*)
15307 # PIC is the default on this platform
15308 # Common symbols not allowed in MH_DYLIB files
15309 lt_prog_compiler_pic_CXX='-fno-common'
15310 ;;
15311 *djgpp*)
15312 # DJGPP does not support shared libraries at all
15313 lt_prog_compiler_pic_CXX=
15314 ;;
15315 interix[3-9]*)
15316 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15317 # Instead, we relocate shared libraries at runtime.
15318 ;;
15319 sysv4*MP*)
15320 if test -d /usr/nec; then
15321 lt_prog_compiler_pic_CXX=-Kconform_pic
15322 fi
15323 ;;
15324 hpux*)
15325 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15326 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15327 # sets the default TLS model and affects inlining.
15328 case $host_cpu in
15329 hppa*64*)
15330 ;;
15331 *)
15332 lt_prog_compiler_pic_CXX='-fPIC'
15333 ;;
15334 esac
15335 ;;
15336 *qnx* | *nto*)
15337 # QNX uses GNU C++, but need to define -shared option too, otherwise
15338 # it will coredump.
15339 lt_prog_compiler_pic_CXX='-fPIC -shared'
15340 ;;
15341 *)
15342 lt_prog_compiler_pic_CXX='-fPIC'
15343 ;;
15344 esac
15345 else
15346 case $host_os in
15347 aix[4-9]*)
15348 # All AIX code is PIC.
15349 if test "$host_cpu" = ia64; then
15350 # AIX 5 now supports IA64 processor
15351 lt_prog_compiler_static_CXX='-Bstatic'
15352 else
15353 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15354 fi
15355 ;;
15356 chorus*)
15357 case $cc_basename in
15358 cxch68*)
15359 # Green Hills C++ Compiler
15360 # _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"
15361 ;;
15362 esac
15363 ;;
15364 dgux*)
15365 case $cc_basename in
15366 ec++*)
15367 lt_prog_compiler_pic_CXX='-KPIC'
15368 ;;
15369 ghcx*)
15370 # Green Hills C++ Compiler
15371 lt_prog_compiler_pic_CXX='-pic'
15372 ;;
15373 *)
15374 ;;
15375 esac
15376 ;;
15377 freebsd* | dragonfly*)
15378 # FreeBSD uses GNU C++
15379 ;;
15380 hpux9* | hpux10* | hpux11*)
15381 case $cc_basename in
15382 CC*)
15383 lt_prog_compiler_wl_CXX='-Wl,'
15384 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15385 if test "$host_cpu" != ia64; then
15386 lt_prog_compiler_pic_CXX='+Z'
15387 fi
15388 ;;
15389 aCC*)
15390 lt_prog_compiler_wl_CXX='-Wl,'
15391 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15392 case $host_cpu in
15393 hppa*64*|ia64*)
15394 # +Z the default
15395 ;;
15396 *)
15397 lt_prog_compiler_pic_CXX='+Z'
15398 ;;
15399 esac
15400 ;;
15401 *)
15402 ;;
15403 esac
15404 ;;
15405 interix*)
15406 # This is c89, which is MS Visual C++ (no shared libs)
15407 # Anyone wants to do a port?
15408 ;;
15409 irix5* | irix6* | nonstopux*)
15410 case $cc_basename in
15411 CC*)
15412 lt_prog_compiler_wl_CXX='-Wl,'
15413 lt_prog_compiler_static_CXX='-non_shared'
15414 # CC pic flag -KPIC is the default.
15415 ;;
15416 *)
15417 ;;
15418 esac
15419 ;;
15420 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15421 case $cc_basename in
15422 KCC*)
15423 # KAI C++ Compiler
15424 lt_prog_compiler_wl_CXX='--backend -Wl,'
15425 lt_prog_compiler_pic_CXX='-fPIC'
15426 ;;
15427 ecpc* )
15428 # old Intel C++ for x86_64 which still supported -KPIC.
15429 lt_prog_compiler_wl_CXX='-Wl,'
15430 lt_prog_compiler_pic_CXX='-KPIC'
15431 lt_prog_compiler_static_CXX='-static'
15432 ;;
15433 icpc* )
15434 # Intel C++, used to be incompatible with GCC.
15435 # ICC 10 doesn't accept -KPIC any more.
15436 lt_prog_compiler_wl_CXX='-Wl,'
15437 lt_prog_compiler_pic_CXX='-fPIC'
15438 lt_prog_compiler_static_CXX='-static'
15439 ;;
15440 pgCC* | pgcpp*)
15441 # Portland Group C++ compiler
15442 lt_prog_compiler_wl_CXX='-Wl,'
15443 lt_prog_compiler_pic_CXX='-fpic'
15444 lt_prog_compiler_static_CXX='-Bstatic'
15445 ;;
15446 cxx*)
15447 # Compaq C++
15448 # Make sure the PIC flag is empty. It appears that all Alpha
15449 # Linux and Compaq Tru64 Unix objects are PIC.
15450 lt_prog_compiler_pic_CXX=
15451 lt_prog_compiler_static_CXX='-non_shared'
15452 ;;
15453 xlc* | xlC*)
15454 # IBM XL 8.0 on PPC
15455 lt_prog_compiler_wl_CXX='-Wl,'
15456 lt_prog_compiler_pic_CXX='-qpic'
15457 lt_prog_compiler_static_CXX='-qstaticlink'
15458 ;;
15459 *)
15460 case `$CC -V 2>&1 | sed 5q` in
15461 *Sun\ C*)
15462 # Sun C++ 5.9
15463 lt_prog_compiler_pic_CXX='-KPIC'
15464 lt_prog_compiler_static_CXX='-Bstatic'
15465 lt_prog_compiler_wl_CXX='-Qoption ld '
15466 ;;
15467 esac
15468 ;;
15469 esac
15470 ;;
15471 lynxos*)
15472 ;;
15473 m88k*)
15474 ;;
15475 mvs*)
15476 case $cc_basename in
15477 cxx*)
15478 lt_prog_compiler_pic_CXX='-W c,exportall'
15479 ;;
15480 *)
15481 ;;
15482 esac
15483 ;;
15484 netbsd*)
15485 ;;
15486 *qnx* | *nto*)
15487 # QNX uses GNU C++, but need to define -shared option too, otherwise
15488 # it will coredump.
15489 lt_prog_compiler_pic_CXX='-fPIC -shared'
15490 ;;
15491 osf3* | osf4* | osf5*)
15492 case $cc_basename in
15493 KCC*)
15494 lt_prog_compiler_wl_CXX='--backend -Wl,'
15495 ;;
15496 RCC*)
15497 # Rational C++ 2.4.1
15498 lt_prog_compiler_pic_CXX='-pic'
15499 ;;
15500 cxx*)
15501 # Digital/Compaq C++
15502 lt_prog_compiler_wl_CXX='-Wl,'
15503 # Make sure the PIC flag is empty. It appears that all Alpha
15504 # Linux and Compaq Tru64 Unix objects are PIC.
15505 lt_prog_compiler_pic_CXX=
15506 lt_prog_compiler_static_CXX='-non_shared'
15507 ;;
15508 *)
15509 ;;
15510 esac
15511 ;;
15512 psos*)
15513 ;;
15514 solaris*)
15515 case $cc_basename in
15516 CC*)
15517 # Sun C++ 4.2, 5.x and Centerline C++
15518 lt_prog_compiler_pic_CXX='-KPIC'
15519 lt_prog_compiler_static_CXX='-Bstatic'
15520 lt_prog_compiler_wl_CXX='-Qoption ld '
15521 ;;
15522 gcx*)
15523 # Green Hills C++ Compiler
15524 lt_prog_compiler_pic_CXX='-PIC'
15525 ;;
15526 *)
15527 ;;
15528 esac
15529 ;;
15530 sunos4*)
15531 case $cc_basename in
15532 CC*)
15533 # Sun C++ 4.x
15534 lt_prog_compiler_pic_CXX='-pic'
15535 lt_prog_compiler_static_CXX='-Bstatic'
15536 ;;
15537 lcc*)
15538 # Lucid
15539 lt_prog_compiler_pic_CXX='-pic'
15540 ;;
15541 *)
15542 ;;
15543 esac
15544 ;;
15545 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15546 case $cc_basename in
15547 CC*)
15548 lt_prog_compiler_wl_CXX='-Wl,'
15549 lt_prog_compiler_pic_CXX='-KPIC'
15550 lt_prog_compiler_static_CXX='-Bstatic'
15551 ;;
15552 esac
15553 ;;
15554 tandem*)
15555 case $cc_basename in
15556 NCC*)
15557 # NonStop-UX NCC 3.20
15558 lt_prog_compiler_pic_CXX='-KPIC'
15559 ;;
15560 *)
15561 ;;
15562 esac
15563 ;;
15564 vxworks*)
15565 ;;
15566 *)
15567 lt_prog_compiler_can_build_shared_CXX=no
15568 ;;
15569 esac
15570 fi
15571
15572 case $host_os in
15573 # For platforms which do not support PIC, -DPIC is meaningless:
15574 *djgpp*)
15575 lt_prog_compiler_pic_CXX=
15576 ;;
15577 *)
15578 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15579 ;;
15580 esac
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15582 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15583
15584
15585
15586 #
15587 # Check to make sure the PIC flag actually works.
15588 #
15589 if test -n "$lt_prog_compiler_pic_CXX"; then
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15591 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15592 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15593 $as_echo_n "(cached) " >&6
15594 else
15595 lt_cv_prog_compiler_pic_works_CXX=no
15596 ac_outfile=conftest.$ac_objext
15597 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15598 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15599 # Insert the option either (1) after the last *FLAGS variable, or
15600 # (2) before a word containing "conftest.", or (3) at the end.
15601 # Note that $ac_compile itself does not contain backslashes and begins
15602 # with a dollar sign (not a hyphen), so the echo should work correctly.
15603 # The option is referenced via a variable to avoid confusing sed.
15604 lt_compile=`echo "$ac_compile" | $SED \
15605 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15607 -e 's:$: $lt_compiler_flag:'`
15608 (eval echo "\"\$as_me:15608: $lt_compile\"" >&5)
15609 (eval "$lt_compile" 2>conftest.err)
15610 ac_status=$?
15611 cat conftest.err >&5
15612 echo "$as_me:15612: \$? = $ac_status" >&5
15613 if (exit $ac_status) && test -s "$ac_outfile"; then
15614 # The compiler can only warn and ignore the option if not recognized
15615 # So say no if there are warnings other than the usual output.
15616 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15617 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15618 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15619 lt_cv_prog_compiler_pic_works_CXX=yes
15620 fi
15621 fi
15622 $RM conftest*
15623
15624 fi
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15626 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15627
15628 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15629 case $lt_prog_compiler_pic_CXX in
15630 "" | " "*) ;;
15631 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15632 esac
15633 else
15634 lt_prog_compiler_pic_CXX=
15635 lt_prog_compiler_can_build_shared_CXX=no
15636 fi
15637
15638 fi
15639
15640
15641
15642 #
15643 # Check to make sure the static flag actually works.
15644 #
15645 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15647 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15648 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15649 $as_echo_n "(cached) " >&6
15650 else
15651 lt_cv_prog_compiler_static_works_CXX=no
15652 save_LDFLAGS="$LDFLAGS"
15653 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15654 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15655 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15656 # The linker can only warn and ignore the option if not recognized
15657 # So say no if there are warnings
15658 if test -s conftest.err; then
15659 # Append any errors to the config.log.
15660 cat conftest.err 1>&5
15661 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15662 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15663 if diff conftest.exp conftest.er2 >/dev/null; then
15664 lt_cv_prog_compiler_static_works_CXX=yes
15665 fi
15666 else
15667 lt_cv_prog_compiler_static_works_CXX=yes
15668 fi
15669 fi
15670 $RM -r conftest*
15671 LDFLAGS="$save_LDFLAGS"
15672
15673 fi
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15675 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15676
15677 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15678 :
15679 else
15680 lt_prog_compiler_static_CXX=
15681 fi
15682
15683
15684
15685
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15687 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15688 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15689 $as_echo_n "(cached) " >&6
15690 else
15691 lt_cv_prog_compiler_c_o_CXX=no
15692 $RM -r conftest 2>/dev/null
15693 mkdir conftest
15694 cd conftest
15695 mkdir out
15696 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15697
15698 lt_compiler_flag="-o out/conftest2.$ac_objext"
15699 # Insert the option either (1) after the last *FLAGS variable, or
15700 # (2) before a word containing "conftest.", or (3) at the end.
15701 # Note that $ac_compile itself does not contain backslashes and begins
15702 # with a dollar sign (not a hyphen), so the echo should work correctly.
15703 lt_compile=`echo "$ac_compile" | $SED \
15704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15706 -e 's:$: $lt_compiler_flag:'`
15707 (eval echo "\"\$as_me:15707: $lt_compile\"" >&5)
15708 (eval "$lt_compile" 2>out/conftest.err)
15709 ac_status=$?
15710 cat out/conftest.err >&5
15711 echo "$as_me:15711: \$? = $ac_status" >&5
15712 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15713 then
15714 # The compiler can only warn and ignore the option if not recognized
15715 # So say no if there are warnings
15716 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15717 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15718 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15719 lt_cv_prog_compiler_c_o_CXX=yes
15720 fi
15721 fi
15722 chmod u+w . 2>&5
15723 $RM conftest*
15724 # SGI C++ compiler will create directory out/ii_files/ for
15725 # template instantiation
15726 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15727 $RM out/* && rmdir out
15728 cd ..
15729 $RM -r conftest
15730 $RM conftest*
15731
15732 fi
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15734 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15735
15736
15737
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15739 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15740 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15741 $as_echo_n "(cached) " >&6
15742 else
15743 lt_cv_prog_compiler_c_o_CXX=no
15744 $RM -r conftest 2>/dev/null
15745 mkdir conftest
15746 cd conftest
15747 mkdir out
15748 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15749
15750 lt_compiler_flag="-o out/conftest2.$ac_objext"
15751 # Insert the option either (1) after the last *FLAGS variable, or
15752 # (2) before a word containing "conftest.", or (3) at the end.
15753 # Note that $ac_compile itself does not contain backslashes and begins
15754 # with a dollar sign (not a hyphen), so the echo should work correctly.
15755 lt_compile=`echo "$ac_compile" | $SED \
15756 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15757 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15758 -e 's:$: $lt_compiler_flag:'`
15759 (eval echo "\"\$as_me:15759: $lt_compile\"" >&5)
15760 (eval "$lt_compile" 2>out/conftest.err)
15761 ac_status=$?
15762 cat out/conftest.err >&5
15763 echo "$as_me:15763: \$? = $ac_status" >&5
15764 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15765 then
15766 # The compiler can only warn and ignore the option if not recognized
15767 # So say no if there are warnings
15768 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15769 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15770 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15771 lt_cv_prog_compiler_c_o_CXX=yes
15772 fi
15773 fi
15774 chmod u+w . 2>&5
15775 $RM conftest*
15776 # SGI C++ compiler will create directory out/ii_files/ for
15777 # template instantiation
15778 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15779 $RM out/* && rmdir out
15780 cd ..
15781 $RM -r conftest
15782 $RM conftest*
15783
15784 fi
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15786 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15787
15788
15789
15790
15791 hard_links="nottested"
15792 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15793 # do not overwrite the value of need_locks provided by the user
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15795 $as_echo_n "checking if we can lock with hard links... " >&6; }
15796 hard_links=yes
15797 $RM conftest*
15798 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15799 touch conftest.a
15800 ln conftest.a conftest.b 2>&5 || hard_links=no
15801 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15803 $as_echo "$hard_links" >&6; }
15804 if test "$hard_links" = no; then
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15806 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15807 need_locks=warn
15808 fi
15809 else
15810 need_locks=no
15811 fi
15812
15813
15814
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15816 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15817
15818 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15819 case $host_os in
15820 aix[4-9]*)
15821 # If we're using GNU nm, then we don't want the "-C" option.
15822 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15823 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15824 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15825 else
15826 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'
15827 fi
15828 ;;
15829 pw32*)
15830 export_symbols_cmds_CXX="$ltdll_cmds"
15831 ;;
15832 cygwin* | mingw* | cegcc*)
15833 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'
15834 ;;
15835 *)
15836 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15837 ;;
15838 esac
15839 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15840
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15842 $as_echo "$ld_shlibs_CXX" >&6; }
15843 test "$ld_shlibs_CXX" = no && can_build_shared=no
15844
15845 with_gnu_ld_CXX=$with_gnu_ld
15846
15847
15848
15849
15850
15851
15852 #
15853 # Do we need to explicitly link libc?
15854 #
15855 case "x$archive_cmds_need_lc_CXX" in
15856 x|xyes)
15857 # Assume -lc should be added
15858 archive_cmds_need_lc_CXX=yes
15859
15860 if test "$enable_shared" = yes && test "$GCC" = yes; then
15861 case $archive_cmds_CXX in
15862 *'~'*)
15863 # FIXME: we may have to deal with multi-command sequences.
15864 ;;
15865 '$CC '*)
15866 # Test whether the compiler implicitly links with -lc since on some
15867 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15868 # to ld, don't add -lc before -lgcc.
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15870 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15871 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15872 $as_echo_n "(cached) " >&6
15873 else
15874 $RM conftest*
15875 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15876
15877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15878 (eval $ac_compile) 2>&5
15879 ac_status=$?
15880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15881 test $ac_status = 0; } 2>conftest.err; then
15882 soname=conftest
15883 lib=conftest
15884 libobjs=conftest.$ac_objext
15885 deplibs=
15886 wl=$lt_prog_compiler_wl_CXX
15887 pic_flag=$lt_prog_compiler_pic_CXX
15888 compiler_flags=-v
15889 linker_flags=-v
15890 verstring=
15891 output_objdir=.
15892 libname=conftest
15893 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15894 allow_undefined_flag_CXX=
15895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15896 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15897 ac_status=$?
15898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15899 test $ac_status = 0; }
15900 then
15901 lt_cv_archive_cmds_need_lc_CXX=no
15902 else
15903 lt_cv_archive_cmds_need_lc_CXX=yes
15904 fi
15905 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15906 else
15907 cat conftest.err 1>&5
15908 fi
15909 $RM conftest*
15910
15911 fi
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15913 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15914 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15915 ;;
15916 esac
15917 fi
15918 ;;
15919 esac
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15985 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15986
15987 library_names_spec=
15988 libname_spec='lib$name'
15989 soname_spec=
15990 shrext_cmds=".so"
15991 postinstall_cmds=
15992 postuninstall_cmds=
15993 finish_cmds=
15994 finish_eval=
15995 shlibpath_var=
15996 shlibpath_overrides_runpath=unknown
15997 version_type=none
15998 dynamic_linker="$host_os ld.so"
15999 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16000 need_lib_prefix=unknown
16001 hardcode_into_libs=no
16002
16003 # when you set need_version to no, make sure it does not cause -set_version
16004 # flags to be left without arguments
16005 need_version=unknown
16006
16007 case $host_os in
16008 aix3*)
16009 version_type=linux
16010 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16011 shlibpath_var=LIBPATH
16012
16013 # AIX 3 has no versioning support, so we append a major version to the name.
16014 soname_spec='${libname}${release}${shared_ext}$major'
16015 ;;
16016
16017 aix[4-9]*)
16018 version_type=linux
16019 need_lib_prefix=no
16020 need_version=no
16021 hardcode_into_libs=yes
16022 if test "$host_cpu" = ia64; then
16023 # AIX 5 supports IA64
16024 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16025 shlibpath_var=LD_LIBRARY_PATH
16026 else
16027 # With GCC up to 2.95.x, collect2 would create an import file
16028 # for dependence libraries. The import file would start with
16029 # the line `#! .'. This would cause the generated library to
16030 # depend on `.', always an invalid library. This was fixed in
16031 # development snapshots of GCC prior to 3.0.
16032 case $host_os in
16033 aix4 | aix4.[01] | aix4.[01].*)
16034 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16035 echo ' yes '
16036 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16037 :
16038 else
16039 can_build_shared=no
16040 fi
16041 ;;
16042 esac
16043 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16044 # soname into executable. Probably we can add versioning support to
16045 # collect2, so additional links can be useful in future.
16046 if test "$aix_use_runtimelinking" = yes; then
16047 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16048 # instead of lib<name>.a to let people know that these are not
16049 # typical AIX shared libraries.
16050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16051 else
16052 # We preserve .a as extension for shared libraries through AIX4.2
16053 # and later when we are not doing run time linking.
16054 library_names_spec='${libname}${release}.a $libname.a'
16055 soname_spec='${libname}${release}${shared_ext}$major'
16056 fi
16057 shlibpath_var=LIBPATH
16058 fi
16059 ;;
16060
16061 amigaos*)
16062 case $host_cpu in
16063 powerpc)
16064 # Since July 2007 AmigaOS4 officially supports .so libraries.
16065 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16067 ;;
16068 m68k)
16069 library_names_spec='$libname.ixlibrary $libname.a'
16070 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16071 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'
16072 ;;
16073 esac
16074 ;;
16075
16076 beos*)
16077 library_names_spec='${libname}${shared_ext}'
16078 dynamic_linker="$host_os ld.so"
16079 shlibpath_var=LIBRARY_PATH
16080 ;;
16081
16082 bsdi[45]*)
16083 version_type=linux
16084 need_version=no
16085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16086 soname_spec='${libname}${release}${shared_ext}$major'
16087 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16088 shlibpath_var=LD_LIBRARY_PATH
16089 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16090 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16091 # the default ld.so.conf also contains /usr/contrib/lib and
16092 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16093 # libtool to hard-code these into programs
16094 ;;
16095
16096 cygwin* | mingw* | pw32* | cegcc*)
16097 version_type=windows
16098 shrext_cmds=".dll"
16099 need_version=no
16100 need_lib_prefix=no
16101
16102 case $GCC,$host_os in
16103 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16104 library_names_spec='$libname.dll.a'
16105 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16106 postinstall_cmds='base_file=`basename \${file}`~
16107 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16108 dldir=$destdir/`dirname \$dlpath`~
16109 test -d \$dldir || mkdir -p \$dldir~
16110 $install_prog $dir/$dlname \$dldir/$dlname~
16111 chmod a+x \$dldir/$dlname~
16112 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16113 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16114 fi'
16115 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16116 dlpath=$dir/\$dldll~
16117 $RM \$dlpath'
16118 shlibpath_overrides_runpath=yes
16119
16120 case $host_os in
16121 cygwin*)
16122 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16123 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16124 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16125 ;;
16126 mingw* | cegcc*)
16127 # MinGW DLLs use traditional 'lib' prefix
16128 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16129 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16130 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16131 # It is most probably a Windows format PATH printed by
16132 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16133 # path with ; separators, and with drive letters. We can handle the
16134 # drive letters (cygwin fileutils understands them), so leave them,
16135 # especially as we might pass files found there to a mingw objdump,
16136 # which wouldn't understand a cygwinified path. Ahh.
16137 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16138 else
16139 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16140 fi
16141 ;;
16142 pw32*)
16143 # pw32 DLLs use 'pw' prefix rather than 'lib'
16144 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16145 ;;
16146 esac
16147 ;;
16148
16149 *)
16150 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16151 ;;
16152 esac
16153 dynamic_linker='Win32 ld.exe'
16154 # FIXME: first we should search . and the directory the executable is in
16155 shlibpath_var=PATH
16156 ;;
16157
16158 darwin* | rhapsody*)
16159 dynamic_linker="$host_os dyld"
16160 version_type=darwin
16161 need_lib_prefix=no
16162 need_version=no
16163 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16164 soname_spec='${libname}${release}${major}$shared_ext'
16165 shlibpath_overrides_runpath=yes
16166 shlibpath_var=DYLD_LIBRARY_PATH
16167 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16168
16169 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16170 ;;
16171
16172 dgux*)
16173 version_type=linux
16174 need_lib_prefix=no
16175 need_version=no
16176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16177 soname_spec='${libname}${release}${shared_ext}$major'
16178 shlibpath_var=LD_LIBRARY_PATH
16179 ;;
16180
16181 freebsd1*)
16182 dynamic_linker=no
16183 ;;
16184
16185 freebsd* | dragonfly*)
16186 # DragonFly does not have aout. When/if they implement a new
16187 # versioning mechanism, adjust this.
16188 if test -x /usr/bin/objformat; then
16189 objformat=`/usr/bin/objformat`
16190 else
16191 case $host_os in
16192 freebsd[123]*) objformat=aout ;;
16193 *) objformat=elf ;;
16194 esac
16195 fi
16196 version_type=freebsd-$objformat
16197 case $version_type in
16198 freebsd-elf*)
16199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16200 need_version=no
16201 need_lib_prefix=no
16202 ;;
16203 freebsd-*)
16204 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16205 need_version=yes
16206 ;;
16207 esac
16208 shlibpath_var=LD_LIBRARY_PATH
16209 case $host_os in
16210 freebsd2*)
16211 shlibpath_overrides_runpath=yes
16212 ;;
16213 freebsd3.[01]* | freebsdelf3.[01]*)
16214 shlibpath_overrides_runpath=yes
16215 hardcode_into_libs=yes
16216 ;;
16217 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16218 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16219 shlibpath_overrides_runpath=no
16220 hardcode_into_libs=yes
16221 ;;
16222 *) # from 4.6 on, and DragonFly
16223 shlibpath_overrides_runpath=yes
16224 hardcode_into_libs=yes
16225 ;;
16226 esac
16227 ;;
16228
16229 gnu*)
16230 version_type=linux
16231 need_lib_prefix=no
16232 need_version=no
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=LD_LIBRARY_PATH
16236 hardcode_into_libs=yes
16237 ;;
16238
16239 hpux9* | hpux10* | hpux11*)
16240 # Give a soname corresponding to the major version so that dld.sl refuses to
16241 # link against other versions.
16242 version_type=sunos
16243 need_lib_prefix=no
16244 need_version=no
16245 case $host_cpu in
16246 ia64*)
16247 shrext_cmds='.so'
16248 hardcode_into_libs=yes
16249 dynamic_linker="$host_os dld.so"
16250 shlibpath_var=LD_LIBRARY_PATH
16251 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16253 soname_spec='${libname}${release}${shared_ext}$major'
16254 if test "X$HPUX_IA64_MODE" = X32; then
16255 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16256 else
16257 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16258 fi
16259 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16260 ;;
16261 hppa*64*)
16262 shrext_cmds='.sl'
16263 hardcode_into_libs=yes
16264 dynamic_linker="$host_os dld.sl"
16265 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16266 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16268 soname_spec='${libname}${release}${shared_ext}$major'
16269 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16270 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16271 ;;
16272 *)
16273 shrext_cmds='.sl'
16274 dynamic_linker="$host_os dld.sl"
16275 shlibpath_var=SHLIB_PATH
16276 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16278 soname_spec='${libname}${release}${shared_ext}$major'
16279 ;;
16280 esac
16281 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16282 postinstall_cmds='chmod 555 $lib'
16283 ;;
16284
16285 interix[3-9]*)
16286 version_type=linux
16287 need_lib_prefix=no
16288 need_version=no
16289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16290 soname_spec='${libname}${release}${shared_ext}$major'
16291 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16292 shlibpath_var=LD_LIBRARY_PATH
16293 shlibpath_overrides_runpath=no
16294 hardcode_into_libs=yes
16295 ;;
16296
16297 irix5* | irix6* | nonstopux*)
16298 case $host_os in
16299 nonstopux*) version_type=nonstopux ;;
16300 *)
16301 if test "$lt_cv_prog_gnu_ld" = yes; then
16302 version_type=linux
16303 else
16304 version_type=irix
16305 fi ;;
16306 esac
16307 need_lib_prefix=no
16308 need_version=no
16309 soname_spec='${libname}${release}${shared_ext}$major'
16310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16311 case $host_os in
16312 irix5* | nonstopux*)
16313 libsuff= shlibsuff=
16314 ;;
16315 *)
16316 case $LD in # libtool.m4 will add one of these switches to LD
16317 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16318 libsuff= shlibsuff= libmagic=32-bit;;
16319 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16320 libsuff=32 shlibsuff=N32 libmagic=N32;;
16321 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16322 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16323 *) libsuff= shlibsuff= libmagic=never-match;;
16324 esac
16325 ;;
16326 esac
16327 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16328 shlibpath_overrides_runpath=no
16329 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16330 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16331 hardcode_into_libs=yes
16332 ;;
16333
16334 # No shared lib support for Linux oldld, aout, or coff.
16335 linux*oldld* | linux*aout* | linux*coff*)
16336 dynamic_linker=no
16337 ;;
16338
16339 # This must be Linux ELF.
16340 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16341 version_type=linux
16342 need_lib_prefix=no
16343 need_version=no
16344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16345 soname_spec='${libname}${release}${shared_ext}$major'
16346 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16347 shlibpath_var=LD_LIBRARY_PATH
16348 shlibpath_overrides_runpath=no
16349
16350 # Some binutils ld are patched to set DT_RUNPATH
16351 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16352 $as_echo_n "(cached) " >&6
16353 else
16354 lt_cv_shlibpath_overrides_runpath=no
16355 save_LDFLAGS=$LDFLAGS
16356 save_libdir=$libdir
16357 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16358 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16359 if test x$gcc_no_link = xyes; then
16360 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16361 fi
16362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16363 /* end confdefs.h. */
16364
16365 int
16366 main ()
16367 {
16368
16369 ;
16370 return 0;
16371 }
16372 _ACEOF
16373 if ac_fn_cxx_try_link "$LINENO"; then :
16374 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16375 lt_cv_shlibpath_overrides_runpath=yes
16376 fi
16377 fi
16378 rm -f core conftest.err conftest.$ac_objext \
16379 conftest$ac_exeext conftest.$ac_ext
16380 LDFLAGS=$save_LDFLAGS
16381 libdir=$save_libdir
16382
16383 fi
16384
16385 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16386
16387 # This implies no fast_install, which is unacceptable.
16388 # Some rework will be needed to allow for fast_install
16389 # before this can be enabled.
16390 hardcode_into_libs=yes
16391
16392 # Append ld.so.conf contents to the search path
16393 if test -f /etc/ld.so.conf; then
16394 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;/^$/d' | tr '\n' ' '`
16395 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16396 fi
16397
16398 # We used to test for /lib/ld.so.1 and disable shared libraries on
16399 # powerpc, because MkLinux only supported shared libraries with the
16400 # GNU dynamic linker. Since this was broken with cross compilers,
16401 # most powerpc-linux boxes support dynamic linking these days and
16402 # people can always --disable-shared, the test was removed, and we
16403 # assume the GNU/Linux dynamic linker is in use.
16404 dynamic_linker='GNU/Linux ld.so'
16405 ;;
16406
16407 netbsd*)
16408 version_type=sunos
16409 need_lib_prefix=no
16410 need_version=no
16411 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16413 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16414 dynamic_linker='NetBSD (a.out) ld.so'
16415 else
16416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16417 soname_spec='${libname}${release}${shared_ext}$major'
16418 dynamic_linker='NetBSD ld.elf_so'
16419 fi
16420 shlibpath_var=LD_LIBRARY_PATH
16421 shlibpath_overrides_runpath=yes
16422 hardcode_into_libs=yes
16423 ;;
16424
16425 newsos6)
16426 version_type=linux
16427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16428 shlibpath_var=LD_LIBRARY_PATH
16429 shlibpath_overrides_runpath=yes
16430 ;;
16431
16432 *nto* | *qnx*)
16433 version_type=qnx
16434 need_lib_prefix=no
16435 need_version=no
16436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16437 soname_spec='${libname}${release}${shared_ext}$major'
16438 shlibpath_var=LD_LIBRARY_PATH
16439 shlibpath_overrides_runpath=no
16440 hardcode_into_libs=yes
16441 dynamic_linker='ldqnx.so'
16442 ;;
16443
16444 openbsd*)
16445 version_type=sunos
16446 sys_lib_dlsearch_path_spec="/usr/lib"
16447 need_lib_prefix=no
16448 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16449 case $host_os in
16450 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16451 *) need_version=no ;;
16452 esac
16453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16454 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16455 shlibpath_var=LD_LIBRARY_PATH
16456 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16457 case $host_os in
16458 openbsd2.[89] | openbsd2.[89].*)
16459 shlibpath_overrides_runpath=no
16460 ;;
16461 *)
16462 shlibpath_overrides_runpath=yes
16463 ;;
16464 esac
16465 else
16466 shlibpath_overrides_runpath=yes
16467 fi
16468 ;;
16469
16470 os2*)
16471 libname_spec='$name'
16472 shrext_cmds=".dll"
16473 need_lib_prefix=no
16474 library_names_spec='$libname${shared_ext} $libname.a'
16475 dynamic_linker='OS/2 ld.exe'
16476 shlibpath_var=LIBPATH
16477 ;;
16478
16479 osf3* | osf4* | osf5*)
16480 version_type=osf
16481 need_lib_prefix=no
16482 need_version=no
16483 soname_spec='${libname}${release}${shared_ext}$major'
16484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16485 shlibpath_var=LD_LIBRARY_PATH
16486 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16487 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16488 ;;
16489
16490 rdos*)
16491 dynamic_linker=no
16492 ;;
16493
16494 solaris*)
16495 version_type=linux
16496 need_lib_prefix=no
16497 need_version=no
16498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16499 soname_spec='${libname}${release}${shared_ext}$major'
16500 shlibpath_var=LD_LIBRARY_PATH
16501 shlibpath_overrides_runpath=yes
16502 hardcode_into_libs=yes
16503 # ldd complains unless libraries are executable
16504 postinstall_cmds='chmod +x $lib'
16505 ;;
16506
16507 sunos4*)
16508 version_type=sunos
16509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16510 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16511 shlibpath_var=LD_LIBRARY_PATH
16512 shlibpath_overrides_runpath=yes
16513 if test "$with_gnu_ld" = yes; then
16514 need_lib_prefix=no
16515 fi
16516 need_version=yes
16517 ;;
16518
16519 sysv4 | sysv4.3*)
16520 version_type=linux
16521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16522 soname_spec='${libname}${release}${shared_ext}$major'
16523 shlibpath_var=LD_LIBRARY_PATH
16524 case $host_vendor in
16525 sni)
16526 shlibpath_overrides_runpath=no
16527 need_lib_prefix=no
16528 runpath_var=LD_RUN_PATH
16529 ;;
16530 siemens)
16531 need_lib_prefix=no
16532 ;;
16533 motorola)
16534 need_lib_prefix=no
16535 need_version=no
16536 shlibpath_overrides_runpath=no
16537 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16538 ;;
16539 esac
16540 ;;
16541
16542 sysv4*MP*)
16543 if test -d /usr/nec ;then
16544 version_type=linux
16545 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16546 soname_spec='$libname${shared_ext}.$major'
16547 shlibpath_var=LD_LIBRARY_PATH
16548 fi
16549 ;;
16550
16551 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16552 version_type=freebsd-elf
16553 need_lib_prefix=no
16554 need_version=no
16555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16556 soname_spec='${libname}${release}${shared_ext}$major'
16557 shlibpath_var=LD_LIBRARY_PATH
16558 shlibpath_overrides_runpath=yes
16559 hardcode_into_libs=yes
16560 if test "$with_gnu_ld" = yes; then
16561 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16562 else
16563 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16564 case $host_os in
16565 sco3.2v5*)
16566 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16567 ;;
16568 esac
16569 fi
16570 sys_lib_dlsearch_path_spec='/usr/lib'
16571 ;;
16572
16573 tpf*)
16574 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16575 version_type=linux
16576 need_lib_prefix=no
16577 need_version=no
16578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16579 shlibpath_var=LD_LIBRARY_PATH
16580 shlibpath_overrides_runpath=no
16581 hardcode_into_libs=yes
16582 ;;
16583
16584 uts4*)
16585 version_type=linux
16586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16587 soname_spec='${libname}${release}${shared_ext}$major'
16588 shlibpath_var=LD_LIBRARY_PATH
16589 ;;
16590
16591 *)
16592 dynamic_linker=no
16593 ;;
16594 esac
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16596 $as_echo "$dynamic_linker" >&6; }
16597 test "$dynamic_linker" = no && can_build_shared=no
16598
16599 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16600 if test "$GCC" = yes; then
16601 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16602 fi
16603
16604 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16605 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16606 fi
16607 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16608 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16609 fi
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16647 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16648 hardcode_action_CXX=
16649 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16650 test -n "$runpath_var_CXX" ||
16651 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16652
16653 # We can hardcode non-existent directories.
16654 if test "$hardcode_direct_CXX" != no &&
16655 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16656 # have to relink, otherwise we might link with an installed library
16657 # when we should be linking with a yet-to-be-installed one
16658 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16659 test "$hardcode_minus_L_CXX" != no; then
16660 # Linking always hardcodes the temporary library directory.
16661 hardcode_action_CXX=relink
16662 else
16663 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16664 hardcode_action_CXX=immediate
16665 fi
16666 else
16667 # We cannot hardcode anything, or else we can only hardcode existing
16668 # directories.
16669 hardcode_action_CXX=unsupported
16670 fi
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16672 $as_echo "$hardcode_action_CXX" >&6; }
16673
16674 if test "$hardcode_action_CXX" = relink ||
16675 test "$inherit_rpath_CXX" = yes; then
16676 # Fast installation is not supported
16677 enable_fast_install=no
16678 elif test "$shlibpath_overrides_runpath" = yes ||
16679 test "$enable_shared" = no; then
16680 # Fast installation is not necessary
16681 enable_fast_install=needless
16682 fi
16683
16684
16685
16686
16687
16688
16689
16690 fi # test -n "$compiler"
16691
16692 CC=$lt_save_CC
16693 LDCXX=$LD
16694 LD=$lt_save_LD
16695 GCC=$lt_save_GCC
16696 with_gnu_ld=$lt_save_with_gnu_ld
16697 lt_cv_path_LDCXX=$lt_cv_path_LD
16698 lt_cv_path_LD=$lt_save_path_LD
16699 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16700 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16701 fi # test "$_lt_caught_CXX_error" != yes
16702
16703 ac_ext=c
16704 ac_cpp='$CPP $CPPFLAGS'
16705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721 ac_config_commands="$ac_config_commands libtool"
16722
16723
16724
16725
16726 # Only expand once:
16727
16728
16729
16730 for ac_prog in gcj
16731 do
16732 # Extract the first word of "$ac_prog", so it can be a program name with args.
16733 set dummy $ac_prog; ac_word=$2
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16735 $as_echo_n "checking for $ac_word... " >&6; }
16736 if test "${ac_cv_prog_GCJ+set}" = set; then :
16737 $as_echo_n "(cached) " >&6
16738 else
16739 if test -n "$GCJ"; then
16740 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16741 else
16742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16743 for as_dir in $PATH
16744 do
16745 IFS=$as_save_IFS
16746 test -z "$as_dir" && as_dir=.
16747 for ac_exec_ext in '' $ac_executable_extensions; do
16748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16749 ac_cv_prog_GCJ="$ac_prog"
16750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16751 break 2
16752 fi
16753 done
16754 done
16755 IFS=$as_save_IFS
16756
16757 fi
16758 fi
16759 GCJ=$ac_cv_prog_GCJ
16760 if test -n "$GCJ"; then
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16762 $as_echo "$GCJ" >&6; }
16763 else
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16765 $as_echo "no" >&6; }
16766 fi
16767
16768
16769 test -n "$GCJ" && break
16770 done
16771 test -n "$GCJ" || GCJ="gcj"
16772
16773 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
16774 if test "x${GCJFLAGS-unset}" = xunset; then
16775 GCJFLAGS="-g -O2"
16776 fi
16777
16778
16779 depcc="$GCJ" am_compiler_list='gcc3 gcc'
16780
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16782 $as_echo_n "checking dependency style of $depcc... " >&6; }
16783 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16784 $as_echo_n "(cached) " >&6
16785 else
16786 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16787 # We make a subdir and do the tests there. Otherwise we can end up
16788 # making bogus files that we don't know about and never remove. For
16789 # instance it was reported that on HP-UX the gcc test will end up
16790 # making a dummy file named `D' -- because `-MD' means `put the output
16791 # in D'.
16792 mkdir conftest.dir
16793 # Copy depcomp to subdir because otherwise we won't find it if we're
16794 # using a relative directory.
16795 cp "$am_depcomp" conftest.dir
16796 cd conftest.dir
16797 # We will build objects and dependencies in a subdirectory because
16798 # it helps to detect inapplicable dependency modes. For instance
16799 # both Tru64's cc and ICC support -MD to output dependencies as a
16800 # side effect of compilation, but ICC will put the dependencies in
16801 # the current directory while Tru64 will put them in the object
16802 # directory.
16803 mkdir sub
16804
16805 am_cv_GCJ_dependencies_compiler_type=none
16806 if test "$am_compiler_list" = ""; then
16807 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16808 fi
16809 am__universal=false
16810
16811
16812 for depmode in $am_compiler_list; do
16813 # Setup a source with many dependencies, because some compilers
16814 # like to wrap large dependency lists on column 80 (with \), and
16815 # we should not choose a depcomp mode which is confused by this.
16816 #
16817 # We need to recreate these files for each test, as the compiler may
16818 # overwrite some of them when testing with obscure command lines.
16819 # This happens at least with the AIX C compiler.
16820 : > sub/conftest.c
16821 for i in 1 2 3 4 5 6; do
16822 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16823 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16824 # Solaris 8's {/usr,}/bin/sh.
16825 touch sub/conftst$i.h
16826 done
16827 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16828
16829 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16830 # mode. It turns out that the SunPro C++ compiler does not properly
16831 # handle `-M -o', and we need to detect this. Also, some Intel
16832 # versions had trouble with output in subdirs
16833 am__obj=sub/conftest.${OBJEXT-o}
16834 am__minus_obj="-o $am__obj"
16835 case $depmode in
16836 gcc)
16837 # This depmode causes a compiler race in universal mode.
16838 test "$am__universal" = false || continue
16839 ;;
16840 nosideeffect)
16841 # after this tag, mechanisms are not by side-effect, so they'll
16842 # only be used when explicitly requested
16843 if test "x$enable_dependency_tracking" = xyes; then
16844 continue
16845 else
16846 break
16847 fi
16848 ;;
16849 msvisualcpp | msvcmsys)
16850 # This compiler won't grok `-c -o', but also, the minuso test has
16851 # not run yet. These depmodes are late enough in the game, and
16852 # so weak that their functioning should not be impacted.
16853 am__obj=conftest.${OBJEXT-o}
16854 am__minus_obj=
16855 ;;
16856 none) break ;;
16857 esac
16858 if depmode=$depmode \
16859 source=sub/conftest.c object=$am__obj \
16860 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16861 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16862 >/dev/null 2>conftest.err &&
16863 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16864 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16865 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16866 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16867 # icc doesn't choke on unknown options, it will just issue warnings
16868 # or remarks (even with -Werror). So we grep stderr for any message
16869 # that says an option was ignored or not supported.
16870 # When given -MP, icc 7.0 and 7.1 complain thusly:
16871 # icc: Command line warning: ignoring option '-M'; no argument required
16872 # The diagnosis changed in icc 8.0:
16873 # icc: Command line remark: option '-MP' not supported
16874 if (grep 'ignoring option' conftest.err ||
16875 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16876 am_cv_GCJ_dependencies_compiler_type=$depmode
16877 break
16878 fi
16879 fi
16880 done
16881
16882 cd ..
16883 rm -rf conftest.dir
16884 else
16885 am_cv_GCJ_dependencies_compiler_type=none
16886 fi
16887
16888 fi
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16890 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
16891 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16892
16893 if
16894 test "x$enable_dependency_tracking" != xno \
16895 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16896 am__fastdepGCJ_TRUE=
16897 am__fastdepGCJ_FALSE='#'
16898 else
16899 am__fastdepGCJ_TRUE='#'
16900 am__fastdepGCJ_FALSE=
16901 fi
16902
16903
16904
16905 for ac_prog in gcj
16906 do
16907 # Extract the first word of "$ac_prog", so it can be a program name with args.
16908 set dummy $ac_prog; ac_word=$2
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16910 $as_echo_n "checking for $ac_word... " >&6; }
16911 if test "${ac_cv_prog_GCJ+set}" = set; then :
16912 $as_echo_n "(cached) " >&6
16913 else
16914 if test -n "$GCJ"; then
16915 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16916 else
16917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16918 for as_dir in $PATH
16919 do
16920 IFS=$as_save_IFS
16921 test -z "$as_dir" && as_dir=.
16922 for ac_exec_ext in '' $ac_executable_extensions; do
16923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16924 ac_cv_prog_GCJ="$ac_prog"
16925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16926 break 2
16927 fi
16928 done
16929 done
16930 IFS=$as_save_IFS
16931
16932 fi
16933 fi
16934 GCJ=$ac_cv_prog_GCJ
16935 if test -n "$GCJ"; then
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16937 $as_echo "$GCJ" >&6; }
16938 else
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16940 $as_echo "no" >&6; }
16941 fi
16942
16943
16944 test -n "$GCJ" && break
16945 done
16946 test -n "$GCJ" || GCJ="gcj"
16947
16948 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
16949 if test "x${GCJFLAGS-unset}" = xunset; then
16950 GCJFLAGS="-g -O2"
16951 fi
16952
16953
16954 depcc="$GCJ" am_compiler_list='gcc3 gcc'
16955
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16957 $as_echo_n "checking dependency style of $depcc... " >&6; }
16958 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16959 $as_echo_n "(cached) " >&6
16960 else
16961 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16962 # We make a subdir and do the tests there. Otherwise we can end up
16963 # making bogus files that we don't know about and never remove. For
16964 # instance it was reported that on HP-UX the gcc test will end up
16965 # making a dummy file named `D' -- because `-MD' means `put the output
16966 # in D'.
16967 mkdir conftest.dir
16968 # Copy depcomp to subdir because otherwise we won't find it if we're
16969 # using a relative directory.
16970 cp "$am_depcomp" conftest.dir
16971 cd conftest.dir
16972 # We will build objects and dependencies in a subdirectory because
16973 # it helps to detect inapplicable dependency modes. For instance
16974 # both Tru64's cc and ICC support -MD to output dependencies as a
16975 # side effect of compilation, but ICC will put the dependencies in
16976 # the current directory while Tru64 will put them in the object
16977 # directory.
16978 mkdir sub
16979
16980 am_cv_GCJ_dependencies_compiler_type=none
16981 if test "$am_compiler_list" = ""; then
16982 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16983 fi
16984 am__universal=false
16985
16986
16987 for depmode in $am_compiler_list; do
16988 # Setup a source with many dependencies, because some compilers
16989 # like to wrap large dependency lists on column 80 (with \), and
16990 # we should not choose a depcomp mode which is confused by this.
16991 #
16992 # We need to recreate these files for each test, as the compiler may
16993 # overwrite some of them when testing with obscure command lines.
16994 # This happens at least with the AIX C compiler.
16995 : > sub/conftest.c
16996 for i in 1 2 3 4 5 6; do
16997 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16998 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16999 # Solaris 8's {/usr,}/bin/sh.
17000 touch sub/conftst$i.h
17001 done
17002 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17003
17004 # We check with `-c' and `-o' for the sake of the "dashmstdout"
17005 # mode. It turns out that the SunPro C++ compiler does not properly
17006 # handle `-M -o', and we need to detect this. Also, some Intel
17007 # versions had trouble with output in subdirs
17008 am__obj=sub/conftest.${OBJEXT-o}
17009 am__minus_obj="-o $am__obj"
17010 case $depmode in
17011 gcc)
17012 # This depmode causes a compiler race in universal mode.
17013 test "$am__universal" = false || continue
17014 ;;
17015 nosideeffect)
17016 # after this tag, mechanisms are not by side-effect, so they'll
17017 # only be used when explicitly requested
17018 if test "x$enable_dependency_tracking" = xyes; then
17019 continue
17020 else
17021 break
17022 fi
17023 ;;
17024 msvisualcpp | msvcmsys)
17025 # This compiler won't grok `-c -o', but also, the minuso test has
17026 # not run yet. These depmodes are late enough in the game, and
17027 # so weak that their functioning should not be impacted.
17028 am__obj=conftest.${OBJEXT-o}
17029 am__minus_obj=
17030 ;;
17031 none) break ;;
17032 esac
17033 if depmode=$depmode \
17034 source=sub/conftest.c object=$am__obj \
17035 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17036 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17037 >/dev/null 2>conftest.err &&
17038 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17039 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17040 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17041 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17042 # icc doesn't choke on unknown options, it will just issue warnings
17043 # or remarks (even with -Werror). So we grep stderr for any message
17044 # that says an option was ignored or not supported.
17045 # When given -MP, icc 7.0 and 7.1 complain thusly:
17046 # icc: Command line warning: ignoring option '-M'; no argument required
17047 # The diagnosis changed in icc 8.0:
17048 # icc: Command line remark: option '-MP' not supported
17049 if (grep 'ignoring option' conftest.err ||
17050 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17051 am_cv_GCJ_dependencies_compiler_type=$depmode
17052 break
17053 fi
17054 fi
17055 done
17056
17057 cd ..
17058 rm -rf conftest.dir
17059 else
17060 am_cv_GCJ_dependencies_compiler_type=none
17061 fi
17062
17063 fi
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
17065 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
17066 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
17067
17068 if
17069 test "x$enable_dependency_tracking" != xno \
17070 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
17071 am__fastdepGCJ_TRUE=
17072 am__fastdepGCJ_FALSE='#'
17073 else
17074 am__fastdepGCJ_TRUE='#'
17075 am__fastdepGCJ_FALSE=
17076 fi
17077
17078
17079
17080
17081
17082 # Source file extension for Java test sources.
17083 ac_ext=c
17084
17085 # Object file extension for compiled Java test sources.
17086 objext=o
17087 objext_GCJ=$objext
17088
17089 # Code to be used in simple compile tests
17090 lt_simple_compile_test_code="int some_variable = 0;"
17091
17092 # Code to be used in simple link tests
17093 lt_simple_link_test_code='int main(){return(0);}'
17094
17095 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17096
17097
17098
17099
17100
17101
17102 # If no C compiler was specified, use CC.
17103 LTCC=${LTCC-"$CC"}
17104
17105 # If no C compiler flags were specified, use CFLAGS.
17106 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17107
17108 # Allow CC to be a program name with arguments.
17109 compiler=$CC
17110
17111
17112 # save warnings/boilerplate of simple test code
17113 ac_outfile=conftest.$ac_objext
17114 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17115 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17116 _lt_compiler_boilerplate=`cat conftest.err`
17117 $RM conftest*
17118
17119 ac_outfile=conftest.$ac_objext
17120 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17121 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17122 _lt_linker_boilerplate=`cat conftest.err`
17123 $RM -r conftest*
17124
17125
17126 # Allow CC to be a program name with arguments.
17127 GCC=yes
17128 compiler=$CC
17129 compiler_GCJ=$CC
17130 for cc_temp in $compiler""; do
17131 case $cc_temp in
17132 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17133 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17134 \-*) ;;
17135 *) break;;
17136 esac
17137 done
17138 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17139
17140
17141 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17142 archive_cmds_need_lc_GCJ=no
17143
17144 old_archive_cmds_GCJ=$old_archive_cmds
17145
17146 ## CAVEAT EMPTOR:
17147 ## There is no encapsulation within the following macros, do not change
17148 ## the running order or otherwise move them around unless you know exactly
17149 ## what you are doing...
17150 if test -n "$compiler"; then
17151
17152 lt_prog_compiler_no_builtin_flag_GCJ=
17153
17154 if test "$GCC" = yes; then
17155 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17156
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17158 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17159 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
17160 $as_echo_n "(cached) " >&6
17161 else
17162 lt_cv_prog_compiler_rtti_exceptions=no
17163 ac_outfile=conftest.$ac_objext
17164 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17165 lt_compiler_flag="-fno-rtti -fno-exceptions"
17166 # Insert the option either (1) after the last *FLAGS variable, or
17167 # (2) before a word containing "conftest.", or (3) at the end.
17168 # Note that $ac_compile itself does not contain backslashes and begins
17169 # with a dollar sign (not a hyphen), so the echo should work correctly.
17170 # The option is referenced via a variable to avoid confusing sed.
17171 lt_compile=`echo "$ac_compile" | $SED \
17172 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17173 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17174 -e 's:$: $lt_compiler_flag:'`
17175 (eval echo "\"\$as_me:17175: $lt_compile\"" >&5)
17176 (eval "$lt_compile" 2>conftest.err)
17177 ac_status=$?
17178 cat conftest.err >&5
17179 echo "$as_me:17179: \$? = $ac_status" >&5
17180 if (exit $ac_status) && test -s "$ac_outfile"; then
17181 # The compiler can only warn and ignore the option if not recognized
17182 # So say no if there are warnings other than the usual output.
17183 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17184 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17185 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17186 lt_cv_prog_compiler_rtti_exceptions=yes
17187 fi
17188 fi
17189 $RM conftest*
17190
17191 fi
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17193 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17194
17195 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17196 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17197 else
17198 :
17199 fi
17200
17201 fi
17202
17203
17204
17205 lt_prog_compiler_wl_GCJ=
17206 lt_prog_compiler_pic_GCJ=
17207 lt_prog_compiler_static_GCJ=
17208
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17210 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17211
17212 if test "$GCC" = yes; then
17213 lt_prog_compiler_wl_GCJ='-Wl,'
17214 lt_prog_compiler_static_GCJ='-static'
17215
17216 case $host_os in
17217 aix*)
17218 # All AIX code is PIC.
17219 if test "$host_cpu" = ia64; then
17220 # AIX 5 now supports IA64 processor
17221 lt_prog_compiler_static_GCJ='-Bstatic'
17222 fi
17223 ;;
17224
17225 amigaos*)
17226 case $host_cpu in
17227 powerpc)
17228 # see comment about AmigaOS4 .so support
17229 lt_prog_compiler_pic_GCJ='-fPIC'
17230 ;;
17231 m68k)
17232 # FIXME: we need at least 68020 code to build shared libraries, but
17233 # adding the `-m68020' flag to GCC prevents building anything better,
17234 # like `-m68040'.
17235 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17236 ;;
17237 esac
17238 ;;
17239
17240 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17241 # PIC is the default for these OSes.
17242 ;;
17243
17244 mingw* | cygwin* | pw32* | os2* | cegcc*)
17245 # This hack is so that the source file can tell whether it is being
17246 # built for inclusion in a dll (and should export symbols for example).
17247 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17248 # (--disable-auto-import) libraries
17249
17250 ;;
17251
17252 darwin* | rhapsody*)
17253 # PIC is the default on this platform
17254 # Common symbols not allowed in MH_DYLIB files
17255 lt_prog_compiler_pic_GCJ='-fno-common'
17256 ;;
17257
17258 hpux*)
17259 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17260 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17261 # sets the default TLS model and affects inlining.
17262 case $host_cpu in
17263 hppa*64*)
17264 # +Z the default
17265 ;;
17266 *)
17267 lt_prog_compiler_pic_GCJ='-fPIC'
17268 ;;
17269 esac
17270 ;;
17271
17272 interix[3-9]*)
17273 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17274 # Instead, we relocate shared libraries at runtime.
17275 ;;
17276
17277 msdosdjgpp*)
17278 # Just because we use GCC doesn't mean we suddenly get shared libraries
17279 # on systems that don't support them.
17280 lt_prog_compiler_can_build_shared_GCJ=no
17281 enable_shared=no
17282 ;;
17283
17284 *nto* | *qnx*)
17285 # QNX uses GNU C++, but need to define -shared option too, otherwise
17286 # it will coredump.
17287 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17288 ;;
17289
17290 sysv4*MP*)
17291 if test -d /usr/nec; then
17292 lt_prog_compiler_pic_GCJ=-Kconform_pic
17293 fi
17294 ;;
17295
17296 *)
17297 lt_prog_compiler_pic_GCJ='-fPIC'
17298 ;;
17299 esac
17300 else
17301 # PORTME Check for flag to pass linker flags through the system compiler.
17302 case $host_os in
17303 aix*)
17304 lt_prog_compiler_wl_GCJ='-Wl,'
17305 if test "$host_cpu" = ia64; then
17306 # AIX 5 now supports IA64 processor
17307 lt_prog_compiler_static_GCJ='-Bstatic'
17308 else
17309 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17310 fi
17311 ;;
17312
17313 mingw* | cygwin* | pw32* | os2* | cegcc*)
17314 # This hack is so that the source file can tell whether it is being
17315 # built for inclusion in a dll (and should export symbols for example).
17316
17317 ;;
17318
17319 hpux9* | hpux10* | hpux11*)
17320 lt_prog_compiler_wl_GCJ='-Wl,'
17321 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17322 # not for PA HP-UX.
17323 case $host_cpu in
17324 hppa*64*|ia64*)
17325 # +Z the default
17326 ;;
17327 *)
17328 lt_prog_compiler_pic_GCJ='+Z'
17329 ;;
17330 esac
17331 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17332 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17333 ;;
17334
17335 irix5* | irix6* | nonstopux*)
17336 lt_prog_compiler_wl_GCJ='-Wl,'
17337 # PIC (with -KPIC) is the default.
17338 lt_prog_compiler_static_GCJ='-non_shared'
17339 ;;
17340
17341 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17342 case $cc_basename in
17343 # old Intel for x86_64 which still supported -KPIC.
17344 ecc*)
17345 lt_prog_compiler_wl_GCJ='-Wl,'
17346 lt_prog_compiler_pic_GCJ='-KPIC'
17347 lt_prog_compiler_static_GCJ='-static'
17348 ;;
17349 # icc used to be incompatible with GCC.
17350 # ICC 10 doesn't accept -KPIC any more.
17351 icc* | ifort*)
17352 lt_prog_compiler_wl_GCJ='-Wl,'
17353 lt_prog_compiler_pic_GCJ='-fPIC'
17354 lt_prog_compiler_static_GCJ='-static'
17355 ;;
17356 # Lahey Fortran 8.1.
17357 lf95*)
17358 lt_prog_compiler_wl_GCJ='-Wl,'
17359 lt_prog_compiler_pic_GCJ='--shared'
17360 lt_prog_compiler_static_GCJ='--static'
17361 ;;
17362 pgcc* | pgf77* | pgf90* | pgf95*)
17363 # Portland Group compilers (*not* the Pentium gcc compiler,
17364 # which looks to be a dead project)
17365 lt_prog_compiler_wl_GCJ='-Wl,'
17366 lt_prog_compiler_pic_GCJ='-fpic'
17367 lt_prog_compiler_static_GCJ='-Bstatic'
17368 ;;
17369 ccc*)
17370 lt_prog_compiler_wl_GCJ='-Wl,'
17371 # All Alpha code is PIC.
17372 lt_prog_compiler_static_GCJ='-non_shared'
17373 ;;
17374 xl*)
17375 # IBM XL C 8.0/Fortran 10.1 on PPC
17376 lt_prog_compiler_wl_GCJ='-Wl,'
17377 lt_prog_compiler_pic_GCJ='-qpic'
17378 lt_prog_compiler_static_GCJ='-qstaticlink'
17379 ;;
17380 *)
17381 case `$CC -V 2>&1 | sed 5q` in
17382 *Sun\ C*)
17383 # Sun C 5.9
17384 lt_prog_compiler_pic_GCJ='-KPIC'
17385 lt_prog_compiler_static_GCJ='-Bstatic'
17386 lt_prog_compiler_wl_GCJ='-Wl,'
17387 ;;
17388 *Sun\ F*)
17389 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17390 lt_prog_compiler_pic_GCJ='-KPIC'
17391 lt_prog_compiler_static_GCJ='-Bstatic'
17392 lt_prog_compiler_wl_GCJ=''
17393 ;;
17394 esac
17395 ;;
17396 esac
17397 ;;
17398
17399 newsos6)
17400 lt_prog_compiler_pic_GCJ='-KPIC'
17401 lt_prog_compiler_static_GCJ='-Bstatic'
17402 ;;
17403
17404 *nto* | *qnx*)
17405 # QNX uses GNU C++, but need to define -shared option too, otherwise
17406 # it will coredump.
17407 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17408 ;;
17409
17410 osf3* | osf4* | osf5*)
17411 lt_prog_compiler_wl_GCJ='-Wl,'
17412 # All OSF/1 code is PIC.
17413 lt_prog_compiler_static_GCJ='-non_shared'
17414 ;;
17415
17416 rdos*)
17417 lt_prog_compiler_static_GCJ='-non_shared'
17418 ;;
17419
17420 solaris*)
17421 lt_prog_compiler_pic_GCJ='-KPIC'
17422 lt_prog_compiler_static_GCJ='-Bstatic'
17423 case $cc_basename in
17424 f77* | f90* | f95*)
17425 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17426 *)
17427 lt_prog_compiler_wl_GCJ='-Wl,';;
17428 esac
17429 ;;
17430
17431 sunos4*)
17432 lt_prog_compiler_wl_GCJ='-Qoption ld '
17433 lt_prog_compiler_pic_GCJ='-PIC'
17434 lt_prog_compiler_static_GCJ='-Bstatic'
17435 ;;
17436
17437 sysv4 | sysv4.2uw2* | sysv4.3*)
17438 lt_prog_compiler_wl_GCJ='-Wl,'
17439 lt_prog_compiler_pic_GCJ='-KPIC'
17440 lt_prog_compiler_static_GCJ='-Bstatic'
17441 ;;
17442
17443 sysv4*MP*)
17444 if test -d /usr/nec ;then
17445 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17446 lt_prog_compiler_static_GCJ='-Bstatic'
17447 fi
17448 ;;
17449
17450 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17451 lt_prog_compiler_wl_GCJ='-Wl,'
17452 lt_prog_compiler_pic_GCJ='-KPIC'
17453 lt_prog_compiler_static_GCJ='-Bstatic'
17454 ;;
17455
17456 unicos*)
17457 lt_prog_compiler_wl_GCJ='-Wl,'
17458 lt_prog_compiler_can_build_shared_GCJ=no
17459 ;;
17460
17461 uts4*)
17462 lt_prog_compiler_pic_GCJ='-pic'
17463 lt_prog_compiler_static_GCJ='-Bstatic'
17464 ;;
17465
17466 *)
17467 lt_prog_compiler_can_build_shared_GCJ=no
17468 ;;
17469 esac
17470 fi
17471
17472 case $host_os in
17473 # For platforms which do not support PIC, -DPIC is meaningless:
17474 *djgpp*)
17475 lt_prog_compiler_pic_GCJ=
17476 ;;
17477 *)
17478 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17479 ;;
17480 esac
17481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
17482 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17483
17484
17485
17486 #
17487 # Check to make sure the PIC flag actually works.
17488 #
17489 if test -n "$lt_prog_compiler_pic_GCJ"; then
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17491 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17492 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
17493 $as_echo_n "(cached) " >&6
17494 else
17495 lt_cv_prog_compiler_pic_works_GCJ=no
17496 ac_outfile=conftest.$ac_objext
17497 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17498 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17499 # Insert the option either (1) after the last *FLAGS variable, or
17500 # (2) before a word containing "conftest.", or (3) at the end.
17501 # Note that $ac_compile itself does not contain backslashes and begins
17502 # with a dollar sign (not a hyphen), so the echo should work correctly.
17503 # The option is referenced via a variable to avoid confusing sed.
17504 lt_compile=`echo "$ac_compile" | $SED \
17505 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17506 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17507 -e 's:$: $lt_compiler_flag:'`
17508 (eval echo "\"\$as_me:17508: $lt_compile\"" >&5)
17509 (eval "$lt_compile" 2>conftest.err)
17510 ac_status=$?
17511 cat conftest.err >&5
17512 echo "$as_me:17512: \$? = $ac_status" >&5
17513 if (exit $ac_status) && test -s "$ac_outfile"; then
17514 # The compiler can only warn and ignore the option if not recognized
17515 # So say no if there are warnings other than the usual output.
17516 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17517 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17518 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17519 lt_cv_prog_compiler_pic_works_GCJ=yes
17520 fi
17521 fi
17522 $RM conftest*
17523
17524 fi
17525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17526 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17527
17528 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17529 case $lt_prog_compiler_pic_GCJ in
17530 "" | " "*) ;;
17531 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17532 esac
17533 else
17534 lt_prog_compiler_pic_GCJ=
17535 lt_prog_compiler_can_build_shared_GCJ=no
17536 fi
17537
17538 fi
17539
17540
17541
17542 #
17543 # Check to make sure the static flag actually works.
17544 #
17545 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17547 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17548 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
17549 $as_echo_n "(cached) " >&6
17550 else
17551 lt_cv_prog_compiler_static_works_GCJ=no
17552 save_LDFLAGS="$LDFLAGS"
17553 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17554 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17555 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17556 # The linker can only warn and ignore the option if not recognized
17557 # So say no if there are warnings
17558 if test -s conftest.err; then
17559 # Append any errors to the config.log.
17560 cat conftest.err 1>&5
17561 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17562 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17563 if diff conftest.exp conftest.er2 >/dev/null; then
17564 lt_cv_prog_compiler_static_works_GCJ=yes
17565 fi
17566 else
17567 lt_cv_prog_compiler_static_works_GCJ=yes
17568 fi
17569 fi
17570 $RM -r conftest*
17571 LDFLAGS="$save_LDFLAGS"
17572
17573 fi
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17575 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17576
17577 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17578 :
17579 else
17580 lt_prog_compiler_static_GCJ=
17581 fi
17582
17583
17584
17585
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17587 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17588 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17589 $as_echo_n "(cached) " >&6
17590 else
17591 lt_cv_prog_compiler_c_o_GCJ=no
17592 $RM -r conftest 2>/dev/null
17593 mkdir conftest
17594 cd conftest
17595 mkdir out
17596 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17597
17598 lt_compiler_flag="-o out/conftest2.$ac_objext"
17599 # Insert the option either (1) after the last *FLAGS variable, or
17600 # (2) before a word containing "conftest.", or (3) at the end.
17601 # Note that $ac_compile itself does not contain backslashes and begins
17602 # with a dollar sign (not a hyphen), so the echo should work correctly.
17603 lt_compile=`echo "$ac_compile" | $SED \
17604 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17606 -e 's:$: $lt_compiler_flag:'`
17607 (eval echo "\"\$as_me:17607: $lt_compile\"" >&5)
17608 (eval "$lt_compile" 2>out/conftest.err)
17609 ac_status=$?
17610 cat out/conftest.err >&5
17611 echo "$as_me:17611: \$? = $ac_status" >&5
17612 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17613 then
17614 # The compiler can only warn and ignore the option if not recognized
17615 # So say no if there are warnings
17616 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17617 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17618 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17619 lt_cv_prog_compiler_c_o_GCJ=yes
17620 fi
17621 fi
17622 chmod u+w . 2>&5
17623 $RM conftest*
17624 # SGI C++ compiler will create directory out/ii_files/ for
17625 # template instantiation
17626 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17627 $RM out/* && rmdir out
17628 cd ..
17629 $RM -r conftest
17630 $RM conftest*
17631
17632 fi
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17634 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17635
17636
17637
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17639 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17640 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17641 $as_echo_n "(cached) " >&6
17642 else
17643 lt_cv_prog_compiler_c_o_GCJ=no
17644 $RM -r conftest 2>/dev/null
17645 mkdir conftest
17646 cd conftest
17647 mkdir out
17648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17649
17650 lt_compiler_flag="-o out/conftest2.$ac_objext"
17651 # Insert the option either (1) after the last *FLAGS variable, or
17652 # (2) before a word containing "conftest.", or (3) at the end.
17653 # Note that $ac_compile itself does not contain backslashes and begins
17654 # with a dollar sign (not a hyphen), so the echo should work correctly.
17655 lt_compile=`echo "$ac_compile" | $SED \
17656 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17657 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17658 -e 's:$: $lt_compiler_flag:'`
17659 (eval echo "\"\$as_me:17659: $lt_compile\"" >&5)
17660 (eval "$lt_compile" 2>out/conftest.err)
17661 ac_status=$?
17662 cat out/conftest.err >&5
17663 echo "$as_me:17663: \$? = $ac_status" >&5
17664 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17665 then
17666 # The compiler can only warn and ignore the option if not recognized
17667 # So say no if there are warnings
17668 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17669 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17670 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17671 lt_cv_prog_compiler_c_o_GCJ=yes
17672 fi
17673 fi
17674 chmod u+w . 2>&5
17675 $RM conftest*
17676 # SGI C++ compiler will create directory out/ii_files/ for
17677 # template instantiation
17678 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17679 $RM out/* && rmdir out
17680 cd ..
17681 $RM -r conftest
17682 $RM conftest*
17683
17684 fi
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17686 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17687
17688
17689
17690
17691 hard_links="nottested"
17692 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17693 # do not overwrite the value of need_locks provided by the user
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17695 $as_echo_n "checking if we can lock with hard links... " >&6; }
17696 hard_links=yes
17697 $RM conftest*
17698 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17699 touch conftest.a
17700 ln conftest.a conftest.b 2>&5 || hard_links=no
17701 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17703 $as_echo "$hard_links" >&6; }
17704 if test "$hard_links" = no; then
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17706 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17707 need_locks=warn
17708 fi
17709 else
17710 need_locks=no
17711 fi
17712
17713
17714
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17716 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17717
17718 runpath_var=
17719 allow_undefined_flag_GCJ=
17720 always_export_symbols_GCJ=no
17721 archive_cmds_GCJ=
17722 archive_expsym_cmds_GCJ=
17723 compiler_needs_object_GCJ=no
17724 enable_shared_with_static_runtimes_GCJ=no
17725 export_dynamic_flag_spec_GCJ=
17726 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17727 hardcode_automatic_GCJ=no
17728 hardcode_direct_GCJ=no
17729 hardcode_direct_absolute_GCJ=no
17730 hardcode_libdir_flag_spec_GCJ=
17731 hardcode_libdir_flag_spec_ld_GCJ=
17732 hardcode_libdir_separator_GCJ=
17733 hardcode_minus_L_GCJ=no
17734 hardcode_shlibpath_var_GCJ=unsupported
17735 inherit_rpath_GCJ=no
17736 link_all_deplibs_GCJ=unknown
17737 module_cmds_GCJ=
17738 module_expsym_cmds_GCJ=
17739 old_archive_from_new_cmds_GCJ=
17740 old_archive_from_expsyms_cmds_GCJ=
17741 thread_safe_flag_spec_GCJ=
17742 whole_archive_flag_spec_GCJ=
17743 # include_expsyms should be a list of space-separated symbols to be *always*
17744 # included in the symbol list
17745 include_expsyms_GCJ=
17746 # exclude_expsyms can be an extended regexp of symbols to exclude
17747 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17748 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17749 # as well as any symbol that contains `d'.
17750 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17751 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17752 # platforms (ab)use it in PIC code, but their linkers get confused if
17753 # the symbol is explicitly referenced. Since portable code cannot
17754 # rely on this symbol name, it's probably fine to never include it in
17755 # preloaded symbol tables.
17756 # Exclude shared library initialization/finalization symbols.
17757 extract_expsyms_cmds=
17758
17759 case $host_os in
17760 cygwin* | mingw* | pw32* | cegcc*)
17761 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17762 # When not using gcc, we currently assume that we are using
17763 # Microsoft Visual C++.
17764 if test "$GCC" != yes; then
17765 with_gnu_ld=no
17766 fi
17767 ;;
17768 interix*)
17769 # we just hope/assume this is gcc and not c89 (= MSVC++)
17770 with_gnu_ld=yes
17771 ;;
17772 openbsd*)
17773 with_gnu_ld=no
17774 ;;
17775 esac
17776
17777 ld_shlibs_GCJ=yes
17778 if test "$with_gnu_ld" = yes; then
17779 # If archive_cmds runs LD, not CC, wlarc should be empty
17780 wlarc='${wl}'
17781
17782 # Set some defaults for GNU ld with shared library support. These
17783 # are reset later if shared libraries are not supported. Putting them
17784 # here allows them to be overridden if necessary.
17785 runpath_var=LD_RUN_PATH
17786 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17787 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17788 # ancient GNU ld didn't support --whole-archive et. al.
17789 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17790 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17791 else
17792 whole_archive_flag_spec_GCJ=
17793 fi
17794 supports_anon_versioning=no
17795 case `$LD -v 2>&1` in
17796 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17797 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17798 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17799 *\ 2.11.*) ;; # other 2.11 versions
17800 *) supports_anon_versioning=yes ;;
17801 esac
17802
17803 # See if GNU ld supports shared libraries.
17804 case $host_os in
17805 aix[3-9]*)
17806 # On AIX/PPC, the GNU linker is very broken
17807 if test "$host_cpu" != ia64; then
17808 ld_shlibs_GCJ=no
17809 cat <<_LT_EOF 1>&2
17810
17811 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17812 *** to be unable to reliably create shared libraries on AIX.
17813 *** Therefore, libtool is disabling shared libraries support. If you
17814 *** really care for shared libraries, you may want to modify your PATH
17815 *** so that a non-GNU linker is found, and then restart.
17816
17817 _LT_EOF
17818 fi
17819 ;;
17820
17821 amigaos*)
17822 case $host_cpu in
17823 powerpc)
17824 # see comment about AmigaOS4 .so support
17825 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17826 archive_expsym_cmds_GCJ=''
17827 ;;
17828 m68k)
17829 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)'
17830 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17831 hardcode_minus_L_GCJ=yes
17832 ;;
17833 esac
17834 ;;
17835
17836 beos*)
17837 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17838 allow_undefined_flag_GCJ=unsupported
17839 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17840 # support --undefined. This deserves some investigation. FIXME
17841 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17842 else
17843 ld_shlibs_GCJ=no
17844 fi
17845 ;;
17846
17847 cygwin* | mingw* | pw32* | cegcc*)
17848 # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17849 # as there is no search path for DLLs.
17850 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17851 allow_undefined_flag_GCJ=unsupported
17852 always_export_symbols_GCJ=no
17853 enable_shared_with_static_runtimes_GCJ=yes
17854 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17855
17856 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17857 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17858 # If the export-symbols file already is a .def file (1st line
17859 # is EXPORTS), use it as is; otherwise, prepend...
17860 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17861 cp $export_symbols $output_objdir/$soname.def;
17862 else
17863 echo EXPORTS > $output_objdir/$soname.def;
17864 cat $export_symbols >> $output_objdir/$soname.def;
17865 fi~
17866 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17867 else
17868 ld_shlibs_GCJ=no
17869 fi
17870 ;;
17871
17872 interix[3-9]*)
17873 hardcode_direct_GCJ=no
17874 hardcode_shlibpath_var_GCJ=no
17875 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17876 export_dynamic_flag_spec_GCJ='${wl}-E'
17877 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17878 # Instead, shared libraries are loaded at an image base (0x10000000 by
17879 # default) and relocated if they conflict, which is a slow very memory
17880 # consuming and fragmenting process. To avoid this, we pick a random,
17881 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17882 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17883 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'
17884 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'
17885 ;;
17886
17887 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
17888 tmp_diet=no
17889 if test "$host_os" = linux-dietlibc; then
17890 case $cc_basename in
17891 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17892 esac
17893 fi
17894 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17895 && test "$tmp_diet" = no
17896 then
17897 tmp_addflag=
17898 tmp_sharedflag='-shared'
17899 case $cc_basename,$host_cpu in
17900 pgcc*) # Portland Group C compiler
17901 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
17902 tmp_addflag=' $pic_flag'
17903 ;;
17904 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17905 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
17906 tmp_addflag=' $pic_flag -Mnomain' ;;
17907 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17908 tmp_addflag=' -i_dynamic' ;;
17909 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17910 tmp_addflag=' -i_dynamic -nofor_main' ;;
17911 ifc* | ifort*) # Intel Fortran compiler
17912 tmp_addflag=' -nofor_main' ;;
17913 lf95*) # Lahey Fortran 8.1
17914 whole_archive_flag_spec_GCJ=
17915 tmp_sharedflag='--shared' ;;
17916 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17917 tmp_sharedflag='-qmkshrobj'
17918 tmp_addflag= ;;
17919 esac
17920 case `$CC -V 2>&1 | sed 5q` in
17921 *Sun\ C*) # Sun C 5.9
17922 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
17923 compiler_needs_object_GCJ=yes
17924 tmp_sharedflag='-G' ;;
17925 *Sun\ F*) # Sun Fortran 8.3
17926 tmp_sharedflag='-G' ;;
17927 esac
17928 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17929
17930 if test "x$supports_anon_versioning" = xyes; then
17931 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
17932 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17933 echo "local: *; };" >> $output_objdir/$libname.ver~
17934 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17935 fi
17936
17937 case $cc_basename in
17938 xlf*)
17939 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17940 whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
17941 hardcode_libdir_flag_spec_GCJ=
17942 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17943 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17944 if test "x$supports_anon_versioning" = xyes; then
17945 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
17946 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17947 echo "local: *; };" >> $output_objdir/$libname.ver~
17948 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17949 fi
17950 ;;
17951 esac
17952 else
17953 ld_shlibs_GCJ=no
17954 fi
17955 ;;
17956
17957 netbsd*)
17958 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17959 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17960 wlarc=
17961 else
17962 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17963 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17964 fi
17965 ;;
17966
17967 solaris*)
17968 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17969 ld_shlibs_GCJ=no
17970 cat <<_LT_EOF 1>&2
17971
17972 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17973 *** create shared libraries on Solaris systems. Therefore, libtool
17974 *** is disabling shared libraries support. We urge you to upgrade GNU
17975 *** binutils to release 2.9.1 or newer. Another option is to modify
17976 *** your PATH or compiler configuration so that the native linker is
17977 *** used, and then restart.
17978
17979 _LT_EOF
17980 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17981 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17982 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17983 else
17984 ld_shlibs_GCJ=no
17985 fi
17986 ;;
17987
17988 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17989 case `$LD -v 2>&1` in
17990 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17991 ld_shlibs_GCJ=no
17992 cat <<_LT_EOF 1>&2
17993
17994 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17995 *** reliably create shared libraries on SCO systems. Therefore, libtool
17996 *** is disabling shared libraries support. We urge you to upgrade GNU
17997 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17998 *** your PATH or compiler configuration so that the native linker is
17999 *** used, and then restart.
18000
18001 _LT_EOF
18002 ;;
18003 *)
18004 # For security reasons, it is highly recommended that you always
18005 # use absolute paths for naming shared libraries, and exclude the
18006 # DT_RUNPATH tag from executables and libraries. But doing so
18007 # requires that you compile everything twice, which is a pain.
18008 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18009 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18010 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18011 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18012 else
18013 ld_shlibs_GCJ=no
18014 fi
18015 ;;
18016 esac
18017 ;;
18018
18019 sunos4*)
18020 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18021 wlarc=
18022 hardcode_direct_GCJ=yes
18023 hardcode_shlibpath_var_GCJ=no
18024 ;;
18025
18026 *)
18027 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18028 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18029 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18030 else
18031 ld_shlibs_GCJ=no
18032 fi
18033 ;;
18034 esac
18035
18036 if test "$ld_shlibs_GCJ" = no; then
18037 runpath_var=
18038 hardcode_libdir_flag_spec_GCJ=
18039 export_dynamic_flag_spec_GCJ=
18040 whole_archive_flag_spec_GCJ=
18041 fi
18042 else
18043 # PORTME fill in a description of your system's linker (not GNU ld)
18044 case $host_os in
18045 aix3*)
18046 allow_undefined_flag_GCJ=unsupported
18047 always_export_symbols_GCJ=yes
18048 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'
18049 # Note: this linker hardcodes the directories in LIBPATH if there
18050 # are no directories specified by -L.
18051 hardcode_minus_L_GCJ=yes
18052 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18053 # Neither direct hardcoding nor static linking is supported with a
18054 # broken collect2.
18055 hardcode_direct_GCJ=unsupported
18056 fi
18057 ;;
18058
18059 aix[4-9]*)
18060 if test "$host_cpu" = ia64; then
18061 # On IA64, the linker does run time linking by default, so we don't
18062 # have to do anything special.
18063 aix_use_runtimelinking=no
18064 exp_sym_flag='-Bexport'
18065 no_entry_flag=""
18066 else
18067 # If we're using GNU nm, then we don't want the "-C" option.
18068 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18069 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18070 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
18071 else
18072 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'
18073 fi
18074 aix_use_runtimelinking=no
18075
18076 # Test if we are trying to use run time linking or normal
18077 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18078 # need to do runtime linking.
18079 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18080 for ld_flag in $LDFLAGS; do
18081 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18082 aix_use_runtimelinking=yes
18083 break
18084 fi
18085 done
18086 ;;
18087 esac
18088
18089 exp_sym_flag='-bexport'
18090 no_entry_flag='-bnoentry'
18091 fi
18092
18093 # When large executables or shared objects are built, AIX ld can
18094 # have problems creating the table of contents. If linking a library
18095 # or program results in "error TOC overflow" add -mminimal-toc to
18096 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18097 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18098
18099 archive_cmds_GCJ=''
18100 hardcode_direct_GCJ=yes
18101 hardcode_direct_absolute_GCJ=yes
18102 hardcode_libdir_separator_GCJ=':'
18103 link_all_deplibs_GCJ=yes
18104 file_list_spec_GCJ='${wl}-f,'
18105
18106 if test "$GCC" = yes; then
18107 case $host_os in aix4.[012]|aix4.[012].*)
18108 # We only want to do this on AIX 4.2 and lower, the check
18109 # below for broken collect2 doesn't work under 4.3+
18110 collect2name=`${CC} -print-prog-name=collect2`
18111 if test -f "$collect2name" &&
18112 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18113 then
18114 # We have reworked collect2
18115 :
18116 else
18117 # We have old collect2
18118 hardcode_direct_GCJ=unsupported
18119 # It fails to find uninstalled libraries when the uninstalled
18120 # path is not listed in the libpath. Setting hardcode_minus_L
18121 # to unsupported forces relinking
18122 hardcode_minus_L_GCJ=yes
18123 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18124 hardcode_libdir_separator_GCJ=
18125 fi
18126 ;;
18127 esac
18128 shared_flag='-shared'
18129 if test "$aix_use_runtimelinking" = yes; then
18130 shared_flag="$shared_flag "'${wl}-G'
18131 fi
18132 else
18133 # not using gcc
18134 if test "$host_cpu" = ia64; then
18135 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18136 # chokes on -Wl,-G. The following line is correct:
18137 shared_flag='-G'
18138 else
18139 if test "$aix_use_runtimelinking" = yes; then
18140 shared_flag='${wl}-G'
18141 else
18142 shared_flag='${wl}-bM:SRE'
18143 fi
18144 fi
18145 fi
18146
18147 export_dynamic_flag_spec_GCJ='${wl}-bexpall'
18148 # It seems that -bexpall does not export symbols beginning with
18149 # underscore (_), so it is better to generate a list of symbols to export.
18150 always_export_symbols_GCJ=yes
18151 if test "$aix_use_runtimelinking" = yes; then
18152 # Warning - without using the other runtime loading flags (-brtl),
18153 # -berok will link without error, but may produce a broken library.
18154 allow_undefined_flag_GCJ='-berok'
18155 # Determine the default libpath from the value encoded in an
18156 # empty executable.
18157 if test x$gcc_no_link = xyes; then
18158 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18159 fi
18160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18161 /* end confdefs.h. */
18162
18163 int
18164 main ()
18165 {
18166
18167 ;
18168 return 0;
18169 }
18170 _ACEOF
18171 if ac_fn_c_try_link "$LINENO"; then :
18172
18173 lt_aix_libpath_sed='
18174 /Import File Strings/,/^$/ {
18175 /^0/ {
18176 s/^0 *\(.*\)$/\1/
18177 p
18178 }
18179 }'
18180 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18181 # Check for a 64-bit object if we didn't find anything.
18182 if test -z "$aix_libpath"; then
18183 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18184 fi
18185 fi
18186 rm -f core conftest.err conftest.$ac_objext \
18187 conftest$ac_exeext conftest.$ac_ext
18188 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18189
18190 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18191 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18192 else
18193 if test "$host_cpu" = ia64; then
18194 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18195 allow_undefined_flag_GCJ="-z nodefs"
18196 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"
18197 else
18198 # Determine the default libpath from the value encoded in an
18199 # empty executable.
18200 if test x$gcc_no_link = xyes; then
18201 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18202 fi
18203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18204 /* end confdefs.h. */
18205
18206 int
18207 main ()
18208 {
18209
18210 ;
18211 return 0;
18212 }
18213 _ACEOF
18214 if ac_fn_c_try_link "$LINENO"; then :
18215
18216 lt_aix_libpath_sed='
18217 /Import File Strings/,/^$/ {
18218 /^0/ {
18219 s/^0 *\(.*\)$/\1/
18220 p
18221 }
18222 }'
18223 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18224 # Check for a 64-bit object if we didn't find anything.
18225 if test -z "$aix_libpath"; then
18226 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18227 fi
18228 fi
18229 rm -f core conftest.err conftest.$ac_objext \
18230 conftest$ac_exeext conftest.$ac_ext
18231 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18232
18233 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18234 # Warning - without using the other run time loading flags,
18235 # -berok will link without error, but may produce a broken library.
18236 no_undefined_flag_GCJ=' ${wl}-bernotok'
18237 allow_undefined_flag_GCJ=' ${wl}-berok'
18238 # Exported symbols can be pulled into shared objects from archives
18239 whole_archive_flag_spec_GCJ='$convenience'
18240 archive_cmds_need_lc_GCJ=yes
18241 # This is similar to how AIX traditionally builds its shared libraries.
18242 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'
18243 fi
18244 fi
18245 ;;
18246
18247 amigaos*)
18248 case $host_cpu in
18249 powerpc)
18250 # see comment about AmigaOS4 .so support
18251 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18252 archive_expsym_cmds_GCJ=''
18253 ;;
18254 m68k)
18255 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)'
18256 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18257 hardcode_minus_L_GCJ=yes
18258 ;;
18259 esac
18260 ;;
18261
18262 bsdi[45]*)
18263 export_dynamic_flag_spec_GCJ=-rdynamic
18264 ;;
18265
18266 cygwin* | mingw* | pw32* | cegcc*)
18267 # When not using gcc, we currently assume that we are using
18268 # Microsoft Visual C++.
18269 # hardcode_libdir_flag_spec is actually meaningless, as there is
18270 # no search path for DLLs.
18271 hardcode_libdir_flag_spec_GCJ=' '
18272 allow_undefined_flag_GCJ=unsupported
18273 # Tell ltmain to make .lib files, not .a files.
18274 libext=lib
18275 # Tell ltmain to make .dll files, not .so files.
18276 shrext_cmds=".dll"
18277 # FIXME: Setting linknames here is a bad hack.
18278 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
18279 # The linker will automatically build a .lib file if we build a DLL.
18280 old_archive_from_new_cmds_GCJ='true'
18281 # FIXME: Should let the user specify the lib program.
18282 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18283 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18284 enable_shared_with_static_runtimes_GCJ=yes
18285 ;;
18286
18287 darwin* | rhapsody*)
18288
18289
18290 archive_cmds_need_lc_GCJ=no
18291 hardcode_direct_GCJ=no
18292 hardcode_automatic_GCJ=yes
18293 hardcode_shlibpath_var_GCJ=unsupported
18294 whole_archive_flag_spec_GCJ=''
18295 link_all_deplibs_GCJ=yes
18296 allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
18297 case $cc_basename in
18298 ifort*) _lt_dar_can_shared=yes ;;
18299 *) _lt_dar_can_shared=$GCC ;;
18300 esac
18301 if test "$_lt_dar_can_shared" = "yes"; then
18302 output_verbose_link_cmd=echo
18303 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}"
18304 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18305 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}"
18306 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}"
18307
18308 else
18309 ld_shlibs_GCJ=no
18310 fi
18311
18312 ;;
18313
18314 dgux*)
18315 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18316 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18317 hardcode_shlibpath_var_GCJ=no
18318 ;;
18319
18320 freebsd1*)
18321 ld_shlibs_GCJ=no
18322 ;;
18323
18324 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18325 # support. Future versions do this automatically, but an explicit c++rt0.o
18326 # does not break anything, and helps significantly (at the cost of a little
18327 # extra space).
18328 freebsd2.2*)
18329 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18330 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18331 hardcode_direct_GCJ=yes
18332 hardcode_shlibpath_var_GCJ=no
18333 ;;
18334
18335 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18336 freebsd2*)
18337 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18338 hardcode_direct_GCJ=yes
18339 hardcode_minus_L_GCJ=yes
18340 hardcode_shlibpath_var_GCJ=no
18341 ;;
18342
18343 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18344 freebsd* | dragonfly*)
18345 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18346 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18347 hardcode_direct_GCJ=yes
18348 hardcode_shlibpath_var_GCJ=no
18349 ;;
18350
18351 hpux9*)
18352 if test "$GCC" = yes; then
18353 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'
18354 else
18355 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'
18356 fi
18357 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18358 hardcode_libdir_separator_GCJ=:
18359 hardcode_direct_GCJ=yes
18360
18361 # hardcode_minus_L: Not really in the search PATH,
18362 # but as the default location of the library.
18363 hardcode_minus_L_GCJ=yes
18364 export_dynamic_flag_spec_GCJ='${wl}-E'
18365 ;;
18366
18367 hpux10*)
18368 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18369 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18370 else
18371 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18372 fi
18373 if test "$with_gnu_ld" = no; then
18374 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18375 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18376 hardcode_libdir_separator_GCJ=:
18377 hardcode_direct_GCJ=yes
18378 hardcode_direct_absolute_GCJ=yes
18379 export_dynamic_flag_spec_GCJ='${wl}-E'
18380 # hardcode_minus_L: Not really in the search PATH,
18381 # but as the default location of the library.
18382 hardcode_minus_L_GCJ=yes
18383 fi
18384 ;;
18385
18386 hpux11*)
18387 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18388 case $host_cpu in
18389 hppa*64*)
18390 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18391 ;;
18392 ia64*)
18393 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18394 ;;
18395 *)
18396 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18397 ;;
18398 esac
18399 else
18400 case $host_cpu in
18401 hppa*64*)
18402 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18403 ;;
18404 ia64*)
18405 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18406 ;;
18407 *)
18408 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18409 ;;
18410 esac
18411 fi
18412 if test "$with_gnu_ld" = no; then
18413 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18414 hardcode_libdir_separator_GCJ=:
18415
18416 case $host_cpu in
18417 hppa*64*|ia64*)
18418 hardcode_direct_GCJ=no
18419 hardcode_shlibpath_var_GCJ=no
18420 ;;
18421 *)
18422 hardcode_direct_GCJ=yes
18423 hardcode_direct_absolute_GCJ=yes
18424 export_dynamic_flag_spec_GCJ='${wl}-E'
18425
18426 # hardcode_minus_L: Not really in the search PATH,
18427 # but as the default location of the library.
18428 hardcode_minus_L_GCJ=yes
18429 ;;
18430 esac
18431 fi
18432 ;;
18433
18434 irix5* | irix6* | nonstopux*)
18435 if test "$GCC" = yes; then
18436 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18437 # Try to use the -exported_symbol ld option, if it does not
18438 # work, assume that -exports_file does not work either and
18439 # implicitly export all symbols.
18440 save_LDFLAGS="$LDFLAGS"
18441 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18442 if test x$gcc_no_link = xyes; then
18443 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18444 fi
18445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18446 /* end confdefs.h. */
18447 int foo(void) {}
18448 _ACEOF
18449 if ac_fn_c_try_link "$LINENO"; then :
18450 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
18451
18452 fi
18453 rm -f core conftest.err conftest.$ac_objext \
18454 conftest$ac_exeext conftest.$ac_ext
18455 LDFLAGS="$save_LDFLAGS"
18456 else
18457 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
18458 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
18459 fi
18460 archive_cmds_need_lc_GCJ='no'
18461 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18462 hardcode_libdir_separator_GCJ=:
18463 inherit_rpath_GCJ=yes
18464 link_all_deplibs_GCJ=yes
18465 ;;
18466
18467 netbsd*)
18468 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18469 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18470 else
18471 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18472 fi
18473 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18474 hardcode_direct_GCJ=yes
18475 hardcode_shlibpath_var_GCJ=no
18476 ;;
18477
18478 newsos6)
18479 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18480 hardcode_direct_GCJ=yes
18481 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18482 hardcode_libdir_separator_GCJ=:
18483 hardcode_shlibpath_var_GCJ=no
18484 ;;
18485
18486 *nto* | *qnx*)
18487 ;;
18488
18489 openbsd*)
18490 if test -f /usr/libexec/ld.so; then
18491 hardcode_direct_GCJ=yes
18492 hardcode_shlibpath_var_GCJ=no
18493 hardcode_direct_absolute_GCJ=yes
18494 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18495 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18496 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18497 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18498 export_dynamic_flag_spec_GCJ='${wl}-E'
18499 else
18500 case $host_os in
18501 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18502 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18503 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18504 ;;
18505 *)
18506 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18507 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18508 ;;
18509 esac
18510 fi
18511 else
18512 ld_shlibs_GCJ=no
18513 fi
18514 ;;
18515
18516 os2*)
18517 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18518 hardcode_minus_L_GCJ=yes
18519 allow_undefined_flag_GCJ=unsupported
18520 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'
18521 old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18522 ;;
18523
18524 osf3*)
18525 if test "$GCC" = yes; then
18526 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18527 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18528 else
18529 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18530 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
18531 fi
18532 archive_cmds_need_lc_GCJ='no'
18533 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18534 hardcode_libdir_separator_GCJ=:
18535 ;;
18536
18537 osf4* | osf5*) # as osf3* with the addition of -msym flag
18538 if test "$GCC" = yes; then
18539 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18540 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18541 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18542 else
18543 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18544 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
18545 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~
18546 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
18547
18548 # Both c and cxx compiler support -rpath directly
18549 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18550 fi
18551 archive_cmds_need_lc_GCJ='no'
18552 hardcode_libdir_separator_GCJ=:
18553 ;;
18554
18555 solaris*)
18556 no_undefined_flag_GCJ=' -z defs'
18557 if test "$GCC" = yes; then
18558 wlarc='${wl}'
18559 archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18560 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18561 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18562 else
18563 case `$CC -V 2>&1` in
18564 *"Compilers 5.0"*)
18565 wlarc=''
18566 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18567 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18568 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18569 ;;
18570 *)
18571 wlarc='${wl}'
18572 archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18573 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18574 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18575 ;;
18576 esac
18577 fi
18578 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18579 hardcode_shlibpath_var_GCJ=no
18580 case $host_os in
18581 solaris2.[0-5] | solaris2.[0-5].*) ;;
18582 *)
18583 # The compiler driver will combine and reorder linker options,
18584 # but understands `-z linker_flag'. GCC discards it without `$wl',
18585 # but is careful enough not to reorder.
18586 # Supported since Solaris 2.6 (maybe 2.5.1?)
18587 if test "$GCC" = yes; then
18588 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18589 else
18590 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18591 fi
18592 ;;
18593 esac
18594 link_all_deplibs_GCJ=yes
18595 ;;
18596
18597 sunos4*)
18598 if test "x$host_vendor" = xsequent; then
18599 # Use $CC to link under sequent, because it throws in some extra .o
18600 # files that make .init and .fini sections work.
18601 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18602 else
18603 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18604 fi
18605 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18606 hardcode_direct_GCJ=yes
18607 hardcode_minus_L_GCJ=yes
18608 hardcode_shlibpath_var_GCJ=no
18609 ;;
18610
18611 sysv4)
18612 case $host_vendor in
18613 sni)
18614 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18615 hardcode_direct_GCJ=yes # is this really true???
18616 ;;
18617 siemens)
18618 ## LD is ld it makes a PLAMLIB
18619 ## CC just makes a GrossModule.
18620 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18621 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18622 hardcode_direct_GCJ=no
18623 ;;
18624 motorola)
18625 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18626 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18627 ;;
18628 esac
18629 runpath_var='LD_RUN_PATH'
18630 hardcode_shlibpath_var_GCJ=no
18631 ;;
18632
18633 sysv4.3*)
18634 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18635 hardcode_shlibpath_var_GCJ=no
18636 export_dynamic_flag_spec_GCJ='-Bexport'
18637 ;;
18638
18639 sysv4*MP*)
18640 if test -d /usr/nec; then
18641 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18642 hardcode_shlibpath_var_GCJ=no
18643 runpath_var=LD_RUN_PATH
18644 hardcode_runpath_var=yes
18645 ld_shlibs_GCJ=yes
18646 fi
18647 ;;
18648
18649 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18650 no_undefined_flag_GCJ='${wl}-z,text'
18651 archive_cmds_need_lc_GCJ=no
18652 hardcode_shlibpath_var_GCJ=no
18653 runpath_var='LD_RUN_PATH'
18654
18655 if test "$GCC" = yes; then
18656 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18657 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18658 else
18659 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18660 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18661 fi
18662 ;;
18663
18664 sysv5* | sco3.2v5* | sco5v6*)
18665 # Note: We can NOT use -z defs as we might desire, because we do not
18666 # link with -lc, and that would cause any symbols used from libc to
18667 # always be unresolved, which means just about no library would
18668 # ever link correctly. If we're not using GNU ld we use -z text
18669 # though, which does catch some bad symbols but isn't as heavy-handed
18670 # as -z defs.
18671 no_undefined_flag_GCJ='${wl}-z,text'
18672 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18673 archive_cmds_need_lc_GCJ=no
18674 hardcode_shlibpath_var_GCJ=no
18675 hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
18676 hardcode_libdir_separator_GCJ=':'
18677 link_all_deplibs_GCJ=yes
18678 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18679 runpath_var='LD_RUN_PATH'
18680
18681 if test "$GCC" = yes; then
18682 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18683 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18684 else
18685 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18686 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18687 fi
18688 ;;
18689
18690 uts4*)
18691 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18692 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18693 hardcode_shlibpath_var_GCJ=no
18694 ;;
18695
18696 *)
18697 ld_shlibs_GCJ=no
18698 ;;
18699 esac
18700
18701 if test x$host_vendor = xsni; then
18702 case $host in
18703 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18704 export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
18705 ;;
18706 esac
18707 fi
18708 fi
18709
18710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
18711 $as_echo "$ld_shlibs_GCJ" >&6; }
18712 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18713
18714 with_gnu_ld_GCJ=$with_gnu_ld
18715
18716
18717
18718
18719
18720
18721 #
18722 # Do we need to explicitly link libc?
18723 #
18724 case "x$archive_cmds_need_lc_GCJ" in
18725 x|xyes)
18726 # Assume -lc should be added
18727 archive_cmds_need_lc_GCJ=yes
18728
18729 if test "$enable_shared" = yes && test "$GCC" = yes; then
18730 case $archive_cmds_GCJ in
18731 *'~'*)
18732 # FIXME: we may have to deal with multi-command sequences.
18733 ;;
18734 '$CC '*)
18735 # Test whether the compiler implicitly links with -lc since on some
18736 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18737 # to ld, don't add -lc before -lgcc.
18738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18739 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18740 if test "${lt_cv_archive_cmds_need_lc_GCJ+set}" = set; then :
18741 $as_echo_n "(cached) " >&6
18742 else
18743 $RM conftest*
18744 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18745
18746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18747 (eval $ac_compile) 2>&5
18748 ac_status=$?
18749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18750 test $ac_status = 0; } 2>conftest.err; then
18751 soname=conftest
18752 lib=conftest
18753 libobjs=conftest.$ac_objext
18754 deplibs=
18755 wl=$lt_prog_compiler_wl_GCJ
18756 pic_flag=$lt_prog_compiler_pic_GCJ
18757 compiler_flags=-v
18758 linker_flags=-v
18759 verstring=
18760 output_objdir=.
18761 libname=conftest
18762 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18763 allow_undefined_flag_GCJ=
18764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18765 (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18766 ac_status=$?
18767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18768 test $ac_status = 0; }
18769 then
18770 lt_cv_archive_cmds_need_lc_GCJ=no
18771 else
18772 lt_cv_archive_cmds_need_lc_GCJ=yes
18773 fi
18774 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18775 else
18776 cat conftest.err 1>&5
18777 fi
18778 $RM conftest*
18779
18780 fi
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GCJ" >&5
18782 $as_echo "$lt_cv_archive_cmds_need_lc_GCJ" >&6; }
18783 archive_cmds_need_lc_GCJ=$lt_cv_archive_cmds_need_lc_GCJ
18784 ;;
18785 esac
18786 fi
18787 ;;
18788 esac
18789
18790
18791
18792
18793
18794
18795
18796
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812
18813
18814
18815
18816
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851
18852
18853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18854 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18855 hardcode_action_GCJ=
18856 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
18857 test -n "$runpath_var_GCJ" ||
18858 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18859
18860 # We can hardcode non-existent directories.
18861 if test "$hardcode_direct_GCJ" != no &&
18862 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18863 # have to relink, otherwise we might link with an installed library
18864 # when we should be linking with a yet-to-be-installed one
18865 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18866 test "$hardcode_minus_L_GCJ" != no; then
18867 # Linking always hardcodes the temporary library directory.
18868 hardcode_action_GCJ=relink
18869 else
18870 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18871 hardcode_action_GCJ=immediate
18872 fi
18873 else
18874 # We cannot hardcode anything, or else we can only hardcode existing
18875 # directories.
18876 hardcode_action_GCJ=unsupported
18877 fi
18878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18879 $as_echo "$hardcode_action_GCJ" >&6; }
18880
18881 if test "$hardcode_action_GCJ" = relink ||
18882 test "$inherit_rpath_GCJ" = yes; then
18883 # Fast installation is not supported
18884 enable_fast_install=no
18885 elif test "$shlibpath_overrides_runpath" = yes ||
18886 test "$enable_shared" = no; then
18887 # Fast installation is not necessary
18888 enable_fast_install=needless
18889 fi
18890
18891
18892
18893
18894
18895
18896
18897 fi
18898
18899 compiler_GCJ=${GCJ-gcj}
18900 ac_ext=c
18901 ac_cpp='$CPP $CPPFLAGS'
18902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18905
18906
18907 if test "x$CC" != xcc; then
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
18909 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
18910 else
18911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
18912 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
18913 fi
18914 set dummy $CC; ac_cc=`$as_echo "$2" |
18915 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18916 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
18917 $as_echo_n "(cached) " >&6
18918 else
18919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18920 /* end confdefs.h. */
18921
18922 int
18923 main ()
18924 {
18925
18926 ;
18927 return 0;
18928 }
18929 _ACEOF
18930 # Make sure it works both with $CC and with simple cc.
18931 # We do the test twice because some compilers refuse to overwrite an
18932 # existing .o file with -o, though they will create one.
18933 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
18934 rm -f conftest2.*
18935 if { { case "(($ac_try" in
18936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18937 *) ac_try_echo=$ac_try;;
18938 esac
18939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18940 $as_echo "$ac_try_echo"; } >&5
18941 (eval "$ac_try") 2>&5
18942 ac_status=$?
18943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18944 test $ac_status = 0; } &&
18945 test -f conftest2.$ac_objext && { { case "(($ac_try" in
18946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18947 *) ac_try_echo=$ac_try;;
18948 esac
18949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18950 $as_echo "$ac_try_echo"; } >&5
18951 (eval "$ac_try") 2>&5
18952 ac_status=$?
18953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18954 test $ac_status = 0; };
18955 then
18956 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
18957 if test "x$CC" != xcc; then
18958 # Test first that cc exists at all.
18959 if { ac_try='cc -c conftest.$ac_ext >&5'
18960 { { case "(($ac_try" in
18961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18962 *) ac_try_echo=$ac_try;;
18963 esac
18964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18965 $as_echo "$ac_try_echo"; } >&5
18966 (eval "$ac_try") 2>&5
18967 ac_status=$?
18968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18969 test $ac_status = 0; }; }; then
18970 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
18971 rm -f conftest2.*
18972 if { { case "(($ac_try" in
18973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18974 *) ac_try_echo=$ac_try;;
18975 esac
18976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18977 $as_echo "$ac_try_echo"; } >&5
18978 (eval "$ac_try") 2>&5
18979 ac_status=$?
18980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18981 test $ac_status = 0; } &&
18982 test -f conftest2.$ac_objext && { { case "(($ac_try" in
18983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18984 *) ac_try_echo=$ac_try;;
18985 esac
18986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18987 $as_echo "$ac_try_echo"; } >&5
18988 (eval "$ac_try") 2>&5
18989 ac_status=$?
18990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18991 test $ac_status = 0; };
18992 then
18993 # cc works too.
18994 :
18995 else
18996 # cc exists but doesn't like -o.
18997 eval ac_cv_prog_cc_${ac_cc}_c_o=no
18998 fi
18999 fi
19000 fi
19001 else
19002 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19003 fi
19004 rm -f core conftest*
19005
19006 fi
19007 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19009 $as_echo "yes" >&6; }
19010 else
19011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19012 $as_echo "no" >&6; }
19013
19014 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
19015
19016 fi
19017
19018 # FIXME: we rely on the cache variable name because
19019 # there is no other way.
19020 set dummy $CC
19021 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19022 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
19023 if test "$am_t" != yes; then
19024 # Losing compiler, so override with the script.
19025 # FIXME: It is wrong to rewrite CC.
19026 # But if we don't then we get into trouble of one sort or another.
19027 # A longer-term fix would be to have automake use am__CC in this case,
19028 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19029 CC="$am_aux_dir/compile $CC"
19030 fi
19031
19032
19033
19034
19035
19036 subdirs="$subdirs classpath libltdl"
19037
19038
19039 # The -no-testsuite modules omit the test subdir.
19040 if test -d $srcdir/testsuite; then
19041 TESTSUBDIR_TRUE=
19042 TESTSUBDIR_FALSE='#'
19043 else
19044 TESTSUBDIR_TRUE='#'
19045 TESTSUBDIR_FALSE=
19046 fi
19047
19048
19049 # Should the runtime set system properties by examining the
19050 # environment variable GCJ_PROPERTIES?
19051 # Check whether --enable-getenv-properties was given.
19052 if test "${enable_getenv_properties+set}" = set; then :
19053 enableval=$enable_getenv_properties;
19054 fi
19055
19056
19057 # Whether GCJ_PROPERTIES is used depends on the target.
19058 if test -z "$enable_getenv_properties"; then
19059 enable_getenv_properties=${enable_getenv_properties_default-yes}
19060 fi
19061 if test "$enable_getenv_properties" = no; then
19062
19063 $as_echo "#define DISABLE_GETENV_PROPERTIES 1" >>confdefs.h
19064
19065 fi
19066
19067 # Whether we should use arguments to main()
19068 if test -z "$enable_main_args"; then
19069 enable_main_args=${enable_main_args_default-yes}
19070 fi
19071 if test "$enable_main_args" = no; then
19072
19073 $as_echo "#define DISABLE_MAIN_ARGS 1" >>confdefs.h
19074
19075 fi
19076
19077
19078 # Should we use hashtable-based synchronization?
19079 # Currently works only for Linux X86/ia64
19080 # Typically faster and more space-efficient
19081 # Check whether --enable-hash-synchronization was given.
19082 if test "${enable_hash_synchronization+set}" = set; then :
19083 enableval=$enable_hash_synchronization;
19084 fi
19085
19086
19087 if test -z "$enable_hash_synchronization"; then
19088 enable_hash_synchronization=$enable_hash_synchronization_default
19089 fi
19090
19091
19092 install_ecj_jar=no
19093 ECJ_BUILD_JAR=
19094 ECJ_JAR=
19095
19096 # Check whether --with-ecj-jar was given.
19097 if test "${with_ecj_jar+set}" = set; then :
19098 withval=$with_ecj_jar; ECJ_JAR=$withval
19099 else
19100 if test -f $multi_basedir/ecj.jar; then
19101 ECJ_BUILD_JAR=$multi_basedir/ecj.jar
19102 ECJ_JAR='$(jardir)/ecj.jar'
19103 install_ecj_jar=yes
19104 fi
19105 fi
19106
19107
19108
19109 if test "$ECJ_JAR" != ""; then
19110 BUILD_ECJ1_TRUE=
19111 BUILD_ECJ1_FALSE='#'
19112 else
19113 BUILD_ECJ1_TRUE='#'
19114 BUILD_ECJ1_FALSE=
19115 fi
19116
19117 if test $install_ecj_jar = yes; then
19118 INSTALL_ECJ_JAR_TRUE=
19119 INSTALL_ECJ_JAR_FALSE='#'
19120 else
19121 INSTALL_ECJ_JAR_TRUE='#'
19122 INSTALL_ECJ_JAR_FALSE=
19123 fi
19124
19125
19126
19127 # Check whether --with-java-home was given.
19128 if test "${with_java_home+set}" = set; then :
19129 withval=$with_java_home; JAVA_HOME="${withval}"
19130 else
19131 JAVA_HOME=""
19132 fi
19133
19134 if test ! -z "$JAVA_HOME"; then
19135 JAVA_HOME_SET_TRUE=
19136 JAVA_HOME_SET_FALSE='#'
19137 else
19138 JAVA_HOME_SET_TRUE='#'
19139 JAVA_HOME_SET_FALSE=
19140 fi
19141
19142
19143
19144 suppress_libgcj_bc=no
19145 # Check whether --enable-libgcj-bc was given.
19146 if test "${enable_libgcj_bc+set}" = set; then :
19147 enableval=$enable_libgcj_bc; if test "$enable_libgcj_bc" = "no"; then
19148 suppress_libgcj_bc=yes
19149 fi
19150 fi
19151
19152 if test "$suppress_libgcj_bc" = "yes"; then
19153 SUPPRESS_LIBGCJ_BC_TRUE=
19154 SUPPRESS_LIBGCJ_BC_FALSE='#'
19155 else
19156 SUPPRESS_LIBGCJ_BC_TRUE='#'
19157 SUPPRESS_LIBGCJ_BC_FALSE=
19158 fi
19159
19160
19161 build_libgcj_reduced_reflection=no
19162 # Check whether --enable-reduced-reflection was given.
19163 if test "${enable_reduced_reflection+set}" = set; then :
19164 enableval=$enable_reduced_reflection; if test "$enable_reduced_reflection" = "yes"; then
19165 build_libgcj_reduced_reflection=yes
19166 fi
19167 fi
19168
19169 if test "$build_libgcj_reduced_reflection" = "yes"; then
19170 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
19171 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
19172 else
19173 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
19174 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
19175 fi
19176
19177
19178 # What is the native OS API for MinGW?
19179
19180 # Check whether --with-win32-nlsapi was given.
19181 if test "${with_win32_nlsapi+set}" = set; then :
19182 withval=$with_win32_nlsapi; case "${withval}" in
19183 ansi) with_win32_nlsapi=ansi ;;
19184 unicows) with_win32_nlsapi=unicows ;;
19185 unicode) with_win32_nlsapi=unicode ;;
19186 *) as_fn_error "Bad value ${withval} for --with-win32-nlsapi." "$LINENO" 5 ;;
19187 esac
19188 else
19189 with_win32_nlsapi=ansi
19190 fi
19191
19192
19193 case "${with_win32_nlsapi}" in
19194 unicows | unicode)
19195
19196 $as_echo "#define MINGW_LIBGCJ_UNICODE 1" >>confdefs.h
19197
19198 ;;
19199 esac
19200
19201 # configure.host sets slow_pthread_self if the synchronization code should
19202 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
19203 if test "${slow_pthread_self}" = "yes"; then
19204
19205 $as_echo "#define SLOW_PTHREAD_SELF 1" >>confdefs.h
19206
19207 fi
19208
19209 # Check for gc debugging. This option is handled both here and in the GC.
19210 # Check whether --enable-gc-debug was given.
19211 if test "${enable_gc_debug+set}" = set; then :
19212 enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then
19213
19214 $as_echo "#define LIBGCJ_GC_DEBUG 1" >>confdefs.h
19215
19216 fi
19217 fi
19218
19219
19220 # See if the user has the interpreter included.
19221 # Check whether --enable-interpreter was given.
19222 if test "${enable_interpreter+set}" = set; then :
19223 enableval=$enable_interpreter; if test "$enable_interpreter" = yes; then
19224 # This can also be set in configure.host.
19225 libgcj_interpreter=yes
19226 elif test "$enable_interpreter" = no; then
19227 libgcj_interpreter=no
19228 fi
19229 fi
19230
19231
19232 if test "$libgcj_interpreter" = yes; then
19233
19234 $as_echo "#define INTERPRETER 1" >>confdefs.h
19235
19236 fi
19237 INTERPRETER="$libgcj_interpreter"
19238
19239 if test "$libgcj_interpreter" = yes; then
19240 INTERPRETER_TRUE=
19241 INTERPRETER_FALSE='#'
19242 else
19243 INTERPRETER_TRUE='#'
19244 INTERPRETER_FALSE=
19245 fi
19246
19247
19248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception model to use" >&5
19249 $as_echo_n "checking for exception model to use... " >&6; }
19250 ac_ext=cpp
19251 ac_cpp='$CXXCPP $CPPFLAGS'
19252 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19253 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19254 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19255
19256 # Check whether --enable-sjlj-exceptions was given.
19257 if test "${enable_sjlj_exceptions+set}" = set; then :
19258 enableval=$enable_sjlj_exceptions; :
19259 else
19260 cat > conftest.$ac_ext << EOF
19261 #line 19261 "configure"
19262 struct S { ~S(); };
19263 void bar();
19264 void foo()
19265 {
19266 S s;
19267 bar();
19268 }
19269 EOF
19270 old_CXXFLAGS="$CXXFLAGS"
19271 CXXFLAGS=-S
19272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19273 (eval $ac_compile) 2>&5
19274 ac_status=$?
19275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19276 test $ac_status = 0; }; then
19277 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
19278 enable_sjlj_exceptions=yes
19279 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
19280 enable_sjlj_exceptions=no
19281 elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
19282 # ARM EH ABI.
19283 enable_sjlj_exceptions=no
19284 fi
19285 fi
19286 CXXFLAGS="$old_CXXFLAGS"
19287 rm -f conftest*
19288 fi
19289
19290 if test x$enable_sjlj_exceptions = xyes; then
19291
19292 $as_echo "#define SJLJ_EXCEPTIONS 1" >>confdefs.h
19293
19294 ac_exception_model_name=sjlj
19295 elif test x$enable_sjlj_exceptions = xno; then
19296 ac_exception_model_name="call frame"
19297 else
19298 as_fn_error "unable to detect exception model" "$LINENO" 5
19299 fi
19300 ac_ext=c
19301 ac_cpp='$CPP $CPPFLAGS'
19302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19305
19306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception_model_name" >&5
19307 $as_echo "$ac_exception_model_name" >&6; }
19308
19309 # If we are non using SJLJ exceptions, and this host does not have support
19310 # for unwinding from a signal handler, enable checked dereferences and divides.
19311 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
19312 CHECKREFSPEC=-fcheck-references
19313 DIVIDESPEC=-fuse-divide-subroutine
19314 EXCEPTIONSPEC=
19315 fi
19316
19317 # See if the user wants to disable java.net. This is the mildly
19318 # ugly way that we admit that target-side configuration sucks.
19319 # Check whether --enable-java-net was given.
19320 if test "${enable_java_net+set}" = set; then :
19321 enableval=$enable_java_net;
19322 fi
19323
19324
19325 # Whether java.net is built by default can depend on the target.
19326 if test -z "$enable_java_net"; then
19327 enable_java_net=${enable_java_net_default-yes}
19328 fi
19329 if test "$enable_java_net" = no; then
19330
19331 $as_echo "#define DISABLE_JAVA_NET 1" >>confdefs.h
19332
19333 fi
19334
19335 # See if the user wants to configure without libffi. Some
19336 # architectures don't support it, and default values are set in
19337 # configure.host.
19338
19339 # Check whether --with-libffi was given.
19340 if test "${with_libffi+set}" = set; then :
19341 withval=$with_libffi; :
19342 else
19343 with_libffi=${with_libffi_default-yes}
19344 fi
19345
19346
19347 LIBFFI=
19348 LIBFFIINCS=
19349 if test "$with_libffi" != no; then
19350
19351 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
19352
19353 LIBFFI=../libffi/libffi_convenience.la
19354 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
19355 fi
19356
19357
19358
19359 # See if the user wants to disable JVMPI support.
19360 # Check whether --enable-jvmpi was given.
19361 if test "${enable_jvmpi+set}" = set; then :
19362 enableval=$enable_jvmpi;
19363 fi
19364
19365
19366 if test "$enable_jvmpi" != no; then
19367
19368 $as_echo "#define ENABLE_JVMPI 1" >>confdefs.h
19369
19370 fi
19371
19372 # If the target is an eCos system, use the appropriate eCos
19373 # I/O routines.
19374 # FIXME: this should not be a local option but a global target
19375 # system; at present there is no eCos target.
19376 TARGET_ECOS=${PROCESS-"no"}
19377
19378 # Check whether --with-ecos was given.
19379 if test "${with_ecos+set}" = set; then :
19380 withval=$with_ecos; TARGET_ECOS="$with_ecos"
19381
19382 fi
19383
19384
19385 case "$TARGET_ECOS" in
19386 no) case "$host" in
19387 *mingw*)
19388 PLATFORM=Win32
19389 PLATFORMNET=Win32
19390 PLATFORMH=win32.h
19391
19392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'ld' is at least 2.13" >&5
19393 $as_echo_n "checking whether 'ld' is at least 2.13... " >&6; }
19394 LD_PROG=`$CC --print-prog-name=ld`
19395 LD_VERSION=`$LD_PROG --version`
19396 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
19397 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
19398 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
19399 LD_OK="ok"
19400 else
19401 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
19402 LD_OK="ok"
19403 fi
19404 fi
19405 if test "x$LD_OK" != x; then
19406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19407 $as_echo "yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19408 else
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19410 $as_echo "no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
19412 $as_echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
19413
19414 $as_echo "#define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1" >>confdefs.h
19415
19416 fi
19417 ;;
19418 *)
19419 PLATFORM=Posix
19420 PLATFORMNET=Posix
19421 PLATFORMH=posix.h
19422 ;;
19423 esac
19424 ;;
19425 *)
19426 PLATFORM=Ecos
19427 PLATFORMNET=NoNet
19428
19429 $as_echo "#define ECOS 1" >>confdefs.h
19430
19431 PLATFORMH=posix.h
19432 ;;
19433 esac
19434
19435 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
19436
19437
19438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19439 /* end confdefs.h. */
19440 #include <stdint.h>
19441
19442 _ACEOF
19443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19444 $EGREP "uint32_t" >/dev/null 2>&1; then :
19445
19446 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19447
19448 fi
19449 rm -f conftest*
19450
19451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19452 /* end confdefs.h. */
19453 #include <inttypes.h>
19454
19455 _ACEOF
19456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19457 $EGREP "uint32_t" >/dev/null 2>&1; then :
19458
19459 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19460
19461 fi
19462 rm -f conftest*
19463
19464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19465 /* end confdefs.h. */
19466 #include <sys/types.h>
19467
19468 _ACEOF
19469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19470 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19471
19472 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19473
19474 fi
19475 rm -f conftest*
19476
19477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19478 /* end confdefs.h. */
19479 #include <sys/config.h>
19480
19481 _ACEOF
19482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19483 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19484
19485 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19486
19487 fi
19488 rm -f conftest*
19489
19490
19491 if test "$PLATFORM" = Win32; then
19492 USING_WIN32_PLATFORM_TRUE=
19493 USING_WIN32_PLATFORM_FALSE='#'
19494 else
19495 USING_WIN32_PLATFORM_TRUE='#'
19496 USING_WIN32_PLATFORM_FALSE=
19497 fi
19498
19499 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
19500 USING_POSIX_PLATFORM_TRUE=
19501 USING_POSIX_PLATFORM_FALSE='#'
19502 else
19503 USING_POSIX_PLATFORM_TRUE='#'
19504 USING_POSIX_PLATFORM_FALSE=
19505 fi
19506
19507
19508 case "$host" in
19509 *-darwin*) DARWIN_CRT=true ;;
19510 *) DARWIN_CRT=false ;;
19511 esac
19512 if $DARWIN_CRT; then
19513 USING_DARWIN_CRT_TRUE=
19514 USING_DARWIN_CRT_FALSE='#'
19515 else
19516 USING_DARWIN_CRT_TRUE='#'
19517 USING_DARWIN_CRT_FALSE=
19518 fi
19519
19520
19521 # This may not be defined in a non-ANS conformant embedded system.
19522 # FIXME: Should these case a runtime exception in that case?
19523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19524 /* end confdefs.h. */
19525 #include <time.h>
19526
19527 _ACEOF
19528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19529 $EGREP "localtime" >/dev/null 2>&1; then :
19530
19531 $as_echo "#define HAVE_LOCALTIME 1" >>confdefs.h
19532
19533 fi
19534 rm -f conftest*
19535
19536
19537 # Create the subdirectory for natFile.cc, or the attempt
19538 # to create the link will fail.
19539 test -d java || mkdir java
19540 test -d java/io || mkdir java/io
19541 test -d gnu || mkdir gnu
19542 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
19543
19544
19545 # Likewise for natConcreteProcess.cc.
19546 test -d java/lang || mkdir java/lang
19547 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
19548
19549
19550 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
19551 test -d java/net || mkdir java/net
19552 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
19553
19554 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
19555
19556
19557 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
19558 test -d gnu/java || mkdir gnu/java
19559 test -d gnu/java/net || mkdir gnu/java/net
19560 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
19561
19562 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
19563
19564
19565 # Likewise for natVMPipe.cc and natVMSelector.cc.
19566 test -d gnu/java/nio || mkdir gnu/java/nio
19567 ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
19568
19569 ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
19570
19571
19572 # Likewise for natFileChannelImpl.cc
19573 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
19574 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
19575
19576
19577 # Likewise for natVMSecureRandom.cc
19578 test -d gnu/java/security || mkdir gnu/java/security
19579 test -d gnu/java/security/jce || mkdir gnu/java/security/jce
19580 test -d gnu/java/security/jce/prng || mkdir gnu/java/security/jce/prng
19581 ac_config_links="$ac_config_links gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc"
19582
19583
19584 case "${host}" in
19585 *mingw*)
19586 SYSTEMSPEC="-lgdi32 -lws2_32"
19587 if test "${with_win32_nlsapi}" = "unicows"; then
19588 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
19589 fi
19590 ;;
19591 *)
19592 SYSTEMSPEC=
19593 ;;
19594 esac
19595
19596
19597
19598 # Check whether --with-system-zlib was given.
19599 if test "${with_system_zlib+set}" = set; then :
19600 withval=$with_system_zlib;
19601 fi
19602
19603 ZLIBSPEC=
19604
19605 ZLIBTESTSPEC=
19606
19607
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19609 $as_echo_n "checking for X... " >&6; }
19610
19611
19612 # Check whether --with-x was given.
19613 if test "${with_x+set}" = set; then :
19614 withval=$with_x;
19615 fi
19616
19617 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19618 if test "x$with_x" = xno; then
19619 # The user explicitly disabled X.
19620 have_x=disabled
19621 else
19622 case $x_includes,$x_libraries in #(
19623 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
19624 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
19625 $as_echo_n "(cached) " >&6
19626 else
19627 # One or both of the vars are not set, and there is no cached value.
19628 ac_x_includes=no ac_x_libraries=no
19629 rm -f -r conftest.dir
19630 if mkdir conftest.dir; then
19631 cd conftest.dir
19632 cat >Imakefile <<'_ACEOF'
19633 incroot:
19634 @echo incroot='${INCROOT}'
19635 usrlibdir:
19636 @echo usrlibdir='${USRLIBDIR}'
19637 libdir:
19638 @echo libdir='${LIBDIR}'
19639 _ACEOF
19640 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19641 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19642 for ac_var in incroot usrlibdir libdir; do
19643 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19644 done
19645 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19646 for ac_extension in a so sl dylib la dll; do
19647 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19648 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19649 ac_im_usrlibdir=$ac_im_libdir; break
19650 fi
19651 done
19652 # Screen out bogus values from the imake configuration. They are
19653 # bogus both because they are the default anyway, and because
19654 # using them would break gcc on systems where it needs fixed includes.
19655 case $ac_im_incroot in
19656 /usr/include) ac_x_includes= ;;
19657 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19658 esac
19659 case $ac_im_usrlibdir in
19660 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19661 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19662 esac
19663 fi
19664 cd ..
19665 rm -f -r conftest.dir
19666 fi
19667
19668 # Standard set of common directories for X headers.
19669 # Check X11 before X11Rn because it is often a symlink to the current release.
19670 ac_x_header_dirs='
19671 /usr/X11/include
19672 /usr/X11R7/include
19673 /usr/X11R6/include
19674 /usr/X11R5/include
19675 /usr/X11R4/include
19676
19677 /usr/include/X11
19678 /usr/include/X11R7
19679 /usr/include/X11R6
19680 /usr/include/X11R5
19681 /usr/include/X11R4
19682
19683 /usr/local/X11/include
19684 /usr/local/X11R7/include
19685 /usr/local/X11R6/include
19686 /usr/local/X11R5/include
19687 /usr/local/X11R4/include
19688
19689 /usr/local/include/X11
19690 /usr/local/include/X11R7
19691 /usr/local/include/X11R6
19692 /usr/local/include/X11R5
19693 /usr/local/include/X11R4
19694
19695 /usr/X386/include
19696 /usr/x386/include
19697 /usr/XFree86/include/X11
19698
19699 /usr/include
19700 /usr/local/include
19701 /usr/unsupported/include
19702 /usr/athena/include
19703 /usr/local/x11r5/include
19704 /usr/lpp/Xamples/include
19705
19706 /usr/openwin/include
19707 /usr/openwin/share/include'
19708
19709 if test "$ac_x_includes" = no; then
19710 # Guess where to find include files, by looking for Xlib.h.
19711 # First, try using that file with no special directory specified.
19712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19713 /* end confdefs.h. */
19714 #include <X11/Xlib.h>
19715 _ACEOF
19716 if ac_fn_c_try_cpp "$LINENO"; then :
19717 # We can compile using X headers with no special include directory.
19718 ac_x_includes=
19719 else
19720 for ac_dir in $ac_x_header_dirs; do
19721 if test -r "$ac_dir/X11/Xlib.h"; then
19722 ac_x_includes=$ac_dir
19723 break
19724 fi
19725 done
19726 fi
19727 rm -f conftest.err conftest.$ac_ext
19728 fi # $ac_x_includes = no
19729
19730 if test "$ac_x_libraries" = no; then
19731 # Check for the libraries.
19732 # See if we find them without any special options.
19733 # Don't add to $LIBS permanently.
19734 ac_save_LIBS=$LIBS
19735 LIBS="-lX11 $LIBS"
19736 if test x$gcc_no_link = xyes; then
19737 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19738 fi
19739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19740 /* end confdefs.h. */
19741 #include <X11/Xlib.h>
19742 int
19743 main ()
19744 {
19745 XrmInitialize ()
19746 ;
19747 return 0;
19748 }
19749 _ACEOF
19750 if ac_fn_c_try_link "$LINENO"; then :
19751 LIBS=$ac_save_LIBS
19752 # We can link X programs with no special library path.
19753 ac_x_libraries=
19754 else
19755 LIBS=$ac_save_LIBS
19756 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19757 do
19758 # Don't even attempt the hair of trying to link an X program!
19759 for ac_extension in a so sl dylib la dll; do
19760 if test -r "$ac_dir/libX11.$ac_extension"; then
19761 ac_x_libraries=$ac_dir
19762 break 2
19763 fi
19764 done
19765 done
19766 fi
19767 rm -f core conftest.err conftest.$ac_objext \
19768 conftest$ac_exeext conftest.$ac_ext
19769 fi # $ac_x_libraries = no
19770
19771 case $ac_x_includes,$ac_x_libraries in #(
19772 no,* | *,no | *\'*)
19773 # Didn't find X, or a directory has "'" in its name.
19774 ac_cv_have_x="have_x=no";; #(
19775 *)
19776 # Record where we found X for the cache.
19777 ac_cv_have_x="have_x=yes\
19778 ac_x_includes='$ac_x_includes'\
19779 ac_x_libraries='$ac_x_libraries'"
19780 esac
19781 fi
19782 ;; #(
19783 *) have_x=yes;;
19784 esac
19785 eval "$ac_cv_have_x"
19786 fi # $with_x != no
19787
19788 if test "$have_x" != yes; then
19789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19790 $as_echo "$have_x" >&6; }
19791 no_x=yes
19792 else
19793 # If each of the values was on the command line, it overrides each guess.
19794 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19795 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19796 # Update the cache value to reflect the command line values.
19797 ac_cv_have_x="have_x=yes\
19798 ac_x_includes='$x_includes'\
19799 ac_x_libraries='$x_libraries'"
19800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19801 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19802 fi
19803
19804 if test "$no_x" = yes; then
19805 # Not all programs may use this symbol, but it does not hurt to define it.
19806
19807 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
19808
19809 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19810 else
19811 if test -n "$x_includes"; then
19812 X_CFLAGS="$X_CFLAGS -I$x_includes"
19813 fi
19814
19815 # It would also be nice to do this for all -L options, not just this one.
19816 if test -n "$x_libraries"; then
19817 X_LIBS="$X_LIBS -L$x_libraries"
19818 # For Solaris; some versions of Sun CC require a space after -R and
19819 # others require no space. Words are not sufficient . . . .
19820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
19821 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
19822 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19823 ac_xsave_c_werror_flag=$ac_c_werror_flag
19824 ac_c_werror_flag=yes
19825 if test x$gcc_no_link = xyes; then
19826 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19827 fi
19828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19829 /* end confdefs.h. */
19830
19831 int
19832 main ()
19833 {
19834
19835 ;
19836 return 0;
19837 }
19838 _ACEOF
19839 if ac_fn_c_try_link "$LINENO"; then :
19840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19841 $as_echo "no" >&6; }
19842 X_LIBS="$X_LIBS -R$x_libraries"
19843 else
19844 LIBS="$ac_xsave_LIBS -R $x_libraries"
19845 if test x$gcc_no_link = xyes; then
19846 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19847 fi
19848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19849 /* end confdefs.h. */
19850
19851 int
19852 main ()
19853 {
19854
19855 ;
19856 return 0;
19857 }
19858 _ACEOF
19859 if ac_fn_c_try_link "$LINENO"; then :
19860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19861 $as_echo "yes" >&6; }
19862 X_LIBS="$X_LIBS -R $x_libraries"
19863 else
19864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
19865 $as_echo "neither works" >&6; }
19866 fi
19867 rm -f core conftest.err conftest.$ac_objext \
19868 conftest$ac_exeext conftest.$ac_ext
19869 fi
19870 rm -f core conftest.err conftest.$ac_objext \
19871 conftest$ac_exeext conftest.$ac_ext
19872 ac_c_werror_flag=$ac_xsave_c_werror_flag
19873 LIBS=$ac_xsave_LIBS
19874 fi
19875
19876 # Check for system-dependent libraries X programs must link with.
19877 # Do this before checking for the system-independent R6 libraries
19878 # (-lICE), since we may need -lsocket or whatever for X linking.
19879
19880 if test "$ISC" = yes; then
19881 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19882 else
19883 # Martyn Johnson says this is needed for Ultrix, if the X
19884 # libraries were built with DECnet support. And Karl Berry says
19885 # the Alpha needs dnet_stub (dnet does not exist).
19886 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19887 if test x$gcc_no_link = xyes; then
19888 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19889 fi
19890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19891 /* end confdefs.h. */
19892
19893 /* Override any GCC internal prototype to avoid an error.
19894 Use char because int might match the return type of a GCC
19895 builtin and then its argument prototype would still apply. */
19896 #ifdef __cplusplus
19897 extern "C"
19898 #endif
19899 char XOpenDisplay ();
19900 int
19901 main ()
19902 {
19903 return XOpenDisplay ();
19904 ;
19905 return 0;
19906 }
19907 _ACEOF
19908 if ac_fn_c_try_link "$LINENO"; then :
19909
19910 else
19911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
19912 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
19913 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
19914 $as_echo_n "(cached) " >&6
19915 else
19916 ac_check_lib_save_LIBS=$LIBS
19917 LIBS="-ldnet $LIBS"
19918 if test x$gcc_no_link = xyes; then
19919 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19920 fi
19921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19922 /* end confdefs.h. */
19923
19924 /* Override any GCC internal prototype to avoid an error.
19925 Use char because int might match the return type of a GCC
19926 builtin and then its argument prototype would still apply. */
19927 #ifdef __cplusplus
19928 extern "C"
19929 #endif
19930 char dnet_ntoa ();
19931 int
19932 main ()
19933 {
19934 return dnet_ntoa ();
19935 ;
19936 return 0;
19937 }
19938 _ACEOF
19939 if ac_fn_c_try_link "$LINENO"; then :
19940 ac_cv_lib_dnet_dnet_ntoa=yes
19941 else
19942 ac_cv_lib_dnet_dnet_ntoa=no
19943 fi
19944 rm -f core conftest.err conftest.$ac_objext \
19945 conftest$ac_exeext conftest.$ac_ext
19946 LIBS=$ac_check_lib_save_LIBS
19947 fi
19948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19949 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19950 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
19951 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19952 fi
19953
19954 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
19956 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
19957 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
19958 $as_echo_n "(cached) " >&6
19959 else
19960 ac_check_lib_save_LIBS=$LIBS
19961 LIBS="-ldnet_stub $LIBS"
19962 if test x$gcc_no_link = xyes; then
19963 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19964 fi
19965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19966 /* end confdefs.h. */
19967
19968 /* Override any GCC internal prototype to avoid an error.
19969 Use char because int might match the return type of a GCC
19970 builtin and then its argument prototype would still apply. */
19971 #ifdef __cplusplus
19972 extern "C"
19973 #endif
19974 char dnet_ntoa ();
19975 int
19976 main ()
19977 {
19978 return dnet_ntoa ();
19979 ;
19980 return 0;
19981 }
19982 _ACEOF
19983 if ac_fn_c_try_link "$LINENO"; then :
19984 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19985 else
19986 ac_cv_lib_dnet_stub_dnet_ntoa=no
19987 fi
19988 rm -f core conftest.err conftest.$ac_objext \
19989 conftest$ac_exeext conftest.$ac_ext
19990 LIBS=$ac_check_lib_save_LIBS
19991 fi
19992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19993 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19994 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
19995 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19996 fi
19997
19998 fi
19999 fi
20000 rm -f core conftest.err conftest.$ac_objext \
20001 conftest$ac_exeext conftest.$ac_ext
20002 LIBS="$ac_xsave_LIBS"
20003
20004 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20005 # to get the SysV transport functions.
20006 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20007 # needs -lnsl.
20008 # The nsl library prevents programs from opening the X display
20009 # on Irix 5.2, according to T.E. Dickey.
20010 # The functions gethostbyname, getservbyname, and inet_addr are
20011 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20012 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20013 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
20014
20015 fi
20016
20017 if test $ac_cv_func_gethostbyname = no; then
20018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20019 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20020 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
20021 $as_echo_n "(cached) " >&6
20022 else
20023 ac_check_lib_save_LIBS=$LIBS
20024 LIBS="-lnsl $LIBS"
20025 if test x$gcc_no_link = xyes; then
20026 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20027 fi
20028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20029 /* end confdefs.h. */
20030
20031 /* Override any GCC internal prototype to avoid an error.
20032 Use char because int might match the return type of a GCC
20033 builtin and then its argument prototype would still apply. */
20034 #ifdef __cplusplus
20035 extern "C"
20036 #endif
20037 char gethostbyname ();
20038 int
20039 main ()
20040 {
20041 return gethostbyname ();
20042 ;
20043 return 0;
20044 }
20045 _ACEOF
20046 if ac_fn_c_try_link "$LINENO"; then :
20047 ac_cv_lib_nsl_gethostbyname=yes
20048 else
20049 ac_cv_lib_nsl_gethostbyname=no
20050 fi
20051 rm -f core conftest.err conftest.$ac_objext \
20052 conftest$ac_exeext conftest.$ac_ext
20053 LIBS=$ac_check_lib_save_LIBS
20054 fi
20055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20056 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20057 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
20058 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20059 fi
20060
20061 if test $ac_cv_lib_nsl_gethostbyname = no; then
20062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20063 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20064 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
20065 $as_echo_n "(cached) " >&6
20066 else
20067 ac_check_lib_save_LIBS=$LIBS
20068 LIBS="-lbsd $LIBS"
20069 if test x$gcc_no_link = xyes; then
20070 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20071 fi
20072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20073 /* end confdefs.h. */
20074
20075 /* Override any GCC internal prototype to avoid an error.
20076 Use char because int might match the return type of a GCC
20077 builtin and then its argument prototype would still apply. */
20078 #ifdef __cplusplus
20079 extern "C"
20080 #endif
20081 char gethostbyname ();
20082 int
20083 main ()
20084 {
20085 return gethostbyname ();
20086 ;
20087 return 0;
20088 }
20089 _ACEOF
20090 if ac_fn_c_try_link "$LINENO"; then :
20091 ac_cv_lib_bsd_gethostbyname=yes
20092 else
20093 ac_cv_lib_bsd_gethostbyname=no
20094 fi
20095 rm -f core conftest.err conftest.$ac_objext \
20096 conftest$ac_exeext conftest.$ac_ext
20097 LIBS=$ac_check_lib_save_LIBS
20098 fi
20099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20100 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20101 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
20102 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20103 fi
20104
20105 fi
20106 fi
20107
20108 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20109 # socket/setsockopt and other routines are undefined under SCO ODT
20110 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20111 # on later versions), says Simon Leinen: it contains gethostby*
20112 # variants that don't use the name server (or something). -lsocket
20113 # must be given before -lnsl if both are needed. We assume that
20114 # if connect needs -lnsl, so does gethostbyname.
20115 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20116 if test "x$ac_cv_func_connect" = x""yes; then :
20117
20118 fi
20119
20120 if test $ac_cv_func_connect = no; then
20121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20122 $as_echo_n "checking for connect in -lsocket... " >&6; }
20123 if test "${ac_cv_lib_socket_connect+set}" = set; then :
20124 $as_echo_n "(cached) " >&6
20125 else
20126 ac_check_lib_save_LIBS=$LIBS
20127 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20128 if test x$gcc_no_link = xyes; then
20129 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20130 fi
20131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20132 /* end confdefs.h. */
20133
20134 /* Override any GCC internal prototype to avoid an error.
20135 Use char because int might match the return type of a GCC
20136 builtin and then its argument prototype would still apply. */
20137 #ifdef __cplusplus
20138 extern "C"
20139 #endif
20140 char connect ();
20141 int
20142 main ()
20143 {
20144 return connect ();
20145 ;
20146 return 0;
20147 }
20148 _ACEOF
20149 if ac_fn_c_try_link "$LINENO"; then :
20150 ac_cv_lib_socket_connect=yes
20151 else
20152 ac_cv_lib_socket_connect=no
20153 fi
20154 rm -f core conftest.err conftest.$ac_objext \
20155 conftest$ac_exeext conftest.$ac_ext
20156 LIBS=$ac_check_lib_save_LIBS
20157 fi
20158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20159 $as_echo "$ac_cv_lib_socket_connect" >&6; }
20160 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
20161 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20162 fi
20163
20164 fi
20165
20166 # Guillermo Gomez says -lposix is necessary on A/UX.
20167 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20168 if test "x$ac_cv_func_remove" = x""yes; then :
20169
20170 fi
20171
20172 if test $ac_cv_func_remove = no; then
20173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20174 $as_echo_n "checking for remove in -lposix... " >&6; }
20175 if test "${ac_cv_lib_posix_remove+set}" = set; then :
20176 $as_echo_n "(cached) " >&6
20177 else
20178 ac_check_lib_save_LIBS=$LIBS
20179 LIBS="-lposix $LIBS"
20180 if test x$gcc_no_link = xyes; then
20181 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20182 fi
20183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20184 /* end confdefs.h. */
20185
20186 /* Override any GCC internal prototype to avoid an error.
20187 Use char because int might match the return type of a GCC
20188 builtin and then its argument prototype would still apply. */
20189 #ifdef __cplusplus
20190 extern "C"
20191 #endif
20192 char remove ();
20193 int
20194 main ()
20195 {
20196 return remove ();
20197 ;
20198 return 0;
20199 }
20200 _ACEOF
20201 if ac_fn_c_try_link "$LINENO"; then :
20202 ac_cv_lib_posix_remove=yes
20203 else
20204 ac_cv_lib_posix_remove=no
20205 fi
20206 rm -f core conftest.err conftest.$ac_objext \
20207 conftest$ac_exeext conftest.$ac_ext
20208 LIBS=$ac_check_lib_save_LIBS
20209 fi
20210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20211 $as_echo "$ac_cv_lib_posix_remove" >&6; }
20212 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
20213 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20214 fi
20215
20216 fi
20217
20218 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20219 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20220 if test "x$ac_cv_func_shmat" = x""yes; then :
20221
20222 fi
20223
20224 if test $ac_cv_func_shmat = no; then
20225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20226 $as_echo_n "checking for shmat in -lipc... " >&6; }
20227 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
20228 $as_echo_n "(cached) " >&6
20229 else
20230 ac_check_lib_save_LIBS=$LIBS
20231 LIBS="-lipc $LIBS"
20232 if test x$gcc_no_link = xyes; then
20233 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20234 fi
20235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20236 /* end confdefs.h. */
20237
20238 /* Override any GCC internal prototype to avoid an error.
20239 Use char because int might match the return type of a GCC
20240 builtin and then its argument prototype would still apply. */
20241 #ifdef __cplusplus
20242 extern "C"
20243 #endif
20244 char shmat ();
20245 int
20246 main ()
20247 {
20248 return shmat ();
20249 ;
20250 return 0;
20251 }
20252 _ACEOF
20253 if ac_fn_c_try_link "$LINENO"; then :
20254 ac_cv_lib_ipc_shmat=yes
20255 else
20256 ac_cv_lib_ipc_shmat=no
20257 fi
20258 rm -f core conftest.err conftest.$ac_objext \
20259 conftest$ac_exeext conftest.$ac_ext
20260 LIBS=$ac_check_lib_save_LIBS
20261 fi
20262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20263 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20264 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
20265 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20266 fi
20267
20268 fi
20269 fi
20270
20271 # Check for libraries that X11R6 Xt/Xaw programs need.
20272 ac_save_LDFLAGS=$LDFLAGS
20273 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20274 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20275 # check for ICE first), but we must link in the order -lSM -lICE or
20276 # we get undefined symbols. So assume we have SM if we have ICE.
20277 # These have to be linked with before -lX11, unlike the other
20278 # libraries we check for below, so use a different variable.
20279 # John Interrante, Karl Berry
20280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20281 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20282 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
20283 $as_echo_n "(cached) " >&6
20284 else
20285 ac_check_lib_save_LIBS=$LIBS
20286 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20287 if test x$gcc_no_link = xyes; then
20288 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20289 fi
20290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20291 /* end confdefs.h. */
20292
20293 /* Override any GCC internal prototype to avoid an error.
20294 Use char because int might match the return type of a GCC
20295 builtin and then its argument prototype would still apply. */
20296 #ifdef __cplusplus
20297 extern "C"
20298 #endif
20299 char IceConnectionNumber ();
20300 int
20301 main ()
20302 {
20303 return IceConnectionNumber ();
20304 ;
20305 return 0;
20306 }
20307 _ACEOF
20308 if ac_fn_c_try_link "$LINENO"; then :
20309 ac_cv_lib_ICE_IceConnectionNumber=yes
20310 else
20311 ac_cv_lib_ICE_IceConnectionNumber=no
20312 fi
20313 rm -f core conftest.err conftest.$ac_objext \
20314 conftest$ac_exeext conftest.$ac_ext
20315 LIBS=$ac_check_lib_save_LIBS
20316 fi
20317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20318 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20319 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
20320 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20321 fi
20322
20323 LDFLAGS=$ac_save_LDFLAGS
20324
20325 fi
20326
20327
20328 # FIXME: this should be _libs on some hosts.
20329 libsubdir=.libs
20330
20331 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20332
20333 LIBSTDCXXSPEC=
20334 # extra LD Flags which are required for targets
20335 case "${host}" in
20336 *-*-darwin[0-7].*)
20337 # For now we have to disable it on darwin[8-9] because it slows down
20338 # the linking phase. A possible bug in ld?
20339 # on Darwin -single_module speeds up loading of the dynamic libraries.
20340 extra_ldflags_libjava=-Wl,-single_module
20341 ;;
20342 *-*-darwin[912]*)
20343 extra_gij_ldflags=-Wl,-allow_stack_execute
20344 ;;
20345 arm*linux*eabi)
20346 # Some of the ARM unwinder code is actually in libstdc++. We
20347 # could in principle replicate it in libgcj, but it's better to
20348 # have a dependency on libstdc++.
20349 extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20350 LIBSTDCXXSPEC=-lstdc++
20351 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20352 ;;
20353 *-*-cygwin)
20354 extra_ldflags_libjava=-liconv
20355 ;;
20356 esac
20357
20358
20359
20360
20361
20362
20363
20364 # Allow the GC to be disabled. Can be useful when debugging.
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for garbage collector to use" >&5
20366 $as_echo_n "checking for garbage collector to use... " >&6; }
20367 # Check whether --enable-java-gc was given.
20368 if test "${enable_java_gc+set}" = set; then :
20369 enableval=$enable_java_gc; GC=$enableval
20370 else
20371 GC=boehm
20372 fi
20373
20374 GCLIBS=
20375 GCINCS=
20376 GCDEPS=
20377 GCSPEC=
20378 JC1GCSPEC=
20379 GCTESTSPEC=
20380 case "$GC" in
20381 boehm)
20382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: boehm" >&5
20383 $as_echo "boehm" >&6; }
20384 GCLIBS=../boehm-gc/libgcjgc_convenience.la
20385 JC1GCSPEC='-fuse-boehm-gc'
20386 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20387 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20388 GCOBJS=boehm.lo
20389 GCHDR=boehm-gc.h
20390 # The POSIX thread support needs to know this.
20391
20392 $as_echo "#define HAVE_BOEHM_GC 1" >>confdefs.h
20393
20394 ;;
20395 no)
20396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
20397 $as_echo "none" >&6; }
20398 GCHDR=no-gc.h
20399 ;;
20400 *)
20401 as_fn_error "unrecognized collector \"$GC\"" "$LINENO" 5
20402 ;;
20403 esac
20404
20405
20406
20407
20408
20409
20410 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20411
20412 if test "$GC" = boehm; then
20413 USING_BOEHMGC_TRUE=
20414 USING_BOEHMGC_FALSE='#'
20415 else
20416 USING_BOEHMGC_TRUE='#'
20417 USING_BOEHMGC_FALSE=
20418 fi
20419
20420 if test "$GC" = no; then
20421 USING_NOGC_TRUE=
20422 USING_NOGC_FALSE='#'
20423 else
20424 USING_NOGC_TRUE='#'
20425 USING_NOGC_FALSE=
20426 fi
20427
20428
20429
20430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
20431 $as_echo_n "checking for thread model used by GCC... " >&6; }
20432 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
20434 $as_echo "$THREADS" >&6; }
20435
20436 case "$THREADS" in
20437 no | none | single)
20438 THREADS=none
20439 ;;
20440 aix | posix | posix95 | pthreads)
20441 THREADS=posix
20442 case "$host" in
20443 *-*-linux*)
20444
20445 $as_echo "#define LINUX_THREADS 1" >>confdefs.h
20446
20447 ;;
20448 esac
20449 ;;
20450 win32)
20451 ;;
20452 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
20453 as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
20454 ;;
20455 *)
20456 as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
20457 ;;
20458 esac
20459
20460 THREADCXXFLAGS=
20461 THREADLDFLAGS=
20462 THREADLIBS=
20463 THREADINCS=
20464 THREADDEPS=
20465 THREADH=
20466 THREADSPEC=
20467 THREADSTARTFILESPEC=
20468 case "$THREADS" in
20469 posix)
20470 case "$host" in
20471 *-*-cygwin*)
20472 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
20473 ;;
20474 *-*-freebsd[1234]*)
20475 # Before FreeBSD 5, it didn't have -lpthread (or any library which
20476 # merely adds pthread_* functions) but it does have a -pthread switch
20477 # which is required at link-time to select -lc_r *instead* of -lc.
20478 THREADLDFLAGS=-pthread
20479 # Don't set THREADSPEC here as might be expected since -pthread is
20480 # not processed when found within a spec file, it must come from
20481 # the command line. For now, the user must provide the -pthread
20482 # switch to link code compiled with gcj. In future, consider adding
20483 # support for weak references to pthread_* functions ala gthr.h API.
20484 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20485 ;;
20486 *-*-freebsd*)
20487 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20488 # systems which support threads and -lpthread.
20489 THREADLDFLAGS=-pthread
20490 THREADSPEC=-lpthread
20491 ;;
20492 alpha*-dec-osf* | hppa*-hp-hpux*)
20493 THREADCXXFLAGS=-pthread
20494 # boehm-gc needs some functions from librt, so link that too.
20495 THREADLIBS='-lpthread -lrt'
20496 THREADSPEC='-lpthread -lrt'
20497 ;;
20498 *)
20499 THREADLIBS=-lpthread
20500 THREADSPEC=-lpthread
20501 ;;
20502 esac
20503 THREADH=posix-threads.h
20504 # MIT pthreads doesn't seem to have the mutexattr functions.
20505 # But for now we don't check for it. We just assume you aren't
20506 # using MIT pthreads.
20507
20508 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20509
20510
20511 # If we're using the Boehm GC, then we happen to know that it
20512 # defines _REENTRANT, so we don't bother. Eww.
20513 if test "$GC" != boehm; then
20514
20515 $as_echo "#define _REENTRANT 1" >>confdefs.h
20516
20517 fi
20518
20519 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
20520
20521 ;;
20522
20523 win32)
20524 THREADH=win32-threads.h
20525 THREADCXXFLAGS=-mthreads
20526 # We need thread-safe exception handling so _CRT_MT should be set to 1.
20527 # But we do not want the executables created to be dependent on
20528 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20529 # exception handling contexts. The following kludge achieves this effect
20530 # and causes a dummy __mingwthr_key_dtor() to be linked in from
20531 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
20532 # A workaround is to explicitly use -mthreads while linking Java programs.
20533 # See PR libgcj/28263.
20534 #
20535 # FIXME: In Java we are able to detect thread death at the end of
20536 # Thread.run() so we should be able to clean up the exception handling
20537 # contexts ourselves.
20538 THREADSTARTFILESPEC='crtmt%O%s'
20539 ;;
20540
20541 none)
20542 THREADH=no-threads.h
20543 ;;
20544 esac
20545 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20546
20547
20548
20549
20550
20551
20552
20553
20554 if test "$THREADS" = posix; then
20555 USING_POSIX_THREADS_TRUE=
20556 USING_POSIX_THREADS_FALSE='#'
20557 else
20558 USING_POSIX_THREADS_TRUE='#'
20559 USING_POSIX_THREADS_FALSE=
20560 fi
20561
20562 if test "$THREADS" = win32; then
20563 USING_WIN32_THREADS_TRUE=
20564 USING_WIN32_THREADS_FALSE='#'
20565 else
20566 USING_WIN32_THREADS_TRUE='#'
20567 USING_WIN32_THREADS_FALSE=
20568 fi
20569
20570 if test "$THREADS" = none; then
20571 USING_NO_THREADS_TRUE=
20572 USING_NO_THREADS_FALSE='#'
20573 else
20574 USING_NO_THREADS_TRUE='#'
20575 USING_NO_THREADS_FALSE=
20576 fi
20577
20578 if test "$enable_shared" != yes; then
20579 use_libgcj_bc=no
20580 fi
20581 if test "$use_libgcj_bc" = yes; then
20582 USE_LIBGCJ_BC_TRUE=
20583 USE_LIBGCJ_BC_FALSE='#'
20584 else
20585 USE_LIBGCJ_BC_TRUE='#'
20586 USE_LIBGCJ_BC_FALSE=
20587 fi
20588
20589
20590 if test -d sysdep; then true; else mkdir sysdep; fi
20591 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20592
20593 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20594
20595 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20596
20597
20598 LIBGCJ_SPEC_LGCJ=-lgcj
20599 LIBGCJ_SPEC_LGCJ_BC=-lgcj_bc
20600 if test x"$libgcj_spec_lgcj_override" != x ; then
20601 LIBGCJ_SPEC_LGCJ=$libgcj_spec_lgcj_override
20602 fi
20603 if test x"$libgcj_spec_lgcj_bc_override" != x ; then
20604 LIBGCJ_SPEC_LGCJ_BC=$libgcj_spec_lgcj_bc_override
20605 fi
20606 LIBGCJ_SPEC="%{s-bc-abi:} $LIBGCJ_SPEC_LGCJ"
20607 if test "$use_libgcj_bc" = yes; then
20608 LIBGCJ_SPEC="%{static|static-libgcj|!s-bc-abi:$LIBGCJ_SPEC_LGCJ;:$LIBGCJ_SPEC_LGCJ_BC}"
20609 LIBGCJ_BC_SPEC="%{findirect-dispatch:-fPIC}"
20610 fi
20611
20612
20613
20614 HASH_SYNC_SPEC=
20615 # Hash synchronization is only useful with posix threads right now.
20616 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20617 HASH_SYNC_SPEC=-fhash-synchronization
20618
20619 $as_echo "#define JV_HASH_SYNCHRONIZATION 1" >>confdefs.h
20620
20621 fi
20622
20623
20624 if test "$GCC" = yes; then
20625 USING_GCC_TRUE=
20626 USING_GCC_FALSE='#'
20627 else
20628 USING_GCC_TRUE='#'
20629 USING_GCC_FALSE=
20630 fi
20631
20632
20633 # We're in the tree with gcc, and need to include some of its headers.
20634 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20635
20636 if test "x${with_newlib}" = "xyes"; then
20637 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
20638 # may not work correctly, because the compiler may not be able to
20639 # link executables.
20640
20641 # We assume newlib. This lets us hard-code the functions we know
20642 # we'll have.
20643
20644 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20645
20646
20647 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
20648
20649
20650 $as_echo "#define HAVE_TIME 1" >>confdefs.h
20651
20652
20653 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20654
20655
20656 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
20657
20658
20659 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
20660
20661 # This is only for POSIX threads.
20662
20663 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20664
20665
20666 # Assume we do not have getuid and friends.
20667
20668 $as_echo "#define NO_GETUID 1" >>confdefs.h
20669
20670 PLATFORMNET=NoNet
20671 else
20672 for ac_func in strerror_r select fstat open fsync sleep opendir \
20673 localtime_r getpwuid_r getcwd \
20674 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20675 nl_langinfo setlocale \
20676 inet_pton uname inet_ntoa \
20677 getrlimit sigaction ftruncate mmap \
20678 getifaddrs
20679 do :
20680 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20681 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20682 eval as_val=\$$as_ac_var
20683 if test "x$as_val" = x""yes; then :
20684 cat >>confdefs.h <<_ACEOF
20685 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20686 _ACEOF
20687
20688 fi
20689 done
20690
20691 for ac_func in inet_aton inet_addr
20692 do :
20693 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20694 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20695 eval as_val=\$$as_ac_var
20696 if test "x$as_val" = x""yes; then :
20697 cat >>confdefs.h <<_ACEOF
20698 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20699 _ACEOF
20700 break
20701 fi
20702 done
20703
20704 for ac_header in unistd.h dlfcn.h sys/resource.h
20705 do :
20706 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20707 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20708 eval as_val=\$$as_ac_Header
20709 if test "x$as_val" = x""yes; then :
20710 cat >>confdefs.h <<_ACEOF
20711 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20712 _ACEOF
20713
20714 fi
20715
20716 done
20717
20718 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
20719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
20720 $as_echo_n "checking for dladdr in -ldl... " >&6; }
20721 if test "${ac_cv_lib_dl_dladdr+set}" = set; then :
20722 $as_echo_n "(cached) " >&6
20723 else
20724 ac_check_lib_save_LIBS=$LIBS
20725 LIBS="-ldl $LIBS"
20726 if test x$gcc_no_link = xyes; then
20727 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20728 fi
20729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20730 /* end confdefs.h. */
20731
20732 /* Override any GCC internal prototype to avoid an error.
20733 Use char because int might match the return type of a GCC
20734 builtin and then its argument prototype would still apply. */
20735 #ifdef __cplusplus
20736 extern "C"
20737 #endif
20738 char dladdr ();
20739 int
20740 main ()
20741 {
20742 return dladdr ();
20743 ;
20744 return 0;
20745 }
20746 _ACEOF
20747 if ac_fn_c_try_link "$LINENO"; then :
20748 ac_cv_lib_dl_dladdr=yes
20749 else
20750 ac_cv_lib_dl_dladdr=no
20751 fi
20752 rm -f core conftest.err conftest.$ac_objext \
20753 conftest$ac_exeext conftest.$ac_ext
20754 LIBS=$ac_check_lib_save_LIBS
20755 fi
20756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
20757 $as_echo "$ac_cv_lib_dl_dladdr" >&6; }
20758 if test "x$ac_cv_lib_dl_dladdr" = x""yes; then :
20759
20760
20761 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
20762
20763 else
20764
20765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldld" >&5
20766 $as_echo_n "checking for dladdr in -ldld... " >&6; }
20767 if test "${ac_cv_lib_dld_dladdr+set}" = set; then :
20768 $as_echo_n "(cached) " >&6
20769 else
20770 ac_check_lib_save_LIBS=$LIBS
20771 LIBS="-ldld $LIBS"
20772 if test x$gcc_no_link = xyes; then
20773 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20774 fi
20775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20776 /* end confdefs.h. */
20777
20778 /* Override any GCC internal prototype to avoid an error.
20779 Use char because int might match the return type of a GCC
20780 builtin and then its argument prototype would still apply. */
20781 #ifdef __cplusplus
20782 extern "C"
20783 #endif
20784 char dladdr ();
20785 int
20786 main ()
20787 {
20788 return dladdr ();
20789 ;
20790 return 0;
20791 }
20792 _ACEOF
20793 if ac_fn_c_try_link "$LINENO"; then :
20794 ac_cv_lib_dld_dladdr=yes
20795 else
20796 ac_cv_lib_dld_dladdr=no
20797 fi
20798 rm -f core conftest.err conftest.$ac_objext \
20799 conftest$ac_exeext conftest.$ac_ext
20800 LIBS=$ac_check_lib_save_LIBS
20801 fi
20802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dladdr" >&5
20803 $as_echo "$ac_cv_lib_dld_dladdr" >&6; }
20804 if test "x$ac_cv_lib_dld_dladdr" = x""yes; then :
20805
20806
20807 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
20808
20809 fi
20810
20811 fi
20812
20813
20814 if test x"$cross_compiling" = x"no"; then
20815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/exe" >&5
20816 $as_echo_n "checking for /proc/self/exe... " >&6; }
20817 if test "${ac_cv_file__proc_self_exe+set}" = set; then :
20818 $as_echo_n "(cached) " >&6
20819 else
20820 test "$cross_compiling" = yes &&
20821 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
20822 if test -r "/proc/self/exe"; then
20823 ac_cv_file__proc_self_exe=yes
20824 else
20825 ac_cv_file__proc_self_exe=no
20826 fi
20827 fi
20828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_exe" >&5
20829 $as_echo "$ac_cv_file__proc_self_exe" >&6; }
20830 if test "x$ac_cv_file__proc_self_exe" = x""yes; then :
20831
20832 cat >>confdefs.h <<_ACEOF
20833 #define HAVE__PROC_SELF_EXE 1
20834 _ACEOF
20835
20836
20837 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
20838
20839 fi
20840
20841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/maps" >&5
20842 $as_echo_n "checking for /proc/self/maps... " >&6; }
20843 if test "${ac_cv_file__proc_self_maps+set}" = set; then :
20844 $as_echo_n "(cached) " >&6
20845 else
20846 test "$cross_compiling" = yes &&
20847 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
20848 if test -r "/proc/self/maps"; then
20849 ac_cv_file__proc_self_maps=yes
20850 else
20851 ac_cv_file__proc_self_maps=no
20852 fi
20853 fi
20854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_maps" >&5
20855 $as_echo "$ac_cv_file__proc_self_maps" >&6; }
20856 if test "x$ac_cv_file__proc_self_maps" = x""yes; then :
20857
20858 cat >>confdefs.h <<_ACEOF
20859 #define HAVE__PROC_SELF_MAPS 1
20860 _ACEOF
20861
20862
20863 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
20864
20865 fi
20866
20867 else
20868 case $host in
20869 *-linux*)
20870
20871 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
20872
20873
20874 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
20875
20876 ;;
20877 esac
20878 fi
20879
20880
20881 if test "X$prefix" = "XNONE"; then
20882 acl_final_prefix="$ac_default_prefix"
20883 else
20884 acl_final_prefix="$prefix"
20885 fi
20886 if test "X$exec_prefix" = "XNONE"; then
20887 acl_final_exec_prefix='${prefix}'
20888 else
20889 acl_final_exec_prefix="$exec_prefix"
20890 fi
20891 acl_save_prefix="$prefix"
20892 prefix="$acl_final_prefix"
20893 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
20894 prefix="$acl_save_prefix"
20895
20896
20897 # Check whether --with-gnu-ld was given.
20898 if test "${with_gnu_ld+set}" = set; then :
20899 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20900 else
20901 with_gnu_ld=no
20902 fi
20903
20904 # Prepare PATH_SEPARATOR.
20905 # The user is always right.
20906 if test "${PATH_SEPARATOR+set}" != set; then
20907 echo "#! /bin/sh" >conf$$.sh
20908 echo "exit 0" >>conf$$.sh
20909 chmod +x conf$$.sh
20910 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20911 PATH_SEPARATOR=';'
20912 else
20913 PATH_SEPARATOR=:
20914 fi
20915 rm -f conf$$.sh
20916 fi
20917 ac_prog=ld
20918 if test "$GCC" = yes; then
20919 # Check if gcc -print-prog-name=ld gives a path.
20920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
20921 $as_echo_n "checking for ld used by GCC... " >&6; }
20922 case $host in
20923 *-*-mingw*)
20924 # gcc leaves a trailing carriage return which upsets mingw
20925 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20926 *)
20927 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20928 esac
20929 case $ac_prog in
20930 # Accept absolute paths.
20931 [\\/]* | [A-Za-z]:[\\/]*)
20932 re_direlt='/[^/][^/]*/\.\./'
20933 # Canonicalize the path of ld
20934 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
20935 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
20936 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
20937 done
20938 test -z "$LD" && LD="$ac_prog"
20939 ;;
20940 "")
20941 # If it fails, then pretend we aren't using GCC.
20942 ac_prog=ld
20943 ;;
20944 *)
20945 # If it is relative, then search for the first ld in PATH.
20946 with_gnu_ld=unknown
20947 ;;
20948 esac
20949 elif test "$with_gnu_ld" = yes; then
20950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20951 $as_echo_n "checking for GNU ld... " >&6; }
20952 else
20953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20954 $as_echo_n "checking for non-GNU ld... " >&6; }
20955 fi
20956 if test "${acl_cv_path_LD+set}" = set; then :
20957 $as_echo_n "(cached) " >&6
20958 else
20959 if test -z "$LD"; then
20960 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
20961 for ac_dir in $PATH; do
20962 test -z "$ac_dir" && ac_dir=.
20963 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20964 acl_cv_path_LD="$ac_dir/$ac_prog"
20965 # Check to see if the program is GNU ld. I'd rather use --version,
20966 # but apparently some GNU ld's only accept -v.
20967 # Break only if it was the GNU/non-GNU ld that we prefer.
20968 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
20969 test "$with_gnu_ld" != no && break
20970 else
20971 test "$with_gnu_ld" != yes && break
20972 fi
20973 fi
20974 done
20975 IFS="$ac_save_ifs"
20976 else
20977 acl_cv_path_LD="$LD" # Let the user override the test with a path.
20978 fi
20979 fi
20980
20981 LD="$acl_cv_path_LD"
20982 if test -n "$LD"; then
20983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20984 $as_echo "$LD" >&6; }
20985 else
20986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20987 $as_echo "no" >&6; }
20988 fi
20989 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
20990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20991 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20992 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
20993 $as_echo_n "(cached) " >&6
20994 else
20995 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
20996 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
20997 acl_cv_prog_gnu_ld=yes
20998 else
20999 acl_cv_prog_gnu_ld=no
21000 fi
21001 fi
21002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
21003 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
21004 with_gnu_ld=$acl_cv_prog_gnu_ld
21005
21006
21007
21008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
21009 $as_echo_n "checking for shared library run path origin... " >&6; }
21010 if test "${acl_cv_rpath+set}" = set; then :
21011 $as_echo_n "(cached) " >&6
21012 else
21013
21014 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21015 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21016 . ./conftest.sh
21017 rm -f ./conftest.sh
21018 acl_cv_rpath=done
21019
21020 fi
21021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
21022 $as_echo "$acl_cv_rpath" >&6; }
21023 wl="$acl_cv_wl"
21024 libext="$acl_cv_libext"
21025 shlibext="$acl_cv_shlibext"
21026 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21027 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21028 hardcode_direct="$acl_cv_hardcode_direct"
21029 hardcode_minus_L="$acl_cv_hardcode_minus_L"
21030 # Check whether --enable-rpath was given.
21031 if test "${enable_rpath+set}" = set; then :
21032 enableval=$enable_rpath; :
21033 else
21034 enable_rpath=yes
21035 fi
21036
21037
21038
21039
21040
21041
21042
21043
21044 use_additional=yes
21045
21046 acl_save_prefix="$prefix"
21047 prefix="$acl_final_prefix"
21048 acl_save_exec_prefix="$exec_prefix"
21049 exec_prefix="$acl_final_exec_prefix"
21050
21051 eval additional_includedir=\"$includedir\"
21052 eval additional_libdir=\"$libdir\"
21053
21054 exec_prefix="$acl_save_exec_prefix"
21055 prefix="$acl_save_prefix"
21056
21057
21058 # Check whether --with-libiconv-prefix was given.
21059 if test "${with_libiconv_prefix+set}" = set; then :
21060 withval=$with_libiconv_prefix;
21061 if test "X$withval" = "Xno"; then
21062 use_additional=no
21063 else
21064 if test "X$withval" = "X"; then
21065
21066 acl_save_prefix="$prefix"
21067 prefix="$acl_final_prefix"
21068 acl_save_exec_prefix="$exec_prefix"
21069 exec_prefix="$acl_final_exec_prefix"
21070
21071 eval additional_includedir=\"$includedir\"
21072 eval additional_libdir=\"$libdir\"
21073
21074 exec_prefix="$acl_save_exec_prefix"
21075 prefix="$acl_save_prefix"
21076
21077 else
21078 additional_includedir="$withval/include"
21079 additional_libdir="$withval/lib"
21080 fi
21081 fi
21082
21083 fi
21084
21085 LIBICONV=
21086 LTLIBICONV=
21087 INCICONV=
21088 rpathdirs=
21089 ltrpathdirs=
21090 names_already_handled=
21091 names_next_round='iconv '
21092 while test -n "$names_next_round"; do
21093 names_this_round="$names_next_round"
21094 names_next_round=
21095 for name in $names_this_round; do
21096 already_handled=
21097 for n in $names_already_handled; do
21098 if test "$n" = "$name"; then
21099 already_handled=yes
21100 break
21101 fi
21102 done
21103 if test -z "$already_handled"; then
21104 names_already_handled="$names_already_handled $name"
21105 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21106 eval value=\"\$HAVE_LIB$uppername\"
21107 if test -n "$value"; then
21108 if test "$value" = yes; then
21109 eval value=\"\$LIB$uppername\"
21110 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21111 eval value=\"\$LTLIB$uppername\"
21112 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21113 else
21114 :
21115 fi
21116 else
21117 found_dir=
21118 found_la=
21119 found_so=
21120 found_a=
21121 if test $use_additional = yes; then
21122 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21123 found_dir="$additional_libdir"
21124 found_so="$additional_libdir/lib$name.$shlibext"
21125 if test -f "$additional_libdir/lib$name.la"; then
21126 found_la="$additional_libdir/lib$name.la"
21127 fi
21128 else
21129 if test -f "$additional_libdir/lib$name.$libext"; then
21130 found_dir="$additional_libdir"
21131 found_a="$additional_libdir/lib$name.$libext"
21132 if test -f "$additional_libdir/lib$name.la"; then
21133 found_la="$additional_libdir/lib$name.la"
21134 fi
21135 fi
21136 fi
21137 fi
21138 if test "X$found_dir" = "X"; then
21139 for x in $LDFLAGS $LTLIBICONV; do
21140
21141 acl_save_prefix="$prefix"
21142 prefix="$acl_final_prefix"
21143 acl_save_exec_prefix="$exec_prefix"
21144 exec_prefix="$acl_final_exec_prefix"
21145 eval x=\"$x\"
21146 exec_prefix="$acl_save_exec_prefix"
21147 prefix="$acl_save_prefix"
21148
21149 case "$x" in
21150 -L*)
21151 dir=`echo "X$x" | sed -e 's/^X-L//'`
21152 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21153 found_dir="$dir"
21154 found_so="$dir/lib$name.$shlibext"
21155 if test -f "$dir/lib$name.la"; then
21156 found_la="$dir/lib$name.la"
21157 fi
21158 else
21159 if test -f "$dir/lib$name.$libext"; then
21160 found_dir="$dir"
21161 found_a="$dir/lib$name.$libext"
21162 if test -f "$dir/lib$name.la"; then
21163 found_la="$dir/lib$name.la"
21164 fi
21165 fi
21166 fi
21167 ;;
21168 esac
21169 if test "X$found_dir" != "X"; then
21170 break
21171 fi
21172 done
21173 fi
21174 if test "X$found_dir" != "X"; then
21175 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21176 if test "X$found_so" != "X"; then
21177 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21178 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21179 else
21180 haveit=
21181 for x in $ltrpathdirs; do
21182 if test "X$x" = "X$found_dir"; then
21183 haveit=yes
21184 break
21185 fi
21186 done
21187 if test -z "$haveit"; then
21188 ltrpathdirs="$ltrpathdirs $found_dir"
21189 fi
21190 if test "$hardcode_direct" = yes; then
21191 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21192 else
21193 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21194 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21195 haveit=
21196 for x in $rpathdirs; do
21197 if test "X$x" = "X$found_dir"; then
21198 haveit=yes
21199 break
21200 fi
21201 done
21202 if test -z "$haveit"; then
21203 rpathdirs="$rpathdirs $found_dir"
21204 fi
21205 else
21206 haveit=
21207 for x in $LDFLAGS $LIBICONV; do
21208
21209 acl_save_prefix="$prefix"
21210 prefix="$acl_final_prefix"
21211 acl_save_exec_prefix="$exec_prefix"
21212 exec_prefix="$acl_final_exec_prefix"
21213 eval x=\"$x\"
21214 exec_prefix="$acl_save_exec_prefix"
21215 prefix="$acl_save_prefix"
21216
21217 if test "X$x" = "X-L$found_dir"; then
21218 haveit=yes
21219 break
21220 fi
21221 done
21222 if test -z "$haveit"; then
21223 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21224 fi
21225 if test "$hardcode_minus_L" != no; then
21226 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21227 else
21228 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21229 fi
21230 fi
21231 fi
21232 fi
21233 else
21234 if test "X$found_a" != "X"; then
21235 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21236 else
21237 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21238 fi
21239 fi
21240 additional_includedir=
21241 case "$found_dir" in
21242 */lib | */lib/)
21243 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21244 additional_includedir="$basedir/include"
21245 ;;
21246 esac
21247 if test "X$additional_includedir" != "X"; then
21248 if test "X$additional_includedir" != "X/usr/include"; then
21249 haveit=
21250 if test "X$additional_includedir" = "X/usr/local/include"; then
21251 if test -n "$GCC"; then
21252 case $host_os in
21253 linux*) haveit=yes;;
21254 esac
21255 fi
21256 fi
21257 if test -z "$haveit"; then
21258 for x in $CPPFLAGS $INCICONV; do
21259
21260 acl_save_prefix="$prefix"
21261 prefix="$acl_final_prefix"
21262 acl_save_exec_prefix="$exec_prefix"
21263 exec_prefix="$acl_final_exec_prefix"
21264 eval x=\"$x\"
21265 exec_prefix="$acl_save_exec_prefix"
21266 prefix="$acl_save_prefix"
21267
21268 if test "X$x" = "X-I$additional_includedir"; then
21269 haveit=yes
21270 break
21271 fi
21272 done
21273 if test -z "$haveit"; then
21274 if test -d "$additional_includedir"; then
21275 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21276 fi
21277 fi
21278 fi
21279 fi
21280 fi
21281 if test -n "$found_la"; then
21282 save_libdir="$libdir"
21283 case "$found_la" in
21284 */* | *\\*) . "$found_la" ;;
21285 *) . "./$found_la" ;;
21286 esac
21287 libdir="$save_libdir"
21288 for dep in $dependency_libs; do
21289 case "$dep" in
21290 -L*)
21291 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21292 if test "X$additional_libdir" != "X/usr/lib"; then
21293 haveit=
21294 if test "X$additional_libdir" = "X/usr/local/lib"; then
21295 if test -n "$GCC"; then
21296 case $host_os in
21297 linux*) haveit=yes;;
21298 esac
21299 fi
21300 fi
21301 if test -z "$haveit"; then
21302 haveit=
21303 for x in $LDFLAGS $LIBICONV; do
21304
21305 acl_save_prefix="$prefix"
21306 prefix="$acl_final_prefix"
21307 acl_save_exec_prefix="$exec_prefix"
21308 exec_prefix="$acl_final_exec_prefix"
21309 eval x=\"$x\"
21310 exec_prefix="$acl_save_exec_prefix"
21311 prefix="$acl_save_prefix"
21312
21313 if test "X$x" = "X-L$additional_libdir"; then
21314 haveit=yes
21315 break
21316 fi
21317 done
21318 if test -z "$haveit"; then
21319 if test -d "$additional_libdir"; then
21320 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21321 fi
21322 fi
21323 haveit=
21324 for x in $LDFLAGS $LTLIBICONV; do
21325
21326 acl_save_prefix="$prefix"
21327 prefix="$acl_final_prefix"
21328 acl_save_exec_prefix="$exec_prefix"
21329 exec_prefix="$acl_final_exec_prefix"
21330 eval x=\"$x\"
21331 exec_prefix="$acl_save_exec_prefix"
21332 prefix="$acl_save_prefix"
21333
21334 if test "X$x" = "X-L$additional_libdir"; then
21335 haveit=yes
21336 break
21337 fi
21338 done
21339 if test -z "$haveit"; then
21340 if test -d "$additional_libdir"; then
21341 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21342 fi
21343 fi
21344 fi
21345 fi
21346 ;;
21347 -R*)
21348 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21349 if test "$enable_rpath" != no; then
21350 haveit=
21351 for x in $rpathdirs; do
21352 if test "X$x" = "X$dir"; then
21353 haveit=yes
21354 break
21355 fi
21356 done
21357 if test -z "$haveit"; then
21358 rpathdirs="$rpathdirs $dir"
21359 fi
21360 haveit=
21361 for x in $ltrpathdirs; do
21362 if test "X$x" = "X$dir"; then
21363 haveit=yes
21364 break
21365 fi
21366 done
21367 if test -z "$haveit"; then
21368 ltrpathdirs="$ltrpathdirs $dir"
21369 fi
21370 fi
21371 ;;
21372 -l*)
21373 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21374 ;;
21375 *.la)
21376 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21377 ;;
21378 *)
21379 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21380 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21381 ;;
21382 esac
21383 done
21384 fi
21385 else
21386 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21387 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21388 fi
21389 fi
21390 fi
21391 done
21392 done
21393 if test "X$rpathdirs" != "X"; then
21394 if test -n "$hardcode_libdir_separator"; then
21395 alldirs=
21396 for found_dir in $rpathdirs; do
21397 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21398 done
21399 acl_save_libdir="$libdir"
21400 libdir="$alldirs"
21401 eval flag=\"$hardcode_libdir_flag_spec\"
21402 libdir="$acl_save_libdir"
21403 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21404 else
21405 for found_dir in $rpathdirs; do
21406 acl_save_libdir="$libdir"
21407 libdir="$found_dir"
21408 eval flag=\"$hardcode_libdir_flag_spec\"
21409 libdir="$acl_save_libdir"
21410 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21411 done
21412 fi
21413 fi
21414 if test "X$ltrpathdirs" != "X"; then
21415 for found_dir in $ltrpathdirs; do
21416 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21417 done
21418 fi
21419
21420
21421
21422
21423
21424
21425
21426 am_save_CPPFLAGS="$CPPFLAGS"
21427
21428 for element in $INCICONV; do
21429 haveit=
21430 for x in $CPPFLAGS; do
21431
21432 acl_save_prefix="$prefix"
21433 prefix="$acl_final_prefix"
21434 acl_save_exec_prefix="$exec_prefix"
21435 exec_prefix="$acl_final_exec_prefix"
21436 eval x=\"$x\"
21437 exec_prefix="$acl_save_exec_prefix"
21438 prefix="$acl_save_prefix"
21439
21440 if test "X$x" = "X$element"; then
21441 haveit=yes
21442 break
21443 fi
21444 done
21445 if test -z "$haveit"; then
21446 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21447 fi
21448 done
21449
21450
21451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21452 $as_echo_n "checking for iconv... " >&6; }
21453 if test "${am_cv_func_iconv+set}" = set; then :
21454 $as_echo_n "(cached) " >&6
21455 else
21456
21457 am_cv_func_iconv="no, consider installing GNU libiconv"
21458 am_cv_lib_iconv=no
21459 if test x$gcc_no_link = xyes; then
21460 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21461 fi
21462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21463 /* end confdefs.h. */
21464 #include <stdlib.h>
21465 #include <iconv.h>
21466 int
21467 main ()
21468 {
21469 iconv_t cd = iconv_open("","");
21470 iconv(cd,NULL,NULL,NULL,NULL);
21471 iconv_close(cd);
21472 ;
21473 return 0;
21474 }
21475 _ACEOF
21476 if ac_fn_c_try_link "$LINENO"; then :
21477 am_cv_func_iconv=yes
21478 fi
21479 rm -f core conftest.err conftest.$ac_objext \
21480 conftest$ac_exeext conftest.$ac_ext
21481 if test "$am_cv_func_iconv" != yes; then
21482 am_save_LIBS="$LIBS"
21483 LIBS="$LIBS $LIBICONV"
21484 if test x$gcc_no_link = xyes; then
21485 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21486 fi
21487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21488 /* end confdefs.h. */
21489 #include <stdlib.h>
21490 #include <iconv.h>
21491 int
21492 main ()
21493 {
21494 iconv_t cd = iconv_open("","");
21495 iconv(cd,NULL,NULL,NULL,NULL);
21496 iconv_close(cd);
21497 ;
21498 return 0;
21499 }
21500 _ACEOF
21501 if ac_fn_c_try_link "$LINENO"; then :
21502 am_cv_lib_iconv=yes
21503 am_cv_func_iconv=yes
21504 fi
21505 rm -f core conftest.err conftest.$ac_objext \
21506 conftest$ac_exeext conftest.$ac_ext
21507 LIBS="$am_save_LIBS"
21508 fi
21509
21510 fi
21511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
21512 $as_echo "$am_cv_func_iconv" >&6; }
21513 if test "$am_cv_func_iconv" = yes; then
21514
21515 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
21516
21517 fi
21518 if test "$am_cv_lib_iconv" = yes; then
21519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
21520 $as_echo_n "checking how to link with libiconv... " >&6; }
21521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
21522 $as_echo "$LIBICONV" >&6; }
21523 else
21524 CPPFLAGS="$am_save_CPPFLAGS"
21525 LIBICONV=
21526 LTLIBICONV=
21527 fi
21528
21529
21530
21531 if test "$am_cv_func_iconv" = yes; then
21532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
21533 $as_echo_n "checking for iconv declaration... " >&6; }
21534 if test "${am_cv_proto_iconv+set}" = set; then :
21535 $as_echo_n "(cached) " >&6
21536 else
21537
21538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21539 /* end confdefs.h. */
21540
21541 #include <stdlib.h>
21542 #include <iconv.h>
21543 extern
21544 #ifdef __cplusplus
21545 "C"
21546 #endif
21547 #if defined(__STDC__) || defined(__cplusplus)
21548 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21549 #else
21550 size_t iconv();
21551 #endif
21552
21553 int
21554 main ()
21555 {
21556
21557 ;
21558 return 0;
21559 }
21560 _ACEOF
21561 if ac_fn_c_try_compile "$LINENO"; then :
21562 am_cv_proto_iconv_arg1=""
21563 else
21564 am_cv_proto_iconv_arg1="const"
21565 fi
21566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21567 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);"
21568 fi
21569
21570 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
21572 }$am_cv_proto_iconv" >&5
21573 $as_echo "${ac_t:-
21574 }$am_cv_proto_iconv" >&6; }
21575
21576 cat >>confdefs.h <<_ACEOF
21577 #define ICONV_CONST $am_cv_proto_iconv_arg1
21578 _ACEOF
21579
21580 fi
21581
21582
21583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
21584 $as_echo_n "checking for LC_MESSAGES... " >&6; }
21585 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
21586 $as_echo_n "(cached) " >&6
21587 else
21588 if test x$gcc_no_link = xyes; then
21589 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21590 fi
21591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21592 /* end confdefs.h. */
21593 #include <locale.h>
21594 int
21595 main ()
21596 {
21597 return LC_MESSAGES
21598 ;
21599 return 0;
21600 }
21601 _ACEOF
21602 if ac_fn_c_try_link "$LINENO"; then :
21603 am_cv_val_LC_MESSAGES=yes
21604 else
21605 am_cv_val_LC_MESSAGES=no
21606 fi
21607 rm -f core conftest.err conftest.$ac_objext \
21608 conftest$ac_exeext conftest.$ac_ext
21609 fi
21610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
21611 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
21612 if test $am_cv_val_LC_MESSAGES = yes; then
21613
21614 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
21615
21616 fi
21617
21618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21619 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21620 if test "${ac_cv_struct_tm+set}" = set; then :
21621 $as_echo_n "(cached) " >&6
21622 else
21623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21624 /* end confdefs.h. */
21625 #include <sys/types.h>
21626 #include <time.h>
21627
21628 int
21629 main ()
21630 {
21631 struct tm tm;
21632 int *p = &tm.tm_sec;
21633 return !p;
21634 ;
21635 return 0;
21636 }
21637 _ACEOF
21638 if ac_fn_c_try_compile "$LINENO"; then :
21639 ac_cv_struct_tm=time.h
21640 else
21641 ac_cv_struct_tm=sys/time.h
21642 fi
21643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21644 fi
21645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21646 $as_echo "$ac_cv_struct_tm" >&6; }
21647 if test $ac_cv_struct_tm = sys/time.h; then
21648
21649 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21650
21651 fi
21652
21653 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21654 #include <$ac_cv_struct_tm>
21655
21656 "
21657 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21658
21659 cat >>confdefs.h <<_ACEOF
21660 #define HAVE_STRUCT_TM_TM_ZONE 1
21661 _ACEOF
21662
21663
21664 fi
21665
21666 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21667
21668 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21669
21670 else
21671 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21672 "
21673 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21674 ac_have_decl=1
21675 else
21676 ac_have_decl=0
21677 fi
21678
21679 cat >>confdefs.h <<_ACEOF
21680 #define HAVE_DECL_TZNAME $ac_have_decl
21681 _ACEOF
21682
21683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21684 $as_echo_n "checking for tzname... " >&6; }
21685 if test "${ac_cv_var_tzname+set}" = set; then :
21686 $as_echo_n "(cached) " >&6
21687 else
21688 if test x$gcc_no_link = xyes; then
21689 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21690 fi
21691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21692 /* end confdefs.h. */
21693 #include <time.h>
21694 #if !HAVE_DECL_TZNAME
21695 extern char *tzname[];
21696 #endif
21697
21698 int
21699 main ()
21700 {
21701 return tzname[0][0];
21702 ;
21703 return 0;
21704 }
21705 _ACEOF
21706 if ac_fn_c_try_link "$LINENO"; then :
21707 ac_cv_var_tzname=yes
21708 else
21709 ac_cv_var_tzname=no
21710 fi
21711 rm -f core conftest.err conftest.$ac_objext \
21712 conftest$ac_exeext conftest.$ac_ext
21713 fi
21714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21715 $as_echo "$ac_cv_var_tzname" >&6; }
21716 if test $ac_cv_var_tzname = yes; then
21717
21718 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21719
21720 fi
21721 fi
21722
21723
21724 for ac_func in gethostbyname_r
21725 do :
21726 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
21727 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
21728 cat >>confdefs.h <<_ACEOF
21729 #define HAVE_GETHOSTBYNAME_R 1
21730 _ACEOF
21731
21732
21733 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
21734
21735 # There are two different kinds of gethostbyname_r.
21736 # We look for the one that returns `int'.
21737 # Hopefully this check is robust enough.
21738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21739 /* end confdefs.h. */
21740 #include <netdb.h>
21741
21742 _ACEOF
21743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21744 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then :
21745
21746
21747 $as_echo "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h
21748
21749 fi
21750 rm -f conftest*
21751
21752
21753 case " $GCINCS " in
21754 *" -D_REENTRANT "*) ;;
21755 *)
21756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
21757 $as_echo_n "checking whether gethostbyname_r declaration requires -D_REENTRANT... " >&6; }
21758 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then :
21759 $as_echo_n "(cached) " >&6
21760 else
21761 ac_ext=cpp
21762 ac_cpp='$CXXCPP $CPPFLAGS'
21763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21766
21767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21768 /* end confdefs.h. */
21769 #include <netdb.h>
21770 int
21771 main ()
21772 {
21773 gethostbyname_r("", 0, 0);
21774 ;
21775 return 0;
21776 }
21777 _ACEOF
21778 if ac_fn_cxx_try_compile "$LINENO"; then :
21779 libjava_cv_gethostbyname_r_needs_reentrant=no
21780 else
21781 CPPFLAGS_SAVE="$CPPFLAGS"
21782 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
21783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21784 /* end confdefs.h. */
21785 #include <netdb.h>
21786 int
21787 main ()
21788 {
21789 gethostbyname_r("", 0, 0);
21790 ;
21791 return 0;
21792 }
21793 _ACEOF
21794 if ac_fn_cxx_try_compile "$LINENO"; then :
21795 libjava_cv_gethostbyname_r_needs_reentrant=yes
21796 else
21797 libjava_cv_gethostbyname_r_needs_reentrant=fail
21798 fi
21799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21800 CPPFLAGS="$CPPFLAGS_SAVE"
21801
21802 fi
21803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21804 ac_ext=c
21805 ac_cpp='$CPP $CPPFLAGS'
21806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21809
21810
21811 fi
21812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
21813 $as_echo "$libjava_cv_gethostbyname_r_needs_reentrant" >&6; }
21814 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
21815
21816 $as_echo "#define _REENTRANT 1" >>confdefs.h
21817
21818 fi
21819 ;;
21820 esac
21821
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct hostent_data" >&5
21823 $as_echo_n "checking for struct hostent_data... " >&6; }
21824 if test "${libjava_cv_struct_hostent_data+set}" = set; then :
21825 $as_echo_n "(cached) " >&6
21826 else
21827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21828 /* end confdefs.h. */
21829
21830 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
21831 # define _REENTRANT 1
21832 #endif
21833 #include <netdb.h>
21834 int
21835 main ()
21836 {
21837 struct hostent_data data;
21838 ;
21839 return 0;
21840 }
21841 _ACEOF
21842 if ac_fn_c_try_compile "$LINENO"; then :
21843 libjava_cv_struct_hostent_data=yes
21844 else
21845 libjava_cv_struct_hostent_data=no
21846 fi
21847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21848 fi
21849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_struct_hostent_data" >&5
21850 $as_echo "$libjava_cv_struct_hostent_data" >&6; }
21851 if test "x$libjava_cv_struct_hostent_data" = xyes; then
21852
21853 $as_echo "#define HAVE_STRUCT_HOSTENT_DATA 1" >>confdefs.h
21854
21855 fi
21856
21857 fi
21858 done
21859
21860
21861 # FIXME: libjava source code expects to find a prototype for
21862 # gethostbyaddr_r in netdb.h. The outer check ensures that
21863 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
21864 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
21865 # linkage check is enough, yet C++ code requires proper prototypes.)
21866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21867 /* end confdefs.h. */
21868 #include <netdb.h>
21869
21870 _ACEOF
21871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21872 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
21873
21874 for ac_func in gethostbyaddr_r
21875 do :
21876 ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
21877 if test "x$ac_cv_func_gethostbyaddr_r" = x""yes; then :
21878 cat >>confdefs.h <<_ACEOF
21879 #define HAVE_GETHOSTBYADDR_R 1
21880 _ACEOF
21881
21882
21883 $as_echo "#define HAVE_GETHOSTBYADDR_R 1" >>confdefs.h
21884
21885 # There are two different kinds of gethostbyaddr_r.
21886 # We look for the one that returns `int'.
21887 # Hopefully this check is robust enough.
21888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21889 /* end confdefs.h. */
21890 #include <netdb.h>
21891
21892 _ACEOF
21893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21894 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then :
21895
21896
21897 $as_echo "#define GETHOSTBYADDR_R_RETURNS_INT 1" >>confdefs.h
21898
21899 fi
21900 rm -f conftest*
21901
21902 fi
21903 done
21904
21905 fi
21906 rm -f conftest*
21907
21908
21909 for ac_func in gethostname
21910 do :
21911 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
21912 if test "x$ac_cv_func_gethostname" = x""yes; then :
21913 cat >>confdefs.h <<_ACEOF
21914 #define HAVE_GETHOSTNAME 1
21915 _ACEOF
21916
21917
21918 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
21919
21920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21921 /* end confdefs.h. */
21922 #include <unistd.h>
21923
21924 _ACEOF
21925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21926 $EGREP "gethostname" >/dev/null 2>&1; then :
21927
21928
21929 $as_echo "#define HAVE_GETHOSTNAME_DECL 1" >>confdefs.h
21930
21931 fi
21932 rm -f conftest*
21933
21934 fi
21935 done
21936
21937
21938 for ac_func in usleep
21939 do :
21940 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
21941 if test "x$ac_cv_func_usleep" = x""yes; then :
21942 cat >>confdefs.h <<_ACEOF
21943 #define HAVE_USLEEP 1
21944 _ACEOF
21945
21946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21947 /* end confdefs.h. */
21948 #include <unistd.h>
21949
21950 _ACEOF
21951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21952 $EGREP "usleep" >/dev/null 2>&1; then :
21953
21954
21955 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
21956
21957 fi
21958 rm -f conftest*
21959
21960 fi
21961 done
21962
21963
21964 # Look for these functions in the thread library, but only bother
21965 # if using POSIX threads.
21966 if test "$THREADS" = posix; then
21967 save_LIBS="$LIBS"
21968 LIBS="$LIBS $THREADLIBS"
21969
21970 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
21971 # Solaris 7 the name librt is preferred.
21972 for ac_func in sched_yield
21973 do :
21974 ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
21975 if test "x$ac_cv_func_sched_yield" = x""yes; then :
21976 cat >>confdefs.h <<_ACEOF
21977 #define HAVE_SCHED_YIELD 1
21978 _ACEOF
21979
21980 else
21981
21982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
21983 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
21984 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
21985 $as_echo_n "(cached) " >&6
21986 else
21987 ac_check_lib_save_LIBS=$LIBS
21988 LIBS="-lrt $LIBS"
21989 if test x$gcc_no_link = xyes; then
21990 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21991 fi
21992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21993 /* end confdefs.h. */
21994
21995 /* Override any GCC internal prototype to avoid an error.
21996 Use char because int might match the return type of a GCC
21997 builtin and then its argument prototype would still apply. */
21998 #ifdef __cplusplus
21999 extern "C"
22000 #endif
22001 char sched_yield ();
22002 int
22003 main ()
22004 {
22005 return sched_yield ();
22006 ;
22007 return 0;
22008 }
22009 _ACEOF
22010 if ac_fn_c_try_link "$LINENO"; then :
22011 ac_cv_lib_rt_sched_yield=yes
22012 else
22013 ac_cv_lib_rt_sched_yield=no
22014 fi
22015 rm -f core conftest.err conftest.$ac_objext \
22016 conftest$ac_exeext conftest.$ac_ext
22017 LIBS=$ac_check_lib_save_LIBS
22018 fi
22019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
22020 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
22021 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
22022
22023 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22024
22025 THREADLIBS="$THREADLIBS -lrt"
22026 THREADSPEC="$THREADSPEC -lrt"
22027 else
22028
22029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
22030 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
22031 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then :
22032 $as_echo_n "(cached) " >&6
22033 else
22034 ac_check_lib_save_LIBS=$LIBS
22035 LIBS="-lposix4 $LIBS"
22036 if test x$gcc_no_link = xyes; then
22037 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22038 fi
22039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22040 /* end confdefs.h. */
22041
22042 /* Override any GCC internal prototype to avoid an error.
22043 Use char because int might match the return type of a GCC
22044 builtin and then its argument prototype would still apply. */
22045 #ifdef __cplusplus
22046 extern "C"
22047 #endif
22048 char sched_yield ();
22049 int
22050 main ()
22051 {
22052 return sched_yield ();
22053 ;
22054 return 0;
22055 }
22056 _ACEOF
22057 if ac_fn_c_try_link "$LINENO"; then :
22058 ac_cv_lib_posix4_sched_yield=yes
22059 else
22060 ac_cv_lib_posix4_sched_yield=no
22061 fi
22062 rm -f core conftest.err conftest.$ac_objext \
22063 conftest$ac_exeext conftest.$ac_ext
22064 LIBS=$ac_check_lib_save_LIBS
22065 fi
22066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
22067 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
22068 if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then :
22069
22070 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22071
22072 THREADLIBS="$THREADLIBS -lposix4"
22073 THREADSPEC="$THREADSPEC -lposix4"
22074 fi
22075
22076 fi
22077
22078 fi
22079 done
22080
22081
22082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22083 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22084 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
22085 $as_echo_n "(cached) " >&6
22086 else
22087 ac_check_lib_save_LIBS=$LIBS
22088 LIBS="-lrt $LIBS"
22089 if test x$gcc_no_link = xyes; then
22090 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22091 fi
22092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22093 /* end confdefs.h. */
22094
22095 /* Override any GCC internal prototype to avoid an error.
22096 Use char because int might match the return type of a GCC
22097 builtin and then its argument prototype would still apply. */
22098 #ifdef __cplusplus
22099 extern "C"
22100 #endif
22101 char clock_gettime ();
22102 int
22103 main ()
22104 {
22105 return clock_gettime ();
22106 ;
22107 return 0;
22108 }
22109 _ACEOF
22110 if ac_fn_c_try_link "$LINENO"; then :
22111 ac_cv_lib_rt_clock_gettime=yes
22112 else
22113 ac_cv_lib_rt_clock_gettime=no
22114 fi
22115 rm -f core conftest.err conftest.$ac_objext \
22116 conftest$ac_exeext conftest.$ac_ext
22117 LIBS=$ac_check_lib_save_LIBS
22118 fi
22119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22120 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22121 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
22122
22123
22124 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22125
22126 case "$THREADSPEC" in
22127 *-lrt*) ;;
22128 *)
22129 THREADSPEC="$THREADSPEC -lrt"
22130 THREADLIBS="$THREADLIBS -lrt"
22131 ;;
22132 esac
22133 fi
22134
22135
22136 LIBS="$save_LIBS"
22137
22138 # We can save a little space at runtime if the mutex has m_count
22139 # or __m_count. This is a nice hack for Linux.
22140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22141 /* end confdefs.h. */
22142 #include <pthread.h>
22143 int
22144 main ()
22145 {
22146
22147 extern pthread_mutex_t *mutex; int q = mutex->m_count;
22148
22149 ;
22150 return 0;
22151 }
22152 _ACEOF
22153 if ac_fn_c_try_compile "$LINENO"; then :
22154
22155 $as_echo "#define PTHREAD_MUTEX_HAVE_M_COUNT 1" >>confdefs.h
22156
22157 else
22158
22159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22160 /* end confdefs.h. */
22161 #include <pthread.h>
22162 int
22163 main ()
22164 {
22165
22166 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
22167
22168 ;
22169 return 0;
22170 }
22171 _ACEOF
22172 if ac_fn_c_try_compile "$LINENO"; then :
22173
22174 $as_echo "#define PTHREAD_MUTEX_HAVE___M_COUNT 1" >>confdefs.h
22175
22176 fi
22177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22178 fi
22179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22180 fi
22181
22182 # We require a way to get the time.
22183 time_found=no
22184 for ac_func in gettimeofday time ftime
22185 do :
22186 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22187 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22188 eval as_val=\$$as_ac_var
22189 if test "x$as_val" = x""yes; then :
22190 cat >>confdefs.h <<_ACEOF
22191 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22192 _ACEOF
22193 time_found=yes
22194 fi
22195 done
22196
22197 if test "$time_found" = no; then
22198 as_fn_error "no function found to get the time" "$LINENO" 5
22199 fi
22200
22201 for ac_func in memmove
22202 do :
22203 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22204 if test "x$ac_cv_func_memmove" = x""yes; then :
22205 cat >>confdefs.h <<_ACEOF
22206 #define HAVE_MEMMOVE 1
22207 _ACEOF
22208
22209 fi
22210 done
22211
22212
22213 # We require memcpy.
22214 memcpy_found=no
22215 for ac_func in memcpy
22216 do :
22217 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
22218 if test "x$ac_cv_func_memcpy" = x""yes; then :
22219 cat >>confdefs.h <<_ACEOF
22220 #define HAVE_MEMCPY 1
22221 _ACEOF
22222 memcpy_found=yes
22223 fi
22224 done
22225
22226 if test "$memcpy_found" = no; then
22227 as_fn_error "memcpy is required" "$LINENO" 5
22228 fi
22229 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
22230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22231 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22232 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
22233 $as_echo_n "(cached) " >&6
22234 else
22235 ac_check_lib_save_LIBS=$LIBS
22236 LIBS="-ldl $LIBS"
22237 if test x$gcc_no_link = xyes; then
22238 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22239 fi
22240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22241 /* end confdefs.h. */
22242
22243 /* Override any GCC internal prototype to avoid an error.
22244 Use char because int might match the return type of a GCC
22245 builtin and then its argument prototype would still apply. */
22246 #ifdef __cplusplus
22247 extern "C"
22248 #endif
22249 char dlopen ();
22250 int
22251 main ()
22252 {
22253 return dlopen ();
22254 ;
22255 return 0;
22256 }
22257 _ACEOF
22258 if ac_fn_c_try_link "$LINENO"; then :
22259 ac_cv_lib_dl_dlopen=yes
22260 else
22261 ac_cv_lib_dl_dlopen=no
22262 fi
22263 rm -f core conftest.err conftest.$ac_objext \
22264 conftest$ac_exeext conftest.$ac_ext
22265 LIBS=$ac_check_lib_save_LIBS
22266 fi
22267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22268 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22269 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
22270
22271
22272 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22273
22274 else
22275
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldld" >&5
22277 $as_echo_n "checking for dlopen in -ldld... " >&6; }
22278 if test "${ac_cv_lib_dld_dlopen+set}" = set; then :
22279 $as_echo_n "(cached) " >&6
22280 else
22281 ac_check_lib_save_LIBS=$LIBS
22282 LIBS="-ldld $LIBS"
22283 if test x$gcc_no_link = xyes; then
22284 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22285 fi
22286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22287 /* end confdefs.h. */
22288
22289 /* Override any GCC internal prototype to avoid an error.
22290 Use char because int might match the return type of a GCC
22291 builtin and then its argument prototype would still apply. */
22292 #ifdef __cplusplus
22293 extern "C"
22294 #endif
22295 char dlopen ();
22296 int
22297 main ()
22298 {
22299 return dlopen ();
22300 ;
22301 return 0;
22302 }
22303 _ACEOF
22304 if ac_fn_c_try_link "$LINENO"; then :
22305 ac_cv_lib_dld_dlopen=yes
22306 else
22307 ac_cv_lib_dld_dlopen=no
22308 fi
22309 rm -f core conftest.err conftest.$ac_objext \
22310 conftest$ac_exeext conftest.$ac_ext
22311 LIBS=$ac_check_lib_save_LIBS
22312 fi
22313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dlopen" >&5
22314 $as_echo "$ac_cv_lib_dld_dlopen" >&6; }
22315 if test "x$ac_cv_lib_dld_dlopen" = x""yes; then :
22316
22317
22318 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22319
22320 fi
22321
22322 fi
22323
22324
22325 # Some library-finding code we stole from Tcl.
22326 #--------------------------------------------------------------------
22327 # Check for the existence of the -lsocket and -lnsl libraries.
22328 # The order here is important, so that they end up in the right
22329 # order in the command line generated by make. Here are some
22330 # special considerations:
22331 # 1. Use "connect" and "accept" to check for -lsocket, and
22332 # "gethostbyname" to check for -lnsl.
22333 # 2. Use each function name only once: can't redo a check because
22334 # autoconf caches the results of the last check and won't redo it.
22335 # 3. Use -lnsl and -lsocket only if they supply procedures that
22336 # aren't already present in the normal libraries. This is because
22337 # IRIX 5.2 has libraries, but they aren't needed and they're
22338 # bogus: they goof up name resolution if used.
22339 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
22340 # To get around this problem, check for both libraries together
22341 # if -lsocket doesn't work by itself.
22342 #--------------------------------------------------------------------
22343
22344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
22345 $as_echo_n "checking for socket libraries... " >&6; }
22346 if test "${gcj_cv_lib_sockets+set}" = set; then :
22347 $as_echo_n "(cached) " >&6
22348 else
22349 gcj_cv_lib_sockets=
22350 gcj_checkBoth=0
22351 unset ac_cv_func_connect
22352 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
22353 if test "x$ac_cv_func_connect" = x""yes; then :
22354 gcj_checkSocket=0
22355 else
22356 gcj_checkSocket=1
22357 fi
22358
22359 if test "$gcj_checkSocket" = 1; then
22360 unset ac_cv_func_connect
22361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
22362 $as_echo_n "checking for main in -lsocket... " >&6; }
22363 if test "${ac_cv_lib_socket_main+set}" = set; then :
22364 $as_echo_n "(cached) " >&6
22365 else
22366 ac_check_lib_save_LIBS=$LIBS
22367 LIBS="-lsocket $LIBS"
22368 if test x$gcc_no_link = xyes; then
22369 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22370 fi
22371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22372 /* end confdefs.h. */
22373
22374
22375 int
22376 main ()
22377 {
22378 return main ();
22379 ;
22380 return 0;
22381 }
22382 _ACEOF
22383 if ac_fn_c_try_link "$LINENO"; then :
22384 ac_cv_lib_socket_main=yes
22385 else
22386 ac_cv_lib_socket_main=no
22387 fi
22388 rm -f core conftest.err conftest.$ac_objext \
22389 conftest$ac_exeext conftest.$ac_ext
22390 LIBS=$ac_check_lib_save_LIBS
22391 fi
22392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
22393 $as_echo "$ac_cv_lib_socket_main" >&6; }
22394 if test "x$ac_cv_lib_socket_main" = x""yes; then :
22395 gcj_cv_lib_sockets="-lsocket"
22396 else
22397 gcj_checkBoth=1
22398 fi
22399
22400 fi
22401 if test "$gcj_checkBoth" = 1; then
22402 gcj_oldLibs=$LIBS
22403 LIBS="$LIBS -lsocket -lnsl"
22404 unset ac_cv_func_accept
22405 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
22406 if test "x$ac_cv_func_accept" = x""yes; then :
22407 gcj_checkNsl=0
22408 gcj_cv_lib_sockets="-lsocket -lnsl"
22409 fi
22410
22411 unset ac_cv_func_accept
22412 LIBS=$gcj_oldLibs
22413 fi
22414 unset ac_cv_func_gethostbyname
22415 gcj_oldLibs=$LIBS
22416 LIBS="$LIBS $gcj_cv_lib_sockets"
22417 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22418 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
22419
22420 else
22421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
22422 $as_echo_n "checking for main in -lnsl... " >&6; }
22423 if test "${ac_cv_lib_nsl_main+set}" = set; then :
22424 $as_echo_n "(cached) " >&6
22425 else
22426 ac_check_lib_save_LIBS=$LIBS
22427 LIBS="-lnsl $LIBS"
22428 if test x$gcc_no_link = xyes; then
22429 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22430 fi
22431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22432 /* end confdefs.h. */
22433
22434
22435 int
22436 main ()
22437 {
22438 return main ();
22439 ;
22440 return 0;
22441 }
22442 _ACEOF
22443 if ac_fn_c_try_link "$LINENO"; then :
22444 ac_cv_lib_nsl_main=yes
22445 else
22446 ac_cv_lib_nsl_main=no
22447 fi
22448 rm -f core conftest.err conftest.$ac_objext \
22449 conftest$ac_exeext conftest.$ac_ext
22450 LIBS=$ac_check_lib_save_LIBS
22451 fi
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
22453 $as_echo "$ac_cv_lib_nsl_main" >&6; }
22454 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
22455 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
22456 fi
22457
22458 fi
22459
22460 unset ac_cv_func_gethostbyname
22461 LIBS=$gcj_oldLIBS
22462
22463 fi
22464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcj_cv_lib_sockets" >&5
22465 $as_echo "$gcj_cv_lib_sockets" >&6; }
22466 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
22467
22468 if test "$with_system_zlib" = yes; then
22469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
22470 $as_echo_n "checking for deflate in -lz... " >&6; }
22471 if test "${ac_cv_lib_z_deflate+set}" = set; then :
22472 $as_echo_n "(cached) " >&6
22473 else
22474 ac_check_lib_save_LIBS=$LIBS
22475 LIBS="-lz $LIBS"
22476 if test x$gcc_no_link = xyes; then
22477 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22478 fi
22479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22480 /* end confdefs.h. */
22481
22482 /* Override any GCC internal prototype to avoid an error.
22483 Use char because int might match the return type of a GCC
22484 builtin and then its argument prototype would still apply. */
22485 #ifdef __cplusplus
22486 extern "C"
22487 #endif
22488 char deflate ();
22489 int
22490 main ()
22491 {
22492 return deflate ();
22493 ;
22494 return 0;
22495 }
22496 _ACEOF
22497 if ac_fn_c_try_link "$LINENO"; then :
22498 ac_cv_lib_z_deflate=yes
22499 else
22500 ac_cv_lib_z_deflate=no
22501 fi
22502 rm -f core conftest.err conftest.$ac_objext \
22503 conftest$ac_exeext conftest.$ac_ext
22504 LIBS=$ac_check_lib_save_LIBS
22505 fi
22506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
22507 $as_echo "$ac_cv_lib_z_deflate" >&6; }
22508 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
22509 ZLIBSPEC=-lz
22510 else
22511 ZLIBSPEC=
22512 fi
22513
22514 fi
22515
22516 # Test for Gtk stuff, if asked for.
22517 if test "$use_gtk_awt" = yes; then
22518
22519 succeeded=no
22520
22521 if test -z "$PKG_CONFIG"; then
22522 # Extract the first word of "pkg-config", so it can be a program name with args.
22523 set dummy pkg-config; ac_word=$2
22524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22525 $as_echo_n "checking for $ac_word... " >&6; }
22526 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22527 $as_echo_n "(cached) " >&6
22528 else
22529 case $PKG_CONFIG in
22530 [\\/]* | ?:[\\/]*)
22531 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22532 ;;
22533 *)
22534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22535 for as_dir in $PATH
22536 do
22537 IFS=$as_save_IFS
22538 test -z "$as_dir" && as_dir=.
22539 for ac_exec_ext in '' $ac_executable_extensions; do
22540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22541 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22543 break 2
22544 fi
22545 done
22546 done
22547 IFS=$as_save_IFS
22548
22549 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22550 ;;
22551 esac
22552 fi
22553 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22554 if test -n "$PKG_CONFIG"; then
22555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22556 $as_echo "$PKG_CONFIG" >&6; }
22557 else
22558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22559 $as_echo "no" >&6; }
22560 fi
22561
22562
22563 fi
22564
22565 if test "$PKG_CONFIG" = "no" ; then
22566 echo "*** The pkg-config script could not be found. Make sure it is"
22567 echo "*** in your path, or set the PKG_CONFIG environment variable"
22568 echo "*** to the full path to pkg-config."
22569 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22570 else
22571 PKG_CONFIG_MIN_VERSION=0.9.0
22572 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.4" >&5
22574 $as_echo_n "checking for gtk+-2.0 >= 2.4... " >&6; }
22575
22576 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
22577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22578 $as_echo "yes" >&6; }
22579 succeeded=yes
22580
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
22582 $as_echo_n "checking GTK_CFLAGS... " >&6; }
22583 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
22584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
22585 $as_echo "$GTK_CFLAGS" >&6; }
22586
22587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
22588 $as_echo_n "checking GTK_LIBS... " >&6; }
22589 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
22590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
22591 $as_echo "$GTK_LIBS" >&6; }
22592 else
22593 GTK_CFLAGS=""
22594 GTK_LIBS=""
22595 ## If we have a custom action on failure, don't print errors, but
22596 ## do set a variable so people can do so.
22597 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
22598 echo $GTK_PKG_ERRORS
22599 fi
22600
22601
22602
22603 else
22604 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22605 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22606 fi
22607 fi
22608
22609 if test $succeeded = yes; then
22610 :
22611 else
22612 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
22613 fi
22614
22615
22616
22617
22618
22619 succeeded=no
22620
22621 if test -z "$PKG_CONFIG"; then
22622 # Extract the first word of "pkg-config", so it can be a program name with args.
22623 set dummy pkg-config; ac_word=$2
22624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22625 $as_echo_n "checking for $ac_word... " >&6; }
22626 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22627 $as_echo_n "(cached) " >&6
22628 else
22629 case $PKG_CONFIG in
22630 [\\/]* | ?:[\\/]*)
22631 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22632 ;;
22633 *)
22634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22635 for as_dir in $PATH
22636 do
22637 IFS=$as_save_IFS
22638 test -z "$as_dir" && as_dir=.
22639 for ac_exec_ext in '' $ac_executable_extensions; do
22640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22641 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22643 break 2
22644 fi
22645 done
22646 done
22647 IFS=$as_save_IFS
22648
22649 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22650 ;;
22651 esac
22652 fi
22653 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22654 if test -n "$PKG_CONFIG"; then
22655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22656 $as_echo "$PKG_CONFIG" >&6; }
22657 else
22658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22659 $as_echo "no" >&6; }
22660 fi
22661
22662
22663 fi
22664
22665 if test "$PKG_CONFIG" = "no" ; then
22666 echo "*** The pkg-config script could not be found. Make sure it is"
22667 echo "*** in your path, or set the PKG_CONFIG environment variable"
22668 echo "*** to the full path to pkg-config."
22669 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22670 else
22671 PKG_CONFIG_MIN_VERSION=0.9.0
22672 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
22674 $as_echo_n "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... " >&6; }
22675
22676 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
22677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22678 $as_echo "yes" >&6; }
22679 succeeded=yes
22680
22681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
22682 $as_echo_n "checking GLIB_CFLAGS... " >&6; }
22683 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
22685 $as_echo "$GLIB_CFLAGS" >&6; }
22686
22687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
22688 $as_echo_n "checking GLIB_LIBS... " >&6; }
22689 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
22691 $as_echo "$GLIB_LIBS" >&6; }
22692 else
22693 GLIB_CFLAGS=""
22694 GLIB_LIBS=""
22695 ## If we have a custom action on failure, don't print errors, but
22696 ## do set a variable so people can do so.
22697 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22698 echo $GLIB_PKG_ERRORS
22699 fi
22700
22701
22702
22703 else
22704 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22705 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22706 fi
22707 fi
22708
22709 if test $succeeded = yes; then
22710 :
22711 else
22712 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
22713 fi
22714
22715
22716
22717
22718
22719 succeeded=no
22720
22721 if test -z "$PKG_CONFIG"; then
22722 # Extract the first word of "pkg-config", so it can be a program name with args.
22723 set dummy pkg-config; ac_word=$2
22724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22725 $as_echo_n "checking for $ac_word... " >&6; }
22726 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22727 $as_echo_n "(cached) " >&6
22728 else
22729 case $PKG_CONFIG in
22730 [\\/]* | ?:[\\/]*)
22731 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22732 ;;
22733 *)
22734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22735 for as_dir in $PATH
22736 do
22737 IFS=$as_save_IFS
22738 test -z "$as_dir" && as_dir=.
22739 for ac_exec_ext in '' $ac_executable_extensions; do
22740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22741 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22743 break 2
22744 fi
22745 done
22746 done
22747 IFS=$as_save_IFS
22748
22749 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22750 ;;
22751 esac
22752 fi
22753 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22754 if test -n "$PKG_CONFIG"; then
22755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22756 $as_echo "$PKG_CONFIG" >&6; }
22757 else
22758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22759 $as_echo "no" >&6; }
22760 fi
22761
22762
22763 fi
22764
22765 if test "$PKG_CONFIG" = "no" ; then
22766 echo "*** The pkg-config script could not be found. Make sure it is"
22767 echo "*** in your path, or set the PKG_CONFIG environment variable"
22768 echo "*** to the full path to pkg-config."
22769 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22770 else
22771 PKG_CONFIG_MIN_VERSION=0.9.0
22772 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libart-2.0 >= 2.1" >&5
22774 $as_echo_n "checking for libart-2.0 >= 2.1... " >&6; }
22775
22776 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
22777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22778 $as_echo "yes" >&6; }
22779 succeeded=yes
22780
22781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_CFLAGS" >&5
22782 $as_echo_n "checking LIBART_CFLAGS... " >&6; }
22783 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_CFLAGS" >&5
22785 $as_echo "$LIBART_CFLAGS" >&6; }
22786
22787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_LIBS" >&5
22788 $as_echo_n "checking LIBART_LIBS... " >&6; }
22789 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
22790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_LIBS" >&5
22791 $as_echo "$LIBART_LIBS" >&6; }
22792 else
22793 LIBART_CFLAGS=""
22794 LIBART_LIBS=""
22795 ## If we have a custom action on failure, don't print errors, but
22796 ## do set a variable so people can do so.
22797 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
22798 echo $LIBART_PKG_ERRORS
22799 fi
22800
22801
22802
22803 else
22804 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22805 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22806 fi
22807 fi
22808
22809 if test $succeeded = yes; then
22810 :
22811 else
22812 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
22813 fi
22814
22815
22816
22817
22818 # We require the XTest Extension to support java.awt.Robot.
22819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
22820 $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
22821 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
22822 $as_echo_n "(cached) " >&6
22823 else
22824 ac_check_lib_save_LIBS=$LIBS
22825 LIBS="-lXtst ${X_LIBS} $LIBS"
22826 if test x$gcc_no_link = xyes; then
22827 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22828 fi
22829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22830 /* end confdefs.h. */
22831
22832 /* Override any GCC internal prototype to avoid an error.
22833 Use char because int might match the return type of a GCC
22834 builtin and then its argument prototype would still apply. */
22835 #ifdef __cplusplus
22836 extern "C"
22837 #endif
22838 char XTestQueryExtension ();
22839 int
22840 main ()
22841 {
22842 return XTestQueryExtension ();
22843 ;
22844 return 0;
22845 }
22846 _ACEOF
22847 if ac_fn_c_try_link "$LINENO"; then :
22848 ac_cv_lib_Xtst_XTestQueryExtension=yes
22849 else
22850 ac_cv_lib_Xtst_XTestQueryExtension=no
22851 fi
22852 rm -f core conftest.err conftest.$ac_objext \
22853 conftest$ac_exeext conftest.$ac_ext
22854 LIBS=$ac_check_lib_save_LIBS
22855 fi
22856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
22857 $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
22858 if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
22859 true
22860 else
22861 as_fn_error "libXtst not found, required by java.awt.Robot" "$LINENO" 5
22862 fi
22863
22864 fi
22865
22866 # On Solaris, and maybe other architectures, the Boehm collector
22867 # requires -ldl.
22868 if test "$GC" = boehm; then
22869 case "${host}" in
22870 mips-sgi-irix6*)
22871 # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib)
22872 # libgcj.spec is used, so override here
22873 SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}"
22874 ;;
22875 *)
22876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
22877 $as_echo_n "checking for main in -ldl... " >&6; }
22878 if test "${ac_cv_lib_dl_main+set}" = set; then :
22879 $as_echo_n "(cached) " >&6
22880 else
22881 ac_check_lib_save_LIBS=$LIBS
22882 LIBS="-ldl $LIBS"
22883 if test x$gcc_no_link = xyes; then
22884 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22885 fi
22886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22887 /* end confdefs.h. */
22888
22889
22890 int
22891 main ()
22892 {
22893 return main ();
22894 ;
22895 return 0;
22896 }
22897 _ACEOF
22898 if ac_fn_c_try_link "$LINENO"; then :
22899 ac_cv_lib_dl_main=yes
22900 else
22901 ac_cv_lib_dl_main=no
22902 fi
22903 rm -f core conftest.err conftest.$ac_objext \
22904 conftest$ac_exeext conftest.$ac_ext
22905 LIBS=$ac_check_lib_save_LIBS
22906 fi
22907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
22908 $as_echo "$ac_cv_lib_dl_main" >&6; }
22909 if test "x$ac_cv_lib_dl_main" = x""yes; then :
22910 SYSTEMSPEC="$SYSTEMSPEC -ldl"
22911 fi
22912
22913 ;;
22914 esac
22915 fi
22916 fi
22917
22918 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
22919 case $build in
22920 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
22921 *) CLASSPATH_SEPARATOR=':' ;;
22922 esac
22923
22924
22925 # We must search the source tree for java.lang, since we still don't
22926 # have libgcj.jar nor java/lang/*.class
22927 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
22928 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
22929
22930 # Since some classes depend on this one, we need its source available
22931 # before we can do any GCJ compilation test :-(
22932 if test ! -f gnu/classpath/Configuration.java; then
22933 test -d gnu || mkdir gnu
22934 test -d gnu/classpath || mkdir gnu/classpath
22935 # Note that it is not crucial that all the values here be correct.
22936 sed -e "s,@prefix@,$prefix," \
22937 -e "s,@VERSION@,$VERSION," \
22938 -e "s,@LIBDEBUG@,false," \
22939 -e "s,@INIT_LOAD_LIBRARY@,false," \
22940 -e "s,@@,$LIBGCJDEBUG," \
22941 -e "s,@default_toolkit@,$TOOLKIT," \
22942 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
22943 -e "s,@GTK_CAIRO_ENABLED@,false," \
22944 -e "s,@ECJ_JAR@,," \
22945 -e "s,@WANT_NATIVE_BIG_INTEGER@,false," \
22946 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
22947 > gnu/classpath/Configuration.java
22948 # We do not want to redirect the output of the grep below to /dev/null,
22949 # but we add /dev/null to the input list so that grep will print the
22950 # filename of Configuration.java in case it finds any matches.
22951 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
22952 as_fn_error "configure.ac is missing the substitutions above" "$LINENO" 5
22953 fi
22954 fi
22955
22956
22957 for ac_prog in gcj
22958 do
22959 # Extract the first word of "$ac_prog", so it can be a program name with args.
22960 set dummy $ac_prog; ac_word=$2
22961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22962 $as_echo_n "checking for $ac_word... " >&6; }
22963 if test "${ac_cv_prog_GCJ+set}" = set; then :
22964 $as_echo_n "(cached) " >&6
22965 else
22966 if test -n "$GCJ"; then
22967 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
22968 else
22969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22970 for as_dir in $PATH
22971 do
22972 IFS=$as_save_IFS
22973 test -z "$as_dir" && as_dir=.
22974 for ac_exec_ext in '' $ac_executable_extensions; do
22975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22976 ac_cv_prog_GCJ="$ac_prog"
22977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22978 break 2
22979 fi
22980 done
22981 done
22982 IFS=$as_save_IFS
22983
22984 fi
22985 fi
22986 GCJ=$ac_cv_prog_GCJ
22987 if test -n "$GCJ"; then
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
22989 $as_echo "$GCJ" >&6; }
22990 else
22991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22992 $as_echo "no" >&6; }
22993 fi
22994
22995
22996 test -n "$GCJ" && break
22997 done
22998 test -n "$GCJ" || GCJ="gcj"
22999
23000 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
23001 if test "x${GCJFLAGS-unset}" = xunset; then
23002 GCJFLAGS="-g -O2"
23003 fi
23004
23005
23006 depcc="$GCJ" am_compiler_list='gcc3 gcc'
23007
23008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23009 $as_echo_n "checking dependency style of $depcc... " >&6; }
23010 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
23011 $as_echo_n "(cached) " >&6
23012 else
23013 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23014 # We make a subdir and do the tests there. Otherwise we can end up
23015 # making bogus files that we don't know about and never remove. For
23016 # instance it was reported that on HP-UX the gcc test will end up
23017 # making a dummy file named `D' -- because `-MD' means `put the output
23018 # in D'.
23019 mkdir conftest.dir
23020 # Copy depcomp to subdir because otherwise we won't find it if we're
23021 # using a relative directory.
23022 cp "$am_depcomp" conftest.dir
23023 cd conftest.dir
23024 # We will build objects and dependencies in a subdirectory because
23025 # it helps to detect inapplicable dependency modes. For instance
23026 # both Tru64's cc and ICC support -MD to output dependencies as a
23027 # side effect of compilation, but ICC will put the dependencies in
23028 # the current directory while Tru64 will put them in the object
23029 # directory.
23030 mkdir sub
23031
23032 am_cv_GCJ_dependencies_compiler_type=none
23033 if test "$am_compiler_list" = ""; then
23034 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23035 fi
23036 am__universal=false
23037
23038
23039 for depmode in $am_compiler_list; do
23040 # Setup a source with many dependencies, because some compilers
23041 # like to wrap large dependency lists on column 80 (with \), and
23042 # we should not choose a depcomp mode which is confused by this.
23043 #
23044 # We need to recreate these files for each test, as the compiler may
23045 # overwrite some of them when testing with obscure command lines.
23046 # This happens at least with the AIX C compiler.
23047 : > sub/conftest.c
23048 for i in 1 2 3 4 5 6; do
23049 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23050 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23051 # Solaris 8's {/usr,}/bin/sh.
23052 touch sub/conftst$i.h
23053 done
23054 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23055
23056 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23057 # mode. It turns out that the SunPro C++ compiler does not properly
23058 # handle `-M -o', and we need to detect this. Also, some Intel
23059 # versions had trouble with output in subdirs
23060 am__obj=sub/conftest.${OBJEXT-o}
23061 am__minus_obj="-o $am__obj"
23062 case $depmode in
23063 gcc)
23064 # This depmode causes a compiler race in universal mode.
23065 test "$am__universal" = false || continue
23066 ;;
23067 nosideeffect)
23068 # after this tag, mechanisms are not by side-effect, so they'll
23069 # only be used when explicitly requested
23070 if test "x$enable_dependency_tracking" = xyes; then
23071 continue
23072 else
23073 break
23074 fi
23075 ;;
23076 msvisualcpp | msvcmsys)
23077 # This compiler won't grok `-c -o', but also, the minuso test has
23078 # not run yet. These depmodes are late enough in the game, and
23079 # so weak that their functioning should not be impacted.
23080 am__obj=conftest.${OBJEXT-o}
23081 am__minus_obj=
23082 ;;
23083 none) break ;;
23084 esac
23085 if depmode=$depmode \
23086 source=sub/conftest.c object=$am__obj \
23087 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23088 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23089 >/dev/null 2>conftest.err &&
23090 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23091 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23092 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23093 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23094 # icc doesn't choke on unknown options, it will just issue warnings
23095 # or remarks (even with -Werror). So we grep stderr for any message
23096 # that says an option was ignored or not supported.
23097 # When given -MP, icc 7.0 and 7.1 complain thusly:
23098 # icc: Command line warning: ignoring option '-M'; no argument required
23099 # The diagnosis changed in icc 8.0:
23100 # icc: Command line remark: option '-MP' not supported
23101 if (grep 'ignoring option' conftest.err ||
23102 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23103 am_cv_GCJ_dependencies_compiler_type=$depmode
23104 break
23105 fi
23106 fi
23107 done
23108
23109 cd ..
23110 rm -rf conftest.dir
23111 else
23112 am_cv_GCJ_dependencies_compiler_type=none
23113 fi
23114
23115 fi
23116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
23117 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
23118 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
23119
23120 if
23121 test "x$enable_dependency_tracking" != xno \
23122 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
23123 am__fastdepGCJ_TRUE=
23124 am__fastdepGCJ_FALSE='#'
23125 else
23126 am__fastdepGCJ_TRUE='#'
23127 am__fastdepGCJ_FALSE=
23128 fi
23129
23130
23131
23132
23133 # Now remove it.
23134 rm -f gnu/classpath/Configuration.java
23135
23136 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
23137
23138 # The cast to long int works around a bug in the HP C Compiler
23139 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23140 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23141 # This bug is HP SR number 8606223364.
23142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
23143 $as_echo_n "checking size of void *... " >&6; }
23144 if test "${ac_cv_sizeof_void_p+set}" = set; then :
23145 $as_echo_n "(cached) " >&6
23146 else
23147 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
23148
23149 else
23150 if test "$ac_cv_type_void_p" = yes; then
23151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23153 { as_fn_set_status 77
23154 as_fn_error "cannot compute sizeof (void *)
23155 See \`config.log' for more details." "$LINENO" 5; }; }
23156 else
23157 ac_cv_sizeof_void_p=0
23158 fi
23159 fi
23160
23161 fi
23162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
23163 $as_echo "$ac_cv_sizeof_void_p" >&6; }
23164
23165
23166
23167 cat >>confdefs.h <<_ACEOF
23168 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23169 _ACEOF
23170
23171
23172
23173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23174 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23175 if test "${ac_cv_c_bigendian+set}" = set; then :
23176 $as_echo_n "(cached) " >&6
23177 else
23178 ac_cv_c_bigendian=unknown
23179 # See if we're dealing with a universal compiler.
23180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23181 /* end confdefs.h. */
23182 #ifndef __APPLE_CC__
23183 not a universal capable compiler
23184 #endif
23185 typedef int dummy;
23186
23187 _ACEOF
23188 if ac_fn_c_try_compile "$LINENO"; then :
23189
23190 # Check for potential -arch flags. It is not universal unless
23191 # there are at least two -arch flags with different values.
23192 ac_arch=
23193 ac_prev=
23194 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23195 if test -n "$ac_prev"; then
23196 case $ac_word in
23197 i?86 | x86_64 | ppc | ppc64)
23198 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23199 ac_arch=$ac_word
23200 else
23201 ac_cv_c_bigendian=universal
23202 break
23203 fi
23204 ;;
23205 esac
23206 ac_prev=
23207 elif test "x$ac_word" = "x-arch"; then
23208 ac_prev=arch
23209 fi
23210 done
23211 fi
23212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23213 if test $ac_cv_c_bigendian = unknown; then
23214 # See if sys/param.h defines the BYTE_ORDER macro.
23215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23216 /* end confdefs.h. */
23217 #include <sys/types.h>
23218 #include <sys/param.h>
23219
23220 int
23221 main ()
23222 {
23223 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23224 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23225 && LITTLE_ENDIAN)
23226 bogus endian macros
23227 #endif
23228
23229 ;
23230 return 0;
23231 }
23232 _ACEOF
23233 if ac_fn_c_try_compile "$LINENO"; then :
23234 # It does; now see whether it defined to BIG_ENDIAN or not.
23235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23236 /* end confdefs.h. */
23237 #include <sys/types.h>
23238 #include <sys/param.h>
23239
23240 int
23241 main ()
23242 {
23243 #if BYTE_ORDER != BIG_ENDIAN
23244 not big endian
23245 #endif
23246
23247 ;
23248 return 0;
23249 }
23250 _ACEOF
23251 if ac_fn_c_try_compile "$LINENO"; then :
23252 ac_cv_c_bigendian=yes
23253 else
23254 ac_cv_c_bigendian=no
23255 fi
23256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23257 fi
23258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23259 fi
23260 if test $ac_cv_c_bigendian = unknown; then
23261 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23263 /* end confdefs.h. */
23264 #include <limits.h>
23265
23266 int
23267 main ()
23268 {
23269 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23270 bogus endian macros
23271 #endif
23272
23273 ;
23274 return 0;
23275 }
23276 _ACEOF
23277 if ac_fn_c_try_compile "$LINENO"; then :
23278 # It does; now see whether it defined to _BIG_ENDIAN or not.
23279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23280 /* end confdefs.h. */
23281 #include <limits.h>
23282
23283 int
23284 main ()
23285 {
23286 #ifndef _BIG_ENDIAN
23287 not big endian
23288 #endif
23289
23290 ;
23291 return 0;
23292 }
23293 _ACEOF
23294 if ac_fn_c_try_compile "$LINENO"; then :
23295 ac_cv_c_bigendian=yes
23296 else
23297 ac_cv_c_bigendian=no
23298 fi
23299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23300 fi
23301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23302 fi
23303 if test $ac_cv_c_bigendian = unknown; then
23304 # Compile a test program.
23305 if test "$cross_compiling" = yes; then :
23306 # Try to guess by grepping values from an object file.
23307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23308 /* end confdefs.h. */
23309 short int ascii_mm[] =
23310 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23311 short int ascii_ii[] =
23312 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23313 int use_ascii (int i) {
23314 return ascii_mm[i] + ascii_ii[i];
23315 }
23316 short int ebcdic_ii[] =
23317 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23318 short int ebcdic_mm[] =
23319 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23320 int use_ebcdic (int i) {
23321 return ebcdic_mm[i] + ebcdic_ii[i];
23322 }
23323 extern int foo;
23324
23325 int
23326 main ()
23327 {
23328 return use_ascii (foo) == use_ebcdic (foo);
23329 ;
23330 return 0;
23331 }
23332 _ACEOF
23333 if ac_fn_c_try_compile "$LINENO"; then :
23334 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23335 ac_cv_c_bigendian=yes
23336 fi
23337 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23338 if test "$ac_cv_c_bigendian" = unknown; then
23339 ac_cv_c_bigendian=no
23340 else
23341 # finding both strings is unlikely to happen, but who knows?
23342 ac_cv_c_bigendian=unknown
23343 fi
23344 fi
23345 fi
23346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23347 else
23348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23349 /* end confdefs.h. */
23350 $ac_includes_default
23351 int
23352 main ()
23353 {
23354
23355 /* Are we little or big endian? From Harbison&Steele. */
23356 union
23357 {
23358 long int l;
23359 char c[sizeof (long int)];
23360 } u;
23361 u.l = 1;
23362 return u.c[sizeof (long int) - 1] == 1;
23363
23364 ;
23365 return 0;
23366 }
23367 _ACEOF
23368 if ac_fn_c_try_run "$LINENO"; then :
23369 ac_cv_c_bigendian=no
23370 else
23371 ac_cv_c_bigendian=yes
23372 fi
23373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23374 conftest.$ac_objext conftest.beam conftest.$ac_ext
23375 fi
23376
23377 fi
23378 fi
23379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23380 $as_echo "$ac_cv_c_bigendian" >&6; }
23381 case $ac_cv_c_bigendian in #(
23382 yes)
23383 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23384 ;; #(
23385 no)
23386 ;; #(
23387 universal)
23388
23389 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23390
23391 ;; #(
23392 *)
23393 as_fn_error "unknown endianness
23394 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23395 esac
23396
23397
23398 ZLIBS=
23399 SYS_ZLIBS=
23400 ZINCS=
23401
23402 if test -z "$ZLIBSPEC"; then
23403 # Use zlib from the GCC tree.
23404 ZINCS='-I$(top_srcdir)/../zlib'
23405 ZLIBS=../zlib/libzgcj_convenience.la
23406 else
23407 # System's zlib.
23408 SYS_ZLIBS="$ZLIBSPEC"
23409 fi
23410
23411
23412
23413
23414
23415
23416
23417
23418
23419
23420 if test "$NATIVE" = yes; then
23421 NATIVE_TRUE=
23422 NATIVE_FALSE='#'
23423 else
23424 NATIVE_TRUE='#'
23425 NATIVE_FALSE=
23426 fi
23427
23428 if test "$enable_shared" = yes; then
23429 ENABLE_SHARED_TRUE=
23430 ENABLE_SHARED_FALSE='#'
23431 else
23432 ENABLE_SHARED_TRUE='#'
23433 ENABLE_SHARED_FALSE=
23434 fi
23435
23436 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
23437 NEEDS_DATA_START_TRUE=
23438 NEEDS_DATA_START_FALSE='#'
23439 else
23440 NEEDS_DATA_START_TRUE='#'
23441 NEEDS_DATA_START_FALSE=
23442 fi
23443
23444 if test -z "${with_multisubdir}"; then
23445 INSTALL_BINARIES_TRUE=
23446 INSTALL_BINARIES_FALSE='#'
23447 else
23448 INSTALL_BINARIES_TRUE='#'
23449 INSTALL_BINARIES_FALSE=
23450 fi
23451
23452
23453
23454 # Process the option "--enable-version-specific-runtime-libs"
23455 # Calculate toolexeclibdir
23456 case ${version_specific_libs} in
23457 yes)
23458 # Need the gcc compiler version to know where to install libraries
23459 # and header files if --enable-version-specific-runtime-libs option
23460 # is selected.
23461 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
23462 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
23463 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
23464 toolexeclibdir=$toolexecmainlibdir
23465 ;;
23466 no)
23467 if test -n "$with_cross_host" &&
23468 test x"$with_cross_host" != x"no"; then
23469 # Install a library built with a cross compiler in tooldir, not libdir.
23470 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
23471 toolexecmainlibdir='$(toolexecdir)/lib'
23472 else
23473 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
23474 toolexecmainlibdir='$(libdir)'
23475 fi
23476 multi_os_directory=`$CC -print-multi-os-directory`
23477 case $multi_os_directory in
23478 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
23479 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
23480 esac
23481 ;;
23482 esac
23483
23484
23485
23486
23487 # Determine gcj and libgcj version number.
23488 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
23489 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
23490 GCJVERSION=$gcjversion
23491
23492
23493 cat >>confdefs.h <<_ACEOF
23494 #define GCJVERSION "$GCJVERSION"
23495 _ACEOF
23496
23497
23498 # Determine where the standard .db file and GNU Classpath JNI
23499 # libraries are found.
23500 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
23501 multi_os_directory=`$CC -print-multi-os-directory`
23502 case $multi_os_directory in
23503 .)
23504 dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
23505 ;;
23506 *)
23507 dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
23508 ;;
23509 esac
23510
23511
23512
23513
23514 $as_echo "#define JV_VERSION \"1.5.0\"" >>confdefs.h
23515
23516
23517 $as_echo "#define JV_API_VERSION \"1.5\"" >>confdefs.h
23518
23519
23520
23521 case "${with_gxx_include_dir}" in
23522 yes)
23523 as_fn_error "--with-gxx-include-dir=[dir] requires a directory" "$LINENO" 5
23524 ;;
23525 no | "")
23526 case "${enable_version_specific_runtime_libs}" in
23527 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
23528 *)
23529 libstdcxx_incdir='c++/$(gcc_version)'
23530 gxx_include_dir='include/$(libstdcxx_incdir)'
23531 if test -n "$with_cross_host" &&
23532 test x"$with_cross_host" != x"no"; then
23533 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
23534 else
23535 gxx_include_dir='${prefix}/'"$gxx_include_dir"
23536 fi;;
23537 esac ;;
23538 *) gxx_include_dir=${with_gxx_include_dir} ;;
23539 esac
23540
23541
23542
23543
23544 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
23545 # On that system, sys/ioctl.h will not include sys/filio.h unless
23546 # BSD_COMP is defined; just including sys/filio.h is simpler.
23547 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
23548 # for now. If you change this, you also must update natFile.cc.
23549 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
23550 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
23551 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
23552 pwd.h sys/config.h stdint.h langinfo.h locale.h \
23553 dirent.h sys/rw_lock.h magic.h ifaddrs.h
23554 do :
23555 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23556 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23557 eval as_val=\$$as_ac_Header
23558 if test "x$as_val" = x""yes; then :
23559 cat >>confdefs.h <<_ACEOF
23560 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23561 _ACEOF
23562
23563 fi
23564
23565 done
23566
23567 for ac_header in inttypes.h
23568 do :
23569 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
23570 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
23571 cat >>confdefs.h <<_ACEOF
23572 #define HAVE_INTTYPES_H 1
23573 _ACEOF
23574
23575
23576 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
23577
23578
23579 $as_echo "#define JV_HAVE_INTTYPES_H 1" >>confdefs.h
23580
23581
23582 fi
23583
23584 done
23585
23586
23587 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23588 if test "x$ac_cv_type_ssize_t" = x""yes; then :
23589
23590 else
23591
23592 cat >>confdefs.h <<_ACEOF
23593 #define ssize_t int
23594 _ACEOF
23595
23596 fi
23597
23598 ac_fn_c_check_type "$LINENO" "magic_t" "ac_cv_type_magic_t" "
23599 #ifdef HAVE_MAGIC_H
23600 #include <magic.h>
23601 #endif
23602 "
23603 if test "x$ac_cv_type_magic_t" = x""yes; then :
23604
23605
23606 $as_echo "#define HAVE_MAGIC_T 1" >>confdefs.h
23607
23608 fi
23609
23610
23611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5
23612 $as_echo_n "checking for in_addr_t... " >&6; }
23613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23614 /* end confdefs.h. */
23615 #include <sys/types.h>
23616 #if STDC_HEADERS
23617 #include <stdlib.h>
23618 #include <stddef.h>
23619 #endif
23620 #if HAVE_NETINET_IN_H
23621 #include <netinet/in.h>
23622 #endif
23623 int
23624 main ()
23625 {
23626 in_addr_t foo;
23627 ;
23628 return 0;
23629 }
23630 _ACEOF
23631 if ac_fn_c_try_compile "$LINENO"; then :
23632
23633 $as_echo "#define HAVE_IN_ADDR_T 1" >>confdefs.h
23634
23635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23636 $as_echo "yes" >&6; }
23637 else
23638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23639 $as_echo "no" >&6; }
23640 fi
23641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23642
23643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ip_mreq is in netinet/in.h" >&5
23644 $as_echo_n "checking whether struct ip_mreq is in netinet/in.h... " >&6; }
23645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23646 /* end confdefs.h. */
23647 #include <netinet/in.h>
23648 int
23649 main ()
23650 {
23651 struct ip_mreq mreq;
23652 ;
23653 return 0;
23654 }
23655 _ACEOF
23656 if ac_fn_c_try_compile "$LINENO"; then :
23657
23658 $as_echo "#define HAVE_STRUCT_IP_MREQ 1" >>confdefs.h
23659
23660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23661 $as_echo "yes" >&6; }
23662 else
23663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23664 $as_echo "no" >&6; }
23665 fi
23666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23667
23668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ipv6_mreq is in netinet/in.h" >&5
23669 $as_echo_n "checking whether struct ipv6_mreq is in netinet/in.h... " >&6; }
23670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23671 /* end confdefs.h. */
23672 #include <netinet/in.h>
23673 int
23674 main ()
23675 {
23676 struct ipv6_mreq mreq6;
23677 ;
23678 return 0;
23679 }
23680 _ACEOF
23681 if ac_fn_c_try_compile "$LINENO"; then :
23682
23683 $as_echo "#define HAVE_STRUCT_IPV6_MREQ 1" >>confdefs.h
23684
23685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23686 $as_echo "yes" >&6; }
23687 else
23688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23689 $as_echo "no" >&6; }
23690 fi
23691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23692
23693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
23694 $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
23695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23696 /* end confdefs.h. */
23697 #include <netinet/in.h>
23698 int
23699 main ()
23700 {
23701 struct sockaddr_in6 addr6;
23702 ;
23703 return 0;
23704 }
23705 _ACEOF
23706 if ac_fn_c_try_compile "$LINENO"; then :
23707
23708 $as_echo "#define HAVE_INET6 1" >>confdefs.h
23709
23710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23711 $as_echo "yes" >&6; }
23712 else
23713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23714 $as_echo "no" >&6; }
23715 fi
23716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23717
23718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
23719 $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
23720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23721 /* end confdefs.h. */
23722 #define _POSIX_PII_SOCKET
23723 #include <sys/types.h>
23724 #include <sys/socket.h>
23725 int
23726 main ()
23727 {
23728 socklen_t x = 5;
23729 ;
23730 return 0;
23731 }
23732 _ACEOF
23733 if ac_fn_c_try_compile "$LINENO"; then :
23734
23735 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
23736
23737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23738 $as_echo "yes" >&6; }
23739 else
23740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23741 $as_echo "no" >&6; }
23742 fi
23743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23744
23745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
23746 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
23747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23748 /* end confdefs.h. */
23749 #include <time.h>
23750 int
23751 main ()
23752 {
23753 struct tm tim; tim.tm_gmtoff = 0;
23754 ;
23755 return 0;
23756 }
23757 _ACEOF
23758 if ac_fn_c_try_compile "$LINENO"; then :
23759
23760 $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
23761
23762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23763 $as_echo "yes" >&6; }
23764 else
23765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23766 $as_echo "no" >&6; }
23767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
23768 $as_echo_n "checking for global timezone variable... " >&6; }
23769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23770 /* end confdefs.h. */
23771 #include <time.h>
23772 int
23773 main ()
23774 {
23775 void i(){long z2 = 2*timezone;}
23776 ;
23777 return 0;
23778 }
23779 _ACEOF
23780 if ac_fn_c_try_compile "$LINENO"; then :
23781
23782 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
23783
23784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23785 $as_echo "yes" >&6; }
23786 else
23787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23788 $as_echo "no" >&6; }
23789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
23790 $as_echo_n "checking for global _timezone variable... " >&6; }
23791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23792 /* end confdefs.h. */
23793 #include <time.h>
23794 int
23795 main ()
23796 {
23797 long z2 = _timezone;
23798 ;
23799 return 0;
23800 }
23801 _ACEOF
23802 if ac_fn_c_try_compile "$LINENO"; then :
23803
23804 $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
23805
23806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23807 $as_echo "yes" >&6; }
23808 else
23809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23810 $as_echo "no" >&6; }
23811 fi
23812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23813 fi
23814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23815 fi
23816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23817
23818 for ac_prog in perl
23819 do
23820 # Extract the first word of "$ac_prog", so it can be a program name with args.
23821 set dummy $ac_prog; ac_word=$2
23822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23823 $as_echo_n "checking for $ac_word... " >&6; }
23824 if test "${ac_cv_prog_PERL+set}" = set; then :
23825 $as_echo_n "(cached) " >&6
23826 else
23827 if test -n "$PERL"; then
23828 ac_cv_prog_PERL="$PERL" # Let the user override the test.
23829 else
23830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23831 for as_dir in $PATH
23832 do
23833 IFS=$as_save_IFS
23834 test -z "$as_dir" && as_dir=.
23835 for ac_exec_ext in '' $ac_executable_extensions; do
23836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23837 ac_cv_prog_PERL="$ac_prog"
23838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23839 break 2
23840 fi
23841 done
23842 done
23843 IFS=$as_save_IFS
23844
23845 fi
23846 fi
23847 PERL=$ac_cv_prog_PERL
23848 if test -n "$PERL"; then
23849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
23850 $as_echo "$PERL" >&6; }
23851 else
23852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23853 $as_echo "no" >&6; }
23854 fi
23855
23856
23857 test -n "$PERL" && break
23858 done
23859 test -n "$PERL" || PERL="false"
23860
23861
23862 SYSDEP_SOURCES=
23863 SIGNAL_HANDLER_AUX=
23864
23865 case "${host}" in
23866 i?86-*-linux*)
23867 SIGNAL_HANDLER=include/i386-signal.h
23868 ;;
23869 sparc*-sun-solaris*)
23870 SIGNAL_HANDLER=include/sparc-signal.h
23871 ;;
23872 # ia64-*)
23873 # SYSDEP_SOURCES=sysdep/ia64.c
23874 # test -d sysdep || mkdir sysdep
23875 # ;;
23876 hppa*-*-linux*)
23877 SIGNAL_HANDLER=include/pa-signal.h
23878 ;;
23879 hppa*-hp-hpux*)
23880 SIGNAL_HANDLER=include/hppa-signal.h
23881 ;;
23882 ia64-*-linux*)
23883 SIGNAL_HANDLER=include/dwarf2-signal.h
23884 ;;
23885 powerpc*-*-linux*)
23886 SIGNAL_HANDLER=include/powerpc-signal.h
23887 ;;
23888 alpha*-*-linux*)
23889 SIGNAL_HANDLER=include/dwarf2-signal.h
23890 ;;
23891 s390*-*-linux*)
23892 SIGNAL_HANDLER=include/s390-signal.h
23893 ;;
23894 x86_64*-*-linux*)
23895 SIGNAL_HANDLER=include/x86_64-signal.h
23896 SIGNAL_HANDLER_AUX=include/i386-signal.h
23897 ;;
23898 sparc*-*-linux*)
23899 SIGNAL_HANDLER=include/dwarf2-signal.h
23900 ;;
23901 sh*-*-linux*)
23902 SIGNAL_HANDLER=include/sh-signal.h
23903 ;;
23904 *mingw*)
23905 SIGNAL_HANDLER=include/win32-signal.h
23906 ;;
23907 mips*-*-linux*)
23908 SIGNAL_HANDLER=include/mips-signal.h
23909 ;;
23910 m68*-*-linux*)
23911 SIGNAL_HANDLER=include/dwarf2-signal.h
23912 ;;
23913 powerpc*-*-darwin* | i?86-*-darwin[912]* | x86_64-*-darwin[912]*)
23914 SIGNAL_HANDLER=include/darwin-signal.h
23915 ;;
23916 powerpc*-*-aix*)
23917 SIGNAL_HANDLER=include/aix-signal.h
23918 ;;
23919 *)
23920 SIGNAL_HANDLER=include/default-signal.h
23921 ;;
23922 esac
23923
23924 # If we're using sjlj exceptions, forget what we just learned.
23925 if test "$enable_sjlj_exceptions" = yes; then
23926 SIGNAL_HANDLER=include/default-signal.h
23927 SIGNAL_HANDLER_AUX=
23928 fi
23929
23930
23931
23932 if test -z "$SIGNAL_HANDLER_AUX"; then
23933 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
23934 fi
23935
23936 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
23937
23938
23939 if test "${multilib}" = "yes"; then
23940 multilib_arg="--enable-multilib"
23941 else
23942 multilib_arg=
23943 fi
23944
23945 # See if we support thread-local storage.
23946
23947
23948 # Check whether --enable-tls was given.
23949 if test "${enable_tls+set}" = set; then :
23950 enableval=$enable_tls;
23951 case "$enableval" in
23952 yes|no) ;;
23953 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
23954 esac
23955
23956 else
23957 enable_tls=yes
23958 fi
23959
23960
23961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
23962 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
23963 if test "${gcc_cv_have_tls+set}" = set; then :
23964 $as_echo_n "(cached) " >&6
23965 else
23966
23967 if test "$cross_compiling" = yes; then :
23968 if test x$gcc_no_link = xyes; then
23969 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23970 fi
23971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23972 /* end confdefs.h. */
23973 __thread int a; int b; int main() { return a = b; }
23974 _ACEOF
23975 if ac_fn_c_try_link "$LINENO"; then :
23976 chktls_save_LDFLAGS="$LDFLAGS"
23977 case $host in
23978 *-*-linux*)
23979 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
23980 ;;
23981 esac
23982 chktls_save_CFLAGS="$CFLAGS"
23983 CFLAGS="-fPIC $CFLAGS"
23984 if test x$gcc_no_link = xyes; then
23985 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23986 fi
23987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23988 /* end confdefs.h. */
23989 int f() { return 0; }
23990 _ACEOF
23991 if ac_fn_c_try_link "$LINENO"; then :
23992 if test x$gcc_no_link = xyes; then
23993 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23994 fi
23995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23996 /* end confdefs.h. */
23997 __thread int a; int b; int f() { return a = b; }
23998 _ACEOF
23999 if ac_fn_c_try_link "$LINENO"; then :
24000 gcc_cv_have_tls=yes
24001 else
24002 gcc_cv_have_tls=no
24003 fi
24004 rm -f core conftest.err conftest.$ac_objext \
24005 conftest$ac_exeext conftest.$ac_ext
24006 else
24007 gcc_cv_have_tls=yes
24008 fi
24009 rm -f core conftest.err conftest.$ac_objext \
24010 conftest$ac_exeext conftest.$ac_ext
24011 CFLAGS="$chktls_save_CFLAGS"
24012 LDFLAGS="$chktls_save_LDFLAGS"
24013 else
24014 gcc_cv_have_tls=no
24015 fi
24016 rm -f core conftest.err conftest.$ac_objext \
24017 conftest$ac_exeext conftest.$ac_ext
24018
24019
24020 else
24021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24022 /* end confdefs.h. */
24023 __thread int a; int b; int main() { return a = b; }
24024 _ACEOF
24025 if ac_fn_c_try_run "$LINENO"; then :
24026 chktls_save_LDFLAGS="$LDFLAGS"
24027 LDFLAGS="-static $LDFLAGS"
24028 if test x$gcc_no_link = xyes; then
24029 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24030 fi
24031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24032 /* end confdefs.h. */
24033 int main() { return 0; }
24034 _ACEOF
24035 if ac_fn_c_try_link "$LINENO"; then :
24036 if test "$cross_compiling" = yes; then :
24037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24039 as_fn_error "cannot run test program while cross compiling
24040 See \`config.log' for more details." "$LINENO" 5; }
24041 else
24042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24043 /* end confdefs.h. */
24044 __thread int a; int b; int main() { return a = b; }
24045 _ACEOF
24046 if ac_fn_c_try_run "$LINENO"; then :
24047 gcc_cv_have_tls=yes
24048 else
24049 gcc_cv_have_tls=no
24050 fi
24051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24052 conftest.$ac_objext conftest.beam conftest.$ac_ext
24053 fi
24054
24055 else
24056 gcc_cv_have_tls=yes
24057 fi
24058 rm -f core conftest.err conftest.$ac_objext \
24059 conftest$ac_exeext conftest.$ac_ext
24060 LDFLAGS="$chktls_save_LDFLAGS"
24061 if test $gcc_cv_have_tls = yes; then
24062 chktls_save_CFLAGS="$CFLAGS"
24063 thread_CFLAGS=failed
24064 for flag in '' '-pthread' '-lpthread'; do
24065 CFLAGS="$flag $chktls_save_CFLAGS"
24066 if test x$gcc_no_link = xyes; then
24067 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24068 fi
24069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24070 /* end confdefs.h. */
24071 #include <pthread.h>
24072 void *g(void *d) { return NULL; }
24073 int
24074 main ()
24075 {
24076 pthread_t t; pthread_create(&t,NULL,g,NULL);
24077 ;
24078 return 0;
24079 }
24080 _ACEOF
24081 if ac_fn_c_try_link "$LINENO"; then :
24082 thread_CFLAGS="$flag"
24083 fi
24084 rm -f core conftest.err conftest.$ac_objext \
24085 conftest$ac_exeext conftest.$ac_ext
24086 if test "X$thread_CFLAGS" != Xfailed; then
24087 break
24088 fi
24089 done
24090 CFLAGS="$chktls_save_CFLAGS"
24091 if test "X$thread_CFLAGS" != Xfailed; then
24092 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
24093 if test "$cross_compiling" = yes; then :
24094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24096 as_fn_error "cannot run test program while cross compiling
24097 See \`config.log' for more details." "$LINENO" 5; }
24098 else
24099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24100 /* end confdefs.h. */
24101 #include <pthread.h>
24102 __thread int a;
24103 static int *a_in_other_thread;
24104 static void *
24105 thread_func (void *arg)
24106 {
24107 a_in_other_thread = &a;
24108 return (void *)0;
24109 }
24110 int
24111 main ()
24112 {
24113 pthread_t thread;
24114 void *thread_retval;
24115 int *a_in_main_thread;
24116 if (pthread_create (&thread, (pthread_attr_t *)0,
24117 thread_func, (void *)0))
24118 return 0;
24119 a_in_main_thread = &a;
24120 if (pthread_join (thread, &thread_retval))
24121 return 0;
24122 return (a_in_other_thread == a_in_main_thread);
24123 ;
24124 return 0;
24125 }
24126 _ACEOF
24127 if ac_fn_c_try_run "$LINENO"; then :
24128 gcc_cv_have_tls=yes
24129 else
24130 gcc_cv_have_tls=no
24131 fi
24132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24133 conftest.$ac_objext conftest.beam conftest.$ac_ext
24134 fi
24135
24136 CFLAGS="$chktls_save_CFLAGS"
24137 fi
24138 fi
24139 else
24140 gcc_cv_have_tls=no
24141 fi
24142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24143 conftest.$ac_objext conftest.beam conftest.$ac_ext
24144 fi
24145
24146 fi
24147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
24148 $as_echo "$gcc_cv_have_tls" >&6; }
24149 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
24150
24151 $as_echo "#define HAVE_TLS 1" >>confdefs.h
24152
24153 fi
24154
24155 # For _Unwind_GetIPInfo.
24156
24157
24158 # Check whether --with-system-libunwind was given.
24159 if test "${with_system_libunwind+set}" = set; then :
24160 withval=$with_system_libunwind;
24161 fi
24162
24163 # If system-libunwind was not specifically set, pick a default setting.
24164 if test x$with_system_libunwind = x; then
24165 case ${target} in
24166 ia64-*-hpux*) with_system_libunwind=yes ;;
24167 *) with_system_libunwind=no ;;
24168 esac
24169 fi
24170 # Based on system-libunwind and target, do we have ipinfo?
24171 if test x$with_system_libunwind = xyes; then
24172 case ${target} in
24173 ia64-*-*) have_unwind_getipinfo=no ;;
24174 *) have_unwind_getipinfo=yes ;;
24175 esac
24176 else
24177 # Darwin before version 9 does not have _Unwind_GetIPInfo.
24178
24179 case ${target} in
24180 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
24181 *) have_unwind_getipinfo=yes ;;
24182 esac
24183
24184 fi
24185
24186 if test x$have_unwind_getipinfo = xyes; then
24187
24188 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
24189
24190 fi
24191
24192
24193 # See if linker supports anonymous version scripts.
24194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous version scripts" >&5
24195 $as_echo_n "checking whether ld supports anonymous version scripts... " >&6; }
24196 if test "${libjava_cv_anon_version_script+set}" = set; then :
24197 $as_echo_n "(cached) " >&6
24198 else
24199 save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
24200 libjava_cv_anon_version_script=no
24201 CFLAGS="$CFLAGS -fPIC"; LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
24202 echo '{ global: globalsymb*; local: *; };' > conftest.map
24203 if test x$gcc_no_link = xyes; then
24204 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24205 fi
24206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24207 /* end confdefs.h. */
24208 void globalsymbol (void) {} void localsymbol (void) {}
24209 int
24210 main ()
24211 {
24212
24213 ;
24214 return 0;
24215 }
24216 _ACEOF
24217 if ac_fn_c_try_link "$LINENO"; then :
24218 libjava_cv_anon_version_script=yes
24219 fi
24220 rm -f core conftest.err conftest.$ac_objext \
24221 conftest$ac_exeext conftest.$ac_ext
24222 CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
24223
24224 fi
24225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_anon_version_script" >&5
24226 $as_echo "$libjava_cv_anon_version_script" >&6; }
24227 if test "$libjava_cv_anon_version_script" = yes; then
24228 ANONVERSCRIPT_TRUE=
24229 ANONVERSCRIPT_FALSE='#'
24230 else
24231 ANONVERSCRIPT_TRUE='#'
24232 ANONVERSCRIPT_FALSE=
24233 fi
24234
24235
24236 # Check if linker supports static linking on a per library basis
24237 LD_START_STATIC_SPEC=
24238 LD_FINISH_STATIC_SPEC=
24239 if $LD --help 2>&1 | grep -q -e -call_shared ; then
24240 if $LD --help 2>&1 | grep -q -e -non_shared ; then
24241 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
24242 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
24243 fi
24244 fi
24245
24246
24247
24248 here=`${PWDCMD-pwd}`
24249
24250
24251 # We get this from the environment.
24252
24253
24254
24255 # Check whether --with-python-dir was given.
24256 if test "${with_python_dir+set}" = set; then :
24257 withval=$with_python_dir; with_python_dir=$withval
24258 else
24259 with_python_dir=""
24260 fi
24261
24262
24263 if test "x${with_python_dir}" = "x"
24264 then
24265 # Needed for installing Python modules during make install.
24266 python_mod_dir="\${prefix}/share/python"
24267 # Needed for substituting into aot-compile*
24268 python_mod_dir_expanded="${prefix}/share/python"
24269 else
24270 python_mod_dir="\${prefix}${with_python_dir}"
24271 python_mod_dir_expanded="${prefix}${with_python_dir}"
24272 fi
24273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Python modules dir: ${python_mod_dir_expanded}" >&5
24274 $as_echo "Python modules dir: ${python_mod_dir_expanded}" >&6; };
24275
24276
24277
24278 # needed for aot-compile-rpm
24279 MAKE=`which make`
24280
24281
24282 # Check whether --enable-aot-compile-rpm was given.
24283 if test "${enable_aot_compile_rpm+set}" = set; then :
24284 enableval=$enable_aot_compile_rpm; case "${enableval}" in
24285 yes) AOT_RPM_ENABLED=yes ;;
24286 no) AOT_RPM_ENABLED=no ;;
24287 *) as_fn_error "Unknown argument to enable/disable aot-compile-rpm" "$LINENO" 5 ;;
24288 esac
24289 else
24290 AOT_RPM_ENABLED=no
24291
24292 fi
24293
24294 if test "x${AOT_RPM_ENABLED}" = xyes; then
24295 INSTALL_AOT_RPM_TRUE=
24296 INSTALL_AOT_RPM_FALSE='#'
24297 else
24298 INSTALL_AOT_RPM_TRUE='#'
24299 INSTALL_AOT_RPM_FALSE=
24300 fi
24301
24302
24303 # Check whether --enable-java-home was given.
24304 if test "${enable_java_home+set}" = set; then :
24305 enableval=$enable_java_home; case "${enableval}" in
24306 yes) JAVA_HOME_ENABLED=yes ;;
24307 no) JAVA_HOME_ENABLED=no ;;
24308 *) as_fn_error "Unknown argument to enable/disable java-home" "$LINENO" 5 ;;
24309 esac
24310 else
24311 JAVA_HOME_ENABLED=no
24312
24313 fi
24314
24315 if test "x${JAVA_HOME_ENABLED}" = xyes; then
24316 CREATE_JAVA_HOME_TRUE=
24317 CREATE_JAVA_HOME_FALSE='#'
24318 else
24319 CREATE_JAVA_HOME_TRUE='#'
24320 CREATE_JAVA_HOME_FALSE=
24321 fi
24322
24323
24324 # Only do these checks if java-home above is enabled.
24325 if test "x${JAVA_HOME_ENABLED}" = xyes
24326 then
24327
24328
24329 # Check whether --with-gcc-suffix was given.
24330 if test "${with_gcc_suffix+set}" = set; then :
24331 withval=$with_gcc_suffix; gcc_suffix=$withval
24332 else
24333 gcc_suffix=""
24334 fi
24335
24336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCC suffix: ${gcc_suffix}" >&5
24337 $as_echo "GCC suffix: ${gcc_suffix}" >&6; }
24338
24339
24340
24341 # Check whether --with-arch-directory was given.
24342 if test "${with_arch_directory+set}" = set; then :
24343 withval=$with_arch_directory; host_cpu=$withval
24344 else
24345 host_cpu=""
24346 fi
24347
24348
24349
24350 # Check whether --with-os-directory was given.
24351 if test "${with_os_directory+set}" = set; then :
24352 withval=$with_os_directory; host_os=$withval
24353 else
24354 host_os=""
24355 fi
24356
24357
24358
24359 # Check whether --with-origin-name was given.
24360 if test "${with_origin_name+set}" = set; then :
24361 withval=$with_origin_name; origin_name=$withval
24362 else
24363 origin_name=gcj${gcc_suffix}
24364 fi
24365
24366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JPackage origin name: ${origin_name}" >&5
24367 $as_echo "JPackage origin name: ${origin_name}" >&6; }
24368
24369
24370 # Check whether --with-arch-suffix was given.
24371 if test "${with_arch_suffix+set}" = set; then :
24372 withval=$with_arch_suffix; arch_suffix=$withval
24373 else
24374 arch_suffix=""
24375 fi
24376
24377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch suffix: ${arch_suffix}" >&5
24378 $as_echo "arch suffix: ${arch_suffix}" >&6; }
24379
24380
24381 # Check whether --with-jvm-root-dir was given.
24382 if test "${with_jvm_root_dir+set}" = set; then :
24383 withval=$with_jvm_root_dir; jvm_root_dir=$withval
24384 else
24385 jvm_root_dir="\${prefix}/lib/jvm"
24386 fi
24387
24388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM root installation directory: ${jvm_root_dir}" >&5
24389 $as_echo "JVM root installation directory: ${jvm_root_dir}" >&6; }
24390
24391
24392 # Check whether --with-jvm-jar-dir was given.
24393 if test "${with_jvm_jar_dir+set}" = set; then :
24394 withval=$with_jvm_jar_dir; jvm_jar_dir=$withval
24395 else
24396 jvm_jar_dir=\${prefix}/lib/jvm-exports
24397 fi
24398
24399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JAR root installation directory: ${jvm_jar_dir}" >&5
24400 $as_echo "JAR root installation directory: ${jvm_jar_dir}" >&6; }
24401
24402 JAVA_VERSION=1.5.0
24403 BUILD_VERSION=0
24404
24405
24406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Java version: ${JAVA_VERSION}" >&5
24407 $as_echo "Java version: ${JAVA_VERSION}" >&6; }
24408
24409 jre_dir=jre
24410 jre_lnk=jre-${JAVA_VERSION}-${origin_name}
24411 sdk_lnk=java-${JAVA_VERSION}-${origin_name}
24412
24413 JVM_ROOT_DIR=${jvm_root_dir}
24414
24415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
24416 $as_echo "JVM ROOT directory: ${JVM_ROOT_DIR}" >&6; }
24417
24418 JVM_JAR_ROOT_DIR=${jvm_jar_dir}
24419
24420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
24421 $as_echo "JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6; }
24422
24423 JVM_JAR_DIR=${jvm_jar_dir}
24424
24425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
24426 $as_echo "JVM JAR directory: ${JVM_JAR_DIR}" >&6; }
24427
24428 JRE_DIR=${jre_dir}
24429
24430
24431 JRE_LNK=${jre_lnk}
24432
24433
24434 SDK_LNK=${sdk_lnk}
24435
24436
24437 SDK_BIN_DIR=${jvm_root_dir}/bin
24438
24439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
24440 $as_echo "SDK tools directory: ${SDK_BIN_DIR}" >&6; }
24441
24442 SDK_LIB_DIR=${jvm_root_dir}/lib
24443
24444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
24445 $as_echo "SDK jar directory: ${SDK_LIB_DIR}" >&6; }
24446
24447 SDK_INCLUDE_DIR=${jvm_root_dir}/include
24448
24449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
24450 $as_echo "SDK include directory: ${SDK_INCLUDE_DIR}" >&6; }
24451
24452 JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
24453
24454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
24455 $as_echo "JRE tools directory: ${JRE_BIN_DIR}" >&6; }
24456
24457 JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
24458
24459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
24460 $as_echo "JRE lib directory: ${JRE_LIB_DIR}" >&6; }
24461
24462 # Find gcj prefix using gcj found in PATH.
24463 gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
24464
24465 # Where do the gcj binaries live?
24466 # For jhbuild based builds, they all live in a sibling of bin called
24467 # gcj-bin. Check for gcj-bin first, and use bin otherwise.
24468 GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
24469
24470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
24471 $as_echo "GCJ tools directory: ${GCJ_BIN_DIR}" >&6; }
24472
24473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host is ${host}" >&5
24474 $as_echo "host is ${host}" >&6; }
24475 if test "x${host_cpu}" = "x"
24476 then
24477 case ${host} in
24478 *-mingw* | *-cygwin*)
24479 host_cpu=x86;;
24480 i486-* | i586-* | i686-*)
24481 host_cpu=i386;;
24482 x86_64-*)
24483 host_cpu=amd64;;
24484 *)
24485 host_cpu=${host_cpu};;
24486 esac
24487 fi
24488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch directory: ${host_cpu}" >&5
24489 $as_echo "arch directory: ${host_cpu}" >&6; }
24490 CPU=${host_cpu}
24491
24492
24493 if test "x${host_os}" = "x"
24494 then
24495 case ${host} in
24496 *-mingw* | *-cygwin*)
24497 host_os=win32;;
24498 *-linux*)
24499 host_os=linux;;
24500 *)
24501 host_os=${host_os};;
24502 esac
24503 fi
24504 echo os directory: ${host_os}
24505 OS=${host_os}
24506
24507
24508 # make an expanded $libdir, for substituting into
24509 # scripts (and other non-Makefile things).
24510 LIBDIR=$libdir
24511 if test "x${exec_prefix}" = "xNONE"
24512 then
24513 lib_exec_prefix=$prefix
24514 else
24515 lib_exec_prefix=$exec_prefix
24516 fi
24517 LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
24518
24519 fi
24520
24521 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"
24522
24523
24524 if test ${multilib} = yes; then
24525 multilib_arg="--enable-multilib"
24526 else
24527 multilib_arg=
24528 fi
24529
24530 ac_config_files="$ac_config_files scripts/jar"
24531
24532 cat >confcache <<\_ACEOF
24533 # This file is a shell script that caches the results of configure
24534 # tests run on this system so they can be shared between configure
24535 # scripts and configure runs, see configure's option --config-cache.
24536 # It is not useful on other systems. If it contains results you don't
24537 # want to keep, you may remove or edit it.
24538 #
24539 # config.status only pays attention to the cache file if you give it
24540 # the --recheck option to rerun configure.
24541 #
24542 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24543 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24544 # following values.
24545
24546 _ACEOF
24547
24548 # The following way of writing the cache mishandles newlines in values,
24549 # but we know of no workaround that is simple, portable, and efficient.
24550 # So, we kill variables containing newlines.
24551 # Ultrix sh set writes to stderr and can't be redirected directly,
24552 # and sets the high bit in the cache file unless we assign to the vars.
24553 (
24554 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24555 eval ac_val=\$$ac_var
24556 case $ac_val in #(
24557 *${as_nl}*)
24558 case $ac_var in #(
24559 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24560 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24561 esac
24562 case $ac_var in #(
24563 _ | IFS | as_nl) ;; #(
24564 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24565 *) { eval $ac_var=; unset $ac_var;} ;;
24566 esac ;;
24567 esac
24568 done
24569
24570 (set) 2>&1 |
24571 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24572 *${as_nl}ac_space=\ *)
24573 # `set' does not quote correctly, so add quotes: double-quote
24574 # substitution turns \\\\ into \\, and sed turns \\ into \.
24575 sed -n \
24576 "s/'/'\\\\''/g;
24577 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24578 ;; #(
24579 *)
24580 # `set' quotes correctly as required by POSIX, so do not add quotes.
24581 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24582 ;;
24583 esac |
24584 sort
24585 ) |
24586 sed '
24587 /^ac_cv_env_/b end
24588 t clear
24589 :clear
24590 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24591 t end
24592 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24593 :end' >>confcache
24594 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24595 if test -w "$cache_file"; then
24596 test "x$cache_file" != "x/dev/null" &&
24597 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24598 $as_echo "$as_me: updating cache $cache_file" >&6;}
24599 cat confcache >$cache_file
24600 else
24601 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24602 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24603 fi
24604 fi
24605 rm -f confcache
24606
24607 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24608 # Let make expand exec_prefix.
24609 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24610
24611 DEFS=-DHAVE_CONFIG_H
24612
24613 ac_libobjs=
24614 ac_ltlibobjs=
24615 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24616 # 1. Remove the extension, and $U if already installed.
24617 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24618 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24619 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24620 # will be set to the directory where LIBOBJS objects are built.
24621 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24622 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24623 done
24624 LIBOBJS=$ac_libobjs
24625
24626 LTLIBOBJS=$ac_ltlibobjs
24627
24628
24629 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
24630 as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
24631 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24632 fi
24633 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
24634 as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
24635 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24636 fi
24637 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24638 as_fn_error "conditional \"AMDEP\" was never defined.
24639 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24640 fi
24641 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24642 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24643 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24644 fi
24645 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24646 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
24647 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24648 fi
24649 if test -n "$EXEEXT"; then
24650 am__EXEEXT_TRUE=
24651 am__EXEEXT_FALSE='#'
24652 else
24653 am__EXEEXT_TRUE='#'
24654 am__EXEEXT_FALSE=
24655 fi
24656
24657 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24658 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
24659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24660 fi
24661 if test -z "${BUILD_SUBLIBS_TRUE}" && test -z "${BUILD_SUBLIBS_FALSE}"; then
24662 as_fn_error "conditional \"BUILD_SUBLIBS\" was never defined.
24663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24664 fi
24665 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
24666 as_fn_error "conditional \"XLIB_AWT\" was never defined.
24667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24668 fi
24669 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
24670 as_fn_error "conditional \"X_AWT\" was never defined.
24671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24672 fi
24673 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24674 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24676 fi
24677 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24678 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24680 fi
24681 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
24682 as_fn_error "conditional \"TESTSUBDIR\" was never defined.
24683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24684 fi
24685 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
24686 as_fn_error "conditional \"BUILD_ECJ1\" was never defined.
24687 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24688 fi
24689 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
24690 as_fn_error "conditional \"INSTALL_ECJ_JAR\" was never defined.
24691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24692 fi
24693 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
24694 as_fn_error "conditional \"JAVA_HOME_SET\" was never defined.
24695 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24696 fi
24697 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
24698 as_fn_error "conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
24699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24700 fi
24701 if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
24702 as_fn_error "conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
24703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24704 fi
24705 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
24706 as_fn_error "conditional \"INTERPRETER\" was never defined.
24707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24708 fi
24709 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
24710 as_fn_error "conditional \"USING_WIN32_PLATFORM\" was never defined.
24711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24712 fi
24713 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
24714 as_fn_error "conditional \"USING_POSIX_PLATFORM\" was never defined.
24715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24716 fi
24717 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
24718 as_fn_error "conditional \"USING_DARWIN_CRT\" was never defined.
24719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24720 fi
24721 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
24722 as_fn_error "conditional \"USING_BOEHMGC\" was never defined.
24723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24724 fi
24725 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
24726 as_fn_error "conditional \"USING_NOGC\" was never defined.
24727 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24728 fi
24729 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
24730 as_fn_error "conditional \"USING_POSIX_THREADS\" was never defined.
24731 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24732 fi
24733 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
24734 as_fn_error "conditional \"USING_WIN32_THREADS\" was never defined.
24735 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24736 fi
24737 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
24738 as_fn_error "conditional \"USING_NO_THREADS\" was never defined.
24739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24740 fi
24741 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
24742 as_fn_error "conditional \"USE_LIBGCJ_BC\" was never defined.
24743 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24744 fi
24745 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
24746 as_fn_error "conditional \"USING_GCC\" was never defined.
24747 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24748 fi
24749 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24750 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24752 fi
24753
24754 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
24755 as_fn_error "conditional \"NATIVE\" was never defined.
24756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24757 fi
24758 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
24759 as_fn_error "conditional \"ENABLE_SHARED\" was never defined.
24760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24761 fi
24762 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
24763 as_fn_error "conditional \"NEEDS_DATA_START\" was never defined.
24764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24765 fi
24766 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
24767 as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
24768 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24769 fi
24770 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
24771 as_fn_error "conditional \"ANONVERSCRIPT\" was never defined.
24772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24773 fi
24774 if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
24775 as_fn_error "conditional \"INSTALL_AOT_RPM\" was never defined.
24776 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24777 fi
24778 if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
24779 as_fn_error "conditional \"CREATE_JAVA_HOME\" was never defined.
24780 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24781 fi
24782
24783 : ${CONFIG_STATUS=./config.status}
24784 ac_write_fail=0
24785 ac_clean_files_save=$ac_clean_files
24786 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24787 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24788 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24789 as_write_fail=0
24790 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24791 #! $SHELL
24792 # Generated by $as_me.
24793 # Run this file to recreate the current configuration.
24794 # Compiler output produced by configure, useful for debugging
24795 # configure, is in config.log if it exists.
24796
24797 debug=false
24798 ac_cs_recheck=false
24799 ac_cs_silent=false
24800
24801 SHELL=\${CONFIG_SHELL-$SHELL}
24802 export SHELL
24803 _ASEOF
24804 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24805 ## -------------------- ##
24806 ## M4sh Initialization. ##
24807 ## -------------------- ##
24808
24809 # Be more Bourne compatible
24810 DUALCASE=1; export DUALCASE # for MKS sh
24811 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24812 emulate sh
24813 NULLCMD=:
24814 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24815 # is contrary to our usage. Disable this feature.
24816 alias -g '${1+"$@"}'='"$@"'
24817 setopt NO_GLOB_SUBST
24818 else
24819 case `(set -o) 2>/dev/null` in #(
24820 *posix*) :
24821 set -o posix ;; #(
24822 *) :
24823 ;;
24824 esac
24825 fi
24826
24827
24828 as_nl='
24829 '
24830 export as_nl
24831 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24832 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24833 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24834 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24835 # Prefer a ksh shell builtin over an external printf program on Solaris,
24836 # but without wasting forks for bash or zsh.
24837 if test -z "$BASH_VERSION$ZSH_VERSION" \
24838 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24839 as_echo='print -r --'
24840 as_echo_n='print -rn --'
24841 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24842 as_echo='printf %s\n'
24843 as_echo_n='printf %s'
24844 else
24845 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24846 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24847 as_echo_n='/usr/ucb/echo -n'
24848 else
24849 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24850 as_echo_n_body='eval
24851 arg=$1;
24852 case $arg in #(
24853 *"$as_nl"*)
24854 expr "X$arg" : "X\\(.*\\)$as_nl";
24855 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24856 esac;
24857 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24858 '
24859 export as_echo_n_body
24860 as_echo_n='sh -c $as_echo_n_body as_echo'
24861 fi
24862 export as_echo_body
24863 as_echo='sh -c $as_echo_body as_echo'
24864 fi
24865
24866 # The user is always right.
24867 if test "${PATH_SEPARATOR+set}" != set; then
24868 PATH_SEPARATOR=:
24869 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24870 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24871 PATH_SEPARATOR=';'
24872 }
24873 fi
24874
24875
24876 # IFS
24877 # We need space, tab and new line, in precisely that order. Quoting is
24878 # there to prevent editors from complaining about space-tab.
24879 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24880 # splitting by setting IFS to empty value.)
24881 IFS=" "" $as_nl"
24882
24883 # Find who we are. Look in the path if we contain no directory separator.
24884 case $0 in #((
24885 *[\\/]* ) as_myself=$0 ;;
24886 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24887 for as_dir in $PATH
24888 do
24889 IFS=$as_save_IFS
24890 test -z "$as_dir" && as_dir=.
24891 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24892 done
24893 IFS=$as_save_IFS
24894
24895 ;;
24896 esac
24897 # We did not find ourselves, most probably we were run as `sh COMMAND'
24898 # in which case we are not to be found in the path.
24899 if test "x$as_myself" = x; then
24900 as_myself=$0
24901 fi
24902 if test ! -f "$as_myself"; then
24903 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24904 exit 1
24905 fi
24906
24907 # Unset variables that we do not need and which cause bugs (e.g. in
24908 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24909 # suppresses any "Segmentation fault" message there. '((' could
24910 # trigger a bug in pdksh 5.2.14.
24911 for as_var in BASH_ENV ENV MAIL MAILPATH
24912 do eval test x\${$as_var+set} = xset \
24913 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24914 done
24915 PS1='$ '
24916 PS2='> '
24917 PS4='+ '
24918
24919 # NLS nuisances.
24920 LC_ALL=C
24921 export LC_ALL
24922 LANGUAGE=C
24923 export LANGUAGE
24924
24925 # CDPATH.
24926 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24927
24928
24929 # as_fn_error ERROR [LINENO LOG_FD]
24930 # ---------------------------------
24931 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24932 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24933 # script with status $?, using 1 if that was 0.
24934 as_fn_error ()
24935 {
24936 as_status=$?; test $as_status -eq 0 && as_status=1
24937 if test "$3"; then
24938 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24939 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24940 fi
24941 $as_echo "$as_me: error: $1" >&2
24942 as_fn_exit $as_status
24943 } # as_fn_error
24944
24945
24946 # as_fn_set_status STATUS
24947 # -----------------------
24948 # Set $? to STATUS, without forking.
24949 as_fn_set_status ()
24950 {
24951 return $1
24952 } # as_fn_set_status
24953
24954 # as_fn_exit STATUS
24955 # -----------------
24956 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24957 as_fn_exit ()
24958 {
24959 set +e
24960 as_fn_set_status $1
24961 exit $1
24962 } # as_fn_exit
24963
24964 # as_fn_unset VAR
24965 # ---------------
24966 # Portably unset VAR.
24967 as_fn_unset ()
24968 {
24969 { eval $1=; unset $1;}
24970 }
24971 as_unset=as_fn_unset
24972 # as_fn_append VAR VALUE
24973 # ----------------------
24974 # Append the text in VALUE to the end of the definition contained in VAR. Take
24975 # advantage of any shell optimizations that allow amortized linear growth over
24976 # repeated appends, instead of the typical quadratic growth present in naive
24977 # implementations.
24978 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24979 eval 'as_fn_append ()
24980 {
24981 eval $1+=\$2
24982 }'
24983 else
24984 as_fn_append ()
24985 {
24986 eval $1=\$$1\$2
24987 }
24988 fi # as_fn_append
24989
24990 # as_fn_arith ARG...
24991 # ------------------
24992 # Perform arithmetic evaluation on the ARGs, and store the result in the
24993 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24994 # must be portable across $(()) and expr.
24995 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24996 eval 'as_fn_arith ()
24997 {
24998 as_val=$(( $* ))
24999 }'
25000 else
25001 as_fn_arith ()
25002 {
25003 as_val=`expr "$@" || test $? -eq 1`
25004 }
25005 fi # as_fn_arith
25006
25007
25008 if expr a : '\(a\)' >/dev/null 2>&1 &&
25009 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25010 as_expr=expr
25011 else
25012 as_expr=false
25013 fi
25014
25015 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25016 as_basename=basename
25017 else
25018 as_basename=false
25019 fi
25020
25021 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25022 as_dirname=dirname
25023 else
25024 as_dirname=false
25025 fi
25026
25027 as_me=`$as_basename -- "$0" ||
25028 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25029 X"$0" : 'X\(//\)$' \| \
25030 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25031 $as_echo X/"$0" |
25032 sed '/^.*\/\([^/][^/]*\)\/*$/{
25033 s//\1/
25034 q
25035 }
25036 /^X\/\(\/\/\)$/{
25037 s//\1/
25038 q
25039 }
25040 /^X\/\(\/\).*/{
25041 s//\1/
25042 q
25043 }
25044 s/.*/./; q'`
25045
25046 # Avoid depending upon Character Ranges.
25047 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25048 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25049 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25050 as_cr_digits='0123456789'
25051 as_cr_alnum=$as_cr_Letters$as_cr_digits
25052
25053 ECHO_C= ECHO_N= ECHO_T=
25054 case `echo -n x` in #(((((
25055 -n*)
25056 case `echo 'xy\c'` in
25057 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25058 xy) ECHO_C='\c';;
25059 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25060 ECHO_T=' ';;
25061 esac;;
25062 *)
25063 ECHO_N='-n';;
25064 esac
25065
25066 rm -f conf$$ conf$$.exe conf$$.file
25067 if test -d conf$$.dir; then
25068 rm -f conf$$.dir/conf$$.file
25069 else
25070 rm -f conf$$.dir
25071 mkdir conf$$.dir 2>/dev/null
25072 fi
25073 if (echo >conf$$.file) 2>/dev/null; then
25074 if ln -s conf$$.file conf$$ 2>/dev/null; then
25075 as_ln_s='ln -s'
25076 # ... but there are two gotchas:
25077 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25078 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25079 # In both cases, we have to default to `cp -p'.
25080 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25081 as_ln_s='cp -p'
25082 elif ln conf$$.file conf$$ 2>/dev/null; then
25083 as_ln_s=ln
25084 else
25085 as_ln_s='cp -p'
25086 fi
25087 else
25088 as_ln_s='cp -p'
25089 fi
25090 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25091 rmdir conf$$.dir 2>/dev/null
25092
25093
25094 # as_fn_mkdir_p
25095 # -------------
25096 # Create "$as_dir" as a directory, including parents if necessary.
25097 as_fn_mkdir_p ()
25098 {
25099
25100 case $as_dir in #(
25101 -*) as_dir=./$as_dir;;
25102 esac
25103 test -d "$as_dir" || eval $as_mkdir_p || {
25104 as_dirs=
25105 while :; do
25106 case $as_dir in #(
25107 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25108 *) as_qdir=$as_dir;;
25109 esac
25110 as_dirs="'$as_qdir' $as_dirs"
25111 as_dir=`$as_dirname -- "$as_dir" ||
25112 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25113 X"$as_dir" : 'X\(//\)[^/]' \| \
25114 X"$as_dir" : 'X\(//\)$' \| \
25115 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25116 $as_echo X"$as_dir" |
25117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25118 s//\1/
25119 q
25120 }
25121 /^X\(\/\/\)[^/].*/{
25122 s//\1/
25123 q
25124 }
25125 /^X\(\/\/\)$/{
25126 s//\1/
25127 q
25128 }
25129 /^X\(\/\).*/{
25130 s//\1/
25131 q
25132 }
25133 s/.*/./; q'`
25134 test -d "$as_dir" && break
25135 done
25136 test -z "$as_dirs" || eval "mkdir $as_dirs"
25137 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25138
25139
25140 } # as_fn_mkdir_p
25141 if mkdir -p . 2>/dev/null; then
25142 as_mkdir_p='mkdir -p "$as_dir"'
25143 else
25144 test -d ./-p && rmdir ./-p
25145 as_mkdir_p=false
25146 fi
25147
25148 if test -x / >/dev/null 2>&1; then
25149 as_test_x='test -x'
25150 else
25151 if ls -dL / >/dev/null 2>&1; then
25152 as_ls_L_option=L
25153 else
25154 as_ls_L_option=
25155 fi
25156 as_test_x='
25157 eval sh -c '\''
25158 if test -d "$1"; then
25159 test -d "$1/.";
25160 else
25161 case $1 in #(
25162 -*)set "./$1";;
25163 esac;
25164 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25165 ???[sx]*):;;*)false;;esac;fi
25166 '\'' sh
25167 '
25168 fi
25169 as_executable_p=$as_test_x
25170
25171 # Sed expression to map a string onto a valid CPP name.
25172 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25173
25174 # Sed expression to map a string onto a valid variable name.
25175 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25176
25177
25178 exec 6>&1
25179 ## ----------------------------------- ##
25180 ## Main body of $CONFIG_STATUS script. ##
25181 ## ----------------------------------- ##
25182 _ASEOF
25183 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25184
25185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25186 # Save the log message, to keep $0 and so on meaningful, and to
25187 # report actual input values of CONFIG_FILES etc. instead of their
25188 # values after options handling.
25189 ac_log="
25190 This file was extended by libjava $as_me version-unused, which was
25191 generated by GNU Autoconf 2.64. Invocation command line was
25192
25193 CONFIG_FILES = $CONFIG_FILES
25194 CONFIG_HEADERS = $CONFIG_HEADERS
25195 CONFIG_LINKS = $CONFIG_LINKS
25196 CONFIG_COMMANDS = $CONFIG_COMMANDS
25197 $ $0 $@
25198
25199 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25200 "
25201
25202 _ACEOF
25203
25204 case $ac_config_files in *"
25205 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25206 esac
25207
25208 case $ac_config_headers in *"
25209 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25210 esac
25211
25212
25213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25214 # Files that config.status was made for.
25215 config_files="$ac_config_files"
25216 config_headers="$ac_config_headers"
25217 config_links="$ac_config_links"
25218 config_commands="$ac_config_commands"
25219
25220 _ACEOF
25221
25222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25223 ac_cs_usage="\
25224 \`$as_me' instantiates files and other configuration actions
25225 from templates according to the current configuration. Unless the files
25226 and actions are specified as TAGs, all are instantiated by default.
25227
25228 Usage: $0 [OPTION]... [TAG]...
25229
25230 -h, --help print this help, then exit
25231 -V, --version print version number and configuration settings, then exit
25232 -q, --quiet, --silent
25233 do not print progress messages
25234 -d, --debug don't remove temporary files
25235 --recheck update $as_me by reconfiguring in the same conditions
25236 --file=FILE[:TEMPLATE]
25237 instantiate the configuration file FILE
25238 --header=FILE[:TEMPLATE]
25239 instantiate the configuration header FILE
25240
25241 Configuration files:
25242 $config_files
25243
25244 Configuration headers:
25245 $config_headers
25246
25247 Configuration links:
25248 $config_links
25249
25250 Configuration commands:
25251 $config_commands
25252
25253 Report bugs to the package provider."
25254
25255 _ACEOF
25256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25257 ac_cs_version="\\
25258 libjava config.status version-unused
25259 configured by $0, generated by GNU Autoconf 2.64,
25260 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25261
25262 Copyright (C) 2009 Free Software Foundation, Inc.
25263 This config.status script is free software; the Free Software Foundation
25264 gives unlimited permission to copy, distribute and modify it."
25265
25266 ac_pwd='$ac_pwd'
25267 srcdir='$srcdir'
25268 INSTALL='$INSTALL'
25269 MKDIR_P='$MKDIR_P'
25270 AWK='$AWK'
25271 test -n "\$AWK" || AWK=awk
25272 _ACEOF
25273
25274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25275 # The default lists apply if the user does not specify any file.
25276 ac_need_defaults=:
25277 while test $# != 0
25278 do
25279 case $1 in
25280 --*=*)
25281 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25282 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25283 ac_shift=:
25284 ;;
25285 *)
25286 ac_option=$1
25287 ac_optarg=$2
25288 ac_shift=shift
25289 ;;
25290 esac
25291
25292 case $ac_option in
25293 # Handling of the options.
25294 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25295 ac_cs_recheck=: ;;
25296 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25297 $as_echo "$ac_cs_version"; exit ;;
25298 --debug | --debu | --deb | --de | --d | -d )
25299 debug=: ;;
25300 --file | --fil | --fi | --f )
25301 $ac_shift
25302 case $ac_optarg in
25303 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25304 esac
25305 as_fn_append CONFIG_FILES " '$ac_optarg'"
25306 ac_need_defaults=false;;
25307 --header | --heade | --head | --hea )
25308 $ac_shift
25309 case $ac_optarg in
25310 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25311 esac
25312 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25313 ac_need_defaults=false;;
25314 --he | --h)
25315 # Conflict between --help and --header
25316 as_fn_error "ambiguous option: \`$1'
25317 Try \`$0 --help' for more information.";;
25318 --help | --hel | -h )
25319 $as_echo "$ac_cs_usage"; exit ;;
25320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25321 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25322 ac_cs_silent=: ;;
25323
25324 # This is an error.
25325 -*) as_fn_error "unrecognized option: \`$1'
25326 Try \`$0 --help' for more information." ;;
25327
25328 *) as_fn_append ac_config_targets " $1"
25329 ac_need_defaults=false ;;
25330
25331 esac
25332 shift
25333 done
25334
25335 ac_configure_extra_args=
25336
25337 if $ac_cs_silent; then
25338 exec 6>/dev/null
25339 ac_configure_extra_args="$ac_configure_extra_args --silent"
25340 fi
25341
25342 _ACEOF
25343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25344 if \$ac_cs_recheck; then
25345 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25346 shift
25347 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25348 CONFIG_SHELL='$SHELL'
25349 export CONFIG_SHELL
25350 exec "\$@"
25351 fi
25352
25353 _ACEOF
25354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25355 exec 5>>config.log
25356 {
25357 echo
25358 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25359 ## Running $as_me. ##
25360 _ASBOX
25361 $as_echo "$ac_log"
25362 } >&5
25363
25364 _ACEOF
25365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25366 #
25367 # INIT-COMMANDS
25368 #
25369
25370 srcdir="$srcdir"
25371 host="$host"
25372 target="$target"
25373 with_multisubdir="$with_multisubdir"
25374 with_multisrctop="$with_multisrctop"
25375 with_target_subdir="$with_target_subdir"
25376 ac_configure_args="${multilib_arg} ${ac_configure_args}"
25377 multi_basedir="$multi_basedir"
25378 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25379 CC="$CC"
25380 CXX="$CXX"
25381 GFORTRAN="$GFORTRAN"
25382 GCJ="$GCJ"
25383 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25384
25385
25386 # The HP-UX ksh and POSIX shell print the target directory to stdout
25387 # if CDPATH is set.
25388 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25389
25390 sed_quote_subst='$sed_quote_subst'
25391 double_quote_subst='$double_quote_subst'
25392 delay_variable_subst='$delay_variable_subst'
25393 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
25394 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
25395 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
25396 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
25397 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
25398 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
25399 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
25400 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
25401 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
25402 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
25403 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
25404 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
25405 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
25406 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
25407 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
25408 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
25409 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
25410 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
25411 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
25412 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
25413 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
25414 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
25415 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
25416 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
25417 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
25418 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
25419 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
25420 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25421 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
25422 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
25423 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
25424 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
25425 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
25426 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
25427 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
25428 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25429 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25430 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25431 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
25432 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
25433 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
25434 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
25435 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
25436 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
25437 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
25438 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
25439 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
25440 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
25441 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
25442 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
25443 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
25444 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
25445 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
25446 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
25447 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
25448 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
25449 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
25450 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
25451 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
25452 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
25453 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
25454 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
25455 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25456 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25457 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
25458 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
25459 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25460 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25461 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
25462 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25463 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25464 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25465 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25466 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25467 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25468 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
25469 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
25470 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
25471 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25472 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
25473 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
25474 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
25475 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
25476 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
25477 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
25478 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
25479 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
25480 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
25481 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
25482 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
25483 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25484 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
25485 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
25486 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25487 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
25488 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
25489 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
25490 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
25491 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
25492 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
25493 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
25494 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
25495 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
25496 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
25497 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
25498 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25499 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25500 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25501 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
25502 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
25503 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
25504 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
25505 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
25506 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
25507 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
25508 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
25509 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
25510 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
25511 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
25512 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
25513 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
25514 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
25515 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
25516 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
25517 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25518 LD_GCJ='`$ECHO "X$LD_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25519 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25520 old_archive_cmds_GCJ='`$ECHO "X$old_archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25521 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25522 compiler_GCJ='`$ECHO "X$compiler_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25523 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25524 GCC_GCJ='`$ECHO "X$GCC_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25525 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25526 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "X$lt_prog_compiler_no_builtin_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25527 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25528 lt_prog_compiler_wl_GCJ='`$ECHO "X$lt_prog_compiler_wl_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25529 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25530 lt_prog_compiler_pic_GCJ='`$ECHO "X$lt_prog_compiler_pic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25531 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25532 lt_prog_compiler_static_GCJ='`$ECHO "X$lt_prog_compiler_static_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25533 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25534 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "X$lt_cv_prog_compiler_c_o_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25535 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25536 archive_cmds_need_lc_GCJ='`$ECHO "X$archive_cmds_need_lc_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25537 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25538 enable_shared_with_static_runtimes_GCJ='`$ECHO "X$enable_shared_with_static_runtimes_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25539 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25540 export_dynamic_flag_spec_GCJ='`$ECHO "X$export_dynamic_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25541 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25542 whole_archive_flag_spec_GCJ='`$ECHO "X$whole_archive_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25543 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25544 compiler_needs_object_GCJ='`$ECHO "X$compiler_needs_object_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25545 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25546 old_archive_from_new_cmds_GCJ='`$ECHO "X$old_archive_from_new_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25547 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25548 old_archive_from_expsyms_cmds_GCJ='`$ECHO "X$old_archive_from_expsyms_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25549 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25550 archive_cmds_GCJ='`$ECHO "X$archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25551 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25552 archive_expsym_cmds_GCJ='`$ECHO "X$archive_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25553 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25554 module_cmds_GCJ='`$ECHO "X$module_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25555 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25556 module_expsym_cmds_GCJ='`$ECHO "X$module_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25557 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25558 with_gnu_ld_GCJ='`$ECHO "X$with_gnu_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25559 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25560 allow_undefined_flag_GCJ='`$ECHO "X$allow_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25561 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25562 no_undefined_flag_GCJ='`$ECHO "X$no_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25563 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25564 hardcode_libdir_flag_spec_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25565 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25566 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25567 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25568 hardcode_libdir_separator_GCJ='`$ECHO "X$hardcode_libdir_separator_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25569 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25570 hardcode_direct_GCJ='`$ECHO "X$hardcode_direct_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25571 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25572 hardcode_direct_absolute_GCJ='`$ECHO "X$hardcode_direct_absolute_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25573 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25574 hardcode_minus_L_GCJ='`$ECHO "X$hardcode_minus_L_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25575 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25576 hardcode_shlibpath_var_GCJ='`$ECHO "X$hardcode_shlibpath_var_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25577 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25578 hardcode_automatic_GCJ='`$ECHO "X$hardcode_automatic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25579 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25580 inherit_rpath_GCJ='`$ECHO "X$inherit_rpath_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25581 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25582 link_all_deplibs_GCJ='`$ECHO "X$link_all_deplibs_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25583 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25584 fix_srcfile_path_GCJ='`$ECHO "X$fix_srcfile_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25585 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25586 always_export_symbols_GCJ='`$ECHO "X$always_export_symbols_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25587 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25588 export_symbols_cmds_GCJ='`$ECHO "X$export_symbols_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25589 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25590 exclude_expsyms_GCJ='`$ECHO "X$exclude_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25591 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25592 include_expsyms_GCJ='`$ECHO "X$include_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25593 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25594 prelink_cmds_GCJ='`$ECHO "X$prelink_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25595 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25596 file_list_spec_GCJ='`$ECHO "X$file_list_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25597 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25598 hardcode_action_GCJ='`$ECHO "X$hardcode_action_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25599 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25600 compiler_lib_search_dirs_GCJ='`$ECHO "X$compiler_lib_search_dirs_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25601 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25602 predep_objects_GCJ='`$ECHO "X$predep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25603 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25604 postdep_objects_GCJ='`$ECHO "X$postdep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25605 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25606 predeps_GCJ='`$ECHO "X$predeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25607 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25608 postdeps_GCJ='`$ECHO "X$postdeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25609 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25610 compiler_lib_search_path_GCJ='`$ECHO "X$compiler_lib_search_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25611
25612 LTCC='$LTCC'
25613 LTCFLAGS='$LTCFLAGS'
25614 compiler='$compiler_DEFAULT'
25615
25616 # Quote evaled strings.
25617 for var in SED \
25618 GREP \
25619 EGREP \
25620 FGREP \
25621 LD \
25622 NM \
25623 LN_S \
25624 lt_SP2NL \
25625 lt_NL2SP \
25626 reload_flag \
25627 OBJDUMP \
25628 deplibs_check_method \
25629 file_magic_cmd \
25630 AR \
25631 AR_FLAGS \
25632 STRIP \
25633 RANLIB \
25634 CC \
25635 CFLAGS \
25636 compiler \
25637 lt_cv_sys_global_symbol_pipe \
25638 lt_cv_sys_global_symbol_to_cdecl \
25639 lt_cv_sys_global_symbol_to_c_name_address \
25640 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25641 SHELL \
25642 ECHO \
25643 lt_prog_compiler_no_builtin_flag \
25644 lt_prog_compiler_wl \
25645 lt_prog_compiler_pic \
25646 lt_prog_compiler_static \
25647 lt_cv_prog_compiler_c_o \
25648 need_locks \
25649 DSYMUTIL \
25650 NMEDIT \
25651 LIPO \
25652 OTOOL \
25653 OTOOL64 \
25654 shrext_cmds \
25655 export_dynamic_flag_spec \
25656 whole_archive_flag_spec \
25657 compiler_needs_object \
25658 with_gnu_ld \
25659 allow_undefined_flag \
25660 no_undefined_flag \
25661 hardcode_libdir_flag_spec \
25662 hardcode_libdir_flag_spec_ld \
25663 hardcode_libdir_separator \
25664 fix_srcfile_path \
25665 exclude_expsyms \
25666 include_expsyms \
25667 file_list_spec \
25668 variables_saved_for_relink \
25669 libname_spec \
25670 library_names_spec \
25671 soname_spec \
25672 finish_eval \
25673 old_striplib \
25674 striplib \
25675 compiler_lib_search_dirs \
25676 predep_objects \
25677 postdep_objects \
25678 predeps \
25679 postdeps \
25680 compiler_lib_search_path \
25681 LD_CXX \
25682 LD_GCJ \
25683 compiler_CXX \
25684 compiler_GCJ \
25685 lt_prog_compiler_no_builtin_flag_CXX \
25686 lt_prog_compiler_no_builtin_flag_GCJ \
25687 lt_prog_compiler_wl_CXX \
25688 lt_prog_compiler_wl_GCJ \
25689 lt_prog_compiler_pic_CXX \
25690 lt_prog_compiler_pic_GCJ \
25691 lt_prog_compiler_static_CXX \
25692 lt_prog_compiler_static_GCJ \
25693 lt_cv_prog_compiler_c_o_CXX \
25694 lt_cv_prog_compiler_c_o_GCJ \
25695 export_dynamic_flag_spec_CXX \
25696 export_dynamic_flag_spec_GCJ \
25697 whole_archive_flag_spec_CXX \
25698 whole_archive_flag_spec_GCJ \
25699 compiler_needs_object_CXX \
25700 compiler_needs_object_GCJ \
25701 with_gnu_ld_CXX \
25702 with_gnu_ld_GCJ \
25703 allow_undefined_flag_CXX \
25704 allow_undefined_flag_GCJ \
25705 no_undefined_flag_CXX \
25706 no_undefined_flag_GCJ \
25707 hardcode_libdir_flag_spec_CXX \
25708 hardcode_libdir_flag_spec_GCJ \
25709 hardcode_libdir_flag_spec_ld_CXX \
25710 hardcode_libdir_flag_spec_ld_GCJ \
25711 hardcode_libdir_separator_CXX \
25712 hardcode_libdir_separator_GCJ \
25713 fix_srcfile_path_CXX \
25714 fix_srcfile_path_GCJ \
25715 exclude_expsyms_CXX \
25716 exclude_expsyms_GCJ \
25717 include_expsyms_CXX \
25718 include_expsyms_GCJ \
25719 file_list_spec_CXX \
25720 file_list_spec_GCJ \
25721 compiler_lib_search_dirs_CXX \
25722 compiler_lib_search_dirs_GCJ \
25723 predep_objects_CXX \
25724 predep_objects_GCJ \
25725 postdep_objects_CXX \
25726 postdep_objects_GCJ \
25727 predeps_CXX \
25728 predeps_GCJ \
25729 postdeps_CXX \
25730 postdeps_GCJ \
25731 compiler_lib_search_path_CXX \
25732 compiler_lib_search_path_GCJ; do
25733 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
25734 *[\\\\\\\`\\"\\\$]*)
25735 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
25736 ;;
25737 *)
25738 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25739 ;;
25740 esac
25741 done
25742
25743 # Double-quote double-evaled strings.
25744 for var in reload_cmds \
25745 old_postinstall_cmds \
25746 old_postuninstall_cmds \
25747 old_archive_cmds \
25748 extract_expsyms_cmds \
25749 old_archive_from_new_cmds \
25750 old_archive_from_expsyms_cmds \
25751 archive_cmds \
25752 archive_expsym_cmds \
25753 module_cmds \
25754 module_expsym_cmds \
25755 export_symbols_cmds \
25756 prelink_cmds \
25757 postinstall_cmds \
25758 postuninstall_cmds \
25759 finish_cmds \
25760 sys_lib_search_path_spec \
25761 sys_lib_dlsearch_path_spec \
25762 old_archive_cmds_CXX \
25763 old_archive_cmds_GCJ \
25764 old_archive_from_new_cmds_CXX \
25765 old_archive_from_new_cmds_GCJ \
25766 old_archive_from_expsyms_cmds_CXX \
25767 old_archive_from_expsyms_cmds_GCJ \
25768 archive_cmds_CXX \
25769 archive_cmds_GCJ \
25770 archive_expsym_cmds_CXX \
25771 archive_expsym_cmds_GCJ \
25772 module_cmds_CXX \
25773 module_cmds_GCJ \
25774 module_expsym_cmds_CXX \
25775 module_expsym_cmds_GCJ \
25776 export_symbols_cmds_CXX \
25777 export_symbols_cmds_GCJ \
25778 prelink_cmds_CXX \
25779 prelink_cmds_GCJ; do
25780 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
25781 *[\\\\\\\`\\"\\\$]*)
25782 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
25783 ;;
25784 *)
25785 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25786 ;;
25787 esac
25788 done
25789
25790 # Fix-up fallback echo if it was mangled by the above quoting rules.
25791 case \$lt_ECHO in
25792 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
25793 ;;
25794 esac
25795
25796 ac_aux_dir='$ac_aux_dir'
25797 xsi_shell='$xsi_shell'
25798 lt_shell_append='$lt_shell_append'
25799
25800 # See if we are running on zsh, and set the options which allow our
25801 # commands through without removal of \ escapes INIT.
25802 if test -n "\${ZSH_VERSION+set}" ; then
25803 setopt NO_GLOB_SUBST
25804 fi
25805
25806
25807 PACKAGE='$PACKAGE'
25808 VERSION='$VERSION'
25809 TIMESTAMP='$TIMESTAMP'
25810 RM='$RM'
25811 ofile='$ofile'
25812
25813
25814
25815
25816
25817
25818
25819
25820 _ACEOF
25821
25822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25823
25824 # Handling of arguments.
25825 for ac_config_target in $ac_config_targets
25826 do
25827 case $ac_config_target in
25828 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
25829 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25830 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
25831 "gcj/libgcj-config.h") CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
25832 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25833 "include/platform.h") CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
25834 "java/io/natFile.cc") CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
25835 "java/lang/natConcreteProcess.cc") CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
25836 "java/net/natVMInetAddress.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
25837 "java/net/natVMNetworkInterface.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
25838 "gnu/java/net/natPlainSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
25839 "gnu/java/net/natPlainDatagramSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
25840 "gnu/java/nio/natVMPipe.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
25841 "gnu/java/nio/natVMSelector.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
25842 "gnu/java/nio/channels/natFileChannelImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
25843 "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" ;;
25844 "include/java-gc.h") CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
25845 "include/java-threads.h") CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
25846 "sysdep/locks.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
25847 "sysdep/backtrace.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
25848 "sysdep/descriptor.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
25849 "include/java-signal.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
25850 "include/java-signal-aux.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
25851 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25852 "libgcj.pc") CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
25853 "libgcj.spec") CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
25854 "libgcj-test.spec") CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
25855 "gcj/Makefile") CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
25856 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25857 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
25858 "contrib/aotcompile.py") CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
25859 "contrib/aot-compile") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
25860 "contrib/aot-compile-rpm") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
25861 "contrib/generate-cacerts.pl") CONFIG_FILES="$CONFIG_FILES contrib/generate-cacerts.pl" ;;
25862 "contrib/rebuild-gcj-db") CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
25863 "scripts/jar") CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
25864
25865 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25866 esac
25867 done
25868
25869
25870 # If the user did not use the arguments to specify the items to instantiate,
25871 # then the envvar interface is used. Set only those that are not.
25872 # We use the long form for the default assignment because of an extremely
25873 # bizarre bug on SunOS 4.1.3.
25874 if $ac_need_defaults; then
25875 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25876 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25877 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25878 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25879 fi
25880
25881 # Have a temporary directory for convenience. Make it in the build tree
25882 # simply because there is no reason against having it here, and in addition,
25883 # creating and moving files from /tmp can sometimes cause problems.
25884 # Hook for its removal unless debugging.
25885 # Note that there is a small window in which the directory will not be cleaned:
25886 # after its creation but before its name has been assigned to `$tmp'.
25887 $debug ||
25888 {
25889 tmp=
25890 trap 'exit_status=$?
25891 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25892 ' 0
25893 trap 'as_fn_exit 1' 1 2 13 15
25894 }
25895 # Create a (secure) tmp directory for tmp files.
25896
25897 {
25898 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25899 test -n "$tmp" && test -d "$tmp"
25900 } ||
25901 {
25902 tmp=./conf$$-$RANDOM
25903 (umask 077 && mkdir "$tmp")
25904 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25905
25906 # Set up the scripts for CONFIG_FILES section.
25907 # No need to generate them if there are no CONFIG_FILES.
25908 # This happens for instance with `./config.status config.h'.
25909 if test -n "$CONFIG_FILES"; then
25910
25911
25912 ac_cr=`echo X | tr X '\015'`
25913 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25914 # But we know of no other shell where ac_cr would be empty at this
25915 # point, so we can use a bashism as a fallback.
25916 if test "x$ac_cr" = x; then
25917 eval ac_cr=\$\'\\r\'
25918 fi
25919 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25920 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25921 ac_cs_awk_cr='\r'
25922 else
25923 ac_cs_awk_cr=$ac_cr
25924 fi
25925
25926 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25927 _ACEOF
25928
25929
25930 {
25931 echo "cat >conf$$subs.awk <<_ACEOF" &&
25932 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25933 echo "_ACEOF"
25934 } >conf$$subs.sh ||
25935 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25936 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25937 ac_delim='%!_!# '
25938 for ac_last_try in false false false false false :; do
25939 . ./conf$$subs.sh ||
25940 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25941
25942 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25943 if test $ac_delim_n = $ac_delim_num; then
25944 break
25945 elif $ac_last_try; then
25946 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25947 else
25948 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25949 fi
25950 done
25951 rm -f conf$$subs.sh
25952
25953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25954 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25955 _ACEOF
25956 sed -n '
25957 h
25958 s/^/S["/; s/!.*/"]=/
25959 p
25960 g
25961 s/^[^!]*!//
25962 :repl
25963 t repl
25964 s/'"$ac_delim"'$//
25965 t delim
25966 :nl
25967 h
25968 s/\(.\{148\}\).*/\1/
25969 t more1
25970 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25971 p
25972 n
25973 b repl
25974 :more1
25975 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25976 p
25977 g
25978 s/.\{148\}//
25979 t nl
25980 :delim
25981 h
25982 s/\(.\{148\}\).*/\1/
25983 t more2
25984 s/["\\]/\\&/g; s/^/"/; s/$/"/
25985 p
25986 b
25987 :more2
25988 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25989 p
25990 g
25991 s/.\{148\}//
25992 t delim
25993 ' <conf$$subs.awk | sed '
25994 /^[^""]/{
25995 N
25996 s/\n//
25997 }
25998 ' >>$CONFIG_STATUS || ac_write_fail=1
25999 rm -f conf$$subs.awk
26000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26001 _ACAWK
26002 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26003 for (key in S) S_is_set[key] = 1
26004 FS = "\a"
26005
26006 }
26007 {
26008 line = $ 0
26009 nfields = split(line, field, "@")
26010 substed = 0
26011 len = length(field[1])
26012 for (i = 2; i < nfields; i++) {
26013 key = field[i]
26014 keylen = length(key)
26015 if (S_is_set[key]) {
26016 value = S[key]
26017 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26018 len += length(value) + length(field[++i])
26019 substed = 1
26020 } else
26021 len += 1 + keylen
26022 }
26023
26024 print line
26025 }
26026
26027 _ACAWK
26028 _ACEOF
26029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26030 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26031 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26032 else
26033 cat
26034 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26035 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26036 _ACEOF
26037
26038 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26039 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26040 # trailing colons and then remove the whole line if VPATH becomes empty
26041 # (actually we leave an empty line to preserve line numbers).
26042 if test "x$srcdir" = x.; then
26043 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26044 s/:*\$(srcdir):*/:/
26045 s/:*\${srcdir}:*/:/
26046 s/:*@srcdir@:*/:/
26047 s/^\([^=]*=[ ]*\):*/\1/
26048 s/:*$//
26049 s/^[^=]*=[ ]*$//
26050 }'
26051 fi
26052
26053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26054 fi # test -n "$CONFIG_FILES"
26055
26056 # Set up the scripts for CONFIG_HEADERS section.
26057 # No need to generate them if there are no CONFIG_HEADERS.
26058 # This happens for instance with `./config.status Makefile'.
26059 if test -n "$CONFIG_HEADERS"; then
26060 cat >"$tmp/defines.awk" <<\_ACAWK ||
26061 BEGIN {
26062 _ACEOF
26063
26064 # Transform confdefs.h into an awk script `defines.awk', embedded as
26065 # here-document in config.status, that substitutes the proper values into
26066 # config.h.in to produce config.h.
26067
26068 # Create a delimiter string that does not exist in confdefs.h, to ease
26069 # handling of long lines.
26070 ac_delim='%!_!# '
26071 for ac_last_try in false false :; do
26072 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26073 if test -z "$ac_t"; then
26074 break
26075 elif $ac_last_try; then
26076 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26077 else
26078 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26079 fi
26080 done
26081
26082 # For the awk script, D is an array of macro values keyed by name,
26083 # likewise P contains macro parameters if any. Preserve backslash
26084 # newline sequences.
26085
26086 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26087 sed -n '
26088 s/.\{148\}/&'"$ac_delim"'/g
26089 t rset
26090 :rset
26091 s/^[ ]*#[ ]*define[ ][ ]*/ /
26092 t def
26093 d
26094 :def
26095 s/\\$//
26096 t bsnl
26097 s/["\\]/\\&/g
26098 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26099 D["\1"]=" \3"/p
26100 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26101 d
26102 :bsnl
26103 s/["\\]/\\&/g
26104 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26105 D["\1"]=" \3\\\\\\n"\\/p
26106 t cont
26107 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26108 t cont
26109 d
26110 :cont
26111 n
26112 s/.\{148\}/&'"$ac_delim"'/g
26113 t clear
26114 :clear
26115 s/\\$//
26116 t bsnlc
26117 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26118 d
26119 :bsnlc
26120 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26121 b cont
26122 ' <confdefs.h | sed '
26123 s/'"$ac_delim"'/"\\\
26124 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26125
26126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26127 for (key in D) D_is_set[key] = 1
26128 FS = "\a"
26129 }
26130 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26131 line = \$ 0
26132 split(line, arg, " ")
26133 if (arg[1] == "#") {
26134 defundef = arg[2]
26135 mac1 = arg[3]
26136 } else {
26137 defundef = substr(arg[1], 2)
26138 mac1 = arg[2]
26139 }
26140 split(mac1, mac2, "(") #)
26141 macro = mac2[1]
26142 prefix = substr(line, 1, index(line, defundef) - 1)
26143 if (D_is_set[macro]) {
26144 # Preserve the white space surrounding the "#".
26145 print prefix "define", macro P[macro] D[macro]
26146 next
26147 } else {
26148 # Replace #undef with comments. This is necessary, for example,
26149 # in the case of _POSIX_SOURCE, which is predefined and required
26150 # on some systems where configure will not decide to define it.
26151 if (defundef == "undef") {
26152 print "/*", prefix defundef, macro, "*/"
26153 next
26154 }
26155 }
26156 }
26157 { print }
26158 _ACAWK
26159 _ACEOF
26160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26161 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26162 fi # test -n "$CONFIG_HEADERS"
26163
26164
26165 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
26166 shift
26167 for ac_tag
26168 do
26169 case $ac_tag in
26170 :[FHLC]) ac_mode=$ac_tag; continue;;
26171 esac
26172 case $ac_mode$ac_tag in
26173 :[FHL]*:*);;
26174 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26175 :[FH]-) ac_tag=-:-;;
26176 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26177 esac
26178 ac_save_IFS=$IFS
26179 IFS=:
26180 set x $ac_tag
26181 IFS=$ac_save_IFS
26182 shift
26183 ac_file=$1
26184 shift
26185
26186 case $ac_mode in
26187 :L) ac_source=$1;;
26188 :[FH])
26189 ac_file_inputs=
26190 for ac_f
26191 do
26192 case $ac_f in
26193 -) ac_f="$tmp/stdin";;
26194 *) # Look for the file first in the build tree, then in the source tree
26195 # (if the path is not absolute). The absolute path cannot be DOS-style,
26196 # because $ac_f cannot contain `:'.
26197 test -f "$ac_f" ||
26198 case $ac_f in
26199 [\\/$]*) false;;
26200 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26201 esac ||
26202 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26203 esac
26204 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26205 as_fn_append ac_file_inputs " '$ac_f'"
26206 done
26207
26208 # Let's still pretend it is `configure' which instantiates (i.e., don't
26209 # use $as_me), people would be surprised to read:
26210 # /* config.h. Generated by config.status. */
26211 configure_input='Generated from '`
26212 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26213 `' by configure.'
26214 if test x"$ac_file" != x-; then
26215 configure_input="$ac_file. $configure_input"
26216 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26217 $as_echo "$as_me: creating $ac_file" >&6;}
26218 fi
26219 # Neutralize special characters interpreted by sed in replacement strings.
26220 case $configure_input in #(
26221 *\&* | *\|* | *\\* )
26222 ac_sed_conf_input=`$as_echo "$configure_input" |
26223 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26224 *) ac_sed_conf_input=$configure_input;;
26225 esac
26226
26227 case $ac_tag in
26228 *:-:* | *:-) cat >"$tmp/stdin" \
26229 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26230 esac
26231 ;;
26232 esac
26233
26234 ac_dir=`$as_dirname -- "$ac_file" ||
26235 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26236 X"$ac_file" : 'X\(//\)[^/]' \| \
26237 X"$ac_file" : 'X\(//\)$' \| \
26238 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26239 $as_echo X"$ac_file" |
26240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26241 s//\1/
26242 q
26243 }
26244 /^X\(\/\/\)[^/].*/{
26245 s//\1/
26246 q
26247 }
26248 /^X\(\/\/\)$/{
26249 s//\1/
26250 q
26251 }
26252 /^X\(\/\).*/{
26253 s//\1/
26254 q
26255 }
26256 s/.*/./; q'`
26257 as_dir="$ac_dir"; as_fn_mkdir_p
26258 ac_builddir=.
26259
26260 case "$ac_dir" in
26261 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26262 *)
26263 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26264 # A ".." for each directory in $ac_dir_suffix.
26265 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26266 case $ac_top_builddir_sub in
26267 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26268 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26269 esac ;;
26270 esac
26271 ac_abs_top_builddir=$ac_pwd
26272 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26273 # for backward compatibility:
26274 ac_top_builddir=$ac_top_build_prefix
26275
26276 case $srcdir in
26277 .) # We are building in place.
26278 ac_srcdir=.
26279 ac_top_srcdir=$ac_top_builddir_sub
26280 ac_abs_top_srcdir=$ac_pwd ;;
26281 [\\/]* | ?:[\\/]* ) # Absolute name.
26282 ac_srcdir=$srcdir$ac_dir_suffix;
26283 ac_top_srcdir=$srcdir
26284 ac_abs_top_srcdir=$srcdir ;;
26285 *) # Relative name.
26286 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26287 ac_top_srcdir=$ac_top_build_prefix$srcdir
26288 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26289 esac
26290 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26291
26292
26293 case $ac_mode in
26294 :F)
26295 #
26296 # CONFIG_FILE
26297 #
26298
26299 case $INSTALL in
26300 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26301 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26302 esac
26303 ac_MKDIR_P=$MKDIR_P
26304 case $MKDIR_P in
26305 [\\/$]* | ?:[\\/]* ) ;;
26306 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26307 esac
26308 _ACEOF
26309
26310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26311 # If the template does not know about datarootdir, expand it.
26312 # FIXME: This hack should be removed a few years after 2.60.
26313 ac_datarootdir_hack=; ac_datarootdir_seen=
26314 ac_sed_dataroot='
26315 /datarootdir/ {
26316 p
26317 q
26318 }
26319 /@datadir@/p
26320 /@docdir@/p
26321 /@infodir@/p
26322 /@localedir@/p
26323 /@mandir@/p'
26324 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26325 *datarootdir*) ac_datarootdir_seen=yes;;
26326 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26328 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26329 _ACEOF
26330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26331 ac_datarootdir_hack='
26332 s&@datadir@&$datadir&g
26333 s&@docdir@&$docdir&g
26334 s&@infodir@&$infodir&g
26335 s&@localedir@&$localedir&g
26336 s&@mandir@&$mandir&g
26337 s&\\\${datarootdir}&$datarootdir&g' ;;
26338 esac
26339 _ACEOF
26340
26341 # Neutralize VPATH when `$srcdir' = `.'.
26342 # Shell code in configure.ac might set extrasub.
26343 # FIXME: do we really want to maintain this feature?
26344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26345 ac_sed_extra="$ac_vpsub
26346 $extrasub
26347 _ACEOF
26348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26349 :t
26350 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26351 s|@configure_input@|$ac_sed_conf_input|;t t
26352 s&@top_builddir@&$ac_top_builddir_sub&;t t
26353 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26354 s&@srcdir@&$ac_srcdir&;t t
26355 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26356 s&@top_srcdir@&$ac_top_srcdir&;t t
26357 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26358 s&@builddir@&$ac_builddir&;t t
26359 s&@abs_builddir@&$ac_abs_builddir&;t t
26360 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26361 s&@INSTALL@&$ac_INSTALL&;t t
26362 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26363 $ac_datarootdir_hack
26364 "
26365 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26366 || as_fn_error "could not create $ac_file" "$LINENO" 5
26367
26368 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26369 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26370 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26372 which seems to be undefined. Please make sure it is defined." >&5
26373 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26374 which seems to be undefined. Please make sure it is defined." >&2;}
26375
26376 rm -f "$tmp/stdin"
26377 case $ac_file in
26378 -) cat "$tmp/out" && rm -f "$tmp/out";;
26379 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26380 esac \
26381 || as_fn_error "could not create $ac_file" "$LINENO" 5
26382 ;;
26383 :H)
26384 #
26385 # CONFIG_HEADER
26386 #
26387 if test x"$ac_file" != x-; then
26388 {
26389 $as_echo "/* $configure_input */" \
26390 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26391 } >"$tmp/config.h" \
26392 || as_fn_error "could not create $ac_file" "$LINENO" 5
26393 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26394 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26395 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26396 else
26397 rm -f "$ac_file"
26398 mv "$tmp/config.h" "$ac_file" \
26399 || as_fn_error "could not create $ac_file" "$LINENO" 5
26400 fi
26401 else
26402 $as_echo "/* $configure_input */" \
26403 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26404 || as_fn_error "could not create -" "$LINENO" 5
26405 fi
26406 # Compute "$ac_file"'s index in $config_headers.
26407 _am_arg="$ac_file"
26408 _am_stamp_count=1
26409 for _am_header in $config_headers :; do
26410 case $_am_header in
26411 $_am_arg | $_am_arg:* )
26412 break ;;
26413 * )
26414 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26415 esac
26416 done
26417 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26418 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26419 X"$_am_arg" : 'X\(//\)[^/]' \| \
26420 X"$_am_arg" : 'X\(//\)$' \| \
26421 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26422 $as_echo X"$_am_arg" |
26423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26424 s//\1/
26425 q
26426 }
26427 /^X\(\/\/\)[^/].*/{
26428 s//\1/
26429 q
26430 }
26431 /^X\(\/\/\)$/{
26432 s//\1/
26433 q
26434 }
26435 /^X\(\/\).*/{
26436 s//\1/
26437 q
26438 }
26439 s/.*/./; q'`/stamp-h$_am_stamp_count
26440 ;;
26441 :L)
26442 #
26443 # CONFIG_LINK
26444 #
26445
26446 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
26447 :
26448 else
26449 # Prefer the file from the source tree if names are identical.
26450 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
26451 ac_source=$srcdir/$ac_source
26452 fi
26453
26454 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
26455 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
26456
26457 if test ! -r "$ac_source"; then
26458 as_fn_error "$ac_source: file not found" "$LINENO" 5
26459 fi
26460 rm -f "$ac_file"
26461
26462 # Try a relative symlink, then a hard link, then a copy.
26463 case $srcdir in
26464 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
26465 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
26466 esac
26467 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26468 ln "$ac_source" "$ac_file" 2>/dev/null ||
26469 cp -p "$ac_source" "$ac_file" ||
26470 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
26471 fi
26472 ;;
26473 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26474 $as_echo "$as_me: executing $ac_file commands" >&6;}
26475 ;;
26476 esac
26477
26478
26479 case $ac_file$ac_mode in
26480 "default-1":C)
26481 # Only add multilib support code if we just rebuilt the top-level
26482 # Makefile.
26483 case " $CONFIG_FILES " in
26484 *" Makefile "*)
26485 ac_file=Makefile . ${multi_basedir}/config-ml.in
26486 ;;
26487 esac ;;
26488 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26489 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26490 # are listed without --file. Let's play safe and only enable the eval
26491 # if we detect the quoting.
26492 case $CONFIG_FILES in
26493 *\'*) eval set x "$CONFIG_FILES" ;;
26494 *) set x $CONFIG_FILES ;;
26495 esac
26496 shift
26497 for mf
26498 do
26499 # Strip MF so we end up with the name of the file.
26500 mf=`echo "$mf" | sed -e 's/:.*$//'`
26501 # Check whether this is an Automake generated Makefile or not.
26502 # We used to match only the files named `Makefile.in', but
26503 # some people rename them; so instead we look at the file content.
26504 # Grep'ing the first line is not enough: some people post-process
26505 # each Makefile.in and add a new line on top of each file to say so.
26506 # Grep'ing the whole file is not good either: AIX grep has a line
26507 # limit of 2048, but all sed's we know have understand at least 4000.
26508 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26509 dirpart=`$as_dirname -- "$mf" ||
26510 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26511 X"$mf" : 'X\(//\)[^/]' \| \
26512 X"$mf" : 'X\(//\)$' \| \
26513 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26514 $as_echo X"$mf" |
26515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26516 s//\1/
26517 q
26518 }
26519 /^X\(\/\/\)[^/].*/{
26520 s//\1/
26521 q
26522 }
26523 /^X\(\/\/\)$/{
26524 s//\1/
26525 q
26526 }
26527 /^X\(\/\).*/{
26528 s//\1/
26529 q
26530 }
26531 s/.*/./; q'`
26532 else
26533 continue
26534 fi
26535 # Extract the definition of DEPDIR, am__include, and am__quote
26536 # from the Makefile without running `make'.
26537 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26538 test -z "$DEPDIR" && continue
26539 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26540 test -z "am__include" && continue
26541 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26542 # When using ansi2knr, U may be empty or an underscore; expand it
26543 U=`sed -n 's/^U = //p' < "$mf"`
26544 # Find all dependency output files, they are included files with
26545 # $(DEPDIR) in their names. We invoke sed twice because it is the
26546 # simplest approach to changing $(DEPDIR) to its actual value in the
26547 # expansion.
26548 for file in `sed -n "
26549 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26550 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26551 # Make sure the directory exists.
26552 test -f "$dirpart/$file" && continue
26553 fdir=`$as_dirname -- "$file" ||
26554 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26555 X"$file" : 'X\(//\)[^/]' \| \
26556 X"$file" : 'X\(//\)$' \| \
26557 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26558 $as_echo X"$file" |
26559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26560 s//\1/
26561 q
26562 }
26563 /^X\(\/\/\)[^/].*/{
26564 s//\1/
26565 q
26566 }
26567 /^X\(\/\/\)$/{
26568 s//\1/
26569 q
26570 }
26571 /^X\(\/\).*/{
26572 s//\1/
26573 q
26574 }
26575 s/.*/./; q'`
26576 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26577 # echo "creating $dirpart/$file"
26578 echo '# dummy' > "$dirpart/$file"
26579 done
26580 done
26581 }
26582 ;;
26583 "libtool":C)
26584
26585 # See if we are running on zsh, and set the options which allow our
26586 # commands through without removal of \ escapes.
26587 if test -n "${ZSH_VERSION+set}" ; then
26588 setopt NO_GLOB_SUBST
26589 fi
26590
26591 cfgfile="${ofile}T"
26592 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26593 $RM "$cfgfile"
26594
26595 cat <<_LT_EOF >> "$cfgfile"
26596 #! $SHELL
26597
26598 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26599 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26600 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26601 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26602 #
26603 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26604 # 2006, 2007, 2008 Free Software Foundation, Inc.
26605 # Written by Gordon Matzigkeit, 1996
26606 #
26607 # This file is part of GNU Libtool.
26608 #
26609 # GNU Libtool is free software; you can redistribute it and/or
26610 # modify it under the terms of the GNU General Public License as
26611 # published by the Free Software Foundation; either version 2 of
26612 # the License, or (at your option) any later version.
26613 #
26614 # As a special exception to the GNU General Public License,
26615 # if you distribute this file as part of a program or library that
26616 # is built using GNU Libtool, you may include this file under the
26617 # same distribution terms that you use for the rest of that program.
26618 #
26619 # GNU Libtool is distributed in the hope that it will be useful,
26620 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26621 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26622 # GNU General Public License for more details.
26623 #
26624 # You should have received a copy of the GNU General Public License
26625 # along with GNU Libtool; see the file COPYING. If not, a copy
26626 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26627 # obtained by writing to the Free Software Foundation, Inc.,
26628 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26629
26630
26631 # The names of the tagged configurations supported by this script.
26632 available_tags="CXX GCJ "
26633
26634 # ### BEGIN LIBTOOL CONFIG
26635
26636 # Which release of libtool.m4 was used?
26637 macro_version=$macro_version
26638 macro_revision=$macro_revision
26639
26640 # Whether or not to build shared libraries.
26641 build_libtool_libs=$enable_shared
26642
26643 # Whether or not to build static libraries.
26644 build_old_libs=$enable_static
26645
26646 # What type of objects to build.
26647 pic_mode=$pic_mode
26648
26649 # Whether or not to optimize for fast installation.
26650 fast_install=$enable_fast_install
26651
26652 # The host system.
26653 host_alias=$host_alias
26654 host=$host
26655 host_os=$host_os
26656
26657 # The build system.
26658 build_alias=$build_alias
26659 build=$build
26660 build_os=$build_os
26661
26662 # A sed program that does not truncate output.
26663 SED=$lt_SED
26664
26665 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26666 Xsed="\$SED -e 1s/^X//"
26667
26668 # A grep program that handles long lines.
26669 GREP=$lt_GREP
26670
26671 # An ERE matcher.
26672 EGREP=$lt_EGREP
26673
26674 # A literal string matcher.
26675 FGREP=$lt_FGREP
26676
26677 # A BSD- or MS-compatible name lister.
26678 NM=$lt_NM
26679
26680 # Whether we need soft or hard links.
26681 LN_S=$lt_LN_S
26682
26683 # What is the maximum length of a command?
26684 max_cmd_len=$max_cmd_len
26685
26686 # Object file suffix (normally "o").
26687 objext=$ac_objext
26688
26689 # Executable file suffix (normally "").
26690 exeext=$exeext
26691
26692 # whether the shell understands "unset".
26693 lt_unset=$lt_unset
26694
26695 # turn spaces into newlines.
26696 SP2NL=$lt_lt_SP2NL
26697
26698 # turn newlines into spaces.
26699 NL2SP=$lt_lt_NL2SP
26700
26701 # How to create reloadable object files.
26702 reload_flag=$lt_reload_flag
26703 reload_cmds=$lt_reload_cmds
26704
26705 # An object symbol dumper.
26706 OBJDUMP=$lt_OBJDUMP
26707
26708 # Method to check whether dependent libraries are shared objects.
26709 deplibs_check_method=$lt_deplibs_check_method
26710
26711 # Command to use when deplibs_check_method == "file_magic".
26712 file_magic_cmd=$lt_file_magic_cmd
26713
26714 # The archiver.
26715 AR=$lt_AR
26716 AR_FLAGS=$lt_AR_FLAGS
26717
26718 # A symbol stripping program.
26719 STRIP=$lt_STRIP
26720
26721 # Commands used to install an old-style archive.
26722 RANLIB=$lt_RANLIB
26723 old_postinstall_cmds=$lt_old_postinstall_cmds
26724 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26725
26726 # A C compiler.
26727 LTCC=$lt_CC
26728
26729 # LTCC compiler flags.
26730 LTCFLAGS=$lt_CFLAGS
26731
26732 # Take the output of nm and produce a listing of raw symbols and C names.
26733 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26734
26735 # Transform the output of nm in a proper C declaration.
26736 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26737
26738 # Transform the output of nm in a C name address pair.
26739 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26740
26741 # Transform the output of nm in a C name address pair when lib prefix is needed.
26742 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26743
26744 # The name of the directory that contains temporary libtool files.
26745 objdir=$objdir
26746
26747 # Shell to use when invoking shell scripts.
26748 SHELL=$lt_SHELL
26749
26750 # An echo program that does not interpret backslashes.
26751 ECHO=$lt_ECHO
26752
26753 # Used to examine libraries when file_magic_cmd begins with "file".
26754 MAGIC_CMD=$MAGIC_CMD
26755
26756 # Must we lock files when doing compilation?
26757 need_locks=$lt_need_locks
26758
26759 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26760 DSYMUTIL=$lt_DSYMUTIL
26761
26762 # Tool to change global to local symbols on Mac OS X.
26763 NMEDIT=$lt_NMEDIT
26764
26765 # Tool to manipulate fat objects and archives on Mac OS X.
26766 LIPO=$lt_LIPO
26767
26768 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
26769 OTOOL=$lt_OTOOL
26770
26771 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26772 OTOOL64=$lt_OTOOL64
26773
26774 # Old archive suffix (normally "a").
26775 libext=$libext
26776
26777 # Shared library suffix (normally ".so").
26778 shrext_cmds=$lt_shrext_cmds
26779
26780 # The commands to extract the exported symbol list from a shared archive.
26781 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26782
26783 # Variables whose values should be saved in libtool wrapper scripts and
26784 # restored at link time.
26785 variables_saved_for_relink=$lt_variables_saved_for_relink
26786
26787 # Do we need the "lib" prefix for modules?
26788 need_lib_prefix=$need_lib_prefix
26789
26790 # Do we need a version for libraries?
26791 need_version=$need_version
26792
26793 # Library versioning type.
26794 version_type=$version_type
26795
26796 # Shared library runtime path variable.
26797 runpath_var=$runpath_var
26798
26799 # Shared library path variable.
26800 shlibpath_var=$shlibpath_var
26801
26802 # Is shlibpath searched before the hard-coded library search path?
26803 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26804
26805 # Format of library name prefix.
26806 libname_spec=$lt_libname_spec
26807
26808 # List of archive names. First name is the real one, the rest are links.
26809 # The last name is the one that the linker finds with -lNAME
26810 library_names_spec=$lt_library_names_spec
26811
26812 # The coded name of the library, if different from the real name.
26813 soname_spec=$lt_soname_spec
26814
26815 # Command to use after installation of a shared archive.
26816 postinstall_cmds=$lt_postinstall_cmds
26817
26818 # Command to use after uninstallation of a shared archive.
26819 postuninstall_cmds=$lt_postuninstall_cmds
26820
26821 # Commands used to finish a libtool library installation in a directory.
26822 finish_cmds=$lt_finish_cmds
26823
26824 # As "finish_cmds", except a single script fragment to be evaled but
26825 # not shown.
26826 finish_eval=$lt_finish_eval
26827
26828 # Whether we should hardcode library paths into libraries.
26829 hardcode_into_libs=$hardcode_into_libs
26830
26831 # Compile-time system search path for libraries.
26832 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26833
26834 # Run-time system search path for libraries.
26835 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26836
26837 # Whether dlopen is supported.
26838 dlopen_support=$enable_dlopen
26839
26840 # Whether dlopen of programs is supported.
26841 dlopen_self=$enable_dlopen_self
26842
26843 # Whether dlopen of statically linked programs is supported.
26844 dlopen_self_static=$enable_dlopen_self_static
26845
26846 # Commands to strip libraries.
26847 old_striplib=$lt_old_striplib
26848 striplib=$lt_striplib
26849
26850
26851 # The linker used to build libraries.
26852 LD=$lt_LD
26853
26854 # Commands used to build an old-style archive.
26855 old_archive_cmds=$lt_old_archive_cmds
26856
26857 # A language specific compiler.
26858 CC=$lt_compiler
26859
26860 # Is the compiler the GNU compiler?
26861 with_gcc=$GCC
26862
26863 # Compiler flag to turn off builtin functions.
26864 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26865
26866 # How to pass a linker flag through the compiler.
26867 wl=$lt_lt_prog_compiler_wl
26868
26869 # Additional compiler flags for building library objects.
26870 pic_flag=$lt_lt_prog_compiler_pic
26871
26872 # Compiler flag to prevent dynamic linking.
26873 link_static_flag=$lt_lt_prog_compiler_static
26874
26875 # Does compiler simultaneously support -c and -o options?
26876 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26877
26878 # Whether or not to add -lc for building shared libraries.
26879 build_libtool_need_lc=$archive_cmds_need_lc
26880
26881 # Whether or not to disallow shared libs when runtime libs are static.
26882 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26883
26884 # Compiler flag to allow reflexive dlopens.
26885 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26886
26887 # Compiler flag to generate shared objects directly from archives.
26888 whole_archive_flag_spec=$lt_whole_archive_flag_spec
26889
26890 # Whether the compiler copes with passing no objects directly.
26891 compiler_needs_object=$lt_compiler_needs_object
26892
26893 # Create an old-style archive from a shared archive.
26894 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26895
26896 # Create a temporary old-style archive to link instead of a shared archive.
26897 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26898
26899 # Commands used to build a shared archive.
26900 archive_cmds=$lt_archive_cmds
26901 archive_expsym_cmds=$lt_archive_expsym_cmds
26902
26903 # Commands used to build a loadable module if different from building
26904 # a shared archive.
26905 module_cmds=$lt_module_cmds
26906 module_expsym_cmds=$lt_module_expsym_cmds
26907
26908 # Whether we are building with GNU ld or not.
26909 with_gnu_ld=$lt_with_gnu_ld
26910
26911 # Flag that allows shared libraries with undefined symbols to be built.
26912 allow_undefined_flag=$lt_allow_undefined_flag
26913
26914 # Flag that enforces no undefined symbols.
26915 no_undefined_flag=$lt_no_undefined_flag
26916
26917 # Flag to hardcode \$libdir into a binary during linking.
26918 # This must work even if \$libdir does not exist
26919 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26920
26921 # If ld is used when linking, flag to hardcode \$libdir into a binary
26922 # during linking. This must work even if \$libdir does not exist.
26923 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
26924
26925 # Whether we need a single "-rpath" flag with a separated argument.
26926 hardcode_libdir_separator=$lt_hardcode_libdir_separator
26927
26928 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26929 # DIR into the resulting binary.
26930 hardcode_direct=$hardcode_direct
26931
26932 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26933 # DIR into the resulting binary and the resulting library dependency is
26934 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
26935 # library is relocated.
26936 hardcode_direct_absolute=$hardcode_direct_absolute
26937
26938 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26939 # into the resulting binary.
26940 hardcode_minus_L=$hardcode_minus_L
26941
26942 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26943 # into the resulting binary.
26944 hardcode_shlibpath_var=$hardcode_shlibpath_var
26945
26946 # Set to "yes" if building a shared library automatically hardcodes DIR
26947 # into the library and all subsequent libraries and executables linked
26948 # against it.
26949 hardcode_automatic=$hardcode_automatic
26950
26951 # Set to yes if linker adds runtime paths of dependent libraries
26952 # to runtime path list.
26953 inherit_rpath=$inherit_rpath
26954
26955 # Whether libtool must link a program against all its dependency libraries.
26956 link_all_deplibs=$link_all_deplibs
26957
26958 # Fix the shell variable \$srcfile for the compiler.
26959 fix_srcfile_path=$lt_fix_srcfile_path
26960
26961 # Set to "yes" if exported symbols are required.
26962 always_export_symbols=$always_export_symbols
26963
26964 # The commands to list exported symbols.
26965 export_symbols_cmds=$lt_export_symbols_cmds
26966
26967 # Symbols that should not be listed in the preloaded symbols.
26968 exclude_expsyms=$lt_exclude_expsyms
26969
26970 # Symbols that must always be exported.
26971 include_expsyms=$lt_include_expsyms
26972
26973 # Commands necessary for linking programs (against libraries) with templates.
26974 prelink_cmds=$lt_prelink_cmds
26975
26976 # Specify filename containing input files.
26977 file_list_spec=$lt_file_list_spec
26978
26979 # How to hardcode a shared library path into an executable.
26980 hardcode_action=$hardcode_action
26981
26982 # The directories searched by this compiler when creating a shared library.
26983 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
26984
26985 # Dependencies to place before and after the objects being linked to
26986 # create a shared library.
26987 predep_objects=$lt_predep_objects
26988 postdep_objects=$lt_postdep_objects
26989 predeps=$lt_predeps
26990 postdeps=$lt_postdeps
26991
26992 # The library search path used internally by the compiler when linking
26993 # a shared library.
26994 compiler_lib_search_path=$lt_compiler_lib_search_path
26995
26996 # ### END LIBTOOL CONFIG
26997
26998 _LT_EOF
26999
27000 case $host_os in
27001 aix3*)
27002 cat <<\_LT_EOF >> "$cfgfile"
27003 # AIX sometimes has problems with the GCC collect2 program. For some
27004 # reason, if we set the COLLECT_NAMES environment variable, the problems
27005 # vanish in a puff of smoke.
27006 if test "X${COLLECT_NAMES+set}" != Xset; then
27007 COLLECT_NAMES=
27008 export COLLECT_NAMES
27009 fi
27010 _LT_EOF
27011 ;;
27012 esac
27013
27014
27015 ltmain="$ac_aux_dir/ltmain.sh"
27016
27017
27018 # We use sed instead of cat because bash on DJGPP gets confused if
27019 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27020 # text mode, it properly converts lines to CR/LF. This bash problem
27021 # is reportedly fixed, but why not run on old versions too?
27022 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27023 || (rm -f "$cfgfile"; exit 1)
27024
27025 case $xsi_shell in
27026 yes)
27027 cat << \_LT_EOF >> "$cfgfile"
27028
27029 # func_dirname file append nondir_replacement
27030 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27031 # otherwise set result to NONDIR_REPLACEMENT.
27032 func_dirname ()
27033 {
27034 case ${1} in
27035 */*) func_dirname_result="${1%/*}${2}" ;;
27036 * ) func_dirname_result="${3}" ;;
27037 esac
27038 }
27039
27040 # func_basename file
27041 func_basename ()
27042 {
27043 func_basename_result="${1##*/}"
27044 }
27045
27046 # func_dirname_and_basename file append nondir_replacement
27047 # perform func_basename and func_dirname in a single function
27048 # call:
27049 # dirname: Compute the dirname of FILE. If nonempty,
27050 # add APPEND to the result, otherwise set result
27051 # to NONDIR_REPLACEMENT.
27052 # value returned in "$func_dirname_result"
27053 # basename: Compute filename of FILE.
27054 # value retuned in "$func_basename_result"
27055 # Implementation must be kept synchronized with func_dirname
27056 # and func_basename. For efficiency, we do not delegate to
27057 # those functions but instead duplicate the functionality here.
27058 func_dirname_and_basename ()
27059 {
27060 case ${1} in
27061 */*) func_dirname_result="${1%/*}${2}" ;;
27062 * ) func_dirname_result="${3}" ;;
27063 esac
27064 func_basename_result="${1##*/}"
27065 }
27066
27067 # func_stripname prefix suffix name
27068 # strip PREFIX and SUFFIX off of NAME.
27069 # PREFIX and SUFFIX must not contain globbing or regex special
27070 # characters, hashes, percent signs, but SUFFIX may contain a leading
27071 # dot (in which case that matches only a dot).
27072 func_stripname ()
27073 {
27074 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27075 # positional parameters, so assign one to ordinary parameter first.
27076 func_stripname_result=${3}
27077 func_stripname_result=${func_stripname_result#"${1}"}
27078 func_stripname_result=${func_stripname_result%"${2}"}
27079 }
27080
27081 # func_opt_split
27082 func_opt_split ()
27083 {
27084 func_opt_split_opt=${1%%=*}
27085 func_opt_split_arg=${1#*=}
27086 }
27087
27088 # func_lo2o object
27089 func_lo2o ()
27090 {
27091 case ${1} in
27092 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27093 *) func_lo2o_result=${1} ;;
27094 esac
27095 }
27096
27097 # func_xform libobj-or-source
27098 func_xform ()
27099 {
27100 func_xform_result=${1%.*}.lo
27101 }
27102
27103 # func_arith arithmetic-term...
27104 func_arith ()
27105 {
27106 func_arith_result=$(( $* ))
27107 }
27108
27109 # func_len string
27110 # STRING may not start with a hyphen.
27111 func_len ()
27112 {
27113 func_len_result=${#1}
27114 }
27115
27116 _LT_EOF
27117 ;;
27118 *) # Bourne compatible functions.
27119 cat << \_LT_EOF >> "$cfgfile"
27120
27121 # func_dirname file append nondir_replacement
27122 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27123 # otherwise set result to NONDIR_REPLACEMENT.
27124 func_dirname ()
27125 {
27126 # Extract subdirectory from the argument.
27127 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
27128 if test "X$func_dirname_result" = "X${1}"; then
27129 func_dirname_result="${3}"
27130 else
27131 func_dirname_result="$func_dirname_result${2}"
27132 fi
27133 }
27134
27135 # func_basename file
27136 func_basename ()
27137 {
27138 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
27139 }
27140
27141
27142 # func_stripname prefix suffix name
27143 # strip PREFIX and SUFFIX off of NAME.
27144 # PREFIX and SUFFIX must not contain globbing or regex special
27145 # characters, hashes, percent signs, but SUFFIX may contain a leading
27146 # dot (in which case that matches only a dot).
27147 # func_strip_suffix prefix name
27148 func_stripname ()
27149 {
27150 case ${2} in
27151 .*) func_stripname_result=`$ECHO "X${3}" \
27152 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
27153 *) func_stripname_result=`$ECHO "X${3}" \
27154 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
27155 esac
27156 }
27157
27158 # sed scripts:
27159 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27160 my_sed_long_arg='1s/^-[^=]*=//'
27161
27162 # func_opt_split
27163 func_opt_split ()
27164 {
27165 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
27166 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
27167 }
27168
27169 # func_lo2o object
27170 func_lo2o ()
27171 {
27172 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
27173 }
27174
27175 # func_xform libobj-or-source
27176 func_xform ()
27177 {
27178 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
27179 }
27180
27181 # func_arith arithmetic-term...
27182 func_arith ()
27183 {
27184 func_arith_result=`expr "$@"`
27185 }
27186
27187 # func_len string
27188 # STRING may not start with a hyphen.
27189 func_len ()
27190 {
27191 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27192 }
27193
27194 _LT_EOF
27195 esac
27196
27197 case $lt_shell_append in
27198 yes)
27199 cat << \_LT_EOF >> "$cfgfile"
27200
27201 # func_append var value
27202 # Append VALUE to the end of shell variable VAR.
27203 func_append ()
27204 {
27205 eval "$1+=\$2"
27206 }
27207 _LT_EOF
27208 ;;
27209 *)
27210 cat << \_LT_EOF >> "$cfgfile"
27211
27212 # func_append var value
27213 # Append VALUE to the end of shell variable VAR.
27214 func_append ()
27215 {
27216 eval "$1=\$$1\$2"
27217 }
27218
27219 _LT_EOF
27220 ;;
27221 esac
27222
27223
27224 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27225 || (rm -f "$cfgfile"; exit 1)
27226
27227 mv -f "$cfgfile" "$ofile" ||
27228 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27229 chmod +x "$ofile"
27230
27231
27232 cat <<_LT_EOF >> "$ofile"
27233
27234 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27235
27236 # The linker used to build libraries.
27237 LD=$lt_LD_CXX
27238
27239 # Commands used to build an old-style archive.
27240 old_archive_cmds=$lt_old_archive_cmds_CXX
27241
27242 # A language specific compiler.
27243 CC=$lt_compiler_CXX
27244
27245 # Is the compiler the GNU compiler?
27246 with_gcc=$GCC_CXX
27247
27248 # Compiler flag to turn off builtin functions.
27249 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27250
27251 # How to pass a linker flag through the compiler.
27252 wl=$lt_lt_prog_compiler_wl_CXX
27253
27254 # Additional compiler flags for building library objects.
27255 pic_flag=$lt_lt_prog_compiler_pic_CXX
27256
27257 # Compiler flag to prevent dynamic linking.
27258 link_static_flag=$lt_lt_prog_compiler_static_CXX
27259
27260 # Does compiler simultaneously support -c and -o options?
27261 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27262
27263 # Whether or not to add -lc for building shared libraries.
27264 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27265
27266 # Whether or not to disallow shared libs when runtime libs are static.
27267 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27268
27269 # Compiler flag to allow reflexive dlopens.
27270 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27271
27272 # Compiler flag to generate shared objects directly from archives.
27273 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27274
27275 # Whether the compiler copes with passing no objects directly.
27276 compiler_needs_object=$lt_compiler_needs_object_CXX
27277
27278 # Create an old-style archive from a shared archive.
27279 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27280
27281 # Create a temporary old-style archive to link instead of a shared archive.
27282 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27283
27284 # Commands used to build a shared archive.
27285 archive_cmds=$lt_archive_cmds_CXX
27286 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27287
27288 # Commands used to build a loadable module if different from building
27289 # a shared archive.
27290 module_cmds=$lt_module_cmds_CXX
27291 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27292
27293 # Whether we are building with GNU ld or not.
27294 with_gnu_ld=$lt_with_gnu_ld_CXX
27295
27296 # Flag that allows shared libraries with undefined symbols to be built.
27297 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27298
27299 # Flag that enforces no undefined symbols.
27300 no_undefined_flag=$lt_no_undefined_flag_CXX
27301
27302 # Flag to hardcode \$libdir into a binary during linking.
27303 # This must work even if \$libdir does not exist
27304 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27305
27306 # If ld is used when linking, flag to hardcode \$libdir into a binary
27307 # during linking. This must work even if \$libdir does not exist.
27308 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27309
27310 # Whether we need a single "-rpath" flag with a separated argument.
27311 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27312
27313 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27314 # DIR into the resulting binary.
27315 hardcode_direct=$hardcode_direct_CXX
27316
27317 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27318 # DIR into the resulting binary and the resulting library dependency is
27319 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27320 # library is relocated.
27321 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27322
27323 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27324 # into the resulting binary.
27325 hardcode_minus_L=$hardcode_minus_L_CXX
27326
27327 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27328 # into the resulting binary.
27329 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27330
27331 # Set to "yes" if building a shared library automatically hardcodes DIR
27332 # into the library and all subsequent libraries and executables linked
27333 # against it.
27334 hardcode_automatic=$hardcode_automatic_CXX
27335
27336 # Set to yes if linker adds runtime paths of dependent libraries
27337 # to runtime path list.
27338 inherit_rpath=$inherit_rpath_CXX
27339
27340 # Whether libtool must link a program against all its dependency libraries.
27341 link_all_deplibs=$link_all_deplibs_CXX
27342
27343 # Fix the shell variable \$srcfile for the compiler.
27344 fix_srcfile_path=$lt_fix_srcfile_path_CXX
27345
27346 # Set to "yes" if exported symbols are required.
27347 always_export_symbols=$always_export_symbols_CXX
27348
27349 # The commands to list exported symbols.
27350 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27351
27352 # Symbols that should not be listed in the preloaded symbols.
27353 exclude_expsyms=$lt_exclude_expsyms_CXX
27354
27355 # Symbols that must always be exported.
27356 include_expsyms=$lt_include_expsyms_CXX
27357
27358 # Commands necessary for linking programs (against libraries) with templates.
27359 prelink_cmds=$lt_prelink_cmds_CXX
27360
27361 # Specify filename containing input files.
27362 file_list_spec=$lt_file_list_spec_CXX
27363
27364 # How to hardcode a shared library path into an executable.
27365 hardcode_action=$hardcode_action_CXX
27366
27367 # The directories searched by this compiler when creating a shared library.
27368 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27369
27370 # Dependencies to place before and after the objects being linked to
27371 # create a shared library.
27372 predep_objects=$lt_predep_objects_CXX
27373 postdep_objects=$lt_postdep_objects_CXX
27374 predeps=$lt_predeps_CXX
27375 postdeps=$lt_postdeps_CXX
27376
27377 # The library search path used internally by the compiler when linking
27378 # a shared library.
27379 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27380
27381 # ### END LIBTOOL TAG CONFIG: CXX
27382 _LT_EOF
27383
27384
27385 cat <<_LT_EOF >> "$ofile"
27386
27387 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
27388
27389 # The linker used to build libraries.
27390 LD=$lt_LD_GCJ
27391
27392 # Commands used to build an old-style archive.
27393 old_archive_cmds=$lt_old_archive_cmds_GCJ
27394
27395 # A language specific compiler.
27396 CC=$lt_compiler_GCJ
27397
27398 # Is the compiler the GNU compiler?
27399 with_gcc=$GCC_GCJ
27400
27401 # Compiler flag to turn off builtin functions.
27402 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
27403
27404 # How to pass a linker flag through the compiler.
27405 wl=$lt_lt_prog_compiler_wl_GCJ
27406
27407 # Additional compiler flags for building library objects.
27408 pic_flag=$lt_lt_prog_compiler_pic_GCJ
27409
27410 # Compiler flag to prevent dynamic linking.
27411 link_static_flag=$lt_lt_prog_compiler_static_GCJ
27412
27413 # Does compiler simultaneously support -c and -o options?
27414 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
27415
27416 # Whether or not to add -lc for building shared libraries.
27417 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
27418
27419 # Whether or not to disallow shared libs when runtime libs are static.
27420 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
27421
27422 # Compiler flag to allow reflexive dlopens.
27423 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
27424
27425 # Compiler flag to generate shared objects directly from archives.
27426 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
27427
27428 # Whether the compiler copes with passing no objects directly.
27429 compiler_needs_object=$lt_compiler_needs_object_GCJ
27430
27431 # Create an old-style archive from a shared archive.
27432 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
27433
27434 # Create a temporary old-style archive to link instead of a shared archive.
27435 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
27436
27437 # Commands used to build a shared archive.
27438 archive_cmds=$lt_archive_cmds_GCJ
27439 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
27440
27441 # Commands used to build a loadable module if different from building
27442 # a shared archive.
27443 module_cmds=$lt_module_cmds_GCJ
27444 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
27445
27446 # Whether we are building with GNU ld or not.
27447 with_gnu_ld=$lt_with_gnu_ld_GCJ
27448
27449 # Flag that allows shared libraries with undefined symbols to be built.
27450 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
27451
27452 # Flag that enforces no undefined symbols.
27453 no_undefined_flag=$lt_no_undefined_flag_GCJ
27454
27455 # Flag to hardcode \$libdir into a binary during linking.
27456 # This must work even if \$libdir does not exist
27457 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
27458
27459 # If ld is used when linking, flag to hardcode \$libdir into a binary
27460 # during linking. This must work even if \$libdir does not exist.
27461 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
27462
27463 # Whether we need a single "-rpath" flag with a separated argument.
27464 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
27465
27466 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27467 # DIR into the resulting binary.
27468 hardcode_direct=$hardcode_direct_GCJ
27469
27470 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27471 # DIR into the resulting binary and the resulting library dependency is
27472 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27473 # library is relocated.
27474 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
27475
27476 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27477 # into the resulting binary.
27478 hardcode_minus_L=$hardcode_minus_L_GCJ
27479
27480 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27481 # into the resulting binary.
27482 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
27483
27484 # Set to "yes" if building a shared library automatically hardcodes DIR
27485 # into the library and all subsequent libraries and executables linked
27486 # against it.
27487 hardcode_automatic=$hardcode_automatic_GCJ
27488
27489 # Set to yes if linker adds runtime paths of dependent libraries
27490 # to runtime path list.
27491 inherit_rpath=$inherit_rpath_GCJ
27492
27493 # Whether libtool must link a program against all its dependency libraries.
27494 link_all_deplibs=$link_all_deplibs_GCJ
27495
27496 # Fix the shell variable \$srcfile for the compiler.
27497 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
27498
27499 # Set to "yes" if exported symbols are required.
27500 always_export_symbols=$always_export_symbols_GCJ
27501
27502 # The commands to list exported symbols.
27503 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
27504
27505 # Symbols that should not be listed in the preloaded symbols.
27506 exclude_expsyms=$lt_exclude_expsyms_GCJ
27507
27508 # Symbols that must always be exported.
27509 include_expsyms=$lt_include_expsyms_GCJ
27510
27511 # Commands necessary for linking programs (against libraries) with templates.
27512 prelink_cmds=$lt_prelink_cmds_GCJ
27513
27514 # Specify filename containing input files.
27515 file_list_spec=$lt_file_list_spec_GCJ
27516
27517 # How to hardcode a shared library path into an executable.
27518 hardcode_action=$hardcode_action_GCJ
27519
27520 # The directories searched by this compiler when creating a shared library.
27521 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
27522
27523 # Dependencies to place before and after the objects being linked to
27524 # create a shared library.
27525 predep_objects=$lt_predep_objects_GCJ
27526 postdep_objects=$lt_postdep_objects_GCJ
27527 predeps=$lt_predeps_GCJ
27528 postdeps=$lt_postdeps_GCJ
27529
27530 # The library search path used internally by the compiler when linking
27531 # a shared library.
27532 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
27533
27534 # ### END LIBTOOL TAG CONFIG: GCJ
27535 _LT_EOF
27536
27537 ;;
27538 "scripts/jar":F) chmod +x scripts/jar ;;
27539
27540 esac
27541 done # for ac_tag
27542
27543
27544 as_fn_exit 0
27545 _ACEOF
27546 ac_clean_files=$ac_clean_files_save
27547
27548 test $ac_write_fail = 0 ||
27549 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27550
27551
27552 # configure is writing to config.log, and then calls config.status.
27553 # config.status does its own redirection, appending to config.log.
27554 # Unfortunately, on DOS this fails, as config.log is still kept open
27555 # by configure, so config.status won't be able to write to it; its
27556 # output is simply discarded. So we exec the FD to /dev/null,
27557 # effectively closing config.log, so it can be properly (re)opened and
27558 # appended to by config.status. When coming back to configure, we
27559 # need to make the FD available again.
27560 if test "$no_create" != yes; then
27561 ac_cs_success=:
27562 ac_config_status_args=
27563 test "$silent" = yes &&
27564 ac_config_status_args="$ac_config_status_args --quiet"
27565 exec 5>/dev/null
27566 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27567 exec 5>>config.log
27568 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27569 # would make configure fail if this is the last instruction.
27570 $ac_cs_success || as_fn_exit $?
27571 fi
27572
27573 #
27574 # CONFIG_SUBDIRS section.
27575 #
27576 if test "$no_recursion" != yes; then
27577
27578 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
27579 # so they do not pile up.
27580 ac_sub_configure_args=
27581 ac_prev=
27582 eval "set x $ac_configure_args"
27583 shift
27584 for ac_arg
27585 do
27586 if test -n "$ac_prev"; then
27587 ac_prev=
27588 continue
27589 fi
27590 case $ac_arg in
27591 -cache-file | --cache-file | --cache-fil | --cache-fi \
27592 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27593 ac_prev=cache_file ;;
27594 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27595 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27596 | --c=*)
27597 ;;
27598 --config-cache | -C)
27599 ;;
27600 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27601 ac_prev=srcdir ;;
27602 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27603 ;;
27604 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27605 ac_prev=prefix ;;
27606 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27607 ;;
27608 --disable-option-checking)
27609 ;;
27610 *)
27611 case $ac_arg in
27612 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27613 esac
27614 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
27615 esac
27616 done
27617
27618 # Always prepend --prefix to ensure using the same prefix
27619 # in subdir configurations.
27620 ac_arg="--prefix=$prefix"
27621 case $ac_arg in
27622 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27623 esac
27624 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
27625
27626 # Pass --silent
27627 if test "$silent" = yes; then
27628 ac_sub_configure_args="--silent $ac_sub_configure_args"
27629 fi
27630
27631 # Always prepend --disable-option-checking to silence warnings, since
27632 # different subdirs can have different --enable and --with options.
27633 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
27634
27635 ac_popdir=`pwd`
27636 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27637
27638 # Do not complain, so a configure script can configure whichever
27639 # parts of a large source tree are present.
27640 test -d "$srcdir/$ac_dir" || continue
27641
27642 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27643 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
27644 $as_echo "$ac_msg" >&6
27645 as_dir="$ac_dir"; as_fn_mkdir_p
27646 ac_builddir=.
27647
27648 case "$ac_dir" in
27649 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27650 *)
27651 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27652 # A ".." for each directory in $ac_dir_suffix.
27653 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27654 case $ac_top_builddir_sub in
27655 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27656 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27657 esac ;;
27658 esac
27659 ac_abs_top_builddir=$ac_pwd
27660 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27661 # for backward compatibility:
27662 ac_top_builddir=$ac_top_build_prefix
27663
27664 case $srcdir in
27665 .) # We are building in place.
27666 ac_srcdir=.
27667 ac_top_srcdir=$ac_top_builddir_sub
27668 ac_abs_top_srcdir=$ac_pwd ;;
27669 [\\/]* | ?:[\\/]* ) # Absolute name.
27670 ac_srcdir=$srcdir$ac_dir_suffix;
27671 ac_top_srcdir=$srcdir
27672 ac_abs_top_srcdir=$srcdir ;;
27673 *) # Relative name.
27674 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27675 ac_top_srcdir=$ac_top_build_prefix$srcdir
27676 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27677 esac
27678 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27679
27680
27681 cd "$ac_dir"
27682
27683 # Check for guested configure; otherwise get Cygnus style configure.
27684 if test -f "$ac_srcdir/configure.gnu"; then
27685 ac_sub_configure=$ac_srcdir/configure.gnu
27686 elif test -f "$ac_srcdir/configure"; then
27687 ac_sub_configure=$ac_srcdir/configure
27688 elif test -f "$ac_srcdir/configure.in"; then
27689 # This should be Cygnus configure.
27690 ac_sub_configure=$ac_aux_dir/configure
27691 else
27692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
27693 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27694 ac_sub_configure=
27695 fi
27696
27697 # The recursion is here.
27698 if test -n "$ac_sub_configure"; then
27699 # Make the cache file name correct relative to the subdirectory.
27700 case $cache_file in
27701 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27702 *) # Relative name.
27703 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
27704 esac
27705
27706 { $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
27707 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27708 # The eval makes quoting arguments work.
27709 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27710 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27711 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
27712 fi
27713
27714 cd "$ac_popdir"
27715 done
27716 fi
27717 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27719 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27720 fi
27721