]> gcc.gnu.org Git - gcc.git/blame - libjava/configure
Remove obsolete Solaris 9 support
[gcc.git] / libjava / configure
CommitLineData
ee9dd372 1#! /bin/sh
ee9dd372 2# Guess values for system-dependent variables and create Makefiles.
5213506e
RW
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.
ee9dd372
TT
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
5213506e
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
ed698112 14
5213506e
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
ed698112
NN
18 emulate sh
19 NULLCMD=:
5213506e 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ed698112
NN
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
ed698112 31fi
ed698112 32
5213506e
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_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.
43if 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 --'
47elif (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'
50else
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'
70fi
71
72# The user is always right.
73if 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 }
ed698112
NN
79fi
80
81
5213506e
RW
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.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
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
99IFS=$as_save_IFS
100
101 ;;
102esac
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.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
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.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
ed698112
NN
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
5213506e
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if 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
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test 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
43e02a8a
RW
172
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
5213506e
RW
180test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183else
184 as_have_required=no
185fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
ed698112 192do
5213506e
RW
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206fi
207fi
208 done;;
209 esac
210 as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
ed698112 236 else
5213506e
RW
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
ed698112 241 fi
5213506e
RW
242 exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260 { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269 return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277 set +e
278 as_fn_set_status $1
279 exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379} # as_fn_error
ed698112 380
5213506e
RW
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ed698112
NN
383 as_expr=expr
384else
385 as_expr=false
386fi
387
5213506e 388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ed698112
NN
389 as_basename=basename
390else
391 as_basename=false
392fi
393
5213506e
RW
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396else
397 as_dirname=false
398fi
ed698112 399
5213506e 400as_me=`$as_basename -- "$0" ||
ed698112
NN
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
5213506e
RW
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
ed698112 418
ade710a5
TF
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
ed698112 425
ed698112 426
5213506e
RW
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
ed698112 436 sed '
5213506e
RW
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
ed698112 441 N
5213506e
RW
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ed698112 444 t loop
5213506e 445 s/-\n.*//
ed698112 446 ' >$as_me.lineno &&
5213506e
RW
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
ed698112
NN
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
5213506e
RW
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
ed698112
NN
454 # Exit status is that of the last command.
455 exit
456}
457
5213506e
RW
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467*)
468 ECHO_N='-n';;
ed698112
NN
469esac
470
5213506e
RW
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
ed698112 474else
5213506e
RW
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
ed698112 477fi
5213506e
RW
478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
ade710a5 480 as_ln_s='ln -s'
5213506e
RW
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
ade710a5 491 fi
ed698112
NN
492else
493 as_ln_s='cp -p'
494fi
5213506e
RW
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
ed698112
NN
497
498if mkdir -p . 2>/dev/null; then
5213506e 499 as_mkdir_p='mkdir -p "$as_dir"'
ed698112
NN
500else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503fi
504
5213506e
RW
505if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525fi
526as_executable_p=$as_test_x
ed698112
NN
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
1cf3d07d
SE
534SHELL=${CONFIG_SHELL-/bin/sh}
535
1cf3d07d 536
5213506e
RW
537exec 7<&0 </dev/null 6>&1
538
ed698112
NN
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
ee9dd372 543
ed698112
NN
544#
545# Initializations.
546#
ee9dd372 547ac_default_prefix=/usr/local
5213506e 548ac_clean_files=
ed698112 549ac_config_libobj_dir=.
5213506e 550LIBOBJS=
ed698112
NN
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
ade710a5 555
ed698112 556# Identity of this package.
e3f92d3b
MK
557PACKAGE_NAME='libjava'
558PACKAGE_TARNAME='libjava'
559PACKAGE_VERSION='version-unused'
560PACKAGE_STRING='libjava version-unused'
561PACKAGE_BUGREPORT=''
5213506e 562PACKAGE_URL=''
ed698112
NN
563
564ac_unique_file="java/lang/System.java"
ed698112
NN
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
5213506e 568#ifdef HAVE_SYS_TYPES_H
ed698112
NN
569# include <sys/types.h>
570#endif
5213506e 571#ifdef HAVE_SYS_STAT_H
ed698112
NN
572# include <sys/stat.h>
573#endif
5213506e 574#ifdef STDC_HEADERS
ed698112
NN
575# include <stdlib.h>
576# include <stddef.h>
577#else
5213506e 578# ifdef HAVE_STDLIB_H
ed698112
NN
579# include <stdlib.h>
580# endif
581#endif
5213506e
RW
582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
ed698112
NN
584# include <memory.h>
585# endif
586# include <string.h>
587#endif
5213506e 588#ifdef HAVE_STRINGS_H
ed698112
NN
589# include <strings.h>
590#endif
5213506e 591#ifdef HAVE_INTTYPES_H
ed698112 592# include <inttypes.h>
ed698112 593#endif
5213506e
RW
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
ed698112
NN
598# include <unistd.h>
599#endif"
600
5213506e
RW
601enable_option_checking=no
602ac_subst_vars='am__EXEEXT_FALSE
603am__EXEEXT_TRUE
604LTLIBOBJS
605LIBOBJS
606LIBDIR
607OS
608CPU
609GCJ_BIN_DIR
610JRE_LIB_DIR
611JRE_BIN_DIR
612SDK_INCLUDE_DIR
613SDK_LIB_DIR
614SDK_BIN_DIR
615SDK_LNK
616JRE_LNK
617JRE_DIR
618JVM_JAR_DIR
619JVM_JAR_ROOT_DIR
620JVM_ROOT_DIR
621BUILD_VERSION
622JAVA_VERSION
623gcc_suffix
624CREATE_JAVA_HOME_FALSE
625CREATE_JAVA_HOME_TRUE
626INSTALL_AOT_RPM_FALSE
627INSTALL_AOT_RPM_TRUE
628MAKE
629python_mod_dir_expanded
630python_mod_dir
631here
632LD_FINISH_STATIC_SPEC
633LD_START_STATIC_SPEC
22a4778a
RO
634ANONVERSCRIPT_SUN_FALSE
635ANONVERSCRIPT_SUN_TRUE
636ANONVERSCRIPT_GNU_FALSE
637ANONVERSCRIPT_GNU_TRUE
5213506e
RW
638ANONVERSCRIPT_FALSE
639ANONVERSCRIPT_TRUE
640SYSDEP_SOURCES
641PERL
642libstdcxx_incdir
643gxx_include_dir
644gcjsubdir
645dbexecdir
646GCJVERSION
647toolexeclibdir
648toolexecmainlibdir
649toolexecdir
201cdb74 650LIBGCC_UNWIND_INCLUDE
5213506e
RW
651INSTALL_BINARIES_FALSE
652INSTALL_BINARIES_TRUE
653NEEDS_DATA_START_FALSE
654NEEDS_DATA_START_TRUE
655ENABLE_SHARED_FALSE
656ENABLE_SHARED_TRUE
657NATIVE_FALSE
658NATIVE_TRUE
659ATOMICSPEC
660IEEESPEC
661BACKTRACESPEC
662EXCEPTIONSPEC
663CHECKREFSPEC
664DIVIDESPEC
665ZINCS
666SYS_ZLIBS
667ZLIBS
668CLASSPATH_SEPARATOR
669LIBART_LIBS
670LIBART_CFLAGS
671GLIB_LIBS
672GLIB_CFLAGS
673GTK_LIBS
674GTK_CFLAGS
675PKG_CONFIG
4e6ad422 676LDLIBICONV
5213506e
RW
677LTLIBICONV
678LIBICONV
679USING_GCC_FALSE
680USING_GCC_TRUE
681HASH_SYNC_SPEC
682LIBGCJ_BC_SPEC
683LIBGCJ_SPEC
684USE_LIBGCJ_BC_FALSE
685USE_LIBGCJ_BC_TRUE
686USING_NO_THREADS_FALSE
687USING_NO_THREADS_TRUE
688USING_WIN32_THREADS_FALSE
689USING_WIN32_THREADS_TRUE
690USING_POSIX_THREADS_FALSE
691USING_POSIX_THREADS_TRUE
692THREADCXXFLAGS
693THREADLDFLAGS
694THREADSTARTFILESPEC
695THREADSPEC
696THREADDEPS
697THREADINCS
698THREADLIBS
699USING_NOGC_FALSE
700USING_NOGC_TRUE
701USING_BOEHMGC_FALSE
702USING_BOEHMGC_TRUE
703GCTESTSPEC
704JC1GCSPEC
705GCSPEC
706GCDEPS
707GCINCS
708GCLIBS
709LIBGCJTESTSPEC
d80148b8 710LIBMATHSPEC
5213506e
RW
711LIBSTDCXXSPEC
712extra_ldflags
5213506e
RW
713extra_ldflags_libjava
714X_EXTRA_LIBS
715X_LIBS
716X_PRE_LIBS
717X_CFLAGS
718XMKMF
719ZLIBTESTSPEC
720ZLIBSPEC
721SYSTEMSPEC
722USING_DARWIN_CRT_FALSE
723USING_DARWIN_CRT_TRUE
724USING_POSIX_PLATFORM_FALSE
725USING_POSIX_PLATFORM_TRUE
726USING_WIN32_PLATFORM_FALSE
727USING_WIN32_PLATFORM_TRUE
728PLATFORM
729LIBFFIINCS
730LIBFFI
731INTERPRETER_FALSE
732INTERPRETER_TRUE
733INTERPRETER
734BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE
735BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE
736SUPPRESS_LIBGCJ_BC_FALSE
737SUPPRESS_LIBGCJ_BC_TRUE
738JAVA_HOME
739JAVA_HOME_SET_FALSE
740JAVA_HOME_SET_TRUE
741INSTALL_ECJ_JAR_FALSE
742INSTALL_ECJ_JAR_TRUE
743BUILD_ECJ1_FALSE
744BUILD_ECJ1_TRUE
745ECJ_JAR
746ECJ_BUILD_JAR
747TESTSUBDIR_FALSE
748TESTSUBDIR_TRUE
749subdirs
750am__fastdepGCJ_FALSE
751am__fastdepGCJ_TRUE
752GCJDEPMODE
753GCJFLAGS
4d9e8446 754ac_ct_GCJ
5213506e 755GCJ
7de6ba7a 756lt_host_flags
5213506e
RW
757CXXCPP
758CPP
759OTOOL64
760OTOOL
761LIPO
762NMEDIT
763DSYMUTIL
5213506e
RW
764OBJDUMP
765NM
766ac_ct_DUMPBIN
767DUMPBIN
768FGREP
769EGREP
770GREP
771SED
772LIBTOOL
773DIRLTDL
774LIBLTDL
775INCLTDL
776host_exeext
777GCJH
9f8f1def 778GCC_FOR_ECJX
5213506e
RW
779GCJ_FOR_ECJX
780X_AWT_FALSE
781X_AWT_TRUE
782XLIB_AWT_FALSE
783XLIB_AWT_TRUE
784TOOLKIT
785LIBGCJDEBUG
6a92b6c7
DK
786BUILD_SUBLIBS_FALSE
787BUILD_SUBLIBS_TRUE
51e16725 788LIBGCJ_LD_EXPORT_ALL
5213506e
RW
789LIBGCJ_LD_SYMBOLIC_FUNCTIONS
790LIBGCJ_LD_SYMBOLIC
474b97ce 791LIBGCJ_SUBLIB_CORE_EXTRA_DEPS
c4f0333b 792LIBGCJ_SUBLIB_LTFLAGS
5213506e
RW
793LIBGCJ_JAVAFLAGS
794LIBGCJ_CXXFLAGS
795LIBGCJ_CFLAGS
796MAINT
797MAINTAINER_MODE_FALSE
798MAINTAINER_MODE_TRUE
799UNZIP
800ZIP
801JAR
474b97ce 802DLLTOOL
5213506e
RW
803RANLIB
804AR
805LD
806AS
807am__fastdepCXX_FALSE
808am__fastdepCXX_TRUE
809CXXDEPMODE
810am__fastdepCC_FALSE
811am__fastdepCC_TRUE
812CCDEPMODE
813AMDEPBACKSLASH
814AMDEP_FALSE
815AMDEP_TRUE
816am__quote
817am__include
818DEPDIR
819am__untar
820am__tar
821AMTAR
822am__leading_dot
823SET_MAKE
824AWK
825mkdir_p
826MKDIR_P
827INSTALL_STRIP_PROGRAM
828STRIP
829install_sh
830MAKEINFO
831AUTOHEADER
832AUTOMAKE
833AUTOCONF
834ACLOCAL
835VERSION
836PACKAGE
837CYGPATH_W
838am__isrc
839INSTALL_DATA
840INSTALL_SCRIPT
841INSTALL_PROGRAM
842ac_ct_CXX
843CXXFLAGS
844CXX
845OBJEXT
846EXEEXT
847ac_ct_CC
848CPPFLAGS
849LDFLAGS
850CFLAGS
851CC
852JAVA_MAINTAINER_MODE_FALSE
853JAVA_MAINTAINER_MODE_TRUE
854CREATE_GJDOC_FALSE
855CREATE_GJDOC_TRUE
856ANTLR_JAR
857mkinstalldirs
858LN_S
e1e953d9
L
859LIBSTDCXX_RAW_CXX_LDFLAGS
860LIBSTDCXX_RAW_CXX_CXXFLAGS
5213506e
RW
861target_noncanonical
862target_os
863target_vendor
864target_cpu
865target
866host_os
867host_vendor
868host_cpu
869host
870multi_basedir
871target_subdir
872host_subdir
873build_subdir
874build_libsubdir
875build_os
876build_vendor
877build_cpu
878build
879target_alias
880host_alias
881build_alias
882LIBS
883ECHO_T
884ECHO_N
885ECHO_C
886DEFS
887mandir
888localedir
889libdir
890psdir
891pdfdir
892dvidir
893htmldir
894infodir
895docdir
896oldincludedir
897includedir
898localstatedir
899sharedstatedir
900sysconfdir
901datadir
902datarootdir
903libexecdir
904sbindir
905bindir
906program_transform_name
907prefix
908exec_prefix
909PACKAGE_URL
910PACKAGE_BUGREPORT
911PACKAGE_STRING
912PACKAGE_VERSION
913PACKAGE_TARNAME
914PACKAGE_NAME
915PATH_SEPARATOR
916SHELL'
ed698112 917ac_subst_files=''
5213506e
RW
918ac_user_opts='
919enable_option_checking
920with_build_libsubdir
921with_target_subdir
922enable_multilib
923with_cross_host
924with_newlib
925enable_version_specific_runtime_libs
34677bae 926enable_browser_plugin
5213506e
RW
927enable_gconf_peer
928with_antlr_jar
929enable_gjdoc
930enable_java_maintainer_mode
931enable_dependency_tracking
932enable_maintainer_mode
6a92b6c7 933enable_libgcj_sublibs
5213506e
RW
934enable_libgcj_debug
935with_escher
936enable_java_awt
937enable_shared
938enable_static
939with_pic
940enable_fast_install
941with_gnu_ld
942enable_libtool_lock
943enable_getenv_properties
944enable_hash_synchronization
945with_ecj_jar
946with_java_home
947enable_libgcj_bc
948enable_reduced_reflection
949with_win32_nlsapi
950enable_gc_debug
951enable_interpreter
952enable_sjlj_exceptions
953enable_java_net
954with_libffi
955enable_jvmpi
956with_ecos
957with_system_zlib
958with_x
959enable_java_gc
960enable_rpath
961with_libiconv_prefix
962enable_tls
963with_system_libunwind
bf382f5f 964enable_symvers
5213506e
RW
965with_python_dir
966enable_aot_compile_rpm
967enable_java_home
968with_gcc_suffix
969with_arch_directory
970with_os_directory
971with_origin_name
972with_arch_suffix
973with_jvm_root_dir
974with_jvm_jar_dir
975'
976 ac_precious_vars='build_alias
977host_alias
978target_alias
a5d28a12
RW
979CC
980CFLAGS
981LDFLAGS
982LIBS
5213506e 983CPPFLAGS
a5d28a12
RW
984CXX
985CXXFLAGS
986CCC
987CPP
5213506e
RW
988CXXCPP
989XMKMF'
990ac_subdirs_all='classpath libltdl'
ee9dd372
TT
991
992# Initialize some variables set by options.
ed698112
NN
993ac_init_help=
994ac_init_version=false
5213506e
RW
995ac_unrecognized_opts=
996ac_unrecognized_sep=
ee9dd372
TT
997# The variables have the same names as the options, with
998# dashes changed to underlines.
ed698112 999cache_file=/dev/null
ee9dd372 1000exec_prefix=NONE
ee9dd372 1001no_create=
ee9dd372
TT
1002no_recursion=
1003prefix=NONE
1004program_prefix=NONE
1005program_suffix=NONE
1006program_transform_name=s,x,x,
1007silent=
1008site=
1009srcdir=
ee9dd372
TT
1010verbose=
1011x_includes=NONE
1012x_libraries=NONE
ed698112
NN
1013
1014# Installation directory options.
1015# These are left unexpanded so users can "make install exec_prefix=/foo"
1016# and all the variables that are supposed to be based on exec_prefix
1017# by default will actually change.
1018# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 1019# (The list follows the same order as the GNU Coding Standards.)
ee9dd372
TT
1020bindir='${exec_prefix}/bin'
1021sbindir='${exec_prefix}/sbin'
1022libexecdir='${exec_prefix}/libexec'
5213506e
RW
1023datarootdir='${prefix}/share'
1024datadir='${datarootdir}'
ee9dd372
TT
1025sysconfdir='${prefix}/etc'
1026sharedstatedir='${prefix}/com'
1027localstatedir='${prefix}/var'
ee9dd372
TT
1028includedir='${prefix}/include'
1029oldincludedir='/usr/include'
5213506e
RW
1030docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1031infodir='${datarootdir}/info'
1032htmldir='${docdir}'
1033dvidir='${docdir}'
1034pdfdir='${docdir}'
1035psdir='${docdir}'
1036libdir='${exec_prefix}/lib'
1037localedir='${datarootdir}/locale'
1038mandir='${datarootdir}/man'
ee9dd372 1039
ee9dd372 1040ac_prev=
5213506e 1041ac_dashdash=
ee9dd372
TT
1042for ac_option
1043do
ee9dd372
TT
1044 # If the previous option needs an argument, assign it.
1045 if test -n "$ac_prev"; then
5213506e 1046 eval $ac_prev=\$ac_option
ee9dd372
TT
1047 ac_prev=
1048 continue
1049 fi
1050
5213506e
RW
1051 case $ac_option in
1052 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1053 *) ac_optarg=yes ;;
1054 esac
ee9dd372
TT
1055
1056 # Accept the important Cygnus configure options, so we can diagnose typos.
1057
5213506e
RW
1058 case $ac_dashdash$ac_option in
1059 --)
1060 ac_dashdash=yes ;;
ee9dd372
TT
1061
1062 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1063 ac_prev=bindir ;;
1064 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ed698112 1065 bindir=$ac_optarg ;;
ee9dd372
TT
1066
1067 -build | --build | --buil | --bui | --bu)
ed698112 1068 ac_prev=build_alias ;;
ee9dd372 1069 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ed698112 1070 build_alias=$ac_optarg ;;
ee9dd372
TT
1071
1072 -cache-file | --cache-file | --cache-fil | --cache-fi \
1073 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1074 ac_prev=cache_file ;;
1075 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1076 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ed698112
NN
1077 cache_file=$ac_optarg ;;
1078
1079 --config-cache | -C)
1080 cache_file=config.cache ;;
ee9dd372 1081
5213506e 1082 -datadir | --datadir | --datadi | --datad)
ee9dd372 1083 ac_prev=datadir ;;
5213506e 1084 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ed698112 1085 datadir=$ac_optarg ;;
ee9dd372 1086
5213506e
RW
1087 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1088 | --dataroo | --dataro | --datar)
1089 ac_prev=datarootdir ;;
1090 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1091 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1092 datarootdir=$ac_optarg ;;
1093
ee9dd372 1094 -disable-* | --disable-*)
5213506e 1095 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
ee9dd372 1096 # Reject names that are not valid shell variable names.
5213506e
RW
1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098 as_fn_error "invalid feature name: $ac_useropt"
1099 ac_useropt_orig=$ac_useropt
1100 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101 case $ac_user_opts in
1102 *"
1103"enable_$ac_useropt"
1104"*) ;;
1105 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1106 ac_unrecognized_sep=', ';;
1107 esac
1108 eval enable_$ac_useropt=no ;;
1109
1110 -docdir | --docdir | --docdi | --doc | --do)
1111 ac_prev=docdir ;;
1112 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1113 docdir=$ac_optarg ;;
1114
1115 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1116 ac_prev=dvidir ;;
1117 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1118 dvidir=$ac_optarg ;;
ee9dd372
TT
1119
1120 -enable-* | --enable-*)
5213506e 1121 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
ee9dd372 1122 # Reject names that are not valid shell variable names.
5213506e
RW
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error "invalid feature name: $ac_useropt"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1128 *"
1129"enable_$ac_useropt"
1130"*) ;;
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
ade710a5 1133 esac
5213506e 1134 eval enable_$ac_useropt=\$ac_optarg ;;
ee9dd372
TT
1135
1136 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1137 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1138 | --exec | --exe | --ex)
1139 ac_prev=exec_prefix ;;
1140 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1141 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1142 | --exec=* | --exe=* | --ex=*)
ed698112 1143 exec_prefix=$ac_optarg ;;
ee9dd372
TT
1144
1145 -gas | --gas | --ga | --g)
1146 # Obsolete; use --with-gas.
1147 with_gas=yes ;;
1148
ed698112
NN
1149 -help | --help | --hel | --he | -h)
1150 ac_init_help=long ;;
1151 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1152 ac_init_help=recursive ;;
1153 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1154 ac_init_help=short ;;
ee9dd372
TT
1155
1156 -host | --host | --hos | --ho)
ed698112 1157 ac_prev=host_alias ;;
ee9dd372 1158 -host=* | --host=* | --hos=* | --ho=*)
ed698112 1159 host_alias=$ac_optarg ;;
ee9dd372 1160
5213506e
RW
1161 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1162 ac_prev=htmldir ;;
1163 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1164 | --ht=*)
1165 htmldir=$ac_optarg ;;
1166
ee9dd372
TT
1167 -includedir | --includedir | --includedi | --included | --include \
1168 | --includ | --inclu | --incl | --inc)
1169 ac_prev=includedir ;;
1170 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1171 | --includ=* | --inclu=* | --incl=* | --inc=*)
ed698112 1172 includedir=$ac_optarg ;;
ee9dd372
TT
1173
1174 -infodir | --infodir | --infodi | --infod | --info | --inf)
1175 ac_prev=infodir ;;
1176 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ed698112 1177 infodir=$ac_optarg ;;
ee9dd372
TT
1178
1179 -libdir | --libdir | --libdi | --libd)
1180 ac_prev=libdir ;;
1181 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ed698112 1182 libdir=$ac_optarg ;;
ee9dd372
TT
1183
1184 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1185 | --libexe | --libex | --libe)
1186 ac_prev=libexecdir ;;
1187 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1188 | --libexe=* | --libex=* | --libe=*)
ed698112 1189 libexecdir=$ac_optarg ;;
ee9dd372 1190
5213506e
RW
1191 -localedir | --localedir | --localedi | --localed | --locale)
1192 ac_prev=localedir ;;
1193 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1194 localedir=$ac_optarg ;;
1195
ee9dd372 1196 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1197 | --localstate | --localstat | --localsta | --localst | --locals)
ee9dd372
TT
1198 ac_prev=localstatedir ;;
1199 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1200 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ed698112 1201 localstatedir=$ac_optarg ;;
ee9dd372
TT
1202
1203 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1204 ac_prev=mandir ;;
1205 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ed698112 1206 mandir=$ac_optarg ;;
ee9dd372
TT
1207
1208 -nfp | --nfp | --nf)
1209 # Obsolete; use --without-fp.
1210 with_fp=no ;;
1211
1212 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ed698112 1213 | --no-cr | --no-c | -n)
ee9dd372
TT
1214 no_create=yes ;;
1215
1216 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1217 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1218 no_recursion=yes ;;
1219
1220 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1221 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1222 | --oldin | --oldi | --old | --ol | --o)
1223 ac_prev=oldincludedir ;;
1224 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1225 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1226 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ed698112 1227 oldincludedir=$ac_optarg ;;
ee9dd372
TT
1228
1229 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1230 ac_prev=prefix ;;
1231 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ed698112 1232 prefix=$ac_optarg ;;
ee9dd372
TT
1233
1234 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1235 | --program-pre | --program-pr | --program-p)
1236 ac_prev=program_prefix ;;
1237 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1238 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ed698112 1239 program_prefix=$ac_optarg ;;
ee9dd372
TT
1240
1241 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1242 | --program-suf | --program-su | --program-s)
1243 ac_prev=program_suffix ;;
1244 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1245 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ed698112 1246 program_suffix=$ac_optarg ;;
ee9dd372
TT
1247
1248 -program-transform-name | --program-transform-name \
1249 | --program-transform-nam | --program-transform-na \
1250 | --program-transform-n | --program-transform- \
1251 | --program-transform | --program-transfor \
1252 | --program-transfo | --program-transf \
1253 | --program-trans | --program-tran \
1254 | --progr-tra | --program-tr | --program-t)
1255 ac_prev=program_transform_name ;;
1256 -program-transform-name=* | --program-transform-name=* \
1257 | --program-transform-nam=* | --program-transform-na=* \
1258 | --program-transform-n=* | --program-transform-=* \
1259 | --program-transform=* | --program-transfor=* \
1260 | --program-transfo=* | --program-transf=* \
1261 | --program-trans=* | --program-tran=* \
1262 | --progr-tra=* | --program-tr=* | --program-t=*)
ed698112 1263 program_transform_name=$ac_optarg ;;
ee9dd372 1264
5213506e
RW
1265 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1266 ac_prev=pdfdir ;;
1267 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1268 pdfdir=$ac_optarg ;;
1269
1270 -psdir | --psdir | --psdi | --psd | --ps)
1271 ac_prev=psdir ;;
1272 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1273 psdir=$ac_optarg ;;
1274
ee9dd372
TT
1275 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1276 | -silent | --silent | --silen | --sile | --sil)
1277 silent=yes ;;
1278
1279 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1280 ac_prev=sbindir ;;
1281 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1282 | --sbi=* | --sb=*)
ed698112 1283 sbindir=$ac_optarg ;;
ee9dd372
TT
1284
1285 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1286 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1287 | --sharedst | --shareds | --shared | --share | --shar \
1288 | --sha | --sh)
1289 ac_prev=sharedstatedir ;;
1290 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1291 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1292 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1293 | --sha=* | --sh=*)
ed698112 1294 sharedstatedir=$ac_optarg ;;
ee9dd372
TT
1295
1296 -site | --site | --sit)
1297 ac_prev=site ;;
1298 -site=* | --site=* | --sit=*)
ed698112 1299 site=$ac_optarg ;;
ee9dd372
TT
1300
1301 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1302 ac_prev=srcdir ;;
1303 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ed698112 1304 srcdir=$ac_optarg ;;
ee9dd372
TT
1305
1306 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1307 | --syscon | --sysco | --sysc | --sys | --sy)
1308 ac_prev=sysconfdir ;;
1309 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1310 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ed698112 1311 sysconfdir=$ac_optarg ;;
ee9dd372
TT
1312
1313 -target | --target | --targe | --targ | --tar | --ta | --t)
ed698112 1314 ac_prev=target_alias ;;
ee9dd372 1315 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ed698112 1316 target_alias=$ac_optarg ;;
ee9dd372
TT
1317
1318 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1319 verbose=yes ;;
1320
ed698112
NN
1321 -version | --version | --versio | --versi | --vers | -V)
1322 ac_init_version=: ;;
ee9dd372
TT
1323
1324 -with-* | --with-*)
5213506e 1325 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
ee9dd372 1326 # Reject names that are not valid shell variable names.
5213506e
RW
1327 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1328 as_fn_error "invalid package name: $ac_useropt"
1329 ac_useropt_orig=$ac_useropt
1330 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1331 case $ac_user_opts in
1332 *"
1333"with_$ac_useropt"
1334"*) ;;
1335 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1336 ac_unrecognized_sep=', ';;
ade710a5 1337 esac
5213506e 1338 eval with_$ac_useropt=\$ac_optarg ;;
ee9dd372
TT
1339
1340 -without-* | --without-*)
5213506e 1341 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
ee9dd372 1342 # Reject names that are not valid shell variable names.
5213506e
RW
1343 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1344 as_fn_error "invalid package name: $ac_useropt"
1345 ac_useropt_orig=$ac_useropt
1346 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1347 case $ac_user_opts in
1348 *"
1349"with_$ac_useropt"
1350"*) ;;
1351 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1352 ac_unrecognized_sep=', ';;
1353 esac
1354 eval with_$ac_useropt=no ;;
ee9dd372
TT
1355
1356 --x)
1357 # Obsolete; use --with-x.
1358 with_x=yes ;;
1359
1360 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1361 | --x-incl | --x-inc | --x-in | --x-i)
1362 ac_prev=x_includes ;;
1363 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1364 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ed698112 1365 x_includes=$ac_optarg ;;
ee9dd372
TT
1366
1367 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1368 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1369 ac_prev=x_libraries ;;
1370 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1371 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ed698112 1372 x_libraries=$ac_optarg ;;
ee9dd372 1373
5213506e
RW
1374 -*) as_fn_error "unrecognized option: \`$ac_option'
1375Try \`$0 --help' for more information."
ee9dd372
TT
1376 ;;
1377
ed698112
NN
1378 *=*)
1379 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1380 # Reject names that are not valid shell variable names.
5213506e
RW
1381 case $ac_envvar in #(
1382 '' | [0-9]* | *[!_$as_cr_alnum]* )
1383 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1384 esac
1385 eval $ac_envvar=\$ac_optarg
ed698112
NN
1386 export $ac_envvar ;;
1387
ee9dd372 1388 *)
ed698112 1389 # FIXME: should be removed in autoconf 3.0.
5213506e 1390 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ed698112 1391 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1392 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ed698112 1393 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
ee9dd372
TT
1394 ;;
1395
1396 esac
1397done
1398
1399if test -n "$ac_prev"; then
ed698112 1400 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1401 as_fn_error "missing argument to $ac_option"
ee9dd372 1402fi
ee9dd372 1403
5213506e
RW
1404if test -n "$ac_unrecognized_opts"; then
1405 case $enable_option_checking in
1406 no) ;;
1407 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1408 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
ade710a5 1409 esac
5213506e 1410fi
ade710a5 1411
5213506e
RW
1412# Check all directory arguments for consistency.
1413for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1414 datadir sysconfdir sharedstatedir localstatedir includedir \
1415 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1416 libdir localedir mandir
ade710a5 1417do
5213506e
RW
1418 eval ac_val=\$$ac_var
1419 # Remove trailing slashes.
1420 case $ac_val in
1421 */ )
1422 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1423 eval $ac_var=\$ac_val;;
1424 esac
1425 # Be sure to have absolute directory names.
ade710a5 1426 case $ac_val in
5213506e
RW
1427 [\\/$]* | ?:[\\/]* ) continue;;
1428 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
ee9dd372 1429 esac
5213506e 1430 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
ee9dd372
TT
1431done
1432
ed698112
NN
1433# There might be people who depend on the old broken behavior: `$host'
1434# used to hold the argument of --host etc.
1435# FIXME: To remove some day.
1436build=$build_alias
1437host=$host_alias
1438target=$target_alias
1439
1440# FIXME: To remove some day.
1441if test "x$host_alias" != x; then
1442 if test "x$build_alias" = x; then
1443 cross_compiling=maybe
5213506e 1444 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ed698112
NN
1445 If a cross compiler is detected then cross compile mode will be used." >&2
1446 elif test "x$build_alias" != "x$host_alias"; then
1447 cross_compiling=yes
1448 fi
1449fi
ee9dd372 1450
ed698112
NN
1451ac_tool_prefix=
1452test -n "$host_alias" && ac_tool_prefix=$host_alias-
1453
1454test "$silent" = yes && exec 6>/dev/null
ee9dd372 1455
ee9dd372 1456
5213506e
RW
1457ac_pwd=`pwd` && test -n "$ac_pwd" &&
1458ac_ls_di=`ls -di .` &&
1459ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1460 as_fn_error "working directory cannot be determined"
1461test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1462 as_fn_error "pwd does not report name of working directory"
1463
1464
ee9dd372
TT
1465# Find the source files, if location was not specified.
1466if test -z "$srcdir"; then
1467 ac_srcdir_defaulted=yes
5213506e
RW
1468 # Try the directory containing this script, then the parent directory.
1469 ac_confdir=`$as_dirname -- "$as_myself" ||
1470$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1471 X"$as_myself" : 'X\(//\)[^/]' \| \
1472 X"$as_myself" : 'X\(//\)$' \| \
1473 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1474$as_echo X"$as_myself" |
1475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1476 s//\1/
1477 q
1478 }
1479 /^X\(\/\/\)[^/].*/{
1480 s//\1/
1481 q
1482 }
1483 /^X\(\/\/\)$/{
1484 s//\1/
1485 q
1486 }
1487 /^X\(\/\).*/{
1488 s//\1/
1489 q
1490 }
1491 s/.*/./; q'`
ee9dd372 1492 srcdir=$ac_confdir
5213506e 1493 if test ! -r "$srcdir/$ac_unique_file"; then
ee9dd372
TT
1494 srcdir=..
1495 fi
1496else
1497 ac_srcdir_defaulted=no
1498fi
5213506e
RW
1499if test ! -r "$srcdir/$ac_unique_file"; then
1500 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1501 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1502fi
1503ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1504ac_abs_confdir=`(
1505 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1506 pwd)`
1507# When building in place, set srcdir=.
1508if test "$ac_abs_confdir" = "$ac_pwd"; then
1509 srcdir=.
1510fi
1511# Remove unnecessary trailing slashes from srcdir.
1512# Double slashes in file names in object file debugging info
1513# mess up M-x gdb in Emacs.
1514case $srcdir in
1515*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1516esac
1517for ac_var in $ac_precious_vars; do
1518 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1519 eval ac_env_${ac_var}_value=\$${ac_var}
1520 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1521 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1522done
ed698112
NN
1523
1524#
1525# Report the --help message.
1526#
1527if test "$ac_init_help" = "long"; then
1528 # Omit some internal or obsolete options to make the list less imposing.
1529 # This message is too long to be a string in the A/UX 3.1 sh.
1530 cat <<_ACEOF
e3f92d3b 1531\`configure' configures libjava version-unused to adapt to many kinds of systems.
ed698112
NN
1532
1533Usage: $0 [OPTION]... [VAR=VALUE]...
1534
1535To assign environment variables (e.g., CC, CFLAGS...), specify them as
1536VAR=VALUE. See below for descriptions of some of the useful variables.
1537
1538Defaults for the options are specified in brackets.
1539
1540Configuration:
1541 -h, --help display this help and exit
1542 --help=short display options specific to this package
1543 --help=recursive display the short help of all the included packages
1544 -V, --version display version information and exit
1545 -q, --quiet, --silent do not print \`checking...' messages
1546 --cache-file=FILE cache test results in FILE [disabled]
1547 -C, --config-cache alias for \`--cache-file=config.cache'
1548 -n, --no-create do not create output files
1549 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1550
ed698112
NN
1551Installation directories:
1552 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1553 [$ac_default_prefix]
ed698112 1554 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1555 [PREFIX]
ed698112
NN
1556
1557By default, \`make install' will install all the files in
1558\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1559an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1560for instance \`--prefix=\$HOME'.
1561
1562For better control, use the options below.
1563
1564Fine tuning of the installation directories:
5213506e
RW
1565 --bindir=DIR user executables [EPREFIX/bin]
1566 --sbindir=DIR system admin executables [EPREFIX/sbin]
1567 --libexecdir=DIR program executables [EPREFIX/libexec]
1568 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1569 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1570 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1571 --libdir=DIR object code libraries [EPREFIX/lib]
1572 --includedir=DIR C header files [PREFIX/include]
1573 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1574 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1575 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1576 --infodir=DIR info documentation [DATAROOTDIR/info]
1577 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1578 --mandir=DIR man documentation [DATAROOTDIR/man]
1579 --docdir=DIR documentation root [DATAROOTDIR/doc/libjava]
1580 --htmldir=DIR html documentation [DOCDIR]
1581 --dvidir=DIR dvi documentation [DOCDIR]
1582 --pdfdir=DIR pdf documentation [DOCDIR]
1583 --psdir=DIR ps documentation [DOCDIR]
ed698112
NN
1584_ACEOF
1585
1586 cat <<\_ACEOF
1587
1588Program names:
1589 --program-prefix=PREFIX prepend PREFIX to installed program names
1590 --program-suffix=SUFFIX append SUFFIX to installed program names
1591 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1592
1593X features:
1594 --x-includes=DIR X include files are in DIR
1595 --x-libraries=DIR X library files are in DIR
1596
1597System types:
1598 --build=BUILD configure for building on BUILD [guessed]
1599 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1600 --target=TARGET configure for building compilers for TARGET [HOST]
1601_ACEOF
1602fi
1603
1604if test -n "$ac_init_help"; then
e3f92d3b
MK
1605 case $ac_init_help in
1606 short | recursive ) echo "Configuration of libjava version-unused:";;
1607 esac
ed698112
NN
1608 cat <<\_ACEOF
1609
1610Optional Features:
5213506e 1611 --disable-option-checking ignore unrecognized --enable/--with options
ed698112
NN
1612 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1613 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
8a489465 1614 --enable-multilib build many library versions (default)
ed698112 1615 --enable-version-specific-runtime-libs
aed6152d
NN
1616 specify that runtime libraries should be installed
1617 in a compiler-specific directory
34677bae 1618 --enable-browser-plugin build gcjwebplugin web browser plugin
ac1ed908 1619 --enable-gconf-peer compile GConf native peers for util.preferences
cd6d4007
MK
1620 --disable-gjdoc compile GJDoc (disabled by --disable-gjdoc)
1621 default=yes
97b8365c
TT
1622 --enable-java-maintainer-mode
1623 allow rebuilding of .class and .h files
e3f92d3b
MK
1624 --disable-dependency-tracking speeds up one-time build
1625 --enable-dependency-tracking do not reject slow dependency extractors
1626 --enable-maintainer-mode enable make rules and dependencies not useful
1627 (and sometimes confusing) to the casual installer
6a92b6c7 1628 --enable-libgcj-sublibs build libgcj as many sub-libraries
b0fa81ee
TT
1629 --enable-libgcj-debug enable runtime debugging code
1630 --enable-java-awt list of AWT peer implementations to be built
5213506e
RW
1631 --enable-shared[=PKGS] build shared libraries [default=yes]
1632 --enable-static[=PKGS] build static libraries [default=yes]
1cf3d07d
SE
1633 --enable-fast-install[=PKGS]
1634 optimize for fast installation [default=yes]
ed698112
NN
1635 --disable-libtool-lock avoid locking (might break parallel builds)
1636 --disable-getenv-properties
1637 don't set system properties from GCJ_PROPERTIES
1638 --enable-hash-synchronization
1639 use global hash table for monitor locks
a507baad
DD
1640 --enable-libgcj-bc enable(default) or disable BC ABI for portions of
1641 libgcj
c07cd2c7
DD
1642 --enable-reduced-reflection
1643 enable or disable(default) -freduced-reflection when
1644 building portions of libgcj
48d0dd75 1645 --enable-gc-debug include full support for pointer backtracing etc.
ed698112 1646 --enable-interpreter enable interpreter
aed6152d
NN
1647 --enable-sjlj-exceptions
1648 force use of builtin_setjmp for exceptions
ed698112
NN
1649 --disable-java-net disable java.net
1650 --disable-jvmpi disable JVMPI support
aed6152d 1651 --enable-java-gc=TYPE choose garbage collector (default is boehm)
5b7a26f6 1652 --disable-rpath do not hardcode runtime library paths
2fb31455 1653 --enable-tls Use thread-local storage [default=yes]
bf382f5f 1654 --disable-symvers disable symbol versioning for libjava
c9db365d
JS
1655 --enable-aot-compile-rpm
1656 enable installation of aot-compile-rpm [default=no]
1657 --enable-java-home create a standard JDK-style directory layout in the
1658 install tree [default=no]
ed698112
NN
1659
1660Optional Packages:
1661 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1662 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
57255173 1663 --with-build-libsubdir=DIR Directory where to find libraries for build system
ed698112 1664 --with-target-subdir=SUBDIR
aed6152d
NN
1665 configure in a subdirectory
1666 --with-cross-host=HOST configure with a cross compiler from HOST
1667 --with-newlib configure with newlib
cd6d4007 1668 --with-antlr-jar=file Use ANTLR from the specified jar file
97b8365c 1669 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
1cf3d07d
SE
1670 --with-pic try to use only PIC/non-PIC objects [default=use
1671 both]
1672 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
97b8365c 1673 --with-ecj-jar=FILE use preinstalled ecj jar
c33b7bf0
TF
1674 --with-java-home=DIRECTORY
1675 value of java.home system property
aed6152d
NN
1676 --with-win32-nlsapi=ansi or unicows or unicode
1677 native MinGW libgcj Win32 OS API (default is ansi)
ed698112
NN
1678 --without-libffi don't use libffi
1679 --with-ecos enable runtime eCos target support
1680 --with-system-zlib use installed libz
1681 --with-x use the X Window System
1cf3d07d 1682 --with-gnu-ld assume the C compiler uses GNU ld default=no
5b7a26f6
KC
1683 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1684 --without-libiconv-prefix don't search for libiconv in includedir and libdir
bc3f0248 1685 --with-system-libunwind use installed libunwind
c9db365d
JS
1686 --with-python-dir the location to install Python modules. This path
1687 should NOT include the prefix.
1688 --with-gcc-suffix the GCC tool suffix (defaults to empty string)
1689 --with-arch-directory the arch directory under jre/lib (defaults to
1690 auto-detect)
1691 --with-os-directory the os directory under include (defaults to
1692 auto-detect)
1693 --with-origin-name the JPackage origin name of this package (default is
1694 gcj${gcc_suffix}
1695 --with-arch-suffix the arch directory suffix (default is the empty
1696 string
1697 --with-jvm-root-dir where to install SDK (default is ${prefix}/lib/jvm)
1698 --with-jvm-jar-dir where to install jars (default is
1699 ${prefix}/lib/jvm-exports)
ed698112
NN
1700
1701Some influential environment variables:
1702 CC C compiler command
1703 CFLAGS C compiler flags
1704 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1705 nonstandard directory <lib dir>
5213506e
RW
1706 LIBS libraries to pass to the linker, e.g. -l<library>
1707 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1708 you have headers in a nonstandard directory <include dir>
ed698112
NN
1709 CXX C++ compiler command
1710 CXXFLAGS C++ compiler flags
ed698112 1711 CPP C preprocessor
1cf3d07d 1712 CXXCPP C++ preprocessor
5213506e 1713 XMKMF Path to xmkmf, Makefile generator for X Window System
ed698112
NN
1714
1715Use these variables to override the choices made by `configure' or to help
1716it to find libraries and programs with nonstandard names/locations.
1717
5213506e 1718Report bugs to the package provider.
ed698112 1719_ACEOF
5213506e 1720ac_status=$?
ed698112
NN
1721fi
1722
1723if test "$ac_init_help" = "recursive"; then
1724 # If there are subdirs, report their specific --help.
ed698112 1725 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1726 test -d "$ac_dir" ||
1727 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1728 continue
ed698112
NN
1729 ac_builddir=.
1730
5213506e
RW
1731case "$ac_dir" in
1732.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1733*)
1734 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1735 # A ".." for each directory in $ac_dir_suffix.
1736 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1737 case $ac_top_builddir_sub in
1738 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1739 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1740 esac ;;
1741esac
1742ac_abs_top_builddir=$ac_pwd
1743ac_abs_builddir=$ac_pwd$ac_dir_suffix
1744# for backward compatibility:
1745ac_top_builddir=$ac_top_build_prefix
ed698112
NN
1746
1747case $srcdir in
5213506e 1748 .) # We are building in place.
ed698112 1749 ac_srcdir=.
5213506e
RW
1750 ac_top_srcdir=$ac_top_builddir_sub
1751 ac_abs_top_srcdir=$ac_pwd ;;
1752 [\\/]* | ?:[\\/]* ) # Absolute name.
ed698112 1753 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1754 ac_top_srcdir=$srcdir
1755 ac_abs_top_srcdir=$srcdir ;;
1756 *) # Relative name.
1757 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1758 ac_top_srcdir=$ac_top_build_prefix$srcdir
1759 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ed698112 1760esac
5213506e 1761ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
ed698112 1762
5213506e
RW
1763 cd "$ac_dir" || { ac_status=$?; continue; }
1764 # Check for guested configure.
1765 if test -f "$ac_srcdir/configure.gnu"; then
1766 echo &&
1767 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1768 elif test -f "$ac_srcdir/configure"; then
1769 echo &&
1770 $SHELL "$ac_srcdir/configure" --help=recursive
ed698112 1771 else
5213506e
RW
1772 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1773 fi || ac_status=$?
1774 cd "$ac_pwd" || { ac_status=$?; break; }
ed698112
NN
1775 done
1776fi
1777
5213506e 1778test -n "$ac_init_help" && exit $ac_status
ed698112
NN
1779if $ac_init_version; then
1780 cat <<\_ACEOF
e3f92d3b 1781libjava configure version-unused
5213506e 1782generated by GNU Autoconf 2.64
ed698112 1783
5213506e 1784Copyright (C) 2009 Free Software Foundation, Inc.
ed698112
NN
1785This configure script is free software; the Free Software Foundation
1786gives unlimited permission to copy, distribute and modify it.
1787_ACEOF
5213506e 1788 exit
ed698112 1789fi
ed698112 1790
5213506e
RW
1791## ------------------------ ##
1792## Autoconf initialization. ##
1793## ------------------------ ##
ed698112 1794
5213506e
RW
1795# ac_fn_c_try_compile LINENO
1796# --------------------------
1797# Try to compile conftest.$ac_ext, and return whether this succeeded.
1798ac_fn_c_try_compile ()
ed698112 1799{
5213506e
RW
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 rm -f conftest.$ac_objext
1802 if { { ac_try="$ac_compile"
1803case "(($ac_try" in
1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1806esac
1807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808$as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_compile") 2>conftest.err
1810 ac_status=$?
1811 if test -s conftest.err; then
1812 grep -v '^ *+' conftest.err >conftest.er1
1813 cat conftest.er1 >&5
1814 mv -f conftest.er1 conftest.err
1815 fi
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; } && {
1818 test -z "$ac_c_werror_flag" ||
1819 test ! -s conftest.err
1820 } && test -s conftest.$ac_objext; then :
1821 ac_retval=0
1822else
1823 $as_echo "$as_me: failed program was:" >&5
1824sed 's/^/| /' conftest.$ac_ext >&5
ed698112 1825
5213506e
RW
1826 ac_retval=1
1827fi
1828 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1829 return $ac_retval
ed698112 1830
5213506e 1831} # ac_fn_c_try_compile
ed698112 1832
5213506e
RW
1833# ac_fn_cxx_try_compile LINENO
1834# ----------------------------
1835# Try to compile conftest.$ac_ext, and return whether this succeeded.
1836ac_fn_cxx_try_compile ()
1837{
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 rm -f conftest.$ac_objext
1840 if { { ac_try="$ac_compile"
1841case "(($ac_try" in
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1844esac
1845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846$as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_compile") 2>conftest.err
1848 ac_status=$?
1849 if test -s conftest.err; then
1850 grep -v '^ *+' conftest.err >conftest.er1
1851 cat conftest.er1 >&5
1852 mv -f conftest.er1 conftest.err
1853 fi
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; } && {
1856 test -z "$ac_cxx_werror_flag" ||
1857 test ! -s conftest.err
1858 } && test -s conftest.$ac_objext; then :
1859 ac_retval=0
1860else
1861 $as_echo "$as_me: failed program was:" >&5
1862sed 's/^/| /' conftest.$ac_ext >&5
1863
1864 ac_retval=1
1865fi
1866 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1867 return $ac_retval
1868
1869} # ac_fn_cxx_try_compile
1870
1871# ac_fn_c_try_link LINENO
1872# -----------------------
1873# Try to link conftest.$ac_ext, and return whether this succeeded.
1874ac_fn_c_try_link ()
1875{
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 rm -f conftest.$ac_objext conftest$ac_exeext
1878 if { { ac_try="$ac_link"
1879case "(($ac_try" in
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1882esac
1883eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884$as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_link") 2>conftest.err
1886 ac_status=$?
1887 if test -s conftest.err; then
1888 grep -v '^ *+' conftest.err >conftest.er1
1889 cat conftest.er1 >&5
1890 mv -f conftest.er1 conftest.err
1891 fi
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } && {
1894 test -z "$ac_c_werror_flag" ||
1895 test ! -s conftest.err
1896 } && test -s conftest$ac_exeext && {
1897 test "$cross_compiling" = yes ||
1898 $as_test_x conftest$ac_exeext
1899 }; then :
1900 ac_retval=0
1901else
1902 $as_echo "$as_me: failed program was:" >&5
1903sed 's/^/| /' conftest.$ac_ext >&5
1904
1905 ac_retval=1
1906fi
1907 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1908 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1909 # interfere with the next link command; also delete a directory that is
1910 # left behind by Apple's compiler. We do this before executing the actions.
1911 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1912 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1913 return $ac_retval
1914
1915} # ac_fn_c_try_link
1916
1917# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1918# -------------------------------------------------------
1919# Tests whether HEADER exists and can be compiled using the include files in
1920# INCLUDES, setting the cache variable VAR accordingly.
1921ac_fn_c_check_header_compile ()
1922{
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925$as_echo_n "checking for $2... " >&6; }
1926if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1927 $as_echo_n "(cached) " >&6
1928else
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930/* end confdefs.h. */
1931$4
1932#include <$2>
1933_ACEOF
1934if ac_fn_c_try_compile "$LINENO"; then :
1935 eval "$3=yes"
1936else
1937 eval "$3=no"
1938fi
1939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940fi
1941eval ac_res=\$$3
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943$as_echo "$ac_res" >&6; }
1944 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1945
1946} # ac_fn_c_check_header_compile
1947
1948# ac_fn_c_try_cpp LINENO
1949# ----------------------
1950# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1951ac_fn_c_try_cpp ()
1952{
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 if { { ac_try="$ac_cpp conftest.$ac_ext"
1955case "(($ac_try" in
1956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1957 *) ac_try_echo=$ac_try;;
1958esac
1959eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1960$as_echo "$ac_try_echo"; } >&5
1961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1962 ac_status=$?
1963 if test -s conftest.err; then
1964 grep -v '^ *+' conftest.err >conftest.er1
1965 cat conftest.er1 >&5
1966 mv -f conftest.er1 conftest.err
1967 fi
1968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1969 test $ac_status = 0; } >/dev/null && {
1970 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1971 test ! -s conftest.err
1972 }; then :
1973 ac_retval=0
1974else
1975 $as_echo "$as_me: failed program was:" >&5
1976sed 's/^/| /' conftest.$ac_ext >&5
1977
1978 ac_retval=1
1979fi
1980 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1981 return $ac_retval
1982
1983} # ac_fn_c_try_cpp
1984
1985# ac_fn_c_try_run LINENO
1986# ----------------------
1987# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1988# that executables *can* be run.
1989ac_fn_c_try_run ()
1990{
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 if { { ac_try="$ac_link"
1993case "(($ac_try" in
1994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1995 *) ac_try_echo=$ac_try;;
1996esac
1997eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1998$as_echo "$ac_try_echo"; } >&5
1999 (eval "$ac_link") 2>&5
2000 ac_status=$?
2001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2002 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2003 { { case "(($ac_try" in
2004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2005 *) ac_try_echo=$ac_try;;
2006esac
2007eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2008$as_echo "$ac_try_echo"; } >&5
2009 (eval "$ac_try") 2>&5
2010 ac_status=$?
2011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2012 test $ac_status = 0; }; }; then :
2013 ac_retval=0
2014else
2015 $as_echo "$as_me: program exited with status $ac_status" >&5
2016 $as_echo "$as_me: failed program was:" >&5
2017sed 's/^/| /' conftest.$ac_ext >&5
2018
2019 ac_retval=$ac_status
2020fi
2021 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2022 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2023 return $ac_retval
2024
2025} # ac_fn_c_try_run
2026
2027# ac_fn_c_check_func LINENO FUNC VAR
2028# ----------------------------------
2029# Tests whether FUNC exists, setting the cache variable VAR accordingly
2030ac_fn_c_check_func ()
2031{
2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2034$as_echo_n "checking for $2... " >&6; }
2035if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2036 $as_echo_n "(cached) " >&6
2037else
2038 if test x$gcc_no_link = xyes; then
2039 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2040fi
2041cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042/* end confdefs.h. */
2043/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2045#define $2 innocuous_$2
2046
2047/* System header to define __stub macros and hopefully few prototypes,
2048 which can conflict with char $2 (); below.
2049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2050 <limits.h> exists even on freestanding compilers. */
2051
2052#ifdef __STDC__
2053# include <limits.h>
2054#else
2055# include <assert.h>
2056#endif
2057
2058#undef $2
2059
2060/* Override any GCC internal prototype to avoid an error.
2061 Use char because int might match the return type of a GCC
2062 builtin and then its argument prototype would still apply. */
2063#ifdef __cplusplus
2064extern "C"
2065#endif
2066char $2 ();
2067/* The GNU C library defines this for functions which it implements
2068 to always fail with ENOSYS. Some functions are actually named
2069 something starting with __ and the normal name is an alias. */
2070#if defined __stub_$2 || defined __stub___$2
2071choke me
2072#endif
2073
2074int
2075main ()
2076{
2077return $2 ();
2078 ;
2079 return 0;
2080}
2081_ACEOF
2082if ac_fn_c_try_link "$LINENO"; then :
2083 eval "$3=yes"
2084else
2085 eval "$3=no"
2086fi
2087rm -f core conftest.err conftest.$ac_objext \
2088 conftest$ac_exeext conftest.$ac_ext
2089fi
2090eval ac_res=\$$3
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2092$as_echo "$ac_res" >&6; }
2093 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2094
2095} # ac_fn_c_check_func
2096
2097# ac_fn_cxx_try_cpp LINENO
2098# ------------------------
2099# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2100ac_fn_cxx_try_cpp ()
2101{
2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103 if { { ac_try="$ac_cpp conftest.$ac_ext"
2104case "(($ac_try" in
2105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106 *) ac_try_echo=$ac_try;;
2107esac
2108eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2109$as_echo "$ac_try_echo"; } >&5
2110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2111 ac_status=$?
2112 if test -s conftest.err; then
2113 grep -v '^ *+' conftest.err >conftest.er1
2114 cat conftest.er1 >&5
2115 mv -f conftest.er1 conftest.err
2116 fi
2117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2118 test $ac_status = 0; } >/dev/null && {
2119 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2120 test ! -s conftest.err
2121 }; then :
2122 ac_retval=0
2123else
2124 $as_echo "$as_me: failed program was:" >&5
2125sed 's/^/| /' conftest.$ac_ext >&5
2126
2127 ac_retval=1
2128fi
2129 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2130 return $ac_retval
2131
2132} # ac_fn_cxx_try_cpp
2133
2134# ac_fn_cxx_try_link LINENO
2135# -------------------------
2136# Try to link conftest.$ac_ext, and return whether this succeeded.
2137ac_fn_cxx_try_link ()
2138{
2139 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140 rm -f conftest.$ac_objext conftest$ac_exeext
2141 if { { ac_try="$ac_link"
2142case "(($ac_try" in
2143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2144 *) ac_try_echo=$ac_try;;
2145esac
2146eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2147$as_echo "$ac_try_echo"; } >&5
2148 (eval "$ac_link") 2>conftest.err
2149 ac_status=$?
2150 if test -s conftest.err; then
2151 grep -v '^ *+' conftest.err >conftest.er1
2152 cat conftest.er1 >&5
2153 mv -f conftest.er1 conftest.err
2154 fi
2155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2156 test $ac_status = 0; } && {
2157 test -z "$ac_cxx_werror_flag" ||
2158 test ! -s conftest.err
2159 } && test -s conftest$ac_exeext && {
2160 test "$cross_compiling" = yes ||
2161 $as_test_x conftest$ac_exeext
2162 }; then :
2163 ac_retval=0
2164else
2165 $as_echo "$as_me: failed program was:" >&5
2166sed 's/^/| /' conftest.$ac_ext >&5
2167
2168 ac_retval=1
2169fi
2170 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2171 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2172 # interfere with the next link command; also delete a directory that is
2173 # left behind by Apple's compiler. We do this before executing the actions.
2174 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2175 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2176 return $ac_retval
2177
2178} # ac_fn_cxx_try_link
2179
2180# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2181# -------------------------------------------------------
2182# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2183# the include files in INCLUDES and setting the cache variable VAR
2184# accordingly.
2185ac_fn_c_check_header_mongrel ()
2186{
2187 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2190$as_echo_n "checking for $2... " >&6; }
2191if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2192 $as_echo_n "(cached) " >&6
2193fi
2194eval ac_res=\$$3
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2196$as_echo "$ac_res" >&6; }
2197else
2198 # Is the header compilable?
2199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2200$as_echo_n "checking $2 usability... " >&6; }
2201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202/* end confdefs.h. */
2203$4
2204#include <$2>
2205_ACEOF
2206if ac_fn_c_try_compile "$LINENO"; then :
2207 ac_header_compiler=yes
2208else
2209 ac_header_compiler=no
2210fi
2211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2213$as_echo "$ac_header_compiler" >&6; }
2214
2215# Is the header present?
2216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2217$as_echo_n "checking $2 presence... " >&6; }
2218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219/* end confdefs.h. */
2220#include <$2>
2221_ACEOF
2222if ac_fn_c_try_cpp "$LINENO"; then :
2223 ac_header_preproc=yes
2224else
2225 ac_header_preproc=no
2226fi
2227rm -f conftest.err conftest.$ac_ext
2228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2229$as_echo "$ac_header_preproc" >&6; }
2230
2231# So? What about this header?
2232case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2233 yes:no: )
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2235$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2237$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2238 ;;
2239 no:yes:* )
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2241$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2243$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2245$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2247$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2249$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2250 ;;
2251esac
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2253$as_echo_n "checking for $2... " >&6; }
2254if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2255 $as_echo_n "(cached) " >&6
2256else
2257 eval "$3=\$ac_header_compiler"
2258fi
2259eval ac_res=\$$3
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2261$as_echo "$ac_res" >&6; }
2262fi
2263 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2264
2265} # ac_fn_c_check_header_mongrel
2266
2267# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2268# ----------------------------------------------------
2269# Tries to find if the field MEMBER exists in type AGGR, after including
2270# INCLUDES, setting cache variable VAR accordingly.
2271ac_fn_c_check_member ()
2272{
2273 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2275$as_echo_n "checking for $2.$3... " >&6; }
2276if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2277 $as_echo_n "(cached) " >&6
2278else
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280/* end confdefs.h. */
2281$5
2282int
2283main ()
2284{
2285static $2 ac_aggr;
2286if (ac_aggr.$3)
2287return 0;
2288 ;
2289 return 0;
2290}
2291_ACEOF
2292if ac_fn_c_try_compile "$LINENO"; then :
2293 eval "$4=yes"
2294else
2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296/* end confdefs.h. */
2297$5
2298int
2299main ()
2300{
2301static $2 ac_aggr;
2302if (sizeof ac_aggr.$3)
2303return 0;
2304 ;
2305 return 0;
2306}
2307_ACEOF
2308if ac_fn_c_try_compile "$LINENO"; then :
2309 eval "$4=yes"
2310else
2311 eval "$4=no"
2312fi
2313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2314fi
2315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2316fi
2317eval ac_res=\$$4
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2319$as_echo "$ac_res" >&6; }
2320 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2321
2322} # ac_fn_c_check_member
2323
2324# ac_fn_c_check_decl LINENO SYMBOL VAR
2325# ------------------------------------
2326# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2327ac_fn_c_check_decl ()
2328{
2329 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c3f247f4
RW
2330 as_decl_name=`echo $2|sed 's/ *(.*//'`
2331 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2333$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
5213506e
RW
2334if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2335 $as_echo_n "(cached) " >&6
2336else
2337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338/* end confdefs.h. */
2339$4
2340int
2341main ()
2342{
c3f247f4
RW
2343#ifndef $as_decl_name
2344#ifdef __cplusplus
2345 (void) $as_decl_use;
2346#else
2347 (void) $as_decl_name;
2348#endif
5213506e
RW
2349#endif
2350
2351 ;
2352 return 0;
2353}
2354_ACEOF
2355if ac_fn_c_try_compile "$LINENO"; then :
2356 eval "$3=yes"
2357else
2358 eval "$3=no"
2359fi
2360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2361fi
2362eval ac_res=\$$3
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2364$as_echo "$ac_res" >&6; }
2365 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2366
2367} # ac_fn_c_check_decl
2368
2369# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2370# --------------------------------------------
2371# Tries to find the compile-time value of EXPR in a program that includes
2372# INCLUDES, setting VAR accordingly. Returns whether the value could be
2373# computed
2374ac_fn_c_compute_int ()
2375{
2376 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2377 if test "$cross_compiling" = yes; then
2378 # Depending upon the size, compute the lo and hi bounds.
2379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2380/* end confdefs.h. */
2381$4
2382int
2383main ()
2384{
2385static int test_array [1 - 2 * !(($2) >= 0)];
2386test_array [0] = 0
2387
2388 ;
2389 return 0;
2390}
2391_ACEOF
2392if ac_fn_c_try_compile "$LINENO"; then :
2393 ac_lo=0 ac_mid=0
2394 while :; do
2395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2396/* end confdefs.h. */
2397$4
2398int
2399main ()
2400{
2401static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2402test_array [0] = 0
2403
2404 ;
2405 return 0;
2406}
2407_ACEOF
2408if ac_fn_c_try_compile "$LINENO"; then :
2409 ac_hi=$ac_mid; break
2410else
2411 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2412 if test $ac_lo -le $ac_mid; then
2413 ac_lo= ac_hi=
2414 break
2415 fi
2416 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2417fi
2418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2419 done
2420else
2421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2422/* end confdefs.h. */
2423$4
2424int
2425main ()
2426{
2427static int test_array [1 - 2 * !(($2) < 0)];
2428test_array [0] = 0
2429
2430 ;
2431 return 0;
2432}
2433_ACEOF
2434if ac_fn_c_try_compile "$LINENO"; then :
2435 ac_hi=-1 ac_mid=-1
2436 while :; do
2437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2438/* end confdefs.h. */
2439$4
2440int
2441main ()
2442{
2443static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2444test_array [0] = 0
2445
2446 ;
2447 return 0;
2448}
2449_ACEOF
2450if ac_fn_c_try_compile "$LINENO"; then :
2451 ac_lo=$ac_mid; break
2452else
2453 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2454 if test $ac_mid -le $ac_hi; then
2455 ac_lo= ac_hi=
2456 break
2457 fi
2458 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2459fi
2460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2461 done
2462else
2463 ac_lo= ac_hi=
2464fi
2465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2466fi
2467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2468# Binary search between lo and hi bounds.
2469while test "x$ac_lo" != "x$ac_hi"; do
2470 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2472/* end confdefs.h. */
2473$4
2474int
2475main ()
2476{
2477static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2478test_array [0] = 0
2479
2480 ;
2481 return 0;
2482}
2483_ACEOF
2484if ac_fn_c_try_compile "$LINENO"; then :
2485 ac_hi=$ac_mid
2486else
2487 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2488fi
2489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2490done
2491case $ac_lo in #((
2492?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2493'') ac_retval=1 ;;
2494esac
2495 else
2496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2497/* end confdefs.h. */
2498$4
2499static long int longval () { return $2; }
2500static unsigned long int ulongval () { return $2; }
2501#include <stdio.h>
2502#include <stdlib.h>
2503int
2504main ()
2505{
2506
2507 FILE *f = fopen ("conftest.val", "w");
2508 if (! f)
2509 return 1;
2510 if (($2) < 0)
2511 {
2512 long int i = longval ();
2513 if (i != ($2))
2514 return 1;
2515 fprintf (f, "%ld", i);
2516 }
2517 else
2518 {
2519 unsigned long int i = ulongval ();
2520 if (i != ($2))
2521 return 1;
2522 fprintf (f, "%lu", i);
2523 }
2524 /* Do not output a trailing newline, as this causes \r\n confusion
2525 on some platforms. */
2526 return ferror (f) || fclose (f) != 0;
2527
2528 ;
2529 return 0;
2530}
2531_ACEOF
2532if ac_fn_c_try_run "$LINENO"; then :
2533 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2534else
2535 ac_retval=1
2536fi
2537rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2538 conftest.$ac_objext conftest.beam conftest.$ac_ext
2539rm -f conftest.val
2540
2541 fi
2542 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2543 return $ac_retval
2544
2545} # ac_fn_c_compute_int
2546
2547# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2548# -------------------------------------------
2549# Tests whether TYPE exists after having included INCLUDES, setting cache
2550# variable VAR accordingly.
2551ac_fn_c_check_type ()
2552{
2553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2555$as_echo_n "checking for $2... " >&6; }
2556if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2557 $as_echo_n "(cached) " >&6
2558else
2559 eval "$3=no"
2560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2561/* end confdefs.h. */
2562$4
2563int
2564main ()
2565{
2566if (sizeof ($2))
2567 return 0;
2568 ;
2569 return 0;
2570}
2571_ACEOF
2572if ac_fn_c_try_compile "$LINENO"; then :
2573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2574/* end confdefs.h. */
2575$4
2576int
2577main ()
2578{
2579if (sizeof (($2)))
2580 return 0;
2581 ;
2582 return 0;
2583}
2584_ACEOF
2585if ac_fn_c_try_compile "$LINENO"; then :
2586
2587else
2588 eval "$3=yes"
2589fi
2590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2591fi
2592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2593fi
2594eval ac_res=\$$3
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2596$as_echo "$ac_res" >&6; }
2597 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2598
2599} # ac_fn_c_check_type
2600cat >config.log <<_ACEOF
2601This file contains any messages produced by compilers while
2602running configure, to aid debugging if configure makes a mistake.
2603
2604It was created by libjava $as_me version-unused, which was
2605generated by GNU Autoconf 2.64. Invocation command line was
2606
2607 $ $0 $@
2608
2609_ACEOF
2610exec 5>>config.log
2611{
2612cat <<_ASUNAME
2613## --------- ##
2614## Platform. ##
2615## --------- ##
2616
2617hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2618uname -m = `(uname -m) 2>/dev/null || echo unknown`
2619uname -r = `(uname -r) 2>/dev/null || echo unknown`
2620uname -s = `(uname -s) 2>/dev/null || echo unknown`
2621uname -v = `(uname -v) 2>/dev/null || echo unknown`
2622
2623/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2624/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2625
2626/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
ed698112
NN
2627/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2628/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 2629/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ed698112
NN
2630/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2631/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2632/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2633
2634_ASUNAME
2635
2636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637for as_dir in $PATH
2638do
2639 IFS=$as_save_IFS
2640 test -z "$as_dir" && as_dir=.
5213506e
RW
2641 $as_echo "PATH: $as_dir"
2642 done
2643IFS=$as_save_IFS
ed698112
NN
2644
2645} >&5
2646
2647cat >&5 <<_ACEOF
2648
2649
2650## ----------- ##
2651## Core tests. ##
2652## ----------- ##
2653
2654_ACEOF
2655
2656
2657# Keep a trace of the command line.
2658# Strip out --no-create and --no-recursion so they do not pile up.
2659# Strip out --silent because we don't want to record it for future runs.
2660# Also quote any args containing shell meta-characters.
2661# Make two passes to allow for proper duplicate-argument suppression.
2662ac_configure_args=
2663ac_configure_args0=
2664ac_configure_args1=
ed698112
NN
2665ac_must_keep_next=false
2666for ac_pass in 1 2
2667do
2668 for ac_arg
2669 do
2670 case $ac_arg in
2671 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2672 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2673 | -silent | --silent | --silen | --sile | --sil)
2674 continue ;;
5213506e
RW
2675 *\'*)
2676 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ed698112
NN
2677 esac
2678 case $ac_pass in
5213506e 2679 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
ed698112 2680 2)
5213506e 2681 as_fn_append ac_configure_args1 " '$ac_arg'"
ed698112
NN
2682 if test $ac_must_keep_next = true; then
2683 ac_must_keep_next=false # Got value, back to normal.
2684 else
2685 case $ac_arg in
2686 *=* | --config-cache | -C | -disable-* | --disable-* \
2687 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2688 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2689 | -with-* | --with-* | -without-* | --without-* | --x)
2690 case "$ac_configure_args0 " in
2691 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2692 esac
2693 ;;
2694 -* ) ac_must_keep_next=true ;;
2695 esac
2696 fi
5213506e 2697 as_fn_append ac_configure_args " '$ac_arg'"
ed698112
NN
2698 ;;
2699 esac
2700 done
2701done
5213506e
RW
2702{ ac_configure_args0=; unset ac_configure_args0;}
2703{ ac_configure_args1=; unset ac_configure_args1;}
ed698112
NN
2704
2705# When interrupted or exit'd, cleanup temporary files, and complete
2706# config.log. We remove comments because anyway the quotes in there
2707# would cause problems or look ugly.
5213506e
RW
2708# WARNING: Use '\'' to represent an apostrophe within the trap.
2709# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ed698112
NN
2710trap 'exit_status=$?
2711 # Save into config.log some information that might help in debugging.
2712 {
2713 echo
2714
2715 cat <<\_ASBOX
2716## ---------------- ##
2717## Cache variables. ##
2718## ---------------- ##
2719_ASBOX
2720 echo
2721 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2722(
2723 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2724 eval ac_val=\$$ac_var
2725 case $ac_val in #(
2726 *${as_nl}*)
2727 case $ac_var in #(
2728 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2729$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2730 esac
2731 case $ac_var in #(
2732 _ | IFS | as_nl) ;; #(
2733 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2734 *) { eval $ac_var=; unset $ac_var;} ;;
2735 esac ;;
2736 esac
2737 done
ed698112 2738 (set) 2>&1 |
5213506e
RW
2739 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2740 *${as_nl}ac_space=\ *)
ed698112 2741 sed -n \
5213506e
RW
2742 "s/'\''/'\''\\\\'\'''\''/g;
2743 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2744 ;; #(
ed698112 2745 *)
5213506e 2746 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ed698112 2747 ;;
5213506e
RW
2748 esac |
2749 sort
2750)
ed698112
NN
2751 echo
2752
2753 cat <<\_ASBOX
2754## ----------------- ##
2755## Output variables. ##
2756## ----------------- ##
2757_ASBOX
2758 echo
2759 for ac_var in $ac_subst_vars
2760 do
5213506e
RW
2761 eval ac_val=\$$ac_var
2762 case $ac_val in
2763 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2764 esac
2765 $as_echo "$ac_var='\''$ac_val'\''"
ed698112
NN
2766 done | sort
2767 echo
2768
2769 if test -n "$ac_subst_files"; then
2770 cat <<\_ASBOX
5213506e
RW
2771## ------------------- ##
2772## File substitutions. ##
2773## ------------------- ##
ed698112
NN
2774_ASBOX
2775 echo
2776 for ac_var in $ac_subst_files
2777 do
5213506e
RW
2778 eval ac_val=\$$ac_var
2779 case $ac_val in
2780 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2781 esac
2782 $as_echo "$ac_var='\''$ac_val'\''"
ed698112
NN
2783 done | sort
2784 echo
2785 fi
2786
2787 if test -s confdefs.h; then
2788 cat <<\_ASBOX
2789## ----------- ##
2790## confdefs.h. ##
2791## ----------- ##
2792_ASBOX
2793 echo
5213506e 2794 cat confdefs.h
ed698112
NN
2795 echo
2796 fi
2797 test "$ac_signal" != 0 &&
5213506e
RW
2798 $as_echo "$as_me: caught signal $ac_signal"
2799 $as_echo "$as_me: exit $exit_status"
ed698112 2800 } >&5
5213506e
RW
2801 rm -f core *.core core.conftest.* &&
2802 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ed698112 2803 exit $exit_status
5213506e 2804' 0
ed698112 2805for ac_signal in 1 2 13 15; do
5213506e 2806 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
ed698112
NN
2807done
2808ac_signal=0
2809
2810# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2811rm -f -r conftest* confdefs.h
2812
2813$as_echo "/* confdefs.h */" > confdefs.h
ed698112
NN
2814
2815# Predefined preprocessor variables.
2816
2817cat >>confdefs.h <<_ACEOF
2818#define PACKAGE_NAME "$PACKAGE_NAME"
2819_ACEOF
2820
ed698112
NN
2821cat >>confdefs.h <<_ACEOF
2822#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2823_ACEOF
2824
ed698112
NN
2825cat >>confdefs.h <<_ACEOF
2826#define PACKAGE_VERSION "$PACKAGE_VERSION"
2827_ACEOF
2828
ed698112
NN
2829cat >>confdefs.h <<_ACEOF
2830#define PACKAGE_STRING "$PACKAGE_STRING"
2831_ACEOF
2832
ed698112
NN
2833cat >>confdefs.h <<_ACEOF
2834#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2835_ACEOF
2836
5213506e
RW
2837cat >>confdefs.h <<_ACEOF
2838#define PACKAGE_URL "$PACKAGE_URL"
2839_ACEOF
2840
ed698112
NN
2841
2842# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2843# Prefer an explicitly selected file to automatically selected ones.
2844ac_site_file1=NONE
2845ac_site_file2=NONE
2846if test -n "$CONFIG_SITE"; then
2847 ac_site_file1=$CONFIG_SITE
2848elif test "x$prefix" != xNONE; then
2849 ac_site_file1=$prefix/share/config.site
2850 ac_site_file2=$prefix/etc/config.site
2851else
2852 ac_site_file1=$ac_default_prefix/share/config.site
2853 ac_site_file2=$ac_default_prefix/etc/config.site
2854fi
2855for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2856do
2857 test "x$ac_site_file" = xNONE && continue
ee9dd372 2858 if test -r "$ac_site_file"; then
5213506e
RW
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2860$as_echo "$as_me: loading site script $ac_site_file" >&6;}
ed698112 2861 sed 's/^/| /' "$ac_site_file" >&5
ee9dd372
TT
2862 . "$ac_site_file"
2863 fi
2864done
2865
2866if test -r "$cache_file"; then
ed698112
NN
2867 # Some versions of bash will fail to source /dev/null (special
2868 # files actually), so we avoid doing that.
2869 if test -f "$cache_file"; then
5213506e
RW
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2871$as_echo "$as_me: loading cache $cache_file" >&6;}
ed698112 2872 case $cache_file in
5213506e
RW
2873 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2874 *) . "./$cache_file";;
ed698112
NN
2875 esac
2876 fi
ee9dd372 2877else
5213506e
RW
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2879$as_echo "$as_me: creating cache $cache_file" >&6;}
ed698112
NN
2880 >$cache_file
2881fi
2882
2883# Check that the precious variables saved in the cache have kept the same
2884# value.
2885ac_cache_corrupted=false
5213506e 2886for ac_var in $ac_precious_vars; do
ed698112
NN
2887 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2888 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2889 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2890 eval ac_new_val=\$ac_env_${ac_var}_value
ed698112
NN
2891 case $ac_old_set,$ac_new_set in
2892 set,)
5213506e
RW
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2894$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ed698112
NN
2895 ac_cache_corrupted=: ;;
2896 ,set)
5213506e
RW
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2898$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ed698112
NN
2899 ac_cache_corrupted=: ;;
2900 ,);;
2901 *)
2902 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2903 # differences in whitespace do not lead to failure.
2904 ac_old_val_w=`echo x $ac_old_val`
2905 ac_new_val_w=`echo x $ac_new_val`
2906 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2908$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2909 ac_cache_corrupted=:
2910 else
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2912$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2913 eval $ac_var=\$ac_old_val
2914 fi
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2916$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2918$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
ed698112
NN
2919 fi;;
2920 esac
2921 # Pass precious variables to config.status.
2922 if test "$ac_new_set" = set; then
2923 case $ac_new_val in
5213506e 2924 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ed698112
NN
2925 *) ac_arg=$ac_var=$ac_new_val ;;
2926 esac
2927 case " $ac_configure_args " in
2928 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2929 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
ed698112
NN
2930 esac
2931 fi
2932done
2933if $ac_cache_corrupted; then
5213506e
RW
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2935$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2937$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2938 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
ee9dd372 2939fi
5213506e
RW
2940## -------------------- ##
2941## Main body of script. ##
2942## -------------------- ##
ee9dd372 2943
ade710a5
TF
2944ac_ext=c
2945ac_cpp='$CPP $CPPFLAGS'
2946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2948ac_compiler_gnu=$ac_cv_c_compiler_gnu
2949
ed698112
NN
2950
2951
2952
2953
2954
2955
2956
7f7ba9bf 2957ac_aux_dir=
5213506e
RW
2958for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2959 for ac_t in install-sh install.sh shtool; do
2960 if test -f "$ac_dir/$ac_t"; then
2961 ac_aux_dir=$ac_dir
2962 ac_install_sh="$ac_aux_dir/$ac_t -c"
2963 break 2
2964 fi
2965 done
7f7ba9bf
TT
2966done
2967if test -z "$ac_aux_dir"; then
5213506e 2968 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
7f7ba9bf 2969fi
5213506e
RW
2970
2971# These three variables are undocumented and unsupported,
2972# and are intended to be withdrawn in a future Autoconf release.
2973# They can cause serious problems if a builder's source tree is in a directory
2974# whose full name contains unusual characters.
2975ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2976ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2977ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2978
7f7ba9bf 2979
ed698112 2980# Make sure we can run config.sub.
5213506e
RW
2981$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2982 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2983
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2985$as_echo_n "checking build system type... " >&6; }
2986if test "${ac_cv_build+set}" = set; then :
2987 $as_echo_n "(cached) " >&6
2988else
2989 ac_build_alias=$build_alias
2990test "x$ac_build_alias" = x &&
2991 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2992test "x$ac_build_alias" = x &&
2993 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2994ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2995 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2996
2997fi
2998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2999$as_echo "$ac_cv_build" >&6; }
3000case $ac_cv_build in
3001*-*-*) ;;
3002*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3003esac
ed698112 3004build=$ac_cv_build
5213506e
RW
3005ac_save_IFS=$IFS; IFS='-'
3006set x $ac_cv_build
3007shift
3008build_cpu=$1
3009build_vendor=$2
3010shift; shift
3011# Remember, the first character of IFS is used to create $*,
3012# except with old shells:
3013build_os=$*
3014IFS=$ac_save_IFS
3015case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ed698112
NN
3016
3017
215c351a
PB
3018 case ${build_alias} in
3019 "") build_noncanonical=${build} ;;
3020 *) build_noncanonical=${build_alias} ;;
3021esac
3022
3023 case ${host_alias} in
3024 "") host_noncanonical=${build_noncanonical} ;;
3025 *) host_noncanonical=${host_alias} ;;
3026esac
3027
3028 case ${target_alias} in
3029 "") target_noncanonical=${host_noncanonical} ;;
3030 *) target_noncanonical=${target_alias} ;;
3031esac
3032
57255173
PB
3033
3034# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3035# have matching libraries, they should use host libraries: Makefile.tpl
3036# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3037# However, they still use the build modules, because the corresponding
3038# host modules (e.g. bison) are only built for the host when bootstrap
3039# finishes. So:
3040# - build_subdir is where we find build modules, and never changes.
3041# - build_libsubdir is where we find build libraries, and can be overridden.
3042
3043# Prefix 'build-' so this never conflicts with target_subdir.
215c351a 3044build_subdir="build-${build_noncanonical}"
57255173 3045
5213506e
RW
3046# Check whether --with-build-libsubdir was given.
3047if test "${with_build_libsubdir+set}" = set; then :
3048 withval=$with_build_libsubdir; build_libsubdir="$withval"
57255173
PB
3049else
3050 build_libsubdir="$build_subdir"
5213506e
RW
3051fi
3052
215c351a
PB
3053# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3054if ( test $srcdir = . && test -d gcc ) \
3055 || test -d $srcdir/../host-${host_noncanonical}; then
3056 host_subdir="host-${host_noncanonical}"
3057else
3058 host_subdir=.
3059fi
3060# No prefix.
3061target_subdir=${target_noncanonical}
3062
3063
3064# We use these options to decide which functions to include.
3065
5213506e
RW
3066# Check whether --with-target-subdir was given.
3067if test "${with_target_subdir+set}" = set; then :
3068 withval=$with_target_subdir;
3069fi
215c351a 3070
215c351a
PB
3071
3072# We may get other options which we don't document:
3073# --with-target-subdir, --with-multisrctop, --with-multisubdir
3074
8a489465
JH
3075# Find the rest of the source tree framework.
3076# Default to --enable-multilib
5213506e
RW
3077# Check whether --enable-multilib was given.
3078if test "${enable_multilib+set}" = set; then :
3079 enableval=$enable_multilib; case "$enableval" in
8a489465
JH
3080 yes) multilib=yes ;;
3081 no) multilib=no ;;
5213506e 3082 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
8a489465
JH
3083 esac
3084else
3085 multilib=yes
5213506e
RW
3086fi
3087
8a489465
JH
3088
3089# We may get other options which we leave undocumented:
3090# --with-target-subdir, --with-multisrctop, --with-multisubdir
3091# See config-ml.in if you want the gory details.
3092
3093if test "$srcdir" = "."; then
3094 if test "$with_target_subdir" != "."; then
3095 multi_basedir="$srcdir/$with_multisrctop../.."
215c351a 3096 else
8a489465 3097 multi_basedir="$srcdir/$with_multisrctop.."
215c351a
PB
3098 fi
3099else
8a489465 3100 multi_basedir="$srcdir/.."
215c351a
PB
3101fi
3102
8a489465
JH
3103
3104# Even if the default multilib is not a cross compilation,
3105# it may be that some of the other multilibs are.
3106if test $cross_compiling = no && test $multilib = yes \
3107 && test "x${with_multisubdir}" != x ; then
3108 cross_compiling=maybe
3109fi
3110
5213506e 3111ac_config_commands="$ac_config_commands default-1"
215c351a
PB
3112
3113
5213506e
RW
3114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3115$as_echo_n "checking host system type... " >&6; }
3116if test "${ac_cv_host+set}" = set; then :
3117 $as_echo_n "(cached) " >&6
ed698112 3118else
5213506e
RW
3119 if test "x$host_alias" = x; then
3120 ac_cv_host=$ac_cv_build
3121else
3122 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3123 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3124fi
ed698112
NN
3125
3126fi
5213506e
RW
3127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3128$as_echo "$ac_cv_host" >&6; }
3129case $ac_cv_host in
3130*-*-*) ;;
3131*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3132esac
ed698112 3133host=$ac_cv_host
5213506e
RW
3134ac_save_IFS=$IFS; IFS='-'
3135set x $ac_cv_host
3136shift
3137host_cpu=$1
3138host_vendor=$2
3139shift; shift
3140# Remember, the first character of IFS is used to create $*,
3141# except with old shells:
3142host_os=$*
3143IFS=$ac_save_IFS
3144case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ade710a5
TF
3145
3146
5213506e
RW
3147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3148$as_echo_n "checking target system type... " >&6; }
3149if test "${ac_cv_target+set}" = set; then :
3150 $as_echo_n "(cached) " >&6
ed698112 3151else
5213506e
RW
3152 if test "x$target_alias" = x; then
3153 ac_cv_target=$ac_cv_host
3154else
3155 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3156 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3157fi
ed698112
NN
3158
3159fi
5213506e
RW
3160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3161$as_echo "$ac_cv_target" >&6; }
3162case $ac_cv_target in
3163*-*-*) ;;
3164*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3165esac
ed698112 3166target=$ac_cv_target
5213506e
RW
3167ac_save_IFS=$IFS; IFS='-'
3168set x $ac_cv_target
3169shift
3170target_cpu=$1
3171target_vendor=$2
3172shift; shift
3173# Remember, the first character of IFS is used to create $*,
3174# except with old shells:
3175target_os=$*
3176IFS=$ac_save_IFS
3177case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
7f7ba9bf 3178
7f7ba9bf
TT
3179
3180# The aliases save the names the user supplied, while $host etc.
3181# will get canonicalized.
ed698112 3182test -n "$target_alias" &&
7f7ba9bf
TT
3183 test "$program_prefix$program_suffix$program_transform_name" = \
3184 NONENONEs,x,x, &&
3185 program_prefix=${target_alias}-
5213506e 3186
bc03b358
NN
3187 case ${build_alias} in
3188 "") build_noncanonical=${build} ;;
3189 *) build_noncanonical=${build_alias} ;;
3190esac
3191
bc03b358
NN
3192 case ${target_alias} in
3193 "") target_noncanonical=${host_noncanonical} ;;
3194 *) target_noncanonical=${target_alias} ;;
3195esac
3196
3197
60557047
MK
3198
3199
e1e953d9
L
3200
3201
3202
3203
3204 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
3205 -I\$(top_builddir)/../libstdc++-v3/include \
3206 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
3207 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
3208 LIBSTDCXX_RAW_CXX_LDFLAGS="\
4623df01 3209 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
e1e953d9
L
3210
3211
3212
3213
bc03b358
NN
3214# This works around the fact that libtool configuration may change LD
3215# for this particular configuration, but some shells, instead of
3216# keeping the changes in LD private, export them just because LD is
3217# exported.
3218ORIGINAL_LD_FOR_MULTILIBS=$LD
3219
5213506e
RW
3220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3221$as_echo_n "checking whether ln -s works... " >&6; }
ed698112
NN
3222LN_S=$as_ln_s
3223if test "$LN_S" = "ln -s"; then
5213506e
RW
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3225$as_echo "yes" >&6; }
bc03b358 3226else
5213506e
RW
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3228$as_echo "no, using $LN_S" >&6; }
bc03b358
NN
3229fi
3230
3231
3232# This works around an automake problem.
3233mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
3234
3235
ed698112 3236
5213506e
RW
3237# Check whether --with-cross-host was given.
3238if test "${with_cross_host+set}" = set; then :
3239 withval=$with_cross_host;
3240fi
ed698112 3241
bc03b358
NN
3242
3243
5213506e
RW
3244# Check whether --with-newlib was given.
3245if test "${with_newlib+set}" = set; then :
3246 withval=$with_newlib;
3247fi
bc03b358
NN
3248
3249
5213506e
RW
3250# Check whether --enable-version-specific-runtime-libs was given.
3251if test "${enable_version_specific_runtime_libs+set}" = set; then :
3252 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
bc03b358
NN
3253 yes) version_specific_libs=yes ;;
3254 no) version_specific_libs=no ;;
5213506e 3255 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
bc03b358
NN
3256 esac
3257else
3258 version_specific_libs=no
3259
5213506e
RW
3260fi
3261
bc03b358 3262
34677bae
MK
3263# Check whether --enable-browser-plugin was given.
3264if test "${enable_browser_plugin+set}" = set; then :
3265 enableval=$enable_browser_plugin; case "$enableval" in
3266 yes) browser_plugin_enabled=yes ;;
3267 no) browser_plugin_enabled=no ;;
3268 *) as_fn_error "Unknown argument to enable/disable browser plugin" "$LINENO" 5;;
648e8d6d
TF
3269 esac
3270else
34677bae 3271 browser_plugin_enabled=no
648e8d6d 3272
5213506e
RW
3273fi
3274
648e8d6d 3275
5213506e
RW
3276# Check whether --enable-gconf-peer was given.
3277if test "${enable_gconf_peer+set}" = set; then :
3278 enableval=$enable_gconf_peer; case "$enableval" in
ac1ed908
MW
3279 yes) gconf_enabled=yes ;;
3280 no) gconf_enabled=no ;;
5213506e 3281 *) as_fn_error "Unknown argument to enable/disable gconf-peer" "$LINENO" 5;;
ac1ed908
MW
3282 esac
3283else
3284 gconf_enabled=no
3285
5213506e 3286fi
ac1ed908 3287
cd6d4007 3288
cd6d4007 3289
5213506e
RW
3290# Check whether --with-antlr-jar was given.
3291if test "${with_antlr_jar+set}" = set; then :
3292 withval=$with_antlr_jar;
cd6d4007
MK
3293 ANTLR_JAR=$withval
3294
3295else
3296
3297 ANTLR_JAR=
3298
5213506e 3299fi
cd6d4007 3300
5213506e
RW
3301
3302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr.jar" >&5
3303$as_echo_n "checking for antlr.jar... " >&6; }
cd6d4007
MK
3304if test "x$ANTLR_JAR" = x; then
3305 for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
3306 /usr/share/antlr/lib /usr/share/java /usr/lib;
3307 do
3308 if test -f "$antlr_lib_home/antlr.jar"; then
3309 # FIXME: version check for antlr needed without using a VM
3310 ANTLR_JAR="$antlr_lib_home/antlr.jar"
3311 break
3312 fi
3313 done
3314 if test "x$ANTLR_JAR" = x; then
5213506e
RW
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
3316$as_echo "not found" >&6; }
cd6d4007 3317 else
5213506e
RW
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3319$as_echo "$ANTLR_JAR" >&6; }
cd6d4007
MK
3320 fi
3321else
3322 if test -f "${ANTLR_JAR}"; then
5213506e
RW
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3324$as_echo "$ANTLR_JAR" >&6; }
cd6d4007 3325 else
5213506e 3326 as_fn_error "antlr jar file not found: $ANTLR_JAR" "$LINENO" 5
cd6d4007
MK
3327 fi
3328fi
3329
3330
5213506e
RW
3331# Check whether --enable-gjdoc was given.
3332if test "${enable_gjdoc+set}" = set; then :
3333 enableval=$enable_gjdoc; case "${enableval}" in
cd6d4007
MK
3334 yes) BUILD_GJDOC=yes ;;
3335 no) BUILD_GJDOC=no ;;
3336 *) BUILD_GJDOC=yes ;;
3337 esac
3338else
3339 BUILD_GJDOC=maybe
5213506e
RW
3340fi
3341
cd6d4007 3342
5213506e
RW
3343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gjdoc" >&5
3344$as_echo_n "checking whether to build gjdoc... " >&6; }
cd6d4007
MK
3345if test "x$BUILD_GJDOC" = xmaybe; then
3346 if test -f "${ANTLR_JAR}"; then
3347 BUILD_GJDOC=yes
5213506e
RW
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3349$as_echo "yes" >&6; }
cd6d4007
MK
3350 else
3351 BUILD_GJDOC=no
5213506e
RW
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, antlr.jar not found" >&5
3353$as_echo "no, antlr.jar not found" >&6; }
cd6d4007
MK
3354 fi
3355else
5213506e
RW
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_GJDOC" >&5
3357$as_echo "$BUILD_GJDOC" >&6; }
cd6d4007 3358fi
5213506e 3359 if test "x${BUILD_GJDOC}" = xyes; then
cd6d4007
MK
3360 CREATE_GJDOC_TRUE=
3361 CREATE_GJDOC_FALSE='#'
3362else
3363 CREATE_GJDOC_TRUE='#'
3364 CREATE_GJDOC_FALSE=
3365fi
3366
3367
5213506e
RW
3368# Check whether --enable-java-maintainer-mode was given.
3369if test "${enable_java_maintainer_mode+set}" = set; then :
3370 enableval=$enable_java_maintainer_mode;
3371fi
97b8365c 3372
5213506e 3373 if test "$enable_java_maintainer_mode" = yes; then
97b8365c
TT
3374 JAVA_MAINTAINER_MODE_TRUE=
3375 JAVA_MAINTAINER_MODE_FALSE='#'
3376else
3377 JAVA_MAINTAINER_MODE_TRUE='#'
3378 JAVA_MAINTAINER_MODE_FALSE=
3379fi
3380
3381
aed6152d 3382# It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
bc03b358 3383
ee9dd372 3384
a5d28a12 3385# For libstdc++-v3, -fno-builtin must be present here so that a
ed698112
NN
3386# non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
3387# used in later tests. This may not be necessary in libjava; I don't know.
ed698112
NN
3388save_CXXFLAGS="$CXXFLAGS"
3389CXXFLAGS="$CXXFLAGS -fno-builtin"
3390ac_ext=c
3391ac_cpp='$CPP $CPPFLAGS'
3392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394ac_compiler_gnu=$ac_cv_c_compiler_gnu
3395if test -n "$ac_tool_prefix"; then
3396 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3397set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3399$as_echo_n "checking for $ac_word... " >&6; }
3400if test "${ac_cv_prog_CC+set}" = set; then :
3401 $as_echo_n "(cached) " >&6
ed698112
NN
3402else
3403 if test -n "$CC"; then
3404 ac_cv_prog_CC="$CC" # Let the user override the test.
3405else
3406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407for as_dir in $PATH
3408do
3409 IFS=$as_save_IFS
3410 test -z "$as_dir" && as_dir=.
5213506e
RW
3411 for ac_exec_ext in '' $ac_executable_extensions; do
3412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ed698112 3413 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112
NN
3415 break 2
3416 fi
3417done
5213506e
RW
3418 done
3419IFS=$as_save_IFS
ee9dd372 3420
ed698112
NN
3421fi
3422fi
3423CC=$ac_cv_prog_CC
3424if test -n "$CC"; then
5213506e
RW
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3426$as_echo "$CC" >&6; }
ed698112 3427else
5213506e
RW
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3429$as_echo "no" >&6; }
ed698112 3430fi
54ce7452 3431
5213506e 3432
ed698112
NN
3433fi
3434if test -z "$ac_cv_prog_CC"; then
3435 ac_ct_CC=$CC
3436 # Extract the first word of "gcc", so it can be a program name with args.
ee9dd372 3437set dummy gcc; ac_word=$2
5213506e
RW
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3439$as_echo_n "checking for $ac_word... " >&6; }
3440if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3441 $as_echo_n "(cached) " >&6
ed698112
NN
3442else
3443 if test -n "$ac_ct_CC"; then
3444 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3445else
3446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447for as_dir in $PATH
3448do
3449 IFS=$as_save_IFS
3450 test -z "$as_dir" && as_dir=.
5213506e
RW
3451 for ac_exec_ext in '' $ac_executable_extensions; do
3452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ed698112 3453 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112
NN
3455 break 2
3456 fi
3457done
5213506e
RW
3458 done
3459IFS=$as_save_IFS
ed698112
NN
3460
3461fi
3462fi
3463ac_ct_CC=$ac_cv_prog_ac_ct_CC
3464if test -n "$ac_ct_CC"; then
5213506e
RW
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3466$as_echo "$ac_ct_CC" >&6; }
ed698112 3467else
5213506e
RW
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469$as_echo "no" >&6; }
ed698112
NN
3470fi
3471
5213506e
RW
3472 if test "x$ac_ct_CC" = x; then
3473 CC=""
3474 else
3475 case $cross_compiling:$ac_tool_warned in
3476yes:)
3477{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3478$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3479ac_tool_warned=yes ;;
3480esac
3481 CC=$ac_ct_CC
3482 fi
ed698112
NN
3483else
3484 CC="$ac_cv_prog_CC"
3485fi
3486
3487if test -z "$CC"; then
5213506e
RW
3488 if test -n "$ac_tool_prefix"; then
3489 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ed698112 3490set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3492$as_echo_n "checking for $ac_word... " >&6; }
3493if test "${ac_cv_prog_CC+set}" = set; then :
3494 $as_echo_n "(cached) " >&6
ee9dd372
TT
3495else
3496 if test -n "$CC"; then
3497 ac_cv_prog_CC="$CC" # Let the user override the test.
3498else
ed698112
NN
3499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500for as_dir in $PATH
3501do
3502 IFS=$as_save_IFS
3503 test -z "$as_dir" && as_dir=.
5213506e
RW
3504 for ac_exec_ext in '' $ac_executable_extensions; do
3505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ed698112 3506 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112
NN
3508 break 2
3509 fi
3510done
5213506e
RW
3511 done
3512IFS=$as_save_IFS
ed698112 3513
ee9dd372
TT
3514fi
3515fi
ed698112 3516CC=$ac_cv_prog_CC
ee9dd372 3517if test -n "$CC"; then
5213506e
RW
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3519$as_echo "$CC" >&6; }
ed698112 3520else
5213506e
RW
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3522$as_echo "no" >&6; }
ed698112
NN
3523fi
3524
ade710a5 3525
5213506e 3526 fi
ed698112 3527fi
ee9dd372
TT
3528if test -z "$CC"; then
3529 # Extract the first word of "cc", so it can be a program name with args.
3530set dummy cc; ac_word=$2
5213506e
RW
3531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3532$as_echo_n "checking for $ac_word... " >&6; }
3533if test "${ac_cv_prog_CC+set}" = set; then :
3534 $as_echo_n "(cached) " >&6
ee9dd372
TT
3535else
3536 if test -n "$CC"; then
3537 ac_cv_prog_CC="$CC" # Let the user override the test.
3538else
ee9dd372 3539 ac_prog_rejected=no
ed698112
NN
3540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541for as_dir in $PATH
3542do
3543 IFS=$as_save_IFS
3544 test -z "$as_dir" && as_dir=.
5213506e
RW
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ed698112
NN
3547 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3548 ac_prog_rejected=yes
3549 continue
3550 fi
3551 ac_cv_prog_CC="cc"
5213506e 3552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112
NN
3553 break 2
3554 fi
3555done
5213506e
RW
3556 done
3557IFS=$as_save_IFS
ed698112 3558
ee9dd372
TT
3559if test $ac_prog_rejected = yes; then
3560 # We found a bogon in the path, so make sure we never use it.
3561 set dummy $ac_cv_prog_CC
3562 shift
ed698112 3563 if test $# != 0; then
ee9dd372
TT
3564 # We chose a different compiler from the bogus one.
3565 # However, it has the same basename, so the bogon will be chosen
3566 # first if we set CC to just the basename; use the full file name.
3567 shift
ed698112 3568 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
ee9dd372
TT
3569 fi
3570fi
3571fi
3572fi
ed698112 3573CC=$ac_cv_prog_CC
ee9dd372 3574if test -n "$CC"; then
5213506e
RW
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3576$as_echo "$CC" >&6; }
ee9dd372 3577else
5213506e
RW
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579$as_echo "no" >&6; }
ee9dd372
TT
3580fi
3581
5213506e 3582
ed698112
NN
3583fi
3584if test -z "$CC"; then
3585 if test -n "$ac_tool_prefix"; then
5213506e 3586 for ac_prog in cl.exe
ed698112
NN
3587 do
3588 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3589set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
3590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591$as_echo_n "checking for $ac_word... " >&6; }
3592if test "${ac_cv_prog_CC+set}" = set; then :
3593 $as_echo_n "(cached) " >&6
158a8e6b
AO
3594else
3595 if test -n "$CC"; then
3596 ac_cv_prog_CC="$CC" # Let the user override the test.
3597else
ed698112
NN
3598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599for as_dir in $PATH
3600do
3601 IFS=$as_save_IFS
3602 test -z "$as_dir" && as_dir=.
5213506e
RW
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ed698112 3605 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 3606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112
NN
3607 break 2
3608 fi
3609done
5213506e
RW
3610 done
3611IFS=$as_save_IFS
ed698112 3612
158a8e6b
AO
3613fi
3614fi
ed698112 3615CC=$ac_cv_prog_CC
158a8e6b 3616if test -n "$CC"; then
5213506e
RW
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3618$as_echo "$CC" >&6; }
158a8e6b 3619else
5213506e
RW
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621$as_echo "no" >&6; }
158a8e6b 3622fi
ed698112 3623
5213506e 3624
ed698112
NN
3625 test -n "$CC" && break
3626 done
3627fi
3628if test -z "$CC"; then
3629 ac_ct_CC=$CC
5213506e 3630 for ac_prog in cl.exe
ed698112
NN
3631do
3632 # Extract the first word of "$ac_prog", so it can be a program name with args.
3633set dummy $ac_prog; ac_word=$2
5213506e
RW
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3635$as_echo_n "checking for $ac_word... " >&6; }
3636if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3637 $as_echo_n "(cached) " >&6
ed698112
NN
3638else
3639 if test -n "$ac_ct_CC"; then
3640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3641else
3642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643for as_dir in $PATH
3644do
3645 IFS=$as_save_IFS
3646 test -z "$as_dir" && as_dir=.
5213506e
RW
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ed698112 3649 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 3650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112 3651 break 2
158a8e6b 3652 fi
ed698112 3653done
5213506e
RW
3654 done
3655IFS=$as_save_IFS
ed698112
NN
3656
3657fi
3658fi
3659ac_ct_CC=$ac_cv_prog_ac_ct_CC
3660if test -n "$ac_ct_CC"; then
5213506e
RW
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3662$as_echo "$ac_ct_CC" >&6; }
ed698112 3663else
5213506e
RW
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665$as_echo "no" >&6; }
ee9dd372
TT
3666fi
3667
5213506e 3668
ed698112
NN
3669 test -n "$ac_ct_CC" && break
3670done
3671
5213506e
RW
3672 if test "x$ac_ct_CC" = x; then
3673 CC=""
3674 else
3675 case $cross_compiling:$ac_tool_warned in
3676yes:)
3677{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3678$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3679ac_tool_warned=yes ;;
3680esac
3681 CC=$ac_ct_CC
3682 fi
ed698112
NN
3683fi
3684
3685fi
3686
3687
5213506e
RW
3688test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3689$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3690as_fn_error "no acceptable C compiler found in \$PATH
3691See \`config.log' for more details." "$LINENO" 5; }
ed698112
NN
3692
3693# Provide some information about the compiler.
5213506e
RW
3694$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3695set X $ac_compile
3696ac_compiler=$2
3697for ac_option in --version -v -V -qversion; do
3698 { { ac_try="$ac_compiler $ac_option >&5"
3699case "(($ac_try" in
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3702esac
3703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3704$as_echo "$ac_try_echo"; } >&5
3705 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ed698112 3706 ac_status=$?
5213506e
RW
3707 if test -s conftest.err; then
3708 sed '10a\
3709... rest of stderr output deleted ...
3710 10q' conftest.err >conftest.er1
3711 cat conftest.er1 >&5
3712 rm -f conftest.er1 conftest.err
3713 fi
3714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3715 test $ac_status = 0; }
3716done
ed698112 3717
5213506e 3718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ed698112
NN
3719/* end confdefs.h. */
3720
3721int
3722main ()
3723{
3724
3725 ;
3726 return 0;
3727}
3728_ACEOF
3729# FIXME: Cleanup?
5213506e 3730if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ed698112
NN
3731 (eval $ac_link) 2>&5
3732 ac_status=$?
5213506e
RW
3733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3734 test $ac_status = 0; }; then :
ed698112
NN
3735 gcc_no_link=no
3736else
3737 gcc_no_link=yes
3738fi
ed698112
NN
3739if test x$gcc_no_link = xyes; then
3740 # Setting cross_compile will disable run tests; it will
3741 # also disable AC_CHECK_FILE but that's generally
3742 # correct if we can't link.
3743 cross_compiling=yes
3744 EXEEXT=
3745else
5213506e 3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ed698112
NN
3747/* end confdefs.h. */
3748
3749int
3750main ()
3751{
158a8e6b 3752
ed698112
NN
3753 ;
3754 return 0;
3755}
3756_ACEOF
3757ac_clean_files_save=$ac_clean_files
5213506e 3758ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
ed698112
NN
3759# Try to create an executable without -o first, disregard a.out.
3760# It will help us diagnose broken compilers, and finding out an intuition
3761# of exeext.
5213506e
RW
3762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3763$as_echo_n "checking for C compiler default output file name... " >&6; }
3764ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3765
3766# The possible output files:
3767ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3768
3769ac_rmfiles=
3770for ac_file in $ac_files
3771do
3772 case $ac_file in
3773 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3774 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3775 esac
3776done
3777rm -f $ac_rmfiles
3778
3779if { { ac_try="$ac_link_default"
3780case "(($ac_try" in
3781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782 *) ac_try_echo=$ac_try;;
3783esac
3784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3785$as_echo "$ac_try_echo"; } >&5
3786 (eval "$ac_link_default") 2>&5
3787 ac_status=$?
3788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3789 test $ac_status = 0; }; then :
3790 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3791# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3792# in a Makefile. We should not override ac_cv_exeext if it was cached,
3793# so that the user can short-circuit this test for compilers unknown to
3794# Autoconf.
3795for ac_file in $ac_files ''
ed698112
NN
3796do
3797 test -f "$ac_file" || continue
3798 case $ac_file in
5213506e 3799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
ade710a5
TF
3800 ;;
3801 [ab].out )
3802 # We found the default executable, but exeext='' is most
3803 # certainly right.
3804 break;;
3805 *.* )
5213506e
RW
3806 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3807 then :; else
3808 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3809 fi
3810 # We set ac_cv_exeext here because the later test for it is not
3811 # safe: cross compilers may not add the suffix if given an `-o'
3812 # argument, so we may need to know it at that point already.
3813 # Even if this section looks crufty: it has the advantage of
3814 # actually working.
ade710a5
TF
3815 break;;
3816 * )
3817 break;;
ed698112
NN
3818 esac
3819done
5213506e
RW
3820test "$ac_cv_exeext" = no && ac_cv_exeext=
3821
ee9dd372 3822else
5213506e
RW
3823 ac_file=''
3824fi
3825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3826$as_echo "$ac_file" >&6; }
3827if test -z "$ac_file"; then :
3828 $as_echo "$as_me: failed program was:" >&5
ed698112
NN
3829sed 's/^/| /' conftest.$ac_ext >&5
3830
5213506e
RW
3831{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3832$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3833{ as_fn_set_status 77
3834as_fn_error "C compiler cannot create executables
3835See \`config.log' for more details." "$LINENO" 5; }; }
ed698112 3836fi
ade710a5 3837ac_exeext=$ac_cv_exeext
ade710a5 3838
5213506e 3839# Check that the compiler produces executables we can run. If not, either
ed698112 3840# the compiler is broken, or we cross compile.
5213506e
RW
3841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3842$as_echo_n "checking whether the C compiler works... " >&6; }
ed698112
NN
3843# If not cross compiling, check that we can run a simple program.
3844if test "$cross_compiling" != yes; then
3845 if { ac_try='./$ac_file'
5213506e
RW
3846 { { case "(($ac_try" in
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3849esac
3850eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3851$as_echo "$ac_try_echo"; } >&5
3852 (eval "$ac_try") 2>&5
ed698112 3853 ac_status=$?
5213506e
RW
3854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3855 test $ac_status = 0; }; }; then
ed698112
NN
3856 cross_compiling=no
3857 else
3858 if test "$cross_compiling" = maybe; then
3859 cross_compiling=yes
3860 else
5213506e
RW
3861 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3862$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3863as_fn_error "cannot run C compiled programs.
ed698112 3864If you meant to cross compile, use \`--host'.
5213506e 3865See \`config.log' for more details." "$LINENO" 5; }
ed698112
NN
3866 fi
3867 fi
3868fi
5213506e
RW
3869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3870$as_echo "yes" >&6; }
ed698112 3871
5213506e 3872rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
ade710a5 3873ac_clean_files=$ac_clean_files_save
5213506e 3874# Check that the compiler produces executables we can run. If not, either
ade710a5 3875# the compiler is broken, or we cross compile.
5213506e
RW
3876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3877$as_echo_n "checking whether we are cross compiling... " >&6; }
3878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3879$as_echo "$cross_compiling" >&6; }
3880
3881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3882$as_echo_n "checking for suffix of executables... " >&6; }
3883if { { ac_try="$ac_link"
3884case "(($ac_try" in
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3887esac
3888eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3889$as_echo "$ac_try_echo"; } >&5
3890 (eval "$ac_link") 2>&5
ed698112 3891 ac_status=$?
5213506e
RW
3892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3893 test $ac_status = 0; }; then :
ade710a5
TF
3894 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3895# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3896# work properly (i.e., refer to `conftest.exe'), while it won't with
3897# `rm'.
3898for ac_file in conftest.exe conftest conftest.*; do
3899 test -f "$ac_file" || continue
3900 case $ac_file in
5213506e 3901 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
ade710a5 3902 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ade710a5
TF
3903 break;;
3904 * ) break;;
3905 esac
3906done
ee9dd372 3907else
5213506e
RW
3908 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3909$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3910as_fn_error "cannot compute suffix of executables: cannot compile and link
3911See \`config.log' for more details." "$LINENO" 5; }
ee9dd372 3912fi
ade710a5 3913rm -f conftest$ac_cv_exeext
5213506e
RW
3914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3915$as_echo "$ac_cv_exeext" >&6; }
ed698112 3916
ade710a5 3917rm -f conftest.$ac_ext
ed698112
NN
3918EXEEXT=$ac_cv_exeext
3919ac_exeext=$EXEEXT
ade710a5 3920fi
5213506e
RW
3921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3922$as_echo_n "checking for suffix of object files... " >&6; }
3923if test "${ac_cv_objext+set}" = set; then :
3924 $as_echo_n "(cached) " >&6
ed698112 3925else
5213506e 3926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ade710a5
TF
3927/* end confdefs.h. */
3928
3929int
3930main ()
3931{
3932
3933 ;
3934 return 0;
3935}
3936_ACEOF
3937rm -f conftest.o conftest.obj
5213506e
RW
3938if { { ac_try="$ac_compile"
3939case "(($ac_try" in
3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941 *) ac_try_echo=$ac_try;;
3942esac
3943eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3944$as_echo "$ac_try_echo"; } >&5
3945 (eval "$ac_compile") 2>&5
3946 ac_status=$?
3947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3948 test $ac_status = 0; }; then :
3949 for ac_file in conftest.o conftest.obj conftest.*; do
3950 test -f "$ac_file" || continue;
ed698112 3951 case $ac_file in
5213506e 3952 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
ed698112
NN
3953 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3954 break;;
3955 esac
3956done
158a8e6b 3957else
5213506e 3958 $as_echo "$as_me: failed program was:" >&5
ed698112
NN
3959sed 's/^/| /' conftest.$ac_ext >&5
3960
5213506e
RW
3961{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3962$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3963as_fn_error "cannot compute suffix of object files: cannot compile
3964See \`config.log' for more details." "$LINENO" 5; }
158a8e6b 3965fi
ade710a5 3966rm -f conftest.$ac_cv_objext conftest.$ac_ext
ed698112 3967fi
5213506e
RW
3968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3969$as_echo "$ac_cv_objext" >&6; }
ed698112
NN
3970OBJEXT=$ac_cv_objext
3971ac_objext=$OBJEXT
5213506e
RW
3972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3973$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3974if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3975 $as_echo_n "(cached) " >&6
ed698112 3976else
5213506e 3977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ed698112
NN
3978/* end confdefs.h. */
3979
3980int
3981main ()
3982{
3983#ifndef __GNUC__
3984 choke me
3985#endif
3986
3987 ;
3988 return 0;
3989}
3990_ACEOF
5213506e 3991if ac_fn_c_try_compile "$LINENO"; then :
ed698112
NN
3992 ac_compiler_gnu=yes
3993else
5213506e 3994 ac_compiler_gnu=no
ed698112 3995fi
5213506e 3996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ed698112
NN
3997ac_cv_c_compiler_gnu=$ac_compiler_gnu
3998
3999fi
5213506e
RW
4000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4001$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4002if test $ac_compiler_gnu = yes; then
4003 GCC=yes
4004else
4005 GCC=
4006fi
ed698112
NN
4007ac_test_CFLAGS=${CFLAGS+set}
4008ac_save_CFLAGS=$CFLAGS
5213506e
RW
4009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4010$as_echo_n "checking whether $CC accepts -g... " >&6; }
4011if test "${ac_cv_prog_cc_g+set}" = set; then :
4012 $as_echo_n "(cached) " >&6
4013else
4014 ac_save_c_werror_flag=$ac_c_werror_flag
4015 ac_c_werror_flag=yes
4016 ac_cv_prog_cc_g=no
4017 CFLAGS="-g"
4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ed698112
NN
4019/* end confdefs.h. */
4020
4021int
4022main ()
4023{
4024
4025 ;
4026 return 0;
4027}
4028_ACEOF
5213506e 4029if ac_fn_c_try_compile "$LINENO"; then :
ee9dd372
TT
4030 ac_cv_prog_cc_g=yes
4031else
5213506e
RW
4032 CFLAGS=""
4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034/* end confdefs.h. */
4035
4036int
4037main ()
4038{
ee9dd372 4039
5213506e
RW
4040 ;
4041 return 0;
4042}
4043_ACEOF
4044if ac_fn_c_try_compile "$LINENO"; then :
4045
4046else
4047 ac_c_werror_flag=$ac_save_c_werror_flag
4048 CFLAGS="-g"
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050/* end confdefs.h. */
4051
4052int
4053main ()
4054{
4055
4056 ;
4057 return 0;
4058}
4059_ACEOF
4060if ac_fn_c_try_compile "$LINENO"; then :
4061 ac_cv_prog_cc_g=yes
4062fi
4063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ade710a5 4064fi
5213506e 4065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ade710a5 4066fi
5213506e
RW
4067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4068 ac_c_werror_flag=$ac_save_c_werror_flag
4069fi
4070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4071$as_echo "$ac_cv_prog_cc_g" >&6; }
ade710a5
TF
4072if test "$ac_test_CFLAGS" = set; then
4073 CFLAGS=$ac_save_CFLAGS
4074elif test $ac_cv_prog_cc_g = yes; then
4075 if test "$GCC" = yes; then
4076 CFLAGS="-g -O2"
4077 else
4078 CFLAGS="-g"
4079 fi
4080else
4081 if test "$GCC" = yes; then
4082 CFLAGS="-O2"
4083 else
4084 CFLAGS=
4085 fi
4086fi
5213506e
RW
4087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4088$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4089if test "${ac_cv_prog_cc_c89+set}" = set; then :
4090 $as_echo_n "(cached) " >&6
ade710a5 4091else
5213506e 4092 ac_cv_prog_cc_c89=no
ade710a5 4093ac_save_CC=$CC
5213506e 4094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ed698112 4095/* end confdefs.h. */
ade710a5
TF
4096#include <stdarg.h>
4097#include <stdio.h>
4098#include <sys/types.h>
4099#include <sys/stat.h>
4100/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4101struct buf { int x; };
4102FILE * (*rcsopen) (struct buf *, struct stat *, int);
4103static char *e (p, i)
4104 char **p;
4105 int i;
4106{
4107 return p[i];
4108}
4109static char *f (char * (*g) (char **, int), char **p, ...)
4110{
4111 char *s;
4112 va_list v;
4113 va_start (v,p);
4114 s = g (p, va_arg (v,int));
4115 va_end (v);
4116 return s;
4117}
ee9dd372 4118
ade710a5
TF
4119/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4120 function prototypes and stuff, but not '\xHH' hex character constants.
4121 These don't provoke an error unfortunately, instead are silently treated
5213506e 4122 as 'x'. The following induces an error, until -std is added to get
ade710a5
TF
4123 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4124 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4125 that's true only with -std. */
ade710a5
TF
4126int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4127
5213506e
RW
4128/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4129 inside strings and character constants. */
4130#define FOO(x) 'x'
4131int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4132
ade710a5
TF
4133int test (int i, double x);
4134struct s1 {int (*f) (int a);};
4135struct s2 {int (*f) (double a);};
4136int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4137int argc;
4138char **argv;
ed698112
NN
4139int
4140main ()
4141{
ade710a5 4142return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
ed698112
NN
4143 ;
4144 return 0;
4145}
4146_ACEOF
5213506e
RW
4147for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4148 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ade710a5
TF
4149do
4150 CC="$ac_save_CC $ac_arg"
5213506e
RW
4151 if ac_fn_c_try_compile "$LINENO"; then :
4152 ac_cv_prog_cc_c89=$ac_arg
ade710a5 4153fi
5213506e
RW
4154rm -f core conftest.err conftest.$ac_objext
4155 test "x$ac_cv_prog_cc_c89" != "xno" && break
ade710a5 4156done
5213506e 4157rm -f conftest.$ac_ext
ade710a5 4158CC=$ac_save_CC
e2ea015c 4159
ade710a5 4160fi
5213506e
RW
4161# AC_CACHE_VAL
4162case "x$ac_cv_prog_cc_c89" in
4163 x)
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4165$as_echo "none needed" >&6; } ;;
4166 xno)
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4168$as_echo "unsupported" >&6; } ;;
ade710a5 4169 *)
5213506e
RW
4170 CC="$CC $ac_cv_prog_cc_c89"
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4172$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ade710a5 4173esac
5213506e 4174if test "x$ac_cv_prog_cc_c89" != xno; then :
ed698112 4175
ee9dd372 4176fi
ed698112 4177
ed698112
NN
4178ac_ext=c
4179ac_cpp='$CPP $CPPFLAGS'
4180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4182ac_compiler_gnu=$ac_cv_c_compiler_gnu
ee9dd372 4183
5213506e 4184ac_ext=cpp
ed698112
NN
4185ac_cpp='$CXXCPP $CPPFLAGS'
4186ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4187ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4188ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4189if test -z "$CXX"; then
4190 if test -n "$CCC"; then
4191 CXX=$CCC
4192 else
4193 if test -n "$ac_tool_prefix"; then
4194 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
ed698112
NN
4195 do
4196 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4197set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4199$as_echo_n "checking for $ac_word... " >&6; }
4200if test "${ac_cv_prog_CXX+set}" = set; then :
4201 $as_echo_n "(cached) " >&6
ed698112
NN
4202else
4203 if test -n "$CXX"; then
97b8365c 4204 ac_cv_prog_CXX="$CXX" # Let the user override the test.
ed698112
NN
4205else
4206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207for as_dir in $PATH
4208do
4209 IFS=$as_save_IFS
4210 test -z "$as_dir" && as_dir=.
5213506e
RW
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
97b8365c 4213 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112
NN
4215 break 2
4216 fi
4217done
5213506e
RW
4218 done
4219IFS=$as_save_IFS
158a8e6b 4220
ed698112
NN
4221fi
4222fi
97b8365c 4223CXX=$ac_cv_prog_CXX
ed698112 4224if test -n "$CXX"; then
5213506e
RW
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4226$as_echo "$CXX" >&6; }
ed698112 4227else
5213506e
RW
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229$as_echo "no" >&6; }
ed698112 4230fi
ee9dd372 4231
5213506e 4232
ed698112
NN
4233 test -n "$CXX" && break
4234 done
4235fi
4236if test -z "$CXX"; then
4237 ac_ct_CXX=$CXX
5213506e 4238 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
ed698112
NN
4239do
4240 # Extract the first word of "$ac_prog", so it can be a program name with args.
4241set dummy $ac_prog; ac_word=$2
5213506e
RW
4242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4243$as_echo_n "checking for $ac_word... " >&6; }
4244if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4245 $as_echo_n "(cached) " >&6
ee9dd372 4246else
ed698112
NN
4247 if test -n "$ac_ct_CXX"; then
4248 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
ee9dd372 4249else
ed698112
NN
4250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251for as_dir in $PATH
4252do
4253 IFS=$as_save_IFS
4254 test -z "$as_dir" && as_dir=.
5213506e
RW
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ed698112 4257 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112
NN
4259 break 2
4260 fi
4261done
5213506e
RW
4262 done
4263IFS=$as_save_IFS
ed698112
NN
4264
4265fi
ee9dd372 4266fi
ed698112
NN
4267ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4268if test -n "$ac_ct_CXX"; then
5213506e
RW
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4270$as_echo "$ac_ct_CXX" >&6; }
ed698112 4271else
5213506e
RW
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4273$as_echo "no" >&6; }
ee9dd372
TT
4274fi
4275
5213506e 4276
ed698112
NN
4277 test -n "$ac_ct_CXX" && break
4278done
ed698112 4279
5213506e
RW
4280 if test "x$ac_ct_CXX" = x; then
4281 CXX="g++"
4282 else
4283 case $cross_compiling:$ac_tool_warned in
4284yes:)
4285{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4287ac_tool_warned=yes ;;
4288esac
4289 CXX=$ac_ct_CXX
4290 fi
ed698112
NN
4291fi
4292
5213506e
RW
4293 fi
4294fi
ed698112 4295# Provide some information about the compiler.
5213506e
RW
4296$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4297set X $ac_compile
4298ac_compiler=$2
4299for ac_option in --version -v -V -qversion; do
4300 { { ac_try="$ac_compiler $ac_option >&5"
4301case "(($ac_try" in
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4304esac
4305eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4306$as_echo "$ac_try_echo"; } >&5
4307 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ed698112 4308 ac_status=$?
5213506e
RW
4309 if test -s conftest.err; then
4310 sed '10a\
4311... rest of stderr output deleted ...
4312 10q' conftest.err >conftest.er1
4313 cat conftest.er1 >&5
4314 rm -f conftest.er1 conftest.err
4315 fi
4316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4317 test $ac_status = 0; }
4318done
ed698112 4319
5213506e
RW
4320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4321$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4322if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4323 $as_echo_n "(cached) " >&6
ed698112 4324else
5213506e 4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ed698112 4326/* end confdefs.h. */
ee9dd372 4327
ed698112
NN
4328int
4329main ()
4330{
4331#ifndef __GNUC__
4332 choke me
4333#endif
4334
4335 ;
4336 return 0;
4337}
4338_ACEOF
5213506e 4339if ac_fn_cxx_try_compile "$LINENO"; then :
ed698112
NN
4340 ac_compiler_gnu=yes
4341else
5213506e 4342 ac_compiler_gnu=no
ed698112 4343fi
5213506e 4344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ed698112
NN
4345ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4346
4347fi
5213506e
RW
4348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4349$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4350if test $ac_compiler_gnu = yes; then
4351 GXX=yes
4352else
4353 GXX=
4354fi
ed698112
NN
4355ac_test_CXXFLAGS=${CXXFLAGS+set}
4356ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4358$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4359if test "${ac_cv_prog_cxx_g+set}" = set; then :
4360 $as_echo_n "(cached) " >&6
4361else
4362 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4363 ac_cxx_werror_flag=yes
4364 ac_cv_prog_cxx_g=no
4365 CXXFLAGS="-g"
4366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ed698112
NN
4367/* end confdefs.h. */
4368
4369int
4370main ()
4371{
4372
4373 ;
4374 return 0;
4375}
4376_ACEOF
5213506e 4377if ac_fn_cxx_try_compile "$LINENO"; then :
ee9dd372
TT
4378 ac_cv_prog_cxx_g=yes
4379else
5213506e
RW
4380 CXXFLAGS=""
4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ed698112 4382/* end confdefs.h. */
5213506e 4383
ed698112
NN
4384int
4385main ()
4386{
5213506e 4387
ed698112
NN
4388 ;
4389 return 0;
4390}
4391_ACEOF
5213506e 4392if ac_fn_cxx_try_compile "$LINENO"; then :
ed698112 4393
5213506e
RW
4394else
4395 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4396 CXXFLAGS="-g"
4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ed698112 4398/* end confdefs.h. */
5213506e 4399
ed698112
NN
4400int
4401main ()
4402{
5213506e 4403
ed698112
NN
4404 ;
4405 return 0;
4406}
4407_ACEOF
5213506e
RW
4408if ac_fn_cxx_try_compile "$LINENO"; then :
4409 ac_cv_prog_cxx_g=yes
02809848 4410fi
5213506e
RW
4411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4412fi
4413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4414fi
4415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4416 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4417fi
4418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4419$as_echo "$ac_cv_prog_cxx_g" >&6; }
4420if test "$ac_test_CXXFLAGS" = set; then
4421 CXXFLAGS=$ac_save_CXXFLAGS
4422elif test $ac_cv_prog_cxx_g = yes; then
4423 if test "$GXX" = yes; then
4424 CXXFLAGS="-g -O2"
4425 else
4426 CXXFLAGS="-g"
4427 fi
4428else
4429 if test "$GXX" = yes; then
4430 CXXFLAGS="-O2"
4431 else
4432 CXXFLAGS=
4433 fi
158a8e6b 4434fi
ed698112
NN
4435ac_ext=c
4436ac_cpp='$CPP $CPPFLAGS'
4437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4439ac_compiler_gnu=$ac_cv_c_compiler_gnu
4440
4441CXXFLAGS="$save_CXXFLAGS"
4442
5213506e
RW
4443am__api_version='1.11'
4444
36609570
NN
4445# Find a good install program. We prefer a C program (faster),
4446# so one script is as good as another. But avoid the broken or
4447# incompatible versions:
4448# SysV /etc/install, /usr/sbin/install
4449# SunOS /usr/etc/install
4450# IRIX /sbin/install
4451# AIX /bin/install
ed698112 4452# AmigaOS /C/install, which installs bootblocks on floppy discs
36609570
NN
4453# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4454# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4455# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ed698112 4456# OS/2's system install, which has a completely different semantic
36609570 4457# ./install, which can be erroneously created by make from ./install.sh.
38d24731 4458# Reject install programs that cannot install multiple files.
5213506e
RW
4459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4460$as_echo_n "checking for a BSD-compatible install... " >&6; }
36609570 4461if test -z "$INSTALL"; then
5213506e
RW
4462if test "${ac_cv_path_install+set}" = set; then :
4463 $as_echo_n "(cached) " >&6
36609570 4464else
ed698112
NN
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466for as_dir in $PATH
4467do
4468 IFS=$as_save_IFS
4469 test -z "$as_dir" && as_dir=.
5213506e
RW
4470 # Account for people who put trailing slashes in PATH elements.
4471case $as_dir/ in #((
4472 ./ | .// | /[cC]/* | \
ed698112 4473 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 4474 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
ed698112
NN
4475 /usr/ucb/* ) ;;
4476 *)
4477 # OSF1 and SCO ODT 3.0 have their own names for install.
4478 # Don't use installbsd from OSF since it installs stuff as root
4479 # by default.
4480 for ac_prog in ginstall scoinst install; do
4481 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 4482 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
36609570 4483 if test $ac_prog = install &&
ed698112 4484 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
36609570
NN
4485 # AIX install. It has an incompatible calling convention.
4486 :
ed698112
NN
4487 elif test $ac_prog = install &&
4488 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4489 # program-specific install script used by HP pwplus--don't use.
4490 :
36609570 4491 else
38d24731
RW
4492 rm -rf conftest.one conftest.two conftest.dir
4493 echo one > conftest.one
4494 echo two > conftest.two
4495 mkdir conftest.dir
4496 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4497 test -s conftest.one && test -s conftest.two &&
4498 test -s conftest.dir/conftest.one &&
4499 test -s conftest.dir/conftest.two
4500 then
4501 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4502 break 3
4503 fi
36609570
NN
4504 fi
4505 fi
4506 done
ed698112
NN
4507 done
4508 ;;
4509esac
5213506e
RW
4510
4511 done
4512IFS=$as_save_IFS
ed698112 4513
38d24731 4514rm -rf conftest.one conftest.two conftest.dir
36609570
NN
4515
4516fi
4517 if test "${ac_cv_path_install+set}" = set; then
ed698112 4518 INSTALL=$ac_cv_path_install
36609570 4519 else
38d24731
RW
4520 # As a last resort, use the slow shell script. Don't cache a
4521 # value for INSTALL within a source directory, because that will
36609570 4522 # break other packages using the cache if that directory is
38d24731 4523 # removed, or if the value is a relative name.
ed698112 4524 INSTALL=$ac_install_sh
36609570
NN
4525 fi
4526fi
5213506e
RW
4527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4528$as_echo "$INSTALL" >&6; }
36609570
NN
4529
4530# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4531# It thinks the first close brace ends the variable substitution.
4532test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4533
ed698112 4534test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
36609570
NN
4535
4536test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4537
5213506e
RW
4538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4539$as_echo_n "checking whether build environment is sane... " >&6; }
36609570
NN
4540# Just in case
4541sleep 1
e3f92d3b 4542echo timestamp > conftest.file
5213506e
RW
4543# Reject unsafe characters in $srcdir or the absolute working directory
4544# name. Accept space and tab only in the latter.
4545am_lf='
4546'
4547case `pwd` in
4548 *[\\\"\#\$\&\'\`$am_lf]*)
4549 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4550esac
4551case $srcdir in
4552 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4553 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4554esac
4555
36609570
NN
4556# Do `set' in a subshell so we don't clobber the current shell's
4557# arguments. Must try -L first in case configure is actually a
4558# symlink; some systems play weird games with the mod time of symlinks
4559# (eg FreeBSD returns the mod time of the symlink's containing
4560# directory).
4561if (
5213506e 4562 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
36609570
NN
4563 if test "$*" = "X"; then
4564 # -L didn't work.
5213506e 4565 set X `ls -t "$srcdir/configure" conftest.file`
36609570 4566 fi
e3f92d3b
MK
4567 rm -f conftest.file
4568 if test "$*" != "X $srcdir/configure conftest.file" \
4569 && test "$*" != "X conftest.file $srcdir/configure"; then
36609570
NN
4570
4571 # If neither matched, then we have a broken ls. This can happen
4572 # if, for instance, CONFIG_SHELL is bash and it inherits a
4573 # broken ls alias from the environment. This has actually
4574 # happened. Such a system could not be considered "sane".
5213506e
RW
4575 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4576alias in your environment" "$LINENO" 5
36609570
NN
4577 fi
4578
e3f92d3b 4579 test "$2" = conftest.file
36609570
NN
4580 )
4581then
4582 # Ok.
4583 :
4584else
5213506e
RW
4585 as_fn_error "newly created file is older than distributed files!
4586Check your system clock" "$LINENO" 5
36609570 4587fi
5213506e
RW
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4589$as_echo "yes" >&6; }
36609570 4590test "$program_prefix" != NONE &&
5213506e 4591 program_transform_name="s&^&$program_prefix&;$program_transform_name"
36609570
NN
4592# Use a double $ so make ignores it.
4593test "$program_suffix" != NONE &&
5213506e
RW
4594 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4595# Double any \ or $.
ed698112 4596# By default was `s,x,x', remove it if useless.
5213506e
RW
4597ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4598program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
ed698112 4599
e3f92d3b
MK
4600# expand $ac_aux_dir to an absolute path
4601am_aux_dir=`cd $ac_aux_dir && pwd`
4602
5213506e
RW
4603if test x"${MISSING+set}" != xset; then
4604 case $am_aux_dir in
4605 *\ * | *\ *)
4606 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4607 *)
4608 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4609 esac
4610fi
e3f92d3b
MK
4611# Use eval to expand $SHELL
4612if eval "$MISSING --run true"; then
4613 am_missing_run="$MISSING --run "
4614else
4615 am_missing_run=
5213506e
RW
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4617$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4618fi
4619
4620if test x"${install_sh}" != xset; then
4621 case $am_aux_dir in
4622 *\ * | *\ *)
4623 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4624 *)
4625 install_sh="\${SHELL} $am_aux_dir/install-sh"
4626 esac
4627fi
4628
4629# Installed binaries are usually stripped using `strip' when the user
4630# run `make install-strip'. However `strip' might not be the right
4631# tool to use in cross-compilation environments, therefore Automake
4632# will honor the `STRIP' environment variable to overrule this program.
4633if test "$cross_compiling" != no; then
4634 if test -n "$ac_tool_prefix"; then
4635 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4636set dummy ${ac_tool_prefix}strip; ac_word=$2
4637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4638$as_echo_n "checking for $ac_word... " >&6; }
4639if test "${ac_cv_prog_STRIP+set}" = set; then :
4640 $as_echo_n "(cached) " >&6
4641else
4642 if test -n "$STRIP"; then
4643 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4644else
4645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646for as_dir in $PATH
4647do
4648 IFS=$as_save_IFS
4649 test -z "$as_dir" && as_dir=.
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4652 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4654 break 2
4655 fi
4656done
4657 done
4658IFS=$as_save_IFS
4659
4660fi
4661fi
4662STRIP=$ac_cv_prog_STRIP
4663if test -n "$STRIP"; then
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4665$as_echo "$STRIP" >&6; }
4666else
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4668$as_echo "no" >&6; }
4669fi
4670
4671
4672fi
4673if test -z "$ac_cv_prog_STRIP"; then
4674 ac_ct_STRIP=$STRIP
4675 # Extract the first word of "strip", so it can be a program name with args.
4676set dummy strip; ac_word=$2
4677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4678$as_echo_n "checking for $ac_word... " >&6; }
4679if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4680 $as_echo_n "(cached) " >&6
4681else
4682 if test -n "$ac_ct_STRIP"; then
4683 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4684else
4685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686for as_dir in $PATH
4687do
4688 IFS=$as_save_IFS
4689 test -z "$as_dir" && as_dir=.
4690 for ac_exec_ext in '' $ac_executable_extensions; do
4691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4692 ac_cv_prog_ac_ct_STRIP="strip"
4693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4694 break 2
4695 fi
4696done
4697 done
4698IFS=$as_save_IFS
4699
4700fi
4701fi
4702ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4703if test -n "$ac_ct_STRIP"; then
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4705$as_echo "$ac_ct_STRIP" >&6; }
4706else
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4708$as_echo "no" >&6; }
4709fi
4710
4711 if test "x$ac_ct_STRIP" = x; then
4712 STRIP=":"
4713 else
4714 case $cross_compiling:$ac_tool_warned in
4715yes:)
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4717$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4718ac_tool_warned=yes ;;
4719esac
4720 STRIP=$ac_ct_STRIP
4721 fi
4722else
4723 STRIP="$ac_cv_prog_STRIP"
4724fi
4725
4726fi
4727INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4728
4729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4730$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4731if test -z "$MKDIR_P"; then
4732 if test "${ac_cv_path_mkdir+set}" = set; then :
4733 $as_echo_n "(cached) " >&6
4734else
4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4737do
4738 IFS=$as_save_IFS
4739 test -z "$as_dir" && as_dir=.
4740 for ac_prog in mkdir gmkdir; do
4741 for ac_exec_ext in '' $ac_executable_extensions; do
4742 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4743 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4744 'mkdir (GNU coreutils) '* | \
4745 'mkdir (coreutils) '* | \
4746 'mkdir (fileutils) '4.1*)
4747 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4748 break 3;;
4749 esac
4750 done
4751 done
e3f92d3b 4752 done
5213506e
RW
4753IFS=$as_save_IFS
4754
4755fi
4756
4757 if test "${ac_cv_path_mkdir+set}" = set; then
4758 MKDIR_P="$ac_cv_path_mkdir -p"
e3f92d3b 4759 else
5213506e
RW
4760 # As a last resort, use the slow shell script. Don't cache a
4761 # value for MKDIR_P within a source directory, because that will
4762 # break other packages using the cache if that directory is
4763 # removed, or if the value is a relative name.
4764 test -d ./--version && rmdir ./--version
4765 MKDIR_P="$ac_install_sh -d"
e3f92d3b
MK
4766 fi
4767fi
5213506e
RW
4768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4769$as_echo "$MKDIR_P" >&6; }
4770
4771mkdir_p="$MKDIR_P"
4772case $mkdir_p in
4773 [\\/$]* | ?:[\\/]*) ;;
4774 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4775esac
e3f92d3b
MK
4776
4777for ac_prog in gawk mawk nawk awk
4778do
4779 # Extract the first word of "$ac_prog", so it can be a program name with args.
4780set dummy $ac_prog; ac_word=$2
5213506e
RW
4781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4782$as_echo_n "checking for $ac_word... " >&6; }
4783if test "${ac_cv_prog_AWK+set}" = set; then :
4784 $as_echo_n "(cached) " >&6
e3f92d3b
MK
4785else
4786 if test -n "$AWK"; then
4787 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4788else
4789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790for as_dir in $PATH
4791do
4792 IFS=$as_save_IFS
4793 test -z "$as_dir" && as_dir=.
5213506e
RW
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
e3f92d3b 4796 ac_cv_prog_AWK="$ac_prog"
5213506e 4797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
e3f92d3b
MK
4798 break 2
4799 fi
4800done
5213506e
RW
4801 done
4802IFS=$as_save_IFS
e3f92d3b
MK
4803
4804fi
4805fi
4806AWK=$ac_cv_prog_AWK
4807if test -n "$AWK"; then
5213506e
RW
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4809$as_echo "$AWK" >&6; }
e3f92d3b 4810else
5213506e
RW
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812$as_echo "no" >&6; }
e3f92d3b
MK
4813fi
4814
5213506e 4815
e3f92d3b
MK
4816 test -n "$AWK" && break
4817done
4818
5213506e
RW
4819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4820$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4821set x ${MAKE-make}
4822ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4823if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4824 $as_echo_n "(cached) " >&6
ed698112
NN
4825else
4826 cat >conftest.make <<\_ACEOF
5213506e 4827SHELL = /bin/sh
36609570 4828all:
5213506e 4829 @echo '@@@%%%=$(MAKE)=@@@%%%'
ed698112 4830_ACEOF
36609570 4831# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5213506e
RW
4832case `${MAKE-make} -f conftest.make 2>/dev/null` in
4833 *@@@%%%=?*=@@@%%%*)
4834 eval ac_cv_prog_make_${ac_make}_set=yes;;
4835 *)
4836 eval ac_cv_prog_make_${ac_make}_set=no;;
4837esac
ed698112 4838rm -f conftest.make
36609570 4839fi
5213506e
RW
4840if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4842$as_echo "yes" >&6; }
36609570
NN
4843 SET_MAKE=
4844else
5213506e
RW
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846$as_echo "no" >&6; }
36609570
NN
4847 SET_MAKE="MAKE=${MAKE-make}"
4848fi
4849
e3f92d3b
MK
4850rm -rf .tst 2>/dev/null
4851mkdir .tst 2>/dev/null
4852if test -d .tst; then
4853 am__leading_dot=.
4854else
4855 am__leading_dot=_
4856fi
4857rmdir .tst 2>/dev/null
4858
4859DEPDIR="${am__leading_dot}deps"
4860
5213506e 4861ac_config_commands="$ac_config_commands depfiles"
e3f92d3b
MK
4862
4863
4864am_make=${MAKE-make}
4865cat > confinc << 'END'
4866am__doit:
5213506e 4867 @echo this is the am__doit target
e3f92d3b
MK
4868.PHONY: am__doit
4869END
4870# If we don't find an include directive, just comment out the code.
5213506e
RW
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4872$as_echo_n "checking for style of include used by $am_make... " >&6; }
e3f92d3b
MK
4873am__include="#"
4874am__quote=
4875_am_result=none
4876# First try GNU make style include.
4877echo "include confinc" > confmf
5213506e
RW
4878# Ignore all kinds of additional output from `make'.
4879case `$am_make -s -f confmf 2> /dev/null` in #(
4880*the\ am__doit\ target*)
4881 am__include=include
4882 am__quote=
4883 _am_result=GNU
4884 ;;
4885esac
e3f92d3b
MK
4886# Now try BSD make style include.
4887if test "$am__include" = "#"; then
4888 echo '.include "confinc"' > confmf
5213506e
RW
4889 case `$am_make -s -f confmf 2> /dev/null` in #(
4890 *the\ am__doit\ target*)
4891 am__include=.include
4892 am__quote="\""
4893 _am_result=BSD
4894 ;;
4895 esac
e3f92d3b
MK
4896fi
4897
4898
5213506e
RW
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4900$as_echo "$_am_result" >&6; }
e3f92d3b
MK
4901rm -f confinc confmf
4902
5213506e
RW
4903# Check whether --enable-dependency-tracking was given.
4904if test "${enable_dependency_tracking+set}" = set; then :
4905 enableval=$enable_dependency_tracking;
4906fi
e3f92d3b 4907
e3f92d3b
MK
4908if test "x$enable_dependency_tracking" != xno; then
4909 am_depcomp="$ac_aux_dir/depcomp"
4910 AMDEPBACKSLASH='\'
4911fi
5213506e 4912 if test "x$enable_dependency_tracking" != xno; then
e3f92d3b
MK
4913 AMDEP_TRUE=
4914 AMDEP_FALSE='#'
4915else
4916 AMDEP_TRUE='#'
4917 AMDEP_FALSE=
4918fi
158a8e6b 4919
9d577a61 4920
5213506e
RW
4921if test "`cd $srcdir && pwd`" != "`pwd`"; then
4922 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4923 # is not polluted with repeated "-I."
4924 am__isrc=' -I$(srcdir)'
4925 # test to see if srcdir already configured
4926 if test -f $srcdir/config.status; then
4927 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4928 fi
9d577a61 4929fi
ed698112 4930
e3f92d3b
MK
4931# test whether we have cygpath
4932if test -z "$CYGPATH_W"; then
4933 if (cygpath --version) >/dev/null 2>/dev/null; then
4934 CYGPATH_W='cygpath -w'
4935 else
4936 CYGPATH_W=echo
4937 fi
4938fi
4939
4940
4941# Define the identity of the package.
4942 PACKAGE='libjava'
4943 VERSION='version-unused'
4944
4945
ed698112 4946cat >>confdefs.h <<_ACEOF
158a8e6b 4947#define PACKAGE "$PACKAGE"
ed698112 4948_ACEOF
158a8e6b 4949
ed698112
NN
4950
4951cat >>confdefs.h <<_ACEOF
158a8e6b 4952#define VERSION "$VERSION"
ed698112 4953_ACEOF
158a8e6b 4954
e3f92d3b
MK
4955# Some tools Automake needs.
4956
4957ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4958
4959
4960AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
158a8e6b 4961
8107bcf9 4962
e3f92d3b
MK
4963AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4964
4965
4966AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4967
4968
4969MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4970
e3f92d3b
MK
4971# We need awk for the "check" target. The system "awk" is bad on
4972# some platforms.
4973# Always define AMTAR for backward compatibility.
4974
4975AMTAR=${AMTAR-"${am_missing_run}tar"}
4976
4977am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4978
4979
4980
4981
4982depcc="$CC" am_compiler_list=
4983
5213506e
RW
4984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4985$as_echo_n "checking dependency style of $depcc... " >&6; }
4986if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4987 $as_echo_n "(cached) " >&6
e3f92d3b
MK
4988else
4989 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4990 # We make a subdir and do the tests there. Otherwise we can end up
4991 # making bogus files that we don't know about and never remove. For
4992 # instance it was reported that on HP-UX the gcc test will end up
4993 # making a dummy file named `D' -- because `-MD' means `put the output
4994 # in D'.
4995 mkdir conftest.dir
4996 # Copy depcomp to subdir because otherwise we won't find it if we're
4997 # using a relative directory.
4998 cp "$am_depcomp" conftest.dir
4999 cd conftest.dir
5000 # We will build objects and dependencies in a subdirectory because
5001 # it helps to detect inapplicable dependency modes. For instance
5002 # both Tru64's cc and ICC support -MD to output dependencies as a
5003 # side effect of compilation, but ICC will put the dependencies in
5004 # the current directory while Tru64 will put them in the object
5005 # directory.
5006 mkdir sub
5007
5008 am_cv_CC_dependencies_compiler_type=none
5009 if test "$am_compiler_list" = ""; then
5010 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5011 fi
5213506e
RW
5012 am__universal=false
5013 case " $depcc " in #(
5014 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5015 esac
5016
e3f92d3b
MK
5017 for depmode in $am_compiler_list; do
5018 # Setup a source with many dependencies, because some compilers
5019 # like to wrap large dependency lists on column 80 (with \), and
5020 # we should not choose a depcomp mode which is confused by this.
5021 #
5022 # We need to recreate these files for each test, as the compiler may
5023 # overwrite some of them when testing with obscure command lines.
5024 # This happens at least with the AIX C compiler.
5025 : > sub/conftest.c
5026 for i in 1 2 3 4 5 6; do
5027 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5028 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5029 # Solaris 8's {/usr,}/bin/sh.
5030 touch sub/conftst$i.h
5031 done
5032 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5033
5213506e
RW
5034 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5035 # mode. It turns out that the SunPro C++ compiler does not properly
5036 # handle `-M -o', and we need to detect this. Also, some Intel
5037 # versions had trouble with output in subdirs
5038 am__obj=sub/conftest.${OBJEXT-o}
5039 am__minus_obj="-o $am__obj"
e3f92d3b 5040 case $depmode in
5213506e
RW
5041 gcc)
5042 # This depmode causes a compiler race in universal mode.
5043 test "$am__universal" = false || continue
5044 ;;
e3f92d3b
MK
5045 nosideeffect)
5046 # after this tag, mechanisms are not by side-effect, so they'll
5047 # only be used when explicitly requested
5048 if test "x$enable_dependency_tracking" = xyes; then
5049 continue
5050 else
5051 break
5052 fi
5053 ;;
5213506e
RW
5054 msvisualcpp | msvcmsys)
5055 # This compiler won't grok `-c -o', but also, the minuso test has
5056 # not run yet. These depmodes are late enough in the game, and
5057 # so weak that their functioning should not be impacted.
5058 am__obj=conftest.${OBJEXT-o}
5059 am__minus_obj=
5060 ;;
e3f92d3b
MK
5061 none) break ;;
5062 esac
e3f92d3b 5063 if depmode=$depmode \
5213506e 5064 source=sub/conftest.c object=$am__obj \
e3f92d3b 5065 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213506e 5066 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
e3f92d3b 5067 >/dev/null 2>conftest.err &&
5213506e 5068 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
e3f92d3b 5069 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213506e 5070 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
e3f92d3b
MK
5071 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5072 # icc doesn't choke on unknown options, it will just issue warnings
5073 # or remarks (even with -Werror). So we grep stderr for any message
5074 # that says an option was ignored or not supported.
5075 # When given -MP, icc 7.0 and 7.1 complain thusly:
5076 # icc: Command line warning: ignoring option '-M'; no argument required
5077 # The diagnosis changed in icc 8.0:
5078 # icc: Command line remark: option '-MP' not supported
5079 if (grep 'ignoring option' conftest.err ||
5080 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5081 am_cv_CC_dependencies_compiler_type=$depmode
5082 break
5083 fi
5084 fi
5085 done
5086
5087 cd ..
5088 rm -rf conftest.dir
5089else
5090 am_cv_CC_dependencies_compiler_type=none
5091fi
5092
5093fi
5213506e
RW
5094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5095$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
e3f92d3b
MK
5096CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5097
5213506e 5098 if
e3f92d3b
MK
5099 test "x$enable_dependency_tracking" != xno \
5100 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5101 am__fastdepCC_TRUE=
5102 am__fastdepCC_FALSE='#'
5103else
5104 am__fastdepCC_TRUE='#'
5105 am__fastdepCC_FALSE=
5106fi
5107
5108
5109depcc="$CXX" am_compiler_list=
5110
5213506e
RW
5111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5112$as_echo_n "checking dependency style of $depcc... " >&6; }
5113if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5114 $as_echo_n "(cached) " >&6
158a8e6b 5115else
e3f92d3b
MK
5116 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5117 # We make a subdir and do the tests there. Otherwise we can end up
5118 # making bogus files that we don't know about and never remove. For
5119 # instance it was reported that on HP-UX the gcc test will end up
5120 # making a dummy file named `D' -- because `-MD' means `put the output
5121 # in D'.
5122 mkdir conftest.dir
5123 # Copy depcomp to subdir because otherwise we won't find it if we're
5124 # using a relative directory.
5125 cp "$am_depcomp" conftest.dir
5126 cd conftest.dir
5127 # We will build objects and dependencies in a subdirectory because
5128 # it helps to detect inapplicable dependency modes. For instance
5129 # both Tru64's cc and ICC support -MD to output dependencies as a
5130 # side effect of compilation, but ICC will put the dependencies in
5131 # the current directory while Tru64 will put them in the object
5132 # directory.
5133 mkdir sub
5134
5135 am_cv_CXX_dependencies_compiler_type=none
5136 if test "$am_compiler_list" = ""; then
5137 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5138 fi
5213506e
RW
5139 am__universal=false
5140 case " $depcc " in #(
5141 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5142 esac
5143
e3f92d3b
MK
5144 for depmode in $am_compiler_list; do
5145 # Setup a source with many dependencies, because some compilers
5146 # like to wrap large dependency lists on column 80 (with \), and
5147 # we should not choose a depcomp mode which is confused by this.
5148 #
5149 # We need to recreate these files for each test, as the compiler may
5150 # overwrite some of them when testing with obscure command lines.
5151 # This happens at least with the AIX C compiler.
5152 : > sub/conftest.c
5153 for i in 1 2 3 4 5 6; do
5154 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5155 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5156 # Solaris 8's {/usr,}/bin/sh.
5157 touch sub/conftst$i.h
5158 done
5159 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5160
5213506e
RW
5161 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5162 # mode. It turns out that the SunPro C++ compiler does not properly
5163 # handle `-M -o', and we need to detect this. Also, some Intel
5164 # versions had trouble with output in subdirs
5165 am__obj=sub/conftest.${OBJEXT-o}
5166 am__minus_obj="-o $am__obj"
e3f92d3b 5167 case $depmode in
5213506e
RW
5168 gcc)
5169 # This depmode causes a compiler race in universal mode.
5170 test "$am__universal" = false || continue
5171 ;;
e3f92d3b
MK
5172 nosideeffect)
5173 # after this tag, mechanisms are not by side-effect, so they'll
5174 # only be used when explicitly requested
5175 if test "x$enable_dependency_tracking" = xyes; then
5176 continue
5177 else
5178 break
5179 fi
5180 ;;
5213506e
RW
5181 msvisualcpp | msvcmsys)
5182 # This compiler won't grok `-c -o', but also, the minuso test has
5183 # not run yet. These depmodes are late enough in the game, and
5184 # so weak that their functioning should not be impacted.
5185 am__obj=conftest.${OBJEXT-o}
5186 am__minus_obj=
5187 ;;
e3f92d3b
MK
5188 none) break ;;
5189 esac
e3f92d3b 5190 if depmode=$depmode \
5213506e 5191 source=sub/conftest.c object=$am__obj \
e3f92d3b 5192 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213506e 5193 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
e3f92d3b 5194 >/dev/null 2>conftest.err &&
5213506e 5195 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
e3f92d3b 5196 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213506e 5197 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
e3f92d3b
MK
5198 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5199 # icc doesn't choke on unknown options, it will just issue warnings
5200 # or remarks (even with -Werror). So we grep stderr for any message
5201 # that says an option was ignored or not supported.
5202 # When given -MP, icc 7.0 and 7.1 complain thusly:
5203 # icc: Command line warning: ignoring option '-M'; no argument required
5204 # The diagnosis changed in icc 8.0:
5205 # icc: Command line remark: option '-MP' not supported
5206 if (grep 'ignoring option' conftest.err ||
5207 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5208 am_cv_CXX_dependencies_compiler_type=$depmode
5209 break
5210 fi
5211 fi
5212 done
5213
5214 cd ..
5215 rm -rf conftest.dir
5216else
5217 am_cv_CXX_dependencies_compiler_type=none
8107bcf9
PB
5218fi
5219
e3f92d3b 5220fi
5213506e
RW
5221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5222$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
e3f92d3b
MK
5223CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5224
5213506e 5225 if
e3f92d3b
MK
5226 test "x$enable_dependency_tracking" != xno \
5227 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5228 am__fastdepCXX_TRUE=
5229 am__fastdepCXX_FALSE='#'
9d577a61 5230else
e3f92d3b
MK
5231 am__fastdepCXX_TRUE='#'
5232 am__fastdepCXX_FALSE=
158a8e6b
AO
5233fi
5234
5235
ee9dd372 5236
e3f92d3b 5237
ed698112
NN
5238if test -n "$ac_tool_prefix"; then
5239 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
ee9dd372 5240set dummy ${ac_tool_prefix}as; ac_word=$2
5213506e
RW
5241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5242$as_echo_n "checking for $ac_word... " >&6; }
5243if test "${ac_cv_prog_AS+set}" = set; then :
5244 $as_echo_n "(cached) " >&6
ee9dd372
TT
5245else
5246 if test -n "$AS"; then
5247 ac_cv_prog_AS="$AS" # Let the user override the test.
5248else
ed698112
NN
5249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250for as_dir in $PATH
5251do
5252 IFS=$as_save_IFS
5253 test -z "$as_dir" && as_dir=.
5213506e
RW
5254 for ac_exec_ext in '' $ac_executable_extensions; do
5255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ed698112 5256 ac_cv_prog_AS="${ac_tool_prefix}as"
5213506e 5257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112
NN
5258 break 2
5259 fi
5260done
5213506e
RW
5261 done
5262IFS=$as_save_IFS
ed698112 5263
ee9dd372
TT
5264fi
5265fi
ed698112 5266AS=$ac_cv_prog_AS
ee9dd372 5267if test -n "$AS"; then
5213506e
RW
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5269$as_echo "$AS" >&6; }
ee9dd372 5270else
5213506e
RW
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5272$as_echo "no" >&6; }
ed698112
NN
5273fi
5274
5213506e 5275
ee9dd372 5276fi
ed698112
NN
5277if test -z "$ac_cv_prog_AS"; then
5278 ac_ct_AS=$AS
5279 # Extract the first word of "as", so it can be a program name with args.
5280set dummy as; ac_word=$2
5213506e
RW
5281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5282$as_echo_n "checking for $ac_word... " >&6; }
5283if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5284 $as_echo_n "(cached) " >&6
ed698112
NN
5285else
5286 if test -n "$ac_ct_AS"; then
5287 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5288else
5289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5290for as_dir in $PATH
5291do
5292 IFS=$as_save_IFS
5293 test -z "$as_dir" && as_dir=.
5213506e
RW
5294 for ac_exec_ext in '' $ac_executable_extensions; do
5295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ed698112 5296 ac_cv_prog_ac_ct_AS="as"
5213506e 5297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112
NN
5298 break 2
5299 fi
5300done
5213506e
RW
5301 done
5302IFS=$as_save_IFS
ee9dd372 5303
ed698112
NN
5304fi
5305fi
5306ac_ct_AS=$ac_cv_prog_ac_ct_AS
5307if test -n "$ac_ct_AS"; then
5213506e
RW
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5309$as_echo "$ac_ct_AS" >&6; }
ed698112 5310else
5213506e
RW
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5312$as_echo "no" >&6; }
ed698112 5313fi
ee9dd372 5314
5213506e
RW
5315 if test "x$ac_ct_AS" = x; then
5316 AS=""
5317 else
5318 case $cross_compiling:$ac_tool_warned in
5319yes:)
5320{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5321$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5322ac_tool_warned=yes ;;
5323esac
5324 AS=$ac_ct_AS
5325 fi
ed698112
NN
5326else
5327 AS="$ac_cv_prog_AS"
5328fi
ee9dd372 5329
d6c122f7
DD
5330if test -n "$ac_tool_prefix"; then
5331 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5332set dummy ${ac_tool_prefix}ld; ac_word=$2
5213506e
RW
5333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5334$as_echo_n "checking for $ac_word... " >&6; }
5335if test "${ac_cv_prog_LD+set}" = set; then :
5336 $as_echo_n "(cached) " >&6
d6c122f7
DD
5337else
5338 if test -n "$LD"; then
5339 ac_cv_prog_LD="$LD" # Let the user override the test.
5340else
5341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342for as_dir in $PATH
5343do
5344 IFS=$as_save_IFS
5345 test -z "$as_dir" && as_dir=.
5213506e
RW
5346 for ac_exec_ext in '' $ac_executable_extensions; do
5347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d6c122f7 5348 ac_cv_prog_LD="${ac_tool_prefix}ld"
5213506e 5349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d6c122f7
DD
5350 break 2
5351 fi
5352done
5213506e
RW
5353 done
5354IFS=$as_save_IFS
d6c122f7
DD
5355
5356fi
5357fi
5358LD=$ac_cv_prog_LD
5359if test -n "$LD"; then
5213506e
RW
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5361$as_echo "$LD" >&6; }
d6c122f7 5362else
5213506e
RW
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364$as_echo "no" >&6; }
d6c122f7
DD
5365fi
5366
5213506e 5367
d6c122f7
DD
5368fi
5369if test -z "$ac_cv_prog_LD"; then
5370 ac_ct_LD=$LD
5371 # Extract the first word of "ld", so it can be a program name with args.
5372set dummy ld; ac_word=$2
5213506e
RW
5373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5374$as_echo_n "checking for $ac_word... " >&6; }
5375if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
5376 $as_echo_n "(cached) " >&6
d6c122f7
DD
5377else
5378 if test -n "$ac_ct_LD"; then
5379 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5380else
5381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382for as_dir in $PATH
5383do
5384 IFS=$as_save_IFS
5385 test -z "$as_dir" && as_dir=.
5213506e
RW
5386 for ac_exec_ext in '' $ac_executable_extensions; do
5387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d6c122f7 5388 ac_cv_prog_ac_ct_LD="ld"
5213506e 5389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d6c122f7
DD
5390 break 2
5391 fi
5392done
5213506e
RW
5393 done
5394IFS=$as_save_IFS
d6c122f7
DD
5395
5396fi
5397fi
5398ac_ct_LD=$ac_cv_prog_ac_ct_LD
5399if test -n "$ac_ct_LD"; then
5213506e
RW
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
5401$as_echo "$ac_ct_LD" >&6; }
d6c122f7 5402else
5213506e
RW
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5404$as_echo "no" >&6; }
d6c122f7
DD
5405fi
5406
5213506e
RW
5407 if test "x$ac_ct_LD" = x; then
5408 LD=""
5409 else
5410 case $cross_compiling:$ac_tool_warned in
5411yes:)
5412{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5413$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5414ac_tool_warned=yes ;;
5415esac
5416 LD=$ac_ct_LD
5417 fi
d6c122f7
DD
5418else
5419 LD="$ac_cv_prog_LD"
5420fi
5421
ed698112
NN
5422if test -n "$ac_tool_prefix"; then
5423 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
ee9dd372 5424set dummy ${ac_tool_prefix}ar; ac_word=$2
5213506e
RW
5425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5426$as_echo_n "checking for $ac_word... " >&6; }
5427if test "${ac_cv_prog_AR+set}" = set; then :
5428 $as_echo_n "(cached) " >&6
ee9dd372
TT
5429else
5430 if test -n "$AR"; then
5431 ac_cv_prog_AR="$AR" # Let the user override the test.
5432else
ed698112
NN
5433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434for as_dir in $PATH
5435do
5436 IFS=$as_save_IFS
5437 test -z "$as_dir" && as_dir=.
5213506e
RW
5438 for ac_exec_ext in '' $ac_executable_extensions; do
5439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ed698112 5440 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213506e 5441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112
NN
5442 break 2
5443 fi
5444done
5213506e
RW
5445 done
5446IFS=$as_save_IFS
ed698112 5447
ee9dd372
TT
5448fi
5449fi
ed698112 5450AR=$ac_cv_prog_AR
ee9dd372 5451if test -n "$AR"; then
5213506e
RW
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5453$as_echo "$AR" >&6; }
ee9dd372 5454else
5213506e
RW
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456$as_echo "no" >&6; }
ed698112
NN
5457fi
5458
5213506e 5459
ee9dd372 5460fi
ed698112
NN
5461if test -z "$ac_cv_prog_AR"; then
5462 ac_ct_AR=$AR
5463 # Extract the first word of "ar", so it can be a program name with args.
5464set dummy ar; ac_word=$2
5213506e
RW
5465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5466$as_echo_n "checking for $ac_word... " >&6; }
5467if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5468 $as_echo_n "(cached) " >&6
ed698112
NN
5469else
5470 if test -n "$ac_ct_AR"; then
5471 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5472else
5473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474for as_dir in $PATH
5475do
5476 IFS=$as_save_IFS
5477 test -z "$as_dir" && as_dir=.
5213506e
RW
5478 for ac_exec_ext in '' $ac_executable_extensions; do
5479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ed698112 5480 ac_cv_prog_ac_ct_AR="ar"
5213506e 5481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112
NN
5482 break 2
5483 fi
5484done
5213506e
RW
5485 done
5486IFS=$as_save_IFS
ee9dd372 5487
ed698112
NN
5488fi
5489fi
5490ac_ct_AR=$ac_cv_prog_ac_ct_AR
5491if test -n "$ac_ct_AR"; then
5213506e
RW
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5493$as_echo "$ac_ct_AR" >&6; }
ed698112 5494else
5213506e
RW
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5496$as_echo "no" >&6; }
ed698112 5497fi
ee9dd372 5498
5213506e
RW
5499 if test "x$ac_ct_AR" = x; then
5500 AR=""
5501 else
5502 case $cross_compiling:$ac_tool_warned in
5503yes:)
5504{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5505$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5506ac_tool_warned=yes ;;
5507esac
5508 AR=$ac_ct_AR
5509 fi
ed698112
NN
5510else
5511 AR="$ac_cv_prog_AR"
5512fi
ee9dd372 5513
ed698112
NN
5514if test -n "$ac_tool_prefix"; then
5515 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ee9dd372 5516set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213506e
RW
5517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518$as_echo_n "checking for $ac_word... " >&6; }
5519if test "${ac_cv_prog_RANLIB+set}" = set; then :
5520 $as_echo_n "(cached) " >&6
ee9dd372
TT
5521else
5522 if test -n "$RANLIB"; then
5523 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5524else
ed698112
NN
5525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526for as_dir in $PATH
5527do
5528 IFS=$as_save_IFS
5529 test -z "$as_dir" && as_dir=.
5213506e
RW
5530 for ac_exec_ext in '' $ac_executable_extensions; do
5531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ed698112 5532 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213506e 5533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112
NN
5534 break 2
5535 fi
5536done
5213506e
RW
5537 done
5538IFS=$as_save_IFS
ed698112 5539
ee9dd372
TT
5540fi
5541fi
ed698112 5542RANLIB=$ac_cv_prog_RANLIB
ee9dd372 5543if test -n "$RANLIB"; then
5213506e
RW
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5545$as_echo "$RANLIB" >&6; }
ee9dd372 5546else
5213506e
RW
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548$as_echo "no" >&6; }
ee9dd372
TT
5549fi
5550
5213506e 5551
ed698112 5552fi
ee9dd372 5553if test -z "$ac_cv_prog_RANLIB"; then
ed698112 5554 ac_ct_RANLIB=$RANLIB
ee9dd372
TT
5555 # Extract the first word of "ranlib", so it can be a program name with args.
5556set dummy ranlib; ac_word=$2
5213506e
RW
5557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5558$as_echo_n "checking for $ac_word... " >&6; }
5559if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5560 $as_echo_n "(cached) " >&6
ee9dd372 5561else
ed698112
NN
5562 if test -n "$ac_ct_RANLIB"; then
5563 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
ee9dd372 5564else
ed698112
NN
5565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566for as_dir in $PATH
5567do
5568 IFS=$as_save_IFS
5569 test -z "$as_dir" && as_dir=.
5213506e
RW
5570 for ac_exec_ext in '' $ac_executable_extensions; do
5571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ed698112 5572 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213506e 5573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112
NN
5574 break 2
5575 fi
5576done
5213506e
RW
5577 done
5578IFS=$as_save_IFS
ed698112 5579
ee9dd372
TT
5580fi
5581fi
ed698112
NN
5582ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5583if test -n "$ac_ct_RANLIB"; then
5213506e
RW
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5585$as_echo "$ac_ct_RANLIB" >&6; }
ee9dd372 5586else
5213506e
RW
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588$as_echo "no" >&6; }
ee9dd372
TT
5589fi
5590
5213506e
RW
5591 if test "x$ac_ct_RANLIB" = x; then
5592 RANLIB=":"
5593 else
5594 case $cross_compiling:$ac_tool_warned in
5595yes:)
5596{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5597$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5598ac_tool_warned=yes ;;
5599esac
5600 RANLIB=$ac_ct_RANLIB
5601 fi
ee9dd372 5602else
ed698112 5603 RANLIB="$ac_cv_prog_RANLIB"
ee9dd372
TT
5604fi
5605
474b97ce
DK
5606if test -n "$ac_tool_prefix"; then
5607 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5608set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5610$as_echo_n "checking for $ac_word... " >&6; }
5611if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5612 $as_echo_n "(cached) " >&6
5613else
5614 if test -n "$DLLTOOL"; then
5615 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5616else
5617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618for as_dir in $PATH
5619do
5620 IFS=$as_save_IFS
5621 test -z "$as_dir" && as_dir=.
5622 for ac_exec_ext in '' $ac_executable_extensions; do
5623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5624 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 break 2
5627 fi
5628done
5629 done
5630IFS=$as_save_IFS
5631
5632fi
5633fi
5634DLLTOOL=$ac_cv_prog_DLLTOOL
5635if test -n "$DLLTOOL"; then
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5637$as_echo "$DLLTOOL" >&6; }
5638else
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640$as_echo "no" >&6; }
5641fi
5642
5643
5644fi
5645if test -z "$ac_cv_prog_DLLTOOL"; then
5646 ac_ct_DLLTOOL=$DLLTOOL
5647 # Extract the first word of "dlltool", so it can be a program name with args.
5648set dummy dlltool; ac_word=$2
5649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5650$as_echo_n "checking for $ac_word... " >&6; }
5651if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5652 $as_echo_n "(cached) " >&6
5653else
5654 if test -n "$ac_ct_DLLTOOL"; then
5655 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5656else
5657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658for as_dir in $PATH
5659do
5660 IFS=$as_save_IFS
5661 test -z "$as_dir" && as_dir=.
5662 for ac_exec_ext in '' $ac_executable_extensions; do
5663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5664 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5666 break 2
5667 fi
5668done
5669 done
5670IFS=$as_save_IFS
5671
5672fi
5673fi
5674ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5675if test -n "$ac_ct_DLLTOOL"; then
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5677$as_echo "$ac_ct_DLLTOOL" >&6; }
5678else
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680$as_echo "no" >&6; }
5681fi
5682
5683 if test "x$ac_ct_DLLTOOL" = x; then
5684 DLLTOOL=":"
5685 else
5686 case $cross_compiling:$ac_tool_warned in
5687yes:)
5688{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5689$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5690ac_tool_warned=yes ;;
5691esac
5692 DLLTOOL=$ac_ct_DLLTOOL
5693 fi
5694else
5695 DLLTOOL="$ac_cv_prog_DLLTOOL"
5696fi
5697
02809848
PB
5698for ac_prog in gawk mawk nawk awk
5699do
5700 # Extract the first word of "$ac_prog", so it can be a program name with args.
5701set dummy $ac_prog; ac_word=$2
5213506e
RW
5702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5703$as_echo_n "checking for $ac_word... " >&6; }
5704if test "${ac_cv_prog_AWK+set}" = set; then :
5705 $as_echo_n "(cached) " >&6
02809848
PB
5706else
5707 if test -n "$AWK"; then
5708 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5709else
5710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711for as_dir in $PATH
5712do
5713 IFS=$as_save_IFS
5714 test -z "$as_dir" && as_dir=.
5213506e
RW
5715 for ac_exec_ext in '' $ac_executable_extensions; do
5716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
02809848 5717 ac_cv_prog_AWK="$ac_prog"
5213506e 5718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
02809848
PB
5719 break 2
5720 fi
5721done
5213506e
RW
5722 done
5723IFS=$as_save_IFS
02809848
PB
5724
5725fi
5726fi
5727AWK=$ac_cv_prog_AWK
5728if test -n "$AWK"; then
5213506e
RW
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5730$as_echo "$AWK" >&6; }
02809848 5731else
5213506e
RW
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733$as_echo "no" >&6; }
02809848
PB
5734fi
5735
5213506e 5736
02809848
PB
5737 test -n "$AWK" && break
5738done
5739
97b8365c 5740for ac_prog in jar fastjar gjar
76c6ea0c
TT
5741do
5742 # Extract the first word of "$ac_prog", so it can be a program name with args.
5743set dummy $ac_prog; ac_word=$2
5213506e
RW
5744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5745$as_echo_n "checking for $ac_word... " >&6; }
5746if test "${ac_cv_prog_JAR+set}" = set; then :
5747 $as_echo_n "(cached) " >&6
76c6ea0c
TT
5748else
5749 if test -n "$JAR"; then
5750 ac_cv_prog_JAR="$JAR" # Let the user override the test.
5751else
5752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753for as_dir in $PATH
5754do
5755 IFS=$as_save_IFS
5756 test -z "$as_dir" && as_dir=.
5213506e
RW
5757 for ac_exec_ext in '' $ac_executable_extensions; do
5758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
76c6ea0c 5759 ac_cv_prog_JAR="$ac_prog"
5213506e 5760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
76c6ea0c
TT
5761 break 2
5762 fi
5763done
5213506e
RW
5764 done
5765IFS=$as_save_IFS
76c6ea0c
TT
5766
5767fi
5768fi
5769JAR=$ac_cv_prog_JAR
5770if test -n "$JAR"; then
5213506e
RW
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
5772$as_echo "$JAR" >&6; }
76c6ea0c 5773else
5213506e
RW
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5775$as_echo "no" >&6; }
76c6ea0c
TT
5776fi
5777
5213506e 5778
76c6ea0c
TT
5779 test -n "$JAR" && break
5780done
02809848 5781test -n "$JAR" || JAR="no"
ee9dd372 5782
02809848
PB
5783# Extract the first word of "zip", so it can be a program name with args.
5784set dummy zip; ac_word=$2
5213506e
RW
5785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5786$as_echo_n "checking for $ac_word... " >&6; }
5787if test "${ac_cv_path_ZIP+set}" = set; then :
5788 $as_echo_n "(cached) " >&6
02809848
PB
5789else
5790 case $ZIP in
5791 [\\/]* | ?:[\\/]*)
5792 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5793 ;;
5794 *)
5795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5796for as_dir in $PATH
5797do
5798 IFS=$as_save_IFS
5799 test -z "$as_dir" && as_dir=.
5213506e
RW
5800 for ac_exec_ext in '' $ac_executable_extensions; do
5801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
02809848 5802 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5213506e 5803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
02809848
PB
5804 break 2
5805 fi
5806done
5213506e
RW
5807 done
5808IFS=$as_save_IFS
02809848
PB
5809
5810 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
5811 ;;
5812esac
5813fi
5814ZIP=$ac_cv_path_ZIP
5815if test -n "$ZIP"; then
5213506e
RW
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
5817$as_echo "$ZIP" >&6; }
02809848 5818else
5213506e
RW
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5820$as_echo "no" >&6; }
02809848
PB
5821fi
5822
5213506e 5823
02809848
PB
5824# Extract the first word of "unzip", so it can be a program name with args.
5825set dummy unzip; ac_word=$2
5213506e
RW
5826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5827$as_echo_n "checking for $ac_word... " >&6; }
5828if test "${ac_cv_path_UNZIP+set}" = set; then :
5829 $as_echo_n "(cached) " >&6
02809848
PB
5830else
5831 case $UNZIP in
5832 [\\/]* | ?:[\\/]*)
5833 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
5834 ;;
5835 *)
5836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837for as_dir in $PATH
5838do
5839 IFS=$as_save_IFS
5840 test -z "$as_dir" && as_dir=.
5213506e
RW
5841 for ac_exec_ext in '' $ac_executable_extensions; do
5842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
02809848 5843 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
5213506e 5844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
02809848
PB
5845 break 2
5846 fi
5847done
5213506e
RW
5848 done
5849IFS=$as_save_IFS
02809848
PB
5850
5851 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
5852 ;;
5853esac
5854fi
5855UNZIP=$ac_cv_path_UNZIP
5856if test -n "$UNZIP"; then
5213506e
RW
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
5858$as_echo "$UNZIP" >&6; }
02809848 5859else
5213506e
RW
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5861$as_echo "no" >&6; }
02809848
PB
5862fi
5863
a968c714 5864
5213506e 5865
a968c714
TT
5866# We need a jar that supports -@. This is a GNU extension.
5867if test "$JAR" != no; then
5868 rm -f config-test.jar
d355ede7 5869 echo $srcdir/configure.ac | $JAR -cf@ config-test.jar >/dev/null 2>&1
a968c714
TT
5870 if test -f config-test.jar; then
5871 rm -f config-test.jar
5872 else
5873 JAR=no
5874 fi
5875fi
5876
acd724f6 5877# Prefer the jar we found, but fall back to our jar script.
02809848 5878if test "$JAR" = no; then
acd724f6 5879 if test "$ZIP" = no; then
5213506e 5880 as_fn_error "cannot find neither zip nor jar, cannot continue" "$LINENO" 5
acd724f6
TT
5881 else
5882 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
5883 JAR=`pwd`/scripts/jar
02809848 5884 fi
02809848
PB
5885fi
5886
a3ffcff3 5887
ee9dd372
TT
5888
5889
5213506e
RW
5890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5891$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5892 # Check whether --enable-maintainer-mode was given.
5893if test "${enable_maintainer_mode+set}" = set; then :
5894 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee9dd372
TT
5895else
5896 USE_MAINTAINER_MODE=no
5213506e 5897fi
ee9dd372 5898
5213506e
RW
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5900$as_echo "$USE_MAINTAINER_MODE" >&6; }
5901 if test $USE_MAINTAINER_MODE = yes; then
ee9dd372
TT
5902 MAINTAINER_MODE_TRUE=
5903 MAINTAINER_MODE_FALSE='#'
5904else
5905 MAINTAINER_MODE_TRUE='#'
5906 MAINTAINER_MODE_FALSE=
5907fi
e3f92d3b 5908
ee9dd372 5909 MAINT=$MAINTAINER_MODE_TRUE
36609570 5910
0659e0e3 5911
ee9dd372 5912
ee9dd372 5913
ee9dd372
TT
5914
5915# configure.host sets the following important variables
5916# libgcj_cflags - host specific C compiler flags
5917# libgcj_cxxflags - host specific C++ compiler flags
5918# libgcj_javaflags - host specific Java compiler flags
c4f0333b 5919# libgcj_sublib_ltflags - host specific Libtool flags
474b97ce
DK
5920# libgcj_sublib_core_extra_deps - host specific extra
5921# dependencies for core sublib
5922# (these last two only used when building sublibs)
6a92b6c7 5923# and a number of others; see the list at the start of the file.
ee9dd372
TT
5924
5925libgcj_cflags=
5926libgcj_cxxflags=
5927libgcj_javaflags=
c4f0333b 5928libgcj_sublib_ltflags=
474b97ce 5929libgcj_sublib_core_extra_deps=
ee9dd372 5930
2ee7cd3e 5931. ${srcdir}/configure.host
ee9dd372 5932
5213506e
RW
5933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5934$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5935if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5936 $as_echo_n "(cached) " >&6
76b972d6
L
5937else
5938 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5939if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5940 acl_cv_prog_gnu_ld=yes
5941else
5942 acl_cv_prog_gnu_ld=no
5943fi
5944fi
5213506e
RW
5945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5946$as_echo "$acl_cv_prog_gnu_ld" >&6; }
76b972d6
L
5947with_gnu_ld=$acl_cv_prog_gnu_ld
5948
5213506e
RW
5949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
5950$as_echo_n "checking if the GNU linker ($LD) supports -Bsymbolic-functions... " >&6; }
5951if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then :
5952 $as_echo_n "(cached) " >&6
76b972d6
L
5953else
5954
5955acl_cv_prog_gnu_ld_symbolic=no
5956
5957if test x"$with_gnu_ld" = x"yes"; then
5958 if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
5959 acl_cv_prog_gnu_ld_symbolic=yes
5960 fi
5961fi
5962fi
5213506e
RW
5963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld_symbolic" >&5
5964$as_echo "$acl_cv_prog_gnu_ld_symbolic" >&6; }
76b972d6
L
5965if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
5966 SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
5967else
5968 SYMBOLIC_LDFLAGS=''
5969fi
5970
5971libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
5972if test -z "$libgcj_ld_symbolic"; then
5973 libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
5974fi
5975
51e16725
KT
5976# for windows native targets enforce export of all symbols for shared libgcj.
5977libgcj_ld_export_all=
5978case "$host" in
5979 *mingw*)
5980 libgcj_ld_export_all=-Wl,--export-all-symbols
5981 ;;
5982 *)
5983 ;;
5984esac
5985
ee9dd372
TT
5986LIBGCJ_CFLAGS="${libgcj_cflags}"
5987LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
5988LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
c4f0333b 5989LIBGCJ_SUBLIB_LTFLAGS="${libgcj_sublib_ltflags}"
474b97ce 5990LIBGCJ_SUBLIB_CORE_EXTRA_DEPS="${libgcj_sublib_core_extra_deps}"
36739040 5991LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
76b972d6 5992LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
51e16725
KT
5993LIBGCJ_LD_EXPORT_ALL="${libgcj_ld_export_all}"
5994
76b972d6 5995
36739040 5996
ee9dd372
TT
5997
5998
5999
6000
c4f0333b 6001
474b97ce 6002
16dab3e2
TF
6003# Only use libltdl for non-newlib builds.
6004if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5213506e
RW
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
6006$as_echo_n "checking dynamic linker characteristics... " >&6; }
16dab3e2
TF
6007library_names_spec=
6008libname_spec='lib$name'
6009soname_spec=
6010shrext=".so"
6011postinstall_cmds=
6012postuninstall_cmds=
6013finish_cmds=
6014finish_eval=
6015shlibpath_var=
6016shlibpath_overrides_runpath=unknown
6017version_type=none
6018dynamic_linker="$host_os ld.so"
6019sys_lib_dlsearch_path_spec="/lib /usr/lib"
6020if test "$GCC" = yes; then
ab408bac 6021 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
16dab3e2
TF
6022 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6023 # if the path contains ";" then we assume it to be the separator
6024 # otherwise default to the standard path separator (i.e. ":") - it is
6025 # assumed that no part of a normal pathname contains ";" but that should
6026 # okay in the real world where ";" in dirpaths is itself problematic.
ab408bac 6027 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
16dab3e2 6028 else
ab408bac 6029 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
16dab3e2
TF
6030 fi
6031else
6032 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6033fi
6034need_lib_prefix=unknown
6035hardcode_into_libs=no
6036
6037# when you set need_version to no, make sure it does not cause -set_version
6038# flags to be left without arguments
6039need_version=unknown
6040
6041case $host_os in
6042aix3*)
6043 version_type=linux
6044 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6045 shlibpath_var=LIBPATH
6046
6047 # AIX 3 has no versioning support, so we append a major version to the name.
6048 soname_spec='${libname}${release}${shared_ext}$major'
6049 ;;
6050
ed44a2c7 6051aix[4-9]*)
16dab3e2
TF
6052 version_type=linux
6053 need_lib_prefix=no
6054 need_version=no
6055 hardcode_into_libs=yes
6056 if test "$host_cpu" = ia64; then
6057 # AIX 5 supports IA64
6058 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6059 shlibpath_var=LD_LIBRARY_PATH
6060 else
6061 # With GCC up to 2.95.x, collect2 would create an import file
6062 # for dependence libraries. The import file would start with
6063 # the line `#! .'. This would cause the generated library to
6064 # depend on `.', always an invalid library. This was fixed in
6065 # development snapshots of GCC prior to 3.0.
6066 case $host_os in
6067 aix4 | aix4.[01] | aix4.[01].*)
6068 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6069 echo ' yes '
6070 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6071 :
6072 else
6073 can_build_shared=no
6074 fi
6075 ;;
6076 esac
6077 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6078 # soname into executable. Probably we can add versioning support to
6079 # collect2, so additional links can be useful in future.
6080 if test "$aix_use_runtimelinking" = yes; then
6081 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6082 # instead of lib<name>.a to let people know that these are not
6083 # typical AIX shared libraries.
6084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6085 else
6086 # We preserve .a as extension for shared libraries through AIX4.2
6087 # and later when we are not doing run time linking.
6088 library_names_spec='${libname}${release}.a $libname.a'
6089 soname_spec='${libname}${release}${shared_ext}$major'
6090 fi
6091 shlibpath_var=LIBPATH
6092 fi
6093 ;;
6094
6095amigaos*)
6096 library_names_spec='$libname.ixlibrary $libname.a'
6097 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6098 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'
6099 ;;
6100
6101beos*)
6102 library_names_spec='${libname}${shared_ext}'
6103 dynamic_linker="$host_os ld.so"
6104 shlibpath_var=LIBRARY_PATH
6105 ;;
6106
6107bsdi4*)
6108 version_type=linux
6109 need_version=no
6110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6111 soname_spec='${libname}${release}${shared_ext}$major'
6112 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6113 shlibpath_var=LD_LIBRARY_PATH
6114 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6115 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6116 # the default ld.so.conf also contains /usr/contrib/lib and
6117 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6118 # libtool to hard-code these into programs
6119 ;;
6120
6121cygwin* | mingw* | pw32*)
6122 version_type=windows
6123 shrext=".dll"
6124 need_version=no
6125 need_lib_prefix=no
6126
6127 case $GCC,$host_os in
6128 yes,cygwin* | yes,mingw* | yes,pw32*)
6129 library_names_spec='$libname.dll.a'
6130 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6131 postinstall_cmds='base_file=`basename \${file}`~
6132 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6133 dldir=$destdir/`dirname \$dlpath`~
6134 test -d \$dldir || mkdir -p \$dldir~
6135 $install_prog $dir/$dlname \$dldir/$dlname'
6136 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6137 dlpath=$dir/\$dldll~
6138 $rm \$dlpath'
6139 shlibpath_overrides_runpath=yes
6140
6141 case $host_os in
6142 cygwin*)
6143 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
ab408bac 6144 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16dab3e2
TF
6145 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
6146 ;;
6147 mingw*)
6148 # MinGW DLLs use traditional 'lib' prefix
ab408bac
JJ
6149 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6150 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
16dab3e2
TF
6151 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6152 # It is most probably a Windows format PATH printed by
6153 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6154 # path with ; separators, and with drive letters. We can handle the
6155 # drive letters (cygwin fileutils understands them), so leave them,
6156 # especially as we might pass files found there to a mingw objdump,
6157 # which wouldn't understand a cygwinified path. Ahh.
ab408bac 6158 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
16dab3e2 6159 else
ab408bac 6160 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
16dab3e2
TF
6161 fi
6162 ;;
6163 pw32*)
6164 # pw32 DLLs use 'pw' prefix rather than 'lib'
ab408bac 6165 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
16dab3e2
TF
6166 ;;
6167 esac
6168 ;;
6169
6170 *)
ab408bac 6171 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16dab3e2
TF
6172 ;;
6173 esac
6174 dynamic_linker='Win32 ld.exe'
6175 # FIXME: first we should search . and the directory the executable is in
6176 shlibpath_var=PATH
6177 ;;
6178
6179darwin* | rhapsody*)
6180 dynamic_linker="$host_os dyld"
6181 version_type=darwin
6182 need_lib_prefix=no
6183 need_version=no
6184 # FIXME: Relying on posixy $() will cause problems for
6185 # cross-compilation, but unfortunately the echo tests do not
6186 # yet detect zsh echo's removal of \ escapes.
6187 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6188 soname_spec='${libname}${release}${major}$shared_ext'
6189 shlibpath_overrides_runpath=yes
6190 shlibpath_var=DYLD_LIBRARY_PATH
6191 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
6192 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6193 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6194 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"`
6195 fi
6196 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6197 ;;
6198
6199dgux*)
6200 version_type=linux
6201 need_lib_prefix=no
6202 need_version=no
6203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6204 soname_spec='${libname}${release}${shared_ext}$major'
6205 shlibpath_var=LD_LIBRARY_PATH
6206 ;;
6207
16dab3e2
TF
6208freebsd*)
6209 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6210 version_type=freebsd-$objformat
6211 case $version_type in
6212 freebsd-elf*)
6213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6214 need_version=no
6215 need_lib_prefix=no
6216 ;;
6217 freebsd-*)
6218 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6219 need_version=yes
6220 ;;
6221 esac
6222 shlibpath_var=LD_LIBRARY_PATH
6223 case $host_os in
6224 freebsd2*)
6225 shlibpath_overrides_runpath=yes
6226 ;;
6227 freebsd3.01* | freebsdelf3.01*)
6228 shlibpath_overrides_runpath=yes
6229 hardcode_into_libs=yes
6230 ;;
6231 *) # from 3.2 on
6232 shlibpath_overrides_runpath=no
6233 hardcode_into_libs=yes
6234 ;;
6235 esac
6236 ;;
ee9dd372 6237
16dab3e2
TF
6238gnu*)
6239 version_type=linux
6240 need_lib_prefix=no
6241 need_version=no
6242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6243 soname_spec='${libname}${release}${shared_ext}$major'
6244 shlibpath_var=LD_LIBRARY_PATH
6245 hardcode_into_libs=yes
6246 ;;
6247
6248hpux9* | hpux10* | hpux11*)
6249 # Give a soname corresponding to the major version so that dld.sl refuses to
6250 # link against other versions.
6251 version_type=sunos
6252 need_lib_prefix=no
6253 need_version=no
6254 case "$host_cpu" in
6255 ia64*)
6256 shrext='.so'
6257 hardcode_into_libs=yes
6258 dynamic_linker="$host_os dld.so"
6259 shlibpath_var=LD_LIBRARY_PATH
6260 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6262 soname_spec='${libname}${release}${shared_ext}$major'
6263 if test "X$HPUX_IA64_MODE" = X32; then
6264 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6265 else
6266 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6267 fi
6268 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6269 ;;
6270 hppa*64*)
6271 shrext='.sl'
6272 hardcode_into_libs=yes
6273 dynamic_linker="$host_os dld.sl"
6274 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6275 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6277 soname_spec='${libname}${release}${shared_ext}$major'
6278 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6279 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6280 ;;
6281 *)
6282 shrext='.sl'
6283 dynamic_linker="$host_os dld.sl"
6284 shlibpath_var=SHLIB_PATH
6285 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6287 soname_spec='${libname}${release}${shared_ext}$major'
6288 ;;
6289 esac
6290 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6291 postinstall_cmds='chmod 555 $lib'
6292 ;;
6293
6294irix5* | irix6* | nonstopux*)
6295 case $host_os in
6296 nonstopux*) version_type=nonstopux ;;
6297 *)
6298 if test "$lt_cv_prog_gnu_ld" = yes; then
6299 version_type=linux
6300 else
6301 version_type=irix
6302 fi ;;
6303 esac
6304 need_lib_prefix=no
6305 need_version=no
6306 soname_spec='${libname}${release}${shared_ext}$major'
6307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6308 case $host_os in
6309 irix5* | nonstopux*)
6310 libsuff= shlibsuff=
6311 ;;
6312 *)
6313 case $LD in # libtool.m4 will add one of these switches to LD
6314 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6315 libsuff= shlibsuff= libmagic=32-bit;;
6316 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6317 libsuff=32 shlibsuff=N32 libmagic=N32;;
6318 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6319 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6320 *) libsuff= shlibsuff= libmagic=never-match;;
6321 esac
6322 ;;
6323 esac
6324 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6325 shlibpath_overrides_runpath=no
6326 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6327 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6328 hardcode_into_libs=yes
6329 ;;
6330
6331# No shared lib support for Linux oldld, aout, or coff.
6332linux*oldld* | linux*aout* | linux*coff*)
6333 dynamic_linker=no
6334 ;;
6335
6336# This must be Linux ELF.
94ba45df 6337linux*|k*bsd*-gnu)
16dab3e2
TF
6338 version_type=linux
6339 need_lib_prefix=no
6340 need_version=no
6341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6342 soname_spec='${libname}${release}${shared_ext}$major'
6343 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6344 shlibpath_var=LD_LIBRARY_PATH
6345 shlibpath_overrides_runpath=no
6346 # This implies no fast_install, which is unacceptable.
6347 # Some rework will be needed to allow for fast_install
6348 # before this can be enabled.
6349 hardcode_into_libs=yes
6350
6351 # We used to test for /lib/ld.so.1 and disable shared libraries on
6352 # powerpc, because MkLinux only supported shared libraries with the
6353 # GNU dynamic linker. Since this was broken with cross compilers,
6354 # most powerpc-linux boxes support dynamic linking these days and
6355 # people can always --disable-shared, the test was removed, and we
6356 # assume the GNU/Linux dynamic linker is in use.
6357 dynamic_linker='GNU/Linux ld.so'
6358 ;;
6359
6360netbsd*)
6361 version_type=sunos
6362 need_lib_prefix=no
6363 need_version=no
6364 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6366 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6367 dynamic_linker='NetBSD (a.out) ld.so'
6368 else
6369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
6370 soname_spec='${libname}${release}${shared_ext}$major'
6371 dynamic_linker='NetBSD ld.elf_so'
6372 fi
6373 shlibpath_var=LD_LIBRARY_PATH
6374 shlibpath_overrides_runpath=yes
6375 hardcode_into_libs=yes
6376 ;;
6377
6378newsos6)
6379 version_type=linux
6380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6381 shlibpath_var=LD_LIBRARY_PATH
6382 shlibpath_overrides_runpath=yes
6383 ;;
6384
6385nto-qnx)
6386 version_type=linux
6387 need_lib_prefix=no
6388 need_version=no
6389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6390 soname_spec='${libname}${release}${shared_ext}$major'
6391 shlibpath_var=LD_LIBRARY_PATH
6392 shlibpath_overrides_runpath=yes
6393 ;;
6394
6395openbsd*)
6396 version_type=sunos
6397 need_lib_prefix=no
6398 need_version=no
6399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6400 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6401 shlibpath_var=LD_LIBRARY_PATH
6402 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6403 case $host_os in
6404 openbsd2.[89] | openbsd2.[89].*)
6405 shlibpath_overrides_runpath=no
6406 ;;
6407 *)
6408 shlibpath_overrides_runpath=yes
6409 ;;
6410 esac
6411 else
6412 shlibpath_overrides_runpath=yes
6413 fi
6414 ;;
6415
6416os2*)
6417 libname_spec='$name'
6418 shrext=".dll"
6419 need_lib_prefix=no
6420 library_names_spec='$libname${shared_ext} $libname.a'
6421 dynamic_linker='OS/2 ld.exe'
6422 shlibpath_var=LIBPATH
6423 ;;
6424
6425osf3* | osf4* | osf5*)
6426 version_type=osf
6427 need_lib_prefix=no
6428 need_version=no
6429 soname_spec='${libname}${release}${shared_ext}$major'
6430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6431 shlibpath_var=LD_LIBRARY_PATH
6432 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6433 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6434 ;;
6435
6436sco3.2v5*)
6437 version_type=osf
6438 soname_spec='${libname}${release}${shared_ext}$major'
6439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6440 shlibpath_var=LD_LIBRARY_PATH
6441 ;;
6442
6443solaris*)
6444 version_type=linux
6445 need_lib_prefix=no
6446 need_version=no
6447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6448 soname_spec='${libname}${release}${shared_ext}$major'
6449 shlibpath_var=LD_LIBRARY_PATH
6450 shlibpath_overrides_runpath=yes
6451 hardcode_into_libs=yes
6452 # ldd complains unless libraries are executable
6453 postinstall_cmds='chmod +x $lib'
6454 ;;
6455
6456sunos4*)
6457 version_type=sunos
6458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6459 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6460 shlibpath_var=LD_LIBRARY_PATH
6461 shlibpath_overrides_runpath=yes
6462 if test "$with_gnu_ld" = yes; then
6463 need_lib_prefix=no
6464 fi
6465 need_version=yes
6466 ;;
6467
6468sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6469 version_type=linux
6470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6471 soname_spec='${libname}${release}${shared_ext}$major'
6472 shlibpath_var=LD_LIBRARY_PATH
6473 case $host_vendor in
6474 sni)
6475 shlibpath_overrides_runpath=no
6476 need_lib_prefix=no
6477 export_dynamic_flag_spec='${wl}-Blargedynsym'
6478 runpath_var=LD_RUN_PATH
6479 ;;
6480 siemens)
6481 need_lib_prefix=no
6482 ;;
6483 motorola)
6484 need_lib_prefix=no
6485 need_version=no
6486 shlibpath_overrides_runpath=no
6487 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6488 ;;
6489 esac
6490 ;;
6491
6492sysv4*MP*)
6493 if test -d /usr/nec ;then
6494 version_type=linux
6495 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6496 soname_spec='$libname${shared_ext}.$major'
6497 shlibpath_var=LD_LIBRARY_PATH
6498 fi
6499 ;;
6500
6501uts4*)
6502 version_type=linux
6503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6504 soname_spec='${libname}${release}${shared_ext}$major'
6505 shlibpath_var=LD_LIBRARY_PATH
6506 ;;
6507
6508*)
6509 dynamic_linker=no
6510 ;;
6511esac
5213506e
RW
6512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
6513$as_echo "$dynamic_linker" >&6; }
16dab3e2
TF
6514test "$dynamic_linker" = no && can_build_shared=no
6515
6516
5213506e
RW
6517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
6518$as_echo_n "checking which variable specifies run-time library path... " >&6; }
6519if test "${libltdl_cv_shlibpath_var+set}" = set; then :
6520 $as_echo_n "(cached) " >&6
16dab3e2
TF
6521else
6522 libltdl_cv_shlibpath_var="$shlibpath_var"
6523fi
5213506e
RW
6524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
6525$as_echo "$libltdl_cv_shlibpath_var" >&6; }
16dab3e2
TF
6526if test -n "$libltdl_cv_shlibpath_var"; then
6527
6528cat >>confdefs.h <<_ACEOF
6529#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
6530_ACEOF
6531
6532fi
6533
6534fi
6535
5213506e 6536ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
ee9dd372 6537
b0fa81ee 6538
6a92b6c7
DK
6539# Possibly build libgcj as many sub-libraries.
6540# Check whether --enable-libgcj-sublibs was given.
6541if test "${enable_libgcj_sublibs+set}" = set; then :
6542 enableval=$enable_libgcj_sublibs;
6543fi
6544
6545
6546if test -z "$enable_libgcj_sublibs"; then
6547 enable_libgcj_sublibs=$enable_libgcj_sublibs_default
6548fi
6549 if test "$enable_libgcj_sublibs" = yes; then
6550 BUILD_SUBLIBS_TRUE=
6551 BUILD_SUBLIBS_FALSE='#'
6552else
6553 BUILD_SUBLIBS_TRUE='#'
6554 BUILD_SUBLIBS_FALSE=
6555fi
6556
6557if test "$enable_libgcj_sublibs" = yes ; then
6558 # In theory we could make do with only one override and simply
6559 # tag "_bc" onto the end of it when we use it to generate the
6560 # spec, but that's an ugly thing to do when there are multiple
6561 # words in the string and you're relying on the ordering to
6562 # append the correct one.
6563 libgcj_spec_lgcj_override="-lgcj-noncore -lgcj"
6564 libgcj_spec_lgcj_bc_override="-lgcj-noncore -lgcj_bc"
6565fi
6566
6567
b0fa81ee
TT
6568# See if the user has requested runtime debugging.
6569LIBGCJDEBUG="disable"
6570
5213506e
RW
6571# Check whether --enable-libgcj-debug was given.
6572if test "${enable_libgcj_debug+set}" = set; then :
6573 enableval=$enable_libgcj_debug; if test "$enable_libgcj_debug" = yes; then
b0fa81ee 6574
5213506e 6575$as_echo "#define __GCJ_DEBUG 1" >>confdefs.h
b0fa81ee
TT
6576
6577 LIBGCJDEBUG="enable"
6578 fi
5213506e
RW
6579fi
6580
b0fa81ee 6581
97b8365c 6582
5213506e
RW
6583# Check whether --with-escher was given.
6584if test "${with_escher+set}" = set; then :
6585 withval=$with_escher;
6586fi
97b8365c 6587
97b8365c
TT
6588case "$with_escher" in
6589"")
6590 use_escher=false
6591 ;;
6592"no")
6593 use_escher=false
6594 ;;
6595"yes")
5213506e 6596 as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
97b8365c
TT
6597 ;;
6598*)
6599 use_escher=true
6600 ;;
6601esac
6602
b0fa81ee 6603# Determine which AWT peer libraries to build
5213506e
RW
6604# Check whether --enable-java-awt was given.
6605if test "${enable_java_awt+set}" = set; then :
6606 enableval=$enable_java_awt;
6607fi
b0fa81ee 6608
b0fa81ee
TT
6609
6610peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6611use_xlib_awt=""
6612use_gtk_awt=""
ab3fa9d3 6613use_qt_awt=""
97b8365c 6614use_x_awt=""
b0fa81ee
TT
6615# The default toolkit to use is the first one specified.
6616TOOLKIT=
6617
6618
6619for peer in $peerlibs ; do
6620 case $peer in
6621 xlib)
6622 if test "$no_x" = yes; then
6623 echo "*** xlib peers requested but no X library available" 1>&2
6624 exit 1
6625 else
9365047a
TT
6626 use_xlib_awt="yes"
6627 if test -z "$TOOLKIT"; then
6628 TOOLKIT=gnu.awt.xlib.XToolkit
6629 fi
b0fa81ee
TT
6630 fi
6631 ;;
6632 gtk)
6633 if test "$no_x" = yes; then
ab3fa9d3 6634 echo "*** gtk peers requested but no X library available" 1>&2
b0fa81ee
TT
6635 exit 1
6636 else
6637 use_gtk_awt=yes
6638 if test -z "$TOOLKIT"; then
6639 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
6640 fi
6641 fi
6642 ;;
ab3fa9d3
TT
6643 qt)
6644 if test "$no_x" = yes; then
6645 # Perhaps we should admit the possibility of embedded Qt.
6646 echo "*** Qt peers requested but no X library available" 1>&2
6647 exit 1
6648 else
6649 use_qt_awt=yes
6650 if test -z "$TOOLKIT"; then
6651 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
6652 fi
6653 fi
6654 ;;
97b8365c
TT
6655 x)
6656 use_x_awt=yes
6657 if test -z "$TOOLKIT"; then
6658 TOOLKIT=gnu.java.awt.peer.x.XToolkit
6659 fi
6660 ;;
b0fa81ee
TT
6661 no)
6662 use_xlib_awt=
6663 use_gtk_awt=
ab3fa9d3 6664 use_qt_awt=
97b8365c 6665 use_x_awt=
b0fa81ee
TT
6666 break
6667 ;;
6668 *)
6669 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6670 exit 1
6671 esac
6672done
6673
5213506e 6674 if test "$use_xlib_awt" = yes; then
b0fa81ee
TT
6675 XLIB_AWT_TRUE=
6676 XLIB_AWT_FALSE='#'
6677else
6678 XLIB_AWT_TRUE='#'
6679 XLIB_AWT_FALSE=
6680fi
6681
5213506e 6682 if test "$use_x_awt" = yes; then
97b8365c
TT
6683 X_AWT_TRUE=
6684 X_AWT_FALSE='#'
6685else
6686 X_AWT_TRUE='#'
6687 X_AWT_FALSE=
6688fi
6689
6690
6691
6692cat >>confdefs.h <<_ACEOF
6693#define AWT_TOOLKIT "$TOOLKIT"
6694_ACEOF
6695
6696
f3392d53
RW
6697expanded_prefix=$prefix
6698if test "X$prefix" = XNONE; then
6699 expanded_prefix=${ac_default_prefix}
6700fi
6701
97b8365c
TT
6702
6703cat >>confdefs.h <<_ACEOF
f3392d53 6704#define LIBGCJ_PREFIX "$expanded_prefix"
97b8365c
TT
6705_ACEOF
6706
6707
9365047a
TT
6708# Create standard.omit based on decisions we just made.
6709cp $srcdir/standard.omit.in standard.omit
6710if test "$use_xlib_awt" != yes; then
6711 echo gnu/awt/xlib >> standard.omit
6712 echo gnu/gcj/xlib >> standard.omit
6713fi
97b8365c
TT
6714if test "$use_x_awt" != yes; then
6715 echo gnu/java/awt/peer/x >> standard.omit
6716fi
b0fa81ee 6717
7f40378f 6718# Tools that need to be compiled against classpath's tools classes
ded63764 6719: > vm-tools-packages
7f40378f
DD
6720for package in gnu/gcj/tools/gc_analyze ; do
6721 echo $package >> standard.omit
6722 echo $package >> vm-tools-packages
6723done
6724
b0fa81ee
TT
6725if test -z "${with_multisubdir}"; then
6726 builddotdot=.
6727else
6728 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
6729fi
6730
6731NATIVE=yes
6732
97b8365c 6733# Which gcj and host gcj (for ecjx) do we use?
b0fa81ee 6734which_gcj=default
97b8365c 6735host_exeext=${ac_exeext}
9f8f1def
DL
6736GCJ_FOR_ECJX='$(GCJ)'
6737GCC_FOR_ECJX='$(CXX)'
b0fa81ee
TT
6738built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
6739if test -n "${with_cross_host}"; then
6740 # We are being configured with a cross compiler. We can't
6741 # use ac_exeext, because that is for the target platform.
6742 NATIVE=no
6743 cross_host_exeext=
97b8365c 6744 GCJ_FOR_ECJX="${with_cross_host}-gcj"
9f8f1def 6745 GCC_FOR_ECJX="${with_cross_host}-gcc"
b0fa81ee
TT
6746 case "${with_cross_host}" in
6747 *mingw* | *cygwin*)
6748 cross_host_exeext=.exe
6749 ;;
6750 esac
97b8365c 6751 host_exeext=${cross_host_exeext}
b0fa81ee
TT
6752 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
6753 if test x"$build_noncanonical" = x"$with_cross_host"; then
6754 # Ordinary cross (host!=target and host=build)
6755 which_gcj=built
6756 else
6757 # Canadian cross (host!=target and host!=build)
6758 which_gcj=cross
6759 fi
6760 else
6761 which_gcj=cross
6762 fi
6763else
6764 # We are being configured with a native or crossed-native compiler
6765 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
6766 if test x"$build" = x"$host"; then
6767 # True native build (host=target and host=build)
6768 which_gcj=built
6769 else
6770 # Crossed-native build (host=target and host!=build)
6771 which_gcj=cross
6772 fi
6773 else
6774 which_gcj=path
6775 fi
6776fi
4a4a4e99
AO
6777libgcjdir=`${PWDCMD-pwd}`
6778case $GCJ in
6779*" -B"*)
6780 # Just in case there is a comma in the build dir, quote it for the
6781 # sed command below.
6782 case $libgcjdir in
6783 *[,\\]*) qlibgcjdir=`echo "$libgcjdir" | sed 's:[,\\]:\\&:g'`;;
6784 *) qlibgcjdir=$libgcjdir;;
6785 esac
6786 GCJ=`echo "$GCJ" | sed "s, -B, -B$qlibgcjdir/&,"`
6787 ;;
6788*)
6789 GCJ=$GCJ" -B$libgcjdir/"
6790 ;;
6791esac
b0fa81ee
TT
6792case "${which_gcj}" in
6793 built)
b0fa81ee 6794 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
b0fa81ee
TT
6795 ;;
6796 cross)
6797 if test "x${with_newlib}" = "xyes"; then
6798 # FIXME (comment): Why is this needed?
201cdb74 6799 LIBGCC_UNWIND_INCLUDE=
b0fa81ee 6800 fi
bf654c94 6801 GCJH='$(target_noncanonical)-gcjh'
b0fa81ee
TT
6802 ;;
6803 path)
b0fa81ee
TT
6804 GCJH=gcjh
6805 ;;
6806esac
e0441a5b
MK
6807JAVAC="$GCJ -C"
6808export JAVAC
b0fa81ee
TT
6809
6810
6811
97b8365c
TT
6812
6813
9f8f1def 6814
b0fa81ee
TT
6815# Create it, so that compile/link tests don't fail
6816test -f libgcj.spec || touch libgcj.spec
6817
6818
6819
6820# Set up to configure Classpath.
6821# FIXME: no supported way to pass args in autoconf.
97b8365c
TT
6822# Disable tool wrappers to avoid ltdl.h configure check.
6823ac_configure_args="$ac_configure_args --disable-tool-wrappers"
b0fa81ee
TT
6824ac_configure_args="$ac_configure_args --disable-load-library"
6825ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
6826ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
6827dir1=`cd $srcdir && pwd`
6828dir2=`pwd`
6829ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
6830ac_configure_args="$ac_configure_args --disable-core-jni"
6831ac_configure_args="$ac_configure_args --disable-examples"
6832ac_configure_args="$ac_configure_args --with-glibj=build"
34677bae 6833if test "$browser_plugin_enabled" != yes; then
648e8d6d 6834 ac_configure_args="$ac_configure_args --disable-plugin"
34677bae
MK
6835else
6836 ac_configure_args="$ac_configure_args --enable-plugin"
648e8d6d 6837fi
ac1ed908
MW
6838if test "$gconf_enabled" != yes; then
6839 ac_configure_args="$ac_configure_args --disable-gconf-peer"
6840 ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
6841fi
b0fa81ee 6842if test "$use_gtk_awt" != yes; then
97b8365c 6843 ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
b0fa81ee 6844fi
ab3fa9d3
TT
6845if test "$use_qt_awt" != yes; then
6846 ac_configure_args="$ac_configure_args --disable-qt-peer"
e0f7b260
TT
6847else
6848 # We need this as qt is disabled by default in classpath.
6849 ac_configure_args="$ac_configure_args --enable-qt-peer"
ab3fa9d3 6850fi
97b8365c
TT
6851if test "$use_x_awt" != yes; then
6852 ac_configure_args="$ac_configure_args --without-escher"
6853else
6854 # We need this as escher is disabled by default in classpath.
6855 if test "$use_escher" != true; then
5213506e 6856 as_fn_error "Please supply an absolute path to the Escher library" "$LINENO" 5
97b8365c
TT
6857 else
6858 ac_configure_args="$ac_configure_args --with-escher=$with_escher"
6859 fi
6860fi
cd6d4007
MK
6861if test "x$BUILD_GJDOC" = xno; then
6862 ac_configure_args="$ac_configure_args --disable-gjdoc"
6863fi
97b8365c 6864# -Werror causes unavoidable problems in code using alsa.
e0441a5b 6865ac_configure_args="$ac_configure_args --disable-regen-headers"
97b8365c 6866ac_configure_args="$ac_configure_args --disable-Werror"
b0fa81ee 6867
d6f6aaf6 6868# Only use libltdl for non-newlib builds.
2d29f3a1 6869if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
52a11cbf 6870 case $enable_ltdl_convenience in
5213506e 6871 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
7af85558
TT
6872 "") enable_ltdl_convenience=yes
6873 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
6874 esac
6d0860ee 6875 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1cf3d07d
SE
6876 LTDLINCL='-I${top_srcdir}/''libltdl'
6877 # For backwards non-gettext consistent compatibility...
6878 INCLTDL="$LTDLINCL"
6879
6880 enable_dlopen=yes
6881
7af85558 6882
ed698112 6883
7af85558 6884 DIRLTDL=libltdl
ed698112 6885
5213506e 6886$as_echo "#define USE_LTDL 1" >>confdefs.h
7af85558
TT
6887
6888 # Sigh. Libtool's macro doesn't do the right thing.
6889 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
7f7ba9bf 6890 # FIXME: this is a hack.
1e6347d8 6891 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
f1eba847 6892 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
7af85558
TT
6893fi
6894
6895
6896
0da7a284
PG
6897case `pwd` in
6898 *\ * | *\ *)
5213506e
RW
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6900$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
0da7a284 6901esac
1cf3d07d
SE
6902
6903
1cf3d07d 6904
43e02a8a
RW
6905macro_version='2.2.7a'
6906macro_revision='1.3134'
1cf3d07d
SE
6907
6908
6909
6910
6911
6912
02809848 6913
1cf3d07d
SE
6914
6915
6916
6917
6918
6919
0da7a284 6920ltmain="$ac_aux_dir/ltmain.sh"
1cf3d07d 6921
43e02a8a
RW
6922# Backslashify metacharacters that are still active within
6923# double-quoted strings.
6924sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6925
6926# Same as above, but do not quote variable references.
6927double_quote_subst='s/\(["`\\]\)/\\\1/g'
6928
6929# Sed substitution to delay expansion of an escaped shell variable in a
6930# double_quote_subst'ed string.
6931delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6932
6933# Sed substitution to delay expansion of an escaped single quote.
6934delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6935
6936# Sed substitution to avoid accidental globbing in evaled expressions
6937no_glob_subst='s/\*/\\\*/g'
6938
6939ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6940ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6941ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6942
6943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6944$as_echo_n "checking how to print strings... " >&6; }
6945# Test print first, because it will be a builtin if present.
6946if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6947 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6948 ECHO='print -r --'
6949elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6950 ECHO='printf %s\n'
6951else
6952 # Use this function as a fallback that always works.
6953 func_fallback_echo ()
6954 {
6955 eval 'cat <<_LTECHO_EOF
6956$1
6957_LTECHO_EOF'
6958 }
6959 ECHO='func_fallback_echo'
6960fi
6961
6962# func_echo_all arg...
6963# Invoke $ECHO with all args, space-separated.
6964func_echo_all ()
6965{
6966 $ECHO ""
6967}
6968
6969case "$ECHO" in
6970 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6971$as_echo "printf" >&6; } ;;
6972 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6973$as_echo "print -r" >&6; } ;;
6974 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6975$as_echo "cat" >&6; } ;;
6976esac
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
5213506e
RW
6991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6992$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6993if test "${ac_cv_path_SED+set}" = set; then :
6994 $as_echo_n "(cached) " >&6
6995else
6996 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6997 for ac_i in 1 2 3 4 5 6 7; do
6998 ac_script="$ac_script$as_nl$ac_script"
6999 done
7000 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7001 { ac_script=; unset ac_script;}
7002 if test -z "$SED"; then
7003 ac_path_SED_found=false
7004 # Loop through the user's path and test for each of PROGNAME-LIST
7005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1cf3d07d
SE
7006for as_dir in $PATH
7007do
7008 IFS=$as_save_IFS
7009 test -z "$as_dir" && as_dir=.
5213506e 7010 for ac_prog in sed gsed; do
1cf3d07d 7011 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e
RW
7012 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7013 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7014# Check for GNU ac_path_SED and select it if it is found.
7015 # Check for GNU $ac_path_SED
7016case `"$ac_path_SED" --version 2>&1` in
7017*GNU*)
7018 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7019*)
7020 ac_count=0
7021 $as_echo_n 0123456789 >"conftest.in"
7022 while :
7023 do
7024 cat "conftest.in" "conftest.in" >"conftest.tmp"
7025 mv "conftest.tmp" "conftest.in"
7026 cp "conftest.in" "conftest.nl"
7027 $as_echo '' >> "conftest.nl"
7028 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7029 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7030 as_fn_arith $ac_count + 1 && ac_count=$as_val
7031 if test $ac_count -gt ${ac_path_SED_max-0}; then
7032 # Best one so far, save it but keep looking for a better one
7033 ac_cv_path_SED="$ac_path_SED"
7034 ac_path_SED_max=$ac_count
7035 fi
7036 # 10*(2^10) chars as input seems more than enough
7037 test $ac_count -gt 10 && break
7038 done
7039 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7040esac
7041
7042 $ac_path_SED_found && break 3
1cf3d07d
SE
7043 done
7044 done
5213506e 7045 done
1cf3d07d 7046IFS=$as_save_IFS
5213506e
RW
7047 if test -z "$ac_cv_path_SED"; then
7048 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
1cf3d07d 7049 fi
5213506e
RW
7050else
7051 ac_cv_path_SED=$SED
1cf3d07d
SE
7052fi
7053
5213506e
RW
7054fi
7055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7056$as_echo "$ac_cv_path_SED" >&6; }
7057 SED="$ac_cv_path_SED"
7058 rm -f conftest.sed
1cf3d07d
SE
7059
7060test -z "$SED" && SED=sed
7061Xsed="$SED -e 1s/^X//"
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
5213506e
RW
7073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7074$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7075if test "${ac_cv_path_GREP+set}" = set; then :
7076 $as_echo_n "(cached) " >&6
7077else
7078 if test -z "$GREP"; then
7079 ac_path_GREP_found=false
7080 # Loop through the user's path and test for each of PROGNAME-LIST
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7083do
7084 IFS=$as_save_IFS
7085 test -z "$as_dir" && as_dir=.
7086 for ac_prog in grep ggrep; do
7087 for ac_exec_ext in '' $ac_executable_extensions; do
7088 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7089 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7090# Check for GNU ac_path_GREP and select it if it is found.
7091 # Check for GNU $ac_path_GREP
7092case `"$ac_path_GREP" --version 2>&1` in
7093*GNU*)
7094 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7095*)
7096 ac_count=0
7097 $as_echo_n 0123456789 >"conftest.in"
7098 while :
7099 do
7100 cat "conftest.in" "conftest.in" >"conftest.tmp"
7101 mv "conftest.tmp" "conftest.in"
7102 cp "conftest.in" "conftest.nl"
7103 $as_echo 'GREP' >> "conftest.nl"
7104 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7105 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7106 as_fn_arith $ac_count + 1 && ac_count=$as_val
7107 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7108 # Best one so far, save it but keep looking for a better one
7109 ac_cv_path_GREP="$ac_path_GREP"
7110 ac_path_GREP_max=$ac_count
7111 fi
7112 # 10*(2^10) chars as input seems more than enough
7113 test $ac_count -gt 10 && break
7114 done
7115 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7116esac
7117
7118 $ac_path_GREP_found && break 3
7119 done
7120 done
7121 done
7122IFS=$as_save_IFS
7123 if test -z "$ac_cv_path_GREP"; then
7124 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7125 fi
7126else
7127 ac_cv_path_GREP=$GREP
7128fi
7129
7130fi
7131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7132$as_echo "$ac_cv_path_GREP" >&6; }
7133 GREP="$ac_cv_path_GREP"
7134
7135
7136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7137$as_echo_n "checking for egrep... " >&6; }
7138if test "${ac_cv_path_EGREP+set}" = set; then :
7139 $as_echo_n "(cached) " >&6
1cf3d07d 7140else
5213506e
RW
7141 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7142 then ac_cv_path_EGREP="$GREP -E"
7143 else
7144 if test -z "$EGREP"; then
7145 ac_path_EGREP_found=false
7146 # Loop through the user's path and test for each of PROGNAME-LIST
7147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7149do
7150 IFS=$as_save_IFS
7151 test -z "$as_dir" && as_dir=.
7152 for ac_prog in egrep; do
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7155 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7156# Check for GNU ac_path_EGREP and select it if it is found.
7157 # Check for GNU $ac_path_EGREP
7158case `"$ac_path_EGREP" --version 2>&1` in
7159*GNU*)
7160 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7161*)
7162 ac_count=0
7163 $as_echo_n 0123456789 >"conftest.in"
7164 while :
7165 do
7166 cat "conftest.in" "conftest.in" >"conftest.tmp"
7167 mv "conftest.tmp" "conftest.in"
7168 cp "conftest.in" "conftest.nl"
7169 $as_echo 'EGREP' >> "conftest.nl"
7170 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7171 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7172 as_fn_arith $ac_count + 1 && ac_count=$as_val
7173 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7174 # Best one so far, save it but keep looking for a better one
7175 ac_cv_path_EGREP="$ac_path_EGREP"
7176 ac_path_EGREP_max=$ac_count
1cf3d07d 7177 fi
5213506e
RW
7178 # 10*(2^10) chars as input seems more than enough
7179 test $ac_count -gt 10 && break
7180 done
7181 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7182esac
7183
7184 $ac_path_EGREP_found && break 3
7185 done
7186 done
7187 done
7188IFS=$as_save_IFS
7189 if test -z "$ac_cv_path_EGREP"; then
7190 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7191 fi
7192else
7193 ac_cv_path_EGREP=$EGREP
7194fi
7195
7196 fi
1cf3d07d 7197fi
5213506e
RW
7198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7199$as_echo "$ac_cv_path_EGREP" >&6; }
7200 EGREP="$ac_cv_path_EGREP"
1cf3d07d
SE
7201
7202
5213506e
RW
7203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7204$as_echo_n "checking for fgrep... " >&6; }
7205if test "${ac_cv_path_FGREP+set}" = set; then :
7206 $as_echo_n "(cached) " >&6
1cf3d07d 7207else
5213506e
RW
7208 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7209 then ac_cv_path_FGREP="$GREP -F"
7210 else
7211 if test -z "$FGREP"; then
7212 ac_path_FGREP_found=false
7213 # Loop through the user's path and test for each of PROGNAME-LIST
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7216do
7217 IFS=$as_save_IFS
7218 test -z "$as_dir" && as_dir=.
7219 for ac_prog in fgrep; do
7220 for ac_exec_ext in '' $ac_executable_extensions; do
7221 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7222 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7223# Check for GNU ac_path_FGREP and select it if it is found.
7224 # Check for GNU $ac_path_FGREP
7225case `"$ac_path_FGREP" --version 2>&1` in
7226*GNU*)
7227 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7228*)
7229 ac_count=0
7230 $as_echo_n 0123456789 >"conftest.in"
7231 while :
7232 do
7233 cat "conftest.in" "conftest.in" >"conftest.tmp"
7234 mv "conftest.tmp" "conftest.in"
7235 cp "conftest.in" "conftest.nl"
7236 $as_echo 'FGREP' >> "conftest.nl"
7237 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7238 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7239 as_fn_arith $ac_count + 1 && ac_count=$as_val
7240 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7241 # Best one so far, save it but keep looking for a better one
7242 ac_cv_path_FGREP="$ac_path_FGREP"
7243 ac_path_FGREP_max=$ac_count
1cf3d07d 7244 fi
5213506e
RW
7245 # 10*(2^10) chars as input seems more than enough
7246 test $ac_count -gt 10 && break
7247 done
7248 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7249esac
7250
7251 $ac_path_FGREP_found && break 3
7252 done
7253 done
7254 done
7255IFS=$as_save_IFS
7256 if test -z "$ac_cv_path_FGREP"; then
7257 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7258 fi
7259else
7260 ac_cv_path_FGREP=$FGREP
7261fi
7262
7263 fi
1cf3d07d 7264fi
5213506e
RW
7265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7266$as_echo "$ac_cv_path_FGREP" >&6; }
7267 FGREP="$ac_cv_path_FGREP"
1cf3d07d
SE
7268
7269
7270test -z "$GREP" && GREP=grep
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
5213506e
RW
7290# Check whether --with-gnu-ld was given.
7291if test "${with_gnu_ld+set}" = set; then :
7292 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
a3ffcff3
TT
7293else
7294 with_gnu_ld=no
5213506e
RW
7295fi
7296
a3ffcff3 7297ac_prog=ld
52a11cbf 7298if test "$GCC" = yes; then
a3ffcff3 7299 # Check if gcc -print-prog-name=ld gives a path.
5213506e
RW
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7301$as_echo_n "checking for ld used by $CC... " >&6; }
6d0860ee
AO
7302 case $host in
7303 *-*-mingw*)
7304 # gcc leaves a trailing carriage return which upsets mingw
7305 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7306 *)
7307 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7308 esac
52a11cbf 7309 case $ac_prog in
01b02b11 7310 # Accept absolute paths.
1cf3d07d 7311 [\\/]* | ?:[\\/]*)
01b02b11 7312 re_direlt='/[^/][^/]*/\.\./'
1cf3d07d
SE
7313 # Canonicalize the pathname of ld
7314 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7315 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7316 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
01b02b11
TT
7317 done
7318 test -z "$LD" && LD="$ac_prog"
7319 ;;
a3ffcff3
TT
7320 "")
7321 # If it fails, then pretend we aren't using GCC.
7322 ac_prog=ld
7323 ;;
7324 *)
7325 # If it is relative, then search for the first ld in PATH.
7326 with_gnu_ld=unknown
7327 ;;
7328 esac
7329elif test "$with_gnu_ld" = yes; then
5213506e
RW
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7331$as_echo_n "checking for GNU ld... " >&6; }
a3ffcff3 7332else
5213506e
RW
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7334$as_echo_n "checking for non-GNU ld... " >&6; }
a3ffcff3 7335fi
5213506e
RW
7336if test "${lt_cv_path_LD+set}" = set; then :
7337 $as_echo_n "(cached) " >&6
a3ffcff3
TT
7338else
7339 if test -z "$LD"; then
1cf3d07d 7340 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
a3ffcff3 7341 for ac_dir in $PATH; do
1cf3d07d 7342 IFS="$lt_save_ifs"
a3ffcff3 7343 test -z "$ac_dir" && ac_dir=.
7af85558 7344 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
52a11cbf 7345 lt_cv_path_LD="$ac_dir/$ac_prog"
a3ffcff3 7346 # Check to see if the program is GNU ld. I'd rather use --version,
1cf3d07d 7347 # but apparently some variants of GNU ld only accept -v.
a3ffcff3 7348 # Break only if it was the GNU/non-GNU ld that we prefer.
1cf3d07d
SE
7349 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7350 *GNU* | *'with BFD'*)
a3ffcff3 7351 test "$with_gnu_ld" != no && break
1cf3d07d
SE
7352 ;;
7353 *)
01b02b11 7354 test "$with_gnu_ld" != yes && break
1cf3d07d
SE
7355 ;;
7356 esac
a3ffcff3
TT
7357 fi
7358 done
1cf3d07d 7359 IFS="$lt_save_ifs"
a3ffcff3 7360else
52a11cbf 7361 lt_cv_path_LD="$LD" # Let the user override the test with a path.
a3ffcff3
TT
7362fi
7363fi
7364
52a11cbf 7365LD="$lt_cv_path_LD"
a3ffcff3 7366if test -n "$LD"; then
5213506e
RW
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7368$as_echo "$LD" >&6; }
a3ffcff3 7369else
5213506e
RW
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7371$as_echo "no" >&6; }
a3ffcff3 7372fi
5213506e
RW
7373test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7375$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7376if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7377 $as_echo_n "(cached) " >&6
a3ffcff3 7378else
1cf3d07d
SE
7379 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7380case `$LD -v 2>&1 </dev/null` in
7381*GNU* | *'with BFD'*)
52a11cbf 7382 lt_cv_prog_gnu_ld=yes
1cf3d07d
SE
7383 ;;
7384*)
52a11cbf 7385 lt_cv_prog_gnu_ld=no
1cf3d07d
SE
7386 ;;
7387esac
a3ffcff3 7388fi
5213506e
RW
7389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7390$as_echo "$lt_cv_prog_gnu_ld" >&6; }
52a11cbf 7391with_gnu_ld=$lt_cv_prog_gnu_ld
6d0860ee
AO
7392
7393
a3ffcff3 7394
1cf3d07d
SE
7395
7396
7397
7398
7399
7400
5213506e
RW
7401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7402$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7403if test "${lt_cv_path_NM+set}" = set; then :
7404 $as_echo_n "(cached) " >&6
a3ffcff3
TT
7405else
7406 if test -n "$NM"; then
7407 # Let the user override the test.
52a11cbf 7408 lt_cv_path_NM="$NM"
a3ffcff3 7409else
1cf3d07d
SE
7410 lt_nm_to_check="${ac_tool_prefix}nm"
7411 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7412 lt_nm_to_check="$lt_nm_to_check nm"
7413 fi
7414 for lt_tmp_nm in $lt_nm_to_check; do
7415 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7416 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7417 IFS="$lt_save_ifs"
7418 test -z "$ac_dir" && ac_dir=.
7419 tmp_nm="$ac_dir/$lt_tmp_nm"
7420 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7421 # Check to see if the nm accepts a BSD-compat flag.
7422 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7423 # nm: unknown option "B" ignored
7424 # Tru64's nm complains that /dev/null is an invalid object file
7425 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7426 */dev/null* | *'Invalid file or object type'*)
7427 lt_cv_path_NM="$tmp_nm -B"
7428 break
7429 ;;
7430 *)
7431 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7432 */dev/null*)
7433 lt_cv_path_NM="$tmp_nm -p"
7434 break
7435 ;;
7436 *)
7437 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7438 continue # so that we can try to find one that supports BSD flags
7439 ;;
7440 esac
7441 ;;
7442 esac
a3ffcff3 7443 fi
1cf3d07d
SE
7444 done
7445 IFS="$lt_save_ifs"
a3ffcff3 7446 done
1cf3d07d 7447 : ${lt_cv_path_NM=no}
a3ffcff3
TT
7448fi
7449fi
5213506e
RW
7450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7451$as_echo "$lt_cv_path_NM" >&6; }
1cf3d07d
SE
7452if test "$lt_cv_path_NM" != "no"; then
7453 NM="$lt_cv_path_NM"
7454else
7455 # Didn't find any BSD compatible name lister, look for dumpbin.
43e02a8a
RW
7456 if test -n "$DUMPBIN"; then :
7457 # Let the user override the test.
7458 else
7459 if test -n "$ac_tool_prefix"; then
7460 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
7461 do
7462 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7463set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
7464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7465$as_echo_n "checking for $ac_word... " >&6; }
7466if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7467 $as_echo_n "(cached) " >&6
6d0860ee 7468else
1cf3d07d
SE
7469 if test -n "$DUMPBIN"; then
7470 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7471else
7472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473for as_dir in $PATH
7474do
7475 IFS=$as_save_IFS
7476 test -z "$as_dir" && as_dir=.
5213506e
RW
7477 for ac_exec_ext in '' $ac_executable_extensions; do
7478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 7479 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5213506e 7480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
7481 break 2
7482 fi
7483done
5213506e
RW
7484 done
7485IFS=$as_save_IFS
6d0860ee 7486
1cf3d07d
SE
7487fi
7488fi
7489DUMPBIN=$ac_cv_prog_DUMPBIN
7490if test -n "$DUMPBIN"; then
5213506e
RW
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7492$as_echo "$DUMPBIN" >&6; }
1cf3d07d 7493else
5213506e
RW
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495$as_echo "no" >&6; }
1cf3d07d 7496fi
52a11cbf 7497
5213506e 7498
1cf3d07d
SE
7499 test -n "$DUMPBIN" && break
7500 done
7501fi
7502if test -z "$DUMPBIN"; then
7503 ac_ct_DUMPBIN=$DUMPBIN
43e02a8a 7504 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
7505do
7506 # Extract the first word of "$ac_prog", so it can be a program name with args.
7507set dummy $ac_prog; ac_word=$2
5213506e
RW
7508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7509$as_echo_n "checking for $ac_word... " >&6; }
7510if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7511 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7512else
7513 if test -n "$ac_ct_DUMPBIN"; then
7514 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7515else
7516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517for as_dir in $PATH
7518do
7519 IFS=$as_save_IFS
7520 test -z "$as_dir" && as_dir=.
5213506e
RW
7521 for ac_exec_ext in '' $ac_executable_extensions; do
7522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 7523 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5213506e 7524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d 7525 break 2
6d0860ee 7526 fi
1cf3d07d 7527done
5213506e
RW
7528 done
7529IFS=$as_save_IFS
6d0860ee 7530
1cf3d07d
SE
7531fi
7532fi
7533ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7534if test -n "$ac_ct_DUMPBIN"; then
5213506e
RW
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7536$as_echo "$ac_ct_DUMPBIN" >&6; }
1cf3d07d 7537else
5213506e
RW
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7539$as_echo "no" >&6; }
1cf3d07d 7540fi
6d0860ee 7541
5213506e 7542
1cf3d07d
SE
7543 test -n "$ac_ct_DUMPBIN" && break
7544done
6d0860ee 7545
5213506e
RW
7546 if test "x$ac_ct_DUMPBIN" = x; then
7547 DUMPBIN=":"
7548 else
7549 case $cross_compiling:$ac_tool_warned in
7550yes:)
7551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7553ac_tool_warned=yes ;;
7554esac
7555 DUMPBIN=$ac_ct_DUMPBIN
7556 fi
1cf3d07d 7557fi
6d0860ee 7558
43e02a8a
RW
7559 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7560 *COFF*)
7561 DUMPBIN="$DUMPBIN -symbols"
7562 ;;
7563 *)
7564 DUMPBIN=:
7565 ;;
7566 esac
7567 fi
6d0860ee 7568
1cf3d07d
SE
7569 if test "$DUMPBIN" != ":"; then
7570 NM="$DUMPBIN"
6d0860ee 7571 fi
1cf3d07d
SE
7572fi
7573test -z "$NM" && NM=nm
6d0860ee 7574
6d0860ee 7575
6d0860ee 7576
6d0860ee 7577
3610e0d5 7578
7af85558 7579
5213506e
RW
7580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7581$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7582if test "${lt_cv_nm_interface+set}" = set; then :
7583 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7584else
7585 lt_cv_nm_interface="BSD nm"
7586 echo "int some_variable = 0;" > conftest.$ac_ext
43e02a8a 7587 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
1cf3d07d
SE
7588 (eval "$ac_compile" 2>conftest.err)
7589 cat conftest.err >&5
43e02a8a 7590 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1cf3d07d
SE
7591 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7592 cat conftest.err >&5
43e02a8a 7593 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
1cf3d07d
SE
7594 cat conftest.out >&5
7595 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7596 lt_cv_nm_interface="MS dumpbin"
7597 fi
7598 rm -f conftest*
6d0860ee 7599fi
5213506e
RW
7600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7601$as_echo "$lt_cv_nm_interface" >&6; }
6d0860ee 7602
c69094e1 7603# find the maximum length of command line arguments
5213506e
RW
7604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7605$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7606if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7607 $as_echo_n "(cached) " >&6
c69094e1
TT
7608else
7609 i=0
7610 teststring="ABCD"
7611
7612 case $build_os in
7613 msdosdjgpp*)
7614 # On DJGPP, this test can blow up pretty badly due to problems in libc
7615 # (any single argument exceeding 2000 bytes causes a buffer overrun
7616 # during glob expansion). Even if it were fixed, the result of this
7617 # check would be larger than it should be.
7618 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7619 ;;
7620
1cf3d07d
SE
7621 gnu*)
7622 # Under GNU Hurd, this test is not required because there is
7623 # no limit to the length of command line arguments.
7624 # Libtool will interpret -1 as no limit whatsoever
7625 lt_cv_sys_max_cmd_len=-1;
7626 ;;
7627
0da7a284 7628 cygwin* | mingw* | cegcc*)
c69094e1
TT
7629 # On Win9x/ME, this test blows up -- it succeeds, but takes
7630 # about 5 minutes as the teststring grows exponentially.
7631 # Worse, since 9x/ME are not pre-emptively multitasking,
7632 # you end up with a "frozen" computer, even though with patience
7633 # the test eventually succeeds (with a max line length of 256k).
7634 # Instead, let's just punt: use the minimum linelength reported by
7635 # all of the supported platforms: 8192 (on NT/2K/XP).
7636 lt_cv_sys_max_cmd_len=8192;
7637 ;;
7638
43e02a8a
RW
7639 mint*)
7640 # On MiNT this can take a long time and run out of memory.
7641 lt_cv_sys_max_cmd_len=8192;
7642 ;;
7643
c69094e1
TT
7644 amigaos*)
7645 # On AmigaOS with pdksh, this test takes hours, literally.
7646 # So we just punt and use a minimum line length of 8192.
7647 lt_cv_sys_max_cmd_len=8192;
7648 ;;
7649
7650 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7651 # This has been around since 386BSD, at least. Likely further.
7652 if test -x /sbin/sysctl; then
7653 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7654 elif test -x /usr/sbin/sysctl; then
7655 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7656 else
1cf3d07d 7657 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
c69094e1
TT
7658 fi
7659 # And add a safety zone
7660 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7661 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7662 ;;
1cf3d07d
SE
7663
7664 interix*)
7665 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7666 lt_cv_sys_max_cmd_len=196608
7667 ;;
7668
7669 osf*)
7670 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7671 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7672 # nice to cause kernel panics so lets avoid the loop below.
7673 # First set a reasonable default.
7674 lt_cv_sys_max_cmd_len=16384
7675 #
7676 if test -x /sbin/sysconfig; then
7677 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7678 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7679 esac
7680 fi
7681 ;;
7682 sco3.2v5*)
7683 lt_cv_sys_max_cmd_len=102400
7684 ;;
7685 sysv5* | sco5v6* | sysv4.2uw2*)
7686 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7687 if test -n "$kargmax"; then
7688 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7689 else
7690 lt_cv_sys_max_cmd_len=32768
7691 fi
7692 ;;
7693 *)
0da7a284
PG
7694 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7695 if test -n "$lt_cv_sys_max_cmd_len"; then
82a6cadf
PB
7696 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7697 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7698 else
7699 # Make teststring a little bigger before we do anything with it.
7700 # a 1K string should be a reasonable start.
7701 for i in 1 2 3 4 5 6 7 8 ; do
7702 teststring=$teststring$teststring
7703 done
7704 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7705 # If test is not a shell built-in, we'll probably end up computing a
7706 # maximum length that is only half of the actual maximum length, but
7707 # we can't tell.
43e02a8a
RW
7708 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7709 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
82a6cadf
PB
7710 test $i != 17 # 1/2 MB should be enough
7711 do
7712 i=`expr $i + 1`
7713 teststring=$teststring$teststring
7714 done
7715 # Only check the string length outside the loop.
7716 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7717 teststring=
7718 # Add a significant safety factor because C++ compilers can tack on
7719 # massive amounts of additional arguments before passing them to the
7720 # linker. It appears as though 1/2 is a usable value.
7721 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7722 fi
1cf3d07d 7723 ;;
c69094e1
TT
7724 esac
7725
7726fi
7727
1cf3d07d 7728if test -n $lt_cv_sys_max_cmd_len ; then
5213506e
RW
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7730$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
c69094e1 7731else
5213506e
RW
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7733$as_echo "none" >&6; }
c69094e1 7734fi
1cf3d07d 7735max_cmd_len=$lt_cv_sys_max_cmd_len
c69094e1
TT
7736
7737
1cf3d07d
SE
7738
7739
7740
7741
7742: ${CP="cp -f"}
7743: ${MV="mv -f"}
7744: ${RM="rm -f"}
7745
5213506e
RW
7746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7747$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1cf3d07d
SE
7748# Try some XSI features
7749xsi_shell=no
7750( _lt_dummy="a/b/c"
7751 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
0da7a284
PG
7752 = c,a/b,, \
7753 && eval 'test $(( 1 + 1 )) -eq 2 \
7754 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
1cf3d07d 7755 && xsi_shell=yes
5213506e
RW
7756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7757$as_echo "$xsi_shell" >&6; }
1cf3d07d
SE
7758
7759
5213506e
RW
7760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7761$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1cf3d07d
SE
7762lt_shell_append=no
7763( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7764 >/dev/null 2>&1 \
7765 && lt_shell_append=yes
5213506e
RW
7766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7767$as_echo "$lt_shell_append" >&6; }
1cf3d07d
SE
7768
7769
7770if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7771 lt_unset=unset
6d0860ee 7772else
1cf3d07d
SE
7773 lt_unset=false
7774fi
7775
7776
7777
7778
7779
7780# test EBCDIC or ASCII
7781case `echo X|tr X '\101'` in
7782 A) # ASCII based system
7783 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7784 lt_SP2NL='tr \040 \012'
7785 lt_NL2SP='tr \015\012 \040\040'
6d0860ee 7786 ;;
1cf3d07d
SE
7787 *) # EBCDIC based system
7788 lt_SP2NL='tr \100 \n'
7789 lt_NL2SP='tr \r\n \100\100'
6d0860ee 7790 ;;
1cf3d07d 7791esac
6d0860ee 7792
6d0860ee 7793
6d0860ee 7794
1cf3d07d
SE
7795
7796
7797
7798
7799
7800
5213506e
RW
7801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7802$as_echo_n "checking for $LD option to reload object files... " >&6; }
7803if test "${lt_cv_ld_reload_flag+set}" = set; then :
7804 $as_echo_n "(cached) " >&6
6d0860ee 7805else
1cf3d07d 7806 lt_cv_ld_reload_flag='-r'
6d0860ee 7807fi
5213506e
RW
7808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7809$as_echo "$lt_cv_ld_reload_flag" >&6; }
1cf3d07d
SE
7810reload_flag=$lt_cv_ld_reload_flag
7811case $reload_flag in
7812"" | " "*) ;;
7813*) reload_flag=" $reload_flag" ;;
7814esac
7815reload_cmds='$LD$reload_flag -o $output$reload_objs'
7816case $host_os in
7817 darwin*)
7818 if test "$GCC" = yes; then
7819 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7820 else
7821 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7822 fi
7823 ;;
7824esac
6d0860ee 7825
1cf3d07d
SE
7826
7827
7828
7829
7830
7831
7832
7833
0da7a284
PG
7834if test -n "$ac_tool_prefix"; then
7835 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7836set dummy ${ac_tool_prefix}objdump; ac_word=$2
5213506e
RW
7837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7838$as_echo_n "checking for $ac_word... " >&6; }
7839if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7840 $as_echo_n "(cached) " >&6
0da7a284
PG
7841else
7842 if test -n "$OBJDUMP"; then
7843 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7844else
7845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846for as_dir in $PATH
7847do
7848 IFS=$as_save_IFS
7849 test -z "$as_dir" && as_dir=.
5213506e
RW
7850 for ac_exec_ext in '' $ac_executable_extensions; do
7851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0da7a284 7852 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5213506e 7853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0da7a284
PG
7854 break 2
7855 fi
7856done
5213506e
RW
7857 done
7858IFS=$as_save_IFS
0da7a284
PG
7859
7860fi
7861fi
7862OBJDUMP=$ac_cv_prog_OBJDUMP
7863if test -n "$OBJDUMP"; then
5213506e
RW
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7865$as_echo "$OBJDUMP" >&6; }
0da7a284 7866else
5213506e
RW
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868$as_echo "no" >&6; }
0da7a284
PG
7869fi
7870
5213506e 7871
0da7a284
PG
7872fi
7873if test -z "$ac_cv_prog_OBJDUMP"; then
7874 ac_ct_OBJDUMP=$OBJDUMP
7875 # Extract the first word of "objdump", so it can be a program name with args.
7876set dummy objdump; ac_word=$2
5213506e
RW
7877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7878$as_echo_n "checking for $ac_word... " >&6; }
7879if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7880 $as_echo_n "(cached) " >&6
0da7a284
PG
7881else
7882 if test -n "$ac_ct_OBJDUMP"; then
7883 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7884else
7885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886for as_dir in $PATH
7887do
7888 IFS=$as_save_IFS
7889 test -z "$as_dir" && as_dir=.
5213506e
RW
7890 for ac_exec_ext in '' $ac_executable_extensions; do
7891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0da7a284 7892 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5213506e 7893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0da7a284
PG
7894 break 2
7895 fi
7896done
5213506e
RW
7897 done
7898IFS=$as_save_IFS
0da7a284 7899
0da7a284
PG
7900fi
7901fi
7902ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7903if test -n "$ac_ct_OBJDUMP"; then
5213506e
RW
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7905$as_echo "$ac_ct_OBJDUMP" >&6; }
0da7a284 7906else
5213506e
RW
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908$as_echo "no" >&6; }
0da7a284
PG
7909fi
7910
5213506e
RW
7911 if test "x$ac_ct_OBJDUMP" = x; then
7912 OBJDUMP="false"
7913 else
7914 case $cross_compiling:$ac_tool_warned in
7915yes:)
7916{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7917$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7918ac_tool_warned=yes ;;
7919esac
7920 OBJDUMP=$ac_ct_OBJDUMP
7921 fi
0da7a284
PG
7922else
7923 OBJDUMP="$ac_cv_prog_OBJDUMP"
7924fi
7925
7926test -z "$OBJDUMP" && OBJDUMP=objdump
7927
7928
7929
7930
7931
7932
7933
7934
1cf3d07d 7935
5213506e
RW
7936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7937$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7938if test "${lt_cv_deplibs_check_method+set}" = set; then :
7939 $as_echo_n "(cached) " >&6
6d0860ee 7940else
1cf3d07d
SE
7941 lt_cv_file_magic_cmd='$MAGIC_CMD'
7942lt_cv_file_magic_test_file=
7943lt_cv_deplibs_check_method='unknown'
7944# Need to set the preceding variable on all platforms that support
7945# interlibrary dependencies.
7946# 'none' -- dependencies not supported.
7947# `unknown' -- same as none, but documents that we really don't know.
7948# 'pass_all' -- all dependencies passed with no checks.
7949# 'test_compile' -- check by making test program.
7950# 'file_magic [[regex]]' -- check by looking for files in library path
7951# which responds to the $file_magic_cmd with a given extended regex.
7952# If you have `file' or equivalent on your system and you're not sure
7953# whether `pass_all' will *always* work, you probably want this one.
7954
7955case $host_os in
ed44a2c7 7956aix[4-9]*)
1cf3d07d
SE
7957 lt_cv_deplibs_check_method=pass_all
7958 ;;
7959
7960beos*)
7961 lt_cv_deplibs_check_method=pass_all
7962 ;;
7963
7964bsdi[45]*)
7965 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7966 lt_cv_file_magic_cmd='/usr/bin/file -L'
7967 lt_cv_file_magic_test_file=/shlib/libc.so
7968 ;;
7969
7970cygwin*)
7971 # func_win32_libid is a shell function defined in ltmain.sh
7972 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7973 lt_cv_file_magic_cmd='func_win32_libid'
7974 ;;
7975
7976mingw* | pw32*)
7977 # Base MSYS/MinGW do not provide the 'file' command needed by
7978 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7979 # unless we find 'file', for example because we are cross-compiling.
43e02a8a
RW
7980 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7981 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
1cf3d07d
SE
7982 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7983 lt_cv_file_magic_cmd='func_win32_libid'
7984 else
7985 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7986 lt_cv_file_magic_cmd='$OBJDUMP -f'
7987 fi
6d0860ee 7988 ;;
1cf3d07d 7989
43e02a8a 7990cegcc*)
0da7a284
PG
7991 # use the weaker test based on 'objdump'. See mingw*.
7992 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7993 lt_cv_file_magic_cmd='$OBJDUMP -f'
7994 ;;
7995
1cf3d07d
SE
7996darwin* | rhapsody*)
7997 lt_cv_deplibs_check_method=pass_all
7998 ;;
7999
8000freebsd* | dragonfly*)
8001 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8002 case $host_cpu in
8003 i*86 )
8004 # Not sure whether the presence of OpenBSD here was a mistake.
8005 # Let's accept both of them until this is cleared up.
8006 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8007 lt_cv_file_magic_cmd=/usr/bin/file
8008 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8009 ;;
8010 esac
8011 else
8012 lt_cv_deplibs_check_method=pass_all
8013 fi
6d0860ee 8014 ;;
1cf3d07d
SE
8015
8016gnu*)
8017 lt_cv_deplibs_check_method=pass_all
8018 ;;
8019
43e02a8a
RW
8020haiku*)
8021 lt_cv_deplibs_check_method=pass_all
8022 ;;
8023
1cf3d07d
SE
8024hpux10.20* | hpux11*)
8025 lt_cv_file_magic_cmd=/usr/bin/file
8026 case $host_cpu in
8027 ia64*)
8028 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8029 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8030 ;;
8031 hppa*64*)
43e02a8a 8032 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
1cf3d07d
SE
8033 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8034 ;;
6d0860ee 8035 *)
43e02a8a 8036 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
1cf3d07d
SE
8037 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8038 ;;
8039 esac
8040 ;;
6d0860ee 8041
1cf3d07d
SE
8042interix[3-9]*)
8043 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8044 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8045 ;;
6d0860ee 8046
1cf3d07d
SE
8047irix5* | irix6* | nonstopux*)
8048 case $LD in
8049 *-32|*"-32 ") libmagic=32-bit;;
8050 *-n32|*"-n32 ") libmagic=N32;;
8051 *-64|*"-64 ") libmagic=64-bit;;
8052 *) libmagic=never-match;;
8053 esac
8054 lt_cv_deplibs_check_method=pass_all
6d0860ee 8055 ;;
6d0860ee 8056
1cf3d07d 8057# This must be Linux ELF.
7a9d3fe8 8058linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
8059 lt_cv_deplibs_check_method=pass_all
8060 ;;
6d0860ee 8061
1cf3d07d
SE
8062netbsd*)
8063 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8064 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6d0860ee 8065 else
1cf3d07d 8066 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6d0860ee 8067 fi
1cf3d07d
SE
8068 ;;
8069
8070newos6*)
8071 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8072 lt_cv_file_magic_cmd=/usr/bin/file
8073 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8074 ;;
8075
8076*nto* | *qnx*)
8077 lt_cv_deplibs_check_method=pass_all
8078 ;;
6d0860ee 8079
1cf3d07d
SE
8080openbsd*)
8081 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8082 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8083 else
8084 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6d0860ee
AO
8085 fi
8086 ;;
1cf3d07d
SE
8087
8088osf3* | osf4* | osf5*)
8089 lt_cv_deplibs_check_method=pass_all
8090 ;;
8091
8092rdos*)
8093 lt_cv_deplibs_check_method=pass_all
8094 ;;
8095
8096solaris*)
8097 lt_cv_deplibs_check_method=pass_all
8098 ;;
8099
8100sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8101 lt_cv_deplibs_check_method=pass_all
8102 ;;
8103
8104sysv4 | sysv4.3*)
8105 case $host_vendor in
8106 motorola)
8107 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]'
8108 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8109 ;;
8110 ncr)
8111 lt_cv_deplibs_check_method=pass_all
8112 ;;
8113 sequent)
8114 lt_cv_file_magic_cmd='/bin/file'
8115 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8116 ;;
8117 sni)
8118 lt_cv_file_magic_cmd='/bin/file'
8119 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8120 lt_cv_file_magic_test_file=/lib/libc.so
8121 ;;
8122 siemens)
8123 lt_cv_deplibs_check_method=pass_all
8124 ;;
8125 pc)
8126 lt_cv_deplibs_check_method=pass_all
8127 ;;
8128 esac
8129 ;;
8130
8131tpf*)
8132 lt_cv_deplibs_check_method=pass_all
8133 ;;
6d0860ee
AO
8134esac
8135
1cf3d07d 8136fi
5213506e
RW
8137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8138$as_echo "$lt_cv_deplibs_check_method" >&6; }
1cf3d07d
SE
8139file_magic_cmd=$lt_cv_file_magic_cmd
8140deplibs_check_method=$lt_cv_deplibs_check_method
8141test -z "$deplibs_check_method" && deplibs_check_method=unknown
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
ed698112 8154if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
8155 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8156set dummy ${ac_tool_prefix}ar; ac_word=$2
5213506e
RW
8157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8158$as_echo_n "checking for $ac_word... " >&6; }
8159if test "${ac_cv_prog_AR+set}" = set; then :
8160 $as_echo_n "(cached) " >&6
6d0860ee 8161else
1cf3d07d
SE
8162 if test -n "$AR"; then
8163 ac_cv_prog_AR="$AR" # Let the user override the test.
6d0860ee 8164else
ed698112
NN
8165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8166for as_dir in $PATH
8167do
8168 IFS=$as_save_IFS
8169 test -z "$as_dir" && as_dir=.
5213506e
RW
8170 for ac_exec_ext in '' $ac_executable_extensions; do
8171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 8172 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213506e 8173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112
NN
8174 break 2
8175 fi
8176done
5213506e
RW
8177 done
8178IFS=$as_save_IFS
ed698112 8179
6d0860ee
AO
8180fi
8181fi
1cf3d07d
SE
8182AR=$ac_cv_prog_AR
8183if test -n "$AR"; then
5213506e
RW
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8185$as_echo "$AR" >&6; }
1cf3d07d 8186else
5213506e
RW
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8188$as_echo "no" >&6; }
6d0860ee
AO
8189fi
8190
5213506e 8191
ed698112 8192fi
1cf3d07d
SE
8193if test -z "$ac_cv_prog_AR"; then
8194 ac_ct_AR=$AR
8195 # Extract the first word of "ar", so it can be a program name with args.
8196set dummy ar; ac_word=$2
5213506e
RW
8197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8198$as_echo_n "checking for $ac_word... " >&6; }
8199if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8200 $as_echo_n "(cached) " >&6
6d0860ee 8201else
1cf3d07d
SE
8202 if test -n "$ac_ct_AR"; then
8203 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6d0860ee 8204else
ed698112
NN
8205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8206for as_dir in $PATH
8207do
8208 IFS=$as_save_IFS
8209 test -z "$as_dir" && as_dir=.
5213506e
RW
8210 for ac_exec_ext in '' $ac_executable_extensions; do
8211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 8212 ac_cv_prog_ac_ct_AR="ar"
5213506e 8213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112
NN
8214 break 2
8215 fi
8216done
5213506e
RW
8217 done
8218IFS=$as_save_IFS
ed698112 8219
6d0860ee
AO
8220fi
8221fi
1cf3d07d
SE
8222ac_ct_AR=$ac_cv_prog_ac_ct_AR
8223if test -n "$ac_ct_AR"; then
5213506e
RW
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8225$as_echo "$ac_ct_AR" >&6; }
6d0860ee 8226else
5213506e
RW
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8228$as_echo "no" >&6; }
6d0860ee
AO
8229fi
8230
5213506e
RW
8231 if test "x$ac_ct_AR" = x; then
8232 AR="false"
8233 else
8234 case $cross_compiling:$ac_tool_warned in
8235yes:)
8236{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8237$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8238ac_tool_warned=yes ;;
8239esac
8240 AR=$ac_ct_AR
8241 fi
6d0860ee 8242else
1cf3d07d 8243 AR="$ac_cv_prog_AR"
6d0860ee
AO
8244fi
8245
1cf3d07d
SE
8246test -z "$AR" && AR=ar
8247test -z "$AR_FLAGS" && AR_FLAGS=cru
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
ed698112
NN
8259if test -n "$ac_tool_prefix"; then
8260 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6d0860ee 8261set dummy ${ac_tool_prefix}strip; ac_word=$2
5213506e
RW
8262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8263$as_echo_n "checking for $ac_word... " >&6; }
8264if test "${ac_cv_prog_STRIP+set}" = set; then :
8265 $as_echo_n "(cached) " >&6
6d0860ee
AO
8266else
8267 if test -n "$STRIP"; then
8268 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8269else
ed698112
NN
8270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271for as_dir in $PATH
8272do
8273 IFS=$as_save_IFS
8274 test -z "$as_dir" && as_dir=.
5213506e
RW
8275 for ac_exec_ext in '' $ac_executable_extensions; do
8276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ed698112 8277 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5213506e 8278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112
NN
8279 break 2
8280 fi
8281done
5213506e
RW
8282 done
8283IFS=$as_save_IFS
ed698112 8284
6d0860ee
AO
8285fi
8286fi
ed698112 8287STRIP=$ac_cv_prog_STRIP
6d0860ee 8288if test -n "$STRIP"; then
5213506e
RW
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8290$as_echo "$STRIP" >&6; }
6d0860ee 8291else
5213506e
RW
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293$as_echo "no" >&6; }
6d0860ee
AO
8294fi
8295
5213506e 8296
ed698112 8297fi
6d0860ee 8298if test -z "$ac_cv_prog_STRIP"; then
ed698112 8299 ac_ct_STRIP=$STRIP
6d0860ee
AO
8300 # Extract the first word of "strip", so it can be a program name with args.
8301set dummy strip; ac_word=$2
5213506e
RW
8302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8303$as_echo_n "checking for $ac_word... " >&6; }
8304if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8305 $as_echo_n "(cached) " >&6
6d0860ee 8306else
ed698112
NN
8307 if test -n "$ac_ct_STRIP"; then
8308 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6d0860ee 8309else
ed698112
NN
8310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8311for as_dir in $PATH
8312do
8313 IFS=$as_save_IFS
8314 test -z "$as_dir" && as_dir=.
5213506e
RW
8315 for ac_exec_ext in '' $ac_executable_extensions; do
8316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ed698112 8317 ac_cv_prog_ac_ct_STRIP="strip"
5213506e 8318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112
NN
8319 break 2
8320 fi
8321done
5213506e
RW
8322 done
8323IFS=$as_save_IFS
ed698112 8324
6d0860ee
AO
8325fi
8326fi
ed698112
NN
8327ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8328if test -n "$ac_ct_STRIP"; then
5213506e
RW
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8330$as_echo "$ac_ct_STRIP" >&6; }
6d0860ee 8331else
5213506e
RW
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8333$as_echo "no" >&6; }
6d0860ee
AO
8334fi
8335
5213506e
RW
8336 if test "x$ac_ct_STRIP" = x; then
8337 STRIP=":"
8338 else
8339 case $cross_compiling:$ac_tool_warned in
8340yes:)
8341{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8342$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8343ac_tool_warned=yes ;;
8344esac
8345 STRIP=$ac_ct_STRIP
8346 fi
6d0860ee 8347else
ed698112 8348 STRIP="$ac_cv_prog_STRIP"
6d0860ee
AO
8349fi
8350
1cf3d07d 8351test -z "$STRIP" && STRIP=:
6d0860ee 8352
ed698112 8353
7af85558 8354
7af85558 8355
a3ffcff3 8356
ed698112 8357
1cf3d07d
SE
8358if test -n "$ac_tool_prefix"; then
8359 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8360set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213506e
RW
8361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8362$as_echo_n "checking for $ac_word... " >&6; }
8363if test "${ac_cv_prog_RANLIB+set}" = set; then :
8364 $as_echo_n "(cached) " >&6
6d0860ee 8365else
1cf3d07d
SE
8366 if test -n "$RANLIB"; then
8367 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8368else
8369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8370for as_dir in $PATH
8371do
8372 IFS=$as_save_IFS
8373 test -z "$as_dir" && as_dir=.
5213506e
RW
8374 for ac_exec_ext in '' $ac_executable_extensions; do
8375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 8376 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213506e 8377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d 8378 break 2
a3ffcff3 8379 fi
1cf3d07d 8380done
5213506e
RW
8381 done
8382IFS=$as_save_IFS
a3ffcff3 8383
1cf3d07d
SE
8384fi
8385fi
8386RANLIB=$ac_cv_prog_RANLIB
8387if test -n "$RANLIB"; then
5213506e
RW
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8389$as_echo "$RANLIB" >&6; }
1cf3d07d 8390else
5213506e
RW
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392$as_echo "no" >&6; }
1cf3d07d 8393fi
f5cc59a7 8394
5213506e 8395
1cf3d07d
SE
8396fi
8397if test -z "$ac_cv_prog_RANLIB"; then
8398 ac_ct_RANLIB=$RANLIB
8399 # Extract the first word of "ranlib", so it can be a program name with args.
8400set dummy ranlib; ac_word=$2
5213506e
RW
8401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8402$as_echo_n "checking for $ac_word... " >&6; }
8403if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8404 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8405else
8406 if test -n "$ac_ct_RANLIB"; then
8407 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8408else
8409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8410for as_dir in $PATH
8411do
8412 IFS=$as_save_IFS
8413 test -z "$as_dir" && as_dir=.
5213506e
RW
8414 for ac_exec_ext in '' $ac_executable_extensions; do
8415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 8416 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213506e 8417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d 8418 break 2
54d9d34a 8419 fi
1cf3d07d 8420done
5213506e
RW
8421 done
8422IFS=$as_save_IFS
54d9d34a 8423
1cf3d07d
SE
8424fi
8425fi
8426ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8427if test -n "$ac_ct_RANLIB"; then
5213506e
RW
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8429$as_echo "$ac_ct_RANLIB" >&6; }
01b02b11 8430else
5213506e
RW
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8432$as_echo "no" >&6; }
1cf3d07d 8433fi
ed698112 8434
5213506e
RW
8435 if test "x$ac_ct_RANLIB" = x; then
8436 RANLIB=":"
8437 else
8438 case $cross_compiling:$ac_tool_warned in
8439yes:)
8440{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8441$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8442ac_tool_warned=yes ;;
8443esac
8444 RANLIB=$ac_ct_RANLIB
8445 fi
1cf3d07d
SE
8446else
8447 RANLIB="$ac_cv_prog_RANLIB"
8448fi
8449
8450test -z "$RANLIB" && RANLIB=:
ade710a5 8451
ed698112 8452
01b02b11 8453
01b02b11 8454
ed698112 8455
6d0860ee 8456
1cf3d07d 8457# Determine commands to create old-style static archives.
0da7a284 8458old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1cf3d07d
SE
8459old_postinstall_cmds='chmod 644 $oldlib'
8460old_postuninstall_cmds=
8461
8462if test -n "$RANLIB"; then
8463 case $host_os in
8464 openbsd*)
8465 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8466 ;;
8467 *)
8468 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8469 ;;
8470 esac
8471 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
01b02b11 8472fi
1cf3d07d 8473
43e02a8a
RW
8474case $host_os in
8475 darwin*)
8476 lock_old_archive_extraction=yes ;;
8477 *)
8478 lock_old_archive_extraction=no ;;
8479esac
8480
8481
8482
8483
8484
8485
1cf3d07d
SE
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519# If no C compiler was specified, use CC.
8520LTCC=${LTCC-"$CC"}
8521
8522# If no C compiler flags were specified, use CFLAGS.
8523LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8524
8525# Allow CC to be a program name with arguments.
8526compiler=$CC
8527
8528
8529# Check for command to grab the raw symbol name followed by C symbol from nm.
5213506e
RW
8530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8531$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8532if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8533 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8534else
8535
8536# These are sane defaults that work on at least a few old systems.
8537# [They come from Ultrix. What could be older than Ultrix?!! ;)]
8538
8539# Character class describing NM global symbol codes.
8540symcode='[BCDEGRST]'
8541
8542# Regexp to match symbols that can be accessed directly from C.
8543sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8544
8545# Define system-specific variables.
8546case $host_os in
8547aix*)
8548 symcode='[BCDT]'
8549 ;;
0da7a284 8550cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
8551 symcode='[ABCDGISTW]'
8552 ;;
8553hpux*)
8554 if test "$host_cpu" = ia64; then
8555 symcode='[ABCDEGRST]'
01b02b11 8556 fi
a3ffcff3 8557 ;;
1cf3d07d
SE
8558irix* | nonstopux*)
8559 symcode='[BCDEGRST]'
8560 ;;
8561osf*)
8562 symcode='[BCDEGQRST]'
8563 ;;
8564solaris*)
8565 symcode='[BDRT]'
8566 ;;
8567sco3.2v5*)
8568 symcode='[DT]'
8569 ;;
8570sysv4.2uw2*)
8571 symcode='[DT]'
8572 ;;
8573sysv5* | sco5v6* | unixware* | OpenUNIX*)
8574 symcode='[ABDT]'
8575 ;;
8576sysv4)
8577 symcode='[DFNSTU]'
8578 ;;
8579esac
a3ffcff3 8580
1cf3d07d
SE
8581# If we're using GNU nm, then use its standard symbol codes.
8582case `$NM -V 2>&1` in
8583*GNU* | *'with BFD'*)
8584 symcode='[ABCDGIRSTW]' ;;
a3ffcff3
TT
8585esac
8586
1cf3d07d
SE
8587# Transform an extracted symbol line into a proper C declaration.
8588# Some systems (esp. on ia64) link data and code symbols differently,
8589# so use this general approach.
8590lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
01b02b11 8591
1cf3d07d
SE
8592# Transform an extracted symbol line into symbol name and symbol address
8593lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
0da7a284 8594lt_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'"
ed698112 8595
1cf3d07d
SE
8596# Handle CRLF in mingw tool chain
8597opt_cr=
8598case $build_os in
8599mingw*)
8600 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8601 ;;
8602esac
ed698112 8603
1cf3d07d
SE
8604# Try without a prefix underscore, then with it.
8605for ac_symprfx in "" "_"; do
8606
8607 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8608 symxfrm="\\1 $ac_symprfx\\2 \\2"
8609
8610 # Write the raw and C identifiers.
8611 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8612 # Fake it for dumpbin and say T for any non-static function
8613 # and D for any global variable.
8614 # Also find C++ and __fastcall symbols from MSVC++,
8615 # which start with @ or ?.
8616 lt_cv_sys_global_symbol_pipe="$AWK '"\
8617" {last_section=section; section=\$ 3};"\
8618" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8619" \$ 0!~/External *\|/{next};"\
8620" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8621" {if(hide[section]) next};"\
8622" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8623" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8624" s[1]~/^[@?]/{print s[1], s[1]; next};"\
8625" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8626" ' prfx=^$ac_symprfx"
01b02b11 8627 else
1cf3d07d 8628 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
01b02b11 8629 fi
01b02b11 8630
1cf3d07d
SE
8631 # Check to see that the pipe works correctly.
8632 pipe_works=no
a3ffcff3 8633
1cf3d07d
SE
8634 rm -f conftest*
8635 cat > conftest.$ac_ext <<_LT_EOF
8636#ifdef __cplusplus
8637extern "C" {
8638#endif
8639char nm_test_var;
8640void nm_test_func(void);
8641void nm_test_func(void){}
8642#ifdef __cplusplus
8643}
8644#endif
8645int main(){nm_test_var='a';nm_test_func();return(0);}
8646_LT_EOF
01b02b11 8647
5213506e 8648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
8649 (eval $ac_compile) 2>&5
8650 ac_status=$?
5213506e
RW
8651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8652 test $ac_status = 0; }; then
1cf3d07d
SE
8653 # Now try to grab the symbols.
8654 nlist=conftest.nm
43e02a8a
RW
8655 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8656 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1cf3d07d 8657 ac_status=$?
5213506e
RW
8658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8659 test $ac_status = 0; } && test -s "$nlist"; then
1cf3d07d
SE
8660 # Try sorting and uniquifying the output.
8661 if sort "$nlist" | uniq > "$nlist"T; then
8662 mv -f "$nlist"T "$nlist"
8663 else
8664 rm -f "$nlist"T
8665 fi
01b02b11 8666
1cf3d07d
SE
8667 # Make sure that we snagged all the symbols we need.
8668 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8669 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8670 cat <<_LT_EOF > conftest.$ac_ext
8671#ifdef __cplusplus
8672extern "C" {
8673#endif
01b02b11 8674
1cf3d07d
SE
8675_LT_EOF
8676 # Now generate the symbol file.
8677 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
01b02b11 8678
1cf3d07d 8679 cat <<_LT_EOF >> conftest.$ac_ext
a3ffcff3 8680
1cf3d07d
SE
8681/* The mapping between symbol names and symbols. */
8682const struct {
8683 const char *name;
8684 void *address;
8685}
8686lt__PROGRAM__LTX_preloaded_symbols[] =
8687{
8688 { "@PROGRAM@", (void *) 0 },
8689_LT_EOF
8690 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8691 cat <<\_LT_EOF >> conftest.$ac_ext
8692 {0, (void *) 0}
8693};
8694
8695/* This works around a problem in FreeBSD linker */
8696#ifdef FREEBSD_WORKAROUND
8697static const void *lt_preloaded_setup() {
8698 return lt__PROGRAM__LTX_preloaded_symbols;
8699}
ed698112 8700#endif
1cf3d07d
SE
8701
8702#ifdef __cplusplus
8703}
8704#endif
8705_LT_EOF
8706 # Now try linking the two files.
8707 mv conftest.$ac_objext conftstm.$ac_objext
8708 lt_save_LIBS="$LIBS"
8709 lt_save_CFLAGS="$CFLAGS"
8710 LIBS="conftstm.$ac_objext"
8711 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5213506e 8712 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d 8713 (eval $ac_link) 2>&5
ed698112 8714 ac_status=$?
5213506e
RW
8715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8716 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1cf3d07d
SE
8717 pipe_works=yes
8718 fi
8719 LIBS="$lt_save_LIBS"
8720 CFLAGS="$lt_save_CFLAGS"
8721 else
8722 echo "cannot find nm_test_func in $nlist" >&5
8723 fi
8724 else
8725 echo "cannot find nm_test_var in $nlist" >&5
8726 fi
8727 else
8728 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8729 fi
ed698112 8730 else
1cf3d07d
SE
8731 echo "$progname: failed program was:" >&5
8732 cat conftest.$ac_ext >&5
ed698112 8733 fi
0da7a284 8734 rm -rf conftest* conftst*
1cf3d07d
SE
8735
8736 # Do not use the global_symbol_pipe unless it works.
8737 if test "$pipe_works" = yes; then
8738 break
8739 else
8740 lt_cv_sys_global_symbol_pipe=
8741 fi
8742done
8743
ed698112 8744fi
ed698112 8745
1cf3d07d
SE
8746if test -z "$lt_cv_sys_global_symbol_pipe"; then
8747 lt_cv_sys_global_symbol_to_cdecl=
8748fi
8749if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5213506e
RW
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8751$as_echo "failed" >&6; }
1cf3d07d 8752else
5213506e
RW
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8754$as_echo "ok" >&6; }
ed698112 8755fi
ed698112 8756
1cf3d07d
SE
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
0da7a284
PG
8771
8772
8773
8774
8775
1cf3d07d
SE
8776
8777
8778
5213506e
RW
8779# Check whether --enable-libtool-lock was given.
8780if test "${enable_libtool_lock+set}" = set; then :
8781 enableval=$enable_libtool_lock;
8782fi
1cf3d07d 8783
1cf3d07d
SE
8784test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8785
8786# Some flags need to be propagated to the compiler or linker for good
8787# libtool support.
8788case $host in
8789ia64-*-hpux*)
8790 # Find out which ABI we are using.
8791 echo 'int i;' > conftest.$ac_ext
5213506e 8792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
8793 (eval $ac_compile) 2>&5
8794 ac_status=$?
5213506e
RW
8795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8796 test $ac_status = 0; }; then
1cf3d07d
SE
8797 case `/usr/bin/file conftest.$ac_objext` in
8798 *ELF-32*)
8799 HPUX_IA64_MODE="32"
8800 ;;
8801 *ELF-64*)
8802 HPUX_IA64_MODE="64"
8803 ;;
8804 esac
8805 fi
8806 rm -rf conftest*
8807 ;;
8808*-*-irix6*)
8809 # Find out which ABI we are using.
43e02a8a 8810 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5213506e 8811 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
8812 (eval $ac_compile) 2>&5
8813 ac_status=$?
5213506e
RW
8814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8815 test $ac_status = 0; }; then
1cf3d07d
SE
8816 if test "$lt_cv_prog_gnu_ld" = yes; then
8817 case `/usr/bin/file conftest.$ac_objext` in
8818 *32-bit*)
8819 LD="${LD-ld} -melf32bsmip"
8820 ;;
8821 *N32*)
8822 LD="${LD-ld} -melf32bmipn32"
8823 ;;
8824 *64-bit*)
8825 LD="${LD-ld} -melf64bmip"
8826 ;;
8827 esac
8828 else
8829 case `/usr/bin/file conftest.$ac_objext` in
8830 *32-bit*)
8831 LD="${LD-ld} -32"
8832 ;;
8833 *N32*)
8834 LD="${LD-ld} -n32"
8835 ;;
8836 *64-bit*)
8837 LD="${LD-ld} -64"
8838 ;;
8839 esac
8840 fi
8841 fi
8842 rm -rf conftest*
8843 ;;
8844
3cbe17f7 8845x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1cf3d07d
SE
8846s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8847 # Find out which ABI we are using.
8848 echo 'int i;' > conftest.$ac_ext
5213506e 8849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
8850 (eval $ac_compile) 2>&5
8851 ac_status=$?
5213506e
RW
8852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8853 test $ac_status = 0; }; then
1cf3d07d
SE
8854 case `/usr/bin/file conftest.o` in
8855 *32-bit*)
8856 case $host in
8857 x86_64-*kfreebsd*-gnu)
8858 LD="${LD-ld} -m elf_i386_fbsd"
8859 ;;
8860 x86_64-*linux*)
e6d5f8c9
L
8861 case `/usr/bin/file conftest.o` in
8862 *x86-64*)
8863 LD="${LD-ld} -m elf32_x86_64"
8864 ;;
8865 *)
8866 LD="${LD-ld} -m elf_i386"
8867 ;;
8868 esac
1cf3d07d 8869 ;;
3cbe17f7
AM
8870 powerpc64le-*linux*)
8871 LD="${LD-ld} -m elf32lppclinux"
8872 ;;
8873 powerpc64-*linux*)
1cf3d07d
SE
8874 LD="${LD-ld} -m elf32ppclinux"
8875 ;;
8876 s390x-*linux*)
8877 LD="${LD-ld} -m elf_s390"
8878 ;;
8879 sparc64-*linux*)
8880 LD="${LD-ld} -m elf32_sparc"
8881 ;;
8882 esac
8883 ;;
8884 *64-bit*)
8885 case $host in
8886 x86_64-*kfreebsd*-gnu)
8887 LD="${LD-ld} -m elf_x86_64_fbsd"
8888 ;;
8889 x86_64-*linux*)
8890 LD="${LD-ld} -m elf_x86_64"
8891 ;;
3cbe17f7
AM
8892 powerpcle-*linux*)
8893 LD="${LD-ld} -m elf64lppc"
8894 ;;
8895 powerpc-*linux*)
1cf3d07d
SE
8896 LD="${LD-ld} -m elf64ppc"
8897 ;;
8898 s390*-*linux*|s390*-*tpf*)
8899 LD="${LD-ld} -m elf64_s390"
8900 ;;
8901 sparc*-*linux*)
8902 LD="${LD-ld} -m elf64_sparc"
8903 ;;
8904 esac
8905 ;;
8906 esac
ed698112 8907 fi
1cf3d07d
SE
8908 rm -rf conftest*
8909 ;;
8910
8911*-*-sco3.2v5*)
8912 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8913 SAVE_CFLAGS="$CFLAGS"
8914 CFLAGS="$CFLAGS -belf"
5213506e
RW
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8916$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8917if test "${lt_cv_cc_needs_belf+set}" = set; then :
8918 $as_echo_n "(cached) " >&6
ed698112 8919else
1cf3d07d
SE
8920 ac_ext=c
8921ac_cpp='$CPP $CPPFLAGS'
8922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8924ac_compiler_gnu=$ac_cv_c_compiler_gnu
8925
8926 if test x$gcc_no_link = xyes; then
5213506e 8927 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ed698112 8928fi
5213506e 8929cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
8930/* end confdefs.h. */
8931
8932int
8933main ()
8934{
8935
8936 ;
8937 return 0;
8938}
8939_ACEOF
5213506e 8940if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 8941 lt_cv_cc_needs_belf=yes
ed698112 8942else
5213506e 8943 lt_cv_cc_needs_belf=no
ed698112 8944fi
5213506e
RW
8945rm -f core conftest.err conftest.$ac_objext \
8946 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
8947 ac_ext=c
8948ac_cpp='$CPP $CPPFLAGS'
8949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8951ac_compiler_gnu=$ac_cv_c_compiler_gnu
ed698112 8952
ed698112 8953fi
5213506e
RW
8954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8955$as_echo "$lt_cv_cc_needs_belf" >&6; }
1cf3d07d
SE
8956 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8957 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8958 CFLAGS="$SAVE_CFLAGS"
8959 fi
8960 ;;
8961sparc*-*solaris*)
8962 # Find out which ABI we are using.
8963 echo 'int i;' > conftest.$ac_ext
5213506e 8964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
8965 (eval $ac_compile) 2>&5
8966 ac_status=$?
5213506e
RW
8967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8968 test $ac_status = 0; }; then
1cf3d07d
SE
8969 case `/usr/bin/file conftest.o` in
8970 *64-bit*)
8971 case $lt_cv_prog_gnu_ld in
8972 yes*) LD="${LD-ld} -m elf64_sparc" ;;
0da7a284
PG
8973 *)
8974 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8975 LD="${LD-ld} -64"
8976 fi
8977 ;;
1cf3d07d
SE
8978 esac
8979 ;;
8980 esac
8981 fi
8982 rm -rf conftest*
8983 ;;
8984esac
ed698112 8985
1cf3d07d 8986need_locks="$enable_libtool_lock"
ed698112 8987
0da7a284
PG
8988
8989 case $host_os in
8990 rhapsody* | darwin*)
8991 if test -n "$ac_tool_prefix"; then
8992 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8993set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5213506e
RW
8994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8995$as_echo_n "checking for $ac_word... " >&6; }
8996if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8997 $as_echo_n "(cached) " >&6
ed698112 8998else
0da7a284
PG
8999 if test -n "$DSYMUTIL"; then
9000 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9001else
9002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9003for as_dir in $PATH
ed698112 9004do
0da7a284
PG
9005 IFS=$as_save_IFS
9006 test -z "$as_dir" && as_dir=.
5213506e
RW
9007 for ac_exec_ext in '' $ac_executable_extensions; do
9008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0da7a284 9009 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5213506e 9010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0da7a284 9011 break 2
ed698112 9012 fi
0da7a284 9013done
5213506e
RW
9014 done
9015IFS=$as_save_IFS
ed698112 9016
ed698112 9017fi
0da7a284
PG
9018fi
9019DSYMUTIL=$ac_cv_prog_DSYMUTIL
9020if test -n "$DSYMUTIL"; then
5213506e
RW
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9022$as_echo "$DSYMUTIL" >&6; }
ed698112 9023else
5213506e
RW
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9025$as_echo "no" >&6; }
ed698112 9026fi
0da7a284 9027
5213506e 9028
0da7a284
PG
9029fi
9030if test -z "$ac_cv_prog_DSYMUTIL"; then
9031 ac_ct_DSYMUTIL=$DSYMUTIL
9032 # Extract the first word of "dsymutil", so it can be a program name with args.
9033set dummy dsymutil; ac_word=$2
5213506e
RW
9034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9035$as_echo_n "checking for $ac_word... " >&6; }
9036if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
9037 $as_echo_n "(cached) " >&6
ed698112 9038else
0da7a284
PG
9039 if test -n "$ac_ct_DSYMUTIL"; then
9040 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9041else
9042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9043for as_dir in $PATH
9044do
9045 IFS=$as_save_IFS
9046 test -z "$as_dir" && as_dir=.
5213506e
RW
9047 for ac_exec_ext in '' $ac_executable_extensions; do
9048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0da7a284 9049 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5213506e 9050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0da7a284
PG
9051 break 2
9052 fi
9053done
5213506e
RW
9054 done
9055IFS=$as_save_IFS
ed698112 9056
0da7a284
PG
9057fi
9058fi
9059ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9060if test -n "$ac_ct_DSYMUTIL"; then
5213506e
RW
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9062$as_echo "$ac_ct_DSYMUTIL" >&6; }
0da7a284 9063else
5213506e
RW
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9065$as_echo "no" >&6; }
ed698112 9066fi
ed698112 9067
5213506e
RW
9068 if test "x$ac_ct_DSYMUTIL" = x; then
9069 DSYMUTIL=":"
9070 else
9071 case $cross_compiling:$ac_tool_warned in
9072yes:)
9073{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9075ac_tool_warned=yes ;;
9076esac
9077 DSYMUTIL=$ac_ct_DSYMUTIL
9078 fi
0da7a284
PG
9079else
9080 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
ed698112
NN
9081fi
9082
0da7a284
PG
9083 if test -n "$ac_tool_prefix"; then
9084 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9085set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5213506e
RW
9086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9087$as_echo_n "checking for $ac_word... " >&6; }
9088if test "${ac_cv_prog_NMEDIT+set}" = set; then :
9089 $as_echo_n "(cached) " >&6
0da7a284
PG
9090else
9091 if test -n "$NMEDIT"; then
9092 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9093else
9094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9095for as_dir in $PATH
9096do
9097 IFS=$as_save_IFS
9098 test -z "$as_dir" && as_dir=.
5213506e
RW
9099 for ac_exec_ext in '' $ac_executable_extensions; do
9100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0da7a284 9101 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5213506e 9102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0da7a284
PG
9103 break 2
9104 fi
9105done
5213506e
RW
9106 done
9107IFS=$as_save_IFS
e3f92d3b 9108
1cf3d07d 9109fi
0da7a284
PG
9110fi
9111NMEDIT=$ac_cv_prog_NMEDIT
9112if test -n "$NMEDIT"; then
5213506e
RW
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9114$as_echo "$NMEDIT" >&6; }
e3f92d3b 9115else
5213506e
RW
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9117$as_echo "no" >&6; }
1cf3d07d 9118fi
0da7a284 9119
5213506e 9120
0da7a284
PG
9121fi
9122if test -z "$ac_cv_prog_NMEDIT"; then
9123 ac_ct_NMEDIT=$NMEDIT
9124 # Extract the first word of "nmedit", so it can be a program name with args.
9125set dummy nmedit; ac_word=$2
5213506e
RW
9126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9127$as_echo_n "checking for $ac_word... " >&6; }
9128if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9129 $as_echo_n "(cached) " >&6
0da7a284
PG
9130else
9131 if test -n "$ac_ct_NMEDIT"; then
9132 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9133else
9134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9135for as_dir in $PATH
e3f92d3b 9136do
0da7a284
PG
9137 IFS=$as_save_IFS
9138 test -z "$as_dir" && as_dir=.
5213506e
RW
9139 for ac_exec_ext in '' $ac_executable_extensions; do
9140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0da7a284 9141 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5213506e 9142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0da7a284 9143 break 2
e3f92d3b 9144 fi
0da7a284 9145done
5213506e
RW
9146 done
9147IFS=$as_save_IFS
0da7a284 9148
e3f92d3b 9149fi
0da7a284
PG
9150fi
9151ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9152if test -n "$ac_ct_NMEDIT"; then
5213506e
RW
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9154$as_echo "$ac_ct_NMEDIT" >&6; }
1cf3d07d 9155else
5213506e
RW
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9157$as_echo "no" >&6; }
e3f92d3b
MK
9158fi
9159
5213506e
RW
9160 if test "x$ac_ct_NMEDIT" = x; then
9161 NMEDIT=":"
9162 else
9163 case $cross_compiling:$ac_tool_warned in
9164yes:)
9165{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9166$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9167ac_tool_warned=yes ;;
9168esac
9169 NMEDIT=$ac_ct_NMEDIT
9170 fi
e3f92d3b 9171else
0da7a284 9172 NMEDIT="$ac_cv_prog_NMEDIT"
e3f92d3b 9173fi
0da7a284
PG
9174
9175 if test -n "$ac_tool_prefix"; then
9176 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9177set dummy ${ac_tool_prefix}lipo; ac_word=$2
5213506e
RW
9178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9179$as_echo_n "checking for $ac_word... " >&6; }
9180if test "${ac_cv_prog_LIPO+set}" = set; then :
9181 $as_echo_n "(cached) " >&6
1cf3d07d 9182else
0da7a284
PG
9183 if test -n "$LIPO"; then
9184 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9185else
9186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9187for as_dir in $PATH
9188do
9189 IFS=$as_save_IFS
9190 test -z "$as_dir" && as_dir=.
5213506e
RW
9191 for ac_exec_ext in '' $ac_executable_extensions; do
9192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0da7a284 9193 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5213506e 9194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0da7a284
PG
9195 break 2
9196 fi
9197done
5213506e
RW
9198 done
9199IFS=$as_save_IFS
e3f92d3b
MK
9200
9201fi
0da7a284
PG
9202fi
9203LIPO=$ac_cv_prog_LIPO
9204if test -n "$LIPO"; then
5213506e
RW
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9206$as_echo "$LIPO" >&6; }
e3f92d3b 9207else
5213506e
RW
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9209$as_echo "no" >&6; }
1cf3d07d 9210fi
6d0860ee 9211
5213506e 9212
0da7a284
PG
9213fi
9214if test -z "$ac_cv_prog_LIPO"; then
9215 ac_ct_LIPO=$LIPO
9216 # Extract the first word of "lipo", so it can be a program name with args.
9217set dummy lipo; ac_word=$2
5213506e
RW
9218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9219$as_echo_n "checking for $ac_word... " >&6; }
9220if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9221 $as_echo_n "(cached) " >&6
e3f92d3b 9222else
0da7a284
PG
9223 if test -n "$ac_ct_LIPO"; then
9224 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9225else
9226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9227for as_dir in $PATH
9228do
9229 IFS=$as_save_IFS
9230 test -z "$as_dir" && as_dir=.
5213506e
RW
9231 for ac_exec_ext in '' $ac_executable_extensions; do
9232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0da7a284 9233 ac_cv_prog_ac_ct_LIPO="lipo"
5213506e 9234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0da7a284
PG
9235 break 2
9236 fi
9237done
5213506e
RW
9238 done
9239IFS=$as_save_IFS
0da7a284 9240
0da7a284
PG
9241fi
9242fi
9243ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9244if test -n "$ac_ct_LIPO"; then
5213506e
RW
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9246$as_echo "$ac_ct_LIPO" >&6; }
0da7a284 9247else
5213506e
RW
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9249$as_echo "no" >&6; }
0da7a284
PG
9250fi
9251
5213506e
RW
9252 if test "x$ac_ct_LIPO" = x; then
9253 LIPO=":"
9254 else
9255 case $cross_compiling:$ac_tool_warned in
9256yes:)
9257{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9258$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9259ac_tool_warned=yes ;;
9260esac
9261 LIPO=$ac_ct_LIPO
9262 fi
0da7a284
PG
9263else
9264 LIPO="$ac_cv_prog_LIPO"
9265fi
9266
9267 if test -n "$ac_tool_prefix"; then
9268 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9269set dummy ${ac_tool_prefix}otool; ac_word=$2
5213506e
RW
9270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9271$as_echo_n "checking for $ac_word... " >&6; }
9272if test "${ac_cv_prog_OTOOL+set}" = set; then :
9273 $as_echo_n "(cached) " >&6
0da7a284
PG
9274else
9275 if test -n "$OTOOL"; then
9276 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9277else
9278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9279for as_dir in $PATH
9280do
9281 IFS=$as_save_IFS
9282 test -z "$as_dir" && as_dir=.
5213506e
RW
9283 for ac_exec_ext in '' $ac_executable_extensions; do
9284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0da7a284 9285 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5213506e 9286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0da7a284
PG
9287 break 2
9288 fi
9289done
5213506e
RW
9290 done
9291IFS=$as_save_IFS
0da7a284
PG
9292
9293fi
9294fi
9295OTOOL=$ac_cv_prog_OTOOL
9296if test -n "$OTOOL"; then
5213506e
RW
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9298$as_echo "$OTOOL" >&6; }
0da7a284 9299else
5213506e
RW
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9301$as_echo "no" >&6; }
0da7a284
PG
9302fi
9303
5213506e 9304
0da7a284
PG
9305fi
9306if test -z "$ac_cv_prog_OTOOL"; then
9307 ac_ct_OTOOL=$OTOOL
9308 # Extract the first word of "otool", so it can be a program name with args.
9309set dummy otool; ac_word=$2
5213506e
RW
9310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9311$as_echo_n "checking for $ac_word... " >&6; }
9312if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9313 $as_echo_n "(cached) " >&6
0da7a284
PG
9314else
9315 if test -n "$ac_ct_OTOOL"; then
9316 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9317else
9318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9319for as_dir in $PATH
9320do
9321 IFS=$as_save_IFS
9322 test -z "$as_dir" && as_dir=.
5213506e
RW
9323 for ac_exec_ext in '' $ac_executable_extensions; do
9324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0da7a284 9325 ac_cv_prog_ac_ct_OTOOL="otool"
5213506e 9326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0da7a284
PG
9327 break 2
9328 fi
9329done
5213506e
RW
9330 done
9331IFS=$as_save_IFS
0da7a284 9332
0da7a284
PG
9333fi
9334fi
9335ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9336if test -n "$ac_ct_OTOOL"; then
5213506e
RW
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9338$as_echo "$ac_ct_OTOOL" >&6; }
0da7a284 9339else
5213506e
RW
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9341$as_echo "no" >&6; }
0da7a284
PG
9342fi
9343
5213506e
RW
9344 if test "x$ac_ct_OTOOL" = x; then
9345 OTOOL=":"
9346 else
9347 case $cross_compiling:$ac_tool_warned in
9348yes:)
9349{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9350$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9351ac_tool_warned=yes ;;
9352esac
9353 OTOOL=$ac_ct_OTOOL
9354 fi
0da7a284
PG
9355else
9356 OTOOL="$ac_cv_prog_OTOOL"
9357fi
9358
9359 if test -n "$ac_tool_prefix"; then
9360 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9361set dummy ${ac_tool_prefix}otool64; ac_word=$2
5213506e
RW
9362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9363$as_echo_n "checking for $ac_word... " >&6; }
9364if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9365 $as_echo_n "(cached) " >&6
0da7a284
PG
9366else
9367 if test -n "$OTOOL64"; then
9368 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9369else
9370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9371for as_dir in $PATH
9372do
9373 IFS=$as_save_IFS
9374 test -z "$as_dir" && as_dir=.
5213506e
RW
9375 for ac_exec_ext in '' $ac_executable_extensions; do
9376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0da7a284 9377 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5213506e 9378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0da7a284
PG
9379 break 2
9380 fi
9381done
5213506e
RW
9382 done
9383IFS=$as_save_IFS
0da7a284
PG
9384
9385fi
9386fi
9387OTOOL64=$ac_cv_prog_OTOOL64
9388if test -n "$OTOOL64"; then
5213506e
RW
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9390$as_echo "$OTOOL64" >&6; }
0da7a284 9391else
5213506e
RW
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9393$as_echo "no" >&6; }
0da7a284
PG
9394fi
9395
5213506e 9396
0da7a284
PG
9397fi
9398if test -z "$ac_cv_prog_OTOOL64"; then
9399 ac_ct_OTOOL64=$OTOOL64
9400 # Extract the first word of "otool64", so it can be a program name with args.
9401set dummy otool64; ac_word=$2
5213506e
RW
9402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9403$as_echo_n "checking for $ac_word... " >&6; }
9404if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9405 $as_echo_n "(cached) " >&6
0da7a284
PG
9406else
9407 if test -n "$ac_ct_OTOOL64"; then
9408 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9409else
9410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9411for as_dir in $PATH
9412do
9413 IFS=$as_save_IFS
9414 test -z "$as_dir" && as_dir=.
5213506e
RW
9415 for ac_exec_ext in '' $ac_executable_extensions; do
9416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0da7a284 9417 ac_cv_prog_ac_ct_OTOOL64="otool64"
5213506e 9418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0da7a284
PG
9419 break 2
9420 fi
9421done
5213506e
RW
9422 done
9423IFS=$as_save_IFS
0da7a284 9424
0da7a284
PG
9425fi
9426fi
9427ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9428if test -n "$ac_ct_OTOOL64"; then
5213506e
RW
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9430$as_echo "$ac_ct_OTOOL64" >&6; }
0da7a284 9431else
5213506e
RW
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9433$as_echo "no" >&6; }
0da7a284
PG
9434fi
9435
5213506e
RW
9436 if test "x$ac_ct_OTOOL64" = x; then
9437 OTOOL64=":"
9438 else
9439 case $cross_compiling:$ac_tool_warned in
9440yes:)
9441{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9442$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9443ac_tool_warned=yes ;;
9444esac
9445 OTOOL64=$ac_ct_OTOOL64
9446 fi
0da7a284
PG
9447else
9448 OTOOL64="$ac_cv_prog_OTOOL64"
9449fi
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
5213506e
RW
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9478$as_echo_n "checking for -single_module linker flag... " >&6; }
9479if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9480 $as_echo_n "(cached) " >&6
0da7a284
PG
9481else
9482 lt_cv_apple_cc_single_mod=no
9483 if test -z "${LT_MULTI_MODULE}"; then
9484 # By default we will add the -single_module flag. You can override
9485 # by either setting the environment variable LT_MULTI_MODULE
9486 # non-empty at configure time, or by adding -multi_module to the
9487 # link flags.
9488 rm -rf libconftest.dylib*
9489 echo "int foo(void){return 1;}" > conftest.c
9490 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9491-dynamiclib -Wl,-single_module conftest.c" >&5
9492 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9493 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9494 _lt_result=$?
9495 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9496 lt_cv_apple_cc_single_mod=yes
9497 else
9498 cat conftest.err >&5
9499 fi
9500 rm -rf libconftest.dylib*
9501 rm -f conftest.*
9502 fi
9503fi
5213506e
RW
9504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9505$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9507$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9508if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9509 $as_echo_n "(cached) " >&6
0da7a284
PG
9510else
9511 lt_cv_ld_exported_symbols_list=no
9512 save_LDFLAGS=$LDFLAGS
9513 echo "_main" > conftest.sym
9514 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9515 if test x$gcc_no_link = xyes; then
5213506e 9516 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
0da7a284 9517fi
5213506e 9518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0da7a284 9519/* end confdefs.h. */
e3f92d3b
MK
9520
9521int
9522main ()
9523{
9524
9525 ;
9526 return 0;
9527}
9528_ACEOF
5213506e 9529if ac_fn_c_try_link "$LINENO"; then :
0da7a284 9530 lt_cv_ld_exported_symbols_list=yes
e3f92d3b 9531else
5213506e 9532 lt_cv_ld_exported_symbols_list=no
e3f92d3b 9533fi
5213506e
RW
9534rm -f core conftest.err conftest.$ac_objext \
9535 conftest$ac_exeext conftest.$ac_ext
0da7a284 9536 LDFLAGS="$save_LDFLAGS"
ed698112 9537
e3f92d3b 9538fi
5213506e
RW
9539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9540$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
43e02a8a
RW
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9542$as_echo_n "checking for -force_load linker flag... " >&6; }
9543if test "${lt_cv_ld_force_load+set}" = set; then :
9544 $as_echo_n "(cached) " >&6
9545else
9546 lt_cv_ld_force_load=no
9547 cat > conftest.c << _LT_EOF
9548int forced_loaded() { return 2;}
9549_LT_EOF
9550 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9551 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9552 echo "$AR cru libconftest.a conftest.o" >&5
9553 $AR cru libconftest.a conftest.o 2>&5
9554 cat > conftest.c << _LT_EOF
9555int main() { return 0;}
9556_LT_EOF
9557 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9558 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9559 _lt_result=$?
9560 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9561 lt_cv_ld_force_load=yes
9562 else
9563 cat conftest.err >&5
9564 fi
9565 rm -f conftest.err libconftest.a conftest conftest.c
9566 rm -rf conftest.dSYM
9567
9568fi
9569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9570$as_echo "$lt_cv_ld_force_load" >&6; }
0da7a284
PG
9571 case $host_os in
9572 rhapsody* | darwin1.[012])
9573 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9574 darwin1.*)
9575 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9576 darwin*) # darwin 5.x on
9577 # if running on 10.5 or later, the deployment target defaults
9578 # to the OS version, if on x86, and 10.4, the deployment
9579 # target defaults to 10.4. Don't you love it?
9580 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9581 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9582 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9583 10.[012]*)
9584 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9585 10.*)
9586 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9587 esac
9588 ;;
9589 esac
9590 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9591 _lt_dar_single_mod='$single_module'
9592 fi
9593 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9594 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9595 else
9596 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9597 fi
43e02a8a 9598 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
0da7a284
PG
9599 _lt_dsymutil='~$DSYMUTIL $lib || :'
9600 else
9601 _lt_dsymutil=
9602 fi
9603 ;;
9604 esac
ed698112 9605
0da7a284
PG
9606ac_ext=c
9607ac_cpp='$CPP $CPPFLAGS'
9608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9610ac_compiler_gnu=$ac_cv_c_compiler_gnu
5213506e
RW
9611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9612$as_echo_n "checking how to run the C preprocessor... " >&6; }
0da7a284
PG
9613# On Suns, sometimes $CPP names a directory.
9614if test -n "$CPP" && test -d "$CPP"; then
9615 CPP=
e3f92d3b 9616fi
0da7a284 9617if test -z "$CPP"; then
5213506e
RW
9618 if test "${ac_cv_prog_CPP+set}" = set; then :
9619 $as_echo_n "(cached) " >&6
0da7a284
PG
9620else
9621 # Double quotes because CPP needs to be expanded
9622 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9623 do
9624 ac_preproc_ok=false
9625for ac_c_preproc_warn_flag in '' yes
9626do
9627 # Use a header file that comes with gcc, so configuring glibc
9628 # with a fresh cross-compiler works.
9629 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9630 # <limits.h> exists even on freestanding compilers.
9631 # On the NeXT, cc -E runs the code through the compiler's parser,
9632 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 9633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 9634/* end confdefs.h. */
0da7a284
PG
9635#ifdef __STDC__
9636# include <limits.h>
9637#else
9638# include <assert.h>
9639#endif
9640 Syntax error
9641_ACEOF
5213506e 9642if ac_fn_c_try_cpp "$LINENO"; then :
0da7a284 9643
5213506e 9644else
0da7a284
PG
9645 # Broken: fails on valid input.
9646continue
ee9dd372 9647fi
0da7a284
PG
9648rm -f conftest.err conftest.$ac_ext
9649
5213506e 9650 # OK, works on sane cases. Now check whether nonexistent headers
0da7a284 9651 # can be detected and how.
5213506e 9652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0da7a284
PG
9653/* end confdefs.h. */
9654#include <ac_nonexistent.h>
9655_ACEOF
5213506e 9656if ac_fn_c_try_cpp "$LINENO"; then :
0da7a284
PG
9657 # Broken: success on invalid input.
9658continue
9659else
0da7a284
PG
9660 # Passes both tests.
9661ac_preproc_ok=:
9662break
ffccc6be 9663fi
0da7a284 9664rm -f conftest.err conftest.$ac_ext
ed698112 9665
0da7a284
PG
9666done
9667# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9668rm -f conftest.err conftest.$ac_ext
5213506e 9669if $ac_preproc_ok; then :
0da7a284
PG
9670 break
9671fi
9672
9673 done
9674 ac_cv_prog_CPP=$CPP
9675
9676fi
9677 CPP=$ac_cv_prog_CPP
1cf3d07d 9678else
0da7a284
PG
9679 ac_cv_prog_CPP=$CPP
9680fi
5213506e
RW
9681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9682$as_echo "$CPP" >&6; }
0da7a284
PG
9683ac_preproc_ok=false
9684for ac_c_preproc_warn_flag in '' yes
9685do
9686 # Use a header file that comes with gcc, so configuring glibc
9687 # with a fresh cross-compiler works.
9688 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9689 # <limits.h> exists even on freestanding compilers.
9690 # On the NeXT, cc -E runs the code through the compiler's parser,
9691 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 9692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 9693/* end confdefs.h. */
0da7a284
PG
9694#ifdef __STDC__
9695# include <limits.h>
1cf3d07d 9696#else
0da7a284 9697# include <assert.h>
1cf3d07d 9698#endif
0da7a284 9699 Syntax error
1cf3d07d 9700_ACEOF
5213506e 9701if ac_fn_c_try_cpp "$LINENO"; then :
ffccc6be 9702
5213506e 9703else
0da7a284
PG
9704 # Broken: fails on valid input.
9705continue
1cf3d07d 9706fi
0da7a284 9707rm -f conftest.err conftest.$ac_ext
ed698112 9708
5213506e 9709 # OK, works on sane cases. Now check whether nonexistent headers
0da7a284 9710 # can be detected and how.
5213506e 9711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0da7a284
PG
9712/* end confdefs.h. */
9713#include <ac_nonexistent.h>
9714_ACEOF
5213506e 9715if ac_fn_c_try_cpp "$LINENO"; then :
0da7a284
PG
9716 # Broken: success on invalid input.
9717continue
9718else
0da7a284
PG
9719 # Passes both tests.
9720ac_preproc_ok=:
9721break
9722fi
9723rm -f conftest.err conftest.$ac_ext
97b8365c 9724
0da7a284
PG
9725done
9726# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9727rm -f conftest.err conftest.$ac_ext
5213506e
RW
9728if $ac_preproc_ok; then :
9729
0da7a284 9730else
5213506e
RW
9731 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9732$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9733as_fn_error "C preprocessor \"$CPP\" fails sanity check
9734See \`config.log' for more details." "$LINENO" 5; }
0da7a284 9735fi
97b8365c 9736
0da7a284
PG
9737ac_ext=c
9738ac_cpp='$CPP $CPPFLAGS'
9739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9741ac_compiler_gnu=$ac_cv_c_compiler_gnu
97b8365c
TT
9742
9743
5213506e
RW
9744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9745$as_echo_n "checking for ANSI C header files... " >&6; }
9746if test "${ac_cv_header_stdc+set}" = set; then :
9747 $as_echo_n "(cached) " >&6
97b8365c 9748else
5213506e 9749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 9750/* end confdefs.h. */
0da7a284
PG
9751#include <stdlib.h>
9752#include <stdarg.h>
9753#include <string.h>
9754#include <float.h>
97b8365c 9755
0da7a284
PG
9756int
9757main ()
9758{
9759
9760 ;
9761 return 0;
9762}
1cf3d07d 9763_ACEOF
5213506e 9764if ac_fn_c_try_compile "$LINENO"; then :
0da7a284 9765 ac_cv_header_stdc=yes
c33b7bf0 9766else
5213506e 9767 ac_cv_header_stdc=no
0da7a284 9768fi
5213506e 9769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0da7a284
PG
9770
9771if test $ac_cv_header_stdc = yes; then
9772 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5213506e 9773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0da7a284
PG
9774/* end confdefs.h. */
9775#include <string.h>
9776
9777_ACEOF
9778if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
9779 $EGREP "memchr" >/dev/null 2>&1; then :
9780
0da7a284
PG
9781else
9782 ac_cv_header_stdc=no
9783fi
9784rm -f conftest*
9785
9786fi
9787
9788if test $ac_cv_header_stdc = yes; then
9789 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5213506e 9790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0da7a284
PG
9791/* end confdefs.h. */
9792#include <stdlib.h>
9793
9794_ACEOF
9795if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
9796 $EGREP "free" >/dev/null 2>&1; then :
9797
0da7a284
PG
9798else
9799 ac_cv_header_stdc=no
9800fi
9801rm -f conftest*
9802
9803fi
9804
9805if test $ac_cv_header_stdc = yes; then
9806 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5213506e 9807 if test "$cross_compiling" = yes; then :
0da7a284
PG
9808 :
9809else
5213506e 9810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0da7a284
PG
9811/* end confdefs.h. */
9812#include <ctype.h>
5213506e 9813#include <stdlib.h>
0da7a284
PG
9814#if ((' ' & 0x0FF) == 0x020)
9815# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9816# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9817#else
9818# define ISLOWER(c) \
9819 (('a' <= (c) && (c) <= 'i') \
9820 || ('j' <= (c) && (c) <= 'r') \
9821 || ('s' <= (c) && (c) <= 'z'))
9822# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9823#endif
9824
9825#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9826int
9827main ()
9828{
9829 int i;
9830 for (i = 0; i < 256; i++)
9831 if (XOR (islower (i), ISLOWER (i))
9832 || toupper (i) != TOUPPER (i))
5213506e
RW
9833 return 2;
9834 return 0;
0da7a284
PG
9835}
9836_ACEOF
5213506e 9837if ac_fn_c_try_run "$LINENO"; then :
0da7a284 9838
5213506e
RW
9839else
9840 ac_cv_header_stdc=no
0da7a284 9841fi
5213506e
RW
9842rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9843 conftest.$ac_objext conftest.beam conftest.$ac_ext
0da7a284 9844fi
5213506e 9845
0da7a284
PG
9846fi
9847fi
5213506e
RW
9848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9849$as_echo "$ac_cv_header_stdc" >&6; }
0da7a284
PG
9850if test $ac_cv_header_stdc = yes; then
9851
5213506e 9852$as_echo "#define STDC_HEADERS 1" >>confdefs.h
0da7a284
PG
9853
9854fi
9855
9856# On IRIX 5.3, sys/types and inttypes.h are conflicting.
0da7a284
PG
9857for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9858 inttypes.h stdint.h unistd.h
5213506e
RW
9859do :
9860 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9861ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9862"
9863eval as_val=\$$as_ac_Header
9864 if test "x$as_val" = x""yes; then :
1cf3d07d 9865 cat >>confdefs.h <<_ACEOF
5213506e 9866#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1cf3d07d 9867_ACEOF
c33b7bf0 9868
c33b7bf0
TF
9869fi
9870
1cf3d07d 9871done
c33b7bf0
TF
9872
9873
1cf3d07d 9874for ac_header in dlfcn.h
5213506e
RW
9875do :
9876 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9877"
9878if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
1cf3d07d 9879 cat >>confdefs.h <<_ACEOF
5213506e 9880#define HAVE_DLFCN_H 1
ed347998
HB
9881_ACEOF
9882
1cf3d07d 9883fi
ed698112 9884
1cf3d07d 9885done
58eb6e7c 9886
b2ae5f70 9887
58eb6e7c 9888
3cf88fb4 9889
3cf88fb4 9890
5213506e 9891
43e02a8a 9892# Set options
c8fb9813 9893
43e02a8a
RW
9894
9895
9896
9897 enable_win32_dll=no
9898
9899
9900 # Check whether --enable-shared was given.
9901if test "${enable_shared+set}" = set; then :
9902 enableval=$enable_shared; p=${PACKAGE-default}
9903 case $enableval in
9904 yes) enable_shared=yes ;;
9905 no) enable_shared=no ;;
9906 *)
9907 enable_shared=no
9908 # Look at the argument we got. We use all the common list separators.
9909 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9910 for pkg in $enableval; do
9911 IFS="$lt_save_ifs"
9912 if test "X$pkg" = "X$p"; then
9913 enable_shared=yes
9914 fi
9915 done
9916 IFS="$lt_save_ifs"
9917 ;;
9918 esac
60c7f4ef 9919else
43e02a8a 9920 enable_shared=yes
5213506e
RW
9921fi
9922
f1a66265
GK
9923
9924
ed698112 9925
ed698112 9926
ee9dd372 9927
ee9dd372
TT
9928
9929
ee9dd372 9930
5213506e
RW
9931 # Check whether --enable-static was given.
9932if test "${enable_static+set}" = set; then :
9933 enableval=$enable_static; p=${PACKAGE-default}
0da7a284
PG
9934 case $enableval in
9935 yes) enable_static=yes ;;
9936 no) enable_static=no ;;
9937 *)
9938 enable_static=no
9939 # Look at the argument we got. We use all the common list separators.
9940 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9941 for pkg in $enableval; do
9942 IFS="$lt_save_ifs"
9943 if test "X$pkg" = "X$p"; then
9944 enable_static=yes
9945 fi
9946 done
9947 IFS="$lt_save_ifs"
9948 ;;
9949 esac
9950else
9951 enable_static=yes
5213506e
RW
9952fi
9953
ee9dd372 9954
42962a48
TT
9955
9956
614c0fc2 9957
9b5f18b1
MK
9958
9959
614c0fc2 9960
9b5f18b1
MK
9961
9962
5213506e
RW
9963# Check whether --with-pic was given.
9964if test "${with_pic+set}" = set; then :
9965 withval=$with_pic; pic_mode="$withval"
0da7a284
PG
9966else
9967 pic_mode=default
5213506e
RW
9968fi
9969
614c0fc2 9970
0da7a284 9971test -z "$pic_mode" && pic_mode=default
4ba6d1c3 9972
463c03f1 9973
76c88fd9 9974
4ba6d1c3 9975
f994389b
TT
9976
9977
0f9c645e 9978
5213506e
RW
9979 # Check whether --enable-fast-install was given.
9980if test "${enable_fast_install+set}" = set; then :
9981 enableval=$enable_fast_install; p=${PACKAGE-default}
0da7a284
PG
9982 case $enableval in
9983 yes) enable_fast_install=yes ;;
9984 no) enable_fast_install=no ;;
9985 *)
9986 enable_fast_install=no
9987 # Look at the argument we got. We use all the common list separators.
9988 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9989 for pkg in $enableval; do
9990 IFS="$lt_save_ifs"
9991 if test "X$pkg" = "X$p"; then
9992 enable_fast_install=yes
9993 fi
9994 done
9995 IFS="$lt_save_ifs"
9996 ;;
9997 esac
9998else
9999 enable_fast_install=yes
5213506e
RW
10000fi
10001
0f9c645e 10002
ed698112 10003
f994389b 10004
f994389b 10005
0f9c645e 10006
f994389b 10007
ed698112 10008
02809848 10009
ee9dd372 10010
1cf3d07d 10011
0da7a284
PG
10012# This can be used to rebuild libtool when needed
10013LIBTOOL_DEPS="$ltmain"
10014
10015# Always use our own libtool.
10016LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
43e02a8a 10040
0da7a284
PG
10041
10042
10043test -z "$LN_S" && LN_S="ln -s"
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058if test -n "${ZSH_VERSION+set}" ; then
10059 setopt NO_GLOB_SUBST
10060fi
10061
5213506e
RW
10062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10063$as_echo_n "checking for objdir... " >&6; }
10064if test "${lt_cv_objdir+set}" = set; then :
10065 $as_echo_n "(cached) " >&6
5aac1dac 10066else
1cf3d07d
SE
10067 rm -f .libs 2>/dev/null
10068mkdir .libs 2>/dev/null
10069if test -d .libs; then
10070 lt_cv_objdir=.libs
10071else
10072 # MS-DOS does not allow filenames that begin with a dot.
10073 lt_cv_objdir=_libs
10074fi
10075rmdir .libs 2>/dev/null
5aac1dac 10076fi
5213506e
RW
10077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10078$as_echo "$lt_cv_objdir" >&6; }
1cf3d07d 10079objdir=$lt_cv_objdir
ee9dd372 10080
ed698112 10081
ed698112 10082
ed698112 10083
ed698112 10084
1cf3d07d
SE
10085cat >>confdefs.h <<_ACEOF
10086#define LT_OBJDIR "$lt_cv_objdir/"
10087_ACEOF
ed698112 10088
ed698112 10089
ed698112 10090
ed698112 10091
1cf3d07d
SE
10092case $host_os in
10093aix3*)
10094 # AIX sometimes has problems with the GCC collect2 program. For some
10095 # reason, if we set the COLLECT_NAMES environment variable, the problems
10096 # vanish in a puff of smoke.
10097 if test "X${COLLECT_NAMES+set}" != Xset; then
10098 COLLECT_NAMES=
10099 export COLLECT_NAMES
ed698112 10100 fi
1cf3d07d
SE
10101 ;;
10102esac
10103
1cf3d07d
SE
10104# Global variables:
10105ofile=libtool
10106can_build_shared=yes
10107
10108# All known linkers require a `.a' archive for static linking (except MSVC,
10109# which needs '.lib').
10110libext=a
10111
10112with_gnu_ld="$lt_cv_prog_gnu_ld"
10113
10114old_CC="$CC"
10115old_CFLAGS="$CFLAGS"
10116
10117# Set sane defaults for various variables
10118test -z "$CC" && CC=cc
10119test -z "$LTCC" && LTCC=$CC
10120test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10121test -z "$LD" && LD=ld
10122test -z "$ac_objext" && ac_objext=o
10123
10124for cc_temp in $compiler""; do
10125 case $cc_temp in
10126 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10127 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10128 \-*) ;;
10129 *) break;;
10130 esac
ed698112 10131done
43e02a8a 10132cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
ee9dd372 10133
1cf3d07d
SE
10134
10135# Only perform the check for file, if the check method requires it
10136test -z "$MAGIC_CMD" && MAGIC_CMD=file
10137case $deplibs_check_method in
10138file_magic*)
10139 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5213506e
RW
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10141$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10142if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10143 $as_echo_n "(cached) " >&6
5aac1dac 10144else
1cf3d07d
SE
10145 case $MAGIC_CMD in
10146[\\/*] | ?:[\\/]*)
10147 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10148 ;;
10149*)
10150 lt_save_MAGIC_CMD="$MAGIC_CMD"
10151 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10152 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10153 for ac_dir in $ac_dummy; do
10154 IFS="$lt_save_ifs"
10155 test -z "$ac_dir" && ac_dir=.
10156 if test -f $ac_dir/${ac_tool_prefix}file; then
10157 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10158 if test -n "$file_magic_test_file"; then
10159 case $deplibs_check_method in
10160 "file_magic "*)
10161 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10162 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10163 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10164 $EGREP "$file_magic_regex" > /dev/null; then
10165 :
10166 else
10167 cat <<_LT_EOF 1>&2
ed698112 10168
1cf3d07d
SE
10169*** Warning: the command libtool uses to detect shared libraries,
10170*** $file_magic_cmd, produces output that libtool cannot recognize.
10171*** The result is that libtool may fail to recognize shared libraries
10172*** as such. This will affect the creation of libtool libraries that
10173*** depend on shared libraries, but programs linked with such libtool
10174*** libraries will work regardless of this problem. Nevertheless, you
10175*** may want to report the problem to your system manager and/or to
10176*** bug-libtool@gnu.org
10177
10178_LT_EOF
10179 fi ;;
10180 esac
10181 fi
10182 break
5aac1dac
TT
10183 fi
10184 done
1cf3d07d
SE
10185 IFS="$lt_save_ifs"
10186 MAGIC_CMD="$lt_save_MAGIC_CMD"
10187 ;;
10188esac
5aac1dac 10189fi
ee9dd372 10190
1cf3d07d
SE
10191MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10192if test -n "$MAGIC_CMD"; then
5213506e
RW
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10194$as_echo "$MAGIC_CMD" >&6; }
5aac1dac 10195else
5213506e
RW
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10197$as_echo "no" >&6; }
5aac1dac 10198fi
ed698112 10199
ee9dd372 10200
f994389b 10201
ed698112 10202
ee9dd372 10203
1cf3d07d
SE
10204if test -z "$lt_cv_path_MAGIC_CMD"; then
10205 if test -n "$ac_tool_prefix"; then
5213506e
RW
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10207$as_echo_n "checking for file... " >&6; }
10208if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10209 $as_echo_n "(cached) " >&6
5aac1dac 10210else
1cf3d07d
SE
10211 case $MAGIC_CMD in
10212[\\/*] | ?:[\\/]*)
10213 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10214 ;;
10215*)
10216 lt_save_MAGIC_CMD="$MAGIC_CMD"
10217 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10218 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10219 for ac_dir in $ac_dummy; do
10220 IFS="$lt_save_ifs"
10221 test -z "$ac_dir" && ac_dir=.
10222 if test -f $ac_dir/file; then
10223 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10224 if test -n "$file_magic_test_file"; then
10225 case $deplibs_check_method in
10226 "file_magic "*)
10227 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10228 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10229 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10230 $EGREP "$file_magic_regex" > /dev/null; then
10231 :
10232 else
10233 cat <<_LT_EOF 1>&2
ee9dd372 10234
1cf3d07d
SE
10235*** Warning: the command libtool uses to detect shared libraries,
10236*** $file_magic_cmd, produces output that libtool cannot recognize.
10237*** The result is that libtool may fail to recognize shared libraries
10238*** as such. This will affect the creation of libtool libraries that
10239*** depend on shared libraries, but programs linked with such libtool
10240*** libraries will work regardless of this problem. Nevertheless, you
10241*** may want to report the problem to your system manager and/or to
10242*** bug-libtool@gnu.org
7f6e0fe6 10243
1cf3d07d
SE
10244_LT_EOF
10245 fi ;;
10246 esac
10247 fi
10248 break
10249 fi
10250 done
10251 IFS="$lt_save_ifs"
10252 MAGIC_CMD="$lt_save_MAGIC_CMD"
10253 ;;
10254esac
10255fi
7f6e0fe6 10256
1cf3d07d
SE
10257MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10258if test -n "$MAGIC_CMD"; then
5213506e
RW
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10260$as_echo "$MAGIC_CMD" >&6; }
5aac1dac 10261else
5213506e
RW
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10263$as_echo "no" >&6; }
ed698112 10264fi
7f6e0fe6 10265
ee9dd372 10266
1cf3d07d
SE
10267 else
10268 MAGIC_CMD=:
10269 fi
10270fi
10271
10272 fi
10273 ;;
10274esac
10275
10276# Use C for the default configuration in the libtool script
10277
10278lt_save_CC="$CC"
10279ac_ext=c
10280ac_cpp='$CPP $CPPFLAGS'
10281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10283ac_compiler_gnu=$ac_cv_c_compiler_gnu
10284
10285
10286# Source file extension for C test sources.
10287ac_ext=c
10288
10289# Object file extension for compiled C test sources.
10290objext=o
10291objext=$objext
10292
10293# Code to be used in simple compile tests
10294lt_simple_compile_test_code="int some_variable = 0;"
10295
10296# Code to be used in simple link tests
10297lt_simple_link_test_code='int main(){return(0);}'
10298
10299
10300
10301
10302
10303
10304
10305# If no C compiler was specified, use CC.
10306LTCC=${LTCC-"$CC"}
10307
10308# If no C compiler flags were specified, use CFLAGS.
10309LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10310
10311# Allow CC to be a program name with arguments.
10312compiler=$CC
10313
10314# Save the default compiler, since it gets overwritten when the other
10315# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10316compiler_DEFAULT=$CC
10317
10318# save warnings/boilerplate of simple test code
10319ac_outfile=conftest.$ac_objext
10320echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10321eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10322_lt_compiler_boilerplate=`cat conftest.err`
10323$RM conftest*
10324
10325ac_outfile=conftest.$ac_objext
10326echo "$lt_simple_link_test_code" >conftest.$ac_ext
10327eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10328_lt_linker_boilerplate=`cat conftest.err`
0da7a284 10329$RM -r conftest*
1cf3d07d
SE
10330
10331
10332## CAVEAT EMPTOR:
10333## There is no encapsulation within the following macros, do not change
10334## the running order or otherwise move them around unless you know exactly
10335## what you are doing...
10336if test -n "$compiler"; then
10337
10338lt_prog_compiler_no_builtin_flag=
10339
10340if test "$GCC" = yes; then
43e02a8a
RW
10341 case $cc_basename in
10342 nvcc*)
10343 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10344 *)
10345 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10346 esac
1cf3d07d 10347
5213506e
RW
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10349$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10350if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10351 $as_echo_n "(cached) " >&6
5aac1dac 10352else
1cf3d07d
SE
10353 lt_cv_prog_compiler_rtti_exceptions=no
10354 ac_outfile=conftest.$ac_objext
10355 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10356 lt_compiler_flag="-fno-rtti -fno-exceptions"
10357 # Insert the option either (1) after the last *FLAGS variable, or
10358 # (2) before a word containing "conftest.", or (3) at the end.
10359 # Note that $ac_compile itself does not contain backslashes and begins
10360 # with a dollar sign (not a hyphen), so the echo should work correctly.
10361 # The option is referenced via a variable to avoid confusing sed.
10362 lt_compile=`echo "$ac_compile" | $SED \
10363 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10364 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10365 -e 's:$: $lt_compiler_flag:'`
43e02a8a 10366 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
10367 (eval "$lt_compile" 2>conftest.err)
10368 ac_status=$?
10369 cat conftest.err >&5
43e02a8a 10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
10371 if (exit $ac_status) && test -s "$ac_outfile"; then
10372 # The compiler can only warn and ignore the option if not recognized
10373 # So say no if there are warnings other than the usual output.
43e02a8a 10374 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
10375 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10376 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10377 lt_cv_prog_compiler_rtti_exceptions=yes
10378 fi
10379 fi
10380 $RM conftest*
ed698112 10381
5aac1dac 10382fi
5213506e
RW
10383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10384$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
ee9dd372 10385
1cf3d07d
SE
10386if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10387 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10388else
10389 :
10390fi
ee9dd372 10391
ed698112 10392fi
ed698112 10393
ee9dd372 10394
1cf3d07d
SE
10395
10396
10397
10398
10399 lt_prog_compiler_wl=
10400lt_prog_compiler_pic=
10401lt_prog_compiler_static=
10402
5213506e
RW
10403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10404$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
10405
10406 if test "$GCC" = yes; then
10407 lt_prog_compiler_wl='-Wl,'
10408 lt_prog_compiler_static='-static'
10409
10410 case $host_os in
10411 aix*)
10412 # All AIX code is PIC.
10413 if test "$host_cpu" = ia64; then
10414 # AIX 5 now supports IA64 processor
10415 lt_prog_compiler_static='-Bstatic'
10416 fi
47c2a6e6 10417 lt_prog_compiler_pic='-fPIC'
1cf3d07d
SE
10418 ;;
10419
10420 amigaos*)
0da7a284
PG
10421 case $host_cpu in
10422 powerpc)
10423 # see comment about AmigaOS4 .so support
10424 lt_prog_compiler_pic='-fPIC'
10425 ;;
10426 m68k)
10427 # FIXME: we need at least 68020 code to build shared libraries, but
10428 # adding the `-m68020' flag to GCC prevents building anything better,
10429 # like `-m68040'.
10430 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10431 ;;
10432 esac
1cf3d07d
SE
10433 ;;
10434
10435 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10436 # PIC is the default for these OSes.
10437 ;;
10438
0da7a284 10439 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
10440 # This hack is so that the source file can tell whether it is being
10441 # built for inclusion in a dll (and should export symbols for example).
10442 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10443 # (--disable-auto-import) libraries
10444 lt_prog_compiler_pic='-DDLL_EXPORT'
10445 ;;
10446
10447 darwin* | rhapsody*)
10448 # PIC is the default on this platform
10449 # Common symbols not allowed in MH_DYLIB files
10450 lt_prog_compiler_pic='-fno-common'
10451 ;;
10452
43e02a8a
RW
10453 haiku*)
10454 # PIC is the default for Haiku.
10455 # The "-static" flag exists, but is broken.
10456 lt_prog_compiler_static=
10457 ;;
10458
1cf3d07d 10459 hpux*)
0da7a284
PG
10460 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10461 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10462 # sets the default TLS model and affects inlining.
1cf3d07d 10463 case $host_cpu in
0da7a284 10464 hppa*64*)
1cf3d07d
SE
10465 # +Z the default
10466 ;;
10467 *)
10468 lt_prog_compiler_pic='-fPIC'
10469 ;;
10470 esac
10471 ;;
10472
10473 interix[3-9]*)
10474 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10475 # Instead, we relocate shared libraries at runtime.
10476 ;;
10477
10478 msdosdjgpp*)
10479 # Just because we use GCC doesn't mean we suddenly get shared libraries
10480 # on systems that don't support them.
10481 lt_prog_compiler_can_build_shared=no
10482 enable_shared=no
10483 ;;
10484
10485 *nto* | *qnx*)
10486 # QNX uses GNU C++, but need to define -shared option too, otherwise
10487 # it will coredump.
10488 lt_prog_compiler_pic='-fPIC -shared'
10489 ;;
10490
10491 sysv4*MP*)
10492 if test -d /usr/nec; then
10493 lt_prog_compiler_pic=-Kconform_pic
10494 fi
10495 ;;
10496
10497 *)
10498 lt_prog_compiler_pic='-fPIC'
10499 ;;
10500 esac
43e02a8a
RW
10501
10502 case $cc_basename in
10503 nvcc*) # Cuda Compiler Driver 2.2
10504 lt_prog_compiler_wl='-Xlinker '
10505 lt_prog_compiler_pic='-Xcompiler -fPIC'
10506 ;;
10507 esac
1cf3d07d
SE
10508 else
10509 # PORTME Check for flag to pass linker flags through the system compiler.
10510 case $host_os in
10511 aix*)
10512 lt_prog_compiler_wl='-Wl,'
10513 if test "$host_cpu" = ia64; then
10514 # AIX 5 now supports IA64 processor
10515 lt_prog_compiler_static='-Bstatic'
10516 else
10517 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10518 fi
10519 ;;
1cf3d07d 10520
0da7a284 10521 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
10522 # This hack is so that the source file can tell whether it is being
10523 # built for inclusion in a dll (and should export symbols for example).
10524 lt_prog_compiler_pic='-DDLL_EXPORT'
10525 ;;
10526
10527 hpux9* | hpux10* | hpux11*)
10528 lt_prog_compiler_wl='-Wl,'
10529 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10530 # not for PA HP-UX.
10531 case $host_cpu in
10532 hppa*64*|ia64*)
10533 # +Z the default
10534 ;;
10535 *)
10536 lt_prog_compiler_pic='+Z'
10537 ;;
10538 esac
10539 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10540 lt_prog_compiler_static='${wl}-a ${wl}archive'
10541 ;;
10542
10543 irix5* | irix6* | nonstopux*)
10544 lt_prog_compiler_wl='-Wl,'
10545 # PIC (with -KPIC) is the default.
10546 lt_prog_compiler_static='-non_shared'
10547 ;;
10548
7a9d3fe8 10549 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 10550 case $cc_basename in
0da7a284
PG
10551 # old Intel for x86_64 which still supported -KPIC.
10552 ecc*)
1cf3d07d
SE
10553 lt_prog_compiler_wl='-Wl,'
10554 lt_prog_compiler_pic='-KPIC'
10555 lt_prog_compiler_static='-static'
10556 ;;
0da7a284
PG
10557 # icc used to be incompatible with GCC.
10558 # ICC 10 doesn't accept -KPIC any more.
10559 icc* | ifort*)
10560 lt_prog_compiler_wl='-Wl,'
10561 lt_prog_compiler_pic='-fPIC'
10562 lt_prog_compiler_static='-static'
10563 ;;
10564 # Lahey Fortran 8.1.
10565 lf95*)
10566 lt_prog_compiler_wl='-Wl,'
10567 lt_prog_compiler_pic='--shared'
10568 lt_prog_compiler_static='--static'
10569 ;;
43e02a8a 10570 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
1cf3d07d
SE
10571 # Portland Group compilers (*not* the Pentium gcc compiler,
10572 # which looks to be a dead project)
10573 lt_prog_compiler_wl='-Wl,'
10574 lt_prog_compiler_pic='-fpic'
10575 lt_prog_compiler_static='-Bstatic'
10576 ;;
10577 ccc*)
10578 lt_prog_compiler_wl='-Wl,'
10579 # All Alpha code is PIC.
10580 lt_prog_compiler_static='-non_shared'
10581 ;;
43e02a8a
RW
10582 xl* | bgxl* | bgf* | mpixl*)
10583 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
0da7a284
PG
10584 lt_prog_compiler_wl='-Wl,'
10585 lt_prog_compiler_pic='-qpic'
10586 lt_prog_compiler_static='-qstaticlink'
10587 ;;
1cf3d07d
SE
10588 *)
10589 case `$CC -V 2>&1 | sed 5q` in
43e02a8a
RW
10590 *Sun\ F* | *Sun*Fortran*)
10591 # Sun Fortran 8.3 passes all unrecognized flags to the linker
1cf3d07d
SE
10592 lt_prog_compiler_pic='-KPIC'
10593 lt_prog_compiler_static='-Bstatic'
43e02a8a 10594 lt_prog_compiler_wl=''
1cf3d07d 10595 ;;
43e02a8a
RW
10596 *Sun\ C*)
10597 # Sun C 5.9
1cf3d07d
SE
10598 lt_prog_compiler_pic='-KPIC'
10599 lt_prog_compiler_static='-Bstatic'
43e02a8a 10600 lt_prog_compiler_wl='-Wl,'
1cf3d07d
SE
10601 ;;
10602 esac
10603 ;;
10604 esac
10605 ;;
10606
10607 newsos6)
10608 lt_prog_compiler_pic='-KPIC'
10609 lt_prog_compiler_static='-Bstatic'
10610 ;;
10611
10612 *nto* | *qnx*)
10613 # QNX uses GNU C++, but need to define -shared option too, otherwise
10614 # it will coredump.
10615 lt_prog_compiler_pic='-fPIC -shared'
10616 ;;
10617
10618 osf3* | osf4* | osf5*)
10619 lt_prog_compiler_wl='-Wl,'
10620 # All OSF/1 code is PIC.
10621 lt_prog_compiler_static='-non_shared'
10622 ;;
10623
10624 rdos*)
10625 lt_prog_compiler_static='-non_shared'
10626 ;;
10627
10628 solaris*)
10629 lt_prog_compiler_pic='-KPIC'
10630 lt_prog_compiler_static='-Bstatic'
10631 case $cc_basename in
10632 f77* | f90* | f95*)
10633 lt_prog_compiler_wl='-Qoption ld ';;
10634 *)
10635 lt_prog_compiler_wl='-Wl,';;
10636 esac
10637 ;;
10638
10639 sunos4*)
10640 lt_prog_compiler_wl='-Qoption ld '
10641 lt_prog_compiler_pic='-PIC'
10642 lt_prog_compiler_static='-Bstatic'
10643 ;;
10644
10645 sysv4 | sysv4.2uw2* | sysv4.3*)
10646 lt_prog_compiler_wl='-Wl,'
10647 lt_prog_compiler_pic='-KPIC'
10648 lt_prog_compiler_static='-Bstatic'
10649 ;;
10650
10651 sysv4*MP*)
10652 if test -d /usr/nec ;then
10653 lt_prog_compiler_pic='-Kconform_pic'
10654 lt_prog_compiler_static='-Bstatic'
10655 fi
10656 ;;
10657
10658 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10659 lt_prog_compiler_wl='-Wl,'
10660 lt_prog_compiler_pic='-KPIC'
10661 lt_prog_compiler_static='-Bstatic'
10662 ;;
10663
10664 unicos*)
10665 lt_prog_compiler_wl='-Wl,'
10666 lt_prog_compiler_can_build_shared=no
10667 ;;
10668
10669 uts4*)
10670 lt_prog_compiler_pic='-pic'
10671 lt_prog_compiler_static='-Bstatic'
10672 ;;
10673
10674 *)
10675 lt_prog_compiler_can_build_shared=no
10676 ;;
10677 esac
10678 fi
10679
10680case $host_os in
10681 # For platforms which do not support PIC, -DPIC is meaningless:
10682 *djgpp*)
10683 lt_prog_compiler_pic=
10684 ;;
10685 *)
10686 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10687 ;;
10688esac
5213506e
RW
10689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10690$as_echo "$lt_prog_compiler_pic" >&6; }
1cf3d07d
SE
10691
10692
10693
10694
10695
10696
10697#
10698# Check to make sure the PIC flag actually works.
10699#
10700if test -n "$lt_prog_compiler_pic"; then
5213506e
RW
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10702$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10703if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10704 $as_echo_n "(cached) " >&6
5aac1dac 10705else
0da7a284 10706 lt_cv_prog_compiler_pic_works=no
1cf3d07d
SE
10707 ac_outfile=conftest.$ac_objext
10708 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10709 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10710 # Insert the option either (1) after the last *FLAGS variable, or
10711 # (2) before a word containing "conftest.", or (3) at the end.
10712 # Note that $ac_compile itself does not contain backslashes and begins
10713 # with a dollar sign (not a hyphen), so the echo should work correctly.
10714 # The option is referenced via a variable to avoid confusing sed.
10715 lt_compile=`echo "$ac_compile" | $SED \
10716 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10717 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10718 -e 's:$: $lt_compiler_flag:'`
43e02a8a 10719 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
10720 (eval "$lt_compile" 2>conftest.err)
10721 ac_status=$?
10722 cat conftest.err >&5
43e02a8a 10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
10724 if (exit $ac_status) && test -s "$ac_outfile"; then
10725 # The compiler can only warn and ignore the option if not recognized
10726 # So say no if there are warnings other than the usual output.
43e02a8a 10727 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
10728 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10729 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
0da7a284 10730 lt_cv_prog_compiler_pic_works=yes
1cf3d07d
SE
10731 fi
10732 fi
10733 $RM conftest*
10734
ed698112 10735fi
5213506e
RW
10736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10737$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
45597167 10738
0da7a284 10739if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1cf3d07d
SE
10740 case $lt_prog_compiler_pic in
10741 "" | " "*) ;;
10742 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10743 esac
ed698112 10744else
1cf3d07d
SE
10745 lt_prog_compiler_pic=
10746 lt_prog_compiler_can_build_shared=no
10747fi
ed698112 10748
ed698112 10749fi
1cf3d07d
SE
10750
10751
10752
10753
10754
10755
10756#
10757# Check to make sure the static flag actually works.
10758#
10759wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
5213506e
RW
10760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10761$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10762if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10763 $as_echo_n "(cached) " >&6
1cf3d07d 10764else
0da7a284 10765 lt_cv_prog_compiler_static_works=no
1cf3d07d
SE
10766 save_LDFLAGS="$LDFLAGS"
10767 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10768 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10769 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10770 # The linker can only warn and ignore the option if not recognized
10771 # So say no if there are warnings
10772 if test -s conftest.err; then
10773 # Append any errors to the config.log.
10774 cat conftest.err 1>&5
43e02a8a 10775 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1cf3d07d
SE
10776 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10777 if diff conftest.exp conftest.er2 >/dev/null; then
0da7a284 10778 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
10779 fi
10780 else
0da7a284 10781 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
10782 fi
10783 fi
0da7a284 10784 $RM -r conftest*
1cf3d07d
SE
10785 LDFLAGS="$save_LDFLAGS"
10786
ed698112 10787fi
5213506e
RW
10788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10789$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1cf3d07d 10790
0da7a284 10791if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1cf3d07d
SE
10792 :
10793else
10794 lt_prog_compiler_static=
5aac1dac 10795fi
45597167 10796
1cf3d07d
SE
10797
10798
10799
10800
10801
10802
5213506e
RW
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10804$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10805if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10806 $as_echo_n "(cached) " >&6
5aac1dac 10807else
1cf3d07d
SE
10808 lt_cv_prog_compiler_c_o=no
10809 $RM -r conftest 2>/dev/null
10810 mkdir conftest
10811 cd conftest
10812 mkdir out
10813 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10814
10815 lt_compiler_flag="-o out/conftest2.$ac_objext"
10816 # Insert the option either (1) after the last *FLAGS variable, or
10817 # (2) before a word containing "conftest.", or (3) at the end.
10818 # Note that $ac_compile itself does not contain backslashes and begins
10819 # with a dollar sign (not a hyphen), so the echo should work correctly.
10820 lt_compile=`echo "$ac_compile" | $SED \
10821 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10823 -e 's:$: $lt_compiler_flag:'`
43e02a8a 10824 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
10825 (eval "$lt_compile" 2>out/conftest.err)
10826 ac_status=$?
10827 cat out/conftest.err >&5
43e02a8a 10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
10829 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10830 then
10831 # The compiler can only warn and ignore the option if not recognized
10832 # So say no if there are warnings
43e02a8a 10833 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
10834 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10835 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10836 lt_cv_prog_compiler_c_o=yes
10837 fi
10838 fi
10839 chmod u+w . 2>&5
10840 $RM conftest*
10841 # SGI C++ compiler will create directory out/ii_files/ for
10842 # template instantiation
10843 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10844 $RM out/* && rmdir out
10845 cd ..
10846 $RM -r conftest
10847 $RM conftest*
10848
ed698112 10849fi
5213506e
RW
10850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10851$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
ed698112 10852
ed698112 10853
cf6b8de4
TT
10854
10855
1cf3d07d
SE
10856
10857
5213506e
RW
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10859$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10860if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10861 $as_echo_n "(cached) " >&6
ed698112 10862else
1cf3d07d
SE
10863 lt_cv_prog_compiler_c_o=no
10864 $RM -r conftest 2>/dev/null
10865 mkdir conftest
10866 cd conftest
10867 mkdir out
10868 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10869
10870 lt_compiler_flag="-o out/conftest2.$ac_objext"
10871 # Insert the option either (1) after the last *FLAGS variable, or
10872 # (2) before a word containing "conftest.", or (3) at the end.
10873 # Note that $ac_compile itself does not contain backslashes and begins
10874 # with a dollar sign (not a hyphen), so the echo should work correctly.
10875 lt_compile=`echo "$ac_compile" | $SED \
10876 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10877 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10878 -e 's:$: $lt_compiler_flag:'`
43e02a8a 10879 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
10880 (eval "$lt_compile" 2>out/conftest.err)
10881 ac_status=$?
10882 cat out/conftest.err >&5
43e02a8a 10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
10884 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10885 then
10886 # The compiler can only warn and ignore the option if not recognized
10887 # So say no if there are warnings
43e02a8a 10888 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
10889 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10890 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10891 lt_cv_prog_compiler_c_o=yes
10892 fi
10893 fi
10894 chmod u+w . 2>&5
10895 $RM conftest*
10896 # SGI C++ compiler will create directory out/ii_files/ for
10897 # template instantiation
10898 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10899 $RM out/* && rmdir out
10900 cd ..
10901 $RM -r conftest
10902 $RM conftest*
10903
10904fi
5213506e
RW
10905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10906$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
10907
10908
10909
10910
10911hard_links="nottested"
10912if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10913 # do not overwrite the value of need_locks provided by the user
5213506e
RW
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10915$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
10916 hard_links=yes
10917 $RM conftest*
10918 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10919 touch conftest.a
10920 ln conftest.a conftest.b 2>&5 || hard_links=no
10921 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10923$as_echo "$hard_links" >&6; }
1cf3d07d 10924 if test "$hard_links" = no; then
5213506e
RW
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10926$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
10927 need_locks=warn
10928 fi
10929else
10930 need_locks=no
10931fi
10932
10933
10934
10935
10936
10937
5213506e
RW
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10939$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
10940
10941 runpath_var=
10942 allow_undefined_flag=
10943 always_export_symbols=no
10944 archive_cmds=
10945 archive_expsym_cmds=
10946 compiler_needs_object=no
10947 enable_shared_with_static_runtimes=no
10948 export_dynamic_flag_spec=
10949 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10950 hardcode_automatic=no
10951 hardcode_direct=no
10952 hardcode_direct_absolute=no
10953 hardcode_libdir_flag_spec=
10954 hardcode_libdir_flag_spec_ld=
10955 hardcode_libdir_separator=
10956 hardcode_minus_L=no
10957 hardcode_shlibpath_var=unsupported
10958 inherit_rpath=no
10959 link_all_deplibs=unknown
10960 module_cmds=
10961 module_expsym_cmds=
10962 old_archive_from_new_cmds=
10963 old_archive_from_expsyms_cmds=
10964 thread_safe_flag_spec=
10965 whole_archive_flag_spec=
10966 # include_expsyms should be a list of space-separated symbols to be *always*
10967 # included in the symbol list
10968 include_expsyms=
10969 # exclude_expsyms can be an extended regexp of symbols to exclude
10970 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10971 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10972 # as well as any symbol that contains `d'.
0da7a284 10973 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
10974 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10975 # platforms (ab)use it in PIC code, but their linkers get confused if
10976 # the symbol is explicitly referenced. Since portable code cannot
10977 # rely on this symbol name, it's probably fine to never include it in
10978 # preloaded symbol tables.
0da7a284 10979 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
10980 extract_expsyms_cmds=
10981
10982 case $host_os in
0da7a284 10983 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
10984 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10985 # When not using gcc, we currently assume that we are using
10986 # Microsoft Visual C++.
10987 if test "$GCC" != yes; then
10988 with_gnu_ld=no
10989 fi
10990 ;;
10991 interix*)
10992 # we just hope/assume this is gcc and not c89 (= MSVC++)
10993 with_gnu_ld=yes
10994 ;;
10995 openbsd*)
10996 with_gnu_ld=no
10997 ;;
10998 esac
10999
11000 ld_shlibs=yes
43e02a8a
RW
11001
11002 # On some targets, GNU ld is compatible enough with the native linker
11003 # that we're better off using the native interface for both.
11004 lt_use_gnu_ld_interface=no
1cf3d07d 11005 if test "$with_gnu_ld" = yes; then
43e02a8a
RW
11006 case $host_os in
11007 aix*)
11008 # The AIX port of GNU ld has always aspired to compatibility
11009 # with the native linker. However, as the warning in the GNU ld
11010 # block says, versions before 2.19.5* couldn't really create working
11011 # shared libraries, regardless of the interface used.
11012 case `$LD -v 2>&1` in
11013 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11014 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11015 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11016 *)
11017 lt_use_gnu_ld_interface=yes
11018 ;;
11019 esac
11020 ;;
11021 *)
11022 lt_use_gnu_ld_interface=yes
11023 ;;
11024 esac
11025 fi
11026
11027 if test "$lt_use_gnu_ld_interface" = yes; then
1cf3d07d
SE
11028 # If archive_cmds runs LD, not CC, wlarc should be empty
11029 wlarc='${wl}'
11030
11031 # Set some defaults for GNU ld with shared library support. These
11032 # are reset later if shared libraries are not supported. Putting them
11033 # here allows them to be overridden if necessary.
11034 runpath_var=LD_RUN_PATH
11035 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11036 export_dynamic_flag_spec='${wl}--export-dynamic'
11037 # ancient GNU ld didn't support --whole-archive et. al.
11038 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11039 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11040 else
11041 whole_archive_flag_spec=
11042 fi
11043 supports_anon_versioning=no
11044 case `$LD -v 2>&1` in
43e02a8a 11045 *GNU\ gold*) supports_anon_versioning=yes ;;
1cf3d07d
SE
11046 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11047 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11048 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11049 *\ 2.11.*) ;; # other 2.11 versions
11050 *) supports_anon_versioning=yes ;;
11051 esac
11052
11053 # See if GNU ld supports shared libraries.
11054 case $host_os in
ed44a2c7 11055 aix[3-9]*)
1cf3d07d
SE
11056 # On AIX/PPC, the GNU linker is very broken
11057 if test "$host_cpu" != ia64; then
11058 ld_shlibs=no
11059 cat <<_LT_EOF 1>&2
11060
43e02a8a 11061*** Warning: the GNU linker, at least up to release 2.19, is reported
1cf3d07d
SE
11062*** to be unable to reliably create shared libraries on AIX.
11063*** Therefore, libtool is disabling shared libraries support. If you
43e02a8a
RW
11064*** really care for shared libraries, you may want to install binutils
11065*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11066*** You will then need to restart the configuration process.
1cf3d07d
SE
11067
11068_LT_EOF
11069 fi
11070 ;;
11071
11072 amigaos*)
0da7a284
PG
11073 case $host_cpu in
11074 powerpc)
11075 # see comment about AmigaOS4 .so support
11076 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11077 archive_expsym_cmds=''
11078 ;;
11079 m68k)
11080 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)'
11081 hardcode_libdir_flag_spec='-L$libdir'
11082 hardcode_minus_L=yes
11083 ;;
11084 esac
1cf3d07d
SE
11085 ;;
11086
11087 beos*)
11088 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11089 allow_undefined_flag=unsupported
11090 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11091 # support --undefined. This deserves some investigation. FIXME
11092 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11093 else
11094 ld_shlibs=no
11095 fi
11096 ;;
11097
0da7a284 11098 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
11099 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11100 # as there is no search path for DLLs.
11101 hardcode_libdir_flag_spec='-L$libdir'
43e02a8a 11102 export_dynamic_flag_spec='${wl}--export-all-symbols'
1cf3d07d
SE
11103 allow_undefined_flag=unsupported
11104 always_export_symbols=no
11105 enable_shared_with_static_runtimes=yes
11106 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11107
11108 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11109 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11110 # If the export-symbols file already is a .def file (1st line
11111 # is EXPORTS), use it as is; otherwise, prepend...
11112 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11113 cp $export_symbols $output_objdir/$soname.def;
11114 else
11115 echo EXPORTS > $output_objdir/$soname.def;
11116 cat $export_symbols >> $output_objdir/$soname.def;
11117 fi~
11118 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11119 else
11120 ld_shlibs=no
11121 fi
11122 ;;
11123
43e02a8a
RW
11124 haiku*)
11125 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11126 link_all_deplibs=yes
11127 ;;
11128
1cf3d07d
SE
11129 interix[3-9]*)
11130 hardcode_direct=no
11131 hardcode_shlibpath_var=no
11132 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11133 export_dynamic_flag_spec='${wl}-E'
11134 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11135 # Instead, shared libraries are loaded at an image base (0x10000000 by
11136 # default) and relocated if they conflict, which is a slow very memory
11137 # consuming and fragmenting process. To avoid this, we pick a random,
11138 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11139 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11140 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11141 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'
11142 ;;
11143
7a9d3fe8 11144 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
11145 tmp_diet=no
11146 if test "$host_os" = linux-dietlibc; then
11147 case $cc_basename in
11148 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11149 esac
11150 fi
11151 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11152 && test "$tmp_diet" = no
11153 then
11154 tmp_addflag=
0da7a284 11155 tmp_sharedflag='-shared'
1cf3d07d
SE
11156 case $cc_basename,$host_cpu in
11157 pgcc*) # Portland Group C compiler
43e02a8a 11158 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
11159 tmp_addflag=' $pic_flag'
11160 ;;
43e02a8a
RW
11161 pgf77* | pgf90* | pgf95* | pgfortran*)
11162 # Portland Group f77 and f90 compilers
11163 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
11164 tmp_addflag=' $pic_flag -Mnomain' ;;
11165 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11166 tmp_addflag=' -i_dynamic' ;;
11167 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11168 tmp_addflag=' -i_dynamic -nofor_main' ;;
11169 ifc* | ifort*) # Intel Fortran compiler
11170 tmp_addflag=' -nofor_main' ;;
0da7a284
PG
11171 lf95*) # Lahey Fortran 8.1
11172 whole_archive_flag_spec=
11173 tmp_sharedflag='--shared' ;;
43e02a8a 11174 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
0da7a284
PG
11175 tmp_sharedflag='-qmkshrobj'
11176 tmp_addflag= ;;
43e02a8a
RW
11177 nvcc*) # Cuda Compiler Driver 2.2
11178 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11179 compiler_needs_object=yes
11180 ;;
1cf3d07d
SE
11181 esac
11182 case `$CC -V 2>&1 | sed 5q` in
11183 *Sun\ C*) # Sun C 5.9
43e02a8a 11184 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
11185 compiler_needs_object=yes
11186 tmp_sharedflag='-G' ;;
11187 *Sun\ F*) # Sun Fortran 8.3
11188 tmp_sharedflag='-G' ;;
1cf3d07d
SE
11189 esac
11190 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11191
11192 if test "x$supports_anon_versioning" = xyes; then
11193 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11194 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11195 echo "local: *; };" >> $output_objdir/$libname.ver~
11196 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11197 fi
0da7a284
PG
11198
11199 case $cc_basename in
43e02a8a 11200 xlf* | bgf* | bgxlf* | mpixlf*)
0da7a284
PG
11201 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11202 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11203 hardcode_libdir_flag_spec=
11204 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11205 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11206 if test "x$supports_anon_versioning" = xyes; then
11207 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11208 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11209 echo "local: *; };" >> $output_objdir/$libname.ver~
11210 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11211 fi
11212 ;;
11213 esac
1cf3d07d
SE
11214 else
11215 ld_shlibs=no
11216 fi
11217 ;;
11218
11219 netbsd*)
11220 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11221 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11222 wlarc=
11223 else
11224 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11225 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11226 fi
11227 ;;
11228
11229 solaris*)
11230 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11231 ld_shlibs=no
11232 cat <<_LT_EOF 1>&2
11233
11234*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11235*** create shared libraries on Solaris systems. Therefore, libtool
11236*** is disabling shared libraries support. We urge you to upgrade GNU
11237*** binutils to release 2.9.1 or newer. Another option is to modify
11238*** your PATH or compiler configuration so that the native linker is
11239*** used, and then restart.
11240
11241_LT_EOF
11242 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11243 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11244 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11245 else
11246 ld_shlibs=no
11247 fi
11248 ;;
11249
11250 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11251 case `$LD -v 2>&1` in
11252 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11253 ld_shlibs=no
11254 cat <<_LT_EOF 1>&2
11255
11256*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11257*** reliably create shared libraries on SCO systems. Therefore, libtool
11258*** is disabling shared libraries support. We urge you to upgrade GNU
11259*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11260*** your PATH or compiler configuration so that the native linker is
11261*** used, and then restart.
11262
11263_LT_EOF
11264 ;;
11265 *)
11266 # For security reasons, it is highly recommended that you always
11267 # use absolute paths for naming shared libraries, and exclude the
11268 # DT_RUNPATH tag from executables and libraries. But doing so
11269 # requires that you compile everything twice, which is a pain.
11270 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11271 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11272 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11273 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11274 else
11275 ld_shlibs=no
11276 fi
11277 ;;
11278 esac
11279 ;;
11280
11281 sunos4*)
11282 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11283 wlarc=
11284 hardcode_direct=yes
11285 hardcode_shlibpath_var=no
11286 ;;
11287
11288 *)
11289 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11290 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11291 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11292 else
11293 ld_shlibs=no
11294 fi
11295 ;;
11296 esac
11297
11298 if test "$ld_shlibs" = no; then
11299 runpath_var=
11300 hardcode_libdir_flag_spec=
11301 export_dynamic_flag_spec=
11302 whole_archive_flag_spec=
11303 fi
11304 else
11305 # PORTME fill in a description of your system's linker (not GNU ld)
11306 case $host_os in
11307 aix3*)
11308 allow_undefined_flag=unsupported
11309 always_export_symbols=yes
11310 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'
11311 # Note: this linker hardcodes the directories in LIBPATH if there
11312 # are no directories specified by -L.
11313 hardcode_minus_L=yes
11314 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11315 # Neither direct hardcoding nor static linking is supported with a
11316 # broken collect2.
11317 hardcode_direct=unsupported
11318 fi
11319 ;;
11320
ed44a2c7 11321 aix[4-9]*)
1cf3d07d
SE
11322 if test "$host_cpu" = ia64; then
11323 # On IA64, the linker does run time linking by default, so we don't
11324 # have to do anything special.
11325 aix_use_runtimelinking=no
11326 exp_sym_flag='-Bexport'
11327 no_entry_flag=""
11328 else
11329 # If we're using GNU nm, then we don't want the "-C" option.
11330 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
11331 # Also, AIX nm treats weak defined symbols like other global
11332 # defined symbols, whereas GNU nm marks them as "W".
1cf3d07d 11333 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 11334 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1cf3d07d
SE
11335 else
11336 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'
11337 fi
11338 aix_use_runtimelinking=no
11339
11340 # Test if we are trying to use run time linking or normal
11341 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11342 # need to do runtime linking.
ed44a2c7 11343 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
11344 for ld_flag in $LDFLAGS; do
11345 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11346 aix_use_runtimelinking=yes
11347 break
11348 fi
11349 done
11350 ;;
11351 esac
11352
11353 exp_sym_flag='-bexport'
11354 no_entry_flag='-bnoentry'
11355 fi
11356
11357 # When large executables or shared objects are built, AIX ld can
11358 # have problems creating the table of contents. If linking a library
11359 # or program results in "error TOC overflow" add -mminimal-toc to
11360 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11361 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11362
11363 archive_cmds=''
11364 hardcode_direct=yes
11365 hardcode_direct_absolute=yes
11366 hardcode_libdir_separator=':'
11367 link_all_deplibs=yes
11368 file_list_spec='${wl}-f,'
11369
11370 if test "$GCC" = yes; then
11371 case $host_os in aix4.[012]|aix4.[012].*)
11372 # We only want to do this on AIX 4.2 and lower, the check
11373 # below for broken collect2 doesn't work under 4.3+
11374 collect2name=`${CC} -print-prog-name=collect2`
11375 if test -f "$collect2name" &&
11376 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11377 then
11378 # We have reworked collect2
11379 :
11380 else
11381 # We have old collect2
11382 hardcode_direct=unsupported
11383 # It fails to find uninstalled libraries when the uninstalled
11384 # path is not listed in the libpath. Setting hardcode_minus_L
11385 # to unsupported forces relinking
11386 hardcode_minus_L=yes
11387 hardcode_libdir_flag_spec='-L$libdir'
11388 hardcode_libdir_separator=
11389 fi
11390 ;;
11391 esac
11392 shared_flag='-shared'
11393 if test "$aix_use_runtimelinking" = yes; then
11394 shared_flag="$shared_flag "'${wl}-G'
11395 fi
11396 else
11397 # not using gcc
11398 if test "$host_cpu" = ia64; then
11399 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11400 # chokes on -Wl,-G. The following line is correct:
11401 shared_flag='-G'
11402 else
11403 if test "$aix_use_runtimelinking" = yes; then
11404 shared_flag='${wl}-G'
11405 else
11406 shared_flag='${wl}-bM:SRE'
11407 fi
11408 fi
11409 fi
11410
0da7a284 11411 export_dynamic_flag_spec='${wl}-bexpall'
1cf3d07d
SE
11412 # It seems that -bexpall does not export symbols beginning with
11413 # underscore (_), so it is better to generate a list of symbols to export.
11414 always_export_symbols=yes
11415 if test "$aix_use_runtimelinking" = yes; then
11416 # Warning - without using the other runtime loading flags (-brtl),
11417 # -berok will link without error, but may produce a broken library.
11418 allow_undefined_flag='-berok'
11419 # Determine the default libpath from the value encoded in an
11420 # empty executable.
11421 if test x$gcc_no_link = xyes; then
5213506e 11422 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ed698112 11423fi
5213506e 11424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ed698112 11425/* end confdefs.h. */
ee9dd372 11426
ed698112
NN
11427int
11428main ()
11429{
1cf3d07d 11430
ed698112
NN
11431 ;
11432 return 0;
11433}
11434_ACEOF
5213506e 11435if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
11436
11437lt_aix_libpath_sed='
11438 /Import File Strings/,/^$/ {
11439 /^0/ {
11440 s/^0 *\(.*\)$/\1/
11441 p
11442 }
11443 }'
11444aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11445# Check for a 64-bit object if we didn't find anything.
11446if test -z "$aix_libpath"; then
11447 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11448fi
ed698112 11449fi
5213506e
RW
11450rm -f core conftest.err conftest.$ac_objext \
11451 conftest$ac_exeext conftest.$ac_ext
1cf3d07d 11452if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
ee9dd372 11453
1cf3d07d 11454 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
43e02a8a 11455 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1cf3d07d
SE
11456 else
11457 if test "$host_cpu" = ia64; then
11458 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11459 allow_undefined_flag="-z nodefs"
11460 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"
11461 else
11462 # Determine the default libpath from the value encoded in an
11463 # empty executable.
11464 if test x$gcc_no_link = xyes; then
5213506e 11465 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ed698112 11466fi
5213506e 11467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ed698112
NN
11468/* end confdefs.h. */
11469
ed698112
NN
11470int
11471main ()
11472{
1cf3d07d 11473
ed698112
NN
11474 ;
11475 return 0;
11476}
11477_ACEOF
5213506e 11478if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
11479
11480lt_aix_libpath_sed='
11481 /Import File Strings/,/^$/ {
11482 /^0/ {
11483 s/^0 *\(.*\)$/\1/
11484 p
11485 }
11486 }'
11487aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11488# Check for a 64-bit object if we didn't find anything.
11489if test -z "$aix_libpath"; then
11490 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11491fi
ed698112 11492fi
5213506e
RW
11493rm -f core conftest.err conftest.$ac_objext \
11494 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
11495if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11496
11497 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11498 # Warning - without using the other run time loading flags,
11499 # -berok will link without error, but may produce a broken library.
11500 no_undefined_flag=' ${wl}-bernotok'
11501 allow_undefined_flag=' ${wl}-berok'
43e02a8a
RW
11502 if test "$with_gnu_ld" = yes; then
11503 # We only use this code for GNU lds that support --whole-archive.
11504 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11505 else
11506 # Exported symbols can be pulled into shared objects from archives
11507 whole_archive_flag_spec='$convenience'
11508 fi
1cf3d07d
SE
11509 archive_cmds_need_lc=yes
11510 # This is similar to how AIX traditionally builds its shared libraries.
11511 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'
11512 fi
11513 fi
11514 ;;
fe5e3b97 11515
1cf3d07d 11516 amigaos*)
0da7a284
PG
11517 case $host_cpu in
11518 powerpc)
11519 # see comment about AmigaOS4 .so support
11520 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11521 archive_expsym_cmds=''
11522 ;;
11523 m68k)
11524 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)'
11525 hardcode_libdir_flag_spec='-L$libdir'
11526 hardcode_minus_L=yes
11527 ;;
11528 esac
1cf3d07d
SE
11529 ;;
11530
11531 bsdi[45]*)
11532 export_dynamic_flag_spec=-rdynamic
11533 ;;
11534
0da7a284 11535 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
11536 # When not using gcc, we currently assume that we are using
11537 # Microsoft Visual C++.
11538 # hardcode_libdir_flag_spec is actually meaningless, as there is
11539 # no search path for DLLs.
11540 hardcode_libdir_flag_spec=' '
11541 allow_undefined_flag=unsupported
11542 # Tell ltmain to make .lib files, not .a files.
11543 libext=lib
11544 # Tell ltmain to make .dll files, not .so files.
11545 shrext_cmds=".dll"
11546 # FIXME: Setting linknames here is a bad hack.
43e02a8a 11547 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1cf3d07d
SE
11548 # The linker will automatically build a .lib file if we build a DLL.
11549 old_archive_from_new_cmds='true'
11550 # FIXME: Should let the user specify the lib program.
11551 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11552 fix_srcfile_path='`cygpath -w "$srcfile"`'
11553 enable_shared_with_static_runtimes=yes
11554 ;;
11555
11556 darwin* | rhapsody*)
fe5e3b97 11557
0da7a284
PG
11558
11559 archive_cmds_need_lc=no
11560 hardcode_direct=no
11561 hardcode_automatic=yes
11562 hardcode_shlibpath_var=unsupported
43e02a8a
RW
11563 if test "$lt_cv_ld_force_load" = "yes"; then
11564 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11565 else
11566 whole_archive_flag_spec=''
11567 fi
0da7a284
PG
11568 link_all_deplibs=yes
11569 allow_undefined_flag="$_lt_dar_allow_undefined"
11570 case $cc_basename in
11571 ifort*) _lt_dar_can_shared=yes ;;
11572 *) _lt_dar_can_shared=$GCC ;;
11573 esac
11574 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 11575 output_verbose_link_cmd=func_echo_all
0da7a284
PG
11576 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11577 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11578 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}"
11579 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}"
11580
11581 else
11582 ld_shlibs=no
11583 fi
11584
1cf3d07d 11585 ;;
5aac1dac 11586
1cf3d07d
SE
11587 dgux*)
11588 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11589 hardcode_libdir_flag_spec='-L$libdir'
11590 hardcode_shlibpath_var=no
11591 ;;
ed698112 11592
1cf3d07d
SE
11593 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11594 # support. Future versions do this automatically, but an explicit c++rt0.o
11595 # does not break anything, and helps significantly (at the cost of a little
11596 # extra space).
11597 freebsd2.2*)
11598 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11599 hardcode_libdir_flag_spec='-R$libdir'
11600 hardcode_direct=yes
11601 hardcode_shlibpath_var=no
11602 ;;
ee9dd372 11603
1cf3d07d 11604 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
c6084f68 11605 freebsd2.*)
1cf3d07d
SE
11606 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11607 hardcode_direct=yes
11608 hardcode_minus_L=yes
11609 hardcode_shlibpath_var=no
11610 ;;
ee9dd372 11611
1cf3d07d
SE
11612 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11613 freebsd* | dragonfly*)
11614 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11615 hardcode_libdir_flag_spec='-R$libdir'
11616 hardcode_direct=yes
11617 hardcode_shlibpath_var=no
11618 ;;
ee9dd372 11619
1cf3d07d
SE
11620 hpux9*)
11621 if test "$GCC" = yes; then
11622 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'
11623 else
11624 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'
11625 fi
11626 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11627 hardcode_libdir_separator=:
11628 hardcode_direct=yes
11629
11630 # hardcode_minus_L: Not really in the search PATH,
11631 # but as the default location of the library.
11632 hardcode_minus_L=yes
11633 export_dynamic_flag_spec='${wl}-E'
11634 ;;
ed698112 11635
1cf3d07d 11636 hpux10*)
43e02a8a 11637 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
11638 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11639 else
11640 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11641 fi
11642 if test "$with_gnu_ld" = no; then
11643 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11644 hardcode_libdir_flag_spec_ld='+b $libdir'
11645 hardcode_libdir_separator=:
11646 hardcode_direct=yes
11647 hardcode_direct_absolute=yes
11648 export_dynamic_flag_spec='${wl}-E'
11649 # hardcode_minus_L: Not really in the search PATH,
11650 # but as the default location of the library.
11651 hardcode_minus_L=yes
11652 fi
11653 ;;
ee9dd372 11654
1cf3d07d 11655 hpux11*)
43e02a8a 11656 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
11657 case $host_cpu in
11658 hppa*64*)
11659 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11660 ;;
11661 ia64*)
0da7a284 11662 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
11663 ;;
11664 *)
11665 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11666 ;;
11667 esac
11668 else
11669 case $host_cpu in
11670 hppa*64*)
11671 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11672 ;;
11673 ia64*)
11674 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11675 ;;
11676 *)
43e02a8a
RW
11677
11678 # Older versions of the 11.00 compiler do not understand -b yet
11679 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11681$as_echo_n "checking if $CC understands -b... " >&6; }
11682if test "${lt_cv_prog_compiler__b+set}" = set; then :
11683 $as_echo_n "(cached) " >&6
11684else
11685 lt_cv_prog_compiler__b=no
11686 save_LDFLAGS="$LDFLAGS"
11687 LDFLAGS="$LDFLAGS -b"
11688 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11689 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11690 # The linker can only warn and ignore the option if not recognized
11691 # So say no if there are warnings
11692 if test -s conftest.err; then
11693 # Append any errors to the config.log.
11694 cat conftest.err 1>&5
11695 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11696 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11697 if diff conftest.exp conftest.er2 >/dev/null; then
11698 lt_cv_prog_compiler__b=yes
11699 fi
11700 else
11701 lt_cv_prog_compiler__b=yes
11702 fi
11703 fi
11704 $RM -r conftest*
11705 LDFLAGS="$save_LDFLAGS"
11706
11707fi
11708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11709$as_echo "$lt_cv_prog_compiler__b" >&6; }
11710
11711if test x"$lt_cv_prog_compiler__b" = xyes; then
11712 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11713else
11714 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11715fi
11716
1cf3d07d
SE
11717 ;;
11718 esac
11719 fi
11720 if test "$with_gnu_ld" = no; then
11721 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11722 hardcode_libdir_separator=:
11723
11724 case $host_cpu in
11725 hppa*64*|ia64*)
11726 hardcode_direct=no
11727 hardcode_shlibpath_var=no
11728 ;;
11729 *)
11730 hardcode_direct=yes
11731 hardcode_direct_absolute=yes
11732 export_dynamic_flag_spec='${wl}-E'
11733
11734 # hardcode_minus_L: Not really in the search PATH,
11735 # but as the default location of the library.
11736 hardcode_minus_L=yes
11737 ;;
11738 esac
11739 fi
11740 ;;
11741
11742 irix5* | irix6* | nonstopux*)
11743 if test "$GCC" = yes; then
43e02a8a 11744 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
11745 # Try to use the -exported_symbol ld option, if it does not
11746 # work, assume that -exports_file does not work either and
11747 # implicitly export all symbols.
11748 save_LDFLAGS="$LDFLAGS"
11749 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11750 if test x$gcc_no_link = xyes; then
5213506e 11751 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ed698112 11752fi
5213506e
RW
11753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11754/* end confdefs.h. */
1cf3d07d 11755int foo(void) {}
ed698112 11756_ACEOF
5213506e 11757if ac_fn_c_try_link "$LINENO"; then :
43e02a8a 11758 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
1cf3d07d 11759
ed698112 11760fi
5213506e
RW
11761rm -f core conftest.err conftest.$ac_objext \
11762 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
11763 LDFLAGS="$save_LDFLAGS"
11764 else
43e02a8a
RW
11765 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11766 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
1cf3d07d
SE
11767 fi
11768 archive_cmds_need_lc='no'
11769 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11770 hardcode_libdir_separator=:
11771 inherit_rpath=yes
11772 link_all_deplibs=yes
11773 ;;
5aac1dac 11774
1cf3d07d
SE
11775 netbsd*)
11776 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11777 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11778 else
11779 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11780 fi
11781 hardcode_libdir_flag_spec='-R$libdir'
11782 hardcode_direct=yes
11783 hardcode_shlibpath_var=no
11784 ;;
ed698112 11785
1cf3d07d
SE
11786 newsos6)
11787 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11788 hardcode_direct=yes
11789 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11790 hardcode_libdir_separator=:
11791 hardcode_shlibpath_var=no
11792 ;;
ed698112 11793
1cf3d07d
SE
11794 *nto* | *qnx*)
11795 ;;
ee9dd372 11796
1cf3d07d 11797 openbsd*)
0da7a284
PG
11798 if test -f /usr/libexec/ld.so; then
11799 hardcode_direct=yes
11800 hardcode_shlibpath_var=no
11801 hardcode_direct_absolute=yes
11802 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 11803 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
0da7a284 11804 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 11805 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
0da7a284
PG
11806 export_dynamic_flag_spec='${wl}-E'
11807 else
11808 case $host_os in
11809 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11810 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11811 hardcode_libdir_flag_spec='-R$libdir'
11812 ;;
11813 *)
11814 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11815 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11816 ;;
11817 esac
11818 fi
11819 else
11820 ld_shlibs=no
1cf3d07d
SE
11821 fi
11822 ;;
ee9dd372 11823
1cf3d07d
SE
11824 os2*)
11825 hardcode_libdir_flag_spec='-L$libdir'
11826 hardcode_minus_L=yes
11827 allow_undefined_flag=unsupported
43e02a8a 11828 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'
1cf3d07d
SE
11829 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11830 ;;
ee9dd372 11831
1cf3d07d
SE
11832 osf3*)
11833 if test "$GCC" = yes; then
11834 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 11835 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
11836 else
11837 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 11838 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
11839 fi
11840 archive_cmds_need_lc='no'
11841 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11842 hardcode_libdir_separator=:
11843 ;;
ed698112 11844
1cf3d07d
SE
11845 osf4* | osf5*) # as osf3* with the addition of -msym flag
11846 if test "$GCC" = yes; then
11847 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 11848 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
11849 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11850 else
11851 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 11852 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
1cf3d07d 11853 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~
43e02a8a 11854 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
ee9dd372 11855
1cf3d07d
SE
11856 # Both c and cxx compiler support -rpath directly
11857 hardcode_libdir_flag_spec='-rpath $libdir'
11858 fi
11859 archive_cmds_need_lc='no'
11860 hardcode_libdir_separator=:
11861 ;;
ed698112 11862
1cf3d07d
SE
11863 solaris*)
11864 no_undefined_flag=' -z defs'
11865 if test "$GCC" = yes; then
11866 wlarc='${wl}'
11867 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11868 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11869 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11870 else
11871 case `$CC -V 2>&1` in
11872 *"Compilers 5.0"*)
11873 wlarc=''
11874 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11875 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11876 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11877 ;;
11878 *)
11879 wlarc='${wl}'
11880 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11881 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11882 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11883 ;;
11884 esac
11885 fi
11886 hardcode_libdir_flag_spec='-R$libdir'
11887 hardcode_shlibpath_var=no
11888 case $host_os in
11889 solaris2.[0-5] | solaris2.[0-5].*) ;;
11890 *)
11891 # The compiler driver will combine and reorder linker options,
11892 # but understands `-z linker_flag'. GCC discards it without `$wl',
11893 # but is careful enough not to reorder.
11894 # Supported since Solaris 2.6 (maybe 2.5.1?)
11895 if test "$GCC" = yes; then
11896 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11897 else
11898 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11899 fi
11900 ;;
11901 esac
11902 link_all_deplibs=yes
11903 ;;
11904
11905 sunos4*)
11906 if test "x$host_vendor" = xsequent; then
11907 # Use $CC to link under sequent, because it throws in some extra .o
11908 # files that make .init and .fini sections work.
11909 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11910 else
11911 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11912 fi
11913 hardcode_libdir_flag_spec='-L$libdir'
11914 hardcode_direct=yes
11915 hardcode_minus_L=yes
11916 hardcode_shlibpath_var=no
11917 ;;
11918
11919 sysv4)
11920 case $host_vendor in
11921 sni)
11922 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11923 hardcode_direct=yes # is this really true???
11924 ;;
11925 siemens)
11926 ## LD is ld it makes a PLAMLIB
11927 ## CC just makes a GrossModule.
11928 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11929 reload_cmds='$CC -r -o $output$reload_objs'
11930 hardcode_direct=no
11931 ;;
11932 motorola)
11933 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11934 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11935 ;;
11936 esac
11937 runpath_var='LD_RUN_PATH'
11938 hardcode_shlibpath_var=no
11939 ;;
11940
11941 sysv4.3*)
11942 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11943 hardcode_shlibpath_var=no
11944 export_dynamic_flag_spec='-Bexport'
11945 ;;
11946
11947 sysv4*MP*)
11948 if test -d /usr/nec; then
11949 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11950 hardcode_shlibpath_var=no
11951 runpath_var=LD_RUN_PATH
11952 hardcode_runpath_var=yes
11953 ld_shlibs=yes
11954 fi
11955 ;;
11956
11957 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11958 no_undefined_flag='${wl}-z,text'
11959 archive_cmds_need_lc=no
11960 hardcode_shlibpath_var=no
11961 runpath_var='LD_RUN_PATH'
11962
11963 if test "$GCC" = yes; then
11964 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11965 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11966 else
11967 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11968 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11969 fi
11970 ;;
11971
11972 sysv5* | sco3.2v5* | sco5v6*)
11973 # Note: We can NOT use -z defs as we might desire, because we do not
11974 # link with -lc, and that would cause any symbols used from libc to
11975 # always be unresolved, which means just about no library would
11976 # ever link correctly. If we're not using GNU ld we use -z text
11977 # though, which does catch some bad symbols but isn't as heavy-handed
11978 # as -z defs.
11979 no_undefined_flag='${wl}-z,text'
11980 allow_undefined_flag='${wl}-z,nodefs'
11981 archive_cmds_need_lc=no
11982 hardcode_shlibpath_var=no
11983 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11984 hardcode_libdir_separator=':'
11985 link_all_deplibs=yes
11986 export_dynamic_flag_spec='${wl}-Bexport'
11987 runpath_var='LD_RUN_PATH'
11988
11989 if test "$GCC" = yes; then
11990 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11991 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11992 else
11993 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11994 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11995 fi
11996 ;;
11997
11998 uts4*)
11999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12000 hardcode_libdir_flag_spec='-L$libdir'
12001 hardcode_shlibpath_var=no
12002 ;;
12003
12004 *)
12005 ld_shlibs=no
12006 ;;
12007 esac
12008
12009 if test x$host_vendor = xsni; then
12010 case $host in
12011 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12012 export_dynamic_flag_spec='${wl}-Blargedynsym'
12013 ;;
12014 esac
12015 fi
12016 fi
12017
5213506e
RW
12018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12019$as_echo "$ld_shlibs" >&6; }
1cf3d07d
SE
12020test "$ld_shlibs" = no && can_build_shared=no
12021
12022with_gnu_ld=$with_gnu_ld
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038#
12039# Do we need to explicitly link libc?
12040#
12041case "x$archive_cmds_need_lc" in
12042x|xyes)
12043 # Assume -lc should be added
12044 archive_cmds_need_lc=yes
12045
12046 if test "$enable_shared" = yes && test "$GCC" = yes; then
12047 case $archive_cmds in
12048 *'~'*)
12049 # FIXME: we may have to deal with multi-command sequences.
12050 ;;
12051 '$CC '*)
12052 # Test whether the compiler implicitly links with -lc since on some
12053 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12054 # to ld, don't add -lc before -lgcc.
5213506e
RW
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12056$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12057if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
12058 $as_echo_n "(cached) " >&6
baafc534
RW
12059else
12060 $RM conftest*
12061 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 12062
5213506e 12063 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d 12064 (eval $ac_compile) 2>&5
ed698112 12065 ac_status=$?
5213506e
RW
12066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12067 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
12068 soname=conftest
12069 lib=conftest
12070 libobjs=conftest.$ac_objext
12071 deplibs=
12072 wl=$lt_prog_compiler_wl
12073 pic_flag=$lt_prog_compiler_pic
12074 compiler_flags=-v
12075 linker_flags=-v
12076 verstring=
12077 output_objdir=.
12078 libname=conftest
12079 lt_save_allow_undefined_flag=$allow_undefined_flag
12080 allow_undefined_flag=
5213506e 12081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d 12082 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
ed698112 12083 ac_status=$?
5213506e
RW
12084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12085 test $ac_status = 0; }
baafc534
RW
12086 then
12087 lt_cv_archive_cmds_need_lc=no
12088 else
12089 lt_cv_archive_cmds_need_lc=yes
12090 fi
12091 allow_undefined_flag=$lt_save_allow_undefined_flag
12092 else
12093 cat conftest.err 1>&5
12094 fi
12095 $RM conftest*
12096
12097fi
5213506e
RW
12098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12099$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
baafc534 12100 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1cf3d07d
SE
12101 ;;
12102 esac
12103 fi
12104 ;;
12105esac
ed698112 12106
ee9dd372 12107
5aac1dac 12108
ed698112 12109
283a159f 12110
283a159f 12111
ed698112 12112
283a159f 12113
ed698112 12114
283a159f 12115
ed698112 12116
ed698112 12117
5aac1dac 12118
5aac1dac 12119
ed698112 12120
ed698112 12121
5aac1dac 12122
5aac1dac 12123
5aac1dac
TT
12124
12125
5aac1dac 12126
c0975bc7
AP
12127
12128
ed698112 12129
5aac1dac 12130
5aac1dac
TT
12131
12132
12133
12134
12135
12136
5aac1dac
TT
12137
12138
12139
e3f92d3b
MK
12140
12141
12142
e3f92d3b
MK
12143
12144
12145
5aac1dac 12146
ed698112 12147
5aac1dac 12148
5aac1dac 12149
ed698112 12150
5aac1dac
TT
12151
12152
ed698112 12153
5aac1dac 12154
ed698112 12155
5aac1dac 12156
5aac1dac 12157
19367215 12158
19367215 12159
19367215 12160
19367215 12161
19367215 12162
e4261ef7 12163
e4261ef7 12164
19367215
HB
12165
12166
620a329b 12167
5a121897 12168
e3f92d3b
MK
12169
12170
12171
e3f92d3b
MK
12172
12173
12174
e3f92d3b
MK
12175
12176
97c074fd 12177
97c074fd
JJ
12178
12179
b9f243c2 12180
18744d9b 12181
eb2925b6 12182
b9f243c2 12183
97c074fd
JJ
12184
12185
ed698112 12186
b9f243c2 12187
b9f243c2 12188
283a159f 12189
5aac1dac
TT
12190
12191
283a159f 12192
e3f92d3b 12193
283a159f 12194
5aac1dac 12195
ed698112 12196
9e7823cc 12197
ed698112 12198
ee9dd372 12199
ed698112 12200
860a1536 12201
ed698112 12202
860a1536 12203
ed698112 12204
5aac1dac 12205
ed698112 12206
5463a4f3 12207
ed698112 12208
860a1536 12209
ed698112 12210
860a1536 12211
5aac1dac
TT
12212
12213
5aac1dac 12214
ed698112
NN
12215
12216
12217
12218
12219
12220
12221
12222
ed698112 12223
ed698112 12224
5aac1dac 12225
5aac1dac 12226
5aac1dac 12227
ed698112 12228
ebecd56d 12229
ed698112
NN
12230
12231
12232
17c2e2c0
TT
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
a5dfac10 12245
ed698112 12246
ed698112 12247
ee9dd372 12248
ee9dd372 12249
ee9dd372 12250
ed698112 12251
ee9dd372 12252
34c5c0e1 12253
ed698112
NN
12254
12255
5aac1dac 12256
5aac1dac 12257
5aac1dac 12258
ed698112 12259
ed698112 12260
ed698112 12261
ed698112 12262
5213506e
RW
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12264$as_echo_n "checking dynamic linker characteristics... " >&6; }
0da7a284
PG
12265
12266if test "$GCC" = yes; then
1cf3d07d
SE
12267 case $host_os in
12268 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12269 *) lt_awk_arg="/^libraries:/" ;;
12270 esac
43e02a8a
RW
12271 case $host_os in
12272 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12273 *) lt_sed_strip_eq="s,=/,/,g" ;;
12274 esac
12275 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12276 case $lt_search_path_spec in
12277 *\;*)
1cf3d07d
SE
12278 # if the path contains ";" then we assume it to be the separator
12279 # otherwise default to the standard path separator (i.e. ":") - it is
12280 # assumed that no part of a normal pathname contains ";" but that should
12281 # okay in the real world where ";" in dirpaths is itself problematic.
43e02a8a
RW
12282 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12283 ;;
12284 *)
12285 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12286 ;;
12287 esac
1cf3d07d
SE
12288 # Ok, now we have the path, separated by spaces, we can step through it
12289 # and add multilib dir if necessary.
12290 lt_tmp_lt_search_path_spec=
12291 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12292 for lt_sys_path in $lt_search_path_spec; do
12293 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12294 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12295 else
12296 test -d "$lt_sys_path" && \
12297 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12298 fi
12299 done
43e02a8a 12300 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
1cf3d07d
SE
12301BEGIN {RS=" "; FS="/|\n";} {
12302 lt_foo="";
12303 lt_count=0;
12304 for (lt_i = NF; lt_i > 0; lt_i--) {
12305 if ($lt_i != "" && $lt_i != ".") {
12306 if ($lt_i == "..") {
12307 lt_count++;
12308 } else {
12309 if (lt_count == 0) {
12310 lt_foo="/" $lt_i lt_foo;
12311 } else {
12312 lt_count--;
12313 }
12314 }
12315 }
12316 }
12317 if (lt_foo != "") { lt_freq[lt_foo]++; }
12318 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12319}'`
43e02a8a
RW
12320 # AWK program above erroneously prepends '/' to C:/dos/paths
12321 # for these hosts.
12322 case $host_os in
12323 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12324 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12325 esac
12326 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
ed698112 12327else
1cf3d07d
SE
12328 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12329fi
12330library_names_spec=
12331libname_spec='lib$name'
12332soname_spec=
12333shrext_cmds=".so"
12334postinstall_cmds=
12335postuninstall_cmds=
12336finish_cmds=
12337finish_eval=
12338shlibpath_var=
12339shlibpath_overrides_runpath=unknown
12340version_type=none
12341dynamic_linker="$host_os ld.so"
12342sys_lib_dlsearch_path_spec="/lib /usr/lib"
12343need_lib_prefix=unknown
12344hardcode_into_libs=no
ed698112 12345
1cf3d07d
SE
12346# when you set need_version to no, make sure it does not cause -set_version
12347# flags to be left without arguments
12348need_version=unknown
ed698112 12349
1cf3d07d
SE
12350case $host_os in
12351aix3*)
12352 version_type=linux
12353 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12354 shlibpath_var=LIBPATH
ed698112 12355
1cf3d07d
SE
12356 # AIX 3 has no versioning support, so we append a major version to the name.
12357 soname_spec='${libname}${release}${shared_ext}$major'
12358 ;;
ed698112 12359
ed44a2c7 12360aix[4-9]*)
1cf3d07d
SE
12361 version_type=linux
12362 need_lib_prefix=no
12363 need_version=no
12364 hardcode_into_libs=yes
12365 if test "$host_cpu" = ia64; then
12366 # AIX 5 supports IA64
12367 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12368 shlibpath_var=LD_LIBRARY_PATH
12369 else
12370 # With GCC up to 2.95.x, collect2 would create an import file
12371 # for dependence libraries. The import file would start with
12372 # the line `#! .'. This would cause the generated library to
12373 # depend on `.', always an invalid library. This was fixed in
12374 # development snapshots of GCC prior to 3.0.
12375 case $host_os in
12376 aix4 | aix4.[01] | aix4.[01].*)
12377 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12378 echo ' yes '
12379 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12380 :
12381 else
12382 can_build_shared=no
12383 fi
12384 ;;
12385 esac
12386 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12387 # soname into executable. Probably we can add versioning support to
12388 # collect2, so additional links can be useful in future.
12389 if test "$aix_use_runtimelinking" = yes; then
12390 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12391 # instead of lib<name>.a to let people know that these are not
12392 # typical AIX shared libraries.
12393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12394 else
12395 # We preserve .a as extension for shared libraries through AIX4.2
12396 # and later when we are not doing run time linking.
12397 library_names_spec='${libname}${release}.a $libname.a'
12398 soname_spec='${libname}${release}${shared_ext}$major'
12399 fi
12400 shlibpath_var=LIBPATH
12401 fi
12402 ;;
ed698112 12403
1cf3d07d 12404amigaos*)
0da7a284
PG
12405 case $host_cpu in
12406 powerpc)
12407 # Since July 2007 AmigaOS4 officially supports .so libraries.
12408 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12410 ;;
12411 m68k)
1cf3d07d
SE
12412 library_names_spec='$libname.ixlibrary $libname.a'
12413 # Create ${libname}_ixlibrary.a entries in /sys/libs.
43e02a8a 12414 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
0da7a284
PG
12415 ;;
12416 esac
1cf3d07d 12417 ;;
ed698112 12418
1cf3d07d
SE
12419beos*)
12420 library_names_spec='${libname}${shared_ext}'
12421 dynamic_linker="$host_os ld.so"
12422 shlibpath_var=LIBRARY_PATH
12423 ;;
ed698112 12424
1cf3d07d
SE
12425bsdi[45]*)
12426 version_type=linux
12427 need_version=no
12428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12429 soname_spec='${libname}${release}${shared_ext}$major'
12430 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12431 shlibpath_var=LD_LIBRARY_PATH
12432 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12433 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12434 # the default ld.so.conf also contains /usr/contrib/lib and
12435 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12436 # libtool to hard-code these into programs
12437 ;;
ed698112 12438
0da7a284 12439cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
12440 version_type=windows
12441 shrext_cmds=".dll"
12442 need_version=no
12443 need_lib_prefix=no
ed698112 12444
0da7a284
PG
12445 case $GCC,$host_os in
12446 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
12447 library_names_spec='$libname.dll.a'
12448 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12449 postinstall_cmds='base_file=`basename \${file}`~
12450 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12451 dldir=$destdir/`dirname \$dlpath`~
12452 test -d \$dldir || mkdir -p \$dldir~
12453 $install_prog $dir/$dlname \$dldir/$dlname~
12454 chmod a+x \$dldir/$dlname~
12455 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12456 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12457 fi'
12458 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12459 dlpath=$dir/\$dldll~
12460 $RM \$dlpath'
12461 shlibpath_overrides_runpath=yes
ed698112 12462
1cf3d07d
SE
12463 case $host_os in
12464 cygwin*)
12465 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12466 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43e02a8a
RW
12467
12468 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1cf3d07d 12469 ;;
0da7a284 12470 mingw* | cegcc*)
1cf3d07d
SE
12471 # MinGW DLLs use traditional 'lib' prefix
12472 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1cf3d07d
SE
12473 ;;
12474 pw32*)
12475 # pw32 DLLs use 'pw' prefix rather than 'lib'
12476 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12477 ;;
12478 esac
12479 ;;
ed698112 12480
1cf3d07d
SE
12481 *)
12482 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12483 ;;
12484 esac
12485 dynamic_linker='Win32 ld.exe'
12486 # FIXME: first we should search . and the directory the executable is in
12487 shlibpath_var=PATH
12488 ;;
ed698112 12489
1cf3d07d
SE
12490darwin* | rhapsody*)
12491 dynamic_linker="$host_os dyld"
12492 version_type=darwin
12493 need_lib_prefix=no
12494 need_version=no
12495 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12496 soname_spec='${libname}${release}${major}$shared_ext'
12497 shlibpath_overrides_runpath=yes
12498 shlibpath_var=DYLD_LIBRARY_PATH
12499 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ed698112 12500
1cf3d07d
SE
12501 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12502 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12503 ;;
ed698112 12504
1cf3d07d
SE
12505dgux*)
12506 version_type=linux
12507 need_lib_prefix=no
12508 need_version=no
12509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12510 soname_spec='${libname}${release}${shared_ext}$major'
12511 shlibpath_var=LD_LIBRARY_PATH
12512 ;;
ed698112 12513
1cf3d07d
SE
12514freebsd* | dragonfly*)
12515 # DragonFly does not have aout. When/if they implement a new
12516 # versioning mechanism, adjust this.
12517 if test -x /usr/bin/objformat; then
12518 objformat=`/usr/bin/objformat`
12519 else
12520 case $host_os in
c6084f68 12521 freebsd[23].*) objformat=aout ;;
1cf3d07d
SE
12522 *) objformat=elf ;;
12523 esac
12524 fi
12525 version_type=freebsd-$objformat
12526 case $version_type in
12527 freebsd-elf*)
12528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12529 need_version=no
12530 need_lib_prefix=no
12531 ;;
12532 freebsd-*)
12533 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12534 need_version=yes
12535 ;;
12536 esac
12537 shlibpath_var=LD_LIBRARY_PATH
12538 case $host_os in
c6084f68 12539 freebsd2.*)
1cf3d07d
SE
12540 shlibpath_overrides_runpath=yes
12541 ;;
12542 freebsd3.[01]* | freebsdelf3.[01]*)
12543 shlibpath_overrides_runpath=yes
12544 hardcode_into_libs=yes
12545 ;;
12546 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12547 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12548 shlibpath_overrides_runpath=no
12549 hardcode_into_libs=yes
12550 ;;
12551 *) # from 4.6 on, and DragonFly
12552 shlibpath_overrides_runpath=yes
12553 hardcode_into_libs=yes
12554 ;;
12555 esac
12556 ;;
ed698112 12557
1cf3d07d
SE
12558gnu*)
12559 version_type=linux
12560 need_lib_prefix=no
12561 need_version=no
12562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12563 soname_spec='${libname}${release}${shared_ext}$major'
12564 shlibpath_var=LD_LIBRARY_PATH
12565 hardcode_into_libs=yes
12566 ;;
34c5c0e1 12567
43e02a8a
RW
12568haiku*)
12569 version_type=linux
12570 need_lib_prefix=no
12571 need_version=no
12572 dynamic_linker="$host_os runtime_loader"
12573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12574 soname_spec='${libname}${release}${shared_ext}$major'
12575 shlibpath_var=LIBRARY_PATH
12576 shlibpath_overrides_runpath=yes
12577 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
12578 hardcode_into_libs=yes
12579 ;;
12580
1cf3d07d
SE
12581hpux9* | hpux10* | hpux11*)
12582 # Give a soname corresponding to the major version so that dld.sl refuses to
12583 # link against other versions.
12584 version_type=sunos
12585 need_lib_prefix=no
12586 need_version=no
12587 case $host_cpu in
12588 ia64*)
12589 shrext_cmds='.so'
12590 hardcode_into_libs=yes
12591 dynamic_linker="$host_os dld.so"
12592 shlibpath_var=LD_LIBRARY_PATH
12593 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12595 soname_spec='${libname}${release}${shared_ext}$major'
12596 if test "X$HPUX_IA64_MODE" = X32; then
12597 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12598 else
12599 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12600 fi
12601 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12602 ;;
12603 hppa*64*)
12604 shrext_cmds='.sl'
12605 hardcode_into_libs=yes
12606 dynamic_linker="$host_os dld.sl"
12607 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12608 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12610 soname_spec='${libname}${release}${shared_ext}$major'
12611 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12612 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12613 ;;
12614 *)
12615 shrext_cmds='.sl'
12616 dynamic_linker="$host_os dld.sl"
12617 shlibpath_var=SHLIB_PATH
12618 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12620 soname_spec='${libname}${release}${shared_ext}$major'
12621 ;;
12622 esac
43e02a8a 12623 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1cf3d07d 12624 postinstall_cmds='chmod 555 $lib'
43e02a8a
RW
12625 # or fails outright, so override atomically:
12626 install_override_mode=555
1cf3d07d 12627 ;;
ed698112 12628
1cf3d07d
SE
12629interix[3-9]*)
12630 version_type=linux
12631 need_lib_prefix=no
12632 need_version=no
12633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12634 soname_spec='${libname}${release}${shared_ext}$major'
12635 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12636 shlibpath_var=LD_LIBRARY_PATH
12637 shlibpath_overrides_runpath=no
12638 hardcode_into_libs=yes
12639 ;;
ed698112 12640
1cf3d07d
SE
12641irix5* | irix6* | nonstopux*)
12642 case $host_os in
12643 nonstopux*) version_type=nonstopux ;;
12644 *)
12645 if test "$lt_cv_prog_gnu_ld" = yes; then
12646 version_type=linux
12647 else
12648 version_type=irix
12649 fi ;;
12650 esac
12651 need_lib_prefix=no
12652 need_version=no
12653 soname_spec='${libname}${release}${shared_ext}$major'
12654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12655 case $host_os in
12656 irix5* | nonstopux*)
12657 libsuff= shlibsuff=
12658 ;;
12659 *)
12660 case $LD in # libtool.m4 will add one of these switches to LD
12661 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12662 libsuff= shlibsuff= libmagic=32-bit;;
12663 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12664 libsuff=32 shlibsuff=N32 libmagic=N32;;
12665 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12666 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12667 *) libsuff= shlibsuff= libmagic=never-match;;
12668 esac
12669 ;;
12670 esac
12671 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12672 shlibpath_overrides_runpath=no
12673 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12674 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12675 hardcode_into_libs=yes
12676 ;;
ed698112 12677
1cf3d07d
SE
12678# No shared lib support for Linux oldld, aout, or coff.
12679linux*oldld* | linux*aout* | linux*coff*)
12680 dynamic_linker=no
12681 ;;
ed698112 12682
1cf3d07d 12683# This must be Linux ELF.
7a9d3fe8 12684linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
12685 version_type=linux
12686 need_lib_prefix=no
12687 need_version=no
12688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12689 soname_spec='${libname}${release}${shared_ext}$major'
12690 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12691 shlibpath_var=LD_LIBRARY_PATH
12692 shlibpath_overrides_runpath=no
baafc534 12693
1cf3d07d 12694 # Some binutils ld are patched to set DT_RUNPATH
5213506e
RW
12695 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12696 $as_echo_n "(cached) " >&6
baafc534
RW
12697else
12698 lt_cv_shlibpath_overrides_runpath=no
12699 save_LDFLAGS=$LDFLAGS
12700 save_libdir=$libdir
12701 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12702 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12703 if test x$gcc_no_link = xyes; then
5213506e 12704 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ed698112 12705fi
5213506e 12706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ed698112 12707/* end confdefs.h. */
1cf3d07d
SE
12708
12709int
12710main ()
12711{
12712
12713 ;
12714 return 0;
12715}
ed698112 12716_ACEOF
5213506e
RW
12717if ac_fn_c_try_link "$LINENO"; then :
12718 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 12719 lt_cv_shlibpath_overrides_runpath=yes
ed698112 12720fi
34c5c0e1 12721fi
5213506e
RW
12722rm -f core conftest.err conftest.$ac_objext \
12723 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
12724 LDFLAGS=$save_LDFLAGS
12725 libdir=$save_libdir
12726
12727fi
12728
12729 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
ed698112 12730
1cf3d07d
SE
12731 # This implies no fast_install, which is unacceptable.
12732 # Some rework will be needed to allow for fast_install
12733 # before this can be enabled.
12734 hardcode_into_libs=yes
ed698112 12735
1cf3d07d
SE
12736 # Append ld.so.conf contents to the search path
12737 if test -f /etc/ld.so.conf; then
43e02a8a 12738 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
1cf3d07d
SE
12739 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12740 fi
ed698112 12741
1cf3d07d
SE
12742 # We used to test for /lib/ld.so.1 and disable shared libraries on
12743 # powerpc, because MkLinux only supported shared libraries with the
12744 # GNU dynamic linker. Since this was broken with cross compilers,
12745 # most powerpc-linux boxes support dynamic linking these days and
12746 # people can always --disable-shared, the test was removed, and we
12747 # assume the GNU/Linux dynamic linker is in use.
12748 dynamic_linker='GNU/Linux ld.so'
12749 ;;
ed698112 12750
1cf3d07d
SE
12751netbsd*)
12752 version_type=sunos
12753 need_lib_prefix=no
12754 need_version=no
12755 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12758 dynamic_linker='NetBSD (a.out) ld.so'
12759 else
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 dynamic_linker='NetBSD ld.elf_so'
12763 fi
12764 shlibpath_var=LD_LIBRARY_PATH
12765 shlibpath_overrides_runpath=yes
12766 hardcode_into_libs=yes
12767 ;;
ed698112 12768
1cf3d07d
SE
12769newsos6)
12770 version_type=linux
12771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12772 shlibpath_var=LD_LIBRARY_PATH
12773 shlibpath_overrides_runpath=yes
12774 ;;
ed698112 12775
1cf3d07d
SE
12776*nto* | *qnx*)
12777 version_type=qnx
12778 need_lib_prefix=no
12779 need_version=no
12780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12781 soname_spec='${libname}${release}${shared_ext}$major'
12782 shlibpath_var=LD_LIBRARY_PATH
12783 shlibpath_overrides_runpath=no
12784 hardcode_into_libs=yes
12785 dynamic_linker='ldqnx.so'
12786 ;;
ed698112 12787
1cf3d07d
SE
12788openbsd*)
12789 version_type=sunos
12790 sys_lib_dlsearch_path_spec="/usr/lib"
12791 need_lib_prefix=no
12792 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12793 case $host_os in
12794 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12795 *) need_version=no ;;
12796 esac
12797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12798 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12799 shlibpath_var=LD_LIBRARY_PATH
12800 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12801 case $host_os in
12802 openbsd2.[89] | openbsd2.[89].*)
12803 shlibpath_overrides_runpath=no
12804 ;;
12805 *)
12806 shlibpath_overrides_runpath=yes
12807 ;;
12808 esac
12809 else
12810 shlibpath_overrides_runpath=yes
12811 fi
12812 ;;
ee9dd372 12813
1cf3d07d
SE
12814os2*)
12815 libname_spec='$name'
12816 shrext_cmds=".dll"
12817 need_lib_prefix=no
12818 library_names_spec='$libname${shared_ext} $libname.a'
12819 dynamic_linker='OS/2 ld.exe'
12820 shlibpath_var=LIBPATH
12821 ;;
ed698112 12822
1cf3d07d
SE
12823osf3* | osf4* | osf5*)
12824 version_type=osf
12825 need_lib_prefix=no
12826 need_version=no
12827 soname_spec='${libname}${release}${shared_ext}$major'
12828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12829 shlibpath_var=LD_LIBRARY_PATH
12830 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12831 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12832 ;;
ee9dd372 12833
1cf3d07d
SE
12834rdos*)
12835 dynamic_linker=no
12836 ;;
2a67186a 12837
1cf3d07d
SE
12838solaris*)
12839 version_type=linux
12840 need_lib_prefix=no
12841 need_version=no
12842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12843 soname_spec='${libname}${release}${shared_ext}$major'
12844 shlibpath_var=LD_LIBRARY_PATH
12845 shlibpath_overrides_runpath=yes
12846 hardcode_into_libs=yes
12847 # ldd complains unless libraries are executable
12848 postinstall_cmds='chmod +x $lib'
12849 ;;
2a67186a 12850
1cf3d07d
SE
12851sunos4*)
12852 version_type=sunos
12853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12854 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12855 shlibpath_var=LD_LIBRARY_PATH
12856 shlibpath_overrides_runpath=yes
12857 if test "$with_gnu_ld" = yes; then
12858 need_lib_prefix=no
12859 fi
12860 need_version=yes
12861 ;;
2a67186a 12862
1cf3d07d
SE
12863sysv4 | sysv4.3*)
12864 version_type=linux
12865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12866 soname_spec='${libname}${release}${shared_ext}$major'
12867 shlibpath_var=LD_LIBRARY_PATH
12868 case $host_vendor in
12869 sni)
12870 shlibpath_overrides_runpath=no
12871 need_lib_prefix=no
12872 runpath_var=LD_RUN_PATH
12873 ;;
12874 siemens)
12875 need_lib_prefix=no
12876 ;;
12877 motorola)
12878 need_lib_prefix=no
12879 need_version=no
12880 shlibpath_overrides_runpath=no
12881 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12882 ;;
12883 esac
12884 ;;
2a67186a 12885
1cf3d07d
SE
12886sysv4*MP*)
12887 if test -d /usr/nec ;then
12888 version_type=linux
12889 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12890 soname_spec='$libname${shared_ext}.$major'
12891 shlibpath_var=LD_LIBRARY_PATH
12892 fi
12893 ;;
2a67186a 12894
1cf3d07d
SE
12895sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12896 version_type=freebsd-elf
12897 need_lib_prefix=no
12898 need_version=no
12899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12900 soname_spec='${libname}${release}${shared_ext}$major'
12901 shlibpath_var=LD_LIBRARY_PATH
12902 shlibpath_overrides_runpath=yes
12903 hardcode_into_libs=yes
12904 if test "$with_gnu_ld" = yes; then
12905 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12906 else
12907 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12908 case $host_os in
12909 sco3.2v5*)
12910 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12911 ;;
12912 esac
12913 fi
12914 sys_lib_dlsearch_path_spec='/usr/lib'
12915 ;;
2a67186a 12916
1cf3d07d
SE
12917tpf*)
12918 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12919 version_type=linux
12920 need_lib_prefix=no
12921 need_version=no
0da7a284 12922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
12923 shlibpath_var=LD_LIBRARY_PATH
12924 shlibpath_overrides_runpath=no
12925 hardcode_into_libs=yes
12926 ;;
2a67186a 12927
1cf3d07d
SE
12928uts4*)
12929 version_type=linux
12930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12931 soname_spec='${libname}${release}${shared_ext}$major'
12932 shlibpath_var=LD_LIBRARY_PATH
12933 ;;
5aac1dac 12934
1cf3d07d
SE
12935*)
12936 dynamic_linker=no
12937 ;;
12938esac
5213506e
RW
12939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12940$as_echo "$dynamic_linker" >&6; }
1cf3d07d 12941test "$dynamic_linker" = no && can_build_shared=no
6d1e9d18 12942
1cf3d07d
SE
12943variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12944if test "$GCC" = yes; then
12945 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5aac1dac 12946fi
ed698112 12947
0da7a284
PG
12948if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12949 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12950fi
12951if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12952 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12953fi
12954
ed698112 12955
ee9dd372 12956
ed698112 12957
5aac1dac 12958
7f40378f 12959
7f40378f 12960
7f40378f
DD
12961
12962
12963
7f40378f 12964
ee9dd372 12965
ed698112 12966
5aac1dac 12967
7f40378f 12968
7f40378f 12969
ee9dd372 12970
ed698112 12971
1cf3d07d
SE
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
43e02a8a
RW
13035
13036
13037
13038
13039
1cf3d07d
SE
13040
13041
13042
13043
13044
13045
5213506e
RW
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13047$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
13048hardcode_action=
13049if test -n "$hardcode_libdir_flag_spec" ||
13050 test -n "$runpath_var" ||
13051 test "X$hardcode_automatic" = "Xyes" ; then
13052
13053 # We can hardcode non-existent directories.
13054 if test "$hardcode_direct" != no &&
13055 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13056 # have to relink, otherwise we might link with an installed library
13057 # when we should be linking with a yet-to-be-installed one
13058 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13059 test "$hardcode_minus_L" != no; then
13060 # Linking always hardcodes the temporary library directory.
13061 hardcode_action=relink
5b7a26f6 13062 else
1cf3d07d
SE
13063 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13064 hardcode_action=immediate
5b7a26f6 13065 fi
1cf3d07d
SE
13066else
13067 # We cannot hardcode anything, or else we can only hardcode existing
13068 # directories.
13069 hardcode_action=unsupported
13070fi
5213506e
RW
13071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13072$as_echo "$hardcode_action" >&6; }
5b7a26f6 13073
1cf3d07d
SE
13074if test "$hardcode_action" = relink ||
13075 test "$inherit_rpath" = yes; then
13076 # Fast installation is not supported
13077 enable_fast_install=no
13078elif test "$shlibpath_overrides_runpath" = yes ||
13079 test "$enable_shared" = no; then
13080 # Fast installation is not necessary
13081 enable_fast_install=needless
13082fi
5b7a26f6 13083
1cf3d07d
SE
13084
13085
13086
13087
13088
13089 if test "x$enable_dlopen" != xyes; then
13090 enable_dlopen=unknown
13091 enable_dlopen_self=unknown
13092 enable_dlopen_self_static=unknown
5b7a26f6 13093else
1cf3d07d
SE
13094 lt_cv_dlopen=no
13095 lt_cv_dlopen_libs=
13096
13097 case $host_os in
13098 beos*)
13099 lt_cv_dlopen="load_add_on"
13100 lt_cv_dlopen_libs=
13101 lt_cv_dlopen_self=yes
5b7a26f6 13102 ;;
1cf3d07d 13103
0da7a284 13104 mingw* | pw32* | cegcc*)
1cf3d07d
SE
13105 lt_cv_dlopen="LoadLibrary"
13106 lt_cv_dlopen_libs=
5b7a26f6 13107 ;;
5b7a26f6 13108
5213506e
RW
13109 cygwin*)
13110 lt_cv_dlopen="dlopen"
13111 lt_cv_dlopen_libs=
13112 ;;
5b7a26f6 13113
5213506e
RW
13114 darwin*)
13115 # if libdl is installed we need to link against it
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13117$as_echo_n "checking for dlopen in -ldl... " >&6; }
13118if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13119 $as_echo_n "(cached) " >&6
1cf3d07d
SE
13120else
13121 ac_check_lib_save_LIBS=$LIBS
5213506e 13122LIBS="-ldl $LIBS"
1cf3d07d 13123if test x$gcc_no_link = xyes; then
5213506e 13124 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 13125fi
5213506e 13126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 13127/* end confdefs.h. */
5b7a26f6 13128
5213506e
RW
13129/* Override any GCC internal prototype to avoid an error.
13130 Use char because int might match the return type of a GCC
13131 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
13132#ifdef __cplusplus
13133extern "C"
13134#endif
5213506e 13135char dlopen ();
1cf3d07d
SE
13136int
13137main ()
13138{
5213506e 13139return dlopen ();
1cf3d07d
SE
13140 ;
13141 return 0;
13142}
13143_ACEOF
5213506e
RW
13144if ac_fn_c_try_link "$LINENO"; then :
13145 ac_cv_lib_dl_dlopen=yes
1cf3d07d 13146else
5213506e 13147 ac_cv_lib_dl_dlopen=no
1cf3d07d 13148fi
5213506e
RW
13149rm -f core conftest.err conftest.$ac_objext \
13150 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
13151LIBS=$ac_check_lib_save_LIBS
13152fi
5213506e
RW
13153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13154$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13155if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13156 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1cf3d07d 13157else
5b7a26f6 13158
5213506e
RW
13159 lt_cv_dlopen="dyld"
13160 lt_cv_dlopen_libs=
13161 lt_cv_dlopen_self=yes
5aac1dac 13162
5213506e 13163fi
5b7a26f6 13164
5213506e 13165 ;;
5b7a26f6 13166
5213506e
RW
13167 *)
13168 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13169if test "x$ac_cv_func_shl_load" = x""yes; then :
13170 lt_cv_dlopen="shl_load"
13171else
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13173$as_echo_n "checking for shl_load in -ldld... " >&6; }
13174if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13175 $as_echo_n "(cached) " >&6
13176else
13177 ac_check_lib_save_LIBS=$LIBS
13178LIBS="-ldld $LIBS"
13179if test x$gcc_no_link = xyes; then
13180 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13181fi
13182cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13183/* end confdefs.h. */
13184
13185/* Override any GCC internal prototype to avoid an error.
13186 Use char because int might match the return type of a GCC
1cf3d07d 13187 builtin and then its argument prototype would still apply. */
1cf3d07d 13188#ifdef __cplusplus
5213506e 13189extern "C"
1cf3d07d 13190#endif
5213506e 13191char shl_load ();
1cf3d07d
SE
13192int
13193main ()
13194{
5213506e 13195return shl_load ();
1cf3d07d
SE
13196 ;
13197 return 0;
13198}
13199_ACEOF
5213506e
RW
13200if ac_fn_c_try_link "$LINENO"; then :
13201 ac_cv_lib_dld_shl_load=yes
1cf3d07d 13202else
5213506e 13203 ac_cv_lib_dld_shl_load=no
1cf3d07d 13204fi
5213506e
RW
13205rm -f core conftest.err conftest.$ac_objext \
13206 conftest$ac_exeext conftest.$ac_ext
13207LIBS=$ac_check_lib_save_LIBS
1cf3d07d 13208fi
5213506e
RW
13209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13210$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13211if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13212 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13213else
13214 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13215if test "x$ac_cv_func_dlopen" = x""yes; then :
1cf3d07d
SE
13216 lt_cv_dlopen="dlopen"
13217else
5213506e
RW
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13219$as_echo_n "checking for dlopen in -ldl... " >&6; }
13220if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13221 $as_echo_n "(cached) " >&6
1cf3d07d
SE
13222else
13223 ac_check_lib_save_LIBS=$LIBS
13224LIBS="-ldl $LIBS"
13225if test x$gcc_no_link = xyes; then
5213506e 13226 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 13227fi
5213506e 13228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 13229/* end confdefs.h. */
5b7a26f6 13230
5213506e
RW
13231/* Override any GCC internal prototype to avoid an error.
13232 Use char because int might match the return type of a GCC
13233 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
13234#ifdef __cplusplus
13235extern "C"
13236#endif
1cf3d07d
SE
13237char dlopen ();
13238int
13239main ()
13240{
5213506e 13241return dlopen ();
1cf3d07d
SE
13242 ;
13243 return 0;
13244}
13245_ACEOF
5213506e 13246if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
13247 ac_cv_lib_dl_dlopen=yes
13248else
5213506e 13249 ac_cv_lib_dl_dlopen=no
1cf3d07d 13250fi
5213506e
RW
13251rm -f core conftest.err conftest.$ac_objext \
13252 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
13253LIBS=$ac_check_lib_save_LIBS
13254fi
5213506e
RW
13255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13256$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13257if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1cf3d07d
SE
13258 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13259else
5213506e
RW
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13261$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13262if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13263 $as_echo_n "(cached) " >&6
1cf3d07d
SE
13264else
13265 ac_check_lib_save_LIBS=$LIBS
13266LIBS="-lsvld $LIBS"
13267if test x$gcc_no_link = xyes; then
5213506e 13268 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 13269fi
5213506e 13270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 13271/* end confdefs.h. */
5b7a26f6 13272
5213506e
RW
13273/* Override any GCC internal prototype to avoid an error.
13274 Use char because int might match the return type of a GCC
13275 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
13276#ifdef __cplusplus
13277extern "C"
13278#endif
1cf3d07d 13279char dlopen ();
ed698112
NN
13280int
13281main ()
13282{
5213506e 13283return dlopen ();
ed698112
NN
13284 ;
13285 return 0;
13286}
13287_ACEOF
5213506e 13288if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 13289 ac_cv_lib_svld_dlopen=yes
ee9dd372 13290else
5213506e 13291 ac_cv_lib_svld_dlopen=no
ee9dd372 13292fi
5213506e
RW
13293rm -f core conftest.err conftest.$ac_objext \
13294 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
13295LIBS=$ac_check_lib_save_LIBS
13296fi
5213506e
RW
13297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13298$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13299if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
1cf3d07d
SE
13300 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13301else
5213506e
RW
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13303$as_echo_n "checking for dld_link in -ldld... " >&6; }
13304if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13305 $as_echo_n "(cached) " >&6
1cf3d07d
SE
13306else
13307 ac_check_lib_save_LIBS=$LIBS
13308LIBS="-ldld $LIBS"
13309if test x$gcc_no_link = xyes; then
5213506e 13310 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ed698112 13311fi
5213506e 13312cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ed698112 13313/* end confdefs.h. */
1cf3d07d 13314
5213506e
RW
13315/* Override any GCC internal prototype to avoid an error.
13316 Use char because int might match the return type of a GCC
13317 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
13318#ifdef __cplusplus
13319extern "C"
13320#endif
1cf3d07d 13321char dld_link ();
ed698112
NN
13322int
13323main ()
13324{
5213506e 13325return dld_link ();
ed698112
NN
13326 ;
13327 return 0;
13328}
13329_ACEOF
5213506e 13330if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 13331 ac_cv_lib_dld_dld_link=yes
ee9dd372 13332else
5213506e 13333 ac_cv_lib_dld_dld_link=no
5aac1dac 13334fi
5213506e
RW
13335rm -f core conftest.err conftest.$ac_objext \
13336 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
13337LIBS=$ac_check_lib_save_LIBS
13338fi
5213506e
RW
13339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13340$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13341if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
0da7a284 13342 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1cf3d07d
SE
13343fi
13344
4b7f154f 13345
ed698112 13346fi
ed698112 13347
7339705d 13348
1cf3d07d
SE
13349fi
13350
13351
13352fi
13353
13354
13355fi
13356
13357
13358fi
13359
13360 ;;
13361 esac
13362
13363 if test "x$lt_cv_dlopen" != xno; then
13364 enable_dlopen=yes
5b7a26f6 13365 else
1cf3d07d 13366 enable_dlopen=no
5b7a26f6
KC
13367 fi
13368
1cf3d07d
SE
13369 case $lt_cv_dlopen in
13370 dlopen)
13371 save_CPPFLAGS="$CPPFLAGS"
13372 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
5b7a26f6 13373
1cf3d07d
SE
13374 save_LDFLAGS="$LDFLAGS"
13375 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
5b7a26f6 13376
1cf3d07d
SE
13377 save_LIBS="$LIBS"
13378 LIBS="$lt_cv_dlopen_libs $LIBS"
13379
5213506e
RW
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13381$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13382if test "${lt_cv_dlopen_self+set}" = set; then :
13383 $as_echo_n "(cached) " >&6
4b7f154f 13384else
1cf3d07d
SE
13385 if test "$cross_compiling" = yes; then :
13386 lt_cv_dlopen_self=cross
13387else
13388 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13389 lt_status=$lt_dlunknown
13390 cat > conftest.$ac_ext <<_LT_EOF
3cbe17f7 13391#line 13391 "configure"
1cf3d07d 13392#include "confdefs.h"
ed698112 13393
1cf3d07d
SE
13394#if HAVE_DLFCN_H
13395#include <dlfcn.h>
5aac1dac 13396#endif
1cf3d07d
SE
13397
13398#include <stdio.h>
13399
13400#ifdef RTLD_GLOBAL
13401# define LT_DLGLOBAL RTLD_GLOBAL
4b7f154f 13402#else
1cf3d07d
SE
13403# ifdef DL_GLOBAL
13404# define LT_DLGLOBAL DL_GLOBAL
13405# else
13406# define LT_DLGLOBAL 0
13407# endif
4b7f154f
TT
13408#endif
13409
1cf3d07d
SE
13410/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13411 find out it does not work in some platform. */
13412#ifndef LT_DLLAZY_OR_NOW
13413# ifdef RTLD_LAZY
13414# define LT_DLLAZY_OR_NOW RTLD_LAZY
13415# else
13416# ifdef DL_LAZY
13417# define LT_DLLAZY_OR_NOW DL_LAZY
13418# else
13419# ifdef RTLD_NOW
13420# define LT_DLLAZY_OR_NOW RTLD_NOW
13421# else
13422# ifdef DL_NOW
13423# define LT_DLLAZY_OR_NOW DL_NOW
13424# else
13425# define LT_DLLAZY_OR_NOW 0
13426# endif
13427# endif
13428# endif
13429# endif
13430#endif
13431
43e02a8a
RW
13432/* When -fvisbility=hidden is used, assume the code has been annotated
13433 correspondingly for the symbols needed. */
13434#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13435void fnord () __attribute__((visibility("default")));
13436#endif
13437
13438void fnord () { int i=42; }
1cf3d07d 13439int main ()
ed698112 13440{
1cf3d07d
SE
13441 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13442 int status = $lt_dlunknown;
5aac1dac 13443
1cf3d07d
SE
13444 if (self)
13445 {
13446 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
13447 else
13448 {
13449 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13450 else puts (dlerror ());
13451 }
1cf3d07d
SE
13452 /* dlclose (self); */
13453 }
13454 else
13455 puts (dlerror ());
13456
0da7a284 13457 return status;
ed698112 13458}
1cf3d07d 13459_LT_EOF
5213506e 13460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d 13461 (eval $ac_link) 2>&5
ed698112 13462 ac_status=$?
5213506e
RW
13463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13464 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
13465 (./conftest; exit; ) >&5 2>/dev/null
13466 lt_status=$?
13467 case x$lt_status in
13468 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13469 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13470 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13471 esac
13472 else :
13473 # compilation failed
13474 lt_cv_dlopen_self=no
13475 fi
4b7f154f 13476fi
1cf3d07d 13477rm -fr conftest*
4b7f154f 13478
ed698112 13479
1cf3d07d 13480fi
5213506e
RW
13481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13482$as_echo "$lt_cv_dlopen_self" >&6; }
ed698112 13483
1cf3d07d
SE
13484 if test "x$lt_cv_dlopen_self" = xyes; then
13485 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
5213506e
RW
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13487$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13488if test "${lt_cv_dlopen_self_static+set}" = set; then :
13489 $as_echo_n "(cached) " >&6
ed698112 13490else
1cf3d07d
SE
13491 if test "$cross_compiling" = yes; then :
13492 lt_cv_dlopen_self_static=cross
4b7f154f 13493else
1cf3d07d
SE
13494 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13495 lt_status=$lt_dlunknown
13496 cat > conftest.$ac_ext <<_LT_EOF
3cbe17f7 13497#line 13497 "configure"
1cf3d07d 13498#include "confdefs.h"
ed698112 13499
1cf3d07d
SE
13500#if HAVE_DLFCN_H
13501#include <dlfcn.h>
13502#endif
ed698112 13503
1cf3d07d 13504#include <stdio.h>
7339705d 13505
1cf3d07d
SE
13506#ifdef RTLD_GLOBAL
13507# define LT_DLGLOBAL RTLD_GLOBAL
13508#else
13509# ifdef DL_GLOBAL
13510# define LT_DLGLOBAL DL_GLOBAL
13511# else
13512# define LT_DLGLOBAL 0
13513# endif
13514#endif
5b7a26f6 13515
1cf3d07d
SE
13516/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13517 find out it does not work in some platform. */
13518#ifndef LT_DLLAZY_OR_NOW
13519# ifdef RTLD_LAZY
13520# define LT_DLLAZY_OR_NOW RTLD_LAZY
13521# else
13522# ifdef DL_LAZY
13523# define LT_DLLAZY_OR_NOW DL_LAZY
13524# else
13525# ifdef RTLD_NOW
13526# define LT_DLLAZY_OR_NOW RTLD_NOW
13527# else
13528# ifdef DL_NOW
13529# define LT_DLLAZY_OR_NOW DL_NOW
13530# else
13531# define LT_DLLAZY_OR_NOW 0
13532# endif
13533# endif
13534# endif
13535# endif
13536#endif
ed698112 13537
43e02a8a
RW
13538/* When -fvisbility=hidden is used, assume the code has been annotated
13539 correspondingly for the symbols needed. */
13540#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13541void fnord () __attribute__((visibility("default")));
13542#endif
13543
13544void fnord () { int i=42; }
1cf3d07d 13545int main ()
ed698112 13546{
1cf3d07d
SE
13547 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13548 int status = $lt_dlunknown;
13549
13550 if (self)
13551 {
13552 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
13553 else
13554 {
13555 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13556 else puts (dlerror ());
13557 }
1cf3d07d
SE
13558 /* dlclose (self); */
13559 }
13560 else
13561 puts (dlerror ());
13562
0da7a284 13563 return status;
ed698112 13564}
1cf3d07d 13565_LT_EOF
5213506e 13566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d 13567 (eval $ac_link) 2>&5
ed698112 13568 ac_status=$?
5213506e
RW
13569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13570 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
13571 (./conftest; exit; ) >&5 2>/dev/null
13572 lt_status=$?
13573 case x$lt_status in
13574 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13575 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13576 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13577 esac
13578 else :
13579 # compilation failed
13580 lt_cv_dlopen_self_static=no
13581 fi
7339705d 13582fi
1cf3d07d
SE
13583rm -fr conftest*
13584
13585
7339705d 13586fi
5213506e
RW
13587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13588$as_echo "$lt_cv_dlopen_self_static" >&6; }
1cf3d07d 13589 fi
ed698112 13590
1cf3d07d
SE
13591 CPPFLAGS="$save_CPPFLAGS"
13592 LDFLAGS="$save_LDFLAGS"
13593 LIBS="$save_LIBS"
13594 ;;
13595 esac
13596
13597 case $lt_cv_dlopen_self in
13598 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13599 *) enable_dlopen_self=unknown ;;
13600 esac
4b7f154f 13601
1cf3d07d
SE
13602 case $lt_cv_dlopen_self_static in
13603 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13604 *) enable_dlopen_self_static=unknown ;;
13605 esac
ee9dd372 13606fi
ee9dd372 13607
ed698112
NN
13608
13609
ed698112 13610
ed698112
NN
13611
13612
ed698112 13613
1cf3d07d
SE
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624striplib=
13625old_striplib=
5213506e
RW
13626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13627$as_echo_n "checking whether stripping libraries is possible... " >&6; }
1cf3d07d
SE
13628if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13629 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13630 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5213506e
RW
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13632$as_echo "yes" >&6; }
1cf3d07d
SE
13633else
13634# FIXME - insert some real tests, host_os isn't really good enough
13635 case $host_os in
13636 darwin*)
13637 if test -n "$STRIP" ; then
13638 striplib="$STRIP -x"
13639 old_striplib="$STRIP -S"
5213506e
RW
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13641$as_echo "yes" >&6; }
1cf3d07d 13642 else
5213506e
RW
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13644$as_echo "no" >&6; }
1cf3d07d
SE
13645 fi
13646 ;;
13647 *)
5213506e
RW
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13649$as_echo "no" >&6; }
1cf3d07d
SE
13650 ;;
13651 esac
ed698112 13652fi
ed698112 13653
1cf3d07d
SE
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665 # Report which library types will actually be built
5213506e
RW
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13667$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13669$as_echo "$can_build_shared" >&6; }
1cf3d07d 13670
5213506e
RW
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13672$as_echo_n "checking whether to build shared libraries... " >&6; }
1cf3d07d
SE
13673 test "$can_build_shared" = "no" && enable_shared=no
13674
13675 # On AIX, shared libraries and static libraries use the same namespace, and
13676 # are all built from PIC.
13677 case $host_os in
13678 aix3*)
13679 test "$enable_shared" = yes && enable_static=no
13680 if test -n "$RANLIB"; then
13681 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13682 postinstall_cmds='$RANLIB $lib'
13683 fi
13684 ;;
13685
ed44a2c7 13686 aix[4-9]*)
1cf3d07d
SE
13687 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13688 test "$enable_shared" = yes && enable_static=no
13689 fi
13690 ;;
13691 esac
5213506e
RW
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13693$as_echo "$enable_shared" >&6; }
1cf3d07d 13694
5213506e
RW
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13696$as_echo_n "checking whether to build static libraries... " >&6; }
1cf3d07d
SE
13697 # Make sure either enable_shared or enable_static is yes.
13698 test "$enable_shared" = yes || enable_static=yes
5213506e
RW
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13700$as_echo "$enable_static" >&6; }
1cf3d07d
SE
13701
13702
ed698112
NN
13703
13704
13705fi
1cf3d07d
SE
13706ac_ext=c
13707ac_cpp='$CPP $CPPFLAGS'
13708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13710ac_compiler_gnu=$ac_cv_c_compiler_gnu
ed698112 13711
1cf3d07d 13712CC="$lt_save_CC"
5aac1dac 13713
43e02a8a
RW
13714 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13715 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13716 (test "X$CXX" != "Xg++"))) ; then
13717 ac_ext=cpp
13718ac_cpp='$CXXCPP $CPPFLAGS'
13719ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13720ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13721ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13723$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13724if test -z "$CXXCPP"; then
13725 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13726 $as_echo_n "(cached) " >&6
13727else
13728 # Double quotes because CXXCPP needs to be expanded
13729 for CXXCPP in "$CXX -E" "/lib/cpp"
13730 do
13731 ac_preproc_ok=false
13732for ac_cxx_preproc_warn_flag in '' yes
13733do
13734 # Use a header file that comes with gcc, so configuring glibc
13735 # with a fresh cross-compiler works.
13736 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13737 # <limits.h> exists even on freestanding compilers.
13738 # On the NeXT, cc -E runs the code through the compiler's parser,
13739 # not just through cpp. "Syntax error" is here to catch this case.
13740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13741/* end confdefs.h. */
13742#ifdef __STDC__
13743# include <limits.h>
13744#else
13745# include <assert.h>
13746#endif
13747 Syntax error
13748_ACEOF
13749if ac_fn_cxx_try_cpp "$LINENO"; then :
13750
13751else
13752 # Broken: fails on valid input.
13753continue
13754fi
13755rm -f conftest.err conftest.$ac_ext
13756
13757 # OK, works on sane cases. Now check whether nonexistent headers
13758 # can be detected and how.
13759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13760/* end confdefs.h. */
13761#include <ac_nonexistent.h>
13762_ACEOF
13763if ac_fn_cxx_try_cpp "$LINENO"; then :
13764 # Broken: success on invalid input.
13765continue
13766else
13767 # Passes both tests.
13768ac_preproc_ok=:
13769break
13770fi
13771rm -f conftest.err conftest.$ac_ext
13772
13773done
13774# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13775rm -f conftest.err conftest.$ac_ext
13776if $ac_preproc_ok; then :
13777 break
13778fi
13779
13780 done
13781 ac_cv_prog_CXXCPP=$CXXCPP
13782
13783fi
13784 CXXCPP=$ac_cv_prog_CXXCPP
13785else
13786 ac_cv_prog_CXXCPP=$CXXCPP
13787fi
13788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13789$as_echo "$CXXCPP" >&6; }
13790ac_preproc_ok=false
13791for ac_cxx_preproc_warn_flag in '' yes
13792do
13793 # Use a header file that comes with gcc, so configuring glibc
13794 # with a fresh cross-compiler works.
13795 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13796 # <limits.h> exists even on freestanding compilers.
13797 # On the NeXT, cc -E runs the code through the compiler's parser,
13798 # not just through cpp. "Syntax error" is here to catch this case.
13799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13800/* end confdefs.h. */
13801#ifdef __STDC__
13802# include <limits.h>
13803#else
13804# include <assert.h>
13805#endif
13806 Syntax error
13807_ACEOF
13808if ac_fn_cxx_try_cpp "$LINENO"; then :
13809
13810else
13811 # Broken: fails on valid input.
13812continue
13813fi
13814rm -f conftest.err conftest.$ac_ext
13815
13816 # OK, works on sane cases. Now check whether nonexistent headers
13817 # can be detected and how.
13818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13819/* end confdefs.h. */
13820#include <ac_nonexistent.h>
13821_ACEOF
13822if ac_fn_cxx_try_cpp "$LINENO"; then :
13823 # Broken: success on invalid input.
13824continue
13825else
13826 # Passes both tests.
13827ac_preproc_ok=:
13828break
13829fi
13830rm -f conftest.err conftest.$ac_ext
13831
13832done
13833# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13834rm -f conftest.err conftest.$ac_ext
13835if $ac_preproc_ok; then :
13836
13837else
13838 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13839$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13840as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
13841See \`config.log' for more details." "$LINENO" 5; }
13842fi
13843
13844ac_ext=c
13845ac_cpp='$CPP $CPPFLAGS'
13846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13848ac_compiler_gnu=$ac_cv_c_compiler_gnu
13849
13850else
13851 _lt_caught_CXX_error=yes
13852fi
5aac1dac 13853
5213506e 13854ac_ext=cpp
1cf3d07d
SE
13855ac_cpp='$CXXCPP $CPPFLAGS'
13856ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13857ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13858ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13859
13860archive_cmds_need_lc_CXX=no
13861allow_undefined_flag_CXX=
13862always_export_symbols_CXX=no
13863archive_expsym_cmds_CXX=
13864compiler_needs_object_CXX=no
13865export_dynamic_flag_spec_CXX=
13866hardcode_direct_CXX=no
13867hardcode_direct_absolute_CXX=no
13868hardcode_libdir_flag_spec_CXX=
13869hardcode_libdir_flag_spec_ld_CXX=
13870hardcode_libdir_separator_CXX=
13871hardcode_minus_L_CXX=no
13872hardcode_shlibpath_var_CXX=unsupported
13873hardcode_automatic_CXX=no
13874inherit_rpath_CXX=no
13875module_cmds_CXX=
13876module_expsym_cmds_CXX=
13877link_all_deplibs_CXX=unknown
13878old_archive_cmds_CXX=$old_archive_cmds
43e02a8a
RW
13879reload_flag_CXX=$reload_flag
13880reload_cmds_CXX=$reload_cmds
1cf3d07d
SE
13881no_undefined_flag_CXX=
13882whole_archive_flag_spec_CXX=
13883enable_shared_with_static_runtimes_CXX=no
13884
13885# Source file extension for C++ test sources.
13886ac_ext=cpp
13887
13888# Object file extension for compiled C++ test sources.
13889objext=o
13890objext_CXX=$objext
13891
13892# No sense in running all these tests if we already determined that
13893# the CXX compiler isn't working. Some variables (like enable_shared)
13894# are currently assumed to apply to all compilers on this platform,
13895# and will be corrupted by setting them based on a non-working compiler.
13896if test "$_lt_caught_CXX_error" != yes; then
13897 # Code to be used in simple compile tests
13898 lt_simple_compile_test_code="int some_variable = 0;"
13899
13900 # Code to be used in simple link tests
13901 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13902
13903 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13904
13905
13906
13907
13908
13909
13910# If no C compiler was specified, use CC.
13911LTCC=${LTCC-"$CC"}
13912
13913# If no C compiler flags were specified, use CFLAGS.
13914LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13915
13916# Allow CC to be a program name with arguments.
13917compiler=$CC
13918
13919
13920 # save warnings/boilerplate of simple test code
13921 ac_outfile=conftest.$ac_objext
13922echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13923eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13924_lt_compiler_boilerplate=`cat conftest.err`
13925$RM conftest*
13926
13927 ac_outfile=conftest.$ac_objext
13928echo "$lt_simple_link_test_code" >conftest.$ac_ext
13929eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13930_lt_linker_boilerplate=`cat conftest.err`
0da7a284 13931$RM -r conftest*
1cf3d07d
SE
13932
13933
13934 # Allow CC to be a program name with arguments.
13935 lt_save_CC=$CC
13936 lt_save_LD=$LD
13937 lt_save_GCC=$GCC
13938 GCC=$GXX
13939 lt_save_with_gnu_ld=$with_gnu_ld
13940 lt_save_path_LD=$lt_cv_path_LD
13941 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13942 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13943 else
13944 $as_unset lt_cv_prog_gnu_ld
13945 fi
13946 if test -n "${lt_cv_path_LDCXX+set}"; then
13947 lt_cv_path_LD=$lt_cv_path_LDCXX
13948 else
13949 $as_unset lt_cv_path_LD
13950 fi
13951 test -z "${LDCXX+set}" || LD=$LDCXX
13952 CC=${CXX-"c++"}
13953 compiler=$CC
13954 compiler_CXX=$CC
13955 for cc_temp in $compiler""; do
13956 case $cc_temp in
13957 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13958 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13959 \-*) ;;
13960 *) break;;
13961 esac
13962done
43e02a8a 13963cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1cf3d07d
SE
13964
13965
13966 if test -n "$compiler"; then
13967 # We don't want -fno-exception when compiling C++ code, so set the
13968 # no_builtin_flag separately
13969 if test "$GXX" = yes; then
13970 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13971 else
13972 lt_prog_compiler_no_builtin_flag_CXX=
13973 fi
13974
13975 if test "$GXX" = yes; then
13976 # Set up default GNU C++ configuration
13977
13978
13979
5213506e
RW
13980# Check whether --with-gnu-ld was given.
13981if test "${with_gnu_ld+set}" = set; then :
13982 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5aac1dac 13983else
1cf3d07d 13984 with_gnu_ld=no
5213506e
RW
13985fi
13986
1cf3d07d
SE
13987ac_prog=ld
13988if test "$GCC" = yes; then
13989 # Check if gcc -print-prog-name=ld gives a path.
5213506e
RW
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13991$as_echo_n "checking for ld used by $CC... " >&6; }
1cf3d07d
SE
13992 case $host in
13993 *-*-mingw*)
13994 # gcc leaves a trailing carriage return which upsets mingw
13995 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13996 *)
13997 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13998 esac
13999 case $ac_prog in
14000 # Accept absolute paths.
14001 [\\/]* | ?:[\\/]*)
14002 re_direlt='/[^/][^/]*/\.\./'
14003 # Canonicalize the pathname of ld
14004 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14005 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14006 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14007 done
14008 test -z "$LD" && LD="$ac_prog"
14009 ;;
14010 "")
14011 # If it fails, then pretend we aren't using GCC.
14012 ac_prog=ld
14013 ;;
14014 *)
14015 # If it is relative, then search for the first ld in PATH.
14016 with_gnu_ld=unknown
14017 ;;
14018 esac
14019elif test "$with_gnu_ld" = yes; then
5213506e
RW
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14021$as_echo_n "checking for GNU ld... " >&6; }
1cf3d07d 14022else
5213506e
RW
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14024$as_echo_n "checking for non-GNU ld... " >&6; }
1cf3d07d 14025fi
5213506e
RW
14026if test "${lt_cv_path_LD+set}" = set; then :
14027 $as_echo_n "(cached) " >&6
02809848 14028else
1cf3d07d
SE
14029 if test -z "$LD"; then
14030 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14031 for ac_dir in $PATH; do
14032 IFS="$lt_save_ifs"
14033 test -z "$ac_dir" && ac_dir=.
14034 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14035 lt_cv_path_LD="$ac_dir/$ac_prog"
14036 # Check to see if the program is GNU ld. I'd rather use --version,
14037 # but apparently some variants of GNU ld only accept -v.
14038 # Break only if it was the GNU/non-GNU ld that we prefer.
14039 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14040 *GNU* | *'with BFD'*)
14041 test "$with_gnu_ld" != no && break
14042 ;;
14043 *)
14044 test "$with_gnu_ld" != yes && break
14045 ;;
14046 esac
14047 fi
14048 done
14049 IFS="$lt_save_ifs"
14050else
14051 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14052fi
14053fi
14054
14055LD="$lt_cv_path_LD"
14056if test -n "$LD"; then
5213506e
RW
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14058$as_echo "$LD" >&6; }
1cf3d07d 14059else
5213506e
RW
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14061$as_echo "no" >&6; }
1cf3d07d 14062fi
5213506e
RW
14063test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14065$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14066if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14067 $as_echo_n "(cached) " >&6
1cf3d07d
SE
14068else
14069 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14070case `$LD -v 2>&1 </dev/null` in
14071*GNU* | *'with BFD'*)
14072 lt_cv_prog_gnu_ld=yes
14073 ;;
14074*)
14075 lt_cv_prog_gnu_ld=no
14076 ;;
14077esac
14078fi
5213506e
RW
14079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14080$as_echo "$lt_cv_prog_gnu_ld" >&6; }
1cf3d07d
SE
14081with_gnu_ld=$lt_cv_prog_gnu_ld
14082
14083
14084
14085
14086
14087
14088
14089 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14090 # archiving commands below assume that GNU ld is being used.
14091 if test "$with_gnu_ld" = yes; then
14092 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14093 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'
14094
14095 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14096 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14097
14098 # If archive_cmds runs LD, not CC, wlarc should be empty
14099 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14100 # investigate it a little bit more. (MM)
14101 wlarc='${wl}'
14102
14103 # ancient GNU ld didn't support --whole-archive et. al.
14104 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14105 $GREP 'no-whole-archive' > /dev/null; then
14106 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14107 else
14108 whole_archive_flag_spec_CXX=
14109 fi
14110 else
14111 with_gnu_ld=no
14112 wlarc=
14113
14114 # A generic and very simple default shared library creation
14115 # command for GNU C++ for the case where it uses the native
14116 # linker, instead of GNU ld. If possible, this setting should
14117 # overridden to take advantage of the native linker features on
14118 # the platform it is being used on.
14119 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14120 fi
14121
14122 # Commands to make compiler produce verbose output that lists
14123 # what "hidden" libraries, object files and flags are used when
14124 # linking a shared library.
43e02a8a 14125 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
1cf3d07d
SE
14126
14127 else
14128 GXX=no
14129 with_gnu_ld=no
14130 wlarc=
14131 fi
14132
14133 # PORTME: fill in a description of your system's C++ link characteristics
5213506e
RW
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14135$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
14136 ld_shlibs_CXX=yes
14137 case $host_os in
14138 aix3*)
14139 # FIXME: insert proper C++ library support
14140 ld_shlibs_CXX=no
14141 ;;
ed44a2c7 14142 aix[4-9]*)
1cf3d07d
SE
14143 if test "$host_cpu" = ia64; then
14144 # On IA64, the linker does run time linking by default, so we don't
14145 # have to do anything special.
14146 aix_use_runtimelinking=no
14147 exp_sym_flag='-Bexport'
14148 no_entry_flag=""
14149 else
14150 aix_use_runtimelinking=no
14151
14152 # Test if we are trying to use run time linking or normal
14153 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14154 # need to do runtime linking.
ed44a2c7 14155 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
14156 for ld_flag in $LDFLAGS; do
14157 case $ld_flag in
14158 *-brtl*)
14159 aix_use_runtimelinking=yes
14160 break
14161 ;;
14162 esac
14163 done
14164 ;;
14165 esac
14166
14167 exp_sym_flag='-bexport'
14168 no_entry_flag='-bnoentry'
14169 fi
14170
14171 # When large executables or shared objects are built, AIX ld can
14172 # have problems creating the table of contents. If linking a library
14173 # or program results in "error TOC overflow" add -mminimal-toc to
14174 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14175 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14176
14177 archive_cmds_CXX=''
14178 hardcode_direct_CXX=yes
14179 hardcode_direct_absolute_CXX=yes
14180 hardcode_libdir_separator_CXX=':'
14181 link_all_deplibs_CXX=yes
14182 file_list_spec_CXX='${wl}-f,'
14183
14184 if test "$GXX" = yes; then
14185 case $host_os in aix4.[012]|aix4.[012].*)
14186 # We only want to do this on AIX 4.2 and lower, the check
14187 # below for broken collect2 doesn't work under 4.3+
14188 collect2name=`${CC} -print-prog-name=collect2`
14189 if test -f "$collect2name" &&
14190 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14191 then
14192 # We have reworked collect2
14193 :
14194 else
14195 # We have old collect2
14196 hardcode_direct_CXX=unsupported
14197 # It fails to find uninstalled libraries when the uninstalled
14198 # path is not listed in the libpath. Setting hardcode_minus_L
14199 # to unsupported forces relinking
14200 hardcode_minus_L_CXX=yes
14201 hardcode_libdir_flag_spec_CXX='-L$libdir'
14202 hardcode_libdir_separator_CXX=
14203 fi
14204 esac
14205 shared_flag='-shared'
14206 if test "$aix_use_runtimelinking" = yes; then
14207 shared_flag="$shared_flag "'${wl}-G'
14208 fi
14209 else
14210 # not using gcc
14211 if test "$host_cpu" = ia64; then
14212 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14213 # chokes on -Wl,-G. The following line is correct:
14214 shared_flag='-G'
14215 else
14216 if test "$aix_use_runtimelinking" = yes; then
14217 shared_flag='${wl}-G'
14218 else
14219 shared_flag='${wl}-bM:SRE'
14220 fi
14221 fi
14222 fi
14223
0da7a284 14224 export_dynamic_flag_spec_CXX='${wl}-bexpall'
1cf3d07d
SE
14225 # It seems that -bexpall does not export symbols beginning with
14226 # underscore (_), so it is better to generate a list of symbols to
14227 # export.
14228 always_export_symbols_CXX=yes
14229 if test "$aix_use_runtimelinking" = yes; then
14230 # Warning - without using the other runtime loading flags (-brtl),
14231 # -berok will link without error, but may produce a broken library.
14232 allow_undefined_flag_CXX='-berok'
14233 # Determine the default libpath from the value encoded in an empty
14234 # executable.
14235 if test x$gcc_no_link = xyes; then
5213506e 14236 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ade710a5 14237fi
5213506e 14238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
02809848 14239/* end confdefs.h. */
02809848
PB
14240
14241int
14242main ()
14243{
1cf3d07d 14244
02809848
PB
14245 ;
14246 return 0;
14247}
14248_ACEOF
5213506e 14249if ac_fn_cxx_try_link "$LINENO"; then :
1cf3d07d
SE
14250
14251lt_aix_libpath_sed='
14252 /Import File Strings/,/^$/ {
14253 /^0/ {
14254 s/^0 *\(.*\)$/\1/
14255 p
14256 }
14257 }'
14258aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14259# Check for a 64-bit object if we didn't find anything.
14260if test -z "$aix_libpath"; then
14261 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14262fi
02809848 14263fi
5213506e
RW
14264rm -f core conftest.err conftest.$ac_objext \
14265 conftest$ac_exeext conftest.$ac_ext
1cf3d07d 14266if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
ed698112 14267
1cf3d07d 14268 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
5aac1dac 14269
43e02a8a 14270 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1cf3d07d
SE
14271 else
14272 if test "$host_cpu" = ia64; then
14273 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14274 allow_undefined_flag_CXX="-z nodefs"
14275 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"
14276 else
14277 # Determine the default libpath from the value encoded in an
14278 # empty executable.
14279 if test x$gcc_no_link = xyes; then
5213506e 14280 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5aac1dac 14281fi
5213506e 14282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 14283/* end confdefs.h. */
ee9dd372 14284
ed698112
NN
14285int
14286main ()
14287{
1cf3d07d 14288
ed698112
NN
14289 ;
14290 return 0;
14291}
14292_ACEOF
5213506e 14293if ac_fn_cxx_try_link "$LINENO"; then :
1cf3d07d
SE
14294
14295lt_aix_libpath_sed='
14296 /Import File Strings/,/^$/ {
14297 /^0/ {
14298 s/^0 *\(.*\)$/\1/
14299 p
14300 }
14301 }'
14302aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14303# Check for a 64-bit object if we didn't find anything.
14304if test -z "$aix_libpath"; then
14305 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14306fi
ed698112 14307fi
5213506e
RW
14308rm -f core conftest.err conftest.$ac_objext \
14309 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
14310if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14311
14312 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14313 # Warning - without using the other run time loading flags,
14314 # -berok will link without error, but may produce a broken library.
14315 no_undefined_flag_CXX=' ${wl}-bernotok'
14316 allow_undefined_flag_CXX=' ${wl}-berok'
43e02a8a
RW
14317 if test "$with_gnu_ld" = yes; then
14318 # We only use this code for GNU lds that support --whole-archive.
14319 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14320 else
14321 # Exported symbols can be pulled into shared objects from archives
14322 whole_archive_flag_spec_CXX='$convenience'
14323 fi
1cf3d07d
SE
14324 archive_cmds_need_lc_CXX=yes
14325 # This is similar to how AIX traditionally builds its shared
14326 # libraries.
14327 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'
14328 fi
14329 fi
14330 ;;
ed698112 14331
1cf3d07d
SE
14332 beos*)
14333 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14334 allow_undefined_flag_CXX=unsupported
14335 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14336 # support --undefined. This deserves some investigation. FIXME
14337 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14338 else
14339 ld_shlibs_CXX=no
14340 fi
14341 ;;
ed698112 14342
1cf3d07d
SE
14343 chorus*)
14344 case $cc_basename in
14345 *)
14346 # FIXME: insert proper C++ library support
14347 ld_shlibs_CXX=no
14348 ;;
14349 esac
14350 ;;
5aac1dac 14351
0da7a284 14352 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
14353 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14354 # as there is no search path for DLLs.
14355 hardcode_libdir_flag_spec_CXX='-L$libdir'
43e02a8a 14356 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
1cf3d07d
SE
14357 allow_undefined_flag_CXX=unsupported
14358 always_export_symbols_CXX=no
14359 enable_shared_with_static_runtimes_CXX=yes
14360
14361 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14362 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'
14363 # If the export-symbols file already is a .def file (1st line
14364 # is EXPORTS), use it as is; otherwise, prepend...
14365 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14366 cp $export_symbols $output_objdir/$soname.def;
14367 else
14368 echo EXPORTS > $output_objdir/$soname.def;
14369 cat $export_symbols >> $output_objdir/$soname.def;
14370 fi~
14371 $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'
14372 else
14373 ld_shlibs_CXX=no
14374 fi
14375 ;;
14376 darwin* | rhapsody*)
1cf3d07d 14377
ed698112 14378
0da7a284
PG
14379 archive_cmds_need_lc_CXX=no
14380 hardcode_direct_CXX=no
14381 hardcode_automatic_CXX=yes
14382 hardcode_shlibpath_var_CXX=unsupported
43e02a8a
RW
14383 if test "$lt_cv_ld_force_load" = "yes"; then
14384 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14385 else
14386 whole_archive_flag_spec_CXX=''
14387 fi
0da7a284
PG
14388 link_all_deplibs_CXX=yes
14389 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14390 case $cc_basename in
14391 ifort*) _lt_dar_can_shared=yes ;;
14392 *) _lt_dar_can_shared=$GCC ;;
14393 esac
14394 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 14395 output_verbose_link_cmd=func_echo_all
0da7a284
PG
14396 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}"
14397 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14398 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}"
14399 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}"
14400 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14401 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}"
14402 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}"
14403 fi
14404
14405 else
14406 ld_shlibs_CXX=no
14407 fi
14408
1cf3d07d 14409 ;;
ed698112 14410
1cf3d07d
SE
14411 dgux*)
14412 case $cc_basename in
14413 ec++*)
14414 # FIXME: insert proper C++ library support
14415 ld_shlibs_CXX=no
14416 ;;
14417 ghcx*)
14418 # Green Hills C++ Compiler
14419 # FIXME: insert proper C++ library support
14420 ld_shlibs_CXX=no
14421 ;;
14422 *)
14423 # FIXME: insert proper C++ library support
14424 ld_shlibs_CXX=no
14425 ;;
14426 esac
14427 ;;
ed698112 14428
c6084f68 14429 freebsd2.*)
1cf3d07d
SE
14430 # C++ shared libraries reported to be fairly broken before
14431 # switch to ELF
14432 ld_shlibs_CXX=no
14433 ;;
5aac1dac 14434
1cf3d07d
SE
14435 freebsd-elf*)
14436 archive_cmds_need_lc_CXX=no
14437 ;;
ee9dd372 14438
1cf3d07d
SE
14439 freebsd* | dragonfly*)
14440 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14441 # conventions
14442 ld_shlibs_CXX=yes
14443 ;;
ee9dd372 14444
1cf3d07d
SE
14445 gnu*)
14446 ;;
ed698112 14447
43e02a8a
RW
14448 haiku*)
14449 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14450 link_all_deplibs_CXX=yes
14451 ;;
14452
1cf3d07d
SE
14453 hpux9*)
14454 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14455 hardcode_libdir_separator_CXX=:
14456 export_dynamic_flag_spec_CXX='${wl}-E'
14457 hardcode_direct_CXX=yes
14458 hardcode_minus_L_CXX=yes # Not in the search PATH,
14459 # but as the default
14460 # location of the library.
14461
14462 case $cc_basename in
14463 CC*)
14464 # FIXME: insert proper C++ library support
14465 ld_shlibs_CXX=no
14466 ;;
14467 aCC*)
14468 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'
14469 # Commands to make compiler produce verbose output that lists
14470 # what "hidden" libraries, object files and flags are used when
14471 # linking a shared library.
14472 #
14473 # There doesn't appear to be a way to prevent this compiler from
14474 # explicitly linking system object files so we need to strip them
14475 # from the output so that they don't get included in the library
14476 # dependencies.
43e02a8a 14477 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
1cf3d07d
SE
14478 ;;
14479 *)
14480 if test "$GXX" = yes; then
14481 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'
14482 else
14483 # FIXME: insert proper C++ library support
14484 ld_shlibs_CXX=no
14485 fi
14486 ;;
14487 esac
14488 ;;
ed698112 14489
1cf3d07d
SE
14490 hpux10*|hpux11*)
14491 if test $with_gnu_ld = no; then
14492 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14493 hardcode_libdir_separator_CXX=:
14494
14495 case $host_cpu in
14496 hppa*64*|ia64*)
14497 ;;
14498 *)
14499 export_dynamic_flag_spec_CXX='${wl}-E'
14500 ;;
14501 esac
14502 fi
14503 case $host_cpu in
14504 hppa*64*|ia64*)
14505 hardcode_direct_CXX=no
14506 hardcode_shlibpath_var_CXX=no
14507 ;;
14508 *)
14509 hardcode_direct_CXX=yes
14510 hardcode_direct_absolute_CXX=yes
14511 hardcode_minus_L_CXX=yes # Not in the search PATH,
14512 # but as the default
14513 # location of the library.
14514 ;;
14515 esac
14516
14517 case $cc_basename in
14518 CC*)
14519 # FIXME: insert proper C++ library support
14520 ld_shlibs_CXX=no
14521 ;;
14522 aCC*)
14523 case $host_cpu in
14524 hppa*64*)
14525 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14526 ;;
14527 ia64*)
14528 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14529 ;;
14530 *)
14531 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14532 ;;
14533 esac
14534 # Commands to make compiler produce verbose output that lists
14535 # what "hidden" libraries, object files and flags are used when
14536 # linking a shared library.
14537 #
14538 # There doesn't appear to be a way to prevent this compiler from
14539 # explicitly linking system object files so we need to strip them
14540 # from the output so that they don't get included in the library
14541 # dependencies.
43e02a8a 14542 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
1cf3d07d
SE
14543 ;;
14544 *)
14545 if test "$GXX" = yes; then
14546 if test $with_gnu_ld = no; then
14547 case $host_cpu in
14548 hppa*64*)
14549 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14550 ;;
14551 ia64*)
14552 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14553 ;;
14554 *)
14555 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'
14556 ;;
14557 esac
14558 fi
14559 else
14560 # FIXME: insert proper C++ library support
14561 ld_shlibs_CXX=no
14562 fi
14563 ;;
14564 esac
14565 ;;
ed698112 14566
1cf3d07d
SE
14567 interix[3-9]*)
14568 hardcode_direct_CXX=no
14569 hardcode_shlibpath_var_CXX=no
14570 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14571 export_dynamic_flag_spec_CXX='${wl}-E'
14572 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14573 # Instead, shared libraries are loaded at an image base (0x10000000 by
14574 # default) and relocated if they conflict, which is a slow very memory
14575 # consuming and fragmenting process. To avoid this, we pick a random,
14576 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14577 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14578 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'
14579 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'
14580 ;;
14581 irix5* | irix6*)
14582 case $cc_basename in
14583 CC*)
14584 # SGI C++
43e02a8a 14585 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
14586
14587 # Archives containing C++ object files must be created using
14588 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14589 # necessary to make sure instantiated templates are included
14590 # in the archive.
14591 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14592 ;;
14593 *)
14594 if test "$GXX" = yes; then
14595 if test "$with_gnu_ld" = no; then
43e02a8a 14596 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d 14597 else
43e02a8a 14598 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
1cf3d07d
SE
14599 fi
14600 fi
14601 link_all_deplibs_CXX=yes
14602 ;;
14603 esac
14604 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14605 hardcode_libdir_separator_CXX=:
14606 inherit_rpath_CXX=yes
14607 ;;
ed698112 14608
7a9d3fe8 14609 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
14610 case $cc_basename in
14611 KCC*)
14612 # Kuck and Associates, Inc. (KAI) C++ Compiler
14613
14614 # KCC will only create a shared library if the output file
14615 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14616 # to its proper name (with version) after linking.
14617 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'
14618 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'
14619 # Commands to make compiler produce verbose output that lists
14620 # what "hidden" libraries, object files and flags are used when
14621 # linking a shared library.
14622 #
14623 # There doesn't appear to be a way to prevent this compiler from
14624 # explicitly linking system object files so we need to strip them
14625 # from the output so that they don't get included in the library
14626 # dependencies.
43e02a8a 14627 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
1cf3d07d
SE
14628
14629 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14630 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14631
14632 # Archives containing C++ object files must be created using
14633 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14634 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14635 ;;
14636 icpc* | ecpc* )
14637 # Intel C++
14638 with_gnu_ld=yes
14639 # version 8.0 and above of icpc choke on multiply defined symbols
14640 # if we add $predep_objects and $postdep_objects, however 7.1 and
14641 # earlier do not add the objects themselves.
14642 case `$CC -V 2>&1` in
14643 *"Version 7."*)
14644 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14645 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'
14646 ;;
14647 *) # Version 8.0 or newer
14648 tmp_idyn=
14649 case $host_cpu in
14650 ia64*) tmp_idyn=' -i_dynamic';;
14651 esac
14652 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14653 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'
14654 ;;
14655 esac
14656 archive_cmds_need_lc_CXX=no
14657 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14658 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14659 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14660 ;;
0da7a284 14661 pgCC* | pgcpp*)
1cf3d07d
SE
14662 # Portland Group C++ compiler
14663 case `$CC -V` in
43e02a8a 14664 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
1cf3d07d
SE
14665 prelink_cmds_CXX='tpldir=Template.dir~
14666 rm -rf $tpldir~
14667 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14668 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14669 old_archive_cmds_CXX='tpldir=Template.dir~
14670 rm -rf $tpldir~
14671 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14672 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14673 $RANLIB $oldlib'
14674 archive_cmds_CXX='tpldir=Template.dir~
14675 rm -rf $tpldir~
14676 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14677 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14678 archive_expsym_cmds_CXX='tpldir=Template.dir~
14679 rm -rf $tpldir~
14680 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14681 $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'
14682 ;;
43e02a8a 14683 *) # Version 6 and above use weak symbols
1cf3d07d
SE
14684 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14685 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'
14686 ;;
14687 esac
5aac1dac 14688
1cf3d07d
SE
14689 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14690 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
43e02a8a 14691 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
14692 ;;
14693 cxx*)
14694 # Compaq C++
14695 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14696 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'
14697
14698 runpath_var=LD_RUN_PATH
14699 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14700 hardcode_libdir_separator_CXX=:
14701
14702 # Commands to make compiler produce verbose output that lists
14703 # what "hidden" libraries, object files and flags are used when
14704 # linking a shared library.
14705 #
14706 # There doesn't appear to be a way to prevent this compiler from
14707 # explicitly linking system object files so we need to strip them
14708 # from the output so that they don't get included in the library
14709 # dependencies.
43e02a8a 14710 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
1cf3d07d 14711 ;;
43e02a8a 14712 xl* | mpixl* | bgxl*)
0da7a284
PG
14713 # IBM XL 8.0 on PPC, with GNU ld
14714 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14715 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14716 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14717 if test "x$supports_anon_versioning" = xyes; then
14718 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14719 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14720 echo "local: *; };" >> $output_objdir/$libname.ver~
14721 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14722 fi
14723 ;;
1cf3d07d
SE
14724 *)
14725 case `$CC -V 2>&1 | sed 5q` in
14726 *Sun\ C*)
14727 # Sun C++ 5.9
14728 no_undefined_flag_CXX=' -zdefs'
14729 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14730 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'
14731 hardcode_libdir_flag_spec_CXX='-R$libdir'
43e02a8a 14732 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
14733 compiler_needs_object_CXX=yes
14734
14735 # Not sure whether something based on
14736 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14737 # would be better.
43e02a8a 14738 output_verbose_link_cmd='func_echo_all'
1cf3d07d
SE
14739
14740 # Archives containing C++ object files must be created using
14741 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14742 # necessary to make sure instantiated templates are included
14743 # in the archive.
14744 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14745 ;;
14746 esac
14747 ;;
14748 esac
14749 ;;
5aac1dac 14750
1cf3d07d
SE
14751 lynxos*)
14752 # FIXME: insert proper C++ library support
14753 ld_shlibs_CXX=no
14754 ;;
ed698112 14755
1cf3d07d
SE
14756 m88k*)
14757 # FIXME: insert proper C++ library support
14758 ld_shlibs_CXX=no
14759 ;;
5aac1dac 14760
1cf3d07d
SE
14761 mvs*)
14762 case $cc_basename in
14763 cxx*)
14764 # FIXME: insert proper C++ library support
14765 ld_shlibs_CXX=no
14766 ;;
14767 *)
14768 # FIXME: insert proper C++ library support
14769 ld_shlibs_CXX=no
14770 ;;
14771 esac
14772 ;;
14773
14774 netbsd*)
14775 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14776 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14777 wlarc=
14778 hardcode_libdir_flag_spec_CXX='-R$libdir'
14779 hardcode_direct_CXX=yes
14780 hardcode_shlibpath_var_CXX=no
5aac1dac 14781 fi
1cf3d07d
SE
14782 # Workaround some broken pre-1.5 toolchains
14783 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14784 ;;
ee9dd372 14785
1cf3d07d
SE
14786 *nto* | *qnx*)
14787 ld_shlibs_CXX=yes
14788 ;;
ee9dd372 14789
1cf3d07d
SE
14790 openbsd2*)
14791 # C++ shared libraries are fairly broken
14792 ld_shlibs_CXX=no
14793 ;;
ed698112 14794
1cf3d07d 14795 openbsd*)
0da7a284
PG
14796 if test -f /usr/libexec/ld.so; then
14797 hardcode_direct_CXX=yes
14798 hardcode_shlibpath_var_CXX=no
14799 hardcode_direct_absolute_CXX=yes
14800 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14801 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14802 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14803 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14804 export_dynamic_flag_spec_CXX='${wl}-E'
14805 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14806 fi
43e02a8a 14807 output_verbose_link_cmd=func_echo_all
0da7a284
PG
14808 else
14809 ld_shlibs_CXX=no
1cf3d07d 14810 fi
1cf3d07d 14811 ;;
ed698112 14812
1cf3d07d
SE
14813 osf3* | osf4* | osf5*)
14814 case $cc_basename in
14815 KCC*)
14816 # Kuck and Associates, Inc. (KAI) C++ Compiler
5aac1dac 14817
1cf3d07d
SE
14818 # KCC will only create a shared library if the output file
14819 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14820 # to its proper name (with version) after linking.
14821 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'
ed698112 14822
1cf3d07d
SE
14823 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14824 hardcode_libdir_separator_CXX=:
ee9dd372 14825
1cf3d07d
SE
14826 # Archives containing C++ object files must be created using
14827 # the KAI C++ compiler.
14828 case $host in
14829 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14830 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14831 esac
14832 ;;
14833 RCC*)
14834 # Rational C++ 2.4.1
14835 # FIXME: insert proper C++ library support
14836 ld_shlibs_CXX=no
14837 ;;
14838 cxx*)
14839 case $host in
14840 osf3*)
14841 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 14842 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
14843 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14844 ;;
14845 *)
14846 allow_undefined_flag_CXX=' -expect_unresolved \*'
43e02a8a 14847 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
14848 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14849 echo "-hidden">> $lib.exp~
43e02a8a 14850 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
1cf3d07d
SE
14851 $RM $lib.exp'
14852 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14853 ;;
14854 esac
ee9dd372 14855
1cf3d07d
SE
14856 hardcode_libdir_separator_CXX=:
14857
14858 # Commands to make compiler produce verbose output that lists
14859 # what "hidden" libraries, object files and flags are used when
14860 # linking a shared library.
14861 #
14862 # There doesn't appear to be a way to prevent this compiler from
14863 # explicitly linking system object files so we need to strip them
14864 # from the output so that they don't get included in the library
14865 # dependencies.
43e02a8a 14866 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
1cf3d07d
SE
14867 ;;
14868 *)
14869 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14870 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14871 case $host in
14872 osf3*)
43e02a8a 14873 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
14874 ;;
14875 *)
43e02a8a 14876 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
14877 ;;
14878 esac
14879
14880 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14881 hardcode_libdir_separator_CXX=:
14882
14883 # Commands to make compiler produce verbose output that lists
14884 # what "hidden" libraries, object files and flags are used when
14885 # linking a shared library.
43e02a8a 14886 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
1cf3d07d
SE
14887
14888 else
14889 # FIXME: insert proper C++ library support
14890 ld_shlibs_CXX=no
14891 fi
14892 ;;
14893 esac
14894 ;;
ed698112 14895
1cf3d07d
SE
14896 psos*)
14897 # FIXME: insert proper C++ library support
14898 ld_shlibs_CXX=no
14899 ;;
ed698112 14900
1cf3d07d
SE
14901 sunos4*)
14902 case $cc_basename in
14903 CC*)
14904 # Sun C++ 4.x
14905 # FIXME: insert proper C++ library support
14906 ld_shlibs_CXX=no
14907 ;;
14908 lcc*)
14909 # Lucid
14910 # FIXME: insert proper C++ library support
14911 ld_shlibs_CXX=no
14912 ;;
14913 *)
14914 # FIXME: insert proper C++ library support
14915 ld_shlibs_CXX=no
14916 ;;
14917 esac
14918 ;;
ed698112 14919
1cf3d07d
SE
14920 solaris*)
14921 case $cc_basename in
14922 CC*)
14923 # Sun C++ 4.2, 5.x and Centerline C++
14924 archive_cmds_need_lc_CXX=yes
14925 no_undefined_flag_CXX=' -zdefs'
14926 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14927 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14928 $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'
14929
14930 hardcode_libdir_flag_spec_CXX='-R$libdir'
14931 hardcode_shlibpath_var_CXX=no
14932 case $host_os in
14933 solaris2.[0-5] | solaris2.[0-5].*) ;;
14934 *)
14935 # The compiler driver will combine and reorder linker options,
14936 # but understands `-z linker_flag'.
14937 # Supported since Solaris 2.6 (maybe 2.5.1?)
14938 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14939 ;;
14940 esac
14941 link_all_deplibs_CXX=yes
ed698112 14942
43e02a8a 14943 output_verbose_link_cmd='func_echo_all'
ee9dd372 14944
1cf3d07d
SE
14945 # Archives containing C++ object files must be created using
14946 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14947 # necessary to make sure instantiated templates are included
14948 # in the archive.
14949 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14950 ;;
14951 gcx*)
14952 # Green Hills C++ Compiler
14953 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
ee9dd372 14954
1cf3d07d
SE
14955 # The C++ compiler must be used to create the archive.
14956 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14957 ;;
14958 *)
14959 # GNU C++ compiler with Solaris linker
14960 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14961 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14962 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14963 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14964 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14965 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14966
14967 # Commands to make compiler produce verbose output that lists
14968 # what "hidden" libraries, object files and flags are used when
14969 # linking a shared library.
43e02a8a 14970 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
1cf3d07d
SE
14971 else
14972 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14973 # platform.
14974 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14975 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14976 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14977
14978 # Commands to make compiler produce verbose output that lists
14979 # what "hidden" libraries, object files and flags are used when
14980 # linking a shared library.
43e02a8a 14981 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
1cf3d07d
SE
14982 fi
14983
14984 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14985 case $host_os in
14986 solaris2.[0-5] | solaris2.[0-5].*) ;;
14987 *)
14988 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14989 ;;
14990 esac
14991 fi
14992 ;;
14993 esac
14994 ;;
ed698112 14995
1cf3d07d
SE
14996 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14997 no_undefined_flag_CXX='${wl}-z,text'
14998 archive_cmds_need_lc_CXX=no
14999 hardcode_shlibpath_var_CXX=no
15000 runpath_var='LD_RUN_PATH'
15001
15002 case $cc_basename in
15003 CC*)
15004 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15005 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15006 ;;
15007 *)
15008 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15009 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15010 ;;
15011 esac
15012 ;;
ee9dd372 15013
1cf3d07d
SE
15014 sysv5* | sco3.2v5* | sco5v6*)
15015 # Note: We can NOT use -z defs as we might desire, because we do not
15016 # link with -lc, and that would cause any symbols used from libc to
15017 # always be unresolved, which means just about no library would
15018 # ever link correctly. If we're not using GNU ld we use -z text
15019 # though, which does catch some bad symbols but isn't as heavy-handed
15020 # as -z defs.
15021 no_undefined_flag_CXX='${wl}-z,text'
15022 allow_undefined_flag_CXX='${wl}-z,nodefs'
15023 archive_cmds_need_lc_CXX=no
15024 hardcode_shlibpath_var_CXX=no
15025 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15026 hardcode_libdir_separator_CXX=':'
15027 link_all_deplibs_CXX=yes
15028 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15029 runpath_var='LD_RUN_PATH'
15030
15031 case $cc_basename in
15032 CC*)
15033 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15034 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
43e02a8a
RW
15035 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15036 '"$old_archive_cmds_CXX"
15037 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15038 '"$reload_cmds_CXX"
1cf3d07d
SE
15039 ;;
15040 *)
15041 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15042 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15043 ;;
15044 esac
15045 ;;
15046
15047 tandem*)
15048 case $cc_basename in
15049 NCC*)
15050 # NonStop-UX NCC 3.20
15051 # FIXME: insert proper C++ library support
15052 ld_shlibs_CXX=no
15053 ;;
15054 *)
15055 # FIXME: insert proper C++ library support
15056 ld_shlibs_CXX=no
15057 ;;
15058 esac
15059 ;;
15060
15061 vxworks*)
15062 # FIXME: insert proper C++ library support
15063 ld_shlibs_CXX=no
15064 ;;
15065
15066 *)
15067 # FIXME: insert proper C++ library support
15068 ld_shlibs_CXX=no
15069 ;;
15070 esac
15071
5213506e
RW
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15073$as_echo "$ld_shlibs_CXX" >&6; }
1cf3d07d
SE
15074 test "$ld_shlibs_CXX" = no && can_build_shared=no
15075
15076 GCC_CXX="$GXX"
15077 LD_CXX="$LD"
15078
15079 ## CAVEAT EMPTOR:
15080 ## There is no encapsulation within the following macros, do not change
15081 ## the running order or otherwise move them around unless you know exactly
15082 ## what you are doing...
15083 # Dependencies to place before and after the object being linked:
15084predep_objects_CXX=
15085postdep_objects_CXX=
15086predeps_CXX=
15087postdeps_CXX=
15088compiler_lib_search_path_CXX=
15089
15090cat > conftest.$ac_ext <<_LT_EOF
15091class Foo
ed698112 15092{
1cf3d07d
SE
15093public:
15094 Foo (void) { a = 0; }
15095private:
15096 int a;
15097};
15098_LT_EOF
15099
5213506e 15100if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d 15101 (eval $ac_compile) 2>&5
ed698112 15102 ac_status=$?
5213506e
RW
15103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15104 test $ac_status = 0; }; then
1cf3d07d
SE
15105 # Parse the compiler output and extract the necessary
15106 # objects, libraries and library flags.
15107
15108 # Sentinel used to keep track of whether or not we are before
15109 # the conftest object file.
15110 pre_test_object_deps_done=no
15111
0da7a284 15112 for p in `eval "$output_verbose_link_cmd"`; do
1cf3d07d
SE
15113 case $p in
15114
15115 -L* | -R* | -l*)
15116 # Some compilers place space between "-{L,R}" and the path.
15117 # Remove the space.
15118 if test $p = "-L" ||
15119 test $p = "-R"; then
15120 prev=$p
15121 continue
15122 else
15123 prev=
15124 fi
15125
15126 if test "$pre_test_object_deps_done" = no; then
15127 case $p in
15128 -L* | -R*)
15129 # Internal compiler library paths should come after those
15130 # provided the user. The postdeps already come after the
15131 # user supplied libs so there is no need to process them.
15132 if test -z "$compiler_lib_search_path_CXX"; then
15133 compiler_lib_search_path_CXX="${prev}${p}"
15134 else
15135 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15136 fi
15137 ;;
15138 # The "-l" case would never come before the object being
15139 # linked, so don't bother handling this case.
15140 esac
15141 else
15142 if test -z "$postdeps_CXX"; then
15143 postdeps_CXX="${prev}${p}"
15144 else
15145 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15146 fi
15147 fi
15148 ;;
ed698112 15149
1cf3d07d
SE
15150 *.$objext)
15151 # This assumes that the test object file only shows up
15152 # once in the compiler output.
15153 if test "$p" = "conftest.$objext"; then
15154 pre_test_object_deps_done=yes
15155 continue
15156 fi
15157
15158 if test "$pre_test_object_deps_done" = no; then
15159 if test -z "$predep_objects_CXX"; then
15160 predep_objects_CXX="$p"
15161 else
15162 predep_objects_CXX="$predep_objects_CXX $p"
15163 fi
15164 else
15165 if test -z "$postdep_objects_CXX"; then
15166 postdep_objects_CXX="$p"
15167 else
15168 postdep_objects_CXX="$postdep_objects_CXX $p"
15169 fi
15170 fi
15171 ;;
ed698112 15172
1cf3d07d 15173 *) ;; # Ignore the rest.
ed698112 15174
1cf3d07d
SE
15175 esac
15176 done
ee9dd372 15177
1cf3d07d
SE
15178 # Clean up.
15179 rm -f a.out a.exe
15180else
15181 echo "libtool.m4: error: problem compiling CXX test program"
15182fi
ed698112 15183
1cf3d07d 15184$RM -f confest.$objext
ed698112 15185
1cf3d07d
SE
15186# PORTME: override above test on systems where it is broken
15187case $host_os in
15188interix[3-9]*)
15189 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15190 # hack all around it, let's just trust "g++" to DTRT.
15191 predep_objects_CXX=
15192 postdep_objects_CXX=
15193 postdeps_CXX=
15194 ;;
8107bcf9 15195
1cf3d07d
SE
15196linux*)
15197 case `$CC -V 2>&1 | sed 5q` in
15198 *Sun\ C*)
15199 # Sun C++ 5.9
15200
15201 # The more standards-conforming stlport4 library is
15202 # incompatible with the Cstd library. Avoid specifying
15203 # it if it's in CXXFLAGS. Ignore libCrun as
15204 # -library=stlport4 depends on it.
15205 case " $CXX $CXXFLAGS " in
15206 *" -library=stlport4 "*)
15207 solaris_use_stlport4=yes
15208 ;;
15209 esac
5aac1dac 15210
1cf3d07d
SE
15211 if test "$solaris_use_stlport4" != yes; then
15212 postdeps_CXX='-library=Cstd -library=Crun'
15213 fi
15214 ;;
15215 esac
15216 ;;
8107bcf9 15217
1cf3d07d
SE
15218solaris*)
15219 case $cc_basename in
15220 CC*)
15221 # The more standards-conforming stlport4 library is
15222 # incompatible with the Cstd library. Avoid specifying
15223 # it if it's in CXXFLAGS. Ignore libCrun as
15224 # -library=stlport4 depends on it.
15225 case " $CXX $CXXFLAGS " in
15226 *" -library=stlport4 "*)
15227 solaris_use_stlport4=yes
15228 ;;
15229 esac
8107bcf9 15230
1cf3d07d
SE
15231 # Adding this requires a known-good setup of shared libraries for
15232 # Sun compiler versions before 5.6, else PIC objects from an old
15233 # archive will be linked into the output, leading to subtle bugs.
15234 if test "$solaris_use_stlport4" != yes; then
15235 postdeps_CXX='-library=Cstd -library=Crun'
15236 fi
15237 ;;
15238 esac
15239 ;;
15240esac
f994389b 15241
ed698112 15242
1cf3d07d
SE
15243case " $postdeps_CXX " in
15244*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15245esac
0da7a284
PG
15246 compiler_lib_search_dirs_CXX=
15247if test -n "${compiler_lib_search_path_CXX}"; then
15248 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15249fi
15250
15251
15252
15253
15254
ed698112 15255
ed698112 15256
f994389b 15257
f994389b 15258
f994389b 15259
ed698112 15260
ed698112
NN
15261
15262
ed698112 15263
ed698112 15264
ed698112
NN
15265
15266
5aac1dac 15267
f994389b 15268
6b3517ea
RO
15269
15270
ed698112 15271
ed698112 15272
6b3517ea 15273
6b3517ea 15274
ed698112 15275
6b3517ea 15276
ed698112 15277
ed698112 15278
ed698112 15279
ed698112 15280
1cf3d07d
SE
15281 lt_prog_compiler_wl_CXX=
15282lt_prog_compiler_pic_CXX=
15283lt_prog_compiler_static_CXX=
ed698112 15284
5213506e
RW
15285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15286$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6b3517ea 15287
1cf3d07d
SE
15288 # C++ specific cases for pic, static, wl, etc.
15289 if test "$GXX" = yes; then
15290 lt_prog_compiler_wl_CXX='-Wl,'
15291 lt_prog_compiler_static_CXX='-static'
6b3517ea 15292
1cf3d07d
SE
15293 case $host_os in
15294 aix*)
15295 # All AIX code is PIC.
15296 if test "$host_cpu" = ia64; then
15297 # AIX 5 now supports IA64 processor
15298 lt_prog_compiler_static_CXX='-Bstatic'
15299 fi
47c2a6e6 15300 lt_prog_compiler_pic_CXX='-fPIC'
1cf3d07d 15301 ;;
0da7a284 15302
1cf3d07d 15303 amigaos*)
0da7a284
PG
15304 case $host_cpu in
15305 powerpc)
15306 # see comment about AmigaOS4 .so support
15307 lt_prog_compiler_pic_CXX='-fPIC'
15308 ;;
15309 m68k)
15310 # FIXME: we need at least 68020 code to build shared libraries, but
15311 # adding the `-m68020' flag to GCC prevents building anything better,
15312 # like `-m68040'.
15313 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15314 ;;
15315 esac
1cf3d07d 15316 ;;
0da7a284 15317
1cf3d07d
SE
15318 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15319 # PIC is the default for these OSes.
15320 ;;
0da7a284 15321 mingw* | cygwin* | os2* | pw32* | cegcc*)
1cf3d07d
SE
15322 # This hack is so that the source file can tell whether it is being
15323 # built for inclusion in a dll (and should export symbols for example).
15324 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15325 # (--disable-auto-import) libraries
15326 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15327 ;;
15328 darwin* | rhapsody*)
15329 # PIC is the default on this platform
15330 # Common symbols not allowed in MH_DYLIB files
15331 lt_prog_compiler_pic_CXX='-fno-common'
15332 ;;
15333 *djgpp*)
15334 # DJGPP does not support shared libraries at all
15335 lt_prog_compiler_pic_CXX=
15336 ;;
43e02a8a
RW
15337 haiku*)
15338 # PIC is the default for Haiku.
15339 # The "-static" flag exists, but is broken.
15340 lt_prog_compiler_static_CXX=
15341 ;;
1cf3d07d
SE
15342 interix[3-9]*)
15343 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15344 # Instead, we relocate shared libraries at runtime.
15345 ;;
15346 sysv4*MP*)
15347 if test -d /usr/nec; then
15348 lt_prog_compiler_pic_CXX=-Kconform_pic
15349 fi
15350 ;;
15351 hpux*)
0da7a284
PG
15352 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15353 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15354 # sets the default TLS model and affects inlining.
1cf3d07d 15355 case $host_cpu in
0da7a284 15356 hppa*64*)
1cf3d07d
SE
15357 ;;
15358 *)
15359 lt_prog_compiler_pic_CXX='-fPIC'
15360 ;;
15361 esac
15362 ;;
15363 *qnx* | *nto*)
15364 # QNX uses GNU C++, but need to define -shared option too, otherwise
15365 # it will coredump.
15366 lt_prog_compiler_pic_CXX='-fPIC -shared'
15367 ;;
15368 *)
15369 lt_prog_compiler_pic_CXX='-fPIC'
15370 ;;
15371 esac
15372 else
15373 case $host_os in
ed44a2c7 15374 aix[4-9]*)
1cf3d07d
SE
15375 # All AIX code is PIC.
15376 if test "$host_cpu" = ia64; then
15377 # AIX 5 now supports IA64 processor
15378 lt_prog_compiler_static_CXX='-Bstatic'
15379 else
15380 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15381 fi
15382 ;;
15383 chorus*)
15384 case $cc_basename in
15385 cxch68*)
15386 # Green Hills C++ Compiler
15387 # _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"
15388 ;;
15389 esac
15390 ;;
1cf3d07d
SE
15391 dgux*)
15392 case $cc_basename in
15393 ec++*)
15394 lt_prog_compiler_pic_CXX='-KPIC'
15395 ;;
15396 ghcx*)
15397 # Green Hills C++ Compiler
15398 lt_prog_compiler_pic_CXX='-pic'
15399 ;;
15400 *)
15401 ;;
15402 esac
15403 ;;
15404 freebsd* | dragonfly*)
15405 # FreeBSD uses GNU C++
15406 ;;
15407 hpux9* | hpux10* | hpux11*)
15408 case $cc_basename in
15409 CC*)
15410 lt_prog_compiler_wl_CXX='-Wl,'
15411 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15412 if test "$host_cpu" != ia64; then
15413 lt_prog_compiler_pic_CXX='+Z'
15414 fi
15415 ;;
15416 aCC*)
15417 lt_prog_compiler_wl_CXX='-Wl,'
15418 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15419 case $host_cpu in
15420 hppa*64*|ia64*)
15421 # +Z the default
15422 ;;
15423 *)
15424 lt_prog_compiler_pic_CXX='+Z'
15425 ;;
15426 esac
15427 ;;
15428 *)
15429 ;;
15430 esac
15431 ;;
15432 interix*)
15433 # This is c89, which is MS Visual C++ (no shared libs)
15434 # Anyone wants to do a port?
15435 ;;
15436 irix5* | irix6* | nonstopux*)
15437 case $cc_basename in
15438 CC*)
15439 lt_prog_compiler_wl_CXX='-Wl,'
15440 lt_prog_compiler_static_CXX='-non_shared'
15441 # CC pic flag -KPIC is the default.
15442 ;;
15443 *)
15444 ;;
15445 esac
15446 ;;
7a9d3fe8 15447 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
15448 case $cc_basename in
15449 KCC*)
15450 # KAI C++ Compiler
15451 lt_prog_compiler_wl_CXX='--backend -Wl,'
15452 lt_prog_compiler_pic_CXX='-fPIC'
15453 ;;
0da7a284
PG
15454 ecpc* )
15455 # old Intel C++ for x86_64 which still supported -KPIC.
1cf3d07d
SE
15456 lt_prog_compiler_wl_CXX='-Wl,'
15457 lt_prog_compiler_pic_CXX='-KPIC'
15458 lt_prog_compiler_static_CXX='-static'
15459 ;;
0da7a284
PG
15460 icpc* )
15461 # Intel C++, used to be incompatible with GCC.
15462 # ICC 10 doesn't accept -KPIC any more.
15463 lt_prog_compiler_wl_CXX='-Wl,'
15464 lt_prog_compiler_pic_CXX='-fPIC'
15465 lt_prog_compiler_static_CXX='-static'
15466 ;;
15467 pgCC* | pgcpp*)
1cf3d07d
SE
15468 # Portland Group C++ compiler
15469 lt_prog_compiler_wl_CXX='-Wl,'
15470 lt_prog_compiler_pic_CXX='-fpic'
15471 lt_prog_compiler_static_CXX='-Bstatic'
15472 ;;
15473 cxx*)
15474 # Compaq C++
15475 # Make sure the PIC flag is empty. It appears that all Alpha
15476 # Linux and Compaq Tru64 Unix objects are PIC.
15477 lt_prog_compiler_pic_CXX=
15478 lt_prog_compiler_static_CXX='-non_shared'
15479 ;;
43e02a8a
RW
15480 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15481 # IBM XL 8.0, 9.0 on PPC and BlueGene
0da7a284
PG
15482 lt_prog_compiler_wl_CXX='-Wl,'
15483 lt_prog_compiler_pic_CXX='-qpic'
15484 lt_prog_compiler_static_CXX='-qstaticlink'
15485 ;;
1cf3d07d
SE
15486 *)
15487 case `$CC -V 2>&1 | sed 5q` in
15488 *Sun\ C*)
15489 # Sun C++ 5.9
15490 lt_prog_compiler_pic_CXX='-KPIC'
15491 lt_prog_compiler_static_CXX='-Bstatic'
15492 lt_prog_compiler_wl_CXX='-Qoption ld '
15493 ;;
15494 esac
15495 ;;
15496 esac
15497 ;;
15498 lynxos*)
15499 ;;
15500 m88k*)
15501 ;;
15502 mvs*)
15503 case $cc_basename in
15504 cxx*)
15505 lt_prog_compiler_pic_CXX='-W c,exportall'
15506 ;;
15507 *)
15508 ;;
15509 esac
15510 ;;
15511 netbsd*)
15512 ;;
15513 *qnx* | *nto*)
15514 # QNX uses GNU C++, but need to define -shared option too, otherwise
15515 # it will coredump.
15516 lt_prog_compiler_pic_CXX='-fPIC -shared'
15517 ;;
15518 osf3* | osf4* | osf5*)
15519 case $cc_basename in
15520 KCC*)
15521 lt_prog_compiler_wl_CXX='--backend -Wl,'
15522 ;;
15523 RCC*)
15524 # Rational C++ 2.4.1
15525 lt_prog_compiler_pic_CXX='-pic'
15526 ;;
15527 cxx*)
15528 # Digital/Compaq C++
15529 lt_prog_compiler_wl_CXX='-Wl,'
15530 # Make sure the PIC flag is empty. It appears that all Alpha
15531 # Linux and Compaq Tru64 Unix objects are PIC.
15532 lt_prog_compiler_pic_CXX=
15533 lt_prog_compiler_static_CXX='-non_shared'
15534 ;;
15535 *)
15536 ;;
15537 esac
15538 ;;
15539 psos*)
15540 ;;
15541 solaris*)
15542 case $cc_basename in
15543 CC*)
15544 # Sun C++ 4.2, 5.x and Centerline C++
15545 lt_prog_compiler_pic_CXX='-KPIC'
15546 lt_prog_compiler_static_CXX='-Bstatic'
15547 lt_prog_compiler_wl_CXX='-Qoption ld '
15548 ;;
15549 gcx*)
15550 # Green Hills C++ Compiler
15551 lt_prog_compiler_pic_CXX='-PIC'
15552 ;;
15553 *)
15554 ;;
15555 esac
15556 ;;
15557 sunos4*)
15558 case $cc_basename in
15559 CC*)
15560 # Sun C++ 4.x
15561 lt_prog_compiler_pic_CXX='-pic'
15562 lt_prog_compiler_static_CXX='-Bstatic'
15563 ;;
15564 lcc*)
15565 # Lucid
15566 lt_prog_compiler_pic_CXX='-pic'
15567 ;;
15568 *)
15569 ;;
15570 esac
15571 ;;
15572 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15573 case $cc_basename in
15574 CC*)
15575 lt_prog_compiler_wl_CXX='-Wl,'
15576 lt_prog_compiler_pic_CXX='-KPIC'
15577 lt_prog_compiler_static_CXX='-Bstatic'
15578 ;;
15579 esac
15580 ;;
15581 tandem*)
15582 case $cc_basename in
15583 NCC*)
15584 # NonStop-UX NCC 3.20
15585 lt_prog_compiler_pic_CXX='-KPIC'
15586 ;;
15587 *)
15588 ;;
15589 esac
15590 ;;
15591 vxworks*)
15592 ;;
15593 *)
15594 lt_prog_compiler_can_build_shared_CXX=no
15595 ;;
15596 esac
15597 fi
f994389b 15598
1cf3d07d
SE
15599case $host_os in
15600 # For platforms which do not support PIC, -DPIC is meaningless:
15601 *djgpp*)
15602 lt_prog_compiler_pic_CXX=
15603 ;;
15604 *)
15605 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15606 ;;
15607esac
5213506e
RW
15608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15609$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
5aac1dac 15610
5aac1dac 15611
ed698112 15612
1cf3d07d
SE
15613#
15614# Check to make sure the PIC flag actually works.
15615#
15616if test -n "$lt_prog_compiler_pic_CXX"; then
5213506e
RW
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15618$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15619if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15620 $as_echo_n "(cached) " >&6
ed698112 15621else
0da7a284 15622 lt_cv_prog_compiler_pic_works_CXX=no
1cf3d07d
SE
15623 ac_outfile=conftest.$ac_objext
15624 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15625 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15626 # Insert the option either (1) after the last *FLAGS variable, or
15627 # (2) before a word containing "conftest.", or (3) at the end.
15628 # Note that $ac_compile itself does not contain backslashes and begins
15629 # with a dollar sign (not a hyphen), so the echo should work correctly.
15630 # The option is referenced via a variable to avoid confusing sed.
15631 lt_compile=`echo "$ac_compile" | $SED \
15632 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15633 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15634 -e 's:$: $lt_compiler_flag:'`
43e02a8a 15635 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
15636 (eval "$lt_compile" 2>conftest.err)
15637 ac_status=$?
15638 cat conftest.err >&5
43e02a8a 15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
15640 if (exit $ac_status) && test -s "$ac_outfile"; then
15641 # The compiler can only warn and ignore the option if not recognized
15642 # So say no if there are warnings other than the usual output.
43e02a8a 15643 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
15644 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15645 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
0da7a284 15646 lt_cv_prog_compiler_pic_works_CXX=yes
1cf3d07d
SE
15647 fi
15648 fi
15649 $RM conftest*
15650
ed698112 15651fi
5213506e
RW
15652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15653$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
ed698112 15654
0da7a284 15655if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
1cf3d07d
SE
15656 case $lt_prog_compiler_pic_CXX in
15657 "" | " "*) ;;
15658 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15659 esac
15660else
15661 lt_prog_compiler_pic_CXX=
15662 lt_prog_compiler_can_build_shared_CXX=no
15663fi
ed698112 15664
1cf3d07d 15665fi
f994389b 15666
f994389b 15667
f994389b 15668
1cf3d07d
SE
15669#
15670# Check to make sure the static flag actually works.
15671#
15672wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
5213506e
RW
15673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15674$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15675if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15676 $as_echo_n "(cached) " >&6
ed698112 15677else
0da7a284 15678 lt_cv_prog_compiler_static_works_CXX=no
1cf3d07d
SE
15679 save_LDFLAGS="$LDFLAGS"
15680 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15681 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15682 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15683 # The linker can only warn and ignore the option if not recognized
15684 # So say no if there are warnings
15685 if test -s conftest.err; then
15686 # Append any errors to the config.log.
15687 cat conftest.err 1>&5
43e02a8a 15688 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1cf3d07d
SE
15689 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15690 if diff conftest.exp conftest.er2 >/dev/null; then
0da7a284 15691 lt_cv_prog_compiler_static_works_CXX=yes
1cf3d07d
SE
15692 fi
15693 else
0da7a284 15694 lt_cv_prog_compiler_static_works_CXX=yes
1cf3d07d
SE
15695 fi
15696 fi
0da7a284 15697 $RM -r conftest*
1cf3d07d 15698 LDFLAGS="$save_LDFLAGS"
ed698112 15699
ed698112 15700fi
5213506e
RW
15701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15702$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1cf3d07d 15703
0da7a284 15704if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
1cf3d07d
SE
15705 :
15706else
15707 lt_prog_compiler_static_CXX=
ed698112 15708fi
ed698112 15709
1cf3d07d
SE
15710
15711
15712
5213506e
RW
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15714$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15715if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15716 $as_echo_n "(cached) " >&6
ed698112 15717else
1cf3d07d
SE
15718 lt_cv_prog_compiler_c_o_CXX=no
15719 $RM -r conftest 2>/dev/null
15720 mkdir conftest
15721 cd conftest
15722 mkdir out
15723 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15724
15725 lt_compiler_flag="-o out/conftest2.$ac_objext"
15726 # Insert the option either (1) after the last *FLAGS variable, or
15727 # (2) before a word containing "conftest.", or (3) at the end.
15728 # Note that $ac_compile itself does not contain backslashes and begins
15729 # with a dollar sign (not a hyphen), so the echo should work correctly.
15730 lt_compile=`echo "$ac_compile" | $SED \
15731 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15732 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15733 -e 's:$: $lt_compiler_flag:'`
43e02a8a 15734 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
15735 (eval "$lt_compile" 2>out/conftest.err)
15736 ac_status=$?
15737 cat out/conftest.err >&5
43e02a8a 15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
15739 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15740 then
15741 # The compiler can only warn and ignore the option if not recognized
15742 # So say no if there are warnings
43e02a8a 15743 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
15744 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15745 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15746 lt_cv_prog_compiler_c_o_CXX=yes
15747 fi
15748 fi
15749 chmod u+w . 2>&5
15750 $RM conftest*
15751 # SGI C++ compiler will create directory out/ii_files/ for
15752 # template instantiation
15753 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15754 $RM out/* && rmdir out
15755 cd ..
15756 $RM -r conftest
15757 $RM conftest*
ed698112 15758
1cf3d07d 15759fi
5213506e
RW
15760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15761$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1cf3d07d
SE
15762
15763
15764
5213506e
RW
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15766$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15767if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15768 $as_echo_n "(cached) " >&6
ed698112 15769else
1cf3d07d
SE
15770 lt_cv_prog_compiler_c_o_CXX=no
15771 $RM -r conftest 2>/dev/null
15772 mkdir conftest
15773 cd conftest
15774 mkdir out
15775 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15776
15777 lt_compiler_flag="-o out/conftest2.$ac_objext"
15778 # Insert the option either (1) after the last *FLAGS variable, or
15779 # (2) before a word containing "conftest.", or (3) at the end.
15780 # Note that $ac_compile itself does not contain backslashes and begins
15781 # with a dollar sign (not a hyphen), so the echo should work correctly.
15782 lt_compile=`echo "$ac_compile" | $SED \
15783 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15784 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15785 -e 's:$: $lt_compiler_flag:'`
43e02a8a 15786 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
15787 (eval "$lt_compile" 2>out/conftest.err)
15788 ac_status=$?
15789 cat out/conftest.err >&5
43e02a8a 15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
15791 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15792 then
15793 # The compiler can only warn and ignore the option if not recognized
15794 # So say no if there are warnings
43e02a8a 15795 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
15796 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15797 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15798 lt_cv_prog_compiler_c_o_CXX=yes
15799 fi
15800 fi
15801 chmod u+w . 2>&5
15802 $RM conftest*
15803 # SGI C++ compiler will create directory out/ii_files/ for
15804 # template instantiation
15805 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15806 $RM out/* && rmdir out
15807 cd ..
15808 $RM -r conftest
15809 $RM conftest*
15810
15811fi
5213506e
RW
15812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15813$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1cf3d07d
SE
15814
15815
15816
15817
15818hard_links="nottested"
15819if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15820 # do not overwrite the value of need_locks provided by the user
5213506e
RW
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15822$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
15823 hard_links=yes
15824 $RM conftest*
15825 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15826 touch conftest.a
15827 ln conftest.a conftest.b 2>&5 || hard_links=no
15828 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15830$as_echo "$hard_links" >&6; }
1cf3d07d 15831 if test "$hard_links" = no; then
5213506e
RW
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15833$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
15834 need_locks=warn
15835 fi
15836else
15837 need_locks=no
ed698112 15838fi
ed698112 15839
ed698112 15840
ed698112 15841
5213506e
RW
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15843$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
5aac1dac 15844
1cf3d07d
SE
15845 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15846 case $host_os in
ed44a2c7 15847 aix[4-9]*)
1cf3d07d
SE
15848 # If we're using GNU nm, then we don't want the "-C" option.
15849 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
15850 # Also, AIX nm treats weak defined symbols like other global defined
15851 # symbols, whereas GNU nm marks them as "W".
1cf3d07d 15852 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 15853 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1cf3d07d
SE
15854 else
15855 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'
15856 fi
15857 ;;
15858 pw32*)
15859 export_symbols_cmds_CXX="$ltdll_cmds"
15860 ;;
0da7a284 15861 cygwin* | mingw* | cegcc*)
1cf3d07d
SE
15862 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'
15863 ;;
15864 *)
15865 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15866 ;;
15867 esac
0da7a284 15868 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
f994389b 15869
5213506e
RW
15870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15871$as_echo "$ld_shlibs_CXX" >&6; }
1cf3d07d 15872test "$ld_shlibs_CXX" = no && can_build_shared=no
ed698112 15873
1cf3d07d
SE
15874with_gnu_ld_CXX=$with_gnu_ld
15875
15876
15877
15878
15879
15880
15881#
15882# Do we need to explicitly link libc?
15883#
15884case "x$archive_cmds_need_lc_CXX" in
15885x|xyes)
15886 # Assume -lc should be added
15887 archive_cmds_need_lc_CXX=yes
15888
15889 if test "$enable_shared" = yes && test "$GCC" = yes; then
15890 case $archive_cmds_CXX in
15891 *'~'*)
15892 # FIXME: we may have to deal with multi-command sequences.
15893 ;;
15894 '$CC '*)
15895 # Test whether the compiler implicitly links with -lc since on some
15896 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15897 # to ld, don't add -lc before -lgcc.
5213506e
RW
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15899$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15900if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15901 $as_echo_n "(cached) " >&6
baafc534
RW
15902else
15903 $RM conftest*
15904 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 15905
5213506e 15906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d 15907 (eval $ac_compile) 2>&5
ed698112 15908 ac_status=$?
5213506e
RW
15909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15910 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
15911 soname=conftest
15912 lib=conftest
15913 libobjs=conftest.$ac_objext
15914 deplibs=
15915 wl=$lt_prog_compiler_wl_CXX
15916 pic_flag=$lt_prog_compiler_pic_CXX
15917 compiler_flags=-v
15918 linker_flags=-v
15919 verstring=
15920 output_objdir=.
15921 libname=conftest
15922 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15923 allow_undefined_flag_CXX=
5213506e 15924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d 15925 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
ed698112 15926 ac_status=$?
5213506e
RW
15927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15928 test $ac_status = 0; }
baafc534
RW
15929 then
15930 lt_cv_archive_cmds_need_lc_CXX=no
15931 else
15932 lt_cv_archive_cmds_need_lc_CXX=yes
15933 fi
15934 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15935 else
15936 cat conftest.err 1>&5
15937 fi
15938 $RM conftest*
15939
15940fi
5213506e
RW
15941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15942$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
baafc534 15943 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
1cf3d07d
SE
15944 ;;
15945 esac
15946 fi
15947 ;;
15948esac
ed698112 15949
ed698112 15950
5ec89e89 15951
58d2986d 15952
58d2986d 15953
58d2986d 15954
e59a1e40 15955
e59a1e40 15956
e59a1e40 15957
e59a1e40
TT
15958
15959
e59a1e40 15960
e59a1e40
TT
15961
15962
58d2986d 15963
58d2986d 15964
ed698112 15965
ed698112 15966
58d2986d 15967
ed698112
NN
15968
15969
58d2986d 15970
ed698112 15971
ed698112 15972
58d2986d 15973
ed698112 15974
5ec89e89 15975
ed698112
NN
15976
15977
15978
ed698112 15979
ed698112 15980
b5ee195f 15981
5aac1dac 15982
5aac1dac 15983
ed698112 15984
f994389b
TT
15985
15986
ed698112 15987
ed698112 15988
f994389b 15989
ee9dd372 15990
ed698112 15991
ee9dd372 15992
ed698112 15993
ee9dd372 15994
ee9dd372
TT
15995
15996
ed698112 15997
ed698112 15998
ed698112 15999
5aac1dac 16000
ee9dd372
TT
16001
16002
ed698112 16003
dbf45a01 16004
ed698112 16005
ed698112 16006
ed698112
NN
16007
16008
1b5a2139 16009
2a67186a 16010
2a67186a 16011
2a67186a 16012
5213506e
RW
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16014$as_echo_n "checking dynamic linker characteristics... " >&6; }
0da7a284 16015
1cf3d07d
SE
16016library_names_spec=
16017libname_spec='lib$name'
16018soname_spec=
16019shrext_cmds=".so"
16020postinstall_cmds=
16021postuninstall_cmds=
16022finish_cmds=
16023finish_eval=
16024shlibpath_var=
16025shlibpath_overrides_runpath=unknown
16026version_type=none
16027dynamic_linker="$host_os ld.so"
16028sys_lib_dlsearch_path_spec="/lib /usr/lib"
16029need_lib_prefix=unknown
16030hardcode_into_libs=no
2a67186a 16031
1cf3d07d
SE
16032# when you set need_version to no, make sure it does not cause -set_version
16033# flags to be left without arguments
16034need_version=unknown
2a67186a 16035
1cf3d07d
SE
16036case $host_os in
16037aix3*)
16038 version_type=linux
16039 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16040 shlibpath_var=LIBPATH
2a67186a 16041
1cf3d07d
SE
16042 # AIX 3 has no versioning support, so we append a major version to the name.
16043 soname_spec='${libname}${release}${shared_ext}$major'
16044 ;;
2a67186a 16045
ed44a2c7 16046aix[4-9]*)
1cf3d07d
SE
16047 version_type=linux
16048 need_lib_prefix=no
16049 need_version=no
16050 hardcode_into_libs=yes
16051 if test "$host_cpu" = ia64; then
16052 # AIX 5 supports IA64
16053 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16054 shlibpath_var=LD_LIBRARY_PATH
16055 else
16056 # With GCC up to 2.95.x, collect2 would create an import file
16057 # for dependence libraries. The import file would start with
16058 # the line `#! .'. This would cause the generated library to
16059 # depend on `.', always an invalid library. This was fixed in
16060 # development snapshots of GCC prior to 3.0.
16061 case $host_os in
16062 aix4 | aix4.[01] | aix4.[01].*)
16063 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16064 echo ' yes '
16065 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16066 :
16067 else
16068 can_build_shared=no
16069 fi
16070 ;;
16071 esac
16072 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16073 # soname into executable. Probably we can add versioning support to
16074 # collect2, so additional links can be useful in future.
16075 if test "$aix_use_runtimelinking" = yes; then
16076 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16077 # instead of lib<name>.a to let people know that these are not
16078 # typical AIX shared libraries.
16079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16080 else
16081 # We preserve .a as extension for shared libraries through AIX4.2
16082 # and later when we are not doing run time linking.
16083 library_names_spec='${libname}${release}.a $libname.a'
16084 soname_spec='${libname}${release}${shared_ext}$major'
16085 fi
16086 shlibpath_var=LIBPATH
16087 fi
16088 ;;
1b5a2139 16089
1cf3d07d 16090amigaos*)
0da7a284
PG
16091 case $host_cpu in
16092 powerpc)
16093 # Since July 2007 AmigaOS4 officially supports .so libraries.
16094 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16096 ;;
16097 m68k)
1cf3d07d
SE
16098 library_names_spec='$libname.ixlibrary $libname.a'
16099 # Create ${libname}_ixlibrary.a entries in /sys/libs.
43e02a8a 16100 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
0da7a284
PG
16101 ;;
16102 esac
1cf3d07d 16103 ;;
1b5a2139 16104
1cf3d07d
SE
16105beos*)
16106 library_names_spec='${libname}${shared_ext}'
16107 dynamic_linker="$host_os ld.so"
16108 shlibpath_var=LIBRARY_PATH
16109 ;;
1b5a2139 16110
1cf3d07d
SE
16111bsdi[45]*)
16112 version_type=linux
16113 need_version=no
16114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16115 soname_spec='${libname}${release}${shared_ext}$major'
16116 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16117 shlibpath_var=LD_LIBRARY_PATH
16118 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16119 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16120 # the default ld.so.conf also contains /usr/contrib/lib and
16121 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16122 # libtool to hard-code these into programs
16123 ;;
ed698112 16124
0da7a284 16125cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
16126 version_type=windows
16127 shrext_cmds=".dll"
16128 need_version=no
16129 need_lib_prefix=no
ed698112 16130
0da7a284
PG
16131 case $GCC,$host_os in
16132 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
16133 library_names_spec='$libname.dll.a'
16134 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16135 postinstall_cmds='base_file=`basename \${file}`~
16136 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16137 dldir=$destdir/`dirname \$dlpath`~
16138 test -d \$dldir || mkdir -p \$dldir~
16139 $install_prog $dir/$dlname \$dldir/$dlname~
16140 chmod a+x \$dldir/$dlname~
16141 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16142 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16143 fi'
16144 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16145 dlpath=$dir/\$dldll~
16146 $RM \$dlpath'
16147 shlibpath_overrides_runpath=yes
5aac1dac 16148
1cf3d07d
SE
16149 case $host_os in
16150 cygwin*)
16151 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16152 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43e02a8a 16153
1cf3d07d 16154 ;;
0da7a284 16155 mingw* | cegcc*)
1cf3d07d
SE
16156 # MinGW DLLs use traditional 'lib' prefix
16157 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1cf3d07d
SE
16158 ;;
16159 pw32*)
16160 # pw32 DLLs use 'pw' prefix rather than 'lib'
16161 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16162 ;;
16163 esac
16164 ;;
7bee4c4c 16165
1cf3d07d
SE
16166 *)
16167 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16168 ;;
16169 esac
16170 dynamic_linker='Win32 ld.exe'
16171 # FIXME: first we should search . and the directory the executable is in
16172 shlibpath_var=PATH
16173 ;;
5aac1dac 16174
1cf3d07d
SE
16175darwin* | rhapsody*)
16176 dynamic_linker="$host_os dyld"
16177 version_type=darwin
16178 need_lib_prefix=no
16179 need_version=no
16180 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16181 soname_spec='${libname}${release}${major}$shared_ext'
16182 shlibpath_overrides_runpath=yes
16183 shlibpath_var=DYLD_LIBRARY_PATH
16184 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ed698112 16185
1cf3d07d
SE
16186 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16187 ;;
5aac1dac 16188
1cf3d07d
SE
16189dgux*)
16190 version_type=linux
16191 need_lib_prefix=no
16192 need_version=no
16193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16194 soname_spec='${libname}${release}${shared_ext}$major'
16195 shlibpath_var=LD_LIBRARY_PATH
16196 ;;
16197
1cf3d07d
SE
16198freebsd* | dragonfly*)
16199 # DragonFly does not have aout. When/if they implement a new
16200 # versioning mechanism, adjust this.
16201 if test -x /usr/bin/objformat; then
16202 objformat=`/usr/bin/objformat`
16203 else
16204 case $host_os in
c6084f68 16205 freebsd[23].*) objformat=aout ;;
1cf3d07d
SE
16206 *) objformat=elf ;;
16207 esac
16208 fi
16209 version_type=freebsd-$objformat
16210 case $version_type in
16211 freebsd-elf*)
16212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16213 need_version=no
16214 need_lib_prefix=no
16215 ;;
16216 freebsd-*)
16217 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16218 need_version=yes
16219 ;;
16220 esac
16221 shlibpath_var=LD_LIBRARY_PATH
16222 case $host_os in
c6084f68 16223 freebsd2.*)
1cf3d07d
SE
16224 shlibpath_overrides_runpath=yes
16225 ;;
16226 freebsd3.[01]* | freebsdelf3.[01]*)
16227 shlibpath_overrides_runpath=yes
16228 hardcode_into_libs=yes
16229 ;;
16230 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16231 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16232 shlibpath_overrides_runpath=no
16233 hardcode_into_libs=yes
16234 ;;
16235 *) # from 4.6 on, and DragonFly
16236 shlibpath_overrides_runpath=yes
16237 hardcode_into_libs=yes
16238 ;;
16239 esac
16240 ;;
16241
16242gnu*)
16243 version_type=linux
16244 need_lib_prefix=no
16245 need_version=no
16246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16247 soname_spec='${libname}${release}${shared_ext}$major'
16248 shlibpath_var=LD_LIBRARY_PATH
16249 hardcode_into_libs=yes
16250 ;;
16251
43e02a8a
RW
16252haiku*)
16253 version_type=linux
16254 need_lib_prefix=no
16255 need_version=no
16256 dynamic_linker="$host_os runtime_loader"
16257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16258 soname_spec='${libname}${release}${shared_ext}$major'
16259 shlibpath_var=LIBRARY_PATH
16260 shlibpath_overrides_runpath=yes
16261 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16262 hardcode_into_libs=yes
16263 ;;
16264
1cf3d07d
SE
16265hpux9* | hpux10* | hpux11*)
16266 # Give a soname corresponding to the major version so that dld.sl refuses to
16267 # link against other versions.
16268 version_type=sunos
16269 need_lib_prefix=no
16270 need_version=no
16271 case $host_cpu in
16272 ia64*)
16273 shrext_cmds='.so'
16274 hardcode_into_libs=yes
16275 dynamic_linker="$host_os dld.so"
16276 shlibpath_var=LD_LIBRARY_PATH
16277 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16279 soname_spec='${libname}${release}${shared_ext}$major'
16280 if test "X$HPUX_IA64_MODE" = X32; then
16281 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16282 else
16283 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16284 fi
16285 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16286 ;;
16287 hppa*64*)
16288 shrext_cmds='.sl'
16289 hardcode_into_libs=yes
16290 dynamic_linker="$host_os dld.sl"
16291 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16292 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16294 soname_spec='${libname}${release}${shared_ext}$major'
16295 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16296 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16297 ;;
16298 *)
16299 shrext_cmds='.sl'
16300 dynamic_linker="$host_os dld.sl"
16301 shlibpath_var=SHLIB_PATH
16302 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16304 soname_spec='${libname}${release}${shared_ext}$major'
16305 ;;
16306 esac
43e02a8a 16307 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1cf3d07d 16308 postinstall_cmds='chmod 555 $lib'
43e02a8a
RW
16309 # or fails outright, so override atomically:
16310 install_override_mode=555
1cf3d07d
SE
16311 ;;
16312
16313interix[3-9]*)
16314 version_type=linux
16315 need_lib_prefix=no
16316 need_version=no
16317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16318 soname_spec='${libname}${release}${shared_ext}$major'
16319 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16320 shlibpath_var=LD_LIBRARY_PATH
16321 shlibpath_overrides_runpath=no
16322 hardcode_into_libs=yes
16323 ;;
16324
16325irix5* | irix6* | nonstopux*)
16326 case $host_os in
16327 nonstopux*) version_type=nonstopux ;;
16328 *)
16329 if test "$lt_cv_prog_gnu_ld" = yes; then
16330 version_type=linux
16331 else
16332 version_type=irix
16333 fi ;;
16334 esac
16335 need_lib_prefix=no
16336 need_version=no
16337 soname_spec='${libname}${release}${shared_ext}$major'
16338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16339 case $host_os in
16340 irix5* | nonstopux*)
16341 libsuff= shlibsuff=
16342 ;;
16343 *)
16344 case $LD in # libtool.m4 will add one of these switches to LD
16345 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16346 libsuff= shlibsuff= libmagic=32-bit;;
16347 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16348 libsuff=32 shlibsuff=N32 libmagic=N32;;
16349 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16350 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16351 *) libsuff= shlibsuff= libmagic=never-match;;
16352 esac
16353 ;;
16354 esac
16355 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16356 shlibpath_overrides_runpath=no
16357 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16358 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16359 hardcode_into_libs=yes
16360 ;;
16361
16362# No shared lib support for Linux oldld, aout, or coff.
16363linux*oldld* | linux*aout* | linux*coff*)
16364 dynamic_linker=no
16365 ;;
16366
16367# This must be Linux ELF.
7a9d3fe8 16368linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
16369 version_type=linux
16370 need_lib_prefix=no
16371 need_version=no
16372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16373 soname_spec='${libname}${release}${shared_ext}$major'
16374 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16375 shlibpath_var=LD_LIBRARY_PATH
16376 shlibpath_overrides_runpath=no
baafc534 16377
1cf3d07d 16378 # Some binutils ld are patched to set DT_RUNPATH
5213506e
RW
16379 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16380 $as_echo_n "(cached) " >&6
baafc534
RW
16381else
16382 lt_cv_shlibpath_overrides_runpath=no
16383 save_LDFLAGS=$LDFLAGS
16384 save_libdir=$libdir
16385 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16386 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16387 if test x$gcc_no_link = xyes; then
5213506e 16388 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ee9dd372 16389fi
5213506e 16390cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ed698112 16391/* end confdefs.h. */
5aac1dac 16392
ed698112
NN
16393int
16394main ()
16395{
1cf3d07d 16396
ed698112
NN
16397 ;
16398 return 0;
16399}
16400_ACEOF
5213506e
RW
16401if ac_fn_cxx_try_link "$LINENO"; then :
16402 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 16403 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d 16404fi
ed698112 16405fi
5213506e
RW
16406rm -f core conftest.err conftest.$ac_objext \
16407 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
16408 LDFLAGS=$save_LDFLAGS
16409 libdir=$save_libdir
16410
16411fi
16412
16413 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
ed698112 16414
1cf3d07d
SE
16415 # This implies no fast_install, which is unacceptable.
16416 # Some rework will be needed to allow for fast_install
16417 # before this can be enabled.
16418 hardcode_into_libs=yes
5aac1dac 16419
1cf3d07d
SE
16420 # Append ld.so.conf contents to the search path
16421 if test -f /etc/ld.so.conf; then
43e02a8a 16422 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
1cf3d07d
SE
16423 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16424 fi
5aac1dac 16425
1cf3d07d
SE
16426 # We used to test for /lib/ld.so.1 and disable shared libraries on
16427 # powerpc, because MkLinux only supported shared libraries with the
16428 # GNU dynamic linker. Since this was broken with cross compilers,
16429 # most powerpc-linux boxes support dynamic linking these days and
16430 # people can always --disable-shared, the test was removed, and we
16431 # assume the GNU/Linux dynamic linker is in use.
16432 dynamic_linker='GNU/Linux ld.so'
16433 ;;
ed698112 16434
1cf3d07d
SE
16435netbsd*)
16436 version_type=sunos
16437 need_lib_prefix=no
16438 need_version=no
16439 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16441 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16442 dynamic_linker='NetBSD (a.out) ld.so'
16443 else
16444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16445 soname_spec='${libname}${release}${shared_ext}$major'
16446 dynamic_linker='NetBSD ld.elf_so'
16447 fi
16448 shlibpath_var=LD_LIBRARY_PATH
16449 shlibpath_overrides_runpath=yes
16450 hardcode_into_libs=yes
16451 ;;
5aac1dac 16452
1cf3d07d
SE
16453newsos6)
16454 version_type=linux
16455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16456 shlibpath_var=LD_LIBRARY_PATH
16457 shlibpath_overrides_runpath=yes
16458 ;;
ed698112 16459
1cf3d07d
SE
16460*nto* | *qnx*)
16461 version_type=qnx
16462 need_lib_prefix=no
16463 need_version=no
16464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16465 soname_spec='${libname}${release}${shared_ext}$major'
16466 shlibpath_var=LD_LIBRARY_PATH
16467 shlibpath_overrides_runpath=no
16468 hardcode_into_libs=yes
16469 dynamic_linker='ldqnx.so'
16470 ;;
04942eac 16471
1cf3d07d
SE
16472openbsd*)
16473 version_type=sunos
16474 sys_lib_dlsearch_path_spec="/usr/lib"
16475 need_lib_prefix=no
16476 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16477 case $host_os in
16478 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16479 *) need_version=no ;;
16480 esac
16481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16482 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16483 shlibpath_var=LD_LIBRARY_PATH
16484 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16485 case $host_os in
16486 openbsd2.[89] | openbsd2.[89].*)
16487 shlibpath_overrides_runpath=no
16488 ;;
16489 *)
16490 shlibpath_overrides_runpath=yes
16491 ;;
16492 esac
16493 else
16494 shlibpath_overrides_runpath=yes
16495 fi
16496 ;;
ed698112 16497
1cf3d07d
SE
16498os2*)
16499 libname_spec='$name'
16500 shrext_cmds=".dll"
16501 need_lib_prefix=no
16502 library_names_spec='$libname${shared_ext} $libname.a'
16503 dynamic_linker='OS/2 ld.exe'
16504 shlibpath_var=LIBPATH
16505 ;;
ed698112 16506
1cf3d07d
SE
16507osf3* | osf4* | osf5*)
16508 version_type=osf
16509 need_lib_prefix=no
16510 need_version=no
16511 soname_spec='${libname}${release}${shared_ext}$major'
16512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16513 shlibpath_var=LD_LIBRARY_PATH
16514 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16515 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16516 ;;
5aac1dac 16517
1cf3d07d
SE
16518rdos*)
16519 dynamic_linker=no
16520 ;;
5aac1dac 16521
1cf3d07d
SE
16522solaris*)
16523 version_type=linux
16524 need_lib_prefix=no
16525 need_version=no
16526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16527 soname_spec='${libname}${release}${shared_ext}$major'
16528 shlibpath_var=LD_LIBRARY_PATH
16529 shlibpath_overrides_runpath=yes
16530 hardcode_into_libs=yes
16531 # ldd complains unless libraries are executable
16532 postinstall_cmds='chmod +x $lib'
16533 ;;
5aac1dac 16534
1cf3d07d
SE
16535sunos4*)
16536 version_type=sunos
16537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16538 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16539 shlibpath_var=LD_LIBRARY_PATH
16540 shlibpath_overrides_runpath=yes
16541 if test "$with_gnu_ld" = yes; then
16542 need_lib_prefix=no
16543 fi
16544 need_version=yes
16545 ;;
ed698112 16546
1cf3d07d
SE
16547sysv4 | sysv4.3*)
16548 version_type=linux
16549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16550 soname_spec='${libname}${release}${shared_ext}$major'
16551 shlibpath_var=LD_LIBRARY_PATH
16552 case $host_vendor in
16553 sni)
16554 shlibpath_overrides_runpath=no
16555 need_lib_prefix=no
16556 runpath_var=LD_RUN_PATH
16557 ;;
16558 siemens)
16559 need_lib_prefix=no
16560 ;;
16561 motorola)
16562 need_lib_prefix=no
16563 need_version=no
16564 shlibpath_overrides_runpath=no
16565 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16566 ;;
16567 esac
16568 ;;
5aac1dac 16569
1cf3d07d
SE
16570sysv4*MP*)
16571 if test -d /usr/nec ;then
16572 version_type=linux
16573 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16574 soname_spec='$libname${shared_ext}.$major'
16575 shlibpath_var=LD_LIBRARY_PATH
16576 fi
16577 ;;
ed698112 16578
1cf3d07d
SE
16579sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16580 version_type=freebsd-elf
16581 need_lib_prefix=no
16582 need_version=no
16583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16584 soname_spec='${libname}${release}${shared_ext}$major'
16585 shlibpath_var=LD_LIBRARY_PATH
16586 shlibpath_overrides_runpath=yes
16587 hardcode_into_libs=yes
16588 if test "$with_gnu_ld" = yes; then
16589 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16590 else
16591 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16592 case $host_os in
16593 sco3.2v5*)
16594 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16595 ;;
16596 esac
16597 fi
16598 sys_lib_dlsearch_path_spec='/usr/lib'
16599 ;;
ed698112 16600
1cf3d07d
SE
16601tpf*)
16602 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16603 version_type=linux
16604 need_lib_prefix=no
16605 need_version=no
0da7a284 16606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
16607 shlibpath_var=LD_LIBRARY_PATH
16608 shlibpath_overrides_runpath=no
16609 hardcode_into_libs=yes
16610 ;;
4048d336 16611
1cf3d07d
SE
16612uts4*)
16613 version_type=linux
16614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16615 soname_spec='${libname}${release}${shared_ext}$major'
16616 shlibpath_var=LD_LIBRARY_PATH
16617 ;;
4048d336 16618
1cf3d07d
SE
16619*)
16620 dynamic_linker=no
16621 ;;
16622esac
5213506e
RW
16623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16624$as_echo "$dynamic_linker" >&6; }
1cf3d07d 16625test "$dynamic_linker" = no && can_build_shared=no
4048d336 16626
1cf3d07d
SE
16627variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16628if test "$GCC" = yes; then
16629 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
ed698112 16630fi
ee9dd372 16631
0da7a284
PG
16632if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16633 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16634fi
16635if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16636 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16637fi
16638
ed698112 16639
ed698112 16640
a3e174ea 16641
5aac1dac 16642
ed698112 16643
5aac1dac 16644
ed698112 16645
ade710a5 16646
a3e174ea 16647
29e531ff 16648
5aac1dac 16649
5aac1dac 16650
5aac1dac 16651
5aac1dac 16652
ed698112
NN
16653
16654
a3e174ea 16655
a3e174ea 16656
a3e174ea 16657
ed698112
NN
16658
16659
16660
ccfe7e46 16661
ed698112 16662
ade710a5 16663
5aac1dac 16664
29e531ff 16665
1e567c43 16666
1e567c43 16667
1e567c43 16668
1e567c43 16669
ed698112 16670
43e02a8a
RW
16671
16672
ed698112 16673
1e567c43 16674
1cf3d07d 16675
5213506e
RW
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16677$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
16678hardcode_action_CXX=
16679if test -n "$hardcode_libdir_flag_spec_CXX" ||
16680 test -n "$runpath_var_CXX" ||
16681 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16682
16683 # We can hardcode non-existent directories.
16684 if test "$hardcode_direct_CXX" != no &&
16685 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16686 # have to relink, otherwise we might link with an installed library
16687 # when we should be linking with a yet-to-be-installed one
16688 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16689 test "$hardcode_minus_L_CXX" != no; then
16690 # Linking always hardcodes the temporary library directory.
16691 hardcode_action_CXX=relink
1e567c43 16692 else
1cf3d07d
SE
16693 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16694 hardcode_action_CXX=immediate
1e567c43 16695 fi
1cf3d07d
SE
16696else
16697 # We cannot hardcode anything, or else we can only hardcode existing
16698 # directories.
16699 hardcode_action_CXX=unsupported
16700fi
5213506e
RW
16701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16702$as_echo "$hardcode_action_CXX" >&6; }
1e567c43 16703
1cf3d07d
SE
16704if test "$hardcode_action_CXX" = relink ||
16705 test "$inherit_rpath_CXX" = yes; then
16706 # Fast installation is not supported
16707 enable_fast_install=no
16708elif test "$shlibpath_overrides_runpath" = yes ||
16709 test "$enable_shared" = no; then
16710 # Fast installation is not necessary
16711 enable_fast_install=needless
16712fi
1e567c43 16713
ed698112
NN
16714
16715
16716
1e567c43 16717
1cf3d07d
SE
16718
16719
16720 fi # test -n "$compiler"
16721
16722 CC=$lt_save_CC
16723 LDCXX=$LD
16724 LD=$lt_save_LD
16725 GCC=$lt_save_GCC
16726 with_gnu_ld=$lt_save_with_gnu_ld
16727 lt_cv_path_LDCXX=$lt_cv_path_LD
16728 lt_cv_path_LD=$lt_save_path_LD
16729 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16730 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16731fi # test "$_lt_caught_CXX_error" != yes
16732
16733ac_ext=c
16734ac_cpp='$CPP $CPPFLAGS'
16735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16737ac_compiler_gnu=$ac_cv_c_compiler_gnu
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
5213506e 16751 ac_config_commands="$ac_config_commands libtool"
1cf3d07d
SE
16752
16753
16754
16755
16756# Only expand once:
16757
16758
16759
7de6ba7a
DK
16760
16761
16762case $host in
16763 *-cygwin* | *-mingw*)
16764 # 'host' will be top-level target in the case of a target lib,
16765 # we must compare to with_cross_host to decide if this is a native
16766 # or cross-compiler and select where to install dlls appropriately.
16767 if test -n "$with_cross_host" &&
16768 test x"$with_cross_host" != x"no"; then
16769 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
16770 else
16771 lt_host_flags='-no-undefined -bindir "$(bindir)"';
16772 fi
16773 ;;
16774 *)
16775 lt_host_flags=
16776 ;;
16777esac
16778
16779
16780
16781
4d9e8446
RW
16782if test -n "$ac_tool_prefix"; then
16783 for ac_prog in gcj
16784 do
16785 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16786set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
16787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16788$as_echo_n "checking for $ac_word... " >&6; }
16789if test "${ac_cv_prog_GCJ+set}" = set; then :
16790 $as_echo_n "(cached) " >&6
1e567c43 16791else
1cf3d07d
SE
16792 if test -n "$GCJ"; then
16793 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16794else
16795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
ed698112
NN
16796for as_dir in $PATH
16797do
16798 IFS=$as_save_IFS
16799 test -z "$as_dir" && as_dir=.
5213506e
RW
16800 for ac_exec_ext in '' $ac_executable_extensions; do
16801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4d9e8446 16802 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
5213506e 16803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112
NN
16804 break 2
16805 fi
16806done
5213506e
RW
16807 done
16808IFS=$as_save_IFS
ed698112 16809
1e567c43 16810fi
1cf3d07d
SE
16811fi
16812GCJ=$ac_cv_prog_GCJ
16813if test -n "$GCJ"; then
5213506e
RW
16814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16815$as_echo "$GCJ" >&6; }
1e567c43 16816else
5213506e
RW
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16818$as_echo "no" >&6; }
1e567c43
TF
16819fi
16820
5213506e 16821
4d9e8446
RW
16822 test -n "$GCJ" && break
16823 done
16824fi
16825if test -z "$GCJ"; then
16826 ac_ct_GCJ=$GCJ
16827 for ac_prog in gcj
16828do
16829 # Extract the first word of "$ac_prog", so it can be a program name with args.
16830set dummy $ac_prog; ac_word=$2
16831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16832$as_echo_n "checking for $ac_word... " >&6; }
16833if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
16834 $as_echo_n "(cached) " >&6
16835else
16836 if test -n "$ac_ct_GCJ"; then
16837 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
16838else
16839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16840for as_dir in $PATH
16841do
16842 IFS=$as_save_IFS
16843 test -z "$as_dir" && as_dir=.
16844 for ac_exec_ext in '' $ac_executable_extensions; do
16845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16846 ac_cv_prog_ac_ct_GCJ="$ac_prog"
16847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16848 break 2
16849 fi
16850done
16851 done
16852IFS=$as_save_IFS
16853
16854fi
16855fi
16856ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
16857if test -n "$ac_ct_GCJ"; then
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
16859$as_echo "$ac_ct_GCJ" >&6; }
16860else
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16862$as_echo "no" >&6; }
16863fi
16864
16865
16866 test -n "$ac_ct_GCJ" && break
1cf3d07d 16867done
4d9e8446
RW
16868
16869 if test "x$ac_ct_GCJ" = x; then
16870 GCJ="gcj"
16871 else
16872 case $cross_compiling:$ac_tool_warned in
16873yes:)
16874{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16875$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16876ac_tool_warned=yes ;;
16877esac
16878 GCJ=$ac_ct_GCJ
16879 fi
16880fi
5aac1dac 16881
5213506e 16882test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
1cf3d07d
SE
16883if test "x${GCJFLAGS-unset}" = xunset; then
16884 GCJFLAGS="-g -O2"
16885fi
ed698112
NN
16886
16887
1cf3d07d 16888depcc="$GCJ" am_compiler_list='gcc3 gcc'
3f8dfdd4 16889
5213506e
RW
16890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16891$as_echo_n "checking dependency style of $depcc... " >&6; }
16892if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16893 $as_echo_n "(cached) " >&6
3f8dfdd4 16894else
1cf3d07d
SE
16895 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16896 # We make a subdir and do the tests there. Otherwise we can end up
16897 # making bogus files that we don't know about and never remove. For
16898 # instance it was reported that on HP-UX the gcc test will end up
16899 # making a dummy file named `D' -- because `-MD' means `put the output
16900 # in D'.
16901 mkdir conftest.dir
16902 # Copy depcomp to subdir because otherwise we won't find it if we're
16903 # using a relative directory.
16904 cp "$am_depcomp" conftest.dir
16905 cd conftest.dir
16906 # We will build objects and dependencies in a subdirectory because
16907 # it helps to detect inapplicable dependency modes. For instance
16908 # both Tru64's cc and ICC support -MD to output dependencies as a
16909 # side effect of compilation, but ICC will put the dependencies in
16910 # the current directory while Tru64 will put them in the object
16911 # directory.
16912 mkdir sub
3f8dfdd4 16913
1cf3d07d
SE
16914 am_cv_GCJ_dependencies_compiler_type=none
16915 if test "$am_compiler_list" = ""; then
16916 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16917 fi
5213506e
RW
16918 am__universal=false
16919
16920
1cf3d07d
SE
16921 for depmode in $am_compiler_list; do
16922 # Setup a source with many dependencies, because some compilers
16923 # like to wrap large dependency lists on column 80 (with \), and
16924 # we should not choose a depcomp mode which is confused by this.
16925 #
16926 # We need to recreate these files for each test, as the compiler may
16927 # overwrite some of them when testing with obscure command lines.
16928 # This happens at least with the AIX C compiler.
16929 : > sub/conftest.c
16930 for i in 1 2 3 4 5 6; do
16931 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16932 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16933 # Solaris 8's {/usr,}/bin/sh.
16934 touch sub/conftst$i.h
16935 done
16936 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3f8dfdd4 16937
5213506e
RW
16938 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16939 # mode. It turns out that the SunPro C++ compiler does not properly
16940 # handle `-M -o', and we need to detect this. Also, some Intel
16941 # versions had trouble with output in subdirs
16942 am__obj=sub/conftest.${OBJEXT-o}
16943 am__minus_obj="-o $am__obj"
1cf3d07d 16944 case $depmode in
5213506e
RW
16945 gcc)
16946 # This depmode causes a compiler race in universal mode.
16947 test "$am__universal" = false || continue
16948 ;;
1cf3d07d
SE
16949 nosideeffect)
16950 # after this tag, mechanisms are not by side-effect, so they'll
16951 # only be used when explicitly requested
16952 if test "x$enable_dependency_tracking" = xyes; then
16953 continue
16954 else
16955 break
16956 fi
16957 ;;
5213506e
RW
16958 msvisualcpp | msvcmsys)
16959 # This compiler won't grok `-c -o', but also, the minuso test has
16960 # not run yet. These depmodes are late enough in the game, and
16961 # so weak that their functioning should not be impacted.
16962 am__obj=conftest.${OBJEXT-o}
16963 am__minus_obj=
16964 ;;
1cf3d07d
SE
16965 none) break ;;
16966 esac
1cf3d07d 16967 if depmode=$depmode \
5213506e 16968 source=sub/conftest.c object=$am__obj \
1cf3d07d 16969 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213506e 16970 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1cf3d07d 16971 >/dev/null 2>conftest.err &&
5213506e 16972 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1cf3d07d 16973 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213506e 16974 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1cf3d07d
SE
16975 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16976 # icc doesn't choke on unknown options, it will just issue warnings
16977 # or remarks (even with -Werror). So we grep stderr for any message
16978 # that says an option was ignored or not supported.
16979 # When given -MP, icc 7.0 and 7.1 complain thusly:
16980 # icc: Command line warning: ignoring option '-M'; no argument required
16981 # The diagnosis changed in icc 8.0:
16982 # icc: Command line remark: option '-MP' not supported
16983 if (grep 'ignoring option' conftest.err ||
16984 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16985 am_cv_GCJ_dependencies_compiler_type=$depmode
16986 break
16987 fi
16988 fi
16989 done
5aac1dac 16990
1cf3d07d
SE
16991 cd ..
16992 rm -rf conftest.dir
5aac1dac 16993else
1cf3d07d 16994 am_cv_GCJ_dependencies_compiler_type=none
5aac1dac 16995fi
ed698112 16996
5aac1dac 16997fi
5213506e
RW
16998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16999$as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
1cf3d07d 17000GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
ee9dd372 17001
5213506e 17002 if
1cf3d07d
SE
17003 test "x$enable_dependency_tracking" != xno \
17004 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
17005 am__fastdepGCJ_TRUE=
17006 am__fastdepGCJ_FALSE='#'
17007else
17008 am__fastdepGCJ_TRUE='#'
17009 am__fastdepGCJ_FALSE=
17010fi
349e19d4 17011
5aac1dac 17012
5aac1dac 17013
4d9e8446
RW
17014if test -n "$ac_tool_prefix"; then
17015 for ac_prog in gcj
17016 do
17017 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17018set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
17019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17020$as_echo_n "checking for $ac_word... " >&6; }
17021if test "${ac_cv_prog_GCJ+set}" = set; then :
17022 $as_echo_n "(cached) " >&6
5aac1dac
TT
17023else
17024 if test -n "$GCJ"; then
17025 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
17026else
ed698112
NN
17027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17028for as_dir in $PATH
17029do
17030 IFS=$as_save_IFS
17031 test -z "$as_dir" && as_dir=.
5213506e
RW
17032 for ac_exec_ext in '' $ac_executable_extensions; do
17033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4d9e8446 17034 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
5213506e 17035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112
NN
17036 break 2
17037 fi
17038done
5213506e
RW
17039 done
17040IFS=$as_save_IFS
ed698112 17041
5aac1dac
TT
17042fi
17043fi
ed698112 17044GCJ=$ac_cv_prog_GCJ
5aac1dac 17045if test -n "$GCJ"; then
5213506e
RW
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
17047$as_echo "$GCJ" >&6; }
ee9dd372 17048else
5213506e
RW
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17050$as_echo "no" >&6; }
5aac1dac 17051fi
0659e0e3 17052
5213506e 17053
4d9e8446
RW
17054 test -n "$GCJ" && break
17055 done
17056fi
17057if test -z "$GCJ"; then
17058 ac_ct_GCJ=$GCJ
17059 for ac_prog in gcj
17060do
17061 # Extract the first word of "$ac_prog", so it can be a program name with args.
17062set dummy $ac_prog; ac_word=$2
17063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17064$as_echo_n "checking for $ac_word... " >&6; }
17065if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
17066 $as_echo_n "(cached) " >&6
17067else
17068 if test -n "$ac_ct_GCJ"; then
17069 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
17070else
17071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17072for as_dir in $PATH
17073do
17074 IFS=$as_save_IFS
17075 test -z "$as_dir" && as_dir=.
17076 for ac_exec_ext in '' $ac_executable_extensions; do
17077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17078 ac_cv_prog_ac_ct_GCJ="$ac_prog"
17079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17080 break 2
17081 fi
1cf3d07d 17082done
4d9e8446
RW
17083 done
17084IFS=$as_save_IFS
17085
17086fi
17087fi
17088ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
17089if test -n "$ac_ct_GCJ"; then
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
17091$as_echo "$ac_ct_GCJ" >&6; }
17092else
17093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17094$as_echo "no" >&6; }
17095fi
17096
17097
17098 test -n "$ac_ct_GCJ" && break
17099done
17100
17101 if test "x$ac_ct_GCJ" = x; then
17102 GCJ="gcj"
17103 else
17104 case $cross_compiling:$ac_tool_warned in
17105yes:)
17106{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17107$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17108ac_tool_warned=yes ;;
17109esac
17110 GCJ=$ac_ct_GCJ
17111 fi
17112fi
1cf3d07d 17113
5213506e 17114test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
1cf3d07d
SE
17115if test "x${GCJFLAGS-unset}" = xunset; then
17116 GCJFLAGS="-g -O2"
17117fi
17118
17119
17120depcc="$GCJ" am_compiler_list='gcc3 gcc'
17121
5213506e
RW
17122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17123$as_echo_n "checking dependency style of $depcc... " >&6; }
17124if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
17125 $as_echo_n "(cached) " >&6
5aac1dac 17126else
1cf3d07d
SE
17127 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17128 # We make a subdir and do the tests there. Otherwise we can end up
17129 # making bogus files that we don't know about and never remove. For
17130 # instance it was reported that on HP-UX the gcc test will end up
17131 # making a dummy file named `D' -- because `-MD' means `put the output
17132 # in D'.
17133 mkdir conftest.dir
17134 # Copy depcomp to subdir because otherwise we won't find it if we're
17135 # using a relative directory.
17136 cp "$am_depcomp" conftest.dir
17137 cd conftest.dir
17138 # We will build objects and dependencies in a subdirectory because
17139 # it helps to detect inapplicable dependency modes. For instance
17140 # both Tru64's cc and ICC support -MD to output dependencies as a
17141 # side effect of compilation, but ICC will put the dependencies in
17142 # the current directory while Tru64 will put them in the object
17143 # directory.
17144 mkdir sub
17145
17146 am_cv_GCJ_dependencies_compiler_type=none
17147 if test "$am_compiler_list" = ""; then
17148 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
ed698112 17149 fi
5213506e
RW
17150 am__universal=false
17151
17152
1cf3d07d
SE
17153 for depmode in $am_compiler_list; do
17154 # Setup a source with many dependencies, because some compilers
17155 # like to wrap large dependency lists on column 80 (with \), and
17156 # we should not choose a depcomp mode which is confused by this.
17157 #
17158 # We need to recreate these files for each test, as the compiler may
17159 # overwrite some of them when testing with obscure command lines.
17160 # This happens at least with the AIX C compiler.
17161 : > sub/conftest.c
17162 for i in 1 2 3 4 5 6; do
17163 echo '#include "conftst'$i'.h"' >> sub/conftest.c
17164 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17165 # Solaris 8's {/usr,}/bin/sh.
17166 touch sub/conftst$i.h
17167 done
17168 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
ed698112 17169
5213506e
RW
17170 # We check with `-c' and `-o' for the sake of the "dashmstdout"
17171 # mode. It turns out that the SunPro C++ compiler does not properly
17172 # handle `-M -o', and we need to detect this. Also, some Intel
17173 # versions had trouble with output in subdirs
17174 am__obj=sub/conftest.${OBJEXT-o}
17175 am__minus_obj="-o $am__obj"
1cf3d07d 17176 case $depmode in
5213506e
RW
17177 gcc)
17178 # This depmode causes a compiler race in universal mode.
17179 test "$am__universal" = false || continue
17180 ;;
1cf3d07d
SE
17181 nosideeffect)
17182 # after this tag, mechanisms are not by side-effect, so they'll
17183 # only be used when explicitly requested
17184 if test "x$enable_dependency_tracking" = xyes; then
17185 continue
17186 else
17187 break
17188 fi
17189 ;;
5213506e
RW
17190 msvisualcpp | msvcmsys)
17191 # This compiler won't grok `-c -o', but also, the minuso test has
17192 # not run yet. These depmodes are late enough in the game, and
17193 # so weak that their functioning should not be impacted.
17194 am__obj=conftest.${OBJEXT-o}
17195 am__minus_obj=
17196 ;;
1cf3d07d
SE
17197 none) break ;;
17198 esac
1cf3d07d 17199 if depmode=$depmode \
5213506e 17200 source=sub/conftest.c object=$am__obj \
1cf3d07d 17201 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213506e 17202 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1cf3d07d 17203 >/dev/null 2>conftest.err &&
5213506e 17204 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1cf3d07d 17205 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213506e 17206 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1cf3d07d
SE
17207 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17208 # icc doesn't choke on unknown options, it will just issue warnings
17209 # or remarks (even with -Werror). So we grep stderr for any message
17210 # that says an option was ignored or not supported.
17211 # When given -MP, icc 7.0 and 7.1 complain thusly:
17212 # icc: Command line warning: ignoring option '-M'; no argument required
17213 # The diagnosis changed in icc 8.0:
17214 # icc: Command line remark: option '-MP' not supported
17215 if (grep 'ignoring option' conftest.err ||
17216 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17217 am_cv_GCJ_dependencies_compiler_type=$depmode
17218 break
17219 fi
17220 fi
17221 done
17222
17223 cd ..
17224 rm -rf conftest.dir
0659e0e3 17225else
1cf3d07d 17226 am_cv_GCJ_dependencies_compiler_type=none
0659e0e3 17227fi
5aac1dac 17228
1cf3d07d 17229fi
5213506e
RW
17230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
17231$as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
1cf3d07d
SE
17232GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
17233
5213506e 17234 if
1cf3d07d
SE
17235 test "x$enable_dependency_tracking" != xno \
17236 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
17237 am__fastdepGCJ_TRUE=
17238 am__fastdepGCJ_FALSE='#'
02809848 17239else
1cf3d07d
SE
17240 am__fastdepGCJ_TRUE='#'
17241 am__fastdepGCJ_FALSE=
ee9dd372 17242fi
ee9dd372 17243
ed698112 17244
5aac1dac
TT
17245
17246
5aac1dac 17247
1cf3d07d 17248# Source file extension for Java test sources.
eecb7461 17249ac_ext=c
5aac1dac 17250
1cf3d07d
SE
17251# Object file extension for compiled Java test sources.
17252objext=o
17253objext_GCJ=$objext
17254
17255# Code to be used in simple compile tests
eecb7461 17256lt_simple_compile_test_code="int some_variable = 0;"
1cf3d07d
SE
17257
17258# Code to be used in simple link tests
eecb7461 17259lt_simple_link_test_code='int main(){return(0);}'
1cf3d07d
SE
17260
17261# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17262
17263
17264
17265
17266
17267
17268# If no C compiler was specified, use CC.
17269LTCC=${LTCC-"$CC"}
17270
17271# If no C compiler flags were specified, use CFLAGS.
17272LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17273
17274# Allow CC to be a program name with arguments.
17275compiler=$CC
17276
17277
17278# save warnings/boilerplate of simple test code
17279ac_outfile=conftest.$ac_objext
17280echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17281eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17282_lt_compiler_boilerplate=`cat conftest.err`
17283$RM conftest*
17284
17285ac_outfile=conftest.$ac_objext
17286echo "$lt_simple_link_test_code" >conftest.$ac_ext
17287eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17288_lt_linker_boilerplate=`cat conftest.err`
0da7a284 17289$RM -r conftest*
1cf3d07d
SE
17290
17291
17292# Allow CC to be a program name with arguments.
0da7a284 17293GCC=yes
1cf3d07d
SE
17294compiler=$CC
17295compiler_GCJ=$CC
17296for cc_temp in $compiler""; do
17297 case $cc_temp in
17298 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17299 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17300 \-*) ;;
17301 *) break;;
17302 esac
17303done
43e02a8a 17304cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1cf3d07d
SE
17305
17306
17307# GCJ did not exist at the time GCC didn't implicitly link libc in.
17308archive_cmds_need_lc_GCJ=no
17309
17310old_archive_cmds_GCJ=$old_archive_cmds
17311
17312## CAVEAT EMPTOR:
17313## There is no encapsulation within the following macros, do not change
17314## the running order or otherwise move them around unless you know exactly
17315## what you are doing...
17316if test -n "$compiler"; then
17317
17318lt_prog_compiler_no_builtin_flag_GCJ=
17319
17320if test "$GCC" = yes; then
43e02a8a
RW
17321 case $cc_basename in
17322 nvcc*)
17323 lt_prog_compiler_no_builtin_flag_GCJ=' -Xcompiler -fno-builtin' ;;
17324 *)
17325 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' ;;
17326 esac
1cf3d07d 17327
5213506e
RW
17328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17329$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17330if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
17331 $as_echo_n "(cached) " >&6
8107bc83 17332else
1cf3d07d
SE
17333 lt_cv_prog_compiler_rtti_exceptions=no
17334 ac_outfile=conftest.$ac_objext
17335 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17336 lt_compiler_flag="-fno-rtti -fno-exceptions"
17337 # Insert the option either (1) after the last *FLAGS variable, or
17338 # (2) before a word containing "conftest.", or (3) at the end.
17339 # Note that $ac_compile itself does not contain backslashes and begins
17340 # with a dollar sign (not a hyphen), so the echo should work correctly.
17341 # The option is referenced via a variable to avoid confusing sed.
17342 lt_compile=`echo "$ac_compile" | $SED \
17343 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17344 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17345 -e 's:$: $lt_compiler_flag:'`
43e02a8a 17346 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
17347 (eval "$lt_compile" 2>conftest.err)
17348 ac_status=$?
17349 cat conftest.err >&5
43e02a8a 17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
17351 if (exit $ac_status) && test -s "$ac_outfile"; then
17352 # The compiler can only warn and ignore the option if not recognized
17353 # So say no if there are warnings other than the usual output.
43e02a8a 17354 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
17355 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17356 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17357 lt_cv_prog_compiler_rtti_exceptions=yes
17358 fi
17359 fi
17360 $RM conftest*
8107bc83 17361
8107bc83 17362fi
5213506e
RW
17363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17364$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8107bc83 17365
1cf3d07d
SE
17366if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17367 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
ee9dd372 17368else
1cf3d07d
SE
17369 :
17370fi
5aac1dac 17371
1cf3d07d 17372fi
5aac1dac 17373
8107bc83 17374
8107bc83 17375
1cf3d07d
SE
17376 lt_prog_compiler_wl_GCJ=
17377lt_prog_compiler_pic_GCJ=
17378lt_prog_compiler_static_GCJ=
8107bc83 17379
5213506e
RW
17380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17381$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8107bc83 17382
1cf3d07d
SE
17383 if test "$GCC" = yes; then
17384 lt_prog_compiler_wl_GCJ='-Wl,'
17385 lt_prog_compiler_static_GCJ='-static'
ed698112 17386
1cf3d07d
SE
17387 case $host_os in
17388 aix*)
17389 # All AIX code is PIC.
17390 if test "$host_cpu" = ia64; then
17391 # AIX 5 now supports IA64 processor
17392 lt_prog_compiler_static_GCJ='-Bstatic'
17393 fi
47c2a6e6 17394 lt_prog_compiler_pic_GCJ='-fPIC'
1cf3d07d 17395 ;;
8107bc83 17396
1cf3d07d 17397 amigaos*)
0da7a284
PG
17398 case $host_cpu in
17399 powerpc)
17400 # see comment about AmigaOS4 .so support
17401 lt_prog_compiler_pic_GCJ='-fPIC'
17402 ;;
17403 m68k)
17404 # FIXME: we need at least 68020 code to build shared libraries, but
17405 # adding the `-m68020' flag to GCC prevents building anything better,
17406 # like `-m68040'.
17407 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17408 ;;
17409 esac
1cf3d07d 17410 ;;
5aac1dac 17411
1cf3d07d
SE
17412 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17413 # PIC is the default for these OSes.
17414 ;;
8107bc83 17415
0da7a284 17416 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
17417 # This hack is so that the source file can tell whether it is being
17418 # built for inclusion in a dll (and should export symbols for example).
17419 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17420 # (--disable-auto-import) libraries
bb44c9d2 17421
1cf3d07d 17422 ;;
8107bc83 17423
1cf3d07d
SE
17424 darwin* | rhapsody*)
17425 # PIC is the default on this platform
17426 # Common symbols not allowed in MH_DYLIB files
17427 lt_prog_compiler_pic_GCJ='-fno-common'
17428 ;;
17429
43e02a8a
RW
17430 haiku*)
17431 # PIC is the default for Haiku.
17432 # The "-static" flag exists, but is broken.
17433 lt_prog_compiler_static_GCJ=
17434 ;;
17435
1cf3d07d 17436 hpux*)
0da7a284
PG
17437 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17438 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17439 # sets the default TLS model and affects inlining.
1cf3d07d 17440 case $host_cpu in
0da7a284 17441 hppa*64*)
1cf3d07d
SE
17442 # +Z the default
17443 ;;
17444 *)
17445 lt_prog_compiler_pic_GCJ='-fPIC'
17446 ;;
17447 esac
17448 ;;
17449
17450 interix[3-9]*)
17451 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17452 # Instead, we relocate shared libraries at runtime.
17453 ;;
17454
17455 msdosdjgpp*)
17456 # Just because we use GCC doesn't mean we suddenly get shared libraries
17457 # on systems that don't support them.
17458 lt_prog_compiler_can_build_shared_GCJ=no
17459 enable_shared=no
17460 ;;
17461
17462 *nto* | *qnx*)
17463 # QNX uses GNU C++, but need to define -shared option too, otherwise
17464 # it will coredump.
17465 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17466 ;;
17467
17468 sysv4*MP*)
17469 if test -d /usr/nec; then
17470 lt_prog_compiler_pic_GCJ=-Kconform_pic
17471 fi
17472 ;;
17473
17474 *)
17475 lt_prog_compiler_pic_GCJ='-fPIC'
17476 ;;
17477 esac
43e02a8a
RW
17478
17479 case $cc_basename in
17480 nvcc*) # Cuda Compiler Driver 2.2
17481 lt_prog_compiler_wl_GCJ='-Xlinker '
17482 lt_prog_compiler_pic_GCJ='-Xcompiler -fPIC'
17483 ;;
17484 esac
8107bc83 17485 else
1cf3d07d
SE
17486 # PORTME Check for flag to pass linker flags through the system compiler.
17487 case $host_os in
17488 aix*)
17489 lt_prog_compiler_wl_GCJ='-Wl,'
17490 if test "$host_cpu" = ia64; then
17491 # AIX 5 now supports IA64 processor
17492 lt_prog_compiler_static_GCJ='-Bstatic'
17493 else
17494 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17495 fi
17496 ;;
8107bc83 17497
0da7a284 17498 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
17499 # This hack is so that the source file can tell whether it is being
17500 # built for inclusion in a dll (and should export symbols for example).
bb44c9d2 17501
1cf3d07d
SE
17502 ;;
17503
17504 hpux9* | hpux10* | hpux11*)
17505 lt_prog_compiler_wl_GCJ='-Wl,'
17506 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17507 # not for PA HP-UX.
17508 case $host_cpu in
17509 hppa*64*|ia64*)
17510 # +Z the default
17511 ;;
17512 *)
17513 lt_prog_compiler_pic_GCJ='+Z'
17514 ;;
17515 esac
17516 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17517 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17518 ;;
17519
17520 irix5* | irix6* | nonstopux*)
17521 lt_prog_compiler_wl_GCJ='-Wl,'
17522 # PIC (with -KPIC) is the default.
17523 lt_prog_compiler_static_GCJ='-non_shared'
17524 ;;
17525
7a9d3fe8 17526 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 17527 case $cc_basename in
0da7a284
PG
17528 # old Intel for x86_64 which still supported -KPIC.
17529 ecc*)
1cf3d07d
SE
17530 lt_prog_compiler_wl_GCJ='-Wl,'
17531 lt_prog_compiler_pic_GCJ='-KPIC'
17532 lt_prog_compiler_static_GCJ='-static'
17533 ;;
0da7a284
PG
17534 # icc used to be incompatible with GCC.
17535 # ICC 10 doesn't accept -KPIC any more.
17536 icc* | ifort*)
17537 lt_prog_compiler_wl_GCJ='-Wl,'
17538 lt_prog_compiler_pic_GCJ='-fPIC'
17539 lt_prog_compiler_static_GCJ='-static'
17540 ;;
17541 # Lahey Fortran 8.1.
17542 lf95*)
17543 lt_prog_compiler_wl_GCJ='-Wl,'
17544 lt_prog_compiler_pic_GCJ='--shared'
17545 lt_prog_compiler_static_GCJ='--static'
17546 ;;
43e02a8a 17547 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
1cf3d07d
SE
17548 # Portland Group compilers (*not* the Pentium gcc compiler,
17549 # which looks to be a dead project)
17550 lt_prog_compiler_wl_GCJ='-Wl,'
17551 lt_prog_compiler_pic_GCJ='-fpic'
17552 lt_prog_compiler_static_GCJ='-Bstatic'
17553 ;;
17554 ccc*)
17555 lt_prog_compiler_wl_GCJ='-Wl,'
17556 # All Alpha code is PIC.
17557 lt_prog_compiler_static_GCJ='-non_shared'
17558 ;;
43e02a8a
RW
17559 xl* | bgxl* | bgf* | mpixl*)
17560 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
0da7a284
PG
17561 lt_prog_compiler_wl_GCJ='-Wl,'
17562 lt_prog_compiler_pic_GCJ='-qpic'
17563 lt_prog_compiler_static_GCJ='-qstaticlink'
17564 ;;
1cf3d07d
SE
17565 *)
17566 case `$CC -V 2>&1 | sed 5q` in
43e02a8a
RW
17567 *Sun\ F* | *Sun*Fortran*)
17568 # Sun Fortran 8.3 passes all unrecognized flags to the linker
1cf3d07d
SE
17569 lt_prog_compiler_pic_GCJ='-KPIC'
17570 lt_prog_compiler_static_GCJ='-Bstatic'
43e02a8a 17571 lt_prog_compiler_wl_GCJ=''
1cf3d07d 17572 ;;
43e02a8a
RW
17573 *Sun\ C*)
17574 # Sun C 5.9
1cf3d07d
SE
17575 lt_prog_compiler_pic_GCJ='-KPIC'
17576 lt_prog_compiler_static_GCJ='-Bstatic'
43e02a8a 17577 lt_prog_compiler_wl_GCJ='-Wl,'
1cf3d07d
SE
17578 ;;
17579 esac
17580 ;;
17581 esac
17582 ;;
17583
17584 newsos6)
17585 lt_prog_compiler_pic_GCJ='-KPIC'
17586 lt_prog_compiler_static_GCJ='-Bstatic'
17587 ;;
17588
17589 *nto* | *qnx*)
17590 # QNX uses GNU C++, but need to define -shared option too, otherwise
17591 # it will coredump.
17592 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17593 ;;
17594
17595 osf3* | osf4* | osf5*)
17596 lt_prog_compiler_wl_GCJ='-Wl,'
17597 # All OSF/1 code is PIC.
17598 lt_prog_compiler_static_GCJ='-non_shared'
17599 ;;
17600
17601 rdos*)
17602 lt_prog_compiler_static_GCJ='-non_shared'
17603 ;;
17604
17605 solaris*)
17606 lt_prog_compiler_pic_GCJ='-KPIC'
17607 lt_prog_compiler_static_GCJ='-Bstatic'
17608 case $cc_basename in
17609 f77* | f90* | f95*)
17610 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17611 *)
17612 lt_prog_compiler_wl_GCJ='-Wl,';;
17613 esac
17614 ;;
17615
17616 sunos4*)
17617 lt_prog_compiler_wl_GCJ='-Qoption ld '
17618 lt_prog_compiler_pic_GCJ='-PIC'
17619 lt_prog_compiler_static_GCJ='-Bstatic'
17620 ;;
17621
17622 sysv4 | sysv4.2uw2* | sysv4.3*)
17623 lt_prog_compiler_wl_GCJ='-Wl,'
17624 lt_prog_compiler_pic_GCJ='-KPIC'
17625 lt_prog_compiler_static_GCJ='-Bstatic'
17626 ;;
17627
17628 sysv4*MP*)
17629 if test -d /usr/nec ;then
17630 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17631 lt_prog_compiler_static_GCJ='-Bstatic'
17632 fi
17633 ;;
17634
17635 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17636 lt_prog_compiler_wl_GCJ='-Wl,'
17637 lt_prog_compiler_pic_GCJ='-KPIC'
17638 lt_prog_compiler_static_GCJ='-Bstatic'
17639 ;;
17640
17641 unicos*)
17642 lt_prog_compiler_wl_GCJ='-Wl,'
17643 lt_prog_compiler_can_build_shared_GCJ=no
17644 ;;
17645
17646 uts4*)
17647 lt_prog_compiler_pic_GCJ='-pic'
17648 lt_prog_compiler_static_GCJ='-Bstatic'
17649 ;;
17650
17651 *)
17652 lt_prog_compiler_can_build_shared_GCJ=no
17653 ;;
17654 esac
17655 fi
17656
17657case $host_os in
17658 # For platforms which do not support PIC, -DPIC is meaningless:
17659 *djgpp*)
17660 lt_prog_compiler_pic_GCJ=
17661 ;;
17662 *)
17663 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17664 ;;
17665esac
5213506e
RW
17666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
17667$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
1cf3d07d
SE
17668
17669
17670
17671#
17672# Check to make sure the PIC flag actually works.
17673#
17674if test -n "$lt_prog_compiler_pic_GCJ"; then
5213506e
RW
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17676$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17677if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
17678 $as_echo_n "(cached) " >&6
8107bc83 17679else
0da7a284 17680 lt_cv_prog_compiler_pic_works_GCJ=no
1cf3d07d
SE
17681 ac_outfile=conftest.$ac_objext
17682 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17683 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17684 # Insert the option either (1) after the last *FLAGS variable, or
17685 # (2) before a word containing "conftest.", or (3) at the end.
17686 # Note that $ac_compile itself does not contain backslashes and begins
17687 # with a dollar sign (not a hyphen), so the echo should work correctly.
17688 # The option is referenced via a variable to avoid confusing sed.
17689 lt_compile=`echo "$ac_compile" | $SED \
17690 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17691 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17692 -e 's:$: $lt_compiler_flag:'`
43e02a8a 17693 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
17694 (eval "$lt_compile" 2>conftest.err)
17695 ac_status=$?
17696 cat conftest.err >&5
43e02a8a 17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
17698 if (exit $ac_status) && test -s "$ac_outfile"; then
17699 # The compiler can only warn and ignore the option if not recognized
17700 # So say no if there are warnings other than the usual output.
43e02a8a 17701 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
17702 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17703 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
0da7a284 17704 lt_cv_prog_compiler_pic_works_GCJ=yes
1cf3d07d
SE
17705 fi
17706 fi
17707 $RM conftest*
ee9dd372 17708
8107bc83 17709fi
5213506e
RW
17710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17711$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
1cf3d07d 17712
0da7a284 17713if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
1cf3d07d
SE
17714 case $lt_prog_compiler_pic_GCJ in
17715 "" | " "*) ;;
17716 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17717 esac
8107bc83 17718else
1cf3d07d
SE
17719 lt_prog_compiler_pic_GCJ=
17720 lt_prog_compiler_can_build_shared_GCJ=no
8107bc83 17721fi
1cf3d07d 17722
8107bc83 17723fi
ee9dd372 17724
5aac1dac
TT
17725
17726
1cf3d07d
SE
17727#
17728# Check to make sure the static flag actually works.
17729#
17730wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
5213506e
RW
17731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17732$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17733if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
17734 $as_echo_n "(cached) " >&6
44bffd9f 17735else
0da7a284 17736 lt_cv_prog_compiler_static_works_GCJ=no
1cf3d07d
SE
17737 save_LDFLAGS="$LDFLAGS"
17738 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17739 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17740 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17741 # The linker can only warn and ignore the option if not recognized
17742 # So say no if there are warnings
17743 if test -s conftest.err; then
17744 # Append any errors to the config.log.
17745 cat conftest.err 1>&5
43e02a8a 17746 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1cf3d07d
SE
17747 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17748 if diff conftest.exp conftest.er2 >/dev/null; then
0da7a284 17749 lt_cv_prog_compiler_static_works_GCJ=yes
1cf3d07d
SE
17750 fi
17751 else
0da7a284 17752 lt_cv_prog_compiler_static_works_GCJ=yes
1cf3d07d
SE
17753 fi
17754 fi
0da7a284 17755 $RM -r conftest*
1cf3d07d 17756 LDFLAGS="$save_LDFLAGS"
8107bc83 17757
1cf3d07d 17758fi
5213506e
RW
17759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17760$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
8107bc83 17761
0da7a284 17762if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
1cf3d07d
SE
17763 :
17764else
17765 lt_prog_compiler_static_GCJ=
17766fi
8107bc83 17767
8107bc83 17768
1cf3d07d
SE
17769
17770
5213506e
RW
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17772$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17773if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17774 $as_echo_n "(cached) " >&6
44bffd9f 17775else
1cf3d07d
SE
17776 lt_cv_prog_compiler_c_o_GCJ=no
17777 $RM -r conftest 2>/dev/null
17778 mkdir conftest
17779 cd conftest
17780 mkdir out
17781 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17782
17783 lt_compiler_flag="-o out/conftest2.$ac_objext"
17784 # Insert the option either (1) after the last *FLAGS variable, or
17785 # (2) before a word containing "conftest.", or (3) at the end.
17786 # Note that $ac_compile itself does not contain backslashes and begins
17787 # with a dollar sign (not a hyphen), so the echo should work correctly.
17788 lt_compile=`echo "$ac_compile" | $SED \
17789 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17790 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17791 -e 's:$: $lt_compiler_flag:'`
43e02a8a 17792 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
17793 (eval "$lt_compile" 2>out/conftest.err)
17794 ac_status=$?
17795 cat out/conftest.err >&5
43e02a8a 17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
17797 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17798 then
17799 # The compiler can only warn and ignore the option if not recognized
17800 # So say no if there are warnings
43e02a8a 17801 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
17802 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17803 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17804 lt_cv_prog_compiler_c_o_GCJ=yes
17805 fi
17806 fi
17807 chmod u+w . 2>&5
17808 $RM conftest*
17809 # SGI C++ compiler will create directory out/ii_files/ for
17810 # template instantiation
17811 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17812 $RM out/* && rmdir out
17813 cd ..
17814 $RM -r conftest
17815 $RM conftest*
44bffd9f 17816
44bffd9f 17817fi
5213506e
RW
17818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17819$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
1cf3d07d
SE
17820
17821
17822
5213506e
RW
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17824$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17825if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17826 $as_echo_n "(cached) " >&6
44bffd9f 17827else
1cf3d07d
SE
17828 lt_cv_prog_compiler_c_o_GCJ=no
17829 $RM -r conftest 2>/dev/null
17830 mkdir conftest
17831 cd conftest
17832 mkdir out
17833 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17834
17835 lt_compiler_flag="-o out/conftest2.$ac_objext"
17836 # Insert the option either (1) after the last *FLAGS variable, or
17837 # (2) before a word containing "conftest.", or (3) at the end.
17838 # Note that $ac_compile itself does not contain backslashes and begins
17839 # with a dollar sign (not a hyphen), so the echo should work correctly.
17840 lt_compile=`echo "$ac_compile" | $SED \
17841 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17842 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17843 -e 's:$: $lt_compiler_flag:'`
43e02a8a 17844 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
17845 (eval "$lt_compile" 2>out/conftest.err)
17846 ac_status=$?
17847 cat out/conftest.err >&5
43e02a8a 17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
17849 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17850 then
17851 # The compiler can only warn and ignore the option if not recognized
17852 # So say no if there are warnings
43e02a8a 17853 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
17854 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17855 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17856 lt_cv_prog_compiler_c_o_GCJ=yes
17857 fi
17858 fi
17859 chmod u+w . 2>&5
17860 $RM conftest*
17861 # SGI C++ compiler will create directory out/ii_files/ for
17862 # template instantiation
17863 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17864 $RM out/* && rmdir out
17865 cd ..
17866 $RM -r conftest
17867 $RM conftest*
17868
17869fi
5213506e
RW
17870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17871$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
1cf3d07d
SE
17872
17873
17874
17875
17876hard_links="nottested"
17877if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17878 # do not overwrite the value of need_locks provided by the user
5213506e
RW
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17880$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
17881 hard_links=yes
17882 $RM conftest*
17883 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17884 touch conftest.a
17885 ln conftest.a conftest.b 2>&5 || hard_links=no
17886 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17888$as_echo "$hard_links" >&6; }
1cf3d07d 17889 if test "$hard_links" = no; then
5213506e
RW
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17891$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
17892 need_locks=warn
17893 fi
17894else
17895 need_locks=no
17896fi
17897
17898
17899
5213506e
RW
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17901$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
17902
17903 runpath_var=
17904 allow_undefined_flag_GCJ=
17905 always_export_symbols_GCJ=no
17906 archive_cmds_GCJ=
17907 archive_expsym_cmds_GCJ=
17908 compiler_needs_object_GCJ=no
17909 enable_shared_with_static_runtimes_GCJ=no
17910 export_dynamic_flag_spec_GCJ=
17911 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17912 hardcode_automatic_GCJ=no
17913 hardcode_direct_GCJ=no
17914 hardcode_direct_absolute_GCJ=no
17915 hardcode_libdir_flag_spec_GCJ=
17916 hardcode_libdir_flag_spec_ld_GCJ=
17917 hardcode_libdir_separator_GCJ=
17918 hardcode_minus_L_GCJ=no
17919 hardcode_shlibpath_var_GCJ=unsupported
17920 inherit_rpath_GCJ=no
17921 link_all_deplibs_GCJ=unknown
17922 module_cmds_GCJ=
17923 module_expsym_cmds_GCJ=
17924 old_archive_from_new_cmds_GCJ=
17925 old_archive_from_expsyms_cmds_GCJ=
17926 thread_safe_flag_spec_GCJ=
17927 whole_archive_flag_spec_GCJ=
17928 # include_expsyms should be a list of space-separated symbols to be *always*
17929 # included in the symbol list
17930 include_expsyms_GCJ=
17931 # exclude_expsyms can be an extended regexp of symbols to exclude
17932 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17933 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17934 # as well as any symbol that contains `d'.
0da7a284 17935 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
17936 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17937 # platforms (ab)use it in PIC code, but their linkers get confused if
17938 # the symbol is explicitly referenced. Since portable code cannot
17939 # rely on this symbol name, it's probably fine to never include it in
17940 # preloaded symbol tables.
0da7a284 17941 # Exclude shared library initialization/finalization symbols.
1cf3d07d 17942 extract_expsyms_cmds=
44bffd9f 17943
1cf3d07d 17944 case $host_os in
0da7a284 17945 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
17946 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17947 # When not using gcc, we currently assume that we are using
17948 # Microsoft Visual C++.
17949 if test "$GCC" != yes; then
17950 with_gnu_ld=no
17951 fi
17952 ;;
17953 interix*)
17954 # we just hope/assume this is gcc and not c89 (= MSVC++)
17955 with_gnu_ld=yes
17956 ;;
17957 openbsd*)
17958 with_gnu_ld=no
17959 ;;
17960 esac
17961
17962 ld_shlibs_GCJ=yes
43e02a8a
RW
17963
17964 # On some targets, GNU ld is compatible enough with the native linker
17965 # that we're better off using the native interface for both.
17966 lt_use_gnu_ld_interface=no
1cf3d07d 17967 if test "$with_gnu_ld" = yes; then
43e02a8a
RW
17968 case $host_os in
17969 aix*)
17970 # The AIX port of GNU ld has always aspired to compatibility
17971 # with the native linker. However, as the warning in the GNU ld
17972 # block says, versions before 2.19.5* couldn't really create working
17973 # shared libraries, regardless of the interface used.
17974 case `$LD -v 2>&1` in
17975 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17976 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17977 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17978 *)
17979 lt_use_gnu_ld_interface=yes
17980 ;;
17981 esac
17982 ;;
17983 *)
17984 lt_use_gnu_ld_interface=yes
17985 ;;
17986 esac
17987 fi
17988
17989 if test "$lt_use_gnu_ld_interface" = yes; then
1cf3d07d
SE
17990 # If archive_cmds runs LD, not CC, wlarc should be empty
17991 wlarc='${wl}'
17992
17993 # Set some defaults for GNU ld with shared library support. These
17994 # are reset later if shared libraries are not supported. Putting them
17995 # here allows them to be overridden if necessary.
17996 runpath_var=LD_RUN_PATH
17997 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17998 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17999 # ancient GNU ld didn't support --whole-archive et. al.
18000 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
18001 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18002 else
18003 whole_archive_flag_spec_GCJ=
18004 fi
18005 supports_anon_versioning=no
18006 case `$LD -v 2>&1` in
43e02a8a 18007 *GNU\ gold*) supports_anon_versioning=yes ;;
1cf3d07d
SE
18008 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18009 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18010 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18011 *\ 2.11.*) ;; # other 2.11 versions
18012 *) supports_anon_versioning=yes ;;
18013 esac
18014
18015 # See if GNU ld supports shared libraries.
18016 case $host_os in
ed44a2c7 18017 aix[3-9]*)
1cf3d07d
SE
18018 # On AIX/PPC, the GNU linker is very broken
18019 if test "$host_cpu" != ia64; then
18020 ld_shlibs_GCJ=no
18021 cat <<_LT_EOF 1>&2
18022
43e02a8a 18023*** Warning: the GNU linker, at least up to release 2.19, is reported
1cf3d07d
SE
18024*** to be unable to reliably create shared libraries on AIX.
18025*** Therefore, libtool is disabling shared libraries support. If you
43e02a8a
RW
18026*** really care for shared libraries, you may want to install binutils
18027*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
18028*** You will then need to restart the configuration process.
1cf3d07d
SE
18029
18030_LT_EOF
18031 fi
18032 ;;
18033
18034 amigaos*)
0da7a284
PG
18035 case $host_cpu in
18036 powerpc)
18037 # see comment about AmigaOS4 .so support
18038 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18039 archive_expsym_cmds_GCJ=''
18040 ;;
18041 m68k)
18042 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)'
18043 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18044 hardcode_minus_L_GCJ=yes
18045 ;;
18046 esac
1cf3d07d
SE
18047 ;;
18048
18049 beos*)
18050 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18051 allow_undefined_flag_GCJ=unsupported
18052 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18053 # support --undefined. This deserves some investigation. FIXME
18054 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18055 else
18056 ld_shlibs_GCJ=no
18057 fi
18058 ;;
18059
0da7a284 18060 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
18061 # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18062 # as there is no search path for DLLs.
18063 hardcode_libdir_flag_spec_GCJ='-L$libdir'
43e02a8a 18064 export_dynamic_flag_spec_GCJ='${wl}--export-all-symbols'
1cf3d07d
SE
18065 allow_undefined_flag_GCJ=unsupported
18066 always_export_symbols_GCJ=no
18067 enable_shared_with_static_runtimes_GCJ=yes
18068 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18069
18070 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18071 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18072 # If the export-symbols file already is a .def file (1st line
18073 # is EXPORTS), use it as is; otherwise, prepend...
18074 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18075 cp $export_symbols $output_objdir/$soname.def;
18076 else
18077 echo EXPORTS > $output_objdir/$soname.def;
18078 cat $export_symbols >> $output_objdir/$soname.def;
18079 fi~
18080 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18081 else
18082 ld_shlibs_GCJ=no
18083 fi
18084 ;;
18085
43e02a8a
RW
18086 haiku*)
18087 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18088 link_all_deplibs_GCJ=yes
18089 ;;
18090
1cf3d07d
SE
18091 interix[3-9]*)
18092 hardcode_direct_GCJ=no
18093 hardcode_shlibpath_var_GCJ=no
18094 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18095 export_dynamic_flag_spec_GCJ='${wl}-E'
18096 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18097 # Instead, shared libraries are loaded at an image base (0x10000000 by
18098 # default) and relocated if they conflict, which is a slow very memory
18099 # consuming and fragmenting process. To avoid this, we pick a random,
18100 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18101 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18102 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'
18103 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'
18104 ;;
18105
7a9d3fe8 18106 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
18107 tmp_diet=no
18108 if test "$host_os" = linux-dietlibc; then
18109 case $cc_basename in
18110 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
18111 esac
18112 fi
18113 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
18114 && test "$tmp_diet" = no
18115 then
18116 tmp_addflag=
0da7a284 18117 tmp_sharedflag='-shared'
1cf3d07d
SE
18118 case $cc_basename,$host_cpu in
18119 pgcc*) # Portland Group C compiler
43e02a8a 18120 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
18121 tmp_addflag=' $pic_flag'
18122 ;;
43e02a8a
RW
18123 pgf77* | pgf90* | pgf95* | pgfortran*)
18124 # Portland Group f77 and f90 compilers
18125 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
18126 tmp_addflag=' $pic_flag -Mnomain' ;;
18127 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18128 tmp_addflag=' -i_dynamic' ;;
18129 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18130 tmp_addflag=' -i_dynamic -nofor_main' ;;
18131 ifc* | ifort*) # Intel Fortran compiler
18132 tmp_addflag=' -nofor_main' ;;
0da7a284
PG
18133 lf95*) # Lahey Fortran 8.1
18134 whole_archive_flag_spec_GCJ=
18135 tmp_sharedflag='--shared' ;;
43e02a8a 18136 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
0da7a284
PG
18137 tmp_sharedflag='-qmkshrobj'
18138 tmp_addflag= ;;
43e02a8a
RW
18139 nvcc*) # Cuda Compiler Driver 2.2
18140 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
18141 compiler_needs_object_GCJ=yes
18142 ;;
1cf3d07d
SE
18143 esac
18144 case `$CC -V 2>&1 | sed 5q` in
18145 *Sun\ C*) # Sun C 5.9
43e02a8a 18146 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
18147 compiler_needs_object_GCJ=yes
18148 tmp_sharedflag='-G' ;;
18149 *Sun\ F*) # Sun Fortran 8.3
18150 tmp_sharedflag='-G' ;;
1cf3d07d
SE
18151 esac
18152 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18153
18154 if test "x$supports_anon_versioning" = xyes; then
18155 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18156 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18157 echo "local: *; };" >> $output_objdir/$libname.ver~
18158 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18159 fi
0da7a284
PG
18160
18161 case $cc_basename in
43e02a8a 18162 xlf* | bgf* | bgxlf* | mpixlf*)
0da7a284
PG
18163 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
18164 whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
18165 hardcode_libdir_flag_spec_GCJ=
18166 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18167 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
18168 if test "x$supports_anon_versioning" = xyes; then
18169 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18170 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18171 echo "local: *; };" >> $output_objdir/$libname.ver~
18172 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
18173 fi
18174 ;;
18175 esac
1cf3d07d
SE
18176 else
18177 ld_shlibs_GCJ=no
18178 fi
18179 ;;
18180
18181 netbsd*)
18182 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18183 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18184 wlarc=
18185 else
18186 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18187 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18188 fi
18189 ;;
18190
18191 solaris*)
18192 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
18193 ld_shlibs_GCJ=no
18194 cat <<_LT_EOF 1>&2
18195
18196*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18197*** create shared libraries on Solaris systems. Therefore, libtool
18198*** is disabling shared libraries support. We urge you to upgrade GNU
18199*** binutils to release 2.9.1 or newer. Another option is to modify
18200*** your PATH or compiler configuration so that the native linker is
18201*** used, and then restart.
18202
18203_LT_EOF
18204 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18205 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18206 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18207 else
18208 ld_shlibs_GCJ=no
18209 fi
18210 ;;
18211
18212 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18213 case `$LD -v 2>&1` in
18214 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18215 ld_shlibs_GCJ=no
18216 cat <<_LT_EOF 1>&2
18217
18218*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18219*** reliably create shared libraries on SCO systems. Therefore, libtool
18220*** is disabling shared libraries support. We urge you to upgrade GNU
18221*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18222*** your PATH or compiler configuration so that the native linker is
18223*** used, and then restart.
18224
18225_LT_EOF
18226 ;;
18227 *)
18228 # For security reasons, it is highly recommended that you always
18229 # use absolute paths for naming shared libraries, and exclude the
18230 # DT_RUNPATH tag from executables and libraries. But doing so
18231 # requires that you compile everything twice, which is a pain.
18232 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18233 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18234 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18235 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18236 else
18237 ld_shlibs_GCJ=no
18238 fi
18239 ;;
18240 esac
18241 ;;
18242
18243 sunos4*)
18244 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18245 wlarc=
18246 hardcode_direct_GCJ=yes
18247 hardcode_shlibpath_var_GCJ=no
18248 ;;
18249
18250 *)
18251 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18252 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18253 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18254 else
18255 ld_shlibs_GCJ=no
18256 fi
18257 ;;
18258 esac
18259
18260 if test "$ld_shlibs_GCJ" = no; then
18261 runpath_var=
18262 hardcode_libdir_flag_spec_GCJ=
18263 export_dynamic_flag_spec_GCJ=
18264 whole_archive_flag_spec_GCJ=
18265 fi
18266 else
18267 # PORTME fill in a description of your system's linker (not GNU ld)
18268 case $host_os in
18269 aix3*)
18270 allow_undefined_flag_GCJ=unsupported
18271 always_export_symbols_GCJ=yes
18272 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'
18273 # Note: this linker hardcodes the directories in LIBPATH if there
18274 # are no directories specified by -L.
18275 hardcode_minus_L_GCJ=yes
18276 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18277 # Neither direct hardcoding nor static linking is supported with a
18278 # broken collect2.
18279 hardcode_direct_GCJ=unsupported
18280 fi
18281 ;;
18282
ed44a2c7 18283 aix[4-9]*)
1cf3d07d
SE
18284 if test "$host_cpu" = ia64; then
18285 # On IA64, the linker does run time linking by default, so we don't
18286 # have to do anything special.
18287 aix_use_runtimelinking=no
18288 exp_sym_flag='-Bexport'
18289 no_entry_flag=""
18290 else
18291 # If we're using GNU nm, then we don't want the "-C" option.
18292 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
18293 # Also, AIX nm treats weak defined symbols like other global
18294 # defined symbols, whereas GNU nm marks them as "W".
1cf3d07d 18295 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 18296 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1cf3d07d
SE
18297 else
18298 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'
18299 fi
18300 aix_use_runtimelinking=no
18301
18302 # Test if we are trying to use run time linking or normal
18303 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18304 # need to do runtime linking.
ed44a2c7 18305 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
18306 for ld_flag in $LDFLAGS; do
18307 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18308 aix_use_runtimelinking=yes
18309 break
18310 fi
18311 done
18312 ;;
18313 esac
18314
18315 exp_sym_flag='-bexport'
18316 no_entry_flag='-bnoentry'
18317 fi
18318
18319 # When large executables or shared objects are built, AIX ld can
18320 # have problems creating the table of contents. If linking a library
18321 # or program results in "error TOC overflow" add -mminimal-toc to
18322 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18323 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18324
18325 archive_cmds_GCJ=''
18326 hardcode_direct_GCJ=yes
18327 hardcode_direct_absolute_GCJ=yes
18328 hardcode_libdir_separator_GCJ=':'
18329 link_all_deplibs_GCJ=yes
18330 file_list_spec_GCJ='${wl}-f,'
18331
18332 if test "$GCC" = yes; then
18333 case $host_os in aix4.[012]|aix4.[012].*)
18334 # We only want to do this on AIX 4.2 and lower, the check
18335 # below for broken collect2 doesn't work under 4.3+
18336 collect2name=`${CC} -print-prog-name=collect2`
18337 if test -f "$collect2name" &&
18338 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18339 then
18340 # We have reworked collect2
18341 :
18342 else
18343 # We have old collect2
18344 hardcode_direct_GCJ=unsupported
18345 # It fails to find uninstalled libraries when the uninstalled
18346 # path is not listed in the libpath. Setting hardcode_minus_L
18347 # to unsupported forces relinking
18348 hardcode_minus_L_GCJ=yes
18349 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18350 hardcode_libdir_separator_GCJ=
18351 fi
18352 ;;
18353 esac
18354 shared_flag='-shared'
18355 if test "$aix_use_runtimelinking" = yes; then
18356 shared_flag="$shared_flag "'${wl}-G'
18357 fi
18358 else
18359 # not using gcc
18360 if test "$host_cpu" = ia64; then
18361 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18362 # chokes on -Wl,-G. The following line is correct:
18363 shared_flag='-G'
18364 else
18365 if test "$aix_use_runtimelinking" = yes; then
18366 shared_flag='${wl}-G'
18367 else
18368 shared_flag='${wl}-bM:SRE'
18369 fi
18370 fi
18371 fi
18372
0da7a284 18373 export_dynamic_flag_spec_GCJ='${wl}-bexpall'
1cf3d07d
SE
18374 # It seems that -bexpall does not export symbols beginning with
18375 # underscore (_), so it is better to generate a list of symbols to export.
18376 always_export_symbols_GCJ=yes
18377 if test "$aix_use_runtimelinking" = yes; then
18378 # Warning - without using the other runtime loading flags (-brtl),
18379 # -berok will link without error, but may produce a broken library.
18380 allow_undefined_flag_GCJ='-berok'
18381 # Determine the default libpath from the value encoded in an
18382 # empty executable.
18383 if test x$gcc_no_link = xyes; then
5213506e 18384 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 18385fi
5213506e 18386cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8107bc83 18387/* end confdefs.h. */
1cf3d07d 18388
8107bc83
KC
18389int
18390main ()
18391{
1cf3d07d 18392
8107bc83
KC
18393 ;
18394 return 0;
18395}
18396_ACEOF
5213506e 18397if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
18398
18399lt_aix_libpath_sed='
18400 /Import File Strings/,/^$/ {
18401 /^0/ {
18402 s/^0 *\(.*\)$/\1/
18403 p
18404 }
18405 }'
18406aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18407# Check for a 64-bit object if we didn't find anything.
18408if test -z "$aix_libpath"; then
18409 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8107bc83 18410fi
44bffd9f 18411fi
5213506e
RW
18412rm -f core conftest.err conftest.$ac_objext \
18413 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
18414if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18415
18416 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
43e02a8a 18417 archive_expsym_cmds_GCJ='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1cf3d07d
SE
18418 else
18419 if test "$host_cpu" = ia64; then
18420 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18421 allow_undefined_flag_GCJ="-z nodefs"
18422 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"
18423 else
18424 # Determine the default libpath from the value encoded in an
18425 # empty executable.
18426 if test x$gcc_no_link = xyes; then
5213506e 18427 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 18428fi
5213506e 18429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44bffd9f 18430/* end confdefs.h. */
1cf3d07d 18431
8107bc83
KC
18432int
18433main ()
18434{
1cf3d07d
SE
18435
18436 ;
18437 return 0;
44bffd9f
AT
18438}
18439_ACEOF
5213506e 18440if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
18441
18442lt_aix_libpath_sed='
18443 /Import File Strings/,/^$/ {
18444 /^0/ {
18445 s/^0 *\(.*\)$/\1/
18446 p
18447 }
18448 }'
18449aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18450# Check for a 64-bit object if we didn't find anything.
18451if test -z "$aix_libpath"; then
18452 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18453fi
44bffd9f 18454fi
5213506e
RW
18455rm -f core conftest.err conftest.$ac_objext \
18456 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
18457if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18458
18459 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18460 # Warning - without using the other run time loading flags,
18461 # -berok will link without error, but may produce a broken library.
18462 no_undefined_flag_GCJ=' ${wl}-bernotok'
18463 allow_undefined_flag_GCJ=' ${wl}-berok'
43e02a8a
RW
18464 if test "$with_gnu_ld" = yes; then
18465 # We only use this code for GNU lds that support --whole-archive.
18466 whole_archive_flag_spec_GCJ='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18467 else
18468 # Exported symbols can be pulled into shared objects from archives
18469 whole_archive_flag_spec_GCJ='$convenience'
18470 fi
1cf3d07d
SE
18471 archive_cmds_need_lc_GCJ=yes
18472 # This is similar to how AIX traditionally builds its shared libraries.
18473 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'
18474 fi
18475 fi
18476 ;;
44bffd9f 18477
1cf3d07d 18478 amigaos*)
0da7a284
PG
18479 case $host_cpu in
18480 powerpc)
18481 # see comment about AmigaOS4 .so support
18482 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18483 archive_expsym_cmds_GCJ=''
18484 ;;
18485 m68k)
18486 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)'
18487 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18488 hardcode_minus_L_GCJ=yes
18489 ;;
18490 esac
1cf3d07d 18491 ;;
44bffd9f 18492
1cf3d07d
SE
18493 bsdi[45]*)
18494 export_dynamic_flag_spec_GCJ=-rdynamic
18495 ;;
44bffd9f 18496
0da7a284 18497 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
18498 # When not using gcc, we currently assume that we are using
18499 # Microsoft Visual C++.
18500 # hardcode_libdir_flag_spec is actually meaningless, as there is
18501 # no search path for DLLs.
18502 hardcode_libdir_flag_spec_GCJ=' '
18503 allow_undefined_flag_GCJ=unsupported
18504 # Tell ltmain to make .lib files, not .a files.
18505 libext=lib
18506 # Tell ltmain to make .dll files, not .so files.
18507 shrext_cmds=".dll"
18508 # FIXME: Setting linknames here is a bad hack.
43e02a8a 18509 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1cf3d07d
SE
18510 # The linker will automatically build a .lib file if we build a DLL.
18511 old_archive_from_new_cmds_GCJ='true'
18512 # FIXME: Should let the user specify the lib program.
18513 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18514 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18515 enable_shared_with_static_runtimes_GCJ=yes
18516 ;;
5aac1dac 18517
1cf3d07d 18518 darwin* | rhapsody*)
ee9dd372 18519
0da7a284
PG
18520
18521 archive_cmds_need_lc_GCJ=no
18522 hardcode_direct_GCJ=no
18523 hardcode_automatic_GCJ=yes
18524 hardcode_shlibpath_var_GCJ=unsupported
43e02a8a
RW
18525 if test "$lt_cv_ld_force_load" = "yes"; then
18526 whole_archive_flag_spec_GCJ='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
18527 else
18528 whole_archive_flag_spec_GCJ=''
18529 fi
0da7a284
PG
18530 link_all_deplibs_GCJ=yes
18531 allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
18532 case $cc_basename in
18533 ifort*) _lt_dar_can_shared=yes ;;
18534 *) _lt_dar_can_shared=$GCC ;;
18535 esac
18536 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 18537 output_verbose_link_cmd=func_echo_all
0da7a284
PG
18538 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}"
18539 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18540 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}"
18541 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}"
18542
18543 else
18544 ld_shlibs_GCJ=no
18545 fi
18546
1cf3d07d 18547 ;;
5aac1dac 18548
1cf3d07d
SE
18549 dgux*)
18550 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18551 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18552 hardcode_shlibpath_var_GCJ=no
18553 ;;
5aac1dac 18554
1cf3d07d
SE
18555 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18556 # support. Future versions do this automatically, but an explicit c++rt0.o
18557 # does not break anything, and helps significantly (at the cost of a little
18558 # extra space).
18559 freebsd2.2*)
18560 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18561 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18562 hardcode_direct_GCJ=yes
18563 hardcode_shlibpath_var_GCJ=no
18564 ;;
5aac1dac 18565
1cf3d07d 18566 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
c6084f68 18567 freebsd2.*)
1cf3d07d
SE
18568 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18569 hardcode_direct_GCJ=yes
18570 hardcode_minus_L_GCJ=yes
18571 hardcode_shlibpath_var_GCJ=no
18572 ;;
5aac1dac 18573
1cf3d07d
SE
18574 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18575 freebsd* | dragonfly*)
18576 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18577 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18578 hardcode_direct_GCJ=yes
18579 hardcode_shlibpath_var_GCJ=no
18580 ;;
5aac1dac 18581
1cf3d07d
SE
18582 hpux9*)
18583 if test "$GCC" = yes; then
18584 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'
18585 else
18586 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'
18587 fi
18588 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18589 hardcode_libdir_separator_GCJ=:
18590 hardcode_direct_GCJ=yes
18591
18592 # hardcode_minus_L: Not really in the search PATH,
18593 # but as the default location of the library.
18594 hardcode_minus_L_GCJ=yes
18595 export_dynamic_flag_spec_GCJ='${wl}-E'
18596 ;;
5aac1dac 18597
1cf3d07d 18598 hpux10*)
43e02a8a 18599 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
18600 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18601 else
18602 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18603 fi
18604 if test "$with_gnu_ld" = no; then
18605 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18606 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18607 hardcode_libdir_separator_GCJ=:
18608 hardcode_direct_GCJ=yes
18609 hardcode_direct_absolute_GCJ=yes
18610 export_dynamic_flag_spec_GCJ='${wl}-E'
18611 # hardcode_minus_L: Not really in the search PATH,
18612 # but as the default location of the library.
18613 hardcode_minus_L_GCJ=yes
18614 fi
18615 ;;
5aac1dac 18616
1cf3d07d 18617 hpux11*)
43e02a8a 18618 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
18619 case $host_cpu in
18620 hppa*64*)
18621 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18622 ;;
18623 ia64*)
0da7a284 18624 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
18625 ;;
18626 *)
18627 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18628 ;;
18629 esac
18630 else
18631 case $host_cpu in
18632 hppa*64*)
18633 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18634 ;;
18635 ia64*)
18636 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18637 ;;
18638 *)
43e02a8a 18639 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
18640 ;;
18641 esac
18642 fi
18643 if test "$with_gnu_ld" = no; then
18644 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18645 hardcode_libdir_separator_GCJ=:
18646
18647 case $host_cpu in
18648 hppa*64*|ia64*)
18649 hardcode_direct_GCJ=no
18650 hardcode_shlibpath_var_GCJ=no
18651 ;;
18652 *)
18653 hardcode_direct_GCJ=yes
18654 hardcode_direct_absolute_GCJ=yes
18655 export_dynamic_flag_spec_GCJ='${wl}-E'
18656
18657 # hardcode_minus_L: Not really in the search PATH,
18658 # but as the default location of the library.
18659 hardcode_minus_L_GCJ=yes
18660 ;;
18661 esac
18662 fi
18663 ;;
c4ebd83d 18664
1cf3d07d
SE
18665 irix5* | irix6* | nonstopux*)
18666 if test "$GCC" = yes; then
43e02a8a 18667 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
18668 # Try to use the -exported_symbol ld option, if it does not
18669 # work, assume that -exports_file does not work either and
18670 # implicitly export all symbols.
18671 save_LDFLAGS="$LDFLAGS"
18672 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18673 if test x$gcc_no_link = xyes; then
5213506e 18674 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ee9dd372 18675fi
5213506e
RW
18676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18677/* end confdefs.h. */
1cf3d07d
SE
18678int foo(void) {}
18679_ACEOF
5213506e 18680if ac_fn_c_try_link "$LINENO"; then :
43e02a8a 18681 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
ee9dd372 18682
97b8365c 18683fi
5213506e
RW
18684rm -f core conftest.err conftest.$ac_objext \
18685 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
18686 LDFLAGS="$save_LDFLAGS"
18687 else
43e02a8a
RW
18688 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
18689 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
1cf3d07d
SE
18690 fi
18691 archive_cmds_need_lc_GCJ='no'
18692 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18693 hardcode_libdir_separator_GCJ=:
18694 inherit_rpath_GCJ=yes
18695 link_all_deplibs_GCJ=yes
18696 ;;
97b8365c 18697
1cf3d07d
SE
18698 netbsd*)
18699 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18700 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18701 else
18702 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18703 fi
18704 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18705 hardcode_direct_GCJ=yes
18706 hardcode_shlibpath_var_GCJ=no
18707 ;;
97b8365c 18708
1cf3d07d
SE
18709 newsos6)
18710 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18711 hardcode_direct_GCJ=yes
18712 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18713 hardcode_libdir_separator_GCJ=:
18714 hardcode_shlibpath_var_GCJ=no
18715 ;;
97b8365c 18716
1cf3d07d
SE
18717 *nto* | *qnx*)
18718 ;;
ee9dd372 18719
1cf3d07d 18720 openbsd*)
0da7a284
PG
18721 if test -f /usr/libexec/ld.so; then
18722 hardcode_direct_GCJ=yes
18723 hardcode_shlibpath_var_GCJ=no
18724 hardcode_direct_absolute_GCJ=yes
18725 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 18726 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
0da7a284 18727 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 18728 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
0da7a284
PG
18729 export_dynamic_flag_spec_GCJ='${wl}-E'
18730 else
18731 case $host_os in
18732 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18733 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18734 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18735 ;;
18736 *)
18737 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18738 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18739 ;;
18740 esac
18741 fi
18742 else
18743 ld_shlibs_GCJ=no
1cf3d07d
SE
18744 fi
18745 ;;
5aac1dac 18746
1cf3d07d
SE
18747 os2*)
18748 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18749 hardcode_minus_L_GCJ=yes
18750 allow_undefined_flag_GCJ=unsupported
43e02a8a 18751 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'
1cf3d07d
SE
18752 old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18753 ;;
e3f92d3b 18754
1cf3d07d
SE
18755 osf3*)
18756 if test "$GCC" = yes; then
18757 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 18758 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
18759 else
18760 allow_undefined_flag_GCJ=' -expect_unresolved \*'
43e02a8a 18761 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
18762 fi
18763 archive_cmds_need_lc_GCJ='no'
18764 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18765 hardcode_libdir_separator_GCJ=:
18766 ;;
5aac1dac 18767
1cf3d07d
SE
18768 osf4* | osf5*) # as osf3* with the addition of -msym flag
18769 if test "$GCC" = yes; then
18770 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 18771 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
18772 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18773 else
18774 allow_undefined_flag_GCJ=' -expect_unresolved \*'
43e02a8a 18775 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
1cf3d07d 18776 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~
43e02a8a 18777 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
1cf3d07d
SE
18778
18779 # Both c and cxx compiler support -rpath directly
18780 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18781 fi
18782 archive_cmds_need_lc_GCJ='no'
18783 hardcode_libdir_separator_GCJ=:
18784 ;;
5aac1dac 18785
1cf3d07d
SE
18786 solaris*)
18787 no_undefined_flag_GCJ=' -z defs'
18788 if test "$GCC" = yes; then
18789 wlarc='${wl}'
18790 archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18791 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18792 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18793 else
18794 case `$CC -V 2>&1` in
18795 *"Compilers 5.0"*)
18796 wlarc=''
18797 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18798 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18799 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18800 ;;
18801 *)
18802 wlarc='${wl}'
18803 archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18804 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18805 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18806 ;;
18807 esac
18808 fi
18809 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18810 hardcode_shlibpath_var_GCJ=no
18811 case $host_os in
18812 solaris2.[0-5] | solaris2.[0-5].*) ;;
18813 *)
18814 # The compiler driver will combine and reorder linker options,
18815 # but understands `-z linker_flag'. GCC discards it without `$wl',
18816 # but is careful enough not to reorder.
18817 # Supported since Solaris 2.6 (maybe 2.5.1?)
18818 if test "$GCC" = yes; then
18819 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18820 else
18821 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18822 fi
18823 ;;
18824 esac
18825 link_all_deplibs_GCJ=yes
18826 ;;
5aac1dac 18827
1cf3d07d
SE
18828 sunos4*)
18829 if test "x$host_vendor" = xsequent; then
18830 # Use $CC to link under sequent, because it throws in some extra .o
18831 # files that make .init and .fini sections work.
18832 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18833 else
18834 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18835 fi
18836 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18837 hardcode_direct_GCJ=yes
18838 hardcode_minus_L_GCJ=yes
18839 hardcode_shlibpath_var_GCJ=no
18840 ;;
5aac1dac 18841
1cf3d07d
SE
18842 sysv4)
18843 case $host_vendor in
18844 sni)
18845 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18846 hardcode_direct_GCJ=yes # is this really true???
18847 ;;
18848 siemens)
18849 ## LD is ld it makes a PLAMLIB
18850 ## CC just makes a GrossModule.
18851 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18852 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18853 hardcode_direct_GCJ=no
18854 ;;
18855 motorola)
18856 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18857 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18858 ;;
18859 esac
18860 runpath_var='LD_RUN_PATH'
18861 hardcode_shlibpath_var_GCJ=no
18862 ;;
84af16a6 18863
1cf3d07d
SE
18864 sysv4.3*)
18865 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18866 hardcode_shlibpath_var_GCJ=no
18867 export_dynamic_flag_spec_GCJ='-Bexport'
18868 ;;
84af16a6 18869
1cf3d07d
SE
18870 sysv4*MP*)
18871 if test -d /usr/nec; then
18872 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18873 hardcode_shlibpath_var_GCJ=no
18874 runpath_var=LD_RUN_PATH
18875 hardcode_runpath_var=yes
18876 ld_shlibs_GCJ=yes
18877 fi
18878 ;;
5aac1dac 18879
1cf3d07d
SE
18880 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18881 no_undefined_flag_GCJ='${wl}-z,text'
18882 archive_cmds_need_lc_GCJ=no
18883 hardcode_shlibpath_var_GCJ=no
18884 runpath_var='LD_RUN_PATH'
ed698112 18885
1cf3d07d
SE
18886 if test "$GCC" = yes; then
18887 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18888 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18889 else
18890 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18891 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18892 fi
18893 ;;
ed698112 18894
1cf3d07d
SE
18895 sysv5* | sco3.2v5* | sco5v6*)
18896 # Note: We can NOT use -z defs as we might desire, because we do not
18897 # link with -lc, and that would cause any symbols used from libc to
18898 # always be unresolved, which means just about no library would
18899 # ever link correctly. If we're not using GNU ld we use -z text
18900 # though, which does catch some bad symbols but isn't as heavy-handed
18901 # as -z defs.
18902 no_undefined_flag_GCJ='${wl}-z,text'
18903 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18904 archive_cmds_need_lc_GCJ=no
18905 hardcode_shlibpath_var_GCJ=no
18906 hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
18907 hardcode_libdir_separator_GCJ=':'
18908 link_all_deplibs_GCJ=yes
18909 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18910 runpath_var='LD_RUN_PATH'
18911
18912 if test "$GCC" = yes; then
18913 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18914 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18915 else
18916 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18917 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18918 fi
18919 ;;
ed698112 18920
1cf3d07d
SE
18921 uts4*)
18922 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18923 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18924 hardcode_shlibpath_var_GCJ=no
18925 ;;
dafb7f3f 18926
1cf3d07d
SE
18927 *)
18928 ld_shlibs_GCJ=no
18929 ;;
18930 esac
b6121641 18931
1cf3d07d
SE
18932 if test x$host_vendor = xsni; then
18933 case $host in
18934 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18935 export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
18936 ;;
18937 esac
18938 fi
18939 fi
b6121641 18940
5213506e
RW
18941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
18942$as_echo "$ld_shlibs_GCJ" >&6; }
1cf3d07d 18943test "$ld_shlibs_GCJ" = no && can_build_shared=no
b6121641 18944
1cf3d07d 18945with_gnu_ld_GCJ=$with_gnu_ld
b6121641
TF
18946
18947
1cf3d07d
SE
18948
18949
18950
18951
18952#
18953# Do we need to explicitly link libc?
18954#
18955case "x$archive_cmds_need_lc_GCJ" in
18956x|xyes)
18957 # Assume -lc should be added
18958 archive_cmds_need_lc_GCJ=yes
18959
18960 if test "$enable_shared" = yes && test "$GCC" = yes; then
18961 case $archive_cmds_GCJ in
18962 *'~'*)
18963 # FIXME: we may have to deal with multi-command sequences.
18964 ;;
18965 '$CC '*)
18966 # Test whether the compiler implicitly links with -lc since on some
18967 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18968 # to ld, don't add -lc before -lgcc.
5213506e
RW
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18970$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18971if test "${lt_cv_archive_cmds_need_lc_GCJ+set}" = set; then :
18972 $as_echo_n "(cached) " >&6
baafc534
RW
18973else
18974 $RM conftest*
18975 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 18976
5213506e 18977 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
18978 (eval $ac_compile) 2>&5
18979 ac_status=$?
5213506e
RW
18980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18981 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
18982 soname=conftest
18983 lib=conftest
18984 libobjs=conftest.$ac_objext
18985 deplibs=
18986 wl=$lt_prog_compiler_wl_GCJ
18987 pic_flag=$lt_prog_compiler_pic_GCJ
18988 compiler_flags=-v
18989 linker_flags=-v
18990 verstring=
18991 output_objdir=.
18992 libname=conftest
18993 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18994 allow_undefined_flag_GCJ=
5213506e 18995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d
SE
18996 (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18997 ac_status=$?
5213506e
RW
18998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18999 test $ac_status = 0; }
baafc534
RW
19000 then
19001 lt_cv_archive_cmds_need_lc_GCJ=no
19002 else
19003 lt_cv_archive_cmds_need_lc_GCJ=yes
19004 fi
19005 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19006 else
19007 cat conftest.err 1>&5
19008 fi
19009 $RM conftest*
19010
19011fi
5213506e
RW
19012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GCJ" >&5
19013$as_echo "$lt_cv_archive_cmds_need_lc_GCJ" >&6; }
baafc534 19014 archive_cmds_need_lc_GCJ=$lt_cv_archive_cmds_need_lc_GCJ
1cf3d07d
SE
19015 ;;
19016 esac
19017 fi
19018 ;;
0da7a284
PG
19019esac
19020
19021
19022
19023
19024
19025
19026
ed698112 19027
ed698112 19028
ed698112 19029
ed698112 19030
ed698112 19031
2622c79d 19032
ed698112 19033
2622c79d 19034
2622c79d 19035
2622c79d
RR
19036
19037
19038
19039
5950e016 19040
5950e016 19041
02731d29 19042
5950e016
BM
19043
19044
1cf3d07d 19045
1cf3d07d 19046
1cf3d07d 19047
2622c79d 19048
b9e6a2e5 19049
ade710a5 19050
b9e6a2e5 19051
b9e6a2e5 19052
1cf3d07d
SE
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
5213506e
RW
19084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19085$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
19086hardcode_action_GCJ=
19087if test -n "$hardcode_libdir_flag_spec_GCJ" ||
19088 test -n "$runpath_var_GCJ" ||
19089 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19090
19091 # We can hardcode non-existent directories.
19092 if test "$hardcode_direct_GCJ" != no &&
19093 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19094 # have to relink, otherwise we might link with an installed library
19095 # when we should be linking with a yet-to-be-installed one
19096 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19097 test "$hardcode_minus_L_GCJ" != no; then
19098 # Linking always hardcodes the temporary library directory.
19099 hardcode_action_GCJ=relink
19100 else
19101 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19102 hardcode_action_GCJ=immediate
19103 fi
b9e6a2e5 19104else
1cf3d07d
SE
19105 # We cannot hardcode anything, or else we can only hardcode existing
19106 # directories.
19107 hardcode_action_GCJ=unsupported
19108fi
5213506e
RW
19109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
19110$as_echo "$hardcode_action_GCJ" >&6; }
b9e6a2e5 19111
1cf3d07d
SE
19112if test "$hardcode_action_GCJ" = relink ||
19113 test "$inherit_rpath_GCJ" = yes; then
19114 # Fast installation is not supported
19115 enable_fast_install=no
19116elif test "$shlibpath_overrides_runpath" = yes ||
19117 test "$enable_shared" = no; then
19118 # Fast installation is not necessary
19119 enable_fast_install=needless
76b972d6 19120fi
b9e6a2e5 19121
1cf3d07d
SE
19122
19123
19124
19125
19126
19127
b9e6a2e5 19128fi
b9e6a2e5 19129
eecb7461 19130compiler_GCJ=${GCJ-gcj}
1cf3d07d
SE
19131ac_ext=c
19132ac_cpp='$CPP $CPPFLAGS'
19133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19135ac_compiler_gnu=$ac_cv_c_compiler_gnu
19136
7f40378f 19137
1cf3d07d 19138if test "x$CC" != xcc; then
5213506e
RW
19139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
19140$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
1cf3d07d 19141else
5213506e
RW
19142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
19143$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
1cf3d07d 19144fi
5213506e 19145set dummy $CC; ac_cc=`$as_echo "$2" |
1cf3d07d 19146 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5213506e
RW
19147if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
19148 $as_echo_n "(cached) " >&6
b9e6a2e5 19149else
5213506e 19150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
19151/* end confdefs.h. */
19152
19153int
19154main ()
19155{
19156
19157 ;
19158 return 0;
19159}
aad741f4 19160_ACEOF
1cf3d07d
SE
19161# Make sure it works both with $CC and with simple cc.
19162# We do the test twice because some compilers refuse to overwrite an
19163# existing .o file with -o, though they will create one.
5213506e
RW
19164ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19165rm -f conftest2.*
19166if { { case "(($ac_try" in
19167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19168 *) ac_try_echo=$ac_try;;
19169esac
19170eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19171$as_echo "$ac_try_echo"; } >&5
19172 (eval "$ac_try") 2>&5
19173 ac_status=$?
19174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19175 test $ac_status = 0; } &&
19176 test -f conftest2.$ac_objext && { { case "(($ac_try" in
19177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19178 *) ac_try_echo=$ac_try;;
19179esac
19180eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19181$as_echo "$ac_try_echo"; } >&5
19182 (eval "$ac_try") 2>&5
aad741f4 19183 ac_status=$?
5213506e
RW
19184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19185 test $ac_status = 0; };
1cf3d07d
SE
19186then
19187 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
19188 if test "x$CC" != xcc; then
19189 # Test first that cc exists at all.
19190 if { ac_try='cc -c conftest.$ac_ext >&5'
5213506e
RW
19191 { { case "(($ac_try" in
19192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19193 *) ac_try_echo=$ac_try;;
19194esac
19195eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19196$as_echo "$ac_try_echo"; } >&5
19197 (eval "$ac_try") 2>&5
19198 ac_status=$?
19199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19200 test $ac_status = 0; }; }; then
19201 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19202 rm -f conftest2.*
19203 if { { case "(($ac_try" in
19204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19205 *) ac_try_echo=$ac_try;;
19206esac
19207eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19208$as_echo "$ac_try_echo"; } >&5
19209 (eval "$ac_try") 2>&5
19210 ac_status=$?
19211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19212 test $ac_status = 0; } &&
19213 test -f conftest2.$ac_objext && { { case "(($ac_try" in
19214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19215 *) ac_try_echo=$ac_try;;
19216esac
19217eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19218$as_echo "$ac_try_echo"; } >&5
19219 (eval "$ac_try") 2>&5
b9e6a2e5 19220 ac_status=$?
5213506e
RW
19221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19222 test $ac_status = 0; };
1cf3d07d
SE
19223 then
19224 # cc works too.
19225 :
19226 else
19227 # cc exists but doesn't like -o.
19228 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19229 fi
19230 fi
19231 fi
b9e6a2e5 19232else
1cf3d07d 19233 eval ac_cv_prog_cc_${ac_cc}_c_o=no
b9e6a2e5 19234fi
5213506e 19235rm -f core conftest*
aad741f4 19236
7f40378f 19237fi
5213506e
RW
19238if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
19239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19240$as_echo "yes" >&6; }
7f40378f 19241else
5213506e
RW
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19243$as_echo "no" >&6; }
7f40378f 19244
5213506e 19245$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7f40378f 19246
7f40378f 19247fi
b9e6a2e5 19248
1cf3d07d
SE
19249# FIXME: we rely on the cache variable name because
19250# there is no other way.
19251set dummy $CC
5213506e
RW
19252am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19253eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
19254if test "$am_t" != yes; then
1cf3d07d
SE
19255 # Losing compiler, so override with the script.
19256 # FIXME: It is wrong to rewrite CC.
19257 # But if we don't then we get into trouble of one sort or another.
19258 # A longer-term fix would be to have automake use am__CC in this case,
19259 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19260 CC="$am_aux_dir/compile $CC"
b9e6a2e5 19261fi
b9e6a2e5 19262
b9e6a2e5 19263
5950e016 19264
d4708d9d 19265
5213506e 19266
1cf3d07d 19267subdirs="$subdirs classpath libltdl"
d4708d9d
JH
19268
19269
1cf3d07d 19270# The -no-testsuite modules omit the test subdir.
5213506e 19271 if test -d $srcdir/testsuite; then
1cf3d07d
SE
19272 TESTSUBDIR_TRUE=
19273 TESTSUBDIR_FALSE='#'
d4708d9d 19274else
1cf3d07d
SE
19275 TESTSUBDIR_TRUE='#'
19276 TESTSUBDIR_FALSE=
d4708d9d 19277fi
d4708d9d 19278
d4708d9d 19279
1cf3d07d
SE
19280# Should the runtime set system properties by examining the
19281# environment variable GCJ_PROPERTIES?
5213506e
RW
19282# Check whether --enable-getenv-properties was given.
19283if test "${enable_getenv_properties+set}" = set; then :
19284 enableval=$enable_getenv_properties;
19285fi
1cf3d07d 19286
1cf3d07d
SE
19287
19288# Whether GCJ_PROPERTIES is used depends on the target.
19289if test -z "$enable_getenv_properties"; then
19290 enable_getenv_properties=${enable_getenv_properties_default-yes}
19291fi
19292if test "$enable_getenv_properties" = no; then
d4708d9d 19293
5213506e 19294$as_echo "#define DISABLE_GETENV_PROPERTIES 1" >>confdefs.h
d4708d9d 19295
1cf3d07d 19296fi
d4708d9d 19297
1cf3d07d
SE
19298# Whether we should use arguments to main()
19299if test -z "$enable_main_args"; then
19300 enable_main_args=${enable_main_args_default-yes}
47742ccd 19301fi
1cf3d07d 19302if test "$enable_main_args" = no; then
47742ccd 19303
5213506e 19304$as_echo "#define DISABLE_MAIN_ARGS 1" >>confdefs.h
47742ccd
JJ
19305
19306fi
47742ccd 19307
1cf3d07d
SE
19308
19309# Should we use hashtable-based synchronization?
19310# Currently works only for Linux X86/ia64
19311# Typically faster and more space-efficient
5213506e
RW
19312# Check whether --enable-hash-synchronization was given.
19313if test "${enable_hash_synchronization+set}" = set; then :
19314 enableval=$enable_hash_synchronization;
19315fi
1cf3d07d 19316
1cf3d07d
SE
19317
19318if test -z "$enable_hash_synchronization"; then
19319 enable_hash_synchronization=$enable_hash_synchronization_default
47742ccd 19320fi
47742ccd
JJ
19321
19322
1cf3d07d
SE
19323install_ecj_jar=no
19324ECJ_BUILD_JAR=
19325ECJ_JAR=
19326
5213506e
RW
19327# Check whether --with-ecj-jar was given.
19328if test "${with_ecj_jar+set}" = set; then :
19329 withval=$with_ecj_jar; ECJ_JAR=$withval
47742ccd 19330else
1cf3d07d
SE
19331 if test -f $multi_basedir/ecj.jar; then
19332 ECJ_BUILD_JAR=$multi_basedir/ecj.jar
19333 ECJ_JAR='$(jardir)/ecj.jar'
19334 install_ecj_jar=yes
19335 fi
5213506e 19336fi
1cf3d07d
SE
19337
19338
19339
5213506e 19340 if test "$ECJ_JAR" != ""; then
1cf3d07d
SE
19341 BUILD_ECJ1_TRUE=
19342 BUILD_ECJ1_FALSE='#'
19343else
19344 BUILD_ECJ1_TRUE='#'
19345 BUILD_ECJ1_FALSE=
47742ccd
JJ
19346fi
19347
5213506e 19348 if test $install_ecj_jar = yes; then
1cf3d07d
SE
19349 INSTALL_ECJ_JAR_TRUE=
19350 INSTALL_ECJ_JAR_FALSE='#'
19351else
19352 INSTALL_ECJ_JAR_TRUE='#'
19353 INSTALL_ECJ_JAR_FALSE=
d6c122f7
DD
19354fi
19355
19356
5950e016 19357
5213506e
RW
19358# Check whether --with-java-home was given.
19359if test "${with_java_home+set}" = set; then :
19360 withval=$with_java_home; JAVA_HOME="${withval}"
1cf3d07d
SE
19361else
19362 JAVA_HOME=""
5213506e 19363fi
ed698112 19364
5213506e 19365 if test ! -z "$JAVA_HOME"; then
1cf3d07d
SE
19366 JAVA_HOME_SET_TRUE=
19367 JAVA_HOME_SET_FALSE='#'
19368else
19369 JAVA_HOME_SET_TRUE='#'
19370 JAVA_HOME_SET_FALSE=
19371fi
ed698112
NN
19372
19373
02809848 19374
a507baad 19375suppress_libgcj_bc=no
5213506e
RW
19376# Check whether --enable-libgcj-bc was given.
19377if test "${enable_libgcj_bc+set}" = set; then :
19378 enableval=$enable_libgcj_bc; if test "$enable_libgcj_bc" = "no"; then
a507baad
DD
19379 suppress_libgcj_bc=yes
19380 fi
5213506e 19381fi
a507baad 19382
5213506e 19383 if test "$suppress_libgcj_bc" = "yes"; then
a507baad
DD
19384 SUPPRESS_LIBGCJ_BC_TRUE=
19385 SUPPRESS_LIBGCJ_BC_FALSE='#'
19386else
19387 SUPPRESS_LIBGCJ_BC_TRUE='#'
19388 SUPPRESS_LIBGCJ_BC_FALSE=
19389fi
19390
19391
c07cd2c7 19392build_libgcj_reduced_reflection=no
5213506e
RW
19393# Check whether --enable-reduced-reflection was given.
19394if test "${enable_reduced_reflection+set}" = set; then :
19395 enableval=$enable_reduced_reflection; if test "$enable_reduced_reflection" = "yes"; then
c07cd2c7
DD
19396 build_libgcj_reduced_reflection=yes
19397 fi
5213506e 19398fi
c07cd2c7 19399
5213506e 19400 if test "$build_libgcj_reduced_reflection" = "yes"; then
c07cd2c7
DD
19401 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
19402 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
19403else
19404 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
19405 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
19406fi
19407
19408
1cf3d07d 19409# What is the native OS API for MinGW?
02809848 19410
5213506e
RW
19411# Check whether --with-win32-nlsapi was given.
19412if test "${with_win32_nlsapi+set}" = set; then :
19413 withval=$with_win32_nlsapi; case "${withval}" in
1cf3d07d
SE
19414 ansi) with_win32_nlsapi=ansi ;;
19415 unicows) with_win32_nlsapi=unicows ;;
19416 unicode) with_win32_nlsapi=unicode ;;
5213506e 19417 *) as_fn_error "Bad value ${withval} for --with-win32-nlsapi." "$LINENO" 5 ;;
1cf3d07d
SE
19418esac
19419else
19420 with_win32_nlsapi=ansi
5213506e
RW
19421fi
19422
cad90591 19423
1cf3d07d
SE
19424case "${with_win32_nlsapi}" in
19425 unicows | unicode)
cad90591 19426
5213506e 19427$as_echo "#define MINGW_LIBGCJ_UNICODE 1" >>confdefs.h
cad90591 19428
1cf3d07d
SE
19429 ;;
19430esac
cad90591 19431
1cf3d07d
SE
19432# configure.host sets slow_pthread_self if the synchronization code should
19433# try to avoid pthread_self calls by caching thread IDs in a hashtable.
19434if test "${slow_pthread_self}" = "yes"; then
ed698112 19435
5213506e 19436$as_echo "#define SLOW_PTHREAD_SELF 1" >>confdefs.h
ed698112 19437
ed698112 19438fi
ed698112 19439
1cf3d07d 19440# Check for gc debugging. This option is handled both here and in the GC.
5213506e
RW
19441# Check whether --enable-gc-debug was given.
19442if test "${enable_gc_debug+set}" = set; then :
19443 enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then
ed698112 19444
5213506e 19445$as_echo "#define LIBGCJ_GC_DEBUG 1" >>confdefs.h
ade710a5 19446
1cf3d07d 19447 fi
5213506e
RW
19448fi
19449
ed698112 19450
1cf3d07d 19451# See if the user has the interpreter included.
5213506e
RW
19452# Check whether --enable-interpreter was given.
19453if test "${enable_interpreter+set}" = set; then :
19454 enableval=$enable_interpreter; if test "$enable_interpreter" = yes; then
1cf3d07d
SE
19455 # This can also be set in configure.host.
19456 libgcj_interpreter=yes
19457 elif test "$enable_interpreter" = no; then
19458 libgcj_interpreter=no
19459 fi
5213506e
RW
19460fi
19461
ed698112 19462
1cf3d07d 19463if test "$libgcj_interpreter" = yes; then
ed698112 19464
5213506e 19465$as_echo "#define INTERPRETER 1" >>confdefs.h
ed698112 19466
97b8365c 19467fi
1cf3d07d
SE
19468INTERPRETER="$libgcj_interpreter"
19469
5213506e 19470 if test "$libgcj_interpreter" = yes; then
86acf60c
DD
19471 INTERPRETER_TRUE=
19472 INTERPRETER_FALSE='#'
19473else
19474 INTERPRETER_TRUE='#'
19475 INTERPRETER_FALSE=
19476fi
19477
19478
5213506e
RW
19479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception model to use" >&5
19480$as_echo_n "checking for exception model to use... " >&6; }
19481ac_ext=cpp
1cf3d07d
SE
19482ac_cpp='$CXXCPP $CPPFLAGS'
19483ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19484ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19485ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19486
5213506e
RW
19487# Check whether --enable-sjlj-exceptions was given.
19488if test "${enable_sjlj_exceptions+set}" = set; then :
19489 enableval=$enable_sjlj_exceptions; :
1cf3d07d
SE
19490else
19491 cat > conftest.$ac_ext << EOF
3cbe17f7 19492#line 19492 "configure"
1cf3d07d
SE
19493struct S { ~S(); };
19494void bar();
19495void foo()
19496{
19497 S s;
19498 bar();
19499}
19500EOF
19501old_CXXFLAGS="$CXXFLAGS"
19502CXXFLAGS=-S
5213506e 19503if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
19504 (eval $ac_compile) 2>&5
19505 ac_status=$?
5213506e
RW
19506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19507 test $ac_status = 0; }; then
1cf3d07d
SE
19508 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
19509 enable_sjlj_exceptions=yes
19510 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
19511 enable_sjlj_exceptions=no
48965b7c
MM
19512 elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
19513 # ARM EH ABI.
19514 enable_sjlj_exceptions=no
1cf3d07d 19515 fi
e3f92d3b 19516fi
1cf3d07d
SE
19517CXXFLAGS="$old_CXXFLAGS"
19518rm -f conftest*
5213506e
RW
19519fi
19520
1cf3d07d
SE
19521if test x$enable_sjlj_exceptions = xyes; then
19522
5213506e 19523$as_echo "#define SJLJ_EXCEPTIONS 1" >>confdefs.h
1cf3d07d
SE
19524
19525 ac_exception_model_name=sjlj
19526elif test x$enable_sjlj_exceptions = xno; then
19527 ac_exception_model_name="call frame"
19528else
5213506e 19529 as_fn_error "unable to detect exception model" "$LINENO" 5
e3f92d3b 19530fi
1cf3d07d
SE
19531ac_ext=c
19532ac_cpp='$CPP $CPPFLAGS'
19533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19535ac_compiler_gnu=$ac_cv_c_compiler_gnu
19536
5213506e
RW
19537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception_model_name" >&5
19538$as_echo "$ac_exception_model_name" >&6; }
1cf3d07d
SE
19539
19540# If we are non using SJLJ exceptions, and this host does not have support
19541# for unwinding from a signal handler, enable checked dereferences and divides.
19542if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
19543 CHECKREFSPEC=-fcheck-references
19544 DIVIDESPEC=-fuse-divide-subroutine
19545 EXCEPTIONSPEC=
e3f92d3b 19546fi
1cf3d07d
SE
19547
19548# See if the user wants to disable java.net. This is the mildly
19549# ugly way that we admit that target-side configuration sucks.
5213506e
RW
19550# Check whether --enable-java-net was given.
19551if test "${enable_java_net+set}" = set; then :
19552 enableval=$enable_java_net;
19553fi
1cf3d07d 19554
1cf3d07d
SE
19555
19556# Whether java.net is built by default can depend on the target.
19557if test -z "$enable_java_net"; then
19558 enable_java_net=${enable_java_net_default-yes}
e3f92d3b 19559fi
1cf3d07d
SE
19560if test "$enable_java_net" = no; then
19561
5213506e 19562$as_echo "#define DISABLE_JAVA_NET 1" >>confdefs.h
1cf3d07d 19563
b0fa81ee 19564fi
1cf3d07d
SE
19565
19566# See if the user wants to configure without libffi. Some
19567# architectures don't support it, and default values are set in
19568# configure.host.
19569
5213506e
RW
19570# Check whether --with-libffi was given.
19571if test "${with_libffi+set}" = set; then :
19572 withval=$with_libffi; :
1cf3d07d
SE
19573else
19574 with_libffi=${with_libffi_default-yes}
5213506e
RW
19575fi
19576
1cf3d07d
SE
19577
19578LIBFFI=
19579LIBFFIINCS=
19580if test "$with_libffi" != no; then
19581
5213506e 19582$as_echo "#define USE_LIBFFI 1" >>confdefs.h
1cf3d07d
SE
19583
19584 LIBFFI=../libffi/libffi_convenience.la
19585 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
97b8365c 19586fi
1cf3d07d
SE
19587
19588
19589
19590# See if the user wants to disable JVMPI support.
5213506e
RW
19591# Check whether --enable-jvmpi was given.
19592if test "${enable_jvmpi+set}" = set; then :
19593 enableval=$enable_jvmpi;
19594fi
1cf3d07d 19595
1cf3d07d
SE
19596
19597if test "$enable_jvmpi" != no; then
19598
5213506e 19599$as_echo "#define ENABLE_JVMPI 1" >>confdefs.h
1cf3d07d 19600
e3f92d3b 19601fi
1cf3d07d
SE
19602
19603# If the target is an eCos system, use the appropriate eCos
19604# I/O routines.
19605# FIXME: this should not be a local option but a global target
19606# system; at present there is no eCos target.
19607TARGET_ECOS=${PROCESS-"no"}
19608
5213506e
RW
19609# Check whether --with-ecos was given.
19610if test "${with_ecos+set}" = set; then :
19611 withval=$with_ecos; TARGET_ECOS="$with_ecos"
19612
19613fi
1cf3d07d 19614
1cf3d07d
SE
19615
19616case "$TARGET_ECOS" in
19617 no) case "$host" in
19618 *mingw*)
19619 PLATFORM=Win32
19620 PLATFORMNET=Win32
19621 PLATFORMH=win32.h
19622
5213506e
RW
19623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'ld' is at least 2.13" >&5
19624$as_echo_n "checking whether 'ld' is at least 2.13... " >&6; }
1cf3d07d
SE
19625LD_PROG=`$CC --print-prog-name=ld`
19626LD_VERSION=`$LD_PROG --version`
19627LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
19628LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
19629if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
19630 LD_OK="ok"
19631else
19632 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
19633 LD_OK="ok"
19634 fi
e3f92d3b 19635fi
1cf3d07d 19636if test "x$LD_OK" != x; then
5213506e
RW
19637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19638$as_echo "yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
1cf3d07d 19639else
5213506e
RW
19640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19641$as_echo "no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
19643$as_echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
1cf3d07d 19644
5213506e 19645$as_echo "#define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1" >>confdefs.h
1cf3d07d 19646
97b8365c 19647fi
1cf3d07d
SE
19648 ;;
19649 *)
19650 PLATFORM=Posix
19651 PLATFORMNET=Posix
19652 PLATFORMH=posix.h
19653 ;;
19654 esac
19655 ;;
19656 *)
19657 PLATFORM=Ecos
19658 PLATFORMNET=NoNet
ed698112 19659
5213506e 19660$as_echo "#define ECOS 1" >>confdefs.h
ed698112 19661
1cf3d07d
SE
19662 PLATFORMH=posix.h
19663 ;;
19664esac
ed698112 19665
5213506e 19666ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
ed698112 19667
ed698112 19668
5213506e 19669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
19670/* end confdefs.h. */
19671#include <stdint.h>
ed698112 19672
1cf3d07d
SE
19673_ACEOF
19674if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e 19675 $EGREP "uint32_t" >/dev/null 2>&1; then :
ed698112 19676
5213506e 19677$as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
ed698112 19678
ed698112 19679fi
1cf3d07d
SE
19680rm -f conftest*
19681
5213506e 19682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
19683/* end confdefs.h. */
19684#include <inttypes.h>
19685
19686_ACEOF
19687if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e 19688 $EGREP "uint32_t" >/dev/null 2>&1; then :
1cf3d07d 19689
5213506e 19690$as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
ed698112 19691
ed698112 19692fi
1cf3d07d 19693rm -f conftest*
ed698112 19694
5213506e 19695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
19696/* end confdefs.h. */
19697#include <sys/types.h>
ed698112 19698
1cf3d07d
SE
19699_ACEOF
19700if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e 19701 $EGREP "u_int32_t" >/dev/null 2>&1; then :
ed698112 19702
5213506e 19703$as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
ade710a5 19704
1cf3d07d
SE
19705fi
19706rm -f conftest*
ed698112 19707
5213506e 19708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
19709/* end confdefs.h. */
19710#include <sys/config.h>
ed698112 19711
1cf3d07d
SE
19712_ACEOF
19713if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e 19714 $EGREP "u_int32_t" >/dev/null 2>&1; then :
ed698112 19715
5213506e 19716$as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
ed698112 19717
1cf3d07d
SE
19718fi
19719rm -f conftest*
ed698112 19720
ed698112 19721
5213506e 19722 if test "$PLATFORM" = Win32; then
1cf3d07d
SE
19723 USING_WIN32_PLATFORM_TRUE=
19724 USING_WIN32_PLATFORM_FALSE='#'
ed698112 19725else
1cf3d07d
SE
19726 USING_WIN32_PLATFORM_TRUE='#'
19727 USING_WIN32_PLATFORM_FALSE=
ed698112
NN
19728fi
19729
5213506e 19730 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
1cf3d07d
SE
19731 USING_POSIX_PLATFORM_TRUE=
19732 USING_POSIX_PLATFORM_FALSE='#'
ed698112 19733else
1cf3d07d
SE
19734 USING_POSIX_PLATFORM_TRUE='#'
19735 USING_POSIX_PLATFORM_FALSE=
ed698112 19736fi
ed698112 19737
1cf3d07d
SE
19738
19739case "$host" in
19740 *-darwin*) DARWIN_CRT=true ;;
19741 *) DARWIN_CRT=false ;;
19742esac
5213506e 19743 if $DARWIN_CRT; then
1cf3d07d
SE
19744 USING_DARWIN_CRT_TRUE=
19745 USING_DARWIN_CRT_FALSE='#'
ed698112 19746else
1cf3d07d
SE
19747 USING_DARWIN_CRT_TRUE='#'
19748 USING_DARWIN_CRT_FALSE=
ed698112
NN
19749fi
19750
ed698112 19751
1cf3d07d
SE
19752# This may not be defined in a non-ANS conformant embedded system.
19753# FIXME: Should these case a runtime exception in that case?
5213506e 19754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
19755/* end confdefs.h. */
19756#include <time.h>
ed698112 19757
1cf3d07d
SE
19758_ACEOF
19759if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e 19760 $EGREP "localtime" >/dev/null 2>&1; then :
ed698112 19761
5213506e 19762$as_echo "#define HAVE_LOCALTIME 1" >>confdefs.h
ed698112 19763
1cf3d07d
SE
19764fi
19765rm -f conftest*
ade710a5 19766
ade710a5 19767
1cf3d07d
SE
19768# Create the subdirectory for natFile.cc, or the attempt
19769# to create the link will fail.
19770test -d java || mkdir java
19771test -d java/io || mkdir java/io
19772test -d gnu || mkdir gnu
5213506e 19773ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
ed698112 19774
ade710a5 19775
1cf3d07d
SE
19776# Likewise for natConcreteProcess.cc.
19777test -d java/lang || mkdir java/lang
5213506e 19778ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
ed698112 19779
ed698112 19780
1cf3d07d
SE
19781# Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
19782test -d java/net || mkdir java/net
5213506e 19783ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
ed698112 19784
5213506e 19785ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
ed698112 19786
ade710a5 19787
1cf3d07d
SE
19788# Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
19789test -d gnu/java || mkdir gnu/java
19790test -d gnu/java/net || mkdir gnu/java/net
5213506e 19791ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
ade710a5 19792
5213506e 19793ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
ed698112 19794
ade710a5 19795
1cf3d07d
SE
19796# Likewise for natVMPipe.cc and natVMSelector.cc.
19797test -d gnu/java/nio || mkdir gnu/java/nio
5213506e 19798ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
ed698112 19799
5213506e 19800ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
ed698112 19801
ed698112 19802
1cf3d07d
SE
19803# Likewise for natFileChannelImpl.cc
19804test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
5213506e 19805ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
ed698112 19806
ee9dd372 19807
dc6a0b2d 19808# Likewise for natVMSecureRandom.cc
fd24db29
MK
19809test -d gnu/java/security || mkdir gnu/java/security
19810test -d gnu/java/security/jce || mkdir gnu/java/security/jce
dc6a0b2d 19811test -d gnu/java/security/jce/prng || mkdir gnu/java/security/jce/prng
5213506e 19812ac_config_links="$ac_config_links gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc"
dc6a0b2d
AJH
19813
19814
1cf3d07d
SE
19815case "${host}" in
19816 *mingw*)
19817 SYSTEMSPEC="-lgdi32 -lws2_32"
19818 if test "${with_win32_nlsapi}" = "unicows"; then
19819 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
19820 fi
19821 ;;
e00db511 19822 *-*-darwin[912]*)
f8328d1d 19823 SYSTEMSPEC="%{!Zdynamiclib:%{!Zbundle:-allow_stack_execute}}"
5df19a91 19824 ;;
1cf3d07d
SE
19825 *)
19826 SYSTEMSPEC=
19827 ;;
19828esac
ee9dd372 19829
7e0c895f 19830
ed698112 19831
5213506e
RW
19832# Check whether --with-system-zlib was given.
19833if test "${with_system_zlib+set}" = set; then :
19834 withval=$with_system_zlib;
19835fi
ee9dd372 19836
1cf3d07d 19837ZLIBSPEC=
ee9dd372 19838
1cf3d07d 19839ZLIBTESTSPEC=
ee9dd372 19840
ee9dd372 19841
5213506e
RW
19842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19843$as_echo_n "checking for X... " >&6; }
ee9dd372 19844
ee9dd372 19845
5213506e
RW
19846# Check whether --with-x was given.
19847if test "${with_x+set}" = set; then :
19848 withval=$with_x;
19849fi
ee9dd372 19850
1cf3d07d
SE
19851# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19852if test "x$with_x" = xno; then
19853 # The user explicitly disabled X.
19854 have_x=disabled
19855else
5213506e
RW
19856 case $x_includes,$x_libraries in #(
19857 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
19858 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
19859 $as_echo_n "(cached) " >&6
1cf3d07d
SE
19860else
19861 # One or both of the vars are not set, and there is no cached value.
19862ac_x_includes=no ac_x_libraries=no
5213506e 19863rm -f -r conftest.dir
1cf3d07d
SE
19864if mkdir conftest.dir; then
19865 cd conftest.dir
1cf3d07d 19866 cat >Imakefile <<'_ACEOF'
5213506e
RW
19867incroot:
19868 @echo incroot='${INCROOT}'
19869usrlibdir:
19870 @echo usrlibdir='${USRLIBDIR}'
19871libdir:
19872 @echo libdir='${LIBDIR}'
19873_ACEOF
19874 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
1cf3d07d 19875 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5213506e
RW
19876 for ac_var in incroot usrlibdir libdir; do
19877 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19878 done
1cf3d07d 19879 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5213506e
RW
19880 for ac_extension in a so sl dylib la dll; do
19881 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19882 test -f "$ac_im_libdir/libX11.$ac_extension"; then
1cf3d07d
SE
19883 ac_im_usrlibdir=$ac_im_libdir; break
19884 fi
19885 done
19886 # Screen out bogus values from the imake configuration. They are
19887 # bogus both because they are the default anyway, and because
19888 # using them would break gcc on systems where it needs fixed includes.
19889 case $ac_im_incroot in
5213506e 19890 /usr/include) ac_x_includes= ;;
1cf3d07d
SE
19891 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19892 esac
19893 case $ac_im_usrlibdir in
5213506e 19894 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
1cf3d07d
SE
19895 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19896 esac
19897 fi
19898 cd ..
5213506e 19899 rm -f -r conftest.dir
ed698112
NN
19900fi
19901
1cf3d07d
SE
19902# Standard set of common directories for X headers.
19903# Check X11 before X11Rn because it is often a symlink to the current release.
19904ac_x_header_dirs='
19905/usr/X11/include
5213506e 19906/usr/X11R7/include
1cf3d07d
SE
19907/usr/X11R6/include
19908/usr/X11R5/include
19909/usr/X11R4/include
ade710a5 19910
1cf3d07d 19911/usr/include/X11
5213506e 19912/usr/include/X11R7
1cf3d07d
SE
19913/usr/include/X11R6
19914/usr/include/X11R5
19915/usr/include/X11R4
8a489465 19916
1cf3d07d 19917/usr/local/X11/include
5213506e 19918/usr/local/X11R7/include
1cf3d07d
SE
19919/usr/local/X11R6/include
19920/usr/local/X11R5/include
19921/usr/local/X11R4/include
ed698112 19922
1cf3d07d 19923/usr/local/include/X11
5213506e 19924/usr/local/include/X11R7
1cf3d07d
SE
19925/usr/local/include/X11R6
19926/usr/local/include/X11R5
19927/usr/local/include/X11R4
ed698112 19928
1cf3d07d
SE
19929/usr/X386/include
19930/usr/x386/include
19931/usr/XFree86/include/X11
ed698112 19932
1cf3d07d
SE
19933/usr/include
19934/usr/local/include
19935/usr/unsupported/include
19936/usr/athena/include
19937/usr/local/x11r5/include
19938/usr/lpp/Xamples/include
02809848 19939
1cf3d07d
SE
19940/usr/openwin/include
19941/usr/openwin/share/include'
ade710a5 19942
1cf3d07d 19943if test "$ac_x_includes" = no; then
5213506e 19944 # Guess where to find include files, by looking for Xlib.h.
1cf3d07d 19945 # First, try using that file with no special directory specified.
5213506e 19946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 19947/* end confdefs.h. */
5213506e 19948#include <X11/Xlib.h>
1cf3d07d 19949_ACEOF
5213506e 19950if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d
SE
19951 # We can compile using X headers with no special include directory.
19952ac_x_includes=
19953else
1cf3d07d 19954 for ac_dir in $ac_x_header_dirs; do
5213506e 19955 if test -r "$ac_dir/X11/Xlib.h"; then
1cf3d07d
SE
19956 ac_x_includes=$ac_dir
19957 break
19958 fi
19959done
ed698112 19960fi
1cf3d07d
SE
19961rm -f conftest.err conftest.$ac_ext
19962fi # $ac_x_includes = no
ed698112 19963
1cf3d07d
SE
19964if test "$ac_x_libraries" = no; then
19965 # Check for the libraries.
19966 # See if we find them without any special options.
19967 # Don't add to $LIBS permanently.
19968 ac_save_LIBS=$LIBS
5213506e 19969 LIBS="-lX11 $LIBS"
1cf3d07d 19970 if test x$gcc_no_link = xyes; then
5213506e 19971 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 19972fi
5213506e 19973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 19974/* end confdefs.h. */
5213506e 19975#include <X11/Xlib.h>
1cf3d07d
SE
19976int
19977main ()
ed698112 19978{
5213506e 19979XrmInitialize ()
1cf3d07d
SE
19980 ;
19981 return 0;
ed698112 19982}
1cf3d07d 19983_ACEOF
5213506e 19984if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
19985 LIBS=$ac_save_LIBS
19986# We can link X programs with no special library path.
19987ac_x_libraries=
19988else
5213506e
RW
19989 LIBS=$ac_save_LIBS
19990for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
1cf3d07d
SE
19991do
19992 # Don't even attempt the hair of trying to link an X program!
5213506e
RW
19993 for ac_extension in a so sl dylib la dll; do
19994 if test -r "$ac_dir/libX11.$ac_extension"; then
1cf3d07d
SE
19995 ac_x_libraries=$ac_dir
19996 break 2
19997 fi
19998 done
19999done
20000fi
5213506e
RW
20001rm -f core conftest.err conftest.$ac_objext \
20002 conftest$ac_exeext conftest.$ac_ext
1cf3d07d 20003fi # $ac_x_libraries = no
ee9dd372 20004
5213506e
RW
20005case $ac_x_includes,$ac_x_libraries in #(
20006 no,* | *,no | *\'*)
20007 # Didn't find X, or a directory has "'" in its name.
20008 ac_cv_have_x="have_x=no";; #(
20009 *)
20010 # Record where we found X for the cache.
20011 ac_cv_have_x="have_x=yes\
20012 ac_x_includes='$ac_x_includes'\
20013 ac_x_libraries='$ac_x_libraries'"
20014esac
1cf3d07d 20015fi
5213506e
RW
20016;; #(
20017 *) have_x=yes;;
20018 esac
1cf3d07d
SE
20019 eval "$ac_cv_have_x"
20020fi # $with_x != no
20021
20022if test "$have_x" != yes; then
5213506e
RW
20023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
20024$as_echo "$have_x" >&6; }
1cf3d07d
SE
20025 no_x=yes
20026else
20027 # If each of the values was on the command line, it overrides each guess.
20028 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20029 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20030 # Update the cache value to reflect the command line values.
5213506e
RW
20031 ac_cv_have_x="have_x=yes\
20032 ac_x_includes='$x_includes'\
20033 ac_x_libraries='$x_libraries'"
20034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
20035$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
1cf3d07d
SE
20036fi
20037
20038if test "$no_x" = yes; then
20039 # Not all programs may use this symbol, but it does not hurt to define it.
ee9dd372 20040
5213506e 20041$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
ade710a5 20042
1cf3d07d
SE
20043 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20044else
20045 if test -n "$x_includes"; then
20046 X_CFLAGS="$X_CFLAGS -I$x_includes"
20047 fi
ade710a5 20048
1cf3d07d
SE
20049 # It would also be nice to do this for all -L options, not just this one.
20050 if test -n "$x_libraries"; then
20051 X_LIBS="$X_LIBS -L$x_libraries"
20052 # For Solaris; some versions of Sun CC require a space after -R and
20053 # others require no space. Words are not sufficient . . . .
5213506e
RW
20054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
20055$as_echo_n "checking whether -R must be followed by a space... " >&6; }
20056 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20057 ac_xsave_c_werror_flag=$ac_c_werror_flag
20058 ac_c_werror_flag=yes
20059 if test x$gcc_no_link = xyes; then
20060 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 20061fi
5213506e 20062cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 20063/* end confdefs.h. */
ed698112 20064
1cf3d07d
SE
20065int
20066main ()
20067{
20068
20069 ;
20070 return 0;
20071}
20072_ACEOF
5213506e
RW
20073if ac_fn_c_try_link "$LINENO"; then :
20074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20075$as_echo "no" >&6; }
20076 X_LIBS="$X_LIBS -R$x_libraries"
1cf3d07d 20077else
5213506e
RW
20078 LIBS="$ac_xsave_LIBS -R $x_libraries"
20079 if test x$gcc_no_link = xyes; then
20080 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 20081fi
5213506e 20082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
20083/* end confdefs.h. */
20084
20085int
20086main ()
20087{
20088
20089 ;
20090 return 0;
20091}
20092_ACEOF
5213506e
RW
20093if ac_fn_c_try_link "$LINENO"; then :
20094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20095$as_echo "yes" >&6; }
20096 X_LIBS="$X_LIBS -R $x_libraries"
1cf3d07d 20097else
5213506e
RW
20098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
20099$as_echo "neither works" >&6; }
1cf3d07d 20100fi
5213506e
RW
20101rm -f core conftest.err conftest.$ac_objext \
20102 conftest$ac_exeext conftest.$ac_ext
20103fi
20104rm -f core conftest.err conftest.$ac_objext \
20105 conftest$ac_exeext conftest.$ac_ext
20106 ac_c_werror_flag=$ac_xsave_c_werror_flag
20107 LIBS=$ac_xsave_LIBS
1cf3d07d
SE
20108 fi
20109
20110 # Check for system-dependent libraries X programs must link with.
20111 # Do this before checking for the system-independent R6 libraries
20112 # (-lICE), since we may need -lsocket or whatever for X linking.
20113
20114 if test "$ISC" = yes; then
20115 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20116 else
20117 # Martyn Johnson says this is needed for Ultrix, if the X
20118 # libraries were built with DECnet support. And Karl Berry says
20119 # the Alpha needs dnet_stub (dnet does not exist).
20120 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20121 if test x$gcc_no_link = xyes; then
5213506e 20122 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 20123fi
5213506e 20124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
20125/* end confdefs.h. */
20126
5213506e
RW
20127/* Override any GCC internal prototype to avoid an error.
20128 Use char because int might match the return type of a GCC
20129 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
20130#ifdef __cplusplus
20131extern "C"
20132#endif
1cf3d07d
SE
20133char XOpenDisplay ();
20134int
20135main ()
20136{
5213506e 20137return XOpenDisplay ();
1cf3d07d
SE
20138 ;
20139 return 0;
20140}
20141_ACEOF
5213506e 20142if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 20143
5213506e
RW
20144else
20145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
20146$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
20147if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
20148 $as_echo_n "(cached) " >&6
1cf3d07d
SE
20149else
20150 ac_check_lib_save_LIBS=$LIBS
20151LIBS="-ldnet $LIBS"
20152if test x$gcc_no_link = xyes; then
5213506e 20153 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 20154fi
5213506e 20155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
20156/* end confdefs.h. */
20157
5213506e
RW
20158/* Override any GCC internal prototype to avoid an error.
20159 Use char because int might match the return type of a GCC
20160 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
20161#ifdef __cplusplus
20162extern "C"
20163#endif
1cf3d07d
SE
20164char dnet_ntoa ();
20165int
20166main ()
20167{
5213506e 20168return dnet_ntoa ();
1cf3d07d
SE
20169 ;
20170 return 0;
20171}
20172_ACEOF
5213506e 20173if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
20174 ac_cv_lib_dnet_dnet_ntoa=yes
20175else
5213506e 20176 ac_cv_lib_dnet_dnet_ntoa=no
1cf3d07d 20177fi
5213506e
RW
20178rm -f core conftest.err conftest.$ac_objext \
20179 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
20180LIBS=$ac_check_lib_save_LIBS
20181fi
5213506e
RW
20182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20183$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20184if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
1cf3d07d
SE
20185 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20186fi
20187
20188 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5213506e
RW
20189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
20190$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
20191if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
20192 $as_echo_n "(cached) " >&6
1cf3d07d
SE
20193else
20194 ac_check_lib_save_LIBS=$LIBS
20195LIBS="-ldnet_stub $LIBS"
20196if test x$gcc_no_link = xyes; then
5213506e 20197 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 20198fi
5213506e 20199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
20200/* end confdefs.h. */
20201
5213506e
RW
20202/* Override any GCC internal prototype to avoid an error.
20203 Use char because int might match the return type of a GCC
20204 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
20205#ifdef __cplusplus
20206extern "C"
20207#endif
1cf3d07d
SE
20208char dnet_ntoa ();
20209int
20210main ()
20211{
5213506e 20212return dnet_ntoa ();
1cf3d07d
SE
20213 ;
20214 return 0;
20215}
20216_ACEOF
5213506e 20217if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
20218 ac_cv_lib_dnet_stub_dnet_ntoa=yes
20219else
5213506e 20220 ac_cv_lib_dnet_stub_dnet_ntoa=no
1cf3d07d 20221fi
5213506e
RW
20222rm -f core conftest.err conftest.$ac_objext \
20223 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
20224LIBS=$ac_check_lib_save_LIBS
20225fi
5213506e
RW
20226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20227$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20228if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
1cf3d07d
SE
20229 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20230fi
20231
20232 fi
20233fi
5213506e
RW
20234rm -f core conftest.err conftest.$ac_objext \
20235 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
20236 LIBS="$ac_xsave_LIBS"
20237
20238 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20239 # to get the SysV transport functions.
20240 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20241 # needs -lnsl.
20242 # The nsl library prevents programs from opening the X display
20243 # on Irix 5.2, according to T.E. Dickey.
20244 # The functions gethostbyname, getservbyname, and inet_addr are
20245 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5213506e
RW
20246 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20247if test "x$ac_cv_func_gethostbyname" = x""yes; then :
1cf3d07d 20248
1cf3d07d 20249fi
1cf3d07d
SE
20250
20251 if test $ac_cv_func_gethostbyname = no; then
5213506e
RW
20252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20253$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20254if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
20255 $as_echo_n "(cached) " >&6
1cf3d07d
SE
20256else
20257 ac_check_lib_save_LIBS=$LIBS
20258LIBS="-lnsl $LIBS"
20259if test x$gcc_no_link = xyes; then
5213506e 20260 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 20261fi
5213506e 20262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
20263/* end confdefs.h. */
20264
5213506e
RW
20265/* Override any GCC internal prototype to avoid an error.
20266 Use char because int might match the return type of a GCC
20267 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
20268#ifdef __cplusplus
20269extern "C"
20270#endif
1cf3d07d
SE
20271char gethostbyname ();
20272int
20273main ()
20274{
5213506e 20275return gethostbyname ();
1cf3d07d
SE
20276 ;
20277 return 0;
20278}
20279_ACEOF
5213506e 20280if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
20281 ac_cv_lib_nsl_gethostbyname=yes
20282else
5213506e 20283 ac_cv_lib_nsl_gethostbyname=no
1cf3d07d 20284fi
5213506e
RW
20285rm -f core conftest.err conftest.$ac_objext \
20286 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
20287LIBS=$ac_check_lib_save_LIBS
20288fi
5213506e
RW
20289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20290$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20291if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
1cf3d07d
SE
20292 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20293fi
20294
20295 if test $ac_cv_lib_nsl_gethostbyname = no; then
5213506e
RW
20296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20297$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20298if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
20299 $as_echo_n "(cached) " >&6
1cf3d07d
SE
20300else
20301 ac_check_lib_save_LIBS=$LIBS
20302LIBS="-lbsd $LIBS"
20303if test x$gcc_no_link = xyes; then
5213506e 20304 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 20305fi
5213506e 20306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
20307/* end confdefs.h. */
20308
5213506e
RW
20309/* Override any GCC internal prototype to avoid an error.
20310 Use char because int might match the return type of a GCC
20311 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
20312#ifdef __cplusplus
20313extern "C"
20314#endif
1cf3d07d
SE
20315char gethostbyname ();
20316int
20317main ()
20318{
5213506e 20319return gethostbyname ();
1cf3d07d
SE
20320 ;
20321 return 0;
20322}
20323_ACEOF
5213506e 20324if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
20325 ac_cv_lib_bsd_gethostbyname=yes
20326else
5213506e 20327 ac_cv_lib_bsd_gethostbyname=no
1cf3d07d 20328fi
5213506e
RW
20329rm -f core conftest.err conftest.$ac_objext \
20330 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
20331LIBS=$ac_check_lib_save_LIBS
20332fi
5213506e
RW
20333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20334$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20335if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
1cf3d07d
SE
20336 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20337fi
20338
20339 fi
20340 fi
20341
20342 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20343 # socket/setsockopt and other routines are undefined under SCO ODT
20344 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20345 # on later versions), says Simon Leinen: it contains gethostby*
20346 # variants that don't use the name server (or something). -lsocket
20347 # must be given before -lnsl if both are needed. We assume that
20348 # if connect needs -lnsl, so does gethostbyname.
5213506e
RW
20349 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20350if test "x$ac_cv_func_connect" = x""yes; then :
1cf3d07d 20351
1cf3d07d 20352fi
1cf3d07d
SE
20353
20354 if test $ac_cv_func_connect = no; then
5213506e
RW
20355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20356$as_echo_n "checking for connect in -lsocket... " >&6; }
20357if test "${ac_cv_lib_socket_connect+set}" = set; then :
20358 $as_echo_n "(cached) " >&6
1cf3d07d
SE
20359else
20360 ac_check_lib_save_LIBS=$LIBS
20361LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20362if test x$gcc_no_link = xyes; then
5213506e 20363 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 20364fi
5213506e
RW
20365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20366/* end confdefs.h. */
1cf3d07d 20367
5213506e
RW
20368/* Override any GCC internal prototype to avoid an error.
20369 Use char because int might match the return type of a GCC
1cf3d07d 20370 builtin and then its argument prototype would still apply. */
1cf3d07d 20371#ifdef __cplusplus
5213506e 20372extern "C"
1cf3d07d 20373#endif
5213506e 20374char connect ();
1cf3d07d
SE
20375int
20376main ()
20377{
5213506e 20378return connect ();
1cf3d07d
SE
20379 ;
20380 return 0;
20381}
20382_ACEOF
5213506e
RW
20383if ac_fn_c_try_link "$LINENO"; then :
20384 ac_cv_lib_socket_connect=yes
1cf3d07d 20385else
5213506e
RW
20386 ac_cv_lib_socket_connect=no
20387fi
20388rm -f core conftest.err conftest.$ac_objext \
20389 conftest$ac_exeext conftest.$ac_ext
20390LIBS=$ac_check_lib_save_LIBS
20391fi
20392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20393$as_echo "$ac_cv_lib_socket_connect" >&6; }
20394if test "x$ac_cv_lib_socket_connect" = x""yes; then :
20395 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1cf3d07d 20396fi
5213506e
RW
20397
20398 fi
20399
20400 # Guillermo Gomez says -lposix is necessary on A/UX.
20401 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20402if test "x$ac_cv_func_remove" = x""yes; then :
20403
1cf3d07d 20404fi
1cf3d07d
SE
20405
20406 if test $ac_cv_func_remove = no; then
5213506e
RW
20407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20408$as_echo_n "checking for remove in -lposix... " >&6; }
20409if test "${ac_cv_lib_posix_remove+set}" = set; then :
20410 $as_echo_n "(cached) " >&6
1cf3d07d
SE
20411else
20412 ac_check_lib_save_LIBS=$LIBS
20413LIBS="-lposix $LIBS"
20414if test x$gcc_no_link = xyes; then
5213506e 20415 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 20416fi
5213506e 20417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
20418/* end confdefs.h. */
20419
5213506e
RW
20420/* Override any GCC internal prototype to avoid an error.
20421 Use char because int might match the return type of a GCC
20422 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
20423#ifdef __cplusplus
20424extern "C"
20425#endif
1cf3d07d
SE
20426char remove ();
20427int
20428main ()
20429{
5213506e 20430return remove ();
1cf3d07d
SE
20431 ;
20432 return 0;
20433}
20434_ACEOF
5213506e 20435if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
20436 ac_cv_lib_posix_remove=yes
20437else
5213506e 20438 ac_cv_lib_posix_remove=no
1cf3d07d 20439fi
5213506e
RW
20440rm -f core conftest.err conftest.$ac_objext \
20441 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
20442LIBS=$ac_check_lib_save_LIBS
20443fi
5213506e
RW
20444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20445$as_echo "$ac_cv_lib_posix_remove" >&6; }
20446if test "x$ac_cv_lib_posix_remove" = x""yes; then :
1cf3d07d
SE
20447 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20448fi
20449
20450 fi
20451
20452 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5213506e
RW
20453 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20454if test "x$ac_cv_func_shmat" = x""yes; then :
1cf3d07d 20455
1cf3d07d 20456fi
1cf3d07d
SE
20457
20458 if test $ac_cv_func_shmat = no; then
5213506e
RW
20459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20460$as_echo_n "checking for shmat in -lipc... " >&6; }
20461if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
20462 $as_echo_n "(cached) " >&6
1cf3d07d
SE
20463else
20464 ac_check_lib_save_LIBS=$LIBS
20465LIBS="-lipc $LIBS"
20466if test x$gcc_no_link = xyes; then
5213506e 20467 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 20468fi
5213506e 20469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
20470/* end confdefs.h. */
20471
5213506e
RW
20472/* Override any GCC internal prototype to avoid an error.
20473 Use char because int might match the return type of a GCC
20474 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
20475#ifdef __cplusplus
20476extern "C"
20477#endif
1cf3d07d
SE
20478char shmat ();
20479int
20480main ()
20481{
5213506e 20482return shmat ();
1cf3d07d
SE
20483 ;
20484 return 0;
20485}
20486_ACEOF
5213506e 20487if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
20488 ac_cv_lib_ipc_shmat=yes
20489else
5213506e 20490 ac_cv_lib_ipc_shmat=no
1cf3d07d 20491fi
5213506e
RW
20492rm -f core conftest.err conftest.$ac_objext \
20493 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
20494LIBS=$ac_check_lib_save_LIBS
20495fi
5213506e
RW
20496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20497$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20498if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
1cf3d07d
SE
20499 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20500fi
20501
20502 fi
20503 fi
20504
20505 # Check for libraries that X11R6 Xt/Xaw programs need.
20506 ac_save_LDFLAGS=$LDFLAGS
20507 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20508 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20509 # check for ICE first), but we must link in the order -lSM -lICE or
20510 # we get undefined symbols. So assume we have SM if we have ICE.
20511 # These have to be linked with before -lX11, unlike the other
20512 # libraries we check for below, so use a different variable.
20513 # John Interrante, Karl Berry
5213506e
RW
20514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20515$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20516if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
20517 $as_echo_n "(cached) " >&6
1cf3d07d
SE
20518else
20519 ac_check_lib_save_LIBS=$LIBS
20520LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20521if test x$gcc_no_link = xyes; then
5213506e 20522 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 20523fi
5213506e 20524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
20525/* end confdefs.h. */
20526
5213506e
RW
20527/* Override any GCC internal prototype to avoid an error.
20528 Use char because int might match the return type of a GCC
20529 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
20530#ifdef __cplusplus
20531extern "C"
20532#endif
1cf3d07d
SE
20533char IceConnectionNumber ();
20534int
20535main ()
20536{
5213506e 20537return IceConnectionNumber ();
1cf3d07d
SE
20538 ;
20539 return 0;
20540}
20541_ACEOF
5213506e 20542if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
20543 ac_cv_lib_ICE_IceConnectionNumber=yes
20544else
5213506e 20545 ac_cv_lib_ICE_IceConnectionNumber=no
1cf3d07d 20546fi
5213506e
RW
20547rm -f core conftest.err conftest.$ac_objext \
20548 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
20549LIBS=$ac_check_lib_save_LIBS
20550fi
5213506e
RW
20551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20552$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20553if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
1cf3d07d
SE
20554 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20555fi
20556
20557 LDFLAGS=$ac_save_LDFLAGS
20558
20559fi
20560
20561
20562# FIXME: this should be _libs on some hosts.
20563libsubdir=.libs
20564
f202305d
AH
20565LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20566
20567LIBSTDCXXSPEC=
1cf3d07d
SE
20568# extra LD Flags which are required for targets
20569case "${host}" in
20570*-*-darwin[0-7].*)
20571 # For now we have to disable it on darwin[8-9] because it slows down
20572 # the linking phase. A possible bug in ld?
20573 # on Darwin -single_module speeds up loading of the dynamic libraries.
20574 extra_ldflags_libjava=-Wl,-single_module
20575 ;;
9945a876 20576arm*-*-linux-*)
f202305d
AH
20577 # Some of the ARM unwinder code is actually in libstdc++. We
20578 # could in principle replicate it in libgcj, but it's better to
20579 # have a dependency on libstdc++.
20580 extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20581 LIBSTDCXXSPEC=-lstdc++
20582 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20583 ;;
6a92b6c7
DK
20584*-*-cygwin)
20585 extra_ldflags_libjava=-liconv
20586 ;;
51e16725
KT
20587*-*-mingw*)
20588 extra_ldflags_libjava=-lws2_32
20589 ;;
1cf3d07d
SE
20590esac
20591
d80148b8
JH
20592LIBMATHSPEC=
20593# extra LD Flags which are required for targets
20594case "${host}" in
20595*-*-darwin*)
20596 ;;
20597*)
20598 LIBMATHSPEC=-lm
20599 ;;
20600esac
20601
6cf3abb1
AH
20602# Check for --no-merge-exidx-entries, an ARM-specific linker option.
20603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --no-merge-exidx-entries" >&5
20604$as_echo_n "checking for --no-merge-exidx-entries... " >&6; }
20605if test "${libgcj_cv_exidx+set}" = set; then :
20606 $as_echo_n "(cached) " >&6
20607else
20608 saved_ldflags="$LDFLAGS"
20609 LDFLAGS="${LDFLAGS} -Wl,--no-merge-exidx-entries"
20610 if test x$gcc_no_link = xyes; then
20611 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20612fi
20613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20614/* end confdefs.h. */
20615int main(void){ return 0;}
20616_ACEOF
20617if ac_fn_c_try_link "$LINENO"; then :
20618 eval "libgcj_cv_exidx=yes"
20619else
20620 eval "libgcj_cv_exidx=no"
20621fi
20622rm -f core conftest.err conftest.$ac_objext \
20623 conftest$ac_exeext conftest.$ac_ext
20624 LDFLAGS="${saved_ldflags}"
20625
20626fi
20627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcj_cv_exidx" >&5
20628$as_echo "$libgcj_cv_exidx" >&6; }
20629if test "${libgcj_cv_exidx}" = "yes"; then
20630 SYSTEMSPEC="${SYSTEMSPEC} --no-merge-exidx-entries"
20631 extra_ldflags="${extra_ldflags} -Wl,--no-merge-exidx-entries"
20632fi
20633
20634
1cf3d07d 20635
f202305d
AH
20636
20637
20638
20639
d80148b8 20640
1cf3d07d 20641# Allow the GC to be disabled. Can be useful when debugging.
5213506e
RW
20642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for garbage collector to use" >&5
20643$as_echo_n "checking for garbage collector to use... " >&6; }
20644# Check whether --enable-java-gc was given.
20645if test "${enable_java_gc+set}" = set; then :
20646 enableval=$enable_java_gc; GC=$enableval
1cf3d07d
SE
20647else
20648 GC=boehm
5213506e
RW
20649fi
20650
1cf3d07d
SE
20651GCLIBS=
20652GCINCS=
20653GCDEPS=
20654GCSPEC=
20655JC1GCSPEC=
20656GCTESTSPEC=
20657case "$GC" in
20658 boehm)
5213506e
RW
20659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: boehm" >&5
20660$as_echo "boehm" >&6; }
1cf3d07d
SE
20661 GCLIBS=../boehm-gc/libgcjgc_convenience.la
20662 JC1GCSPEC='-fuse-boehm-gc'
20663 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20664 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20665 GCOBJS=boehm.lo
20666 GCHDR=boehm-gc.h
20667 # The POSIX thread support needs to know this.
20668
5213506e 20669$as_echo "#define HAVE_BOEHM_GC 1" >>confdefs.h
1cf3d07d
SE
20670
20671 ;;
20672 no)
5213506e
RW
20673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
20674$as_echo "none" >&6; }
1cf3d07d
SE
20675 GCHDR=no-gc.h
20676 ;;
20677 *)
5213506e 20678 as_fn_error "unrecognized collector \"$GC\"" "$LINENO" 5
1cf3d07d
SE
20679 ;;
20680esac
20681
20682
20683
20684
20685
20686
5213506e 20687ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
1cf3d07d 20688
5213506e 20689 if test "$GC" = boehm; then
1cf3d07d
SE
20690 USING_BOEHMGC_TRUE=
20691 USING_BOEHMGC_FALSE='#'
20692else
20693 USING_BOEHMGC_TRUE='#'
20694 USING_BOEHMGC_FALSE=
20695fi
20696
5213506e 20697 if test "$GC" = no; then
1cf3d07d
SE
20698 USING_NOGC_TRUE=
20699 USING_NOGC_FALSE='#'
20700else
20701 USING_NOGC_TRUE='#'
20702 USING_NOGC_FALSE=
20703fi
20704
20705
20706
5213506e
RW
20707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
20708$as_echo_n "checking for thread model used by GCC... " >&6; }
1cf3d07d 20709THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
5213506e
RW
20710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
20711$as_echo "$THREADS" >&6; }
1cf3d07d
SE
20712
20713case "$THREADS" in
20714 no | none | single)
20715 THREADS=none
20716 ;;
ddaad3c8 20717 aix | posix | pthreads)
1cf3d07d
SE
20718 THREADS=posix
20719 case "$host" in
20720 *-*-linux*)
20721
5213506e 20722$as_echo "#define LINUX_THREADS 1" >>confdefs.h
1cf3d07d
SE
20723
20724 ;;
20725 esac
20726 ;;
20727 win32)
20728 ;;
60bea929 20729 dce | vxworks)
5213506e 20730 as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
1cf3d07d
SE
20731 ;;
20732 *)
5213506e 20733 as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
1cf3d07d
SE
20734 ;;
20735esac
20736
20737THREADCXXFLAGS=
20738THREADLDFLAGS=
20739THREADLIBS=
20740THREADINCS=
20741THREADDEPS=
20742THREADH=
20743THREADSPEC=
20744THREADSTARTFILESPEC=
20745case "$THREADS" in
20746 posix)
20747 case "$host" in
20748 *-*-cygwin*)
20749 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
20750 ;;
c6084f68 20751 *-*-freebsd[34].*)
1cf3d07d
SE
20752 # Before FreeBSD 5, it didn't have -lpthread (or any library which
20753 # merely adds pthread_* functions) but it does have a -pthread switch
20754 # which is required at link-time to select -lc_r *instead* of -lc.
20755 THREADLDFLAGS=-pthread
20756 # Don't set THREADSPEC here as might be expected since -pthread is
20757 # not processed when found within a spec file, it must come from
20758 # the command line. For now, the user must provide the -pthread
20759 # switch to link code compiled with gcj. In future, consider adding
20760 # support for weak references to pthread_* functions ala gthr.h API.
20761 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20762 ;;
20763 *-*-freebsd*)
20764 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20765 # systems which support threads and -lpthread.
20766 THREADLDFLAGS=-pthread
20767 THREADSPEC=-lpthread
20768 ;;
5c30094f 20769 hppa*-hp-hpux*)
1cf3d07d
SE
20770 THREADCXXFLAGS=-pthread
20771 # boehm-gc needs some functions from librt, so link that too.
20772 THREADLIBS='-lpthread -lrt'
20773 THREADSPEC='-lpthread -lrt'
20774 ;;
618d4830
JH
20775 *-*-darwin*)
20776 # Don't set THREADLIBS or THREADSPEC as Darwin already
20777 # provides pthread via libSystem.
20778 ;;
1cf3d07d
SE
20779 *)
20780 THREADLIBS=-lpthread
20781 THREADSPEC=-lpthread
20782 ;;
20783 esac
20784 THREADH=posix-threads.h
20785 # MIT pthreads doesn't seem to have the mutexattr functions.
20786 # But for now we don't check for it. We just assume you aren't
20787 # using MIT pthreads.
20788
5213506e 20789$as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
1cf3d07d
SE
20790
20791
20792 # If we're using the Boehm GC, then we happen to know that it
20793 # defines _REENTRANT, so we don't bother. Eww.
20794 if test "$GC" != boehm; then
20795
5213506e 20796$as_echo "#define _REENTRANT 1" >>confdefs.h
1cf3d07d
SE
20797
20798 fi
20799
5213506e 20800$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
1cf3d07d
SE
20801
20802 ;;
20803
20804 win32)
20805 THREADH=win32-threads.h
20806 THREADCXXFLAGS=-mthreads
20807 # We need thread-safe exception handling so _CRT_MT should be set to 1.
20808 # But we do not want the executables created to be dependent on
20809 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20810 # exception handling contexts. The following kludge achieves this effect
20811 # and causes a dummy __mingwthr_key_dtor() to be linked in from
20812 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
20813 # A workaround is to explicitly use -mthreads while linking Java programs.
20814 # See PR libgcj/28263.
20815 #
20816 # FIXME: In Java we are able to detect thread death at the end of
20817 # Thread.run() so we should be able to clean up the exception handling
20818 # contexts ourselves.
5b5b0fa9
KT
20819 case "$host" in
20820 *-w64-mingw*)
20821 ;;
20822 *)
20823 THREADSTARTFILESPEC='crtmt%O%s'
20824 ;;
20825 esac
1cf3d07d 20826 ;;
1cf3d07d
SE
20827 none)
20828 THREADH=no-threads.h
20829 ;;
20830esac
5213506e 20831ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
1cf3d07d
SE
20832
20833
20834
20835
20836
20837
20838
20839
5213506e 20840 if test "$THREADS" = posix; then
1cf3d07d
SE
20841 USING_POSIX_THREADS_TRUE=
20842 USING_POSIX_THREADS_FALSE='#'
20843else
20844 USING_POSIX_THREADS_TRUE='#'
20845 USING_POSIX_THREADS_FALSE=
20846fi
20847
5213506e 20848 if test "$THREADS" = win32; then
1cf3d07d
SE
20849 USING_WIN32_THREADS_TRUE=
20850 USING_WIN32_THREADS_FALSE='#'
20851else
20852 USING_WIN32_THREADS_TRUE='#'
20853 USING_WIN32_THREADS_FALSE=
20854fi
20855
5213506e 20856 if test "$THREADS" = none; then
1cf3d07d
SE
20857 USING_NO_THREADS_TRUE=
20858 USING_NO_THREADS_FALSE='#'
20859else
20860 USING_NO_THREADS_TRUE='#'
20861 USING_NO_THREADS_FALSE=
20862fi
20863
fda2cea1
JJ
20864if test "$enable_shared" != yes; then
20865 use_libgcj_bc=no
20866fi
5213506e 20867 if test "$use_libgcj_bc" = yes; then
1cf3d07d
SE
20868 USE_LIBGCJ_BC_TRUE=
20869 USE_LIBGCJ_BC_FALSE='#'
20870else
20871 USE_LIBGCJ_BC_TRUE='#'
20872 USE_LIBGCJ_BC_FALSE=
20873fi
20874
20875
20876if test -d sysdep; then true; else mkdir sysdep; fi
5213506e 20877ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
1cf3d07d 20878
5213506e 20879ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
1cf3d07d 20880
5213506e 20881ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
1cf3d07d
SE
20882
20883
6a92b6c7
DK
20884LIBGCJ_SPEC_LGCJ=-lgcj
20885LIBGCJ_SPEC_LGCJ_BC=-lgcj_bc
20886if test x"$libgcj_spec_lgcj_override" != x ; then
20887 LIBGCJ_SPEC_LGCJ=$libgcj_spec_lgcj_override
20888fi
20889if test x"$libgcj_spec_lgcj_bc_override" != x ; then
20890 LIBGCJ_SPEC_LGCJ_BC=$libgcj_spec_lgcj_bc_override
20891fi
20892LIBGCJ_SPEC="%{s-bc-abi:} $LIBGCJ_SPEC_LGCJ"
1cf3d07d 20893if test "$use_libgcj_bc" = yes; then
6a92b6c7 20894 LIBGCJ_SPEC="%{static|static-libgcj|!s-bc-abi:$LIBGCJ_SPEC_LGCJ;:$LIBGCJ_SPEC_LGCJ_BC}"
de383aec 20895 LIBGCJ_BC_SPEC="%{findirect-dispatch:-fPIC}"
1cf3d07d
SE
20896fi
20897
84fec8a5
RW
20898
20899
1cf3d07d
SE
20900HASH_SYNC_SPEC=
20901# Hash synchronization is only useful with posix threads right now.
20902if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20903 HASH_SYNC_SPEC=-fhash-synchronization
20904
5213506e 20905$as_echo "#define JV_HASH_SYNCHRONIZATION 1" >>confdefs.h
1cf3d07d
SE
20906
20907fi
20908
20909
5213506e 20910 if test "$GCC" = yes; then
1cf3d07d
SE
20911 USING_GCC_TRUE=
20912 USING_GCC_FALSE='#'
20913else
20914 USING_GCC_TRUE='#'
20915 USING_GCC_FALSE=
20916fi
20917
20918
201cdb74
RO
20919# We're in the tree with libgcc, and need to include some of its headers.
20920LIBGCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../libgcc'
1cf3d07d
SE
20921
20922if test "x${with_newlib}" = "xyes"; then
20923 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
20924 # may not work correctly, because the compiler may not be able to
20925 # link executables.
20926
20927 # We assume newlib. This lets us hard-code the functions we know
20928 # we'll have.
20929
5213506e 20930$as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
1cf3d07d 20931
1cf3d07d 20932
5213506e 20933$as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
1cf3d07d 20934
1cf3d07d 20935
5213506e 20936$as_echo "#define HAVE_TIME 1" >>confdefs.h
1cf3d07d
SE
20937
20938
5213506e 20939$as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
1cf3d07d 20940
1cf3d07d 20941
5213506e 20942$as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
1cf3d07d 20943
1cf3d07d 20944
5213506e 20945$as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
1cf3d07d 20946
5213506e 20947 # This is only for POSIX threads.
1cf3d07d 20948
5213506e 20949$as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
1cf3d07d
SE
20950
20951
5213506e 20952 # Assume we do not have getuid and friends.
1cf3d07d 20953
5213506e 20954$as_echo "#define NO_GETUID 1" >>confdefs.h
1cf3d07d 20955
5213506e 20956 PLATFORMNET=NoNet
1cf3d07d 20957else
5213506e
RW
20958 for ac_func in strerror_r select fstat open fsync sleep opendir \
20959 localtime_r getpwuid_r getcwd \
20960 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20961 nl_langinfo setlocale \
20962 inet_pton uname inet_ntoa \
20963 getrlimit sigaction ftruncate mmap \
20964 getifaddrs
20965do :
20966 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20967ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20968eval as_val=\$$as_ac_var
20969 if test "x$as_val" = x""yes; then :
20970 cat >>confdefs.h <<_ACEOF
20971#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1cf3d07d 20972_ACEOF
1cf3d07d 20973
1cf3d07d 20974fi
5213506e 20975done
1cf3d07d 20976
5213506e
RW
20977 for ac_func in inet_aton inet_addr
20978do :
20979 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20980ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20981eval as_val=\$$as_ac_var
20982 if test "x$as_val" = x""yes; then :
20983 cat >>confdefs.h <<_ACEOF
20984#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1cf3d07d 20985_ACEOF
5213506e 20986 break
1cf3d07d 20987fi
5213506e 20988done
1cf3d07d 20989
5213506e
RW
20990 for ac_header in unistd.h dlfcn.h sys/resource.h
20991do :
20992 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20993ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20994eval as_val=\$$as_ac_Header
20995 if test "x$as_val" = x""yes; then :
1cf3d07d 20996 cat >>confdefs.h <<_ACEOF
5213506e 20997#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1cf3d07d
SE
20998_ACEOF
20999
21000fi
21001
21002done
21003
21004 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
5213506e
RW
21005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
21006$as_echo_n "checking for dladdr in -ldl... " >&6; }
21007if test "${ac_cv_lib_dl_dladdr+set}" = set; then :
21008 $as_echo_n "(cached) " >&6
1cf3d07d
SE
21009else
21010 ac_check_lib_save_LIBS=$LIBS
21011LIBS="-ldl $LIBS"
21012if test x$gcc_no_link = xyes; then
5213506e 21013 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 21014fi
5213506e 21015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
21016/* end confdefs.h. */
21017
5213506e
RW
21018/* Override any GCC internal prototype to avoid an error.
21019 Use char because int might match the return type of a GCC
21020 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
21021#ifdef __cplusplus
21022extern "C"
21023#endif
1cf3d07d
SE
21024char dladdr ();
21025int
21026main ()
21027{
5213506e 21028return dladdr ();
1cf3d07d
SE
21029 ;
21030 return 0;
21031}
21032_ACEOF
5213506e 21033if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
21034 ac_cv_lib_dl_dladdr=yes
21035else
5213506e 21036 ac_cv_lib_dl_dladdr=no
1cf3d07d 21037fi
5213506e
RW
21038rm -f core conftest.err conftest.$ac_objext \
21039 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
21040LIBS=$ac_check_lib_save_LIBS
21041fi
5213506e
RW
21042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
21043$as_echo "$ac_cv_lib_dl_dladdr" >&6; }
21044if test "x$ac_cv_lib_dl_dladdr" = x""yes; then :
1cf3d07d
SE
21045
21046
5213506e 21047$as_echo "#define HAVE_DLADDR 1" >>confdefs.h
1cf3d07d
SE
21048
21049else
21050
5213506e
RW
21051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldld" >&5
21052$as_echo_n "checking for dladdr in -ldld... " >&6; }
21053if test "${ac_cv_lib_dld_dladdr+set}" = set; then :
21054 $as_echo_n "(cached) " >&6
1cf3d07d
SE
21055else
21056 ac_check_lib_save_LIBS=$LIBS
21057LIBS="-ldld $LIBS"
21058if test x$gcc_no_link = xyes; then
5213506e 21059 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 21060fi
5213506e 21061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
21062/* end confdefs.h. */
21063
5213506e
RW
21064/* Override any GCC internal prototype to avoid an error.
21065 Use char because int might match the return type of a GCC
21066 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
21067#ifdef __cplusplus
21068extern "C"
21069#endif
1cf3d07d
SE
21070char dladdr ();
21071int
21072main ()
21073{
5213506e 21074return dladdr ();
1cf3d07d
SE
21075 ;
21076 return 0;
21077}
21078_ACEOF
5213506e 21079if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
21080 ac_cv_lib_dld_dladdr=yes
21081else
5213506e 21082 ac_cv_lib_dld_dladdr=no
1cf3d07d 21083fi
5213506e
RW
21084rm -f core conftest.err conftest.$ac_objext \
21085 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
21086LIBS=$ac_check_lib_save_LIBS
21087fi
5213506e
RW
21088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dladdr" >&5
21089$as_echo "$ac_cv_lib_dld_dladdr" >&6; }
21090if test "x$ac_cv_lib_dld_dladdr" = x""yes; then :
1cf3d07d
SE
21091
21092
5213506e 21093$as_echo "#define HAVE_DLADDR 1" >>confdefs.h
1cf3d07d
SE
21094
21095fi
21096
21097fi
21098
21099
21100 if test x"$cross_compiling" = x"no"; then
5213506e
RW
21101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/exe" >&5
21102$as_echo_n "checking for /proc/self/exe... " >&6; }
21103if test "${ac_cv_file__proc_self_exe+set}" = set; then :
21104 $as_echo_n "(cached) " >&6
1cf3d07d
SE
21105else
21106 test "$cross_compiling" = yes &&
5213506e 21107 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
1cf3d07d
SE
21108if test -r "/proc/self/exe"; then
21109 ac_cv_file__proc_self_exe=yes
21110else
21111 ac_cv_file__proc_self_exe=no
21112fi
21113fi
5213506e
RW
21114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_exe" >&5
21115$as_echo "$ac_cv_file__proc_self_exe" >&6; }
21116if test "x$ac_cv_file__proc_self_exe" = x""yes; then :
1cf3d07d
SE
21117
21118cat >>confdefs.h <<_ACEOF
21119#define HAVE__PROC_SELF_EXE 1
21120_ACEOF
21121
21122
5213506e 21123$as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
1cf3d07d
SE
21124
21125fi
21126
5213506e
RW
21127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/maps" >&5
21128$as_echo_n "checking for /proc/self/maps... " >&6; }
21129if test "${ac_cv_file__proc_self_maps+set}" = set; then :
21130 $as_echo_n "(cached) " >&6
1cf3d07d
SE
21131else
21132 test "$cross_compiling" = yes &&
5213506e 21133 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
1cf3d07d
SE
21134if test -r "/proc/self/maps"; then
21135 ac_cv_file__proc_self_maps=yes
21136else
21137 ac_cv_file__proc_self_maps=no
21138fi
21139fi
5213506e
RW
21140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_maps" >&5
21141$as_echo "$ac_cv_file__proc_self_maps" >&6; }
21142if test "x$ac_cv_file__proc_self_maps" = x""yes; then :
1cf3d07d
SE
21143
21144cat >>confdefs.h <<_ACEOF
21145#define HAVE__PROC_SELF_MAPS 1
21146_ACEOF
21147
21148
5213506e 21149$as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
1cf3d07d
SE
21150
21151fi
21152
21153 else
21154 case $host in
21155 *-linux*)
21156
5213506e 21157$as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
1cf3d07d
SE
21158
21159
5213506e 21160$as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
1cf3d07d
SE
21161
21162 ;;
21163 esac
21164 fi
21165
21166
21167 if test "X$prefix" = "XNONE"; then
21168 acl_final_prefix="$ac_default_prefix"
21169 else
21170 acl_final_prefix="$prefix"
21171 fi
21172 if test "X$exec_prefix" = "XNONE"; then
21173 acl_final_exec_prefix='${prefix}'
21174 else
21175 acl_final_exec_prefix="$exec_prefix"
21176 fi
21177 acl_save_prefix="$prefix"
21178 prefix="$acl_final_prefix"
21179 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21180 prefix="$acl_save_prefix"
21181
21182
5213506e
RW
21183# Check whether --with-gnu-ld was given.
21184if test "${with_gnu_ld+set}" = set; then :
21185 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1cf3d07d
SE
21186else
21187 with_gnu_ld=no
5213506e
RW
21188fi
21189
1cf3d07d
SE
21190# Prepare PATH_SEPARATOR.
21191# The user is always right.
21192if test "${PATH_SEPARATOR+set}" != set; then
21193 echo "#! /bin/sh" >conf$$.sh
21194 echo "exit 0" >>conf$$.sh
21195 chmod +x conf$$.sh
21196 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21197 PATH_SEPARATOR=';'
21198 else
21199 PATH_SEPARATOR=:
21200 fi
21201 rm -f conf$$.sh
21202fi
21203ac_prog=ld
21204if test "$GCC" = yes; then
21205 # Check if gcc -print-prog-name=ld gives a path.
5213506e
RW
21206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
21207$as_echo_n "checking for ld used by GCC... " >&6; }
1cf3d07d
SE
21208 case $host in
21209 *-*-mingw*)
21210 # gcc leaves a trailing carriage return which upsets mingw
21211 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21212 *)
21213 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21214 esac
21215 case $ac_prog in
21216 # Accept absolute paths.
21217 [\\/]* | [A-Za-z]:[\\/]*)
21218 re_direlt='/[^/][^/]*/\.\./'
21219 # Canonicalize the path of ld
21220 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21221 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21222 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21223 done
21224 test -z "$LD" && LD="$ac_prog"
21225 ;;
21226 "")
21227 # If it fails, then pretend we aren't using GCC.
21228 ac_prog=ld
21229 ;;
21230 *)
21231 # If it is relative, then search for the first ld in PATH.
21232 with_gnu_ld=unknown
21233 ;;
21234 esac
21235elif test "$with_gnu_ld" = yes; then
5213506e
RW
21236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
21237$as_echo_n "checking for GNU ld... " >&6; }
1cf3d07d 21238else
5213506e
RW
21239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
21240$as_echo_n "checking for non-GNU ld... " >&6; }
1cf3d07d 21241fi
5213506e
RW
21242if test "${acl_cv_path_LD+set}" = set; then :
21243 $as_echo_n "(cached) " >&6
1cf3d07d
SE
21244else
21245 if test -z "$LD"; then
21246 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21247 for ac_dir in $PATH; do
21248 test -z "$ac_dir" && ac_dir=.
21249 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21250 acl_cv_path_LD="$ac_dir/$ac_prog"
21251 # Check to see if the program is GNU ld. I'd rather use --version,
21252 # but apparently some GNU ld's only accept -v.
21253 # Break only if it was the GNU/non-GNU ld that we prefer.
21254 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
21255 test "$with_gnu_ld" != no && break
21256 else
21257 test "$with_gnu_ld" != yes && break
21258 fi
21259 fi
21260 done
21261 IFS="$ac_save_ifs"
21262else
21263 acl_cv_path_LD="$LD" # Let the user override the test with a path.
21264fi
21265fi
21266
21267LD="$acl_cv_path_LD"
21268if test -n "$LD"; then
5213506e
RW
21269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
21270$as_echo "$LD" >&6; }
1cf3d07d 21271else
5213506e
RW
21272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21273$as_echo "no" >&6; }
1cf3d07d 21274fi
5213506e
RW
21275test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
21276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
21277$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
21278if test "${acl_cv_prog_gnu_ld+set}" = set; then :
21279 $as_echo_n "(cached) " >&6
1cf3d07d
SE
21280else
21281 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21282if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21283 acl_cv_prog_gnu_ld=yes
21284else
21285 acl_cv_prog_gnu_ld=no
21286fi
21287fi
5213506e
RW
21288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
21289$as_echo "$acl_cv_prog_gnu_ld" >&6; }
1cf3d07d
SE
21290with_gnu_ld=$acl_cv_prog_gnu_ld
21291
21292
21293
5213506e
RW
21294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
21295$as_echo_n "checking for shared library run path origin... " >&6; }
21296if test "${acl_cv_rpath+set}" = set; then :
21297 $as_echo_n "(cached) " >&6
1cf3d07d
SE
21298else
21299
21300 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21301 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21302 . ./conftest.sh
21303 rm -f ./conftest.sh
21304 acl_cv_rpath=done
21305
21306fi
5213506e
RW
21307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
21308$as_echo "$acl_cv_rpath" >&6; }
1cf3d07d
SE
21309 wl="$acl_cv_wl"
21310 libext="$acl_cv_libext"
21311 shlibext="$acl_cv_shlibext"
21312 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21313 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21314 hardcode_direct="$acl_cv_hardcode_direct"
21315 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5213506e
RW
21316 # Check whether --enable-rpath was given.
21317if test "${enable_rpath+set}" = set; then :
21318 enableval=$enable_rpath; :
1cf3d07d
SE
21319else
21320 enable_rpath=yes
5213506e
RW
21321fi
21322
1cf3d07d
SE
21323
21324
21325
21326
21327
21328
21329
21330 use_additional=yes
21331
21332 acl_save_prefix="$prefix"
21333 prefix="$acl_final_prefix"
21334 acl_save_exec_prefix="$exec_prefix"
21335 exec_prefix="$acl_final_exec_prefix"
21336
21337 eval additional_includedir=\"$includedir\"
21338 eval additional_libdir=\"$libdir\"
21339
21340 exec_prefix="$acl_save_exec_prefix"
21341 prefix="$acl_save_prefix"
21342
21343
5213506e
RW
21344# Check whether --with-libiconv-prefix was given.
21345if test "${with_libiconv_prefix+set}" = set; then :
21346 withval=$with_libiconv_prefix;
1cf3d07d
SE
21347 if test "X$withval" = "Xno"; then
21348 use_additional=no
21349 else
21350 if test "X$withval" = "X"; then
21351
21352 acl_save_prefix="$prefix"
21353 prefix="$acl_final_prefix"
21354 acl_save_exec_prefix="$exec_prefix"
21355 exec_prefix="$acl_final_exec_prefix"
21356
21357 eval additional_includedir=\"$includedir\"
21358 eval additional_libdir=\"$libdir\"
21359
21360 exec_prefix="$acl_save_exec_prefix"
21361 prefix="$acl_save_prefix"
21362
21363 else
21364 additional_includedir="$withval/include"
21365 additional_libdir="$withval/lib"
21366 fi
21367 fi
21368
5213506e
RW
21369fi
21370
1cf3d07d
SE
21371 LIBICONV=
21372 LTLIBICONV=
21373 INCICONV=
21374 rpathdirs=
21375 ltrpathdirs=
21376 names_already_handled=
21377 names_next_round='iconv '
21378 while test -n "$names_next_round"; do
21379 names_this_round="$names_next_round"
21380 names_next_round=
21381 for name in $names_this_round; do
21382 already_handled=
21383 for n in $names_already_handled; do
21384 if test "$n" = "$name"; then
21385 already_handled=yes
21386 break
21387 fi
21388 done
21389 if test -z "$already_handled"; then
21390 names_already_handled="$names_already_handled $name"
21391 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21392 eval value=\"\$HAVE_LIB$uppername\"
21393 if test -n "$value"; then
21394 if test "$value" = yes; then
21395 eval value=\"\$LIB$uppername\"
21396 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21397 eval value=\"\$LTLIB$uppername\"
21398 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21399 else
21400 :
21401 fi
21402 else
21403 found_dir=
21404 found_la=
21405 found_so=
21406 found_a=
21407 if test $use_additional = yes; then
21408 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21409 found_dir="$additional_libdir"
21410 found_so="$additional_libdir/lib$name.$shlibext"
21411 if test -f "$additional_libdir/lib$name.la"; then
21412 found_la="$additional_libdir/lib$name.la"
21413 fi
21414 else
21415 if test -f "$additional_libdir/lib$name.$libext"; then
21416 found_dir="$additional_libdir"
21417 found_a="$additional_libdir/lib$name.$libext"
21418 if test -f "$additional_libdir/lib$name.la"; then
21419 found_la="$additional_libdir/lib$name.la"
21420 fi
21421 fi
21422 fi
21423 fi
21424 if test "X$found_dir" = "X"; then
21425 for x in $LDFLAGS $LTLIBICONV; do
21426
21427 acl_save_prefix="$prefix"
21428 prefix="$acl_final_prefix"
21429 acl_save_exec_prefix="$exec_prefix"
21430 exec_prefix="$acl_final_exec_prefix"
21431 eval x=\"$x\"
21432 exec_prefix="$acl_save_exec_prefix"
21433 prefix="$acl_save_prefix"
21434
21435 case "$x" in
21436 -L*)
21437 dir=`echo "X$x" | sed -e 's/^X-L//'`
21438 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21439 found_dir="$dir"
21440 found_so="$dir/lib$name.$shlibext"
21441 if test -f "$dir/lib$name.la"; then
21442 found_la="$dir/lib$name.la"
21443 fi
21444 else
21445 if test -f "$dir/lib$name.$libext"; then
21446 found_dir="$dir"
21447 found_a="$dir/lib$name.$libext"
21448 if test -f "$dir/lib$name.la"; then
21449 found_la="$dir/lib$name.la"
21450 fi
21451 fi
21452 fi
21453 ;;
21454 esac
21455 if test "X$found_dir" != "X"; then
21456 break
21457 fi
21458 done
21459 fi
21460 if test "X$found_dir" != "X"; then
21461 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21462 if test "X$found_so" != "X"; then
21463 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21464 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21465 else
21466 haveit=
21467 for x in $ltrpathdirs; do
21468 if test "X$x" = "X$found_dir"; then
21469 haveit=yes
21470 break
21471 fi
21472 done
21473 if test -z "$haveit"; then
21474 ltrpathdirs="$ltrpathdirs $found_dir"
21475 fi
21476 if test "$hardcode_direct" = yes; then
21477 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21478 else
21479 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21480 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21481 haveit=
21482 for x in $rpathdirs; do
21483 if test "X$x" = "X$found_dir"; then
21484 haveit=yes
21485 break
21486 fi
21487 done
21488 if test -z "$haveit"; then
21489 rpathdirs="$rpathdirs $found_dir"
21490 fi
21491 else
21492 haveit=
21493 for x in $LDFLAGS $LIBICONV; do
21494
21495 acl_save_prefix="$prefix"
21496 prefix="$acl_final_prefix"
21497 acl_save_exec_prefix="$exec_prefix"
21498 exec_prefix="$acl_final_exec_prefix"
21499 eval x=\"$x\"
21500 exec_prefix="$acl_save_exec_prefix"
21501 prefix="$acl_save_prefix"
21502
21503 if test "X$x" = "X-L$found_dir"; then
21504 haveit=yes
21505 break
21506 fi
21507 done
21508 if test -z "$haveit"; then
21509 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21510 fi
21511 if test "$hardcode_minus_L" != no; then
21512 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21513 else
21514 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21515 fi
21516 fi
21517 fi
21518 fi
21519 else
21520 if test "X$found_a" != "X"; then
21521 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21522 else
21523 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21524 fi
21525 fi
21526 additional_includedir=
21527 case "$found_dir" in
21528 */lib | */lib/)
21529 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21530 additional_includedir="$basedir/include"
21531 ;;
21532 esac
21533 if test "X$additional_includedir" != "X"; then
21534 if test "X$additional_includedir" != "X/usr/include"; then
21535 haveit=
21536 if test "X$additional_includedir" = "X/usr/local/include"; then
21537 if test -n "$GCC"; then
21538 case $host_os in
21539 linux*) haveit=yes;;
21540 esac
21541 fi
21542 fi
21543 if test -z "$haveit"; then
21544 for x in $CPPFLAGS $INCICONV; do
21545
21546 acl_save_prefix="$prefix"
21547 prefix="$acl_final_prefix"
21548 acl_save_exec_prefix="$exec_prefix"
21549 exec_prefix="$acl_final_exec_prefix"
21550 eval x=\"$x\"
21551 exec_prefix="$acl_save_exec_prefix"
21552 prefix="$acl_save_prefix"
21553
21554 if test "X$x" = "X-I$additional_includedir"; then
21555 haveit=yes
21556 break
21557 fi
21558 done
21559 if test -z "$haveit"; then
21560 if test -d "$additional_includedir"; then
21561 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21562 fi
21563 fi
21564 fi
21565 fi
21566 fi
21567 if test -n "$found_la"; then
21568 save_libdir="$libdir"
21569 case "$found_la" in
21570 */* | *\\*) . "$found_la" ;;
21571 *) . "./$found_la" ;;
21572 esac
21573 libdir="$save_libdir"
21574 for dep in $dependency_libs; do
21575 case "$dep" in
21576 -L*)
21577 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21578 if test "X$additional_libdir" != "X/usr/lib"; then
21579 haveit=
21580 if test "X$additional_libdir" = "X/usr/local/lib"; then
21581 if test -n "$GCC"; then
21582 case $host_os in
21583 linux*) haveit=yes;;
21584 esac
21585 fi
21586 fi
21587 if test -z "$haveit"; then
21588 haveit=
21589 for x in $LDFLAGS $LIBICONV; do
21590
21591 acl_save_prefix="$prefix"
21592 prefix="$acl_final_prefix"
21593 acl_save_exec_prefix="$exec_prefix"
21594 exec_prefix="$acl_final_exec_prefix"
21595 eval x=\"$x\"
21596 exec_prefix="$acl_save_exec_prefix"
21597 prefix="$acl_save_prefix"
21598
21599 if test "X$x" = "X-L$additional_libdir"; then
21600 haveit=yes
21601 break
21602 fi
21603 done
21604 if test -z "$haveit"; then
21605 if test -d "$additional_libdir"; then
21606 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21607 fi
21608 fi
21609 haveit=
21610 for x in $LDFLAGS $LTLIBICONV; do
21611
21612 acl_save_prefix="$prefix"
21613 prefix="$acl_final_prefix"
21614 acl_save_exec_prefix="$exec_prefix"
21615 exec_prefix="$acl_final_exec_prefix"
21616 eval x=\"$x\"
21617 exec_prefix="$acl_save_exec_prefix"
21618 prefix="$acl_save_prefix"
21619
21620 if test "X$x" = "X-L$additional_libdir"; then
21621 haveit=yes
21622 break
21623 fi
21624 done
21625 if test -z "$haveit"; then
21626 if test -d "$additional_libdir"; then
21627 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21628 fi
21629 fi
21630 fi
21631 fi
21632 ;;
21633 -R*)
21634 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21635 if test "$enable_rpath" != no; then
21636 haveit=
21637 for x in $rpathdirs; do
21638 if test "X$x" = "X$dir"; then
21639 haveit=yes
21640 break
21641 fi
21642 done
21643 if test -z "$haveit"; then
21644 rpathdirs="$rpathdirs $dir"
21645 fi
21646 haveit=
21647 for x in $ltrpathdirs; do
21648 if test "X$x" = "X$dir"; then
21649 haveit=yes
21650 break
21651 fi
21652 done
21653 if test -z "$haveit"; then
21654 ltrpathdirs="$ltrpathdirs $dir"
21655 fi
21656 fi
21657 ;;
21658 -l*)
21659 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21660 ;;
21661 *.la)
21662 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21663 ;;
21664 *)
21665 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21666 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21667 ;;
21668 esac
21669 done
21670 fi
21671 else
21672 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21673 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21674 fi
21675 fi
21676 fi
21677 done
21678 done
21679 if test "X$rpathdirs" != "X"; then
21680 if test -n "$hardcode_libdir_separator"; then
21681 alldirs=
21682 for found_dir in $rpathdirs; do
21683 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21684 done
21685 acl_save_libdir="$libdir"
21686 libdir="$alldirs"
21687 eval flag=\"$hardcode_libdir_flag_spec\"
21688 libdir="$acl_save_libdir"
21689 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21690 else
21691 for found_dir in $rpathdirs; do
21692 acl_save_libdir="$libdir"
21693 libdir="$found_dir"
21694 eval flag=\"$hardcode_libdir_flag_spec\"
21695 libdir="$acl_save_libdir"
21696 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21697 done
21698 fi
21699 fi
21700 if test "X$ltrpathdirs" != "X"; then
21701 for found_dir in $ltrpathdirs; do
21702 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21703 done
21704 fi
21705
21706
21707
21708
21709
21710
21711
21712 am_save_CPPFLAGS="$CPPFLAGS"
21713
21714 for element in $INCICONV; do
21715 haveit=
21716 for x in $CPPFLAGS; do
21717
21718 acl_save_prefix="$prefix"
21719 prefix="$acl_final_prefix"
21720 acl_save_exec_prefix="$exec_prefix"
21721 exec_prefix="$acl_final_exec_prefix"
21722 eval x=\"$x\"
21723 exec_prefix="$acl_save_exec_prefix"
21724 prefix="$acl_save_prefix"
21725
21726 if test "X$x" = "X$element"; then
21727 haveit=yes
21728 break
21729 fi
21730 done
21731 if test -z "$haveit"; then
21732 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21733 fi
21734 done
21735
21736
5213506e
RW
21737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21738$as_echo_n "checking for iconv... " >&6; }
21739if test "${am_cv_func_iconv+set}" = set; then :
21740 $as_echo_n "(cached) " >&6
1cf3d07d
SE
21741else
21742
21743 am_cv_func_iconv="no, consider installing GNU libiconv"
21744 am_cv_lib_iconv=no
21745 if test x$gcc_no_link = xyes; then
5213506e 21746 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 21747fi
5213506e 21748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
21749/* end confdefs.h. */
21750#include <stdlib.h>
21751#include <iconv.h>
21752int
21753main ()
21754{
21755iconv_t cd = iconv_open("","");
21756 iconv(cd,NULL,NULL,NULL,NULL);
21757 iconv_close(cd);
21758 ;
21759 return 0;
21760}
21761_ACEOF
5213506e 21762if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 21763 am_cv_func_iconv=yes
1cf3d07d 21764fi
5213506e
RW
21765rm -f core conftest.err conftest.$ac_objext \
21766 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
21767 if test "$am_cv_func_iconv" != yes; then
21768 am_save_LIBS="$LIBS"
21769 LIBS="$LIBS $LIBICONV"
21770 if test x$gcc_no_link = xyes; then
5213506e 21771 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 21772fi
5213506e 21773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
21774/* end confdefs.h. */
21775#include <stdlib.h>
21776#include <iconv.h>
21777int
21778main ()
21779{
21780iconv_t cd = iconv_open("","");
21781 iconv(cd,NULL,NULL,NULL,NULL);
21782 iconv_close(cd);
21783 ;
21784 return 0;
21785}
21786_ACEOF
5213506e 21787if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
21788 am_cv_lib_iconv=yes
21789 am_cv_func_iconv=yes
1cf3d07d 21790fi
5213506e
RW
21791rm -f core conftest.err conftest.$ac_objext \
21792 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
21793 LIBS="$am_save_LIBS"
21794 fi
21795
21796fi
5213506e
RW
21797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
21798$as_echo "$am_cv_func_iconv" >&6; }
1cf3d07d
SE
21799 if test "$am_cv_func_iconv" = yes; then
21800
5213506e 21801$as_echo "#define HAVE_ICONV 1" >>confdefs.h
1cf3d07d
SE
21802
21803 fi
21804 if test "$am_cv_lib_iconv" = yes; then
5213506e
RW
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
21806$as_echo_n "checking how to link with libiconv... " >&6; }
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
21808$as_echo "$LIBICONV" >&6; }
1cf3d07d
SE
21809 else
21810 CPPFLAGS="$am_save_CPPFLAGS"
21811 LIBICONV=
21812 LTLIBICONV=
21813 fi
21814
21815
21816
21817 if test "$am_cv_func_iconv" = yes; then
5213506e
RW
21818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
21819$as_echo_n "checking for iconv declaration... " >&6; }
21820 if test "${am_cv_proto_iconv+set}" = set; then :
21821 $as_echo_n "(cached) " >&6
1cf3d07d
SE
21822else
21823
5213506e 21824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
21825/* end confdefs.h. */
21826
21827#include <stdlib.h>
21828#include <iconv.h>
21829extern
21830#ifdef __cplusplus
21831"C"
21832#endif
21833#if defined(__STDC__) || defined(__cplusplus)
21834size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21835#else
21836size_t iconv();
21837#endif
21838
21839int
21840main ()
21841{
21842
21843 ;
21844 return 0;
21845}
21846_ACEOF
5213506e 21847if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d
SE
21848 am_cv_proto_iconv_arg1=""
21849else
5213506e 21850 am_cv_proto_iconv_arg1="const"
1cf3d07d 21851fi
5213506e 21852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
21853 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);"
21854fi
21855
21856 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5213506e 21857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
1cf3d07d 21858 }$am_cv_proto_iconv" >&5
5213506e
RW
21859$as_echo "${ac_t:-
21860 }$am_cv_proto_iconv" >&6; }
1cf3d07d
SE
21861
21862cat >>confdefs.h <<_ACEOF
21863#define ICONV_CONST $am_cv_proto_iconv_arg1
21864_ACEOF
21865
21866 fi
21867
21868
5213506e
RW
21869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
21870$as_echo_n "checking for LC_MESSAGES... " >&6; }
21871if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
21872 $as_echo_n "(cached) " >&6
1cf3d07d
SE
21873else
21874 if test x$gcc_no_link = xyes; then
5213506e 21875 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 21876fi
5213506e 21877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
21878/* end confdefs.h. */
21879#include <locale.h>
21880int
21881main ()
21882{
21883return LC_MESSAGES
21884 ;
21885 return 0;
21886}
21887_ACEOF
5213506e 21888if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
21889 am_cv_val_LC_MESSAGES=yes
21890else
5213506e 21891 am_cv_val_LC_MESSAGES=no
1cf3d07d 21892fi
5213506e
RW
21893rm -f core conftest.err conftest.$ac_objext \
21894 conftest$ac_exeext conftest.$ac_ext
1cf3d07d 21895fi
5213506e
RW
21896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
21897$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
1cf3d07d
SE
21898 if test $am_cv_val_LC_MESSAGES = yes; then
21899
5213506e 21900$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
1cf3d07d
SE
21901
21902 fi
21903
5213506e
RW
21904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21905$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21906if test "${ac_cv_struct_tm+set}" = set; then :
21907 $as_echo_n "(cached) " >&6
1cf3d07d 21908else
5213506e 21909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
21910/* end confdefs.h. */
21911#include <sys/types.h>
21912#include <time.h>
21913
21914int
21915main ()
21916{
5213506e
RW
21917struct tm tm;
21918 int *p = &tm.tm_sec;
21919 return !p;
1cf3d07d
SE
21920 ;
21921 return 0;
21922}
21923_ACEOF
5213506e 21924if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d
SE
21925 ac_cv_struct_tm=time.h
21926else
5213506e 21927 ac_cv_struct_tm=sys/time.h
1cf3d07d 21928fi
5213506e 21929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d 21930fi
5213506e
RW
21931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21932$as_echo "$ac_cv_struct_tm" >&6; }
1cf3d07d
SE
21933if test $ac_cv_struct_tm = sys/time.h; then
21934
5213506e 21935$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
1cf3d07d 21936
1cf3d07d 21937fi
1cf3d07d 21938
5213506e
RW
21939ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21940#include <$ac_cv_struct_tm>
21941
21942"
21943if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
1cf3d07d 21944
5213506e
RW
21945cat >>confdefs.h <<_ACEOF
21946#define HAVE_STRUCT_TM_TM_ZONE 1
1cf3d07d
SE
21947_ACEOF
21948
5213506e 21949
1cf3d07d
SE
21950fi
21951
5213506e 21952if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
1cf3d07d 21953
5213506e 21954$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
1cf3d07d 21955
1cf3d07d 21956else
5213506e
RW
21957 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21958"
21959if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21960 ac_have_decl=1
21961else
21962 ac_have_decl=0
1cf3d07d 21963fi
1cf3d07d 21964
5213506e
RW
21965cat >>confdefs.h <<_ACEOF
21966#define HAVE_DECL_TZNAME $ac_have_decl
21967_ACEOF
1cf3d07d 21968
5213506e
RW
21969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21970$as_echo_n "checking for tzname... " >&6; }
21971if test "${ac_cv_var_tzname+set}" = set; then :
21972 $as_echo_n "(cached) " >&6
21973else
21974 if test x$gcc_no_link = xyes; then
21975 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21976fi
21977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21978/* end confdefs.h. */
21979#include <time.h>
21980#if !HAVE_DECL_TZNAME
21981extern char *tzname[];
1cf3d07d
SE
21982#endif
21983
21984int
21985main ()
21986{
5213506e 21987return tzname[0][0];
1cf3d07d
SE
21988 ;
21989 return 0;
21990}
21991_ACEOF
5213506e
RW
21992if ac_fn_c_try_link "$LINENO"; then :
21993 ac_cv_var_tzname=yes
1cf3d07d 21994else
5213506e 21995 ac_cv_var_tzname=no
1cf3d07d 21996fi
5213506e
RW
21997rm -f core conftest.err conftest.$ac_objext \
21998 conftest$ac_exeext conftest.$ac_ext
21999fi
22000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22001$as_echo "$ac_cv_var_tzname" >&6; }
22002 if test $ac_cv_var_tzname = yes; then
22003
22004$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22005
22006 fi
1cf3d07d 22007fi
1cf3d07d 22008
4e6ad422
RW
22009 LDLIBICONV=`echo " $LIBICONV " | sed "s/${acl_cv_wl--Wl,}/ /g; s/,/ /g"`
22010
1cf3d07d 22011
5213506e
RW
22012 for ac_func in gethostbyname_r
22013do :
22014 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
22015if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
22016 cat >>confdefs.h <<_ACEOF
1cf3d07d
SE
22017#define HAVE_GETHOSTBYNAME_R 1
22018_ACEOF
22019
5213506e
RW
22020
22021$as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
22022
1cf3d07d
SE
22023 # There are two different kinds of gethostbyname_r.
22024 # We look for the one that returns `int'.
22025 # Hopefully this check is robust enough.
5213506e 22026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
22027/* end confdefs.h. */
22028#include <netdb.h>
22029
22030_ACEOF
22031if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e 22032 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then :
1cf3d07d
SE
22033
22034
5213506e 22035$as_echo "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h
1cf3d07d
SE
22036
22037fi
22038rm -f conftest*
22039
22040
22041 case " $GCINCS " in
22042 *" -D_REENTRANT "*) ;;
22043 *)
5213506e
RW
22044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
22045$as_echo_n "checking whether gethostbyname_r declaration requires -D_REENTRANT... " >&6; }
22046if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then :
22047 $as_echo_n "(cached) " >&6
1cf3d07d 22048else
5213506e 22049 ac_ext=cpp
1cf3d07d
SE
22050ac_cpp='$CXXCPP $CPPFLAGS'
22051ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22052ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22053ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22054
5213506e 22055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
22056/* end confdefs.h. */
22057#include <netdb.h>
22058int
22059main ()
22060{
22061gethostbyname_r("", 0, 0);
22062 ;
22063 return 0;
22064}
22065_ACEOF
5213506e 22066if ac_fn_cxx_try_compile "$LINENO"; then :
1cf3d07d
SE
22067 libjava_cv_gethostbyname_r_needs_reentrant=no
22068else
5213506e 22069 CPPFLAGS_SAVE="$CPPFLAGS"
1cf3d07d 22070 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
5213506e 22071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
22072/* end confdefs.h. */
22073#include <netdb.h>
22074int
22075main ()
22076{
22077gethostbyname_r("", 0, 0);
22078 ;
22079 return 0;
22080}
22081_ACEOF
5213506e 22082if ac_fn_cxx_try_compile "$LINENO"; then :
1cf3d07d
SE
22083 libjava_cv_gethostbyname_r_needs_reentrant=yes
22084else
5213506e 22085 libjava_cv_gethostbyname_r_needs_reentrant=fail
1cf3d07d 22086fi
5213506e 22087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
22088 CPPFLAGS="$CPPFLAGS_SAVE"
22089
22090fi
5213506e 22091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
22092 ac_ext=c
22093ac_cpp='$CPP $CPPFLAGS'
22094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22096ac_compiler_gnu=$ac_cv_c_compiler_gnu
22097
22098
22099fi
5213506e
RW
22100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
22101$as_echo "$libjava_cv_gethostbyname_r_needs_reentrant" >&6; }
1cf3d07d
SE
22102 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
22103
5213506e 22104$as_echo "#define _REENTRANT 1" >>confdefs.h
1cf3d07d
SE
22105
22106 fi
22107 ;;
22108 esac
22109
5213506e
RW
22110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct hostent_data" >&5
22111$as_echo_n "checking for struct hostent_data... " >&6; }
22112if test "${libjava_cv_struct_hostent_data+set}" = set; then :
22113 $as_echo_n "(cached) " >&6
1cf3d07d 22114else
5213506e 22115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
22116/* end confdefs.h. */
22117
22118#if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
22119# define _REENTRANT 1
22120#endif
22121#include <netdb.h>
22122int
22123main ()
22124{
22125struct hostent_data data;
22126 ;
22127 return 0;
22128}
22129_ACEOF
5213506e 22130if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d
SE
22131 libjava_cv_struct_hostent_data=yes
22132else
5213506e 22133 libjava_cv_struct_hostent_data=no
1cf3d07d 22134fi
5213506e 22135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d 22136fi
5213506e
RW
22137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_struct_hostent_data" >&5
22138$as_echo "$libjava_cv_struct_hostent_data" >&6; }
1cf3d07d
SE
22139 if test "x$libjava_cv_struct_hostent_data" = xyes; then
22140
5213506e 22141$as_echo "#define HAVE_STRUCT_HOSTENT_DATA 1" >>confdefs.h
1cf3d07d
SE
22142
22143 fi
22144
22145fi
22146done
22147
22148
22149 # FIXME: libjava source code expects to find a prototype for
22150 # gethostbyaddr_r in netdb.h. The outer check ensures that
22151 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
22152 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
22153 # linkage check is enough, yet C++ code requires proper prototypes.)
5213506e 22154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
22155/* end confdefs.h. */
22156#include <netdb.h>
22157
22158_ACEOF
22159if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e 22160 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
1cf3d07d 22161
5213506e
RW
22162 for ac_func in gethostbyaddr_r
22163do :
22164 ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
22165if test "x$ac_cv_func_gethostbyaddr_r" = x""yes; then :
1cf3d07d 22166 cat >>confdefs.h <<_ACEOF
5213506e 22167#define HAVE_GETHOSTBYADDR_R 1
1cf3d07d
SE
22168_ACEOF
22169
22170
5213506e 22171$as_echo "#define HAVE_GETHOSTBYADDR_R 1" >>confdefs.h
1cf3d07d
SE
22172
22173 # There are two different kinds of gethostbyaddr_r.
22174 # We look for the one that returns `int'.
22175 # Hopefully this check is robust enough.
5213506e 22176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
22177/* end confdefs.h. */
22178#include <netdb.h>
22179
22180_ACEOF
22181if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e 22182 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then :
1cf3d07d
SE
22183
22184
5213506e 22185$as_echo "#define GETHOSTBYADDR_R_RETURNS_INT 1" >>confdefs.h
1cf3d07d
SE
22186
22187fi
22188rm -f conftest*
22189
22190fi
22191done
22192
5213506e
RW
22193fi
22194rm -f conftest*
22195
22196
22197 for ac_func in gethostname
22198do :
22199 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
22200if test "x$ac_cv_func_gethostname" = x""yes; then :
22201 cat >>confdefs.h <<_ACEOF
22202#define HAVE_GETHOSTNAME 1
1cf3d07d 22203_ACEOF
1cf3d07d 22204
5213506e
RW
22205
22206$as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
22207
22208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22209/* end confdefs.h. */
22210#include <unistd.h>
22211
22212_ACEOF
22213if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22214 $EGREP "gethostname" >/dev/null 2>&1; then :
22215
22216
22217$as_echo "#define HAVE_GETHOSTNAME_DECL 1" >>confdefs.h
22218
1cf3d07d 22219fi
5213506e
RW
22220rm -f conftest*
22221
1cf3d07d 22222fi
5213506e
RW
22223done
22224
22225
22226 for ac_func in usleep
22227do :
22228 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
22229if test "x$ac_cv_func_usleep" = x""yes; then :
1cf3d07d 22230 cat >>confdefs.h <<_ACEOF
5213506e 22231#define HAVE_USLEEP 1
1cf3d07d
SE
22232_ACEOF
22233
5213506e 22234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
22235/* end confdefs.h. */
22236#include <unistd.h>
22237
22238_ACEOF
22239if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e 22240 $EGREP "usleep" >/dev/null 2>&1; then :
1cf3d07d
SE
22241
22242
5213506e 22243$as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
1cf3d07d
SE
22244
22245fi
22246rm -f conftest*
22247
22248fi
22249done
22250
22251
22252 # Look for these functions in the thread library, but only bother
22253 # if using POSIX threads.
22254 if test "$THREADS" = posix; then
22255 save_LIBS="$LIBS"
22256 LIBS="$LIBS $THREADLIBS"
22257
22258 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
22259 # Solaris 7 the name librt is preferred.
5213506e
RW
22260 for ac_func in sched_yield
22261do :
22262 ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
22263if test "x$ac_cv_func_sched_yield" = x""yes; then :
1cf3d07d 22264 cat >>confdefs.h <<_ACEOF
5213506e 22265#define HAVE_SCHED_YIELD 1
1cf3d07d
SE
22266_ACEOF
22267
22268else
22269
5213506e
RW
22270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
22271$as_echo_n "checking for sched_yield in -lrt... " >&6; }
22272if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
22273 $as_echo_n "(cached) " >&6
1cf3d07d
SE
22274else
22275 ac_check_lib_save_LIBS=$LIBS
22276LIBS="-lrt $LIBS"
22277if test x$gcc_no_link = xyes; then
5213506e 22278 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 22279fi
5213506e 22280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
22281/* end confdefs.h. */
22282
5213506e
RW
22283/* Override any GCC internal prototype to avoid an error.
22284 Use char because int might match the return type of a GCC
22285 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
22286#ifdef __cplusplus
22287extern "C"
22288#endif
1cf3d07d
SE
22289char sched_yield ();
22290int
22291main ()
22292{
5213506e 22293return sched_yield ();
1cf3d07d
SE
22294 ;
22295 return 0;
22296}
22297_ACEOF
5213506e 22298if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
22299 ac_cv_lib_rt_sched_yield=yes
22300else
5213506e 22301 ac_cv_lib_rt_sched_yield=no
1cf3d07d 22302fi
5213506e
RW
22303rm -f core conftest.err conftest.$ac_objext \
22304 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
22305LIBS=$ac_check_lib_save_LIBS
22306fi
5213506e
RW
22307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
22308$as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
22309if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
1cf3d07d 22310
5213506e 22311 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
1cf3d07d
SE
22312
22313 THREADLIBS="$THREADLIBS -lrt"
22314 THREADSPEC="$THREADSPEC -lrt"
22315else
22316
5213506e
RW
22317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
22318$as_echo_n "checking for sched_yield in -lposix4... " >&6; }
22319if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then :
22320 $as_echo_n "(cached) " >&6
1cf3d07d
SE
22321else
22322 ac_check_lib_save_LIBS=$LIBS
22323LIBS="-lposix4 $LIBS"
22324if test x$gcc_no_link = xyes; then
5213506e 22325 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 22326fi
5213506e 22327cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
22328/* end confdefs.h. */
22329
5213506e
RW
22330/* Override any GCC internal prototype to avoid an error.
22331 Use char because int might match the return type of a GCC
22332 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
22333#ifdef __cplusplus
22334extern "C"
22335#endif
1cf3d07d
SE
22336char sched_yield ();
22337int
22338main ()
22339{
5213506e 22340return sched_yield ();
1cf3d07d
SE
22341 ;
22342 return 0;
22343}
22344_ACEOF
5213506e 22345if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
22346 ac_cv_lib_posix4_sched_yield=yes
22347else
5213506e 22348 ac_cv_lib_posix4_sched_yield=no
1cf3d07d 22349fi
5213506e
RW
22350rm -f core conftest.err conftest.$ac_objext \
22351 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
22352LIBS=$ac_check_lib_save_LIBS
22353fi
5213506e
RW
22354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
22355$as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
22356if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then :
1cf3d07d 22357
5213506e 22358 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
1cf3d07d
SE
22359
22360 THREADLIBS="$THREADLIBS -lposix4"
22361 THREADSPEC="$THREADSPEC -lposix4"
22362fi
22363
22364fi
22365
22366fi
22367done
22368
22369
5213506e
RW
22370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22371$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22372if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
22373 $as_echo_n "(cached) " >&6
1cf3d07d
SE
22374else
22375 ac_check_lib_save_LIBS=$LIBS
22376LIBS="-lrt $LIBS"
22377if test x$gcc_no_link = xyes; then
5213506e 22378 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 22379fi
5213506e 22380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
22381/* end confdefs.h. */
22382
5213506e
RW
22383/* Override any GCC internal prototype to avoid an error.
22384 Use char because int might match the return type of a GCC
22385 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
22386#ifdef __cplusplus
22387extern "C"
22388#endif
1cf3d07d
SE
22389char clock_gettime ();
22390int
22391main ()
22392{
5213506e 22393return clock_gettime ();
1cf3d07d
SE
22394 ;
22395 return 0;
22396}
22397_ACEOF
5213506e 22398if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
22399 ac_cv_lib_rt_clock_gettime=yes
22400else
5213506e 22401 ac_cv_lib_rt_clock_gettime=no
1cf3d07d 22402fi
5213506e
RW
22403rm -f core conftest.err conftest.$ac_objext \
22404 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
22405LIBS=$ac_check_lib_save_LIBS
22406fi
5213506e
RW
22407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22408$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22409if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
1cf3d07d
SE
22410
22411
5213506e 22412$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
1cf3d07d
SE
22413
22414 case "$THREADSPEC" in
22415 *-lrt*) ;;
22416 *)
22417 THREADSPEC="$THREADSPEC -lrt"
22418 THREADLIBS="$THREADLIBS -lrt"
22419 ;;
22420 esac
22421fi
22422
22423
22424 LIBS="$save_LIBS"
22425
22426 # We can save a little space at runtime if the mutex has m_count
22427 # or __m_count. This is a nice hack for Linux.
5213506e 22428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
22429/* end confdefs.h. */
22430#include <pthread.h>
22431int
22432main ()
22433{
22434
22435 extern pthread_mutex_t *mutex; int q = mutex->m_count;
22436
22437 ;
22438 return 0;
22439}
22440_ACEOF
5213506e 22441if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d 22442
5213506e
RW
22443$as_echo "#define PTHREAD_MUTEX_HAVE_M_COUNT 1" >>confdefs.h
22444
22445else
22446
22447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22448/* end confdefs.h. */
22449#include <pthread.h>
1cf3d07d
SE
22450int
22451main ()
22452{
5213506e
RW
22453
22454 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
22455
1cf3d07d
SE
22456 ;
22457 return 0;
22458}
22459_ACEOF
5213506e
RW
22460if ac_fn_c_try_compile "$LINENO"; then :
22461
22462$as_echo "#define PTHREAD_MUTEX_HAVE___M_COUNT 1" >>confdefs.h
1cf3d07d 22463
1cf3d07d 22464fi
5213506e 22465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d 22466fi
5213506e
RW
22467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22468 fi
22469
22470 # We require a way to get the time.
22471 time_found=no
22472 for ac_func in gettimeofday time ftime
22473do :
22474 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22475ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22476eval as_val=\$$as_ac_var
22477 if test "x$as_val" = x""yes; then :
1cf3d07d 22478 cat >>confdefs.h <<_ACEOF
5213506e 22479#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1cf3d07d 22480_ACEOF
5213506e 22481 time_found=yes
1cf3d07d
SE
22482fi
22483done
22484
5213506e
RW
22485 if test "$time_found" = no; then
22486 as_fn_error "no function found to get the time" "$LINENO" 5
22487 fi
1cf3d07d 22488
5213506e
RW
22489 for ac_func in memmove
22490do :
22491 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22492if test "x$ac_cv_func_memmove" = x""yes; then :
22493 cat >>confdefs.h <<_ACEOF
22494#define HAVE_MEMMOVE 1
1cf3d07d 22495_ACEOF
1cf3d07d 22496
5213506e
RW
22497fi
22498done
1cf3d07d 22499
1cf3d07d 22500
5213506e
RW
22501 # We require memcpy.
22502 memcpy_found=no
22503 for ac_func in memcpy
22504do :
22505 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
22506if test "x$ac_cv_func_memcpy" = x""yes; then :
1cf3d07d 22507 cat >>confdefs.h <<_ACEOF
5213506e 22508#define HAVE_MEMCPY 1
1cf3d07d
SE
22509_ACEOF
22510 memcpy_found=yes
22511fi
22512done
22513
22514 if test "$memcpy_found" = no; then
5213506e 22515 as_fn_error "memcpy is required" "$LINENO" 5
1cf3d07d
SE
22516 fi
22517 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
5213506e
RW
22518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22519$as_echo_n "checking for dlopen in -ldl... " >&6; }
22520if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
22521 $as_echo_n "(cached) " >&6
1cf3d07d
SE
22522else
22523 ac_check_lib_save_LIBS=$LIBS
22524LIBS="-ldl $LIBS"
22525if test x$gcc_no_link = xyes; then
5213506e 22526 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 22527fi
5213506e 22528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
22529/* end confdefs.h. */
22530
5213506e
RW
22531/* Override any GCC internal prototype to avoid an error.
22532 Use char because int might match the return type of a GCC
22533 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
22534#ifdef __cplusplus
22535extern "C"
22536#endif
1cf3d07d
SE
22537char dlopen ();
22538int
22539main ()
22540{
5213506e 22541return dlopen ();
1cf3d07d
SE
22542 ;
22543 return 0;
22544}
22545_ACEOF
5213506e 22546if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
22547 ac_cv_lib_dl_dlopen=yes
22548else
5213506e 22549 ac_cv_lib_dl_dlopen=no
1cf3d07d 22550fi
5213506e
RW
22551rm -f core conftest.err conftest.$ac_objext \
22552 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
22553LIBS=$ac_check_lib_save_LIBS
22554fi
5213506e
RW
22555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22556$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22557if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1cf3d07d
SE
22558
22559
5213506e 22560$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
1cf3d07d
SE
22561
22562else
22563
5213506e
RW
22564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldld" >&5
22565$as_echo_n "checking for dlopen in -ldld... " >&6; }
22566if test "${ac_cv_lib_dld_dlopen+set}" = set; then :
22567 $as_echo_n "(cached) " >&6
1cf3d07d
SE
22568else
22569 ac_check_lib_save_LIBS=$LIBS
22570LIBS="-ldld $LIBS"
22571if test x$gcc_no_link = xyes; then
5213506e 22572 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 22573fi
5213506e 22574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
22575/* end confdefs.h. */
22576
5213506e
RW
22577/* Override any GCC internal prototype to avoid an error.
22578 Use char because int might match the return type of a GCC
22579 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
22580#ifdef __cplusplus
22581extern "C"
22582#endif
1cf3d07d
SE
22583char dlopen ();
22584int
22585main ()
22586{
5213506e 22587return dlopen ();
1cf3d07d
SE
22588 ;
22589 return 0;
22590}
22591_ACEOF
5213506e 22592if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
22593 ac_cv_lib_dld_dlopen=yes
22594else
5213506e 22595 ac_cv_lib_dld_dlopen=no
1cf3d07d 22596fi
5213506e
RW
22597rm -f core conftest.err conftest.$ac_objext \
22598 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
22599LIBS=$ac_check_lib_save_LIBS
22600fi
5213506e
RW
22601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dlopen" >&5
22602$as_echo "$ac_cv_lib_dld_dlopen" >&6; }
22603if test "x$ac_cv_lib_dld_dlopen" = x""yes; then :
1cf3d07d
SE
22604
22605
5213506e 22606$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
1cf3d07d
SE
22607
22608fi
22609
22610fi
22611
22612
22613 # Some library-finding code we stole from Tcl.
22614 #--------------------------------------------------------------------
22615 # Check for the existence of the -lsocket and -lnsl libraries.
22616 # The order here is important, so that they end up in the right
22617 # order in the command line generated by make. Here are some
22618 # special considerations:
22619 # 1. Use "connect" and "accept" to check for -lsocket, and
22620 # "gethostbyname" to check for -lnsl.
22621 # 2. Use each function name only once: can't redo a check because
22622 # autoconf caches the results of the last check and won't redo it.
22623 # 3. Use -lnsl and -lsocket only if they supply procedures that
22624 # aren't already present in the normal libraries. This is because
22625 # IRIX 5.2 has libraries, but they aren't needed and they're
22626 # bogus: they goof up name resolution if used.
22627 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
22628 # To get around this problem, check for both libraries together
22629 # if -lsocket doesn't work by itself.
22630 #--------------------------------------------------------------------
22631
5213506e
RW
22632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
22633$as_echo_n "checking for socket libraries... " >&6; }
22634if test "${gcj_cv_lib_sockets+set}" = set; then :
22635 $as_echo_n "(cached) " >&6
1cf3d07d
SE
22636else
22637 gcj_cv_lib_sockets=
22638 gcj_checkBoth=0
22639 unset ac_cv_func_connect
5213506e
RW
22640 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
22641if test "x$ac_cv_func_connect" = x""yes; then :
1cf3d07d
SE
22642 gcj_checkSocket=0
22643else
22644 gcj_checkSocket=1
22645fi
22646
22647 if test "$gcj_checkSocket" = 1; then
22648 unset ac_cv_func_connect
5213506e
RW
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
22650$as_echo_n "checking for main in -lsocket... " >&6; }
22651if test "${ac_cv_lib_socket_main+set}" = set; then :
22652 $as_echo_n "(cached) " >&6
1cf3d07d
SE
22653else
22654 ac_check_lib_save_LIBS=$LIBS
22655LIBS="-lsocket $LIBS"
22656if test x$gcc_no_link = xyes; then
5213506e 22657 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 22658fi
5213506e 22659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 22660/* end confdefs.h. */
1cf3d07d 22661
1cf3d07d
SE
22662
22663int
22664main ()
22665{
5213506e 22666return main ();
1cf3d07d
SE
22667 ;
22668 return 0;
22669}
22670_ACEOF
5213506e
RW
22671if ac_fn_c_try_link "$LINENO"; then :
22672 ac_cv_lib_socket_main=yes
1cf3d07d 22673else
5213506e 22674 ac_cv_lib_socket_main=no
1cf3d07d 22675fi
5213506e
RW
22676rm -f core conftest.err conftest.$ac_objext \
22677 conftest$ac_exeext conftest.$ac_ext
22678LIBS=$ac_check_lib_save_LIBS
1cf3d07d 22679fi
5213506e
RW
22680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
22681$as_echo "$ac_cv_lib_socket_main" >&6; }
22682if test "x$ac_cv_lib_socket_main" = x""yes; then :
22683 gcj_cv_lib_sockets="-lsocket"
22684else
22685 gcj_checkBoth=1
22686fi
22687
22688 fi
22689 if test "$gcj_checkBoth" = 1; then
22690 gcj_oldLibs=$LIBS
22691 LIBS="$LIBS -lsocket -lnsl"
22692 unset ac_cv_func_accept
22693 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
22694if test "x$ac_cv_func_accept" = x""yes; then :
22695 gcj_checkNsl=0
22696 gcj_cv_lib_sockets="-lsocket -lnsl"
22697fi
22698
22699 unset ac_cv_func_accept
22700 LIBS=$gcj_oldLibs
22701 fi
22702 unset ac_cv_func_gethostbyname
22703 gcj_oldLibs=$LIBS
22704 LIBS="$LIBS $gcj_cv_lib_sockets"
22705 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22706if test "x$ac_cv_func_gethostbyname" = x""yes; then :
22707
1cf3d07d 22708else
5213506e
RW
22709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
22710$as_echo_n "checking for main in -lnsl... " >&6; }
22711if test "${ac_cv_lib_nsl_main+set}" = set; then :
22712 $as_echo_n "(cached) " >&6
1cf3d07d
SE
22713else
22714 ac_check_lib_save_LIBS=$LIBS
22715LIBS="-lnsl $LIBS"
22716if test x$gcc_no_link = xyes; then
5213506e 22717 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 22718fi
5213506e 22719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
22720/* end confdefs.h. */
22721
22722
22723int
22724main ()
22725{
5213506e 22726return main ();
1cf3d07d
SE
22727 ;
22728 return 0;
22729}
22730_ACEOF
5213506e 22731if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
22732 ac_cv_lib_nsl_main=yes
22733else
5213506e 22734 ac_cv_lib_nsl_main=no
1cf3d07d 22735fi
5213506e
RW
22736rm -f core conftest.err conftest.$ac_objext \
22737 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
22738LIBS=$ac_check_lib_save_LIBS
22739fi
5213506e
RW
22740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
22741$as_echo "$ac_cv_lib_nsl_main" >&6; }
22742if test "x$ac_cv_lib_nsl_main" = x""yes; then :
1cf3d07d
SE
22743 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
22744fi
22745
22746fi
22747
22748 unset ac_cv_func_gethostbyname
22749 LIBS=$gcj_oldLIBS
22750
22751fi
5213506e
RW
22752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcj_cv_lib_sockets" >&5
22753$as_echo "$gcj_cv_lib_sockets" >&6; }
1cf3d07d
SE
22754 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
22755
22756 if test "$with_system_zlib" = yes; then
5213506e
RW
22757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
22758$as_echo_n "checking for deflate in -lz... " >&6; }
22759if test "${ac_cv_lib_z_deflate+set}" = set; then :
22760 $as_echo_n "(cached) " >&6
1cf3d07d
SE
22761else
22762 ac_check_lib_save_LIBS=$LIBS
22763LIBS="-lz $LIBS"
22764if test x$gcc_no_link = xyes; then
5213506e 22765 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 22766fi
5213506e 22767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
22768/* end confdefs.h. */
22769
5213506e
RW
22770/* Override any GCC internal prototype to avoid an error.
22771 Use char because int might match the return type of a GCC
22772 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
22773#ifdef __cplusplus
22774extern "C"
22775#endif
1cf3d07d
SE
22776char deflate ();
22777int
22778main ()
22779{
5213506e 22780return deflate ();
1cf3d07d
SE
22781 ;
22782 return 0;
22783}
22784_ACEOF
5213506e 22785if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
22786 ac_cv_lib_z_deflate=yes
22787else
5213506e 22788 ac_cv_lib_z_deflate=no
1cf3d07d 22789fi
5213506e
RW
22790rm -f core conftest.err conftest.$ac_objext \
22791 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
22792LIBS=$ac_check_lib_save_LIBS
22793fi
5213506e
RW
22794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
22795$as_echo "$ac_cv_lib_z_deflate" >&6; }
22796if test "x$ac_cv_lib_z_deflate" = x""yes; then :
1cf3d07d
SE
22797 ZLIBSPEC=-lz
22798else
22799 ZLIBSPEC=
22800fi
22801
22802 fi
22803
22804 # Test for Gtk stuff, if asked for.
22805 if test "$use_gtk_awt" = yes; then
22806
22807 succeeded=no
22808
22809 if test -z "$PKG_CONFIG"; then
cda7fd66
MK
22810 if test -n "$ac_tool_prefix"; then
22811 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22812set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5213506e
RW
22813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22814$as_echo_n "checking for $ac_word... " >&6; }
22815if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22816 $as_echo_n "(cached) " >&6
1cf3d07d
SE
22817else
22818 case $PKG_CONFIG in
22819 [\\/]* | ?:[\\/]*)
22820 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22821 ;;
22822 *)
22823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22824for as_dir in $PATH
22825do
22826 IFS=$as_save_IFS
22827 test -z "$as_dir" && as_dir=.
5213506e
RW
22828 for ac_exec_ext in '' $ac_executable_extensions; do
22829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 22830 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5213506e 22831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
22832 break 2
22833 fi
22834done
5213506e
RW
22835 done
22836IFS=$as_save_IFS
1cf3d07d 22837
1cf3d07d
SE
22838 ;;
22839esac
22840fi
22841PKG_CONFIG=$ac_cv_path_PKG_CONFIG
1cf3d07d 22842if test -n "$PKG_CONFIG"; then
5213506e
RW
22843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22844$as_echo "$PKG_CONFIG" >&6; }
1cf3d07d 22845else
5213506e
RW
22846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22847$as_echo "no" >&6; }
1cf3d07d
SE
22848fi
22849
5213506e 22850
cda7fd66
MK
22851fi
22852if test -z "$ac_cv_path_PKG_CONFIG"; then
22853 ac_pt_PKG_CONFIG=$PKG_CONFIG
22854 # Extract the first word of "pkg-config", so it can be a program name with args.
22855set dummy pkg-config; ac_word=$2
22856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22857$as_echo_n "checking for $ac_word... " >&6; }
22858if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
22859 $as_echo_n "(cached) " >&6
22860else
22861 case $ac_pt_PKG_CONFIG in
22862 [\\/]* | ?:[\\/]*)
22863 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22864 ;;
22865 *)
22866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22867for as_dir in $PATH
22868do
22869 IFS=$as_save_IFS
22870 test -z "$as_dir" && as_dir=.
22871 for ac_exec_ext in '' $ac_executable_extensions; do
22872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22873 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22875 break 2
22876 fi
22877done
22878 done
22879IFS=$as_save_IFS
22880
22881 ;;
22882esac
22883fi
22884ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22885if test -n "$ac_pt_PKG_CONFIG"; then
22886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
22887$as_echo "$ac_pt_PKG_CONFIG" >&6; }
22888else
22889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22890$as_echo "no" >&6; }
22891fi
22892
22893 if test "x$ac_pt_PKG_CONFIG" = x; then
22894 PKG_CONFIG="no"
22895 else
22896 case $cross_compiling:$ac_tool_warned in
22897yes:)
22898{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22899$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22900ac_tool_warned=yes ;;
22901esac
22902 PKG_CONFIG=$ac_pt_PKG_CONFIG
22903 fi
22904else
22905 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22906fi
22907
1cf3d07d
SE
22908 fi
22909
22910 if test "$PKG_CONFIG" = "no" ; then
22911 echo "*** The pkg-config script could not be found. Make sure it is"
22912 echo "*** in your path, or set the PKG_CONFIG environment variable"
22913 echo "*** to the full path to pkg-config."
22914 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22915 else
22916 PKG_CONFIG_MIN_VERSION=0.9.0
22917 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5213506e
RW
22918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.4" >&5
22919$as_echo_n "checking for gtk+-2.0 >= 2.4... " >&6; }
1cf3d07d
SE
22920
22921 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
5213506e
RW
22922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22923$as_echo "yes" >&6; }
1cf3d07d
SE
22924 succeeded=yes
22925
5213506e
RW
22926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
22927$as_echo_n "checking GTK_CFLAGS... " >&6; }
1cf3d07d 22928 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
5213506e
RW
22929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
22930$as_echo "$GTK_CFLAGS" >&6; }
1cf3d07d 22931
5213506e
RW
22932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
22933$as_echo_n "checking GTK_LIBS... " >&6; }
1cf3d07d 22934 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
5213506e
RW
22935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
22936$as_echo "$GTK_LIBS" >&6; }
1cf3d07d
SE
22937 else
22938 GTK_CFLAGS=""
22939 GTK_LIBS=""
22940 ## If we have a custom action on failure, don't print errors, but
22941 ## do set a variable so people can do so.
22942 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
22943 echo $GTK_PKG_ERRORS
22944 fi
22945
22946
22947
22948 else
22949 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22950 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22951 fi
22952 fi
22953
22954 if test $succeeded = yes; then
22955 :
22956 else
5213506e 22957 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
1cf3d07d
SE
22958 fi
22959
22960
22961
22962
22963
22964 succeeded=no
22965
22966 if test -z "$PKG_CONFIG"; then
cda7fd66
MK
22967 if test -n "$ac_tool_prefix"; then
22968 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22969set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5213506e
RW
22970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22971$as_echo_n "checking for $ac_word... " >&6; }
22972if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22973 $as_echo_n "(cached) " >&6
1cf3d07d
SE
22974else
22975 case $PKG_CONFIG in
22976 [\\/]* | ?:[\\/]*)
22977 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22978 ;;
22979 *)
22980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22981for as_dir in $PATH
22982do
22983 IFS=$as_save_IFS
22984 test -z "$as_dir" && as_dir=.
5213506e
RW
22985 for ac_exec_ext in '' $ac_executable_extensions; do
22986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 22987 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5213506e 22988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
22989 break 2
22990 fi
22991done
5213506e
RW
22992 done
22993IFS=$as_save_IFS
1cf3d07d 22994
1cf3d07d
SE
22995 ;;
22996esac
22997fi
22998PKG_CONFIG=$ac_cv_path_PKG_CONFIG
1cf3d07d 22999if test -n "$PKG_CONFIG"; then
5213506e
RW
23000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
23001$as_echo "$PKG_CONFIG" >&6; }
1cf3d07d 23002else
5213506e
RW
23003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23004$as_echo "no" >&6; }
1cf3d07d
SE
23005fi
23006
5213506e 23007
cda7fd66
MK
23008fi
23009if test -z "$ac_cv_path_PKG_CONFIG"; then
23010 ac_pt_PKG_CONFIG=$PKG_CONFIG
23011 # Extract the first word of "pkg-config", so it can be a program name with args.
23012set dummy pkg-config; ac_word=$2
23013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23014$as_echo_n "checking for $ac_word... " >&6; }
23015if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
23016 $as_echo_n "(cached) " >&6
23017else
23018 case $ac_pt_PKG_CONFIG in
23019 [\\/]* | ?:[\\/]*)
23020 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
23021 ;;
23022 *)
23023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23024for as_dir in $PATH
23025do
23026 IFS=$as_save_IFS
23027 test -z "$as_dir" && as_dir=.
23028 for ac_exec_ext in '' $ac_executable_extensions; do
23029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23030 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23032 break 2
23033 fi
23034done
23035 done
23036IFS=$as_save_IFS
23037
23038 ;;
23039esac
23040fi
23041ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
23042if test -n "$ac_pt_PKG_CONFIG"; then
23043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
23044$as_echo "$ac_pt_PKG_CONFIG" >&6; }
23045else
23046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23047$as_echo "no" >&6; }
23048fi
23049
23050 if test "x$ac_pt_PKG_CONFIG" = x; then
23051 PKG_CONFIG="no"
23052 else
23053 case $cross_compiling:$ac_tool_warned in
23054yes:)
23055{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23056$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23057ac_tool_warned=yes ;;
23058esac
23059 PKG_CONFIG=$ac_pt_PKG_CONFIG
23060 fi
23061else
23062 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
23063fi
23064
1cf3d07d
SE
23065 fi
23066
23067 if test "$PKG_CONFIG" = "no" ; then
23068 echo "*** The pkg-config script could not be found. Make sure it is"
23069 echo "*** in your path, or set the PKG_CONFIG environment variable"
23070 echo "*** to the full path to pkg-config."
23071 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23072 else
23073 PKG_CONFIG_MIN_VERSION=0.9.0
23074 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5213506e
RW
23075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
23076$as_echo_n "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... " >&6; }
1cf3d07d
SE
23077
23078 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
5213506e
RW
23079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23080$as_echo "yes" >&6; }
1cf3d07d
SE
23081 succeeded=yes
23082
5213506e
RW
23083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
23084$as_echo_n "checking GLIB_CFLAGS... " >&6; }
1cf3d07d 23085 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
5213506e
RW
23086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
23087$as_echo "$GLIB_CFLAGS" >&6; }
1cf3d07d 23088
5213506e
RW
23089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
23090$as_echo_n "checking GLIB_LIBS... " >&6; }
1cf3d07d 23091 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
5213506e
RW
23092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
23093$as_echo "$GLIB_LIBS" >&6; }
1cf3d07d
SE
23094 else
23095 GLIB_CFLAGS=""
23096 GLIB_LIBS=""
23097 ## If we have a custom action on failure, don't print errors, but
23098 ## do set a variable so people can do so.
23099 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
23100 echo $GLIB_PKG_ERRORS
23101 fi
23102
23103
23104
23105 else
23106 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23107 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23108 fi
23109 fi
23110
23111 if test $succeeded = yes; then
23112 :
23113 else
5213506e 23114 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
1cf3d07d
SE
23115 fi
23116
23117
23118
23119
23120
23121 succeeded=no
23122
23123 if test -z "$PKG_CONFIG"; then
cda7fd66
MK
23124 if test -n "$ac_tool_prefix"; then
23125 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23126set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5213506e
RW
23127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23128$as_echo_n "checking for $ac_word... " >&6; }
23129if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
23130 $as_echo_n "(cached) " >&6
1cf3d07d
SE
23131else
23132 case $PKG_CONFIG in
23133 [\\/]* | ?:[\\/]*)
23134 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23135 ;;
23136 *)
23137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23138for as_dir in $PATH
23139do
23140 IFS=$as_save_IFS
23141 test -z "$as_dir" && as_dir=.
5213506e
RW
23142 for ac_exec_ext in '' $ac_executable_extensions; do
23143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 23144 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5213506e 23145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
23146 break 2
23147 fi
23148done
5213506e
RW
23149 done
23150IFS=$as_save_IFS
1cf3d07d 23151
1cf3d07d
SE
23152 ;;
23153esac
23154fi
23155PKG_CONFIG=$ac_cv_path_PKG_CONFIG
1cf3d07d 23156if test -n "$PKG_CONFIG"; then
5213506e
RW
23157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
23158$as_echo "$PKG_CONFIG" >&6; }
1cf3d07d 23159else
5213506e
RW
23160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23161$as_echo "no" >&6; }
1cf3d07d
SE
23162fi
23163
5213506e 23164
cda7fd66
MK
23165fi
23166if test -z "$ac_cv_path_PKG_CONFIG"; then
23167 ac_pt_PKG_CONFIG=$PKG_CONFIG
23168 # Extract the first word of "pkg-config", so it can be a program name with args.
23169set dummy pkg-config; ac_word=$2
23170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23171$as_echo_n "checking for $ac_word... " >&6; }
23172if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
23173 $as_echo_n "(cached) " >&6
23174else
23175 case $ac_pt_PKG_CONFIG in
23176 [\\/]* | ?:[\\/]*)
23177 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
23178 ;;
23179 *)
23180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23181for as_dir in $PATH
23182do
23183 IFS=$as_save_IFS
23184 test -z "$as_dir" && as_dir=.
23185 for ac_exec_ext in '' $ac_executable_extensions; do
23186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23187 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23189 break 2
23190 fi
23191done
23192 done
23193IFS=$as_save_IFS
23194
23195 ;;
23196esac
23197fi
23198ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
23199if test -n "$ac_pt_PKG_CONFIG"; then
23200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
23201$as_echo "$ac_pt_PKG_CONFIG" >&6; }
23202else
23203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23204$as_echo "no" >&6; }
23205fi
23206
23207 if test "x$ac_pt_PKG_CONFIG" = x; then
23208 PKG_CONFIG="no"
23209 else
23210 case $cross_compiling:$ac_tool_warned in
23211yes:)
23212{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23214ac_tool_warned=yes ;;
23215esac
23216 PKG_CONFIG=$ac_pt_PKG_CONFIG
23217 fi
23218else
23219 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
23220fi
23221
1cf3d07d
SE
23222 fi
23223
23224 if test "$PKG_CONFIG" = "no" ; then
23225 echo "*** The pkg-config script could not be found. Make sure it is"
23226 echo "*** in your path, or set the PKG_CONFIG environment variable"
23227 echo "*** to the full path to pkg-config."
23228 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23229 else
23230 PKG_CONFIG_MIN_VERSION=0.9.0
23231 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5213506e
RW
23232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libart-2.0 >= 2.1" >&5
23233$as_echo_n "checking for libart-2.0 >= 2.1... " >&6; }
1cf3d07d
SE
23234
23235 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
5213506e
RW
23236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23237$as_echo "yes" >&6; }
1cf3d07d
SE
23238 succeeded=yes
23239
5213506e
RW
23240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_CFLAGS" >&5
23241$as_echo_n "checking LIBART_CFLAGS... " >&6; }
1cf3d07d 23242 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
5213506e
RW
23243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_CFLAGS" >&5
23244$as_echo "$LIBART_CFLAGS" >&6; }
1cf3d07d 23245
5213506e
RW
23246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_LIBS" >&5
23247$as_echo_n "checking LIBART_LIBS... " >&6; }
1cf3d07d 23248 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
5213506e
RW
23249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_LIBS" >&5
23250$as_echo "$LIBART_LIBS" >&6; }
1cf3d07d
SE
23251 else
23252 LIBART_CFLAGS=""
23253 LIBART_LIBS=""
23254 ## If we have a custom action on failure, don't print errors, but
23255 ## do set a variable so people can do so.
23256 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
23257 echo $LIBART_PKG_ERRORS
23258 fi
23259
23260
23261
23262 else
23263 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23264 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23265 fi
23266 fi
23267
23268 if test $succeeded = yes; then
23269 :
23270 else
5213506e 23271 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
1cf3d07d
SE
23272 fi
23273
23274
23275
23276
23277 # We require the XTest Extension to support java.awt.Robot.
5213506e
RW
23278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
23279$as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
23280if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
23281 $as_echo_n "(cached) " >&6
1cf3d07d
SE
23282else
23283 ac_check_lib_save_LIBS=$LIBS
23284LIBS="-lXtst ${X_LIBS} $LIBS"
23285if test x$gcc_no_link = xyes; then
5213506e 23286 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 23287fi
5213506e 23288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
23289/* end confdefs.h. */
23290
5213506e
RW
23291/* Override any GCC internal prototype to avoid an error.
23292 Use char because int might match the return type of a GCC
23293 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
23294#ifdef __cplusplus
23295extern "C"
23296#endif
1cf3d07d
SE
23297char XTestQueryExtension ();
23298int
23299main ()
23300{
5213506e 23301return XTestQueryExtension ();
1cf3d07d
SE
23302 ;
23303 return 0;
23304}
23305_ACEOF
5213506e 23306if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
23307 ac_cv_lib_Xtst_XTestQueryExtension=yes
23308else
5213506e 23309 ac_cv_lib_Xtst_XTestQueryExtension=no
1cf3d07d 23310fi
5213506e
RW
23311rm -f core conftest.err conftest.$ac_objext \
23312 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
23313LIBS=$ac_check_lib_save_LIBS
23314fi
5213506e
RW
23315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
23316$as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
23317if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
1cf3d07d
SE
23318 true
23319else
5213506e 23320 as_fn_error "libXtst not found, required by java.awt.Robot" "$LINENO" 5
1cf3d07d
SE
23321fi
23322
23323 fi
23324
23325 # On Solaris, and maybe other architectures, the Boehm collector
23326 # requires -ldl.
23327 if test "$GC" = boehm; then
de2b3a07 23328 case "${host}" in
618d4830 23329 *-*-darwin*)
3aa831ba 23330 ;;
de2b3a07 23331 *)
5213506e
RW
23332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
23333$as_echo_n "checking for main in -ldl... " >&6; }
23334if test "${ac_cv_lib_dl_main+set}" = set; then :
23335 $as_echo_n "(cached) " >&6
1cf3d07d
SE
23336else
23337 ac_check_lib_save_LIBS=$LIBS
23338LIBS="-ldl $LIBS"
23339if test x$gcc_no_link = xyes; then
5213506e 23340 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 23341fi
5213506e 23342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
23343/* end confdefs.h. */
23344
23345
23346int
23347main ()
23348{
5213506e 23349return main ();
1cf3d07d
SE
23350 ;
23351 return 0;
23352}
23353_ACEOF
5213506e 23354if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
23355 ac_cv_lib_dl_main=yes
23356else
5213506e 23357 ac_cv_lib_dl_main=no
1cf3d07d 23358fi
5213506e
RW
23359rm -f core conftest.err conftest.$ac_objext \
23360 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
23361LIBS=$ac_check_lib_save_LIBS
23362fi
5213506e
RW
23363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
23364$as_echo "$ac_cv_lib_dl_main" >&6; }
23365if test "x$ac_cv_lib_dl_main" = x""yes; then :
1cf3d07d
SE
23366 SYSTEMSPEC="$SYSTEMSPEC -ldl"
23367fi
23368
3aa831ba 23369 ;;
de2b3a07 23370 esac
1cf3d07d
SE
23371 fi
23372fi
23373
23374# Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
23375case $build in
23376 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
23377 *) CLASSPATH_SEPARATOR=':' ;;
23378esac
23379
23380
23381# We must search the source tree for java.lang, since we still don't
23382# have libgcj.jar nor java/lang/*.class
23383GCJ_SAVE_CPPFLAGS=$CPPFLAGS
23384CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
23385
23386# Since some classes depend on this one, we need its source available
23387# before we can do any GCJ compilation test :-(
23388if test ! -f gnu/classpath/Configuration.java; then
23389 test -d gnu || mkdir gnu
23390 test -d gnu/classpath || mkdir gnu/classpath
23391 # Note that it is not crucial that all the values here be correct.
f3392d53 23392 sed -e "s,@prefix@,$expanded_prefix," \
1cf3d07d
SE
23393 -e "s,@VERSION@,$VERSION," \
23394 -e "s,@LIBDEBUG@,false," \
23395 -e "s,@INIT_LOAD_LIBRARY@,false," \
23396 -e "s,@@,$LIBGCJDEBUG," \
23397 -e "s,@default_toolkit@,$TOOLKIT," \
23398 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
23399 -e "s,@GTK_CAIRO_ENABLED@,false," \
23400 -e "s,@ECJ_JAR@,," \
cd6d4007 23401 -e "s,@WANT_NATIVE_BIG_INTEGER@,false," \
1cf3d07d
SE
23402 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
23403 > gnu/classpath/Configuration.java
23404 # We do not want to redirect the output of the grep below to /dev/null,
23405 # but we add /dev/null to the input list so that grep will print the
23406 # filename of Configuration.java in case it finds any matches.
23407 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
5213506e 23408 as_fn_error "configure.ac is missing the substitutions above" "$LINENO" 5
1cf3d07d
SE
23409 fi
23410fi
23411
23412
4d9e8446
RW
23413if test -n "$ac_tool_prefix"; then
23414 for ac_prog in gcj
23415 do
23416 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23417set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
23418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23419$as_echo_n "checking for $ac_word... " >&6; }
23420if test "${ac_cv_prog_GCJ+set}" = set; then :
23421 $as_echo_n "(cached) " >&6
1cf3d07d
SE
23422else
23423 if test -n "$GCJ"; then
23424 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
23425else
23426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23427for as_dir in $PATH
23428do
23429 IFS=$as_save_IFS
23430 test -z "$as_dir" && as_dir=.
5213506e
RW
23431 for ac_exec_ext in '' $ac_executable_extensions; do
23432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4d9e8446 23433 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
5213506e 23434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
23435 break 2
23436 fi
23437done
5213506e
RW
23438 done
23439IFS=$as_save_IFS
1cf3d07d
SE
23440
23441fi
23442fi
23443GCJ=$ac_cv_prog_GCJ
23444if test -n "$GCJ"; then
5213506e
RW
23445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
23446$as_echo "$GCJ" >&6; }
1cf3d07d 23447else
5213506e
RW
23448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23449$as_echo "no" >&6; }
1cf3d07d
SE
23450fi
23451
5213506e 23452
4d9e8446
RW
23453 test -n "$GCJ" && break
23454 done
23455fi
23456if test -z "$GCJ"; then
23457 ac_ct_GCJ=$GCJ
23458 for ac_prog in gcj
23459do
23460 # Extract the first word of "$ac_prog", so it can be a program name with args.
23461set dummy $ac_prog; ac_word=$2
23462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23463$as_echo_n "checking for $ac_word... " >&6; }
23464if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
23465 $as_echo_n "(cached) " >&6
23466else
23467 if test -n "$ac_ct_GCJ"; then
23468 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
23469else
23470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23471for as_dir in $PATH
23472do
23473 IFS=$as_save_IFS
23474 test -z "$as_dir" && as_dir=.
23475 for ac_exec_ext in '' $ac_executable_extensions; do
23476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23477 ac_cv_prog_ac_ct_GCJ="$ac_prog"
23478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23479 break 2
23480 fi
23481done
23482 done
23483IFS=$as_save_IFS
23484
23485fi
23486fi
23487ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
23488if test -n "$ac_ct_GCJ"; then
23489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
23490$as_echo "$ac_ct_GCJ" >&6; }
23491else
23492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23493$as_echo "no" >&6; }
23494fi
23495
23496
23497 test -n "$ac_ct_GCJ" && break
1cf3d07d 23498done
4d9e8446
RW
23499
23500 if test "x$ac_ct_GCJ" = x; then
23501 GCJ="gcj"
23502 else
23503 case $cross_compiling:$ac_tool_warned in
23504yes:)
23505{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23506$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23507ac_tool_warned=yes ;;
23508esac
23509 GCJ=$ac_ct_GCJ
23510 fi
23511fi
1cf3d07d 23512
5213506e 23513test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
1cf3d07d
SE
23514if test "x${GCJFLAGS-unset}" = xunset; then
23515 GCJFLAGS="-g -O2"
23516fi
23517
23518
23519depcc="$GCJ" am_compiler_list='gcc3 gcc'
23520
5213506e
RW
23521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23522$as_echo_n "checking dependency style of $depcc... " >&6; }
23523if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
23524 $as_echo_n "(cached) " >&6
1cf3d07d
SE
23525else
23526 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23527 # We make a subdir and do the tests there. Otherwise we can end up
23528 # making bogus files that we don't know about and never remove. For
23529 # instance it was reported that on HP-UX the gcc test will end up
23530 # making a dummy file named `D' -- because `-MD' means `put the output
23531 # in D'.
23532 mkdir conftest.dir
23533 # Copy depcomp to subdir because otherwise we won't find it if we're
23534 # using a relative directory.
23535 cp "$am_depcomp" conftest.dir
23536 cd conftest.dir
23537 # We will build objects and dependencies in a subdirectory because
23538 # it helps to detect inapplicable dependency modes. For instance
23539 # both Tru64's cc and ICC support -MD to output dependencies as a
23540 # side effect of compilation, but ICC will put the dependencies in
23541 # the current directory while Tru64 will put them in the object
23542 # directory.
23543 mkdir sub
23544
23545 am_cv_GCJ_dependencies_compiler_type=none
23546 if test "$am_compiler_list" = ""; then
23547 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23548 fi
5213506e
RW
23549 am__universal=false
23550
23551
1cf3d07d
SE
23552 for depmode in $am_compiler_list; do
23553 # Setup a source with many dependencies, because some compilers
23554 # like to wrap large dependency lists on column 80 (with \), and
23555 # we should not choose a depcomp mode which is confused by this.
23556 #
23557 # We need to recreate these files for each test, as the compiler may
23558 # overwrite some of them when testing with obscure command lines.
23559 # This happens at least with the AIX C compiler.
23560 : > sub/conftest.c
23561 for i in 1 2 3 4 5 6; do
23562 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23563 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23564 # Solaris 8's {/usr,}/bin/sh.
23565 touch sub/conftst$i.h
23566 done
23567 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23568
5213506e
RW
23569 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23570 # mode. It turns out that the SunPro C++ compiler does not properly
23571 # handle `-M -o', and we need to detect this. Also, some Intel
23572 # versions had trouble with output in subdirs
23573 am__obj=sub/conftest.${OBJEXT-o}
23574 am__minus_obj="-o $am__obj"
1cf3d07d 23575 case $depmode in
5213506e
RW
23576 gcc)
23577 # This depmode causes a compiler race in universal mode.
23578 test "$am__universal" = false || continue
23579 ;;
1cf3d07d
SE
23580 nosideeffect)
23581 # after this tag, mechanisms are not by side-effect, so they'll
23582 # only be used when explicitly requested
23583 if test "x$enable_dependency_tracking" = xyes; then
23584 continue
23585 else
23586 break
23587 fi
23588 ;;
5213506e
RW
23589 msvisualcpp | msvcmsys)
23590 # This compiler won't grok `-c -o', but also, the minuso test has
23591 # not run yet. These depmodes are late enough in the game, and
23592 # so weak that their functioning should not be impacted.
23593 am__obj=conftest.${OBJEXT-o}
23594 am__minus_obj=
23595 ;;
1cf3d07d
SE
23596 none) break ;;
23597 esac
1cf3d07d 23598 if depmode=$depmode \
5213506e 23599 source=sub/conftest.c object=$am__obj \
1cf3d07d 23600 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213506e 23601 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1cf3d07d 23602 >/dev/null 2>conftest.err &&
5213506e 23603 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1cf3d07d 23604 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213506e 23605 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1cf3d07d
SE
23606 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23607 # icc doesn't choke on unknown options, it will just issue warnings
23608 # or remarks (even with -Werror). So we grep stderr for any message
23609 # that says an option was ignored or not supported.
23610 # When given -MP, icc 7.0 and 7.1 complain thusly:
23611 # icc: Command line warning: ignoring option '-M'; no argument required
23612 # The diagnosis changed in icc 8.0:
23613 # icc: Command line remark: option '-MP' not supported
23614 if (grep 'ignoring option' conftest.err ||
23615 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23616 am_cv_GCJ_dependencies_compiler_type=$depmode
23617 break
23618 fi
23619 fi
23620 done
23621
23622 cd ..
23623 rm -rf conftest.dir
23624else
23625 am_cv_GCJ_dependencies_compiler_type=none
23626fi
23627
23628fi
5213506e
RW
23629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
23630$as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
1cf3d07d
SE
23631GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
23632
5213506e 23633 if
1cf3d07d
SE
23634 test "x$enable_dependency_tracking" != xno \
23635 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
23636 am__fastdepGCJ_TRUE=
23637 am__fastdepGCJ_FALSE='#'
23638else
5213506e
RW
23639 am__fastdepGCJ_TRUE='#'
23640 am__fastdepGCJ_FALSE=
1cf3d07d 23641fi
1cf3d07d 23642
1cf3d07d 23643
5213506e
RW
23644
23645
23646# Now remove it.
23647rm -f gnu/classpath/Configuration.java
23648
23649CPPFLAGS=$GCJ_SAVE_CPPFLAGS
23650
23651# The cast to long int works around a bug in the HP C Compiler
23652# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23653# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23654# This bug is HP SR number 8606223364.
23655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
23656$as_echo_n "checking size of void *... " >&6; }
23657if test "${ac_cv_sizeof_void_p+set}" = set; then :
23658 $as_echo_n "(cached) " >&6
1cf3d07d 23659else
5213506e 23660 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
1cf3d07d 23661
1cf3d07d 23662else
5213506e
RW
23663 if test "$ac_cv_type_void_p" = yes; then
23664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23665$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23666{ as_fn_set_status 77
23667as_fn_error "cannot compute sizeof (void *)
23668See \`config.log' for more details." "$LINENO" 5; }; }
23669 else
23670 ac_cv_sizeof_void_p=0
23671 fi
1cf3d07d 23672fi
5213506e 23673
1cf3d07d 23674fi
5213506e
RW
23675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
23676$as_echo "$ac_cv_sizeof_void_p" >&6; }
23677
23678
23679
1cf3d07d
SE
23680cat >>confdefs.h <<_ACEOF
23681#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23682_ACEOF
23683
23684
23685
5213506e
RW
23686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23687$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23688if test "${ac_cv_c_bigendian+set}" = set; then :
23689 $as_echo_n "(cached) " >&6
1cf3d07d 23690else
5213506e
RW
23691 ac_cv_c_bigendian=unknown
23692 # See if we're dealing with a universal compiler.
23693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23694/* end confdefs.h. */
23695#ifndef __APPLE_CC__
23696 not a universal capable compiler
23697 #endif
23698 typedef int dummy;
23699
23700_ACEOF
23701if ac_fn_c_try_compile "$LINENO"; then :
23702
23703 # Check for potential -arch flags. It is not universal unless
23704 # there are at least two -arch flags with different values.
23705 ac_arch=
23706 ac_prev=
23707 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23708 if test -n "$ac_prev"; then
23709 case $ac_word in
23710 i?86 | x86_64 | ppc | ppc64)
23711 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23712 ac_arch=$ac_word
23713 else
23714 ac_cv_c_bigendian=universal
23715 break
23716 fi
23717 ;;
23718 esac
23719 ac_prev=
23720 elif test "x$ac_word" = "x-arch"; then
23721 ac_prev=arch
23722 fi
23723 done
23724fi
23725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23726 if test $ac_cv_c_bigendian = unknown; then
23727 # See if sys/param.h defines the BYTE_ORDER macro.
23728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
23729/* end confdefs.h. */
23730#include <sys/types.h>
5213506e 23731 #include <sys/param.h>
1cf3d07d
SE
23732
23733int
23734main ()
23735{
5213506e
RW
23736#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23737 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23738 && LITTLE_ENDIAN)
23739 bogus endian macros
23740 #endif
1cf3d07d
SE
23741
23742 ;
23743 return 0;
23744}
23745_ACEOF
5213506e 23746if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d 23747 # It does; now see whether it defined to BIG_ENDIAN or not.
5213506e 23748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
23749/* end confdefs.h. */
23750#include <sys/types.h>
5213506e 23751 #include <sys/param.h>
1cf3d07d
SE
23752
23753int
23754main ()
23755{
23756#if BYTE_ORDER != BIG_ENDIAN
5213506e
RW
23757 not big endian
23758 #endif
1cf3d07d
SE
23759
23760 ;
23761 return 0;
23762}
23763_ACEOF
5213506e 23764if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d
SE
23765 ac_cv_c_bigendian=yes
23766else
5213506e 23767 ac_cv_c_bigendian=no
1cf3d07d 23768fi
5213506e
RW
23769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23770fi
23771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23772 fi
23773 if test $ac_cv_c_bigendian = unknown; then
23774 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23776/* end confdefs.h. */
23777#include <limits.h>
1cf3d07d 23778
5213506e
RW
23779int
23780main ()
23781{
23782#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23783 bogus endian macros
23784 #endif
23785
23786 ;
23787 return 0;
23788}
1cf3d07d 23789_ACEOF
5213506e
RW
23790if ac_fn_c_try_compile "$LINENO"; then :
23791 # It does; now see whether it defined to _BIG_ENDIAN or not.
23792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 23793/* end confdefs.h. */
5213506e
RW
23794#include <limits.h>
23795
1cf3d07d
SE
23796int
23797main ()
23798{
5213506e
RW
23799#ifndef _BIG_ENDIAN
23800 not big endian
23801 #endif
23802
1cf3d07d
SE
23803 ;
23804 return 0;
23805}
23806_ACEOF
5213506e 23807if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d 23808 ac_cv_c_bigendian=yes
5213506e
RW
23809else
23810 ac_cv_c_bigendian=no
1cf3d07d 23811fi
5213506e 23812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d 23813fi
5213506e
RW
23814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23815 fi
23816 if test $ac_cv_c_bigendian = unknown; then
23817 # Compile a test program.
23818 if test "$cross_compiling" = yes; then :
23819 # Try to guess by grepping values from an object file.
23820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23821/* end confdefs.h. */
23822short int ascii_mm[] =
23823 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23824 short int ascii_ii[] =
23825 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23826 int use_ascii (int i) {
23827 return ascii_mm[i] + ascii_ii[i];
23828 }
23829 short int ebcdic_ii[] =
23830 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23831 short int ebcdic_mm[] =
23832 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23833 int use_ebcdic (int i) {
23834 return ebcdic_mm[i] + ebcdic_ii[i];
23835 }
23836 extern int foo;
1cf3d07d 23837
5213506e
RW
23838int
23839main ()
23840{
23841return use_ascii (foo) == use_ebcdic (foo);
23842 ;
23843 return 0;
23844}
23845_ACEOF
23846if ac_fn_c_try_compile "$LINENO"; then :
23847 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23848 ac_cv_c_bigendian=yes
23849 fi
23850 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23851 if test "$ac_cv_c_bigendian" = unknown; then
23852 ac_cv_c_bigendian=no
23853 else
23854 # finding both strings is unlikely to happen, but who knows?
23855 ac_cv_c_bigendian=unknown
23856 fi
23857 fi
1cf3d07d 23858fi
5213506e 23859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d 23860else
5213506e 23861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 23862/* end confdefs.h. */
5213506e 23863$ac_includes_default
1cf3d07d
SE
23864int
23865main ()
23866{
5213506e
RW
23867
23868 /* Are we little or big endian? From Harbison&Steele. */
23869 union
23870 {
23871 long int l;
23872 char c[sizeof (long int)];
23873 } u;
23874 u.l = 1;
23875 return u.c[sizeof (long int) - 1] == 1;
23876
23877 ;
23878 return 0;
1cf3d07d
SE
23879}
23880_ACEOF
5213506e 23881if ac_fn_c_try_run "$LINENO"; then :
1cf3d07d
SE
23882 ac_cv_c_bigendian=no
23883else
5213506e 23884 ac_cv_c_bigendian=yes
1cf3d07d 23885fi
5213506e
RW
23886rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23887 conftest.$ac_objext conftest.beam conftest.$ac_ext
1cf3d07d 23888fi
5213506e
RW
23889
23890 fi
1cf3d07d 23891fi
5213506e
RW
23892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23893$as_echo "$ac_cv_c_bigendian" >&6; }
23894 case $ac_cv_c_bigendian in #(
23895 yes)
23896 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23897;; #(
23898 no)
23899 ;; #(
23900 universal)
1cf3d07d 23901
5213506e
RW
23902$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23903
23904 ;; #(
23905 *)
23906 as_fn_error "unknown endianness
23907 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23908 esac
1cf3d07d
SE
23909
23910
23911ZLIBS=
23912SYS_ZLIBS=
23913ZINCS=
23914
23915if test -z "$ZLIBSPEC"; then
23916 # Use zlib from the GCC tree.
23917 ZINCS='-I$(top_srcdir)/../zlib'
23918 ZLIBS=../zlib/libzgcj_convenience.la
23919else
23920 # System's zlib.
23921 SYS_ZLIBS="$ZLIBSPEC"
23922fi
23923
23924
23925
23926
23927
23928
23929
23930
23931
23932
5213506e 23933 if test "$NATIVE" = yes; then
1cf3d07d
SE
23934 NATIVE_TRUE=
23935 NATIVE_FALSE='#'
23936else
23937 NATIVE_TRUE='#'
23938 NATIVE_FALSE=
23939fi
23940
5213506e 23941 if test "$enable_shared" = yes; then
1cf3d07d
SE
23942 ENABLE_SHARED_TRUE=
23943 ENABLE_SHARED_FALSE='#'
23944else
23945 ENABLE_SHARED_TRUE='#'
23946 ENABLE_SHARED_FALSE=
23947fi
23948
5213506e 23949 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
1cf3d07d
SE
23950 NEEDS_DATA_START_TRUE=
23951 NEEDS_DATA_START_FALSE='#'
23952else
23953 NEEDS_DATA_START_TRUE='#'
23954 NEEDS_DATA_START_FALSE=
23955fi
23956
5213506e 23957 if test -z "${with_multisubdir}"; then
4bf95cef
JJ
23958 INSTALL_BINARIES_TRUE=
23959 INSTALL_BINARIES_FALSE='#'
23960else
23961 INSTALL_BINARIES_TRUE='#'
23962 INSTALL_BINARIES_FALSE=
23963fi
23964
23965
23966
1cf3d07d
SE
23967# Process the option "--enable-version-specific-runtime-libs"
23968# Calculate toolexeclibdir
23969case ${version_specific_libs} in
23970 yes)
23971 # Need the gcc compiler version to know where to install libraries
23972 # and header files if --enable-version-specific-runtime-libs option
23973 # is selected.
23974 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
23975 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
23976 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
23977 toolexeclibdir=$toolexecmainlibdir
23978 ;;
23979 no)
23980 if test -n "$with_cross_host" &&
23981 test x"$with_cross_host" != x"no"; then
23982 # Install a library built with a cross compiler in tooldir, not libdir.
23983 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
23984 toolexecmainlibdir='$(toolexecdir)/lib'
23985 else
23986 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
23987 toolexecmainlibdir='$(libdir)'
23988 fi
23989 multi_os_directory=`$CC -print-multi-os-directory`
23990 case $multi_os_directory in
23991 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
23992 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
23993 esac
23994 ;;
23995esac
23996
23997
23998
23999
ed339fbc 24000# Determine gcj and libgcj version number.
acd29efb 24001gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
ed339fbc
MK
24002libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
24003GCJVERSION=$gcjversion
24004
24005
24006cat >>confdefs.h <<_ACEOF
24007#define GCJVERSION "$GCJVERSION"
24008_ACEOF
24009
24010
1cf3d07d
SE
24011# Determine where the standard .db file and GNU Classpath JNI
24012# libraries are found.
50e47dba 24013gcjsubdir=gcj-$gcjversion-$libgcj_soversion
1f58214a 24014dbexecdir='$(toolexeclibdir)/'$gcjsubdir
1cf3d07d 24015
1cf3d07d
SE
24016
24017
c9db365d 24018
5213506e 24019$as_echo "#define JV_VERSION \"1.5.0\"" >>confdefs.h
1cf3d07d
SE
24020
24021
5213506e 24022$as_echo "#define JV_API_VERSION \"1.5\"" >>confdefs.h
1cf3d07d
SE
24023
24024
24025
24026case "${with_gxx_include_dir}" in
24027 yes)
5213506e 24028 as_fn_error "--with-gxx-include-dir=[dir] requires a directory" "$LINENO" 5
1cf3d07d
SE
24029 ;;
24030 no | "")
24031 case "${enable_version_specific_runtime_libs}" in
24032 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
24033 *)
24034 libstdcxx_incdir='c++/$(gcc_version)'
24035 gxx_include_dir='include/$(libstdcxx_incdir)'
24036 if test -n "$with_cross_host" &&
24037 test x"$with_cross_host" != x"no"; then
24038 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
24039 else
24040 gxx_include_dir='${prefix}/'"$gxx_include_dir"
24041 fi;;
24042 esac ;;
24043 *) gxx_include_dir=${with_gxx_include_dir} ;;
24044esac
24045
24046
5213506e
RW
24047
24048
24049# We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
24050# On that system, sys/ioctl.h will not include sys/filio.h unless
24051# BSD_COMP is defined; just including sys/filio.h is simpler.
24052# We avoid AC_HEADER_DIRENT since we really only care about dirent.h
24053# for now. If you change this, you also must update natFile.cc.
b24513a1 24054for ac_header in unistd.h sys/time.h sys/types.h fcntl.h \
5213506e 24055 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
9e8b671c 24056 sys/socket.h netinet/in.h arpa/inet.h netdb.h \
5213506e
RW
24057 pwd.h sys/config.h stdint.h langinfo.h locale.h \
24058 dirent.h sys/rw_lock.h magic.h ifaddrs.h
24059do :
24060 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24061ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24062eval as_val=\$$as_ac_Header
24063 if test "x$as_val" = x""yes; then :
24064 cat >>confdefs.h <<_ACEOF
24065#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1cf3d07d 24066_ACEOF
1cf3d07d 24067
1cf3d07d 24068fi
1cf3d07d 24069
5213506e 24070done
1cf3d07d 24071
9e8b671c
EB
24072
24073# sys/socket.h is a prerequisite for net/if.h on Solaris.
24074for ac_header in net/if.h
24075do :
24076 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
24077#ifdef HAVE_SYS_SOCKET_H
24078#include <sys/socket.h>
24079#endif
24080
24081"
24082if test "x$ac_cv_header_net_if_h" = x""yes; then :
24083 cat >>confdefs.h <<_ACEOF
24084#define HAVE_NET_IF_H 1
24085_ACEOF
24086
24087fi
24088
24089done
24090
24091
5213506e
RW
24092for ac_header in inttypes.h
24093do :
24094 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
24095if test "x$ac_cv_header_inttypes_h" = x""yes; then :
1cf3d07d 24096 cat >>confdefs.h <<_ACEOF
5213506e 24097#define HAVE_INTTYPES_H 1
1cf3d07d
SE
24098_ACEOF
24099
24100
5213506e 24101$as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
1cf3d07d
SE
24102
24103
5213506e 24104$as_echo "#define JV_HAVE_INTTYPES_H 1" >>confdefs.h
1cf3d07d
SE
24105
24106
24107fi
24108
24109done
24110
24111
5213506e
RW
24112ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
24113if test "x$ac_cv_type_ssize_t" = x""yes; then :
1cf3d07d 24114
1cf3d07d
SE
24115else
24116
24117cat >>confdefs.h <<_ACEOF
24118#define ssize_t int
24119_ACEOF
24120
24121fi
24122
5213506e 24123ac_fn_c_check_type "$LINENO" "magic_t" "ac_cv_type_magic_t" "
1cf3d07d
SE
24124#ifdef HAVE_MAGIC_H
24125#include <magic.h>
24126#endif
5213506e
RW
24127"
24128if test "x$ac_cv_type_magic_t" = x""yes; then :
1cf3d07d 24129
1cf3d07d 24130
5213506e 24131$as_echo "#define HAVE_MAGIC_T 1" >>confdefs.h
1cf3d07d
SE
24132
24133fi
24134
24135
5213506e
RW
24136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5
24137$as_echo_n "checking for in_addr_t... " >&6; }
24138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
24139/* end confdefs.h. */
24140#include <sys/types.h>
24141#if STDC_HEADERS
24142#include <stdlib.h>
24143#include <stddef.h>
24144#endif
24145#if HAVE_NETINET_IN_H
24146#include <netinet/in.h>
24147#endif
24148int
24149main ()
24150{
24151in_addr_t foo;
24152 ;
24153 return 0;
24154}
24155_ACEOF
5213506e 24156if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d 24157
5213506e 24158$as_echo "#define HAVE_IN_ADDR_T 1" >>confdefs.h
1cf3d07d 24159
5213506e
RW
24160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24161$as_echo "yes" >&6; }
1cf3d07d 24162else
5213506e
RW
24163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24164$as_echo "no" >&6; }
1cf3d07d 24165fi
5213506e 24166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d 24167
5213506e
RW
24168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ip_mreq is in netinet/in.h" >&5
24169$as_echo_n "checking whether struct ip_mreq is in netinet/in.h... " >&6; }
24170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
24171/* end confdefs.h. */
24172#include <netinet/in.h>
24173int
24174main ()
24175{
24176struct ip_mreq mreq;
24177 ;
24178 return 0;
24179}
24180_ACEOF
5213506e 24181if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d 24182
5213506e 24183$as_echo "#define HAVE_STRUCT_IP_MREQ 1" >>confdefs.h
1cf3d07d 24184
5213506e
RW
24185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24186$as_echo "yes" >&6; }
1cf3d07d 24187else
5213506e
RW
24188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24189$as_echo "no" >&6; }
1cf3d07d 24190fi
5213506e 24191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d 24192
5213506e
RW
24193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ipv6_mreq is in netinet/in.h" >&5
24194$as_echo_n "checking whether struct ipv6_mreq is in netinet/in.h... " >&6; }
24195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
24196/* end confdefs.h. */
24197#include <netinet/in.h>
24198int
24199main ()
24200{
24201struct ipv6_mreq mreq6;
24202 ;
24203 return 0;
24204}
24205_ACEOF
5213506e 24206if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d 24207
5213506e 24208$as_echo "#define HAVE_STRUCT_IPV6_MREQ 1" >>confdefs.h
1cf3d07d 24209
5213506e
RW
24210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24211$as_echo "yes" >&6; }
1cf3d07d 24212else
5213506e
RW
24213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24214$as_echo "no" >&6; }
1cf3d07d 24215fi
5213506e 24216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d 24217
5213506e
RW
24218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
24219$as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
24220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
24221/* end confdefs.h. */
24222#include <netinet/in.h>
24223int
24224main ()
24225{
24226struct sockaddr_in6 addr6;
24227 ;
24228 return 0;
24229}
24230_ACEOF
5213506e 24231if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d 24232
5213506e 24233$as_echo "#define HAVE_INET6 1" >>confdefs.h
1cf3d07d 24234
5213506e
RW
24235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24236$as_echo "yes" >&6; }
1cf3d07d 24237else
5213506e
RW
24238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24239$as_echo "no" >&6; }
1cf3d07d 24240fi
5213506e 24241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d 24242
5213506e
RW
24243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
24244$as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
24245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
24246/* end confdefs.h. */
24247#define _POSIX_PII_SOCKET
24248#include <sys/types.h>
24249#include <sys/socket.h>
24250int
24251main ()
24252{
24253socklen_t x = 5;
24254 ;
24255 return 0;
24256}
24257_ACEOF
5213506e 24258if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d 24259
5213506e 24260$as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
1cf3d07d 24261
5213506e
RW
24262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24263$as_echo "yes" >&6; }
1cf3d07d 24264else
5213506e
RW
24265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24266$as_echo "no" >&6; }
1cf3d07d 24267fi
5213506e 24268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d 24269
5213506e
RW
24270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
24271$as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
24272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
24273/* end confdefs.h. */
24274#include <time.h>
24275int
24276main ()
24277{
24278struct tm tim; tim.tm_gmtoff = 0;
24279 ;
24280 return 0;
24281}
24282_ACEOF
5213506e 24283if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d 24284
5213506e 24285$as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
1cf3d07d 24286
5213506e
RW
24287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24288$as_echo "yes" >&6; }
1cf3d07d 24289else
5213506e
RW
24290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24291$as_echo "no" >&6; }
24292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
24293$as_echo_n "checking for global timezone variable... " >&6; }
24294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
24295/* end confdefs.h. */
24296#include <time.h>
24297int
24298main ()
24299{
24300void i(){long z2 = 2*timezone;}
24301 ;
24302 return 0;
24303}
24304_ACEOF
5213506e 24305if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d 24306
5213506e 24307$as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
1cf3d07d 24308
5213506e
RW
24309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24310$as_echo "yes" >&6; }
1cf3d07d 24311else
5213506e
RW
24312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24313$as_echo "no" >&6; }
24314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
24315$as_echo_n "checking for global _timezone variable... " >&6; }
24316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
24317/* end confdefs.h. */
24318#include <time.h>
24319int
24320main ()
24321{
24322long z2 = _timezone;
24323 ;
24324 return 0;
24325}
24326_ACEOF
5213506e 24327if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d 24328
5213506e 24329$as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
1cf3d07d 24330
5213506e
RW
24331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24332$as_echo "yes" >&6; }
1cf3d07d 24333else
5213506e
RW
24334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24335$as_echo "no" >&6; }
1cf3d07d 24336fi
5213506e 24337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d 24338fi
5213506e 24339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d 24340fi
5213506e 24341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
24342
24343for ac_prog in perl
24344do
24345 # Extract the first word of "$ac_prog", so it can be a program name with args.
24346set dummy $ac_prog; ac_word=$2
5213506e
RW
24347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24348$as_echo_n "checking for $ac_word... " >&6; }
24349if test "${ac_cv_prog_PERL+set}" = set; then :
24350 $as_echo_n "(cached) " >&6
1cf3d07d
SE
24351else
24352 if test -n "$PERL"; then
24353 ac_cv_prog_PERL="$PERL" # Let the user override the test.
24354else
24355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24356for as_dir in $PATH
24357do
24358 IFS=$as_save_IFS
24359 test -z "$as_dir" && as_dir=.
5213506e
RW
24360 for ac_exec_ext in '' $ac_executable_extensions; do
24361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 24362 ac_cv_prog_PERL="$ac_prog"
5213506e 24363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
24364 break 2
24365 fi
24366done
5213506e
RW
24367 done
24368IFS=$as_save_IFS
1cf3d07d
SE
24369
24370fi
24371fi
24372PERL=$ac_cv_prog_PERL
24373if test -n "$PERL"; then
5213506e
RW
24374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
24375$as_echo "$PERL" >&6; }
1cf3d07d 24376else
5213506e
RW
24377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24378$as_echo "no" >&6; }
1cf3d07d
SE
24379fi
24380
5213506e 24381
1cf3d07d
SE
24382 test -n "$PERL" && break
24383done
24384test -n "$PERL" || PERL="false"
24385
24386
24387SYSDEP_SOURCES=
24388SIGNAL_HANDLER_AUX=
24389
24390case "${host}" in
b24513a1 24391 *-*-solaris2*)
f64a6f1e
RO
24392 SIGNAL_HANDLER=include/posix-signal.h
24393 ;;
1cf3d07d
SE
24394 i?86-*-linux*)
24395 SIGNAL_HANDLER=include/i386-signal.h
08b2f8e6 24396 SIGNAL_HANDLER_AUX=include/x86_64-signal.h
1cf3d07d 24397 ;;
1cf3d07d
SE
24398# ia64-*)
24399# SYSDEP_SOURCES=sysdep/ia64.c
24400# test -d sysdep || mkdir sysdep
24401# ;;
24402 hppa*-*-linux*)
24403 SIGNAL_HANDLER=include/pa-signal.h
24404 ;;
24405 hppa*-hp-hpux*)
24406 SIGNAL_HANDLER=include/hppa-signal.h
24407 ;;
24408 ia64-*-linux*)
24409 SIGNAL_HANDLER=include/dwarf2-signal.h
24410 ;;
24411 powerpc*-*-linux*)
24412 SIGNAL_HANDLER=include/powerpc-signal.h
24413 ;;
24414 alpha*-*-linux*)
24415 SIGNAL_HANDLER=include/dwarf2-signal.h
24416 ;;
24417 s390*-*-linux*)
24418 SIGNAL_HANDLER=include/s390-signal.h
24419 ;;
24420 x86_64*-*-linux*)
24421 SIGNAL_HANDLER=include/x86_64-signal.h
24422 SIGNAL_HANDLER_AUX=include/i386-signal.h
24423 ;;
24424 sparc*-*-linux*)
24425 SIGNAL_HANDLER=include/dwarf2-signal.h
24426 ;;
24427 sh*-*-linux*)
24428 SIGNAL_HANDLER=include/sh-signal.h
24429 ;;
24430 *mingw*)
24431 SIGNAL_HANDLER=include/win32-signal.h
24432 ;;
24433 mips*-*-linux*)
24434 SIGNAL_HANDLER=include/mips-signal.h
24435 ;;
dbc293c8
RZ
24436 m68*-*-linux*)
24437 SIGNAL_HANDLER=include/dwarf2-signal.h
24438 ;;
dc4e3423 24439 powerpc*-*-darwin* | i?86-*-darwin[912]* | x86_64-*-darwin[912]*)
1cf3d07d
SE
24440 SIGNAL_HANDLER=include/darwin-signal.h
24441 ;;
887e6178
DE
24442 powerpc*-*-aix*)
24443 SIGNAL_HANDLER=include/aix-signal.h
24444 ;;
1cf3d07d
SE
24445 *)
24446 SIGNAL_HANDLER=include/default-signal.h
24447 ;;
24448esac
24449
24450# If we're using sjlj exceptions, forget what we just learned.
24451if test "$enable_sjlj_exceptions" = yes; then
24452 SIGNAL_HANDLER=include/default-signal.h
24453 SIGNAL_HANDLER_AUX=
24454fi
24455
24456
24457
24458if test -z "$SIGNAL_HANDLER_AUX"; then
24459 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
24460fi
24461
5213506e 24462ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
1cf3d07d
SE
24463
24464
24465if test "${multilib}" = "yes"; then
24466 multilib_arg="--enable-multilib"
24467else
24468 multilib_arg=
24469fi
24470
24471# See if we support thread-local storage.
24472
396b7fa4 24473
5213506e
RW
24474 # Check whether --enable-tls was given.
24475if test "${enable_tls+set}" = set; then :
24476 enableval=$enable_tls;
1cf3d07d
SE
24477 case "$enableval" in
24478 yes|no) ;;
5213506e 24479 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
1cf3d07d
SE
24480 esac
24481
24482else
24483 enable_tls=yes
5213506e
RW
24484fi
24485
1cf3d07d 24486
5213506e
RW
24487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
24488$as_echo_n "checking whether the target supports thread-local storage... " >&6; }
24489if test "${gcc_cv_have_tls+set}" = set; then :
24490 $as_echo_n "(cached) " >&6
1cf3d07d
SE
24491else
24492
5213506e 24493 if test "$cross_compiling" = yes; then :
1cf3d07d 24494 if test x$gcc_no_link = xyes; then
5213506e 24495 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 24496fi
5213506e
RW
24497cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24498/* end confdefs.h. */
1cf3d07d
SE
24499__thread int a; int b; int main() { return a = b; }
24500_ACEOF
5213506e 24501if ac_fn_c_try_link "$LINENO"; then :
396b7fa4
JM
24502 chktls_save_LDFLAGS="$LDFLAGS"
24503 case $host in
24504 *-*-linux*)
24505 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
24506 ;;
24507 esac
24508 chktls_save_CFLAGS="$CFLAGS"
24509 CFLAGS="-fPIC $CFLAGS"
24510 if test x$gcc_no_link = xyes; then
5213506e 24511 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
396b7fa4 24512fi
5213506e
RW
24513cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24514/* end confdefs.h. */
396b7fa4
JM
24515int f() { return 0; }
24516_ACEOF
5213506e 24517if ac_fn_c_try_link "$LINENO"; then :
396b7fa4 24518 if test x$gcc_no_link = xyes; then
5213506e 24519 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
396b7fa4 24520fi
5213506e
RW
24521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24522/* end confdefs.h. */
396b7fa4
JM
24523__thread int a; int b; int f() { return a = b; }
24524_ACEOF
5213506e 24525if ac_fn_c_try_link "$LINENO"; then :
3afcaaf4 24526 gcc_cv_have_tls=yes
1cf3d07d 24527else
5213506e 24528 gcc_cv_have_tls=no
396b7fa4 24529fi
5213506e
RW
24530rm -f core conftest.err conftest.$ac_objext \
24531 conftest$ac_exeext conftest.$ac_ext
396b7fa4 24532else
5213506e 24533 gcc_cv_have_tls=yes
396b7fa4 24534fi
5213506e
RW
24535rm -f core conftest.err conftest.$ac_objext \
24536 conftest$ac_exeext conftest.$ac_ext
396b7fa4
JM
24537 CFLAGS="$chktls_save_CFLAGS"
24538 LDFLAGS="$chktls_save_LDFLAGS"
24539else
5213506e 24540 gcc_cv_have_tls=no
1cf3d07d 24541fi
5213506e
RW
24542rm -f core conftest.err conftest.$ac_objext \
24543 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
24544
24545
24546else
5213506e
RW
24547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24548/* end confdefs.h. */
1cf3d07d
SE
24549__thread int a; int b; int main() { return a = b; }
24550_ACEOF
5213506e 24551if ac_fn_c_try_run "$LINENO"; then :
1cf3d07d
SE
24552 chktls_save_LDFLAGS="$LDFLAGS"
24553 LDFLAGS="-static $LDFLAGS"
24554 if test x$gcc_no_link = xyes; then
5213506e 24555 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 24556fi
5213506e
RW
24557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24558/* end confdefs.h. */
1cf3d07d
SE
24559int main() { return 0; }
24560_ACEOF
5213506e
RW
24561if ac_fn_c_try_link "$LINENO"; then :
24562 if test "$cross_compiling" = yes; then :
24563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24564$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24565as_fn_error "cannot run test program while cross compiling
24566See \`config.log' for more details." "$LINENO" 5; }
24567else
24568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24569/* end confdefs.h. */
1cf3d07d
SE
24570__thread int a; int b; int main() { return a = b; }
24571_ACEOF
5213506e 24572if ac_fn_c_try_run "$LINENO"; then :
3afcaaf4 24573 gcc_cv_have_tls=yes
1cf3d07d 24574else
5213506e 24575 gcc_cv_have_tls=no
1cf3d07d 24576fi
5213506e
RW
24577rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24578 conftest.$ac_objext conftest.beam conftest.$ac_ext
1cf3d07d 24579fi
1cf3d07d 24580
5213506e
RW
24581else
24582 gcc_cv_have_tls=yes
1cf3d07d 24583fi
5213506e
RW
24584rm -f core conftest.err conftest.$ac_objext \
24585 conftest$ac_exeext conftest.$ac_ext
1cf3d07d 24586 LDFLAGS="$chktls_save_LDFLAGS"
3afcaaf4 24587 if test $gcc_cv_have_tls = yes; then
1cf3d07d
SE
24588 chktls_save_CFLAGS="$CFLAGS"
24589 thread_CFLAGS=failed
24590 for flag in '' '-pthread' '-lpthread'; do
24591 CFLAGS="$flag $chktls_save_CFLAGS"
24592 if test x$gcc_no_link = xyes; then
5213506e 24593 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 24594fi
5213506e 24595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
24596/* end confdefs.h. */
24597#include <pthread.h>
24598 void *g(void *d) { return NULL; }
24599int
24600main ()
24601{
24602pthread_t t; pthread_create(&t,NULL,g,NULL);
24603 ;
24604 return 0;
24605}
24606_ACEOF
5213506e 24607if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 24608 thread_CFLAGS="$flag"
1cf3d07d 24609fi
5213506e
RW
24610rm -f core conftest.err conftest.$ac_objext \
24611 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
24612 if test "X$thread_CFLAGS" != Xfailed; then
24613 break
24614 fi
24615 done
24616 CFLAGS="$chktls_save_CFLAGS"
24617 if test "X$thread_CFLAGS" != Xfailed; then
24618 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
22a4778a 24619 if test "$cross_compiling" = yes; then :
5213506e
RW
24620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24621$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24622as_fn_error "cannot run test program while cross compiling
24623See \`config.log' for more details." "$LINENO" 5; }
24624else
24625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
24626/* end confdefs.h. */
24627#include <pthread.h>
24628 __thread int a;
dbd34b89 24629 static int *volatile a_in_other_thread;
1cf3d07d
SE
24630 static void *
24631 thread_func (void *arg)
24632 {
24633 a_in_other_thread = &a;
24634 return (void *)0;
24635 }
24636int
24637main ()
24638{
24639pthread_t thread;
24640 void *thread_retval;
dbd34b89
IS
24641 int *volatile a_in_main_thread;
24642 a_in_main_thread = &a;
1cf3d07d
SE
24643 if (pthread_create (&thread, (pthread_attr_t *)0,
24644 thread_func, (void *)0))
24645 return 0;
1cf3d07d
SE
24646 if (pthread_join (thread, &thread_retval))
24647 return 0;
24648 return (a_in_other_thread == a_in_main_thread);
24649 ;
24650 return 0;
24651}
24652_ACEOF
5213506e 24653if ac_fn_c_try_run "$LINENO"; then :
3afcaaf4 24654 gcc_cv_have_tls=yes
1cf3d07d 24655else
5213506e 24656 gcc_cv_have_tls=no
1cf3d07d 24657fi
5213506e
RW
24658rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24659 conftest.$ac_objext conftest.beam conftest.$ac_ext
1cf3d07d 24660fi
5213506e 24661
1cf3d07d
SE
24662 CFLAGS="$chktls_save_CFLAGS"
24663 fi
24664 fi
24665else
5213506e 24666 gcc_cv_have_tls=no
1cf3d07d 24667fi
5213506e
RW
24668rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24669 conftest.$ac_objext conftest.beam conftest.$ac_ext
1cf3d07d 24670fi
5213506e 24671
1cf3d07d 24672fi
5213506e
RW
24673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
24674$as_echo "$gcc_cv_have_tls" >&6; }
3afcaaf4 24675 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
1cf3d07d 24676
5213506e 24677$as_echo "#define HAVE_TLS 1" >>confdefs.h
1cf3d07d
SE
24678
24679 fi
24680
24681# For _Unwind_GetIPInfo.
24682
24683
5213506e
RW
24684# Check whether --with-system-libunwind was given.
24685if test "${with_system_libunwind+set}" = set; then :
24686 withval=$with_system_libunwind;
24687fi
1cf3d07d 24688
bc3f0248
SE
24689 # If system-libunwind was not specifically set, pick a default setting.
24690 if test x$with_system_libunwind = x; then
24691 case ${target} in
24692 ia64-*-hpux*) with_system_libunwind=yes ;;
24693 *) with_system_libunwind=no ;;
24694 esac
24695 fi
24696 # Based on system-libunwind and target, do we have ipinfo?
24697 if test x$with_system_libunwind = xyes; then
24698 case ${target} in
24699 ia64-*-*) have_unwind_getipinfo=no ;;
24700 *) have_unwind_getipinfo=yes ;;
24701 esac
24702 else
a0e02041
AP
24703 # Darwin before version 9 does not have _Unwind_GetIPInfo.
24704
24705 case ${target} in
24706 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
24707 *) have_unwind_getipinfo=yes ;;
24708 esac
24709
bc3f0248 24710 fi
1cf3d07d 24711
bc3f0248 24712 if test x$have_unwind_getipinfo = xyes; then
1cf3d07d 24713
5213506e 24714$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
1cf3d07d
SE
24715
24716 fi
1cf3d07d
SE
24717
24718
24719# See if linker supports anonymous version scripts.
5213506e
RW
24720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous version scripts" >&5
24721$as_echo_n "checking whether ld supports anonymous version scripts... " >&6; }
24722if test "${libjava_cv_anon_version_script+set}" = set; then :
24723 $as_echo_n "(cached) " >&6
1cf3d07d 24724else
bf382f5f
RO
24725 # Check whether --enable-symvers was given.
24726if test "${enable_symvers+set}" = set; then :
24727 enableval=$enable_symvers; case "$enableval" in
0ac65d04 24728 yes|gnu*) libjava_cv_anon_version_script=yes ;;
bf382f5f
RO
24729 no) libjava_cv_anon_version_script=no ;;
24730 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5;;
24731 esac
24732else
24733 libjava_cv_anon_version_script=yes
24734
24735fi
24736
24737 if test x$libjava_cv_anon_version_script = xyes; then
24738 save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
24739 CFLAGS="$CFLAGS -fPIC";
24740 LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
24741 echo '{ global: globalsymb*; local: *; };' > conftest.map
24742 if test x$gcc_no_link = xyes; then
5213506e 24743 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 24744fi
5213506e 24745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
24746/* end confdefs.h. */
24747void globalsymbol (void) {} void localsymbol (void) {}
24748int
24749main ()
24750{
24751
24752 ;
24753 return 0;
24754}
24755_ACEOF
5213506e 24756if ac_fn_c_try_link "$LINENO"; then :
22a4778a 24757 libjava_cv_anon_version_script=gnu
bf382f5f
RO
24758else
24759 libjava_cv_anon_version_script=no
1cf3d07d 24760fi
5213506e
RW
24761rm -f core conftest.err conftest.$ac_objext \
24762 conftest$ac_exeext conftest.$ac_ext
bf382f5f
RO
24763 if test x$libjava_cv_anon_version_script = xno; then
24764 case "$target_os" in
24765 solaris2*)
24766 LDFLAGS="$save_LDFLAGS"
24767 LDFLAGS="$LDFLAGS -shared -Wl,-M,conftest.map"
24768 # Sun ld doesn't understand wildcards here.
24769 echo '{ global: globalsymbol; local: *; };' > conftest.map
24770 if test x$gcc_no_link = xyes; then
22a4778a
RO
24771 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24772fi
24773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24774/* end confdefs.h. */
24775void globalsymbol (void) {} void localsymbol (void) {}
24776int
24777main ()
24778{
24779
24780 ;
24781 return 0;
24782}
24783_ACEOF
24784if ac_fn_c_try_link "$LINENO"; then :
24785 libjava_cv_anon_version_script=sun
24786fi
24787rm -f core conftest.err conftest.$ac_objext \
24788 conftest$ac_exeext conftest.$ac_ext
bf382f5f
RO
24789 ;;
24790 esac
24791 fi
24792 CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
22a4778a 24793 fi
1cf3d07d
SE
24794
24795fi
5213506e
RW
24796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_anon_version_script" >&5
24797$as_echo "$libjava_cv_anon_version_script" >&6; }
22a4778a 24798 if test "$libjava_cv_anon_version_script" != no; then
1cf3d07d
SE
24799 ANONVERSCRIPT_TRUE=
24800 ANONVERSCRIPT_FALSE='#'
24801else
24802 ANONVERSCRIPT_TRUE='#'
24803 ANONVERSCRIPT_FALSE=
24804fi
24805
22a4778a
RO
24806 if test "$libjava_cv_anon_version_script" = gnu; then
24807 ANONVERSCRIPT_GNU_TRUE=
24808 ANONVERSCRIPT_GNU_FALSE='#'
24809else
24810 ANONVERSCRIPT_GNU_TRUE='#'
24811 ANONVERSCRIPT_GNU_FALSE=
24812fi
24813
24814 if test "$libjava_cv_anon_version_script" = sun; then
24815 ANONVERSCRIPT_SUN_TRUE=
24816 ANONVERSCRIPT_SUN_FALSE='#'
24817else
24818 ANONVERSCRIPT_SUN_TRUE='#'
24819 ANONVERSCRIPT_SUN_FALSE=
24820fi
24821
1cf3d07d
SE
24822
24823# Check if linker supports static linking on a per library basis
24824LD_START_STATIC_SPEC=
24825LD_FINISH_STATIC_SPEC=
bc492e47
RO
24826if $LD --help 2>&1 | grep -- -call_shared >/dev/null 2>&1; then
24827 if $LD --help 2>&1 | grep -- -non_shared >/dev/null 2>&1; then
1cf3d07d
SE
24828 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
24829 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
24830 fi
24831fi
24832
24833
24834
24835here=`${PWDCMD-pwd}`
24836
24837
24838# We get this from the environment.
24839
24840
fa0a5acc 24841default_python_dir="/share/gcc-`cat ${srcdir}/../gcc/BASE-VER`/python/libjava"
c9db365d 24842
5213506e
RW
24843# Check whether --with-python-dir was given.
24844if test "${with_python_dir+set}" = set; then :
24845 withval=$with_python_dir; with_python_dir=$withval
c9db365d 24846else
fa0a5acc 24847 with_python_dir="${default_python_dir}"
5213506e
RW
24848fi
24849
c9db365d 24850
fa0a5acc
GB
24851# Needed for installing Python modules during make install.
24852python_mod_dir="\${prefix}${with_python_dir}"
24853
24854# Needed for substituting into aot-compile*
24855python_mod_dir_expanded="${expanded_prefix}${with_python_dir}"
24856
5213506e
RW
24857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Python modules dir: ${python_mod_dir_expanded}" >&5
24858$as_echo "Python modules dir: ${python_mod_dir_expanded}" >&6; };
c9db365d
JS
24859
24860
24861
24862# needed for aot-compile-rpm
24863MAKE=`which make`
24864
24865
5213506e
RW
24866# Check whether --enable-aot-compile-rpm was given.
24867if test "${enable_aot_compile_rpm+set}" = set; then :
24868 enableval=$enable_aot_compile_rpm; case "${enableval}" in
c9db365d
JS
24869 yes) AOT_RPM_ENABLED=yes ;;
24870 no) AOT_RPM_ENABLED=no ;;
5213506e 24871 *) as_fn_error "Unknown argument to enable/disable aot-compile-rpm" "$LINENO" 5 ;;
c9db365d
JS
24872 esac
24873else
24874 AOT_RPM_ENABLED=no
24875
5213506e 24876fi
c9db365d 24877
5213506e 24878 if test "x${AOT_RPM_ENABLED}" = xyes; then
c9db365d
JS
24879 INSTALL_AOT_RPM_TRUE=
24880 INSTALL_AOT_RPM_FALSE='#'
24881else
24882 INSTALL_AOT_RPM_TRUE='#'
24883 INSTALL_AOT_RPM_FALSE=
24884fi
24885
24886
5213506e
RW
24887# Check whether --enable-java-home was given.
24888if test "${enable_java_home+set}" = set; then :
24889 enableval=$enable_java_home; case "${enableval}" in
c9db365d
JS
24890 yes) JAVA_HOME_ENABLED=yes ;;
24891 no) JAVA_HOME_ENABLED=no ;;
5213506e 24892 *) as_fn_error "Unknown argument to enable/disable java-home" "$LINENO" 5 ;;
c9db365d
JS
24893 esac
24894else
24895 JAVA_HOME_ENABLED=no
24896
5213506e 24897fi
c9db365d 24898
5213506e 24899 if test "x${JAVA_HOME_ENABLED}" = xyes; then
c9db365d
JS
24900 CREATE_JAVA_HOME_TRUE=
24901 CREATE_JAVA_HOME_FALSE='#'
24902else
24903 CREATE_JAVA_HOME_TRUE='#'
24904 CREATE_JAVA_HOME_FALSE=
24905fi
24906
24907
24908# Only do these checks if java-home above is enabled.
cd6d4007 24909if test "x${JAVA_HOME_ENABLED}" = xyes
c9db365d
JS
24910then
24911
24912
5213506e
RW
24913# Check whether --with-gcc-suffix was given.
24914if test "${with_gcc_suffix+set}" = set; then :
24915 withval=$with_gcc_suffix; gcc_suffix=$withval
c9db365d
JS
24916else
24917 gcc_suffix=""
5213506e 24918fi
c9db365d 24919
5213506e
RW
24920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCC suffix: ${gcc_suffix}" >&5
24921$as_echo "GCC suffix: ${gcc_suffix}" >&6; }
c9db365d
JS
24922
24923
5213506e
RW
24924
24925# Check whether --with-arch-directory was given.
24926if test "${with_arch_directory+set}" = set; then :
24927 withval=$with_arch_directory; host_cpu=$withval
c9db365d
JS
24928else
24929 host_cpu=""
5213506e 24930fi
c9db365d
JS
24931
24932
5213506e
RW
24933
24934# Check whether --with-os-directory was given.
24935if test "${with_os_directory+set}" = set; then :
24936 withval=$with_os_directory; host_os=$withval
c9db365d
JS
24937else
24938 host_os=""
5213506e 24939fi
c9db365d
JS
24940
24941
5213506e
RW
24942
24943# Check whether --with-origin-name was given.
24944if test "${with_origin_name+set}" = set; then :
24945 withval=$with_origin_name; origin_name=$withval
c9db365d
JS
24946else
24947 origin_name=gcj${gcc_suffix}
5213506e 24948fi
c9db365d 24949
5213506e
RW
24950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JPackage origin name: ${origin_name}" >&5
24951$as_echo "JPackage origin name: ${origin_name}" >&6; }
c9db365d 24952
5213506e
RW
24953
24954# Check whether --with-arch-suffix was given.
24955if test "${with_arch_suffix+set}" = set; then :
24956 withval=$with_arch_suffix; arch_suffix=$withval
c9db365d
JS
24957else
24958 arch_suffix=""
5213506e 24959fi
c9db365d 24960
5213506e
RW
24961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch suffix: ${arch_suffix}" >&5
24962$as_echo "arch suffix: ${arch_suffix}" >&6; }
c9db365d 24963
5213506e
RW
24964
24965# Check whether --with-jvm-root-dir was given.
24966if test "${with_jvm_root_dir+set}" = set; then :
24967 withval=$with_jvm_root_dir; jvm_root_dir=$withval
c9db365d
JS
24968else
24969 jvm_root_dir="\${prefix}/lib/jvm"
5213506e 24970fi
c9db365d 24971
5213506e
RW
24972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM root installation directory: ${jvm_root_dir}" >&5
24973$as_echo "JVM root installation directory: ${jvm_root_dir}" >&6; }
c9db365d 24974
5213506e
RW
24975
24976# Check whether --with-jvm-jar-dir was given.
24977if test "${with_jvm_jar_dir+set}" = set; then :
24978 withval=$with_jvm_jar_dir; jvm_jar_dir=$withval
c9db365d
JS
24979else
24980 jvm_jar_dir=\${prefix}/lib/jvm-exports
5213506e
RW
24981fi
24982
24983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JAR root installation directory: ${jvm_jar_dir}" >&5
24984$as_echo "JAR root installation directory: ${jvm_jar_dir}" >&6; }
c9db365d
JS
24985
24986 JAVA_VERSION=1.5.0
24987 BUILD_VERSION=0
24988
24989
5213506e
RW
24990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Java version: ${JAVA_VERSION}" >&5
24991$as_echo "Java version: ${JAVA_VERSION}" >&6; }
c9db365d 24992
6eaf85d0 24993 jre_dir=jre
c9db365d
JS
24994 jre_lnk=jre-${JAVA_VERSION}-${origin_name}
24995 sdk_lnk=java-${JAVA_VERSION}-${origin_name}
24996
24997 JVM_ROOT_DIR=${jvm_root_dir}
24998
5213506e
RW
24999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
25000$as_echo "JVM ROOT directory: ${JVM_ROOT_DIR}" >&6; }
c9db365d
JS
25001
25002 JVM_JAR_ROOT_DIR=${jvm_jar_dir}
25003
5213506e
RW
25004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
25005$as_echo "JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6; }
c9db365d 25006
6eaf85d0 25007 JVM_JAR_DIR=${jvm_jar_dir}
c9db365d 25008
5213506e
RW
25009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
25010$as_echo "JVM JAR directory: ${JVM_JAR_DIR}" >&6; }
c9db365d
JS
25011
25012 JRE_DIR=${jre_dir}
25013
25014
c9db365d
JS
25015 JRE_LNK=${jre_lnk}
25016
25017
25018 SDK_LNK=${sdk_lnk}
25019
25020
6eaf85d0 25021 SDK_BIN_DIR=${jvm_root_dir}/bin
c9db365d 25022
5213506e
RW
25023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
25024$as_echo "SDK tools directory: ${SDK_BIN_DIR}" >&6; }
c9db365d 25025
6eaf85d0 25026 SDK_LIB_DIR=${jvm_root_dir}/lib
c9db365d 25027
5213506e
RW
25028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
25029$as_echo "SDK jar directory: ${SDK_LIB_DIR}" >&6; }
c9db365d 25030
6eaf85d0 25031 SDK_INCLUDE_DIR=${jvm_root_dir}/include
c9db365d 25032
5213506e
RW
25033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
25034$as_echo "SDK include directory: ${SDK_INCLUDE_DIR}" >&6; }
c9db365d
JS
25035
25036 JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
25037
5213506e
RW
25038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
25039$as_echo "JRE tools directory: ${JRE_BIN_DIR}" >&6; }
c9db365d
JS
25040
25041 JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
25042
5213506e
RW
25043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
25044$as_echo "JRE lib directory: ${JRE_LIB_DIR}" >&6; }
c9db365d
JS
25045
25046 # Find gcj prefix using gcj found in PATH.
25047 gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
25048
25049 # Where do the gcj binaries live?
25050 # For jhbuild based builds, they all live in a sibling of bin called
25051 # gcj-bin. Check for gcj-bin first, and use bin otherwise.
25052 GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
25053
5213506e
RW
25054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
25055$as_echo "GCJ tools directory: ${GCJ_BIN_DIR}" >&6; }
c9db365d 25056
5213506e
RW
25057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host is ${host}" >&5
25058$as_echo "host is ${host}" >&6; }
c9db365d
JS
25059 if test "x${host_cpu}" = "x"
25060 then
25061 case ${host} in
25062 *-mingw* | *-cygwin*)
25063 host_cpu=x86;;
25064 i486-* | i586-* | i686-*)
25065 host_cpu=i386;;
6eaf85d0
AJH
25066 x86_64-*)
25067 host_cpu=amd64;;
c9db365d
JS
25068 *)
25069 host_cpu=${host_cpu};;
25070 esac
25071 fi
5213506e
RW
25072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch directory: ${host_cpu}" >&5
25073$as_echo "arch directory: ${host_cpu}" >&6; }
c9db365d
JS
25074 CPU=${host_cpu}
25075
25076
25077 if test "x${host_os}" = "x"
25078 then
25079 case ${host} in
25080 *-mingw* | *-cygwin*)
25081 host_os=win32;;
25082 *-linux*)
25083 host_os=linux;;
25084 *)
25085 host_os=${host_os};;
25086 esac
25087 fi
25088 echo os directory: ${host_os}
25089 OS=${host_os}
25090
25091
25092 # make an expanded $libdir, for substituting into
25093 # scripts (and other non-Makefile things).
25094 LIBDIR=$libdir
25095 if test "x${exec_prefix}" = "xNONE"
25096 then
f3392d53 25097 lib_exec_prefix=$expanded_prefix
c9db365d
JS
25098 else
25099 lib_exec_prefix=$exec_prefix
25100 fi
25101 LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
25102
25103fi
25104
5213506e 25105ac_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"
1cf3d07d
SE
25106
25107
04e0cb88
L
25108if test ${multilib} = yes; then
25109 multilib_arg="--enable-multilib"
25110else
25111 multilib_arg=
25112fi
1cf3d07d 25113
5213506e 25114ac_config_files="$ac_config_files scripts/jar"
1cf3d07d
SE
25115
25116cat >confcache <<\_ACEOF
25117# This file is a shell script that caches the results of configure
25118# tests run on this system so they can be shared between configure
25119# scripts and configure runs, see configure's option --config-cache.
25120# It is not useful on other systems. If it contains results you don't
25121# want to keep, you may remove or edit it.
25122#
25123# config.status only pays attention to the cache file if you give it
25124# the --recheck option to rerun configure.
25125#
25126# `ac_cv_env_foo' variables (set or unset) will be overridden when
25127# loading this file, other *unset* `ac_cv_foo' will be assigned the
25128# following values.
25129
25130_ACEOF
25131
25132# The following way of writing the cache mishandles newlines in values,
25133# but we know of no workaround that is simple, portable, and efficient.
5213506e 25134# So, we kill variables containing newlines.
1cf3d07d
SE
25135# Ultrix sh set writes to stderr and can't be redirected directly,
25136# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
25137(
25138 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25139 eval ac_val=\$$ac_var
25140 case $ac_val in #(
25141 *${as_nl}*)
25142 case $ac_var in #(
25143 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25144$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25145 esac
25146 case $ac_var in #(
25147 _ | IFS | as_nl) ;; #(
25148 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25149 *) { eval $ac_var=; unset $ac_var;} ;;
25150 esac ;;
25151 esac
25152 done
25153
1cf3d07d 25154 (set) 2>&1 |
5213506e
RW
25155 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25156 *${as_nl}ac_space=\ *)
25157 # `set' does not quote correctly, so add quotes: double-quote
25158 # substitution turns \\\\ into \\, and sed turns \\ into \.
1cf3d07d
SE
25159 sed -n \
25160 "s/'/'\\\\''/g;
25161 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 25162 ;; #(
1cf3d07d
SE
25163 *)
25164 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 25165 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1cf3d07d 25166 ;;
5213506e
RW
25167 esac |
25168 sort
25169) |
1cf3d07d 25170 sed '
5213506e 25171 /^ac_cv_env_/b end
1cf3d07d 25172 t clear
5213506e 25173 :clear
1cf3d07d
SE
25174 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25175 t end
5213506e
RW
25176 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25177 :end' >>confcache
25178if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25179 if test -w "$cache_file"; then
25180 test "x$cache_file" != "x/dev/null" &&
25181 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25182$as_echo "$as_me: updating cache $cache_file" >&6;}
1cf3d07d
SE
25183 cat confcache >$cache_file
25184 else
5213506e
RW
25185 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25186$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1cf3d07d
SE
25187 fi
25188fi
25189rm -f confcache
25190
25191test "x$prefix" = xNONE && prefix=$ac_default_prefix
25192# Let make expand exec_prefix.
25193test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25194
1cf3d07d
SE
25195DEFS=-DHAVE_CONFIG_H
25196
25197ac_libobjs=
25198ac_ltlibobjs=
25199for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25200 # 1. Remove the extension, and $U if already installed.
5213506e
RW
25201 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25202 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25203 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25204 # will be set to the directory where LIBOBJS objects are built.
25205 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25206 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1cf3d07d
SE
25207done
25208LIBOBJS=$ac_libobjs
25209
25210LTLIBOBJS=$ac_ltlibobjs
25211
25212
cd6d4007 25213if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
5213506e
RW
25214 as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
25215Usually this means the macro was only invoked conditionally." "$LINENO" 5
cd6d4007 25216fi
1cf3d07d 25217if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
5213506e
RW
25218 as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
25219Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25220fi
25221if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5213506e
RW
25222 as_fn_error "conditional \"AMDEP\" was never defined.
25223Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25224fi
25225if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5213506e
RW
25226 as_fn_error "conditional \"am__fastdepCC\" was never defined.
25227Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25228fi
25229if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
5213506e
RW
25230 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
25231Usually this means the macro was only invoked conditionally." "$LINENO" 5
25232fi
25233 if test -n "$EXEEXT"; then
25234 am__EXEEXT_TRUE=
25235 am__EXEEXT_FALSE='#'
25236else
25237 am__EXEEXT_TRUE='#'
25238 am__EXEEXT_FALSE=
1cf3d07d 25239fi
5213506e 25240
1cf3d07d 25241if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5213506e
RW
25242 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
25243Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d 25244fi
6a92b6c7
DK
25245if test -z "${BUILD_SUBLIBS_TRUE}" && test -z "${BUILD_SUBLIBS_FALSE}"; then
25246 as_fn_error "conditional \"BUILD_SUBLIBS\" was never defined.
25247Usually this means the macro was only invoked conditionally." "$LINENO" 5
25248fi
1cf3d07d 25249if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
5213506e
RW
25250 as_fn_error "conditional \"XLIB_AWT\" was never defined.
25251Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25252fi
25253if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
5213506e
RW
25254 as_fn_error "conditional \"X_AWT\" was never defined.
25255Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25256fi
25257if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
5213506e
RW
25258 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25259Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25260fi
25261if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
5213506e
RW
25262 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25263Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25264fi
25265if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
5213506e
RW
25266 as_fn_error "conditional \"TESTSUBDIR\" was never defined.
25267Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25268fi
25269if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
5213506e
RW
25270 as_fn_error "conditional \"BUILD_ECJ1\" was never defined.
25271Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25272fi
25273if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
5213506e
RW
25274 as_fn_error "conditional \"INSTALL_ECJ_JAR\" was never defined.
25275Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25276fi
25277if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
5213506e
RW
25278 as_fn_error "conditional \"JAVA_HOME_SET\" was never defined.
25279Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d 25280fi
a507baad 25281if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
5213506e
RW
25282 as_fn_error "conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
25283Usually this means the macro was only invoked conditionally." "$LINENO" 5
a507baad 25284fi
c07cd2c7 25285if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
5213506e
RW
25286 as_fn_error "conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
25287Usually this means the macro was only invoked conditionally." "$LINENO" 5
c07cd2c7 25288fi
86acf60c 25289if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
5213506e
RW
25290 as_fn_error "conditional \"INTERPRETER\" was never defined.
25291Usually this means the macro was only invoked conditionally." "$LINENO" 5
86acf60c 25292fi
1cf3d07d 25293if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
5213506e
RW
25294 as_fn_error "conditional \"USING_WIN32_PLATFORM\" was never defined.
25295Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25296fi
25297if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
5213506e
RW
25298 as_fn_error "conditional \"USING_POSIX_PLATFORM\" was never defined.
25299Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25300fi
25301if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
5213506e
RW
25302 as_fn_error "conditional \"USING_DARWIN_CRT\" was never defined.
25303Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25304fi
25305if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
5213506e
RW
25306 as_fn_error "conditional \"USING_BOEHMGC\" was never defined.
25307Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25308fi
25309if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
5213506e
RW
25310 as_fn_error "conditional \"USING_NOGC\" was never defined.
25311Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25312fi
25313if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
5213506e
RW
25314 as_fn_error "conditional \"USING_POSIX_THREADS\" was never defined.
25315Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25316fi
25317if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
5213506e
RW
25318 as_fn_error "conditional \"USING_WIN32_THREADS\" was never defined.
25319Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25320fi
25321if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
5213506e
RW
25322 as_fn_error "conditional \"USING_NO_THREADS\" was never defined.
25323Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25324fi
25325if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
5213506e
RW
25326 as_fn_error "conditional \"USE_LIBGCJ_BC\" was never defined.
25327Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25328fi
25329if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
5213506e
RW
25330 as_fn_error "conditional \"USING_GCC\" was never defined.
25331Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25332fi
25333if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
5213506e
RW
25334 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25335Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d 25336fi
5213506e 25337
1cf3d07d 25338if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
5213506e
RW
25339 as_fn_error "conditional \"NATIVE\" was never defined.
25340Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25341fi
25342if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
5213506e
RW
25343 as_fn_error "conditional \"ENABLE_SHARED\" was never defined.
25344Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25345fi
25346if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
5213506e
RW
25347 as_fn_error "conditional \"NEEDS_DATA_START\" was never defined.
25348Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d 25349fi
4bf95cef 25350if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
5213506e
RW
25351 as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
25352Usually this means the macro was only invoked conditionally." "$LINENO" 5
4bf95cef 25353fi
1cf3d07d 25354if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
5213506e
RW
25355 as_fn_error "conditional \"ANONVERSCRIPT\" was never defined.
25356Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d 25357fi
22a4778a
RO
25358if test -z "${ANONVERSCRIPT_GNU_TRUE}" && test -z "${ANONVERSCRIPT_GNU_FALSE}"; then
25359 as_fn_error "conditional \"ANONVERSCRIPT_GNU\" was never defined.
25360Usually this means the macro was only invoked conditionally." "$LINENO" 5
25361fi
25362if test -z "${ANONVERSCRIPT_SUN_TRUE}" && test -z "${ANONVERSCRIPT_SUN_FALSE}"; then
25363 as_fn_error "conditional \"ANONVERSCRIPT_SUN\" was never defined.
25364Usually this means the macro was only invoked conditionally." "$LINENO" 5
25365fi
c9db365d 25366if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
5213506e
RW
25367 as_fn_error "conditional \"INSTALL_AOT_RPM\" was never defined.
25368Usually this means the macro was only invoked conditionally." "$LINENO" 5
c9db365d
JS
25369fi
25370if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
5213506e
RW
25371 as_fn_error "conditional \"CREATE_JAVA_HOME\" was never defined.
25372Usually this means the macro was only invoked conditionally." "$LINENO" 5
c9db365d 25373fi
1cf3d07d
SE
25374
25375: ${CONFIG_STATUS=./config.status}
5213506e 25376ac_write_fail=0
1cf3d07d
SE
25377ac_clean_files_save=$ac_clean_files
25378ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
25379{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25380$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25381as_write_fail=0
25382cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1cf3d07d
SE
25383#! $SHELL
25384# Generated by $as_me.
25385# Run this file to recreate the current configuration.
25386# Compiler output produced by configure, useful for debugging
25387# configure, is in config.log if it exists.
25388
25389debug=false
25390ac_cs_recheck=false
25391ac_cs_silent=false
1cf3d07d 25392
5213506e
RW
25393SHELL=\${CONFIG_SHELL-$SHELL}
25394export SHELL
25395_ASEOF
25396cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25397## -------------------- ##
25398## M4sh Initialization. ##
25399## -------------------- ##
25400
25401# Be more Bourne compatible
25402DUALCASE=1; export DUALCASE # for MKS sh
25403if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1cf3d07d
SE
25404 emulate sh
25405 NULLCMD=:
5213506e 25406 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1cf3d07d
SE
25407 # is contrary to our usage. Disable this feature.
25408 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
25409 setopt NO_GLOB_SUBST
25410else
25411 case `(set -o) 2>/dev/null` in #(
25412 *posix*) :
25413 set -o posix ;; #(
25414 *) :
25415 ;;
25416esac
1cf3d07d 25417fi
1cf3d07d 25418
5213506e
RW
25419
25420as_nl='
25421'
25422export as_nl
25423# Printing a long string crashes Solaris 7 /usr/bin/printf.
25424as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25425as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25426as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25427# Prefer a ksh shell builtin over an external printf program on Solaris,
25428# but without wasting forks for bash or zsh.
25429if test -z "$BASH_VERSION$ZSH_VERSION" \
25430 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25431 as_echo='print -r --'
25432 as_echo_n='print -rn --'
25433elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25434 as_echo='printf %s\n'
25435 as_echo_n='printf %s'
25436else
25437 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25438 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25439 as_echo_n='/usr/ucb/echo -n'
25440 else
25441 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25442 as_echo_n_body='eval
25443 arg=$1;
25444 case $arg in #(
25445 *"$as_nl"*)
25446 expr "X$arg" : "X\\(.*\\)$as_nl";
25447 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25448 esac;
25449 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25450 '
25451 export as_echo_n_body
25452 as_echo_n='sh -c $as_echo_n_body as_echo'
25453 fi
25454 export as_echo_body
25455 as_echo='sh -c $as_echo_body as_echo'
25456fi
25457
25458# The user is always right.
25459if test "${PATH_SEPARATOR+set}" != set; then
25460 PATH_SEPARATOR=:
25461 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25462 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25463 PATH_SEPARATOR=';'
25464 }
1cf3d07d
SE
25465fi
25466
25467
5213506e
RW
25468# IFS
25469# We need space, tab and new line, in precisely that order. Quoting is
25470# there to prevent editors from complaining about space-tab.
25471# (If _AS_PATH_WALK were called with IFS unset, it would disable word
25472# splitting by setting IFS to empty value.)
25473IFS=" "" $as_nl"
25474
25475# Find who we are. Look in the path if we contain no directory separator.
25476case $0 in #((
25477 *[\\/]* ) as_myself=$0 ;;
25478 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25479for as_dir in $PATH
25480do
25481 IFS=$as_save_IFS
25482 test -z "$as_dir" && as_dir=.
25483 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25484 done
25485IFS=$as_save_IFS
25486
25487 ;;
25488esac
25489# We did not find ourselves, most probably we were run as `sh COMMAND'
25490# in which case we are not to be found in the path.
25491if test "x$as_myself" = x; then
25492 as_myself=$0
25493fi
25494if test ! -f "$as_myself"; then
25495 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25496 exit 1
25497fi
25498
25499# Unset variables that we do not need and which cause bugs (e.g. in
25500# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25501# suppresses any "Segmentation fault" message there. '((' could
25502# trigger a bug in pdksh 5.2.14.
25503for as_var in BASH_ENV ENV MAIL MAILPATH
25504do eval test x\${$as_var+set} = xset \
25505 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25506done
1cf3d07d
SE
25507PS1='$ '
25508PS2='> '
25509PS4='+ '
25510
25511# NLS nuisances.
5213506e
RW
25512LC_ALL=C
25513export LC_ALL
25514LANGUAGE=C
25515export LANGUAGE
25516
25517# CDPATH.
25518(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25519
25520
25521# as_fn_error ERROR [LINENO LOG_FD]
25522# ---------------------------------
25523# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25524# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25525# script with status $?, using 1 if that was 0.
25526as_fn_error ()
25527{
25528 as_status=$?; test $as_status -eq 0 && as_status=1
25529 if test "$3"; then
25530 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25531 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1cf3d07d 25532 fi
5213506e
RW
25533 $as_echo "$as_me: error: $1" >&2
25534 as_fn_exit $as_status
25535} # as_fn_error
25536
25537
25538# as_fn_set_status STATUS
25539# -----------------------
25540# Set $? to STATUS, without forking.
25541as_fn_set_status ()
25542{
25543 return $1
25544} # as_fn_set_status
25545
25546# as_fn_exit STATUS
25547# -----------------
25548# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25549as_fn_exit ()
25550{
25551 set +e
25552 as_fn_set_status $1
25553 exit $1
25554} # as_fn_exit
25555
25556# as_fn_unset VAR
25557# ---------------
25558# Portably unset VAR.
25559as_fn_unset ()
25560{
25561 { eval $1=; unset $1;}
25562}
25563as_unset=as_fn_unset
25564# as_fn_append VAR VALUE
25565# ----------------------
25566# Append the text in VALUE to the end of the definition contained in VAR. Take
25567# advantage of any shell optimizations that allow amortized linear growth over
25568# repeated appends, instead of the typical quadratic growth present in naive
25569# implementations.
25570if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25571 eval 'as_fn_append ()
25572 {
25573 eval $1+=\$2
25574 }'
25575else
25576 as_fn_append ()
25577 {
25578 eval $1=\$$1\$2
25579 }
25580fi # as_fn_append
25581
25582# as_fn_arith ARG...
25583# ------------------
25584# Perform arithmetic evaluation on the ARGs, and store the result in the
25585# global $as_val. Take advantage of shells that can avoid forks. The arguments
25586# must be portable across $(()) and expr.
25587if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25588 eval 'as_fn_arith ()
25589 {
25590 as_val=$(( $* ))
25591 }'
25592else
25593 as_fn_arith ()
25594 {
25595 as_val=`expr "$@" || test $? -eq 1`
25596 }
25597fi # as_fn_arith
25598
1cf3d07d 25599
5213506e
RW
25600if expr a : '\(a\)' >/dev/null 2>&1 &&
25601 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1cf3d07d
SE
25602 as_expr=expr
25603else
25604 as_expr=false
25605fi
25606
5213506e 25607if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1cf3d07d
SE
25608 as_basename=basename
25609else
25610 as_basename=false
25611fi
25612
5213506e
RW
25613if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25614 as_dirname=dirname
25615else
25616 as_dirname=false
25617fi
1cf3d07d 25618
5213506e 25619as_me=`$as_basename -- "$0" ||
1cf3d07d
SE
25620$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25621 X"$0" : 'X\(//\)$' \| \
5213506e
RW
25622 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25623$as_echo X/"$0" |
25624 sed '/^.*\/\([^/][^/]*\)\/*$/{
25625 s//\1/
25626 q
25627 }
25628 /^X\/\(\/\/\)$/{
25629 s//\1/
25630 q
25631 }
25632 /^X\/\(\/\).*/{
25633 s//\1/
25634 q
25635 }
25636 s/.*/./; q'`
1cf3d07d 25637
1cf3d07d
SE
25638# Avoid depending upon Character Ranges.
25639as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25640as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25641as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25642as_cr_digits='0123456789'
25643as_cr_alnum=$as_cr_Letters$as_cr_digits
25644
5213506e
RW
25645ECHO_C= ECHO_N= ECHO_T=
25646case `echo -n x` in #(((((
25647-n*)
25648 case `echo 'xy\c'` in
25649 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25650 xy) ECHO_C='\c';;
25651 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25652 ECHO_T=' ';;
25653 esac;;
25654*)
25655 ECHO_N='-n';;
1cf3d07d
SE
25656esac
25657
5213506e
RW
25658rm -f conf$$ conf$$.exe conf$$.file
25659if test -d conf$$.dir; then
25660 rm -f conf$$.dir/conf$$.file
1cf3d07d 25661else
5213506e
RW
25662 rm -f conf$$.dir
25663 mkdir conf$$.dir 2>/dev/null
1cf3d07d 25664fi
5213506e
RW
25665if (echo >conf$$.file) 2>/dev/null; then
25666 if ln -s conf$$.file conf$$ 2>/dev/null; then
1cf3d07d 25667 as_ln_s='ln -s'
5213506e
RW
25668 # ... but there are two gotchas:
25669 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25670 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25671 # In both cases, we have to default to `cp -p'.
25672 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25673 as_ln_s='cp -p'
25674 elif ln conf$$.file conf$$ 2>/dev/null; then
25675 as_ln_s=ln
25676 else
25677 as_ln_s='cp -p'
1cf3d07d 25678 fi
1cf3d07d
SE
25679else
25680 as_ln_s='cp -p'
25681fi
5213506e
RW
25682rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25683rmdir conf$$.dir 2>/dev/null
25684
1cf3d07d 25685
5213506e
RW
25686# as_fn_mkdir_p
25687# -------------
25688# Create "$as_dir" as a directory, including parents if necessary.
25689as_fn_mkdir_p ()
25690{
25691
25692 case $as_dir in #(
25693 -*) as_dir=./$as_dir;;
25694 esac
25695 test -d "$as_dir" || eval $as_mkdir_p || {
25696 as_dirs=
25697 while :; do
25698 case $as_dir in #(
25699 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25700 *) as_qdir=$as_dir;;
25701 esac
25702 as_dirs="'$as_qdir' $as_dirs"
25703 as_dir=`$as_dirname -- "$as_dir" ||
25704$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25705 X"$as_dir" : 'X\(//\)[^/]' \| \
25706 X"$as_dir" : 'X\(//\)$' \| \
25707 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25708$as_echo X"$as_dir" |
25709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25710 s//\1/
25711 q
25712 }
25713 /^X\(\/\/\)[^/].*/{
25714 s//\1/
25715 q
25716 }
25717 /^X\(\/\/\)$/{
25718 s//\1/
25719 q
25720 }
25721 /^X\(\/\).*/{
25722 s//\1/
25723 q
25724 }
25725 s/.*/./; q'`
25726 test -d "$as_dir" && break
25727 done
25728 test -z "$as_dirs" || eval "mkdir $as_dirs"
25729 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25730
25731
25732} # as_fn_mkdir_p
1cf3d07d 25733if mkdir -p . 2>/dev/null; then
5213506e 25734 as_mkdir_p='mkdir -p "$as_dir"'
1cf3d07d
SE
25735else
25736 test -d ./-p && rmdir ./-p
25737 as_mkdir_p=false
25738fi
25739
5213506e
RW
25740if test -x / >/dev/null 2>&1; then
25741 as_test_x='test -x'
25742else
25743 if ls -dL / >/dev/null 2>&1; then
25744 as_ls_L_option=L
25745 else
25746 as_ls_L_option=
25747 fi
25748 as_test_x='
25749 eval sh -c '\''
25750 if test -d "$1"; then
25751 test -d "$1/.";
25752 else
25753 case $1 in #(
25754 -*)set "./$1";;
25755 esac;
25756 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25757 ???[sx]*):;;*)false;;esac;fi
25758 '\'' sh
25759 '
25760fi
25761as_executable_p=$as_test_x
1cf3d07d
SE
25762
25763# Sed expression to map a string onto a valid CPP name.
25764as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25765
25766# Sed expression to map a string onto a valid variable name.
25767as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25768
25769
1cf3d07d 25770exec 6>&1
5213506e
RW
25771## ----------------------------------- ##
25772## Main body of $CONFIG_STATUS script. ##
25773## ----------------------------------- ##
25774_ASEOF
25775test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25776
25777cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25778# Save the log message, to keep $0 and so on meaningful, and to
1cf3d07d 25779# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
25780# values after options handling.
25781ac_log="
1cf3d07d 25782This file was extended by libjava $as_me version-unused, which was
5213506e 25783generated by GNU Autoconf 2.64. Invocation command line was
1cf3d07d
SE
25784
25785 CONFIG_FILES = $CONFIG_FILES
25786 CONFIG_HEADERS = $CONFIG_HEADERS
25787 CONFIG_LINKS = $CONFIG_LINKS
25788 CONFIG_COMMANDS = $CONFIG_COMMANDS
25789 $ $0 $@
25790
5213506e
RW
25791on `(hostname || uname -n) 2>/dev/null | sed 1q`
25792"
25793
1cf3d07d
SE
25794_ACEOF
25795
5213506e
RW
25796case $ac_config_files in *"
25797"*) set x $ac_config_files; shift; ac_config_files=$*;;
25798esac
1cf3d07d 25799
5213506e
RW
25800case $ac_config_headers in *"
25801"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25802esac
1cf3d07d 25803
1cf3d07d 25804
5213506e
RW
25805cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25806# Files that config.status was made for.
25807config_files="$ac_config_files"
25808config_headers="$ac_config_headers"
25809config_links="$ac_config_links"
25810config_commands="$ac_config_commands"
1cf3d07d 25811
5213506e 25812_ACEOF
1cf3d07d 25813
5213506e 25814cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1cf3d07d 25815ac_cs_usage="\
5213506e
RW
25816\`$as_me' instantiates files and other configuration actions
25817from templates according to the current configuration. Unless the files
25818and actions are specified as TAGs, all are instantiated by default.
1cf3d07d 25819
5213506e 25820Usage: $0 [OPTION]... [TAG]...
1cf3d07d
SE
25821
25822 -h, --help print this help, then exit
5213506e
RW
25823 -V, --version print version number and configuration settings, then exit
25824 -q, --quiet, --silent
25825 do not print progress messages
1cf3d07d
SE
25826 -d, --debug don't remove temporary files
25827 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
25828 --file=FILE[:TEMPLATE]
25829 instantiate the configuration file FILE
25830 --header=FILE[:TEMPLATE]
25831 instantiate the configuration header FILE
1cf3d07d
SE
25832
25833Configuration files:
25834$config_files
25835
25836Configuration headers:
25837$config_headers
25838
25839Configuration links:
25840$config_links
25841
25842Configuration commands:
25843$config_commands
25844
5213506e 25845Report bugs to the package provider."
1cf3d07d 25846
5213506e
RW
25847_ACEOF
25848cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1cf3d07d
SE
25849ac_cs_version="\\
25850libjava config.status version-unused
5213506e
RW
25851configured by $0, generated by GNU Autoconf 2.64,
25852 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1cf3d07d 25853
5213506e 25854Copyright (C) 2009 Free Software Foundation, Inc.
1cf3d07d
SE
25855This config.status script is free software; the Free Software Foundation
25856gives unlimited permission to copy, distribute and modify it."
5213506e
RW
25857
25858ac_pwd='$ac_pwd'
25859srcdir='$srcdir'
25860INSTALL='$INSTALL'
25861MKDIR_P='$MKDIR_P'
25862AWK='$AWK'
25863test -n "\$AWK" || AWK=awk
1cf3d07d
SE
25864_ACEOF
25865
5213506e
RW
25866cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25867# The default lists apply if the user does not specify any file.
1cf3d07d
SE
25868ac_need_defaults=:
25869while test $# != 0
25870do
25871 case $1 in
25872 --*=*)
5213506e
RW
25873 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25874 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1cf3d07d
SE
25875 ac_shift=:
25876 ;;
5213506e 25877 *)
1cf3d07d
SE
25878 ac_option=$1
25879 ac_optarg=$2
25880 ac_shift=shift
25881 ;;
1cf3d07d
SE
25882 esac
25883
25884 case $ac_option in
25885 # Handling of the options.
1cf3d07d
SE
25886 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25887 ac_cs_recheck=: ;;
5213506e
RW
25888 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25889 $as_echo "$ac_cs_version"; exit ;;
25890 --debug | --debu | --deb | --de | --d | -d )
1cf3d07d
SE
25891 debug=: ;;
25892 --file | --fil | --fi | --f )
25893 $ac_shift
5213506e
RW
25894 case $ac_optarg in
25895 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25896 esac
25897 as_fn_append CONFIG_FILES " '$ac_optarg'"
1cf3d07d
SE
25898 ac_need_defaults=false;;
25899 --header | --heade | --head | --hea )
25900 $ac_shift
5213506e
RW
25901 case $ac_optarg in
25902 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25903 esac
25904 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1cf3d07d 25905 ac_need_defaults=false;;
5213506e
RW
25906 --he | --h)
25907 # Conflict between --help and --header
25908 as_fn_error "ambiguous option: \`$1'
25909Try \`$0 --help' for more information.";;
25910 --help | --hel | -h )
25911 $as_echo "$ac_cs_usage"; exit ;;
1cf3d07d
SE
25912 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25913 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25914 ac_cs_silent=: ;;
25915
25916 # This is an error.
5213506e
RW
25917 -*) as_fn_error "unrecognized option: \`$1'
25918Try \`$0 --help' for more information." ;;
1cf3d07d 25919
5213506e
RW
25920 *) as_fn_append ac_config_targets " $1"
25921 ac_need_defaults=false ;;
1cf3d07d
SE
25922
25923 esac
25924 shift
25925done
25926
25927ac_configure_extra_args=
25928
25929if $ac_cs_silent; then
25930 exec 6>/dev/null
25931 ac_configure_extra_args="$ac_configure_extra_args --silent"
25932fi
25933
25934_ACEOF
5213506e 25935cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1cf3d07d 25936if \$ac_cs_recheck; then
5213506e
RW
25937 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25938 shift
25939 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25940 CONFIG_SHELL='$SHELL'
25941 export CONFIG_SHELL
25942 exec "\$@"
1cf3d07d
SE
25943fi
25944
25945_ACEOF
5213506e
RW
25946cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25947exec 5>>config.log
25948{
25949 echo
25950 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25951## Running $as_me. ##
25952_ASBOX
25953 $as_echo "$ac_log"
25954} >&5
1cf3d07d 25955
5213506e
RW
25956_ACEOF
25957cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1cf3d07d 25958#
5213506e 25959# INIT-COMMANDS
1cf3d07d
SE
25960#
25961
1cf3d07d
SE
25962srcdir="$srcdir"
25963host="$host"
25964target="$target"
25965with_multisubdir="$with_multisubdir"
25966with_multisrctop="$with_multisrctop"
25967with_target_subdir="$with_target_subdir"
25968ac_configure_args="${multilib_arg} ${ac_configure_args}"
25969multi_basedir="$multi_basedir"
25970CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25971CC="$CC"
4a4a4e99
AO
25972CXX="$CXX"
25973GFORTRAN="$GFORTRAN"
25974GCJ="$GCJ"
1cf3d07d
SE
25975AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25976
25977
25978# The HP-UX ksh and POSIX shell print the target directory to stdout
25979# if CDPATH is set.
25980(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25981
25982sed_quote_subst='$sed_quote_subst'
25983double_quote_subst='$double_quote_subst'
25984delay_variable_subst='$delay_variable_subst'
43e02a8a
RW
25985macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25986macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25987enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25988enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25989pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25990enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25991SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25992ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25993host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25994host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25995host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25996build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25997build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25998build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25999SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26000Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26001GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26002EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26003FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26004LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
26005NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
26006LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
26007max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
26008ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
26009exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
26010lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
26011lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
26012lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
26013reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
26014reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
26015OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26016deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
26017file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
26018AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
26019AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
26020STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
26021RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
26022old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26023old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26024old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
26025lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
26026CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26027CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26028compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26029GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
26030lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
26031lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
26032lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
26033lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
26034objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
26035MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
26036lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
26037lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26038lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
26039lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26040lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26041need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26042DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26043NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26044LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26045OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26046OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26047libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26048shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26049extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26050archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26051enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26052export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26053whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26054compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26055old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26056old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26057archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
26058archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26059module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
26060module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26061with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
26062allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
26063no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
26064hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
26065hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
26066hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
26067hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
26068hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
26069hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
26070hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
26071hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
26072inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
26073link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
26074fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
26075always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
26076export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
26077exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
26078include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
26079prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
26080file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
26081variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
26082need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
26083need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
26084version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
26085runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
26086shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
26087shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
26088libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
26089library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
26090soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
26091install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
26092postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26093postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26094finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
26095finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
26096hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
26097sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
26098sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
26099hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
26100enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
26101enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
26102enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
26103old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
26104striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
26105compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
26106predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
26107postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
26108predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
26109postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
26110compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
26111LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
26112LD_GCJ='`$ECHO "$LD_GCJ" | $SED "$delay_single_quote_subst"`'
26113reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
26114reload_flag_GCJ='`$ECHO "$reload_flag_GCJ" | $SED "$delay_single_quote_subst"`'
26115reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26116reload_cmds_GCJ='`$ECHO "$reload_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26117old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26118old_archive_cmds_GCJ='`$ECHO "$old_archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26119compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
26120compiler_GCJ='`$ECHO "$compiler_GCJ" | $SED "$delay_single_quote_subst"`'
26121GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
26122GCC_GCJ='`$ECHO "$GCC_GCJ" | $SED "$delay_single_quote_subst"`'
26123lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
26124lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "$lt_prog_compiler_no_builtin_flag_GCJ" | $SED "$delay_single_quote_subst"`'
26125lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
26126lt_prog_compiler_wl_GCJ='`$ECHO "$lt_prog_compiler_wl_GCJ" | $SED "$delay_single_quote_subst"`'
26127lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
26128lt_prog_compiler_pic_GCJ='`$ECHO "$lt_prog_compiler_pic_GCJ" | $SED "$delay_single_quote_subst"`'
26129lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
26130lt_prog_compiler_static_GCJ='`$ECHO "$lt_prog_compiler_static_GCJ" | $SED "$delay_single_quote_subst"`'
26131lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
26132lt_cv_prog_compiler_c_o_GCJ='`$ECHO "$lt_cv_prog_compiler_c_o_GCJ" | $SED "$delay_single_quote_subst"`'
26133archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
26134archive_cmds_need_lc_GCJ='`$ECHO "$archive_cmds_need_lc_GCJ" | $SED "$delay_single_quote_subst"`'
26135enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
26136enable_shared_with_static_runtimes_GCJ='`$ECHO "$enable_shared_with_static_runtimes_GCJ" | $SED "$delay_single_quote_subst"`'
26137export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26138export_dynamic_flag_spec_GCJ='`$ECHO "$export_dynamic_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
26139whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26140whole_archive_flag_spec_GCJ='`$ECHO "$whole_archive_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
26141compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
26142compiler_needs_object_GCJ='`$ECHO "$compiler_needs_object_GCJ" | $SED "$delay_single_quote_subst"`'
26143old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26144old_archive_from_new_cmds_GCJ='`$ECHO "$old_archive_from_new_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26145old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26146old_archive_from_expsyms_cmds_GCJ='`$ECHO "$old_archive_from_expsyms_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26147archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26148archive_cmds_GCJ='`$ECHO "$archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26149archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26150archive_expsym_cmds_GCJ='`$ECHO "$archive_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26151module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26152module_cmds_GCJ='`$ECHO "$module_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26153module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26154module_expsym_cmds_GCJ='`$ECHO "$module_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26155with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
26156with_gnu_ld_GCJ='`$ECHO "$with_gnu_ld_GCJ" | $SED "$delay_single_quote_subst"`'
26157allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26158allow_undefined_flag_GCJ='`$ECHO "$allow_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
26159no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26160no_undefined_flag_GCJ='`$ECHO "$no_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
26161hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26162hardcode_libdir_flag_spec_GCJ='`$ECHO "$hardcode_libdir_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
26163hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
26164hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "$hardcode_libdir_flag_spec_ld_GCJ" | $SED "$delay_single_quote_subst"`'
26165hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
26166hardcode_libdir_separator_GCJ='`$ECHO "$hardcode_libdir_separator_GCJ" | $SED "$delay_single_quote_subst"`'
26167hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
26168hardcode_direct_GCJ='`$ECHO "$hardcode_direct_GCJ" | $SED "$delay_single_quote_subst"`'
26169hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
26170hardcode_direct_absolute_GCJ='`$ECHO "$hardcode_direct_absolute_GCJ" | $SED "$delay_single_quote_subst"`'
26171hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
26172hardcode_minus_L_GCJ='`$ECHO "$hardcode_minus_L_GCJ" | $SED "$delay_single_quote_subst"`'
26173hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
26174hardcode_shlibpath_var_GCJ='`$ECHO "$hardcode_shlibpath_var_GCJ" | $SED "$delay_single_quote_subst"`'
26175hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
26176hardcode_automatic_GCJ='`$ECHO "$hardcode_automatic_GCJ" | $SED "$delay_single_quote_subst"`'
26177inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
26178inherit_rpath_GCJ='`$ECHO "$inherit_rpath_GCJ" | $SED "$delay_single_quote_subst"`'
26179link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
26180link_all_deplibs_GCJ='`$ECHO "$link_all_deplibs_GCJ" | $SED "$delay_single_quote_subst"`'
26181fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
26182fix_srcfile_path_GCJ='`$ECHO "$fix_srcfile_path_GCJ" | $SED "$delay_single_quote_subst"`'
26183always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
26184always_export_symbols_GCJ='`$ECHO "$always_export_symbols_GCJ" | $SED "$delay_single_quote_subst"`'
26185export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26186export_symbols_cmds_GCJ='`$ECHO "$export_symbols_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26187exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26188exclude_expsyms_GCJ='`$ECHO "$exclude_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
26189include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26190include_expsyms_GCJ='`$ECHO "$include_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
26191prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26192prelink_cmds_GCJ='`$ECHO "$prelink_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26193file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
26194file_list_spec_GCJ='`$ECHO "$file_list_spec_GCJ" | $SED "$delay_single_quote_subst"`'
26195hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
26196hardcode_action_GCJ='`$ECHO "$hardcode_action_GCJ" | $SED "$delay_single_quote_subst"`'
26197compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
26198compiler_lib_search_dirs_GCJ='`$ECHO "$compiler_lib_search_dirs_GCJ" | $SED "$delay_single_quote_subst"`'
26199predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26200predep_objects_GCJ='`$ECHO "$predep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
26201postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26202postdep_objects_GCJ='`$ECHO "$postdep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
26203predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
26204predeps_GCJ='`$ECHO "$predeps_GCJ" | $SED "$delay_single_quote_subst"`'
26205postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
26206postdeps_GCJ='`$ECHO "$postdeps_GCJ" | $SED "$delay_single_quote_subst"`'
26207compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
26208compiler_lib_search_path_GCJ='`$ECHO "$compiler_lib_search_path_GCJ" | $SED "$delay_single_quote_subst"`'
1cf3d07d
SE
26209
26210LTCC='$LTCC'
26211LTCFLAGS='$LTCFLAGS'
26212compiler='$compiler_DEFAULT'
26213
43e02a8a
RW
26214# A function that is used when there is no print builtin or printf.
26215func_fallback_echo ()
26216{
26217 eval 'cat <<_LTECHO_EOF
26218\$1
26219_LTECHO_EOF'
26220}
26221
1cf3d07d 26222# Quote evaled strings.
43e02a8a
RW
26223for var in SHELL \
26224ECHO \
26225SED \
1cf3d07d
SE
26226GREP \
26227EGREP \
26228FGREP \
26229LD \
26230NM \
26231LN_S \
26232lt_SP2NL \
26233lt_NL2SP \
26234reload_flag \
0da7a284 26235OBJDUMP \
1cf3d07d
SE
26236deplibs_check_method \
26237file_magic_cmd \
26238AR \
26239AR_FLAGS \
26240STRIP \
26241RANLIB \
26242CC \
26243CFLAGS \
26244compiler \
26245lt_cv_sys_global_symbol_pipe \
26246lt_cv_sys_global_symbol_to_cdecl \
26247lt_cv_sys_global_symbol_to_c_name_address \
0da7a284 26248lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1cf3d07d
SE
26249lt_prog_compiler_no_builtin_flag \
26250lt_prog_compiler_wl \
26251lt_prog_compiler_pic \
26252lt_prog_compiler_static \
26253lt_cv_prog_compiler_c_o \
26254need_locks \
0da7a284
PG
26255DSYMUTIL \
26256NMEDIT \
26257LIPO \
26258OTOOL \
26259OTOOL64 \
1cf3d07d
SE
26260shrext_cmds \
26261export_dynamic_flag_spec \
26262whole_archive_flag_spec \
26263compiler_needs_object \
26264with_gnu_ld \
26265allow_undefined_flag \
26266no_undefined_flag \
26267hardcode_libdir_flag_spec \
26268hardcode_libdir_flag_spec_ld \
26269hardcode_libdir_separator \
26270fix_srcfile_path \
26271exclude_expsyms \
26272include_expsyms \
26273file_list_spec \
26274variables_saved_for_relink \
26275libname_spec \
26276library_names_spec \
26277soname_spec \
43e02a8a 26278install_override_mode \
1cf3d07d
SE
26279finish_eval \
26280old_striplib \
26281striplib \
0da7a284 26282compiler_lib_search_dirs \
1cf3d07d
SE
26283predep_objects \
26284postdep_objects \
26285predeps \
26286postdeps \
26287compiler_lib_search_path \
26288LD_CXX \
26289LD_GCJ \
43e02a8a
RW
26290reload_flag_CXX \
26291reload_flag_GCJ \
1cf3d07d
SE
26292compiler_CXX \
26293compiler_GCJ \
26294lt_prog_compiler_no_builtin_flag_CXX \
26295lt_prog_compiler_no_builtin_flag_GCJ \
26296lt_prog_compiler_wl_CXX \
26297lt_prog_compiler_wl_GCJ \
26298lt_prog_compiler_pic_CXX \
26299lt_prog_compiler_pic_GCJ \
26300lt_prog_compiler_static_CXX \
26301lt_prog_compiler_static_GCJ \
26302lt_cv_prog_compiler_c_o_CXX \
26303lt_cv_prog_compiler_c_o_GCJ \
26304export_dynamic_flag_spec_CXX \
26305export_dynamic_flag_spec_GCJ \
26306whole_archive_flag_spec_CXX \
26307whole_archive_flag_spec_GCJ \
26308compiler_needs_object_CXX \
26309compiler_needs_object_GCJ \
26310with_gnu_ld_CXX \
26311with_gnu_ld_GCJ \
26312allow_undefined_flag_CXX \
26313allow_undefined_flag_GCJ \
26314no_undefined_flag_CXX \
26315no_undefined_flag_GCJ \
26316hardcode_libdir_flag_spec_CXX \
26317hardcode_libdir_flag_spec_GCJ \
26318hardcode_libdir_flag_spec_ld_CXX \
26319hardcode_libdir_flag_spec_ld_GCJ \
26320hardcode_libdir_separator_CXX \
26321hardcode_libdir_separator_GCJ \
26322fix_srcfile_path_CXX \
26323fix_srcfile_path_GCJ \
26324exclude_expsyms_CXX \
26325exclude_expsyms_GCJ \
26326include_expsyms_CXX \
26327include_expsyms_GCJ \
26328file_list_spec_CXX \
26329file_list_spec_GCJ \
0da7a284
PG
26330compiler_lib_search_dirs_CXX \
26331compiler_lib_search_dirs_GCJ \
1cf3d07d
SE
26332predep_objects_CXX \
26333predep_objects_GCJ \
26334postdep_objects_CXX \
26335postdep_objects_GCJ \
26336predeps_CXX \
26337predeps_GCJ \
26338postdeps_CXX \
26339postdeps_GCJ \
26340compiler_lib_search_path_CXX \
26341compiler_lib_search_path_GCJ; do
43e02a8a 26342 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 26343 *[\\\\\\\`\\"\\\$]*)
43e02a8a 26344 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1cf3d07d
SE
26345 ;;
26346 *)
26347 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26348 ;;
26349 esac
26350done
26351
26352# Double-quote double-evaled strings.
26353for var in reload_cmds \
26354old_postinstall_cmds \
26355old_postuninstall_cmds \
26356old_archive_cmds \
26357extract_expsyms_cmds \
26358old_archive_from_new_cmds \
26359old_archive_from_expsyms_cmds \
26360archive_cmds \
26361archive_expsym_cmds \
26362module_cmds \
26363module_expsym_cmds \
26364export_symbols_cmds \
26365prelink_cmds \
26366postinstall_cmds \
26367postuninstall_cmds \
26368finish_cmds \
26369sys_lib_search_path_spec \
26370sys_lib_dlsearch_path_spec \
43e02a8a
RW
26371reload_cmds_CXX \
26372reload_cmds_GCJ \
1cf3d07d
SE
26373old_archive_cmds_CXX \
26374old_archive_cmds_GCJ \
26375old_archive_from_new_cmds_CXX \
26376old_archive_from_new_cmds_GCJ \
26377old_archive_from_expsyms_cmds_CXX \
26378old_archive_from_expsyms_cmds_GCJ \
26379archive_cmds_CXX \
26380archive_cmds_GCJ \
26381archive_expsym_cmds_CXX \
26382archive_expsym_cmds_GCJ \
26383module_cmds_CXX \
26384module_cmds_GCJ \
26385module_expsym_cmds_CXX \
26386module_expsym_cmds_GCJ \
26387export_symbols_cmds_CXX \
26388export_symbols_cmds_GCJ \
26389prelink_cmds_CXX \
26390prelink_cmds_GCJ; do
43e02a8a 26391 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 26392 *[\\\\\\\`\\"\\\$]*)
43e02a8a 26393 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1cf3d07d
SE
26394 ;;
26395 *)
26396 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26397 ;;
26398 esac
26399done
26400
1cf3d07d
SE
26401ac_aux_dir='$ac_aux_dir'
26402xsi_shell='$xsi_shell'
26403lt_shell_append='$lt_shell_append'
26404
26405# See if we are running on zsh, and set the options which allow our
26406# commands through without removal of \ escapes INIT.
26407if test -n "\${ZSH_VERSION+set}" ; then
26408 setopt NO_GLOB_SUBST
26409fi
26410
26411
26412 PACKAGE='$PACKAGE'
26413 VERSION='$VERSION'
26414 TIMESTAMP='$TIMESTAMP'
26415 RM='$RM'
26416 ofile='$ofile'
26417
26418
26419
26420
26421
26422
26423
1cf3d07d
SE
26424
26425_ACEOF
26426
5213506e 26427cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1cf3d07d 26428
5213506e 26429# Handling of arguments.
1cf3d07d
SE
26430for ac_config_target in $ac_config_targets
26431do
5213506e
RW
26432 case $ac_config_target in
26433 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
26434 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26435 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
26436 "gcj/libgcj-config.h") CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
26437 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26438 "include/platform.h") CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
26439 "java/io/natFile.cc") CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
26440 "java/lang/natConcreteProcess.cc") CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
26441 "java/net/natVMInetAddress.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
26442 "java/net/natVMNetworkInterface.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
26443 "gnu/java/net/natPlainSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
26444 "gnu/java/net/natPlainDatagramSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
26445 "gnu/java/nio/natVMPipe.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
26446 "gnu/java/nio/natVMSelector.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
26447 "gnu/java/nio/channels/natFileChannelImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
26448 "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" ;;
26449 "include/java-gc.h") CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
26450 "include/java-threads.h") CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
26451 "sysdep/locks.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
26452 "sysdep/backtrace.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
26453 "sysdep/descriptor.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
26454 "include/java-signal.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
26455 "include/java-signal-aux.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
26456 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26457 "libgcj.pc") CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
26458 "libgcj.spec") CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
26459 "libgcj-test.spec") CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
26460 "gcj/Makefile") CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
26461 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26462 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
26463 "contrib/aotcompile.py") CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
26464 "contrib/aot-compile") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
26465 "contrib/aot-compile-rpm") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
26466 "contrib/generate-cacerts.pl") CONFIG_FILES="$CONFIG_FILES contrib/generate-cacerts.pl" ;;
26467 "contrib/rebuild-gcj-db") CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
26468 "scripts/jar") CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
26469
26470 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1cf3d07d
SE
26471 esac
26472done
26473
5213506e 26474
1cf3d07d
SE
26475# If the user did not use the arguments to specify the items to instantiate,
26476# then the envvar interface is used. Set only those that are not.
26477# We use the long form for the default assignment because of an extremely
26478# bizarre bug on SunOS 4.1.3.
26479if $ac_need_defaults; then
26480 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26481 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26482 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26483 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26484fi
26485
26486# Have a temporary directory for convenience. Make it in the build tree
5213506e 26487# simply because there is no reason against having it here, and in addition,
1cf3d07d 26488# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
26489# Hook for its removal unless debugging.
26490# Note that there is a small window in which the directory will not be cleaned:
26491# after its creation but before its name has been assigned to `$tmp'.
1cf3d07d
SE
26492$debug ||
26493{
5213506e
RW
26494 tmp=
26495 trap 'exit_status=$?
26496 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26497' 0
26498 trap 'as_fn_exit 1' 1 2 13 15
26499}
26500# Create a (secure) tmp directory for tmp files.
26501
26502{
26503 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26504 test -n "$tmp" && test -d "$tmp"
26505} ||
26506{
26507 tmp=./conf$$-$RANDOM
26508 (umask 077 && mkdir "$tmp")
26509} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26510
26511# Set up the scripts for CONFIG_FILES section.
26512# No need to generate them if there are no CONFIG_FILES.
26513# This happens for instance with `./config.status config.h'.
26514if test -n "$CONFIG_FILES"; then
26515
26516
26517ac_cr=`echo X | tr X '\015'`
26518# On cygwin, bash can eat \r inside `` if the user requested igncr.
26519# But we know of no other shell where ac_cr would be empty at this
26520# point, so we can use a bashism as a fallback.
26521if test "x$ac_cr" = x; then
26522 eval ac_cr=\$\'\\r\'
26523fi
26524ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26525if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26526 ac_cs_awk_cr='\r'
26527else
26528 ac_cs_awk_cr=$ac_cr
26529fi
26530
26531echo 'BEGIN {' >"$tmp/subs1.awk" &&
26532_ACEOF
26533
26534
26535{
26536 echo "cat >conf$$subs.awk <<_ACEOF" &&
26537 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26538 echo "_ACEOF"
26539} >conf$$subs.sh ||
26540 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26541ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26542ac_delim='%!_!# '
26543for ac_last_try in false false false false false :; do
26544 . ./conf$$subs.sh ||
26545 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26546
26547 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26548 if test $ac_delim_n = $ac_delim_num; then
26549 break
26550 elif $ac_last_try; then
26551 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26552 else
26553 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26554 fi
26555done
26556rm -f conf$$subs.sh
26557
26558cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26559cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26560_ACEOF
26561sed -n '
26562h
26563s/^/S["/; s/!.*/"]=/
26564p
26565g
26566s/^[^!]*!//
26567:repl
26568t repl
26569s/'"$ac_delim"'$//
26570t delim
26571:nl
26572h
26573s/\(.\{148\}\).*/\1/
26574t more1
26575s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26576p
26577n
26578b repl
26579:more1
26580s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26581p
26582g
26583s/.\{148\}//
26584t nl
26585:delim
26586h
26587s/\(.\{148\}\).*/\1/
26588t more2
26589s/["\\]/\\&/g; s/^/"/; s/$/"/
26590p
26591b
26592:more2
26593s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26594p
26595g
26596s/.\{148\}//
26597t delim
26598' <conf$$subs.awk | sed '
26599/^[^""]/{
26600 N
26601 s/\n//
26602}
26603' >>$CONFIG_STATUS || ac_write_fail=1
26604rm -f conf$$subs.awk
26605cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26606_ACAWK
26607cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26608 for (key in S) S_is_set[key] = 1
26609 FS = "\a"
26610
26611}
26612{
26613 line = $ 0
26614 nfields = split(line, field, "@")
26615 substed = 0
26616 len = length(field[1])
26617 for (i = 2; i < nfields; i++) {
26618 key = field[i]
26619 keylen = length(key)
26620 if (S_is_set[key]) {
26621 value = S[key]
26622 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26623 len += length(value) + length(field[++i])
26624 substed = 1
26625 } else
26626 len += 1 + keylen
26627 }
26628
26629 print line
1cf3d07d
SE
26630}
26631
5213506e
RW
26632_ACAWK
26633_ACEOF
26634cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26635if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26636 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26637else
26638 cat
26639fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26640 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26641_ACEOF
26642
26643# VPATH may cause trouble with some makes, so we remove $(srcdir),
26644# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26645# trailing colons and then remove the whole line if VPATH becomes empty
26646# (actually we leave an empty line to preserve line numbers).
26647if test "x$srcdir" = x.; then
26648 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26649s/:*\$(srcdir):*/:/
26650s/:*\${srcdir}:*/:/
26651s/:*@srcdir@:*/:/
26652s/^\([^=]*=[ ]*\):*/\1/
26653s/:*$//
26654s/^[^=]*=[ ]*$//
26655}'
26656fi
26657
26658cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26659fi # test -n "$CONFIG_FILES"
26660
26661# Set up the scripts for CONFIG_HEADERS section.
26662# No need to generate them if there are no CONFIG_HEADERS.
26663# This happens for instance with `./config.status Makefile'.
26664if test -n "$CONFIG_HEADERS"; then
26665cat >"$tmp/defines.awk" <<\_ACAWK ||
26666BEGIN {
26667_ACEOF
26668
26669# Transform confdefs.h into an awk script `defines.awk', embedded as
26670# here-document in config.status, that substitutes the proper values into
26671# config.h.in to produce config.h.
26672
26673# Create a delimiter string that does not exist in confdefs.h, to ease
26674# handling of long lines.
26675ac_delim='%!_!# '
26676for ac_last_try in false false :; do
26677 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26678 if test -z "$ac_t"; then
26679 break
26680 elif $ac_last_try; then
26681 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26682 else
26683 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26684 fi
26685done
1cf3d07d 26686
5213506e
RW
26687# For the awk script, D is an array of macro values keyed by name,
26688# likewise P contains macro parameters if any. Preserve backslash
26689# newline sequences.
26690
26691ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26692sed -n '
26693s/.\{148\}/&'"$ac_delim"'/g
26694t rset
26695:rset
26696s/^[ ]*#[ ]*define[ ][ ]*/ /
26697t def
26698d
26699:def
26700s/\\$//
26701t bsnl
26702s/["\\]/\\&/g
26703s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26704D["\1"]=" \3"/p
26705s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26706d
26707:bsnl
26708s/["\\]/\\&/g
26709s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26710D["\1"]=" \3\\\\\\n"\\/p
26711t cont
26712s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26713t cont
26714d
26715:cont
26716n
26717s/.\{148\}/&'"$ac_delim"'/g
26718t clear
26719:clear
26720s/\\$//
26721t bsnlc
26722s/["\\]/\\&/g; s/^/"/; s/$/"/p
26723d
26724:bsnlc
26725s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26726b cont
26727' <confdefs.h | sed '
26728s/'"$ac_delim"'/"\\\
26729"/g' >>$CONFIG_STATUS || ac_write_fail=1
26730
26731cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26732 for (key in D) D_is_set[key] = 1
26733 FS = "\a"
1cf3d07d 26734}
5213506e
RW
26735/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26736 line = \$ 0
26737 split(line, arg, " ")
26738 if (arg[1] == "#") {
26739 defundef = arg[2]
26740 mac1 = arg[3]
26741 } else {
26742 defundef = substr(arg[1], 2)
26743 mac1 = arg[2]
26744 }
26745 split(mac1, mac2, "(") #)
26746 macro = mac2[1]
26747 prefix = substr(line, 1, index(line, defundef) - 1)
26748 if (D_is_set[macro]) {
26749 # Preserve the white space surrounding the "#".
26750 print prefix "define", macro P[macro] D[macro]
26751 next
26752 } else {
26753 # Replace #undef with comments. This is necessary, for example,
26754 # in the case of _POSIX_SOURCE, which is predefined and required
26755 # on some systems where configure will not decide to define it.
26756 if (defundef == "undef") {
26757 print "/*", prefix defundef, macro, "*/"
26758 next
26759 }
26760 }
26761}
26762{ print }
26763_ACAWK
1cf3d07d 26764_ACEOF
5213506e
RW
26765cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26766 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26767fi # test -n "$CONFIG_HEADERS"
1cf3d07d 26768
1cf3d07d 26769
5213506e
RW
26770eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
26771shift
26772for ac_tag
26773do
26774 case $ac_tag in
26775 :[FHLC]) ac_mode=$ac_tag; continue;;
26776 esac
26777 case $ac_mode$ac_tag in
26778 :[FHL]*:*);;
26779 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26780 :[FH]-) ac_tag=-:-;;
26781 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26782 esac
26783 ac_save_IFS=$IFS
26784 IFS=:
26785 set x $ac_tag
26786 IFS=$ac_save_IFS
26787 shift
26788 ac_file=$1
26789 shift
ade710a5 26790
5213506e
RW
26791 case $ac_mode in
26792 :L) ac_source=$1;;
26793 :[FH])
26794 ac_file_inputs=
26795 for ac_f
26796 do
26797 case $ac_f in
26798 -) ac_f="$tmp/stdin";;
26799 *) # Look for the file first in the build tree, then in the source tree
26800 # (if the path is not absolute). The absolute path cannot be DOS-style,
26801 # because $ac_f cannot contain `:'.
26802 test -f "$ac_f" ||
26803 case $ac_f in
26804 [\\/$]*) false;;
26805 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26806 esac ||
26807 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26808 esac
26809 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26810 as_fn_append ac_file_inputs " '$ac_f'"
26811 done
1cf3d07d 26812
5213506e
RW
26813 # Let's still pretend it is `configure' which instantiates (i.e., don't
26814 # use $as_me), people would be surprised to read:
26815 # /* config.h. Generated by config.status. */
26816 configure_input='Generated from '`
26817 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26818 `' by configure.'
26819 if test x"$ac_file" != x-; then
26820 configure_input="$ac_file. $configure_input"
26821 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26822$as_echo "$as_me: creating $ac_file" >&6;}
1cf3d07d 26823 fi
5213506e
RW
26824 # Neutralize special characters interpreted by sed in replacement strings.
26825 case $configure_input in #(
26826 *\&* | *\|* | *\\* )
26827 ac_sed_conf_input=`$as_echo "$configure_input" |
26828 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26829 *) ac_sed_conf_input=$configure_input;;
26830 esac
1cf3d07d 26831
5213506e
RW
26832 case $ac_tag in
26833 *:-:* | *:-) cat >"$tmp/stdin" \
26834 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26835 esac
26836 ;;
1cf3d07d
SE
26837 esac
26838
5213506e 26839 ac_dir=`$as_dirname -- "$ac_file" ||
1cf3d07d
SE
26840$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26841 X"$ac_file" : 'X\(//\)[^/]' \| \
26842 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
26843 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26844$as_echo X"$ac_file" |
26845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26846 s//\1/
26847 q
26848 }
26849 /^X\(\/\/\)[^/].*/{
26850 s//\1/
26851 q
26852 }
26853 /^X\(\/\/\)$/{
26854 s//\1/
26855 q
26856 }
26857 /^X\(\/\).*/{
26858 s//\1/
26859 q
26860 }
26861 s/.*/./; q'`
26862 as_dir="$ac_dir"; as_fn_mkdir_p
1cf3d07d
SE
26863 ac_builddir=.
26864
5213506e
RW
26865case "$ac_dir" in
26866.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26867*)
26868 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26869 # A ".." for each directory in $ac_dir_suffix.
26870 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26871 case $ac_top_builddir_sub in
26872 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26873 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26874 esac ;;
26875esac
26876ac_abs_top_builddir=$ac_pwd
26877ac_abs_builddir=$ac_pwd$ac_dir_suffix
26878# for backward compatibility:
26879ac_top_builddir=$ac_top_build_prefix
1cf3d07d
SE
26880
26881case $srcdir in
5213506e 26882 .) # We are building in place.
1cf3d07d 26883 ac_srcdir=.
5213506e
RW
26884 ac_top_srcdir=$ac_top_builddir_sub
26885 ac_abs_top_srcdir=$ac_pwd ;;
26886 [\\/]* | ?:[\\/]* ) # Absolute name.
1cf3d07d 26887 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
26888 ac_top_srcdir=$srcdir
26889 ac_abs_top_srcdir=$srcdir ;;
26890 *) # Relative name.
26891 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26892 ac_top_srcdir=$ac_top_build_prefix$srcdir
26893 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1cf3d07d 26894esac
5213506e 26895ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1cf3d07d 26896
1cf3d07d 26897
5213506e
RW
26898 case $ac_mode in
26899 :F)
26900 #
26901 # CONFIG_FILE
26902 #
1cf3d07d
SE
26903
26904 case $INSTALL in
26905 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 26906 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1cf3d07d 26907 esac
5213506e
RW
26908 ac_MKDIR_P=$MKDIR_P
26909 case $MKDIR_P in
26910 [\\/$]* | ?:[\\/]* ) ;;
26911 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26912 esac
26913_ACEOF
1cf3d07d 26914
5213506e
RW
26915cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26916# If the template does not know about datarootdir, expand it.
26917# FIXME: This hack should be removed a few years after 2.60.
26918ac_datarootdir_hack=; ac_datarootdir_seen=
26919ac_sed_dataroot='
26920/datarootdir/ {
26921 p
26922 q
26923}
26924/@datadir@/p
26925/@docdir@/p
26926/@infodir@/p
26927/@localedir@/p
26928/@mandir@/p'
26929case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26930*datarootdir*) ac_datarootdir_seen=yes;;
26931*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26933$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26934_ACEOF
26935cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26936 ac_datarootdir_hack='
26937 s&@datadir@&$datadir&g
26938 s&@docdir@&$docdir&g
26939 s&@infodir@&$infodir&g
26940 s&@localedir@&$localedir&g
26941 s&@mandir@&$mandir&g
26942 s&\\\${datarootdir}&$datarootdir&g' ;;
26943esac
1cf3d07d 26944_ACEOF
5213506e
RW
26945
26946# Neutralize VPATH when `$srcdir' = `.'.
26947# Shell code in configure.ac might set extrasub.
26948# FIXME: do we really want to maintain this feature?
26949cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26950ac_sed_extra="$ac_vpsub
1cf3d07d
SE
26951$extrasub
26952_ACEOF
5213506e 26953cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1cf3d07d
SE
26954:t
26955/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
26956s|@configure_input@|$ac_sed_conf_input|;t t
26957s&@top_builddir@&$ac_top_builddir_sub&;t t
26958s&@top_build_prefix@&$ac_top_build_prefix&;t t
26959s&@srcdir@&$ac_srcdir&;t t
26960s&@abs_srcdir@&$ac_abs_srcdir&;t t
26961s&@top_srcdir@&$ac_top_srcdir&;t t
26962s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26963s&@builddir@&$ac_builddir&;t t
26964s&@abs_builddir@&$ac_abs_builddir&;t t
26965s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26966s&@INSTALL@&$ac_INSTALL&;t t
26967s&@MKDIR_P@&$ac_MKDIR_P&;t t
26968$ac_datarootdir_hack
26969"
26970eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26971 || as_fn_error "could not create $ac_file" "$LINENO" 5
26972
26973test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26974 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26975 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26977which seems to be undefined. Please make sure it is defined." >&5
26978$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26979which seems to be undefined. Please make sure it is defined." >&2;}
26980
26981 rm -f "$tmp/stdin"
1cf3d07d 26982 case $ac_file in
5213506e
RW
26983 -) cat "$tmp/out" && rm -f "$tmp/out";;
26984 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26985 esac \
26986 || as_fn_error "could not create $ac_file" "$LINENO" 5
26987 ;;
26988 :H)
26989 #
26990 # CONFIG_HEADER
26991 #
1cf3d07d 26992 if test x"$ac_file" != x-; then
5213506e
RW
26993 {
26994 $as_echo "/* $configure_input */" \
26995 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26996 } >"$tmp/config.h" \
26997 || as_fn_error "could not create $ac_file" "$LINENO" 5
26998 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26999 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27000$as_echo "$as_me: $ac_file is unchanged" >&6;}
1cf3d07d 27001 else
5213506e
RW
27002 rm -f "$ac_file"
27003 mv "$tmp/config.h" "$ac_file" \
27004 || as_fn_error "could not create $ac_file" "$LINENO" 5
1cf3d07d
SE
27005 fi
27006 else
5213506e
RW
27007 $as_echo "/* $configure_input */" \
27008 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27009 || as_fn_error "could not create -" "$LINENO" 5
1cf3d07d 27010 fi
5213506e
RW
27011# Compute "$ac_file"'s index in $config_headers.
27012_am_arg="$ac_file"
1cf3d07d
SE
27013_am_stamp_count=1
27014for _am_header in $config_headers :; do
27015 case $_am_header in
5213506e 27016 $_am_arg | $_am_arg:* )
1cf3d07d
SE
27017 break ;;
27018 * )
27019 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27020 esac
27021done
5213506e
RW
27022echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27023$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27024 X"$_am_arg" : 'X\(//\)[^/]' \| \
27025 X"$_am_arg" : 'X\(//\)$' \| \
27026 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27027$as_echo X"$_am_arg" |
27028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27029 s//\1/
27030 q
27031 }
27032 /^X\(\/\/\)[^/].*/{
27033 s//\1/
27034 q
27035 }
27036 /^X\(\/\/\)$/{
27037 s//\1/
27038 q
27039 }
27040 /^X\(\/\).*/{
27041 s//\1/
27042 q
27043 }
27044 s/.*/./; q'`/stamp-h$_am_stamp_count
27045 ;;
27046 :L)
27047 #
27048 # CONFIG_LINK
27049 #
1cf3d07d 27050
5213506e
RW
27051 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
27052 :
1cf3d07d 27053 else
5213506e
RW
27054 # Prefer the file from the source tree if names are identical.
27055 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
27056 ac_source=$srcdir/$ac_source
27057 fi
1cf3d07d 27058
5213506e
RW
27059 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
27060$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
1cf3d07d 27061
5213506e
RW
27062 if test ! -r "$ac_source"; then
27063 as_fn_error "$ac_source: file not found" "$LINENO" 5
27064 fi
27065 rm -f "$ac_file"
1cf3d07d 27066
5213506e
RW
27067 # Try a relative symlink, then a hard link, then a copy.
27068 case $srcdir in
27069 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
27070 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
27071 esac
27072 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
27073 ln "$ac_source" "$ac_file" 2>/dev/null ||
27074 cp -p "$ac_source" "$ac_file" ||
27075 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
27076 fi
27077 ;;
27078 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27079$as_echo "$as_me: executing $ac_file commands" >&6;}
27080 ;;
1cf3d07d
SE
27081 esac
27082
ee9dd372 27083
5213506e
RW
27084 case $ac_file$ac_mode in
27085 "default-1":C)
1cf3d07d
SE
27086# Only add multilib support code if we just rebuilt the top-level
27087# Makefile.
27088case " $CONFIG_FILES " in
27089 *" Makefile "*)
27090 ac_file=Makefile . ${multi_basedir}/config-ml.in
27091 ;;
27092esac ;;
5213506e
RW
27093 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27094 # Autoconf 2.62 quotes --file arguments for eval, but not when files
27095 # are listed without --file. Let's play safe and only enable the eval
27096 # if we detect the quoting.
27097 case $CONFIG_FILES in
27098 *\'*) eval set x "$CONFIG_FILES" ;;
27099 *) set x $CONFIG_FILES ;;
27100 esac
27101 shift
27102 for mf
27103 do
27104 # Strip MF so we end up with the name of the file.
27105 mf=`echo "$mf" | sed -e 's/:.*$//'`
27106 # Check whether this is an Automake generated Makefile or not.
27107 # We used to match only the files named `Makefile.in', but
27108 # some people rename them; so instead we look at the file content.
27109 # Grep'ing the first line is not enough: some people post-process
27110 # each Makefile.in and add a new line on top of each file to say so.
27111 # Grep'ing the whole file is not good either: AIX grep has a line
27112 # limit of 2048, but all sed's we know have understand at least 4000.
27113 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27114 dirpart=`$as_dirname -- "$mf" ||
1cf3d07d
SE
27115$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27116 X"$mf" : 'X\(//\)[^/]' \| \
27117 X"$mf" : 'X\(//\)$' \| \
5213506e
RW
27118 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27119$as_echo X"$mf" |
27120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27121 s//\1/
27122 q
27123 }
27124 /^X\(\/\/\)[^/].*/{
27125 s//\1/
27126 q
27127 }
27128 /^X\(\/\/\)$/{
27129 s//\1/
27130 q
27131 }
27132 /^X\(\/\).*/{
27133 s//\1/
27134 q
27135 }
27136 s/.*/./; q'`
27137 else
27138 continue
27139 fi
27140 # Extract the definition of DEPDIR, am__include, and am__quote
27141 # from the Makefile without running `make'.
27142 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27143 test -z "$DEPDIR" && continue
27144 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27145 test -z "am__include" && continue
27146 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27147 # When using ansi2knr, U may be empty or an underscore; expand it
27148 U=`sed -n 's/^U = //p' < "$mf"`
27149 # Find all dependency output files, they are included files with
27150 # $(DEPDIR) in their names. We invoke sed twice because it is the
27151 # simplest approach to changing $(DEPDIR) to its actual value in the
27152 # expansion.
27153 for file in `sed -n "
27154 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27155 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27156 # Make sure the directory exists.
27157 test -f "$dirpart/$file" && continue
27158 fdir=`$as_dirname -- "$file" ||
1cf3d07d
SE
27159$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27160 X"$file" : 'X\(//\)[^/]' \| \
27161 X"$file" : 'X\(//\)$' \| \
5213506e
RW
27162 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27163$as_echo X"$file" |
27164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27165 s//\1/
27166 q
27167 }
27168 /^X\(\/\/\)[^/].*/{
27169 s//\1/
27170 q
27171 }
27172 /^X\(\/\/\)$/{
27173 s//\1/
27174 q
27175 }
27176 /^X\(\/\).*/{
27177 s//\1/
27178 q
27179 }
27180 s/.*/./; q'`
27181 as_dir=$dirpart/$fdir; as_fn_mkdir_p
27182 # echo "creating $dirpart/$file"
27183 echo '# dummy' > "$dirpart/$file"
ed698112 27184 done
1cf3d07d 27185 done
5213506e 27186}
1cf3d07d 27187 ;;
5213506e 27188 "libtool":C)
1cf3d07d
SE
27189
27190 # See if we are running on zsh, and set the options which allow our
27191 # commands through without removal of \ escapes.
27192 if test -n "${ZSH_VERSION+set}" ; then
27193 setopt NO_GLOB_SUBST
27194 fi
27195
27196 cfgfile="${ofile}T"
27197 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27198 $RM "$cfgfile"
27199
27200 cat <<_LT_EOF >> "$cfgfile"
27201#! $SHELL
27202
27203# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
0da7a284 27204# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1cf3d07d
SE
27205# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27206# NOTE: Changes made to this file will be lost: look at ltmain.sh.
27207#
0da7a284 27208# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43e02a8a 27209# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
0da7a284 27210# Written by Gordon Matzigkeit, 1996
1cf3d07d 27211#
0da7a284 27212# This file is part of GNU Libtool.
1cf3d07d 27213#
0da7a284
PG
27214# GNU Libtool is free software; you can redistribute it and/or
27215# modify it under the terms of the GNU General Public License as
27216# published by the Free Software Foundation; either version 2 of
27217# the License, or (at your option) any later version.
1cf3d07d 27218#
0da7a284
PG
27219# As a special exception to the GNU General Public License,
27220# if you distribute this file as part of a program or library that
27221# is built using GNU Libtool, you may include this file under the
27222# same distribution terms that you use for the rest of that program.
1cf3d07d 27223#
0da7a284
PG
27224# GNU Libtool is distributed in the hope that it will be useful,
27225# but WITHOUT ANY WARRANTY; without even the implied warranty of
27226# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27227# GNU General Public License for more details.
1cf3d07d 27228#
0da7a284
PG
27229# You should have received a copy of the GNU General Public License
27230# along with GNU Libtool; see the file COPYING. If not, a copy
27231# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27232# obtained by writing to the Free Software Foundation, Inc.,
27233# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1cf3d07d
SE
27234
27235
27236# The names of the tagged configurations supported by this script.
27237available_tags="CXX GCJ "
27238
27239# ### BEGIN LIBTOOL CONFIG
27240
27241# Which release of libtool.m4 was used?
27242macro_version=$macro_version
27243macro_revision=$macro_revision
27244
27245# Whether or not to build shared libraries.
27246build_libtool_libs=$enable_shared
27247
27248# Whether or not to build static libraries.
27249build_old_libs=$enable_static
27250
27251# What type of objects to build.
27252pic_mode=$pic_mode
27253
27254# Whether or not to optimize for fast installation.
27255fast_install=$enable_fast_install
27256
43e02a8a
RW
27257# Shell to use when invoking shell scripts.
27258SHELL=$lt_SHELL
27259
27260# An echo program that protects backslashes.
27261ECHO=$lt_ECHO
27262
1cf3d07d
SE
27263# The host system.
27264host_alias=$host_alias
27265host=$host
27266host_os=$host_os
27267
27268# The build system.
27269build_alias=$build_alias
27270build=$build
27271build_os=$build_os
27272
27273# A sed program that does not truncate output.
27274SED=$lt_SED
27275
27276# Sed that helps us avoid accidentally triggering echo(1) options like -n.
27277Xsed="\$SED -e 1s/^X//"
27278
27279# A grep program that handles long lines.
27280GREP=$lt_GREP
27281
27282# An ERE matcher.
27283EGREP=$lt_EGREP
27284
27285# A literal string matcher.
27286FGREP=$lt_FGREP
27287
27288# A BSD- or MS-compatible name lister.
27289NM=$lt_NM
27290
27291# Whether we need soft or hard links.
27292LN_S=$lt_LN_S
27293
27294# What is the maximum length of a command?
27295max_cmd_len=$max_cmd_len
27296
27297# Object file suffix (normally "o").
27298objext=$ac_objext
27299
27300# Executable file suffix (normally "").
27301exeext=$exeext
27302
27303# whether the shell understands "unset".
27304lt_unset=$lt_unset
27305
27306# turn spaces into newlines.
27307SP2NL=$lt_lt_SP2NL
27308
27309# turn newlines into spaces.
27310NL2SP=$lt_lt_NL2SP
27311
0da7a284
PG
27312# An object symbol dumper.
27313OBJDUMP=$lt_OBJDUMP
27314
1cf3d07d
SE
27315# Method to check whether dependent libraries are shared objects.
27316deplibs_check_method=$lt_deplibs_check_method
27317
27318# Command to use when deplibs_check_method == "file_magic".
27319file_magic_cmd=$lt_file_magic_cmd
27320
27321# The archiver.
27322AR=$lt_AR
27323AR_FLAGS=$lt_AR_FLAGS
27324
27325# A symbol stripping program.
27326STRIP=$lt_STRIP
27327
27328# Commands used to install an old-style archive.
27329RANLIB=$lt_RANLIB
27330old_postinstall_cmds=$lt_old_postinstall_cmds
27331old_postuninstall_cmds=$lt_old_postuninstall_cmds
27332
43e02a8a
RW
27333# Whether to use a lock for old archive extraction.
27334lock_old_archive_extraction=$lock_old_archive_extraction
27335
1cf3d07d
SE
27336# A C compiler.
27337LTCC=$lt_CC
27338
27339# LTCC compiler flags.
27340LTCFLAGS=$lt_CFLAGS
27341
27342# Take the output of nm and produce a listing of raw symbols and C names.
27343global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27344
27345# Transform the output of nm in a proper C declaration.
27346global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27347
27348# Transform the output of nm in a C name address pair.
27349global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27350
0da7a284
PG
27351# Transform the output of nm in a C name address pair when lib prefix is needed.
27352global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27353
1cf3d07d
SE
27354# The name of the directory that contains temporary libtool files.
27355objdir=$objdir
27356
1cf3d07d
SE
27357# Used to examine libraries when file_magic_cmd begins with "file".
27358MAGIC_CMD=$MAGIC_CMD
27359
27360# Must we lock files when doing compilation?
27361need_locks=$lt_need_locks
27362
0da7a284
PG
27363# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27364DSYMUTIL=$lt_DSYMUTIL
27365
27366# Tool to change global to local symbols on Mac OS X.
27367NMEDIT=$lt_NMEDIT
27368
27369# Tool to manipulate fat objects and archives on Mac OS X.
27370LIPO=$lt_LIPO
27371
27372# ldd/readelf like tool for Mach-O binaries on Mac OS X.
27373OTOOL=$lt_OTOOL
27374
27375# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27376OTOOL64=$lt_OTOOL64
27377
1cf3d07d
SE
27378# Old archive suffix (normally "a").
27379libext=$libext
27380
27381# Shared library suffix (normally ".so").
27382shrext_cmds=$lt_shrext_cmds
27383
27384# The commands to extract the exported symbol list from a shared archive.
27385extract_expsyms_cmds=$lt_extract_expsyms_cmds
27386
27387# Variables whose values should be saved in libtool wrapper scripts and
27388# restored at link time.
27389variables_saved_for_relink=$lt_variables_saved_for_relink
27390
27391# Do we need the "lib" prefix for modules?
27392need_lib_prefix=$need_lib_prefix
27393
27394# Do we need a version for libraries?
27395need_version=$need_version
27396
27397# Library versioning type.
27398version_type=$version_type
27399
27400# Shared library runtime path variable.
27401runpath_var=$runpath_var
27402
27403# Shared library path variable.
27404shlibpath_var=$shlibpath_var
27405
27406# Is shlibpath searched before the hard-coded library search path?
27407shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27408
27409# Format of library name prefix.
27410libname_spec=$lt_libname_spec
27411
27412# List of archive names. First name is the real one, the rest are links.
27413# The last name is the one that the linker finds with -lNAME
27414library_names_spec=$lt_library_names_spec
27415
27416# The coded name of the library, if different from the real name.
27417soname_spec=$lt_soname_spec
27418
43e02a8a
RW
27419# Permission mode override for installation of shared libraries.
27420install_override_mode=$lt_install_override_mode
27421
1cf3d07d
SE
27422# Command to use after installation of a shared archive.
27423postinstall_cmds=$lt_postinstall_cmds
27424
27425# Command to use after uninstallation of a shared archive.
27426postuninstall_cmds=$lt_postuninstall_cmds
27427
27428# Commands used to finish a libtool library installation in a directory.
27429finish_cmds=$lt_finish_cmds
27430
27431# As "finish_cmds", except a single script fragment to be evaled but
27432# not shown.
27433finish_eval=$lt_finish_eval
27434
27435# Whether we should hardcode library paths into libraries.
27436hardcode_into_libs=$hardcode_into_libs
27437
27438# Compile-time system search path for libraries.
27439sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27440
27441# Run-time system search path for libraries.
27442sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27443
27444# Whether dlopen is supported.
27445dlopen_support=$enable_dlopen
27446
27447# Whether dlopen of programs is supported.
27448dlopen_self=$enable_dlopen_self
27449
27450# Whether dlopen of statically linked programs is supported.
27451dlopen_self_static=$enable_dlopen_self_static
27452
27453# Commands to strip libraries.
27454old_striplib=$lt_old_striplib
27455striplib=$lt_striplib
27456
27457
27458# The linker used to build libraries.
27459LD=$lt_LD
27460
43e02a8a
RW
27461# How to create reloadable object files.
27462reload_flag=$lt_reload_flag
27463reload_cmds=$lt_reload_cmds
27464
1cf3d07d
SE
27465# Commands used to build an old-style archive.
27466old_archive_cmds=$lt_old_archive_cmds
27467
27468# A language specific compiler.
27469CC=$lt_compiler
27470
27471# Is the compiler the GNU compiler?
27472with_gcc=$GCC
27473
27474# Compiler flag to turn off builtin functions.
27475no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27476
27477# How to pass a linker flag through the compiler.
27478wl=$lt_lt_prog_compiler_wl
27479
27480# Additional compiler flags for building library objects.
27481pic_flag=$lt_lt_prog_compiler_pic
27482
27483# Compiler flag to prevent dynamic linking.
27484link_static_flag=$lt_lt_prog_compiler_static
27485
27486# Does compiler simultaneously support -c and -o options?
27487compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27488
27489# Whether or not to add -lc for building shared libraries.
27490build_libtool_need_lc=$archive_cmds_need_lc
27491
27492# Whether or not to disallow shared libs when runtime libs are static.
27493allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27494
27495# Compiler flag to allow reflexive dlopens.
27496export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27497
27498# Compiler flag to generate shared objects directly from archives.
27499whole_archive_flag_spec=$lt_whole_archive_flag_spec
27500
27501# Whether the compiler copes with passing no objects directly.
27502compiler_needs_object=$lt_compiler_needs_object
27503
27504# Create an old-style archive from a shared archive.
27505old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27506
27507# Create a temporary old-style archive to link instead of a shared archive.
27508old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27509
27510# Commands used to build a shared archive.
27511archive_cmds=$lt_archive_cmds
27512archive_expsym_cmds=$lt_archive_expsym_cmds
27513
27514# Commands used to build a loadable module if different from building
27515# a shared archive.
27516module_cmds=$lt_module_cmds
27517module_expsym_cmds=$lt_module_expsym_cmds
27518
27519# Whether we are building with GNU ld or not.
27520with_gnu_ld=$lt_with_gnu_ld
27521
27522# Flag that allows shared libraries with undefined symbols to be built.
27523allow_undefined_flag=$lt_allow_undefined_flag
27524
27525# Flag that enforces no undefined symbols.
27526no_undefined_flag=$lt_no_undefined_flag
27527
27528# Flag to hardcode \$libdir into a binary during linking.
27529# This must work even if \$libdir does not exist
27530hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27531
27532# If ld is used when linking, flag to hardcode \$libdir into a binary
27533# during linking. This must work even if \$libdir does not exist.
27534hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27535
27536# Whether we need a single "-rpath" flag with a separated argument.
27537hardcode_libdir_separator=$lt_hardcode_libdir_separator
27538
27539# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27540# DIR into the resulting binary.
27541hardcode_direct=$hardcode_direct
27542
27543# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27544# DIR into the resulting binary and the resulting library dependency is
27545# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27546# library is relocated.
27547hardcode_direct_absolute=$hardcode_direct_absolute
27548
27549# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27550# into the resulting binary.
27551hardcode_minus_L=$hardcode_minus_L
27552
27553# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27554# into the resulting binary.
27555hardcode_shlibpath_var=$hardcode_shlibpath_var
27556
27557# Set to "yes" if building a shared library automatically hardcodes DIR
27558# into the library and all subsequent libraries and executables linked
27559# against it.
27560hardcode_automatic=$hardcode_automatic
27561
27562# Set to yes if linker adds runtime paths of dependent libraries
27563# to runtime path list.
27564inherit_rpath=$inherit_rpath
27565
27566# Whether libtool must link a program against all its dependency libraries.
27567link_all_deplibs=$link_all_deplibs
27568
27569# Fix the shell variable \$srcfile for the compiler.
27570fix_srcfile_path=$lt_fix_srcfile_path
27571
27572# Set to "yes" if exported symbols are required.
27573always_export_symbols=$always_export_symbols
27574
27575# The commands to list exported symbols.
27576export_symbols_cmds=$lt_export_symbols_cmds
27577
27578# Symbols that should not be listed in the preloaded symbols.
27579exclude_expsyms=$lt_exclude_expsyms
27580
27581# Symbols that must always be exported.
27582include_expsyms=$lt_include_expsyms
27583
27584# Commands necessary for linking programs (against libraries) with templates.
27585prelink_cmds=$lt_prelink_cmds
27586
27587# Specify filename containing input files.
27588file_list_spec=$lt_file_list_spec
27589
27590# How to hardcode a shared library path into an executable.
27591hardcode_action=$hardcode_action
27592
0da7a284
PG
27593# The directories searched by this compiler when creating a shared library.
27594compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27595
1cf3d07d
SE
27596# Dependencies to place before and after the objects being linked to
27597# create a shared library.
27598predep_objects=$lt_predep_objects
27599postdep_objects=$lt_postdep_objects
27600predeps=$lt_predeps
27601postdeps=$lt_postdeps
27602
27603# The library search path used internally by the compiler when linking
27604# a shared library.
27605compiler_lib_search_path=$lt_compiler_lib_search_path
27606
27607# ### END LIBTOOL CONFIG
27608
27609_LT_EOF
27610
27611 case $host_os in
27612 aix3*)
27613 cat <<\_LT_EOF >> "$cfgfile"
27614# AIX sometimes has problems with the GCC collect2 program. For some
27615# reason, if we set the COLLECT_NAMES environment variable, the problems
27616# vanish in a puff of smoke.
27617if test "X${COLLECT_NAMES+set}" != Xset; then
27618 COLLECT_NAMES=
27619 export COLLECT_NAMES
27620fi
27621_LT_EOF
27622 ;;
27623 esac
27624
27625
27626ltmain="$ac_aux_dir/ltmain.sh"
27627
27628
27629 # We use sed instead of cat because bash on DJGPP gets confused if
27630 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27631 # text mode, it properly converts lines to CR/LF. This bash problem
27632 # is reportedly fixed, but why not run on old versions too?
27633 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27634 || (rm -f "$cfgfile"; exit 1)
27635
27636 case $xsi_shell in
27637 yes)
27638 cat << \_LT_EOF >> "$cfgfile"
0da7a284 27639
1cf3d07d
SE
27640# func_dirname file append nondir_replacement
27641# Compute the dirname of FILE. If nonempty, add APPEND to the result,
27642# otherwise set result to NONDIR_REPLACEMENT.
27643func_dirname ()
27644{
27645 case ${1} in
27646 */*) func_dirname_result="${1%/*}${2}" ;;
27647 * ) func_dirname_result="${3}" ;;
27648 esac
27649}
27650
27651# func_basename file
27652func_basename ()
27653{
27654 func_basename_result="${1##*/}"
27655}
27656
0da7a284
PG
27657# func_dirname_and_basename file append nondir_replacement
27658# perform func_basename and func_dirname in a single function
27659# call:
27660# dirname: Compute the dirname of FILE. If nonempty,
27661# add APPEND to the result, otherwise set result
27662# to NONDIR_REPLACEMENT.
27663# value returned in "$func_dirname_result"
27664# basename: Compute filename of FILE.
27665# value retuned in "$func_basename_result"
27666# Implementation must be kept synchronized with func_dirname
27667# and func_basename. For efficiency, we do not delegate to
27668# those functions but instead duplicate the functionality here.
27669func_dirname_and_basename ()
27670{
27671 case ${1} in
27672 */*) func_dirname_result="${1%/*}${2}" ;;
27673 * ) func_dirname_result="${3}" ;;
27674 esac
27675 func_basename_result="${1##*/}"
27676}
27677
1cf3d07d
SE
27678# func_stripname prefix suffix name
27679# strip PREFIX and SUFFIX off of NAME.
27680# PREFIX and SUFFIX must not contain globbing or regex special
27681# characters, hashes, percent signs, but SUFFIX may contain a leading
27682# dot (in which case that matches only a dot).
27683func_stripname ()
27684{
27685 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27686 # positional parameters, so assign one to ordinary parameter first.
27687 func_stripname_result=${3}
27688 func_stripname_result=${func_stripname_result#"${1}"}
27689 func_stripname_result=${func_stripname_result%"${2}"}
27690}
27691
27692# func_opt_split
27693func_opt_split ()
27694{
27695 func_opt_split_opt=${1%%=*}
27696 func_opt_split_arg=${1#*=}
27697}
27698
27699# func_lo2o object
27700func_lo2o ()
27701{
27702 case ${1} in
27703 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27704 *) func_lo2o_result=${1} ;;
27705 esac
27706}
0da7a284
PG
27707
27708# func_xform libobj-or-source
27709func_xform ()
27710{
27711 func_xform_result=${1%.*}.lo
27712}
27713
27714# func_arith arithmetic-term...
27715func_arith ()
27716{
27717 func_arith_result=$(( $* ))
27718}
27719
27720# func_len string
27721# STRING may not start with a hyphen.
27722func_len ()
27723{
27724 func_len_result=${#1}
27725}
27726
1cf3d07d
SE
27727_LT_EOF
27728 ;;
27729 *) # Bourne compatible functions.
27730 cat << \_LT_EOF >> "$cfgfile"
0da7a284 27731
1cf3d07d
SE
27732# func_dirname file append nondir_replacement
27733# Compute the dirname of FILE. If nonempty, add APPEND to the result,
27734# otherwise set result to NONDIR_REPLACEMENT.
27735func_dirname ()
27736{
27737 # Extract subdirectory from the argument.
43e02a8a 27738 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
1cf3d07d
SE
27739 if test "X$func_dirname_result" = "X${1}"; then
27740 func_dirname_result="${3}"
27741 else
27742 func_dirname_result="$func_dirname_result${2}"
27743 fi
27744}
27745
27746# func_basename file
27747func_basename ()
27748{
43e02a8a 27749 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
1cf3d07d
SE
27750}
27751
0da7a284 27752
1cf3d07d
SE
27753# func_stripname prefix suffix name
27754# strip PREFIX and SUFFIX off of NAME.
27755# PREFIX and SUFFIX must not contain globbing or regex special
27756# characters, hashes, percent signs, but SUFFIX may contain a leading
27757# dot (in which case that matches only a dot).
27758# func_strip_suffix prefix name
27759func_stripname ()
27760{
27761 case ${2} in
43e02a8a
RW
27762 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
27763 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
1cf3d07d
SE
27764 esac
27765}
27766
27767# sed scripts:
27768my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27769my_sed_long_arg='1s/^-[^=]*=//'
ed698112 27770
1cf3d07d
SE
27771# func_opt_split
27772func_opt_split ()
27773{
43e02a8a
RW
27774 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
27775 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
1cf3d07d 27776}
ee9dd372 27777
1cf3d07d
SE
27778# func_lo2o object
27779func_lo2o ()
27780{
43e02a8a 27781 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
1cf3d07d 27782}
0da7a284
PG
27783
27784# func_xform libobj-or-source
27785func_xform ()
27786{
43e02a8a 27787 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
0da7a284
PG
27788}
27789
27790# func_arith arithmetic-term...
27791func_arith ()
27792{
27793 func_arith_result=`expr "$@"`
27794}
27795
27796# func_len string
27797# STRING may not start with a hyphen.
27798func_len ()
27799{
27800 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27801}
27802
1cf3d07d 27803_LT_EOF
ed698112 27804esac
ee9dd372 27805
1cf3d07d
SE
27806case $lt_shell_append in
27807 yes)
27808 cat << \_LT_EOF >> "$cfgfile"
ee9dd372 27809
1cf3d07d
SE
27810# func_append var value
27811# Append VALUE to the end of shell variable VAR.
27812func_append ()
27813{
27814 eval "$1+=\$2"
27815}
27816_LT_EOF
27817 ;;
27818 *)
27819 cat << \_LT_EOF >> "$cfgfile"
ed698112 27820
1cf3d07d
SE
27821# func_append var value
27822# Append VALUE to the end of shell variable VAR.
27823func_append ()
27824{
27825 eval "$1=\$$1\$2"
27826}
0da7a284 27827
1cf3d07d
SE
27828_LT_EOF
27829 ;;
ee9dd372
TT
27830 esac
27831
ade710a5 27832
1cf3d07d
SE
27833 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27834 || (rm -f "$cfgfile"; exit 1)
ade710a5 27835
1cf3d07d
SE
27836 mv -f "$cfgfile" "$ofile" ||
27837 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27838 chmod +x "$ofile"
ade710a5 27839
ade710a5 27840
1cf3d07d 27841 cat <<_LT_EOF >> "$ofile"
ade710a5 27842
1cf3d07d 27843# ### BEGIN LIBTOOL TAG CONFIG: CXX
ade710a5 27844
1cf3d07d
SE
27845# The linker used to build libraries.
27846LD=$lt_LD_CXX
ade710a5 27847
43e02a8a
RW
27848# How to create reloadable object files.
27849reload_flag=$lt_reload_flag_CXX
27850reload_cmds=$lt_reload_cmds_CXX
27851
1cf3d07d
SE
27852# Commands used to build an old-style archive.
27853old_archive_cmds=$lt_old_archive_cmds_CXX
27854
27855# A language specific compiler.
27856CC=$lt_compiler_CXX
27857
27858# Is the compiler the GNU compiler?
27859with_gcc=$GCC_CXX
27860
27861# Compiler flag to turn off builtin functions.
27862no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27863
27864# How to pass a linker flag through the compiler.
27865wl=$lt_lt_prog_compiler_wl_CXX
27866
27867# Additional compiler flags for building library objects.
27868pic_flag=$lt_lt_prog_compiler_pic_CXX
27869
27870# Compiler flag to prevent dynamic linking.
27871link_static_flag=$lt_lt_prog_compiler_static_CXX
27872
27873# Does compiler simultaneously support -c and -o options?
27874compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27875
27876# Whether or not to add -lc for building shared libraries.
27877build_libtool_need_lc=$archive_cmds_need_lc_CXX
27878
27879# Whether or not to disallow shared libs when runtime libs are static.
27880allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27881
27882# Compiler flag to allow reflexive dlopens.
27883export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27884
27885# Compiler flag to generate shared objects directly from archives.
27886whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27887
27888# Whether the compiler copes with passing no objects directly.
27889compiler_needs_object=$lt_compiler_needs_object_CXX
27890
27891# Create an old-style archive from a shared archive.
27892old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27893
27894# Create a temporary old-style archive to link instead of a shared archive.
27895old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27896
27897# Commands used to build a shared archive.
27898archive_cmds=$lt_archive_cmds_CXX
27899archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27900
27901# Commands used to build a loadable module if different from building
27902# a shared archive.
27903module_cmds=$lt_module_cmds_CXX
27904module_expsym_cmds=$lt_module_expsym_cmds_CXX
27905
27906# Whether we are building with GNU ld or not.
27907with_gnu_ld=$lt_with_gnu_ld_CXX
27908
27909# Flag that allows shared libraries with undefined symbols to be built.
27910allow_undefined_flag=$lt_allow_undefined_flag_CXX
27911
27912# Flag that enforces no undefined symbols.
27913no_undefined_flag=$lt_no_undefined_flag_CXX
27914
27915# Flag to hardcode \$libdir into a binary during linking.
27916# This must work even if \$libdir does not exist
27917hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27918
27919# If ld is used when linking, flag to hardcode \$libdir into a binary
27920# during linking. This must work even if \$libdir does not exist.
27921hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27922
27923# Whether we need a single "-rpath" flag with a separated argument.
27924hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27925
27926# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27927# DIR into the resulting binary.
27928hardcode_direct=$hardcode_direct_CXX
27929
27930# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27931# DIR into the resulting binary and the resulting library dependency is
27932# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27933# library is relocated.
27934hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27935
27936# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27937# into the resulting binary.
27938hardcode_minus_L=$hardcode_minus_L_CXX
27939
27940# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27941# into the resulting binary.
27942hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27943
27944# Set to "yes" if building a shared library automatically hardcodes DIR
27945# into the library and all subsequent libraries and executables linked
27946# against it.
27947hardcode_automatic=$hardcode_automatic_CXX
27948
27949# Set to yes if linker adds runtime paths of dependent libraries
27950# to runtime path list.
27951inherit_rpath=$inherit_rpath_CXX
27952
27953# Whether libtool must link a program against all its dependency libraries.
27954link_all_deplibs=$link_all_deplibs_CXX
27955
27956# Fix the shell variable \$srcfile for the compiler.
27957fix_srcfile_path=$lt_fix_srcfile_path_CXX
27958
27959# Set to "yes" if exported symbols are required.
27960always_export_symbols=$always_export_symbols_CXX
27961
27962# The commands to list exported symbols.
27963export_symbols_cmds=$lt_export_symbols_cmds_CXX
27964
27965# Symbols that should not be listed in the preloaded symbols.
27966exclude_expsyms=$lt_exclude_expsyms_CXX
27967
27968# Symbols that must always be exported.
27969include_expsyms=$lt_include_expsyms_CXX
27970
27971# Commands necessary for linking programs (against libraries) with templates.
27972prelink_cmds=$lt_prelink_cmds_CXX
27973
27974# Specify filename containing input files.
27975file_list_spec=$lt_file_list_spec_CXX
27976
27977# How to hardcode a shared library path into an executable.
27978hardcode_action=$hardcode_action_CXX
27979
0da7a284
PG
27980# The directories searched by this compiler when creating a shared library.
27981compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27982
1cf3d07d
SE
27983# Dependencies to place before and after the objects being linked to
27984# create a shared library.
27985predep_objects=$lt_predep_objects_CXX
27986postdep_objects=$lt_postdep_objects_CXX
27987predeps=$lt_predeps_CXX
27988postdeps=$lt_postdeps_CXX
27989
27990# The library search path used internally by the compiler when linking
27991# a shared library.
27992compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27993
27994# ### END LIBTOOL TAG CONFIG: CXX
27995_LT_EOF
27996
27997
27998 cat <<_LT_EOF >> "$ofile"
27999
28000# ### BEGIN LIBTOOL TAG CONFIG: GCJ
28001
28002# The linker used to build libraries.
28003LD=$lt_LD_GCJ
ade710a5 28004
43e02a8a
RW
28005# How to create reloadable object files.
28006reload_flag=$lt_reload_flag_GCJ
28007reload_cmds=$lt_reload_cmds_GCJ
28008
1cf3d07d
SE
28009# Commands used to build an old-style archive.
28010old_archive_cmds=$lt_old_archive_cmds_GCJ
ade710a5 28011
1cf3d07d
SE
28012# A language specific compiler.
28013CC=$lt_compiler_GCJ
ade710a5 28014
1cf3d07d
SE
28015# Is the compiler the GNU compiler?
28016with_gcc=$GCC_GCJ
ade710a5 28017
1cf3d07d
SE
28018# Compiler flag to turn off builtin functions.
28019no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
ade710a5 28020
1cf3d07d
SE
28021# How to pass a linker flag through the compiler.
28022wl=$lt_lt_prog_compiler_wl_GCJ
ed698112 28023
1cf3d07d
SE
28024# Additional compiler flags for building library objects.
28025pic_flag=$lt_lt_prog_compiler_pic_GCJ
ade710a5 28026
1cf3d07d
SE
28027# Compiler flag to prevent dynamic linking.
28028link_static_flag=$lt_lt_prog_compiler_static_GCJ
ade710a5 28029
1cf3d07d
SE
28030# Does compiler simultaneously support -c and -o options?
28031compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
ee9dd372 28032
1cf3d07d
SE
28033# Whether or not to add -lc for building shared libraries.
28034build_libtool_need_lc=$archive_cmds_need_lc_GCJ
ade710a5 28035
1cf3d07d
SE
28036# Whether or not to disallow shared libs when runtime libs are static.
28037allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
ee9dd372 28038
1cf3d07d
SE
28039# Compiler flag to allow reflexive dlopens.
28040export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
ade710a5 28041
1cf3d07d
SE
28042# Compiler flag to generate shared objects directly from archives.
28043whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
ade710a5 28044
1cf3d07d
SE
28045# Whether the compiler copes with passing no objects directly.
28046compiler_needs_object=$lt_compiler_needs_object_GCJ
ade710a5 28047
1cf3d07d
SE
28048# Create an old-style archive from a shared archive.
28049old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
ade710a5 28050
1cf3d07d
SE
28051# Create a temporary old-style archive to link instead of a shared archive.
28052old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
28053
28054# Commands used to build a shared archive.
28055archive_cmds=$lt_archive_cmds_GCJ
28056archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
28057
28058# Commands used to build a loadable module if different from building
28059# a shared archive.
28060module_cmds=$lt_module_cmds_GCJ
28061module_expsym_cmds=$lt_module_expsym_cmds_GCJ
28062
28063# Whether we are building with GNU ld or not.
28064with_gnu_ld=$lt_with_gnu_ld_GCJ
28065
28066# Flag that allows shared libraries with undefined symbols to be built.
28067allow_undefined_flag=$lt_allow_undefined_flag_GCJ
28068
28069# Flag that enforces no undefined symbols.
28070no_undefined_flag=$lt_no_undefined_flag_GCJ
28071
28072# Flag to hardcode \$libdir into a binary during linking.
28073# This must work even if \$libdir does not exist
28074hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
28075
28076# If ld is used when linking, flag to hardcode \$libdir into a binary
28077# during linking. This must work even if \$libdir does not exist.
28078hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
28079
28080# Whether we need a single "-rpath" flag with a separated argument.
28081hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
ade710a5 28082
1cf3d07d
SE
28083# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28084# DIR into the resulting binary.
28085hardcode_direct=$hardcode_direct_GCJ
ade710a5 28086
1cf3d07d
SE
28087# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28088# DIR into the resulting binary and the resulting library dependency is
28089# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28090# library is relocated.
28091hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
ed698112 28092
1cf3d07d
SE
28093# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28094# into the resulting binary.
28095hardcode_minus_L=$hardcode_minus_L_GCJ
ade710a5 28096
1cf3d07d
SE
28097# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28098# into the resulting binary.
28099hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
ade710a5 28100
1cf3d07d
SE
28101# Set to "yes" if building a shared library automatically hardcodes DIR
28102# into the library and all subsequent libraries and executables linked
28103# against it.
28104hardcode_automatic=$hardcode_automatic_GCJ
ade710a5 28105
1cf3d07d
SE
28106# Set to yes if linker adds runtime paths of dependent libraries
28107# to runtime path list.
28108inherit_rpath=$inherit_rpath_GCJ
ed698112 28109
1cf3d07d
SE
28110# Whether libtool must link a program against all its dependency libraries.
28111link_all_deplibs=$link_all_deplibs_GCJ
ed698112 28112
1cf3d07d
SE
28113# Fix the shell variable \$srcfile for the compiler.
28114fix_srcfile_path=$lt_fix_srcfile_path_GCJ
ade710a5 28115
1cf3d07d
SE
28116# Set to "yes" if exported symbols are required.
28117always_export_symbols=$always_export_symbols_GCJ
ade710a5 28118
1cf3d07d
SE
28119# The commands to list exported symbols.
28120export_symbols_cmds=$lt_export_symbols_cmds_GCJ
ade710a5 28121
1cf3d07d
SE
28122# Symbols that should not be listed in the preloaded symbols.
28123exclude_expsyms=$lt_exclude_expsyms_GCJ
28124
28125# Symbols that must always be exported.
28126include_expsyms=$lt_include_expsyms_GCJ
28127
28128# Commands necessary for linking programs (against libraries) with templates.
28129prelink_cmds=$lt_prelink_cmds_GCJ
28130
28131# Specify filename containing input files.
28132file_list_spec=$lt_file_list_spec_GCJ
28133
28134# How to hardcode a shared library path into an executable.
28135hardcode_action=$hardcode_action_GCJ
28136
0da7a284
PG
28137# The directories searched by this compiler when creating a shared library.
28138compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
28139
1cf3d07d
SE
28140# Dependencies to place before and after the objects being linked to
28141# create a shared library.
28142predep_objects=$lt_predep_objects_GCJ
28143postdep_objects=$lt_postdep_objects_GCJ
28144predeps=$lt_predeps_GCJ
28145postdeps=$lt_postdeps_GCJ
28146
28147# The library search path used internally by the compiler when linking
28148# a shared library.
28149compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
28150
28151# ### END LIBTOOL TAG CONFIG: GCJ
28152_LT_EOF
ade710a5 28153
ed698112 28154 ;;
5213506e
RW
28155 "scripts/jar":F) chmod +x scripts/jar ;;
28156
ed698112 28157 esac
5213506e 28158done # for ac_tag
480222b5 28159
ed698112 28160
5213506e 28161as_fn_exit 0
ed698112 28162_ACEOF
ed698112
NN
28163ac_clean_files=$ac_clean_files_save
28164
5213506e
RW
28165test $ac_write_fail = 0 ||
28166 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28167
ed698112
NN
28168
28169# configure is writing to config.log, and then calls config.status.
28170# config.status does its own redirection, appending to config.log.
28171# Unfortunately, on DOS this fails, as config.log is still kept open
28172# by configure, so config.status won't be able to write to it; its
28173# output is simply discarded. So we exec the FD to /dev/null,
28174# effectively closing config.log, so it can be properly (re)opened and
28175# appended to by config.status. When coming back to configure, we
28176# need to make the FD available again.
28177if test "$no_create" != yes; then
28178 ac_cs_success=:
28179 ac_config_status_args=
28180 test "$silent" = yes &&
28181 ac_config_status_args="$ac_config_status_args --quiet"
28182 exec 5>/dev/null
28183 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28184 exec 5>>config.log
28185 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28186 # would make configure fail if this is the last instruction.
5213506e 28187 $ac_cs_success || as_fn_exit $?
ed698112 28188fi
ee9dd372 28189
ed698112 28190#
5213506e 28191# CONFIG_SUBDIRS section.
ed698112 28192#
7af85558
TT
28193if test "$no_recursion" != yes; then
28194
5213506e
RW
28195 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
28196 # so they do not pile up.
7af85558
TT
28197 ac_sub_configure_args=
28198 ac_prev=
7fd1de41
L
28199 eval "set x $ac_configure_args"
28200 shift
28201 for ac_arg
28202 do
7af85558
TT
28203 if test -n "$ac_prev"; then
28204 ac_prev=
28205 continue
28206 fi
ed698112 28207 case $ac_arg in
7af85558
TT
28208 -cache-file | --cache-file | --cache-fil | --cache-fi \
28209 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
28210 ac_prev=cache_file ;;
28211 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
ed698112
NN
28212 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
28213 | --c=*)
28214 ;;
28215 --config-cache | -C)
7af85558
TT
28216 ;;
28217 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
28218 ac_prev=srcdir ;;
28219 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
28220 ;;
ed698112
NN
28221 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28222 ac_prev=prefix ;;
28223 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28224 ;;
5213506e
RW
28225 --disable-option-checking)
28226 ;;
7fd1de41
L
28227 *)
28228 case $ac_arg in
5213506e 28229 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7fd1de41 28230 esac
5213506e 28231 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
7af85558
TT
28232 esac
28233 done
28234
ed698112
NN
28235 # Always prepend --prefix to ensure using the same prefix
28236 # in subdir configurations.
7fd1de41
L
28237 ac_arg="--prefix=$prefix"
28238 case $ac_arg in
5213506e 28239 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7fd1de41 28240 esac
5213506e
RW
28241 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
28242
28243 # Pass --silent
28244 if test "$silent" = yes; then
28245 ac_sub_configure_args="--silent $ac_sub_configure_args"
28246 fi
28247
28248 # Always prepend --disable-option-checking to silence warnings, since
28249 # different subdirs can have different --enable and --with options.
28250 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
ed698112 28251
ade710a5 28252 ac_popdir=`pwd`
ed698112 28253 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
7af85558
TT
28254
28255 # Do not complain, so a configure script can configure whichever
28256 # parts of a large source tree are present.
7fd1de41 28257 test -d "$srcdir/$ac_dir" || continue
7af85558 28258
5213506e
RW
28259 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
28260 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
28261 $as_echo "$ac_msg" >&6
28262 as_dir="$ac_dir"; as_fn_mkdir_p
ed698112
NN
28263 ac_builddir=.
28264
5213506e
RW
28265case "$ac_dir" in
28266.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28267*)
28268 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28269 # A ".." for each directory in $ac_dir_suffix.
28270 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28271 case $ac_top_builddir_sub in
28272 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28273 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28274 esac ;;
28275esac
28276ac_abs_top_builddir=$ac_pwd
28277ac_abs_builddir=$ac_pwd$ac_dir_suffix
28278# for backward compatibility:
28279ac_top_builddir=$ac_top_build_prefix
ed698112
NN
28280
28281case $srcdir in
5213506e 28282 .) # We are building in place.
ed698112 28283 ac_srcdir=.
5213506e
RW
28284 ac_top_srcdir=$ac_top_builddir_sub
28285 ac_abs_top_srcdir=$ac_pwd ;;
28286 [\\/]* | ?:[\\/]* ) # Absolute name.
ed698112 28287 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
28288 ac_top_srcdir=$srcdir
28289 ac_abs_top_srcdir=$srcdir ;;
28290 *) # Relative name.
28291 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28292 ac_top_srcdir=$ac_top_build_prefix$srcdir
28293 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ed698112 28294esac
5213506e 28295ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7af85558 28296
7af85558 28297
7fd1de41 28298 cd "$ac_dir"
7af85558
TT
28299
28300 # Check for guested configure; otherwise get Cygnus style configure.
7fd1de41
L
28301 if test -f "$ac_srcdir/configure.gnu"; then
28302 ac_sub_configure=$ac_srcdir/configure.gnu
28303 elif test -f "$ac_srcdir/configure"; then
28304 ac_sub_configure=$ac_srcdir/configure
28305 elif test -f "$ac_srcdir/configure.in"; then
28306 # This should be Cygnus configure.
28307 ac_sub_configure=$ac_aux_dir/configure
7af85558 28308 else
5213506e
RW
28309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
28310$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
7af85558
TT
28311 ac_sub_configure=
28312 fi
28313
28314 # The recursion is here.
28315 if test -n "$ac_sub_configure"; then
7af85558 28316 # Make the cache file name correct relative to the subdirectory.
ed698112
NN
28317 case $cache_file in
28318 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
5213506e
RW
28319 *) # Relative name.
28320 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
7af85558 28321 esac
7af85558 28322
5213506e
RW
28323 { $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
28324$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
7af85558 28325 # The eval makes quoting arguments work.
7fd1de41
L
28326 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
28327 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
5213506e 28328 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
7af85558
TT
28329 fi
28330
7fd1de41 28331 cd "$ac_popdir"
7af85558
TT
28332 done
28333fi
5213506e
RW
28334if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28336$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28337fi
7af85558 28338
This page took 5.828405 seconds and 5 git commands to generate.