]> git.ipfire.org Git - thirdparty/gcc.git/blame - libjava/configure
re PR bootstrap/48135 (build fails on Solaris2.8 due to Glob.pm not found within...
[thirdparty/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 601enable_option_checking=no
8352cbb4 602ac_c_werror_flag=
5213506e
RW
603ac_subst_vars='am__EXEEXT_FALSE
604am__EXEEXT_TRUE
605LTLIBOBJS
606LIBOBJS
607LIBDIR
608OS
609CPU
610GCJ_BIN_DIR
611JRE_LIB_DIR
612JRE_BIN_DIR
613SDK_INCLUDE_DIR
614SDK_LIB_DIR
615SDK_BIN_DIR
616SDK_LNK
617JRE_LNK
618JRE_DIR
619JVM_JAR_DIR
620JVM_JAR_ROOT_DIR
621JVM_ROOT_DIR
622BUILD_VERSION
623JAVA_VERSION
624gcc_suffix
625CREATE_JAVA_HOME_FALSE
626CREATE_JAVA_HOME_TRUE
627INSTALL_AOT_RPM_FALSE
628INSTALL_AOT_RPM_TRUE
629MAKE
630python_mod_dir_expanded
631python_mod_dir
632here
633LD_FINISH_STATIC_SPEC
634LD_START_STATIC_SPEC
22a4778a
RO
635ANONVERSCRIPT_SUN_FALSE
636ANONVERSCRIPT_SUN_TRUE
637ANONVERSCRIPT_GNU_FALSE
638ANONVERSCRIPT_GNU_TRUE
5213506e
RW
639ANONVERSCRIPT_FALSE
640ANONVERSCRIPT_TRUE
641SYSDEP_SOURCES
642PERL
643libstdcxx_incdir
644gxx_include_dir
645gcjsubdir
646dbexecdir
647GCJVERSION
648toolexeclibdir
649toolexecmainlibdir
650toolexecdir
651GCC_UNWIND_INCLUDE
652INSTALL_BINARIES_FALSE
653INSTALL_BINARIES_TRUE
654NEEDS_DATA_START_FALSE
655NEEDS_DATA_START_TRUE
656ENABLE_SHARED_FALSE
657ENABLE_SHARED_TRUE
658NATIVE_FALSE
659NATIVE_TRUE
660ATOMICSPEC
661IEEESPEC
662BACKTRACESPEC
663EXCEPTIONSPEC
664CHECKREFSPEC
665DIVIDESPEC
666ZINCS
667SYS_ZLIBS
668ZLIBS
669CLASSPATH_SEPARATOR
670LIBART_LIBS
671LIBART_CFLAGS
672GLIB_LIBS
673GLIB_CFLAGS
674GTK_LIBS
675GTK_CFLAGS
676PKG_CONFIG
4e6ad422 677LDLIBICONV
5213506e
RW
678LTLIBICONV
679LIBICONV
680USING_GCC_FALSE
681USING_GCC_TRUE
682HASH_SYNC_SPEC
683LIBGCJ_BC_SPEC
684LIBGCJ_SPEC
685USE_LIBGCJ_BC_FALSE
686USE_LIBGCJ_BC_TRUE
687USING_NO_THREADS_FALSE
688USING_NO_THREADS_TRUE
689USING_WIN32_THREADS_FALSE
690USING_WIN32_THREADS_TRUE
691USING_POSIX_THREADS_FALSE
692USING_POSIX_THREADS_TRUE
693THREADCXXFLAGS
694THREADLDFLAGS
695THREADSTARTFILESPEC
696THREADSPEC
697THREADDEPS
698THREADINCS
699THREADLIBS
700USING_NOGC_FALSE
701USING_NOGC_TRUE
702USING_BOEHMGC_FALSE
703USING_BOEHMGC_TRUE
704GCTESTSPEC
705JC1GCSPEC
706GCSPEC
707GCDEPS
708GCINCS
709GCLIBS
710LIBGCJTESTSPEC
d80148b8 711LIBMATHSPEC
5213506e
RW
712LIBSTDCXXSPEC
713extra_ldflags
5213506e
RW
714extra_ldflags_libjava
715X_EXTRA_LIBS
716X_LIBS
717X_PRE_LIBS
718X_CFLAGS
719XMKMF
720ZLIBTESTSPEC
721ZLIBSPEC
722SYSTEMSPEC
723USING_DARWIN_CRT_FALSE
724USING_DARWIN_CRT_TRUE
725USING_POSIX_PLATFORM_FALSE
726USING_POSIX_PLATFORM_TRUE
727USING_WIN32_PLATFORM_FALSE
728USING_WIN32_PLATFORM_TRUE
729PLATFORM
730LIBFFIINCS
731LIBFFI
732INTERPRETER_FALSE
733INTERPRETER_TRUE
734INTERPRETER
735BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE
736BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE
737SUPPRESS_LIBGCJ_BC_FALSE
738SUPPRESS_LIBGCJ_BC_TRUE
739JAVA_HOME
740JAVA_HOME_SET_FALSE
741JAVA_HOME_SET_TRUE
742INSTALL_ECJ_JAR_FALSE
743INSTALL_ECJ_JAR_TRUE
744BUILD_ECJ1_FALSE
745BUILD_ECJ1_TRUE
746ECJ_JAR
747ECJ_BUILD_JAR
748TESTSUBDIR_FALSE
749TESTSUBDIR_TRUE
750subdirs
751am__fastdepGCJ_FALSE
752am__fastdepGCJ_TRUE
753GCJDEPMODE
754GCJFLAGS
4d9e8446 755ac_ct_GCJ
5213506e 756GCJ
7de6ba7a 757lt_host_flags
5213506e
RW
758CXXCPP
759CPP
760OTOOL64
761OTOOL
762LIPO
763NMEDIT
764DSYMUTIL
5213506e
RW
765OBJDUMP
766NM
767ac_ct_DUMPBIN
768DUMPBIN
769FGREP
770EGREP
771GREP
772SED
773LIBTOOL
774DIRLTDL
775LIBLTDL
776INCLTDL
777host_exeext
778GCJH
9f8f1def 779GCC_FOR_ECJX
5213506e
RW
780GCJ_FOR_ECJX
781X_AWT_FALSE
782X_AWT_TRUE
783XLIB_AWT_FALSE
784XLIB_AWT_TRUE
785TOOLKIT
786LIBGCJDEBUG
6a92b6c7
DK
787BUILD_SUBLIBS_FALSE
788BUILD_SUBLIBS_TRUE
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
859target_noncanonical
860target_os
861target_vendor
862target_cpu
863target
864host_os
865host_vendor
866host_cpu
867host
868multi_basedir
869target_subdir
870host_subdir
871build_subdir
872build_libsubdir
873build_os
874build_vendor
875build_cpu
876build
877target_alias
878host_alias
879build_alias
880LIBS
881ECHO_T
882ECHO_N
883ECHO_C
884DEFS
885mandir
886localedir
887libdir
888psdir
889pdfdir
890dvidir
891htmldir
892infodir
893docdir
894oldincludedir
895includedir
896localstatedir
897sharedstatedir
898sysconfdir
899datadir
900datarootdir
901libexecdir
902sbindir
903bindir
904program_transform_name
905prefix
906exec_prefix
907PACKAGE_URL
908PACKAGE_BUGREPORT
909PACKAGE_STRING
910PACKAGE_VERSION
911PACKAGE_TARNAME
912PACKAGE_NAME
913PATH_SEPARATOR
914SHELL'
ed698112 915ac_subst_files=''
5213506e
RW
916ac_user_opts='
917enable_option_checking
918with_build_libsubdir
919with_target_subdir
920enable_multilib
921with_cross_host
922with_newlib
923enable_version_specific_runtime_libs
34677bae 924enable_browser_plugin
5213506e
RW
925enable_gconf_peer
926with_antlr_jar
927enable_gjdoc
928enable_java_maintainer_mode
929enable_dependency_tracking
930enable_maintainer_mode
6a92b6c7 931enable_libgcj_sublibs
5213506e
RW
932enable_libgcj_debug
933with_escher
934enable_java_awt
935enable_shared
936enable_static
937with_pic
938enable_fast_install
939with_gnu_ld
940enable_libtool_lock
941enable_getenv_properties
942enable_hash_synchronization
943with_ecj_jar
944with_java_home
945enable_libgcj_bc
946enable_reduced_reflection
947with_win32_nlsapi
948enable_gc_debug
949enable_interpreter
950enable_sjlj_exceptions
951enable_java_net
952with_libffi
953enable_jvmpi
954with_ecos
955with_system_zlib
956with_x
957enable_java_gc
958enable_rpath
959with_libiconv_prefix
960enable_tls
961with_system_libunwind
bf382f5f 962enable_symvers
5213506e
RW
963with_python_dir
964enable_aot_compile_rpm
965enable_java_home
966with_gcc_suffix
967with_arch_directory
968with_os_directory
969with_origin_name
970with_arch_suffix
971with_jvm_root_dir
972with_jvm_jar_dir
973'
974 ac_precious_vars='build_alias
975host_alias
976target_alias
a5d28a12
RW
977CC
978CFLAGS
979LDFLAGS
980LIBS
5213506e 981CPPFLAGS
a5d28a12
RW
982CXX
983CXXFLAGS
984CCC
985CPP
5213506e
RW
986CXXCPP
987XMKMF'
988ac_subdirs_all='classpath libltdl'
ee9dd372
TT
989
990# Initialize some variables set by options.
ed698112
NN
991ac_init_help=
992ac_init_version=false
5213506e
RW
993ac_unrecognized_opts=
994ac_unrecognized_sep=
ee9dd372
TT
995# The variables have the same names as the options, with
996# dashes changed to underlines.
ed698112 997cache_file=/dev/null
ee9dd372 998exec_prefix=NONE
ee9dd372 999no_create=
ee9dd372
TT
1000no_recursion=
1001prefix=NONE
1002program_prefix=NONE
1003program_suffix=NONE
1004program_transform_name=s,x,x,
1005silent=
1006site=
1007srcdir=
ee9dd372
TT
1008verbose=
1009x_includes=NONE
1010x_libraries=NONE
ed698112
NN
1011
1012# Installation directory options.
1013# These are left unexpanded so users can "make install exec_prefix=/foo"
1014# and all the variables that are supposed to be based on exec_prefix
1015# by default will actually change.
1016# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 1017# (The list follows the same order as the GNU Coding Standards.)
ee9dd372
TT
1018bindir='${exec_prefix}/bin'
1019sbindir='${exec_prefix}/sbin'
1020libexecdir='${exec_prefix}/libexec'
5213506e
RW
1021datarootdir='${prefix}/share'
1022datadir='${datarootdir}'
ee9dd372
TT
1023sysconfdir='${prefix}/etc'
1024sharedstatedir='${prefix}/com'
1025localstatedir='${prefix}/var'
ee9dd372
TT
1026includedir='${prefix}/include'
1027oldincludedir='/usr/include'
5213506e
RW
1028docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1029infodir='${datarootdir}/info'
1030htmldir='${docdir}'
1031dvidir='${docdir}'
1032pdfdir='${docdir}'
1033psdir='${docdir}'
1034libdir='${exec_prefix}/lib'
1035localedir='${datarootdir}/locale'
1036mandir='${datarootdir}/man'
ee9dd372 1037
ee9dd372 1038ac_prev=
5213506e 1039ac_dashdash=
ee9dd372
TT
1040for ac_option
1041do
ee9dd372
TT
1042 # If the previous option needs an argument, assign it.
1043 if test -n "$ac_prev"; then
5213506e 1044 eval $ac_prev=\$ac_option
ee9dd372
TT
1045 ac_prev=
1046 continue
1047 fi
1048
5213506e
RW
1049 case $ac_option in
1050 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1051 *) ac_optarg=yes ;;
1052 esac
ee9dd372
TT
1053
1054 # Accept the important Cygnus configure options, so we can diagnose typos.
1055
5213506e
RW
1056 case $ac_dashdash$ac_option in
1057 --)
1058 ac_dashdash=yes ;;
ee9dd372
TT
1059
1060 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1061 ac_prev=bindir ;;
1062 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ed698112 1063 bindir=$ac_optarg ;;
ee9dd372
TT
1064
1065 -build | --build | --buil | --bui | --bu)
ed698112 1066 ac_prev=build_alias ;;
ee9dd372 1067 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ed698112 1068 build_alias=$ac_optarg ;;
ee9dd372
TT
1069
1070 -cache-file | --cache-file | --cache-fil | --cache-fi \
1071 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1072 ac_prev=cache_file ;;
1073 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1074 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ed698112
NN
1075 cache_file=$ac_optarg ;;
1076
1077 --config-cache | -C)
1078 cache_file=config.cache ;;
ee9dd372 1079
5213506e 1080 -datadir | --datadir | --datadi | --datad)
ee9dd372 1081 ac_prev=datadir ;;
5213506e 1082 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ed698112 1083 datadir=$ac_optarg ;;
ee9dd372 1084
5213506e
RW
1085 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1086 | --dataroo | --dataro | --datar)
1087 ac_prev=datarootdir ;;
1088 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1089 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1090 datarootdir=$ac_optarg ;;
1091
ee9dd372 1092 -disable-* | --disable-*)
5213506e 1093 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
ee9dd372 1094 # Reject names that are not valid shell variable names.
5213506e
RW
1095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1096 as_fn_error "invalid feature name: $ac_useropt"
1097 ac_useropt_orig=$ac_useropt
1098 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099 case $ac_user_opts in
1100 *"
1101"enable_$ac_useropt"
1102"*) ;;
1103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1104 ac_unrecognized_sep=', ';;
1105 esac
1106 eval enable_$ac_useropt=no ;;
1107
1108 -docdir | --docdir | --docdi | --doc | --do)
1109 ac_prev=docdir ;;
1110 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1111 docdir=$ac_optarg ;;
1112
1113 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1114 ac_prev=dvidir ;;
1115 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1116 dvidir=$ac_optarg ;;
ee9dd372
TT
1117
1118 -enable-* | --enable-*)
5213506e 1119 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
ee9dd372 1120 # Reject names that are not valid shell variable names.
5213506e
RW
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122 as_fn_error "invalid feature name: $ac_useropt"
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1126 *"
1127"enable_$ac_useropt"
1128"*) ;;
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
ade710a5 1131 esac
5213506e 1132 eval enable_$ac_useropt=\$ac_optarg ;;
ee9dd372
TT
1133
1134 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1135 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1136 | --exec | --exe | --ex)
1137 ac_prev=exec_prefix ;;
1138 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1139 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1140 | --exec=* | --exe=* | --ex=*)
ed698112 1141 exec_prefix=$ac_optarg ;;
ee9dd372
TT
1142
1143 -gas | --gas | --ga | --g)
1144 # Obsolete; use --with-gas.
1145 with_gas=yes ;;
1146
ed698112
NN
1147 -help | --help | --hel | --he | -h)
1148 ac_init_help=long ;;
1149 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1150 ac_init_help=recursive ;;
1151 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1152 ac_init_help=short ;;
ee9dd372
TT
1153
1154 -host | --host | --hos | --ho)
ed698112 1155 ac_prev=host_alias ;;
ee9dd372 1156 -host=* | --host=* | --hos=* | --ho=*)
ed698112 1157 host_alias=$ac_optarg ;;
ee9dd372 1158
5213506e
RW
1159 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1160 ac_prev=htmldir ;;
1161 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1162 | --ht=*)
1163 htmldir=$ac_optarg ;;
1164
ee9dd372
TT
1165 -includedir | --includedir | --includedi | --included | --include \
1166 | --includ | --inclu | --incl | --inc)
1167 ac_prev=includedir ;;
1168 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1169 | --includ=* | --inclu=* | --incl=* | --inc=*)
ed698112 1170 includedir=$ac_optarg ;;
ee9dd372
TT
1171
1172 -infodir | --infodir | --infodi | --infod | --info | --inf)
1173 ac_prev=infodir ;;
1174 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ed698112 1175 infodir=$ac_optarg ;;
ee9dd372
TT
1176
1177 -libdir | --libdir | --libdi | --libd)
1178 ac_prev=libdir ;;
1179 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ed698112 1180 libdir=$ac_optarg ;;
ee9dd372
TT
1181
1182 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1183 | --libexe | --libex | --libe)
1184 ac_prev=libexecdir ;;
1185 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1186 | --libexe=* | --libex=* | --libe=*)
ed698112 1187 libexecdir=$ac_optarg ;;
ee9dd372 1188
5213506e
RW
1189 -localedir | --localedir | --localedi | --localed | --locale)
1190 ac_prev=localedir ;;
1191 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1192 localedir=$ac_optarg ;;
1193
ee9dd372 1194 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1195 | --localstate | --localstat | --localsta | --localst | --locals)
ee9dd372
TT
1196 ac_prev=localstatedir ;;
1197 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1198 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ed698112 1199 localstatedir=$ac_optarg ;;
ee9dd372
TT
1200
1201 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1202 ac_prev=mandir ;;
1203 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ed698112 1204 mandir=$ac_optarg ;;
ee9dd372
TT
1205
1206 -nfp | --nfp | --nf)
1207 # Obsolete; use --without-fp.
1208 with_fp=no ;;
1209
1210 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ed698112 1211 | --no-cr | --no-c | -n)
ee9dd372
TT
1212 no_create=yes ;;
1213
1214 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1215 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1216 no_recursion=yes ;;
1217
1218 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1219 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1220 | --oldin | --oldi | --old | --ol | --o)
1221 ac_prev=oldincludedir ;;
1222 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1223 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1224 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ed698112 1225 oldincludedir=$ac_optarg ;;
ee9dd372
TT
1226
1227 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1228 ac_prev=prefix ;;
1229 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ed698112 1230 prefix=$ac_optarg ;;
ee9dd372
TT
1231
1232 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1233 | --program-pre | --program-pr | --program-p)
1234 ac_prev=program_prefix ;;
1235 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1236 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ed698112 1237 program_prefix=$ac_optarg ;;
ee9dd372
TT
1238
1239 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1240 | --program-suf | --program-su | --program-s)
1241 ac_prev=program_suffix ;;
1242 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1243 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ed698112 1244 program_suffix=$ac_optarg ;;
ee9dd372
TT
1245
1246 -program-transform-name | --program-transform-name \
1247 | --program-transform-nam | --program-transform-na \
1248 | --program-transform-n | --program-transform- \
1249 | --program-transform | --program-transfor \
1250 | --program-transfo | --program-transf \
1251 | --program-trans | --program-tran \
1252 | --progr-tra | --program-tr | --program-t)
1253 ac_prev=program_transform_name ;;
1254 -program-transform-name=* | --program-transform-name=* \
1255 | --program-transform-nam=* | --program-transform-na=* \
1256 | --program-transform-n=* | --program-transform-=* \
1257 | --program-transform=* | --program-transfor=* \
1258 | --program-transfo=* | --program-transf=* \
1259 | --program-trans=* | --program-tran=* \
1260 | --progr-tra=* | --program-tr=* | --program-t=*)
ed698112 1261 program_transform_name=$ac_optarg ;;
ee9dd372 1262
5213506e
RW
1263 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1264 ac_prev=pdfdir ;;
1265 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1266 pdfdir=$ac_optarg ;;
1267
1268 -psdir | --psdir | --psdi | --psd | --ps)
1269 ac_prev=psdir ;;
1270 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1271 psdir=$ac_optarg ;;
1272
ee9dd372
TT
1273 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1274 | -silent | --silent | --silen | --sile | --sil)
1275 silent=yes ;;
1276
1277 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1278 ac_prev=sbindir ;;
1279 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1280 | --sbi=* | --sb=*)
ed698112 1281 sbindir=$ac_optarg ;;
ee9dd372
TT
1282
1283 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1284 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1285 | --sharedst | --shareds | --shared | --share | --shar \
1286 | --sha | --sh)
1287 ac_prev=sharedstatedir ;;
1288 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1289 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1290 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1291 | --sha=* | --sh=*)
ed698112 1292 sharedstatedir=$ac_optarg ;;
ee9dd372
TT
1293
1294 -site | --site | --sit)
1295 ac_prev=site ;;
1296 -site=* | --site=* | --sit=*)
ed698112 1297 site=$ac_optarg ;;
ee9dd372
TT
1298
1299 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1300 ac_prev=srcdir ;;
1301 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ed698112 1302 srcdir=$ac_optarg ;;
ee9dd372
TT
1303
1304 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1305 | --syscon | --sysco | --sysc | --sys | --sy)
1306 ac_prev=sysconfdir ;;
1307 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1308 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ed698112 1309 sysconfdir=$ac_optarg ;;
ee9dd372
TT
1310
1311 -target | --target | --targe | --targ | --tar | --ta | --t)
ed698112 1312 ac_prev=target_alias ;;
ee9dd372 1313 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ed698112 1314 target_alias=$ac_optarg ;;
ee9dd372
TT
1315
1316 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1317 verbose=yes ;;
1318
ed698112
NN
1319 -version | --version | --versio | --versi | --vers | -V)
1320 ac_init_version=: ;;
ee9dd372
TT
1321
1322 -with-* | --with-*)
5213506e 1323 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
ee9dd372 1324 # Reject names that are not valid shell variable names.
5213506e
RW
1325 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1326 as_fn_error "invalid package name: $ac_useropt"
1327 ac_useropt_orig=$ac_useropt
1328 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1329 case $ac_user_opts in
1330 *"
1331"with_$ac_useropt"
1332"*) ;;
1333 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1334 ac_unrecognized_sep=', ';;
ade710a5 1335 esac
5213506e 1336 eval with_$ac_useropt=\$ac_optarg ;;
ee9dd372
TT
1337
1338 -without-* | --without-*)
5213506e 1339 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
ee9dd372 1340 # Reject names that are not valid shell variable names.
5213506e
RW
1341 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1342 as_fn_error "invalid package name: $ac_useropt"
1343 ac_useropt_orig=$ac_useropt
1344 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1345 case $ac_user_opts in
1346 *"
1347"with_$ac_useropt"
1348"*) ;;
1349 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1350 ac_unrecognized_sep=', ';;
1351 esac
1352 eval with_$ac_useropt=no ;;
ee9dd372
TT
1353
1354 --x)
1355 # Obsolete; use --with-x.
1356 with_x=yes ;;
1357
1358 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1359 | --x-incl | --x-inc | --x-in | --x-i)
1360 ac_prev=x_includes ;;
1361 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1362 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ed698112 1363 x_includes=$ac_optarg ;;
ee9dd372
TT
1364
1365 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1366 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1367 ac_prev=x_libraries ;;
1368 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1369 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ed698112 1370 x_libraries=$ac_optarg ;;
ee9dd372 1371
5213506e
RW
1372 -*) as_fn_error "unrecognized option: \`$ac_option'
1373Try \`$0 --help' for more information."
ee9dd372
TT
1374 ;;
1375
ed698112
NN
1376 *=*)
1377 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1378 # Reject names that are not valid shell variable names.
5213506e
RW
1379 case $ac_envvar in #(
1380 '' | [0-9]* | *[!_$as_cr_alnum]* )
1381 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1382 esac
1383 eval $ac_envvar=\$ac_optarg
ed698112
NN
1384 export $ac_envvar ;;
1385
ee9dd372 1386 *)
ed698112 1387 # FIXME: should be removed in autoconf 3.0.
5213506e 1388 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ed698112 1389 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1390 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ed698112 1391 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
ee9dd372
TT
1392 ;;
1393
1394 esac
1395done
1396
1397if test -n "$ac_prev"; then
ed698112 1398 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1399 as_fn_error "missing argument to $ac_option"
ee9dd372 1400fi
ee9dd372 1401
5213506e
RW
1402if test -n "$ac_unrecognized_opts"; then
1403 case $enable_option_checking in
1404 no) ;;
1405 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1406 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
ade710a5 1407 esac
5213506e 1408fi
ade710a5 1409
5213506e
RW
1410# Check all directory arguments for consistency.
1411for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1412 datadir sysconfdir sharedstatedir localstatedir includedir \
1413 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1414 libdir localedir mandir
ade710a5 1415do
5213506e
RW
1416 eval ac_val=\$$ac_var
1417 # Remove trailing slashes.
1418 case $ac_val in
1419 */ )
1420 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1421 eval $ac_var=\$ac_val;;
1422 esac
1423 # Be sure to have absolute directory names.
ade710a5 1424 case $ac_val in
5213506e
RW
1425 [\\/$]* | ?:[\\/]* ) continue;;
1426 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
ee9dd372 1427 esac
5213506e 1428 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
ee9dd372
TT
1429done
1430
ed698112
NN
1431# There might be people who depend on the old broken behavior: `$host'
1432# used to hold the argument of --host etc.
1433# FIXME: To remove some day.
1434build=$build_alias
1435host=$host_alias
1436target=$target_alias
1437
1438# FIXME: To remove some day.
1439if test "x$host_alias" != x; then
1440 if test "x$build_alias" = x; then
1441 cross_compiling=maybe
5213506e 1442 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ed698112
NN
1443 If a cross compiler is detected then cross compile mode will be used." >&2
1444 elif test "x$build_alias" != "x$host_alias"; then
1445 cross_compiling=yes
1446 fi
1447fi
ee9dd372 1448
ed698112
NN
1449ac_tool_prefix=
1450test -n "$host_alias" && ac_tool_prefix=$host_alias-
1451
1452test "$silent" = yes && exec 6>/dev/null
ee9dd372 1453
ee9dd372 1454
5213506e
RW
1455ac_pwd=`pwd` && test -n "$ac_pwd" &&
1456ac_ls_di=`ls -di .` &&
1457ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1458 as_fn_error "working directory cannot be determined"
1459test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1460 as_fn_error "pwd does not report name of working directory"
1461
1462
ee9dd372
TT
1463# Find the source files, if location was not specified.
1464if test -z "$srcdir"; then
1465 ac_srcdir_defaulted=yes
5213506e
RW
1466 # Try the directory containing this script, then the parent directory.
1467 ac_confdir=`$as_dirname -- "$as_myself" ||
1468$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1469 X"$as_myself" : 'X\(//\)[^/]' \| \
1470 X"$as_myself" : 'X\(//\)$' \| \
1471 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1472$as_echo X"$as_myself" |
1473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1474 s//\1/
1475 q
1476 }
1477 /^X\(\/\/\)[^/].*/{
1478 s//\1/
1479 q
1480 }
1481 /^X\(\/\/\)$/{
1482 s//\1/
1483 q
1484 }
1485 /^X\(\/\).*/{
1486 s//\1/
1487 q
1488 }
1489 s/.*/./; q'`
ee9dd372 1490 srcdir=$ac_confdir
5213506e 1491 if test ! -r "$srcdir/$ac_unique_file"; then
ee9dd372
TT
1492 srcdir=..
1493 fi
1494else
1495 ac_srcdir_defaulted=no
1496fi
5213506e
RW
1497if test ! -r "$srcdir/$ac_unique_file"; then
1498 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1499 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1500fi
1501ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1502ac_abs_confdir=`(
1503 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1504 pwd)`
1505# When building in place, set srcdir=.
1506if test "$ac_abs_confdir" = "$ac_pwd"; then
1507 srcdir=.
1508fi
1509# Remove unnecessary trailing slashes from srcdir.
1510# Double slashes in file names in object file debugging info
1511# mess up M-x gdb in Emacs.
1512case $srcdir in
1513*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1514esac
1515for ac_var in $ac_precious_vars; do
1516 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1517 eval ac_env_${ac_var}_value=\$${ac_var}
1518 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1519 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1520done
ed698112
NN
1521
1522#
1523# Report the --help message.
1524#
1525if test "$ac_init_help" = "long"; then
1526 # Omit some internal or obsolete options to make the list less imposing.
1527 # This message is too long to be a string in the A/UX 3.1 sh.
1528 cat <<_ACEOF
e3f92d3b 1529\`configure' configures libjava version-unused to adapt to many kinds of systems.
ed698112
NN
1530
1531Usage: $0 [OPTION]... [VAR=VALUE]...
1532
1533To assign environment variables (e.g., CC, CFLAGS...), specify them as
1534VAR=VALUE. See below for descriptions of some of the useful variables.
1535
1536Defaults for the options are specified in brackets.
1537
1538Configuration:
1539 -h, --help display this help and exit
1540 --help=short display options specific to this package
1541 --help=recursive display the short help of all the included packages
1542 -V, --version display version information and exit
1543 -q, --quiet, --silent do not print \`checking...' messages
1544 --cache-file=FILE cache test results in FILE [disabled]
1545 -C, --config-cache alias for \`--cache-file=config.cache'
1546 -n, --no-create do not create output files
1547 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1548
ed698112
NN
1549Installation directories:
1550 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1551 [$ac_default_prefix]
ed698112 1552 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1553 [PREFIX]
ed698112
NN
1554
1555By default, \`make install' will install all the files in
1556\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1557an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1558for instance \`--prefix=\$HOME'.
1559
1560For better control, use the options below.
1561
1562Fine tuning of the installation directories:
5213506e
RW
1563 --bindir=DIR user executables [EPREFIX/bin]
1564 --sbindir=DIR system admin executables [EPREFIX/sbin]
1565 --libexecdir=DIR program executables [EPREFIX/libexec]
1566 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1567 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1568 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1569 --libdir=DIR object code libraries [EPREFIX/lib]
1570 --includedir=DIR C header files [PREFIX/include]
1571 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1572 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1573 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1574 --infodir=DIR info documentation [DATAROOTDIR/info]
1575 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1576 --mandir=DIR man documentation [DATAROOTDIR/man]
1577 --docdir=DIR documentation root [DATAROOTDIR/doc/libjava]
1578 --htmldir=DIR html documentation [DOCDIR]
1579 --dvidir=DIR dvi documentation [DOCDIR]
1580 --pdfdir=DIR pdf documentation [DOCDIR]
1581 --psdir=DIR ps documentation [DOCDIR]
ed698112
NN
1582_ACEOF
1583
1584 cat <<\_ACEOF
1585
1586Program names:
1587 --program-prefix=PREFIX prepend PREFIX to installed program names
1588 --program-suffix=SUFFIX append SUFFIX to installed program names
1589 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1590
1591X features:
1592 --x-includes=DIR X include files are in DIR
1593 --x-libraries=DIR X library files are in DIR
1594
1595System types:
1596 --build=BUILD configure for building on BUILD [guessed]
1597 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1598 --target=TARGET configure for building compilers for TARGET [HOST]
1599_ACEOF
1600fi
1601
1602if test -n "$ac_init_help"; then
e3f92d3b
MK
1603 case $ac_init_help in
1604 short | recursive ) echo "Configuration of libjava version-unused:";;
1605 esac
ed698112
NN
1606 cat <<\_ACEOF
1607
1608Optional Features:
5213506e 1609 --disable-option-checking ignore unrecognized --enable/--with options
ed698112
NN
1610 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1611 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
8a489465 1612 --enable-multilib build many library versions (default)
ed698112 1613 --enable-version-specific-runtime-libs
aed6152d
NN
1614 specify that runtime libraries should be installed
1615 in a compiler-specific directory
34677bae 1616 --enable-browser-plugin build gcjwebplugin web browser plugin
ac1ed908 1617 --enable-gconf-peer compile GConf native peers for util.preferences
cd6d4007
MK
1618 --disable-gjdoc compile GJDoc (disabled by --disable-gjdoc)
1619 default=yes
97b8365c
TT
1620 --enable-java-maintainer-mode
1621 allow rebuilding of .class and .h files
e3f92d3b
MK
1622 --disable-dependency-tracking speeds up one-time build
1623 --enable-dependency-tracking do not reject slow dependency extractors
1624 --enable-maintainer-mode enable make rules and dependencies not useful
1625 (and sometimes confusing) to the casual installer
6a92b6c7 1626 --enable-libgcj-sublibs build libgcj as many sub-libraries
b0fa81ee
TT
1627 --enable-libgcj-debug enable runtime debugging code
1628 --enable-java-awt list of AWT peer implementations to be built
5213506e
RW
1629 --enable-shared[=PKGS] build shared libraries [default=yes]
1630 --enable-static[=PKGS] build static libraries [default=yes]
1cf3d07d
SE
1631 --enable-fast-install[=PKGS]
1632 optimize for fast installation [default=yes]
ed698112
NN
1633 --disable-libtool-lock avoid locking (might break parallel builds)
1634 --disable-getenv-properties
1635 don't set system properties from GCJ_PROPERTIES
1636 --enable-hash-synchronization
1637 use global hash table for monitor locks
a507baad
DD
1638 --enable-libgcj-bc enable(default) or disable BC ABI for portions of
1639 libgcj
c07cd2c7
DD
1640 --enable-reduced-reflection
1641 enable or disable(default) -freduced-reflection when
1642 building portions of libgcj
48d0dd75 1643 --enable-gc-debug include full support for pointer backtracing etc.
ed698112 1644 --enable-interpreter enable interpreter
aed6152d
NN
1645 --enable-sjlj-exceptions
1646 force use of builtin_setjmp for exceptions
ed698112
NN
1647 --disable-java-net disable java.net
1648 --disable-jvmpi disable JVMPI support
aed6152d 1649 --enable-java-gc=TYPE choose garbage collector (default is boehm)
5b7a26f6 1650 --disable-rpath do not hardcode runtime library paths
2fb31455 1651 --enable-tls Use thread-local storage [default=yes]
bf382f5f 1652 --disable-symvers disable symbol versioning for libjava
c9db365d
JS
1653 --enable-aot-compile-rpm
1654 enable installation of aot-compile-rpm [default=no]
1655 --enable-java-home create a standard JDK-style directory layout in the
1656 install tree [default=no]
ed698112
NN
1657
1658Optional Packages:
1659 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1660 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
57255173 1661 --with-build-libsubdir=DIR Directory where to find libraries for build system
ed698112 1662 --with-target-subdir=SUBDIR
aed6152d
NN
1663 configure in a subdirectory
1664 --with-cross-host=HOST configure with a cross compiler from HOST
1665 --with-newlib configure with newlib
cd6d4007 1666 --with-antlr-jar=file Use ANTLR from the specified jar file
97b8365c 1667 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
1cf3d07d
SE
1668 --with-pic try to use only PIC/non-PIC objects [default=use
1669 both]
1670 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
97b8365c 1671 --with-ecj-jar=FILE use preinstalled ecj jar
c33b7bf0
TF
1672 --with-java-home=DIRECTORY
1673 value of java.home system property
aed6152d
NN
1674 --with-win32-nlsapi=ansi or unicows or unicode
1675 native MinGW libgcj Win32 OS API (default is ansi)
ed698112
NN
1676 --without-libffi don't use libffi
1677 --with-ecos enable runtime eCos target support
1678 --with-system-zlib use installed libz
1679 --with-x use the X Window System
1cf3d07d 1680 --with-gnu-ld assume the C compiler uses GNU ld default=no
5b7a26f6
KC
1681 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1682 --without-libiconv-prefix don't search for libiconv in includedir and libdir
bc3f0248 1683 --with-system-libunwind use installed libunwind
c9db365d
JS
1684 --with-python-dir the location to install Python modules. This path
1685 should NOT include the prefix.
1686 --with-gcc-suffix the GCC tool suffix (defaults to empty string)
1687 --with-arch-directory the arch directory under jre/lib (defaults to
1688 auto-detect)
1689 --with-os-directory the os directory under include (defaults to
1690 auto-detect)
1691 --with-origin-name the JPackage origin name of this package (default is
1692 gcj${gcc_suffix}
1693 --with-arch-suffix the arch directory suffix (default is the empty
1694 string
1695 --with-jvm-root-dir where to install SDK (default is ${prefix}/lib/jvm)
1696 --with-jvm-jar-dir where to install jars (default is
1697 ${prefix}/lib/jvm-exports)
ed698112
NN
1698
1699Some influential environment variables:
1700 CC C compiler command
1701 CFLAGS C compiler flags
1702 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1703 nonstandard directory <lib dir>
5213506e
RW
1704 LIBS libraries to pass to the linker, e.g. -l<library>
1705 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1706 you have headers in a nonstandard directory <include dir>
ed698112
NN
1707 CXX C++ compiler command
1708 CXXFLAGS C++ compiler flags
ed698112 1709 CPP C preprocessor
1cf3d07d 1710 CXXCPP C++ preprocessor
5213506e 1711 XMKMF Path to xmkmf, Makefile generator for X Window System
ed698112
NN
1712
1713Use these variables to override the choices made by `configure' or to help
1714it to find libraries and programs with nonstandard names/locations.
1715
5213506e 1716Report bugs to the package provider.
ed698112 1717_ACEOF
5213506e 1718ac_status=$?
ed698112
NN
1719fi
1720
1721if test "$ac_init_help" = "recursive"; then
1722 # If there are subdirs, report their specific --help.
ed698112 1723 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1724 test -d "$ac_dir" ||
1725 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1726 continue
ed698112
NN
1727 ac_builddir=.
1728
5213506e
RW
1729case "$ac_dir" in
1730.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1731*)
1732 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1733 # A ".." for each directory in $ac_dir_suffix.
1734 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1735 case $ac_top_builddir_sub in
1736 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1737 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1738 esac ;;
1739esac
1740ac_abs_top_builddir=$ac_pwd
1741ac_abs_builddir=$ac_pwd$ac_dir_suffix
1742# for backward compatibility:
1743ac_top_builddir=$ac_top_build_prefix
ed698112
NN
1744
1745case $srcdir in
5213506e 1746 .) # We are building in place.
ed698112 1747 ac_srcdir=.
5213506e
RW
1748 ac_top_srcdir=$ac_top_builddir_sub
1749 ac_abs_top_srcdir=$ac_pwd ;;
1750 [\\/]* | ?:[\\/]* ) # Absolute name.
ed698112 1751 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1752 ac_top_srcdir=$srcdir
1753 ac_abs_top_srcdir=$srcdir ;;
1754 *) # Relative name.
1755 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1756 ac_top_srcdir=$ac_top_build_prefix$srcdir
1757 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ed698112 1758esac
5213506e 1759ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
ed698112 1760
5213506e
RW
1761 cd "$ac_dir" || { ac_status=$?; continue; }
1762 # Check for guested configure.
1763 if test -f "$ac_srcdir/configure.gnu"; then
1764 echo &&
1765 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1766 elif test -f "$ac_srcdir/configure"; then
1767 echo &&
1768 $SHELL "$ac_srcdir/configure" --help=recursive
ed698112 1769 else
5213506e
RW
1770 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1771 fi || ac_status=$?
1772 cd "$ac_pwd" || { ac_status=$?; break; }
ed698112
NN
1773 done
1774fi
1775
5213506e 1776test -n "$ac_init_help" && exit $ac_status
ed698112
NN
1777if $ac_init_version; then
1778 cat <<\_ACEOF
e3f92d3b 1779libjava configure version-unused
5213506e 1780generated by GNU Autoconf 2.64
ed698112 1781
5213506e 1782Copyright (C) 2009 Free Software Foundation, Inc.
ed698112
NN
1783This configure script is free software; the Free Software Foundation
1784gives unlimited permission to copy, distribute and modify it.
1785_ACEOF
5213506e 1786 exit
ed698112 1787fi
ed698112 1788
5213506e
RW
1789## ------------------------ ##
1790## Autoconf initialization. ##
1791## ------------------------ ##
ed698112 1792
5213506e
RW
1793# ac_fn_c_try_compile LINENO
1794# --------------------------
1795# Try to compile conftest.$ac_ext, and return whether this succeeded.
1796ac_fn_c_try_compile ()
ed698112 1797{
5213506e
RW
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 rm -f conftest.$ac_objext
1800 if { { ac_try="$ac_compile"
1801case "(($ac_try" in
1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803 *) ac_try_echo=$ac_try;;
1804esac
1805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806$as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_compile") 2>conftest.err
1808 ac_status=$?
1809 if test -s conftest.err; then
1810 grep -v '^ *+' conftest.err >conftest.er1
1811 cat conftest.er1 >&5
1812 mv -f conftest.er1 conftest.err
1813 fi
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && {
1816 test -z "$ac_c_werror_flag" ||
1817 test ! -s conftest.err
1818 } && test -s conftest.$ac_objext; then :
1819 ac_retval=0
1820else
1821 $as_echo "$as_me: failed program was:" >&5
1822sed 's/^/| /' conftest.$ac_ext >&5
ed698112 1823
5213506e
RW
1824 ac_retval=1
1825fi
1826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827 return $ac_retval
ed698112 1828
5213506e 1829} # ac_fn_c_try_compile
ed698112 1830
5213506e
RW
1831# ac_fn_cxx_try_compile LINENO
1832# ----------------------------
1833# Try to compile conftest.$ac_ext, and return whether this succeeded.
1834ac_fn_cxx_try_compile ()
1835{
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 rm -f conftest.$ac_objext
1838 if { { ac_try="$ac_compile"
1839case "(($ac_try" in
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1842esac
1843eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844$as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_compile") 2>conftest.err
1846 ac_status=$?
1847 if test -s conftest.err; then
1848 grep -v '^ *+' conftest.err >conftest.er1
1849 cat conftest.er1 >&5
1850 mv -f conftest.er1 conftest.err
1851 fi
1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853 test $ac_status = 0; } && {
1854 test -z "$ac_cxx_werror_flag" ||
1855 test ! -s conftest.err
1856 } && test -s conftest.$ac_objext; then :
1857 ac_retval=0
1858else
1859 $as_echo "$as_me: failed program was:" >&5
1860sed 's/^/| /' conftest.$ac_ext >&5
1861
1862 ac_retval=1
1863fi
1864 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1865 return $ac_retval
1866
1867} # ac_fn_cxx_try_compile
1868
1869# ac_fn_c_try_link LINENO
1870# -----------------------
1871# Try to link conftest.$ac_ext, and return whether this succeeded.
1872ac_fn_c_try_link ()
1873{
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 rm -f conftest.$ac_objext conftest$ac_exeext
1876 if { { ac_try="$ac_link"
1877case "(($ac_try" in
1878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1879 *) ac_try_echo=$ac_try;;
1880esac
1881eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1882$as_echo "$ac_try_echo"; } >&5
1883 (eval "$ac_link") 2>conftest.err
1884 ac_status=$?
1885 if test -s conftest.err; then
1886 grep -v '^ *+' conftest.err >conftest.er1
1887 cat conftest.er1 >&5
1888 mv -f conftest.er1 conftest.err
1889 fi
1890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891 test $ac_status = 0; } && {
1892 test -z "$ac_c_werror_flag" ||
1893 test ! -s conftest.err
1894 } && test -s conftest$ac_exeext && {
1895 test "$cross_compiling" = yes ||
1896 $as_test_x conftest$ac_exeext
1897 }; then :
1898 ac_retval=0
1899else
1900 $as_echo "$as_me: failed program was:" >&5
1901sed 's/^/| /' conftest.$ac_ext >&5
1902
1903 ac_retval=1
1904fi
1905 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1906 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1907 # interfere with the next link command; also delete a directory that is
1908 # left behind by Apple's compiler. We do this before executing the actions.
1909 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1910 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1911 return $ac_retval
1912
1913} # ac_fn_c_try_link
1914
1915# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1916# -------------------------------------------------------
1917# Tests whether HEADER exists and can be compiled using the include files in
1918# INCLUDES, setting the cache variable VAR accordingly.
1919ac_fn_c_check_header_compile ()
1920{
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1923$as_echo_n "checking for $2... " >&6; }
1924if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1925 $as_echo_n "(cached) " >&6
1926else
1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928/* end confdefs.h. */
1929$4
1930#include <$2>
1931_ACEOF
1932if ac_fn_c_try_compile "$LINENO"; then :
1933 eval "$3=yes"
1934else
1935 eval "$3=no"
1936fi
1937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938fi
1939eval ac_res=\$$3
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941$as_echo "$ac_res" >&6; }
1942 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1943
1944} # ac_fn_c_check_header_compile
1945
1946# ac_fn_c_try_cpp LINENO
1947# ----------------------
1948# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1949ac_fn_c_try_cpp ()
1950{
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 if { { ac_try="$ac_cpp conftest.$ac_ext"
1953case "(($ac_try" in
1954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1955 *) ac_try_echo=$ac_try;;
1956esac
1957eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1958$as_echo "$ac_try_echo"; } >&5
1959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1960 ac_status=$?
1961 if test -s conftest.err; then
1962 grep -v '^ *+' conftest.err >conftest.er1
1963 cat conftest.er1 >&5
1964 mv -f conftest.er1 conftest.err
1965 fi
1966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1967 test $ac_status = 0; } >/dev/null && {
1968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1969 test ! -s conftest.err
1970 }; then :
1971 ac_retval=0
1972else
1973 $as_echo "$as_me: failed program was:" >&5
1974sed 's/^/| /' conftest.$ac_ext >&5
1975
1976 ac_retval=1
1977fi
1978 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1979 return $ac_retval
1980
1981} # ac_fn_c_try_cpp
1982
1983# ac_fn_c_try_run LINENO
1984# ----------------------
1985# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1986# that executables *can* be run.
1987ac_fn_c_try_run ()
1988{
1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990 if { { ac_try="$ac_link"
1991case "(($ac_try" in
1992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1993 *) ac_try_echo=$ac_try;;
1994esac
1995eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996$as_echo "$ac_try_echo"; } >&5
1997 (eval "$ac_link") 2>&5
1998 ac_status=$?
1999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2001 { { case "(($ac_try" in
2002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2003 *) ac_try_echo=$ac_try;;
2004esac
2005eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2006$as_echo "$ac_try_echo"; } >&5
2007 (eval "$ac_try") 2>&5
2008 ac_status=$?
2009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010 test $ac_status = 0; }; }; then :
2011 ac_retval=0
2012else
2013 $as_echo "$as_me: program exited with status $ac_status" >&5
2014 $as_echo "$as_me: failed program was:" >&5
2015sed 's/^/| /' conftest.$ac_ext >&5
2016
2017 ac_retval=$ac_status
2018fi
2019 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2020 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2021 return $ac_retval
2022
2023} # ac_fn_c_try_run
2024
2025# ac_fn_c_check_func LINENO FUNC VAR
2026# ----------------------------------
2027# Tests whether FUNC exists, setting the cache variable VAR accordingly
2028ac_fn_c_check_func ()
2029{
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2032$as_echo_n "checking for $2... " >&6; }
2033if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2034 $as_echo_n "(cached) " >&6
2035else
2036 if test x$gcc_no_link = xyes; then
2037 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2038fi
2039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040/* end confdefs.h. */
2041/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2043#define $2 innocuous_$2
2044
2045/* System header to define __stub macros and hopefully few prototypes,
2046 which can conflict with char $2 (); below.
2047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2048 <limits.h> exists even on freestanding compilers. */
2049
2050#ifdef __STDC__
2051# include <limits.h>
2052#else
2053# include <assert.h>
2054#endif
2055
2056#undef $2
2057
2058/* Override any GCC internal prototype to avoid an error.
2059 Use char because int might match the return type of a GCC
2060 builtin and then its argument prototype would still apply. */
2061#ifdef __cplusplus
2062extern "C"
2063#endif
2064char $2 ();
2065/* The GNU C library defines this for functions which it implements
2066 to always fail with ENOSYS. Some functions are actually named
2067 something starting with __ and the normal name is an alias. */
2068#if defined __stub_$2 || defined __stub___$2
2069choke me
2070#endif
2071
2072int
2073main ()
2074{
2075return $2 ();
2076 ;
2077 return 0;
2078}
2079_ACEOF
2080if ac_fn_c_try_link "$LINENO"; then :
2081 eval "$3=yes"
2082else
2083 eval "$3=no"
2084fi
2085rm -f core conftest.err conftest.$ac_objext \
2086 conftest$ac_exeext conftest.$ac_ext
2087fi
2088eval ac_res=\$$3
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2090$as_echo "$ac_res" >&6; }
2091 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2092
2093} # ac_fn_c_check_func
2094
2095# ac_fn_cxx_try_cpp LINENO
2096# ------------------------
2097# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2098ac_fn_cxx_try_cpp ()
2099{
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101 if { { ac_try="$ac_cpp conftest.$ac_ext"
2102case "(($ac_try" in
2103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104 *) ac_try_echo=$ac_try;;
2105esac
2106eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2107$as_echo "$ac_try_echo"; } >&5
2108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2109 ac_status=$?
2110 if test -s conftest.err; then
2111 grep -v '^ *+' conftest.err >conftest.er1
2112 cat conftest.er1 >&5
2113 mv -f conftest.er1 conftest.err
2114 fi
2115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2116 test $ac_status = 0; } >/dev/null && {
2117 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2118 test ! -s conftest.err
2119 }; then :
2120 ac_retval=0
2121else
2122 $as_echo "$as_me: failed program was:" >&5
2123sed 's/^/| /' conftest.$ac_ext >&5
2124
2125 ac_retval=1
2126fi
2127 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2128 return $ac_retval
2129
2130} # ac_fn_cxx_try_cpp
2131
2132# ac_fn_cxx_try_link LINENO
2133# -------------------------
2134# Try to link conftest.$ac_ext, and return whether this succeeded.
2135ac_fn_cxx_try_link ()
2136{
2137 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2138 rm -f conftest.$ac_objext conftest$ac_exeext
2139 if { { ac_try="$ac_link"
2140case "(($ac_try" in
2141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142 *) ac_try_echo=$ac_try;;
2143esac
2144eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2145$as_echo "$ac_try_echo"; } >&5
2146 (eval "$ac_link") 2>conftest.err
2147 ac_status=$?
2148 if test -s conftest.err; then
2149 grep -v '^ *+' conftest.err >conftest.er1
2150 cat conftest.er1 >&5
2151 mv -f conftest.er1 conftest.err
2152 fi
2153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2154 test $ac_status = 0; } && {
2155 test -z "$ac_cxx_werror_flag" ||
2156 test ! -s conftest.err
2157 } && test -s conftest$ac_exeext && {
2158 test "$cross_compiling" = yes ||
2159 $as_test_x conftest$ac_exeext
2160 }; then :
2161 ac_retval=0
2162else
2163 $as_echo "$as_me: failed program was:" >&5
2164sed 's/^/| /' conftest.$ac_ext >&5
2165
2166 ac_retval=1
2167fi
2168 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2169 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2170 # interfere with the next link command; also delete a directory that is
2171 # left behind by Apple's compiler. We do this before executing the actions.
2172 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2173 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2174 return $ac_retval
2175
2176} # ac_fn_cxx_try_link
2177
2178# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2179# -------------------------------------------------------
2180# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2181# the include files in INCLUDES and setting the cache variable VAR
2182# accordingly.
2183ac_fn_c_check_header_mongrel ()
2184{
2185 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2186 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2188$as_echo_n "checking for $2... " >&6; }
2189if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2190 $as_echo_n "(cached) " >&6
2191fi
2192eval ac_res=\$$3
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2194$as_echo "$ac_res" >&6; }
2195else
2196 # Is the header compilable?
2197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2198$as_echo_n "checking $2 usability... " >&6; }
2199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200/* end confdefs.h. */
2201$4
2202#include <$2>
2203_ACEOF
2204if ac_fn_c_try_compile "$LINENO"; then :
2205 ac_header_compiler=yes
2206else
2207 ac_header_compiler=no
2208fi
2209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2211$as_echo "$ac_header_compiler" >&6; }
2212
2213# Is the header present?
2214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2215$as_echo_n "checking $2 presence... " >&6; }
2216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2217/* end confdefs.h. */
2218#include <$2>
2219_ACEOF
2220if ac_fn_c_try_cpp "$LINENO"; then :
2221 ac_header_preproc=yes
2222else
2223 ac_header_preproc=no
2224fi
2225rm -f conftest.err conftest.$ac_ext
2226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2227$as_echo "$ac_header_preproc" >&6; }
2228
2229# So? What about this header?
2230case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2231 yes:no: )
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2233$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2235$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2236 ;;
2237 no:yes:* )
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2239$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2241$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2243$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2245$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2247$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2248 ;;
2249esac
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2251$as_echo_n "checking for $2... " >&6; }
2252if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2253 $as_echo_n "(cached) " >&6
2254else
2255 eval "$3=\$ac_header_compiler"
2256fi
2257eval ac_res=\$$3
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2259$as_echo "$ac_res" >&6; }
2260fi
2261 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2262
2263} # ac_fn_c_check_header_mongrel
2264
2265# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2266# ----------------------------------------------------
2267# Tries to find if the field MEMBER exists in type AGGR, after including
2268# INCLUDES, setting cache variable VAR accordingly.
2269ac_fn_c_check_member ()
2270{
2271 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2273$as_echo_n "checking for $2.$3... " >&6; }
2274if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2275 $as_echo_n "(cached) " >&6
2276else
2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278/* end confdefs.h. */
2279$5
2280int
2281main ()
2282{
2283static $2 ac_aggr;
2284if (ac_aggr.$3)
2285return 0;
2286 ;
2287 return 0;
2288}
2289_ACEOF
2290if ac_fn_c_try_compile "$LINENO"; then :
2291 eval "$4=yes"
2292else
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294/* end confdefs.h. */
2295$5
2296int
2297main ()
2298{
2299static $2 ac_aggr;
2300if (sizeof ac_aggr.$3)
2301return 0;
2302 ;
2303 return 0;
2304}
2305_ACEOF
2306if ac_fn_c_try_compile "$LINENO"; then :
2307 eval "$4=yes"
2308else
2309 eval "$4=no"
2310fi
2311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2312fi
2313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2314fi
2315eval ac_res=\$$4
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2317$as_echo "$ac_res" >&6; }
2318 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2319
2320} # ac_fn_c_check_member
2321
2322# ac_fn_c_check_decl LINENO SYMBOL VAR
2323# ------------------------------------
2324# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2325ac_fn_c_check_decl ()
2326{
2327 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c3f247f4
RW
2328 as_decl_name=`echo $2|sed 's/ *(.*//'`
2329 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2331$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
5213506e
RW
2332if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2333 $as_echo_n "(cached) " >&6
2334else
2335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2336/* end confdefs.h. */
2337$4
2338int
2339main ()
2340{
c3f247f4
RW
2341#ifndef $as_decl_name
2342#ifdef __cplusplus
2343 (void) $as_decl_use;
2344#else
2345 (void) $as_decl_name;
2346#endif
5213506e
RW
2347#endif
2348
2349 ;
2350 return 0;
2351}
2352_ACEOF
2353if ac_fn_c_try_compile "$LINENO"; then :
2354 eval "$3=yes"
2355else
2356 eval "$3=no"
2357fi
2358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2359fi
2360eval ac_res=\$$3
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2362$as_echo "$ac_res" >&6; }
2363 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2364
2365} # ac_fn_c_check_decl
2366
2367# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2368# --------------------------------------------
2369# Tries to find the compile-time value of EXPR in a program that includes
2370# INCLUDES, setting VAR accordingly. Returns whether the value could be
2371# computed
2372ac_fn_c_compute_int ()
2373{
2374 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2375 if test "$cross_compiling" = yes; then
2376 # Depending upon the size, compute the lo and hi bounds.
2377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2378/* end confdefs.h. */
2379$4
2380int
2381main ()
2382{
2383static int test_array [1 - 2 * !(($2) >= 0)];
2384test_array [0] = 0
2385
2386 ;
2387 return 0;
2388}
2389_ACEOF
2390if ac_fn_c_try_compile "$LINENO"; then :
2391 ac_lo=0 ac_mid=0
2392 while :; do
2393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2394/* end confdefs.h. */
2395$4
2396int
2397main ()
2398{
2399static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2400test_array [0] = 0
2401
2402 ;
2403 return 0;
2404}
2405_ACEOF
2406if ac_fn_c_try_compile "$LINENO"; then :
2407 ac_hi=$ac_mid; break
2408else
2409 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2410 if test $ac_lo -le $ac_mid; then
2411 ac_lo= ac_hi=
2412 break
2413 fi
2414 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2415fi
2416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2417 done
2418else
2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420/* end confdefs.h. */
2421$4
2422int
2423main ()
2424{
2425static int test_array [1 - 2 * !(($2) < 0)];
2426test_array [0] = 0
2427
2428 ;
2429 return 0;
2430}
2431_ACEOF
2432if ac_fn_c_try_compile "$LINENO"; then :
2433 ac_hi=-1 ac_mid=-1
2434 while :; do
2435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2436/* end confdefs.h. */
2437$4
2438int
2439main ()
2440{
2441static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2442test_array [0] = 0
2443
2444 ;
2445 return 0;
2446}
2447_ACEOF
2448if ac_fn_c_try_compile "$LINENO"; then :
2449 ac_lo=$ac_mid; break
2450else
2451 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2452 if test $ac_mid -le $ac_hi; then
2453 ac_lo= ac_hi=
2454 break
2455 fi
2456 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2457fi
2458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2459 done
2460else
2461 ac_lo= ac_hi=
2462fi
2463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2464fi
2465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2466# Binary search between lo and hi bounds.
2467while test "x$ac_lo" != "x$ac_hi"; do
2468 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2470/* end confdefs.h. */
2471$4
2472int
2473main ()
2474{
2475static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2476test_array [0] = 0
2477
2478 ;
2479 return 0;
2480}
2481_ACEOF
2482if ac_fn_c_try_compile "$LINENO"; then :
2483 ac_hi=$ac_mid
2484else
2485 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2486fi
2487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2488done
2489case $ac_lo in #((
2490?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2491'') ac_retval=1 ;;
2492esac
2493 else
2494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2495/* end confdefs.h. */
2496$4
2497static long int longval () { return $2; }
2498static unsigned long int ulongval () { return $2; }
2499#include <stdio.h>
2500#include <stdlib.h>
2501int
2502main ()
2503{
2504
2505 FILE *f = fopen ("conftest.val", "w");
2506 if (! f)
2507 return 1;
2508 if (($2) < 0)
2509 {
2510 long int i = longval ();
2511 if (i != ($2))
2512 return 1;
2513 fprintf (f, "%ld", i);
2514 }
2515 else
2516 {
2517 unsigned long int i = ulongval ();
2518 if (i != ($2))
2519 return 1;
2520 fprintf (f, "%lu", i);
2521 }
2522 /* Do not output a trailing newline, as this causes \r\n confusion
2523 on some platforms. */
2524 return ferror (f) || fclose (f) != 0;
2525
2526 ;
2527 return 0;
2528}
2529_ACEOF
2530if ac_fn_c_try_run "$LINENO"; then :
2531 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2532else
2533 ac_retval=1
2534fi
2535rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2536 conftest.$ac_objext conftest.beam conftest.$ac_ext
2537rm -f conftest.val
2538
2539 fi
2540 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2541 return $ac_retval
2542
2543} # ac_fn_c_compute_int
2544
2545# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2546# -------------------------------------------
2547# Tests whether TYPE exists after having included INCLUDES, setting cache
2548# variable VAR accordingly.
2549ac_fn_c_check_type ()
2550{
2551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2553$as_echo_n "checking for $2... " >&6; }
2554if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2555 $as_echo_n "(cached) " >&6
2556else
2557 eval "$3=no"
2558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2559/* end confdefs.h. */
2560$4
2561int
2562main ()
2563{
2564if (sizeof ($2))
2565 return 0;
2566 ;
2567 return 0;
2568}
2569_ACEOF
2570if ac_fn_c_try_compile "$LINENO"; then :
2571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2572/* end confdefs.h. */
2573$4
2574int
2575main ()
2576{
2577if (sizeof (($2)))
2578 return 0;
2579 ;
2580 return 0;
2581}
2582_ACEOF
2583if ac_fn_c_try_compile "$LINENO"; then :
2584
2585else
2586 eval "$3=yes"
2587fi
2588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2589fi
2590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2591fi
2592eval ac_res=\$$3
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2594$as_echo "$ac_res" >&6; }
2595 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2596
2597} # ac_fn_c_check_type
2598cat >config.log <<_ACEOF
2599This file contains any messages produced by compilers while
2600running configure, to aid debugging if configure makes a mistake.
2601
2602It was created by libjava $as_me version-unused, which was
2603generated by GNU Autoconf 2.64. Invocation command line was
2604
2605 $ $0 $@
2606
2607_ACEOF
2608exec 5>>config.log
2609{
2610cat <<_ASUNAME
2611## --------- ##
2612## Platform. ##
2613## --------- ##
2614
2615hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2616uname -m = `(uname -m) 2>/dev/null || echo unknown`
2617uname -r = `(uname -r) 2>/dev/null || echo unknown`
2618uname -s = `(uname -s) 2>/dev/null || echo unknown`
2619uname -v = `(uname -v) 2>/dev/null || echo unknown`
2620
2621/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2622/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2623
2624/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
ed698112
NN
2625/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2626/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 2627/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ed698112
NN
2628/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2629/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2630/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2631
2632_ASUNAME
2633
2634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635for as_dir in $PATH
2636do
2637 IFS=$as_save_IFS
2638 test -z "$as_dir" && as_dir=.
5213506e
RW
2639 $as_echo "PATH: $as_dir"
2640 done
2641IFS=$as_save_IFS
ed698112
NN
2642
2643} >&5
2644
2645cat >&5 <<_ACEOF
2646
2647
2648## ----------- ##
2649## Core tests. ##
2650## ----------- ##
2651
2652_ACEOF
2653
2654
2655# Keep a trace of the command line.
2656# Strip out --no-create and --no-recursion so they do not pile up.
2657# Strip out --silent because we don't want to record it for future runs.
2658# Also quote any args containing shell meta-characters.
2659# Make two passes to allow for proper duplicate-argument suppression.
2660ac_configure_args=
2661ac_configure_args0=
2662ac_configure_args1=
ed698112
NN
2663ac_must_keep_next=false
2664for ac_pass in 1 2
2665do
2666 for ac_arg
2667 do
2668 case $ac_arg in
2669 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2670 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2671 | -silent | --silent | --silen | --sile | --sil)
2672 continue ;;
5213506e
RW
2673 *\'*)
2674 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ed698112
NN
2675 esac
2676 case $ac_pass in
5213506e 2677 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
ed698112 2678 2)
5213506e 2679 as_fn_append ac_configure_args1 " '$ac_arg'"
ed698112
NN
2680 if test $ac_must_keep_next = true; then
2681 ac_must_keep_next=false # Got value, back to normal.
2682 else
2683 case $ac_arg in
2684 *=* | --config-cache | -C | -disable-* | --disable-* \
2685 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2686 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2687 | -with-* | --with-* | -without-* | --without-* | --x)
2688 case "$ac_configure_args0 " in
2689 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2690 esac
2691 ;;
2692 -* ) ac_must_keep_next=true ;;
2693 esac
2694 fi
5213506e 2695 as_fn_append ac_configure_args " '$ac_arg'"
ed698112
NN
2696 ;;
2697 esac
2698 done
2699done
5213506e
RW
2700{ ac_configure_args0=; unset ac_configure_args0;}
2701{ ac_configure_args1=; unset ac_configure_args1;}
ed698112
NN
2702
2703# When interrupted or exit'd, cleanup temporary files, and complete
2704# config.log. We remove comments because anyway the quotes in there
2705# would cause problems or look ugly.
5213506e
RW
2706# WARNING: Use '\'' to represent an apostrophe within the trap.
2707# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ed698112
NN
2708trap 'exit_status=$?
2709 # Save into config.log some information that might help in debugging.
2710 {
2711 echo
2712
2713 cat <<\_ASBOX
2714## ---------------- ##
2715## Cache variables. ##
2716## ---------------- ##
2717_ASBOX
2718 echo
2719 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2720(
2721 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2722 eval ac_val=\$$ac_var
2723 case $ac_val in #(
2724 *${as_nl}*)
2725 case $ac_var in #(
2726 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2727$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2728 esac
2729 case $ac_var in #(
2730 _ | IFS | as_nl) ;; #(
2731 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2732 *) { eval $ac_var=; unset $ac_var;} ;;
2733 esac ;;
2734 esac
2735 done
ed698112 2736 (set) 2>&1 |
5213506e
RW
2737 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2738 *${as_nl}ac_space=\ *)
ed698112 2739 sed -n \
5213506e
RW
2740 "s/'\''/'\''\\\\'\'''\''/g;
2741 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2742 ;; #(
ed698112 2743 *)
5213506e 2744 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ed698112 2745 ;;
5213506e
RW
2746 esac |
2747 sort
2748)
ed698112
NN
2749 echo
2750
2751 cat <<\_ASBOX
2752## ----------------- ##
2753## Output variables. ##
2754## ----------------- ##
2755_ASBOX
2756 echo
2757 for ac_var in $ac_subst_vars
2758 do
5213506e
RW
2759 eval ac_val=\$$ac_var
2760 case $ac_val in
2761 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2762 esac
2763 $as_echo "$ac_var='\''$ac_val'\''"
ed698112
NN
2764 done | sort
2765 echo
2766
2767 if test -n "$ac_subst_files"; then
2768 cat <<\_ASBOX
5213506e
RW
2769## ------------------- ##
2770## File substitutions. ##
2771## ------------------- ##
ed698112
NN
2772_ASBOX
2773 echo
2774 for ac_var in $ac_subst_files
2775 do
5213506e
RW
2776 eval ac_val=\$$ac_var
2777 case $ac_val in
2778 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2779 esac
2780 $as_echo "$ac_var='\''$ac_val'\''"
ed698112
NN
2781 done | sort
2782 echo
2783 fi
2784
2785 if test -s confdefs.h; then
2786 cat <<\_ASBOX
2787## ----------- ##
2788## confdefs.h. ##
2789## ----------- ##
2790_ASBOX
2791 echo
5213506e 2792 cat confdefs.h
ed698112
NN
2793 echo
2794 fi
2795 test "$ac_signal" != 0 &&
5213506e
RW
2796 $as_echo "$as_me: caught signal $ac_signal"
2797 $as_echo "$as_me: exit $exit_status"
ed698112 2798 } >&5
5213506e
RW
2799 rm -f core *.core core.conftest.* &&
2800 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ed698112 2801 exit $exit_status
5213506e 2802' 0
ed698112 2803for ac_signal in 1 2 13 15; do
5213506e 2804 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
ed698112
NN
2805done
2806ac_signal=0
2807
2808# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2809rm -f -r conftest* confdefs.h
2810
2811$as_echo "/* confdefs.h */" > confdefs.h
ed698112
NN
2812
2813# Predefined preprocessor variables.
2814
2815cat >>confdefs.h <<_ACEOF
2816#define PACKAGE_NAME "$PACKAGE_NAME"
2817_ACEOF
2818
ed698112
NN
2819cat >>confdefs.h <<_ACEOF
2820#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2821_ACEOF
2822
ed698112
NN
2823cat >>confdefs.h <<_ACEOF
2824#define PACKAGE_VERSION "$PACKAGE_VERSION"
2825_ACEOF
2826
ed698112
NN
2827cat >>confdefs.h <<_ACEOF
2828#define PACKAGE_STRING "$PACKAGE_STRING"
2829_ACEOF
2830
ed698112
NN
2831cat >>confdefs.h <<_ACEOF
2832#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2833_ACEOF
2834
5213506e
RW
2835cat >>confdefs.h <<_ACEOF
2836#define PACKAGE_URL "$PACKAGE_URL"
2837_ACEOF
2838
ed698112
NN
2839
2840# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2841# Prefer an explicitly selected file to automatically selected ones.
2842ac_site_file1=NONE
2843ac_site_file2=NONE
2844if test -n "$CONFIG_SITE"; then
2845 ac_site_file1=$CONFIG_SITE
2846elif test "x$prefix" != xNONE; then
2847 ac_site_file1=$prefix/share/config.site
2848 ac_site_file2=$prefix/etc/config.site
2849else
2850 ac_site_file1=$ac_default_prefix/share/config.site
2851 ac_site_file2=$ac_default_prefix/etc/config.site
2852fi
2853for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2854do
2855 test "x$ac_site_file" = xNONE && continue
ee9dd372 2856 if test -r "$ac_site_file"; then
5213506e
RW
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2858$as_echo "$as_me: loading site script $ac_site_file" >&6;}
ed698112 2859 sed 's/^/| /' "$ac_site_file" >&5
ee9dd372
TT
2860 . "$ac_site_file"
2861 fi
2862done
2863
2864if test -r "$cache_file"; then
ed698112
NN
2865 # Some versions of bash will fail to source /dev/null (special
2866 # files actually), so we avoid doing that.
2867 if test -f "$cache_file"; then
5213506e
RW
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2869$as_echo "$as_me: loading cache $cache_file" >&6;}
ed698112 2870 case $cache_file in
5213506e
RW
2871 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2872 *) . "./$cache_file";;
ed698112
NN
2873 esac
2874 fi
ee9dd372 2875else
5213506e
RW
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2877$as_echo "$as_me: creating cache $cache_file" >&6;}
ed698112
NN
2878 >$cache_file
2879fi
2880
2881# Check that the precious variables saved in the cache have kept the same
2882# value.
2883ac_cache_corrupted=false
5213506e 2884for ac_var in $ac_precious_vars; do
ed698112
NN
2885 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2886 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2887 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2888 eval ac_new_val=\$ac_env_${ac_var}_value
ed698112
NN
2889 case $ac_old_set,$ac_new_set in
2890 set,)
5213506e
RW
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2892$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ed698112
NN
2893 ac_cache_corrupted=: ;;
2894 ,set)
5213506e
RW
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2896$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ed698112
NN
2897 ac_cache_corrupted=: ;;
2898 ,);;
2899 *)
2900 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2901 # differences in whitespace do not lead to failure.
2902 ac_old_val_w=`echo x $ac_old_val`
2903 ac_new_val_w=`echo x $ac_new_val`
2904 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2906$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2907 ac_cache_corrupted=:
2908 else
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2910$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2911 eval $ac_var=\$ac_old_val
2912 fi
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2914$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2916$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
ed698112
NN
2917 fi;;
2918 esac
2919 # Pass precious variables to config.status.
2920 if test "$ac_new_set" = set; then
2921 case $ac_new_val in
5213506e 2922 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ed698112
NN
2923 *) ac_arg=$ac_var=$ac_new_val ;;
2924 esac
2925 case " $ac_configure_args " in
2926 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2927 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
ed698112
NN
2928 esac
2929 fi
2930done
2931if $ac_cache_corrupted; then
5213506e
RW
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2933$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2935$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2936 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
ee9dd372 2937fi
5213506e
RW
2938## -------------------- ##
2939## Main body of script. ##
2940## -------------------- ##
ee9dd372 2941
ade710a5
TF
2942ac_ext=c
2943ac_cpp='$CPP $CPPFLAGS'
2944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946ac_compiler_gnu=$ac_cv_c_compiler_gnu
2947
ed698112
NN
2948
2949
2950
2951
2952
2953
2954
7f7ba9bf 2955ac_aux_dir=
5213506e
RW
2956for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2957 for ac_t in install-sh install.sh shtool; do
2958 if test -f "$ac_dir/$ac_t"; then
2959 ac_aux_dir=$ac_dir
2960 ac_install_sh="$ac_aux_dir/$ac_t -c"
2961 break 2
2962 fi
2963 done
7f7ba9bf
TT
2964done
2965if test -z "$ac_aux_dir"; then
5213506e 2966 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
7f7ba9bf 2967fi
5213506e
RW
2968
2969# These three variables are undocumented and unsupported,
2970# and are intended to be withdrawn in a future Autoconf release.
2971# They can cause serious problems if a builder's source tree is in a directory
2972# whose full name contains unusual characters.
2973ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2974ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2975ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2976
7f7ba9bf 2977
ed698112 2978# Make sure we can run config.sub.
5213506e
RW
2979$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2980 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2981
2982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2983$as_echo_n "checking build system type... " >&6; }
2984if test "${ac_cv_build+set}" = set; then :
2985 $as_echo_n "(cached) " >&6
2986else
2987 ac_build_alias=$build_alias
2988test "x$ac_build_alias" = x &&
2989 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2990test "x$ac_build_alias" = x &&
2991 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2992ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2993 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2994
2995fi
2996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2997$as_echo "$ac_cv_build" >&6; }
2998case $ac_cv_build in
2999*-*-*) ;;
3000*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3001esac
ed698112 3002build=$ac_cv_build
5213506e
RW
3003ac_save_IFS=$IFS; IFS='-'
3004set x $ac_cv_build
3005shift
3006build_cpu=$1
3007build_vendor=$2
3008shift; shift
3009# Remember, the first character of IFS is used to create $*,
3010# except with old shells:
3011build_os=$*
3012IFS=$ac_save_IFS
3013case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ed698112
NN
3014
3015
215c351a
PB
3016 case ${build_alias} in
3017 "") build_noncanonical=${build} ;;
3018 *) build_noncanonical=${build_alias} ;;
3019esac
3020
3021 case ${host_alias} in
3022 "") host_noncanonical=${build_noncanonical} ;;
3023 *) host_noncanonical=${host_alias} ;;
3024esac
3025
3026 case ${target_alias} in
3027 "") target_noncanonical=${host_noncanonical} ;;
3028 *) target_noncanonical=${target_alias} ;;
3029esac
3030
57255173
PB
3031
3032# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3033# have matching libraries, they should use host libraries: Makefile.tpl
3034# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3035# However, they still use the build modules, because the corresponding
3036# host modules (e.g. bison) are only built for the host when bootstrap
3037# finishes. So:
3038# - build_subdir is where we find build modules, and never changes.
3039# - build_libsubdir is where we find build libraries, and can be overridden.
3040
3041# Prefix 'build-' so this never conflicts with target_subdir.
215c351a 3042build_subdir="build-${build_noncanonical}"
57255173 3043
5213506e
RW
3044# Check whether --with-build-libsubdir was given.
3045if test "${with_build_libsubdir+set}" = set; then :
3046 withval=$with_build_libsubdir; build_libsubdir="$withval"
57255173
PB
3047else
3048 build_libsubdir="$build_subdir"
5213506e
RW
3049fi
3050
215c351a
PB
3051# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3052if ( test $srcdir = . && test -d gcc ) \
3053 || test -d $srcdir/../host-${host_noncanonical}; then
3054 host_subdir="host-${host_noncanonical}"
3055else
3056 host_subdir=.
3057fi
3058# No prefix.
3059target_subdir=${target_noncanonical}
3060
3061
3062# We use these options to decide which functions to include.
3063
5213506e
RW
3064# Check whether --with-target-subdir was given.
3065if test "${with_target_subdir+set}" = set; then :
3066 withval=$with_target_subdir;
3067fi
215c351a 3068
215c351a
PB
3069
3070# We may get other options which we don't document:
3071# --with-target-subdir, --with-multisrctop, --with-multisubdir
3072
8a489465
JH
3073# Find the rest of the source tree framework.
3074# Default to --enable-multilib
5213506e
RW
3075# Check whether --enable-multilib was given.
3076if test "${enable_multilib+set}" = set; then :
3077 enableval=$enable_multilib; case "$enableval" in
8a489465
JH
3078 yes) multilib=yes ;;
3079 no) multilib=no ;;
5213506e 3080 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
8a489465
JH
3081 esac
3082else
3083 multilib=yes
5213506e
RW
3084fi
3085
8a489465
JH
3086
3087# We may get other options which we leave undocumented:
3088# --with-target-subdir, --with-multisrctop, --with-multisubdir
3089# See config-ml.in if you want the gory details.
3090
3091if test "$srcdir" = "."; then
3092 if test "$with_target_subdir" != "."; then
3093 multi_basedir="$srcdir/$with_multisrctop../.."
215c351a 3094 else
8a489465 3095 multi_basedir="$srcdir/$with_multisrctop.."
215c351a
PB
3096 fi
3097else
8a489465 3098 multi_basedir="$srcdir/.."
215c351a
PB
3099fi
3100
8a489465
JH
3101
3102# Even if the default multilib is not a cross compilation,
3103# it may be that some of the other multilibs are.
3104if test $cross_compiling = no && test $multilib = yes \
3105 && test "x${with_multisubdir}" != x ; then
3106 cross_compiling=maybe
3107fi
3108
5213506e 3109ac_config_commands="$ac_config_commands default-1"
215c351a
PB
3110
3111
5213506e
RW
3112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3113$as_echo_n "checking host system type... " >&6; }
3114if test "${ac_cv_host+set}" = set; then :
3115 $as_echo_n "(cached) " >&6
ed698112 3116else
5213506e
RW
3117 if test "x$host_alias" = x; then
3118 ac_cv_host=$ac_cv_build
3119else
3120 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3121 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3122fi
ed698112
NN
3123
3124fi
5213506e
RW
3125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3126$as_echo "$ac_cv_host" >&6; }
3127case $ac_cv_host in
3128*-*-*) ;;
3129*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3130esac
ed698112 3131host=$ac_cv_host
5213506e
RW
3132ac_save_IFS=$IFS; IFS='-'
3133set x $ac_cv_host
3134shift
3135host_cpu=$1
3136host_vendor=$2
3137shift; shift
3138# Remember, the first character of IFS is used to create $*,
3139# except with old shells:
3140host_os=$*
3141IFS=$ac_save_IFS
3142case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ade710a5
TF
3143
3144
5213506e
RW
3145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3146$as_echo_n "checking target system type... " >&6; }
3147if test "${ac_cv_target+set}" = set; then :
3148 $as_echo_n "(cached) " >&6
ed698112 3149else
5213506e
RW
3150 if test "x$target_alias" = x; then
3151 ac_cv_target=$ac_cv_host
3152else
3153 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3154 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3155fi
ed698112
NN
3156
3157fi
5213506e
RW
3158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3159$as_echo "$ac_cv_target" >&6; }
3160case $ac_cv_target in
3161*-*-*) ;;
3162*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3163esac
ed698112 3164target=$ac_cv_target
5213506e
RW
3165ac_save_IFS=$IFS; IFS='-'
3166set x $ac_cv_target
3167shift
3168target_cpu=$1
3169target_vendor=$2
3170shift; shift
3171# Remember, the first character of IFS is used to create $*,
3172# except with old shells:
3173target_os=$*
3174IFS=$ac_save_IFS
3175case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
7f7ba9bf 3176
7f7ba9bf
TT
3177
3178# The aliases save the names the user supplied, while $host etc.
3179# will get canonicalized.
ed698112 3180test -n "$target_alias" &&
7f7ba9bf
TT
3181 test "$program_prefix$program_suffix$program_transform_name" = \
3182 NONENONEs,x,x, &&
3183 program_prefix=${target_alias}-
5213506e 3184
bc03b358
NN
3185 case ${build_alias} in
3186 "") build_noncanonical=${build} ;;
3187 *) build_noncanonical=${build_alias} ;;
3188esac
3189
bc03b358
NN
3190 case ${target_alias} in
3191 "") target_noncanonical=${host_noncanonical} ;;
3192 *) target_noncanonical=${target_alias} ;;
3193esac
3194
3195
60557047
MK
3196
3197
bc03b358
NN
3198# This works around the fact that libtool configuration may change LD
3199# for this particular configuration, but some shells, instead of
3200# keeping the changes in LD private, export them just because LD is
3201# exported.
3202ORIGINAL_LD_FOR_MULTILIBS=$LD
3203
5213506e
RW
3204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3205$as_echo_n "checking whether ln -s works... " >&6; }
ed698112
NN
3206LN_S=$as_ln_s
3207if test "$LN_S" = "ln -s"; then
5213506e
RW
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3209$as_echo "yes" >&6; }
bc03b358 3210else
5213506e
RW
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3212$as_echo "no, using $LN_S" >&6; }
bc03b358
NN
3213fi
3214
3215
3216# This works around an automake problem.
3217mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
3218
3219
ed698112 3220
5213506e
RW
3221# Check whether --with-cross-host was given.
3222if test "${with_cross_host+set}" = set; then :
3223 withval=$with_cross_host;
3224fi
ed698112 3225
bc03b358
NN
3226
3227
5213506e
RW
3228# Check whether --with-newlib was given.
3229if test "${with_newlib+set}" = set; then :
3230 withval=$with_newlib;
3231fi
bc03b358
NN
3232
3233
5213506e
RW
3234# Check whether --enable-version-specific-runtime-libs was given.
3235if test "${enable_version_specific_runtime_libs+set}" = set; then :
3236 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
bc03b358
NN
3237 yes) version_specific_libs=yes ;;
3238 no) version_specific_libs=no ;;
5213506e 3239 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
bc03b358
NN
3240 esac
3241else
3242 version_specific_libs=no
3243
5213506e
RW
3244fi
3245
bc03b358 3246
34677bae
MK
3247# Check whether --enable-browser-plugin was given.
3248if test "${enable_browser_plugin+set}" = set; then :
3249 enableval=$enable_browser_plugin; case "$enableval" in
3250 yes) browser_plugin_enabled=yes ;;
3251 no) browser_plugin_enabled=no ;;
3252 *) as_fn_error "Unknown argument to enable/disable browser plugin" "$LINENO" 5;;
648e8d6d
TF
3253 esac
3254else
34677bae 3255 browser_plugin_enabled=no
648e8d6d 3256
5213506e
RW
3257fi
3258
648e8d6d 3259
5213506e
RW
3260# Check whether --enable-gconf-peer was given.
3261if test "${enable_gconf_peer+set}" = set; then :
3262 enableval=$enable_gconf_peer; case "$enableval" in
ac1ed908
MW
3263 yes) gconf_enabled=yes ;;
3264 no) gconf_enabled=no ;;
5213506e 3265 *) as_fn_error "Unknown argument to enable/disable gconf-peer" "$LINENO" 5;;
ac1ed908
MW
3266 esac
3267else
3268 gconf_enabled=no
3269
5213506e 3270fi
ac1ed908 3271
cd6d4007 3272
cd6d4007 3273
5213506e
RW
3274# Check whether --with-antlr-jar was given.
3275if test "${with_antlr_jar+set}" = set; then :
3276 withval=$with_antlr_jar;
cd6d4007
MK
3277 ANTLR_JAR=$withval
3278
3279else
3280
3281 ANTLR_JAR=
3282
5213506e 3283fi
cd6d4007 3284
5213506e
RW
3285
3286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr.jar" >&5
3287$as_echo_n "checking for antlr.jar... " >&6; }
cd6d4007
MK
3288if test "x$ANTLR_JAR" = x; then
3289 for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
3290 /usr/share/antlr/lib /usr/share/java /usr/lib;
3291 do
3292 if test -f "$antlr_lib_home/antlr.jar"; then
3293 # FIXME: version check for antlr needed without using a VM
3294 ANTLR_JAR="$antlr_lib_home/antlr.jar"
3295 break
3296 fi
3297 done
3298 if test "x$ANTLR_JAR" = x; then
5213506e
RW
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
3300$as_echo "not found" >&6; }
cd6d4007 3301 else
5213506e
RW
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3303$as_echo "$ANTLR_JAR" >&6; }
cd6d4007
MK
3304 fi
3305else
3306 if test -f "${ANTLR_JAR}"; then
5213506e
RW
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3308$as_echo "$ANTLR_JAR" >&6; }
cd6d4007 3309 else
5213506e 3310 as_fn_error "antlr jar file not found: $ANTLR_JAR" "$LINENO" 5
cd6d4007
MK
3311 fi
3312fi
3313
3314
5213506e
RW
3315# Check whether --enable-gjdoc was given.
3316if test "${enable_gjdoc+set}" = set; then :
3317 enableval=$enable_gjdoc; case "${enableval}" in
cd6d4007
MK
3318 yes) BUILD_GJDOC=yes ;;
3319 no) BUILD_GJDOC=no ;;
3320 *) BUILD_GJDOC=yes ;;
3321 esac
3322else
3323 BUILD_GJDOC=maybe
5213506e
RW
3324fi
3325
cd6d4007 3326
5213506e
RW
3327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gjdoc" >&5
3328$as_echo_n "checking whether to build gjdoc... " >&6; }
cd6d4007
MK
3329if test "x$BUILD_GJDOC" = xmaybe; then
3330 if test -f "${ANTLR_JAR}"; then
3331 BUILD_GJDOC=yes
5213506e
RW
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3333$as_echo "yes" >&6; }
cd6d4007
MK
3334 else
3335 BUILD_GJDOC=no
5213506e
RW
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, antlr.jar not found" >&5
3337$as_echo "no, antlr.jar not found" >&6; }
cd6d4007
MK
3338 fi
3339else
5213506e
RW
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_GJDOC" >&5
3341$as_echo "$BUILD_GJDOC" >&6; }
cd6d4007 3342fi
5213506e 3343 if test "x${BUILD_GJDOC}" = xyes; then
cd6d4007
MK
3344 CREATE_GJDOC_TRUE=
3345 CREATE_GJDOC_FALSE='#'
3346else
3347 CREATE_GJDOC_TRUE='#'
3348 CREATE_GJDOC_FALSE=
3349fi
3350
3351
5213506e
RW
3352# Check whether --enable-java-maintainer-mode was given.
3353if test "${enable_java_maintainer_mode+set}" = set; then :
3354 enableval=$enable_java_maintainer_mode;
3355fi
97b8365c 3356
5213506e 3357 if test "$enable_java_maintainer_mode" = yes; then
97b8365c
TT
3358 JAVA_MAINTAINER_MODE_TRUE=
3359 JAVA_MAINTAINER_MODE_FALSE='#'
3360else
3361 JAVA_MAINTAINER_MODE_TRUE='#'
3362 JAVA_MAINTAINER_MODE_FALSE=
3363fi
3364
3365
aed6152d 3366# It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
bc03b358 3367
ee9dd372 3368
a5d28a12 3369# For libstdc++-v3, -fno-builtin must be present here so that a
ed698112
NN
3370# non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
3371# used in later tests. This may not be necessary in libjava; I don't know.
ed698112
NN
3372save_CXXFLAGS="$CXXFLAGS"
3373CXXFLAGS="$CXXFLAGS -fno-builtin"
3374ac_ext=c
3375ac_cpp='$CPP $CPPFLAGS'
3376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3378ac_compiler_gnu=$ac_cv_c_compiler_gnu
3379if test -n "$ac_tool_prefix"; then
3380 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3381set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3383$as_echo_n "checking for $ac_word... " >&6; }
3384if test "${ac_cv_prog_CC+set}" = set; then :
3385 $as_echo_n "(cached) " >&6
ed698112
NN
3386else
3387 if test -n "$CC"; then
3388 ac_cv_prog_CC="$CC" # Let the user override the test.
3389else
3390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391for as_dir in $PATH
3392do
3393 IFS=$as_save_IFS
3394 test -z "$as_dir" && as_dir=.
5213506e
RW
3395 for ac_exec_ext in '' $ac_executable_extensions; do
3396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ed698112 3397 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112
NN
3399 break 2
3400 fi
3401done
5213506e
RW
3402 done
3403IFS=$as_save_IFS
ee9dd372 3404
ed698112
NN
3405fi
3406fi
3407CC=$ac_cv_prog_CC
3408if test -n "$CC"; then
5213506e
RW
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3410$as_echo "$CC" >&6; }
ed698112 3411else
5213506e
RW
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413$as_echo "no" >&6; }
ed698112 3414fi
54ce7452 3415
5213506e 3416
ed698112
NN
3417fi
3418if test -z "$ac_cv_prog_CC"; then
3419 ac_ct_CC=$CC
3420 # Extract the first word of "gcc", so it can be a program name with args.
ee9dd372 3421set dummy gcc; ac_word=$2
5213506e
RW
3422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423$as_echo_n "checking for $ac_word... " >&6; }
3424if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3425 $as_echo_n "(cached) " >&6
ed698112
NN
3426else
3427 if test -n "$ac_ct_CC"; then
3428 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3429else
3430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431for as_dir in $PATH
3432do
3433 IFS=$as_save_IFS
3434 test -z "$as_dir" && as_dir=.
5213506e
RW
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ed698112 3437 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112
NN
3439 break 2
3440 fi
3441done
5213506e
RW
3442 done
3443IFS=$as_save_IFS
ed698112
NN
3444
3445fi
3446fi
3447ac_ct_CC=$ac_cv_prog_ac_ct_CC
3448if test -n "$ac_ct_CC"; then
5213506e
RW
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3450$as_echo "$ac_ct_CC" >&6; }
ed698112 3451else
5213506e
RW
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453$as_echo "no" >&6; }
ed698112
NN
3454fi
3455
5213506e
RW
3456 if test "x$ac_ct_CC" = x; then
3457 CC=""
3458 else
3459 case $cross_compiling:$ac_tool_warned in
3460yes:)
3461{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3462$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3463ac_tool_warned=yes ;;
3464esac
3465 CC=$ac_ct_CC
3466 fi
ed698112
NN
3467else
3468 CC="$ac_cv_prog_CC"
3469fi
3470
3471if test -z "$CC"; then
5213506e
RW
3472 if test -n "$ac_tool_prefix"; then
3473 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ed698112 3474set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476$as_echo_n "checking for $ac_word... " >&6; }
3477if test "${ac_cv_prog_CC+set}" = set; then :
3478 $as_echo_n "(cached) " >&6
ee9dd372
TT
3479else
3480 if test -n "$CC"; then
3481 ac_cv_prog_CC="$CC" # Let the user override the test.
3482else
ed698112
NN
3483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484for as_dir in $PATH
3485do
3486 IFS=$as_save_IFS
3487 test -z "$as_dir" && as_dir=.
5213506e
RW
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ed698112 3490 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112
NN
3492 break 2
3493 fi
3494done
5213506e
RW
3495 done
3496IFS=$as_save_IFS
ed698112 3497
ee9dd372
TT
3498fi
3499fi
ed698112 3500CC=$ac_cv_prog_CC
ee9dd372 3501if test -n "$CC"; then
5213506e
RW
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3503$as_echo "$CC" >&6; }
ed698112 3504else
5213506e
RW
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506$as_echo "no" >&6; }
ed698112
NN
3507fi
3508
ade710a5 3509
5213506e 3510 fi
ed698112 3511fi
ee9dd372
TT
3512if test -z "$CC"; then
3513 # Extract the first word of "cc", so it can be a program name with args.
3514set dummy cc; ac_word=$2
5213506e
RW
3515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3516$as_echo_n "checking for $ac_word... " >&6; }
3517if test "${ac_cv_prog_CC+set}" = set; then :
3518 $as_echo_n "(cached) " >&6
ee9dd372
TT
3519else
3520 if test -n "$CC"; then
3521 ac_cv_prog_CC="$CC" # Let the user override the test.
3522else
ee9dd372 3523 ac_prog_rejected=no
ed698112
NN
3524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525for as_dir in $PATH
3526do
3527 IFS=$as_save_IFS
3528 test -z "$as_dir" && as_dir=.
5213506e
RW
3529 for ac_exec_ext in '' $ac_executable_extensions; do
3530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ed698112
NN
3531 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3532 ac_prog_rejected=yes
3533 continue
3534 fi
3535 ac_cv_prog_CC="cc"
5213506e 3536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112
NN
3537 break 2
3538 fi
3539done
5213506e
RW
3540 done
3541IFS=$as_save_IFS
ed698112 3542
ee9dd372
TT
3543if test $ac_prog_rejected = yes; then
3544 # We found a bogon in the path, so make sure we never use it.
3545 set dummy $ac_cv_prog_CC
3546 shift
ed698112 3547 if test $# != 0; then
ee9dd372
TT
3548 # We chose a different compiler from the bogus one.
3549 # However, it has the same basename, so the bogon will be chosen
3550 # first if we set CC to just the basename; use the full file name.
3551 shift
ed698112 3552 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
ee9dd372
TT
3553 fi
3554fi
3555fi
3556fi
ed698112 3557CC=$ac_cv_prog_CC
ee9dd372 3558if test -n "$CC"; then
5213506e
RW
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3560$as_echo "$CC" >&6; }
ee9dd372 3561else
5213506e
RW
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563$as_echo "no" >&6; }
ee9dd372
TT
3564fi
3565
5213506e 3566
ed698112
NN
3567fi
3568if test -z "$CC"; then
3569 if test -n "$ac_tool_prefix"; then
5213506e 3570 for ac_prog in cl.exe
ed698112
NN
3571 do
3572 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3573set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
3574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3575$as_echo_n "checking for $ac_word... " >&6; }
3576if test "${ac_cv_prog_CC+set}" = set; then :
3577 $as_echo_n "(cached) " >&6
158a8e6b
AO
3578else
3579 if test -n "$CC"; then
3580 ac_cv_prog_CC="$CC" # Let the user override the test.
3581else
ed698112
NN
3582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583for as_dir in $PATH
3584do
3585 IFS=$as_save_IFS
3586 test -z "$as_dir" && as_dir=.
5213506e
RW
3587 for ac_exec_ext in '' $ac_executable_extensions; do
3588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ed698112 3589 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 3590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112
NN
3591 break 2
3592 fi
3593done
5213506e
RW
3594 done
3595IFS=$as_save_IFS
ed698112 3596
158a8e6b
AO
3597fi
3598fi
ed698112 3599CC=$ac_cv_prog_CC
158a8e6b 3600if test -n "$CC"; then
5213506e
RW
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3602$as_echo "$CC" >&6; }
158a8e6b 3603else
5213506e
RW
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3605$as_echo "no" >&6; }
158a8e6b 3606fi
ed698112 3607
5213506e 3608
ed698112
NN
3609 test -n "$CC" && break
3610 done
3611fi
3612if test -z "$CC"; then
3613 ac_ct_CC=$CC
5213506e 3614 for ac_prog in cl.exe
ed698112
NN
3615do
3616 # Extract the first word of "$ac_prog", so it can be a program name with args.
3617set dummy $ac_prog; ac_word=$2
5213506e
RW
3618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3619$as_echo_n "checking for $ac_word... " >&6; }
3620if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3621 $as_echo_n "(cached) " >&6
ed698112
NN
3622else
3623 if test -n "$ac_ct_CC"; then
3624 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3625else
3626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627for as_dir in $PATH
3628do
3629 IFS=$as_save_IFS
3630 test -z "$as_dir" && as_dir=.
5213506e
RW
3631 for ac_exec_ext in '' $ac_executable_extensions; do
3632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ed698112 3633 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 3634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112 3635 break 2
158a8e6b 3636 fi
ed698112 3637done
5213506e
RW
3638 done
3639IFS=$as_save_IFS
ed698112
NN
3640
3641fi
3642fi
3643ac_ct_CC=$ac_cv_prog_ac_ct_CC
3644if test -n "$ac_ct_CC"; then
5213506e
RW
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3646$as_echo "$ac_ct_CC" >&6; }
ed698112 3647else
5213506e
RW
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3649$as_echo "no" >&6; }
ee9dd372
TT
3650fi
3651
5213506e 3652
ed698112
NN
3653 test -n "$ac_ct_CC" && break
3654done
3655
5213506e
RW
3656 if test "x$ac_ct_CC" = x; then
3657 CC=""
3658 else
3659 case $cross_compiling:$ac_tool_warned in
3660yes:)
3661{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3662$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3663ac_tool_warned=yes ;;
3664esac
3665 CC=$ac_ct_CC
3666 fi
ed698112
NN
3667fi
3668
3669fi
3670
3671
5213506e
RW
3672test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3673$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3674as_fn_error "no acceptable C compiler found in \$PATH
3675See \`config.log' for more details." "$LINENO" 5; }
ed698112
NN
3676
3677# Provide some information about the compiler.
5213506e
RW
3678$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3679set X $ac_compile
3680ac_compiler=$2
3681for ac_option in --version -v -V -qversion; do
3682 { { ac_try="$ac_compiler $ac_option >&5"
3683case "(($ac_try" in
3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685 *) ac_try_echo=$ac_try;;
3686esac
3687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3688$as_echo "$ac_try_echo"; } >&5
3689 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ed698112 3690 ac_status=$?
5213506e
RW
3691 if test -s conftest.err; then
3692 sed '10a\
3693... rest of stderr output deleted ...
3694 10q' conftest.err >conftest.er1
3695 cat conftest.er1 >&5
3696 rm -f conftest.er1 conftest.err
3697 fi
3698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3699 test $ac_status = 0; }
3700done
ed698112 3701
5213506e 3702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ed698112
NN
3703/* end confdefs.h. */
3704
3705int
3706main ()
3707{
3708
3709 ;
3710 return 0;
3711}
3712_ACEOF
3713# FIXME: Cleanup?
5213506e 3714if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ed698112
NN
3715 (eval $ac_link) 2>&5
3716 ac_status=$?
5213506e
RW
3717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3718 test $ac_status = 0; }; then :
ed698112
NN
3719 gcc_no_link=no
3720else
3721 gcc_no_link=yes
3722fi
ed698112
NN
3723if test x$gcc_no_link = xyes; then
3724 # Setting cross_compile will disable run tests; it will
3725 # also disable AC_CHECK_FILE but that's generally
3726 # correct if we can't link.
3727 cross_compiling=yes
3728 EXEEXT=
3729else
5213506e 3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ed698112
NN
3731/* end confdefs.h. */
3732
3733int
3734main ()
3735{
158a8e6b 3736
ed698112
NN
3737 ;
3738 return 0;
3739}
3740_ACEOF
3741ac_clean_files_save=$ac_clean_files
5213506e 3742ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
ed698112
NN
3743# Try to create an executable without -o first, disregard a.out.
3744# It will help us diagnose broken compilers, and finding out an intuition
3745# of exeext.
5213506e
RW
3746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3747$as_echo_n "checking for C compiler default output file name... " >&6; }
3748ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3749
3750# The possible output files:
3751ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3752
3753ac_rmfiles=
3754for ac_file in $ac_files
3755do
3756 case $ac_file in
3757 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3758 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3759 esac
3760done
3761rm -f $ac_rmfiles
3762
3763if { { ac_try="$ac_link_default"
3764case "(($ac_try" in
3765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766 *) ac_try_echo=$ac_try;;
3767esac
3768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3769$as_echo "$ac_try_echo"; } >&5
3770 (eval "$ac_link_default") 2>&5
3771 ac_status=$?
3772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3773 test $ac_status = 0; }; then :
3774 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3775# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3776# in a Makefile. We should not override ac_cv_exeext if it was cached,
3777# so that the user can short-circuit this test for compilers unknown to
3778# Autoconf.
3779for ac_file in $ac_files ''
ed698112
NN
3780do
3781 test -f "$ac_file" || continue
3782 case $ac_file in
5213506e 3783 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
ade710a5
TF
3784 ;;
3785 [ab].out )
3786 # We found the default executable, but exeext='' is most
3787 # certainly right.
3788 break;;
3789 *.* )
5213506e
RW
3790 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3791 then :; else
3792 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3793 fi
3794 # We set ac_cv_exeext here because the later test for it is not
3795 # safe: cross compilers may not add the suffix if given an `-o'
3796 # argument, so we may need to know it at that point already.
3797 # Even if this section looks crufty: it has the advantage of
3798 # actually working.
ade710a5
TF
3799 break;;
3800 * )
3801 break;;
ed698112
NN
3802 esac
3803done
5213506e
RW
3804test "$ac_cv_exeext" = no && ac_cv_exeext=
3805
ee9dd372 3806else
5213506e
RW
3807 ac_file=''
3808fi
3809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3810$as_echo "$ac_file" >&6; }
3811if test -z "$ac_file"; then :
3812 $as_echo "$as_me: failed program was:" >&5
ed698112
NN
3813sed 's/^/| /' conftest.$ac_ext >&5
3814
5213506e
RW
3815{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3816$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3817{ as_fn_set_status 77
3818as_fn_error "C compiler cannot create executables
3819See \`config.log' for more details." "$LINENO" 5; }; }
ed698112 3820fi
ade710a5 3821ac_exeext=$ac_cv_exeext
ade710a5 3822
5213506e 3823# Check that the compiler produces executables we can run. If not, either
ed698112 3824# the compiler is broken, or we cross compile.
5213506e
RW
3825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3826$as_echo_n "checking whether the C compiler works... " >&6; }
ed698112
NN
3827# If not cross compiling, check that we can run a simple program.
3828if test "$cross_compiling" != yes; then
3829 if { ac_try='./$ac_file'
5213506e
RW
3830 { { case "(($ac_try" in
3831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832 *) ac_try_echo=$ac_try;;
3833esac
3834eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3835$as_echo "$ac_try_echo"; } >&5
3836 (eval "$ac_try") 2>&5
ed698112 3837 ac_status=$?
5213506e
RW
3838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3839 test $ac_status = 0; }; }; then
ed698112
NN
3840 cross_compiling=no
3841 else
3842 if test "$cross_compiling" = maybe; then
3843 cross_compiling=yes
3844 else
5213506e
RW
3845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3846$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3847as_fn_error "cannot run C compiled programs.
ed698112 3848If you meant to cross compile, use \`--host'.
5213506e 3849See \`config.log' for more details." "$LINENO" 5; }
ed698112
NN
3850 fi
3851 fi
3852fi
5213506e
RW
3853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3854$as_echo "yes" >&6; }
ed698112 3855
5213506e 3856rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
ade710a5 3857ac_clean_files=$ac_clean_files_save
5213506e 3858# Check that the compiler produces executables we can run. If not, either
ade710a5 3859# the compiler is broken, or we cross compile.
5213506e
RW
3860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3861$as_echo_n "checking whether we are cross compiling... " >&6; }
3862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3863$as_echo "$cross_compiling" >&6; }
3864
3865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3866$as_echo_n "checking for suffix of executables... " >&6; }
3867if { { ac_try="$ac_link"
3868case "(($ac_try" in
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3871esac
3872eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3873$as_echo "$ac_try_echo"; } >&5
3874 (eval "$ac_link") 2>&5
ed698112 3875 ac_status=$?
5213506e
RW
3876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3877 test $ac_status = 0; }; then :
ade710a5
TF
3878 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3879# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3880# work properly (i.e., refer to `conftest.exe'), while it won't with
3881# `rm'.
3882for ac_file in conftest.exe conftest conftest.*; do
3883 test -f "$ac_file" || continue
3884 case $ac_file in
5213506e 3885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
ade710a5 3886 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ade710a5
TF
3887 break;;
3888 * ) break;;
3889 esac
3890done
ee9dd372 3891else
5213506e
RW
3892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3893$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3894as_fn_error "cannot compute suffix of executables: cannot compile and link
3895See \`config.log' for more details." "$LINENO" 5; }
ee9dd372 3896fi
ade710a5 3897rm -f conftest$ac_cv_exeext
5213506e
RW
3898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3899$as_echo "$ac_cv_exeext" >&6; }
ed698112 3900
ade710a5 3901rm -f conftest.$ac_ext
ed698112
NN
3902EXEEXT=$ac_cv_exeext
3903ac_exeext=$EXEEXT
ade710a5 3904fi
5213506e
RW
3905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3906$as_echo_n "checking for suffix of object files... " >&6; }
3907if test "${ac_cv_objext+set}" = set; then :
3908 $as_echo_n "(cached) " >&6
ed698112 3909else
5213506e 3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ade710a5
TF
3911/* end confdefs.h. */
3912
3913int
3914main ()
3915{
3916
3917 ;
3918 return 0;
3919}
3920_ACEOF
3921rm -f conftest.o conftest.obj
5213506e
RW
3922if { { ac_try="$ac_compile"
3923case "(($ac_try" in
3924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925 *) ac_try_echo=$ac_try;;
3926esac
3927eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3928$as_echo "$ac_try_echo"; } >&5
3929 (eval "$ac_compile") 2>&5
3930 ac_status=$?
3931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3932 test $ac_status = 0; }; then :
3933 for ac_file in conftest.o conftest.obj conftest.*; do
3934 test -f "$ac_file" || continue;
ed698112 3935 case $ac_file in
5213506e 3936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
ed698112
NN
3937 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3938 break;;
3939 esac
3940done
158a8e6b 3941else
5213506e 3942 $as_echo "$as_me: failed program was:" >&5
ed698112
NN
3943sed 's/^/| /' conftest.$ac_ext >&5
3944
5213506e
RW
3945{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3946$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3947as_fn_error "cannot compute suffix of object files: cannot compile
3948See \`config.log' for more details." "$LINENO" 5; }
158a8e6b 3949fi
ade710a5 3950rm -f conftest.$ac_cv_objext conftest.$ac_ext
ed698112 3951fi
5213506e
RW
3952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3953$as_echo "$ac_cv_objext" >&6; }
ed698112
NN
3954OBJEXT=$ac_cv_objext
3955ac_objext=$OBJEXT
5213506e
RW
3956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3957$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3958if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3959 $as_echo_n "(cached) " >&6
ed698112 3960else
5213506e 3961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ed698112
NN
3962/* end confdefs.h. */
3963
3964int
3965main ()
3966{
3967#ifndef __GNUC__
3968 choke me
3969#endif
3970
3971 ;
3972 return 0;
3973}
3974_ACEOF
5213506e 3975if ac_fn_c_try_compile "$LINENO"; then :
ed698112
NN
3976 ac_compiler_gnu=yes
3977else
5213506e 3978 ac_compiler_gnu=no
ed698112 3979fi
5213506e 3980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ed698112
NN
3981ac_cv_c_compiler_gnu=$ac_compiler_gnu
3982
3983fi
5213506e
RW
3984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3985$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3986if test $ac_compiler_gnu = yes; then
3987 GCC=yes
3988else
3989 GCC=
3990fi
ed698112
NN
3991ac_test_CFLAGS=${CFLAGS+set}
3992ac_save_CFLAGS=$CFLAGS
5213506e
RW
3993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3994$as_echo_n "checking whether $CC accepts -g... " >&6; }
3995if test "${ac_cv_prog_cc_g+set}" = set; then :
3996 $as_echo_n "(cached) " >&6
3997else
3998 ac_save_c_werror_flag=$ac_c_werror_flag
3999 ac_c_werror_flag=yes
4000 ac_cv_prog_cc_g=no
4001 CFLAGS="-g"
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ed698112
NN
4003/* end confdefs.h. */
4004
4005int
4006main ()
4007{
4008
4009 ;
4010 return 0;
4011}
4012_ACEOF
5213506e 4013if ac_fn_c_try_compile "$LINENO"; then :
ee9dd372
TT
4014 ac_cv_prog_cc_g=yes
4015else
5213506e
RW
4016 CFLAGS=""
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018/* end confdefs.h. */
4019
4020int
4021main ()
4022{
ee9dd372 4023
5213506e
RW
4024 ;
4025 return 0;
4026}
4027_ACEOF
4028if ac_fn_c_try_compile "$LINENO"; then :
4029
4030else
4031 ac_c_werror_flag=$ac_save_c_werror_flag
4032 CFLAGS="-g"
4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034/* end confdefs.h. */
4035
4036int
4037main ()
4038{
4039
4040 ;
4041 return 0;
4042}
4043_ACEOF
4044if ac_fn_c_try_compile "$LINENO"; then :
4045 ac_cv_prog_cc_g=yes
4046fi
4047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ade710a5 4048fi
5213506e 4049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ade710a5 4050fi
5213506e
RW
4051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4052 ac_c_werror_flag=$ac_save_c_werror_flag
4053fi
4054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4055$as_echo "$ac_cv_prog_cc_g" >&6; }
ade710a5
TF
4056if test "$ac_test_CFLAGS" = set; then
4057 CFLAGS=$ac_save_CFLAGS
4058elif test $ac_cv_prog_cc_g = yes; then
4059 if test "$GCC" = yes; then
4060 CFLAGS="-g -O2"
4061 else
4062 CFLAGS="-g"
4063 fi
4064else
4065 if test "$GCC" = yes; then
4066 CFLAGS="-O2"
4067 else
4068 CFLAGS=
4069 fi
4070fi
5213506e
RW
4071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4072$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4073if test "${ac_cv_prog_cc_c89+set}" = set; then :
4074 $as_echo_n "(cached) " >&6
ade710a5 4075else
5213506e 4076 ac_cv_prog_cc_c89=no
ade710a5 4077ac_save_CC=$CC
5213506e 4078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ed698112 4079/* end confdefs.h. */
ade710a5
TF
4080#include <stdarg.h>
4081#include <stdio.h>
4082#include <sys/types.h>
4083#include <sys/stat.h>
4084/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4085struct buf { int x; };
4086FILE * (*rcsopen) (struct buf *, struct stat *, int);
4087static char *e (p, i)
4088 char **p;
4089 int i;
4090{
4091 return p[i];
4092}
4093static char *f (char * (*g) (char **, int), char **p, ...)
4094{
4095 char *s;
4096 va_list v;
4097 va_start (v,p);
4098 s = g (p, va_arg (v,int));
4099 va_end (v);
4100 return s;
4101}
ee9dd372 4102
ade710a5
TF
4103/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4104 function prototypes and stuff, but not '\xHH' hex character constants.
4105 These don't provoke an error unfortunately, instead are silently treated
5213506e 4106 as 'x'. The following induces an error, until -std is added to get
ade710a5
TF
4107 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4108 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4109 that's true only with -std. */
ade710a5
TF
4110int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4111
5213506e
RW
4112/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4113 inside strings and character constants. */
4114#define FOO(x) 'x'
4115int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4116
ade710a5
TF
4117int test (int i, double x);
4118struct s1 {int (*f) (int a);};
4119struct s2 {int (*f) (double a);};
4120int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4121int argc;
4122char **argv;
ed698112
NN
4123int
4124main ()
4125{
ade710a5 4126return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
ed698112
NN
4127 ;
4128 return 0;
4129}
4130_ACEOF
5213506e
RW
4131for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4132 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ade710a5
TF
4133do
4134 CC="$ac_save_CC $ac_arg"
5213506e
RW
4135 if ac_fn_c_try_compile "$LINENO"; then :
4136 ac_cv_prog_cc_c89=$ac_arg
ade710a5 4137fi
5213506e
RW
4138rm -f core conftest.err conftest.$ac_objext
4139 test "x$ac_cv_prog_cc_c89" != "xno" && break
ade710a5 4140done
5213506e 4141rm -f conftest.$ac_ext
ade710a5 4142CC=$ac_save_CC
e2ea015c 4143
ade710a5 4144fi
5213506e
RW
4145# AC_CACHE_VAL
4146case "x$ac_cv_prog_cc_c89" in
4147 x)
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4149$as_echo "none needed" >&6; } ;;
4150 xno)
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4152$as_echo "unsupported" >&6; } ;;
ade710a5 4153 *)
5213506e
RW
4154 CC="$CC $ac_cv_prog_cc_c89"
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4156$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ade710a5 4157esac
5213506e 4158if test "x$ac_cv_prog_cc_c89" != xno; then :
ed698112 4159
ee9dd372 4160fi
ed698112 4161
ed698112
NN
4162ac_ext=c
4163ac_cpp='$CPP $CPPFLAGS'
4164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4166ac_compiler_gnu=$ac_cv_c_compiler_gnu
ee9dd372 4167
5213506e 4168ac_ext=cpp
ed698112
NN
4169ac_cpp='$CXXCPP $CPPFLAGS'
4170ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4171ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4172ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4173if test -z "$CXX"; then
4174 if test -n "$CCC"; then
4175 CXX=$CCC
4176 else
4177 if test -n "$ac_tool_prefix"; then
4178 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
ed698112
NN
4179 do
4180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4181set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4183$as_echo_n "checking for $ac_word... " >&6; }
4184if test "${ac_cv_prog_CXX+set}" = set; then :
4185 $as_echo_n "(cached) " >&6
ed698112
NN
4186else
4187 if test -n "$CXX"; then
97b8365c 4188 ac_cv_prog_CXX="$CXX" # Let the user override the test.
ed698112
NN
4189else
4190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191for as_dir in $PATH
4192do
4193 IFS=$as_save_IFS
4194 test -z "$as_dir" && as_dir=.
5213506e
RW
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
97b8365c 4197 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112
NN
4199 break 2
4200 fi
4201done
5213506e
RW
4202 done
4203IFS=$as_save_IFS
158a8e6b 4204
ed698112
NN
4205fi
4206fi
97b8365c 4207CXX=$ac_cv_prog_CXX
ed698112 4208if test -n "$CXX"; then
5213506e
RW
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4210$as_echo "$CXX" >&6; }
ed698112 4211else
5213506e
RW
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4213$as_echo "no" >&6; }
ed698112 4214fi
ee9dd372 4215
5213506e 4216
ed698112
NN
4217 test -n "$CXX" && break
4218 done
4219fi
4220if test -z "$CXX"; then
4221 ac_ct_CXX=$CXX
5213506e 4222 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
ed698112
NN
4223do
4224 # Extract the first word of "$ac_prog", so it can be a program name with args.
4225set dummy $ac_prog; ac_word=$2
5213506e
RW
4226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4227$as_echo_n "checking for $ac_word... " >&6; }
4228if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4229 $as_echo_n "(cached) " >&6
ee9dd372 4230else
ed698112
NN
4231 if test -n "$ac_ct_CXX"; then
4232 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
ee9dd372 4233else
ed698112
NN
4234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235for as_dir in $PATH
4236do
4237 IFS=$as_save_IFS
4238 test -z "$as_dir" && as_dir=.
5213506e
RW
4239 for ac_exec_ext in '' $ac_executable_extensions; do
4240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ed698112 4241 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112
NN
4243 break 2
4244 fi
4245done
5213506e
RW
4246 done
4247IFS=$as_save_IFS
ed698112
NN
4248
4249fi
ee9dd372 4250fi
ed698112
NN
4251ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4252if test -n "$ac_ct_CXX"; then
5213506e
RW
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4254$as_echo "$ac_ct_CXX" >&6; }
ed698112 4255else
5213506e
RW
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257$as_echo "no" >&6; }
ee9dd372
TT
4258fi
4259
5213506e 4260
ed698112
NN
4261 test -n "$ac_ct_CXX" && break
4262done
ed698112 4263
5213506e
RW
4264 if test "x$ac_ct_CXX" = x; then
4265 CXX="g++"
4266 else
4267 case $cross_compiling:$ac_tool_warned in
4268yes:)
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4270$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4271ac_tool_warned=yes ;;
4272esac
4273 CXX=$ac_ct_CXX
4274 fi
ed698112
NN
4275fi
4276
5213506e
RW
4277 fi
4278fi
ed698112 4279# Provide some information about the compiler.
5213506e
RW
4280$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4281set X $ac_compile
4282ac_compiler=$2
4283for ac_option in --version -v -V -qversion; do
4284 { { ac_try="$ac_compiler $ac_option >&5"
4285case "(($ac_try" in
4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4288esac
4289eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4290$as_echo "$ac_try_echo"; } >&5
4291 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ed698112 4292 ac_status=$?
5213506e
RW
4293 if test -s conftest.err; then
4294 sed '10a\
4295... rest of stderr output deleted ...
4296 10q' conftest.err >conftest.er1
4297 cat conftest.er1 >&5
4298 rm -f conftest.er1 conftest.err
4299 fi
4300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4301 test $ac_status = 0; }
4302done
ed698112 4303
5213506e
RW
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4305$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4306if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4307 $as_echo_n "(cached) " >&6
ed698112 4308else
5213506e 4309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ed698112 4310/* end confdefs.h. */
ee9dd372 4311
ed698112
NN
4312int
4313main ()
4314{
4315#ifndef __GNUC__
4316 choke me
4317#endif
4318
4319 ;
4320 return 0;
4321}
4322_ACEOF
5213506e 4323if ac_fn_cxx_try_compile "$LINENO"; then :
ed698112
NN
4324 ac_compiler_gnu=yes
4325else
5213506e 4326 ac_compiler_gnu=no
ed698112 4327fi
5213506e 4328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ed698112
NN
4329ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4330
4331fi
5213506e
RW
4332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4333$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4334if test $ac_compiler_gnu = yes; then
4335 GXX=yes
4336else
4337 GXX=
4338fi
ed698112
NN
4339ac_test_CXXFLAGS=${CXXFLAGS+set}
4340ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4342$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4343if test "${ac_cv_prog_cxx_g+set}" = set; then :
4344 $as_echo_n "(cached) " >&6
4345else
4346 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4347 ac_cxx_werror_flag=yes
4348 ac_cv_prog_cxx_g=no
4349 CXXFLAGS="-g"
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ed698112
NN
4351/* end confdefs.h. */
4352
4353int
4354main ()
4355{
4356
4357 ;
4358 return 0;
4359}
4360_ACEOF
5213506e 4361if ac_fn_cxx_try_compile "$LINENO"; then :
ee9dd372
TT
4362 ac_cv_prog_cxx_g=yes
4363else
5213506e
RW
4364 CXXFLAGS=""
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ed698112 4366/* end confdefs.h. */
5213506e 4367
ed698112
NN
4368int
4369main ()
4370{
5213506e 4371
ed698112
NN
4372 ;
4373 return 0;
4374}
4375_ACEOF
5213506e 4376if ac_fn_cxx_try_compile "$LINENO"; then :
ed698112 4377
5213506e
RW
4378else
4379 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4380 CXXFLAGS="-g"
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
RW
4392if ac_fn_cxx_try_compile "$LINENO"; then :
4393 ac_cv_prog_cxx_g=yes
02809848 4394fi
5213506e
RW
4395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396fi
4397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4398fi
4399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4400 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4401fi
4402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4403$as_echo "$ac_cv_prog_cxx_g" >&6; }
4404if test "$ac_test_CXXFLAGS" = set; then
4405 CXXFLAGS=$ac_save_CXXFLAGS
4406elif test $ac_cv_prog_cxx_g = yes; then
4407 if test "$GXX" = yes; then
4408 CXXFLAGS="-g -O2"
4409 else
4410 CXXFLAGS="-g"
4411 fi
4412else
4413 if test "$GXX" = yes; then
4414 CXXFLAGS="-O2"
4415 else
4416 CXXFLAGS=
4417 fi
158a8e6b 4418fi
ed698112
NN
4419ac_ext=c
4420ac_cpp='$CPP $CPPFLAGS'
4421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4423ac_compiler_gnu=$ac_cv_c_compiler_gnu
4424
4425CXXFLAGS="$save_CXXFLAGS"
4426
5213506e
RW
4427am__api_version='1.11'
4428
36609570
NN
4429# Find a good install program. We prefer a C program (faster),
4430# so one script is as good as another. But avoid the broken or
4431# incompatible versions:
4432# SysV /etc/install, /usr/sbin/install
4433# SunOS /usr/etc/install
4434# IRIX /sbin/install
4435# AIX /bin/install
ed698112 4436# AmigaOS /C/install, which installs bootblocks on floppy discs
36609570
NN
4437# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4438# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4439# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ed698112 4440# OS/2's system install, which has a completely different semantic
36609570 4441# ./install, which can be erroneously created by make from ./install.sh.
38d24731 4442# Reject install programs that cannot install multiple files.
5213506e
RW
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4444$as_echo_n "checking for a BSD-compatible install... " >&6; }
36609570 4445if test -z "$INSTALL"; then
5213506e
RW
4446if test "${ac_cv_path_install+set}" = set; then :
4447 $as_echo_n "(cached) " >&6
36609570 4448else
ed698112
NN
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450for as_dir in $PATH
4451do
4452 IFS=$as_save_IFS
4453 test -z "$as_dir" && as_dir=.
5213506e
RW
4454 # Account for people who put trailing slashes in PATH elements.
4455case $as_dir/ in #((
4456 ./ | .// | /[cC]/* | \
ed698112 4457 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 4458 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
ed698112
NN
4459 /usr/ucb/* ) ;;
4460 *)
4461 # OSF1 and SCO ODT 3.0 have their own names for install.
4462 # Don't use installbsd from OSF since it installs stuff as root
4463 # by default.
4464 for ac_prog in ginstall scoinst install; do
4465 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 4466 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
36609570 4467 if test $ac_prog = install &&
ed698112 4468 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
36609570
NN
4469 # AIX install. It has an incompatible calling convention.
4470 :
ed698112
NN
4471 elif test $ac_prog = install &&
4472 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4473 # program-specific install script used by HP pwplus--don't use.
4474 :
36609570 4475 else
38d24731
RW
4476 rm -rf conftest.one conftest.two conftest.dir
4477 echo one > conftest.one
4478 echo two > conftest.two
4479 mkdir conftest.dir
4480 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4481 test -s conftest.one && test -s conftest.two &&
4482 test -s conftest.dir/conftest.one &&
4483 test -s conftest.dir/conftest.two
4484 then
4485 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4486 break 3
4487 fi
36609570
NN
4488 fi
4489 fi
4490 done
ed698112
NN
4491 done
4492 ;;
4493esac
5213506e
RW
4494
4495 done
4496IFS=$as_save_IFS
ed698112 4497
38d24731 4498rm -rf conftest.one conftest.two conftest.dir
36609570
NN
4499
4500fi
4501 if test "${ac_cv_path_install+set}" = set; then
ed698112 4502 INSTALL=$ac_cv_path_install
36609570 4503 else
38d24731
RW
4504 # As a last resort, use the slow shell script. Don't cache a
4505 # value for INSTALL within a source directory, because that will
36609570 4506 # break other packages using the cache if that directory is
38d24731 4507 # removed, or if the value is a relative name.
ed698112 4508 INSTALL=$ac_install_sh
36609570
NN
4509 fi
4510fi
5213506e
RW
4511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4512$as_echo "$INSTALL" >&6; }
36609570
NN
4513
4514# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4515# It thinks the first close brace ends the variable substitution.
4516test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4517
ed698112 4518test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
36609570
NN
4519
4520test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4521
5213506e
RW
4522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4523$as_echo_n "checking whether build environment is sane... " >&6; }
36609570
NN
4524# Just in case
4525sleep 1
e3f92d3b 4526echo timestamp > conftest.file
5213506e
RW
4527# Reject unsafe characters in $srcdir or the absolute working directory
4528# name. Accept space and tab only in the latter.
4529am_lf='
4530'
4531case `pwd` in
4532 *[\\\"\#\$\&\'\`$am_lf]*)
4533 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4534esac
4535case $srcdir in
4536 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4537 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4538esac
4539
36609570
NN
4540# Do `set' in a subshell so we don't clobber the current shell's
4541# arguments. Must try -L first in case configure is actually a
4542# symlink; some systems play weird games with the mod time of symlinks
4543# (eg FreeBSD returns the mod time of the symlink's containing
4544# directory).
4545if (
5213506e 4546 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
36609570
NN
4547 if test "$*" = "X"; then
4548 # -L didn't work.
5213506e 4549 set X `ls -t "$srcdir/configure" conftest.file`
36609570 4550 fi
e3f92d3b
MK
4551 rm -f conftest.file
4552 if test "$*" != "X $srcdir/configure conftest.file" \
4553 && test "$*" != "X conftest.file $srcdir/configure"; then
36609570
NN
4554
4555 # If neither matched, then we have a broken ls. This can happen
4556 # if, for instance, CONFIG_SHELL is bash and it inherits a
4557 # broken ls alias from the environment. This has actually
4558 # happened. Such a system could not be considered "sane".
5213506e
RW
4559 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4560alias in your environment" "$LINENO" 5
36609570
NN
4561 fi
4562
e3f92d3b 4563 test "$2" = conftest.file
36609570
NN
4564 )
4565then
4566 # Ok.
4567 :
4568else
5213506e
RW
4569 as_fn_error "newly created file is older than distributed files!
4570Check your system clock" "$LINENO" 5
36609570 4571fi
5213506e
RW
4572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4573$as_echo "yes" >&6; }
36609570 4574test "$program_prefix" != NONE &&
5213506e 4575 program_transform_name="s&^&$program_prefix&;$program_transform_name"
36609570
NN
4576# Use a double $ so make ignores it.
4577test "$program_suffix" != NONE &&
5213506e
RW
4578 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4579# Double any \ or $.
ed698112 4580# By default was `s,x,x', remove it if useless.
5213506e
RW
4581ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4582program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
ed698112 4583
e3f92d3b
MK
4584# expand $ac_aux_dir to an absolute path
4585am_aux_dir=`cd $ac_aux_dir && pwd`
4586
5213506e
RW
4587if test x"${MISSING+set}" != xset; then
4588 case $am_aux_dir in
4589 *\ * | *\ *)
4590 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4591 *)
4592 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4593 esac
4594fi
e3f92d3b
MK
4595# Use eval to expand $SHELL
4596if eval "$MISSING --run true"; then
4597 am_missing_run="$MISSING --run "
4598else
4599 am_missing_run=
5213506e
RW
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4601$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4602fi
4603
4604if test x"${install_sh}" != xset; then
4605 case $am_aux_dir in
4606 *\ * | *\ *)
4607 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4608 *)
4609 install_sh="\${SHELL} $am_aux_dir/install-sh"
4610 esac
4611fi
4612
4613# Installed binaries are usually stripped using `strip' when the user
4614# run `make install-strip'. However `strip' might not be the right
4615# tool to use in cross-compilation environments, therefore Automake
4616# will honor the `STRIP' environment variable to overrule this program.
4617if test "$cross_compiling" != no; then
4618 if test -n "$ac_tool_prefix"; then
4619 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4620set dummy ${ac_tool_prefix}strip; ac_word=$2
4621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4622$as_echo_n "checking for $ac_word... " >&6; }
4623if test "${ac_cv_prog_STRIP+set}" = set; then :
4624 $as_echo_n "(cached) " >&6
4625else
4626 if test -n "$STRIP"; then
4627 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4628else
4629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630for as_dir in $PATH
4631do
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4636 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 break 2
4639 fi
4640done
4641 done
4642IFS=$as_save_IFS
4643
4644fi
4645fi
4646STRIP=$ac_cv_prog_STRIP
4647if test -n "$STRIP"; then
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4649$as_echo "$STRIP" >&6; }
4650else
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4652$as_echo "no" >&6; }
4653fi
4654
4655
4656fi
4657if test -z "$ac_cv_prog_STRIP"; then
4658 ac_ct_STRIP=$STRIP
4659 # Extract the first word of "strip", so it can be a program name with args.
4660set dummy strip; ac_word=$2
4661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4662$as_echo_n "checking for $ac_word... " >&6; }
4663if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4664 $as_echo_n "(cached) " >&6
4665else
4666 if test -n "$ac_ct_STRIP"; then
4667 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4668else
4669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670for as_dir in $PATH
4671do
4672 IFS=$as_save_IFS
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4676 ac_cv_prog_ac_ct_STRIP="strip"
4677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 break 2
4679 fi
4680done
4681 done
4682IFS=$as_save_IFS
4683
4684fi
4685fi
4686ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4687if test -n "$ac_ct_STRIP"; then
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4689$as_echo "$ac_ct_STRIP" >&6; }
4690else
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692$as_echo "no" >&6; }
4693fi
4694
4695 if test "x$ac_ct_STRIP" = x; then
4696 STRIP=":"
4697 else
4698 case $cross_compiling:$ac_tool_warned in
4699yes:)
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4701$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4702ac_tool_warned=yes ;;
4703esac
4704 STRIP=$ac_ct_STRIP
4705 fi
4706else
4707 STRIP="$ac_cv_prog_STRIP"
4708fi
4709
4710fi
4711INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4712
4713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4714$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4715if test -z "$MKDIR_P"; then
4716 if test "${ac_cv_path_mkdir+set}" = set; then :
4717 $as_echo_n "(cached) " >&6
4718else
4719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4721do
4722 IFS=$as_save_IFS
4723 test -z "$as_dir" && as_dir=.
4724 for ac_prog in mkdir gmkdir; do
4725 for ac_exec_ext in '' $ac_executable_extensions; do
4726 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4727 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4728 'mkdir (GNU coreutils) '* | \
4729 'mkdir (coreutils) '* | \
4730 'mkdir (fileutils) '4.1*)
4731 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4732 break 3;;
4733 esac
4734 done
4735 done
e3f92d3b 4736 done
5213506e
RW
4737IFS=$as_save_IFS
4738
4739fi
4740
4741 if test "${ac_cv_path_mkdir+set}" = set; then
4742 MKDIR_P="$ac_cv_path_mkdir -p"
e3f92d3b 4743 else
5213506e
RW
4744 # As a last resort, use the slow shell script. Don't cache a
4745 # value for MKDIR_P within a source directory, because that will
4746 # break other packages using the cache if that directory is
4747 # removed, or if the value is a relative name.
4748 test -d ./--version && rmdir ./--version
4749 MKDIR_P="$ac_install_sh -d"
e3f92d3b
MK
4750 fi
4751fi
5213506e
RW
4752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4753$as_echo "$MKDIR_P" >&6; }
4754
4755mkdir_p="$MKDIR_P"
4756case $mkdir_p in
4757 [\\/$]* | ?:[\\/]*) ;;
4758 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4759esac
e3f92d3b
MK
4760
4761for ac_prog in gawk mawk nawk awk
4762do
4763 # Extract the first word of "$ac_prog", so it can be a program name with args.
4764set dummy $ac_prog; ac_word=$2
5213506e
RW
4765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4766$as_echo_n "checking for $ac_word... " >&6; }
4767if test "${ac_cv_prog_AWK+set}" = set; then :
4768 $as_echo_n "(cached) " >&6
e3f92d3b
MK
4769else
4770 if test -n "$AWK"; then
4771 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4772else
4773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774for as_dir in $PATH
4775do
4776 IFS=$as_save_IFS
4777 test -z "$as_dir" && as_dir=.
5213506e
RW
4778 for ac_exec_ext in '' $ac_executable_extensions; do
4779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
e3f92d3b 4780 ac_cv_prog_AWK="$ac_prog"
5213506e 4781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
e3f92d3b
MK
4782 break 2
4783 fi
4784done
5213506e
RW
4785 done
4786IFS=$as_save_IFS
e3f92d3b
MK
4787
4788fi
4789fi
4790AWK=$ac_cv_prog_AWK
4791if test -n "$AWK"; then
5213506e
RW
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4793$as_echo "$AWK" >&6; }
e3f92d3b 4794else
5213506e
RW
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4796$as_echo "no" >&6; }
e3f92d3b
MK
4797fi
4798
5213506e 4799
e3f92d3b
MK
4800 test -n "$AWK" && break
4801done
4802
5213506e
RW
4803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4804$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4805set x ${MAKE-make}
4806ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4807if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4808 $as_echo_n "(cached) " >&6
ed698112
NN
4809else
4810 cat >conftest.make <<\_ACEOF
5213506e 4811SHELL = /bin/sh
36609570 4812all:
5213506e 4813 @echo '@@@%%%=$(MAKE)=@@@%%%'
ed698112 4814_ACEOF
36609570 4815# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5213506e
RW
4816case `${MAKE-make} -f conftest.make 2>/dev/null` in
4817 *@@@%%%=?*=@@@%%%*)
4818 eval ac_cv_prog_make_${ac_make}_set=yes;;
4819 *)
4820 eval ac_cv_prog_make_${ac_make}_set=no;;
4821esac
ed698112 4822rm -f conftest.make
36609570 4823fi
5213506e
RW
4824if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4826$as_echo "yes" >&6; }
36609570
NN
4827 SET_MAKE=
4828else
5213506e
RW
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830$as_echo "no" >&6; }
36609570
NN
4831 SET_MAKE="MAKE=${MAKE-make}"
4832fi
4833
e3f92d3b
MK
4834rm -rf .tst 2>/dev/null
4835mkdir .tst 2>/dev/null
4836if test -d .tst; then
4837 am__leading_dot=.
4838else
4839 am__leading_dot=_
4840fi
4841rmdir .tst 2>/dev/null
4842
4843DEPDIR="${am__leading_dot}deps"
4844
5213506e 4845ac_config_commands="$ac_config_commands depfiles"
e3f92d3b
MK
4846
4847
4848am_make=${MAKE-make}
4849cat > confinc << 'END'
4850am__doit:
5213506e 4851 @echo this is the am__doit target
e3f92d3b
MK
4852.PHONY: am__doit
4853END
4854# If we don't find an include directive, just comment out the code.
5213506e
RW
4855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4856$as_echo_n "checking for style of include used by $am_make... " >&6; }
e3f92d3b
MK
4857am__include="#"
4858am__quote=
4859_am_result=none
4860# First try GNU make style include.
4861echo "include confinc" > confmf
5213506e
RW
4862# Ignore all kinds of additional output from `make'.
4863case `$am_make -s -f confmf 2> /dev/null` in #(
4864*the\ am__doit\ target*)
4865 am__include=include
4866 am__quote=
4867 _am_result=GNU
4868 ;;
4869esac
e3f92d3b
MK
4870# Now try BSD make style include.
4871if test "$am__include" = "#"; then
4872 echo '.include "confinc"' > confmf
5213506e
RW
4873 case `$am_make -s -f confmf 2> /dev/null` in #(
4874 *the\ am__doit\ target*)
4875 am__include=.include
4876 am__quote="\""
4877 _am_result=BSD
4878 ;;
4879 esac
e3f92d3b
MK
4880fi
4881
4882
5213506e
RW
4883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4884$as_echo "$_am_result" >&6; }
e3f92d3b
MK
4885rm -f confinc confmf
4886
5213506e
RW
4887# Check whether --enable-dependency-tracking was given.
4888if test "${enable_dependency_tracking+set}" = set; then :
4889 enableval=$enable_dependency_tracking;
4890fi
e3f92d3b 4891
e3f92d3b
MK
4892if test "x$enable_dependency_tracking" != xno; then
4893 am_depcomp="$ac_aux_dir/depcomp"
4894 AMDEPBACKSLASH='\'
4895fi
5213506e 4896 if test "x$enable_dependency_tracking" != xno; then
e3f92d3b
MK
4897 AMDEP_TRUE=
4898 AMDEP_FALSE='#'
4899else
4900 AMDEP_TRUE='#'
4901 AMDEP_FALSE=
4902fi
158a8e6b 4903
9d577a61 4904
5213506e
RW
4905if test "`cd $srcdir && pwd`" != "`pwd`"; then
4906 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4907 # is not polluted with repeated "-I."
4908 am__isrc=' -I$(srcdir)'
4909 # test to see if srcdir already configured
4910 if test -f $srcdir/config.status; then
4911 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4912 fi
9d577a61 4913fi
ed698112 4914
e3f92d3b
MK
4915# test whether we have cygpath
4916if test -z "$CYGPATH_W"; then
4917 if (cygpath --version) >/dev/null 2>/dev/null; then
4918 CYGPATH_W='cygpath -w'
4919 else
4920 CYGPATH_W=echo
4921 fi
4922fi
4923
4924
4925# Define the identity of the package.
4926 PACKAGE='libjava'
4927 VERSION='version-unused'
4928
4929
ed698112 4930cat >>confdefs.h <<_ACEOF
158a8e6b 4931#define PACKAGE "$PACKAGE"
ed698112 4932_ACEOF
158a8e6b 4933
ed698112
NN
4934
4935cat >>confdefs.h <<_ACEOF
158a8e6b 4936#define VERSION "$VERSION"
ed698112 4937_ACEOF
158a8e6b 4938
e3f92d3b
MK
4939# Some tools Automake needs.
4940
4941ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4942
4943
4944AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
158a8e6b 4945
8107bcf9 4946
e3f92d3b
MK
4947AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4948
4949
4950AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4951
4952
4953MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4954
e3f92d3b
MK
4955# We need awk for the "check" target. The system "awk" is bad on
4956# some platforms.
4957# Always define AMTAR for backward compatibility.
4958
4959AMTAR=${AMTAR-"${am_missing_run}tar"}
4960
4961am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4962
4963
4964
4965
4966depcc="$CC" am_compiler_list=
4967
5213506e
RW
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4969$as_echo_n "checking dependency style of $depcc... " >&6; }
4970if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4971 $as_echo_n "(cached) " >&6
e3f92d3b
MK
4972else
4973 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4974 # We make a subdir and do the tests there. Otherwise we can end up
4975 # making bogus files that we don't know about and never remove. For
4976 # instance it was reported that on HP-UX the gcc test will end up
4977 # making a dummy file named `D' -- because `-MD' means `put the output
4978 # in D'.
4979 mkdir conftest.dir
4980 # Copy depcomp to subdir because otherwise we won't find it if we're
4981 # using a relative directory.
4982 cp "$am_depcomp" conftest.dir
4983 cd conftest.dir
4984 # We will build objects and dependencies in a subdirectory because
4985 # it helps to detect inapplicable dependency modes. For instance
4986 # both Tru64's cc and ICC support -MD to output dependencies as a
4987 # side effect of compilation, but ICC will put the dependencies in
4988 # the current directory while Tru64 will put them in the object
4989 # directory.
4990 mkdir sub
4991
4992 am_cv_CC_dependencies_compiler_type=none
4993 if test "$am_compiler_list" = ""; then
4994 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4995 fi
5213506e
RW
4996 am__universal=false
4997 case " $depcc " in #(
4998 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4999 esac
5000
e3f92d3b
MK
5001 for depmode in $am_compiler_list; do
5002 # Setup a source with many dependencies, because some compilers
5003 # like to wrap large dependency lists on column 80 (with \), and
5004 # we should not choose a depcomp mode which is confused by this.
5005 #
5006 # We need to recreate these files for each test, as the compiler may
5007 # overwrite some of them when testing with obscure command lines.
5008 # This happens at least with the AIX C compiler.
5009 : > sub/conftest.c
5010 for i in 1 2 3 4 5 6; do
5011 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5012 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5013 # Solaris 8's {/usr,}/bin/sh.
5014 touch sub/conftst$i.h
5015 done
5016 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5017
5213506e
RW
5018 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5019 # mode. It turns out that the SunPro C++ compiler does not properly
5020 # handle `-M -o', and we need to detect this. Also, some Intel
5021 # versions had trouble with output in subdirs
5022 am__obj=sub/conftest.${OBJEXT-o}
5023 am__minus_obj="-o $am__obj"
e3f92d3b 5024 case $depmode in
5213506e
RW
5025 gcc)
5026 # This depmode causes a compiler race in universal mode.
5027 test "$am__universal" = false || continue
5028 ;;
e3f92d3b
MK
5029 nosideeffect)
5030 # after this tag, mechanisms are not by side-effect, so they'll
5031 # only be used when explicitly requested
5032 if test "x$enable_dependency_tracking" = xyes; then
5033 continue
5034 else
5035 break
5036 fi
5037 ;;
5213506e
RW
5038 msvisualcpp | msvcmsys)
5039 # This compiler won't grok `-c -o', but also, the minuso test has
5040 # not run yet. These depmodes are late enough in the game, and
5041 # so weak that their functioning should not be impacted.
5042 am__obj=conftest.${OBJEXT-o}
5043 am__minus_obj=
5044 ;;
e3f92d3b
MK
5045 none) break ;;
5046 esac
e3f92d3b 5047 if depmode=$depmode \
5213506e 5048 source=sub/conftest.c object=$am__obj \
e3f92d3b 5049 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213506e 5050 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
e3f92d3b 5051 >/dev/null 2>conftest.err &&
5213506e 5052 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
e3f92d3b 5053 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213506e 5054 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
e3f92d3b
MK
5055 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5056 # icc doesn't choke on unknown options, it will just issue warnings
5057 # or remarks (even with -Werror). So we grep stderr for any message
5058 # that says an option was ignored or not supported.
5059 # When given -MP, icc 7.0 and 7.1 complain thusly:
5060 # icc: Command line warning: ignoring option '-M'; no argument required
5061 # The diagnosis changed in icc 8.0:
5062 # icc: Command line remark: option '-MP' not supported
5063 if (grep 'ignoring option' conftest.err ||
5064 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5065 am_cv_CC_dependencies_compiler_type=$depmode
5066 break
5067 fi
5068 fi
5069 done
5070
5071 cd ..
5072 rm -rf conftest.dir
5073else
5074 am_cv_CC_dependencies_compiler_type=none
5075fi
5076
5077fi
5213506e
RW
5078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5079$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
e3f92d3b
MK
5080CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5081
5213506e 5082 if
e3f92d3b
MK
5083 test "x$enable_dependency_tracking" != xno \
5084 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5085 am__fastdepCC_TRUE=
5086 am__fastdepCC_FALSE='#'
5087else
5088 am__fastdepCC_TRUE='#'
5089 am__fastdepCC_FALSE=
5090fi
5091
5092
5093depcc="$CXX" am_compiler_list=
5094
5213506e
RW
5095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5096$as_echo_n "checking dependency style of $depcc... " >&6; }
5097if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5098 $as_echo_n "(cached) " >&6
158a8e6b 5099else
e3f92d3b
MK
5100 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5101 # We make a subdir and do the tests there. Otherwise we can end up
5102 # making bogus files that we don't know about and never remove. For
5103 # instance it was reported that on HP-UX the gcc test will end up
5104 # making a dummy file named `D' -- because `-MD' means `put the output
5105 # in D'.
5106 mkdir conftest.dir
5107 # Copy depcomp to subdir because otherwise we won't find it if we're
5108 # using a relative directory.
5109 cp "$am_depcomp" conftest.dir
5110 cd conftest.dir
5111 # We will build objects and dependencies in a subdirectory because
5112 # it helps to detect inapplicable dependency modes. For instance
5113 # both Tru64's cc and ICC support -MD to output dependencies as a
5114 # side effect of compilation, but ICC will put the dependencies in
5115 # the current directory while Tru64 will put them in the object
5116 # directory.
5117 mkdir sub
5118
5119 am_cv_CXX_dependencies_compiler_type=none
5120 if test "$am_compiler_list" = ""; then
5121 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5122 fi
5213506e
RW
5123 am__universal=false
5124 case " $depcc " in #(
5125 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5126 esac
5127
e3f92d3b
MK
5128 for depmode in $am_compiler_list; do
5129 # Setup a source with many dependencies, because some compilers
5130 # like to wrap large dependency lists on column 80 (with \), and
5131 # we should not choose a depcomp mode which is confused by this.
5132 #
5133 # We need to recreate these files for each test, as the compiler may
5134 # overwrite some of them when testing with obscure command lines.
5135 # This happens at least with the AIX C compiler.
5136 : > sub/conftest.c
5137 for i in 1 2 3 4 5 6; do
5138 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5139 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5140 # Solaris 8's {/usr,}/bin/sh.
5141 touch sub/conftst$i.h
5142 done
5143 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5144
5213506e
RW
5145 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5146 # mode. It turns out that the SunPro C++ compiler does not properly
5147 # handle `-M -o', and we need to detect this. Also, some Intel
5148 # versions had trouble with output in subdirs
5149 am__obj=sub/conftest.${OBJEXT-o}
5150 am__minus_obj="-o $am__obj"
e3f92d3b 5151 case $depmode in
5213506e
RW
5152 gcc)
5153 # This depmode causes a compiler race in universal mode.
5154 test "$am__universal" = false || continue
5155 ;;
e3f92d3b
MK
5156 nosideeffect)
5157 # after this tag, mechanisms are not by side-effect, so they'll
5158 # only be used when explicitly requested
5159 if test "x$enable_dependency_tracking" = xyes; then
5160 continue
5161 else
5162 break
5163 fi
5164 ;;
5213506e
RW
5165 msvisualcpp | msvcmsys)
5166 # This compiler won't grok `-c -o', but also, the minuso test has
5167 # not run yet. These depmodes are late enough in the game, and
5168 # so weak that their functioning should not be impacted.
5169 am__obj=conftest.${OBJEXT-o}
5170 am__minus_obj=
5171 ;;
e3f92d3b
MK
5172 none) break ;;
5173 esac
e3f92d3b 5174 if depmode=$depmode \
5213506e 5175 source=sub/conftest.c object=$am__obj \
e3f92d3b 5176 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213506e 5177 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
e3f92d3b 5178 >/dev/null 2>conftest.err &&
5213506e 5179 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
e3f92d3b 5180 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213506e 5181 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
e3f92d3b
MK
5182 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5183 # icc doesn't choke on unknown options, it will just issue warnings
5184 # or remarks (even with -Werror). So we grep stderr for any message
5185 # that says an option was ignored or not supported.
5186 # When given -MP, icc 7.0 and 7.1 complain thusly:
5187 # icc: Command line warning: ignoring option '-M'; no argument required
5188 # The diagnosis changed in icc 8.0:
5189 # icc: Command line remark: option '-MP' not supported
5190 if (grep 'ignoring option' conftest.err ||
5191 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5192 am_cv_CXX_dependencies_compiler_type=$depmode
5193 break
5194 fi
5195 fi
5196 done
5197
5198 cd ..
5199 rm -rf conftest.dir
5200else
5201 am_cv_CXX_dependencies_compiler_type=none
8107bcf9
PB
5202fi
5203
e3f92d3b 5204fi
5213506e
RW
5205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5206$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
e3f92d3b
MK
5207CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5208
5213506e 5209 if
e3f92d3b
MK
5210 test "x$enable_dependency_tracking" != xno \
5211 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5212 am__fastdepCXX_TRUE=
5213 am__fastdepCXX_FALSE='#'
9d577a61 5214else
e3f92d3b
MK
5215 am__fastdepCXX_TRUE='#'
5216 am__fastdepCXX_FALSE=
158a8e6b
AO
5217fi
5218
5219
ee9dd372 5220
e3f92d3b 5221
ed698112
NN
5222if test -n "$ac_tool_prefix"; then
5223 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
ee9dd372 5224set dummy ${ac_tool_prefix}as; ac_word=$2
5213506e
RW
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5226$as_echo_n "checking for $ac_word... " >&6; }
5227if test "${ac_cv_prog_AS+set}" = set; then :
5228 $as_echo_n "(cached) " >&6
ee9dd372
TT
5229else
5230 if test -n "$AS"; then
5231 ac_cv_prog_AS="$AS" # Let the user override the test.
5232else
ed698112
NN
5233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234for as_dir in $PATH
5235do
5236 IFS=$as_save_IFS
5237 test -z "$as_dir" && as_dir=.
5213506e
RW
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ed698112 5240 ac_cv_prog_AS="${ac_tool_prefix}as"
5213506e 5241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112
NN
5242 break 2
5243 fi
5244done
5213506e
RW
5245 done
5246IFS=$as_save_IFS
ed698112 5247
ee9dd372
TT
5248fi
5249fi
ed698112 5250AS=$ac_cv_prog_AS
ee9dd372 5251if test -n "$AS"; then
5213506e
RW
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5253$as_echo "$AS" >&6; }
ee9dd372 5254else
5213506e
RW
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256$as_echo "no" >&6; }
ed698112
NN
5257fi
5258
5213506e 5259
ee9dd372 5260fi
ed698112
NN
5261if test -z "$ac_cv_prog_AS"; then
5262 ac_ct_AS=$AS
5263 # Extract the first word of "as", so it can be a program name with args.
5264set dummy as; ac_word=$2
5213506e
RW
5265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5266$as_echo_n "checking for $ac_word... " >&6; }
5267if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5268 $as_echo_n "(cached) " >&6
ed698112
NN
5269else
5270 if test -n "$ac_ct_AS"; then
5271 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5272else
5273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274for as_dir in $PATH
5275do
5276 IFS=$as_save_IFS
5277 test -z "$as_dir" && as_dir=.
5213506e
RW
5278 for ac_exec_ext in '' $ac_executable_extensions; do
5279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ed698112 5280 ac_cv_prog_ac_ct_AS="as"
5213506e 5281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112
NN
5282 break 2
5283 fi
5284done
5213506e
RW
5285 done
5286IFS=$as_save_IFS
ee9dd372 5287
ed698112
NN
5288fi
5289fi
5290ac_ct_AS=$ac_cv_prog_ac_ct_AS
5291if test -n "$ac_ct_AS"; then
5213506e
RW
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5293$as_echo "$ac_ct_AS" >&6; }
ed698112 5294else
5213506e
RW
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296$as_echo "no" >&6; }
ed698112 5297fi
ee9dd372 5298
5213506e
RW
5299 if test "x$ac_ct_AS" = x; then
5300 AS=""
5301 else
5302 case $cross_compiling:$ac_tool_warned in
5303yes:)
5304{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5305$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5306ac_tool_warned=yes ;;
5307esac
5308 AS=$ac_ct_AS
5309 fi
ed698112
NN
5310else
5311 AS="$ac_cv_prog_AS"
5312fi
ee9dd372 5313
d6c122f7
DD
5314if test -n "$ac_tool_prefix"; then
5315 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5316set dummy ${ac_tool_prefix}ld; ac_word=$2
5213506e
RW
5317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5318$as_echo_n "checking for $ac_word... " >&6; }
5319if test "${ac_cv_prog_LD+set}" = set; then :
5320 $as_echo_n "(cached) " >&6
d6c122f7
DD
5321else
5322 if test -n "$LD"; then
5323 ac_cv_prog_LD="$LD" # Let the user override the test.
5324else
5325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326for as_dir in $PATH
5327do
5328 IFS=$as_save_IFS
5329 test -z "$as_dir" && as_dir=.
5213506e
RW
5330 for ac_exec_ext in '' $ac_executable_extensions; do
5331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d6c122f7 5332 ac_cv_prog_LD="${ac_tool_prefix}ld"
5213506e 5333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d6c122f7
DD
5334 break 2
5335 fi
5336done
5213506e
RW
5337 done
5338IFS=$as_save_IFS
d6c122f7
DD
5339
5340fi
5341fi
5342LD=$ac_cv_prog_LD
5343if test -n "$LD"; then
5213506e
RW
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5345$as_echo "$LD" >&6; }
d6c122f7 5346else
5213506e
RW
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5348$as_echo "no" >&6; }
d6c122f7
DD
5349fi
5350
5213506e 5351
d6c122f7
DD
5352fi
5353if test -z "$ac_cv_prog_LD"; then
5354 ac_ct_LD=$LD
5355 # Extract the first word of "ld", so it can be a program name with args.
5356set dummy ld; ac_word=$2
5213506e
RW
5357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358$as_echo_n "checking for $ac_word... " >&6; }
5359if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
5360 $as_echo_n "(cached) " >&6
d6c122f7
DD
5361else
5362 if test -n "$ac_ct_LD"; then
5363 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5364else
5365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366for as_dir in $PATH
5367do
5368 IFS=$as_save_IFS
5369 test -z "$as_dir" && as_dir=.
5213506e
RW
5370 for ac_exec_ext in '' $ac_executable_extensions; do
5371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d6c122f7 5372 ac_cv_prog_ac_ct_LD="ld"
5213506e 5373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d6c122f7
DD
5374 break 2
5375 fi
5376done
5213506e
RW
5377 done
5378IFS=$as_save_IFS
d6c122f7
DD
5379
5380fi
5381fi
5382ac_ct_LD=$ac_cv_prog_ac_ct_LD
5383if test -n "$ac_ct_LD"; then
5213506e
RW
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
5385$as_echo "$ac_ct_LD" >&6; }
d6c122f7 5386else
5213506e
RW
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388$as_echo "no" >&6; }
d6c122f7
DD
5389fi
5390
5213506e
RW
5391 if test "x$ac_ct_LD" = x; then
5392 LD=""
5393 else
5394 case $cross_compiling:$ac_tool_warned in
5395yes:)
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5398ac_tool_warned=yes ;;
5399esac
5400 LD=$ac_ct_LD
5401 fi
d6c122f7
DD
5402else
5403 LD="$ac_cv_prog_LD"
5404fi
5405
ed698112
NN
5406if test -n "$ac_tool_prefix"; then
5407 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
ee9dd372 5408set dummy ${ac_tool_prefix}ar; ac_word=$2
5213506e
RW
5409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5410$as_echo_n "checking for $ac_word... " >&6; }
5411if test "${ac_cv_prog_AR+set}" = set; then :
5412 $as_echo_n "(cached) " >&6
ee9dd372
TT
5413else
5414 if test -n "$AR"; then
5415 ac_cv_prog_AR="$AR" # Let the user override the test.
5416else
ed698112
NN
5417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418for as_dir in $PATH
5419do
5420 IFS=$as_save_IFS
5421 test -z "$as_dir" && as_dir=.
5213506e
RW
5422 for ac_exec_ext in '' $ac_executable_extensions; do
5423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ed698112 5424 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213506e 5425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112
NN
5426 break 2
5427 fi
5428done
5213506e
RW
5429 done
5430IFS=$as_save_IFS
ed698112 5431
ee9dd372
TT
5432fi
5433fi
ed698112 5434AR=$ac_cv_prog_AR
ee9dd372 5435if test -n "$AR"; then
5213506e
RW
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5437$as_echo "$AR" >&6; }
ee9dd372 5438else
5213506e
RW
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5440$as_echo "no" >&6; }
ed698112
NN
5441fi
5442
5213506e 5443
ee9dd372 5444fi
ed698112
NN
5445if test -z "$ac_cv_prog_AR"; then
5446 ac_ct_AR=$AR
5447 # Extract the first word of "ar", so it can be a program name with args.
5448set dummy ar; ac_word=$2
5213506e
RW
5449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5450$as_echo_n "checking for $ac_word... " >&6; }
5451if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5452 $as_echo_n "(cached) " >&6
ed698112
NN
5453else
5454 if test -n "$ac_ct_AR"; then
5455 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5456else
5457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458for as_dir in $PATH
5459do
5460 IFS=$as_save_IFS
5461 test -z "$as_dir" && as_dir=.
5213506e
RW
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ed698112 5464 ac_cv_prog_ac_ct_AR="ar"
5213506e 5465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112
NN
5466 break 2
5467 fi
5468done
5213506e
RW
5469 done
5470IFS=$as_save_IFS
ee9dd372 5471
ed698112
NN
5472fi
5473fi
5474ac_ct_AR=$ac_cv_prog_ac_ct_AR
5475if test -n "$ac_ct_AR"; then
5213506e
RW
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5477$as_echo "$ac_ct_AR" >&6; }
ed698112 5478else
5213506e
RW
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480$as_echo "no" >&6; }
ed698112 5481fi
ee9dd372 5482
5213506e
RW
5483 if test "x$ac_ct_AR" = x; then
5484 AR=""
5485 else
5486 case $cross_compiling:$ac_tool_warned in
5487yes:)
5488{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5490ac_tool_warned=yes ;;
5491esac
5492 AR=$ac_ct_AR
5493 fi
ed698112
NN
5494else
5495 AR="$ac_cv_prog_AR"
5496fi
ee9dd372 5497
ed698112
NN
5498if test -n "$ac_tool_prefix"; then
5499 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ee9dd372 5500set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213506e
RW
5501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5502$as_echo_n "checking for $ac_word... " >&6; }
5503if test "${ac_cv_prog_RANLIB+set}" = set; then :
5504 $as_echo_n "(cached) " >&6
ee9dd372
TT
5505else
5506 if test -n "$RANLIB"; then
5507 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5508else
ed698112
NN
5509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510for as_dir in $PATH
5511do
5512 IFS=$as_save_IFS
5513 test -z "$as_dir" && as_dir=.
5213506e
RW
5514 for ac_exec_ext in '' $ac_executable_extensions; do
5515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ed698112 5516 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213506e 5517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112
NN
5518 break 2
5519 fi
5520done
5213506e
RW
5521 done
5522IFS=$as_save_IFS
ed698112 5523
ee9dd372
TT
5524fi
5525fi
ed698112 5526RANLIB=$ac_cv_prog_RANLIB
ee9dd372 5527if test -n "$RANLIB"; then
5213506e
RW
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5529$as_echo "$RANLIB" >&6; }
ee9dd372 5530else
5213506e
RW
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5532$as_echo "no" >&6; }
ee9dd372
TT
5533fi
5534
5213506e 5535
ed698112 5536fi
ee9dd372 5537if test -z "$ac_cv_prog_RANLIB"; then
ed698112 5538 ac_ct_RANLIB=$RANLIB
ee9dd372
TT
5539 # Extract the first word of "ranlib", so it can be a program name with args.
5540set dummy ranlib; ac_word=$2
5213506e
RW
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5542$as_echo_n "checking for $ac_word... " >&6; }
5543if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5544 $as_echo_n "(cached) " >&6
ee9dd372 5545else
ed698112
NN
5546 if test -n "$ac_ct_RANLIB"; then
5547 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
ee9dd372 5548else
ed698112
NN
5549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550for as_dir in $PATH
5551do
5552 IFS=$as_save_IFS
5553 test -z "$as_dir" && as_dir=.
5213506e
RW
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ed698112 5556 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213506e 5557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112
NN
5558 break 2
5559 fi
5560done
5213506e
RW
5561 done
5562IFS=$as_save_IFS
ed698112 5563
ee9dd372
TT
5564fi
5565fi
ed698112
NN
5566ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5567if test -n "$ac_ct_RANLIB"; then
5213506e
RW
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5569$as_echo "$ac_ct_RANLIB" >&6; }
ee9dd372 5570else
5213506e
RW
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572$as_echo "no" >&6; }
ee9dd372
TT
5573fi
5574
5213506e
RW
5575 if test "x$ac_ct_RANLIB" = x; then
5576 RANLIB=":"
5577 else
5578 case $cross_compiling:$ac_tool_warned in
5579yes:)
5580{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5581$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5582ac_tool_warned=yes ;;
5583esac
5584 RANLIB=$ac_ct_RANLIB
5585 fi
ee9dd372 5586else
ed698112 5587 RANLIB="$ac_cv_prog_RANLIB"
ee9dd372
TT
5588fi
5589
474b97ce
DK
5590if test -n "$ac_tool_prefix"; then
5591 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5592set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5594$as_echo_n "checking for $ac_word... " >&6; }
5595if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5596 $as_echo_n "(cached) " >&6
5597else
5598 if test -n "$DLLTOOL"; then
5599 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5600else
5601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5602for as_dir in $PATH
5603do
5604 IFS=$as_save_IFS
5605 test -z "$as_dir" && as_dir=.
5606 for ac_exec_ext in '' $ac_executable_extensions; do
5607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5608 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5610 break 2
5611 fi
5612done
5613 done
5614IFS=$as_save_IFS
5615
5616fi
5617fi
5618DLLTOOL=$ac_cv_prog_DLLTOOL
5619if test -n "$DLLTOOL"; then
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5621$as_echo "$DLLTOOL" >&6; }
5622else
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5624$as_echo "no" >&6; }
5625fi
5626
5627
5628fi
5629if test -z "$ac_cv_prog_DLLTOOL"; then
5630 ac_ct_DLLTOOL=$DLLTOOL
5631 # Extract the first word of "dlltool", so it can be a program name with args.
5632set dummy dlltool; ac_word=$2
5633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5634$as_echo_n "checking for $ac_word... " >&6; }
5635if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5636 $as_echo_n "(cached) " >&6
5637else
5638 if test -n "$ac_ct_DLLTOOL"; then
5639 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5640else
5641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642for as_dir in $PATH
5643do
5644 IFS=$as_save_IFS
5645 test -z "$as_dir" && as_dir=.
5646 for ac_exec_ext in '' $ac_executable_extensions; do
5647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5648 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5650 break 2
5651 fi
5652done
5653 done
5654IFS=$as_save_IFS
5655
5656fi
5657fi
5658ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5659if test -n "$ac_ct_DLLTOOL"; then
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5661$as_echo "$ac_ct_DLLTOOL" >&6; }
5662else
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5664$as_echo "no" >&6; }
5665fi
5666
5667 if test "x$ac_ct_DLLTOOL" = x; then
5668 DLLTOOL=":"
5669 else
5670 case $cross_compiling:$ac_tool_warned in
5671yes:)
5672{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5673$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5674ac_tool_warned=yes ;;
5675esac
5676 DLLTOOL=$ac_ct_DLLTOOL
5677 fi
5678else
5679 DLLTOOL="$ac_cv_prog_DLLTOOL"
5680fi
5681
02809848
PB
5682for ac_prog in gawk mawk nawk awk
5683do
5684 # Extract the first word of "$ac_prog", so it can be a program name with args.
5685set dummy $ac_prog; ac_word=$2
5213506e
RW
5686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5687$as_echo_n "checking for $ac_word... " >&6; }
5688if test "${ac_cv_prog_AWK+set}" = set; then :
5689 $as_echo_n "(cached) " >&6
02809848
PB
5690else
5691 if test -n "$AWK"; then
5692 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5693else
5694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695for as_dir in $PATH
5696do
5697 IFS=$as_save_IFS
5698 test -z "$as_dir" && as_dir=.
5213506e
RW
5699 for ac_exec_ext in '' $ac_executable_extensions; do
5700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
02809848 5701 ac_cv_prog_AWK="$ac_prog"
5213506e 5702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
02809848
PB
5703 break 2
5704 fi
5705done
5213506e
RW
5706 done
5707IFS=$as_save_IFS
02809848
PB
5708
5709fi
5710fi
5711AWK=$ac_cv_prog_AWK
5712if test -n "$AWK"; then
5213506e
RW
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5714$as_echo "$AWK" >&6; }
02809848 5715else
5213506e
RW
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717$as_echo "no" >&6; }
02809848
PB
5718fi
5719
5213506e 5720
02809848
PB
5721 test -n "$AWK" && break
5722done
5723
97b8365c 5724for ac_prog in jar fastjar gjar
76c6ea0c
TT
5725do
5726 # Extract the first word of "$ac_prog", so it can be a program name with args.
5727set dummy $ac_prog; ac_word=$2
5213506e
RW
5728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5729$as_echo_n "checking for $ac_word... " >&6; }
5730if test "${ac_cv_prog_JAR+set}" = set; then :
5731 $as_echo_n "(cached) " >&6
76c6ea0c
TT
5732else
5733 if test -n "$JAR"; then
5734 ac_cv_prog_JAR="$JAR" # Let the user override the test.
5735else
5736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737for as_dir in $PATH
5738do
5739 IFS=$as_save_IFS
5740 test -z "$as_dir" && as_dir=.
5213506e
RW
5741 for ac_exec_ext in '' $ac_executable_extensions; do
5742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
76c6ea0c 5743 ac_cv_prog_JAR="$ac_prog"
5213506e 5744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
76c6ea0c
TT
5745 break 2
5746 fi
5747done
5213506e
RW
5748 done
5749IFS=$as_save_IFS
76c6ea0c
TT
5750
5751fi
5752fi
5753JAR=$ac_cv_prog_JAR
5754if test -n "$JAR"; then
5213506e
RW
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
5756$as_echo "$JAR" >&6; }
76c6ea0c 5757else
5213506e
RW
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759$as_echo "no" >&6; }
76c6ea0c
TT
5760fi
5761
5213506e 5762
76c6ea0c
TT
5763 test -n "$JAR" && break
5764done
02809848 5765test -n "$JAR" || JAR="no"
ee9dd372 5766
02809848
PB
5767# Extract the first word of "zip", so it can be a program name with args.
5768set dummy zip; ac_word=$2
5213506e
RW
5769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5770$as_echo_n "checking for $ac_word... " >&6; }
5771if test "${ac_cv_path_ZIP+set}" = set; then :
5772 $as_echo_n "(cached) " >&6
02809848
PB
5773else
5774 case $ZIP in
5775 [\\/]* | ?:[\\/]*)
5776 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5777 ;;
5778 *)
5779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780for as_dir in $PATH
5781do
5782 IFS=$as_save_IFS
5783 test -z "$as_dir" && as_dir=.
5213506e
RW
5784 for ac_exec_ext in '' $ac_executable_extensions; do
5785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
02809848 5786 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5213506e 5787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
02809848
PB
5788 break 2
5789 fi
5790done
5213506e
RW
5791 done
5792IFS=$as_save_IFS
02809848
PB
5793
5794 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
5795 ;;
5796esac
5797fi
5798ZIP=$ac_cv_path_ZIP
5799if test -n "$ZIP"; then
5213506e
RW
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
5801$as_echo "$ZIP" >&6; }
02809848 5802else
5213506e
RW
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5804$as_echo "no" >&6; }
02809848
PB
5805fi
5806
5213506e 5807
02809848
PB
5808# Extract the first word of "unzip", so it can be a program name with args.
5809set dummy unzip; ac_word=$2
5213506e
RW
5810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5811$as_echo_n "checking for $ac_word... " >&6; }
5812if test "${ac_cv_path_UNZIP+set}" = set; then :
5813 $as_echo_n "(cached) " >&6
02809848
PB
5814else
5815 case $UNZIP in
5816 [\\/]* | ?:[\\/]*)
5817 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
5818 ;;
5819 *)
5820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821for as_dir in $PATH
5822do
5823 IFS=$as_save_IFS
5824 test -z "$as_dir" && as_dir=.
5213506e
RW
5825 for ac_exec_ext in '' $ac_executable_extensions; do
5826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
02809848 5827 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
5213506e 5828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
02809848
PB
5829 break 2
5830 fi
5831done
5213506e
RW
5832 done
5833IFS=$as_save_IFS
02809848
PB
5834
5835 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
5836 ;;
5837esac
5838fi
5839UNZIP=$ac_cv_path_UNZIP
5840if test -n "$UNZIP"; then
5213506e
RW
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
5842$as_echo "$UNZIP" >&6; }
02809848 5843else
5213506e
RW
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5845$as_echo "no" >&6; }
02809848
PB
5846fi
5847
a968c714 5848
5213506e 5849
a968c714
TT
5850# We need a jar that supports -@. This is a GNU extension.
5851if test "$JAR" != no; then
5852 rm -f config-test.jar
5853 echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
5854 if test -f config-test.jar; then
5855 rm -f config-test.jar
5856 else
5857 JAR=no
5858 fi
5859fi
5860
acd724f6 5861# Prefer the jar we found, but fall back to our jar script.
02809848 5862if test "$JAR" = no; then
acd724f6 5863 if test "$ZIP" = no; then
5213506e 5864 as_fn_error "cannot find neither zip nor jar, cannot continue" "$LINENO" 5
acd724f6
TT
5865 else
5866 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
5867 JAR=`pwd`/scripts/jar
02809848 5868 fi
02809848
PB
5869fi
5870
a3ffcff3 5871
ee9dd372
TT
5872
5873
5213506e
RW
5874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5875$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5876 # Check whether --enable-maintainer-mode was given.
5877if test "${enable_maintainer_mode+set}" = set; then :
5878 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee9dd372
TT
5879else
5880 USE_MAINTAINER_MODE=no
5213506e 5881fi
ee9dd372 5882
5213506e
RW
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5884$as_echo "$USE_MAINTAINER_MODE" >&6; }
5885 if test $USE_MAINTAINER_MODE = yes; then
ee9dd372
TT
5886 MAINTAINER_MODE_TRUE=
5887 MAINTAINER_MODE_FALSE='#'
5888else
5889 MAINTAINER_MODE_TRUE='#'
5890 MAINTAINER_MODE_FALSE=
5891fi
e3f92d3b 5892
ee9dd372 5893 MAINT=$MAINTAINER_MODE_TRUE
36609570 5894
0659e0e3 5895
ee9dd372 5896
ee9dd372 5897
ee9dd372
TT
5898
5899# configure.host sets the following important variables
5900# libgcj_cflags - host specific C compiler flags
5901# libgcj_cxxflags - host specific C++ compiler flags
5902# libgcj_javaflags - host specific Java compiler flags
c4f0333b 5903# libgcj_sublib_ltflags - host specific Libtool flags
474b97ce
DK
5904# libgcj_sublib_core_extra_deps - host specific extra
5905# dependencies for core sublib
5906# (these last two only used when building sublibs)
6a92b6c7 5907# and a number of others; see the list at the start of the file.
ee9dd372
TT
5908
5909libgcj_cflags=
5910libgcj_cxxflags=
5911libgcj_javaflags=
c4f0333b 5912libgcj_sublib_ltflags=
474b97ce 5913libgcj_sublib_core_extra_deps=
ee9dd372 5914
2ee7cd3e 5915. ${srcdir}/configure.host
ee9dd372 5916
5213506e
RW
5917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5918$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5919if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5920 $as_echo_n "(cached) " >&6
76b972d6
L
5921else
5922 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5923if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5924 acl_cv_prog_gnu_ld=yes
5925else
5926 acl_cv_prog_gnu_ld=no
5927fi
5928fi
5213506e
RW
5929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5930$as_echo "$acl_cv_prog_gnu_ld" >&6; }
76b972d6
L
5931with_gnu_ld=$acl_cv_prog_gnu_ld
5932
5213506e
RW
5933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
5934$as_echo_n "checking if the GNU linker ($LD) supports -Bsymbolic-functions... " >&6; }
5935if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then :
5936 $as_echo_n "(cached) " >&6
76b972d6
L
5937else
5938
5939acl_cv_prog_gnu_ld_symbolic=no
5940
5941if test x"$with_gnu_ld" = x"yes"; then
5942 if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
5943 acl_cv_prog_gnu_ld_symbolic=yes
5944 fi
5945fi
5946fi
5213506e
RW
5947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld_symbolic" >&5
5948$as_echo "$acl_cv_prog_gnu_ld_symbolic" >&6; }
76b972d6
L
5949if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
5950 SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
5951else
5952 SYMBOLIC_LDFLAGS=''
5953fi
5954
5955libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
5956if test -z "$libgcj_ld_symbolic"; then
5957 libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
5958fi
5959
ee9dd372
TT
5960LIBGCJ_CFLAGS="${libgcj_cflags}"
5961LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
5962LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
c4f0333b 5963LIBGCJ_SUBLIB_LTFLAGS="${libgcj_sublib_ltflags}"
474b97ce 5964LIBGCJ_SUBLIB_CORE_EXTRA_DEPS="${libgcj_sublib_core_extra_deps}"
36739040 5965LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
76b972d6
L
5966LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
5967
36739040 5968
ee9dd372
TT
5969
5970
5971
5972
c4f0333b 5973
474b97ce 5974
16dab3e2
TF
5975# Only use libltdl for non-newlib builds.
5976if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5213506e
RW
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
5978$as_echo_n "checking dynamic linker characteristics... " >&6; }
16dab3e2
TF
5979library_names_spec=
5980libname_spec='lib$name'
5981soname_spec=
5982shrext=".so"
5983postinstall_cmds=
5984postuninstall_cmds=
5985finish_cmds=
5986finish_eval=
5987shlibpath_var=
5988shlibpath_overrides_runpath=unknown
5989version_type=none
5990dynamic_linker="$host_os ld.so"
5991sys_lib_dlsearch_path_spec="/lib /usr/lib"
5992if test "$GCC" = yes; then
ab408bac 5993 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
16dab3e2
TF
5994 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
5995 # if the path contains ";" then we assume it to be the separator
5996 # otherwise default to the standard path separator (i.e. ":") - it is
5997 # assumed that no part of a normal pathname contains ";" but that should
5998 # okay in the real world where ";" in dirpaths is itself problematic.
ab408bac 5999 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
16dab3e2 6000 else
ab408bac 6001 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
16dab3e2
TF
6002 fi
6003else
6004 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6005fi
6006need_lib_prefix=unknown
6007hardcode_into_libs=no
6008
6009# when you set need_version to no, make sure it does not cause -set_version
6010# flags to be left without arguments
6011need_version=unknown
6012
6013case $host_os in
6014aix3*)
6015 version_type=linux
6016 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6017 shlibpath_var=LIBPATH
6018
6019 # AIX 3 has no versioning support, so we append a major version to the name.
6020 soname_spec='${libname}${release}${shared_ext}$major'
6021 ;;
6022
ed44a2c7 6023aix[4-9]*)
16dab3e2
TF
6024 version_type=linux
6025 need_lib_prefix=no
6026 need_version=no
6027 hardcode_into_libs=yes
6028 if test "$host_cpu" = ia64; then
6029 # AIX 5 supports IA64
6030 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6031 shlibpath_var=LD_LIBRARY_PATH
6032 else
6033 # With GCC up to 2.95.x, collect2 would create an import file
6034 # for dependence libraries. The import file would start with
6035 # the line `#! .'. This would cause the generated library to
6036 # depend on `.', always an invalid library. This was fixed in
6037 # development snapshots of GCC prior to 3.0.
6038 case $host_os in
6039 aix4 | aix4.[01] | aix4.[01].*)
6040 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6041 echo ' yes '
6042 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6043 :
6044 else
6045 can_build_shared=no
6046 fi
6047 ;;
6048 esac
6049 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6050 # soname into executable. Probably we can add versioning support to
6051 # collect2, so additional links can be useful in future.
6052 if test "$aix_use_runtimelinking" = yes; then
6053 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6054 # instead of lib<name>.a to let people know that these are not
6055 # typical AIX shared libraries.
6056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6057 else
6058 # We preserve .a as extension for shared libraries through AIX4.2
6059 # and later when we are not doing run time linking.
6060 library_names_spec='${libname}${release}.a $libname.a'
6061 soname_spec='${libname}${release}${shared_ext}$major'
6062 fi
6063 shlibpath_var=LIBPATH
6064 fi
6065 ;;
6066
6067amigaos*)
6068 library_names_spec='$libname.ixlibrary $libname.a'
6069 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6070 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'
6071 ;;
6072
6073beos*)
6074 library_names_spec='${libname}${shared_ext}'
6075 dynamic_linker="$host_os ld.so"
6076 shlibpath_var=LIBRARY_PATH
6077 ;;
6078
6079bsdi4*)
6080 version_type=linux
6081 need_version=no
6082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6083 soname_spec='${libname}${release}${shared_ext}$major'
6084 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6085 shlibpath_var=LD_LIBRARY_PATH
6086 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6087 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6088 # the default ld.so.conf also contains /usr/contrib/lib and
6089 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6090 # libtool to hard-code these into programs
6091 ;;
6092
6093cygwin* | mingw* | pw32*)
6094 version_type=windows
6095 shrext=".dll"
6096 need_version=no
6097 need_lib_prefix=no
6098
6099 case $GCC,$host_os in
6100 yes,cygwin* | yes,mingw* | yes,pw32*)
6101 library_names_spec='$libname.dll.a'
6102 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6103 postinstall_cmds='base_file=`basename \${file}`~
6104 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6105 dldir=$destdir/`dirname \$dlpath`~
6106 test -d \$dldir || mkdir -p \$dldir~
6107 $install_prog $dir/$dlname \$dldir/$dlname'
6108 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6109 dlpath=$dir/\$dldll~
6110 $rm \$dlpath'
6111 shlibpath_overrides_runpath=yes
6112
6113 case $host_os in
6114 cygwin*)
6115 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
ab408bac 6116 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16dab3e2
TF
6117 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
6118 ;;
6119 mingw*)
6120 # MinGW DLLs use traditional 'lib' prefix
ab408bac
JJ
6121 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6122 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
16dab3e2
TF
6123 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6124 # It is most probably a Windows format PATH printed by
6125 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6126 # path with ; separators, and with drive letters. We can handle the
6127 # drive letters (cygwin fileutils understands them), so leave them,
6128 # especially as we might pass files found there to a mingw objdump,
6129 # which wouldn't understand a cygwinified path. Ahh.
ab408bac 6130 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
16dab3e2 6131 else
ab408bac 6132 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
16dab3e2
TF
6133 fi
6134 ;;
6135 pw32*)
6136 # pw32 DLLs use 'pw' prefix rather than 'lib'
ab408bac 6137 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
16dab3e2
TF
6138 ;;
6139 esac
6140 ;;
6141
6142 *)
ab408bac 6143 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16dab3e2
TF
6144 ;;
6145 esac
6146 dynamic_linker='Win32 ld.exe'
6147 # FIXME: first we should search . and the directory the executable is in
6148 shlibpath_var=PATH
6149 ;;
6150
6151darwin* | rhapsody*)
6152 dynamic_linker="$host_os dyld"
6153 version_type=darwin
6154 need_lib_prefix=no
6155 need_version=no
6156 # FIXME: Relying on posixy $() will cause problems for
6157 # cross-compilation, but unfortunately the echo tests do not
6158 # yet detect zsh echo's removal of \ escapes.
6159 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6160 soname_spec='${libname}${release}${major}$shared_ext'
6161 shlibpath_overrides_runpath=yes
6162 shlibpath_var=DYLD_LIBRARY_PATH
6163 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
6164 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6165 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6166 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"`
6167 fi
6168 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6169 ;;
6170
6171dgux*)
6172 version_type=linux
6173 need_lib_prefix=no
6174 need_version=no
6175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6176 soname_spec='${libname}${release}${shared_ext}$major'
6177 shlibpath_var=LD_LIBRARY_PATH
6178 ;;
6179
16dab3e2
TF
6180freebsd*)
6181 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6182 version_type=freebsd-$objformat
6183 case $version_type in
6184 freebsd-elf*)
6185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6186 need_version=no
6187 need_lib_prefix=no
6188 ;;
6189 freebsd-*)
6190 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6191 need_version=yes
6192 ;;
6193 esac
6194 shlibpath_var=LD_LIBRARY_PATH
6195 case $host_os in
6196 freebsd2*)
6197 shlibpath_overrides_runpath=yes
6198 ;;
6199 freebsd3.01* | freebsdelf3.01*)
6200 shlibpath_overrides_runpath=yes
6201 hardcode_into_libs=yes
6202 ;;
6203 *) # from 3.2 on
6204 shlibpath_overrides_runpath=no
6205 hardcode_into_libs=yes
6206 ;;
6207 esac
6208 ;;
ee9dd372 6209
16dab3e2
TF
6210gnu*)
6211 version_type=linux
6212 need_lib_prefix=no
6213 need_version=no
6214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6215 soname_spec='${libname}${release}${shared_ext}$major'
6216 shlibpath_var=LD_LIBRARY_PATH
6217 hardcode_into_libs=yes
6218 ;;
6219
6220hpux9* | hpux10* | hpux11*)
6221 # Give a soname corresponding to the major version so that dld.sl refuses to
6222 # link against other versions.
6223 version_type=sunos
6224 need_lib_prefix=no
6225 need_version=no
6226 case "$host_cpu" in
6227 ia64*)
6228 shrext='.so'
6229 hardcode_into_libs=yes
6230 dynamic_linker="$host_os dld.so"
6231 shlibpath_var=LD_LIBRARY_PATH
6232 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6234 soname_spec='${libname}${release}${shared_ext}$major'
6235 if test "X$HPUX_IA64_MODE" = X32; then
6236 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6237 else
6238 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6239 fi
6240 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6241 ;;
6242 hppa*64*)
6243 shrext='.sl'
6244 hardcode_into_libs=yes
6245 dynamic_linker="$host_os dld.sl"
6246 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6247 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6249 soname_spec='${libname}${release}${shared_ext}$major'
6250 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6251 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6252 ;;
6253 *)
6254 shrext='.sl'
6255 dynamic_linker="$host_os dld.sl"
6256 shlibpath_var=SHLIB_PATH
6257 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6259 soname_spec='${libname}${release}${shared_ext}$major'
6260 ;;
6261 esac
6262 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6263 postinstall_cmds='chmod 555 $lib'
6264 ;;
6265
6266irix5* | irix6* | nonstopux*)
6267 case $host_os in
6268 nonstopux*) version_type=nonstopux ;;
6269 *)
6270 if test "$lt_cv_prog_gnu_ld" = yes; then
6271 version_type=linux
6272 else
6273 version_type=irix
6274 fi ;;
6275 esac
6276 need_lib_prefix=no
6277 need_version=no
6278 soname_spec='${libname}${release}${shared_ext}$major'
6279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6280 case $host_os in
6281 irix5* | nonstopux*)
6282 libsuff= shlibsuff=
6283 ;;
6284 *)
6285 case $LD in # libtool.m4 will add one of these switches to LD
6286 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6287 libsuff= shlibsuff= libmagic=32-bit;;
6288 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6289 libsuff=32 shlibsuff=N32 libmagic=N32;;
6290 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6291 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6292 *) libsuff= shlibsuff= libmagic=never-match;;
6293 esac
6294 ;;
6295 esac
6296 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6297 shlibpath_overrides_runpath=no
6298 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6299 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6300 hardcode_into_libs=yes
6301 ;;
6302
6303# No shared lib support for Linux oldld, aout, or coff.
6304linux*oldld* | linux*aout* | linux*coff*)
6305 dynamic_linker=no
6306 ;;
6307
6308# This must be Linux ELF.
94ba45df 6309linux*|k*bsd*-gnu)
16dab3e2
TF
6310 version_type=linux
6311 need_lib_prefix=no
6312 need_version=no
6313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6314 soname_spec='${libname}${release}${shared_ext}$major'
6315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6316 shlibpath_var=LD_LIBRARY_PATH
6317 shlibpath_overrides_runpath=no
6318 # This implies no fast_install, which is unacceptable.
6319 # Some rework will be needed to allow for fast_install
6320 # before this can be enabled.
6321 hardcode_into_libs=yes
6322
6323 # We used to test for /lib/ld.so.1 and disable shared libraries on
6324 # powerpc, because MkLinux only supported shared libraries with the
6325 # GNU dynamic linker. Since this was broken with cross compilers,
6326 # most powerpc-linux boxes support dynamic linking these days and
6327 # people can always --disable-shared, the test was removed, and we
6328 # assume the GNU/Linux dynamic linker is in use.
6329 dynamic_linker='GNU/Linux ld.so'
6330 ;;
6331
6332netbsd*)
6333 version_type=sunos
6334 need_lib_prefix=no
6335 need_version=no
6336 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6338 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6339 dynamic_linker='NetBSD (a.out) ld.so'
6340 else
6341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
6342 soname_spec='${libname}${release}${shared_ext}$major'
6343 dynamic_linker='NetBSD ld.elf_so'
6344 fi
6345 shlibpath_var=LD_LIBRARY_PATH
6346 shlibpath_overrides_runpath=yes
6347 hardcode_into_libs=yes
6348 ;;
6349
6350newsos6)
6351 version_type=linux
6352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6353 shlibpath_var=LD_LIBRARY_PATH
6354 shlibpath_overrides_runpath=yes
6355 ;;
6356
6357nto-qnx)
6358 version_type=linux
6359 need_lib_prefix=no
6360 need_version=no
6361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6362 soname_spec='${libname}${release}${shared_ext}$major'
6363 shlibpath_var=LD_LIBRARY_PATH
6364 shlibpath_overrides_runpath=yes
6365 ;;
6366
6367openbsd*)
6368 version_type=sunos
6369 need_lib_prefix=no
6370 need_version=no
6371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6372 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6373 shlibpath_var=LD_LIBRARY_PATH
6374 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6375 case $host_os in
6376 openbsd2.[89] | openbsd2.[89].*)
6377 shlibpath_overrides_runpath=no
6378 ;;
6379 *)
6380 shlibpath_overrides_runpath=yes
6381 ;;
6382 esac
6383 else
6384 shlibpath_overrides_runpath=yes
6385 fi
6386 ;;
6387
6388os2*)
6389 libname_spec='$name'
6390 shrext=".dll"
6391 need_lib_prefix=no
6392 library_names_spec='$libname${shared_ext} $libname.a'
6393 dynamic_linker='OS/2 ld.exe'
6394 shlibpath_var=LIBPATH
6395 ;;
6396
6397osf3* | osf4* | osf5*)
6398 version_type=osf
6399 need_lib_prefix=no
6400 need_version=no
6401 soname_spec='${libname}${release}${shared_ext}$major'
6402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6403 shlibpath_var=LD_LIBRARY_PATH
6404 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6405 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6406 ;;
6407
6408sco3.2v5*)
6409 version_type=osf
6410 soname_spec='${libname}${release}${shared_ext}$major'
6411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6412 shlibpath_var=LD_LIBRARY_PATH
6413 ;;
6414
6415solaris*)
6416 version_type=linux
6417 need_lib_prefix=no
6418 need_version=no
6419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6420 soname_spec='${libname}${release}${shared_ext}$major'
6421 shlibpath_var=LD_LIBRARY_PATH
6422 shlibpath_overrides_runpath=yes
6423 hardcode_into_libs=yes
6424 # ldd complains unless libraries are executable
6425 postinstall_cmds='chmod +x $lib'
6426 ;;
6427
6428sunos4*)
6429 version_type=sunos
6430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6431 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6432 shlibpath_var=LD_LIBRARY_PATH
6433 shlibpath_overrides_runpath=yes
6434 if test "$with_gnu_ld" = yes; then
6435 need_lib_prefix=no
6436 fi
6437 need_version=yes
6438 ;;
6439
6440sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6441 version_type=linux
6442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6443 soname_spec='${libname}${release}${shared_ext}$major'
6444 shlibpath_var=LD_LIBRARY_PATH
6445 case $host_vendor in
6446 sni)
6447 shlibpath_overrides_runpath=no
6448 need_lib_prefix=no
6449 export_dynamic_flag_spec='${wl}-Blargedynsym'
6450 runpath_var=LD_RUN_PATH
6451 ;;
6452 siemens)
6453 need_lib_prefix=no
6454 ;;
6455 motorola)
6456 need_lib_prefix=no
6457 need_version=no
6458 shlibpath_overrides_runpath=no
6459 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6460 ;;
6461 esac
6462 ;;
6463
6464sysv4*MP*)
6465 if test -d /usr/nec ;then
6466 version_type=linux
6467 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6468 soname_spec='$libname${shared_ext}.$major'
6469 shlibpath_var=LD_LIBRARY_PATH
6470 fi
6471 ;;
6472
6473uts4*)
6474 version_type=linux
6475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6476 soname_spec='${libname}${release}${shared_ext}$major'
6477 shlibpath_var=LD_LIBRARY_PATH
6478 ;;
6479
6480*)
6481 dynamic_linker=no
6482 ;;
6483esac
5213506e
RW
6484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
6485$as_echo "$dynamic_linker" >&6; }
16dab3e2
TF
6486test "$dynamic_linker" = no && can_build_shared=no
6487
6488
5213506e
RW
6489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
6490$as_echo_n "checking which variable specifies run-time library path... " >&6; }
6491if test "${libltdl_cv_shlibpath_var+set}" = set; then :
6492 $as_echo_n "(cached) " >&6
16dab3e2
TF
6493else
6494 libltdl_cv_shlibpath_var="$shlibpath_var"
6495fi
5213506e
RW
6496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
6497$as_echo "$libltdl_cv_shlibpath_var" >&6; }
16dab3e2
TF
6498if test -n "$libltdl_cv_shlibpath_var"; then
6499
6500cat >>confdefs.h <<_ACEOF
6501#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
6502_ACEOF
6503
6504fi
6505
6506fi
6507
5213506e 6508ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
ee9dd372 6509
b0fa81ee 6510
6a92b6c7
DK
6511# Possibly build libgcj as many sub-libraries.
6512# Check whether --enable-libgcj-sublibs was given.
6513if test "${enable_libgcj_sublibs+set}" = set; then :
6514 enableval=$enable_libgcj_sublibs;
6515fi
6516
6517
6518if test -z "$enable_libgcj_sublibs"; then
6519 enable_libgcj_sublibs=$enable_libgcj_sublibs_default
6520fi
6521 if test "$enable_libgcj_sublibs" = yes; then
6522 BUILD_SUBLIBS_TRUE=
6523 BUILD_SUBLIBS_FALSE='#'
6524else
6525 BUILD_SUBLIBS_TRUE='#'
6526 BUILD_SUBLIBS_FALSE=
6527fi
6528
6529if test "$enable_libgcj_sublibs" = yes ; then
6530 # In theory we could make do with only one override and simply
6531 # tag "_bc" onto the end of it when we use it to generate the
6532 # spec, but that's an ugly thing to do when there are multiple
6533 # words in the string and you're relying on the ordering to
6534 # append the correct one.
6535 libgcj_spec_lgcj_override="-lgcj-noncore -lgcj"
6536 libgcj_spec_lgcj_bc_override="-lgcj-noncore -lgcj_bc"
6537fi
6538
6539
b0fa81ee
TT
6540# See if the user has requested runtime debugging.
6541LIBGCJDEBUG="disable"
6542
5213506e
RW
6543# Check whether --enable-libgcj-debug was given.
6544if test "${enable_libgcj_debug+set}" = set; then :
6545 enableval=$enable_libgcj_debug; if test "$enable_libgcj_debug" = yes; then
b0fa81ee 6546
5213506e 6547$as_echo "#define __GCJ_DEBUG 1" >>confdefs.h
b0fa81ee
TT
6548
6549 LIBGCJDEBUG="enable"
6550 fi
5213506e
RW
6551fi
6552
b0fa81ee 6553
97b8365c 6554
5213506e
RW
6555# Check whether --with-escher was given.
6556if test "${with_escher+set}" = set; then :
6557 withval=$with_escher;
6558fi
97b8365c 6559
97b8365c
TT
6560case "$with_escher" in
6561"")
6562 use_escher=false
6563 ;;
6564"no")
6565 use_escher=false
6566 ;;
6567"yes")
5213506e 6568 as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
97b8365c
TT
6569 ;;
6570*)
6571 use_escher=true
6572 ;;
6573esac
6574
b0fa81ee 6575# Determine which AWT peer libraries to build
5213506e
RW
6576# Check whether --enable-java-awt was given.
6577if test "${enable_java_awt+set}" = set; then :
6578 enableval=$enable_java_awt;
6579fi
b0fa81ee 6580
b0fa81ee
TT
6581
6582peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6583use_xlib_awt=""
6584use_gtk_awt=""
ab3fa9d3 6585use_qt_awt=""
97b8365c 6586use_x_awt=""
b0fa81ee
TT
6587# The default toolkit to use is the first one specified.
6588TOOLKIT=
6589
6590
6591for peer in $peerlibs ; do
6592 case $peer in
6593 xlib)
6594 if test "$no_x" = yes; then
6595 echo "*** xlib peers requested but no X library available" 1>&2
6596 exit 1
6597 else
9365047a
TT
6598 use_xlib_awt="yes"
6599 if test -z "$TOOLKIT"; then
6600 TOOLKIT=gnu.awt.xlib.XToolkit
6601 fi
b0fa81ee
TT
6602 fi
6603 ;;
6604 gtk)
6605 if test "$no_x" = yes; then
ab3fa9d3 6606 echo "*** gtk peers requested but no X library available" 1>&2
b0fa81ee
TT
6607 exit 1
6608 else
6609 use_gtk_awt=yes
6610 if test -z "$TOOLKIT"; then
6611 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
6612 fi
6613 fi
6614 ;;
ab3fa9d3
TT
6615 qt)
6616 if test "$no_x" = yes; then
6617 # Perhaps we should admit the possibility of embedded Qt.
6618 echo "*** Qt peers requested but no X library available" 1>&2
6619 exit 1
6620 else
6621 use_qt_awt=yes
6622 if test -z "$TOOLKIT"; then
6623 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
6624 fi
6625 fi
6626 ;;
97b8365c
TT
6627 x)
6628 use_x_awt=yes
6629 if test -z "$TOOLKIT"; then
6630 TOOLKIT=gnu.java.awt.peer.x.XToolkit
6631 fi
6632 ;;
b0fa81ee
TT
6633 no)
6634 use_xlib_awt=
6635 use_gtk_awt=
ab3fa9d3 6636 use_qt_awt=
97b8365c 6637 use_x_awt=
b0fa81ee
TT
6638 break
6639 ;;
6640 *)
6641 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6642 exit 1
6643 esac
6644done
6645
5213506e 6646 if test "$use_xlib_awt" = yes; then
b0fa81ee
TT
6647 XLIB_AWT_TRUE=
6648 XLIB_AWT_FALSE='#'
6649else
6650 XLIB_AWT_TRUE='#'
6651 XLIB_AWT_FALSE=
6652fi
6653
5213506e 6654 if test "$use_x_awt" = yes; then
97b8365c
TT
6655 X_AWT_TRUE=
6656 X_AWT_FALSE='#'
6657else
6658 X_AWT_TRUE='#'
6659 X_AWT_FALSE=
6660fi
6661
6662
6663
6664cat >>confdefs.h <<_ACEOF
6665#define AWT_TOOLKIT "$TOOLKIT"
6666_ACEOF
6667
6668
f3392d53
RW
6669expanded_prefix=$prefix
6670if test "X$prefix" = XNONE; then
6671 expanded_prefix=${ac_default_prefix}
6672fi
6673
97b8365c
TT
6674
6675cat >>confdefs.h <<_ACEOF
f3392d53 6676#define LIBGCJ_PREFIX "$expanded_prefix"
97b8365c
TT
6677_ACEOF
6678
6679
9365047a
TT
6680# Create standard.omit based on decisions we just made.
6681cp $srcdir/standard.omit.in standard.omit
6682if test "$use_xlib_awt" != yes; then
6683 echo gnu/awt/xlib >> standard.omit
6684 echo gnu/gcj/xlib >> standard.omit
6685fi
97b8365c
TT
6686if test "$use_x_awt" != yes; then
6687 echo gnu/java/awt/peer/x >> standard.omit
6688fi
b0fa81ee 6689
7f40378f 6690# Tools that need to be compiled against classpath's tools classes
ded63764 6691: > vm-tools-packages
7f40378f
DD
6692for package in gnu/gcj/tools/gc_analyze ; do
6693 echo $package >> standard.omit
6694 echo $package >> vm-tools-packages
6695done
6696
b0fa81ee
TT
6697if test -z "${with_multisubdir}"; then
6698 builddotdot=.
6699else
6700 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
6701fi
6702
6703NATIVE=yes
6704
97b8365c 6705# Which gcj and host gcj (for ecjx) do we use?
b0fa81ee 6706which_gcj=default
97b8365c 6707host_exeext=${ac_exeext}
9f8f1def
DL
6708GCJ_FOR_ECJX='$(GCJ)'
6709GCC_FOR_ECJX='$(CXX)'
b0fa81ee
TT
6710built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
6711if test -n "${with_cross_host}"; then
6712 # We are being configured with a cross compiler. We can't
6713 # use ac_exeext, because that is for the target platform.
6714 NATIVE=no
6715 cross_host_exeext=
97b8365c 6716 GCJ_FOR_ECJX="${with_cross_host}-gcj"
9f8f1def 6717 GCC_FOR_ECJX="${with_cross_host}-gcc"
b0fa81ee
TT
6718 case "${with_cross_host}" in
6719 *mingw* | *cygwin*)
6720 cross_host_exeext=.exe
6721 ;;
6722 esac
97b8365c 6723 host_exeext=${cross_host_exeext}
b0fa81ee
TT
6724 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
6725 if test x"$build_noncanonical" = x"$with_cross_host"; then
6726 # Ordinary cross (host!=target and host=build)
6727 which_gcj=built
6728 else
6729 # Canadian cross (host!=target and host!=build)
6730 which_gcj=cross
6731 fi
6732 else
6733 which_gcj=cross
6734 fi
6735else
6736 # We are being configured with a native or crossed-native compiler
6737 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
6738 if test x"$build" = x"$host"; then
6739 # True native build (host=target and host=build)
6740 which_gcj=built
6741 else
6742 # Crossed-native build (host=target and host!=build)
6743 which_gcj=cross
6744 fi
6745 else
6746 which_gcj=path
6747 fi
6748fi
4a4a4e99
AO
6749libgcjdir=`${PWDCMD-pwd}`
6750case $GCJ in
6751*" -B"*)
6752 # Just in case there is a comma in the build dir, quote it for the
6753 # sed command below.
6754 case $libgcjdir in
6755 *[,\\]*) qlibgcjdir=`echo "$libgcjdir" | sed 's:[,\\]:\\&:g'`;;
6756 *) qlibgcjdir=$libgcjdir;;
6757 esac
6758 GCJ=`echo "$GCJ" | sed "s, -B, -B$qlibgcjdir/&,"`
6759 ;;
6760*)
6761 GCJ=$GCJ" -B$libgcjdir/"
6762 ;;
6763esac
b0fa81ee
TT
6764case "${which_gcj}" in
6765 built)
b0fa81ee 6766 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
b0fa81ee
TT
6767 ;;
6768 cross)
6769 if test "x${with_newlib}" = "xyes"; then
6770 # FIXME (comment): Why is this needed?
6771 GCC_UNWIND_INCLUDE=
b0fa81ee 6772 fi
bf654c94 6773 GCJH='$(target_noncanonical)-gcjh'
b0fa81ee
TT
6774 ;;
6775 path)
b0fa81ee
TT
6776 GCJH=gcjh
6777 ;;
6778esac
e0441a5b
MK
6779JAVAC="$GCJ -C"
6780export JAVAC
b0fa81ee
TT
6781
6782
6783
97b8365c
TT
6784
6785
9f8f1def 6786
b0fa81ee
TT
6787# Create it, so that compile/link tests don't fail
6788test -f libgcj.spec || touch libgcj.spec
6789
6790
6791
6792# Set up to configure Classpath.
6793# FIXME: no supported way to pass args in autoconf.
97b8365c
TT
6794# Disable tool wrappers to avoid ltdl.h configure check.
6795ac_configure_args="$ac_configure_args --disable-tool-wrappers"
b0fa81ee
TT
6796ac_configure_args="$ac_configure_args --disable-load-library"
6797ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
6798ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
6799dir1=`cd $srcdir && pwd`
6800dir2=`pwd`
6801ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
6802ac_configure_args="$ac_configure_args --disable-core-jni"
6803ac_configure_args="$ac_configure_args --disable-examples"
6804ac_configure_args="$ac_configure_args --with-glibj=build"
34677bae 6805if test "$browser_plugin_enabled" != yes; then
648e8d6d 6806 ac_configure_args="$ac_configure_args --disable-plugin"
34677bae
MK
6807else
6808 ac_configure_args="$ac_configure_args --enable-plugin"
648e8d6d 6809fi
ac1ed908
MW
6810if test "$gconf_enabled" != yes; then
6811 ac_configure_args="$ac_configure_args --disable-gconf-peer"
6812 ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
6813fi
b0fa81ee 6814if test "$use_gtk_awt" != yes; then
97b8365c 6815 ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
b0fa81ee 6816fi
ab3fa9d3
TT
6817if test "$use_qt_awt" != yes; then
6818 ac_configure_args="$ac_configure_args --disable-qt-peer"
e0f7b260
TT
6819else
6820 # We need this as qt is disabled by default in classpath.
6821 ac_configure_args="$ac_configure_args --enable-qt-peer"
ab3fa9d3 6822fi
97b8365c
TT
6823if test "$use_x_awt" != yes; then
6824 ac_configure_args="$ac_configure_args --without-escher"
6825else
6826 # We need this as escher is disabled by default in classpath.
6827 if test "$use_escher" != true; then
5213506e 6828 as_fn_error "Please supply an absolute path to the Escher library" "$LINENO" 5
97b8365c
TT
6829 else
6830 ac_configure_args="$ac_configure_args --with-escher=$with_escher"
6831 fi
6832fi
cd6d4007
MK
6833if test "x$BUILD_GJDOC" = xno; then
6834 ac_configure_args="$ac_configure_args --disable-gjdoc"
6835fi
97b8365c 6836# -Werror causes unavoidable problems in code using alsa.
e0441a5b 6837ac_configure_args="$ac_configure_args --disable-regen-headers"
97b8365c 6838ac_configure_args="$ac_configure_args --disable-Werror"
b0fa81ee 6839
d6f6aaf6 6840# Only use libltdl for non-newlib builds.
2d29f3a1 6841if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
52a11cbf 6842 case $enable_ltdl_convenience in
5213506e 6843 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
7af85558
TT
6844 "") enable_ltdl_convenience=yes
6845 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
6846 esac
6d0860ee 6847 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1cf3d07d
SE
6848 LTDLINCL='-I${top_srcdir}/''libltdl'
6849 # For backwards non-gettext consistent compatibility...
6850 INCLTDL="$LTDLINCL"
6851
6852 enable_dlopen=yes
6853
7af85558 6854
ed698112 6855
7af85558 6856 DIRLTDL=libltdl
ed698112 6857
5213506e 6858$as_echo "#define USE_LTDL 1" >>confdefs.h
7af85558
TT
6859
6860 # Sigh. Libtool's macro doesn't do the right thing.
6861 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
7f7ba9bf 6862 # FIXME: this is a hack.
1e6347d8 6863 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
f1eba847 6864 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
7af85558
TT
6865fi
6866
6867
6868
0da7a284
PG
6869case `pwd` in
6870 *\ * | *\ *)
5213506e
RW
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6872$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
0da7a284 6873esac
1cf3d07d
SE
6874
6875
1cf3d07d 6876
43e02a8a
RW
6877macro_version='2.2.7a'
6878macro_revision='1.3134'
1cf3d07d
SE
6879
6880
6881
6882
6883
6884
02809848 6885
1cf3d07d
SE
6886
6887
6888
6889
6890
6891
0da7a284 6892ltmain="$ac_aux_dir/ltmain.sh"
1cf3d07d 6893
43e02a8a
RW
6894# Backslashify metacharacters that are still active within
6895# double-quoted strings.
6896sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6897
6898# Same as above, but do not quote variable references.
6899double_quote_subst='s/\(["`\\]\)/\\\1/g'
6900
6901# Sed substitution to delay expansion of an escaped shell variable in a
6902# double_quote_subst'ed string.
6903delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6904
6905# Sed substitution to delay expansion of an escaped single quote.
6906delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6907
6908# Sed substitution to avoid accidental globbing in evaled expressions
6909no_glob_subst='s/\*/\\\*/g'
6910
6911ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6912ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6913ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6914
6915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6916$as_echo_n "checking how to print strings... " >&6; }
6917# Test print first, because it will be a builtin if present.
6918if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6919 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6920 ECHO='print -r --'
6921elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6922 ECHO='printf %s\n'
6923else
6924 # Use this function as a fallback that always works.
6925 func_fallback_echo ()
6926 {
6927 eval 'cat <<_LTECHO_EOF
6928$1
6929_LTECHO_EOF'
6930 }
6931 ECHO='func_fallback_echo'
6932fi
6933
6934# func_echo_all arg...
6935# Invoke $ECHO with all args, space-separated.
6936func_echo_all ()
6937{
6938 $ECHO ""
6939}
6940
6941case "$ECHO" in
6942 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6943$as_echo "printf" >&6; } ;;
6944 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6945$as_echo "print -r" >&6; } ;;
6946 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6947$as_echo "cat" >&6; } ;;
6948esac
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
5213506e
RW
6963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6964$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6965if test "${ac_cv_path_SED+set}" = set; then :
6966 $as_echo_n "(cached) " >&6
6967else
6968 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6969 for ac_i in 1 2 3 4 5 6 7; do
6970 ac_script="$ac_script$as_nl$ac_script"
6971 done
6972 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6973 { ac_script=; unset ac_script;}
6974 if test -z "$SED"; then
6975 ac_path_SED_found=false
6976 # Loop through the user's path and test for each of PROGNAME-LIST
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1cf3d07d
SE
6978for as_dir in $PATH
6979do
6980 IFS=$as_save_IFS
6981 test -z "$as_dir" && as_dir=.
5213506e 6982 for ac_prog in sed gsed; do
1cf3d07d 6983 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e
RW
6984 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6985 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6986# Check for GNU ac_path_SED and select it if it is found.
6987 # Check for GNU $ac_path_SED
6988case `"$ac_path_SED" --version 2>&1` in
6989*GNU*)
6990 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6991*)
6992 ac_count=0
6993 $as_echo_n 0123456789 >"conftest.in"
6994 while :
6995 do
6996 cat "conftest.in" "conftest.in" >"conftest.tmp"
6997 mv "conftest.tmp" "conftest.in"
6998 cp "conftest.in" "conftest.nl"
6999 $as_echo '' >> "conftest.nl"
7000 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7001 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7002 as_fn_arith $ac_count + 1 && ac_count=$as_val
7003 if test $ac_count -gt ${ac_path_SED_max-0}; then
7004 # Best one so far, save it but keep looking for a better one
7005 ac_cv_path_SED="$ac_path_SED"
7006 ac_path_SED_max=$ac_count
7007 fi
7008 # 10*(2^10) chars as input seems more than enough
7009 test $ac_count -gt 10 && break
7010 done
7011 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7012esac
7013
7014 $ac_path_SED_found && break 3
1cf3d07d
SE
7015 done
7016 done
5213506e 7017 done
1cf3d07d 7018IFS=$as_save_IFS
5213506e
RW
7019 if test -z "$ac_cv_path_SED"; then
7020 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
1cf3d07d 7021 fi
5213506e
RW
7022else
7023 ac_cv_path_SED=$SED
1cf3d07d
SE
7024fi
7025
5213506e
RW
7026fi
7027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7028$as_echo "$ac_cv_path_SED" >&6; }
7029 SED="$ac_cv_path_SED"
7030 rm -f conftest.sed
1cf3d07d
SE
7031
7032test -z "$SED" && SED=sed
7033Xsed="$SED -e 1s/^X//"
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
5213506e
RW
7045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7046$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7047if test "${ac_cv_path_GREP+set}" = set; then :
7048 $as_echo_n "(cached) " >&6
7049else
7050 if test -z "$GREP"; then
7051 ac_path_GREP_found=false
7052 # Loop through the user's path and test for each of PROGNAME-LIST
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7055do
7056 IFS=$as_save_IFS
7057 test -z "$as_dir" && as_dir=.
7058 for ac_prog in grep ggrep; do
7059 for ac_exec_ext in '' $ac_executable_extensions; do
7060 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7061 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7062# Check for GNU ac_path_GREP and select it if it is found.
7063 # Check for GNU $ac_path_GREP
7064case `"$ac_path_GREP" --version 2>&1` in
7065*GNU*)
7066 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7067*)
7068 ac_count=0
7069 $as_echo_n 0123456789 >"conftest.in"
7070 while :
7071 do
7072 cat "conftest.in" "conftest.in" >"conftest.tmp"
7073 mv "conftest.tmp" "conftest.in"
7074 cp "conftest.in" "conftest.nl"
7075 $as_echo 'GREP' >> "conftest.nl"
7076 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7077 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7078 as_fn_arith $ac_count + 1 && ac_count=$as_val
7079 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7080 # Best one so far, save it but keep looking for a better one
7081 ac_cv_path_GREP="$ac_path_GREP"
7082 ac_path_GREP_max=$ac_count
7083 fi
7084 # 10*(2^10) chars as input seems more than enough
7085 test $ac_count -gt 10 && break
7086 done
7087 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7088esac
7089
7090 $ac_path_GREP_found && break 3
7091 done
7092 done
7093 done
7094IFS=$as_save_IFS
7095 if test -z "$ac_cv_path_GREP"; then
7096 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7097 fi
7098else
7099 ac_cv_path_GREP=$GREP
7100fi
7101
7102fi
7103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7104$as_echo "$ac_cv_path_GREP" >&6; }
7105 GREP="$ac_cv_path_GREP"
7106
7107
7108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7109$as_echo_n "checking for egrep... " >&6; }
7110if test "${ac_cv_path_EGREP+set}" = set; then :
7111 $as_echo_n "(cached) " >&6
1cf3d07d 7112else
5213506e
RW
7113 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7114 then ac_cv_path_EGREP="$GREP -E"
7115 else
7116 if test -z "$EGREP"; then
7117 ac_path_EGREP_found=false
7118 # Loop through the user's path and test for each of PROGNAME-LIST
7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7121do
7122 IFS=$as_save_IFS
7123 test -z "$as_dir" && as_dir=.
7124 for ac_prog in egrep; do
7125 for ac_exec_ext in '' $ac_executable_extensions; do
7126 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7127 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7128# Check for GNU ac_path_EGREP and select it if it is found.
7129 # Check for GNU $ac_path_EGREP
7130case `"$ac_path_EGREP" --version 2>&1` in
7131*GNU*)
7132 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7133*)
7134 ac_count=0
7135 $as_echo_n 0123456789 >"conftest.in"
7136 while :
7137 do
7138 cat "conftest.in" "conftest.in" >"conftest.tmp"
7139 mv "conftest.tmp" "conftest.in"
7140 cp "conftest.in" "conftest.nl"
7141 $as_echo 'EGREP' >> "conftest.nl"
7142 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7143 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7144 as_fn_arith $ac_count + 1 && ac_count=$as_val
7145 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7146 # Best one so far, save it but keep looking for a better one
7147 ac_cv_path_EGREP="$ac_path_EGREP"
7148 ac_path_EGREP_max=$ac_count
1cf3d07d 7149 fi
5213506e
RW
7150 # 10*(2^10) chars as input seems more than enough
7151 test $ac_count -gt 10 && break
7152 done
7153 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7154esac
7155
7156 $ac_path_EGREP_found && break 3
7157 done
7158 done
7159 done
7160IFS=$as_save_IFS
7161 if test -z "$ac_cv_path_EGREP"; then
7162 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7163 fi
7164else
7165 ac_cv_path_EGREP=$EGREP
7166fi
7167
7168 fi
1cf3d07d 7169fi
5213506e
RW
7170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7171$as_echo "$ac_cv_path_EGREP" >&6; }
7172 EGREP="$ac_cv_path_EGREP"
1cf3d07d
SE
7173
7174
5213506e
RW
7175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7176$as_echo_n "checking for fgrep... " >&6; }
7177if test "${ac_cv_path_FGREP+set}" = set; then :
7178 $as_echo_n "(cached) " >&6
1cf3d07d 7179else
5213506e
RW
7180 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7181 then ac_cv_path_FGREP="$GREP -F"
7182 else
7183 if test -z "$FGREP"; then
7184 ac_path_FGREP_found=false
7185 # Loop through the user's path and test for each of PROGNAME-LIST
7186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7188do
7189 IFS=$as_save_IFS
7190 test -z "$as_dir" && as_dir=.
7191 for ac_prog in fgrep; do
7192 for ac_exec_ext in '' $ac_executable_extensions; do
7193 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7194 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7195# Check for GNU ac_path_FGREP and select it if it is found.
7196 # Check for GNU $ac_path_FGREP
7197case `"$ac_path_FGREP" --version 2>&1` in
7198*GNU*)
7199 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7200*)
7201 ac_count=0
7202 $as_echo_n 0123456789 >"conftest.in"
7203 while :
7204 do
7205 cat "conftest.in" "conftest.in" >"conftest.tmp"
7206 mv "conftest.tmp" "conftest.in"
7207 cp "conftest.in" "conftest.nl"
7208 $as_echo 'FGREP' >> "conftest.nl"
7209 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7210 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7211 as_fn_arith $ac_count + 1 && ac_count=$as_val
7212 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7213 # Best one so far, save it but keep looking for a better one
7214 ac_cv_path_FGREP="$ac_path_FGREP"
7215 ac_path_FGREP_max=$ac_count
1cf3d07d 7216 fi
5213506e
RW
7217 # 10*(2^10) chars as input seems more than enough
7218 test $ac_count -gt 10 && break
7219 done
7220 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7221esac
7222
7223 $ac_path_FGREP_found && break 3
7224 done
7225 done
7226 done
7227IFS=$as_save_IFS
7228 if test -z "$ac_cv_path_FGREP"; then
7229 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7230 fi
7231else
7232 ac_cv_path_FGREP=$FGREP
7233fi
7234
7235 fi
1cf3d07d 7236fi
5213506e
RW
7237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7238$as_echo "$ac_cv_path_FGREP" >&6; }
7239 FGREP="$ac_cv_path_FGREP"
1cf3d07d
SE
7240
7241
7242test -z "$GREP" && GREP=grep
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
5213506e
RW
7262# Check whether --with-gnu-ld was given.
7263if test "${with_gnu_ld+set}" = set; then :
7264 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
a3ffcff3
TT
7265else
7266 with_gnu_ld=no
5213506e
RW
7267fi
7268
a3ffcff3 7269ac_prog=ld
52a11cbf 7270if test "$GCC" = yes; then
a3ffcff3 7271 # Check if gcc -print-prog-name=ld gives a path.
5213506e
RW
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7273$as_echo_n "checking for ld used by $CC... " >&6; }
6d0860ee
AO
7274 case $host in
7275 *-*-mingw*)
7276 # gcc leaves a trailing carriage return which upsets mingw
7277 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7278 *)
7279 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7280 esac
52a11cbf 7281 case $ac_prog in
01b02b11 7282 # Accept absolute paths.
1cf3d07d 7283 [\\/]* | ?:[\\/]*)
01b02b11 7284 re_direlt='/[^/][^/]*/\.\./'
1cf3d07d
SE
7285 # Canonicalize the pathname of ld
7286 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7287 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7288 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
01b02b11
TT
7289 done
7290 test -z "$LD" && LD="$ac_prog"
7291 ;;
a3ffcff3
TT
7292 "")
7293 # If it fails, then pretend we aren't using GCC.
7294 ac_prog=ld
7295 ;;
7296 *)
7297 # If it is relative, then search for the first ld in PATH.
7298 with_gnu_ld=unknown
7299 ;;
7300 esac
7301elif test "$with_gnu_ld" = yes; then
5213506e
RW
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7303$as_echo_n "checking for GNU ld... " >&6; }
a3ffcff3 7304else
5213506e
RW
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7306$as_echo_n "checking for non-GNU ld... " >&6; }
a3ffcff3 7307fi
5213506e
RW
7308if test "${lt_cv_path_LD+set}" = set; then :
7309 $as_echo_n "(cached) " >&6
a3ffcff3
TT
7310else
7311 if test -z "$LD"; then
1cf3d07d 7312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
a3ffcff3 7313 for ac_dir in $PATH; do
1cf3d07d 7314 IFS="$lt_save_ifs"
a3ffcff3 7315 test -z "$ac_dir" && ac_dir=.
7af85558 7316 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
52a11cbf 7317 lt_cv_path_LD="$ac_dir/$ac_prog"
a3ffcff3 7318 # Check to see if the program is GNU ld. I'd rather use --version,
1cf3d07d 7319 # but apparently some variants of GNU ld only accept -v.
a3ffcff3 7320 # Break only if it was the GNU/non-GNU ld that we prefer.
1cf3d07d
SE
7321 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7322 *GNU* | *'with BFD'*)
a3ffcff3 7323 test "$with_gnu_ld" != no && break
1cf3d07d
SE
7324 ;;
7325 *)
01b02b11 7326 test "$with_gnu_ld" != yes && break
1cf3d07d
SE
7327 ;;
7328 esac
a3ffcff3
TT
7329 fi
7330 done
1cf3d07d 7331 IFS="$lt_save_ifs"
a3ffcff3 7332else
52a11cbf 7333 lt_cv_path_LD="$LD" # Let the user override the test with a path.
a3ffcff3
TT
7334fi
7335fi
7336
52a11cbf 7337LD="$lt_cv_path_LD"
a3ffcff3 7338if test -n "$LD"; then
5213506e
RW
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7340$as_echo "$LD" >&6; }
a3ffcff3 7341else
5213506e
RW
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7343$as_echo "no" >&6; }
a3ffcff3 7344fi
5213506e
RW
7345test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7347$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7348if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7349 $as_echo_n "(cached) " >&6
a3ffcff3 7350else
1cf3d07d
SE
7351 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7352case `$LD -v 2>&1 </dev/null` in
7353*GNU* | *'with BFD'*)
52a11cbf 7354 lt_cv_prog_gnu_ld=yes
1cf3d07d
SE
7355 ;;
7356*)
52a11cbf 7357 lt_cv_prog_gnu_ld=no
1cf3d07d
SE
7358 ;;
7359esac
a3ffcff3 7360fi
5213506e
RW
7361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7362$as_echo "$lt_cv_prog_gnu_ld" >&6; }
52a11cbf 7363with_gnu_ld=$lt_cv_prog_gnu_ld
6d0860ee
AO
7364
7365
a3ffcff3 7366
1cf3d07d
SE
7367
7368
7369
7370
7371
7372
5213506e
RW
7373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7374$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7375if test "${lt_cv_path_NM+set}" = set; then :
7376 $as_echo_n "(cached) " >&6
a3ffcff3
TT
7377else
7378 if test -n "$NM"; then
7379 # Let the user override the test.
52a11cbf 7380 lt_cv_path_NM="$NM"
a3ffcff3 7381else
1cf3d07d
SE
7382 lt_nm_to_check="${ac_tool_prefix}nm"
7383 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7384 lt_nm_to_check="$lt_nm_to_check nm"
7385 fi
7386 for lt_tmp_nm in $lt_nm_to_check; do
7387 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7388 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7389 IFS="$lt_save_ifs"
7390 test -z "$ac_dir" && ac_dir=.
7391 tmp_nm="$ac_dir/$lt_tmp_nm"
7392 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7393 # Check to see if the nm accepts a BSD-compat flag.
7394 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7395 # nm: unknown option "B" ignored
7396 # Tru64's nm complains that /dev/null is an invalid object file
7397 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7398 */dev/null* | *'Invalid file or object type'*)
7399 lt_cv_path_NM="$tmp_nm -B"
7400 break
7401 ;;
7402 *)
7403 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7404 */dev/null*)
7405 lt_cv_path_NM="$tmp_nm -p"
7406 break
7407 ;;
7408 *)
7409 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7410 continue # so that we can try to find one that supports BSD flags
7411 ;;
7412 esac
7413 ;;
7414 esac
a3ffcff3 7415 fi
1cf3d07d
SE
7416 done
7417 IFS="$lt_save_ifs"
a3ffcff3 7418 done
1cf3d07d 7419 : ${lt_cv_path_NM=no}
a3ffcff3
TT
7420fi
7421fi
5213506e
RW
7422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7423$as_echo "$lt_cv_path_NM" >&6; }
1cf3d07d
SE
7424if test "$lt_cv_path_NM" != "no"; then
7425 NM="$lt_cv_path_NM"
7426else
7427 # Didn't find any BSD compatible name lister, look for dumpbin.
43e02a8a
RW
7428 if test -n "$DUMPBIN"; then :
7429 # Let the user override the test.
7430 else
7431 if test -n "$ac_tool_prefix"; then
7432 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
7433 do
7434 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7435set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
7436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437$as_echo_n "checking for $ac_word... " >&6; }
7438if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7439 $as_echo_n "(cached) " >&6
6d0860ee 7440else
1cf3d07d
SE
7441 if test -n "$DUMPBIN"; then
7442 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7443else
7444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445for as_dir in $PATH
7446do
7447 IFS=$as_save_IFS
7448 test -z "$as_dir" && as_dir=.
5213506e
RW
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 7451 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5213506e 7452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
7453 break 2
7454 fi
7455done
5213506e
RW
7456 done
7457IFS=$as_save_IFS
6d0860ee 7458
1cf3d07d
SE
7459fi
7460fi
7461DUMPBIN=$ac_cv_prog_DUMPBIN
7462if test -n "$DUMPBIN"; then
5213506e
RW
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7464$as_echo "$DUMPBIN" >&6; }
1cf3d07d 7465else
5213506e
RW
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467$as_echo "no" >&6; }
1cf3d07d 7468fi
52a11cbf 7469
5213506e 7470
1cf3d07d
SE
7471 test -n "$DUMPBIN" && break
7472 done
7473fi
7474if test -z "$DUMPBIN"; then
7475 ac_ct_DUMPBIN=$DUMPBIN
43e02a8a 7476 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
7477do
7478 # Extract the first word of "$ac_prog", so it can be a program name with args.
7479set dummy $ac_prog; ac_word=$2
5213506e
RW
7480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7481$as_echo_n "checking for $ac_word... " >&6; }
7482if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7483 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7484else
7485 if test -n "$ac_ct_DUMPBIN"; then
7486 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7487else
7488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489for as_dir in $PATH
7490do
7491 IFS=$as_save_IFS
7492 test -z "$as_dir" && as_dir=.
5213506e
RW
7493 for ac_exec_ext in '' $ac_executable_extensions; do
7494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 7495 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5213506e 7496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d 7497 break 2
6d0860ee 7498 fi
1cf3d07d 7499done
5213506e
RW
7500 done
7501IFS=$as_save_IFS
6d0860ee 7502
1cf3d07d
SE
7503fi
7504fi
7505ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7506if test -n "$ac_ct_DUMPBIN"; then
5213506e
RW
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7508$as_echo "$ac_ct_DUMPBIN" >&6; }
1cf3d07d 7509else
5213506e
RW
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7511$as_echo "no" >&6; }
1cf3d07d 7512fi
6d0860ee 7513
5213506e 7514
1cf3d07d
SE
7515 test -n "$ac_ct_DUMPBIN" && break
7516done
6d0860ee 7517
5213506e
RW
7518 if test "x$ac_ct_DUMPBIN" = x; then
7519 DUMPBIN=":"
7520 else
7521 case $cross_compiling:$ac_tool_warned in
7522yes:)
7523{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7524$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7525ac_tool_warned=yes ;;
7526esac
7527 DUMPBIN=$ac_ct_DUMPBIN
7528 fi
1cf3d07d 7529fi
6d0860ee 7530
43e02a8a
RW
7531 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7532 *COFF*)
7533 DUMPBIN="$DUMPBIN -symbols"
7534 ;;
7535 *)
7536 DUMPBIN=:
7537 ;;
7538 esac
7539 fi
6d0860ee 7540
1cf3d07d
SE
7541 if test "$DUMPBIN" != ":"; then
7542 NM="$DUMPBIN"
6d0860ee 7543 fi
1cf3d07d
SE
7544fi
7545test -z "$NM" && NM=nm
6d0860ee 7546
6d0860ee 7547
6d0860ee 7548
6d0860ee 7549
3610e0d5 7550
7af85558 7551
5213506e
RW
7552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7553$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7554if test "${lt_cv_nm_interface+set}" = set; then :
7555 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7556else
7557 lt_cv_nm_interface="BSD nm"
7558 echo "int some_variable = 0;" > conftest.$ac_ext
43e02a8a 7559 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
1cf3d07d
SE
7560 (eval "$ac_compile" 2>conftest.err)
7561 cat conftest.err >&5
43e02a8a 7562 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1cf3d07d
SE
7563 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7564 cat conftest.err >&5
43e02a8a 7565 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
1cf3d07d
SE
7566 cat conftest.out >&5
7567 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7568 lt_cv_nm_interface="MS dumpbin"
7569 fi
7570 rm -f conftest*
6d0860ee 7571fi
5213506e
RW
7572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7573$as_echo "$lt_cv_nm_interface" >&6; }
6d0860ee 7574
c69094e1 7575# find the maximum length of command line arguments
5213506e
RW
7576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7577$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7578if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7579 $as_echo_n "(cached) " >&6
c69094e1
TT
7580else
7581 i=0
7582 teststring="ABCD"
7583
7584 case $build_os in
7585 msdosdjgpp*)
7586 # On DJGPP, this test can blow up pretty badly due to problems in libc
7587 # (any single argument exceeding 2000 bytes causes a buffer overrun
7588 # during glob expansion). Even if it were fixed, the result of this
7589 # check would be larger than it should be.
7590 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7591 ;;
7592
1cf3d07d
SE
7593 gnu*)
7594 # Under GNU Hurd, this test is not required because there is
7595 # no limit to the length of command line arguments.
7596 # Libtool will interpret -1 as no limit whatsoever
7597 lt_cv_sys_max_cmd_len=-1;
7598 ;;
7599
0da7a284 7600 cygwin* | mingw* | cegcc*)
c69094e1
TT
7601 # On Win9x/ME, this test blows up -- it succeeds, but takes
7602 # about 5 minutes as the teststring grows exponentially.
7603 # Worse, since 9x/ME are not pre-emptively multitasking,
7604 # you end up with a "frozen" computer, even though with patience
7605 # the test eventually succeeds (with a max line length of 256k).
7606 # Instead, let's just punt: use the minimum linelength reported by
7607 # all of the supported platforms: 8192 (on NT/2K/XP).
7608 lt_cv_sys_max_cmd_len=8192;
7609 ;;
7610
43e02a8a
RW
7611 mint*)
7612 # On MiNT this can take a long time and run out of memory.
7613 lt_cv_sys_max_cmd_len=8192;
7614 ;;
7615
c69094e1
TT
7616 amigaos*)
7617 # On AmigaOS with pdksh, this test takes hours, literally.
7618 # So we just punt and use a minimum line length of 8192.
7619 lt_cv_sys_max_cmd_len=8192;
7620 ;;
7621
7622 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7623 # This has been around since 386BSD, at least. Likely further.
7624 if test -x /sbin/sysctl; then
7625 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7626 elif test -x /usr/sbin/sysctl; then
7627 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7628 else
1cf3d07d 7629 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
c69094e1
TT
7630 fi
7631 # And add a safety zone
7632 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7633 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7634 ;;
1cf3d07d
SE
7635
7636 interix*)
7637 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7638 lt_cv_sys_max_cmd_len=196608
7639 ;;
7640
7641 osf*)
7642 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7643 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7644 # nice to cause kernel panics so lets avoid the loop below.
7645 # First set a reasonable default.
7646 lt_cv_sys_max_cmd_len=16384
7647 #
7648 if test -x /sbin/sysconfig; then
7649 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7650 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7651 esac
7652 fi
7653 ;;
7654 sco3.2v5*)
7655 lt_cv_sys_max_cmd_len=102400
7656 ;;
7657 sysv5* | sco5v6* | sysv4.2uw2*)
7658 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7659 if test -n "$kargmax"; then
7660 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7661 else
7662 lt_cv_sys_max_cmd_len=32768
7663 fi
7664 ;;
7665 *)
0da7a284
PG
7666 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7667 if test -n "$lt_cv_sys_max_cmd_len"; then
82a6cadf
PB
7668 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7669 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7670 else
7671 # Make teststring a little bigger before we do anything with it.
7672 # a 1K string should be a reasonable start.
7673 for i in 1 2 3 4 5 6 7 8 ; do
7674 teststring=$teststring$teststring
7675 done
7676 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7677 # If test is not a shell built-in, we'll probably end up computing a
7678 # maximum length that is only half of the actual maximum length, but
7679 # we can't tell.
43e02a8a
RW
7680 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7681 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
82a6cadf
PB
7682 test $i != 17 # 1/2 MB should be enough
7683 do
7684 i=`expr $i + 1`
7685 teststring=$teststring$teststring
7686 done
7687 # Only check the string length outside the loop.
7688 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7689 teststring=
7690 # Add a significant safety factor because C++ compilers can tack on
7691 # massive amounts of additional arguments before passing them to the
7692 # linker. It appears as though 1/2 is a usable value.
7693 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7694 fi
1cf3d07d 7695 ;;
c69094e1
TT
7696 esac
7697
7698fi
7699
1cf3d07d 7700if test -n $lt_cv_sys_max_cmd_len ; then
5213506e
RW
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7702$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
c69094e1 7703else
5213506e
RW
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7705$as_echo "none" >&6; }
c69094e1 7706fi
1cf3d07d 7707max_cmd_len=$lt_cv_sys_max_cmd_len
c69094e1
TT
7708
7709
1cf3d07d
SE
7710
7711
7712
7713
7714: ${CP="cp -f"}
7715: ${MV="mv -f"}
7716: ${RM="rm -f"}
7717
5213506e
RW
7718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7719$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1cf3d07d
SE
7720# Try some XSI features
7721xsi_shell=no
7722( _lt_dummy="a/b/c"
7723 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
0da7a284
PG
7724 = c,a/b,, \
7725 && eval 'test $(( 1 + 1 )) -eq 2 \
7726 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
1cf3d07d 7727 && xsi_shell=yes
5213506e
RW
7728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7729$as_echo "$xsi_shell" >&6; }
1cf3d07d
SE
7730
7731
5213506e
RW
7732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7733$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1cf3d07d
SE
7734lt_shell_append=no
7735( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7736 >/dev/null 2>&1 \
7737 && lt_shell_append=yes
5213506e
RW
7738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7739$as_echo "$lt_shell_append" >&6; }
1cf3d07d
SE
7740
7741
7742if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7743 lt_unset=unset
6d0860ee 7744else
1cf3d07d
SE
7745 lt_unset=false
7746fi
7747
7748
7749
7750
7751
7752# test EBCDIC or ASCII
7753case `echo X|tr X '\101'` in
7754 A) # ASCII based system
7755 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7756 lt_SP2NL='tr \040 \012'
7757 lt_NL2SP='tr \015\012 \040\040'
6d0860ee 7758 ;;
1cf3d07d
SE
7759 *) # EBCDIC based system
7760 lt_SP2NL='tr \100 \n'
7761 lt_NL2SP='tr \r\n \100\100'
6d0860ee 7762 ;;
1cf3d07d 7763esac
6d0860ee 7764
6d0860ee 7765
6d0860ee 7766
1cf3d07d
SE
7767
7768
7769
7770
7771
7772
5213506e
RW
7773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7774$as_echo_n "checking for $LD option to reload object files... " >&6; }
7775if test "${lt_cv_ld_reload_flag+set}" = set; then :
7776 $as_echo_n "(cached) " >&6
6d0860ee 7777else
1cf3d07d 7778 lt_cv_ld_reload_flag='-r'
6d0860ee 7779fi
5213506e
RW
7780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7781$as_echo "$lt_cv_ld_reload_flag" >&6; }
1cf3d07d
SE
7782reload_flag=$lt_cv_ld_reload_flag
7783case $reload_flag in
7784"" | " "*) ;;
7785*) reload_flag=" $reload_flag" ;;
7786esac
7787reload_cmds='$LD$reload_flag -o $output$reload_objs'
7788case $host_os in
7789 darwin*)
7790 if test "$GCC" = yes; then
7791 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7792 else
7793 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7794 fi
7795 ;;
7796esac
6d0860ee 7797
1cf3d07d
SE
7798
7799
7800
7801
7802
7803
7804
7805
0da7a284
PG
7806if test -n "$ac_tool_prefix"; then
7807 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7808set dummy ${ac_tool_prefix}objdump; ac_word=$2
5213506e
RW
7809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7810$as_echo_n "checking for $ac_word... " >&6; }
7811if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7812 $as_echo_n "(cached) " >&6
0da7a284
PG
7813else
7814 if test -n "$OBJDUMP"; then
7815 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7816else
7817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7818for as_dir in $PATH
7819do
7820 IFS=$as_save_IFS
7821 test -z "$as_dir" && as_dir=.
5213506e
RW
7822 for ac_exec_ext in '' $ac_executable_extensions; do
7823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0da7a284 7824 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5213506e 7825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0da7a284
PG
7826 break 2
7827 fi
7828done
5213506e
RW
7829 done
7830IFS=$as_save_IFS
0da7a284
PG
7831
7832fi
7833fi
7834OBJDUMP=$ac_cv_prog_OBJDUMP
7835if test -n "$OBJDUMP"; then
5213506e
RW
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7837$as_echo "$OBJDUMP" >&6; }
0da7a284 7838else
5213506e
RW
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7840$as_echo "no" >&6; }
0da7a284
PG
7841fi
7842
5213506e 7843
0da7a284
PG
7844fi
7845if test -z "$ac_cv_prog_OBJDUMP"; then
7846 ac_ct_OBJDUMP=$OBJDUMP
7847 # Extract the first word of "objdump", so it can be a program name with args.
7848set dummy objdump; ac_word=$2
5213506e
RW
7849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7850$as_echo_n "checking for $ac_word... " >&6; }
7851if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7852 $as_echo_n "(cached) " >&6
0da7a284
PG
7853else
7854 if test -n "$ac_ct_OBJDUMP"; then
7855 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7856else
7857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858for as_dir in $PATH
7859do
7860 IFS=$as_save_IFS
7861 test -z "$as_dir" && as_dir=.
5213506e
RW
7862 for ac_exec_ext in '' $ac_executable_extensions; do
7863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0da7a284 7864 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5213506e 7865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0da7a284
PG
7866 break 2
7867 fi
7868done
5213506e
RW
7869 done
7870IFS=$as_save_IFS
0da7a284 7871
0da7a284
PG
7872fi
7873fi
7874ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7875if test -n "$ac_ct_OBJDUMP"; then
5213506e
RW
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7877$as_echo "$ac_ct_OBJDUMP" >&6; }
0da7a284 7878else
5213506e
RW
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7880$as_echo "no" >&6; }
0da7a284
PG
7881fi
7882
5213506e
RW
7883 if test "x$ac_ct_OBJDUMP" = x; then
7884 OBJDUMP="false"
7885 else
7886 case $cross_compiling:$ac_tool_warned in
7887yes:)
7888{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7889$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7890ac_tool_warned=yes ;;
7891esac
7892 OBJDUMP=$ac_ct_OBJDUMP
7893 fi
0da7a284
PG
7894else
7895 OBJDUMP="$ac_cv_prog_OBJDUMP"
7896fi
7897
7898test -z "$OBJDUMP" && OBJDUMP=objdump
7899
7900
7901
7902
7903
7904
7905
7906
1cf3d07d 7907
5213506e
RW
7908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7909$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7910if test "${lt_cv_deplibs_check_method+set}" = set; then :
7911 $as_echo_n "(cached) " >&6
6d0860ee 7912else
1cf3d07d
SE
7913 lt_cv_file_magic_cmd='$MAGIC_CMD'
7914lt_cv_file_magic_test_file=
7915lt_cv_deplibs_check_method='unknown'
7916# Need to set the preceding variable on all platforms that support
7917# interlibrary dependencies.
7918# 'none' -- dependencies not supported.
7919# `unknown' -- same as none, but documents that we really don't know.
7920# 'pass_all' -- all dependencies passed with no checks.
7921# 'test_compile' -- check by making test program.
7922# 'file_magic [[regex]]' -- check by looking for files in library path
7923# which responds to the $file_magic_cmd with a given extended regex.
7924# If you have `file' or equivalent on your system and you're not sure
7925# whether `pass_all' will *always* work, you probably want this one.
7926
7927case $host_os in
ed44a2c7 7928aix[4-9]*)
1cf3d07d
SE
7929 lt_cv_deplibs_check_method=pass_all
7930 ;;
7931
7932beos*)
7933 lt_cv_deplibs_check_method=pass_all
7934 ;;
7935
7936bsdi[45]*)
7937 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7938 lt_cv_file_magic_cmd='/usr/bin/file -L'
7939 lt_cv_file_magic_test_file=/shlib/libc.so
7940 ;;
7941
7942cygwin*)
7943 # func_win32_libid is a shell function defined in ltmain.sh
7944 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7945 lt_cv_file_magic_cmd='func_win32_libid'
7946 ;;
7947
7948mingw* | pw32*)
7949 # Base MSYS/MinGW do not provide the 'file' command needed by
7950 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7951 # unless we find 'file', for example because we are cross-compiling.
43e02a8a
RW
7952 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7953 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
1cf3d07d
SE
7954 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7955 lt_cv_file_magic_cmd='func_win32_libid'
7956 else
7957 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7958 lt_cv_file_magic_cmd='$OBJDUMP -f'
7959 fi
6d0860ee 7960 ;;
1cf3d07d 7961
43e02a8a 7962cegcc*)
0da7a284
PG
7963 # use the weaker test based on 'objdump'. See mingw*.
7964 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7965 lt_cv_file_magic_cmd='$OBJDUMP -f'
7966 ;;
7967
1cf3d07d
SE
7968darwin* | rhapsody*)
7969 lt_cv_deplibs_check_method=pass_all
7970 ;;
7971
7972freebsd* | dragonfly*)
7973 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7974 case $host_cpu in
7975 i*86 )
7976 # Not sure whether the presence of OpenBSD here was a mistake.
7977 # Let's accept both of them until this is cleared up.
7978 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7979 lt_cv_file_magic_cmd=/usr/bin/file
7980 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7981 ;;
7982 esac
7983 else
7984 lt_cv_deplibs_check_method=pass_all
7985 fi
6d0860ee 7986 ;;
1cf3d07d
SE
7987
7988gnu*)
7989 lt_cv_deplibs_check_method=pass_all
7990 ;;
7991
43e02a8a
RW
7992haiku*)
7993 lt_cv_deplibs_check_method=pass_all
7994 ;;
7995
1cf3d07d
SE
7996hpux10.20* | hpux11*)
7997 lt_cv_file_magic_cmd=/usr/bin/file
7998 case $host_cpu in
7999 ia64*)
8000 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8001 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8002 ;;
8003 hppa*64*)
43e02a8a 8004 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
8005 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8006 ;;
6d0860ee 8007 *)
43e02a8a 8008 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
1cf3d07d
SE
8009 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8010 ;;
8011 esac
8012 ;;
6d0860ee 8013
1cf3d07d
SE
8014interix[3-9]*)
8015 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8016 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8017 ;;
6d0860ee 8018
1cf3d07d
SE
8019irix5* | irix6* | nonstopux*)
8020 case $LD in
8021 *-32|*"-32 ") libmagic=32-bit;;
8022 *-n32|*"-n32 ") libmagic=N32;;
8023 *-64|*"-64 ") libmagic=64-bit;;
8024 *) libmagic=never-match;;
8025 esac
8026 lt_cv_deplibs_check_method=pass_all
6d0860ee 8027 ;;
6d0860ee 8028
1cf3d07d 8029# This must be Linux ELF.
7a9d3fe8 8030linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
8031 lt_cv_deplibs_check_method=pass_all
8032 ;;
6d0860ee 8033
1cf3d07d
SE
8034netbsd*)
8035 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8036 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6d0860ee 8037 else
1cf3d07d 8038 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6d0860ee 8039 fi
1cf3d07d
SE
8040 ;;
8041
8042newos6*)
8043 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8044 lt_cv_file_magic_cmd=/usr/bin/file
8045 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8046 ;;
8047
8048*nto* | *qnx*)
8049 lt_cv_deplibs_check_method=pass_all
8050 ;;
6d0860ee 8051
1cf3d07d
SE
8052openbsd*)
8053 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8054 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8055 else
8056 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6d0860ee
AO
8057 fi
8058 ;;
1cf3d07d
SE
8059
8060osf3* | osf4* | osf5*)
8061 lt_cv_deplibs_check_method=pass_all
8062 ;;
8063
8064rdos*)
8065 lt_cv_deplibs_check_method=pass_all
8066 ;;
8067
8068solaris*)
8069 lt_cv_deplibs_check_method=pass_all
8070 ;;
8071
8072sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8073 lt_cv_deplibs_check_method=pass_all
8074 ;;
8075
8076sysv4 | sysv4.3*)
8077 case $host_vendor in
8078 motorola)
8079 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]'
8080 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8081 ;;
8082 ncr)
8083 lt_cv_deplibs_check_method=pass_all
8084 ;;
8085 sequent)
8086 lt_cv_file_magic_cmd='/bin/file'
8087 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8088 ;;
8089 sni)
8090 lt_cv_file_magic_cmd='/bin/file'
8091 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8092 lt_cv_file_magic_test_file=/lib/libc.so
8093 ;;
8094 siemens)
8095 lt_cv_deplibs_check_method=pass_all
8096 ;;
8097 pc)
8098 lt_cv_deplibs_check_method=pass_all
8099 ;;
8100 esac
8101 ;;
8102
8103tpf*)
8104 lt_cv_deplibs_check_method=pass_all
8105 ;;
6d0860ee
AO
8106esac
8107
1cf3d07d 8108fi
5213506e
RW
8109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8110$as_echo "$lt_cv_deplibs_check_method" >&6; }
1cf3d07d
SE
8111file_magic_cmd=$lt_cv_file_magic_cmd
8112deplibs_check_method=$lt_cv_deplibs_check_method
8113test -z "$deplibs_check_method" && deplibs_check_method=unknown
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
ed698112 8126if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
8127 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8128set dummy ${ac_tool_prefix}ar; ac_word=$2
5213506e
RW
8129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8130$as_echo_n "checking for $ac_word... " >&6; }
8131if test "${ac_cv_prog_AR+set}" = set; then :
8132 $as_echo_n "(cached) " >&6
6d0860ee 8133else
1cf3d07d
SE
8134 if test -n "$AR"; then
8135 ac_cv_prog_AR="$AR" # Let the user override the test.
6d0860ee 8136else
ed698112
NN
8137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138for as_dir in $PATH
8139do
8140 IFS=$as_save_IFS
8141 test -z "$as_dir" && as_dir=.
5213506e
RW
8142 for ac_exec_ext in '' $ac_executable_extensions; do
8143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 8144 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213506e 8145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112
NN
8146 break 2
8147 fi
8148done
5213506e
RW
8149 done
8150IFS=$as_save_IFS
ed698112 8151
6d0860ee
AO
8152fi
8153fi
1cf3d07d
SE
8154AR=$ac_cv_prog_AR
8155if test -n "$AR"; then
5213506e
RW
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8157$as_echo "$AR" >&6; }
1cf3d07d 8158else
5213506e
RW
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160$as_echo "no" >&6; }
6d0860ee
AO
8161fi
8162
5213506e 8163
ed698112 8164fi
1cf3d07d
SE
8165if test -z "$ac_cv_prog_AR"; then
8166 ac_ct_AR=$AR
8167 # Extract the first word of "ar", so it can be a program name with args.
8168set dummy ar; ac_word=$2
5213506e
RW
8169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8170$as_echo_n "checking for $ac_word... " >&6; }
8171if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8172 $as_echo_n "(cached) " >&6
6d0860ee 8173else
1cf3d07d
SE
8174 if test -n "$ac_ct_AR"; then
8175 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6d0860ee 8176else
ed698112
NN
8177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8178for as_dir in $PATH
8179do
8180 IFS=$as_save_IFS
8181 test -z "$as_dir" && as_dir=.
5213506e
RW
8182 for ac_exec_ext in '' $ac_executable_extensions; do
8183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 8184 ac_cv_prog_ac_ct_AR="ar"
5213506e 8185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112
NN
8186 break 2
8187 fi
8188done
5213506e
RW
8189 done
8190IFS=$as_save_IFS
ed698112 8191
6d0860ee
AO
8192fi
8193fi
1cf3d07d
SE
8194ac_ct_AR=$ac_cv_prog_ac_ct_AR
8195if test -n "$ac_ct_AR"; then
5213506e
RW
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8197$as_echo "$ac_ct_AR" >&6; }
6d0860ee 8198else
5213506e
RW
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8200$as_echo "no" >&6; }
6d0860ee
AO
8201fi
8202
5213506e
RW
8203 if test "x$ac_ct_AR" = x; then
8204 AR="false"
8205 else
8206 case $cross_compiling:$ac_tool_warned in
8207yes:)
8208{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8209$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8210ac_tool_warned=yes ;;
8211esac
8212 AR=$ac_ct_AR
8213 fi
6d0860ee 8214else
1cf3d07d 8215 AR="$ac_cv_prog_AR"
6d0860ee
AO
8216fi
8217
1cf3d07d
SE
8218test -z "$AR" && AR=ar
8219test -z "$AR_FLAGS" && AR_FLAGS=cru
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
ed698112
NN
8231if test -n "$ac_tool_prefix"; then
8232 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6d0860ee 8233set dummy ${ac_tool_prefix}strip; ac_word=$2
5213506e
RW
8234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8235$as_echo_n "checking for $ac_word... " >&6; }
8236if test "${ac_cv_prog_STRIP+set}" = set; then :
8237 $as_echo_n "(cached) " >&6
6d0860ee
AO
8238else
8239 if test -n "$STRIP"; then
8240 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8241else
ed698112
NN
8242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8243for as_dir in $PATH
8244do
8245 IFS=$as_save_IFS
8246 test -z "$as_dir" && as_dir=.
5213506e
RW
8247 for ac_exec_ext in '' $ac_executable_extensions; do
8248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ed698112 8249 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5213506e 8250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112
NN
8251 break 2
8252 fi
8253done
5213506e
RW
8254 done
8255IFS=$as_save_IFS
ed698112 8256
6d0860ee
AO
8257fi
8258fi
ed698112 8259STRIP=$ac_cv_prog_STRIP
6d0860ee 8260if test -n "$STRIP"; then
5213506e
RW
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8262$as_echo "$STRIP" >&6; }
6d0860ee 8263else
5213506e
RW
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8265$as_echo "no" >&6; }
6d0860ee
AO
8266fi
8267
5213506e 8268
ed698112 8269fi
6d0860ee 8270if test -z "$ac_cv_prog_STRIP"; then
ed698112 8271 ac_ct_STRIP=$STRIP
6d0860ee
AO
8272 # Extract the first word of "strip", so it can be a program name with args.
8273set dummy strip; ac_word=$2
5213506e
RW
8274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8275$as_echo_n "checking for $ac_word... " >&6; }
8276if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8277 $as_echo_n "(cached) " >&6
6d0860ee 8278else
ed698112
NN
8279 if test -n "$ac_ct_STRIP"; then
8280 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6d0860ee 8281else
ed698112
NN
8282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283for as_dir in $PATH
8284do
8285 IFS=$as_save_IFS
8286 test -z "$as_dir" && as_dir=.
5213506e
RW
8287 for ac_exec_ext in '' $ac_executable_extensions; do
8288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ed698112 8289 ac_cv_prog_ac_ct_STRIP="strip"
5213506e 8290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112
NN
8291 break 2
8292 fi
8293done
5213506e
RW
8294 done
8295IFS=$as_save_IFS
ed698112 8296
6d0860ee
AO
8297fi
8298fi
ed698112
NN
8299ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8300if test -n "$ac_ct_STRIP"; then
5213506e
RW
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8302$as_echo "$ac_ct_STRIP" >&6; }
6d0860ee 8303else
5213506e
RW
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305$as_echo "no" >&6; }
6d0860ee
AO
8306fi
8307
5213506e
RW
8308 if test "x$ac_ct_STRIP" = x; then
8309 STRIP=":"
8310 else
8311 case $cross_compiling:$ac_tool_warned in
8312yes:)
8313{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8314$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8315ac_tool_warned=yes ;;
8316esac
8317 STRIP=$ac_ct_STRIP
8318 fi
6d0860ee 8319else
ed698112 8320 STRIP="$ac_cv_prog_STRIP"
6d0860ee
AO
8321fi
8322
1cf3d07d 8323test -z "$STRIP" && STRIP=:
6d0860ee 8324
ed698112 8325
7af85558 8326
7af85558 8327
a3ffcff3 8328
ed698112 8329
1cf3d07d
SE
8330if test -n "$ac_tool_prefix"; then
8331 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8332set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213506e
RW
8333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8334$as_echo_n "checking for $ac_word... " >&6; }
8335if test "${ac_cv_prog_RANLIB+set}" = set; then :
8336 $as_echo_n "(cached) " >&6
6d0860ee 8337else
1cf3d07d
SE
8338 if test -n "$RANLIB"; then
8339 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8340else
8341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8342for as_dir in $PATH
8343do
8344 IFS=$as_save_IFS
8345 test -z "$as_dir" && as_dir=.
5213506e
RW
8346 for ac_exec_ext in '' $ac_executable_extensions; do
8347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 8348 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213506e 8349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d 8350 break 2
a3ffcff3 8351 fi
1cf3d07d 8352done
5213506e
RW
8353 done
8354IFS=$as_save_IFS
a3ffcff3 8355
1cf3d07d
SE
8356fi
8357fi
8358RANLIB=$ac_cv_prog_RANLIB
8359if test -n "$RANLIB"; then
5213506e
RW
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8361$as_echo "$RANLIB" >&6; }
1cf3d07d 8362else
5213506e
RW
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364$as_echo "no" >&6; }
1cf3d07d 8365fi
f5cc59a7 8366
5213506e 8367
1cf3d07d
SE
8368fi
8369if test -z "$ac_cv_prog_RANLIB"; then
8370 ac_ct_RANLIB=$RANLIB
8371 # Extract the first word of "ranlib", so it can be a program name with args.
8372set dummy ranlib; ac_word=$2
5213506e
RW
8373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8374$as_echo_n "checking for $ac_word... " >&6; }
8375if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8376 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8377else
8378 if test -n "$ac_ct_RANLIB"; then
8379 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8380else
8381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8382for as_dir in $PATH
8383do
8384 IFS=$as_save_IFS
8385 test -z "$as_dir" && as_dir=.
5213506e
RW
8386 for ac_exec_ext in '' $ac_executable_extensions; do
8387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 8388 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213506e 8389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d 8390 break 2
54d9d34a 8391 fi
1cf3d07d 8392done
5213506e
RW
8393 done
8394IFS=$as_save_IFS
54d9d34a 8395
1cf3d07d
SE
8396fi
8397fi
8398ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8399if test -n "$ac_ct_RANLIB"; then
5213506e
RW
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8401$as_echo "$ac_ct_RANLIB" >&6; }
01b02b11 8402else
5213506e
RW
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8404$as_echo "no" >&6; }
1cf3d07d 8405fi
ed698112 8406
5213506e
RW
8407 if test "x$ac_ct_RANLIB" = x; then
8408 RANLIB=":"
8409 else
8410 case $cross_compiling:$ac_tool_warned in
8411yes:)
8412{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8413$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8414ac_tool_warned=yes ;;
8415esac
8416 RANLIB=$ac_ct_RANLIB
8417 fi
1cf3d07d
SE
8418else
8419 RANLIB="$ac_cv_prog_RANLIB"
8420fi
8421
8422test -z "$RANLIB" && RANLIB=:
ade710a5 8423
ed698112 8424
01b02b11 8425
01b02b11 8426
ed698112 8427
6d0860ee 8428
1cf3d07d 8429# Determine commands to create old-style static archives.
0da7a284 8430old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1cf3d07d
SE
8431old_postinstall_cmds='chmod 644 $oldlib'
8432old_postuninstall_cmds=
8433
8434if test -n "$RANLIB"; then
8435 case $host_os in
8436 openbsd*)
8437 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8438 ;;
8439 *)
8440 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8441 ;;
8442 esac
8443 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
01b02b11 8444fi
1cf3d07d 8445
43e02a8a
RW
8446case $host_os in
8447 darwin*)
8448 lock_old_archive_extraction=yes ;;
8449 *)
8450 lock_old_archive_extraction=no ;;
8451esac
8452
8453
8454
8455
8456
8457
1cf3d07d
SE
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491# If no C compiler was specified, use CC.
8492LTCC=${LTCC-"$CC"}
8493
8494# If no C compiler flags were specified, use CFLAGS.
8495LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8496
8497# Allow CC to be a program name with arguments.
8498compiler=$CC
8499
8500
8501# Check for command to grab the raw symbol name followed by C symbol from nm.
5213506e
RW
8502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8503$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8504if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8505 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8506else
8507
8508# These are sane defaults that work on at least a few old systems.
8509# [They come from Ultrix. What could be older than Ultrix?!! ;)]
8510
8511# Character class describing NM global symbol codes.
8512symcode='[BCDEGRST]'
8513
8514# Regexp to match symbols that can be accessed directly from C.
8515sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8516
8517# Define system-specific variables.
8518case $host_os in
8519aix*)
8520 symcode='[BCDT]'
8521 ;;
0da7a284 8522cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
8523 symcode='[ABCDGISTW]'
8524 ;;
8525hpux*)
8526 if test "$host_cpu" = ia64; then
8527 symcode='[ABCDEGRST]'
01b02b11 8528 fi
a3ffcff3 8529 ;;
1cf3d07d
SE
8530irix* | nonstopux*)
8531 symcode='[BCDEGRST]'
8532 ;;
8533osf*)
8534 symcode='[BCDEGQRST]'
8535 ;;
8536solaris*)
8537 symcode='[BDRT]'
8538 ;;
8539sco3.2v5*)
8540 symcode='[DT]'
8541 ;;
8542sysv4.2uw2*)
8543 symcode='[DT]'
8544 ;;
8545sysv5* | sco5v6* | unixware* | OpenUNIX*)
8546 symcode='[ABDT]'
8547 ;;
8548sysv4)
8549 symcode='[DFNSTU]'
8550 ;;
8551esac
a3ffcff3 8552
1cf3d07d
SE
8553# If we're using GNU nm, then use its standard symbol codes.
8554case `$NM -V 2>&1` in
8555*GNU* | *'with BFD'*)
8556 symcode='[ABCDGIRSTW]' ;;
a3ffcff3
TT
8557esac
8558
1cf3d07d
SE
8559# Transform an extracted symbol line into a proper C declaration.
8560# Some systems (esp. on ia64) link data and code symbols differently,
8561# so use this general approach.
8562lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
01b02b11 8563
1cf3d07d
SE
8564# Transform an extracted symbol line into symbol name and symbol address
8565lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
0da7a284 8566lt_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 8567
1cf3d07d
SE
8568# Handle CRLF in mingw tool chain
8569opt_cr=
8570case $build_os in
8571mingw*)
8572 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8573 ;;
8574esac
ed698112 8575
1cf3d07d
SE
8576# Try without a prefix underscore, then with it.
8577for ac_symprfx in "" "_"; do
8578
8579 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8580 symxfrm="\\1 $ac_symprfx\\2 \\2"
8581
8582 # Write the raw and C identifiers.
8583 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8584 # Fake it for dumpbin and say T for any non-static function
8585 # and D for any global variable.
8586 # Also find C++ and __fastcall symbols from MSVC++,
8587 # which start with @ or ?.
8588 lt_cv_sys_global_symbol_pipe="$AWK '"\
8589" {last_section=section; section=\$ 3};"\
8590" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8591" \$ 0!~/External *\|/{next};"\
8592" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8593" {if(hide[section]) next};"\
8594" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8595" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8596" s[1]~/^[@?]/{print s[1], s[1]; next};"\
8597" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8598" ' prfx=^$ac_symprfx"
01b02b11 8599 else
1cf3d07d 8600 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
01b02b11 8601 fi
01b02b11 8602
1cf3d07d
SE
8603 # Check to see that the pipe works correctly.
8604 pipe_works=no
a3ffcff3 8605
1cf3d07d
SE
8606 rm -f conftest*
8607 cat > conftest.$ac_ext <<_LT_EOF
8608#ifdef __cplusplus
8609extern "C" {
8610#endif
8611char nm_test_var;
8612void nm_test_func(void);
8613void nm_test_func(void){}
8614#ifdef __cplusplus
8615}
8616#endif
8617int main(){nm_test_var='a';nm_test_func();return(0);}
8618_LT_EOF
01b02b11 8619
5213506e 8620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
8621 (eval $ac_compile) 2>&5
8622 ac_status=$?
5213506e
RW
8623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8624 test $ac_status = 0; }; then
1cf3d07d
SE
8625 # Now try to grab the symbols.
8626 nlist=conftest.nm
43e02a8a
RW
8627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8628 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1cf3d07d 8629 ac_status=$?
5213506e
RW
8630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8631 test $ac_status = 0; } && test -s "$nlist"; then
1cf3d07d
SE
8632 # Try sorting and uniquifying the output.
8633 if sort "$nlist" | uniq > "$nlist"T; then
8634 mv -f "$nlist"T "$nlist"
8635 else
8636 rm -f "$nlist"T
8637 fi
01b02b11 8638
1cf3d07d
SE
8639 # Make sure that we snagged all the symbols we need.
8640 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8641 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8642 cat <<_LT_EOF > conftest.$ac_ext
8643#ifdef __cplusplus
8644extern "C" {
8645#endif
01b02b11 8646
1cf3d07d
SE
8647_LT_EOF
8648 # Now generate the symbol file.
8649 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
01b02b11 8650
1cf3d07d 8651 cat <<_LT_EOF >> conftest.$ac_ext
a3ffcff3 8652
1cf3d07d
SE
8653/* The mapping between symbol names and symbols. */
8654const struct {
8655 const char *name;
8656 void *address;
8657}
8658lt__PROGRAM__LTX_preloaded_symbols[] =
8659{
8660 { "@PROGRAM@", (void *) 0 },
8661_LT_EOF
8662 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8663 cat <<\_LT_EOF >> conftest.$ac_ext
8664 {0, (void *) 0}
8665};
8666
8667/* This works around a problem in FreeBSD linker */
8668#ifdef FREEBSD_WORKAROUND
8669static const void *lt_preloaded_setup() {
8670 return lt__PROGRAM__LTX_preloaded_symbols;
8671}
ed698112 8672#endif
1cf3d07d
SE
8673
8674#ifdef __cplusplus
8675}
8676#endif
8677_LT_EOF
8678 # Now try linking the two files.
8679 mv conftest.$ac_objext conftstm.$ac_objext
8680 lt_save_LIBS="$LIBS"
8681 lt_save_CFLAGS="$CFLAGS"
8682 LIBS="conftstm.$ac_objext"
8683 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5213506e 8684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d 8685 (eval $ac_link) 2>&5
ed698112 8686 ac_status=$?
5213506e
RW
8687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8688 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1cf3d07d
SE
8689 pipe_works=yes
8690 fi
8691 LIBS="$lt_save_LIBS"
8692 CFLAGS="$lt_save_CFLAGS"
8693 else
8694 echo "cannot find nm_test_func in $nlist" >&5
8695 fi
8696 else
8697 echo "cannot find nm_test_var in $nlist" >&5
8698 fi
8699 else
8700 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8701 fi
ed698112 8702 else
1cf3d07d
SE
8703 echo "$progname: failed program was:" >&5
8704 cat conftest.$ac_ext >&5
ed698112 8705 fi
0da7a284 8706 rm -rf conftest* conftst*
1cf3d07d
SE
8707
8708 # Do not use the global_symbol_pipe unless it works.
8709 if test "$pipe_works" = yes; then
8710 break
8711 else
8712 lt_cv_sys_global_symbol_pipe=
8713 fi
8714done
8715
ed698112 8716fi
ed698112 8717
1cf3d07d
SE
8718if test -z "$lt_cv_sys_global_symbol_pipe"; then
8719 lt_cv_sys_global_symbol_to_cdecl=
8720fi
8721if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5213506e
RW
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8723$as_echo "failed" >&6; }
1cf3d07d 8724else
5213506e
RW
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8726$as_echo "ok" >&6; }
ed698112 8727fi
ed698112 8728
1cf3d07d
SE
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
0da7a284
PG
8743
8744
8745
8746
8747
1cf3d07d
SE
8748
8749
8750
5213506e
RW
8751# Check whether --enable-libtool-lock was given.
8752if test "${enable_libtool_lock+set}" = set; then :
8753 enableval=$enable_libtool_lock;
8754fi
1cf3d07d 8755
1cf3d07d
SE
8756test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8757
8758# Some flags need to be propagated to the compiler or linker for good
8759# libtool support.
8760case $host in
8761ia64-*-hpux*)
8762 # Find out which ABI we are using.
8763 echo 'int i;' > conftest.$ac_ext
5213506e 8764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
8765 (eval $ac_compile) 2>&5
8766 ac_status=$?
5213506e
RW
8767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8768 test $ac_status = 0; }; then
1cf3d07d
SE
8769 case `/usr/bin/file conftest.$ac_objext` in
8770 *ELF-32*)
8771 HPUX_IA64_MODE="32"
8772 ;;
8773 *ELF-64*)
8774 HPUX_IA64_MODE="64"
8775 ;;
8776 esac
8777 fi
8778 rm -rf conftest*
8779 ;;
8780*-*-irix6*)
8781 # Find out which ABI we are using.
43e02a8a 8782 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5213506e 8783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
8784 (eval $ac_compile) 2>&5
8785 ac_status=$?
5213506e
RW
8786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8787 test $ac_status = 0; }; then
1cf3d07d
SE
8788 if test "$lt_cv_prog_gnu_ld" = yes; then
8789 case `/usr/bin/file conftest.$ac_objext` in
8790 *32-bit*)
8791 LD="${LD-ld} -melf32bsmip"
8792 ;;
8793 *N32*)
8794 LD="${LD-ld} -melf32bmipn32"
8795 ;;
8796 *64-bit*)
8797 LD="${LD-ld} -melf64bmip"
8798 ;;
8799 esac
8800 else
8801 case `/usr/bin/file conftest.$ac_objext` in
8802 *32-bit*)
8803 LD="${LD-ld} -32"
8804 ;;
8805 *N32*)
8806 LD="${LD-ld} -n32"
8807 ;;
8808 *64-bit*)
8809 LD="${LD-ld} -64"
8810 ;;
8811 esac
8812 fi
8813 fi
8814 rm -rf conftest*
8815 ;;
8816
8817x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8818s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8819 # Find out which ABI we are using.
8820 echo 'int i;' > conftest.$ac_ext
5213506e 8821 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
8822 (eval $ac_compile) 2>&5
8823 ac_status=$?
5213506e
RW
8824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8825 test $ac_status = 0; }; then
1cf3d07d
SE
8826 case `/usr/bin/file conftest.o` in
8827 *32-bit*)
8828 case $host in
8829 x86_64-*kfreebsd*-gnu)
8830 LD="${LD-ld} -m elf_i386_fbsd"
8831 ;;
8832 x86_64-*linux*)
8833 LD="${LD-ld} -m elf_i386"
8834 ;;
8835 ppc64-*linux*|powerpc64-*linux*)
8836 LD="${LD-ld} -m elf32ppclinux"
8837 ;;
8838 s390x-*linux*)
8839 LD="${LD-ld} -m elf_s390"
8840 ;;
8841 sparc64-*linux*)
8842 LD="${LD-ld} -m elf32_sparc"
8843 ;;
8844 esac
8845 ;;
8846 *64-bit*)
8847 case $host in
8848 x86_64-*kfreebsd*-gnu)
8849 LD="${LD-ld} -m elf_x86_64_fbsd"
8850 ;;
8851 x86_64-*linux*)
8852 LD="${LD-ld} -m elf_x86_64"
8853 ;;
8854 ppc*-*linux*|powerpc*-*linux*)
8855 LD="${LD-ld} -m elf64ppc"
8856 ;;
8857 s390*-*linux*|s390*-*tpf*)
8858 LD="${LD-ld} -m elf64_s390"
8859 ;;
8860 sparc*-*linux*)
8861 LD="${LD-ld} -m elf64_sparc"
8862 ;;
8863 esac
8864 ;;
8865 esac
ed698112 8866 fi
1cf3d07d
SE
8867 rm -rf conftest*
8868 ;;
8869
8870*-*-sco3.2v5*)
8871 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8872 SAVE_CFLAGS="$CFLAGS"
8873 CFLAGS="$CFLAGS -belf"
5213506e
RW
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8875$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8876if test "${lt_cv_cc_needs_belf+set}" = set; then :
8877 $as_echo_n "(cached) " >&6
ed698112 8878else
1cf3d07d
SE
8879 ac_ext=c
8880ac_cpp='$CPP $CPPFLAGS'
8881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8883ac_compiler_gnu=$ac_cv_c_compiler_gnu
8884
8885 if test x$gcc_no_link = xyes; then
5213506e 8886 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ed698112 8887fi
5213506e 8888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
8889/* end confdefs.h. */
8890
8891int
8892main ()
8893{
8894
8895 ;
8896 return 0;
8897}
8898_ACEOF
5213506e 8899if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 8900 lt_cv_cc_needs_belf=yes
ed698112 8901else
5213506e 8902 lt_cv_cc_needs_belf=no
ed698112 8903fi
5213506e
RW
8904rm -f core conftest.err conftest.$ac_objext \
8905 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
8906 ac_ext=c
8907ac_cpp='$CPP $CPPFLAGS'
8908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8910ac_compiler_gnu=$ac_cv_c_compiler_gnu
ed698112 8911
ed698112 8912fi
5213506e
RW
8913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8914$as_echo "$lt_cv_cc_needs_belf" >&6; }
1cf3d07d
SE
8915 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8916 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8917 CFLAGS="$SAVE_CFLAGS"
8918 fi
8919 ;;
8920sparc*-*solaris*)
8921 # Find out which ABI we are using.
8922 echo 'int i;' > conftest.$ac_ext
5213506e 8923 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
8924 (eval $ac_compile) 2>&5
8925 ac_status=$?
5213506e
RW
8926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8927 test $ac_status = 0; }; then
1cf3d07d
SE
8928 case `/usr/bin/file conftest.o` in
8929 *64-bit*)
8930 case $lt_cv_prog_gnu_ld in
8931 yes*) LD="${LD-ld} -m elf64_sparc" ;;
0da7a284
PG
8932 *)
8933 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8934 LD="${LD-ld} -64"
8935 fi
8936 ;;
1cf3d07d
SE
8937 esac
8938 ;;
8939 esac
8940 fi
8941 rm -rf conftest*
8942 ;;
8943esac
ed698112 8944
1cf3d07d 8945need_locks="$enable_libtool_lock"
ed698112 8946
0da7a284
PG
8947
8948 case $host_os in
8949 rhapsody* | darwin*)
8950 if test -n "$ac_tool_prefix"; then
8951 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8952set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5213506e
RW
8953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8954$as_echo_n "checking for $ac_word... " >&6; }
8955if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8956 $as_echo_n "(cached) " >&6
ed698112 8957else
0da7a284
PG
8958 if test -n "$DSYMUTIL"; then
8959 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8960else
8961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8962for as_dir in $PATH
ed698112 8963do
0da7a284
PG
8964 IFS=$as_save_IFS
8965 test -z "$as_dir" && as_dir=.
5213506e
RW
8966 for ac_exec_ext in '' $ac_executable_extensions; do
8967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0da7a284 8968 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5213506e 8969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0da7a284 8970 break 2
ed698112 8971 fi
0da7a284 8972done
5213506e
RW
8973 done
8974IFS=$as_save_IFS
ed698112 8975
ed698112 8976fi
0da7a284
PG
8977fi
8978DSYMUTIL=$ac_cv_prog_DSYMUTIL
8979if test -n "$DSYMUTIL"; then
5213506e
RW
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8981$as_echo "$DSYMUTIL" >&6; }
ed698112 8982else
5213506e
RW
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8984$as_echo "no" >&6; }
ed698112 8985fi
0da7a284 8986
5213506e 8987
0da7a284
PG
8988fi
8989if test -z "$ac_cv_prog_DSYMUTIL"; then
8990 ac_ct_DSYMUTIL=$DSYMUTIL
8991 # Extract the first word of "dsymutil", so it can be a program name with args.
8992set dummy dsymutil; ac_word=$2
5213506e
RW
8993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8994$as_echo_n "checking for $ac_word... " >&6; }
8995if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8996 $as_echo_n "(cached) " >&6
ed698112 8997else
0da7a284
PG
8998 if test -n "$ac_ct_DSYMUTIL"; then
8999 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9000else
9001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9002for as_dir in $PATH
9003do
9004 IFS=$as_save_IFS
9005 test -z "$as_dir" && as_dir=.
5213506e
RW
9006 for ac_exec_ext in '' $ac_executable_extensions; do
9007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0da7a284 9008 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5213506e 9009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0da7a284
PG
9010 break 2
9011 fi
9012done
5213506e
RW
9013 done
9014IFS=$as_save_IFS
ed698112 9015
0da7a284
PG
9016fi
9017fi
9018ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9019if test -n "$ac_ct_DSYMUTIL"; then
5213506e
RW
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9021$as_echo "$ac_ct_DSYMUTIL" >&6; }
0da7a284 9022else
5213506e
RW
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9024$as_echo "no" >&6; }
ed698112 9025fi
ed698112 9026
5213506e
RW
9027 if test "x$ac_ct_DSYMUTIL" = x; then
9028 DSYMUTIL=":"
9029 else
9030 case $cross_compiling:$ac_tool_warned in
9031yes:)
9032{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9033$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9034ac_tool_warned=yes ;;
9035esac
9036 DSYMUTIL=$ac_ct_DSYMUTIL
9037 fi
0da7a284
PG
9038else
9039 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
ed698112
NN
9040fi
9041
0da7a284
PG
9042 if test -n "$ac_tool_prefix"; then
9043 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9044set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5213506e
RW
9045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9046$as_echo_n "checking for $ac_word... " >&6; }
9047if test "${ac_cv_prog_NMEDIT+set}" = set; then :
9048 $as_echo_n "(cached) " >&6
0da7a284
PG
9049else
9050 if test -n "$NMEDIT"; then
9051 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9052else
9053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9054for as_dir in $PATH
9055do
9056 IFS=$as_save_IFS
9057 test -z "$as_dir" && as_dir=.
5213506e
RW
9058 for ac_exec_ext in '' $ac_executable_extensions; do
9059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0da7a284 9060 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5213506e 9061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0da7a284
PG
9062 break 2
9063 fi
9064done
5213506e
RW
9065 done
9066IFS=$as_save_IFS
e3f92d3b 9067
1cf3d07d 9068fi
0da7a284
PG
9069fi
9070NMEDIT=$ac_cv_prog_NMEDIT
9071if test -n "$NMEDIT"; then
5213506e
RW
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9073$as_echo "$NMEDIT" >&6; }
e3f92d3b 9074else
5213506e
RW
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9076$as_echo "no" >&6; }
1cf3d07d 9077fi
0da7a284 9078
5213506e 9079
0da7a284
PG
9080fi
9081if test -z "$ac_cv_prog_NMEDIT"; then
9082 ac_ct_NMEDIT=$NMEDIT
9083 # Extract the first word of "nmedit", so it can be a program name with args.
9084set dummy nmedit; ac_word=$2
5213506e
RW
9085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9086$as_echo_n "checking for $ac_word... " >&6; }
9087if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9088 $as_echo_n "(cached) " >&6
0da7a284
PG
9089else
9090 if test -n "$ac_ct_NMEDIT"; then
9091 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9092else
9093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9094for as_dir in $PATH
e3f92d3b 9095do
0da7a284
PG
9096 IFS=$as_save_IFS
9097 test -z "$as_dir" && as_dir=.
5213506e
RW
9098 for ac_exec_ext in '' $ac_executable_extensions; do
9099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0da7a284 9100 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5213506e 9101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0da7a284 9102 break 2
e3f92d3b 9103 fi
0da7a284 9104done
5213506e
RW
9105 done
9106IFS=$as_save_IFS
0da7a284 9107
e3f92d3b 9108fi
0da7a284
PG
9109fi
9110ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9111if test -n "$ac_ct_NMEDIT"; then
5213506e
RW
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9113$as_echo "$ac_ct_NMEDIT" >&6; }
1cf3d07d 9114else
5213506e
RW
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9116$as_echo "no" >&6; }
e3f92d3b
MK
9117fi
9118
5213506e
RW
9119 if test "x$ac_ct_NMEDIT" = x; then
9120 NMEDIT=":"
9121 else
9122 case $cross_compiling:$ac_tool_warned in
9123yes:)
9124{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9125$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9126ac_tool_warned=yes ;;
9127esac
9128 NMEDIT=$ac_ct_NMEDIT
9129 fi
e3f92d3b 9130else
0da7a284 9131 NMEDIT="$ac_cv_prog_NMEDIT"
e3f92d3b 9132fi
0da7a284
PG
9133
9134 if test -n "$ac_tool_prefix"; then
9135 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9136set dummy ${ac_tool_prefix}lipo; ac_word=$2
5213506e
RW
9137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9138$as_echo_n "checking for $ac_word... " >&6; }
9139if test "${ac_cv_prog_LIPO+set}" = set; then :
9140 $as_echo_n "(cached) " >&6
1cf3d07d 9141else
0da7a284
PG
9142 if test -n "$LIPO"; then
9143 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9144else
9145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9146for as_dir in $PATH
9147do
9148 IFS=$as_save_IFS
9149 test -z "$as_dir" && as_dir=.
5213506e
RW
9150 for ac_exec_ext in '' $ac_executable_extensions; do
9151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0da7a284 9152 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5213506e 9153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0da7a284
PG
9154 break 2
9155 fi
9156done
5213506e
RW
9157 done
9158IFS=$as_save_IFS
e3f92d3b
MK
9159
9160fi
0da7a284
PG
9161fi
9162LIPO=$ac_cv_prog_LIPO
9163if test -n "$LIPO"; then
5213506e
RW
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9165$as_echo "$LIPO" >&6; }
e3f92d3b 9166else
5213506e
RW
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9168$as_echo "no" >&6; }
1cf3d07d 9169fi
6d0860ee 9170
5213506e 9171
0da7a284
PG
9172fi
9173if test -z "$ac_cv_prog_LIPO"; then
9174 ac_ct_LIPO=$LIPO
9175 # Extract the first word of "lipo", so it can be a program name with args.
9176set dummy lipo; ac_word=$2
5213506e
RW
9177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9178$as_echo_n "checking for $ac_word... " >&6; }
9179if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9180 $as_echo_n "(cached) " >&6
e3f92d3b 9181else
0da7a284
PG
9182 if test -n "$ac_ct_LIPO"; then
9183 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9184else
9185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9186for as_dir in $PATH
9187do
9188 IFS=$as_save_IFS
9189 test -z "$as_dir" && as_dir=.
5213506e
RW
9190 for ac_exec_ext in '' $ac_executable_extensions; do
9191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0da7a284 9192 ac_cv_prog_ac_ct_LIPO="lipo"
5213506e 9193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0da7a284
PG
9194 break 2
9195 fi
9196done
5213506e
RW
9197 done
9198IFS=$as_save_IFS
0da7a284 9199
0da7a284
PG
9200fi
9201fi
9202ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9203if test -n "$ac_ct_LIPO"; then
5213506e
RW
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9205$as_echo "$ac_ct_LIPO" >&6; }
0da7a284 9206else
5213506e
RW
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9208$as_echo "no" >&6; }
0da7a284
PG
9209fi
9210
5213506e
RW
9211 if test "x$ac_ct_LIPO" = x; then
9212 LIPO=":"
9213 else
9214 case $cross_compiling:$ac_tool_warned in
9215yes:)
9216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9218ac_tool_warned=yes ;;
9219esac
9220 LIPO=$ac_ct_LIPO
9221 fi
0da7a284
PG
9222else
9223 LIPO="$ac_cv_prog_LIPO"
9224fi
9225
9226 if test -n "$ac_tool_prefix"; then
9227 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9228set dummy ${ac_tool_prefix}otool; ac_word=$2
5213506e
RW
9229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9230$as_echo_n "checking for $ac_word... " >&6; }
9231if test "${ac_cv_prog_OTOOL+set}" = set; then :
9232 $as_echo_n "(cached) " >&6
0da7a284
PG
9233else
9234 if test -n "$OTOOL"; then
9235 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9236else
9237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9238for as_dir in $PATH
9239do
9240 IFS=$as_save_IFS
9241 test -z "$as_dir" && as_dir=.
5213506e
RW
9242 for ac_exec_ext in '' $ac_executable_extensions; do
9243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0da7a284 9244 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5213506e 9245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0da7a284
PG
9246 break 2
9247 fi
9248done
5213506e
RW
9249 done
9250IFS=$as_save_IFS
0da7a284
PG
9251
9252fi
9253fi
9254OTOOL=$ac_cv_prog_OTOOL
9255if test -n "$OTOOL"; then
5213506e
RW
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9257$as_echo "$OTOOL" >&6; }
0da7a284 9258else
5213506e
RW
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9260$as_echo "no" >&6; }
0da7a284
PG
9261fi
9262
5213506e 9263
0da7a284
PG
9264fi
9265if test -z "$ac_cv_prog_OTOOL"; then
9266 ac_ct_OTOOL=$OTOOL
9267 # Extract the first word of "otool", so it can be a program name with args.
9268set dummy otool; ac_word=$2
5213506e
RW
9269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9270$as_echo_n "checking for $ac_word... " >&6; }
9271if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9272 $as_echo_n "(cached) " >&6
0da7a284
PG
9273else
9274 if test -n "$ac_ct_OTOOL"; then
9275 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9276else
9277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9278for as_dir in $PATH
9279do
9280 IFS=$as_save_IFS
9281 test -z "$as_dir" && as_dir=.
5213506e
RW
9282 for ac_exec_ext in '' $ac_executable_extensions; do
9283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0da7a284 9284 ac_cv_prog_ac_ct_OTOOL="otool"
5213506e 9285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0da7a284
PG
9286 break 2
9287 fi
9288done
5213506e
RW
9289 done
9290IFS=$as_save_IFS
0da7a284 9291
0da7a284
PG
9292fi
9293fi
9294ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9295if test -n "$ac_ct_OTOOL"; then
5213506e
RW
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9297$as_echo "$ac_ct_OTOOL" >&6; }
0da7a284 9298else
5213506e
RW
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9300$as_echo "no" >&6; }
0da7a284
PG
9301fi
9302
5213506e
RW
9303 if test "x$ac_ct_OTOOL" = x; then
9304 OTOOL=":"
9305 else
9306 case $cross_compiling:$ac_tool_warned in
9307yes:)
9308{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9309$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9310ac_tool_warned=yes ;;
9311esac
9312 OTOOL=$ac_ct_OTOOL
9313 fi
0da7a284
PG
9314else
9315 OTOOL="$ac_cv_prog_OTOOL"
9316fi
9317
9318 if test -n "$ac_tool_prefix"; then
9319 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9320set dummy ${ac_tool_prefix}otool64; ac_word=$2
5213506e
RW
9321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9322$as_echo_n "checking for $ac_word... " >&6; }
9323if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9324 $as_echo_n "(cached) " >&6
0da7a284
PG
9325else
9326 if test -n "$OTOOL64"; then
9327 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9328else
9329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9330for as_dir in $PATH
9331do
9332 IFS=$as_save_IFS
9333 test -z "$as_dir" && as_dir=.
5213506e
RW
9334 for ac_exec_ext in '' $ac_executable_extensions; do
9335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0da7a284 9336 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5213506e 9337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0da7a284
PG
9338 break 2
9339 fi
9340done
5213506e
RW
9341 done
9342IFS=$as_save_IFS
0da7a284
PG
9343
9344fi
9345fi
9346OTOOL64=$ac_cv_prog_OTOOL64
9347if test -n "$OTOOL64"; then
5213506e
RW
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9349$as_echo "$OTOOL64" >&6; }
0da7a284 9350else
5213506e
RW
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9352$as_echo "no" >&6; }
0da7a284
PG
9353fi
9354
5213506e 9355
0da7a284
PG
9356fi
9357if test -z "$ac_cv_prog_OTOOL64"; then
9358 ac_ct_OTOOL64=$OTOOL64
9359 # Extract the first word of "otool64", so it can be a program name with args.
9360set dummy otool64; ac_word=$2
5213506e
RW
9361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9362$as_echo_n "checking for $ac_word... " >&6; }
9363if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9364 $as_echo_n "(cached) " >&6
0da7a284
PG
9365else
9366 if test -n "$ac_ct_OTOOL64"; then
9367 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9368else
9369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9370for as_dir in $PATH
9371do
9372 IFS=$as_save_IFS
9373 test -z "$as_dir" && as_dir=.
5213506e
RW
9374 for ac_exec_ext in '' $ac_executable_extensions; do
9375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0da7a284 9376 ac_cv_prog_ac_ct_OTOOL64="otool64"
5213506e 9377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0da7a284
PG
9378 break 2
9379 fi
9380done
5213506e
RW
9381 done
9382IFS=$as_save_IFS
0da7a284 9383
0da7a284
PG
9384fi
9385fi
9386ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9387if test -n "$ac_ct_OTOOL64"; then
5213506e
RW
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9389$as_echo "$ac_ct_OTOOL64" >&6; }
0da7a284 9390else
5213506e
RW
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9392$as_echo "no" >&6; }
0da7a284
PG
9393fi
9394
5213506e
RW
9395 if test "x$ac_ct_OTOOL64" = x; then
9396 OTOOL64=":"
9397 else
9398 case $cross_compiling:$ac_tool_warned in
9399yes:)
9400{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9401$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9402ac_tool_warned=yes ;;
9403esac
9404 OTOOL64=$ac_ct_OTOOL64
9405 fi
0da7a284
PG
9406else
9407 OTOOL64="$ac_cv_prog_OTOOL64"
9408fi
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
5213506e
RW
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9437$as_echo_n "checking for -single_module linker flag... " >&6; }
9438if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9439 $as_echo_n "(cached) " >&6
0da7a284
PG
9440else
9441 lt_cv_apple_cc_single_mod=no
9442 if test -z "${LT_MULTI_MODULE}"; then
9443 # By default we will add the -single_module flag. You can override
9444 # by either setting the environment variable LT_MULTI_MODULE
9445 # non-empty at configure time, or by adding -multi_module to the
9446 # link flags.
9447 rm -rf libconftest.dylib*
9448 echo "int foo(void){return 1;}" > conftest.c
9449 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9450-dynamiclib -Wl,-single_module conftest.c" >&5
9451 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9452 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9453 _lt_result=$?
9454 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9455 lt_cv_apple_cc_single_mod=yes
9456 else
9457 cat conftest.err >&5
9458 fi
9459 rm -rf libconftest.dylib*
9460 rm -f conftest.*
9461 fi
9462fi
5213506e
RW
9463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9464$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9466$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9467if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9468 $as_echo_n "(cached) " >&6
0da7a284
PG
9469else
9470 lt_cv_ld_exported_symbols_list=no
9471 save_LDFLAGS=$LDFLAGS
9472 echo "_main" > conftest.sym
9473 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9474 if test x$gcc_no_link = xyes; then
5213506e 9475 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
0da7a284 9476fi
5213506e 9477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0da7a284 9478/* end confdefs.h. */
e3f92d3b
MK
9479
9480int
9481main ()
9482{
9483
9484 ;
9485 return 0;
9486}
9487_ACEOF
5213506e 9488if ac_fn_c_try_link "$LINENO"; then :
0da7a284 9489 lt_cv_ld_exported_symbols_list=yes
e3f92d3b 9490else
5213506e 9491 lt_cv_ld_exported_symbols_list=no
e3f92d3b 9492fi
5213506e
RW
9493rm -f core conftest.err conftest.$ac_objext \
9494 conftest$ac_exeext conftest.$ac_ext
0da7a284 9495 LDFLAGS="$save_LDFLAGS"
ed698112 9496
e3f92d3b 9497fi
5213506e
RW
9498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9499$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
43e02a8a
RW
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9501$as_echo_n "checking for -force_load linker flag... " >&6; }
9502if test "${lt_cv_ld_force_load+set}" = set; then :
9503 $as_echo_n "(cached) " >&6
9504else
9505 lt_cv_ld_force_load=no
9506 cat > conftest.c << _LT_EOF
9507int forced_loaded() { return 2;}
9508_LT_EOF
9509 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9510 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9511 echo "$AR cru libconftest.a conftest.o" >&5
9512 $AR cru libconftest.a conftest.o 2>&5
9513 cat > conftest.c << _LT_EOF
9514int main() { return 0;}
9515_LT_EOF
9516 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9517 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9518 _lt_result=$?
9519 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9520 lt_cv_ld_force_load=yes
9521 else
9522 cat conftest.err >&5
9523 fi
9524 rm -f conftest.err libconftest.a conftest conftest.c
9525 rm -rf conftest.dSYM
9526
9527fi
9528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9529$as_echo "$lt_cv_ld_force_load" >&6; }
0da7a284
PG
9530 case $host_os in
9531 rhapsody* | darwin1.[012])
9532 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9533 darwin1.*)
9534 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9535 darwin*) # darwin 5.x on
9536 # if running on 10.5 or later, the deployment target defaults
9537 # to the OS version, if on x86, and 10.4, the deployment
9538 # target defaults to 10.4. Don't you love it?
9539 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9540 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9541 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9542 10.[012]*)
9543 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9544 10.*)
9545 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9546 esac
9547 ;;
9548 esac
9549 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9550 _lt_dar_single_mod='$single_module'
9551 fi
9552 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9553 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9554 else
9555 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9556 fi
43e02a8a 9557 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
0da7a284
PG
9558 _lt_dsymutil='~$DSYMUTIL $lib || :'
9559 else
9560 _lt_dsymutil=
9561 fi
9562 ;;
9563 esac
ed698112 9564
0da7a284
PG
9565ac_ext=c
9566ac_cpp='$CPP $CPPFLAGS'
9567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9569ac_compiler_gnu=$ac_cv_c_compiler_gnu
5213506e
RW
9570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9571$as_echo_n "checking how to run the C preprocessor... " >&6; }
0da7a284
PG
9572# On Suns, sometimes $CPP names a directory.
9573if test -n "$CPP" && test -d "$CPP"; then
9574 CPP=
e3f92d3b 9575fi
0da7a284 9576if test -z "$CPP"; then
5213506e
RW
9577 if test "${ac_cv_prog_CPP+set}" = set; then :
9578 $as_echo_n "(cached) " >&6
0da7a284
PG
9579else
9580 # Double quotes because CPP needs to be expanded
9581 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9582 do
9583 ac_preproc_ok=false
9584for ac_c_preproc_warn_flag in '' yes
9585do
9586 # Use a header file that comes with gcc, so configuring glibc
9587 # with a fresh cross-compiler works.
9588 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9589 # <limits.h> exists even on freestanding compilers.
9590 # On the NeXT, cc -E runs the code through the compiler's parser,
9591 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 9592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 9593/* end confdefs.h. */
0da7a284
PG
9594#ifdef __STDC__
9595# include <limits.h>
9596#else
9597# include <assert.h>
9598#endif
9599 Syntax error
9600_ACEOF
5213506e 9601if ac_fn_c_try_cpp "$LINENO"; then :
0da7a284 9602
5213506e 9603else
0da7a284
PG
9604 # Broken: fails on valid input.
9605continue
ee9dd372 9606fi
0da7a284
PG
9607rm -f conftest.err conftest.$ac_ext
9608
5213506e 9609 # OK, works on sane cases. Now check whether nonexistent headers
0da7a284 9610 # can be detected and how.
5213506e 9611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0da7a284
PG
9612/* end confdefs.h. */
9613#include <ac_nonexistent.h>
9614_ACEOF
5213506e 9615if ac_fn_c_try_cpp "$LINENO"; then :
0da7a284
PG
9616 # Broken: success on invalid input.
9617continue
9618else
0da7a284
PG
9619 # Passes both tests.
9620ac_preproc_ok=:
9621break
ffccc6be 9622fi
0da7a284 9623rm -f conftest.err conftest.$ac_ext
ed698112 9624
0da7a284
PG
9625done
9626# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9627rm -f conftest.err conftest.$ac_ext
5213506e 9628if $ac_preproc_ok; then :
0da7a284
PG
9629 break
9630fi
9631
9632 done
9633 ac_cv_prog_CPP=$CPP
9634
9635fi
9636 CPP=$ac_cv_prog_CPP
1cf3d07d 9637else
0da7a284
PG
9638 ac_cv_prog_CPP=$CPP
9639fi
5213506e
RW
9640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9641$as_echo "$CPP" >&6; }
0da7a284
PG
9642ac_preproc_ok=false
9643for ac_c_preproc_warn_flag in '' yes
9644do
9645 # Use a header file that comes with gcc, so configuring glibc
9646 # with a fresh cross-compiler works.
9647 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9648 # <limits.h> exists even on freestanding compilers.
9649 # On the NeXT, cc -E runs the code through the compiler's parser,
9650 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 9651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 9652/* end confdefs.h. */
0da7a284
PG
9653#ifdef __STDC__
9654# include <limits.h>
1cf3d07d 9655#else
0da7a284 9656# include <assert.h>
1cf3d07d 9657#endif
0da7a284 9658 Syntax error
1cf3d07d 9659_ACEOF
5213506e 9660if ac_fn_c_try_cpp "$LINENO"; then :
ffccc6be 9661
5213506e 9662else
0da7a284
PG
9663 # Broken: fails on valid input.
9664continue
1cf3d07d 9665fi
0da7a284 9666rm -f conftest.err conftest.$ac_ext
ed698112 9667
5213506e 9668 # OK, works on sane cases. Now check whether nonexistent headers
0da7a284 9669 # can be detected and how.
5213506e 9670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0da7a284
PG
9671/* end confdefs.h. */
9672#include <ac_nonexistent.h>
9673_ACEOF
5213506e 9674if ac_fn_c_try_cpp "$LINENO"; then :
0da7a284
PG
9675 # Broken: success on invalid input.
9676continue
9677else
0da7a284
PG
9678 # Passes both tests.
9679ac_preproc_ok=:
9680break
9681fi
9682rm -f conftest.err conftest.$ac_ext
97b8365c 9683
0da7a284
PG
9684done
9685# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9686rm -f conftest.err conftest.$ac_ext
5213506e
RW
9687if $ac_preproc_ok; then :
9688
0da7a284 9689else
5213506e
RW
9690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9691$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9692as_fn_error "C preprocessor \"$CPP\" fails sanity check
9693See \`config.log' for more details." "$LINENO" 5; }
0da7a284 9694fi
97b8365c 9695
0da7a284
PG
9696ac_ext=c
9697ac_cpp='$CPP $CPPFLAGS'
9698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9700ac_compiler_gnu=$ac_cv_c_compiler_gnu
97b8365c
TT
9701
9702
5213506e
RW
9703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9704$as_echo_n "checking for ANSI C header files... " >&6; }
9705if test "${ac_cv_header_stdc+set}" = set; then :
9706 $as_echo_n "(cached) " >&6
97b8365c 9707else
5213506e 9708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 9709/* end confdefs.h. */
0da7a284
PG
9710#include <stdlib.h>
9711#include <stdarg.h>
9712#include <string.h>
9713#include <float.h>
97b8365c 9714
0da7a284
PG
9715int
9716main ()
9717{
9718
9719 ;
9720 return 0;
9721}
1cf3d07d 9722_ACEOF
5213506e 9723if ac_fn_c_try_compile "$LINENO"; then :
0da7a284 9724 ac_cv_header_stdc=yes
c33b7bf0 9725else
5213506e 9726 ac_cv_header_stdc=no
0da7a284 9727fi
5213506e 9728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0da7a284
PG
9729
9730if test $ac_cv_header_stdc = yes; then
9731 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5213506e 9732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0da7a284
PG
9733/* end confdefs.h. */
9734#include <string.h>
9735
9736_ACEOF
9737if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
9738 $EGREP "memchr" >/dev/null 2>&1; then :
9739
0da7a284
PG
9740else
9741 ac_cv_header_stdc=no
9742fi
9743rm -f conftest*
9744
9745fi
9746
9747if test $ac_cv_header_stdc = yes; then
9748 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5213506e 9749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0da7a284
PG
9750/* end confdefs.h. */
9751#include <stdlib.h>
9752
9753_ACEOF
9754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
9755 $EGREP "free" >/dev/null 2>&1; then :
9756
0da7a284
PG
9757else
9758 ac_cv_header_stdc=no
9759fi
9760rm -f conftest*
9761
9762fi
9763
9764if test $ac_cv_header_stdc = yes; then
9765 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5213506e 9766 if test "$cross_compiling" = yes; then :
0da7a284
PG
9767 :
9768else
5213506e 9769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0da7a284
PG
9770/* end confdefs.h. */
9771#include <ctype.h>
5213506e 9772#include <stdlib.h>
0da7a284
PG
9773#if ((' ' & 0x0FF) == 0x020)
9774# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9775# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9776#else
9777# define ISLOWER(c) \
9778 (('a' <= (c) && (c) <= 'i') \
9779 || ('j' <= (c) && (c) <= 'r') \
9780 || ('s' <= (c) && (c) <= 'z'))
9781# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9782#endif
9783
9784#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9785int
9786main ()
9787{
9788 int i;
9789 for (i = 0; i < 256; i++)
9790 if (XOR (islower (i), ISLOWER (i))
9791 || toupper (i) != TOUPPER (i))
5213506e
RW
9792 return 2;
9793 return 0;
0da7a284
PG
9794}
9795_ACEOF
5213506e 9796if ac_fn_c_try_run "$LINENO"; then :
0da7a284 9797
5213506e
RW
9798else
9799 ac_cv_header_stdc=no
0da7a284 9800fi
5213506e
RW
9801rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9802 conftest.$ac_objext conftest.beam conftest.$ac_ext
0da7a284 9803fi
5213506e 9804
0da7a284
PG
9805fi
9806fi
5213506e
RW
9807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9808$as_echo "$ac_cv_header_stdc" >&6; }
0da7a284
PG
9809if test $ac_cv_header_stdc = yes; then
9810
5213506e 9811$as_echo "#define STDC_HEADERS 1" >>confdefs.h
0da7a284
PG
9812
9813fi
9814
9815# On IRIX 5.3, sys/types and inttypes.h are conflicting.
0da7a284
PG
9816for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9817 inttypes.h stdint.h unistd.h
5213506e
RW
9818do :
9819 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9820ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9821"
9822eval as_val=\$$as_ac_Header
9823 if test "x$as_val" = x""yes; then :
1cf3d07d 9824 cat >>confdefs.h <<_ACEOF
5213506e 9825#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1cf3d07d 9826_ACEOF
c33b7bf0 9827
c33b7bf0
TF
9828fi
9829
1cf3d07d 9830done
c33b7bf0
TF
9831
9832
1cf3d07d 9833for ac_header in dlfcn.h
5213506e
RW
9834do :
9835 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9836"
9837if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
1cf3d07d 9838 cat >>confdefs.h <<_ACEOF
5213506e 9839#define HAVE_DLFCN_H 1
ed347998
HB
9840_ACEOF
9841
1cf3d07d 9842fi
ed698112 9843
1cf3d07d 9844done
58eb6e7c 9845
b2ae5f70 9846
58eb6e7c 9847
3cf88fb4 9848
3cf88fb4 9849
5213506e 9850
43e02a8a 9851# Set options
c8fb9813 9852
43e02a8a
RW
9853
9854
9855
9856 enable_win32_dll=no
9857
9858
9859 # Check whether --enable-shared was given.
9860if test "${enable_shared+set}" = set; then :
9861 enableval=$enable_shared; p=${PACKAGE-default}
9862 case $enableval in
9863 yes) enable_shared=yes ;;
9864 no) enable_shared=no ;;
9865 *)
9866 enable_shared=no
9867 # Look at the argument we got. We use all the common list separators.
9868 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9869 for pkg in $enableval; do
9870 IFS="$lt_save_ifs"
9871 if test "X$pkg" = "X$p"; then
9872 enable_shared=yes
9873 fi
9874 done
9875 IFS="$lt_save_ifs"
9876 ;;
9877 esac
60c7f4ef 9878else
43e02a8a 9879 enable_shared=yes
5213506e
RW
9880fi
9881
f1a66265
GK
9882
9883
ed698112 9884
ed698112 9885
ee9dd372 9886
ee9dd372
TT
9887
9888
ee9dd372 9889
5213506e
RW
9890 # Check whether --enable-static was given.
9891if test "${enable_static+set}" = set; then :
9892 enableval=$enable_static; p=${PACKAGE-default}
0da7a284
PG
9893 case $enableval in
9894 yes) enable_static=yes ;;
9895 no) enable_static=no ;;
9896 *)
9897 enable_static=no
9898 # Look at the argument we got. We use all the common list separators.
9899 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9900 for pkg in $enableval; do
9901 IFS="$lt_save_ifs"
9902 if test "X$pkg" = "X$p"; then
9903 enable_static=yes
9904 fi
9905 done
9906 IFS="$lt_save_ifs"
9907 ;;
9908 esac
9909else
9910 enable_static=yes
5213506e
RW
9911fi
9912
ee9dd372 9913
42962a48
TT
9914
9915
614c0fc2 9916
9b5f18b1
MK
9917
9918
614c0fc2 9919
9b5f18b1
MK
9920
9921
5213506e
RW
9922# Check whether --with-pic was given.
9923if test "${with_pic+set}" = set; then :
9924 withval=$with_pic; pic_mode="$withval"
0da7a284
PG
9925else
9926 pic_mode=default
5213506e
RW
9927fi
9928
614c0fc2 9929
0da7a284 9930test -z "$pic_mode" && pic_mode=default
4ba6d1c3 9931
463c03f1 9932
76c88fd9 9933
4ba6d1c3 9934
f994389b
TT
9935
9936
0f9c645e 9937
5213506e
RW
9938 # Check whether --enable-fast-install was given.
9939if test "${enable_fast_install+set}" = set; then :
9940 enableval=$enable_fast_install; p=${PACKAGE-default}
0da7a284
PG
9941 case $enableval in
9942 yes) enable_fast_install=yes ;;
9943 no) enable_fast_install=no ;;
9944 *)
9945 enable_fast_install=no
9946 # Look at the argument we got. We use all the common list separators.
9947 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9948 for pkg in $enableval; do
9949 IFS="$lt_save_ifs"
9950 if test "X$pkg" = "X$p"; then
9951 enable_fast_install=yes
9952 fi
9953 done
9954 IFS="$lt_save_ifs"
9955 ;;
9956 esac
9957else
9958 enable_fast_install=yes
5213506e
RW
9959fi
9960
0f9c645e 9961
ed698112 9962
f994389b 9963
f994389b 9964
0f9c645e 9965
f994389b 9966
ed698112 9967
02809848 9968
ee9dd372 9969
1cf3d07d 9970
0da7a284
PG
9971# This can be used to rebuild libtool when needed
9972LIBTOOL_DEPS="$ltmain"
9973
9974# Always use our own libtool.
9975LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
43e02a8a 9999
0da7a284
PG
10000
10001
10002test -z "$LN_S" && LN_S="ln -s"
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017if test -n "${ZSH_VERSION+set}" ; then
10018 setopt NO_GLOB_SUBST
10019fi
10020
5213506e
RW
10021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10022$as_echo_n "checking for objdir... " >&6; }
10023if test "${lt_cv_objdir+set}" = set; then :
10024 $as_echo_n "(cached) " >&6
5aac1dac 10025else
1cf3d07d
SE
10026 rm -f .libs 2>/dev/null
10027mkdir .libs 2>/dev/null
10028if test -d .libs; then
10029 lt_cv_objdir=.libs
10030else
10031 # MS-DOS does not allow filenames that begin with a dot.
10032 lt_cv_objdir=_libs
10033fi
10034rmdir .libs 2>/dev/null
5aac1dac 10035fi
5213506e
RW
10036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10037$as_echo "$lt_cv_objdir" >&6; }
1cf3d07d 10038objdir=$lt_cv_objdir
ee9dd372 10039
ed698112 10040
ed698112 10041
ed698112 10042
ed698112 10043
1cf3d07d
SE
10044cat >>confdefs.h <<_ACEOF
10045#define LT_OBJDIR "$lt_cv_objdir/"
10046_ACEOF
ed698112 10047
ed698112 10048
ed698112 10049
ed698112 10050
1cf3d07d
SE
10051case $host_os in
10052aix3*)
10053 # AIX sometimes has problems with the GCC collect2 program. For some
10054 # reason, if we set the COLLECT_NAMES environment variable, the problems
10055 # vanish in a puff of smoke.
10056 if test "X${COLLECT_NAMES+set}" != Xset; then
10057 COLLECT_NAMES=
10058 export COLLECT_NAMES
ed698112 10059 fi
1cf3d07d
SE
10060 ;;
10061esac
10062
1cf3d07d
SE
10063# Global variables:
10064ofile=libtool
10065can_build_shared=yes
10066
10067# All known linkers require a `.a' archive for static linking (except MSVC,
10068# which needs '.lib').
10069libext=a
10070
10071with_gnu_ld="$lt_cv_prog_gnu_ld"
10072
10073old_CC="$CC"
10074old_CFLAGS="$CFLAGS"
10075
10076# Set sane defaults for various variables
10077test -z "$CC" && CC=cc
10078test -z "$LTCC" && LTCC=$CC
10079test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10080test -z "$LD" && LD=ld
10081test -z "$ac_objext" && ac_objext=o
10082
10083for cc_temp in $compiler""; do
10084 case $cc_temp in
10085 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10086 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10087 \-*) ;;
10088 *) break;;
10089 esac
ed698112 10090done
43e02a8a 10091cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
ee9dd372 10092
1cf3d07d
SE
10093
10094# Only perform the check for file, if the check method requires it
10095test -z "$MAGIC_CMD" && MAGIC_CMD=file
10096case $deplibs_check_method in
10097file_magic*)
10098 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5213506e
RW
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10100$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10101if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10102 $as_echo_n "(cached) " >&6
5aac1dac 10103else
1cf3d07d
SE
10104 case $MAGIC_CMD in
10105[\\/*] | ?:[\\/]*)
10106 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10107 ;;
10108*)
10109 lt_save_MAGIC_CMD="$MAGIC_CMD"
10110 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10111 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10112 for ac_dir in $ac_dummy; do
10113 IFS="$lt_save_ifs"
10114 test -z "$ac_dir" && ac_dir=.
10115 if test -f $ac_dir/${ac_tool_prefix}file; then
10116 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10117 if test -n "$file_magic_test_file"; then
10118 case $deplibs_check_method in
10119 "file_magic "*)
10120 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10121 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10122 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10123 $EGREP "$file_magic_regex" > /dev/null; then
10124 :
10125 else
10126 cat <<_LT_EOF 1>&2
ed698112 10127
1cf3d07d
SE
10128*** Warning: the command libtool uses to detect shared libraries,
10129*** $file_magic_cmd, produces output that libtool cannot recognize.
10130*** The result is that libtool may fail to recognize shared libraries
10131*** as such. This will affect the creation of libtool libraries that
10132*** depend on shared libraries, but programs linked with such libtool
10133*** libraries will work regardless of this problem. Nevertheless, you
10134*** may want to report the problem to your system manager and/or to
10135*** bug-libtool@gnu.org
10136
10137_LT_EOF
10138 fi ;;
10139 esac
10140 fi
10141 break
5aac1dac
TT
10142 fi
10143 done
1cf3d07d
SE
10144 IFS="$lt_save_ifs"
10145 MAGIC_CMD="$lt_save_MAGIC_CMD"
10146 ;;
10147esac
5aac1dac 10148fi
ee9dd372 10149
1cf3d07d
SE
10150MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10151if test -n "$MAGIC_CMD"; then
5213506e
RW
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10153$as_echo "$MAGIC_CMD" >&6; }
5aac1dac 10154else
5213506e
RW
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10156$as_echo "no" >&6; }
5aac1dac 10157fi
ed698112 10158
ee9dd372 10159
f994389b 10160
ed698112 10161
ee9dd372 10162
1cf3d07d
SE
10163if test -z "$lt_cv_path_MAGIC_CMD"; then
10164 if test -n "$ac_tool_prefix"; then
5213506e
RW
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10166$as_echo_n "checking for file... " >&6; }
10167if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10168 $as_echo_n "(cached) " >&6
5aac1dac 10169else
1cf3d07d
SE
10170 case $MAGIC_CMD in
10171[\\/*] | ?:[\\/]*)
10172 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10173 ;;
10174*)
10175 lt_save_MAGIC_CMD="$MAGIC_CMD"
10176 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10177 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10178 for ac_dir in $ac_dummy; do
10179 IFS="$lt_save_ifs"
10180 test -z "$ac_dir" && ac_dir=.
10181 if test -f $ac_dir/file; then
10182 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10183 if test -n "$file_magic_test_file"; then
10184 case $deplibs_check_method in
10185 "file_magic "*)
10186 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10187 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10188 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10189 $EGREP "$file_magic_regex" > /dev/null; then
10190 :
10191 else
10192 cat <<_LT_EOF 1>&2
ee9dd372 10193
1cf3d07d
SE
10194*** Warning: the command libtool uses to detect shared libraries,
10195*** $file_magic_cmd, produces output that libtool cannot recognize.
10196*** The result is that libtool may fail to recognize shared libraries
10197*** as such. This will affect the creation of libtool libraries that
10198*** depend on shared libraries, but programs linked with such libtool
10199*** libraries will work regardless of this problem. Nevertheless, you
10200*** may want to report the problem to your system manager and/or to
10201*** bug-libtool@gnu.org
7f6e0fe6 10202
1cf3d07d
SE
10203_LT_EOF
10204 fi ;;
10205 esac
10206 fi
10207 break
10208 fi
10209 done
10210 IFS="$lt_save_ifs"
10211 MAGIC_CMD="$lt_save_MAGIC_CMD"
10212 ;;
10213esac
10214fi
7f6e0fe6 10215
1cf3d07d
SE
10216MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10217if test -n "$MAGIC_CMD"; then
5213506e
RW
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10219$as_echo "$MAGIC_CMD" >&6; }
5aac1dac 10220else
5213506e
RW
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10222$as_echo "no" >&6; }
ed698112 10223fi
7f6e0fe6 10224
ee9dd372 10225
1cf3d07d
SE
10226 else
10227 MAGIC_CMD=:
10228 fi
10229fi
10230
10231 fi
10232 ;;
10233esac
10234
10235# Use C for the default configuration in the libtool script
10236
10237lt_save_CC="$CC"
10238ac_ext=c
10239ac_cpp='$CPP $CPPFLAGS'
10240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10242ac_compiler_gnu=$ac_cv_c_compiler_gnu
10243
10244
10245# Source file extension for C test sources.
10246ac_ext=c
10247
10248# Object file extension for compiled C test sources.
10249objext=o
10250objext=$objext
10251
10252# Code to be used in simple compile tests
10253lt_simple_compile_test_code="int some_variable = 0;"
10254
10255# Code to be used in simple link tests
10256lt_simple_link_test_code='int main(){return(0);}'
10257
10258
10259
10260
10261
10262
10263
10264# If no C compiler was specified, use CC.
10265LTCC=${LTCC-"$CC"}
10266
10267# If no C compiler flags were specified, use CFLAGS.
10268LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10269
10270# Allow CC to be a program name with arguments.
10271compiler=$CC
10272
10273# Save the default compiler, since it gets overwritten when the other
10274# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10275compiler_DEFAULT=$CC
10276
10277# save warnings/boilerplate of simple test code
10278ac_outfile=conftest.$ac_objext
10279echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10280eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10281_lt_compiler_boilerplate=`cat conftest.err`
10282$RM conftest*
10283
10284ac_outfile=conftest.$ac_objext
10285echo "$lt_simple_link_test_code" >conftest.$ac_ext
10286eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10287_lt_linker_boilerplate=`cat conftest.err`
0da7a284 10288$RM -r conftest*
1cf3d07d
SE
10289
10290
10291## CAVEAT EMPTOR:
10292## There is no encapsulation within the following macros, do not change
10293## the running order or otherwise move them around unless you know exactly
10294## what you are doing...
10295if test -n "$compiler"; then
10296
10297lt_prog_compiler_no_builtin_flag=
10298
10299if test "$GCC" = yes; then
43e02a8a
RW
10300 case $cc_basename in
10301 nvcc*)
10302 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10303 *)
10304 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10305 esac
1cf3d07d 10306
5213506e
RW
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10308$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10309if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10310 $as_echo_n "(cached) " >&6
5aac1dac 10311else
1cf3d07d
SE
10312 lt_cv_prog_compiler_rtti_exceptions=no
10313 ac_outfile=conftest.$ac_objext
10314 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10315 lt_compiler_flag="-fno-rtti -fno-exceptions"
10316 # Insert the option either (1) after the last *FLAGS variable, or
10317 # (2) before a word containing "conftest.", or (3) at the end.
10318 # Note that $ac_compile itself does not contain backslashes and begins
10319 # with a dollar sign (not a hyphen), so the echo should work correctly.
10320 # The option is referenced via a variable to avoid confusing sed.
10321 lt_compile=`echo "$ac_compile" | $SED \
10322 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10323 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10324 -e 's:$: $lt_compiler_flag:'`
43e02a8a 10325 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
10326 (eval "$lt_compile" 2>conftest.err)
10327 ac_status=$?
10328 cat conftest.err >&5
43e02a8a 10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
10330 if (exit $ac_status) && test -s "$ac_outfile"; then
10331 # The compiler can only warn and ignore the option if not recognized
10332 # So say no if there are warnings other than the usual output.
43e02a8a 10333 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
10334 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10335 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10336 lt_cv_prog_compiler_rtti_exceptions=yes
10337 fi
10338 fi
10339 $RM conftest*
ed698112 10340
5aac1dac 10341fi
5213506e
RW
10342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10343$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
ee9dd372 10344
1cf3d07d
SE
10345if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10346 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10347else
10348 :
10349fi
ee9dd372 10350
ed698112 10351fi
ed698112 10352
ee9dd372 10353
1cf3d07d
SE
10354
10355
10356
10357
10358 lt_prog_compiler_wl=
10359lt_prog_compiler_pic=
10360lt_prog_compiler_static=
10361
5213506e
RW
10362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10363$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
10364
10365 if test "$GCC" = yes; then
10366 lt_prog_compiler_wl='-Wl,'
10367 lt_prog_compiler_static='-static'
10368
10369 case $host_os in
10370 aix*)
10371 # All AIX code is PIC.
10372 if test "$host_cpu" = ia64; then
10373 # AIX 5 now supports IA64 processor
10374 lt_prog_compiler_static='-Bstatic'
10375 fi
10376 ;;
10377
10378 amigaos*)
0da7a284
PG
10379 case $host_cpu in
10380 powerpc)
10381 # see comment about AmigaOS4 .so support
10382 lt_prog_compiler_pic='-fPIC'
10383 ;;
10384 m68k)
10385 # FIXME: we need at least 68020 code to build shared libraries, but
10386 # adding the `-m68020' flag to GCC prevents building anything better,
10387 # like `-m68040'.
10388 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10389 ;;
10390 esac
1cf3d07d
SE
10391 ;;
10392
10393 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10394 # PIC is the default for these OSes.
10395 ;;
10396
0da7a284 10397 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
10398 # This hack is so that the source file can tell whether it is being
10399 # built for inclusion in a dll (and should export symbols for example).
10400 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10401 # (--disable-auto-import) libraries
10402 lt_prog_compiler_pic='-DDLL_EXPORT'
10403 ;;
10404
10405 darwin* | rhapsody*)
10406 # PIC is the default on this platform
10407 # Common symbols not allowed in MH_DYLIB files
10408 lt_prog_compiler_pic='-fno-common'
10409 ;;
10410
43e02a8a
RW
10411 haiku*)
10412 # PIC is the default for Haiku.
10413 # The "-static" flag exists, but is broken.
10414 lt_prog_compiler_static=
10415 ;;
10416
1cf3d07d 10417 hpux*)
0da7a284
PG
10418 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10419 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10420 # sets the default TLS model and affects inlining.
1cf3d07d 10421 case $host_cpu in
0da7a284 10422 hppa*64*)
1cf3d07d
SE
10423 # +Z the default
10424 ;;
10425 *)
10426 lt_prog_compiler_pic='-fPIC'
10427 ;;
10428 esac
10429 ;;
10430
10431 interix[3-9]*)
10432 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10433 # Instead, we relocate shared libraries at runtime.
10434 ;;
10435
10436 msdosdjgpp*)
10437 # Just because we use GCC doesn't mean we suddenly get shared libraries
10438 # on systems that don't support them.
10439 lt_prog_compiler_can_build_shared=no
10440 enable_shared=no
10441 ;;
10442
10443 *nto* | *qnx*)
10444 # QNX uses GNU C++, but need to define -shared option too, otherwise
10445 # it will coredump.
10446 lt_prog_compiler_pic='-fPIC -shared'
10447 ;;
10448
10449 sysv4*MP*)
10450 if test -d /usr/nec; then
10451 lt_prog_compiler_pic=-Kconform_pic
10452 fi
10453 ;;
10454
10455 *)
10456 lt_prog_compiler_pic='-fPIC'
10457 ;;
10458 esac
43e02a8a
RW
10459
10460 case $cc_basename in
10461 nvcc*) # Cuda Compiler Driver 2.2
10462 lt_prog_compiler_wl='-Xlinker '
10463 lt_prog_compiler_pic='-Xcompiler -fPIC'
10464 ;;
10465 esac
1cf3d07d
SE
10466 else
10467 # PORTME Check for flag to pass linker flags through the system compiler.
10468 case $host_os in
10469 aix*)
10470 lt_prog_compiler_wl='-Wl,'
10471 if test "$host_cpu" = ia64; then
10472 # AIX 5 now supports IA64 processor
10473 lt_prog_compiler_static='-Bstatic'
10474 else
10475 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10476 fi
10477 ;;
1cf3d07d 10478
0da7a284 10479 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
10480 # This hack is so that the source file can tell whether it is being
10481 # built for inclusion in a dll (and should export symbols for example).
10482 lt_prog_compiler_pic='-DDLL_EXPORT'
10483 ;;
10484
10485 hpux9* | hpux10* | hpux11*)
10486 lt_prog_compiler_wl='-Wl,'
10487 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10488 # not for PA HP-UX.
10489 case $host_cpu in
10490 hppa*64*|ia64*)
10491 # +Z the default
10492 ;;
10493 *)
10494 lt_prog_compiler_pic='+Z'
10495 ;;
10496 esac
10497 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10498 lt_prog_compiler_static='${wl}-a ${wl}archive'
10499 ;;
10500
10501 irix5* | irix6* | nonstopux*)
10502 lt_prog_compiler_wl='-Wl,'
10503 # PIC (with -KPIC) is the default.
10504 lt_prog_compiler_static='-non_shared'
10505 ;;
10506
7a9d3fe8 10507 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 10508 case $cc_basename in
0da7a284
PG
10509 # old Intel for x86_64 which still supported -KPIC.
10510 ecc*)
1cf3d07d
SE
10511 lt_prog_compiler_wl='-Wl,'
10512 lt_prog_compiler_pic='-KPIC'
10513 lt_prog_compiler_static='-static'
10514 ;;
0da7a284
PG
10515 # icc used to be incompatible with GCC.
10516 # ICC 10 doesn't accept -KPIC any more.
10517 icc* | ifort*)
10518 lt_prog_compiler_wl='-Wl,'
10519 lt_prog_compiler_pic='-fPIC'
10520 lt_prog_compiler_static='-static'
10521 ;;
10522 # Lahey Fortran 8.1.
10523 lf95*)
10524 lt_prog_compiler_wl='-Wl,'
10525 lt_prog_compiler_pic='--shared'
10526 lt_prog_compiler_static='--static'
10527 ;;
43e02a8a 10528 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
1cf3d07d
SE
10529 # Portland Group compilers (*not* the Pentium gcc compiler,
10530 # which looks to be a dead project)
10531 lt_prog_compiler_wl='-Wl,'
10532 lt_prog_compiler_pic='-fpic'
10533 lt_prog_compiler_static='-Bstatic'
10534 ;;
10535 ccc*)
10536 lt_prog_compiler_wl='-Wl,'
10537 # All Alpha code is PIC.
10538 lt_prog_compiler_static='-non_shared'
10539 ;;
43e02a8a
RW
10540 xl* | bgxl* | bgf* | mpixl*)
10541 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
0da7a284
PG
10542 lt_prog_compiler_wl='-Wl,'
10543 lt_prog_compiler_pic='-qpic'
10544 lt_prog_compiler_static='-qstaticlink'
10545 ;;
1cf3d07d
SE
10546 *)
10547 case `$CC -V 2>&1 | sed 5q` in
43e02a8a
RW
10548 *Sun\ F* | *Sun*Fortran*)
10549 # Sun Fortran 8.3 passes all unrecognized flags to the linker
1cf3d07d
SE
10550 lt_prog_compiler_pic='-KPIC'
10551 lt_prog_compiler_static='-Bstatic'
43e02a8a 10552 lt_prog_compiler_wl=''
1cf3d07d 10553 ;;
43e02a8a
RW
10554 *Sun\ C*)
10555 # Sun C 5.9
1cf3d07d
SE
10556 lt_prog_compiler_pic='-KPIC'
10557 lt_prog_compiler_static='-Bstatic'
43e02a8a 10558 lt_prog_compiler_wl='-Wl,'
1cf3d07d
SE
10559 ;;
10560 esac
10561 ;;
10562 esac
10563 ;;
10564
10565 newsos6)
10566 lt_prog_compiler_pic='-KPIC'
10567 lt_prog_compiler_static='-Bstatic'
10568 ;;
10569
10570 *nto* | *qnx*)
10571 # QNX uses GNU C++, but need to define -shared option too, otherwise
10572 # it will coredump.
10573 lt_prog_compiler_pic='-fPIC -shared'
10574 ;;
10575
10576 osf3* | osf4* | osf5*)
10577 lt_prog_compiler_wl='-Wl,'
10578 # All OSF/1 code is PIC.
10579 lt_prog_compiler_static='-non_shared'
10580 ;;
10581
10582 rdos*)
10583 lt_prog_compiler_static='-non_shared'
10584 ;;
10585
10586 solaris*)
10587 lt_prog_compiler_pic='-KPIC'
10588 lt_prog_compiler_static='-Bstatic'
10589 case $cc_basename in
10590 f77* | f90* | f95*)
10591 lt_prog_compiler_wl='-Qoption ld ';;
10592 *)
10593 lt_prog_compiler_wl='-Wl,';;
10594 esac
10595 ;;
10596
10597 sunos4*)
10598 lt_prog_compiler_wl='-Qoption ld '
10599 lt_prog_compiler_pic='-PIC'
10600 lt_prog_compiler_static='-Bstatic'
10601 ;;
10602
10603 sysv4 | sysv4.2uw2* | sysv4.3*)
10604 lt_prog_compiler_wl='-Wl,'
10605 lt_prog_compiler_pic='-KPIC'
10606 lt_prog_compiler_static='-Bstatic'
10607 ;;
10608
10609 sysv4*MP*)
10610 if test -d /usr/nec ;then
10611 lt_prog_compiler_pic='-Kconform_pic'
10612 lt_prog_compiler_static='-Bstatic'
10613 fi
10614 ;;
10615
10616 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10617 lt_prog_compiler_wl='-Wl,'
10618 lt_prog_compiler_pic='-KPIC'
10619 lt_prog_compiler_static='-Bstatic'
10620 ;;
10621
10622 unicos*)
10623 lt_prog_compiler_wl='-Wl,'
10624 lt_prog_compiler_can_build_shared=no
10625 ;;
10626
10627 uts4*)
10628 lt_prog_compiler_pic='-pic'
10629 lt_prog_compiler_static='-Bstatic'
10630 ;;
10631
10632 *)
10633 lt_prog_compiler_can_build_shared=no
10634 ;;
10635 esac
10636 fi
10637
10638case $host_os in
10639 # For platforms which do not support PIC, -DPIC is meaningless:
10640 *djgpp*)
10641 lt_prog_compiler_pic=
10642 ;;
10643 *)
10644 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10645 ;;
10646esac
5213506e
RW
10647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10648$as_echo "$lt_prog_compiler_pic" >&6; }
1cf3d07d
SE
10649
10650
10651
10652
10653
10654
10655#
10656# Check to make sure the PIC flag actually works.
10657#
10658if test -n "$lt_prog_compiler_pic"; then
5213506e
RW
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10660$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10661if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10662 $as_echo_n "(cached) " >&6
5aac1dac 10663else
0da7a284 10664 lt_cv_prog_compiler_pic_works=no
1cf3d07d
SE
10665 ac_outfile=conftest.$ac_objext
10666 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10667 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10668 # Insert the option either (1) after the last *FLAGS variable, or
10669 # (2) before a word containing "conftest.", or (3) at the end.
10670 # Note that $ac_compile itself does not contain backslashes and begins
10671 # with a dollar sign (not a hyphen), so the echo should work correctly.
10672 # The option is referenced via a variable to avoid confusing sed.
10673 lt_compile=`echo "$ac_compile" | $SED \
10674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10676 -e 's:$: $lt_compiler_flag:'`
43e02a8a 10677 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
10678 (eval "$lt_compile" 2>conftest.err)
10679 ac_status=$?
10680 cat conftest.err >&5
43e02a8a 10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
10682 if (exit $ac_status) && test -s "$ac_outfile"; then
10683 # The compiler can only warn and ignore the option if not recognized
10684 # So say no if there are warnings other than the usual output.
43e02a8a 10685 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
10686 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10687 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
0da7a284 10688 lt_cv_prog_compiler_pic_works=yes
1cf3d07d
SE
10689 fi
10690 fi
10691 $RM conftest*
10692
ed698112 10693fi
5213506e
RW
10694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10695$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
45597167 10696
0da7a284 10697if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1cf3d07d
SE
10698 case $lt_prog_compiler_pic in
10699 "" | " "*) ;;
10700 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10701 esac
ed698112 10702else
1cf3d07d
SE
10703 lt_prog_compiler_pic=
10704 lt_prog_compiler_can_build_shared=no
10705fi
ed698112 10706
ed698112 10707fi
1cf3d07d
SE
10708
10709
10710
10711
10712
10713
10714#
10715# Check to make sure the static flag actually works.
10716#
10717wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
5213506e
RW
10718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10719$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10720if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10721 $as_echo_n "(cached) " >&6
1cf3d07d 10722else
0da7a284 10723 lt_cv_prog_compiler_static_works=no
1cf3d07d
SE
10724 save_LDFLAGS="$LDFLAGS"
10725 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10726 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10727 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10728 # The linker can only warn and ignore the option if not recognized
10729 # So say no if there are warnings
10730 if test -s conftest.err; then
10731 # Append any errors to the config.log.
10732 cat conftest.err 1>&5
43e02a8a 10733 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1cf3d07d
SE
10734 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10735 if diff conftest.exp conftest.er2 >/dev/null; then
0da7a284 10736 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
10737 fi
10738 else
0da7a284 10739 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
10740 fi
10741 fi
0da7a284 10742 $RM -r conftest*
1cf3d07d
SE
10743 LDFLAGS="$save_LDFLAGS"
10744
ed698112 10745fi
5213506e
RW
10746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10747$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1cf3d07d 10748
0da7a284 10749if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1cf3d07d
SE
10750 :
10751else
10752 lt_prog_compiler_static=
5aac1dac 10753fi
45597167 10754
1cf3d07d
SE
10755
10756
10757
10758
10759
10760
5213506e
RW
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10762$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10763if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10764 $as_echo_n "(cached) " >&6
5aac1dac 10765else
1cf3d07d
SE
10766 lt_cv_prog_compiler_c_o=no
10767 $RM -r conftest 2>/dev/null
10768 mkdir conftest
10769 cd conftest
10770 mkdir out
10771 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10772
10773 lt_compiler_flag="-o out/conftest2.$ac_objext"
10774 # Insert the option either (1) after the last *FLAGS variable, or
10775 # (2) before a word containing "conftest.", or (3) at the end.
10776 # Note that $ac_compile itself does not contain backslashes and begins
10777 # with a dollar sign (not a hyphen), so the echo should work correctly.
10778 lt_compile=`echo "$ac_compile" | $SED \
10779 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10781 -e 's:$: $lt_compiler_flag:'`
43e02a8a 10782 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
10783 (eval "$lt_compile" 2>out/conftest.err)
10784 ac_status=$?
10785 cat out/conftest.err >&5
43e02a8a 10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
10787 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10788 then
10789 # The compiler can only warn and ignore the option if not recognized
10790 # So say no if there are warnings
43e02a8a 10791 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
10792 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10793 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10794 lt_cv_prog_compiler_c_o=yes
10795 fi
10796 fi
10797 chmod u+w . 2>&5
10798 $RM conftest*
10799 # SGI C++ compiler will create directory out/ii_files/ for
10800 # template instantiation
10801 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10802 $RM out/* && rmdir out
10803 cd ..
10804 $RM -r conftest
10805 $RM conftest*
10806
ed698112 10807fi
5213506e
RW
10808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10809$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
ed698112 10810
ed698112 10811
cf6b8de4
TT
10812
10813
1cf3d07d
SE
10814
10815
5213506e
RW
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10817$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10818if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10819 $as_echo_n "(cached) " >&6
ed698112 10820else
1cf3d07d
SE
10821 lt_cv_prog_compiler_c_o=no
10822 $RM -r conftest 2>/dev/null
10823 mkdir conftest
10824 cd conftest
10825 mkdir out
10826 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10827
10828 lt_compiler_flag="-o out/conftest2.$ac_objext"
10829 # Insert the option either (1) after the last *FLAGS variable, or
10830 # (2) before a word containing "conftest.", or (3) at the end.
10831 # Note that $ac_compile itself does not contain backslashes and begins
10832 # with a dollar sign (not a hyphen), so the echo should work correctly.
10833 lt_compile=`echo "$ac_compile" | $SED \
10834 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10836 -e 's:$: $lt_compiler_flag:'`
43e02a8a 10837 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
10838 (eval "$lt_compile" 2>out/conftest.err)
10839 ac_status=$?
10840 cat out/conftest.err >&5
43e02a8a 10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
10842 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10843 then
10844 # The compiler can only warn and ignore the option if not recognized
10845 # So say no if there are warnings
43e02a8a 10846 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
10847 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10848 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10849 lt_cv_prog_compiler_c_o=yes
10850 fi
10851 fi
10852 chmod u+w . 2>&5
10853 $RM conftest*
10854 # SGI C++ compiler will create directory out/ii_files/ for
10855 # template instantiation
10856 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10857 $RM out/* && rmdir out
10858 cd ..
10859 $RM -r conftest
10860 $RM conftest*
10861
10862fi
5213506e
RW
10863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10864$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
10865
10866
10867
10868
10869hard_links="nottested"
10870if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10871 # do not overwrite the value of need_locks provided by the user
5213506e
RW
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10873$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
10874 hard_links=yes
10875 $RM conftest*
10876 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10877 touch conftest.a
10878 ln conftest.a conftest.b 2>&5 || hard_links=no
10879 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10881$as_echo "$hard_links" >&6; }
1cf3d07d 10882 if test "$hard_links" = no; then
5213506e
RW
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10884$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
10885 need_locks=warn
10886 fi
10887else
10888 need_locks=no
10889fi
10890
10891
10892
10893
10894
10895
5213506e
RW
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10897$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
10898
10899 runpath_var=
10900 allow_undefined_flag=
10901 always_export_symbols=no
10902 archive_cmds=
10903 archive_expsym_cmds=
10904 compiler_needs_object=no
10905 enable_shared_with_static_runtimes=no
10906 export_dynamic_flag_spec=
10907 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10908 hardcode_automatic=no
10909 hardcode_direct=no
10910 hardcode_direct_absolute=no
10911 hardcode_libdir_flag_spec=
10912 hardcode_libdir_flag_spec_ld=
10913 hardcode_libdir_separator=
10914 hardcode_minus_L=no
10915 hardcode_shlibpath_var=unsupported
10916 inherit_rpath=no
10917 link_all_deplibs=unknown
10918 module_cmds=
10919 module_expsym_cmds=
10920 old_archive_from_new_cmds=
10921 old_archive_from_expsyms_cmds=
10922 thread_safe_flag_spec=
10923 whole_archive_flag_spec=
10924 # include_expsyms should be a list of space-separated symbols to be *always*
10925 # included in the symbol list
10926 include_expsyms=
10927 # exclude_expsyms can be an extended regexp of symbols to exclude
10928 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10929 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10930 # as well as any symbol that contains `d'.
0da7a284 10931 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
10932 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10933 # platforms (ab)use it in PIC code, but their linkers get confused if
10934 # the symbol is explicitly referenced. Since portable code cannot
10935 # rely on this symbol name, it's probably fine to never include it in
10936 # preloaded symbol tables.
0da7a284 10937 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
10938 extract_expsyms_cmds=
10939
10940 case $host_os in
0da7a284 10941 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
10942 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10943 # When not using gcc, we currently assume that we are using
10944 # Microsoft Visual C++.
10945 if test "$GCC" != yes; then
10946 with_gnu_ld=no
10947 fi
10948 ;;
10949 interix*)
10950 # we just hope/assume this is gcc and not c89 (= MSVC++)
10951 with_gnu_ld=yes
10952 ;;
10953 openbsd*)
10954 with_gnu_ld=no
10955 ;;
10956 esac
10957
10958 ld_shlibs=yes
43e02a8a
RW
10959
10960 # On some targets, GNU ld is compatible enough with the native linker
10961 # that we're better off using the native interface for both.
10962 lt_use_gnu_ld_interface=no
1cf3d07d 10963 if test "$with_gnu_ld" = yes; then
43e02a8a
RW
10964 case $host_os in
10965 aix*)
10966 # The AIX port of GNU ld has always aspired to compatibility
10967 # with the native linker. However, as the warning in the GNU ld
10968 # block says, versions before 2.19.5* couldn't really create working
10969 # shared libraries, regardless of the interface used.
10970 case `$LD -v 2>&1` in
10971 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10972 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10973 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10974 *)
10975 lt_use_gnu_ld_interface=yes
10976 ;;
10977 esac
10978 ;;
10979 *)
10980 lt_use_gnu_ld_interface=yes
10981 ;;
10982 esac
10983 fi
10984
10985 if test "$lt_use_gnu_ld_interface" = yes; then
1cf3d07d
SE
10986 # If archive_cmds runs LD, not CC, wlarc should be empty
10987 wlarc='${wl}'
10988
10989 # Set some defaults for GNU ld with shared library support. These
10990 # are reset later if shared libraries are not supported. Putting them
10991 # here allows them to be overridden if necessary.
10992 runpath_var=LD_RUN_PATH
10993 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10994 export_dynamic_flag_spec='${wl}--export-dynamic'
10995 # ancient GNU ld didn't support --whole-archive et. al.
10996 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10997 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10998 else
10999 whole_archive_flag_spec=
11000 fi
11001 supports_anon_versioning=no
11002 case `$LD -v 2>&1` in
43e02a8a 11003 *GNU\ gold*) supports_anon_versioning=yes ;;
1cf3d07d
SE
11004 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11005 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11006 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11007 *\ 2.11.*) ;; # other 2.11 versions
11008 *) supports_anon_versioning=yes ;;
11009 esac
11010
11011 # See if GNU ld supports shared libraries.
11012 case $host_os in
ed44a2c7 11013 aix[3-9]*)
1cf3d07d
SE
11014 # On AIX/PPC, the GNU linker is very broken
11015 if test "$host_cpu" != ia64; then
11016 ld_shlibs=no
11017 cat <<_LT_EOF 1>&2
11018
43e02a8a 11019*** Warning: the GNU linker, at least up to release 2.19, is reported
1cf3d07d
SE
11020*** to be unable to reliably create shared libraries on AIX.
11021*** Therefore, libtool is disabling shared libraries support. If you
43e02a8a
RW
11022*** really care for shared libraries, you may want to install binutils
11023*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11024*** You will then need to restart the configuration process.
1cf3d07d
SE
11025
11026_LT_EOF
11027 fi
11028 ;;
11029
11030 amigaos*)
0da7a284
PG
11031 case $host_cpu in
11032 powerpc)
11033 # see comment about AmigaOS4 .so support
11034 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11035 archive_expsym_cmds=''
11036 ;;
11037 m68k)
11038 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)'
11039 hardcode_libdir_flag_spec='-L$libdir'
11040 hardcode_minus_L=yes
11041 ;;
11042 esac
1cf3d07d
SE
11043 ;;
11044
11045 beos*)
11046 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11047 allow_undefined_flag=unsupported
11048 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11049 # support --undefined. This deserves some investigation. FIXME
11050 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11051 else
11052 ld_shlibs=no
11053 fi
11054 ;;
11055
0da7a284 11056 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
11057 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11058 # as there is no search path for DLLs.
11059 hardcode_libdir_flag_spec='-L$libdir'
43e02a8a 11060 export_dynamic_flag_spec='${wl}--export-all-symbols'
1cf3d07d
SE
11061 allow_undefined_flag=unsupported
11062 always_export_symbols=no
11063 enable_shared_with_static_runtimes=yes
11064 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11065
11066 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11067 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11068 # If the export-symbols file already is a .def file (1st line
11069 # is EXPORTS), use it as is; otherwise, prepend...
11070 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11071 cp $export_symbols $output_objdir/$soname.def;
11072 else
11073 echo EXPORTS > $output_objdir/$soname.def;
11074 cat $export_symbols >> $output_objdir/$soname.def;
11075 fi~
11076 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11077 else
11078 ld_shlibs=no
11079 fi
11080 ;;
11081
43e02a8a
RW
11082 haiku*)
11083 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11084 link_all_deplibs=yes
11085 ;;
11086
1cf3d07d
SE
11087 interix[3-9]*)
11088 hardcode_direct=no
11089 hardcode_shlibpath_var=no
11090 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11091 export_dynamic_flag_spec='${wl}-E'
11092 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11093 # Instead, shared libraries are loaded at an image base (0x10000000 by
11094 # default) and relocated if they conflict, which is a slow very memory
11095 # consuming and fragmenting process. To avoid this, we pick a random,
11096 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11097 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11098 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11099 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'
11100 ;;
11101
7a9d3fe8 11102 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
11103 tmp_diet=no
11104 if test "$host_os" = linux-dietlibc; then
11105 case $cc_basename in
11106 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11107 esac
11108 fi
11109 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11110 && test "$tmp_diet" = no
11111 then
11112 tmp_addflag=
0da7a284 11113 tmp_sharedflag='-shared'
1cf3d07d
SE
11114 case $cc_basename,$host_cpu in
11115 pgcc*) # Portland Group C compiler
43e02a8a 11116 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
11117 tmp_addflag=' $pic_flag'
11118 ;;
43e02a8a
RW
11119 pgf77* | pgf90* | pgf95* | pgfortran*)
11120 # Portland Group f77 and f90 compilers
11121 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
11122 tmp_addflag=' $pic_flag -Mnomain' ;;
11123 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11124 tmp_addflag=' -i_dynamic' ;;
11125 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11126 tmp_addflag=' -i_dynamic -nofor_main' ;;
11127 ifc* | ifort*) # Intel Fortran compiler
11128 tmp_addflag=' -nofor_main' ;;
0da7a284
PG
11129 lf95*) # Lahey Fortran 8.1
11130 whole_archive_flag_spec=
11131 tmp_sharedflag='--shared' ;;
43e02a8a 11132 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
0da7a284
PG
11133 tmp_sharedflag='-qmkshrobj'
11134 tmp_addflag= ;;
43e02a8a
RW
11135 nvcc*) # Cuda Compiler Driver 2.2
11136 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'
11137 compiler_needs_object=yes
11138 ;;
1cf3d07d
SE
11139 esac
11140 case `$CC -V 2>&1 | sed 5q` in
11141 *Sun\ C*) # Sun C 5.9
43e02a8a 11142 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
11143 compiler_needs_object=yes
11144 tmp_sharedflag='-G' ;;
11145 *Sun\ F*) # Sun Fortran 8.3
11146 tmp_sharedflag='-G' ;;
1cf3d07d
SE
11147 esac
11148 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11149
11150 if test "x$supports_anon_versioning" = xyes; then
11151 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11152 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11153 echo "local: *; };" >> $output_objdir/$libname.ver~
11154 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11155 fi
0da7a284
PG
11156
11157 case $cc_basename in
43e02a8a 11158 xlf* | bgf* | bgxlf* | mpixlf*)
0da7a284
PG
11159 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11160 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11161 hardcode_libdir_flag_spec=
11162 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11163 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11164 if test "x$supports_anon_versioning" = xyes; then
11165 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11166 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11167 echo "local: *; };" >> $output_objdir/$libname.ver~
11168 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11169 fi
11170 ;;
11171 esac
1cf3d07d
SE
11172 else
11173 ld_shlibs=no
11174 fi
11175 ;;
11176
11177 netbsd*)
11178 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11179 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11180 wlarc=
11181 else
11182 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11183 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11184 fi
11185 ;;
11186
11187 solaris*)
11188 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11189 ld_shlibs=no
11190 cat <<_LT_EOF 1>&2
11191
11192*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11193*** create shared libraries on Solaris systems. Therefore, libtool
11194*** is disabling shared libraries support. We urge you to upgrade GNU
11195*** binutils to release 2.9.1 or newer. Another option is to modify
11196*** your PATH or compiler configuration so that the native linker is
11197*** used, and then restart.
11198
11199_LT_EOF
11200 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11201 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11202 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11203 else
11204 ld_shlibs=no
11205 fi
11206 ;;
11207
11208 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11209 case `$LD -v 2>&1` in
11210 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11211 ld_shlibs=no
11212 cat <<_LT_EOF 1>&2
11213
11214*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11215*** reliably create shared libraries on SCO systems. Therefore, libtool
11216*** is disabling shared libraries support. We urge you to upgrade GNU
11217*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11218*** your PATH or compiler configuration so that the native linker is
11219*** used, and then restart.
11220
11221_LT_EOF
11222 ;;
11223 *)
11224 # For security reasons, it is highly recommended that you always
11225 # use absolute paths for naming shared libraries, and exclude the
11226 # DT_RUNPATH tag from executables and libraries. But doing so
11227 # requires that you compile everything twice, which is a pain.
11228 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11229 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11230 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11231 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11232 else
11233 ld_shlibs=no
11234 fi
11235 ;;
11236 esac
11237 ;;
11238
11239 sunos4*)
11240 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11241 wlarc=
11242 hardcode_direct=yes
11243 hardcode_shlibpath_var=no
11244 ;;
11245
11246 *)
11247 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11248 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11249 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11250 else
11251 ld_shlibs=no
11252 fi
11253 ;;
11254 esac
11255
11256 if test "$ld_shlibs" = no; then
11257 runpath_var=
11258 hardcode_libdir_flag_spec=
11259 export_dynamic_flag_spec=
11260 whole_archive_flag_spec=
11261 fi
11262 else
11263 # PORTME fill in a description of your system's linker (not GNU ld)
11264 case $host_os in
11265 aix3*)
11266 allow_undefined_flag=unsupported
11267 always_export_symbols=yes
11268 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'
11269 # Note: this linker hardcodes the directories in LIBPATH if there
11270 # are no directories specified by -L.
11271 hardcode_minus_L=yes
11272 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11273 # Neither direct hardcoding nor static linking is supported with a
11274 # broken collect2.
11275 hardcode_direct=unsupported
11276 fi
11277 ;;
11278
ed44a2c7 11279 aix[4-9]*)
1cf3d07d
SE
11280 if test "$host_cpu" = ia64; then
11281 # On IA64, the linker does run time linking by default, so we don't
11282 # have to do anything special.
11283 aix_use_runtimelinking=no
11284 exp_sym_flag='-Bexport'
11285 no_entry_flag=""
11286 else
11287 # If we're using GNU nm, then we don't want the "-C" option.
11288 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
11289 # Also, AIX nm treats weak defined symbols like other global
11290 # defined symbols, whereas GNU nm marks them as "W".
1cf3d07d 11291 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 11292 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
11293 else
11294 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'
11295 fi
11296 aix_use_runtimelinking=no
11297
11298 # Test if we are trying to use run time linking or normal
11299 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11300 # need to do runtime linking.
ed44a2c7 11301 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
11302 for ld_flag in $LDFLAGS; do
11303 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11304 aix_use_runtimelinking=yes
11305 break
11306 fi
11307 done
11308 ;;
11309 esac
11310
11311 exp_sym_flag='-bexport'
11312 no_entry_flag='-bnoentry'
11313 fi
11314
11315 # When large executables or shared objects are built, AIX ld can
11316 # have problems creating the table of contents. If linking a library
11317 # or program results in "error TOC overflow" add -mminimal-toc to
11318 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11319 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11320
11321 archive_cmds=''
11322 hardcode_direct=yes
11323 hardcode_direct_absolute=yes
11324 hardcode_libdir_separator=':'
11325 link_all_deplibs=yes
11326 file_list_spec='${wl}-f,'
11327
11328 if test "$GCC" = yes; then
11329 case $host_os in aix4.[012]|aix4.[012].*)
11330 # We only want to do this on AIX 4.2 and lower, the check
11331 # below for broken collect2 doesn't work under 4.3+
11332 collect2name=`${CC} -print-prog-name=collect2`
11333 if test -f "$collect2name" &&
11334 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11335 then
11336 # We have reworked collect2
11337 :
11338 else
11339 # We have old collect2
11340 hardcode_direct=unsupported
11341 # It fails to find uninstalled libraries when the uninstalled
11342 # path is not listed in the libpath. Setting hardcode_minus_L
11343 # to unsupported forces relinking
11344 hardcode_minus_L=yes
11345 hardcode_libdir_flag_spec='-L$libdir'
11346 hardcode_libdir_separator=
11347 fi
11348 ;;
11349 esac
11350 shared_flag='-shared'
11351 if test "$aix_use_runtimelinking" = yes; then
11352 shared_flag="$shared_flag "'${wl}-G'
11353 fi
11354 else
11355 # not using gcc
11356 if test "$host_cpu" = ia64; then
11357 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11358 # chokes on -Wl,-G. The following line is correct:
11359 shared_flag='-G'
11360 else
11361 if test "$aix_use_runtimelinking" = yes; then
11362 shared_flag='${wl}-G'
11363 else
11364 shared_flag='${wl}-bM:SRE'
11365 fi
11366 fi
11367 fi
11368
0da7a284 11369 export_dynamic_flag_spec='${wl}-bexpall'
1cf3d07d
SE
11370 # It seems that -bexpall does not export symbols beginning with
11371 # underscore (_), so it is better to generate a list of symbols to export.
11372 always_export_symbols=yes
11373 if test "$aix_use_runtimelinking" = yes; then
11374 # Warning - without using the other runtime loading flags (-brtl),
11375 # -berok will link without error, but may produce a broken library.
11376 allow_undefined_flag='-berok'
11377 # Determine the default libpath from the value encoded in an
11378 # empty executable.
11379 if test x$gcc_no_link = xyes; then
5213506e 11380 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ed698112 11381fi
5213506e 11382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ed698112 11383/* end confdefs.h. */
ee9dd372 11384
ed698112
NN
11385int
11386main ()
11387{
1cf3d07d 11388
ed698112
NN
11389 ;
11390 return 0;
11391}
11392_ACEOF
5213506e 11393if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
11394
11395lt_aix_libpath_sed='
11396 /Import File Strings/,/^$/ {
11397 /^0/ {
11398 s/^0 *\(.*\)$/\1/
11399 p
11400 }
11401 }'
11402aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11403# Check for a 64-bit object if we didn't find anything.
11404if test -z "$aix_libpath"; then
11405 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11406fi
ed698112 11407fi
5213506e
RW
11408rm -f core conftest.err conftest.$ac_objext \
11409 conftest$ac_exeext conftest.$ac_ext
1cf3d07d 11410if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
ee9dd372 11411
1cf3d07d 11412 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
43e02a8a 11413 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
11414 else
11415 if test "$host_cpu" = ia64; then
11416 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11417 allow_undefined_flag="-z nodefs"
11418 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"
11419 else
11420 # Determine the default libpath from the value encoded in an
11421 # empty executable.
11422 if test x$gcc_no_link = xyes; then
5213506e 11423 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ed698112 11424fi
5213506e 11425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ed698112
NN
11426/* end confdefs.h. */
11427
ed698112
NN
11428int
11429main ()
11430{
1cf3d07d 11431
ed698112
NN
11432 ;
11433 return 0;
11434}
11435_ACEOF
5213506e 11436if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
11437
11438lt_aix_libpath_sed='
11439 /Import File Strings/,/^$/ {
11440 /^0/ {
11441 s/^0 *\(.*\)$/\1/
11442 p
11443 }
11444 }'
11445aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11446# Check for a 64-bit object if we didn't find anything.
11447if test -z "$aix_libpath"; then
11448 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11449fi
ed698112 11450fi
5213506e
RW
11451rm -f core conftest.err conftest.$ac_objext \
11452 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
11453if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11454
11455 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11456 # Warning - without using the other run time loading flags,
11457 # -berok will link without error, but may produce a broken library.
11458 no_undefined_flag=' ${wl}-bernotok'
11459 allow_undefined_flag=' ${wl}-berok'
43e02a8a
RW
11460 if test "$with_gnu_ld" = yes; then
11461 # We only use this code for GNU lds that support --whole-archive.
11462 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11463 else
11464 # Exported symbols can be pulled into shared objects from archives
11465 whole_archive_flag_spec='$convenience'
11466 fi
1cf3d07d
SE
11467 archive_cmds_need_lc=yes
11468 # This is similar to how AIX traditionally builds its shared libraries.
11469 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'
11470 fi
11471 fi
11472 ;;
fe5e3b97 11473
1cf3d07d 11474 amigaos*)
0da7a284
PG
11475 case $host_cpu in
11476 powerpc)
11477 # see comment about AmigaOS4 .so support
11478 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11479 archive_expsym_cmds=''
11480 ;;
11481 m68k)
11482 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)'
11483 hardcode_libdir_flag_spec='-L$libdir'
11484 hardcode_minus_L=yes
11485 ;;
11486 esac
1cf3d07d
SE
11487 ;;
11488
11489 bsdi[45]*)
11490 export_dynamic_flag_spec=-rdynamic
11491 ;;
11492
0da7a284 11493 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
11494 # When not using gcc, we currently assume that we are using
11495 # Microsoft Visual C++.
11496 # hardcode_libdir_flag_spec is actually meaningless, as there is
11497 # no search path for DLLs.
11498 hardcode_libdir_flag_spec=' '
11499 allow_undefined_flag=unsupported
11500 # Tell ltmain to make .lib files, not .a files.
11501 libext=lib
11502 # Tell ltmain to make .dll files, not .so files.
11503 shrext_cmds=".dll"
11504 # FIXME: Setting linknames here is a bad hack.
43e02a8a 11505 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1cf3d07d
SE
11506 # The linker will automatically build a .lib file if we build a DLL.
11507 old_archive_from_new_cmds='true'
11508 # FIXME: Should let the user specify the lib program.
11509 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11510 fix_srcfile_path='`cygpath -w "$srcfile"`'
11511 enable_shared_with_static_runtimes=yes
11512 ;;
11513
11514 darwin* | rhapsody*)
fe5e3b97 11515
0da7a284
PG
11516
11517 archive_cmds_need_lc=no
11518 hardcode_direct=no
11519 hardcode_automatic=yes
11520 hardcode_shlibpath_var=unsupported
43e02a8a
RW
11521 if test "$lt_cv_ld_force_load" = "yes"; then
11522 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\"`'
11523 else
11524 whole_archive_flag_spec=''
11525 fi
0da7a284
PG
11526 link_all_deplibs=yes
11527 allow_undefined_flag="$_lt_dar_allow_undefined"
11528 case $cc_basename in
11529 ifort*) _lt_dar_can_shared=yes ;;
11530 *) _lt_dar_can_shared=$GCC ;;
11531 esac
11532 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 11533 output_verbose_link_cmd=func_echo_all
0da7a284
PG
11534 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11535 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11536 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}"
11537 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}"
11538
11539 else
11540 ld_shlibs=no
11541 fi
11542
1cf3d07d 11543 ;;
5aac1dac 11544
1cf3d07d
SE
11545 dgux*)
11546 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11547 hardcode_libdir_flag_spec='-L$libdir'
11548 hardcode_shlibpath_var=no
11549 ;;
ed698112 11550
1cf3d07d
SE
11551 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11552 # support. Future versions do this automatically, but an explicit c++rt0.o
11553 # does not break anything, and helps significantly (at the cost of a little
11554 # extra space).
11555 freebsd2.2*)
11556 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11557 hardcode_libdir_flag_spec='-R$libdir'
11558 hardcode_direct=yes
11559 hardcode_shlibpath_var=no
11560 ;;
ee9dd372 11561
1cf3d07d
SE
11562 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11563 freebsd2*)
11564 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11565 hardcode_direct=yes
11566 hardcode_minus_L=yes
11567 hardcode_shlibpath_var=no
11568 ;;
ee9dd372 11569
1cf3d07d
SE
11570 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11571 freebsd* | dragonfly*)
11572 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11573 hardcode_libdir_flag_spec='-R$libdir'
11574 hardcode_direct=yes
11575 hardcode_shlibpath_var=no
11576 ;;
ee9dd372 11577
1cf3d07d
SE
11578 hpux9*)
11579 if test "$GCC" = yes; then
11580 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'
11581 else
11582 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'
11583 fi
11584 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11585 hardcode_libdir_separator=:
11586 hardcode_direct=yes
11587
11588 # hardcode_minus_L: Not really in the search PATH,
11589 # but as the default location of the library.
11590 hardcode_minus_L=yes
11591 export_dynamic_flag_spec='${wl}-E'
11592 ;;
ed698112 11593
1cf3d07d 11594 hpux10*)
43e02a8a 11595 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
11596 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11597 else
11598 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11599 fi
11600 if test "$with_gnu_ld" = no; then
11601 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11602 hardcode_libdir_flag_spec_ld='+b $libdir'
11603 hardcode_libdir_separator=:
11604 hardcode_direct=yes
11605 hardcode_direct_absolute=yes
11606 export_dynamic_flag_spec='${wl}-E'
11607 # hardcode_minus_L: Not really in the search PATH,
11608 # but as the default location of the library.
11609 hardcode_minus_L=yes
11610 fi
11611 ;;
ee9dd372 11612
1cf3d07d 11613 hpux11*)
43e02a8a 11614 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
11615 case $host_cpu in
11616 hppa*64*)
11617 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11618 ;;
11619 ia64*)
0da7a284 11620 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
11621 ;;
11622 *)
11623 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11624 ;;
11625 esac
11626 else
11627 case $host_cpu in
11628 hppa*64*)
11629 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11630 ;;
11631 ia64*)
11632 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11633 ;;
11634 *)
43e02a8a
RW
11635
11636 # Older versions of the 11.00 compiler do not understand -b yet
11637 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11639$as_echo_n "checking if $CC understands -b... " >&6; }
11640if test "${lt_cv_prog_compiler__b+set}" = set; then :
11641 $as_echo_n "(cached) " >&6
11642else
11643 lt_cv_prog_compiler__b=no
11644 save_LDFLAGS="$LDFLAGS"
11645 LDFLAGS="$LDFLAGS -b"
11646 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11647 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11648 # The linker can only warn and ignore the option if not recognized
11649 # So say no if there are warnings
11650 if test -s conftest.err; then
11651 # Append any errors to the config.log.
11652 cat conftest.err 1>&5
11653 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11654 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11655 if diff conftest.exp conftest.er2 >/dev/null; then
11656 lt_cv_prog_compiler__b=yes
11657 fi
11658 else
11659 lt_cv_prog_compiler__b=yes
11660 fi
11661 fi
11662 $RM -r conftest*
11663 LDFLAGS="$save_LDFLAGS"
11664
11665fi
11666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11667$as_echo "$lt_cv_prog_compiler__b" >&6; }
11668
11669if test x"$lt_cv_prog_compiler__b" = xyes; then
11670 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11671else
11672 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11673fi
11674
1cf3d07d
SE
11675 ;;
11676 esac
11677 fi
11678 if test "$with_gnu_ld" = no; then
11679 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11680 hardcode_libdir_separator=:
11681
11682 case $host_cpu in
11683 hppa*64*|ia64*)
11684 hardcode_direct=no
11685 hardcode_shlibpath_var=no
11686 ;;
11687 *)
11688 hardcode_direct=yes
11689 hardcode_direct_absolute=yes
11690 export_dynamic_flag_spec='${wl}-E'
11691
11692 # hardcode_minus_L: Not really in the search PATH,
11693 # but as the default location of the library.
11694 hardcode_minus_L=yes
11695 ;;
11696 esac
11697 fi
11698 ;;
11699
11700 irix5* | irix6* | nonstopux*)
11701 if test "$GCC" = yes; then
43e02a8a 11702 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
11703 # Try to use the -exported_symbol ld option, if it does not
11704 # work, assume that -exports_file does not work either and
11705 # implicitly export all symbols.
11706 save_LDFLAGS="$LDFLAGS"
11707 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11708 if test x$gcc_no_link = xyes; then
5213506e 11709 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ed698112 11710fi
5213506e
RW
11711cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11712/* end confdefs.h. */
1cf3d07d 11713int foo(void) {}
ed698112 11714_ACEOF
5213506e 11715if ac_fn_c_try_link "$LINENO"; then :
43e02a8a 11716 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 11717
ed698112 11718fi
5213506e
RW
11719rm -f core conftest.err conftest.$ac_objext \
11720 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
11721 LDFLAGS="$save_LDFLAGS"
11722 else
43e02a8a
RW
11723 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'
11724 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
11725 fi
11726 archive_cmds_need_lc='no'
11727 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11728 hardcode_libdir_separator=:
11729 inherit_rpath=yes
11730 link_all_deplibs=yes
11731 ;;
5aac1dac 11732
1cf3d07d
SE
11733 netbsd*)
11734 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11735 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11736 else
11737 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11738 fi
11739 hardcode_libdir_flag_spec='-R$libdir'
11740 hardcode_direct=yes
11741 hardcode_shlibpath_var=no
11742 ;;
ed698112 11743
1cf3d07d
SE
11744 newsos6)
11745 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11746 hardcode_direct=yes
11747 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11748 hardcode_libdir_separator=:
11749 hardcode_shlibpath_var=no
11750 ;;
ed698112 11751
1cf3d07d
SE
11752 *nto* | *qnx*)
11753 ;;
ee9dd372 11754
1cf3d07d 11755 openbsd*)
0da7a284
PG
11756 if test -f /usr/libexec/ld.so; then
11757 hardcode_direct=yes
11758 hardcode_shlibpath_var=no
11759 hardcode_direct_absolute=yes
11760 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 11761 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
0da7a284 11762 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 11763 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
0da7a284
PG
11764 export_dynamic_flag_spec='${wl}-E'
11765 else
11766 case $host_os in
11767 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11768 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11769 hardcode_libdir_flag_spec='-R$libdir'
11770 ;;
11771 *)
11772 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11773 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11774 ;;
11775 esac
11776 fi
11777 else
11778 ld_shlibs=no
1cf3d07d
SE
11779 fi
11780 ;;
ee9dd372 11781
1cf3d07d
SE
11782 os2*)
11783 hardcode_libdir_flag_spec='-L$libdir'
11784 hardcode_minus_L=yes
11785 allow_undefined_flag=unsupported
43e02a8a 11786 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
11787 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11788 ;;
ee9dd372 11789
1cf3d07d
SE
11790 osf3*)
11791 if test "$GCC" = yes; then
11792 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 11793 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
11794 else
11795 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 11796 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
11797 fi
11798 archive_cmds_need_lc='no'
11799 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11800 hardcode_libdir_separator=:
11801 ;;
ed698112 11802
1cf3d07d
SE
11803 osf4* | osf5*) # as osf3* with the addition of -msym flag
11804 if test "$GCC" = yes; then
11805 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 11806 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
11807 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11808 else
11809 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 11810 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 11811 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 11812 $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 11813
1cf3d07d
SE
11814 # Both c and cxx compiler support -rpath directly
11815 hardcode_libdir_flag_spec='-rpath $libdir'
11816 fi
11817 archive_cmds_need_lc='no'
11818 hardcode_libdir_separator=:
11819 ;;
ed698112 11820
1cf3d07d
SE
11821 solaris*)
11822 no_undefined_flag=' -z defs'
11823 if test "$GCC" = yes; then
11824 wlarc='${wl}'
11825 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11826 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11827 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11828 else
11829 case `$CC -V 2>&1` in
11830 *"Compilers 5.0"*)
11831 wlarc=''
11832 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11833 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11834 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11835 ;;
11836 *)
11837 wlarc='${wl}'
11838 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11839 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11840 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11841 ;;
11842 esac
11843 fi
11844 hardcode_libdir_flag_spec='-R$libdir'
11845 hardcode_shlibpath_var=no
11846 case $host_os in
11847 solaris2.[0-5] | solaris2.[0-5].*) ;;
11848 *)
11849 # The compiler driver will combine and reorder linker options,
11850 # but understands `-z linker_flag'. GCC discards it without `$wl',
11851 # but is careful enough not to reorder.
11852 # Supported since Solaris 2.6 (maybe 2.5.1?)
11853 if test "$GCC" = yes; then
11854 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11855 else
11856 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11857 fi
11858 ;;
11859 esac
11860 link_all_deplibs=yes
11861 ;;
11862
11863 sunos4*)
11864 if test "x$host_vendor" = xsequent; then
11865 # Use $CC to link under sequent, because it throws in some extra .o
11866 # files that make .init and .fini sections work.
11867 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11868 else
11869 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11870 fi
11871 hardcode_libdir_flag_spec='-L$libdir'
11872 hardcode_direct=yes
11873 hardcode_minus_L=yes
11874 hardcode_shlibpath_var=no
11875 ;;
11876
11877 sysv4)
11878 case $host_vendor in
11879 sni)
11880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11881 hardcode_direct=yes # is this really true???
11882 ;;
11883 siemens)
11884 ## LD is ld it makes a PLAMLIB
11885 ## CC just makes a GrossModule.
11886 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11887 reload_cmds='$CC -r -o $output$reload_objs'
11888 hardcode_direct=no
11889 ;;
11890 motorola)
11891 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11892 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11893 ;;
11894 esac
11895 runpath_var='LD_RUN_PATH'
11896 hardcode_shlibpath_var=no
11897 ;;
11898
11899 sysv4.3*)
11900 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11901 hardcode_shlibpath_var=no
11902 export_dynamic_flag_spec='-Bexport'
11903 ;;
11904
11905 sysv4*MP*)
11906 if test -d /usr/nec; then
11907 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11908 hardcode_shlibpath_var=no
11909 runpath_var=LD_RUN_PATH
11910 hardcode_runpath_var=yes
11911 ld_shlibs=yes
11912 fi
11913 ;;
11914
11915 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11916 no_undefined_flag='${wl}-z,text'
11917 archive_cmds_need_lc=no
11918 hardcode_shlibpath_var=no
11919 runpath_var='LD_RUN_PATH'
11920
11921 if test "$GCC" = yes; then
11922 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11923 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11924 else
11925 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11926 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11927 fi
11928 ;;
11929
11930 sysv5* | sco3.2v5* | sco5v6*)
11931 # Note: We can NOT use -z defs as we might desire, because we do not
11932 # link with -lc, and that would cause any symbols used from libc to
11933 # always be unresolved, which means just about no library would
11934 # ever link correctly. If we're not using GNU ld we use -z text
11935 # though, which does catch some bad symbols but isn't as heavy-handed
11936 # as -z defs.
11937 no_undefined_flag='${wl}-z,text'
11938 allow_undefined_flag='${wl}-z,nodefs'
11939 archive_cmds_need_lc=no
11940 hardcode_shlibpath_var=no
11941 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11942 hardcode_libdir_separator=':'
11943 link_all_deplibs=yes
11944 export_dynamic_flag_spec='${wl}-Bexport'
11945 runpath_var='LD_RUN_PATH'
11946
11947 if test "$GCC" = yes; then
11948 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11949 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11950 else
11951 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11952 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11953 fi
11954 ;;
11955
11956 uts4*)
11957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11958 hardcode_libdir_flag_spec='-L$libdir'
11959 hardcode_shlibpath_var=no
11960 ;;
11961
11962 *)
11963 ld_shlibs=no
11964 ;;
11965 esac
11966
11967 if test x$host_vendor = xsni; then
11968 case $host in
11969 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11970 export_dynamic_flag_spec='${wl}-Blargedynsym'
11971 ;;
11972 esac
11973 fi
11974 fi
11975
5213506e
RW
11976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11977$as_echo "$ld_shlibs" >&6; }
1cf3d07d
SE
11978test "$ld_shlibs" = no && can_build_shared=no
11979
11980with_gnu_ld=$with_gnu_ld
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996#
11997# Do we need to explicitly link libc?
11998#
11999case "x$archive_cmds_need_lc" in
12000x|xyes)
12001 # Assume -lc should be added
12002 archive_cmds_need_lc=yes
12003
12004 if test "$enable_shared" = yes && test "$GCC" = yes; then
12005 case $archive_cmds in
12006 *'~'*)
12007 # FIXME: we may have to deal with multi-command sequences.
12008 ;;
12009 '$CC '*)
12010 # Test whether the compiler implicitly links with -lc since on some
12011 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12012 # to ld, don't add -lc before -lgcc.
5213506e
RW
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12014$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12015if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
12016 $as_echo_n "(cached) " >&6
baafc534
RW
12017else
12018 $RM conftest*
12019 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 12020
5213506e 12021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d 12022 (eval $ac_compile) 2>&5
ed698112 12023 ac_status=$?
5213506e
RW
12024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12025 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
12026 soname=conftest
12027 lib=conftest
12028 libobjs=conftest.$ac_objext
12029 deplibs=
12030 wl=$lt_prog_compiler_wl
12031 pic_flag=$lt_prog_compiler_pic
12032 compiler_flags=-v
12033 linker_flags=-v
12034 verstring=
12035 output_objdir=.
12036 libname=conftest
12037 lt_save_allow_undefined_flag=$allow_undefined_flag
12038 allow_undefined_flag=
5213506e 12039 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d 12040 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
ed698112 12041 ac_status=$?
5213506e
RW
12042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12043 test $ac_status = 0; }
baafc534
RW
12044 then
12045 lt_cv_archive_cmds_need_lc=no
12046 else
12047 lt_cv_archive_cmds_need_lc=yes
12048 fi
12049 allow_undefined_flag=$lt_save_allow_undefined_flag
12050 else
12051 cat conftest.err 1>&5
12052 fi
12053 $RM conftest*
12054
12055fi
5213506e
RW
12056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12057$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
baafc534 12058 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1cf3d07d
SE
12059 ;;
12060 esac
12061 fi
12062 ;;
12063esac
ed698112 12064
ee9dd372 12065
5aac1dac 12066
ed698112 12067
283a159f 12068
283a159f 12069
ed698112 12070
283a159f 12071
ed698112 12072
283a159f 12073
ed698112 12074
ed698112 12075
5aac1dac 12076
5aac1dac 12077
ed698112 12078
ed698112 12079
5aac1dac 12080
5aac1dac 12081
5aac1dac
TT
12082
12083
5aac1dac 12084
c0975bc7
AP
12085
12086
ed698112 12087
5aac1dac 12088
5aac1dac
TT
12089
12090
12091
12092
12093
12094
5aac1dac
TT
12095
12096
12097
e3f92d3b
MK
12098
12099
12100
e3f92d3b
MK
12101
12102
12103
5aac1dac 12104
ed698112 12105
5aac1dac 12106
5aac1dac 12107
ed698112 12108
5aac1dac
TT
12109
12110
ed698112 12111
5aac1dac 12112
ed698112 12113
5aac1dac 12114
5aac1dac 12115
19367215 12116
19367215 12117
19367215 12118
19367215 12119
19367215 12120
e4261ef7 12121
e4261ef7 12122
19367215
HB
12123
12124
620a329b 12125
5a121897 12126
e3f92d3b
MK
12127
12128
12129
e3f92d3b
MK
12130
12131
12132
e3f92d3b
MK
12133
12134
97c074fd 12135
97c074fd
JJ
12136
12137
b9f243c2 12138
18744d9b 12139
eb2925b6 12140
b9f243c2 12141
97c074fd
JJ
12142
12143
ed698112 12144
b9f243c2 12145
b9f243c2 12146
283a159f 12147
5aac1dac
TT
12148
12149
283a159f 12150
e3f92d3b 12151
283a159f 12152
5aac1dac 12153
ed698112 12154
9e7823cc 12155
ed698112 12156
ee9dd372 12157
ed698112 12158
860a1536 12159
ed698112 12160
860a1536 12161
ed698112 12162
5aac1dac 12163
ed698112 12164
5463a4f3 12165
ed698112 12166
860a1536 12167
ed698112 12168
860a1536 12169
5aac1dac
TT
12170
12171
5aac1dac 12172
ed698112
NN
12173
12174
12175
12176
12177
12178
12179
12180
ed698112 12181
ed698112 12182
5aac1dac 12183
5aac1dac 12184
5aac1dac 12185
ed698112 12186
ebecd56d 12187
ed698112
NN
12188
12189
12190
17c2e2c0
TT
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
a5dfac10 12203
ed698112 12204
ed698112 12205
ee9dd372 12206
ee9dd372 12207
ee9dd372 12208
ed698112 12209
ee9dd372 12210
34c5c0e1 12211
ed698112
NN
12212
12213
5aac1dac 12214
5aac1dac 12215
5aac1dac 12216
ed698112 12217
ed698112 12218
ed698112 12219
ed698112 12220
5213506e
RW
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12222$as_echo_n "checking dynamic linker characteristics... " >&6; }
0da7a284
PG
12223
12224if test "$GCC" = yes; then
1cf3d07d
SE
12225 case $host_os in
12226 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12227 *) lt_awk_arg="/^libraries:/" ;;
12228 esac
43e02a8a
RW
12229 case $host_os in
12230 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12231 *) lt_sed_strip_eq="s,=/,/,g" ;;
12232 esac
12233 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12234 case $lt_search_path_spec in
12235 *\;*)
1cf3d07d
SE
12236 # if the path contains ";" then we assume it to be the separator
12237 # otherwise default to the standard path separator (i.e. ":") - it is
12238 # assumed that no part of a normal pathname contains ";" but that should
12239 # okay in the real world where ";" in dirpaths is itself problematic.
43e02a8a
RW
12240 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12241 ;;
12242 *)
12243 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12244 ;;
12245 esac
1cf3d07d
SE
12246 # Ok, now we have the path, separated by spaces, we can step through it
12247 # and add multilib dir if necessary.
12248 lt_tmp_lt_search_path_spec=
12249 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12250 for lt_sys_path in $lt_search_path_spec; do
12251 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12252 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12253 else
12254 test -d "$lt_sys_path" && \
12255 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12256 fi
12257 done
43e02a8a 12258 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
1cf3d07d
SE
12259BEGIN {RS=" "; FS="/|\n";} {
12260 lt_foo="";
12261 lt_count=0;
12262 for (lt_i = NF; lt_i > 0; lt_i--) {
12263 if ($lt_i != "" && $lt_i != ".") {
12264 if ($lt_i == "..") {
12265 lt_count++;
12266 } else {
12267 if (lt_count == 0) {
12268 lt_foo="/" $lt_i lt_foo;
12269 } else {
12270 lt_count--;
12271 }
12272 }
12273 }
12274 }
12275 if (lt_foo != "") { lt_freq[lt_foo]++; }
12276 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12277}'`
43e02a8a
RW
12278 # AWK program above erroneously prepends '/' to C:/dos/paths
12279 # for these hosts.
12280 case $host_os in
12281 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12282 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12283 esac
12284 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
ed698112 12285else
1cf3d07d
SE
12286 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12287fi
12288library_names_spec=
12289libname_spec='lib$name'
12290soname_spec=
12291shrext_cmds=".so"
12292postinstall_cmds=
12293postuninstall_cmds=
12294finish_cmds=
12295finish_eval=
12296shlibpath_var=
12297shlibpath_overrides_runpath=unknown
12298version_type=none
12299dynamic_linker="$host_os ld.so"
12300sys_lib_dlsearch_path_spec="/lib /usr/lib"
12301need_lib_prefix=unknown
12302hardcode_into_libs=no
ed698112 12303
1cf3d07d
SE
12304# when you set need_version to no, make sure it does not cause -set_version
12305# flags to be left without arguments
12306need_version=unknown
ed698112 12307
1cf3d07d
SE
12308case $host_os in
12309aix3*)
12310 version_type=linux
12311 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12312 shlibpath_var=LIBPATH
ed698112 12313
1cf3d07d
SE
12314 # AIX 3 has no versioning support, so we append a major version to the name.
12315 soname_spec='${libname}${release}${shared_ext}$major'
12316 ;;
ed698112 12317
ed44a2c7 12318aix[4-9]*)
1cf3d07d
SE
12319 version_type=linux
12320 need_lib_prefix=no
12321 need_version=no
12322 hardcode_into_libs=yes
12323 if test "$host_cpu" = ia64; then
12324 # AIX 5 supports IA64
12325 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12326 shlibpath_var=LD_LIBRARY_PATH
12327 else
12328 # With GCC up to 2.95.x, collect2 would create an import file
12329 # for dependence libraries. The import file would start with
12330 # the line `#! .'. This would cause the generated library to
12331 # depend on `.', always an invalid library. This was fixed in
12332 # development snapshots of GCC prior to 3.0.
12333 case $host_os in
12334 aix4 | aix4.[01] | aix4.[01].*)
12335 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12336 echo ' yes '
12337 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12338 :
12339 else
12340 can_build_shared=no
12341 fi
12342 ;;
12343 esac
12344 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12345 # soname into executable. Probably we can add versioning support to
12346 # collect2, so additional links can be useful in future.
12347 if test "$aix_use_runtimelinking" = yes; then
12348 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12349 # instead of lib<name>.a to let people know that these are not
12350 # typical AIX shared libraries.
12351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12352 else
12353 # We preserve .a as extension for shared libraries through AIX4.2
12354 # and later when we are not doing run time linking.
12355 library_names_spec='${libname}${release}.a $libname.a'
12356 soname_spec='${libname}${release}${shared_ext}$major'
12357 fi
12358 shlibpath_var=LIBPATH
12359 fi
12360 ;;
ed698112 12361
1cf3d07d 12362amigaos*)
0da7a284
PG
12363 case $host_cpu in
12364 powerpc)
12365 # Since July 2007 AmigaOS4 officially supports .so libraries.
12366 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12368 ;;
12369 m68k)
1cf3d07d
SE
12370 library_names_spec='$libname.ixlibrary $libname.a'
12371 # Create ${libname}_ixlibrary.a entries in /sys/libs.
43e02a8a 12372 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
12373 ;;
12374 esac
1cf3d07d 12375 ;;
ed698112 12376
1cf3d07d
SE
12377beos*)
12378 library_names_spec='${libname}${shared_ext}'
12379 dynamic_linker="$host_os ld.so"
12380 shlibpath_var=LIBRARY_PATH
12381 ;;
ed698112 12382
1cf3d07d
SE
12383bsdi[45]*)
12384 version_type=linux
12385 need_version=no
12386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12387 soname_spec='${libname}${release}${shared_ext}$major'
12388 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12389 shlibpath_var=LD_LIBRARY_PATH
12390 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12391 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12392 # the default ld.so.conf also contains /usr/contrib/lib and
12393 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12394 # libtool to hard-code these into programs
12395 ;;
ed698112 12396
0da7a284 12397cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
12398 version_type=windows
12399 shrext_cmds=".dll"
12400 need_version=no
12401 need_lib_prefix=no
ed698112 12402
0da7a284
PG
12403 case $GCC,$host_os in
12404 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
12405 library_names_spec='$libname.dll.a'
12406 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12407 postinstall_cmds='base_file=`basename \${file}`~
12408 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12409 dldir=$destdir/`dirname \$dlpath`~
12410 test -d \$dldir || mkdir -p \$dldir~
12411 $install_prog $dir/$dlname \$dldir/$dlname~
12412 chmod a+x \$dldir/$dlname~
12413 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12414 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12415 fi'
12416 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12417 dlpath=$dir/\$dldll~
12418 $RM \$dlpath'
12419 shlibpath_overrides_runpath=yes
ed698112 12420
1cf3d07d
SE
12421 case $host_os in
12422 cygwin*)
12423 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12424 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43e02a8a
RW
12425
12426 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1cf3d07d 12427 ;;
0da7a284 12428 mingw* | cegcc*)
1cf3d07d
SE
12429 # MinGW DLLs use traditional 'lib' prefix
12430 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1cf3d07d
SE
12431 ;;
12432 pw32*)
12433 # pw32 DLLs use 'pw' prefix rather than 'lib'
12434 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12435 ;;
12436 esac
12437 ;;
ed698112 12438
1cf3d07d
SE
12439 *)
12440 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12441 ;;
12442 esac
12443 dynamic_linker='Win32 ld.exe'
12444 # FIXME: first we should search . and the directory the executable is in
12445 shlibpath_var=PATH
12446 ;;
ed698112 12447
1cf3d07d
SE
12448darwin* | rhapsody*)
12449 dynamic_linker="$host_os dyld"
12450 version_type=darwin
12451 need_lib_prefix=no
12452 need_version=no
12453 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12454 soname_spec='${libname}${release}${major}$shared_ext'
12455 shlibpath_overrides_runpath=yes
12456 shlibpath_var=DYLD_LIBRARY_PATH
12457 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ed698112 12458
1cf3d07d
SE
12459 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12460 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12461 ;;
ed698112 12462
1cf3d07d
SE
12463dgux*)
12464 version_type=linux
12465 need_lib_prefix=no
12466 need_version=no
12467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12468 soname_spec='${libname}${release}${shared_ext}$major'
12469 shlibpath_var=LD_LIBRARY_PATH
12470 ;;
ed698112 12471
1cf3d07d
SE
12472freebsd* | dragonfly*)
12473 # DragonFly does not have aout. When/if they implement a new
12474 # versioning mechanism, adjust this.
12475 if test -x /usr/bin/objformat; then
12476 objformat=`/usr/bin/objformat`
12477 else
12478 case $host_os in
12479 freebsd[123]*) objformat=aout ;;
12480 *) objformat=elf ;;
12481 esac
12482 fi
12483 version_type=freebsd-$objformat
12484 case $version_type in
12485 freebsd-elf*)
12486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12487 need_version=no
12488 need_lib_prefix=no
12489 ;;
12490 freebsd-*)
12491 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12492 need_version=yes
12493 ;;
12494 esac
12495 shlibpath_var=LD_LIBRARY_PATH
12496 case $host_os in
12497 freebsd2*)
12498 shlibpath_overrides_runpath=yes
12499 ;;
12500 freebsd3.[01]* | freebsdelf3.[01]*)
12501 shlibpath_overrides_runpath=yes
12502 hardcode_into_libs=yes
12503 ;;
12504 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12505 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12506 shlibpath_overrides_runpath=no
12507 hardcode_into_libs=yes
12508 ;;
12509 *) # from 4.6 on, and DragonFly
12510 shlibpath_overrides_runpath=yes
12511 hardcode_into_libs=yes
12512 ;;
12513 esac
12514 ;;
ed698112 12515
1cf3d07d
SE
12516gnu*)
12517 version_type=linux
12518 need_lib_prefix=no
12519 need_version=no
12520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12521 soname_spec='${libname}${release}${shared_ext}$major'
12522 shlibpath_var=LD_LIBRARY_PATH
12523 hardcode_into_libs=yes
12524 ;;
34c5c0e1 12525
43e02a8a
RW
12526haiku*)
12527 version_type=linux
12528 need_lib_prefix=no
12529 need_version=no
12530 dynamic_linker="$host_os runtime_loader"
12531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12532 soname_spec='${libname}${release}${shared_ext}$major'
12533 shlibpath_var=LIBRARY_PATH
12534 shlibpath_overrides_runpath=yes
12535 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
12536 hardcode_into_libs=yes
12537 ;;
12538
1cf3d07d
SE
12539hpux9* | hpux10* | hpux11*)
12540 # Give a soname corresponding to the major version so that dld.sl refuses to
12541 # link against other versions.
12542 version_type=sunos
12543 need_lib_prefix=no
12544 need_version=no
12545 case $host_cpu in
12546 ia64*)
12547 shrext_cmds='.so'
12548 hardcode_into_libs=yes
12549 dynamic_linker="$host_os dld.so"
12550 shlibpath_var=LD_LIBRARY_PATH
12551 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12553 soname_spec='${libname}${release}${shared_ext}$major'
12554 if test "X$HPUX_IA64_MODE" = X32; then
12555 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12556 else
12557 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12558 fi
12559 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12560 ;;
12561 hppa*64*)
12562 shrext_cmds='.sl'
12563 hardcode_into_libs=yes
12564 dynamic_linker="$host_os dld.sl"
12565 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12566 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12568 soname_spec='${libname}${release}${shared_ext}$major'
12569 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12570 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12571 ;;
12572 *)
12573 shrext_cmds='.sl'
12574 dynamic_linker="$host_os dld.sl"
12575 shlibpath_var=SHLIB_PATH
12576 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12578 soname_spec='${libname}${release}${shared_ext}$major'
12579 ;;
12580 esac
43e02a8a 12581 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1cf3d07d 12582 postinstall_cmds='chmod 555 $lib'
43e02a8a
RW
12583 # or fails outright, so override atomically:
12584 install_override_mode=555
1cf3d07d 12585 ;;
ed698112 12586
1cf3d07d
SE
12587interix[3-9]*)
12588 version_type=linux
12589 need_lib_prefix=no
12590 need_version=no
12591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12592 soname_spec='${libname}${release}${shared_ext}$major'
12593 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12594 shlibpath_var=LD_LIBRARY_PATH
12595 shlibpath_overrides_runpath=no
12596 hardcode_into_libs=yes
12597 ;;
ed698112 12598
1cf3d07d
SE
12599irix5* | irix6* | nonstopux*)
12600 case $host_os in
12601 nonstopux*) version_type=nonstopux ;;
12602 *)
12603 if test "$lt_cv_prog_gnu_ld" = yes; then
12604 version_type=linux
12605 else
12606 version_type=irix
12607 fi ;;
12608 esac
12609 need_lib_prefix=no
12610 need_version=no
12611 soname_spec='${libname}${release}${shared_ext}$major'
12612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12613 case $host_os in
12614 irix5* | nonstopux*)
12615 libsuff= shlibsuff=
12616 ;;
12617 *)
12618 case $LD in # libtool.m4 will add one of these switches to LD
12619 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12620 libsuff= shlibsuff= libmagic=32-bit;;
12621 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12622 libsuff=32 shlibsuff=N32 libmagic=N32;;
12623 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12624 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12625 *) libsuff= shlibsuff= libmagic=never-match;;
12626 esac
12627 ;;
12628 esac
12629 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12630 shlibpath_overrides_runpath=no
12631 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12632 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12633 hardcode_into_libs=yes
12634 ;;
ed698112 12635
1cf3d07d
SE
12636# No shared lib support for Linux oldld, aout, or coff.
12637linux*oldld* | linux*aout* | linux*coff*)
12638 dynamic_linker=no
12639 ;;
ed698112 12640
1cf3d07d 12641# This must be Linux ELF.
7a9d3fe8 12642linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
12643 version_type=linux
12644 need_lib_prefix=no
12645 need_version=no
12646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12647 soname_spec='${libname}${release}${shared_ext}$major'
12648 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12649 shlibpath_var=LD_LIBRARY_PATH
12650 shlibpath_overrides_runpath=no
baafc534 12651
1cf3d07d 12652 # Some binutils ld are patched to set DT_RUNPATH
5213506e
RW
12653 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12654 $as_echo_n "(cached) " >&6
baafc534
RW
12655else
12656 lt_cv_shlibpath_overrides_runpath=no
12657 save_LDFLAGS=$LDFLAGS
12658 save_libdir=$libdir
12659 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12660 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12661 if test x$gcc_no_link = xyes; then
5213506e 12662 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ed698112 12663fi
5213506e 12664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ed698112 12665/* end confdefs.h. */
1cf3d07d
SE
12666
12667int
12668main ()
12669{
12670
12671 ;
12672 return 0;
12673}
ed698112 12674_ACEOF
5213506e
RW
12675if ac_fn_c_try_link "$LINENO"; then :
12676 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 12677 lt_cv_shlibpath_overrides_runpath=yes
ed698112 12678fi
34c5c0e1 12679fi
5213506e
RW
12680rm -f core conftest.err conftest.$ac_objext \
12681 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
12682 LDFLAGS=$save_LDFLAGS
12683 libdir=$save_libdir
12684
12685fi
12686
12687 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
ed698112 12688
1cf3d07d
SE
12689 # This implies no fast_install, which is unacceptable.
12690 # Some rework will be needed to allow for fast_install
12691 # before this can be enabled.
12692 hardcode_into_libs=yes
ed698112 12693
1cf3d07d
SE
12694 # Append ld.so.conf contents to the search path
12695 if test -f /etc/ld.so.conf; then
43e02a8a 12696 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
12697 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12698 fi
ed698112 12699
1cf3d07d
SE
12700 # We used to test for /lib/ld.so.1 and disable shared libraries on
12701 # powerpc, because MkLinux only supported shared libraries with the
12702 # GNU dynamic linker. Since this was broken with cross compilers,
12703 # most powerpc-linux boxes support dynamic linking these days and
12704 # people can always --disable-shared, the test was removed, and we
12705 # assume the GNU/Linux dynamic linker is in use.
12706 dynamic_linker='GNU/Linux ld.so'
12707 ;;
ed698112 12708
1cf3d07d
SE
12709netbsd*)
12710 version_type=sunos
12711 need_lib_prefix=no
12712 need_version=no
12713 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12715 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12716 dynamic_linker='NetBSD (a.out) ld.so'
12717 else
12718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12719 soname_spec='${libname}${release}${shared_ext}$major'
12720 dynamic_linker='NetBSD ld.elf_so'
12721 fi
12722 shlibpath_var=LD_LIBRARY_PATH
12723 shlibpath_overrides_runpath=yes
12724 hardcode_into_libs=yes
12725 ;;
ed698112 12726
1cf3d07d
SE
12727newsos6)
12728 version_type=linux
12729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12730 shlibpath_var=LD_LIBRARY_PATH
12731 shlibpath_overrides_runpath=yes
12732 ;;
ed698112 12733
1cf3d07d
SE
12734*nto* | *qnx*)
12735 version_type=qnx
12736 need_lib_prefix=no
12737 need_version=no
12738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12739 soname_spec='${libname}${release}${shared_ext}$major'
12740 shlibpath_var=LD_LIBRARY_PATH
12741 shlibpath_overrides_runpath=no
12742 hardcode_into_libs=yes
12743 dynamic_linker='ldqnx.so'
12744 ;;
ed698112 12745
1cf3d07d
SE
12746openbsd*)
12747 version_type=sunos
12748 sys_lib_dlsearch_path_spec="/usr/lib"
12749 need_lib_prefix=no
12750 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12751 case $host_os in
12752 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12753 *) need_version=no ;;
12754 esac
12755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12756 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12757 shlibpath_var=LD_LIBRARY_PATH
12758 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12759 case $host_os in
12760 openbsd2.[89] | openbsd2.[89].*)
12761 shlibpath_overrides_runpath=no
12762 ;;
12763 *)
12764 shlibpath_overrides_runpath=yes
12765 ;;
12766 esac
12767 else
12768 shlibpath_overrides_runpath=yes
12769 fi
12770 ;;
ee9dd372 12771
1cf3d07d
SE
12772os2*)
12773 libname_spec='$name'
12774 shrext_cmds=".dll"
12775 need_lib_prefix=no
12776 library_names_spec='$libname${shared_ext} $libname.a'
12777 dynamic_linker='OS/2 ld.exe'
12778 shlibpath_var=LIBPATH
12779 ;;
ed698112 12780
1cf3d07d
SE
12781osf3* | osf4* | osf5*)
12782 version_type=osf
12783 need_lib_prefix=no
12784 need_version=no
12785 soname_spec='${libname}${release}${shared_ext}$major'
12786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12787 shlibpath_var=LD_LIBRARY_PATH
12788 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12789 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12790 ;;
ee9dd372 12791
1cf3d07d
SE
12792rdos*)
12793 dynamic_linker=no
12794 ;;
2a67186a 12795
1cf3d07d
SE
12796solaris*)
12797 version_type=linux
12798 need_lib_prefix=no
12799 need_version=no
12800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12801 soname_spec='${libname}${release}${shared_ext}$major'
12802 shlibpath_var=LD_LIBRARY_PATH
12803 shlibpath_overrides_runpath=yes
12804 hardcode_into_libs=yes
12805 # ldd complains unless libraries are executable
12806 postinstall_cmds='chmod +x $lib'
12807 ;;
2a67186a 12808
1cf3d07d
SE
12809sunos4*)
12810 version_type=sunos
12811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12812 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12813 shlibpath_var=LD_LIBRARY_PATH
12814 shlibpath_overrides_runpath=yes
12815 if test "$with_gnu_ld" = yes; then
12816 need_lib_prefix=no
12817 fi
12818 need_version=yes
12819 ;;
2a67186a 12820
1cf3d07d
SE
12821sysv4 | sysv4.3*)
12822 version_type=linux
12823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12824 soname_spec='${libname}${release}${shared_ext}$major'
12825 shlibpath_var=LD_LIBRARY_PATH
12826 case $host_vendor in
12827 sni)
12828 shlibpath_overrides_runpath=no
12829 need_lib_prefix=no
12830 runpath_var=LD_RUN_PATH
12831 ;;
12832 siemens)
12833 need_lib_prefix=no
12834 ;;
12835 motorola)
12836 need_lib_prefix=no
12837 need_version=no
12838 shlibpath_overrides_runpath=no
12839 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12840 ;;
12841 esac
12842 ;;
2a67186a 12843
1cf3d07d
SE
12844sysv4*MP*)
12845 if test -d /usr/nec ;then
12846 version_type=linux
12847 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12848 soname_spec='$libname${shared_ext}.$major'
12849 shlibpath_var=LD_LIBRARY_PATH
12850 fi
12851 ;;
2a67186a 12852
1cf3d07d
SE
12853sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12854 version_type=freebsd-elf
12855 need_lib_prefix=no
12856 need_version=no
12857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12858 soname_spec='${libname}${release}${shared_ext}$major'
12859 shlibpath_var=LD_LIBRARY_PATH
12860 shlibpath_overrides_runpath=yes
12861 hardcode_into_libs=yes
12862 if test "$with_gnu_ld" = yes; then
12863 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12864 else
12865 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12866 case $host_os in
12867 sco3.2v5*)
12868 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12869 ;;
12870 esac
12871 fi
12872 sys_lib_dlsearch_path_spec='/usr/lib'
12873 ;;
2a67186a 12874
1cf3d07d
SE
12875tpf*)
12876 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12877 version_type=linux
12878 need_lib_prefix=no
12879 need_version=no
0da7a284 12880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
12881 shlibpath_var=LD_LIBRARY_PATH
12882 shlibpath_overrides_runpath=no
12883 hardcode_into_libs=yes
12884 ;;
2a67186a 12885
1cf3d07d
SE
12886uts4*)
12887 version_type=linux
12888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12889 soname_spec='${libname}${release}${shared_ext}$major'
12890 shlibpath_var=LD_LIBRARY_PATH
12891 ;;
5aac1dac 12892
1cf3d07d
SE
12893*)
12894 dynamic_linker=no
12895 ;;
12896esac
5213506e
RW
12897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12898$as_echo "$dynamic_linker" >&6; }
1cf3d07d 12899test "$dynamic_linker" = no && can_build_shared=no
6d1e9d18 12900
1cf3d07d
SE
12901variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12902if test "$GCC" = yes; then
12903 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5aac1dac 12904fi
ed698112 12905
0da7a284
PG
12906if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12907 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12908fi
12909if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12910 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12911fi
12912
ed698112 12913
ee9dd372 12914
ed698112 12915
5aac1dac 12916
7f40378f 12917
7f40378f 12918
7f40378f
DD
12919
12920
12921
7f40378f 12922
ee9dd372 12923
ed698112 12924
5aac1dac 12925
7f40378f 12926
7f40378f 12927
ee9dd372 12928
ed698112 12929
1cf3d07d
SE
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
43e02a8a
RW
12993
12994
12995
12996
12997
1cf3d07d
SE
12998
12999
13000
13001
13002
13003
5213506e
RW
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13005$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
13006hardcode_action=
13007if test -n "$hardcode_libdir_flag_spec" ||
13008 test -n "$runpath_var" ||
13009 test "X$hardcode_automatic" = "Xyes" ; then
13010
13011 # We can hardcode non-existent directories.
13012 if test "$hardcode_direct" != no &&
13013 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13014 # have to relink, otherwise we might link with an installed library
13015 # when we should be linking with a yet-to-be-installed one
13016 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13017 test "$hardcode_minus_L" != no; then
13018 # Linking always hardcodes the temporary library directory.
13019 hardcode_action=relink
5b7a26f6 13020 else
1cf3d07d
SE
13021 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13022 hardcode_action=immediate
5b7a26f6 13023 fi
1cf3d07d
SE
13024else
13025 # We cannot hardcode anything, or else we can only hardcode existing
13026 # directories.
13027 hardcode_action=unsupported
13028fi
5213506e
RW
13029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13030$as_echo "$hardcode_action" >&6; }
5b7a26f6 13031
1cf3d07d
SE
13032if test "$hardcode_action" = relink ||
13033 test "$inherit_rpath" = yes; then
13034 # Fast installation is not supported
13035 enable_fast_install=no
13036elif test "$shlibpath_overrides_runpath" = yes ||
13037 test "$enable_shared" = no; then
13038 # Fast installation is not necessary
13039 enable_fast_install=needless
13040fi
5b7a26f6 13041
1cf3d07d
SE
13042
13043
13044
13045
13046
13047 if test "x$enable_dlopen" != xyes; then
13048 enable_dlopen=unknown
13049 enable_dlopen_self=unknown
13050 enable_dlopen_self_static=unknown
5b7a26f6 13051else
1cf3d07d
SE
13052 lt_cv_dlopen=no
13053 lt_cv_dlopen_libs=
13054
13055 case $host_os in
13056 beos*)
13057 lt_cv_dlopen="load_add_on"
13058 lt_cv_dlopen_libs=
13059 lt_cv_dlopen_self=yes
5b7a26f6 13060 ;;
1cf3d07d 13061
0da7a284 13062 mingw* | pw32* | cegcc*)
1cf3d07d
SE
13063 lt_cv_dlopen="LoadLibrary"
13064 lt_cv_dlopen_libs=
5b7a26f6 13065 ;;
5b7a26f6 13066
5213506e
RW
13067 cygwin*)
13068 lt_cv_dlopen="dlopen"
13069 lt_cv_dlopen_libs=
13070 ;;
5b7a26f6 13071
5213506e
RW
13072 darwin*)
13073 # if libdl is installed we need to link against it
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13075$as_echo_n "checking for dlopen in -ldl... " >&6; }
13076if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13077 $as_echo_n "(cached) " >&6
1cf3d07d
SE
13078else
13079 ac_check_lib_save_LIBS=$LIBS
5213506e 13080LIBS="-ldl $LIBS"
1cf3d07d 13081if test x$gcc_no_link = xyes; then
5213506e 13082 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 13083fi
5213506e 13084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 13085/* end confdefs.h. */
5b7a26f6 13086
5213506e
RW
13087/* Override any GCC internal prototype to avoid an error.
13088 Use char because int might match the return type of a GCC
13089 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
13090#ifdef __cplusplus
13091extern "C"
13092#endif
5213506e 13093char dlopen ();
1cf3d07d
SE
13094int
13095main ()
13096{
5213506e 13097return dlopen ();
1cf3d07d
SE
13098 ;
13099 return 0;
13100}
13101_ACEOF
5213506e
RW
13102if ac_fn_c_try_link "$LINENO"; then :
13103 ac_cv_lib_dl_dlopen=yes
1cf3d07d 13104else
5213506e 13105 ac_cv_lib_dl_dlopen=no
1cf3d07d 13106fi
5213506e
RW
13107rm -f core conftest.err conftest.$ac_objext \
13108 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
13109LIBS=$ac_check_lib_save_LIBS
13110fi
5213506e
RW
13111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13112$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13113if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13114 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1cf3d07d 13115else
5b7a26f6 13116
5213506e
RW
13117 lt_cv_dlopen="dyld"
13118 lt_cv_dlopen_libs=
13119 lt_cv_dlopen_self=yes
5aac1dac 13120
5213506e 13121fi
5b7a26f6 13122
5213506e 13123 ;;
5b7a26f6 13124
5213506e
RW
13125 *)
13126 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13127if test "x$ac_cv_func_shl_load" = x""yes; then :
13128 lt_cv_dlopen="shl_load"
13129else
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13131$as_echo_n "checking for shl_load in -ldld... " >&6; }
13132if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13133 $as_echo_n "(cached) " >&6
13134else
13135 ac_check_lib_save_LIBS=$LIBS
13136LIBS="-ldld $LIBS"
13137if test x$gcc_no_link = xyes; then
13138 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13139fi
13140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13141/* end confdefs.h. */
13142
13143/* Override any GCC internal prototype to avoid an error.
13144 Use char because int might match the return type of a GCC
1cf3d07d 13145 builtin and then its argument prototype would still apply. */
1cf3d07d 13146#ifdef __cplusplus
5213506e 13147extern "C"
1cf3d07d 13148#endif
5213506e 13149char shl_load ();
1cf3d07d
SE
13150int
13151main ()
13152{
5213506e 13153return shl_load ();
1cf3d07d
SE
13154 ;
13155 return 0;
13156}
13157_ACEOF
5213506e
RW
13158if ac_fn_c_try_link "$LINENO"; then :
13159 ac_cv_lib_dld_shl_load=yes
1cf3d07d 13160else
5213506e 13161 ac_cv_lib_dld_shl_load=no
1cf3d07d 13162fi
5213506e
RW
13163rm -f core conftest.err conftest.$ac_objext \
13164 conftest$ac_exeext conftest.$ac_ext
13165LIBS=$ac_check_lib_save_LIBS
1cf3d07d 13166fi
5213506e
RW
13167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13168$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13169if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13170 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13171else
13172 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13173if test "x$ac_cv_func_dlopen" = x""yes; then :
1cf3d07d
SE
13174 lt_cv_dlopen="dlopen"
13175else
5213506e
RW
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13177$as_echo_n "checking for dlopen in -ldl... " >&6; }
13178if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13179 $as_echo_n "(cached) " >&6
1cf3d07d
SE
13180else
13181 ac_check_lib_save_LIBS=$LIBS
13182LIBS="-ldl $LIBS"
13183if test x$gcc_no_link = xyes; then
5213506e 13184 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 13185fi
5213506e 13186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 13187/* end confdefs.h. */
5b7a26f6 13188
5213506e
RW
13189/* Override any GCC internal prototype to avoid an error.
13190 Use char because int might match the return type of a GCC
13191 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
13192#ifdef __cplusplus
13193extern "C"
13194#endif
1cf3d07d
SE
13195char dlopen ();
13196int
13197main ()
13198{
5213506e 13199return dlopen ();
1cf3d07d
SE
13200 ;
13201 return 0;
13202}
13203_ACEOF
5213506e 13204if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
13205 ac_cv_lib_dl_dlopen=yes
13206else
5213506e 13207 ac_cv_lib_dl_dlopen=no
1cf3d07d 13208fi
5213506e
RW
13209rm -f core conftest.err conftest.$ac_objext \
13210 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
13211LIBS=$ac_check_lib_save_LIBS
13212fi
5213506e
RW
13213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13214$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13215if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1cf3d07d
SE
13216 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13217else
5213506e
RW
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13219$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13220if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13221 $as_echo_n "(cached) " >&6
1cf3d07d
SE
13222else
13223 ac_check_lib_save_LIBS=$LIBS
13224LIBS="-lsvld $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 13237char dlopen ();
ed698112
NN
13238int
13239main ()
13240{
5213506e 13241return dlopen ();
ed698112
NN
13242 ;
13243 return 0;
13244}
13245_ACEOF
5213506e 13246if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 13247 ac_cv_lib_svld_dlopen=yes
ee9dd372 13248else
5213506e 13249 ac_cv_lib_svld_dlopen=no
ee9dd372 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_svld_dlopen" >&5
13256$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13257if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
1cf3d07d
SE
13258 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13259else
5213506e
RW
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13261$as_echo_n "checking for dld_link in -ldld... " >&6; }
13262if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13263 $as_echo_n "(cached) " >&6
1cf3d07d
SE
13264else
13265 ac_check_lib_save_LIBS=$LIBS
13266LIBS="-ldld $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
ed698112 13269fi
5213506e 13270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ed698112 13271/* end confdefs.h. */
1cf3d07d 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 dld_link ();
ed698112
NN
13280int
13281main ()
13282{
5213506e 13283return dld_link ();
ed698112
NN
13284 ;
13285 return 0;
13286}
13287_ACEOF
5213506e 13288if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 13289 ac_cv_lib_dld_dld_link=yes
ee9dd372 13290else
5213506e 13291 ac_cv_lib_dld_dld_link=no
5aac1dac 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_dld_dld_link" >&5
13298$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13299if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
0da7a284 13300 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1cf3d07d
SE
13301fi
13302
4b7f154f 13303
ed698112 13304fi
ed698112 13305
7339705d 13306
1cf3d07d
SE
13307fi
13308
13309
13310fi
13311
13312
13313fi
13314
13315
13316fi
13317
13318 ;;
13319 esac
13320
13321 if test "x$lt_cv_dlopen" != xno; then
13322 enable_dlopen=yes
5b7a26f6 13323 else
1cf3d07d 13324 enable_dlopen=no
5b7a26f6
KC
13325 fi
13326
1cf3d07d
SE
13327 case $lt_cv_dlopen in
13328 dlopen)
13329 save_CPPFLAGS="$CPPFLAGS"
13330 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
5b7a26f6 13331
1cf3d07d
SE
13332 save_LDFLAGS="$LDFLAGS"
13333 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
5b7a26f6 13334
1cf3d07d
SE
13335 save_LIBS="$LIBS"
13336 LIBS="$lt_cv_dlopen_libs $LIBS"
13337
5213506e
RW
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13339$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13340if test "${lt_cv_dlopen_self+set}" = set; then :
13341 $as_echo_n "(cached) " >&6
4b7f154f 13342else
1cf3d07d
SE
13343 if test "$cross_compiling" = yes; then :
13344 lt_cv_dlopen_self=cross
13345else
13346 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13347 lt_status=$lt_dlunknown
13348 cat > conftest.$ac_ext <<_LT_EOF
bf382f5f 13349#line 13349 "configure"
1cf3d07d 13350#include "confdefs.h"
ed698112 13351
1cf3d07d
SE
13352#if HAVE_DLFCN_H
13353#include <dlfcn.h>
5aac1dac 13354#endif
1cf3d07d
SE
13355
13356#include <stdio.h>
13357
13358#ifdef RTLD_GLOBAL
13359# define LT_DLGLOBAL RTLD_GLOBAL
4b7f154f 13360#else
1cf3d07d
SE
13361# ifdef DL_GLOBAL
13362# define LT_DLGLOBAL DL_GLOBAL
13363# else
13364# define LT_DLGLOBAL 0
13365# endif
4b7f154f
TT
13366#endif
13367
1cf3d07d
SE
13368/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13369 find out it does not work in some platform. */
13370#ifndef LT_DLLAZY_OR_NOW
13371# ifdef RTLD_LAZY
13372# define LT_DLLAZY_OR_NOW RTLD_LAZY
13373# else
13374# ifdef DL_LAZY
13375# define LT_DLLAZY_OR_NOW DL_LAZY
13376# else
13377# ifdef RTLD_NOW
13378# define LT_DLLAZY_OR_NOW RTLD_NOW
13379# else
13380# ifdef DL_NOW
13381# define LT_DLLAZY_OR_NOW DL_NOW
13382# else
13383# define LT_DLLAZY_OR_NOW 0
13384# endif
13385# endif
13386# endif
13387# endif
13388#endif
13389
43e02a8a
RW
13390/* When -fvisbility=hidden is used, assume the code has been annotated
13391 correspondingly for the symbols needed. */
13392#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13393void fnord () __attribute__((visibility("default")));
13394#endif
13395
13396void fnord () { int i=42; }
1cf3d07d 13397int main ()
ed698112 13398{
1cf3d07d
SE
13399 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13400 int status = $lt_dlunknown;
5aac1dac 13401
1cf3d07d
SE
13402 if (self)
13403 {
13404 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
13405 else
13406 {
13407 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13408 else puts (dlerror ());
13409 }
1cf3d07d
SE
13410 /* dlclose (self); */
13411 }
13412 else
13413 puts (dlerror ());
13414
0da7a284 13415 return status;
ed698112 13416}
1cf3d07d 13417_LT_EOF
5213506e 13418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d 13419 (eval $ac_link) 2>&5
ed698112 13420 ac_status=$?
5213506e
RW
13421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13422 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
13423 (./conftest; exit; ) >&5 2>/dev/null
13424 lt_status=$?
13425 case x$lt_status in
13426 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13427 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13428 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13429 esac
13430 else :
13431 # compilation failed
13432 lt_cv_dlopen_self=no
13433 fi
4b7f154f 13434fi
1cf3d07d 13435rm -fr conftest*
4b7f154f 13436
ed698112 13437
1cf3d07d 13438fi
5213506e
RW
13439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13440$as_echo "$lt_cv_dlopen_self" >&6; }
ed698112 13441
1cf3d07d
SE
13442 if test "x$lt_cv_dlopen_self" = xyes; then
13443 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
5213506e
RW
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13445$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13446if test "${lt_cv_dlopen_self_static+set}" = set; then :
13447 $as_echo_n "(cached) " >&6
ed698112 13448else
1cf3d07d
SE
13449 if test "$cross_compiling" = yes; then :
13450 lt_cv_dlopen_self_static=cross
4b7f154f 13451else
1cf3d07d
SE
13452 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13453 lt_status=$lt_dlunknown
13454 cat > conftest.$ac_ext <<_LT_EOF
bf382f5f 13455#line 13455 "configure"
1cf3d07d 13456#include "confdefs.h"
ed698112 13457
1cf3d07d
SE
13458#if HAVE_DLFCN_H
13459#include <dlfcn.h>
13460#endif
ed698112 13461
1cf3d07d 13462#include <stdio.h>
7339705d 13463
1cf3d07d
SE
13464#ifdef RTLD_GLOBAL
13465# define LT_DLGLOBAL RTLD_GLOBAL
13466#else
13467# ifdef DL_GLOBAL
13468# define LT_DLGLOBAL DL_GLOBAL
13469# else
13470# define LT_DLGLOBAL 0
13471# endif
13472#endif
5b7a26f6 13473
1cf3d07d
SE
13474/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13475 find out it does not work in some platform. */
13476#ifndef LT_DLLAZY_OR_NOW
13477# ifdef RTLD_LAZY
13478# define LT_DLLAZY_OR_NOW RTLD_LAZY
13479# else
13480# ifdef DL_LAZY
13481# define LT_DLLAZY_OR_NOW DL_LAZY
13482# else
13483# ifdef RTLD_NOW
13484# define LT_DLLAZY_OR_NOW RTLD_NOW
13485# else
13486# ifdef DL_NOW
13487# define LT_DLLAZY_OR_NOW DL_NOW
13488# else
13489# define LT_DLLAZY_OR_NOW 0
13490# endif
13491# endif
13492# endif
13493# endif
13494#endif
ed698112 13495
43e02a8a
RW
13496/* When -fvisbility=hidden is used, assume the code has been annotated
13497 correspondingly for the symbols needed. */
13498#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13499void fnord () __attribute__((visibility("default")));
13500#endif
13501
13502void fnord () { int i=42; }
1cf3d07d 13503int main ()
ed698112 13504{
1cf3d07d
SE
13505 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13506 int status = $lt_dlunknown;
13507
13508 if (self)
13509 {
13510 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
13511 else
13512 {
13513 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13514 else puts (dlerror ());
13515 }
1cf3d07d
SE
13516 /* dlclose (self); */
13517 }
13518 else
13519 puts (dlerror ());
13520
0da7a284 13521 return status;
ed698112 13522}
1cf3d07d 13523_LT_EOF
5213506e 13524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d 13525 (eval $ac_link) 2>&5
ed698112 13526 ac_status=$?
5213506e
RW
13527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13528 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
13529 (./conftest; exit; ) >&5 2>/dev/null
13530 lt_status=$?
13531 case x$lt_status in
13532 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13533 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13534 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13535 esac
13536 else :
13537 # compilation failed
13538 lt_cv_dlopen_self_static=no
13539 fi
7339705d 13540fi
1cf3d07d
SE
13541rm -fr conftest*
13542
13543
7339705d 13544fi
5213506e
RW
13545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13546$as_echo "$lt_cv_dlopen_self_static" >&6; }
1cf3d07d 13547 fi
ed698112 13548
1cf3d07d
SE
13549 CPPFLAGS="$save_CPPFLAGS"
13550 LDFLAGS="$save_LDFLAGS"
13551 LIBS="$save_LIBS"
13552 ;;
13553 esac
13554
13555 case $lt_cv_dlopen_self in
13556 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13557 *) enable_dlopen_self=unknown ;;
13558 esac
4b7f154f 13559
1cf3d07d
SE
13560 case $lt_cv_dlopen_self_static in
13561 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13562 *) enable_dlopen_self_static=unknown ;;
13563 esac
ee9dd372 13564fi
ee9dd372 13565
ed698112
NN
13566
13567
ed698112 13568
ed698112
NN
13569
13570
ed698112 13571
1cf3d07d
SE
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582striplib=
13583old_striplib=
5213506e
RW
13584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13585$as_echo_n "checking whether stripping libraries is possible... " >&6; }
1cf3d07d
SE
13586if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13587 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13588 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5213506e
RW
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13590$as_echo "yes" >&6; }
1cf3d07d
SE
13591else
13592# FIXME - insert some real tests, host_os isn't really good enough
13593 case $host_os in
13594 darwin*)
13595 if test -n "$STRIP" ; then
13596 striplib="$STRIP -x"
13597 old_striplib="$STRIP -S"
5213506e
RW
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13599$as_echo "yes" >&6; }
1cf3d07d 13600 else
5213506e
RW
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13602$as_echo "no" >&6; }
1cf3d07d
SE
13603 fi
13604 ;;
13605 *)
5213506e
RW
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13607$as_echo "no" >&6; }
1cf3d07d
SE
13608 ;;
13609 esac
ed698112 13610fi
ed698112 13611
1cf3d07d
SE
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623 # Report which library types will actually be built
5213506e
RW
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13625$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13627$as_echo "$can_build_shared" >&6; }
1cf3d07d 13628
5213506e
RW
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13630$as_echo_n "checking whether to build shared libraries... " >&6; }
1cf3d07d
SE
13631 test "$can_build_shared" = "no" && enable_shared=no
13632
13633 # On AIX, shared libraries and static libraries use the same namespace, and
13634 # are all built from PIC.
13635 case $host_os in
13636 aix3*)
13637 test "$enable_shared" = yes && enable_static=no
13638 if test -n "$RANLIB"; then
13639 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13640 postinstall_cmds='$RANLIB $lib'
13641 fi
13642 ;;
13643
ed44a2c7 13644 aix[4-9]*)
1cf3d07d
SE
13645 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13646 test "$enable_shared" = yes && enable_static=no
13647 fi
13648 ;;
13649 esac
5213506e
RW
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13651$as_echo "$enable_shared" >&6; }
1cf3d07d 13652
5213506e
RW
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13654$as_echo_n "checking whether to build static libraries... " >&6; }
1cf3d07d
SE
13655 # Make sure either enable_shared or enable_static is yes.
13656 test "$enable_shared" = yes || enable_static=yes
5213506e
RW
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13658$as_echo "$enable_static" >&6; }
1cf3d07d
SE
13659
13660
ed698112
NN
13661
13662
13663fi
1cf3d07d
SE
13664ac_ext=c
13665ac_cpp='$CPP $CPPFLAGS'
13666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13668ac_compiler_gnu=$ac_cv_c_compiler_gnu
ed698112 13669
1cf3d07d 13670CC="$lt_save_CC"
5aac1dac 13671
43e02a8a
RW
13672 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13673 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13674 (test "X$CXX" != "Xg++"))) ; then
13675 ac_ext=cpp
13676ac_cpp='$CXXCPP $CPPFLAGS'
13677ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13678ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13679ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13681$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13682if test -z "$CXXCPP"; then
13683 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13684 $as_echo_n "(cached) " >&6
13685else
13686 # Double quotes because CXXCPP needs to be expanded
13687 for CXXCPP in "$CXX -E" "/lib/cpp"
13688 do
13689 ac_preproc_ok=false
13690for ac_cxx_preproc_warn_flag in '' yes
13691do
13692 # Use a header file that comes with gcc, so configuring glibc
13693 # with a fresh cross-compiler works.
13694 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13695 # <limits.h> exists even on freestanding compilers.
13696 # On the NeXT, cc -E runs the code through the compiler's parser,
13697 # not just through cpp. "Syntax error" is here to catch this case.
13698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13699/* end confdefs.h. */
13700#ifdef __STDC__
13701# include <limits.h>
13702#else
13703# include <assert.h>
13704#endif
13705 Syntax error
13706_ACEOF
13707if ac_fn_cxx_try_cpp "$LINENO"; then :
13708
13709else
13710 # Broken: fails on valid input.
13711continue
13712fi
13713rm -f conftest.err conftest.$ac_ext
13714
13715 # OK, works on sane cases. Now check whether nonexistent headers
13716 # can be detected and how.
13717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13718/* end confdefs.h. */
13719#include <ac_nonexistent.h>
13720_ACEOF
13721if ac_fn_cxx_try_cpp "$LINENO"; then :
13722 # Broken: success on invalid input.
13723continue
13724else
13725 # Passes both tests.
13726ac_preproc_ok=:
13727break
13728fi
13729rm -f conftest.err conftest.$ac_ext
13730
13731done
13732# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13733rm -f conftest.err conftest.$ac_ext
13734if $ac_preproc_ok; then :
13735 break
13736fi
13737
13738 done
13739 ac_cv_prog_CXXCPP=$CXXCPP
13740
13741fi
13742 CXXCPP=$ac_cv_prog_CXXCPP
13743else
13744 ac_cv_prog_CXXCPP=$CXXCPP
13745fi
13746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13747$as_echo "$CXXCPP" >&6; }
13748ac_preproc_ok=false
13749for ac_cxx_preproc_warn_flag in '' yes
13750do
13751 # Use a header file that comes with gcc, so configuring glibc
13752 # with a fresh cross-compiler works.
13753 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13754 # <limits.h> exists even on freestanding compilers.
13755 # On the NeXT, cc -E runs the code through the compiler's parser,
13756 # not just through cpp. "Syntax error" is here to catch this case.
13757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13758/* end confdefs.h. */
13759#ifdef __STDC__
13760# include <limits.h>
13761#else
13762# include <assert.h>
13763#endif
13764 Syntax error
13765_ACEOF
13766if ac_fn_cxx_try_cpp "$LINENO"; then :
13767
13768else
13769 # Broken: fails on valid input.
13770continue
13771fi
13772rm -f conftest.err conftest.$ac_ext
13773
13774 # OK, works on sane cases. Now check whether nonexistent headers
13775 # can be detected and how.
13776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13777/* end confdefs.h. */
13778#include <ac_nonexistent.h>
13779_ACEOF
13780if ac_fn_cxx_try_cpp "$LINENO"; then :
13781 # Broken: success on invalid input.
13782continue
13783else
13784 # Passes both tests.
13785ac_preproc_ok=:
13786break
13787fi
13788rm -f conftest.err conftest.$ac_ext
13789
13790done
13791# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13792rm -f conftest.err conftest.$ac_ext
13793if $ac_preproc_ok; then :
13794
13795else
13796 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13797$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13798as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
13799See \`config.log' for more details." "$LINENO" 5; }
13800fi
13801
13802ac_ext=c
13803ac_cpp='$CPP $CPPFLAGS'
13804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13806ac_compiler_gnu=$ac_cv_c_compiler_gnu
13807
13808else
13809 _lt_caught_CXX_error=yes
13810fi
5aac1dac 13811
5213506e 13812ac_ext=cpp
1cf3d07d
SE
13813ac_cpp='$CXXCPP $CPPFLAGS'
13814ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13815ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13816ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13817
13818archive_cmds_need_lc_CXX=no
13819allow_undefined_flag_CXX=
13820always_export_symbols_CXX=no
13821archive_expsym_cmds_CXX=
13822compiler_needs_object_CXX=no
13823export_dynamic_flag_spec_CXX=
13824hardcode_direct_CXX=no
13825hardcode_direct_absolute_CXX=no
13826hardcode_libdir_flag_spec_CXX=
13827hardcode_libdir_flag_spec_ld_CXX=
13828hardcode_libdir_separator_CXX=
13829hardcode_minus_L_CXX=no
13830hardcode_shlibpath_var_CXX=unsupported
13831hardcode_automatic_CXX=no
13832inherit_rpath_CXX=no
13833module_cmds_CXX=
13834module_expsym_cmds_CXX=
13835link_all_deplibs_CXX=unknown
13836old_archive_cmds_CXX=$old_archive_cmds
43e02a8a
RW
13837reload_flag_CXX=$reload_flag
13838reload_cmds_CXX=$reload_cmds
1cf3d07d
SE
13839no_undefined_flag_CXX=
13840whole_archive_flag_spec_CXX=
13841enable_shared_with_static_runtimes_CXX=no
13842
13843# Source file extension for C++ test sources.
13844ac_ext=cpp
13845
13846# Object file extension for compiled C++ test sources.
13847objext=o
13848objext_CXX=$objext
13849
13850# No sense in running all these tests if we already determined that
13851# the CXX compiler isn't working. Some variables (like enable_shared)
13852# are currently assumed to apply to all compilers on this platform,
13853# and will be corrupted by setting them based on a non-working compiler.
13854if test "$_lt_caught_CXX_error" != yes; then
13855 # Code to be used in simple compile tests
13856 lt_simple_compile_test_code="int some_variable = 0;"
13857
13858 # Code to be used in simple link tests
13859 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13860
13861 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13862
13863
13864
13865
13866
13867
13868# If no C compiler was specified, use CC.
13869LTCC=${LTCC-"$CC"}
13870
13871# If no C compiler flags were specified, use CFLAGS.
13872LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13873
13874# Allow CC to be a program name with arguments.
13875compiler=$CC
13876
13877
13878 # save warnings/boilerplate of simple test code
13879 ac_outfile=conftest.$ac_objext
13880echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13881eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13882_lt_compiler_boilerplate=`cat conftest.err`
13883$RM conftest*
13884
13885 ac_outfile=conftest.$ac_objext
13886echo "$lt_simple_link_test_code" >conftest.$ac_ext
13887eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13888_lt_linker_boilerplate=`cat conftest.err`
0da7a284 13889$RM -r conftest*
1cf3d07d
SE
13890
13891
13892 # Allow CC to be a program name with arguments.
13893 lt_save_CC=$CC
13894 lt_save_LD=$LD
13895 lt_save_GCC=$GCC
13896 GCC=$GXX
13897 lt_save_with_gnu_ld=$with_gnu_ld
13898 lt_save_path_LD=$lt_cv_path_LD
13899 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13900 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13901 else
13902 $as_unset lt_cv_prog_gnu_ld
13903 fi
13904 if test -n "${lt_cv_path_LDCXX+set}"; then
13905 lt_cv_path_LD=$lt_cv_path_LDCXX
13906 else
13907 $as_unset lt_cv_path_LD
13908 fi
13909 test -z "${LDCXX+set}" || LD=$LDCXX
13910 CC=${CXX-"c++"}
13911 compiler=$CC
13912 compiler_CXX=$CC
13913 for cc_temp in $compiler""; do
13914 case $cc_temp in
13915 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13916 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13917 \-*) ;;
13918 *) break;;
13919 esac
13920done
43e02a8a 13921cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1cf3d07d
SE
13922
13923
13924 if test -n "$compiler"; then
13925 # We don't want -fno-exception when compiling C++ code, so set the
13926 # no_builtin_flag separately
13927 if test "$GXX" = yes; then
13928 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13929 else
13930 lt_prog_compiler_no_builtin_flag_CXX=
13931 fi
13932
13933 if test "$GXX" = yes; then
13934 # Set up default GNU C++ configuration
13935
13936
13937
5213506e
RW
13938# Check whether --with-gnu-ld was given.
13939if test "${with_gnu_ld+set}" = set; then :
13940 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5aac1dac 13941else
1cf3d07d 13942 with_gnu_ld=no
5213506e
RW
13943fi
13944
1cf3d07d
SE
13945ac_prog=ld
13946if test "$GCC" = yes; then
13947 # Check if gcc -print-prog-name=ld gives a path.
5213506e
RW
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13949$as_echo_n "checking for ld used by $CC... " >&6; }
1cf3d07d
SE
13950 case $host in
13951 *-*-mingw*)
13952 # gcc leaves a trailing carriage return which upsets mingw
13953 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13954 *)
13955 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13956 esac
13957 case $ac_prog in
13958 # Accept absolute paths.
13959 [\\/]* | ?:[\\/]*)
13960 re_direlt='/[^/][^/]*/\.\./'
13961 # Canonicalize the pathname of ld
13962 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13963 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13964 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13965 done
13966 test -z "$LD" && LD="$ac_prog"
13967 ;;
13968 "")
13969 # If it fails, then pretend we aren't using GCC.
13970 ac_prog=ld
13971 ;;
13972 *)
13973 # If it is relative, then search for the first ld in PATH.
13974 with_gnu_ld=unknown
13975 ;;
13976 esac
13977elif test "$with_gnu_ld" = yes; then
5213506e
RW
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13979$as_echo_n "checking for GNU ld... " >&6; }
1cf3d07d 13980else
5213506e
RW
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13982$as_echo_n "checking for non-GNU ld... " >&6; }
1cf3d07d 13983fi
5213506e
RW
13984if test "${lt_cv_path_LD+set}" = set; then :
13985 $as_echo_n "(cached) " >&6
02809848 13986else
1cf3d07d
SE
13987 if test -z "$LD"; then
13988 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13989 for ac_dir in $PATH; do
13990 IFS="$lt_save_ifs"
13991 test -z "$ac_dir" && ac_dir=.
13992 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13993 lt_cv_path_LD="$ac_dir/$ac_prog"
13994 # Check to see if the program is GNU ld. I'd rather use --version,
13995 # but apparently some variants of GNU ld only accept -v.
13996 # Break only if it was the GNU/non-GNU ld that we prefer.
13997 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13998 *GNU* | *'with BFD'*)
13999 test "$with_gnu_ld" != no && break
14000 ;;
14001 *)
14002 test "$with_gnu_ld" != yes && break
14003 ;;
14004 esac
14005 fi
14006 done
14007 IFS="$lt_save_ifs"
14008else
14009 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14010fi
14011fi
14012
14013LD="$lt_cv_path_LD"
14014if test -n "$LD"; then
5213506e
RW
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14016$as_echo "$LD" >&6; }
1cf3d07d 14017else
5213506e
RW
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14019$as_echo "no" >&6; }
1cf3d07d 14020fi
5213506e
RW
14021test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14023$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14024if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14025 $as_echo_n "(cached) " >&6
1cf3d07d
SE
14026else
14027 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14028case `$LD -v 2>&1 </dev/null` in
14029*GNU* | *'with BFD'*)
14030 lt_cv_prog_gnu_ld=yes
14031 ;;
14032*)
14033 lt_cv_prog_gnu_ld=no
14034 ;;
14035esac
14036fi
5213506e
RW
14037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14038$as_echo "$lt_cv_prog_gnu_ld" >&6; }
1cf3d07d
SE
14039with_gnu_ld=$lt_cv_prog_gnu_ld
14040
14041
14042
14043
14044
14045
14046
14047 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14048 # archiving commands below assume that GNU ld is being used.
14049 if test "$with_gnu_ld" = yes; then
14050 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14051 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'
14052
14053 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14054 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14055
14056 # If archive_cmds runs LD, not CC, wlarc should be empty
14057 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14058 # investigate it a little bit more. (MM)
14059 wlarc='${wl}'
14060
14061 # ancient GNU ld didn't support --whole-archive et. al.
14062 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14063 $GREP 'no-whole-archive' > /dev/null; then
14064 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14065 else
14066 whole_archive_flag_spec_CXX=
14067 fi
14068 else
14069 with_gnu_ld=no
14070 wlarc=
14071
14072 # A generic and very simple default shared library creation
14073 # command for GNU C++ for the case where it uses the native
14074 # linker, instead of GNU ld. If possible, this setting should
14075 # overridden to take advantage of the native linker features on
14076 # the platform it is being used on.
14077 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14078 fi
14079
14080 # Commands to make compiler produce verbose output that lists
14081 # what "hidden" libraries, object files and flags are used when
14082 # linking a shared library.
43e02a8a 14083 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
1cf3d07d
SE
14084
14085 else
14086 GXX=no
14087 with_gnu_ld=no
14088 wlarc=
14089 fi
14090
14091 # PORTME: fill in a description of your system's C++ link characteristics
5213506e
RW
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14093$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
14094 ld_shlibs_CXX=yes
14095 case $host_os in
14096 aix3*)
14097 # FIXME: insert proper C++ library support
14098 ld_shlibs_CXX=no
14099 ;;
ed44a2c7 14100 aix[4-9]*)
1cf3d07d
SE
14101 if test "$host_cpu" = ia64; then
14102 # On IA64, the linker does run time linking by default, so we don't
14103 # have to do anything special.
14104 aix_use_runtimelinking=no
14105 exp_sym_flag='-Bexport'
14106 no_entry_flag=""
14107 else
14108 aix_use_runtimelinking=no
14109
14110 # Test if we are trying to use run time linking or normal
14111 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14112 # need to do runtime linking.
ed44a2c7 14113 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
14114 for ld_flag in $LDFLAGS; do
14115 case $ld_flag in
14116 *-brtl*)
14117 aix_use_runtimelinking=yes
14118 break
14119 ;;
14120 esac
14121 done
14122 ;;
14123 esac
14124
14125 exp_sym_flag='-bexport'
14126 no_entry_flag='-bnoentry'
14127 fi
14128
14129 # When large executables or shared objects are built, AIX ld can
14130 # have problems creating the table of contents. If linking a library
14131 # or program results in "error TOC overflow" add -mminimal-toc to
14132 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14133 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14134
14135 archive_cmds_CXX=''
14136 hardcode_direct_CXX=yes
14137 hardcode_direct_absolute_CXX=yes
14138 hardcode_libdir_separator_CXX=':'
14139 link_all_deplibs_CXX=yes
14140 file_list_spec_CXX='${wl}-f,'
14141
14142 if test "$GXX" = yes; then
14143 case $host_os in aix4.[012]|aix4.[012].*)
14144 # We only want to do this on AIX 4.2 and lower, the check
14145 # below for broken collect2 doesn't work under 4.3+
14146 collect2name=`${CC} -print-prog-name=collect2`
14147 if test -f "$collect2name" &&
14148 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14149 then
14150 # We have reworked collect2
14151 :
14152 else
14153 # We have old collect2
14154 hardcode_direct_CXX=unsupported
14155 # It fails to find uninstalled libraries when the uninstalled
14156 # path is not listed in the libpath. Setting hardcode_minus_L
14157 # to unsupported forces relinking
14158 hardcode_minus_L_CXX=yes
14159 hardcode_libdir_flag_spec_CXX='-L$libdir'
14160 hardcode_libdir_separator_CXX=
14161 fi
14162 esac
14163 shared_flag='-shared'
14164 if test "$aix_use_runtimelinking" = yes; then
14165 shared_flag="$shared_flag "'${wl}-G'
14166 fi
14167 else
14168 # not using gcc
14169 if test "$host_cpu" = ia64; then
14170 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14171 # chokes on -Wl,-G. The following line is correct:
14172 shared_flag='-G'
14173 else
14174 if test "$aix_use_runtimelinking" = yes; then
14175 shared_flag='${wl}-G'
14176 else
14177 shared_flag='${wl}-bM:SRE'
14178 fi
14179 fi
14180 fi
14181
0da7a284 14182 export_dynamic_flag_spec_CXX='${wl}-bexpall'
1cf3d07d
SE
14183 # It seems that -bexpall does not export symbols beginning with
14184 # underscore (_), so it is better to generate a list of symbols to
14185 # export.
14186 always_export_symbols_CXX=yes
14187 if test "$aix_use_runtimelinking" = yes; then
14188 # Warning - without using the other runtime loading flags (-brtl),
14189 # -berok will link without error, but may produce a broken library.
14190 allow_undefined_flag_CXX='-berok'
14191 # Determine the default libpath from the value encoded in an empty
14192 # executable.
14193 if test x$gcc_no_link = xyes; then
5213506e 14194 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ade710a5 14195fi
5213506e 14196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
02809848 14197/* end confdefs.h. */
02809848
PB
14198
14199int
14200main ()
14201{
1cf3d07d 14202
02809848
PB
14203 ;
14204 return 0;
14205}
14206_ACEOF
5213506e 14207if ac_fn_cxx_try_link "$LINENO"; then :
1cf3d07d
SE
14208
14209lt_aix_libpath_sed='
14210 /Import File Strings/,/^$/ {
14211 /^0/ {
14212 s/^0 *\(.*\)$/\1/
14213 p
14214 }
14215 }'
14216aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14217# Check for a 64-bit object if we didn't find anything.
14218if test -z "$aix_libpath"; then
14219 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14220fi
02809848 14221fi
5213506e
RW
14222rm -f core conftest.err conftest.$ac_objext \
14223 conftest$ac_exeext conftest.$ac_ext
1cf3d07d 14224if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
ed698112 14225
1cf3d07d 14226 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
5aac1dac 14227
43e02a8a 14228 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
14229 else
14230 if test "$host_cpu" = ia64; then
14231 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14232 allow_undefined_flag_CXX="-z nodefs"
14233 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"
14234 else
14235 # Determine the default libpath from the value encoded in an
14236 # empty executable.
14237 if test x$gcc_no_link = xyes; then
5213506e 14238 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5aac1dac 14239fi
5213506e 14240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 14241/* end confdefs.h. */
ee9dd372 14242
ed698112
NN
14243int
14244main ()
14245{
1cf3d07d 14246
ed698112
NN
14247 ;
14248 return 0;
14249}
14250_ACEOF
5213506e 14251if ac_fn_cxx_try_link "$LINENO"; then :
1cf3d07d
SE
14252
14253lt_aix_libpath_sed='
14254 /Import File Strings/,/^$/ {
14255 /^0/ {
14256 s/^0 *\(.*\)$/\1/
14257 p
14258 }
14259 }'
14260aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14261# Check for a 64-bit object if we didn't find anything.
14262if test -z "$aix_libpath"; then
14263 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14264fi
ed698112 14265fi
5213506e
RW
14266rm -f core conftest.err conftest.$ac_objext \
14267 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
14268if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14269
14270 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14271 # Warning - without using the other run time loading flags,
14272 # -berok will link without error, but may produce a broken library.
14273 no_undefined_flag_CXX=' ${wl}-bernotok'
14274 allow_undefined_flag_CXX=' ${wl}-berok'
43e02a8a
RW
14275 if test "$with_gnu_ld" = yes; then
14276 # We only use this code for GNU lds that support --whole-archive.
14277 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14278 else
14279 # Exported symbols can be pulled into shared objects from archives
14280 whole_archive_flag_spec_CXX='$convenience'
14281 fi
1cf3d07d
SE
14282 archive_cmds_need_lc_CXX=yes
14283 # This is similar to how AIX traditionally builds its shared
14284 # libraries.
14285 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'
14286 fi
14287 fi
14288 ;;
ed698112 14289
1cf3d07d
SE
14290 beos*)
14291 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14292 allow_undefined_flag_CXX=unsupported
14293 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14294 # support --undefined. This deserves some investigation. FIXME
14295 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14296 else
14297 ld_shlibs_CXX=no
14298 fi
14299 ;;
ed698112 14300
1cf3d07d
SE
14301 chorus*)
14302 case $cc_basename in
14303 *)
14304 # FIXME: insert proper C++ library support
14305 ld_shlibs_CXX=no
14306 ;;
14307 esac
14308 ;;
5aac1dac 14309
0da7a284 14310 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
14311 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14312 # as there is no search path for DLLs.
14313 hardcode_libdir_flag_spec_CXX='-L$libdir'
43e02a8a 14314 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
1cf3d07d
SE
14315 allow_undefined_flag_CXX=unsupported
14316 always_export_symbols_CXX=no
14317 enable_shared_with_static_runtimes_CXX=yes
14318
14319 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14320 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'
14321 # If the export-symbols file already is a .def file (1st line
14322 # is EXPORTS), use it as is; otherwise, prepend...
14323 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14324 cp $export_symbols $output_objdir/$soname.def;
14325 else
14326 echo EXPORTS > $output_objdir/$soname.def;
14327 cat $export_symbols >> $output_objdir/$soname.def;
14328 fi~
14329 $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'
14330 else
14331 ld_shlibs_CXX=no
14332 fi
14333 ;;
14334 darwin* | rhapsody*)
1cf3d07d 14335
ed698112 14336
0da7a284
PG
14337 archive_cmds_need_lc_CXX=no
14338 hardcode_direct_CXX=no
14339 hardcode_automatic_CXX=yes
14340 hardcode_shlibpath_var_CXX=unsupported
43e02a8a
RW
14341 if test "$lt_cv_ld_force_load" = "yes"; then
14342 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\"`'
14343 else
14344 whole_archive_flag_spec_CXX=''
14345 fi
0da7a284
PG
14346 link_all_deplibs_CXX=yes
14347 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14348 case $cc_basename in
14349 ifort*) _lt_dar_can_shared=yes ;;
14350 *) _lt_dar_can_shared=$GCC ;;
14351 esac
14352 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 14353 output_verbose_link_cmd=func_echo_all
0da7a284
PG
14354 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}"
14355 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14356 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}"
14357 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}"
14358 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14359 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}"
14360 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}"
14361 fi
14362
14363 else
14364 ld_shlibs_CXX=no
14365 fi
14366
1cf3d07d 14367 ;;
ed698112 14368
1cf3d07d
SE
14369 dgux*)
14370 case $cc_basename in
14371 ec++*)
14372 # FIXME: insert proper C++ library support
14373 ld_shlibs_CXX=no
14374 ;;
14375 ghcx*)
14376 # Green Hills C++ Compiler
14377 # FIXME: insert proper C++ library support
14378 ld_shlibs_CXX=no
14379 ;;
14380 *)
14381 # FIXME: insert proper C++ library support
14382 ld_shlibs_CXX=no
14383 ;;
14384 esac
14385 ;;
ed698112 14386
1cf3d07d
SE
14387 freebsd[12]*)
14388 # C++ shared libraries reported to be fairly broken before
14389 # switch to ELF
14390 ld_shlibs_CXX=no
14391 ;;
5aac1dac 14392
1cf3d07d
SE
14393 freebsd-elf*)
14394 archive_cmds_need_lc_CXX=no
14395 ;;
ee9dd372 14396
1cf3d07d
SE
14397 freebsd* | dragonfly*)
14398 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14399 # conventions
14400 ld_shlibs_CXX=yes
14401 ;;
ee9dd372 14402
1cf3d07d
SE
14403 gnu*)
14404 ;;
ed698112 14405
43e02a8a
RW
14406 haiku*)
14407 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14408 link_all_deplibs_CXX=yes
14409 ;;
14410
1cf3d07d
SE
14411 hpux9*)
14412 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14413 hardcode_libdir_separator_CXX=:
14414 export_dynamic_flag_spec_CXX='${wl}-E'
14415 hardcode_direct_CXX=yes
14416 hardcode_minus_L_CXX=yes # Not in the search PATH,
14417 # but as the default
14418 # location of the library.
14419
14420 case $cc_basename in
14421 CC*)
14422 # FIXME: insert proper C++ library support
14423 ld_shlibs_CXX=no
14424 ;;
14425 aCC*)
14426 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'
14427 # Commands to make compiler produce verbose output that lists
14428 # what "hidden" libraries, object files and flags are used when
14429 # linking a shared library.
14430 #
14431 # There doesn't appear to be a way to prevent this compiler from
14432 # explicitly linking system object files so we need to strip them
14433 # from the output so that they don't get included in the library
14434 # dependencies.
43e02a8a 14435 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
14436 ;;
14437 *)
14438 if test "$GXX" = yes; then
14439 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'
14440 else
14441 # FIXME: insert proper C++ library support
14442 ld_shlibs_CXX=no
14443 fi
14444 ;;
14445 esac
14446 ;;
ed698112 14447
1cf3d07d
SE
14448 hpux10*|hpux11*)
14449 if test $with_gnu_ld = no; then
14450 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14451 hardcode_libdir_separator_CXX=:
14452
14453 case $host_cpu in
14454 hppa*64*|ia64*)
14455 ;;
14456 *)
14457 export_dynamic_flag_spec_CXX='${wl}-E'
14458 ;;
14459 esac
14460 fi
14461 case $host_cpu in
14462 hppa*64*|ia64*)
14463 hardcode_direct_CXX=no
14464 hardcode_shlibpath_var_CXX=no
14465 ;;
14466 *)
14467 hardcode_direct_CXX=yes
14468 hardcode_direct_absolute_CXX=yes
14469 hardcode_minus_L_CXX=yes # Not in the search PATH,
14470 # but as the default
14471 # location of the library.
14472 ;;
14473 esac
14474
14475 case $cc_basename in
14476 CC*)
14477 # FIXME: insert proper C++ library support
14478 ld_shlibs_CXX=no
14479 ;;
14480 aCC*)
14481 case $host_cpu in
14482 hppa*64*)
14483 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14484 ;;
14485 ia64*)
14486 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14487 ;;
14488 *)
14489 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14490 ;;
14491 esac
14492 # Commands to make compiler produce verbose output that lists
14493 # what "hidden" libraries, object files and flags are used when
14494 # linking a shared library.
14495 #
14496 # There doesn't appear to be a way to prevent this compiler from
14497 # explicitly linking system object files so we need to strip them
14498 # from the output so that they don't get included in the library
14499 # dependencies.
43e02a8a 14500 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
14501 ;;
14502 *)
14503 if test "$GXX" = yes; then
14504 if test $with_gnu_ld = no; then
14505 case $host_cpu in
14506 hppa*64*)
14507 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14508 ;;
14509 ia64*)
14510 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14511 ;;
14512 *)
14513 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'
14514 ;;
14515 esac
14516 fi
14517 else
14518 # FIXME: insert proper C++ library support
14519 ld_shlibs_CXX=no
14520 fi
14521 ;;
14522 esac
14523 ;;
ed698112 14524
1cf3d07d
SE
14525 interix[3-9]*)
14526 hardcode_direct_CXX=no
14527 hardcode_shlibpath_var_CXX=no
14528 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14529 export_dynamic_flag_spec_CXX='${wl}-E'
14530 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14531 # Instead, shared libraries are loaded at an image base (0x10000000 by
14532 # default) and relocated if they conflict, which is a slow very memory
14533 # consuming and fragmenting process. To avoid this, we pick a random,
14534 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14535 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14536 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'
14537 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'
14538 ;;
14539 irix5* | irix6*)
14540 case $cc_basename in
14541 CC*)
14542 # SGI C++
43e02a8a 14543 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
14544
14545 # Archives containing C++ object files must be created using
14546 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14547 # necessary to make sure instantiated templates are included
14548 # in the archive.
14549 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14550 ;;
14551 *)
14552 if test "$GXX" = yes; then
14553 if test "$with_gnu_ld" = no; then
43e02a8a 14554 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 14555 else
43e02a8a 14556 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
14557 fi
14558 fi
14559 link_all_deplibs_CXX=yes
14560 ;;
14561 esac
14562 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14563 hardcode_libdir_separator_CXX=:
14564 inherit_rpath_CXX=yes
14565 ;;
ed698112 14566
7a9d3fe8 14567 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
14568 case $cc_basename in
14569 KCC*)
14570 # Kuck and Associates, Inc. (KAI) C++ Compiler
14571
14572 # KCC will only create a shared library if the output file
14573 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14574 # to its proper name (with version) after linking.
14575 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'
14576 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'
14577 # Commands to make compiler produce verbose output that lists
14578 # what "hidden" libraries, object files and flags are used when
14579 # linking a shared library.
14580 #
14581 # There doesn't appear to be a way to prevent this compiler from
14582 # explicitly linking system object files so we need to strip them
14583 # from the output so that they don't get included in the library
14584 # dependencies.
43e02a8a 14585 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
14586
14587 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14588 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14589
14590 # Archives containing C++ object files must be created using
14591 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14592 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14593 ;;
14594 icpc* | ecpc* )
14595 # Intel C++
14596 with_gnu_ld=yes
14597 # version 8.0 and above of icpc choke on multiply defined symbols
14598 # if we add $predep_objects and $postdep_objects, however 7.1 and
14599 # earlier do not add the objects themselves.
14600 case `$CC -V 2>&1` in
14601 *"Version 7."*)
14602 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14603 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'
14604 ;;
14605 *) # Version 8.0 or newer
14606 tmp_idyn=
14607 case $host_cpu in
14608 ia64*) tmp_idyn=' -i_dynamic';;
14609 esac
14610 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14611 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'
14612 ;;
14613 esac
14614 archive_cmds_need_lc_CXX=no
14615 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14616 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14617 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14618 ;;
0da7a284 14619 pgCC* | pgcpp*)
1cf3d07d
SE
14620 # Portland Group C++ compiler
14621 case `$CC -V` in
43e02a8a 14622 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
1cf3d07d
SE
14623 prelink_cmds_CXX='tpldir=Template.dir~
14624 rm -rf $tpldir~
14625 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14626 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14627 old_archive_cmds_CXX='tpldir=Template.dir~
14628 rm -rf $tpldir~
14629 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14630 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14631 $RANLIB $oldlib'
14632 archive_cmds_CXX='tpldir=Template.dir~
14633 rm -rf $tpldir~
14634 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14635 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14636 archive_expsym_cmds_CXX='tpldir=Template.dir~
14637 rm -rf $tpldir~
14638 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14639 $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'
14640 ;;
43e02a8a 14641 *) # Version 6 and above use weak symbols
1cf3d07d
SE
14642 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14643 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'
14644 ;;
14645 esac
5aac1dac 14646
1cf3d07d
SE
14647 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14648 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
43e02a8a 14649 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
14650 ;;
14651 cxx*)
14652 # Compaq C++
14653 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14654 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'
14655
14656 runpath_var=LD_RUN_PATH
14657 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14658 hardcode_libdir_separator_CXX=:
14659
14660 # Commands to make compiler produce verbose output that lists
14661 # what "hidden" libraries, object files and flags are used when
14662 # linking a shared library.
14663 #
14664 # There doesn't appear to be a way to prevent this compiler from
14665 # explicitly linking system object files so we need to strip them
14666 # from the output so that they don't get included in the library
14667 # dependencies.
43e02a8a 14668 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 14669 ;;
43e02a8a 14670 xl* | mpixl* | bgxl*)
0da7a284
PG
14671 # IBM XL 8.0 on PPC, with GNU ld
14672 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14673 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14674 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14675 if test "x$supports_anon_versioning" = xyes; then
14676 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14677 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14678 echo "local: *; };" >> $output_objdir/$libname.ver~
14679 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14680 fi
14681 ;;
1cf3d07d
SE
14682 *)
14683 case `$CC -V 2>&1 | sed 5q` in
14684 *Sun\ C*)
14685 # Sun C++ 5.9
14686 no_undefined_flag_CXX=' -zdefs'
14687 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14688 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'
14689 hardcode_libdir_flag_spec_CXX='-R$libdir'
43e02a8a 14690 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
14691 compiler_needs_object_CXX=yes
14692
14693 # Not sure whether something based on
14694 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14695 # would be better.
43e02a8a 14696 output_verbose_link_cmd='func_echo_all'
1cf3d07d
SE
14697
14698 # Archives containing C++ object files must be created using
14699 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14700 # necessary to make sure instantiated templates are included
14701 # in the archive.
14702 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14703 ;;
14704 esac
14705 ;;
14706 esac
14707 ;;
5aac1dac 14708
1cf3d07d
SE
14709 lynxos*)
14710 # FIXME: insert proper C++ library support
14711 ld_shlibs_CXX=no
14712 ;;
ed698112 14713
1cf3d07d
SE
14714 m88k*)
14715 # FIXME: insert proper C++ library support
14716 ld_shlibs_CXX=no
14717 ;;
5aac1dac 14718
1cf3d07d
SE
14719 mvs*)
14720 case $cc_basename in
14721 cxx*)
14722 # FIXME: insert proper C++ library support
14723 ld_shlibs_CXX=no
14724 ;;
14725 *)
14726 # FIXME: insert proper C++ library support
14727 ld_shlibs_CXX=no
14728 ;;
14729 esac
14730 ;;
14731
14732 netbsd*)
14733 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14734 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14735 wlarc=
14736 hardcode_libdir_flag_spec_CXX='-R$libdir'
14737 hardcode_direct_CXX=yes
14738 hardcode_shlibpath_var_CXX=no
5aac1dac 14739 fi
1cf3d07d
SE
14740 # Workaround some broken pre-1.5 toolchains
14741 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14742 ;;
ee9dd372 14743
1cf3d07d
SE
14744 *nto* | *qnx*)
14745 ld_shlibs_CXX=yes
14746 ;;
ee9dd372 14747
1cf3d07d
SE
14748 openbsd2*)
14749 # C++ shared libraries are fairly broken
14750 ld_shlibs_CXX=no
14751 ;;
ed698112 14752
1cf3d07d 14753 openbsd*)
0da7a284
PG
14754 if test -f /usr/libexec/ld.so; then
14755 hardcode_direct_CXX=yes
14756 hardcode_shlibpath_var_CXX=no
14757 hardcode_direct_absolute_CXX=yes
14758 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14759 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14760 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14761 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14762 export_dynamic_flag_spec_CXX='${wl}-E'
14763 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14764 fi
43e02a8a 14765 output_verbose_link_cmd=func_echo_all
0da7a284
PG
14766 else
14767 ld_shlibs_CXX=no
1cf3d07d 14768 fi
1cf3d07d 14769 ;;
ed698112 14770
1cf3d07d
SE
14771 osf3* | osf4* | osf5*)
14772 case $cc_basename in
14773 KCC*)
14774 # Kuck and Associates, Inc. (KAI) C++ Compiler
5aac1dac 14775
1cf3d07d
SE
14776 # KCC will only create a shared library if the output file
14777 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14778 # to its proper name (with version) after linking.
14779 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 14780
1cf3d07d
SE
14781 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14782 hardcode_libdir_separator_CXX=:
ee9dd372 14783
1cf3d07d
SE
14784 # Archives containing C++ object files must be created using
14785 # the KAI C++ compiler.
14786 case $host in
14787 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14788 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14789 esac
14790 ;;
14791 RCC*)
14792 # Rational C++ 2.4.1
14793 # FIXME: insert proper C++ library support
14794 ld_shlibs_CXX=no
14795 ;;
14796 cxx*)
14797 case $host in
14798 osf3*)
14799 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 14800 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
14801 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14802 ;;
14803 *)
14804 allow_undefined_flag_CXX=' -expect_unresolved \*'
43e02a8a 14805 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
14806 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14807 echo "-hidden">> $lib.exp~
43e02a8a 14808 $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
14809 $RM $lib.exp'
14810 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14811 ;;
14812 esac
ee9dd372 14813
1cf3d07d
SE
14814 hardcode_libdir_separator_CXX=:
14815
14816 # Commands to make compiler produce verbose output that lists
14817 # what "hidden" libraries, object files and flags are used when
14818 # linking a shared library.
14819 #
14820 # There doesn't appear to be a way to prevent this compiler from
14821 # explicitly linking system object files so we need to strip them
14822 # from the output so that they don't get included in the library
14823 # dependencies.
43e02a8a 14824 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
14825 ;;
14826 *)
14827 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14828 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14829 case $host in
14830 osf3*)
43e02a8a 14831 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
14832 ;;
14833 *)
43e02a8a 14834 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
14835 ;;
14836 esac
14837
14838 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14839 hardcode_libdir_separator_CXX=:
14840
14841 # Commands to make compiler produce verbose output that lists
14842 # what "hidden" libraries, object files and flags are used when
14843 # linking a shared library.
43e02a8a 14844 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
1cf3d07d
SE
14845
14846 else
14847 # FIXME: insert proper C++ library support
14848 ld_shlibs_CXX=no
14849 fi
14850 ;;
14851 esac
14852 ;;
ed698112 14853
1cf3d07d
SE
14854 psos*)
14855 # FIXME: insert proper C++ library support
14856 ld_shlibs_CXX=no
14857 ;;
ed698112 14858
1cf3d07d
SE
14859 sunos4*)
14860 case $cc_basename in
14861 CC*)
14862 # Sun C++ 4.x
14863 # FIXME: insert proper C++ library support
14864 ld_shlibs_CXX=no
14865 ;;
14866 lcc*)
14867 # Lucid
14868 # FIXME: insert proper C++ library support
14869 ld_shlibs_CXX=no
14870 ;;
14871 *)
14872 # FIXME: insert proper C++ library support
14873 ld_shlibs_CXX=no
14874 ;;
14875 esac
14876 ;;
ed698112 14877
1cf3d07d
SE
14878 solaris*)
14879 case $cc_basename in
14880 CC*)
14881 # Sun C++ 4.2, 5.x and Centerline C++
14882 archive_cmds_need_lc_CXX=yes
14883 no_undefined_flag_CXX=' -zdefs'
14884 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14885 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14886 $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'
14887
14888 hardcode_libdir_flag_spec_CXX='-R$libdir'
14889 hardcode_shlibpath_var_CXX=no
14890 case $host_os in
14891 solaris2.[0-5] | solaris2.[0-5].*) ;;
14892 *)
14893 # The compiler driver will combine and reorder linker options,
14894 # but understands `-z linker_flag'.
14895 # Supported since Solaris 2.6 (maybe 2.5.1?)
14896 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14897 ;;
14898 esac
14899 link_all_deplibs_CXX=yes
ed698112 14900
43e02a8a 14901 output_verbose_link_cmd='func_echo_all'
ee9dd372 14902
1cf3d07d
SE
14903 # Archives containing C++ object files must be created using
14904 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14905 # necessary to make sure instantiated templates are included
14906 # in the archive.
14907 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14908 ;;
14909 gcx*)
14910 # Green Hills C++ Compiler
14911 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
ee9dd372 14912
1cf3d07d
SE
14913 # The C++ compiler must be used to create the archive.
14914 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14915 ;;
14916 *)
14917 # GNU C++ compiler with Solaris linker
14918 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14919 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14920 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14921 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14922 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14923 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14924
14925 # Commands to make compiler produce verbose output that lists
14926 # what "hidden" libraries, object files and flags are used when
14927 # linking a shared library.
43e02a8a 14928 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
1cf3d07d
SE
14929 else
14930 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14931 # platform.
14932 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14933 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14934 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14935
14936 # Commands to make compiler produce verbose output that lists
14937 # what "hidden" libraries, object files and flags are used when
14938 # linking a shared library.
43e02a8a 14939 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
1cf3d07d
SE
14940 fi
14941
14942 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14943 case $host_os in
14944 solaris2.[0-5] | solaris2.[0-5].*) ;;
14945 *)
14946 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14947 ;;
14948 esac
14949 fi
14950 ;;
14951 esac
14952 ;;
ed698112 14953
1cf3d07d
SE
14954 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14955 no_undefined_flag_CXX='${wl}-z,text'
14956 archive_cmds_need_lc_CXX=no
14957 hardcode_shlibpath_var_CXX=no
14958 runpath_var='LD_RUN_PATH'
14959
14960 case $cc_basename in
14961 CC*)
14962 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14963 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14964 ;;
14965 *)
14966 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14967 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14968 ;;
14969 esac
14970 ;;
ee9dd372 14971
1cf3d07d
SE
14972 sysv5* | sco3.2v5* | sco5v6*)
14973 # Note: We can NOT use -z defs as we might desire, because we do not
14974 # link with -lc, and that would cause any symbols used from libc to
14975 # always be unresolved, which means just about no library would
14976 # ever link correctly. If we're not using GNU ld we use -z text
14977 # though, which does catch some bad symbols but isn't as heavy-handed
14978 # as -z defs.
14979 no_undefined_flag_CXX='${wl}-z,text'
14980 allow_undefined_flag_CXX='${wl}-z,nodefs'
14981 archive_cmds_need_lc_CXX=no
14982 hardcode_shlibpath_var_CXX=no
14983 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14984 hardcode_libdir_separator_CXX=':'
14985 link_all_deplibs_CXX=yes
14986 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14987 runpath_var='LD_RUN_PATH'
14988
14989 case $cc_basename in
14990 CC*)
14991 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14992 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
43e02a8a
RW
14993 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14994 '"$old_archive_cmds_CXX"
14995 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14996 '"$reload_cmds_CXX"
1cf3d07d
SE
14997 ;;
14998 *)
14999 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15000 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15001 ;;
15002 esac
15003 ;;
15004
15005 tandem*)
15006 case $cc_basename in
15007 NCC*)
15008 # NonStop-UX NCC 3.20
15009 # FIXME: insert proper C++ library support
15010 ld_shlibs_CXX=no
15011 ;;
15012 *)
15013 # FIXME: insert proper C++ library support
15014 ld_shlibs_CXX=no
15015 ;;
15016 esac
15017 ;;
15018
15019 vxworks*)
15020 # FIXME: insert proper C++ library support
15021 ld_shlibs_CXX=no
15022 ;;
15023
15024 *)
15025 # FIXME: insert proper C++ library support
15026 ld_shlibs_CXX=no
15027 ;;
15028 esac
15029
5213506e
RW
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15031$as_echo "$ld_shlibs_CXX" >&6; }
1cf3d07d
SE
15032 test "$ld_shlibs_CXX" = no && can_build_shared=no
15033
15034 GCC_CXX="$GXX"
15035 LD_CXX="$LD"
15036
15037 ## CAVEAT EMPTOR:
15038 ## There is no encapsulation within the following macros, do not change
15039 ## the running order or otherwise move them around unless you know exactly
15040 ## what you are doing...
15041 # Dependencies to place before and after the object being linked:
15042predep_objects_CXX=
15043postdep_objects_CXX=
15044predeps_CXX=
15045postdeps_CXX=
15046compiler_lib_search_path_CXX=
15047
15048cat > conftest.$ac_ext <<_LT_EOF
15049class Foo
ed698112 15050{
1cf3d07d
SE
15051public:
15052 Foo (void) { a = 0; }
15053private:
15054 int a;
15055};
15056_LT_EOF
15057
5213506e 15058if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d 15059 (eval $ac_compile) 2>&5
ed698112 15060 ac_status=$?
5213506e
RW
15061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15062 test $ac_status = 0; }; then
1cf3d07d
SE
15063 # Parse the compiler output and extract the necessary
15064 # objects, libraries and library flags.
15065
15066 # Sentinel used to keep track of whether or not we are before
15067 # the conftest object file.
15068 pre_test_object_deps_done=no
15069
0da7a284 15070 for p in `eval "$output_verbose_link_cmd"`; do
1cf3d07d
SE
15071 case $p in
15072
15073 -L* | -R* | -l*)
15074 # Some compilers place space between "-{L,R}" and the path.
15075 # Remove the space.
15076 if test $p = "-L" ||
15077 test $p = "-R"; then
15078 prev=$p
15079 continue
15080 else
15081 prev=
15082 fi
15083
15084 if test "$pre_test_object_deps_done" = no; then
15085 case $p in
15086 -L* | -R*)
15087 # Internal compiler library paths should come after those
15088 # provided the user. The postdeps already come after the
15089 # user supplied libs so there is no need to process them.
15090 if test -z "$compiler_lib_search_path_CXX"; then
15091 compiler_lib_search_path_CXX="${prev}${p}"
15092 else
15093 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15094 fi
15095 ;;
15096 # The "-l" case would never come before the object being
15097 # linked, so don't bother handling this case.
15098 esac
15099 else
15100 if test -z "$postdeps_CXX"; then
15101 postdeps_CXX="${prev}${p}"
15102 else
15103 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15104 fi
15105 fi
15106 ;;
ed698112 15107
1cf3d07d
SE
15108 *.$objext)
15109 # This assumes that the test object file only shows up
15110 # once in the compiler output.
15111 if test "$p" = "conftest.$objext"; then
15112 pre_test_object_deps_done=yes
15113 continue
15114 fi
15115
15116 if test "$pre_test_object_deps_done" = no; then
15117 if test -z "$predep_objects_CXX"; then
15118 predep_objects_CXX="$p"
15119 else
15120 predep_objects_CXX="$predep_objects_CXX $p"
15121 fi
15122 else
15123 if test -z "$postdep_objects_CXX"; then
15124 postdep_objects_CXX="$p"
15125 else
15126 postdep_objects_CXX="$postdep_objects_CXX $p"
15127 fi
15128 fi
15129 ;;
ed698112 15130
1cf3d07d 15131 *) ;; # Ignore the rest.
ed698112 15132
1cf3d07d
SE
15133 esac
15134 done
ee9dd372 15135
1cf3d07d
SE
15136 # Clean up.
15137 rm -f a.out a.exe
15138else
15139 echo "libtool.m4: error: problem compiling CXX test program"
15140fi
ed698112 15141
1cf3d07d 15142$RM -f confest.$objext
ed698112 15143
1cf3d07d
SE
15144# PORTME: override above test on systems where it is broken
15145case $host_os in
15146interix[3-9]*)
15147 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15148 # hack all around it, let's just trust "g++" to DTRT.
15149 predep_objects_CXX=
15150 postdep_objects_CXX=
15151 postdeps_CXX=
15152 ;;
8107bcf9 15153
1cf3d07d
SE
15154linux*)
15155 case `$CC -V 2>&1 | sed 5q` in
15156 *Sun\ C*)
15157 # Sun C++ 5.9
15158
15159 # The more standards-conforming stlport4 library is
15160 # incompatible with the Cstd library. Avoid specifying
15161 # it if it's in CXXFLAGS. Ignore libCrun as
15162 # -library=stlport4 depends on it.
15163 case " $CXX $CXXFLAGS " in
15164 *" -library=stlport4 "*)
15165 solaris_use_stlport4=yes
15166 ;;
15167 esac
5aac1dac 15168
1cf3d07d
SE
15169 if test "$solaris_use_stlport4" != yes; then
15170 postdeps_CXX='-library=Cstd -library=Crun'
15171 fi
15172 ;;
15173 esac
15174 ;;
8107bcf9 15175
1cf3d07d
SE
15176solaris*)
15177 case $cc_basename in
15178 CC*)
15179 # The more standards-conforming stlport4 library is
15180 # incompatible with the Cstd library. Avoid specifying
15181 # it if it's in CXXFLAGS. Ignore libCrun as
15182 # -library=stlport4 depends on it.
15183 case " $CXX $CXXFLAGS " in
15184 *" -library=stlport4 "*)
15185 solaris_use_stlport4=yes
15186 ;;
15187 esac
8107bcf9 15188
1cf3d07d
SE
15189 # Adding this requires a known-good setup of shared libraries for
15190 # Sun compiler versions before 5.6, else PIC objects from an old
15191 # archive will be linked into the output, leading to subtle bugs.
15192 if test "$solaris_use_stlport4" != yes; then
15193 postdeps_CXX='-library=Cstd -library=Crun'
15194 fi
15195 ;;
15196 esac
15197 ;;
15198esac
f994389b 15199
ed698112 15200
1cf3d07d
SE
15201case " $postdeps_CXX " in
15202*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15203esac
0da7a284
PG
15204 compiler_lib_search_dirs_CXX=
15205if test -n "${compiler_lib_search_path_CXX}"; then
15206 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15207fi
15208
15209
15210
15211
15212
ed698112 15213
ed698112 15214
f994389b 15215
f994389b 15216
f994389b 15217
ed698112 15218
ed698112
NN
15219
15220
ed698112 15221
ed698112 15222
ed698112
NN
15223
15224
5aac1dac 15225
f994389b 15226
6b3517ea
RO
15227
15228
ed698112 15229
ed698112 15230
6b3517ea 15231
6b3517ea 15232
ed698112 15233
6b3517ea 15234
ed698112 15235
ed698112 15236
ed698112 15237
ed698112 15238
1cf3d07d
SE
15239 lt_prog_compiler_wl_CXX=
15240lt_prog_compiler_pic_CXX=
15241lt_prog_compiler_static_CXX=
ed698112 15242
5213506e
RW
15243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15244$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6b3517ea 15245
1cf3d07d
SE
15246 # C++ specific cases for pic, static, wl, etc.
15247 if test "$GXX" = yes; then
15248 lt_prog_compiler_wl_CXX='-Wl,'
15249 lt_prog_compiler_static_CXX='-static'
6b3517ea 15250
1cf3d07d
SE
15251 case $host_os in
15252 aix*)
15253 # All AIX code is PIC.
15254 if test "$host_cpu" = ia64; then
15255 # AIX 5 now supports IA64 processor
15256 lt_prog_compiler_static_CXX='-Bstatic'
15257 fi
15258 ;;
0da7a284 15259
1cf3d07d 15260 amigaos*)
0da7a284
PG
15261 case $host_cpu in
15262 powerpc)
15263 # see comment about AmigaOS4 .so support
15264 lt_prog_compiler_pic_CXX='-fPIC'
15265 ;;
15266 m68k)
15267 # FIXME: we need at least 68020 code to build shared libraries, but
15268 # adding the `-m68020' flag to GCC prevents building anything better,
15269 # like `-m68040'.
15270 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15271 ;;
15272 esac
1cf3d07d 15273 ;;
0da7a284 15274
1cf3d07d
SE
15275 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15276 # PIC is the default for these OSes.
15277 ;;
0da7a284 15278 mingw* | cygwin* | os2* | pw32* | cegcc*)
1cf3d07d
SE
15279 # This hack is so that the source file can tell whether it is being
15280 # built for inclusion in a dll (and should export symbols for example).
15281 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15282 # (--disable-auto-import) libraries
15283 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15284 ;;
15285 darwin* | rhapsody*)
15286 # PIC is the default on this platform
15287 # Common symbols not allowed in MH_DYLIB files
15288 lt_prog_compiler_pic_CXX='-fno-common'
15289 ;;
15290 *djgpp*)
15291 # DJGPP does not support shared libraries at all
15292 lt_prog_compiler_pic_CXX=
15293 ;;
43e02a8a
RW
15294 haiku*)
15295 # PIC is the default for Haiku.
15296 # The "-static" flag exists, but is broken.
15297 lt_prog_compiler_static_CXX=
15298 ;;
1cf3d07d
SE
15299 interix[3-9]*)
15300 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15301 # Instead, we relocate shared libraries at runtime.
15302 ;;
15303 sysv4*MP*)
15304 if test -d /usr/nec; then
15305 lt_prog_compiler_pic_CXX=-Kconform_pic
15306 fi
15307 ;;
15308 hpux*)
0da7a284
PG
15309 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15310 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15311 # sets the default TLS model and affects inlining.
1cf3d07d 15312 case $host_cpu in
0da7a284 15313 hppa*64*)
1cf3d07d
SE
15314 ;;
15315 *)
15316 lt_prog_compiler_pic_CXX='-fPIC'
15317 ;;
15318 esac
15319 ;;
15320 *qnx* | *nto*)
15321 # QNX uses GNU C++, but need to define -shared option too, otherwise
15322 # it will coredump.
15323 lt_prog_compiler_pic_CXX='-fPIC -shared'
15324 ;;
15325 *)
15326 lt_prog_compiler_pic_CXX='-fPIC'
15327 ;;
15328 esac
15329 else
15330 case $host_os in
ed44a2c7 15331 aix[4-9]*)
1cf3d07d
SE
15332 # All AIX code is PIC.
15333 if test "$host_cpu" = ia64; then
15334 # AIX 5 now supports IA64 processor
15335 lt_prog_compiler_static_CXX='-Bstatic'
15336 else
15337 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15338 fi
15339 ;;
15340 chorus*)
15341 case $cc_basename in
15342 cxch68*)
15343 # Green Hills C++ Compiler
15344 # _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"
15345 ;;
15346 esac
15347 ;;
1cf3d07d
SE
15348 dgux*)
15349 case $cc_basename in
15350 ec++*)
15351 lt_prog_compiler_pic_CXX='-KPIC'
15352 ;;
15353 ghcx*)
15354 # Green Hills C++ Compiler
15355 lt_prog_compiler_pic_CXX='-pic'
15356 ;;
15357 *)
15358 ;;
15359 esac
15360 ;;
15361 freebsd* | dragonfly*)
15362 # FreeBSD uses GNU C++
15363 ;;
15364 hpux9* | hpux10* | hpux11*)
15365 case $cc_basename in
15366 CC*)
15367 lt_prog_compiler_wl_CXX='-Wl,'
15368 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15369 if test "$host_cpu" != ia64; then
15370 lt_prog_compiler_pic_CXX='+Z'
15371 fi
15372 ;;
15373 aCC*)
15374 lt_prog_compiler_wl_CXX='-Wl,'
15375 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15376 case $host_cpu in
15377 hppa*64*|ia64*)
15378 # +Z the default
15379 ;;
15380 *)
15381 lt_prog_compiler_pic_CXX='+Z'
15382 ;;
15383 esac
15384 ;;
15385 *)
15386 ;;
15387 esac
15388 ;;
15389 interix*)
15390 # This is c89, which is MS Visual C++ (no shared libs)
15391 # Anyone wants to do a port?
15392 ;;
15393 irix5* | irix6* | nonstopux*)
15394 case $cc_basename in
15395 CC*)
15396 lt_prog_compiler_wl_CXX='-Wl,'
15397 lt_prog_compiler_static_CXX='-non_shared'
15398 # CC pic flag -KPIC is the default.
15399 ;;
15400 *)
15401 ;;
15402 esac
15403 ;;
7a9d3fe8 15404 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
15405 case $cc_basename in
15406 KCC*)
15407 # KAI C++ Compiler
15408 lt_prog_compiler_wl_CXX='--backend -Wl,'
15409 lt_prog_compiler_pic_CXX='-fPIC'
15410 ;;
0da7a284
PG
15411 ecpc* )
15412 # old Intel C++ for x86_64 which still supported -KPIC.
1cf3d07d
SE
15413 lt_prog_compiler_wl_CXX='-Wl,'
15414 lt_prog_compiler_pic_CXX='-KPIC'
15415 lt_prog_compiler_static_CXX='-static'
15416 ;;
0da7a284
PG
15417 icpc* )
15418 # Intel C++, used to be incompatible with GCC.
15419 # ICC 10 doesn't accept -KPIC any more.
15420 lt_prog_compiler_wl_CXX='-Wl,'
15421 lt_prog_compiler_pic_CXX='-fPIC'
15422 lt_prog_compiler_static_CXX='-static'
15423 ;;
15424 pgCC* | pgcpp*)
1cf3d07d
SE
15425 # Portland Group C++ compiler
15426 lt_prog_compiler_wl_CXX='-Wl,'
15427 lt_prog_compiler_pic_CXX='-fpic'
15428 lt_prog_compiler_static_CXX='-Bstatic'
15429 ;;
15430 cxx*)
15431 # Compaq C++
15432 # Make sure the PIC flag is empty. It appears that all Alpha
15433 # Linux and Compaq Tru64 Unix objects are PIC.
15434 lt_prog_compiler_pic_CXX=
15435 lt_prog_compiler_static_CXX='-non_shared'
15436 ;;
43e02a8a
RW
15437 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15438 # IBM XL 8.0, 9.0 on PPC and BlueGene
0da7a284
PG
15439 lt_prog_compiler_wl_CXX='-Wl,'
15440 lt_prog_compiler_pic_CXX='-qpic'
15441 lt_prog_compiler_static_CXX='-qstaticlink'
15442 ;;
1cf3d07d
SE
15443 *)
15444 case `$CC -V 2>&1 | sed 5q` in
15445 *Sun\ C*)
15446 # Sun C++ 5.9
15447 lt_prog_compiler_pic_CXX='-KPIC'
15448 lt_prog_compiler_static_CXX='-Bstatic'
15449 lt_prog_compiler_wl_CXX='-Qoption ld '
15450 ;;
15451 esac
15452 ;;
15453 esac
15454 ;;
15455 lynxos*)
15456 ;;
15457 m88k*)
15458 ;;
15459 mvs*)
15460 case $cc_basename in
15461 cxx*)
15462 lt_prog_compiler_pic_CXX='-W c,exportall'
15463 ;;
15464 *)
15465 ;;
15466 esac
15467 ;;
15468 netbsd*)
15469 ;;
15470 *qnx* | *nto*)
15471 # QNX uses GNU C++, but need to define -shared option too, otherwise
15472 # it will coredump.
15473 lt_prog_compiler_pic_CXX='-fPIC -shared'
15474 ;;
15475 osf3* | osf4* | osf5*)
15476 case $cc_basename in
15477 KCC*)
15478 lt_prog_compiler_wl_CXX='--backend -Wl,'
15479 ;;
15480 RCC*)
15481 # Rational C++ 2.4.1
15482 lt_prog_compiler_pic_CXX='-pic'
15483 ;;
15484 cxx*)
15485 # Digital/Compaq C++
15486 lt_prog_compiler_wl_CXX='-Wl,'
15487 # Make sure the PIC flag is empty. It appears that all Alpha
15488 # Linux and Compaq Tru64 Unix objects are PIC.
15489 lt_prog_compiler_pic_CXX=
15490 lt_prog_compiler_static_CXX='-non_shared'
15491 ;;
15492 *)
15493 ;;
15494 esac
15495 ;;
15496 psos*)
15497 ;;
15498 solaris*)
15499 case $cc_basename in
15500 CC*)
15501 # Sun C++ 4.2, 5.x and Centerline C++
15502 lt_prog_compiler_pic_CXX='-KPIC'
15503 lt_prog_compiler_static_CXX='-Bstatic'
15504 lt_prog_compiler_wl_CXX='-Qoption ld '
15505 ;;
15506 gcx*)
15507 # Green Hills C++ Compiler
15508 lt_prog_compiler_pic_CXX='-PIC'
15509 ;;
15510 *)
15511 ;;
15512 esac
15513 ;;
15514 sunos4*)
15515 case $cc_basename in
15516 CC*)
15517 # Sun C++ 4.x
15518 lt_prog_compiler_pic_CXX='-pic'
15519 lt_prog_compiler_static_CXX='-Bstatic'
15520 ;;
15521 lcc*)
15522 # Lucid
15523 lt_prog_compiler_pic_CXX='-pic'
15524 ;;
15525 *)
15526 ;;
15527 esac
15528 ;;
15529 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15530 case $cc_basename in
15531 CC*)
15532 lt_prog_compiler_wl_CXX='-Wl,'
15533 lt_prog_compiler_pic_CXX='-KPIC'
15534 lt_prog_compiler_static_CXX='-Bstatic'
15535 ;;
15536 esac
15537 ;;
15538 tandem*)
15539 case $cc_basename in
15540 NCC*)
15541 # NonStop-UX NCC 3.20
15542 lt_prog_compiler_pic_CXX='-KPIC'
15543 ;;
15544 *)
15545 ;;
15546 esac
15547 ;;
15548 vxworks*)
15549 ;;
15550 *)
15551 lt_prog_compiler_can_build_shared_CXX=no
15552 ;;
15553 esac
15554 fi
f994389b 15555
1cf3d07d
SE
15556case $host_os in
15557 # For platforms which do not support PIC, -DPIC is meaningless:
15558 *djgpp*)
15559 lt_prog_compiler_pic_CXX=
15560 ;;
15561 *)
15562 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15563 ;;
15564esac
5213506e
RW
15565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15566$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
5aac1dac 15567
5aac1dac 15568
ed698112 15569
1cf3d07d
SE
15570#
15571# Check to make sure the PIC flag actually works.
15572#
15573if test -n "$lt_prog_compiler_pic_CXX"; then
5213506e
RW
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15575$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15576if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15577 $as_echo_n "(cached) " >&6
ed698112 15578else
0da7a284 15579 lt_cv_prog_compiler_pic_works_CXX=no
1cf3d07d
SE
15580 ac_outfile=conftest.$ac_objext
15581 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15582 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15583 # Insert the option either (1) after the last *FLAGS variable, or
15584 # (2) before a word containing "conftest.", or (3) at the end.
15585 # Note that $ac_compile itself does not contain backslashes and begins
15586 # with a dollar sign (not a hyphen), so the echo should work correctly.
15587 # The option is referenced via a variable to avoid confusing sed.
15588 lt_compile=`echo "$ac_compile" | $SED \
15589 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15590 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15591 -e 's:$: $lt_compiler_flag:'`
43e02a8a 15592 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
15593 (eval "$lt_compile" 2>conftest.err)
15594 ac_status=$?
15595 cat conftest.err >&5
43e02a8a 15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
15597 if (exit $ac_status) && test -s "$ac_outfile"; then
15598 # The compiler can only warn and ignore the option if not recognized
15599 # So say no if there are warnings other than the usual output.
43e02a8a 15600 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
15601 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15602 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
0da7a284 15603 lt_cv_prog_compiler_pic_works_CXX=yes
1cf3d07d
SE
15604 fi
15605 fi
15606 $RM conftest*
15607
ed698112 15608fi
5213506e
RW
15609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15610$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
ed698112 15611
0da7a284 15612if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
1cf3d07d
SE
15613 case $lt_prog_compiler_pic_CXX in
15614 "" | " "*) ;;
15615 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15616 esac
15617else
15618 lt_prog_compiler_pic_CXX=
15619 lt_prog_compiler_can_build_shared_CXX=no
15620fi
ed698112 15621
1cf3d07d 15622fi
f994389b 15623
f994389b 15624
f994389b 15625
1cf3d07d
SE
15626#
15627# Check to make sure the static flag actually works.
15628#
15629wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
5213506e
RW
15630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15631$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15632if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15633 $as_echo_n "(cached) " >&6
ed698112 15634else
0da7a284 15635 lt_cv_prog_compiler_static_works_CXX=no
1cf3d07d
SE
15636 save_LDFLAGS="$LDFLAGS"
15637 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15638 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15639 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15640 # The linker can only warn and ignore the option if not recognized
15641 # So say no if there are warnings
15642 if test -s conftest.err; then
15643 # Append any errors to the config.log.
15644 cat conftest.err 1>&5
43e02a8a 15645 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1cf3d07d
SE
15646 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15647 if diff conftest.exp conftest.er2 >/dev/null; then
0da7a284 15648 lt_cv_prog_compiler_static_works_CXX=yes
1cf3d07d
SE
15649 fi
15650 else
0da7a284 15651 lt_cv_prog_compiler_static_works_CXX=yes
1cf3d07d
SE
15652 fi
15653 fi
0da7a284 15654 $RM -r conftest*
1cf3d07d 15655 LDFLAGS="$save_LDFLAGS"
ed698112 15656
ed698112 15657fi
5213506e
RW
15658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15659$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1cf3d07d 15660
0da7a284 15661if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
1cf3d07d
SE
15662 :
15663else
15664 lt_prog_compiler_static_CXX=
ed698112 15665fi
ed698112 15666
1cf3d07d
SE
15667
15668
15669
5213506e
RW
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15671$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15672if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15673 $as_echo_n "(cached) " >&6
ed698112 15674else
1cf3d07d
SE
15675 lt_cv_prog_compiler_c_o_CXX=no
15676 $RM -r conftest 2>/dev/null
15677 mkdir conftest
15678 cd conftest
15679 mkdir out
15680 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15681
15682 lt_compiler_flag="-o out/conftest2.$ac_objext"
15683 # Insert the option either (1) after the last *FLAGS variable, or
15684 # (2) before a word containing "conftest.", or (3) at the end.
15685 # Note that $ac_compile itself does not contain backslashes and begins
15686 # with a dollar sign (not a hyphen), so the echo should work correctly.
15687 lt_compile=`echo "$ac_compile" | $SED \
15688 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15689 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15690 -e 's:$: $lt_compiler_flag:'`
43e02a8a 15691 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
15692 (eval "$lt_compile" 2>out/conftest.err)
15693 ac_status=$?
15694 cat out/conftest.err >&5
43e02a8a 15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
15696 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15697 then
15698 # The compiler can only warn and ignore the option if not recognized
15699 # So say no if there are warnings
43e02a8a 15700 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
15701 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15702 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15703 lt_cv_prog_compiler_c_o_CXX=yes
15704 fi
15705 fi
15706 chmod u+w . 2>&5
15707 $RM conftest*
15708 # SGI C++ compiler will create directory out/ii_files/ for
15709 # template instantiation
15710 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15711 $RM out/* && rmdir out
15712 cd ..
15713 $RM -r conftest
15714 $RM conftest*
ed698112 15715
1cf3d07d 15716fi
5213506e
RW
15717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15718$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1cf3d07d
SE
15719
15720
15721
5213506e
RW
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15723$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15724if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15725 $as_echo_n "(cached) " >&6
ed698112 15726else
1cf3d07d
SE
15727 lt_cv_prog_compiler_c_o_CXX=no
15728 $RM -r conftest 2>/dev/null
15729 mkdir conftest
15730 cd conftest
15731 mkdir out
15732 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15733
15734 lt_compiler_flag="-o out/conftest2.$ac_objext"
15735 # Insert the option either (1) after the last *FLAGS variable, or
15736 # (2) before a word containing "conftest.", or (3) at the end.
15737 # Note that $ac_compile itself does not contain backslashes and begins
15738 # with a dollar sign (not a hyphen), so the echo should work correctly.
15739 lt_compile=`echo "$ac_compile" | $SED \
15740 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15741 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15742 -e 's:$: $lt_compiler_flag:'`
43e02a8a 15743 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
15744 (eval "$lt_compile" 2>out/conftest.err)
15745 ac_status=$?
15746 cat out/conftest.err >&5
43e02a8a 15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
15748 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15749 then
15750 # The compiler can only warn and ignore the option if not recognized
15751 # So say no if there are warnings
43e02a8a 15752 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
15753 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15754 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15755 lt_cv_prog_compiler_c_o_CXX=yes
15756 fi
15757 fi
15758 chmod u+w . 2>&5
15759 $RM conftest*
15760 # SGI C++ compiler will create directory out/ii_files/ for
15761 # template instantiation
15762 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15763 $RM out/* && rmdir out
15764 cd ..
15765 $RM -r conftest
15766 $RM conftest*
15767
15768fi
5213506e
RW
15769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15770$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1cf3d07d
SE
15771
15772
15773
15774
15775hard_links="nottested"
15776if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15777 # do not overwrite the value of need_locks provided by the user
5213506e
RW
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15779$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
15780 hard_links=yes
15781 $RM conftest*
15782 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15783 touch conftest.a
15784 ln conftest.a conftest.b 2>&5 || hard_links=no
15785 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15787$as_echo "$hard_links" >&6; }
1cf3d07d 15788 if test "$hard_links" = no; then
5213506e
RW
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15790$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
15791 need_locks=warn
15792 fi
15793else
15794 need_locks=no
ed698112 15795fi
ed698112 15796
ed698112 15797
ed698112 15798
5213506e
RW
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15800$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
5aac1dac 15801
1cf3d07d
SE
15802 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15803 case $host_os in
ed44a2c7 15804 aix[4-9]*)
1cf3d07d
SE
15805 # If we're using GNU nm, then we don't want the "-C" option.
15806 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
15807 # Also, AIX nm treats weak defined symbols like other global defined
15808 # symbols, whereas GNU nm marks them as "W".
1cf3d07d 15809 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 15810 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
15811 else
15812 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'
15813 fi
15814 ;;
15815 pw32*)
15816 export_symbols_cmds_CXX="$ltdll_cmds"
15817 ;;
0da7a284 15818 cygwin* | mingw* | cegcc*)
1cf3d07d
SE
15819 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'
15820 ;;
15821 *)
15822 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15823 ;;
15824 esac
0da7a284 15825 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
f994389b 15826
5213506e
RW
15827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15828$as_echo "$ld_shlibs_CXX" >&6; }
1cf3d07d 15829test "$ld_shlibs_CXX" = no && can_build_shared=no
ed698112 15830
1cf3d07d
SE
15831with_gnu_ld_CXX=$with_gnu_ld
15832
15833
15834
15835
15836
15837
15838#
15839# Do we need to explicitly link libc?
15840#
15841case "x$archive_cmds_need_lc_CXX" in
15842x|xyes)
15843 # Assume -lc should be added
15844 archive_cmds_need_lc_CXX=yes
15845
15846 if test "$enable_shared" = yes && test "$GCC" = yes; then
15847 case $archive_cmds_CXX in
15848 *'~'*)
15849 # FIXME: we may have to deal with multi-command sequences.
15850 ;;
15851 '$CC '*)
15852 # Test whether the compiler implicitly links with -lc since on some
15853 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15854 # to ld, don't add -lc before -lgcc.
5213506e
RW
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15856$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15857if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15858 $as_echo_n "(cached) " >&6
baafc534
RW
15859else
15860 $RM conftest*
15861 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 15862
5213506e 15863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d 15864 (eval $ac_compile) 2>&5
ed698112 15865 ac_status=$?
5213506e
RW
15866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15867 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
15868 soname=conftest
15869 lib=conftest
15870 libobjs=conftest.$ac_objext
15871 deplibs=
15872 wl=$lt_prog_compiler_wl_CXX
15873 pic_flag=$lt_prog_compiler_pic_CXX
15874 compiler_flags=-v
15875 linker_flags=-v
15876 verstring=
15877 output_objdir=.
15878 libname=conftest
15879 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15880 allow_undefined_flag_CXX=
5213506e 15881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d 15882 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
ed698112 15883 ac_status=$?
5213506e
RW
15884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15885 test $ac_status = 0; }
baafc534
RW
15886 then
15887 lt_cv_archive_cmds_need_lc_CXX=no
15888 else
15889 lt_cv_archive_cmds_need_lc_CXX=yes
15890 fi
15891 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15892 else
15893 cat conftest.err 1>&5
15894 fi
15895 $RM conftest*
15896
15897fi
5213506e
RW
15898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15899$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
baafc534 15900 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
1cf3d07d
SE
15901 ;;
15902 esac
15903 fi
15904 ;;
15905esac
ed698112 15906
ed698112 15907
5ec89e89 15908
58d2986d 15909
58d2986d 15910
58d2986d 15911
e59a1e40 15912
e59a1e40 15913
e59a1e40 15914
e59a1e40
TT
15915
15916
e59a1e40 15917
e59a1e40
TT
15918
15919
58d2986d 15920
58d2986d 15921
ed698112 15922
ed698112 15923
58d2986d 15924
ed698112
NN
15925
15926
58d2986d 15927
ed698112 15928
ed698112 15929
58d2986d 15930
ed698112 15931
5ec89e89 15932
ed698112
NN
15933
15934
15935
ed698112 15936
ed698112 15937
b5ee195f 15938
5aac1dac 15939
5aac1dac 15940
ed698112 15941
f994389b
TT
15942
15943
ed698112 15944
ed698112 15945
f994389b 15946
ee9dd372 15947
ed698112 15948
ee9dd372 15949
ed698112 15950
ee9dd372 15951
ee9dd372
TT
15952
15953
ed698112 15954
ed698112 15955
ed698112 15956
5aac1dac 15957
ee9dd372
TT
15958
15959
ed698112 15960
dbf45a01 15961
ed698112 15962
ed698112 15963
ed698112
NN
15964
15965
1b5a2139 15966
2a67186a 15967
2a67186a 15968
2a67186a 15969
5213506e
RW
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15971$as_echo_n "checking dynamic linker characteristics... " >&6; }
0da7a284 15972
1cf3d07d
SE
15973library_names_spec=
15974libname_spec='lib$name'
15975soname_spec=
15976shrext_cmds=".so"
15977postinstall_cmds=
15978postuninstall_cmds=
15979finish_cmds=
15980finish_eval=
15981shlibpath_var=
15982shlibpath_overrides_runpath=unknown
15983version_type=none
15984dynamic_linker="$host_os ld.so"
15985sys_lib_dlsearch_path_spec="/lib /usr/lib"
15986need_lib_prefix=unknown
15987hardcode_into_libs=no
2a67186a 15988
1cf3d07d
SE
15989# when you set need_version to no, make sure it does not cause -set_version
15990# flags to be left without arguments
15991need_version=unknown
2a67186a 15992
1cf3d07d
SE
15993case $host_os in
15994aix3*)
15995 version_type=linux
15996 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15997 shlibpath_var=LIBPATH
2a67186a 15998
1cf3d07d
SE
15999 # AIX 3 has no versioning support, so we append a major version to the name.
16000 soname_spec='${libname}${release}${shared_ext}$major'
16001 ;;
2a67186a 16002
ed44a2c7 16003aix[4-9]*)
1cf3d07d
SE
16004 version_type=linux
16005 need_lib_prefix=no
16006 need_version=no
16007 hardcode_into_libs=yes
16008 if test "$host_cpu" = ia64; then
16009 # AIX 5 supports IA64
16010 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16011 shlibpath_var=LD_LIBRARY_PATH
16012 else
16013 # With GCC up to 2.95.x, collect2 would create an import file
16014 # for dependence libraries. The import file would start with
16015 # the line `#! .'. This would cause the generated library to
16016 # depend on `.', always an invalid library. This was fixed in
16017 # development snapshots of GCC prior to 3.0.
16018 case $host_os in
16019 aix4 | aix4.[01] | aix4.[01].*)
16020 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16021 echo ' yes '
16022 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16023 :
16024 else
16025 can_build_shared=no
16026 fi
16027 ;;
16028 esac
16029 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16030 # soname into executable. Probably we can add versioning support to
16031 # collect2, so additional links can be useful in future.
16032 if test "$aix_use_runtimelinking" = yes; then
16033 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16034 # instead of lib<name>.a to let people know that these are not
16035 # typical AIX shared libraries.
16036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16037 else
16038 # We preserve .a as extension for shared libraries through AIX4.2
16039 # and later when we are not doing run time linking.
16040 library_names_spec='${libname}${release}.a $libname.a'
16041 soname_spec='${libname}${release}${shared_ext}$major'
16042 fi
16043 shlibpath_var=LIBPATH
16044 fi
16045 ;;
1b5a2139 16046
1cf3d07d 16047amigaos*)
0da7a284
PG
16048 case $host_cpu in
16049 powerpc)
16050 # Since July 2007 AmigaOS4 officially supports .so libraries.
16051 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16053 ;;
16054 m68k)
1cf3d07d
SE
16055 library_names_spec='$libname.ixlibrary $libname.a'
16056 # Create ${libname}_ixlibrary.a entries in /sys/libs.
43e02a8a 16057 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
16058 ;;
16059 esac
1cf3d07d 16060 ;;
1b5a2139 16061
1cf3d07d
SE
16062beos*)
16063 library_names_spec='${libname}${shared_ext}'
16064 dynamic_linker="$host_os ld.so"
16065 shlibpath_var=LIBRARY_PATH
16066 ;;
1b5a2139 16067
1cf3d07d
SE
16068bsdi[45]*)
16069 version_type=linux
16070 need_version=no
16071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16072 soname_spec='${libname}${release}${shared_ext}$major'
16073 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16074 shlibpath_var=LD_LIBRARY_PATH
16075 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16076 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16077 # the default ld.so.conf also contains /usr/contrib/lib and
16078 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16079 # libtool to hard-code these into programs
16080 ;;
ed698112 16081
0da7a284 16082cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
16083 version_type=windows
16084 shrext_cmds=".dll"
16085 need_version=no
16086 need_lib_prefix=no
ed698112 16087
0da7a284
PG
16088 case $GCC,$host_os in
16089 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
16090 library_names_spec='$libname.dll.a'
16091 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16092 postinstall_cmds='base_file=`basename \${file}`~
16093 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16094 dldir=$destdir/`dirname \$dlpath`~
16095 test -d \$dldir || mkdir -p \$dldir~
16096 $install_prog $dir/$dlname \$dldir/$dlname~
16097 chmod a+x \$dldir/$dlname~
16098 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16099 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16100 fi'
16101 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16102 dlpath=$dir/\$dldll~
16103 $RM \$dlpath'
16104 shlibpath_overrides_runpath=yes
5aac1dac 16105
1cf3d07d
SE
16106 case $host_os in
16107 cygwin*)
16108 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16109 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43e02a8a 16110
1cf3d07d 16111 ;;
0da7a284 16112 mingw* | cegcc*)
1cf3d07d
SE
16113 # MinGW DLLs use traditional 'lib' prefix
16114 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1cf3d07d
SE
16115 ;;
16116 pw32*)
16117 # pw32 DLLs use 'pw' prefix rather than 'lib'
16118 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16119 ;;
16120 esac
16121 ;;
7bee4c4c 16122
1cf3d07d
SE
16123 *)
16124 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16125 ;;
16126 esac
16127 dynamic_linker='Win32 ld.exe'
16128 # FIXME: first we should search . and the directory the executable is in
16129 shlibpath_var=PATH
16130 ;;
5aac1dac 16131
1cf3d07d
SE
16132darwin* | rhapsody*)
16133 dynamic_linker="$host_os dyld"
16134 version_type=darwin
16135 need_lib_prefix=no
16136 need_version=no
16137 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16138 soname_spec='${libname}${release}${major}$shared_ext'
16139 shlibpath_overrides_runpath=yes
16140 shlibpath_var=DYLD_LIBRARY_PATH
16141 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ed698112 16142
1cf3d07d
SE
16143 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16144 ;;
5aac1dac 16145
1cf3d07d
SE
16146dgux*)
16147 version_type=linux
16148 need_lib_prefix=no
16149 need_version=no
16150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16151 soname_spec='${libname}${release}${shared_ext}$major'
16152 shlibpath_var=LD_LIBRARY_PATH
16153 ;;
16154
1cf3d07d
SE
16155freebsd* | dragonfly*)
16156 # DragonFly does not have aout. When/if they implement a new
16157 # versioning mechanism, adjust this.
16158 if test -x /usr/bin/objformat; then
16159 objformat=`/usr/bin/objformat`
16160 else
16161 case $host_os in
16162 freebsd[123]*) objformat=aout ;;
16163 *) objformat=elf ;;
16164 esac
16165 fi
16166 version_type=freebsd-$objformat
16167 case $version_type in
16168 freebsd-elf*)
16169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16170 need_version=no
16171 need_lib_prefix=no
16172 ;;
16173 freebsd-*)
16174 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16175 need_version=yes
16176 ;;
16177 esac
16178 shlibpath_var=LD_LIBRARY_PATH
16179 case $host_os in
16180 freebsd2*)
16181 shlibpath_overrides_runpath=yes
16182 ;;
16183 freebsd3.[01]* | freebsdelf3.[01]*)
16184 shlibpath_overrides_runpath=yes
16185 hardcode_into_libs=yes
16186 ;;
16187 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16188 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16189 shlibpath_overrides_runpath=no
16190 hardcode_into_libs=yes
16191 ;;
16192 *) # from 4.6 on, and DragonFly
16193 shlibpath_overrides_runpath=yes
16194 hardcode_into_libs=yes
16195 ;;
16196 esac
16197 ;;
16198
16199gnu*)
16200 version_type=linux
16201 need_lib_prefix=no
16202 need_version=no
16203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16204 soname_spec='${libname}${release}${shared_ext}$major'
16205 shlibpath_var=LD_LIBRARY_PATH
16206 hardcode_into_libs=yes
16207 ;;
16208
43e02a8a
RW
16209haiku*)
16210 version_type=linux
16211 need_lib_prefix=no
16212 need_version=no
16213 dynamic_linker="$host_os runtime_loader"
16214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16215 soname_spec='${libname}${release}${shared_ext}$major'
16216 shlibpath_var=LIBRARY_PATH
16217 shlibpath_overrides_runpath=yes
16218 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16219 hardcode_into_libs=yes
16220 ;;
16221
1cf3d07d
SE
16222hpux9* | hpux10* | hpux11*)
16223 # Give a soname corresponding to the major version so that dld.sl refuses to
16224 # link against other versions.
16225 version_type=sunos
16226 need_lib_prefix=no
16227 need_version=no
16228 case $host_cpu in
16229 ia64*)
16230 shrext_cmds='.so'
16231 hardcode_into_libs=yes
16232 dynamic_linker="$host_os dld.so"
16233 shlibpath_var=LD_LIBRARY_PATH
16234 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16236 soname_spec='${libname}${release}${shared_ext}$major'
16237 if test "X$HPUX_IA64_MODE" = X32; then
16238 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16239 else
16240 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16241 fi
16242 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16243 ;;
16244 hppa*64*)
16245 shrext_cmds='.sl'
16246 hardcode_into_libs=yes
16247 dynamic_linker="$host_os dld.sl"
16248 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16249 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16251 soname_spec='${libname}${release}${shared_ext}$major'
16252 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16253 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16254 ;;
16255 *)
16256 shrext_cmds='.sl'
16257 dynamic_linker="$host_os dld.sl"
16258 shlibpath_var=SHLIB_PATH
16259 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16261 soname_spec='${libname}${release}${shared_ext}$major'
16262 ;;
16263 esac
43e02a8a 16264 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1cf3d07d 16265 postinstall_cmds='chmod 555 $lib'
43e02a8a
RW
16266 # or fails outright, so override atomically:
16267 install_override_mode=555
1cf3d07d
SE
16268 ;;
16269
16270interix[3-9]*)
16271 version_type=linux
16272 need_lib_prefix=no
16273 need_version=no
16274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16275 soname_spec='${libname}${release}${shared_ext}$major'
16276 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16277 shlibpath_var=LD_LIBRARY_PATH
16278 shlibpath_overrides_runpath=no
16279 hardcode_into_libs=yes
16280 ;;
16281
16282irix5* | irix6* | nonstopux*)
16283 case $host_os in
16284 nonstopux*) version_type=nonstopux ;;
16285 *)
16286 if test "$lt_cv_prog_gnu_ld" = yes; then
16287 version_type=linux
16288 else
16289 version_type=irix
16290 fi ;;
16291 esac
16292 need_lib_prefix=no
16293 need_version=no
16294 soname_spec='${libname}${release}${shared_ext}$major'
16295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16296 case $host_os in
16297 irix5* | nonstopux*)
16298 libsuff= shlibsuff=
16299 ;;
16300 *)
16301 case $LD in # libtool.m4 will add one of these switches to LD
16302 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16303 libsuff= shlibsuff= libmagic=32-bit;;
16304 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16305 libsuff=32 shlibsuff=N32 libmagic=N32;;
16306 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16307 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16308 *) libsuff= shlibsuff= libmagic=never-match;;
16309 esac
16310 ;;
16311 esac
16312 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16313 shlibpath_overrides_runpath=no
16314 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16315 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16316 hardcode_into_libs=yes
16317 ;;
16318
16319# No shared lib support for Linux oldld, aout, or coff.
16320linux*oldld* | linux*aout* | linux*coff*)
16321 dynamic_linker=no
16322 ;;
16323
16324# This must be Linux ELF.
7a9d3fe8 16325linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
16326 version_type=linux
16327 need_lib_prefix=no
16328 need_version=no
16329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16330 soname_spec='${libname}${release}${shared_ext}$major'
16331 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16332 shlibpath_var=LD_LIBRARY_PATH
16333 shlibpath_overrides_runpath=no
baafc534 16334
1cf3d07d 16335 # Some binutils ld are patched to set DT_RUNPATH
5213506e
RW
16336 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16337 $as_echo_n "(cached) " >&6
baafc534
RW
16338else
16339 lt_cv_shlibpath_overrides_runpath=no
16340 save_LDFLAGS=$LDFLAGS
16341 save_libdir=$libdir
16342 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16343 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16344 if test x$gcc_no_link = xyes; then
5213506e 16345 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ee9dd372 16346fi
5213506e 16347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ed698112 16348/* end confdefs.h. */
5aac1dac 16349
ed698112
NN
16350int
16351main ()
16352{
1cf3d07d 16353
ed698112
NN
16354 ;
16355 return 0;
16356}
16357_ACEOF
5213506e
RW
16358if ac_fn_cxx_try_link "$LINENO"; then :
16359 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 16360 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d 16361fi
ed698112 16362fi
5213506e
RW
16363rm -f core conftest.err conftest.$ac_objext \
16364 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
16365 LDFLAGS=$save_LDFLAGS
16366 libdir=$save_libdir
16367
16368fi
16369
16370 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
ed698112 16371
1cf3d07d
SE
16372 # This implies no fast_install, which is unacceptable.
16373 # Some rework will be needed to allow for fast_install
16374 # before this can be enabled.
16375 hardcode_into_libs=yes
5aac1dac 16376
1cf3d07d
SE
16377 # Append ld.so.conf contents to the search path
16378 if test -f /etc/ld.so.conf; then
43e02a8a 16379 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
16380 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16381 fi
5aac1dac 16382
1cf3d07d
SE
16383 # We used to test for /lib/ld.so.1 and disable shared libraries on
16384 # powerpc, because MkLinux only supported shared libraries with the
16385 # GNU dynamic linker. Since this was broken with cross compilers,
16386 # most powerpc-linux boxes support dynamic linking these days and
16387 # people can always --disable-shared, the test was removed, and we
16388 # assume the GNU/Linux dynamic linker is in use.
16389 dynamic_linker='GNU/Linux ld.so'
16390 ;;
ed698112 16391
1cf3d07d
SE
16392netbsd*)
16393 version_type=sunos
16394 need_lib_prefix=no
16395 need_version=no
16396 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16398 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16399 dynamic_linker='NetBSD (a.out) ld.so'
16400 else
16401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16402 soname_spec='${libname}${release}${shared_ext}$major'
16403 dynamic_linker='NetBSD ld.elf_so'
16404 fi
16405 shlibpath_var=LD_LIBRARY_PATH
16406 shlibpath_overrides_runpath=yes
16407 hardcode_into_libs=yes
16408 ;;
5aac1dac 16409
1cf3d07d
SE
16410newsos6)
16411 version_type=linux
16412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16413 shlibpath_var=LD_LIBRARY_PATH
16414 shlibpath_overrides_runpath=yes
16415 ;;
ed698112 16416
1cf3d07d
SE
16417*nto* | *qnx*)
16418 version_type=qnx
16419 need_lib_prefix=no
16420 need_version=no
16421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16422 soname_spec='${libname}${release}${shared_ext}$major'
16423 shlibpath_var=LD_LIBRARY_PATH
16424 shlibpath_overrides_runpath=no
16425 hardcode_into_libs=yes
16426 dynamic_linker='ldqnx.so'
16427 ;;
04942eac 16428
1cf3d07d
SE
16429openbsd*)
16430 version_type=sunos
16431 sys_lib_dlsearch_path_spec="/usr/lib"
16432 need_lib_prefix=no
16433 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16434 case $host_os in
16435 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16436 *) need_version=no ;;
16437 esac
16438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16439 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16440 shlibpath_var=LD_LIBRARY_PATH
16441 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16442 case $host_os in
16443 openbsd2.[89] | openbsd2.[89].*)
16444 shlibpath_overrides_runpath=no
16445 ;;
16446 *)
16447 shlibpath_overrides_runpath=yes
16448 ;;
16449 esac
16450 else
16451 shlibpath_overrides_runpath=yes
16452 fi
16453 ;;
ed698112 16454
1cf3d07d
SE
16455os2*)
16456 libname_spec='$name'
16457 shrext_cmds=".dll"
16458 need_lib_prefix=no
16459 library_names_spec='$libname${shared_ext} $libname.a'
16460 dynamic_linker='OS/2 ld.exe'
16461 shlibpath_var=LIBPATH
16462 ;;
ed698112 16463
1cf3d07d
SE
16464osf3* | osf4* | osf5*)
16465 version_type=osf
16466 need_lib_prefix=no
16467 need_version=no
16468 soname_spec='${libname}${release}${shared_ext}$major'
16469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16470 shlibpath_var=LD_LIBRARY_PATH
16471 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16472 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16473 ;;
5aac1dac 16474
1cf3d07d
SE
16475rdos*)
16476 dynamic_linker=no
16477 ;;
5aac1dac 16478
1cf3d07d
SE
16479solaris*)
16480 version_type=linux
16481 need_lib_prefix=no
16482 need_version=no
16483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16484 soname_spec='${libname}${release}${shared_ext}$major'
16485 shlibpath_var=LD_LIBRARY_PATH
16486 shlibpath_overrides_runpath=yes
16487 hardcode_into_libs=yes
16488 # ldd complains unless libraries are executable
16489 postinstall_cmds='chmod +x $lib'
16490 ;;
5aac1dac 16491
1cf3d07d
SE
16492sunos4*)
16493 version_type=sunos
16494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16495 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16496 shlibpath_var=LD_LIBRARY_PATH
16497 shlibpath_overrides_runpath=yes
16498 if test "$with_gnu_ld" = yes; then
16499 need_lib_prefix=no
16500 fi
16501 need_version=yes
16502 ;;
ed698112 16503
1cf3d07d
SE
16504sysv4 | sysv4.3*)
16505 version_type=linux
16506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16507 soname_spec='${libname}${release}${shared_ext}$major'
16508 shlibpath_var=LD_LIBRARY_PATH
16509 case $host_vendor in
16510 sni)
16511 shlibpath_overrides_runpath=no
16512 need_lib_prefix=no
16513 runpath_var=LD_RUN_PATH
16514 ;;
16515 siemens)
16516 need_lib_prefix=no
16517 ;;
16518 motorola)
16519 need_lib_prefix=no
16520 need_version=no
16521 shlibpath_overrides_runpath=no
16522 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16523 ;;
16524 esac
16525 ;;
5aac1dac 16526
1cf3d07d
SE
16527sysv4*MP*)
16528 if test -d /usr/nec ;then
16529 version_type=linux
16530 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16531 soname_spec='$libname${shared_ext}.$major'
16532 shlibpath_var=LD_LIBRARY_PATH
16533 fi
16534 ;;
ed698112 16535
1cf3d07d
SE
16536sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16537 version_type=freebsd-elf
16538 need_lib_prefix=no
16539 need_version=no
16540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16541 soname_spec='${libname}${release}${shared_ext}$major'
16542 shlibpath_var=LD_LIBRARY_PATH
16543 shlibpath_overrides_runpath=yes
16544 hardcode_into_libs=yes
16545 if test "$with_gnu_ld" = yes; then
16546 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16547 else
16548 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16549 case $host_os in
16550 sco3.2v5*)
16551 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16552 ;;
16553 esac
16554 fi
16555 sys_lib_dlsearch_path_spec='/usr/lib'
16556 ;;
ed698112 16557
1cf3d07d
SE
16558tpf*)
16559 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16560 version_type=linux
16561 need_lib_prefix=no
16562 need_version=no
0da7a284 16563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
16564 shlibpath_var=LD_LIBRARY_PATH
16565 shlibpath_overrides_runpath=no
16566 hardcode_into_libs=yes
16567 ;;
4048d336 16568
1cf3d07d
SE
16569uts4*)
16570 version_type=linux
16571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16572 soname_spec='${libname}${release}${shared_ext}$major'
16573 shlibpath_var=LD_LIBRARY_PATH
16574 ;;
4048d336 16575
1cf3d07d
SE
16576*)
16577 dynamic_linker=no
16578 ;;
16579esac
5213506e
RW
16580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16581$as_echo "$dynamic_linker" >&6; }
1cf3d07d 16582test "$dynamic_linker" = no && can_build_shared=no
4048d336 16583
1cf3d07d
SE
16584variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16585if test "$GCC" = yes; then
16586 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
ed698112 16587fi
ee9dd372 16588
0da7a284
PG
16589if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16590 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16591fi
16592if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16593 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16594fi
16595
ed698112 16596
ed698112 16597
a3e174ea 16598
5aac1dac 16599
ed698112 16600
5aac1dac 16601
ed698112 16602
ade710a5 16603
a3e174ea 16604
29e531ff 16605
5aac1dac 16606
5aac1dac 16607
5aac1dac 16608
5aac1dac 16609
ed698112
NN
16610
16611
a3e174ea 16612
a3e174ea 16613
a3e174ea 16614
ed698112
NN
16615
16616
16617
ccfe7e46 16618
ed698112 16619
ade710a5 16620
5aac1dac 16621
29e531ff 16622
1e567c43 16623
1e567c43 16624
1e567c43 16625
1e567c43 16626
ed698112 16627
43e02a8a
RW
16628
16629
ed698112 16630
1e567c43 16631
1cf3d07d 16632
5213506e
RW
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16634$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
16635hardcode_action_CXX=
16636if test -n "$hardcode_libdir_flag_spec_CXX" ||
16637 test -n "$runpath_var_CXX" ||
16638 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16639
16640 # We can hardcode non-existent directories.
16641 if test "$hardcode_direct_CXX" != no &&
16642 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16643 # have to relink, otherwise we might link with an installed library
16644 # when we should be linking with a yet-to-be-installed one
16645 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16646 test "$hardcode_minus_L_CXX" != no; then
16647 # Linking always hardcodes the temporary library directory.
16648 hardcode_action_CXX=relink
1e567c43 16649 else
1cf3d07d
SE
16650 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16651 hardcode_action_CXX=immediate
1e567c43 16652 fi
1cf3d07d
SE
16653else
16654 # We cannot hardcode anything, or else we can only hardcode existing
16655 # directories.
16656 hardcode_action_CXX=unsupported
16657fi
5213506e
RW
16658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16659$as_echo "$hardcode_action_CXX" >&6; }
1e567c43 16660
1cf3d07d
SE
16661if test "$hardcode_action_CXX" = relink ||
16662 test "$inherit_rpath_CXX" = yes; then
16663 # Fast installation is not supported
16664 enable_fast_install=no
16665elif test "$shlibpath_overrides_runpath" = yes ||
16666 test "$enable_shared" = no; then
16667 # Fast installation is not necessary
16668 enable_fast_install=needless
16669fi
1e567c43 16670
ed698112
NN
16671
16672
16673
1e567c43 16674
1cf3d07d
SE
16675
16676
16677 fi # test -n "$compiler"
16678
16679 CC=$lt_save_CC
16680 LDCXX=$LD
16681 LD=$lt_save_LD
16682 GCC=$lt_save_GCC
16683 with_gnu_ld=$lt_save_with_gnu_ld
16684 lt_cv_path_LDCXX=$lt_cv_path_LD
16685 lt_cv_path_LD=$lt_save_path_LD
16686 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16687 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16688fi # test "$_lt_caught_CXX_error" != yes
16689
16690ac_ext=c
16691ac_cpp='$CPP $CPPFLAGS'
16692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16694ac_compiler_gnu=$ac_cv_c_compiler_gnu
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
5213506e 16708 ac_config_commands="$ac_config_commands libtool"
1cf3d07d
SE
16709
16710
16711
16712
16713# Only expand once:
16714
16715
16716
7de6ba7a
DK
16717
16718
16719case $host in
16720 *-cygwin* | *-mingw*)
16721 # 'host' will be top-level target in the case of a target lib,
16722 # we must compare to with_cross_host to decide if this is a native
16723 # or cross-compiler and select where to install dlls appropriately.
16724 if test -n "$with_cross_host" &&
16725 test x"$with_cross_host" != x"no"; then
16726 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
16727 else
16728 lt_host_flags='-no-undefined -bindir "$(bindir)"';
16729 fi
16730 ;;
16731 *)
16732 lt_host_flags=
16733 ;;
16734esac
16735
16736
16737
16738
4d9e8446
RW
16739if test -n "$ac_tool_prefix"; then
16740 for ac_prog in gcj
16741 do
16742 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16743set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
16744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16745$as_echo_n "checking for $ac_word... " >&6; }
16746if test "${ac_cv_prog_GCJ+set}" = set; then :
16747 $as_echo_n "(cached) " >&6
1e567c43 16748else
1cf3d07d
SE
16749 if test -n "$GCJ"; then
16750 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16751else
16752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
ed698112
NN
16753for as_dir in $PATH
16754do
16755 IFS=$as_save_IFS
16756 test -z "$as_dir" && as_dir=.
5213506e
RW
16757 for ac_exec_ext in '' $ac_executable_extensions; do
16758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4d9e8446 16759 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
5213506e 16760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112
NN
16761 break 2
16762 fi
16763done
5213506e
RW
16764 done
16765IFS=$as_save_IFS
ed698112 16766
1e567c43 16767fi
1cf3d07d
SE
16768fi
16769GCJ=$ac_cv_prog_GCJ
16770if test -n "$GCJ"; then
5213506e
RW
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16772$as_echo "$GCJ" >&6; }
1e567c43 16773else
5213506e
RW
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16775$as_echo "no" >&6; }
1e567c43
TF
16776fi
16777
5213506e 16778
4d9e8446
RW
16779 test -n "$GCJ" && break
16780 done
16781fi
16782if test -z "$GCJ"; then
16783 ac_ct_GCJ=$GCJ
16784 for ac_prog in gcj
16785do
16786 # Extract the first word of "$ac_prog", so it can be a program name with args.
16787set dummy $ac_prog; ac_word=$2
16788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16789$as_echo_n "checking for $ac_word... " >&6; }
16790if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
16791 $as_echo_n "(cached) " >&6
16792else
16793 if test -n "$ac_ct_GCJ"; then
16794 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
16795else
16796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16797for as_dir in $PATH
16798do
16799 IFS=$as_save_IFS
16800 test -z "$as_dir" && as_dir=.
16801 for ac_exec_ext in '' $ac_executable_extensions; do
16802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16803 ac_cv_prog_ac_ct_GCJ="$ac_prog"
16804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16805 break 2
16806 fi
16807done
16808 done
16809IFS=$as_save_IFS
16810
16811fi
16812fi
16813ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
16814if test -n "$ac_ct_GCJ"; then
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
16816$as_echo "$ac_ct_GCJ" >&6; }
16817else
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16819$as_echo "no" >&6; }
16820fi
16821
16822
16823 test -n "$ac_ct_GCJ" && break
1cf3d07d 16824done
4d9e8446
RW
16825
16826 if test "x$ac_ct_GCJ" = x; then
16827 GCJ="gcj"
16828 else
16829 case $cross_compiling:$ac_tool_warned in
16830yes:)
16831{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16832$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16833ac_tool_warned=yes ;;
16834esac
16835 GCJ=$ac_ct_GCJ
16836 fi
16837fi
5aac1dac 16838
5213506e 16839test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
1cf3d07d
SE
16840if test "x${GCJFLAGS-unset}" = xunset; then
16841 GCJFLAGS="-g -O2"
16842fi
ed698112
NN
16843
16844
1cf3d07d 16845depcc="$GCJ" am_compiler_list='gcc3 gcc'
3f8dfdd4 16846
5213506e
RW
16847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16848$as_echo_n "checking dependency style of $depcc... " >&6; }
16849if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16850 $as_echo_n "(cached) " >&6
3f8dfdd4 16851else
1cf3d07d
SE
16852 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16853 # We make a subdir and do the tests there. Otherwise we can end up
16854 # making bogus files that we don't know about and never remove. For
16855 # instance it was reported that on HP-UX the gcc test will end up
16856 # making a dummy file named `D' -- because `-MD' means `put the output
16857 # in D'.
16858 mkdir conftest.dir
16859 # Copy depcomp to subdir because otherwise we won't find it if we're
16860 # using a relative directory.
16861 cp "$am_depcomp" conftest.dir
16862 cd conftest.dir
16863 # We will build objects and dependencies in a subdirectory because
16864 # it helps to detect inapplicable dependency modes. For instance
16865 # both Tru64's cc and ICC support -MD to output dependencies as a
16866 # side effect of compilation, but ICC will put the dependencies in
16867 # the current directory while Tru64 will put them in the object
16868 # directory.
16869 mkdir sub
3f8dfdd4 16870
1cf3d07d
SE
16871 am_cv_GCJ_dependencies_compiler_type=none
16872 if test "$am_compiler_list" = ""; then
16873 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16874 fi
5213506e
RW
16875 am__universal=false
16876
16877
1cf3d07d
SE
16878 for depmode in $am_compiler_list; do
16879 # Setup a source with many dependencies, because some compilers
16880 # like to wrap large dependency lists on column 80 (with \), and
16881 # we should not choose a depcomp mode which is confused by this.
16882 #
16883 # We need to recreate these files for each test, as the compiler may
16884 # overwrite some of them when testing with obscure command lines.
16885 # This happens at least with the AIX C compiler.
16886 : > sub/conftest.c
16887 for i in 1 2 3 4 5 6; do
16888 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16889 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16890 # Solaris 8's {/usr,}/bin/sh.
16891 touch sub/conftst$i.h
16892 done
16893 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3f8dfdd4 16894
5213506e
RW
16895 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16896 # mode. It turns out that the SunPro C++ compiler does not properly
16897 # handle `-M -o', and we need to detect this. Also, some Intel
16898 # versions had trouble with output in subdirs
16899 am__obj=sub/conftest.${OBJEXT-o}
16900 am__minus_obj="-o $am__obj"
1cf3d07d 16901 case $depmode in
5213506e
RW
16902 gcc)
16903 # This depmode causes a compiler race in universal mode.
16904 test "$am__universal" = false || continue
16905 ;;
1cf3d07d
SE
16906 nosideeffect)
16907 # after this tag, mechanisms are not by side-effect, so they'll
16908 # only be used when explicitly requested
16909 if test "x$enable_dependency_tracking" = xyes; then
16910 continue
16911 else
16912 break
16913 fi
16914 ;;
5213506e
RW
16915 msvisualcpp | msvcmsys)
16916 # This compiler won't grok `-c -o', but also, the minuso test has
16917 # not run yet. These depmodes are late enough in the game, and
16918 # so weak that their functioning should not be impacted.
16919 am__obj=conftest.${OBJEXT-o}
16920 am__minus_obj=
16921 ;;
1cf3d07d
SE
16922 none) break ;;
16923 esac
1cf3d07d 16924 if depmode=$depmode \
5213506e 16925 source=sub/conftest.c object=$am__obj \
1cf3d07d 16926 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213506e 16927 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1cf3d07d 16928 >/dev/null 2>conftest.err &&
5213506e 16929 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1cf3d07d 16930 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213506e 16931 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1cf3d07d
SE
16932 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16933 # icc doesn't choke on unknown options, it will just issue warnings
16934 # or remarks (even with -Werror). So we grep stderr for any message
16935 # that says an option was ignored or not supported.
16936 # When given -MP, icc 7.0 and 7.1 complain thusly:
16937 # icc: Command line warning: ignoring option '-M'; no argument required
16938 # The diagnosis changed in icc 8.0:
16939 # icc: Command line remark: option '-MP' not supported
16940 if (grep 'ignoring option' conftest.err ||
16941 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16942 am_cv_GCJ_dependencies_compiler_type=$depmode
16943 break
16944 fi
16945 fi
16946 done
5aac1dac 16947
1cf3d07d
SE
16948 cd ..
16949 rm -rf conftest.dir
5aac1dac 16950else
1cf3d07d 16951 am_cv_GCJ_dependencies_compiler_type=none
5aac1dac 16952fi
ed698112 16953
5aac1dac 16954fi
5213506e
RW
16955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16956$as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
1cf3d07d 16957GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
ee9dd372 16958
5213506e 16959 if
1cf3d07d
SE
16960 test "x$enable_dependency_tracking" != xno \
16961 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16962 am__fastdepGCJ_TRUE=
16963 am__fastdepGCJ_FALSE='#'
16964else
16965 am__fastdepGCJ_TRUE='#'
16966 am__fastdepGCJ_FALSE=
16967fi
349e19d4 16968
5aac1dac 16969
5aac1dac 16970
4d9e8446
RW
16971if test -n "$ac_tool_prefix"; then
16972 for ac_prog in gcj
16973 do
16974 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16975set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
16976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16977$as_echo_n "checking for $ac_word... " >&6; }
16978if test "${ac_cv_prog_GCJ+set}" = set; then :
16979 $as_echo_n "(cached) " >&6
5aac1dac
TT
16980else
16981 if test -n "$GCJ"; then
16982 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16983else
ed698112
NN
16984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16985for as_dir in $PATH
16986do
16987 IFS=$as_save_IFS
16988 test -z "$as_dir" && as_dir=.
5213506e
RW
16989 for ac_exec_ext in '' $ac_executable_extensions; do
16990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4d9e8446 16991 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
5213506e 16992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ed698112
NN
16993 break 2
16994 fi
16995done
5213506e
RW
16996 done
16997IFS=$as_save_IFS
ed698112 16998
5aac1dac
TT
16999fi
17000fi
ed698112 17001GCJ=$ac_cv_prog_GCJ
5aac1dac 17002if test -n "$GCJ"; then
5213506e
RW
17003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
17004$as_echo "$GCJ" >&6; }
ee9dd372 17005else
5213506e
RW
17006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17007$as_echo "no" >&6; }
5aac1dac 17008fi
0659e0e3 17009
5213506e 17010
4d9e8446
RW
17011 test -n "$GCJ" && break
17012 done
17013fi
17014if test -z "$GCJ"; then
17015 ac_ct_GCJ=$GCJ
17016 for ac_prog in gcj
17017do
17018 # Extract the first word of "$ac_prog", so it can be a program name with args.
17019set dummy $ac_prog; ac_word=$2
17020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17021$as_echo_n "checking for $ac_word... " >&6; }
17022if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
17023 $as_echo_n "(cached) " >&6
17024else
17025 if test -n "$ac_ct_GCJ"; then
17026 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
17027else
17028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17029for as_dir in $PATH
17030do
17031 IFS=$as_save_IFS
17032 test -z "$as_dir" && as_dir=.
17033 for ac_exec_ext in '' $ac_executable_extensions; do
17034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17035 ac_cv_prog_ac_ct_GCJ="$ac_prog"
17036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17037 break 2
17038 fi
1cf3d07d 17039done
4d9e8446
RW
17040 done
17041IFS=$as_save_IFS
17042
17043fi
17044fi
17045ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
17046if test -n "$ac_ct_GCJ"; then
17047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
17048$as_echo "$ac_ct_GCJ" >&6; }
17049else
17050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17051$as_echo "no" >&6; }
17052fi
17053
17054
17055 test -n "$ac_ct_GCJ" && break
17056done
17057
17058 if test "x$ac_ct_GCJ" = x; then
17059 GCJ="gcj"
17060 else
17061 case $cross_compiling:$ac_tool_warned in
17062yes:)
17063{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17065ac_tool_warned=yes ;;
17066esac
17067 GCJ=$ac_ct_GCJ
17068 fi
17069fi
1cf3d07d 17070
5213506e 17071test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
1cf3d07d
SE
17072if test "x${GCJFLAGS-unset}" = xunset; then
17073 GCJFLAGS="-g -O2"
17074fi
17075
17076
17077depcc="$GCJ" am_compiler_list='gcc3 gcc'
17078
5213506e
RW
17079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17080$as_echo_n "checking dependency style of $depcc... " >&6; }
17081if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
17082 $as_echo_n "(cached) " >&6
5aac1dac 17083else
1cf3d07d
SE
17084 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17085 # We make a subdir and do the tests there. Otherwise we can end up
17086 # making bogus files that we don't know about and never remove. For
17087 # instance it was reported that on HP-UX the gcc test will end up
17088 # making a dummy file named `D' -- because `-MD' means `put the output
17089 # in D'.
17090 mkdir conftest.dir
17091 # Copy depcomp to subdir because otherwise we won't find it if we're
17092 # using a relative directory.
17093 cp "$am_depcomp" conftest.dir
17094 cd conftest.dir
17095 # We will build objects and dependencies in a subdirectory because
17096 # it helps to detect inapplicable dependency modes. For instance
17097 # both Tru64's cc and ICC support -MD to output dependencies as a
17098 # side effect of compilation, but ICC will put the dependencies in
17099 # the current directory while Tru64 will put them in the object
17100 # directory.
17101 mkdir sub
17102
17103 am_cv_GCJ_dependencies_compiler_type=none
17104 if test "$am_compiler_list" = ""; then
17105 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
ed698112 17106 fi
5213506e
RW
17107 am__universal=false
17108
17109
1cf3d07d
SE
17110 for depmode in $am_compiler_list; do
17111 # Setup a source with many dependencies, because some compilers
17112 # like to wrap large dependency lists on column 80 (with \), and
17113 # we should not choose a depcomp mode which is confused by this.
17114 #
17115 # We need to recreate these files for each test, as the compiler may
17116 # overwrite some of them when testing with obscure command lines.
17117 # This happens at least with the AIX C compiler.
17118 : > sub/conftest.c
17119 for i in 1 2 3 4 5 6; do
17120 echo '#include "conftst'$i'.h"' >> sub/conftest.c
17121 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17122 # Solaris 8's {/usr,}/bin/sh.
17123 touch sub/conftst$i.h
17124 done
17125 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
ed698112 17126
5213506e
RW
17127 # We check with `-c' and `-o' for the sake of the "dashmstdout"
17128 # mode. It turns out that the SunPro C++ compiler does not properly
17129 # handle `-M -o', and we need to detect this. Also, some Intel
17130 # versions had trouble with output in subdirs
17131 am__obj=sub/conftest.${OBJEXT-o}
17132 am__minus_obj="-o $am__obj"
1cf3d07d 17133 case $depmode in
5213506e
RW
17134 gcc)
17135 # This depmode causes a compiler race in universal mode.
17136 test "$am__universal" = false || continue
17137 ;;
1cf3d07d
SE
17138 nosideeffect)
17139 # after this tag, mechanisms are not by side-effect, so they'll
17140 # only be used when explicitly requested
17141 if test "x$enable_dependency_tracking" = xyes; then
17142 continue
17143 else
17144 break
17145 fi
17146 ;;
5213506e
RW
17147 msvisualcpp | msvcmsys)
17148 # This compiler won't grok `-c -o', but also, the minuso test has
17149 # not run yet. These depmodes are late enough in the game, and
17150 # so weak that their functioning should not be impacted.
17151 am__obj=conftest.${OBJEXT-o}
17152 am__minus_obj=
17153 ;;
1cf3d07d
SE
17154 none) break ;;
17155 esac
1cf3d07d 17156 if depmode=$depmode \
5213506e 17157 source=sub/conftest.c object=$am__obj \
1cf3d07d 17158 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213506e 17159 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1cf3d07d 17160 >/dev/null 2>conftest.err &&
5213506e 17161 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1cf3d07d 17162 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213506e 17163 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1cf3d07d
SE
17164 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17165 # icc doesn't choke on unknown options, it will just issue warnings
17166 # or remarks (even with -Werror). So we grep stderr for any message
17167 # that says an option was ignored or not supported.
17168 # When given -MP, icc 7.0 and 7.1 complain thusly:
17169 # icc: Command line warning: ignoring option '-M'; no argument required
17170 # The diagnosis changed in icc 8.0:
17171 # icc: Command line remark: option '-MP' not supported
17172 if (grep 'ignoring option' conftest.err ||
17173 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17174 am_cv_GCJ_dependencies_compiler_type=$depmode
17175 break
17176 fi
17177 fi
17178 done
17179
17180 cd ..
17181 rm -rf conftest.dir
0659e0e3 17182else
1cf3d07d 17183 am_cv_GCJ_dependencies_compiler_type=none
0659e0e3 17184fi
5aac1dac 17185
1cf3d07d 17186fi
5213506e
RW
17187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
17188$as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
1cf3d07d
SE
17189GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
17190
5213506e 17191 if
1cf3d07d
SE
17192 test "x$enable_dependency_tracking" != xno \
17193 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
17194 am__fastdepGCJ_TRUE=
17195 am__fastdepGCJ_FALSE='#'
02809848 17196else
1cf3d07d
SE
17197 am__fastdepGCJ_TRUE='#'
17198 am__fastdepGCJ_FALSE=
ee9dd372 17199fi
ee9dd372 17200
ed698112 17201
5aac1dac
TT
17202
17203
5aac1dac 17204
1cf3d07d 17205# Source file extension for Java test sources.
eecb7461 17206ac_ext=c
5aac1dac 17207
1cf3d07d
SE
17208# Object file extension for compiled Java test sources.
17209objext=o
17210objext_GCJ=$objext
17211
17212# Code to be used in simple compile tests
eecb7461 17213lt_simple_compile_test_code="int some_variable = 0;"
1cf3d07d
SE
17214
17215# Code to be used in simple link tests
eecb7461 17216lt_simple_link_test_code='int main(){return(0);}'
1cf3d07d
SE
17217
17218# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17219
17220
17221
17222
17223
17224
17225# If no C compiler was specified, use CC.
17226LTCC=${LTCC-"$CC"}
17227
17228# If no C compiler flags were specified, use CFLAGS.
17229LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17230
17231# Allow CC to be a program name with arguments.
17232compiler=$CC
17233
17234
17235# save warnings/boilerplate of simple test code
17236ac_outfile=conftest.$ac_objext
17237echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17238eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17239_lt_compiler_boilerplate=`cat conftest.err`
17240$RM conftest*
17241
17242ac_outfile=conftest.$ac_objext
17243echo "$lt_simple_link_test_code" >conftest.$ac_ext
17244eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17245_lt_linker_boilerplate=`cat conftest.err`
0da7a284 17246$RM -r conftest*
1cf3d07d
SE
17247
17248
17249# Allow CC to be a program name with arguments.
0da7a284 17250GCC=yes
1cf3d07d
SE
17251compiler=$CC
17252compiler_GCJ=$CC
17253for cc_temp in $compiler""; do
17254 case $cc_temp in
17255 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17256 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17257 \-*) ;;
17258 *) break;;
17259 esac
17260done
43e02a8a 17261cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1cf3d07d
SE
17262
17263
17264# GCJ did not exist at the time GCC didn't implicitly link libc in.
17265archive_cmds_need_lc_GCJ=no
17266
17267old_archive_cmds_GCJ=$old_archive_cmds
17268
17269## CAVEAT EMPTOR:
17270## There is no encapsulation within the following macros, do not change
17271## the running order or otherwise move them around unless you know exactly
17272## what you are doing...
17273if test -n "$compiler"; then
17274
17275lt_prog_compiler_no_builtin_flag_GCJ=
17276
17277if test "$GCC" = yes; then
43e02a8a
RW
17278 case $cc_basename in
17279 nvcc*)
17280 lt_prog_compiler_no_builtin_flag_GCJ=' -Xcompiler -fno-builtin' ;;
17281 *)
17282 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' ;;
17283 esac
1cf3d07d 17284
5213506e
RW
17285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17286$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17287if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
17288 $as_echo_n "(cached) " >&6
8107bc83 17289else
1cf3d07d
SE
17290 lt_cv_prog_compiler_rtti_exceptions=no
17291 ac_outfile=conftest.$ac_objext
17292 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17293 lt_compiler_flag="-fno-rtti -fno-exceptions"
17294 # Insert the option either (1) after the last *FLAGS variable, or
17295 # (2) before a word containing "conftest.", or (3) at the end.
17296 # Note that $ac_compile itself does not contain backslashes and begins
17297 # with a dollar sign (not a hyphen), so the echo should work correctly.
17298 # The option is referenced via a variable to avoid confusing sed.
17299 lt_compile=`echo "$ac_compile" | $SED \
17300 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17301 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17302 -e 's:$: $lt_compiler_flag:'`
43e02a8a 17303 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
17304 (eval "$lt_compile" 2>conftest.err)
17305 ac_status=$?
17306 cat conftest.err >&5
43e02a8a 17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
17308 if (exit $ac_status) && test -s "$ac_outfile"; then
17309 # The compiler can only warn and ignore the option if not recognized
17310 # So say no if there are warnings other than the usual output.
43e02a8a 17311 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
17312 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17313 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17314 lt_cv_prog_compiler_rtti_exceptions=yes
17315 fi
17316 fi
17317 $RM conftest*
8107bc83 17318
8107bc83 17319fi
5213506e
RW
17320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17321$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8107bc83 17322
1cf3d07d
SE
17323if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17324 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
ee9dd372 17325else
1cf3d07d
SE
17326 :
17327fi
5aac1dac 17328
1cf3d07d 17329fi
5aac1dac 17330
8107bc83 17331
8107bc83 17332
1cf3d07d
SE
17333 lt_prog_compiler_wl_GCJ=
17334lt_prog_compiler_pic_GCJ=
17335lt_prog_compiler_static_GCJ=
8107bc83 17336
5213506e
RW
17337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17338$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8107bc83 17339
1cf3d07d
SE
17340 if test "$GCC" = yes; then
17341 lt_prog_compiler_wl_GCJ='-Wl,'
17342 lt_prog_compiler_static_GCJ='-static'
ed698112 17343
1cf3d07d
SE
17344 case $host_os in
17345 aix*)
17346 # All AIX code is PIC.
17347 if test "$host_cpu" = ia64; then
17348 # AIX 5 now supports IA64 processor
17349 lt_prog_compiler_static_GCJ='-Bstatic'
17350 fi
17351 ;;
8107bc83 17352
1cf3d07d 17353 amigaos*)
0da7a284
PG
17354 case $host_cpu in
17355 powerpc)
17356 # see comment about AmigaOS4 .so support
17357 lt_prog_compiler_pic_GCJ='-fPIC'
17358 ;;
17359 m68k)
17360 # FIXME: we need at least 68020 code to build shared libraries, but
17361 # adding the `-m68020' flag to GCC prevents building anything better,
17362 # like `-m68040'.
17363 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17364 ;;
17365 esac
1cf3d07d 17366 ;;
5aac1dac 17367
1cf3d07d
SE
17368 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17369 # PIC is the default for these OSes.
17370 ;;
8107bc83 17371
0da7a284 17372 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
17373 # This hack is so that the source file can tell whether it is being
17374 # built for inclusion in a dll (and should export symbols for example).
17375 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17376 # (--disable-auto-import) libraries
bb44c9d2 17377
1cf3d07d 17378 ;;
8107bc83 17379
1cf3d07d
SE
17380 darwin* | rhapsody*)
17381 # PIC is the default on this platform
17382 # Common symbols not allowed in MH_DYLIB files
17383 lt_prog_compiler_pic_GCJ='-fno-common'
17384 ;;
17385
43e02a8a
RW
17386 haiku*)
17387 # PIC is the default for Haiku.
17388 # The "-static" flag exists, but is broken.
17389 lt_prog_compiler_static_GCJ=
17390 ;;
17391
1cf3d07d 17392 hpux*)
0da7a284
PG
17393 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17394 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17395 # sets the default TLS model and affects inlining.
1cf3d07d 17396 case $host_cpu in
0da7a284 17397 hppa*64*)
1cf3d07d
SE
17398 # +Z the default
17399 ;;
17400 *)
17401 lt_prog_compiler_pic_GCJ='-fPIC'
17402 ;;
17403 esac
17404 ;;
17405
17406 interix[3-9]*)
17407 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17408 # Instead, we relocate shared libraries at runtime.
17409 ;;
17410
17411 msdosdjgpp*)
17412 # Just because we use GCC doesn't mean we suddenly get shared libraries
17413 # on systems that don't support them.
17414 lt_prog_compiler_can_build_shared_GCJ=no
17415 enable_shared=no
17416 ;;
17417
17418 *nto* | *qnx*)
17419 # QNX uses GNU C++, but need to define -shared option too, otherwise
17420 # it will coredump.
17421 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17422 ;;
17423
17424 sysv4*MP*)
17425 if test -d /usr/nec; then
17426 lt_prog_compiler_pic_GCJ=-Kconform_pic
17427 fi
17428 ;;
17429
17430 *)
17431 lt_prog_compiler_pic_GCJ='-fPIC'
17432 ;;
17433 esac
43e02a8a
RW
17434
17435 case $cc_basename in
17436 nvcc*) # Cuda Compiler Driver 2.2
17437 lt_prog_compiler_wl_GCJ='-Xlinker '
17438 lt_prog_compiler_pic_GCJ='-Xcompiler -fPIC'
17439 ;;
17440 esac
8107bc83 17441 else
1cf3d07d
SE
17442 # PORTME Check for flag to pass linker flags through the system compiler.
17443 case $host_os in
17444 aix*)
17445 lt_prog_compiler_wl_GCJ='-Wl,'
17446 if test "$host_cpu" = ia64; then
17447 # AIX 5 now supports IA64 processor
17448 lt_prog_compiler_static_GCJ='-Bstatic'
17449 else
17450 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17451 fi
17452 ;;
8107bc83 17453
0da7a284 17454 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
17455 # This hack is so that the source file can tell whether it is being
17456 # built for inclusion in a dll (and should export symbols for example).
bb44c9d2 17457
1cf3d07d
SE
17458 ;;
17459
17460 hpux9* | hpux10* | hpux11*)
17461 lt_prog_compiler_wl_GCJ='-Wl,'
17462 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17463 # not for PA HP-UX.
17464 case $host_cpu in
17465 hppa*64*|ia64*)
17466 # +Z the default
17467 ;;
17468 *)
17469 lt_prog_compiler_pic_GCJ='+Z'
17470 ;;
17471 esac
17472 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17473 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17474 ;;
17475
17476 irix5* | irix6* | nonstopux*)
17477 lt_prog_compiler_wl_GCJ='-Wl,'
17478 # PIC (with -KPIC) is the default.
17479 lt_prog_compiler_static_GCJ='-non_shared'
17480 ;;
17481
7a9d3fe8 17482 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 17483 case $cc_basename in
0da7a284
PG
17484 # old Intel for x86_64 which still supported -KPIC.
17485 ecc*)
1cf3d07d
SE
17486 lt_prog_compiler_wl_GCJ='-Wl,'
17487 lt_prog_compiler_pic_GCJ='-KPIC'
17488 lt_prog_compiler_static_GCJ='-static'
17489 ;;
0da7a284
PG
17490 # icc used to be incompatible with GCC.
17491 # ICC 10 doesn't accept -KPIC any more.
17492 icc* | ifort*)
17493 lt_prog_compiler_wl_GCJ='-Wl,'
17494 lt_prog_compiler_pic_GCJ='-fPIC'
17495 lt_prog_compiler_static_GCJ='-static'
17496 ;;
17497 # Lahey Fortran 8.1.
17498 lf95*)
17499 lt_prog_compiler_wl_GCJ='-Wl,'
17500 lt_prog_compiler_pic_GCJ='--shared'
17501 lt_prog_compiler_static_GCJ='--static'
17502 ;;
43e02a8a 17503 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
1cf3d07d
SE
17504 # Portland Group compilers (*not* the Pentium gcc compiler,
17505 # which looks to be a dead project)
17506 lt_prog_compiler_wl_GCJ='-Wl,'
17507 lt_prog_compiler_pic_GCJ='-fpic'
17508 lt_prog_compiler_static_GCJ='-Bstatic'
17509 ;;
17510 ccc*)
17511 lt_prog_compiler_wl_GCJ='-Wl,'
17512 # All Alpha code is PIC.
17513 lt_prog_compiler_static_GCJ='-non_shared'
17514 ;;
43e02a8a
RW
17515 xl* | bgxl* | bgf* | mpixl*)
17516 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
0da7a284
PG
17517 lt_prog_compiler_wl_GCJ='-Wl,'
17518 lt_prog_compiler_pic_GCJ='-qpic'
17519 lt_prog_compiler_static_GCJ='-qstaticlink'
17520 ;;
1cf3d07d
SE
17521 *)
17522 case `$CC -V 2>&1 | sed 5q` in
43e02a8a
RW
17523 *Sun\ F* | *Sun*Fortran*)
17524 # Sun Fortran 8.3 passes all unrecognized flags to the linker
1cf3d07d
SE
17525 lt_prog_compiler_pic_GCJ='-KPIC'
17526 lt_prog_compiler_static_GCJ='-Bstatic'
43e02a8a 17527 lt_prog_compiler_wl_GCJ=''
1cf3d07d 17528 ;;
43e02a8a
RW
17529 *Sun\ C*)
17530 # Sun C 5.9
1cf3d07d
SE
17531 lt_prog_compiler_pic_GCJ='-KPIC'
17532 lt_prog_compiler_static_GCJ='-Bstatic'
43e02a8a 17533 lt_prog_compiler_wl_GCJ='-Wl,'
1cf3d07d
SE
17534 ;;
17535 esac
17536 ;;
17537 esac
17538 ;;
17539
17540 newsos6)
17541 lt_prog_compiler_pic_GCJ='-KPIC'
17542 lt_prog_compiler_static_GCJ='-Bstatic'
17543 ;;
17544
17545 *nto* | *qnx*)
17546 # QNX uses GNU C++, but need to define -shared option too, otherwise
17547 # it will coredump.
17548 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17549 ;;
17550
17551 osf3* | osf4* | osf5*)
17552 lt_prog_compiler_wl_GCJ='-Wl,'
17553 # All OSF/1 code is PIC.
17554 lt_prog_compiler_static_GCJ='-non_shared'
17555 ;;
17556
17557 rdos*)
17558 lt_prog_compiler_static_GCJ='-non_shared'
17559 ;;
17560
17561 solaris*)
17562 lt_prog_compiler_pic_GCJ='-KPIC'
17563 lt_prog_compiler_static_GCJ='-Bstatic'
17564 case $cc_basename in
17565 f77* | f90* | f95*)
17566 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17567 *)
17568 lt_prog_compiler_wl_GCJ='-Wl,';;
17569 esac
17570 ;;
17571
17572 sunos4*)
17573 lt_prog_compiler_wl_GCJ='-Qoption ld '
17574 lt_prog_compiler_pic_GCJ='-PIC'
17575 lt_prog_compiler_static_GCJ='-Bstatic'
17576 ;;
17577
17578 sysv4 | sysv4.2uw2* | sysv4.3*)
17579 lt_prog_compiler_wl_GCJ='-Wl,'
17580 lt_prog_compiler_pic_GCJ='-KPIC'
17581 lt_prog_compiler_static_GCJ='-Bstatic'
17582 ;;
17583
17584 sysv4*MP*)
17585 if test -d /usr/nec ;then
17586 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17587 lt_prog_compiler_static_GCJ='-Bstatic'
17588 fi
17589 ;;
17590
17591 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17592 lt_prog_compiler_wl_GCJ='-Wl,'
17593 lt_prog_compiler_pic_GCJ='-KPIC'
17594 lt_prog_compiler_static_GCJ='-Bstatic'
17595 ;;
17596
17597 unicos*)
17598 lt_prog_compiler_wl_GCJ='-Wl,'
17599 lt_prog_compiler_can_build_shared_GCJ=no
17600 ;;
17601
17602 uts4*)
17603 lt_prog_compiler_pic_GCJ='-pic'
17604 lt_prog_compiler_static_GCJ='-Bstatic'
17605 ;;
17606
17607 *)
17608 lt_prog_compiler_can_build_shared_GCJ=no
17609 ;;
17610 esac
17611 fi
17612
17613case $host_os in
17614 # For platforms which do not support PIC, -DPIC is meaningless:
17615 *djgpp*)
17616 lt_prog_compiler_pic_GCJ=
17617 ;;
17618 *)
17619 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17620 ;;
17621esac
5213506e
RW
17622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
17623$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
1cf3d07d
SE
17624
17625
17626
17627#
17628# Check to make sure the PIC flag actually works.
17629#
17630if test -n "$lt_prog_compiler_pic_GCJ"; then
5213506e
RW
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17632$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17633if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
17634 $as_echo_n "(cached) " >&6
8107bc83 17635else
0da7a284 17636 lt_cv_prog_compiler_pic_works_GCJ=no
1cf3d07d
SE
17637 ac_outfile=conftest.$ac_objext
17638 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17639 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17640 # Insert the option either (1) after the last *FLAGS variable, or
17641 # (2) before a word containing "conftest.", or (3) at the end.
17642 # Note that $ac_compile itself does not contain backslashes and begins
17643 # with a dollar sign (not a hyphen), so the echo should work correctly.
17644 # The option is referenced via a variable to avoid confusing sed.
17645 lt_compile=`echo "$ac_compile" | $SED \
17646 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17647 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17648 -e 's:$: $lt_compiler_flag:'`
43e02a8a 17649 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
17650 (eval "$lt_compile" 2>conftest.err)
17651 ac_status=$?
17652 cat conftest.err >&5
43e02a8a 17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
17654 if (exit $ac_status) && test -s "$ac_outfile"; then
17655 # The compiler can only warn and ignore the option if not recognized
17656 # So say no if there are warnings other than the usual output.
43e02a8a 17657 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
17658 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17659 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
0da7a284 17660 lt_cv_prog_compiler_pic_works_GCJ=yes
1cf3d07d
SE
17661 fi
17662 fi
17663 $RM conftest*
ee9dd372 17664
8107bc83 17665fi
5213506e
RW
17666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17667$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
1cf3d07d 17668
0da7a284 17669if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
1cf3d07d
SE
17670 case $lt_prog_compiler_pic_GCJ in
17671 "" | " "*) ;;
17672 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17673 esac
8107bc83 17674else
1cf3d07d
SE
17675 lt_prog_compiler_pic_GCJ=
17676 lt_prog_compiler_can_build_shared_GCJ=no
8107bc83 17677fi
1cf3d07d 17678
8107bc83 17679fi
ee9dd372 17680
5aac1dac
TT
17681
17682
1cf3d07d
SE
17683#
17684# Check to make sure the static flag actually works.
17685#
17686wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
5213506e
RW
17687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17688$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17689if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
17690 $as_echo_n "(cached) " >&6
44bffd9f 17691else
0da7a284 17692 lt_cv_prog_compiler_static_works_GCJ=no
1cf3d07d
SE
17693 save_LDFLAGS="$LDFLAGS"
17694 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17695 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17696 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17697 # The linker can only warn and ignore the option if not recognized
17698 # So say no if there are warnings
17699 if test -s conftest.err; then
17700 # Append any errors to the config.log.
17701 cat conftest.err 1>&5
43e02a8a 17702 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1cf3d07d
SE
17703 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17704 if diff conftest.exp conftest.er2 >/dev/null; then
0da7a284 17705 lt_cv_prog_compiler_static_works_GCJ=yes
1cf3d07d
SE
17706 fi
17707 else
0da7a284 17708 lt_cv_prog_compiler_static_works_GCJ=yes
1cf3d07d
SE
17709 fi
17710 fi
0da7a284 17711 $RM -r conftest*
1cf3d07d 17712 LDFLAGS="$save_LDFLAGS"
8107bc83 17713
1cf3d07d 17714fi
5213506e
RW
17715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17716$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
8107bc83 17717
0da7a284 17718if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
1cf3d07d
SE
17719 :
17720else
17721 lt_prog_compiler_static_GCJ=
17722fi
8107bc83 17723
8107bc83 17724
1cf3d07d
SE
17725
17726
5213506e
RW
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17728$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17729if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17730 $as_echo_n "(cached) " >&6
44bffd9f 17731else
1cf3d07d
SE
17732 lt_cv_prog_compiler_c_o_GCJ=no
17733 $RM -r conftest 2>/dev/null
17734 mkdir conftest
17735 cd conftest
17736 mkdir out
17737 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17738
17739 lt_compiler_flag="-o out/conftest2.$ac_objext"
17740 # Insert the option either (1) after the last *FLAGS variable, or
17741 # (2) before a word containing "conftest.", or (3) at the end.
17742 # Note that $ac_compile itself does not contain backslashes and begins
17743 # with a dollar sign (not a hyphen), so the echo should work correctly.
17744 lt_compile=`echo "$ac_compile" | $SED \
17745 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17746 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17747 -e 's:$: $lt_compiler_flag:'`
43e02a8a 17748 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
17749 (eval "$lt_compile" 2>out/conftest.err)
17750 ac_status=$?
17751 cat out/conftest.err >&5
43e02a8a 17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
17753 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17754 then
17755 # The compiler can only warn and ignore the option if not recognized
17756 # So say no if there are warnings
43e02a8a 17757 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
17758 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17759 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17760 lt_cv_prog_compiler_c_o_GCJ=yes
17761 fi
17762 fi
17763 chmod u+w . 2>&5
17764 $RM conftest*
17765 # SGI C++ compiler will create directory out/ii_files/ for
17766 # template instantiation
17767 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17768 $RM out/* && rmdir out
17769 cd ..
17770 $RM -r conftest
17771 $RM conftest*
44bffd9f 17772
44bffd9f 17773fi
5213506e
RW
17774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17775$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
1cf3d07d
SE
17776
17777
17778
5213506e
RW
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17780$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17781if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17782 $as_echo_n "(cached) " >&6
44bffd9f 17783else
1cf3d07d
SE
17784 lt_cv_prog_compiler_c_o_GCJ=no
17785 $RM -r conftest 2>/dev/null
17786 mkdir conftest
17787 cd conftest
17788 mkdir out
17789 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17790
17791 lt_compiler_flag="-o out/conftest2.$ac_objext"
17792 # Insert the option either (1) after the last *FLAGS variable, or
17793 # (2) before a word containing "conftest.", or (3) at the end.
17794 # Note that $ac_compile itself does not contain backslashes and begins
17795 # with a dollar sign (not a hyphen), so the echo should work correctly.
17796 lt_compile=`echo "$ac_compile" | $SED \
17797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17799 -e 's:$: $lt_compiler_flag:'`
43e02a8a 17800 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
17801 (eval "$lt_compile" 2>out/conftest.err)
17802 ac_status=$?
17803 cat out/conftest.err >&5
43e02a8a 17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
17805 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17806 then
17807 # The compiler can only warn and ignore the option if not recognized
17808 # So say no if there are warnings
43e02a8a 17809 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
17810 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17811 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17812 lt_cv_prog_compiler_c_o_GCJ=yes
17813 fi
17814 fi
17815 chmod u+w . 2>&5
17816 $RM conftest*
17817 # SGI C++ compiler will create directory out/ii_files/ for
17818 # template instantiation
17819 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17820 $RM out/* && rmdir out
17821 cd ..
17822 $RM -r conftest
17823 $RM conftest*
17824
17825fi
5213506e
RW
17826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17827$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
1cf3d07d
SE
17828
17829
17830
17831
17832hard_links="nottested"
17833if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17834 # do not overwrite the value of need_locks provided by the user
5213506e
RW
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17836$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
17837 hard_links=yes
17838 $RM conftest*
17839 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17840 touch conftest.a
17841 ln conftest.a conftest.b 2>&5 || hard_links=no
17842 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17844$as_echo "$hard_links" >&6; }
1cf3d07d 17845 if test "$hard_links" = no; then
5213506e
RW
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17847$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
17848 need_locks=warn
17849 fi
17850else
17851 need_locks=no
17852fi
17853
17854
17855
5213506e
RW
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17857$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
17858
17859 runpath_var=
17860 allow_undefined_flag_GCJ=
17861 always_export_symbols_GCJ=no
17862 archive_cmds_GCJ=
17863 archive_expsym_cmds_GCJ=
17864 compiler_needs_object_GCJ=no
17865 enable_shared_with_static_runtimes_GCJ=no
17866 export_dynamic_flag_spec_GCJ=
17867 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17868 hardcode_automatic_GCJ=no
17869 hardcode_direct_GCJ=no
17870 hardcode_direct_absolute_GCJ=no
17871 hardcode_libdir_flag_spec_GCJ=
17872 hardcode_libdir_flag_spec_ld_GCJ=
17873 hardcode_libdir_separator_GCJ=
17874 hardcode_minus_L_GCJ=no
17875 hardcode_shlibpath_var_GCJ=unsupported
17876 inherit_rpath_GCJ=no
17877 link_all_deplibs_GCJ=unknown
17878 module_cmds_GCJ=
17879 module_expsym_cmds_GCJ=
17880 old_archive_from_new_cmds_GCJ=
17881 old_archive_from_expsyms_cmds_GCJ=
17882 thread_safe_flag_spec_GCJ=
17883 whole_archive_flag_spec_GCJ=
17884 # include_expsyms should be a list of space-separated symbols to be *always*
17885 # included in the symbol list
17886 include_expsyms_GCJ=
17887 # exclude_expsyms can be an extended regexp of symbols to exclude
17888 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17889 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17890 # as well as any symbol that contains `d'.
0da7a284 17891 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
17892 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17893 # platforms (ab)use it in PIC code, but their linkers get confused if
17894 # the symbol is explicitly referenced. Since portable code cannot
17895 # rely on this symbol name, it's probably fine to never include it in
17896 # preloaded symbol tables.
0da7a284 17897 # Exclude shared library initialization/finalization symbols.
1cf3d07d 17898 extract_expsyms_cmds=
44bffd9f 17899
1cf3d07d 17900 case $host_os in
0da7a284 17901 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
17902 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17903 # When not using gcc, we currently assume that we are using
17904 # Microsoft Visual C++.
17905 if test "$GCC" != yes; then
17906 with_gnu_ld=no
17907 fi
17908 ;;
17909 interix*)
17910 # we just hope/assume this is gcc and not c89 (= MSVC++)
17911 with_gnu_ld=yes
17912 ;;
17913 openbsd*)
17914 with_gnu_ld=no
17915 ;;
17916 esac
17917
17918 ld_shlibs_GCJ=yes
43e02a8a
RW
17919
17920 # On some targets, GNU ld is compatible enough with the native linker
17921 # that we're better off using the native interface for both.
17922 lt_use_gnu_ld_interface=no
1cf3d07d 17923 if test "$with_gnu_ld" = yes; then
43e02a8a
RW
17924 case $host_os in
17925 aix*)
17926 # The AIX port of GNU ld has always aspired to compatibility
17927 # with the native linker. However, as the warning in the GNU ld
17928 # block says, versions before 2.19.5* couldn't really create working
17929 # shared libraries, regardless of the interface used.
17930 case `$LD -v 2>&1` in
17931 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17932 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17933 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17934 *)
17935 lt_use_gnu_ld_interface=yes
17936 ;;
17937 esac
17938 ;;
17939 *)
17940 lt_use_gnu_ld_interface=yes
17941 ;;
17942 esac
17943 fi
17944
17945 if test "$lt_use_gnu_ld_interface" = yes; then
1cf3d07d
SE
17946 # If archive_cmds runs LD, not CC, wlarc should be empty
17947 wlarc='${wl}'
17948
17949 # Set some defaults for GNU ld with shared library support. These
17950 # are reset later if shared libraries are not supported. Putting them
17951 # here allows them to be overridden if necessary.
17952 runpath_var=LD_RUN_PATH
17953 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17954 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17955 # ancient GNU ld didn't support --whole-archive et. al.
17956 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17957 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17958 else
17959 whole_archive_flag_spec_GCJ=
17960 fi
17961 supports_anon_versioning=no
17962 case `$LD -v 2>&1` in
43e02a8a 17963 *GNU\ gold*) supports_anon_versioning=yes ;;
1cf3d07d
SE
17964 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17965 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17966 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17967 *\ 2.11.*) ;; # other 2.11 versions
17968 *) supports_anon_versioning=yes ;;
17969 esac
17970
17971 # See if GNU ld supports shared libraries.
17972 case $host_os in
ed44a2c7 17973 aix[3-9]*)
1cf3d07d
SE
17974 # On AIX/PPC, the GNU linker is very broken
17975 if test "$host_cpu" != ia64; then
17976 ld_shlibs_GCJ=no
17977 cat <<_LT_EOF 1>&2
17978
43e02a8a 17979*** Warning: the GNU linker, at least up to release 2.19, is reported
1cf3d07d
SE
17980*** to be unable to reliably create shared libraries on AIX.
17981*** Therefore, libtool is disabling shared libraries support. If you
43e02a8a
RW
17982*** really care for shared libraries, you may want to install binutils
17983*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17984*** You will then need to restart the configuration process.
1cf3d07d
SE
17985
17986_LT_EOF
17987 fi
17988 ;;
17989
17990 amigaos*)
0da7a284
PG
17991 case $host_cpu in
17992 powerpc)
17993 # see comment about AmigaOS4 .so support
17994 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17995 archive_expsym_cmds_GCJ=''
17996 ;;
17997 m68k)
17998 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)'
17999 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18000 hardcode_minus_L_GCJ=yes
18001 ;;
18002 esac
1cf3d07d
SE
18003 ;;
18004
18005 beos*)
18006 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18007 allow_undefined_flag_GCJ=unsupported
18008 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18009 # support --undefined. This deserves some investigation. FIXME
18010 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18011 else
18012 ld_shlibs_GCJ=no
18013 fi
18014 ;;
18015
0da7a284 18016 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
18017 # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18018 # as there is no search path for DLLs.
18019 hardcode_libdir_flag_spec_GCJ='-L$libdir'
43e02a8a 18020 export_dynamic_flag_spec_GCJ='${wl}--export-all-symbols'
1cf3d07d
SE
18021 allow_undefined_flag_GCJ=unsupported
18022 always_export_symbols_GCJ=no
18023 enable_shared_with_static_runtimes_GCJ=yes
18024 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18025
18026 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18027 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18028 # If the export-symbols file already is a .def file (1st line
18029 # is EXPORTS), use it as is; otherwise, prepend...
18030 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18031 cp $export_symbols $output_objdir/$soname.def;
18032 else
18033 echo EXPORTS > $output_objdir/$soname.def;
18034 cat $export_symbols >> $output_objdir/$soname.def;
18035 fi~
18036 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18037 else
18038 ld_shlibs_GCJ=no
18039 fi
18040 ;;
18041
43e02a8a
RW
18042 haiku*)
18043 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18044 link_all_deplibs_GCJ=yes
18045 ;;
18046
1cf3d07d
SE
18047 interix[3-9]*)
18048 hardcode_direct_GCJ=no
18049 hardcode_shlibpath_var_GCJ=no
18050 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18051 export_dynamic_flag_spec_GCJ='${wl}-E'
18052 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18053 # Instead, shared libraries are loaded at an image base (0x10000000 by
18054 # default) and relocated if they conflict, which is a slow very memory
18055 # consuming and fragmenting process. To avoid this, we pick a random,
18056 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18057 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18058 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'
18059 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'
18060 ;;
18061
7a9d3fe8 18062 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
18063 tmp_diet=no
18064 if test "$host_os" = linux-dietlibc; then
18065 case $cc_basename in
18066 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
18067 esac
18068 fi
18069 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
18070 && test "$tmp_diet" = no
18071 then
18072 tmp_addflag=
0da7a284 18073 tmp_sharedflag='-shared'
1cf3d07d
SE
18074 case $cc_basename,$host_cpu in
18075 pgcc*) # Portland Group C compiler
43e02a8a 18076 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
18077 tmp_addflag=' $pic_flag'
18078 ;;
43e02a8a
RW
18079 pgf77* | pgf90* | pgf95* | pgfortran*)
18080 # Portland Group f77 and f90 compilers
18081 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
18082 tmp_addflag=' $pic_flag -Mnomain' ;;
18083 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18084 tmp_addflag=' -i_dynamic' ;;
18085 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18086 tmp_addflag=' -i_dynamic -nofor_main' ;;
18087 ifc* | ifort*) # Intel Fortran compiler
18088 tmp_addflag=' -nofor_main' ;;
0da7a284
PG
18089 lf95*) # Lahey Fortran 8.1
18090 whole_archive_flag_spec_GCJ=
18091 tmp_sharedflag='--shared' ;;
43e02a8a 18092 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
0da7a284
PG
18093 tmp_sharedflag='-qmkshrobj'
18094 tmp_addflag= ;;
43e02a8a
RW
18095 nvcc*) # Cuda Compiler Driver 2.2
18096 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'
18097 compiler_needs_object_GCJ=yes
18098 ;;
1cf3d07d
SE
18099 esac
18100 case `$CC -V 2>&1 | sed 5q` in
18101 *Sun\ C*) # Sun C 5.9
43e02a8a 18102 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
18103 compiler_needs_object_GCJ=yes
18104 tmp_sharedflag='-G' ;;
18105 *Sun\ F*) # Sun Fortran 8.3
18106 tmp_sharedflag='-G' ;;
1cf3d07d
SE
18107 esac
18108 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18109
18110 if test "x$supports_anon_versioning" = xyes; then
18111 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18112 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18113 echo "local: *; };" >> $output_objdir/$libname.ver~
18114 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18115 fi
0da7a284
PG
18116
18117 case $cc_basename in
43e02a8a 18118 xlf* | bgf* | bgxlf* | mpixlf*)
0da7a284
PG
18119 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
18120 whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
18121 hardcode_libdir_flag_spec_GCJ=
18122 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18123 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
18124 if test "x$supports_anon_versioning" = xyes; then
18125 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18126 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18127 echo "local: *; };" >> $output_objdir/$libname.ver~
18128 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
18129 fi
18130 ;;
18131 esac
1cf3d07d
SE
18132 else
18133 ld_shlibs_GCJ=no
18134 fi
18135 ;;
18136
18137 netbsd*)
18138 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18139 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18140 wlarc=
18141 else
18142 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18143 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18144 fi
18145 ;;
18146
18147 solaris*)
18148 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
18149 ld_shlibs_GCJ=no
18150 cat <<_LT_EOF 1>&2
18151
18152*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18153*** create shared libraries on Solaris systems. Therefore, libtool
18154*** is disabling shared libraries support. We urge you to upgrade GNU
18155*** binutils to release 2.9.1 or newer. Another option is to modify
18156*** your PATH or compiler configuration so that the native linker is
18157*** used, and then restart.
18158
18159_LT_EOF
18160 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18161 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18162 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18163 else
18164 ld_shlibs_GCJ=no
18165 fi
18166 ;;
18167
18168 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18169 case `$LD -v 2>&1` in
18170 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18171 ld_shlibs_GCJ=no
18172 cat <<_LT_EOF 1>&2
18173
18174*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18175*** reliably create shared libraries on SCO systems. Therefore, libtool
18176*** is disabling shared libraries support. We urge you to upgrade GNU
18177*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18178*** your PATH or compiler configuration so that the native linker is
18179*** used, and then restart.
18180
18181_LT_EOF
18182 ;;
18183 *)
18184 # For security reasons, it is highly recommended that you always
18185 # use absolute paths for naming shared libraries, and exclude the
18186 # DT_RUNPATH tag from executables and libraries. But doing so
18187 # requires that you compile everything twice, which is a pain.
18188 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18189 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18190 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18191 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18192 else
18193 ld_shlibs_GCJ=no
18194 fi
18195 ;;
18196 esac
18197 ;;
18198
18199 sunos4*)
18200 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18201 wlarc=
18202 hardcode_direct_GCJ=yes
18203 hardcode_shlibpath_var_GCJ=no
18204 ;;
18205
18206 *)
18207 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18208 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18209 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18210 else
18211 ld_shlibs_GCJ=no
18212 fi
18213 ;;
18214 esac
18215
18216 if test "$ld_shlibs_GCJ" = no; then
18217 runpath_var=
18218 hardcode_libdir_flag_spec_GCJ=
18219 export_dynamic_flag_spec_GCJ=
18220 whole_archive_flag_spec_GCJ=
18221 fi
18222 else
18223 # PORTME fill in a description of your system's linker (not GNU ld)
18224 case $host_os in
18225 aix3*)
18226 allow_undefined_flag_GCJ=unsupported
18227 always_export_symbols_GCJ=yes
18228 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'
18229 # Note: this linker hardcodes the directories in LIBPATH if there
18230 # are no directories specified by -L.
18231 hardcode_minus_L_GCJ=yes
18232 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18233 # Neither direct hardcoding nor static linking is supported with a
18234 # broken collect2.
18235 hardcode_direct_GCJ=unsupported
18236 fi
18237 ;;
18238
ed44a2c7 18239 aix[4-9]*)
1cf3d07d
SE
18240 if test "$host_cpu" = ia64; then
18241 # On IA64, the linker does run time linking by default, so we don't
18242 # have to do anything special.
18243 aix_use_runtimelinking=no
18244 exp_sym_flag='-Bexport'
18245 no_entry_flag=""
18246 else
18247 # If we're using GNU nm, then we don't want the "-C" option.
18248 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
18249 # Also, AIX nm treats weak defined symbols like other global
18250 # defined symbols, whereas GNU nm marks them as "W".
1cf3d07d 18251 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 18252 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
18253 else
18254 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'
18255 fi
18256 aix_use_runtimelinking=no
18257
18258 # Test if we are trying to use run time linking or normal
18259 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18260 # need to do runtime linking.
ed44a2c7 18261 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
18262 for ld_flag in $LDFLAGS; do
18263 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18264 aix_use_runtimelinking=yes
18265 break
18266 fi
18267 done
18268 ;;
18269 esac
18270
18271 exp_sym_flag='-bexport'
18272 no_entry_flag='-bnoentry'
18273 fi
18274
18275 # When large executables or shared objects are built, AIX ld can
18276 # have problems creating the table of contents. If linking a library
18277 # or program results in "error TOC overflow" add -mminimal-toc to
18278 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18279 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18280
18281 archive_cmds_GCJ=''
18282 hardcode_direct_GCJ=yes
18283 hardcode_direct_absolute_GCJ=yes
18284 hardcode_libdir_separator_GCJ=':'
18285 link_all_deplibs_GCJ=yes
18286 file_list_spec_GCJ='${wl}-f,'
18287
18288 if test "$GCC" = yes; then
18289 case $host_os in aix4.[012]|aix4.[012].*)
18290 # We only want to do this on AIX 4.2 and lower, the check
18291 # below for broken collect2 doesn't work under 4.3+
18292 collect2name=`${CC} -print-prog-name=collect2`
18293 if test -f "$collect2name" &&
18294 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18295 then
18296 # We have reworked collect2
18297 :
18298 else
18299 # We have old collect2
18300 hardcode_direct_GCJ=unsupported
18301 # It fails to find uninstalled libraries when the uninstalled
18302 # path is not listed in the libpath. Setting hardcode_minus_L
18303 # to unsupported forces relinking
18304 hardcode_minus_L_GCJ=yes
18305 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18306 hardcode_libdir_separator_GCJ=
18307 fi
18308 ;;
18309 esac
18310 shared_flag='-shared'
18311 if test "$aix_use_runtimelinking" = yes; then
18312 shared_flag="$shared_flag "'${wl}-G'
18313 fi
18314 else
18315 # not using gcc
18316 if test "$host_cpu" = ia64; then
18317 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18318 # chokes on -Wl,-G. The following line is correct:
18319 shared_flag='-G'
18320 else
18321 if test "$aix_use_runtimelinking" = yes; then
18322 shared_flag='${wl}-G'
18323 else
18324 shared_flag='${wl}-bM:SRE'
18325 fi
18326 fi
18327 fi
18328
0da7a284 18329 export_dynamic_flag_spec_GCJ='${wl}-bexpall'
1cf3d07d
SE
18330 # It seems that -bexpall does not export symbols beginning with
18331 # underscore (_), so it is better to generate a list of symbols to export.
18332 always_export_symbols_GCJ=yes
18333 if test "$aix_use_runtimelinking" = yes; then
18334 # Warning - without using the other runtime loading flags (-brtl),
18335 # -berok will link without error, but may produce a broken library.
18336 allow_undefined_flag_GCJ='-berok'
18337 # Determine the default libpath from the value encoded in an
18338 # empty executable.
18339 if test x$gcc_no_link = xyes; then
5213506e 18340 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 18341fi
5213506e 18342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8107bc83 18343/* end confdefs.h. */
1cf3d07d 18344
8107bc83
KC
18345int
18346main ()
18347{
1cf3d07d 18348
8107bc83
KC
18349 ;
18350 return 0;
18351}
18352_ACEOF
5213506e 18353if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
18354
18355lt_aix_libpath_sed='
18356 /Import File Strings/,/^$/ {
18357 /^0/ {
18358 s/^0 *\(.*\)$/\1/
18359 p
18360 }
18361 }'
18362aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18363# Check for a 64-bit object if we didn't find anything.
18364if test -z "$aix_libpath"; then
18365 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8107bc83 18366fi
44bffd9f 18367fi
5213506e
RW
18368rm -f core conftest.err conftest.$ac_objext \
18369 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
18370if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18371
18372 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
43e02a8a 18373 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
18374 else
18375 if test "$host_cpu" = ia64; then
18376 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18377 allow_undefined_flag_GCJ="-z nodefs"
18378 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"
18379 else
18380 # Determine the default libpath from the value encoded in an
18381 # empty executable.
18382 if test x$gcc_no_link = xyes; then
5213506e 18383 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 18384fi
5213506e 18385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44bffd9f 18386/* end confdefs.h. */
1cf3d07d 18387
8107bc83
KC
18388int
18389main ()
18390{
1cf3d07d
SE
18391
18392 ;
18393 return 0;
44bffd9f
AT
18394}
18395_ACEOF
5213506e 18396if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
18397
18398lt_aix_libpath_sed='
18399 /Import File Strings/,/^$/ {
18400 /^0/ {
18401 s/^0 *\(.*\)$/\1/
18402 p
18403 }
18404 }'
18405aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18406# Check for a 64-bit object if we didn't find anything.
18407if test -z "$aix_libpath"; then
18408 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18409fi
44bffd9f 18410fi
5213506e
RW
18411rm -f core conftest.err conftest.$ac_objext \
18412 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
18413if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18414
18415 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18416 # Warning - without using the other run time loading flags,
18417 # -berok will link without error, but may produce a broken library.
18418 no_undefined_flag_GCJ=' ${wl}-bernotok'
18419 allow_undefined_flag_GCJ=' ${wl}-berok'
43e02a8a
RW
18420 if test "$with_gnu_ld" = yes; then
18421 # We only use this code for GNU lds that support --whole-archive.
18422 whole_archive_flag_spec_GCJ='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18423 else
18424 # Exported symbols can be pulled into shared objects from archives
18425 whole_archive_flag_spec_GCJ='$convenience'
18426 fi
1cf3d07d
SE
18427 archive_cmds_need_lc_GCJ=yes
18428 # This is similar to how AIX traditionally builds its shared libraries.
18429 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'
18430 fi
18431 fi
18432 ;;
44bffd9f 18433
1cf3d07d 18434 amigaos*)
0da7a284
PG
18435 case $host_cpu in
18436 powerpc)
18437 # see comment about AmigaOS4 .so support
18438 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18439 archive_expsym_cmds_GCJ=''
18440 ;;
18441 m68k)
18442 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)'
18443 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18444 hardcode_minus_L_GCJ=yes
18445 ;;
18446 esac
1cf3d07d 18447 ;;
44bffd9f 18448
1cf3d07d
SE
18449 bsdi[45]*)
18450 export_dynamic_flag_spec_GCJ=-rdynamic
18451 ;;
44bffd9f 18452
0da7a284 18453 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
18454 # When not using gcc, we currently assume that we are using
18455 # Microsoft Visual C++.
18456 # hardcode_libdir_flag_spec is actually meaningless, as there is
18457 # no search path for DLLs.
18458 hardcode_libdir_flag_spec_GCJ=' '
18459 allow_undefined_flag_GCJ=unsupported
18460 # Tell ltmain to make .lib files, not .a files.
18461 libext=lib
18462 # Tell ltmain to make .dll files, not .so files.
18463 shrext_cmds=".dll"
18464 # FIXME: Setting linknames here is a bad hack.
43e02a8a 18465 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1cf3d07d
SE
18466 # The linker will automatically build a .lib file if we build a DLL.
18467 old_archive_from_new_cmds_GCJ='true'
18468 # FIXME: Should let the user specify the lib program.
18469 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18470 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18471 enable_shared_with_static_runtimes_GCJ=yes
18472 ;;
5aac1dac 18473
1cf3d07d 18474 darwin* | rhapsody*)
ee9dd372 18475
0da7a284
PG
18476
18477 archive_cmds_need_lc_GCJ=no
18478 hardcode_direct_GCJ=no
18479 hardcode_automatic_GCJ=yes
18480 hardcode_shlibpath_var_GCJ=unsupported
43e02a8a
RW
18481 if test "$lt_cv_ld_force_load" = "yes"; then
18482 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\"`'
18483 else
18484 whole_archive_flag_spec_GCJ=''
18485 fi
0da7a284
PG
18486 link_all_deplibs_GCJ=yes
18487 allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
18488 case $cc_basename in
18489 ifort*) _lt_dar_can_shared=yes ;;
18490 *) _lt_dar_can_shared=$GCC ;;
18491 esac
18492 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 18493 output_verbose_link_cmd=func_echo_all
0da7a284
PG
18494 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}"
18495 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18496 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}"
18497 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}"
18498
18499 else
18500 ld_shlibs_GCJ=no
18501 fi
18502
1cf3d07d 18503 ;;
5aac1dac 18504
1cf3d07d
SE
18505 dgux*)
18506 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18507 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18508 hardcode_shlibpath_var_GCJ=no
18509 ;;
5aac1dac 18510
1cf3d07d
SE
18511 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18512 # support. Future versions do this automatically, but an explicit c++rt0.o
18513 # does not break anything, and helps significantly (at the cost of a little
18514 # extra space).
18515 freebsd2.2*)
18516 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18517 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18518 hardcode_direct_GCJ=yes
18519 hardcode_shlibpath_var_GCJ=no
18520 ;;
5aac1dac 18521
1cf3d07d
SE
18522 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18523 freebsd2*)
18524 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18525 hardcode_direct_GCJ=yes
18526 hardcode_minus_L_GCJ=yes
18527 hardcode_shlibpath_var_GCJ=no
18528 ;;
5aac1dac 18529
1cf3d07d
SE
18530 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18531 freebsd* | dragonfly*)
18532 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18533 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18534 hardcode_direct_GCJ=yes
18535 hardcode_shlibpath_var_GCJ=no
18536 ;;
5aac1dac 18537
1cf3d07d
SE
18538 hpux9*)
18539 if test "$GCC" = yes; then
18540 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'
18541 else
18542 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'
18543 fi
18544 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18545 hardcode_libdir_separator_GCJ=:
18546 hardcode_direct_GCJ=yes
18547
18548 # hardcode_minus_L: Not really in the search PATH,
18549 # but as the default location of the library.
18550 hardcode_minus_L_GCJ=yes
18551 export_dynamic_flag_spec_GCJ='${wl}-E'
18552 ;;
5aac1dac 18553
1cf3d07d 18554 hpux10*)
43e02a8a 18555 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
18556 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18557 else
18558 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18559 fi
18560 if test "$with_gnu_ld" = no; then
18561 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18562 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18563 hardcode_libdir_separator_GCJ=:
18564 hardcode_direct_GCJ=yes
18565 hardcode_direct_absolute_GCJ=yes
18566 export_dynamic_flag_spec_GCJ='${wl}-E'
18567 # hardcode_minus_L: Not really in the search PATH,
18568 # but as the default location of the library.
18569 hardcode_minus_L_GCJ=yes
18570 fi
18571 ;;
5aac1dac 18572
1cf3d07d 18573 hpux11*)
43e02a8a 18574 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
18575 case $host_cpu in
18576 hppa*64*)
18577 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18578 ;;
18579 ia64*)
0da7a284 18580 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
18581 ;;
18582 *)
18583 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18584 ;;
18585 esac
18586 else
18587 case $host_cpu in
18588 hppa*64*)
18589 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18590 ;;
18591 ia64*)
18592 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18593 ;;
18594 *)
43e02a8a 18595 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
18596 ;;
18597 esac
18598 fi
18599 if test "$with_gnu_ld" = no; then
18600 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18601 hardcode_libdir_separator_GCJ=:
18602
18603 case $host_cpu in
18604 hppa*64*|ia64*)
18605 hardcode_direct_GCJ=no
18606 hardcode_shlibpath_var_GCJ=no
18607 ;;
18608 *)
18609 hardcode_direct_GCJ=yes
18610 hardcode_direct_absolute_GCJ=yes
18611 export_dynamic_flag_spec_GCJ='${wl}-E'
18612
18613 # hardcode_minus_L: Not really in the search PATH,
18614 # but as the default location of the library.
18615 hardcode_minus_L_GCJ=yes
18616 ;;
18617 esac
18618 fi
18619 ;;
c4ebd83d 18620
1cf3d07d
SE
18621 irix5* | irix6* | nonstopux*)
18622 if test "$GCC" = yes; then
43e02a8a 18623 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
18624 # Try to use the -exported_symbol ld option, if it does not
18625 # work, assume that -exports_file does not work either and
18626 # implicitly export all symbols.
18627 save_LDFLAGS="$LDFLAGS"
18628 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18629 if test x$gcc_no_link = xyes; then
5213506e 18630 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ee9dd372 18631fi
5213506e
RW
18632cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18633/* end confdefs.h. */
1cf3d07d
SE
18634int foo(void) {}
18635_ACEOF
5213506e 18636if ac_fn_c_try_link "$LINENO"; then :
43e02a8a 18637 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 18638
97b8365c 18639fi
5213506e
RW
18640rm -f core conftest.err conftest.$ac_objext \
18641 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
18642 LDFLAGS="$save_LDFLAGS"
18643 else
43e02a8a
RW
18644 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'
18645 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
18646 fi
18647 archive_cmds_need_lc_GCJ='no'
18648 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18649 hardcode_libdir_separator_GCJ=:
18650 inherit_rpath_GCJ=yes
18651 link_all_deplibs_GCJ=yes
18652 ;;
97b8365c 18653
1cf3d07d
SE
18654 netbsd*)
18655 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18656 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18657 else
18658 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18659 fi
18660 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18661 hardcode_direct_GCJ=yes
18662 hardcode_shlibpath_var_GCJ=no
18663 ;;
97b8365c 18664
1cf3d07d
SE
18665 newsos6)
18666 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18667 hardcode_direct_GCJ=yes
18668 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18669 hardcode_libdir_separator_GCJ=:
18670 hardcode_shlibpath_var_GCJ=no
18671 ;;
97b8365c 18672
1cf3d07d
SE
18673 *nto* | *qnx*)
18674 ;;
ee9dd372 18675
1cf3d07d 18676 openbsd*)
0da7a284
PG
18677 if test -f /usr/libexec/ld.so; then
18678 hardcode_direct_GCJ=yes
18679 hardcode_shlibpath_var_GCJ=no
18680 hardcode_direct_absolute_GCJ=yes
18681 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 18682 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
0da7a284 18683 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 18684 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
0da7a284
PG
18685 export_dynamic_flag_spec_GCJ='${wl}-E'
18686 else
18687 case $host_os in
18688 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18689 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18690 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18691 ;;
18692 *)
18693 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18694 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18695 ;;
18696 esac
18697 fi
18698 else
18699 ld_shlibs_GCJ=no
1cf3d07d
SE
18700 fi
18701 ;;
5aac1dac 18702
1cf3d07d
SE
18703 os2*)
18704 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18705 hardcode_minus_L_GCJ=yes
18706 allow_undefined_flag_GCJ=unsupported
43e02a8a 18707 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
18708 old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18709 ;;
e3f92d3b 18710
1cf3d07d
SE
18711 osf3*)
18712 if test "$GCC" = yes; then
18713 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 18714 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
18715 else
18716 allow_undefined_flag_GCJ=' -expect_unresolved \*'
43e02a8a 18717 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
18718 fi
18719 archive_cmds_need_lc_GCJ='no'
18720 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18721 hardcode_libdir_separator_GCJ=:
18722 ;;
5aac1dac 18723
1cf3d07d
SE
18724 osf4* | osf5*) # as osf3* with the addition of -msym flag
18725 if test "$GCC" = yes; then
18726 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 18727 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
18728 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18729 else
18730 allow_undefined_flag_GCJ=' -expect_unresolved \*'
43e02a8a 18731 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 18732 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 18733 $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
18734
18735 # Both c and cxx compiler support -rpath directly
18736 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18737 fi
18738 archive_cmds_need_lc_GCJ='no'
18739 hardcode_libdir_separator_GCJ=:
18740 ;;
5aac1dac 18741
1cf3d07d
SE
18742 solaris*)
18743 no_undefined_flag_GCJ=' -z defs'
18744 if test "$GCC" = yes; then
18745 wlarc='${wl}'
18746 archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18747 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18748 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18749 else
18750 case `$CC -V 2>&1` in
18751 *"Compilers 5.0"*)
18752 wlarc=''
18753 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18754 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18755 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18756 ;;
18757 *)
18758 wlarc='${wl}'
18759 archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18760 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18761 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18762 ;;
18763 esac
18764 fi
18765 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18766 hardcode_shlibpath_var_GCJ=no
18767 case $host_os in
18768 solaris2.[0-5] | solaris2.[0-5].*) ;;
18769 *)
18770 # The compiler driver will combine and reorder linker options,
18771 # but understands `-z linker_flag'. GCC discards it without `$wl',
18772 # but is careful enough not to reorder.
18773 # Supported since Solaris 2.6 (maybe 2.5.1?)
18774 if test "$GCC" = yes; then
18775 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18776 else
18777 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18778 fi
18779 ;;
18780 esac
18781 link_all_deplibs_GCJ=yes
18782 ;;
5aac1dac 18783
1cf3d07d
SE
18784 sunos4*)
18785 if test "x$host_vendor" = xsequent; then
18786 # Use $CC to link under sequent, because it throws in some extra .o
18787 # files that make .init and .fini sections work.
18788 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18789 else
18790 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18791 fi
18792 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18793 hardcode_direct_GCJ=yes
18794 hardcode_minus_L_GCJ=yes
18795 hardcode_shlibpath_var_GCJ=no
18796 ;;
5aac1dac 18797
1cf3d07d
SE
18798 sysv4)
18799 case $host_vendor in
18800 sni)
18801 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18802 hardcode_direct_GCJ=yes # is this really true???
18803 ;;
18804 siemens)
18805 ## LD is ld it makes a PLAMLIB
18806 ## CC just makes a GrossModule.
18807 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18808 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18809 hardcode_direct_GCJ=no
18810 ;;
18811 motorola)
18812 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18813 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18814 ;;
18815 esac
18816 runpath_var='LD_RUN_PATH'
18817 hardcode_shlibpath_var_GCJ=no
18818 ;;
84af16a6 18819
1cf3d07d
SE
18820 sysv4.3*)
18821 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18822 hardcode_shlibpath_var_GCJ=no
18823 export_dynamic_flag_spec_GCJ='-Bexport'
18824 ;;
84af16a6 18825
1cf3d07d
SE
18826 sysv4*MP*)
18827 if test -d /usr/nec; then
18828 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18829 hardcode_shlibpath_var_GCJ=no
18830 runpath_var=LD_RUN_PATH
18831 hardcode_runpath_var=yes
18832 ld_shlibs_GCJ=yes
18833 fi
18834 ;;
5aac1dac 18835
1cf3d07d
SE
18836 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18837 no_undefined_flag_GCJ='${wl}-z,text'
18838 archive_cmds_need_lc_GCJ=no
18839 hardcode_shlibpath_var_GCJ=no
18840 runpath_var='LD_RUN_PATH'
ed698112 18841
1cf3d07d
SE
18842 if test "$GCC" = yes; then
18843 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18844 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18845 else
18846 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18847 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18848 fi
18849 ;;
ed698112 18850
1cf3d07d
SE
18851 sysv5* | sco3.2v5* | sco5v6*)
18852 # Note: We can NOT use -z defs as we might desire, because we do not
18853 # link with -lc, and that would cause any symbols used from libc to
18854 # always be unresolved, which means just about no library would
18855 # ever link correctly. If we're not using GNU ld we use -z text
18856 # though, which does catch some bad symbols but isn't as heavy-handed
18857 # as -z defs.
18858 no_undefined_flag_GCJ='${wl}-z,text'
18859 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18860 archive_cmds_need_lc_GCJ=no
18861 hardcode_shlibpath_var_GCJ=no
18862 hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
18863 hardcode_libdir_separator_GCJ=':'
18864 link_all_deplibs_GCJ=yes
18865 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18866 runpath_var='LD_RUN_PATH'
18867
18868 if test "$GCC" = yes; then
18869 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18870 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18871 else
18872 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18873 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18874 fi
18875 ;;
ed698112 18876
1cf3d07d
SE
18877 uts4*)
18878 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18879 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18880 hardcode_shlibpath_var_GCJ=no
18881 ;;
dafb7f3f 18882
1cf3d07d
SE
18883 *)
18884 ld_shlibs_GCJ=no
18885 ;;
18886 esac
b6121641 18887
1cf3d07d
SE
18888 if test x$host_vendor = xsni; then
18889 case $host in
18890 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18891 export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
18892 ;;
18893 esac
18894 fi
18895 fi
b6121641 18896
5213506e
RW
18897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
18898$as_echo "$ld_shlibs_GCJ" >&6; }
1cf3d07d 18899test "$ld_shlibs_GCJ" = no && can_build_shared=no
b6121641 18900
1cf3d07d 18901with_gnu_ld_GCJ=$with_gnu_ld
b6121641
TF
18902
18903
1cf3d07d
SE
18904
18905
18906
18907
18908#
18909# Do we need to explicitly link libc?
18910#
18911case "x$archive_cmds_need_lc_GCJ" in
18912x|xyes)
18913 # Assume -lc should be added
18914 archive_cmds_need_lc_GCJ=yes
18915
18916 if test "$enable_shared" = yes && test "$GCC" = yes; then
18917 case $archive_cmds_GCJ in
18918 *'~'*)
18919 # FIXME: we may have to deal with multi-command sequences.
18920 ;;
18921 '$CC '*)
18922 # Test whether the compiler implicitly links with -lc since on some
18923 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18924 # to ld, don't add -lc before -lgcc.
5213506e
RW
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18926$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18927if test "${lt_cv_archive_cmds_need_lc_GCJ+set}" = set; then :
18928 $as_echo_n "(cached) " >&6
baafc534
RW
18929else
18930 $RM conftest*
18931 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 18932
5213506e 18933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
18934 (eval $ac_compile) 2>&5
18935 ac_status=$?
5213506e
RW
18936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18937 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
18938 soname=conftest
18939 lib=conftest
18940 libobjs=conftest.$ac_objext
18941 deplibs=
18942 wl=$lt_prog_compiler_wl_GCJ
18943 pic_flag=$lt_prog_compiler_pic_GCJ
18944 compiler_flags=-v
18945 linker_flags=-v
18946 verstring=
18947 output_objdir=.
18948 libname=conftest
18949 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18950 allow_undefined_flag_GCJ=
5213506e 18951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d
SE
18952 (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18953 ac_status=$?
5213506e
RW
18954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18955 test $ac_status = 0; }
baafc534
RW
18956 then
18957 lt_cv_archive_cmds_need_lc_GCJ=no
18958 else
18959 lt_cv_archive_cmds_need_lc_GCJ=yes
18960 fi
18961 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18962 else
18963 cat conftest.err 1>&5
18964 fi
18965 $RM conftest*
18966
18967fi
5213506e
RW
18968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GCJ" >&5
18969$as_echo "$lt_cv_archive_cmds_need_lc_GCJ" >&6; }
baafc534 18970 archive_cmds_need_lc_GCJ=$lt_cv_archive_cmds_need_lc_GCJ
1cf3d07d
SE
18971 ;;
18972 esac
18973 fi
18974 ;;
0da7a284
PG
18975esac
18976
18977
18978
18979
18980
18981
18982
ed698112 18983
ed698112 18984
ed698112 18985
ed698112 18986
ed698112 18987
2622c79d 18988
ed698112 18989
2622c79d 18990
2622c79d 18991
2622c79d
RR
18992
18993
18994
18995
5950e016 18996
5950e016 18997
02731d29 18998
5950e016
BM
18999
19000
1cf3d07d 19001
1cf3d07d 19002
1cf3d07d 19003
2622c79d 19004
b9e6a2e5 19005
ade710a5 19006
b9e6a2e5 19007
b9e6a2e5 19008
1cf3d07d
SE
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
5213506e
RW
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19041$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
19042hardcode_action_GCJ=
19043if test -n "$hardcode_libdir_flag_spec_GCJ" ||
19044 test -n "$runpath_var_GCJ" ||
19045 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19046
19047 # We can hardcode non-existent directories.
19048 if test "$hardcode_direct_GCJ" != no &&
19049 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19050 # have to relink, otherwise we might link with an installed library
19051 # when we should be linking with a yet-to-be-installed one
19052 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19053 test "$hardcode_minus_L_GCJ" != no; then
19054 # Linking always hardcodes the temporary library directory.
19055 hardcode_action_GCJ=relink
19056 else
19057 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19058 hardcode_action_GCJ=immediate
19059 fi
b9e6a2e5 19060else
1cf3d07d
SE
19061 # We cannot hardcode anything, or else we can only hardcode existing
19062 # directories.
19063 hardcode_action_GCJ=unsupported
19064fi
5213506e
RW
19065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
19066$as_echo "$hardcode_action_GCJ" >&6; }
b9e6a2e5 19067
1cf3d07d
SE
19068if test "$hardcode_action_GCJ" = relink ||
19069 test "$inherit_rpath_GCJ" = yes; then
19070 # Fast installation is not supported
19071 enable_fast_install=no
19072elif test "$shlibpath_overrides_runpath" = yes ||
19073 test "$enable_shared" = no; then
19074 # Fast installation is not necessary
19075 enable_fast_install=needless
76b972d6 19076fi
b9e6a2e5 19077
1cf3d07d
SE
19078
19079
19080
19081
19082
19083
b9e6a2e5 19084fi
b9e6a2e5 19085
eecb7461 19086compiler_GCJ=${GCJ-gcj}
1cf3d07d
SE
19087ac_ext=c
19088ac_cpp='$CPP $CPPFLAGS'
19089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19091ac_compiler_gnu=$ac_cv_c_compiler_gnu
19092
7f40378f 19093
1cf3d07d 19094if test "x$CC" != xcc; then
5213506e
RW
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
19096$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
1cf3d07d 19097else
5213506e
RW
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
19099$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
1cf3d07d 19100fi
5213506e 19101set dummy $CC; ac_cc=`$as_echo "$2" |
1cf3d07d 19102 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5213506e
RW
19103if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
19104 $as_echo_n "(cached) " >&6
b9e6a2e5 19105else
5213506e 19106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
19107/* end confdefs.h. */
19108
19109int
19110main ()
19111{
19112
19113 ;
19114 return 0;
19115}
aad741f4 19116_ACEOF
1cf3d07d
SE
19117# Make sure it works both with $CC and with simple cc.
19118# We do the test twice because some compilers refuse to overwrite an
19119# existing .o file with -o, though they will create one.
5213506e
RW
19120ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19121rm -f conftest2.*
19122if { { case "(($ac_try" in
19123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19124 *) ac_try_echo=$ac_try;;
19125esac
19126eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19127$as_echo "$ac_try_echo"; } >&5
19128 (eval "$ac_try") 2>&5
19129 ac_status=$?
19130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19131 test $ac_status = 0; } &&
19132 test -f conftest2.$ac_objext && { { case "(($ac_try" in
19133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19134 *) ac_try_echo=$ac_try;;
19135esac
19136eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19137$as_echo "$ac_try_echo"; } >&5
19138 (eval "$ac_try") 2>&5
aad741f4 19139 ac_status=$?
5213506e
RW
19140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19141 test $ac_status = 0; };
1cf3d07d
SE
19142then
19143 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
19144 if test "x$CC" != xcc; then
19145 # Test first that cc exists at all.
19146 if { ac_try='cc -c conftest.$ac_ext >&5'
5213506e
RW
19147 { { case "(($ac_try" in
19148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19149 *) ac_try_echo=$ac_try;;
19150esac
19151eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19152$as_echo "$ac_try_echo"; } >&5
19153 (eval "$ac_try") 2>&5
19154 ac_status=$?
19155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19156 test $ac_status = 0; }; }; then
19157 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19158 rm -f conftest2.*
19159 if { { case "(($ac_try" in
19160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19161 *) ac_try_echo=$ac_try;;
19162esac
19163eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19164$as_echo "$ac_try_echo"; } >&5
19165 (eval "$ac_try") 2>&5
19166 ac_status=$?
19167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19168 test $ac_status = 0; } &&
19169 test -f conftest2.$ac_objext && { { case "(($ac_try" in
19170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19171 *) ac_try_echo=$ac_try;;
19172esac
19173eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19174$as_echo "$ac_try_echo"; } >&5
19175 (eval "$ac_try") 2>&5
b9e6a2e5 19176 ac_status=$?
5213506e
RW
19177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19178 test $ac_status = 0; };
1cf3d07d
SE
19179 then
19180 # cc works too.
19181 :
19182 else
19183 # cc exists but doesn't like -o.
19184 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19185 fi
19186 fi
19187 fi
b9e6a2e5 19188else
1cf3d07d 19189 eval ac_cv_prog_cc_${ac_cc}_c_o=no
b9e6a2e5 19190fi
5213506e 19191rm -f core conftest*
aad741f4 19192
7f40378f 19193fi
5213506e
RW
19194if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
19195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19196$as_echo "yes" >&6; }
7f40378f 19197else
5213506e
RW
19198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19199$as_echo "no" >&6; }
7f40378f 19200
5213506e 19201$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7f40378f 19202
7f40378f 19203fi
b9e6a2e5 19204
1cf3d07d
SE
19205# FIXME: we rely on the cache variable name because
19206# there is no other way.
19207set dummy $CC
5213506e
RW
19208am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19209eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
19210if test "$am_t" != yes; then
1cf3d07d
SE
19211 # Losing compiler, so override with the script.
19212 # FIXME: It is wrong to rewrite CC.
19213 # But if we don't then we get into trouble of one sort or another.
19214 # A longer-term fix would be to have automake use am__CC in this case,
19215 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19216 CC="$am_aux_dir/compile $CC"
b9e6a2e5 19217fi
b9e6a2e5 19218
b9e6a2e5 19219
5950e016 19220
d4708d9d 19221
5213506e 19222
1cf3d07d 19223subdirs="$subdirs classpath libltdl"
d4708d9d
JH
19224
19225
1cf3d07d 19226# The -no-testsuite modules omit the test subdir.
5213506e 19227 if test -d $srcdir/testsuite; then
1cf3d07d
SE
19228 TESTSUBDIR_TRUE=
19229 TESTSUBDIR_FALSE='#'
d4708d9d 19230else
1cf3d07d
SE
19231 TESTSUBDIR_TRUE='#'
19232 TESTSUBDIR_FALSE=
d4708d9d 19233fi
d4708d9d 19234
d4708d9d 19235
1cf3d07d
SE
19236# Should the runtime set system properties by examining the
19237# environment variable GCJ_PROPERTIES?
5213506e
RW
19238# Check whether --enable-getenv-properties was given.
19239if test "${enable_getenv_properties+set}" = set; then :
19240 enableval=$enable_getenv_properties;
19241fi
1cf3d07d 19242
1cf3d07d
SE
19243
19244# Whether GCJ_PROPERTIES is used depends on the target.
19245if test -z "$enable_getenv_properties"; then
19246 enable_getenv_properties=${enable_getenv_properties_default-yes}
19247fi
19248if test "$enable_getenv_properties" = no; then
d4708d9d 19249
5213506e 19250$as_echo "#define DISABLE_GETENV_PROPERTIES 1" >>confdefs.h
d4708d9d 19251
1cf3d07d 19252fi
d4708d9d 19253
1cf3d07d
SE
19254# Whether we should use arguments to main()
19255if test -z "$enable_main_args"; then
19256 enable_main_args=${enable_main_args_default-yes}
47742ccd 19257fi
1cf3d07d 19258if test "$enable_main_args" = no; then
47742ccd 19259
5213506e 19260$as_echo "#define DISABLE_MAIN_ARGS 1" >>confdefs.h
47742ccd
JJ
19261
19262fi
47742ccd 19263
1cf3d07d
SE
19264
19265# Should we use hashtable-based synchronization?
19266# Currently works only for Linux X86/ia64
19267# Typically faster and more space-efficient
5213506e
RW
19268# Check whether --enable-hash-synchronization was given.
19269if test "${enable_hash_synchronization+set}" = set; then :
19270 enableval=$enable_hash_synchronization;
19271fi
1cf3d07d 19272
1cf3d07d
SE
19273
19274if test -z "$enable_hash_synchronization"; then
19275 enable_hash_synchronization=$enable_hash_synchronization_default
47742ccd 19276fi
47742ccd
JJ
19277
19278
1cf3d07d
SE
19279install_ecj_jar=no
19280ECJ_BUILD_JAR=
19281ECJ_JAR=
19282
5213506e
RW
19283# Check whether --with-ecj-jar was given.
19284if test "${with_ecj_jar+set}" = set; then :
19285 withval=$with_ecj_jar; ECJ_JAR=$withval
47742ccd 19286else
1cf3d07d
SE
19287 if test -f $multi_basedir/ecj.jar; then
19288 ECJ_BUILD_JAR=$multi_basedir/ecj.jar
19289 ECJ_JAR='$(jardir)/ecj.jar'
19290 install_ecj_jar=yes
19291 fi
5213506e 19292fi
1cf3d07d
SE
19293
19294
19295
5213506e 19296 if test "$ECJ_JAR" != ""; then
1cf3d07d
SE
19297 BUILD_ECJ1_TRUE=
19298 BUILD_ECJ1_FALSE='#'
19299else
19300 BUILD_ECJ1_TRUE='#'
19301 BUILD_ECJ1_FALSE=
47742ccd
JJ
19302fi
19303
5213506e 19304 if test $install_ecj_jar = yes; then
1cf3d07d
SE
19305 INSTALL_ECJ_JAR_TRUE=
19306 INSTALL_ECJ_JAR_FALSE='#'
19307else
19308 INSTALL_ECJ_JAR_TRUE='#'
19309 INSTALL_ECJ_JAR_FALSE=
d6c122f7
DD
19310fi
19311
19312
5950e016 19313
5213506e
RW
19314# Check whether --with-java-home was given.
19315if test "${with_java_home+set}" = set; then :
19316 withval=$with_java_home; JAVA_HOME="${withval}"
1cf3d07d
SE
19317else
19318 JAVA_HOME=""
5213506e 19319fi
ed698112 19320
5213506e 19321 if test ! -z "$JAVA_HOME"; then
1cf3d07d
SE
19322 JAVA_HOME_SET_TRUE=
19323 JAVA_HOME_SET_FALSE='#'
19324else
19325 JAVA_HOME_SET_TRUE='#'
19326 JAVA_HOME_SET_FALSE=
19327fi
ed698112
NN
19328
19329
02809848 19330
a507baad 19331suppress_libgcj_bc=no
5213506e
RW
19332# Check whether --enable-libgcj-bc was given.
19333if test "${enable_libgcj_bc+set}" = set; then :
19334 enableval=$enable_libgcj_bc; if test "$enable_libgcj_bc" = "no"; then
a507baad
DD
19335 suppress_libgcj_bc=yes
19336 fi
5213506e 19337fi
a507baad 19338
5213506e 19339 if test "$suppress_libgcj_bc" = "yes"; then
a507baad
DD
19340 SUPPRESS_LIBGCJ_BC_TRUE=
19341 SUPPRESS_LIBGCJ_BC_FALSE='#'
19342else
19343 SUPPRESS_LIBGCJ_BC_TRUE='#'
19344 SUPPRESS_LIBGCJ_BC_FALSE=
19345fi
19346
19347
c07cd2c7 19348build_libgcj_reduced_reflection=no
5213506e
RW
19349# Check whether --enable-reduced-reflection was given.
19350if test "${enable_reduced_reflection+set}" = set; then :
19351 enableval=$enable_reduced_reflection; if test "$enable_reduced_reflection" = "yes"; then
c07cd2c7
DD
19352 build_libgcj_reduced_reflection=yes
19353 fi
5213506e 19354fi
c07cd2c7 19355
5213506e 19356 if test "$build_libgcj_reduced_reflection" = "yes"; then
c07cd2c7
DD
19357 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
19358 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
19359else
19360 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
19361 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
19362fi
19363
19364
1cf3d07d 19365# What is the native OS API for MinGW?
02809848 19366
5213506e
RW
19367# Check whether --with-win32-nlsapi was given.
19368if test "${with_win32_nlsapi+set}" = set; then :
19369 withval=$with_win32_nlsapi; case "${withval}" in
1cf3d07d
SE
19370 ansi) with_win32_nlsapi=ansi ;;
19371 unicows) with_win32_nlsapi=unicows ;;
19372 unicode) with_win32_nlsapi=unicode ;;
5213506e 19373 *) as_fn_error "Bad value ${withval} for --with-win32-nlsapi." "$LINENO" 5 ;;
1cf3d07d
SE
19374esac
19375else
19376 with_win32_nlsapi=ansi
5213506e
RW
19377fi
19378
cad90591 19379
1cf3d07d
SE
19380case "${with_win32_nlsapi}" in
19381 unicows | unicode)
cad90591 19382
5213506e 19383$as_echo "#define MINGW_LIBGCJ_UNICODE 1" >>confdefs.h
cad90591 19384
1cf3d07d
SE
19385 ;;
19386esac
cad90591 19387
1cf3d07d
SE
19388# configure.host sets slow_pthread_self if the synchronization code should
19389# try to avoid pthread_self calls by caching thread IDs in a hashtable.
19390if test "${slow_pthread_self}" = "yes"; then
ed698112 19391
5213506e 19392$as_echo "#define SLOW_PTHREAD_SELF 1" >>confdefs.h
ed698112 19393
ed698112 19394fi
ed698112 19395
1cf3d07d 19396# Check for gc debugging. This option is handled both here and in the GC.
5213506e
RW
19397# Check whether --enable-gc-debug was given.
19398if test "${enable_gc_debug+set}" = set; then :
19399 enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then
ed698112 19400
5213506e 19401$as_echo "#define LIBGCJ_GC_DEBUG 1" >>confdefs.h
ade710a5 19402
1cf3d07d 19403 fi
5213506e
RW
19404fi
19405
ed698112 19406
1cf3d07d 19407# See if the user has the interpreter included.
5213506e
RW
19408# Check whether --enable-interpreter was given.
19409if test "${enable_interpreter+set}" = set; then :
19410 enableval=$enable_interpreter; if test "$enable_interpreter" = yes; then
1cf3d07d
SE
19411 # This can also be set in configure.host.
19412 libgcj_interpreter=yes
19413 elif test "$enable_interpreter" = no; then
19414 libgcj_interpreter=no
19415 fi
5213506e
RW
19416fi
19417
ed698112 19418
1cf3d07d 19419if test "$libgcj_interpreter" = yes; then
ed698112 19420
5213506e 19421$as_echo "#define INTERPRETER 1" >>confdefs.h
ed698112 19422
97b8365c 19423fi
1cf3d07d
SE
19424INTERPRETER="$libgcj_interpreter"
19425
5213506e 19426 if test "$libgcj_interpreter" = yes; then
86acf60c
DD
19427 INTERPRETER_TRUE=
19428 INTERPRETER_FALSE='#'
19429else
19430 INTERPRETER_TRUE='#'
19431 INTERPRETER_FALSE=
19432fi
19433
19434
5213506e
RW
19435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception model to use" >&5
19436$as_echo_n "checking for exception model to use... " >&6; }
19437ac_ext=cpp
1cf3d07d
SE
19438ac_cpp='$CXXCPP $CPPFLAGS'
19439ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19440ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19441ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19442
5213506e
RW
19443# Check whether --enable-sjlj-exceptions was given.
19444if test "${enable_sjlj_exceptions+set}" = set; then :
19445 enableval=$enable_sjlj_exceptions; :
1cf3d07d
SE
19446else
19447 cat > conftest.$ac_ext << EOF
bf382f5f 19448#line 19448 "configure"
1cf3d07d
SE
19449struct S { ~S(); };
19450void bar();
19451void foo()
19452{
19453 S s;
19454 bar();
19455}
19456EOF
19457old_CXXFLAGS="$CXXFLAGS"
19458CXXFLAGS=-S
5213506e 19459if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
19460 (eval $ac_compile) 2>&5
19461 ac_status=$?
5213506e
RW
19462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19463 test $ac_status = 0; }; then
1cf3d07d
SE
19464 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
19465 enable_sjlj_exceptions=yes
19466 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
19467 enable_sjlj_exceptions=no
48965b7c
MM
19468 elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
19469 # ARM EH ABI.
19470 enable_sjlj_exceptions=no
1cf3d07d 19471 fi
e3f92d3b 19472fi
1cf3d07d
SE
19473CXXFLAGS="$old_CXXFLAGS"
19474rm -f conftest*
5213506e
RW
19475fi
19476
1cf3d07d
SE
19477if test x$enable_sjlj_exceptions = xyes; then
19478
5213506e 19479$as_echo "#define SJLJ_EXCEPTIONS 1" >>confdefs.h
1cf3d07d
SE
19480
19481 ac_exception_model_name=sjlj
19482elif test x$enable_sjlj_exceptions = xno; then
19483 ac_exception_model_name="call frame"
19484else
5213506e 19485 as_fn_error "unable to detect exception model" "$LINENO" 5
e3f92d3b 19486fi
1cf3d07d
SE
19487ac_ext=c
19488ac_cpp='$CPP $CPPFLAGS'
19489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19491ac_compiler_gnu=$ac_cv_c_compiler_gnu
19492
5213506e
RW
19493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception_model_name" >&5
19494$as_echo "$ac_exception_model_name" >&6; }
1cf3d07d
SE
19495
19496# If we are non using SJLJ exceptions, and this host does not have support
19497# for unwinding from a signal handler, enable checked dereferences and divides.
19498if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
19499 CHECKREFSPEC=-fcheck-references
19500 DIVIDESPEC=-fuse-divide-subroutine
19501 EXCEPTIONSPEC=
e3f92d3b 19502fi
1cf3d07d
SE
19503
19504# See if the user wants to disable java.net. This is the mildly
19505# ugly way that we admit that target-side configuration sucks.
5213506e
RW
19506# Check whether --enable-java-net was given.
19507if test "${enable_java_net+set}" = set; then :
19508 enableval=$enable_java_net;
19509fi
1cf3d07d 19510
1cf3d07d
SE
19511
19512# Whether java.net is built by default can depend on the target.
19513if test -z "$enable_java_net"; then
19514 enable_java_net=${enable_java_net_default-yes}
e3f92d3b 19515fi
1cf3d07d
SE
19516if test "$enable_java_net" = no; then
19517
5213506e 19518$as_echo "#define DISABLE_JAVA_NET 1" >>confdefs.h
1cf3d07d 19519
b0fa81ee 19520fi
1cf3d07d
SE
19521
19522# See if the user wants to configure without libffi. Some
19523# architectures don't support it, and default values are set in
19524# configure.host.
19525
5213506e
RW
19526# Check whether --with-libffi was given.
19527if test "${with_libffi+set}" = set; then :
19528 withval=$with_libffi; :
1cf3d07d
SE
19529else
19530 with_libffi=${with_libffi_default-yes}
5213506e
RW
19531fi
19532
1cf3d07d
SE
19533
19534LIBFFI=
19535LIBFFIINCS=
19536if test "$with_libffi" != no; then
19537
5213506e 19538$as_echo "#define USE_LIBFFI 1" >>confdefs.h
1cf3d07d
SE
19539
19540 LIBFFI=../libffi/libffi_convenience.la
19541 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
97b8365c 19542fi
1cf3d07d
SE
19543
19544
19545
19546# See if the user wants to disable JVMPI support.
5213506e
RW
19547# Check whether --enable-jvmpi was given.
19548if test "${enable_jvmpi+set}" = set; then :
19549 enableval=$enable_jvmpi;
19550fi
1cf3d07d 19551
1cf3d07d
SE
19552
19553if test "$enable_jvmpi" != no; then
19554
5213506e 19555$as_echo "#define ENABLE_JVMPI 1" >>confdefs.h
1cf3d07d 19556
e3f92d3b 19557fi
1cf3d07d
SE
19558
19559# If the target is an eCos system, use the appropriate eCos
19560# I/O routines.
19561# FIXME: this should not be a local option but a global target
19562# system; at present there is no eCos target.
19563TARGET_ECOS=${PROCESS-"no"}
19564
5213506e
RW
19565# Check whether --with-ecos was given.
19566if test "${with_ecos+set}" = set; then :
19567 withval=$with_ecos; TARGET_ECOS="$with_ecos"
19568
19569fi
1cf3d07d 19570
1cf3d07d
SE
19571
19572case "$TARGET_ECOS" in
19573 no) case "$host" in
19574 *mingw*)
19575 PLATFORM=Win32
19576 PLATFORMNET=Win32
19577 PLATFORMH=win32.h
19578
5213506e
RW
19579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'ld' is at least 2.13" >&5
19580$as_echo_n "checking whether 'ld' is at least 2.13... " >&6; }
1cf3d07d
SE
19581LD_PROG=`$CC --print-prog-name=ld`
19582LD_VERSION=`$LD_PROG --version`
19583LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
19584LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
19585if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
19586 LD_OK="ok"
19587else
19588 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
19589 LD_OK="ok"
19590 fi
e3f92d3b 19591fi
1cf3d07d 19592if test "x$LD_OK" != x; then
5213506e
RW
19593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19594$as_echo "yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
1cf3d07d 19595else
5213506e
RW
19596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19597$as_echo "no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
19599$as_echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
1cf3d07d 19600
5213506e 19601$as_echo "#define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1" >>confdefs.h
1cf3d07d 19602
97b8365c 19603fi
1cf3d07d
SE
19604 ;;
19605 *)
19606 PLATFORM=Posix
19607 PLATFORMNET=Posix
19608 PLATFORMH=posix.h
19609 ;;
19610 esac
19611 ;;
19612 *)
19613 PLATFORM=Ecos
19614 PLATFORMNET=NoNet
ed698112 19615
5213506e 19616$as_echo "#define ECOS 1" >>confdefs.h
ed698112 19617
1cf3d07d
SE
19618 PLATFORMH=posix.h
19619 ;;
19620esac
ed698112 19621
5213506e 19622ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
ed698112 19623
ed698112 19624
5213506e 19625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
19626/* end confdefs.h. */
19627#include <stdint.h>
ed698112 19628
1cf3d07d
SE
19629_ACEOF
19630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e 19631 $EGREP "uint32_t" >/dev/null 2>&1; then :
ed698112 19632
5213506e 19633$as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
ed698112 19634
ed698112 19635fi
1cf3d07d
SE
19636rm -f conftest*
19637
5213506e 19638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
19639/* end confdefs.h. */
19640#include <inttypes.h>
19641
19642_ACEOF
19643if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e 19644 $EGREP "uint32_t" >/dev/null 2>&1; then :
1cf3d07d 19645
5213506e 19646$as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
ed698112 19647
ed698112 19648fi
1cf3d07d 19649rm -f conftest*
ed698112 19650
5213506e 19651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
19652/* end confdefs.h. */
19653#include <sys/types.h>
ed698112 19654
1cf3d07d
SE
19655_ACEOF
19656if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e 19657 $EGREP "u_int32_t" >/dev/null 2>&1; then :
ed698112 19658
5213506e 19659$as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
ade710a5 19660
1cf3d07d
SE
19661fi
19662rm -f conftest*
ed698112 19663
5213506e 19664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
19665/* end confdefs.h. */
19666#include <sys/config.h>
ed698112 19667
1cf3d07d
SE
19668_ACEOF
19669if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e 19670 $EGREP "u_int32_t" >/dev/null 2>&1; then :
ed698112 19671
5213506e 19672$as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
ed698112 19673
1cf3d07d
SE
19674fi
19675rm -f conftest*
ed698112 19676
ed698112 19677
5213506e 19678 if test "$PLATFORM" = Win32; then
1cf3d07d
SE
19679 USING_WIN32_PLATFORM_TRUE=
19680 USING_WIN32_PLATFORM_FALSE='#'
ed698112 19681else
1cf3d07d
SE
19682 USING_WIN32_PLATFORM_TRUE='#'
19683 USING_WIN32_PLATFORM_FALSE=
ed698112
NN
19684fi
19685
5213506e 19686 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
1cf3d07d
SE
19687 USING_POSIX_PLATFORM_TRUE=
19688 USING_POSIX_PLATFORM_FALSE='#'
ed698112 19689else
1cf3d07d
SE
19690 USING_POSIX_PLATFORM_TRUE='#'
19691 USING_POSIX_PLATFORM_FALSE=
ed698112 19692fi
ed698112 19693
1cf3d07d
SE
19694
19695case "$host" in
19696 *-darwin*) DARWIN_CRT=true ;;
19697 *) DARWIN_CRT=false ;;
19698esac
5213506e 19699 if $DARWIN_CRT; then
1cf3d07d
SE
19700 USING_DARWIN_CRT_TRUE=
19701 USING_DARWIN_CRT_FALSE='#'
ed698112 19702else
1cf3d07d
SE
19703 USING_DARWIN_CRT_TRUE='#'
19704 USING_DARWIN_CRT_FALSE=
ed698112
NN
19705fi
19706
ed698112 19707
1cf3d07d
SE
19708# This may not be defined in a non-ANS conformant embedded system.
19709# FIXME: Should these case a runtime exception in that case?
5213506e 19710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
19711/* end confdefs.h. */
19712#include <time.h>
ed698112 19713
1cf3d07d
SE
19714_ACEOF
19715if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e 19716 $EGREP "localtime" >/dev/null 2>&1; then :
ed698112 19717
5213506e 19718$as_echo "#define HAVE_LOCALTIME 1" >>confdefs.h
ed698112 19719
1cf3d07d
SE
19720fi
19721rm -f conftest*
ade710a5 19722
ade710a5 19723
1cf3d07d
SE
19724# Create the subdirectory for natFile.cc, or the attempt
19725# to create the link will fail.
19726test -d java || mkdir java
19727test -d java/io || mkdir java/io
19728test -d gnu || mkdir gnu
5213506e 19729ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
ed698112 19730
ade710a5 19731
1cf3d07d
SE
19732# Likewise for natConcreteProcess.cc.
19733test -d java/lang || mkdir java/lang
5213506e 19734ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
ed698112 19735
ed698112 19736
1cf3d07d
SE
19737# Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
19738test -d java/net || mkdir java/net
5213506e 19739ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
ed698112 19740
5213506e 19741ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
ed698112 19742
ade710a5 19743
1cf3d07d
SE
19744# Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
19745test -d gnu/java || mkdir gnu/java
19746test -d gnu/java/net || mkdir gnu/java/net
5213506e 19747ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
ade710a5 19748
5213506e 19749ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
ed698112 19750
ade710a5 19751
1cf3d07d
SE
19752# Likewise for natVMPipe.cc and natVMSelector.cc.
19753test -d gnu/java/nio || mkdir gnu/java/nio
5213506e 19754ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
ed698112 19755
5213506e 19756ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
ed698112 19757
ed698112 19758
1cf3d07d
SE
19759# Likewise for natFileChannelImpl.cc
19760test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
5213506e 19761ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
ed698112 19762
ee9dd372 19763
dc6a0b2d 19764# Likewise for natVMSecureRandom.cc
fd24db29
MK
19765test -d gnu/java/security || mkdir gnu/java/security
19766test -d gnu/java/security/jce || mkdir gnu/java/security/jce
dc6a0b2d 19767test -d gnu/java/security/jce/prng || mkdir gnu/java/security/jce/prng
5213506e 19768ac_config_links="$ac_config_links gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc"
dc6a0b2d
AJH
19769
19770
1cf3d07d
SE
19771case "${host}" in
19772 *mingw*)
19773 SYSTEMSPEC="-lgdi32 -lws2_32"
19774 if test "${with_win32_nlsapi}" = "unicows"; then
19775 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
19776 fi
19777 ;;
5df19a91 19778 *-*-darwin[912]*)
f8328d1d 19779 SYSTEMSPEC="%{!Zdynamiclib:%{!Zbundle:-allow_stack_execute}}"
5df19a91 19780 ;;
1cf3d07d
SE
19781 *)
19782 SYSTEMSPEC=
19783 ;;
19784esac
ee9dd372 19785
7e0c895f 19786
ed698112 19787
5213506e
RW
19788# Check whether --with-system-zlib was given.
19789if test "${with_system_zlib+set}" = set; then :
19790 withval=$with_system_zlib;
19791fi
ee9dd372 19792
1cf3d07d 19793ZLIBSPEC=
ee9dd372 19794
1cf3d07d 19795ZLIBTESTSPEC=
ee9dd372 19796
ee9dd372 19797
5213506e
RW
19798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19799$as_echo_n "checking for X... " >&6; }
ee9dd372 19800
ee9dd372 19801
5213506e
RW
19802# Check whether --with-x was given.
19803if test "${with_x+set}" = set; then :
19804 withval=$with_x;
19805fi
ee9dd372 19806
1cf3d07d
SE
19807# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19808if test "x$with_x" = xno; then
19809 # The user explicitly disabled X.
19810 have_x=disabled
19811else
5213506e
RW
19812 case $x_includes,$x_libraries in #(
19813 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
19814 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
19815 $as_echo_n "(cached) " >&6
1cf3d07d
SE
19816else
19817 # One or both of the vars are not set, and there is no cached value.
19818ac_x_includes=no ac_x_libraries=no
5213506e 19819rm -f -r conftest.dir
1cf3d07d
SE
19820if mkdir conftest.dir; then
19821 cd conftest.dir
1cf3d07d 19822 cat >Imakefile <<'_ACEOF'
5213506e
RW
19823incroot:
19824 @echo incroot='${INCROOT}'
19825usrlibdir:
19826 @echo usrlibdir='${USRLIBDIR}'
19827libdir:
19828 @echo libdir='${LIBDIR}'
19829_ACEOF
19830 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
1cf3d07d 19831 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5213506e
RW
19832 for ac_var in incroot usrlibdir libdir; do
19833 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19834 done
1cf3d07d 19835 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5213506e
RW
19836 for ac_extension in a so sl dylib la dll; do
19837 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19838 test -f "$ac_im_libdir/libX11.$ac_extension"; then
1cf3d07d
SE
19839 ac_im_usrlibdir=$ac_im_libdir; break
19840 fi
19841 done
19842 # Screen out bogus values from the imake configuration. They are
19843 # bogus both because they are the default anyway, and because
19844 # using them would break gcc on systems where it needs fixed includes.
19845 case $ac_im_incroot in
5213506e 19846 /usr/include) ac_x_includes= ;;
1cf3d07d
SE
19847 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19848 esac
19849 case $ac_im_usrlibdir in
5213506e 19850 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
1cf3d07d
SE
19851 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19852 esac
19853 fi
19854 cd ..
5213506e 19855 rm -f -r conftest.dir
ed698112
NN
19856fi
19857
1cf3d07d
SE
19858# Standard set of common directories for X headers.
19859# Check X11 before X11Rn because it is often a symlink to the current release.
19860ac_x_header_dirs='
19861/usr/X11/include
5213506e 19862/usr/X11R7/include
1cf3d07d
SE
19863/usr/X11R6/include
19864/usr/X11R5/include
19865/usr/X11R4/include
ade710a5 19866
1cf3d07d 19867/usr/include/X11
5213506e 19868/usr/include/X11R7
1cf3d07d
SE
19869/usr/include/X11R6
19870/usr/include/X11R5
19871/usr/include/X11R4
8a489465 19872
1cf3d07d 19873/usr/local/X11/include
5213506e 19874/usr/local/X11R7/include
1cf3d07d
SE
19875/usr/local/X11R6/include
19876/usr/local/X11R5/include
19877/usr/local/X11R4/include
ed698112 19878
1cf3d07d 19879/usr/local/include/X11
5213506e 19880/usr/local/include/X11R7
1cf3d07d
SE
19881/usr/local/include/X11R6
19882/usr/local/include/X11R5
19883/usr/local/include/X11R4
ed698112 19884
1cf3d07d
SE
19885/usr/X386/include
19886/usr/x386/include
19887/usr/XFree86/include/X11
ed698112 19888
1cf3d07d
SE
19889/usr/include
19890/usr/local/include
19891/usr/unsupported/include
19892/usr/athena/include
19893/usr/local/x11r5/include
19894/usr/lpp/Xamples/include
02809848 19895
1cf3d07d
SE
19896/usr/openwin/include
19897/usr/openwin/share/include'
ade710a5 19898
1cf3d07d 19899if test "$ac_x_includes" = no; then
5213506e 19900 # Guess where to find include files, by looking for Xlib.h.
1cf3d07d 19901 # First, try using that file with no special directory specified.
5213506e 19902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 19903/* end confdefs.h. */
5213506e 19904#include <X11/Xlib.h>
1cf3d07d 19905_ACEOF
5213506e 19906if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d
SE
19907 # We can compile using X headers with no special include directory.
19908ac_x_includes=
19909else
1cf3d07d 19910 for ac_dir in $ac_x_header_dirs; do
5213506e 19911 if test -r "$ac_dir/X11/Xlib.h"; then
1cf3d07d
SE
19912 ac_x_includes=$ac_dir
19913 break
19914 fi
19915done
ed698112 19916fi
1cf3d07d
SE
19917rm -f conftest.err conftest.$ac_ext
19918fi # $ac_x_includes = no
ed698112 19919
1cf3d07d
SE
19920if test "$ac_x_libraries" = no; then
19921 # Check for the libraries.
19922 # See if we find them without any special options.
19923 # Don't add to $LIBS permanently.
19924 ac_save_LIBS=$LIBS
5213506e 19925 LIBS="-lX11 $LIBS"
1cf3d07d 19926 if test x$gcc_no_link = xyes; then
5213506e 19927 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 19928fi
5213506e 19929cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 19930/* end confdefs.h. */
5213506e 19931#include <X11/Xlib.h>
1cf3d07d
SE
19932int
19933main ()
ed698112 19934{
5213506e 19935XrmInitialize ()
1cf3d07d
SE
19936 ;
19937 return 0;
ed698112 19938}
1cf3d07d 19939_ACEOF
5213506e 19940if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
19941 LIBS=$ac_save_LIBS
19942# We can link X programs with no special library path.
19943ac_x_libraries=
19944else
5213506e
RW
19945 LIBS=$ac_save_LIBS
19946for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
1cf3d07d
SE
19947do
19948 # Don't even attempt the hair of trying to link an X program!
5213506e
RW
19949 for ac_extension in a so sl dylib la dll; do
19950 if test -r "$ac_dir/libX11.$ac_extension"; then
1cf3d07d
SE
19951 ac_x_libraries=$ac_dir
19952 break 2
19953 fi
19954 done
19955done
19956fi
5213506e
RW
19957rm -f core conftest.err conftest.$ac_objext \
19958 conftest$ac_exeext conftest.$ac_ext
1cf3d07d 19959fi # $ac_x_libraries = no
ee9dd372 19960
5213506e
RW
19961case $ac_x_includes,$ac_x_libraries in #(
19962 no,* | *,no | *\'*)
19963 # Didn't find X, or a directory has "'" in its name.
19964 ac_cv_have_x="have_x=no";; #(
19965 *)
19966 # Record where we found X for the cache.
19967 ac_cv_have_x="have_x=yes\
19968 ac_x_includes='$ac_x_includes'\
19969 ac_x_libraries='$ac_x_libraries'"
19970esac
1cf3d07d 19971fi
5213506e
RW
19972;; #(
19973 *) have_x=yes;;
19974 esac
1cf3d07d
SE
19975 eval "$ac_cv_have_x"
19976fi # $with_x != no
19977
19978if test "$have_x" != yes; then
5213506e
RW
19979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19980$as_echo "$have_x" >&6; }
1cf3d07d
SE
19981 no_x=yes
19982else
19983 # If each of the values was on the command line, it overrides each guess.
19984 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19985 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19986 # Update the cache value to reflect the command line values.
5213506e
RW
19987 ac_cv_have_x="have_x=yes\
19988 ac_x_includes='$x_includes'\
19989 ac_x_libraries='$x_libraries'"
19990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19991$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
1cf3d07d
SE
19992fi
19993
19994if test "$no_x" = yes; then
19995 # Not all programs may use this symbol, but it does not hurt to define it.
ee9dd372 19996
5213506e 19997$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
ade710a5 19998
1cf3d07d
SE
19999 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20000else
20001 if test -n "$x_includes"; then
20002 X_CFLAGS="$X_CFLAGS -I$x_includes"
20003 fi
ade710a5 20004
1cf3d07d
SE
20005 # It would also be nice to do this for all -L options, not just this one.
20006 if test -n "$x_libraries"; then
20007 X_LIBS="$X_LIBS -L$x_libraries"
20008 # For Solaris; some versions of Sun CC require a space after -R and
20009 # others require no space. Words are not sufficient . . . .
5213506e
RW
20010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
20011$as_echo_n "checking whether -R must be followed by a space... " >&6; }
20012 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20013 ac_xsave_c_werror_flag=$ac_c_werror_flag
20014 ac_c_werror_flag=yes
20015 if test x$gcc_no_link = xyes; then
20016 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 20017fi
5213506e 20018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 20019/* end confdefs.h. */
ed698112 20020
1cf3d07d
SE
20021int
20022main ()
20023{
20024
20025 ;
20026 return 0;
20027}
20028_ACEOF
5213506e
RW
20029if ac_fn_c_try_link "$LINENO"; then :
20030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20031$as_echo "no" >&6; }
20032 X_LIBS="$X_LIBS -R$x_libraries"
1cf3d07d 20033else
5213506e
RW
20034 LIBS="$ac_xsave_LIBS -R $x_libraries"
20035 if test x$gcc_no_link = xyes; then
20036 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 20037fi
5213506e 20038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
20039/* end confdefs.h. */
20040
20041int
20042main ()
20043{
20044
20045 ;
20046 return 0;
20047}
20048_ACEOF
5213506e
RW
20049if ac_fn_c_try_link "$LINENO"; then :
20050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20051$as_echo "yes" >&6; }
20052 X_LIBS="$X_LIBS -R $x_libraries"
1cf3d07d 20053else
5213506e
RW
20054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
20055$as_echo "neither works" >&6; }
1cf3d07d 20056fi
5213506e
RW
20057rm -f core conftest.err conftest.$ac_objext \
20058 conftest$ac_exeext conftest.$ac_ext
20059fi
20060rm -f core conftest.err conftest.$ac_objext \
20061 conftest$ac_exeext conftest.$ac_ext
20062 ac_c_werror_flag=$ac_xsave_c_werror_flag
20063 LIBS=$ac_xsave_LIBS
1cf3d07d
SE
20064 fi
20065
20066 # Check for system-dependent libraries X programs must link with.
20067 # Do this before checking for the system-independent R6 libraries
20068 # (-lICE), since we may need -lsocket or whatever for X linking.
20069
20070 if test "$ISC" = yes; then
20071 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20072 else
20073 # Martyn Johnson says this is needed for Ultrix, if the X
20074 # libraries were built with DECnet support. And Karl Berry says
20075 # the Alpha needs dnet_stub (dnet does not exist).
20076 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20077 if test x$gcc_no_link = xyes; then
5213506e 20078 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 20079fi
5213506e 20080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
20081/* end confdefs.h. */
20082
5213506e
RW
20083/* Override any GCC internal prototype to avoid an error.
20084 Use char because int might match the return type of a GCC
20085 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
20086#ifdef __cplusplus
20087extern "C"
20088#endif
1cf3d07d
SE
20089char XOpenDisplay ();
20090int
20091main ()
20092{
5213506e 20093return XOpenDisplay ();
1cf3d07d
SE
20094 ;
20095 return 0;
20096}
20097_ACEOF
5213506e 20098if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 20099
5213506e
RW
20100else
20101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
20102$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
20103if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
20104 $as_echo_n "(cached) " >&6
1cf3d07d
SE
20105else
20106 ac_check_lib_save_LIBS=$LIBS
20107LIBS="-ldnet $LIBS"
20108if test x$gcc_no_link = xyes; then
5213506e 20109 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 20110fi
5213506e 20111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
20112/* end confdefs.h. */
20113
5213506e
RW
20114/* Override any GCC internal prototype to avoid an error.
20115 Use char because int might match the return type of a GCC
20116 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
20117#ifdef __cplusplus
20118extern "C"
20119#endif
1cf3d07d
SE
20120char dnet_ntoa ();
20121int
20122main ()
20123{
5213506e 20124return dnet_ntoa ();
1cf3d07d
SE
20125 ;
20126 return 0;
20127}
20128_ACEOF
5213506e 20129if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
20130 ac_cv_lib_dnet_dnet_ntoa=yes
20131else
5213506e 20132 ac_cv_lib_dnet_dnet_ntoa=no
1cf3d07d 20133fi
5213506e
RW
20134rm -f core conftest.err conftest.$ac_objext \
20135 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
20136LIBS=$ac_check_lib_save_LIBS
20137fi
5213506e
RW
20138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20139$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20140if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
1cf3d07d
SE
20141 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20142fi
20143
20144 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5213506e
RW
20145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
20146$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
20147if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
20148 $as_echo_n "(cached) " >&6
1cf3d07d
SE
20149else
20150 ac_check_lib_save_LIBS=$LIBS
20151LIBS="-ldnet_stub $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_stub_dnet_ntoa=yes
20175else
5213506e 20176 ac_cv_lib_dnet_stub_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_stub_dnet_ntoa" >&5
20183$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20184if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
1cf3d07d
SE
20185 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20186fi
20187
20188 fi
20189fi
5213506e
RW
20190rm -f core conftest.err conftest.$ac_objext \
20191 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
20192 LIBS="$ac_xsave_LIBS"
20193
20194 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20195 # to get the SysV transport functions.
20196 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20197 # needs -lnsl.
20198 # The nsl library prevents programs from opening the X display
20199 # on Irix 5.2, according to T.E. Dickey.
20200 # The functions gethostbyname, getservbyname, and inet_addr are
20201 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5213506e
RW
20202 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20203if test "x$ac_cv_func_gethostbyname" = x""yes; then :
1cf3d07d 20204
1cf3d07d 20205fi
1cf3d07d
SE
20206
20207 if test $ac_cv_func_gethostbyname = no; then
5213506e
RW
20208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20209$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20210if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
20211 $as_echo_n "(cached) " >&6
1cf3d07d
SE
20212else
20213 ac_check_lib_save_LIBS=$LIBS
20214LIBS="-lnsl $LIBS"
20215if test x$gcc_no_link = xyes; then
5213506e 20216 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 20217fi
5213506e 20218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
20219/* end confdefs.h. */
20220
5213506e
RW
20221/* Override any GCC internal prototype to avoid an error.
20222 Use char because int might match the return type of a GCC
20223 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
20224#ifdef __cplusplus
20225extern "C"
20226#endif
1cf3d07d
SE
20227char gethostbyname ();
20228int
20229main ()
20230{
5213506e 20231return gethostbyname ();
1cf3d07d
SE
20232 ;
20233 return 0;
20234}
20235_ACEOF
5213506e 20236if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
20237 ac_cv_lib_nsl_gethostbyname=yes
20238else
5213506e 20239 ac_cv_lib_nsl_gethostbyname=no
1cf3d07d 20240fi
5213506e
RW
20241rm -f core conftest.err conftest.$ac_objext \
20242 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
20243LIBS=$ac_check_lib_save_LIBS
20244fi
5213506e
RW
20245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20246$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20247if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
1cf3d07d
SE
20248 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20249fi
20250
20251 if test $ac_cv_lib_nsl_gethostbyname = no; then
5213506e
RW
20252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20253$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20254if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
20255 $as_echo_n "(cached) " >&6
1cf3d07d
SE
20256else
20257 ac_check_lib_save_LIBS=$LIBS
20258LIBS="-lbsd $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_bsd_gethostbyname=yes
20282else
5213506e 20283 ac_cv_lib_bsd_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_bsd_gethostbyname" >&5
20290$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20291if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
1cf3d07d
SE
20292 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20293fi
20294
20295 fi
20296 fi
20297
20298 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20299 # socket/setsockopt and other routines are undefined under SCO ODT
20300 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20301 # on later versions), says Simon Leinen: it contains gethostby*
20302 # variants that don't use the name server (or something). -lsocket
20303 # must be given before -lnsl if both are needed. We assume that
20304 # if connect needs -lnsl, so does gethostbyname.
5213506e
RW
20305 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20306if test "x$ac_cv_func_connect" = x""yes; then :
1cf3d07d 20307
1cf3d07d 20308fi
1cf3d07d
SE
20309
20310 if test $ac_cv_func_connect = no; then
5213506e
RW
20311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20312$as_echo_n "checking for connect in -lsocket... " >&6; }
20313if test "${ac_cv_lib_socket_connect+set}" = set; then :
20314 $as_echo_n "(cached) " >&6
1cf3d07d
SE
20315else
20316 ac_check_lib_save_LIBS=$LIBS
20317LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20318if test x$gcc_no_link = xyes; then
5213506e 20319 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 20320fi
5213506e
RW
20321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20322/* end confdefs.h. */
1cf3d07d 20323
5213506e
RW
20324/* Override any GCC internal prototype to avoid an error.
20325 Use char because int might match the return type of a GCC
1cf3d07d 20326 builtin and then its argument prototype would still apply. */
1cf3d07d 20327#ifdef __cplusplus
5213506e 20328extern "C"
1cf3d07d 20329#endif
5213506e 20330char connect ();
1cf3d07d
SE
20331int
20332main ()
20333{
5213506e 20334return connect ();
1cf3d07d
SE
20335 ;
20336 return 0;
20337}
20338_ACEOF
5213506e
RW
20339if ac_fn_c_try_link "$LINENO"; then :
20340 ac_cv_lib_socket_connect=yes
1cf3d07d 20341else
5213506e
RW
20342 ac_cv_lib_socket_connect=no
20343fi
20344rm -f core conftest.err conftest.$ac_objext \
20345 conftest$ac_exeext conftest.$ac_ext
20346LIBS=$ac_check_lib_save_LIBS
20347fi
20348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20349$as_echo "$ac_cv_lib_socket_connect" >&6; }
20350if test "x$ac_cv_lib_socket_connect" = x""yes; then :
20351 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1cf3d07d 20352fi
5213506e
RW
20353
20354 fi
20355
20356 # Guillermo Gomez says -lposix is necessary on A/UX.
20357 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20358if test "x$ac_cv_func_remove" = x""yes; then :
20359
1cf3d07d 20360fi
1cf3d07d
SE
20361
20362 if test $ac_cv_func_remove = no; then
5213506e
RW
20363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20364$as_echo_n "checking for remove in -lposix... " >&6; }
20365if test "${ac_cv_lib_posix_remove+set}" = set; then :
20366 $as_echo_n "(cached) " >&6
1cf3d07d
SE
20367else
20368 ac_check_lib_save_LIBS=$LIBS
20369LIBS="-lposix $LIBS"
20370if test x$gcc_no_link = xyes; then
5213506e 20371 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 20372fi
5213506e 20373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
20374/* end confdefs.h. */
20375
5213506e
RW
20376/* Override any GCC internal prototype to avoid an error.
20377 Use char because int might match the return type of a GCC
20378 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
20379#ifdef __cplusplus
20380extern "C"
20381#endif
1cf3d07d
SE
20382char remove ();
20383int
20384main ()
20385{
5213506e 20386return remove ();
1cf3d07d
SE
20387 ;
20388 return 0;
20389}
20390_ACEOF
5213506e 20391if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
20392 ac_cv_lib_posix_remove=yes
20393else
5213506e 20394 ac_cv_lib_posix_remove=no
1cf3d07d 20395fi
5213506e
RW
20396rm -f core conftest.err conftest.$ac_objext \
20397 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
20398LIBS=$ac_check_lib_save_LIBS
20399fi
5213506e
RW
20400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20401$as_echo "$ac_cv_lib_posix_remove" >&6; }
20402if test "x$ac_cv_lib_posix_remove" = x""yes; then :
1cf3d07d
SE
20403 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20404fi
20405
20406 fi
20407
20408 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5213506e
RW
20409 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20410if test "x$ac_cv_func_shmat" = x""yes; then :
1cf3d07d 20411
1cf3d07d 20412fi
1cf3d07d
SE
20413
20414 if test $ac_cv_func_shmat = no; then
5213506e
RW
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20416$as_echo_n "checking for shmat in -lipc... " >&6; }
20417if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
20418 $as_echo_n "(cached) " >&6
1cf3d07d
SE
20419else
20420 ac_check_lib_save_LIBS=$LIBS
20421LIBS="-lipc $LIBS"
20422if test x$gcc_no_link = xyes; then
5213506e 20423 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 20424fi
5213506e 20425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
20426/* end confdefs.h. */
20427
5213506e
RW
20428/* Override any GCC internal prototype to avoid an error.
20429 Use char because int might match the return type of a GCC
20430 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
20431#ifdef __cplusplus
20432extern "C"
20433#endif
1cf3d07d
SE
20434char shmat ();
20435int
20436main ()
20437{
5213506e 20438return shmat ();
1cf3d07d
SE
20439 ;
20440 return 0;
20441}
20442_ACEOF
5213506e 20443if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
20444 ac_cv_lib_ipc_shmat=yes
20445else
5213506e 20446 ac_cv_lib_ipc_shmat=no
1cf3d07d 20447fi
5213506e
RW
20448rm -f core conftest.err conftest.$ac_objext \
20449 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
20450LIBS=$ac_check_lib_save_LIBS
20451fi
5213506e
RW
20452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20453$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20454if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
1cf3d07d
SE
20455 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20456fi
20457
20458 fi
20459 fi
20460
20461 # Check for libraries that X11R6 Xt/Xaw programs need.
20462 ac_save_LDFLAGS=$LDFLAGS
20463 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20464 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20465 # check for ICE first), but we must link in the order -lSM -lICE or
20466 # we get undefined symbols. So assume we have SM if we have ICE.
20467 # These have to be linked with before -lX11, unlike the other
20468 # libraries we check for below, so use a different variable.
20469 # John Interrante, Karl Berry
5213506e
RW
20470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20471$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20472if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
20473 $as_echo_n "(cached) " >&6
1cf3d07d
SE
20474else
20475 ac_check_lib_save_LIBS=$LIBS
20476LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20477if test x$gcc_no_link = xyes; then
5213506e 20478 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 20479fi
5213506e 20480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
20481/* end confdefs.h. */
20482
5213506e
RW
20483/* Override any GCC internal prototype to avoid an error.
20484 Use char because int might match the return type of a GCC
20485 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
20486#ifdef __cplusplus
20487extern "C"
20488#endif
1cf3d07d
SE
20489char IceConnectionNumber ();
20490int
20491main ()
20492{
5213506e 20493return IceConnectionNumber ();
1cf3d07d
SE
20494 ;
20495 return 0;
20496}
20497_ACEOF
5213506e 20498if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
20499 ac_cv_lib_ICE_IceConnectionNumber=yes
20500else
5213506e 20501 ac_cv_lib_ICE_IceConnectionNumber=no
1cf3d07d 20502fi
5213506e
RW
20503rm -f core conftest.err conftest.$ac_objext \
20504 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
20505LIBS=$ac_check_lib_save_LIBS
20506fi
5213506e
RW
20507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20508$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20509if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
1cf3d07d
SE
20510 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20511fi
20512
20513 LDFLAGS=$ac_save_LDFLAGS
20514
20515fi
20516
20517
20518# FIXME: this should be _libs on some hosts.
20519libsubdir=.libs
20520
f202305d
AH
20521LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20522
20523LIBSTDCXXSPEC=
1cf3d07d
SE
20524# extra LD Flags which are required for targets
20525case "${host}" in
20526*-*-darwin[0-7].*)
20527 # For now we have to disable it on darwin[8-9] because it slows down
20528 # the linking phase. A possible bug in ld?
20529 # on Darwin -single_module speeds up loading of the dynamic libraries.
20530 extra_ldflags_libjava=-Wl,-single_module
20531 ;;
f202305d
AH
20532arm*linux*eabi)
20533 # Some of the ARM unwinder code is actually in libstdc++. We
20534 # could in principle replicate it in libgcj, but it's better to
20535 # have a dependency on libstdc++.
20536 extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20537 LIBSTDCXXSPEC=-lstdc++
20538 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20539 ;;
6a92b6c7
DK
20540*-*-cygwin)
20541 extra_ldflags_libjava=-liconv
20542 ;;
1cf3d07d
SE
20543esac
20544
d80148b8
JH
20545LIBMATHSPEC=
20546# extra LD Flags which are required for targets
20547case "${host}" in
20548*-*-darwin*)
20549 ;;
20550*)
20551 LIBMATHSPEC=-lm
20552 ;;
20553esac
20554
6cf3abb1
AH
20555# Check for --no-merge-exidx-entries, an ARM-specific linker option.
20556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --no-merge-exidx-entries" >&5
20557$as_echo_n "checking for --no-merge-exidx-entries... " >&6; }
20558if test "${libgcj_cv_exidx+set}" = set; then :
20559 $as_echo_n "(cached) " >&6
20560else
20561 saved_ldflags="$LDFLAGS"
20562 LDFLAGS="${LDFLAGS} -Wl,--no-merge-exidx-entries"
8352cbb4
RO
20563 # The IRIX 6 ld doesn't recognize --no-merge-exidx-entries, but only
20564 # warns about unknown options, which breaks the testsuite. So enable
20565 # AC_LANG_WERROR, but there's currently (autoconf 2.64) no way to turn
20566 # it off again. As a workaround, save and restore werror flag like
20567 # AC_PATH_XTRA.
20568 ac_xsave_c_werror_flag=$ac_c_werror_flag
20569
20570ac_c_werror_flag=yes
6cf3abb1
AH
20571 if test x$gcc_no_link = xyes; then
20572 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20573fi
20574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20575/* end confdefs.h. */
20576int main(void){ return 0;}
20577_ACEOF
20578if ac_fn_c_try_link "$LINENO"; then :
20579 eval "libgcj_cv_exidx=yes"
20580else
20581 eval "libgcj_cv_exidx=no"
20582fi
20583rm -f core conftest.err conftest.$ac_objext \
20584 conftest$ac_exeext conftest.$ac_ext
8352cbb4 20585 ac_c_werror_flag=$ac_xsave_c_werror_flag
6cf3abb1
AH
20586 LDFLAGS="${saved_ldflags}"
20587
20588fi
20589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcj_cv_exidx" >&5
20590$as_echo "$libgcj_cv_exidx" >&6; }
20591if test "${libgcj_cv_exidx}" = "yes"; then
20592 SYSTEMSPEC="${SYSTEMSPEC} --no-merge-exidx-entries"
20593 extra_ldflags="${extra_ldflags} -Wl,--no-merge-exidx-entries"
20594fi
20595
20596
1cf3d07d 20597
f202305d
AH
20598
20599
20600
20601
d80148b8 20602
1cf3d07d 20603# Allow the GC to be disabled. Can be useful when debugging.
5213506e
RW
20604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for garbage collector to use" >&5
20605$as_echo_n "checking for garbage collector to use... " >&6; }
20606# Check whether --enable-java-gc was given.
20607if test "${enable_java_gc+set}" = set; then :
20608 enableval=$enable_java_gc; GC=$enableval
1cf3d07d
SE
20609else
20610 GC=boehm
5213506e
RW
20611fi
20612
1cf3d07d
SE
20613GCLIBS=
20614GCINCS=
20615GCDEPS=
20616GCSPEC=
20617JC1GCSPEC=
20618GCTESTSPEC=
20619case "$GC" in
20620 boehm)
5213506e
RW
20621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: boehm" >&5
20622$as_echo "boehm" >&6; }
1cf3d07d
SE
20623 GCLIBS=../boehm-gc/libgcjgc_convenience.la
20624 JC1GCSPEC='-fuse-boehm-gc'
20625 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20626 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20627 GCOBJS=boehm.lo
20628 GCHDR=boehm-gc.h
20629 # The POSIX thread support needs to know this.
20630
5213506e 20631$as_echo "#define HAVE_BOEHM_GC 1" >>confdefs.h
1cf3d07d
SE
20632
20633 ;;
20634 no)
5213506e
RW
20635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
20636$as_echo "none" >&6; }
1cf3d07d
SE
20637 GCHDR=no-gc.h
20638 ;;
20639 *)
5213506e 20640 as_fn_error "unrecognized collector \"$GC\"" "$LINENO" 5
1cf3d07d
SE
20641 ;;
20642esac
20643
20644
20645
20646
20647
20648
5213506e 20649ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
1cf3d07d 20650
5213506e 20651 if test "$GC" = boehm; then
1cf3d07d
SE
20652 USING_BOEHMGC_TRUE=
20653 USING_BOEHMGC_FALSE='#'
20654else
20655 USING_BOEHMGC_TRUE='#'
20656 USING_BOEHMGC_FALSE=
20657fi
20658
5213506e 20659 if test "$GC" = no; then
1cf3d07d
SE
20660 USING_NOGC_TRUE=
20661 USING_NOGC_FALSE='#'
20662else
20663 USING_NOGC_TRUE='#'
20664 USING_NOGC_FALSE=
20665fi
20666
20667
20668
5213506e
RW
20669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
20670$as_echo_n "checking for thread model used by GCC... " >&6; }
1cf3d07d 20671THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
5213506e
RW
20672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
20673$as_echo "$THREADS" >&6; }
1cf3d07d
SE
20674
20675case "$THREADS" in
20676 no | none | single)
20677 THREADS=none
20678 ;;
887e6178 20679 aix | posix | posix95 | pthreads)
1cf3d07d
SE
20680 THREADS=posix
20681 case "$host" in
20682 *-*-linux*)
20683
5213506e 20684$as_echo "#define LINUX_THREADS 1" >>confdefs.h
1cf3d07d
SE
20685
20686 ;;
20687 esac
20688 ;;
20689 win32)
20690 ;;
20691 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
5213506e 20692 as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
1cf3d07d
SE
20693 ;;
20694 *)
5213506e 20695 as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
1cf3d07d
SE
20696 ;;
20697esac
20698
20699THREADCXXFLAGS=
20700THREADLDFLAGS=
20701THREADLIBS=
20702THREADINCS=
20703THREADDEPS=
20704THREADH=
20705THREADSPEC=
20706THREADSTARTFILESPEC=
20707case "$THREADS" in
20708 posix)
20709 case "$host" in
20710 *-*-cygwin*)
20711 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
20712 ;;
20713 *-*-freebsd[1234]*)
20714 # Before FreeBSD 5, it didn't have -lpthread (or any library which
20715 # merely adds pthread_* functions) but it does have a -pthread switch
20716 # which is required at link-time to select -lc_r *instead* of -lc.
20717 THREADLDFLAGS=-pthread
20718 # Don't set THREADSPEC here as might be expected since -pthread is
20719 # not processed when found within a spec file, it must come from
20720 # the command line. For now, the user must provide the -pthread
20721 # switch to link code compiled with gcj. In future, consider adding
20722 # support for weak references to pthread_* functions ala gthr.h API.
20723 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20724 ;;
20725 *-*-freebsd*)
20726 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20727 # systems which support threads and -lpthread.
20728 THREADLDFLAGS=-pthread
20729 THREADSPEC=-lpthread
20730 ;;
20731 alpha*-dec-osf* | hppa*-hp-hpux*)
20732 THREADCXXFLAGS=-pthread
20733 # boehm-gc needs some functions from librt, so link that too.
20734 THREADLIBS='-lpthread -lrt'
20735 THREADSPEC='-lpthread -lrt'
20736 ;;
16c9d3b1
RO
20737 *-*-solaris2.8)
20738 # Always use alternate thread library on Solaris 8. Need libthread
20739 # for TLS support.
20740 # Need -Wl,-R to get it through libtool ...
20741 THREADLIBS='-L/usr/lib/lwp$(MULTISUBDIR) -Wl,-R -Wl,/usr/lib/lwp$(MULTISUBDIR) -lpthread -lthread'
20742 # ... while ld only accepts -R.
20743 THREADSPEC='-L/usr/lib/lwp%{m64:/64} -R/usr/lib/lwp%{m64:/64} -lpthread -lthread'
20744 ;;
20745 *-*-solaris2.9)
20746 # As on Solaris 8, need libthread for TLS support.
20747 THREADLIBS='-lpthread -lthread'
20748 THREADSPEC='-lpthread -lthread'
20749 ;;
618d4830
JH
20750 *-*-darwin*)
20751 # Don't set THREADLIBS or THREADSPEC as Darwin already
20752 # provides pthread via libSystem.
20753 ;;
1cf3d07d
SE
20754 *)
20755 THREADLIBS=-lpthread
20756 THREADSPEC=-lpthread
20757 ;;
20758 esac
20759 THREADH=posix-threads.h
20760 # MIT pthreads doesn't seem to have the mutexattr functions.
20761 # But for now we don't check for it. We just assume you aren't
20762 # using MIT pthreads.
20763
5213506e 20764$as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
1cf3d07d
SE
20765
20766
20767 # If we're using the Boehm GC, then we happen to know that it
20768 # defines _REENTRANT, so we don't bother. Eww.
20769 if test "$GC" != boehm; then
20770
5213506e 20771$as_echo "#define _REENTRANT 1" >>confdefs.h
1cf3d07d
SE
20772
20773 fi
20774
5213506e 20775$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
1cf3d07d
SE
20776
20777 ;;
20778
20779 win32)
20780 THREADH=win32-threads.h
20781 THREADCXXFLAGS=-mthreads
20782 # We need thread-safe exception handling so _CRT_MT should be set to 1.
20783 # But we do not want the executables created to be dependent on
20784 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20785 # exception handling contexts. The following kludge achieves this effect
20786 # and causes a dummy __mingwthr_key_dtor() to be linked in from
20787 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
20788 # A workaround is to explicitly use -mthreads while linking Java programs.
20789 # See PR libgcj/28263.
20790 #
20791 # FIXME: In Java we are able to detect thread death at the end of
20792 # Thread.run() so we should be able to clean up the exception handling
20793 # contexts ourselves.
20794 THREADSTARTFILESPEC='crtmt%O%s'
20795 ;;
20796
20797 none)
20798 THREADH=no-threads.h
20799 ;;
20800esac
5213506e 20801ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
1cf3d07d
SE
20802
20803
20804
20805
20806
20807
20808
20809
5213506e 20810 if test "$THREADS" = posix; then
1cf3d07d
SE
20811 USING_POSIX_THREADS_TRUE=
20812 USING_POSIX_THREADS_FALSE='#'
20813else
20814 USING_POSIX_THREADS_TRUE='#'
20815 USING_POSIX_THREADS_FALSE=
20816fi
20817
5213506e 20818 if test "$THREADS" = win32; then
1cf3d07d
SE
20819 USING_WIN32_THREADS_TRUE=
20820 USING_WIN32_THREADS_FALSE='#'
20821else
20822 USING_WIN32_THREADS_TRUE='#'
20823 USING_WIN32_THREADS_FALSE=
20824fi
20825
5213506e 20826 if test "$THREADS" = none; then
1cf3d07d
SE
20827 USING_NO_THREADS_TRUE=
20828 USING_NO_THREADS_FALSE='#'
20829else
20830 USING_NO_THREADS_TRUE='#'
20831 USING_NO_THREADS_FALSE=
20832fi
20833
fda2cea1
JJ
20834if test "$enable_shared" != yes; then
20835 use_libgcj_bc=no
20836fi
5213506e 20837 if test "$use_libgcj_bc" = yes; then
1cf3d07d
SE
20838 USE_LIBGCJ_BC_TRUE=
20839 USE_LIBGCJ_BC_FALSE='#'
20840else
20841 USE_LIBGCJ_BC_TRUE='#'
20842 USE_LIBGCJ_BC_FALSE=
20843fi
20844
20845
20846if test -d sysdep; then true; else mkdir sysdep; fi
5213506e 20847ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
1cf3d07d 20848
5213506e 20849ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
1cf3d07d 20850
5213506e 20851ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
1cf3d07d
SE
20852
20853
6a92b6c7
DK
20854LIBGCJ_SPEC_LGCJ=-lgcj
20855LIBGCJ_SPEC_LGCJ_BC=-lgcj_bc
20856if test x"$libgcj_spec_lgcj_override" != x ; then
20857 LIBGCJ_SPEC_LGCJ=$libgcj_spec_lgcj_override
20858fi
20859if test x"$libgcj_spec_lgcj_bc_override" != x ; then
20860 LIBGCJ_SPEC_LGCJ_BC=$libgcj_spec_lgcj_bc_override
20861fi
20862LIBGCJ_SPEC="%{s-bc-abi:} $LIBGCJ_SPEC_LGCJ"
1cf3d07d 20863if test "$use_libgcj_bc" = yes; then
6a92b6c7 20864 LIBGCJ_SPEC="%{static|static-libgcj|!s-bc-abi:$LIBGCJ_SPEC_LGCJ;:$LIBGCJ_SPEC_LGCJ_BC}"
de383aec 20865 LIBGCJ_BC_SPEC="%{findirect-dispatch:-fPIC}"
1cf3d07d
SE
20866fi
20867
84fec8a5
RW
20868
20869
1cf3d07d
SE
20870HASH_SYNC_SPEC=
20871# Hash synchronization is only useful with posix threads right now.
20872if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20873 HASH_SYNC_SPEC=-fhash-synchronization
20874
5213506e 20875$as_echo "#define JV_HASH_SYNCHRONIZATION 1" >>confdefs.h
1cf3d07d
SE
20876
20877fi
20878
20879
5213506e 20880 if test "$GCC" = yes; then
1cf3d07d
SE
20881 USING_GCC_TRUE=
20882 USING_GCC_FALSE='#'
20883else
20884 USING_GCC_TRUE='#'
20885 USING_GCC_FALSE=
20886fi
20887
20888
20889# We're in the tree with gcc, and need to include some of its headers.
20890GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20891
20892if test "x${with_newlib}" = "xyes"; then
20893 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
20894 # may not work correctly, because the compiler may not be able to
20895 # link executables.
20896
20897 # We assume newlib. This lets us hard-code the functions we know
20898 # we'll have.
20899
5213506e 20900$as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
1cf3d07d 20901
1cf3d07d 20902
5213506e 20903$as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
1cf3d07d 20904
1cf3d07d 20905
5213506e 20906$as_echo "#define HAVE_TIME 1" >>confdefs.h
1cf3d07d
SE
20907
20908
5213506e 20909$as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
1cf3d07d 20910
1cf3d07d 20911
5213506e 20912$as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
1cf3d07d 20913
1cf3d07d 20914
5213506e 20915$as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
1cf3d07d 20916
5213506e 20917 # This is only for POSIX threads.
1cf3d07d 20918
5213506e 20919$as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
1cf3d07d
SE
20920
20921
5213506e 20922 # Assume we do not have getuid and friends.
1cf3d07d 20923
5213506e 20924$as_echo "#define NO_GETUID 1" >>confdefs.h
1cf3d07d 20925
5213506e 20926 PLATFORMNET=NoNet
1cf3d07d 20927else
5213506e
RW
20928 for ac_func in strerror_r select fstat open fsync sleep opendir \
20929 localtime_r getpwuid_r getcwd \
20930 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20931 nl_langinfo setlocale \
20932 inet_pton uname inet_ntoa \
20933 getrlimit sigaction ftruncate mmap \
20934 getifaddrs
20935do :
20936 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20937ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20938eval as_val=\$$as_ac_var
20939 if test "x$as_val" = x""yes; then :
20940 cat >>confdefs.h <<_ACEOF
20941#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1cf3d07d 20942_ACEOF
1cf3d07d 20943
1cf3d07d 20944fi
5213506e 20945done
1cf3d07d 20946
5213506e
RW
20947 for ac_func in inet_aton inet_addr
20948do :
20949 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20950ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20951eval as_val=\$$as_ac_var
20952 if test "x$as_val" = x""yes; then :
20953 cat >>confdefs.h <<_ACEOF
20954#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1cf3d07d 20955_ACEOF
5213506e 20956 break
1cf3d07d 20957fi
5213506e 20958done
1cf3d07d 20959
5213506e
RW
20960 for ac_header in unistd.h dlfcn.h sys/resource.h
20961do :
20962 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20963ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20964eval as_val=\$$as_ac_Header
20965 if test "x$as_val" = x""yes; then :
1cf3d07d 20966 cat >>confdefs.h <<_ACEOF
5213506e 20967#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1cf3d07d
SE
20968_ACEOF
20969
20970fi
20971
20972done
20973
20974 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
5213506e
RW
20975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
20976$as_echo_n "checking for dladdr in -ldl... " >&6; }
20977if test "${ac_cv_lib_dl_dladdr+set}" = set; then :
20978 $as_echo_n "(cached) " >&6
1cf3d07d
SE
20979else
20980 ac_check_lib_save_LIBS=$LIBS
20981LIBS="-ldl $LIBS"
20982if test x$gcc_no_link = xyes; then
5213506e 20983 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 20984fi
5213506e 20985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
20986/* end confdefs.h. */
20987
5213506e
RW
20988/* Override any GCC internal prototype to avoid an error.
20989 Use char because int might match the return type of a GCC
20990 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
20991#ifdef __cplusplus
20992extern "C"
20993#endif
1cf3d07d
SE
20994char dladdr ();
20995int
20996main ()
20997{
5213506e 20998return dladdr ();
1cf3d07d
SE
20999 ;
21000 return 0;
21001}
21002_ACEOF
5213506e 21003if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
21004 ac_cv_lib_dl_dladdr=yes
21005else
5213506e 21006 ac_cv_lib_dl_dladdr=no
1cf3d07d 21007fi
5213506e
RW
21008rm -f core conftest.err conftest.$ac_objext \
21009 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
21010LIBS=$ac_check_lib_save_LIBS
21011fi
5213506e
RW
21012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
21013$as_echo "$ac_cv_lib_dl_dladdr" >&6; }
21014if test "x$ac_cv_lib_dl_dladdr" = x""yes; then :
1cf3d07d
SE
21015
21016
5213506e 21017$as_echo "#define HAVE_DLADDR 1" >>confdefs.h
1cf3d07d
SE
21018
21019else
21020
5213506e
RW
21021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldld" >&5
21022$as_echo_n "checking for dladdr in -ldld... " >&6; }
21023if test "${ac_cv_lib_dld_dladdr+set}" = set; then :
21024 $as_echo_n "(cached) " >&6
1cf3d07d
SE
21025else
21026 ac_check_lib_save_LIBS=$LIBS
21027LIBS="-ldld $LIBS"
21028if test x$gcc_no_link = xyes; then
5213506e 21029 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 21030fi
5213506e 21031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
21032/* end confdefs.h. */
21033
5213506e
RW
21034/* Override any GCC internal prototype to avoid an error.
21035 Use char because int might match the return type of a GCC
21036 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
21037#ifdef __cplusplus
21038extern "C"
21039#endif
1cf3d07d
SE
21040char dladdr ();
21041int
21042main ()
21043{
5213506e 21044return dladdr ();
1cf3d07d
SE
21045 ;
21046 return 0;
21047}
21048_ACEOF
5213506e 21049if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
21050 ac_cv_lib_dld_dladdr=yes
21051else
5213506e 21052 ac_cv_lib_dld_dladdr=no
1cf3d07d 21053fi
5213506e
RW
21054rm -f core conftest.err conftest.$ac_objext \
21055 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
21056LIBS=$ac_check_lib_save_LIBS
21057fi
5213506e
RW
21058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dladdr" >&5
21059$as_echo "$ac_cv_lib_dld_dladdr" >&6; }
21060if test "x$ac_cv_lib_dld_dladdr" = x""yes; then :
1cf3d07d
SE
21061
21062
5213506e 21063$as_echo "#define HAVE_DLADDR 1" >>confdefs.h
1cf3d07d
SE
21064
21065fi
21066
21067fi
21068
21069
21070 if test x"$cross_compiling" = x"no"; then
5213506e
RW
21071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/exe" >&5
21072$as_echo_n "checking for /proc/self/exe... " >&6; }
21073if test "${ac_cv_file__proc_self_exe+set}" = set; then :
21074 $as_echo_n "(cached) " >&6
1cf3d07d
SE
21075else
21076 test "$cross_compiling" = yes &&
5213506e 21077 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
1cf3d07d
SE
21078if test -r "/proc/self/exe"; then
21079 ac_cv_file__proc_self_exe=yes
21080else
21081 ac_cv_file__proc_self_exe=no
21082fi
21083fi
5213506e
RW
21084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_exe" >&5
21085$as_echo "$ac_cv_file__proc_self_exe" >&6; }
21086if test "x$ac_cv_file__proc_self_exe" = x""yes; then :
1cf3d07d
SE
21087
21088cat >>confdefs.h <<_ACEOF
21089#define HAVE__PROC_SELF_EXE 1
21090_ACEOF
21091
21092
5213506e 21093$as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
1cf3d07d
SE
21094
21095fi
21096
5213506e
RW
21097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/maps" >&5
21098$as_echo_n "checking for /proc/self/maps... " >&6; }
21099if test "${ac_cv_file__proc_self_maps+set}" = set; then :
21100 $as_echo_n "(cached) " >&6
1cf3d07d
SE
21101else
21102 test "$cross_compiling" = yes &&
5213506e 21103 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
1cf3d07d
SE
21104if test -r "/proc/self/maps"; then
21105 ac_cv_file__proc_self_maps=yes
21106else
21107 ac_cv_file__proc_self_maps=no
21108fi
21109fi
5213506e
RW
21110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_maps" >&5
21111$as_echo "$ac_cv_file__proc_self_maps" >&6; }
21112if test "x$ac_cv_file__proc_self_maps" = x""yes; then :
1cf3d07d
SE
21113
21114cat >>confdefs.h <<_ACEOF
21115#define HAVE__PROC_SELF_MAPS 1
21116_ACEOF
21117
21118
5213506e 21119$as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
1cf3d07d
SE
21120
21121fi
21122
21123 else
21124 case $host in
21125 *-linux*)
21126
5213506e 21127$as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
1cf3d07d
SE
21128
21129
5213506e 21130$as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
1cf3d07d
SE
21131
21132 ;;
21133 esac
21134 fi
21135
21136
21137 if test "X$prefix" = "XNONE"; then
21138 acl_final_prefix="$ac_default_prefix"
21139 else
21140 acl_final_prefix="$prefix"
21141 fi
21142 if test "X$exec_prefix" = "XNONE"; then
21143 acl_final_exec_prefix='${prefix}'
21144 else
21145 acl_final_exec_prefix="$exec_prefix"
21146 fi
21147 acl_save_prefix="$prefix"
21148 prefix="$acl_final_prefix"
21149 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21150 prefix="$acl_save_prefix"
21151
21152
5213506e
RW
21153# Check whether --with-gnu-ld was given.
21154if test "${with_gnu_ld+set}" = set; then :
21155 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1cf3d07d
SE
21156else
21157 with_gnu_ld=no
5213506e
RW
21158fi
21159
1cf3d07d
SE
21160# Prepare PATH_SEPARATOR.
21161# The user is always right.
21162if test "${PATH_SEPARATOR+set}" != set; then
21163 echo "#! /bin/sh" >conf$$.sh
21164 echo "exit 0" >>conf$$.sh
21165 chmod +x conf$$.sh
21166 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21167 PATH_SEPARATOR=';'
21168 else
21169 PATH_SEPARATOR=:
21170 fi
21171 rm -f conf$$.sh
21172fi
21173ac_prog=ld
21174if test "$GCC" = yes; then
21175 # Check if gcc -print-prog-name=ld gives a path.
5213506e
RW
21176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
21177$as_echo_n "checking for ld used by GCC... " >&6; }
1cf3d07d
SE
21178 case $host in
21179 *-*-mingw*)
21180 # gcc leaves a trailing carriage return which upsets mingw
21181 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21182 *)
21183 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21184 esac
21185 case $ac_prog in
21186 # Accept absolute paths.
21187 [\\/]* | [A-Za-z]:[\\/]*)
21188 re_direlt='/[^/][^/]*/\.\./'
21189 # Canonicalize the path of ld
21190 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21191 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21192 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21193 done
21194 test -z "$LD" && LD="$ac_prog"
21195 ;;
21196 "")
21197 # If it fails, then pretend we aren't using GCC.
21198 ac_prog=ld
21199 ;;
21200 *)
21201 # If it is relative, then search for the first ld in PATH.
21202 with_gnu_ld=unknown
21203 ;;
21204 esac
21205elif test "$with_gnu_ld" = yes; then
5213506e
RW
21206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
21207$as_echo_n "checking for GNU ld... " >&6; }
1cf3d07d 21208else
5213506e
RW
21209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
21210$as_echo_n "checking for non-GNU ld... " >&6; }
1cf3d07d 21211fi
5213506e
RW
21212if test "${acl_cv_path_LD+set}" = set; then :
21213 $as_echo_n "(cached) " >&6
1cf3d07d
SE
21214else
21215 if test -z "$LD"; then
21216 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21217 for ac_dir in $PATH; do
21218 test -z "$ac_dir" && ac_dir=.
21219 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21220 acl_cv_path_LD="$ac_dir/$ac_prog"
21221 # Check to see if the program is GNU ld. I'd rather use --version,
21222 # but apparently some GNU ld's only accept -v.
21223 # Break only if it was the GNU/non-GNU ld that we prefer.
21224 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
21225 test "$with_gnu_ld" != no && break
21226 else
21227 test "$with_gnu_ld" != yes && break
21228 fi
21229 fi
21230 done
21231 IFS="$ac_save_ifs"
21232else
21233 acl_cv_path_LD="$LD" # Let the user override the test with a path.
21234fi
21235fi
21236
21237LD="$acl_cv_path_LD"
21238if test -n "$LD"; then
5213506e
RW
21239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
21240$as_echo "$LD" >&6; }
1cf3d07d 21241else
5213506e
RW
21242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21243$as_echo "no" >&6; }
1cf3d07d 21244fi
5213506e
RW
21245test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
21246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
21247$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
21248if test "${acl_cv_prog_gnu_ld+set}" = set; then :
21249 $as_echo_n "(cached) " >&6
1cf3d07d
SE
21250else
21251 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21252if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21253 acl_cv_prog_gnu_ld=yes
21254else
21255 acl_cv_prog_gnu_ld=no
21256fi
21257fi
5213506e
RW
21258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
21259$as_echo "$acl_cv_prog_gnu_ld" >&6; }
1cf3d07d
SE
21260with_gnu_ld=$acl_cv_prog_gnu_ld
21261
21262
21263
5213506e
RW
21264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
21265$as_echo_n "checking for shared library run path origin... " >&6; }
21266if test "${acl_cv_rpath+set}" = set; then :
21267 $as_echo_n "(cached) " >&6
1cf3d07d
SE
21268else
21269
21270 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21271 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21272 . ./conftest.sh
21273 rm -f ./conftest.sh
21274 acl_cv_rpath=done
21275
21276fi
5213506e
RW
21277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
21278$as_echo "$acl_cv_rpath" >&6; }
1cf3d07d
SE
21279 wl="$acl_cv_wl"
21280 libext="$acl_cv_libext"
21281 shlibext="$acl_cv_shlibext"
21282 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21283 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21284 hardcode_direct="$acl_cv_hardcode_direct"
21285 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5213506e
RW
21286 # Check whether --enable-rpath was given.
21287if test "${enable_rpath+set}" = set; then :
21288 enableval=$enable_rpath; :
1cf3d07d
SE
21289else
21290 enable_rpath=yes
5213506e
RW
21291fi
21292
1cf3d07d
SE
21293
21294
21295
21296
21297
21298
21299
21300 use_additional=yes
21301
21302 acl_save_prefix="$prefix"
21303 prefix="$acl_final_prefix"
21304 acl_save_exec_prefix="$exec_prefix"
21305 exec_prefix="$acl_final_exec_prefix"
21306
21307 eval additional_includedir=\"$includedir\"
21308 eval additional_libdir=\"$libdir\"
21309
21310 exec_prefix="$acl_save_exec_prefix"
21311 prefix="$acl_save_prefix"
21312
21313
5213506e
RW
21314# Check whether --with-libiconv-prefix was given.
21315if test "${with_libiconv_prefix+set}" = set; then :
21316 withval=$with_libiconv_prefix;
1cf3d07d
SE
21317 if test "X$withval" = "Xno"; then
21318 use_additional=no
21319 else
21320 if test "X$withval" = "X"; then
21321
21322 acl_save_prefix="$prefix"
21323 prefix="$acl_final_prefix"
21324 acl_save_exec_prefix="$exec_prefix"
21325 exec_prefix="$acl_final_exec_prefix"
21326
21327 eval additional_includedir=\"$includedir\"
21328 eval additional_libdir=\"$libdir\"
21329
21330 exec_prefix="$acl_save_exec_prefix"
21331 prefix="$acl_save_prefix"
21332
21333 else
21334 additional_includedir="$withval/include"
21335 additional_libdir="$withval/lib"
21336 fi
21337 fi
21338
5213506e
RW
21339fi
21340
1cf3d07d
SE
21341 LIBICONV=
21342 LTLIBICONV=
21343 INCICONV=
21344 rpathdirs=
21345 ltrpathdirs=
21346 names_already_handled=
21347 names_next_round='iconv '
21348 while test -n "$names_next_round"; do
21349 names_this_round="$names_next_round"
21350 names_next_round=
21351 for name in $names_this_round; do
21352 already_handled=
21353 for n in $names_already_handled; do
21354 if test "$n" = "$name"; then
21355 already_handled=yes
21356 break
21357 fi
21358 done
21359 if test -z "$already_handled"; then
21360 names_already_handled="$names_already_handled $name"
21361 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21362 eval value=\"\$HAVE_LIB$uppername\"
21363 if test -n "$value"; then
21364 if test "$value" = yes; then
21365 eval value=\"\$LIB$uppername\"
21366 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21367 eval value=\"\$LTLIB$uppername\"
21368 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21369 else
21370 :
21371 fi
21372 else
21373 found_dir=
21374 found_la=
21375 found_so=
21376 found_a=
21377 if test $use_additional = yes; then
21378 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21379 found_dir="$additional_libdir"
21380 found_so="$additional_libdir/lib$name.$shlibext"
21381 if test -f "$additional_libdir/lib$name.la"; then
21382 found_la="$additional_libdir/lib$name.la"
21383 fi
21384 else
21385 if test -f "$additional_libdir/lib$name.$libext"; then
21386 found_dir="$additional_libdir"
21387 found_a="$additional_libdir/lib$name.$libext"
21388 if test -f "$additional_libdir/lib$name.la"; then
21389 found_la="$additional_libdir/lib$name.la"
21390 fi
21391 fi
21392 fi
21393 fi
21394 if test "X$found_dir" = "X"; then
21395 for x in $LDFLAGS $LTLIBICONV; do
21396
21397 acl_save_prefix="$prefix"
21398 prefix="$acl_final_prefix"
21399 acl_save_exec_prefix="$exec_prefix"
21400 exec_prefix="$acl_final_exec_prefix"
21401 eval x=\"$x\"
21402 exec_prefix="$acl_save_exec_prefix"
21403 prefix="$acl_save_prefix"
21404
21405 case "$x" in
21406 -L*)
21407 dir=`echo "X$x" | sed -e 's/^X-L//'`
21408 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21409 found_dir="$dir"
21410 found_so="$dir/lib$name.$shlibext"
21411 if test -f "$dir/lib$name.la"; then
21412 found_la="$dir/lib$name.la"
21413 fi
21414 else
21415 if test -f "$dir/lib$name.$libext"; then
21416 found_dir="$dir"
21417 found_a="$dir/lib$name.$libext"
21418 if test -f "$dir/lib$name.la"; then
21419 found_la="$dir/lib$name.la"
21420 fi
21421 fi
21422 fi
21423 ;;
21424 esac
21425 if test "X$found_dir" != "X"; then
21426 break
21427 fi
21428 done
21429 fi
21430 if test "X$found_dir" != "X"; then
21431 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21432 if test "X$found_so" != "X"; then
21433 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21434 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21435 else
21436 haveit=
21437 for x in $ltrpathdirs; do
21438 if test "X$x" = "X$found_dir"; then
21439 haveit=yes
21440 break
21441 fi
21442 done
21443 if test -z "$haveit"; then
21444 ltrpathdirs="$ltrpathdirs $found_dir"
21445 fi
21446 if test "$hardcode_direct" = yes; then
21447 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21448 else
21449 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21450 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21451 haveit=
21452 for x in $rpathdirs; do
21453 if test "X$x" = "X$found_dir"; then
21454 haveit=yes
21455 break
21456 fi
21457 done
21458 if test -z "$haveit"; then
21459 rpathdirs="$rpathdirs $found_dir"
21460 fi
21461 else
21462 haveit=
21463 for x in $LDFLAGS $LIBICONV; do
21464
21465 acl_save_prefix="$prefix"
21466 prefix="$acl_final_prefix"
21467 acl_save_exec_prefix="$exec_prefix"
21468 exec_prefix="$acl_final_exec_prefix"
21469 eval x=\"$x\"
21470 exec_prefix="$acl_save_exec_prefix"
21471 prefix="$acl_save_prefix"
21472
21473 if test "X$x" = "X-L$found_dir"; then
21474 haveit=yes
21475 break
21476 fi
21477 done
21478 if test -z "$haveit"; then
21479 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21480 fi
21481 if test "$hardcode_minus_L" != no; then
21482 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21483 else
21484 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21485 fi
21486 fi
21487 fi
21488 fi
21489 else
21490 if test "X$found_a" != "X"; then
21491 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21492 else
21493 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21494 fi
21495 fi
21496 additional_includedir=
21497 case "$found_dir" in
21498 */lib | */lib/)
21499 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21500 additional_includedir="$basedir/include"
21501 ;;
21502 esac
21503 if test "X$additional_includedir" != "X"; then
21504 if test "X$additional_includedir" != "X/usr/include"; then
21505 haveit=
21506 if test "X$additional_includedir" = "X/usr/local/include"; then
21507 if test -n "$GCC"; then
21508 case $host_os in
21509 linux*) haveit=yes;;
21510 esac
21511 fi
21512 fi
21513 if test -z "$haveit"; then
21514 for x in $CPPFLAGS $INCICONV; do
21515
21516 acl_save_prefix="$prefix"
21517 prefix="$acl_final_prefix"
21518 acl_save_exec_prefix="$exec_prefix"
21519 exec_prefix="$acl_final_exec_prefix"
21520 eval x=\"$x\"
21521 exec_prefix="$acl_save_exec_prefix"
21522 prefix="$acl_save_prefix"
21523
21524 if test "X$x" = "X-I$additional_includedir"; then
21525 haveit=yes
21526 break
21527 fi
21528 done
21529 if test -z "$haveit"; then
21530 if test -d "$additional_includedir"; then
21531 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21532 fi
21533 fi
21534 fi
21535 fi
21536 fi
21537 if test -n "$found_la"; then
21538 save_libdir="$libdir"
21539 case "$found_la" in
21540 */* | *\\*) . "$found_la" ;;
21541 *) . "./$found_la" ;;
21542 esac
21543 libdir="$save_libdir"
21544 for dep in $dependency_libs; do
21545 case "$dep" in
21546 -L*)
21547 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21548 if test "X$additional_libdir" != "X/usr/lib"; then
21549 haveit=
21550 if test "X$additional_libdir" = "X/usr/local/lib"; then
21551 if test -n "$GCC"; then
21552 case $host_os in
21553 linux*) haveit=yes;;
21554 esac
21555 fi
21556 fi
21557 if test -z "$haveit"; then
21558 haveit=
21559 for x in $LDFLAGS $LIBICONV; do
21560
21561 acl_save_prefix="$prefix"
21562 prefix="$acl_final_prefix"
21563 acl_save_exec_prefix="$exec_prefix"
21564 exec_prefix="$acl_final_exec_prefix"
21565 eval x=\"$x\"
21566 exec_prefix="$acl_save_exec_prefix"
21567 prefix="$acl_save_prefix"
21568
21569 if test "X$x" = "X-L$additional_libdir"; then
21570 haveit=yes
21571 break
21572 fi
21573 done
21574 if test -z "$haveit"; then
21575 if test -d "$additional_libdir"; then
21576 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21577 fi
21578 fi
21579 haveit=
21580 for x in $LDFLAGS $LTLIBICONV; do
21581
21582 acl_save_prefix="$prefix"
21583 prefix="$acl_final_prefix"
21584 acl_save_exec_prefix="$exec_prefix"
21585 exec_prefix="$acl_final_exec_prefix"
21586 eval x=\"$x\"
21587 exec_prefix="$acl_save_exec_prefix"
21588 prefix="$acl_save_prefix"
21589
21590 if test "X$x" = "X-L$additional_libdir"; then
21591 haveit=yes
21592 break
21593 fi
21594 done
21595 if test -z "$haveit"; then
21596 if test -d "$additional_libdir"; then
21597 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21598 fi
21599 fi
21600 fi
21601 fi
21602 ;;
21603 -R*)
21604 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21605 if test "$enable_rpath" != no; then
21606 haveit=
21607 for x in $rpathdirs; do
21608 if test "X$x" = "X$dir"; then
21609 haveit=yes
21610 break
21611 fi
21612 done
21613 if test -z "$haveit"; then
21614 rpathdirs="$rpathdirs $dir"
21615 fi
21616 haveit=
21617 for x in $ltrpathdirs; do
21618 if test "X$x" = "X$dir"; then
21619 haveit=yes
21620 break
21621 fi
21622 done
21623 if test -z "$haveit"; then
21624 ltrpathdirs="$ltrpathdirs $dir"
21625 fi
21626 fi
21627 ;;
21628 -l*)
21629 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21630 ;;
21631 *.la)
21632 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21633 ;;
21634 *)
21635 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21636 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21637 ;;
21638 esac
21639 done
21640 fi
21641 else
21642 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21643 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21644 fi
21645 fi
21646 fi
21647 done
21648 done
21649 if test "X$rpathdirs" != "X"; then
21650 if test -n "$hardcode_libdir_separator"; then
21651 alldirs=
21652 for found_dir in $rpathdirs; do
21653 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21654 done
21655 acl_save_libdir="$libdir"
21656 libdir="$alldirs"
21657 eval flag=\"$hardcode_libdir_flag_spec\"
21658 libdir="$acl_save_libdir"
21659 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21660 else
21661 for found_dir in $rpathdirs; do
21662 acl_save_libdir="$libdir"
21663 libdir="$found_dir"
21664 eval flag=\"$hardcode_libdir_flag_spec\"
21665 libdir="$acl_save_libdir"
21666 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21667 done
21668 fi
21669 fi
21670 if test "X$ltrpathdirs" != "X"; then
21671 for found_dir in $ltrpathdirs; do
21672 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21673 done
21674 fi
21675
21676
21677
21678
21679
21680
21681
21682 am_save_CPPFLAGS="$CPPFLAGS"
21683
21684 for element in $INCICONV; do
21685 haveit=
21686 for x in $CPPFLAGS; do
21687
21688 acl_save_prefix="$prefix"
21689 prefix="$acl_final_prefix"
21690 acl_save_exec_prefix="$exec_prefix"
21691 exec_prefix="$acl_final_exec_prefix"
21692 eval x=\"$x\"
21693 exec_prefix="$acl_save_exec_prefix"
21694 prefix="$acl_save_prefix"
21695
21696 if test "X$x" = "X$element"; then
21697 haveit=yes
21698 break
21699 fi
21700 done
21701 if test -z "$haveit"; then
21702 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21703 fi
21704 done
21705
21706
5213506e
RW
21707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21708$as_echo_n "checking for iconv... " >&6; }
21709if test "${am_cv_func_iconv+set}" = set; then :
21710 $as_echo_n "(cached) " >&6
1cf3d07d
SE
21711else
21712
21713 am_cv_func_iconv="no, consider installing GNU libiconv"
21714 am_cv_lib_iconv=no
21715 if test x$gcc_no_link = xyes; then
5213506e 21716 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 21717fi
5213506e 21718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
21719/* end confdefs.h. */
21720#include <stdlib.h>
21721#include <iconv.h>
21722int
21723main ()
21724{
21725iconv_t cd = iconv_open("","");
21726 iconv(cd,NULL,NULL,NULL,NULL);
21727 iconv_close(cd);
21728 ;
21729 return 0;
21730}
21731_ACEOF
5213506e 21732if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 21733 am_cv_func_iconv=yes
1cf3d07d 21734fi
5213506e
RW
21735rm -f core conftest.err conftest.$ac_objext \
21736 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
21737 if test "$am_cv_func_iconv" != yes; then
21738 am_save_LIBS="$LIBS"
21739 LIBS="$LIBS $LIBICONV"
21740 if test x$gcc_no_link = xyes; then
5213506e 21741 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 21742fi
5213506e 21743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
21744/* end confdefs.h. */
21745#include <stdlib.h>
21746#include <iconv.h>
21747int
21748main ()
21749{
21750iconv_t cd = iconv_open("","");
21751 iconv(cd,NULL,NULL,NULL,NULL);
21752 iconv_close(cd);
21753 ;
21754 return 0;
21755}
21756_ACEOF
5213506e 21757if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
21758 am_cv_lib_iconv=yes
21759 am_cv_func_iconv=yes
1cf3d07d 21760fi
5213506e
RW
21761rm -f core conftest.err conftest.$ac_objext \
21762 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
21763 LIBS="$am_save_LIBS"
21764 fi
21765
21766fi
5213506e
RW
21767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
21768$as_echo "$am_cv_func_iconv" >&6; }
1cf3d07d
SE
21769 if test "$am_cv_func_iconv" = yes; then
21770
5213506e 21771$as_echo "#define HAVE_ICONV 1" >>confdefs.h
1cf3d07d
SE
21772
21773 fi
21774 if test "$am_cv_lib_iconv" = yes; then
5213506e
RW
21775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
21776$as_echo_n "checking how to link with libiconv... " >&6; }
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
21778$as_echo "$LIBICONV" >&6; }
1cf3d07d
SE
21779 else
21780 CPPFLAGS="$am_save_CPPFLAGS"
21781 LIBICONV=
21782 LTLIBICONV=
21783 fi
21784
21785
21786
21787 if test "$am_cv_func_iconv" = yes; then
5213506e
RW
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
21789$as_echo_n "checking for iconv declaration... " >&6; }
21790 if test "${am_cv_proto_iconv+set}" = set; then :
21791 $as_echo_n "(cached) " >&6
1cf3d07d
SE
21792else
21793
5213506e 21794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
21795/* end confdefs.h. */
21796
21797#include <stdlib.h>
21798#include <iconv.h>
21799extern
21800#ifdef __cplusplus
21801"C"
21802#endif
21803#if defined(__STDC__) || defined(__cplusplus)
21804size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21805#else
21806size_t iconv();
21807#endif
21808
21809int
21810main ()
21811{
21812
21813 ;
21814 return 0;
21815}
21816_ACEOF
5213506e 21817if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d
SE
21818 am_cv_proto_iconv_arg1=""
21819else
5213506e 21820 am_cv_proto_iconv_arg1="const"
1cf3d07d 21821fi
5213506e 21822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
21823 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);"
21824fi
21825
21826 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5213506e 21827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
1cf3d07d 21828 }$am_cv_proto_iconv" >&5
5213506e
RW
21829$as_echo "${ac_t:-
21830 }$am_cv_proto_iconv" >&6; }
1cf3d07d
SE
21831
21832cat >>confdefs.h <<_ACEOF
21833#define ICONV_CONST $am_cv_proto_iconv_arg1
21834_ACEOF
21835
21836 fi
21837
21838
5213506e
RW
21839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
21840$as_echo_n "checking for LC_MESSAGES... " >&6; }
21841if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
21842 $as_echo_n "(cached) " >&6
1cf3d07d
SE
21843else
21844 if test x$gcc_no_link = xyes; then
5213506e 21845 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 21846fi
5213506e 21847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
21848/* end confdefs.h. */
21849#include <locale.h>
21850int
21851main ()
21852{
21853return LC_MESSAGES
21854 ;
21855 return 0;
21856}
21857_ACEOF
5213506e 21858if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
21859 am_cv_val_LC_MESSAGES=yes
21860else
5213506e 21861 am_cv_val_LC_MESSAGES=no
1cf3d07d 21862fi
5213506e
RW
21863rm -f core conftest.err conftest.$ac_objext \
21864 conftest$ac_exeext conftest.$ac_ext
1cf3d07d 21865fi
5213506e
RW
21866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
21867$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
1cf3d07d
SE
21868 if test $am_cv_val_LC_MESSAGES = yes; then
21869
5213506e 21870$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
1cf3d07d
SE
21871
21872 fi
21873
5213506e
RW
21874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21875$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21876if test "${ac_cv_struct_tm+set}" = set; then :
21877 $as_echo_n "(cached) " >&6
1cf3d07d 21878else
5213506e 21879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
21880/* end confdefs.h. */
21881#include <sys/types.h>
21882#include <time.h>
21883
21884int
21885main ()
21886{
5213506e
RW
21887struct tm tm;
21888 int *p = &tm.tm_sec;
21889 return !p;
1cf3d07d
SE
21890 ;
21891 return 0;
21892}
21893_ACEOF
5213506e 21894if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d
SE
21895 ac_cv_struct_tm=time.h
21896else
5213506e 21897 ac_cv_struct_tm=sys/time.h
1cf3d07d 21898fi
5213506e 21899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d 21900fi
5213506e
RW
21901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21902$as_echo "$ac_cv_struct_tm" >&6; }
1cf3d07d
SE
21903if test $ac_cv_struct_tm = sys/time.h; then
21904
5213506e 21905$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
1cf3d07d 21906
1cf3d07d 21907fi
1cf3d07d 21908
5213506e
RW
21909ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21910#include <$ac_cv_struct_tm>
21911
21912"
21913if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
1cf3d07d 21914
5213506e
RW
21915cat >>confdefs.h <<_ACEOF
21916#define HAVE_STRUCT_TM_TM_ZONE 1
1cf3d07d
SE
21917_ACEOF
21918
5213506e 21919
1cf3d07d
SE
21920fi
21921
5213506e 21922if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
1cf3d07d 21923
5213506e 21924$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
1cf3d07d 21925
1cf3d07d 21926else
5213506e
RW
21927 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21928"
21929if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21930 ac_have_decl=1
21931else
21932 ac_have_decl=0
1cf3d07d 21933fi
1cf3d07d 21934
5213506e
RW
21935cat >>confdefs.h <<_ACEOF
21936#define HAVE_DECL_TZNAME $ac_have_decl
21937_ACEOF
1cf3d07d 21938
5213506e
RW
21939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21940$as_echo_n "checking for tzname... " >&6; }
21941if test "${ac_cv_var_tzname+set}" = set; then :
21942 $as_echo_n "(cached) " >&6
21943else
21944 if test x$gcc_no_link = xyes; then
21945 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21946fi
21947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21948/* end confdefs.h. */
21949#include <time.h>
21950#if !HAVE_DECL_TZNAME
21951extern char *tzname[];
1cf3d07d
SE
21952#endif
21953
21954int
21955main ()
21956{
5213506e 21957return tzname[0][0];
1cf3d07d
SE
21958 ;
21959 return 0;
21960}
21961_ACEOF
5213506e
RW
21962if ac_fn_c_try_link "$LINENO"; then :
21963 ac_cv_var_tzname=yes
1cf3d07d 21964else
5213506e 21965 ac_cv_var_tzname=no
1cf3d07d 21966fi
5213506e
RW
21967rm -f core conftest.err conftest.$ac_objext \
21968 conftest$ac_exeext conftest.$ac_ext
21969fi
21970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21971$as_echo "$ac_cv_var_tzname" >&6; }
21972 if test $ac_cv_var_tzname = yes; then
21973
21974$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21975
21976 fi
1cf3d07d 21977fi
1cf3d07d 21978
4e6ad422
RW
21979 LDLIBICONV=`echo " $LIBICONV " | sed "s/${acl_cv_wl--Wl,}/ /g; s/,/ /g"`
21980
1cf3d07d 21981
5213506e
RW
21982 for ac_func in gethostbyname_r
21983do :
21984 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
21985if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
21986 cat >>confdefs.h <<_ACEOF
1cf3d07d
SE
21987#define HAVE_GETHOSTBYNAME_R 1
21988_ACEOF
21989
5213506e
RW
21990
21991$as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
21992
1cf3d07d
SE
21993 # There are two different kinds of gethostbyname_r.
21994 # We look for the one that returns `int'.
21995 # Hopefully this check is robust enough.
5213506e 21996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
21997/* end confdefs.h. */
21998#include <netdb.h>
21999
22000_ACEOF
22001if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e 22002 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then :
1cf3d07d
SE
22003
22004
5213506e 22005$as_echo "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h
1cf3d07d
SE
22006
22007fi
22008rm -f conftest*
22009
22010
22011 case " $GCINCS " in
22012 *" -D_REENTRANT "*) ;;
22013 *)
5213506e
RW
22014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
22015$as_echo_n "checking whether gethostbyname_r declaration requires -D_REENTRANT... " >&6; }
22016if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then :
22017 $as_echo_n "(cached) " >&6
1cf3d07d 22018else
5213506e 22019 ac_ext=cpp
1cf3d07d
SE
22020ac_cpp='$CXXCPP $CPPFLAGS'
22021ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22022ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22023ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22024
5213506e 22025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
22026/* end confdefs.h. */
22027#include <netdb.h>
22028int
22029main ()
22030{
22031gethostbyname_r("", 0, 0);
22032 ;
22033 return 0;
22034}
22035_ACEOF
5213506e 22036if ac_fn_cxx_try_compile "$LINENO"; then :
1cf3d07d
SE
22037 libjava_cv_gethostbyname_r_needs_reentrant=no
22038else
5213506e 22039 CPPFLAGS_SAVE="$CPPFLAGS"
1cf3d07d 22040 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
5213506e 22041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
22042/* end confdefs.h. */
22043#include <netdb.h>
22044int
22045main ()
22046{
22047gethostbyname_r("", 0, 0);
22048 ;
22049 return 0;
22050}
22051_ACEOF
5213506e 22052if ac_fn_cxx_try_compile "$LINENO"; then :
1cf3d07d
SE
22053 libjava_cv_gethostbyname_r_needs_reentrant=yes
22054else
5213506e 22055 libjava_cv_gethostbyname_r_needs_reentrant=fail
1cf3d07d 22056fi
5213506e 22057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
22058 CPPFLAGS="$CPPFLAGS_SAVE"
22059
22060fi
5213506e 22061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
22062 ac_ext=c
22063ac_cpp='$CPP $CPPFLAGS'
22064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22066ac_compiler_gnu=$ac_cv_c_compiler_gnu
22067
22068
22069fi
5213506e
RW
22070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
22071$as_echo "$libjava_cv_gethostbyname_r_needs_reentrant" >&6; }
1cf3d07d
SE
22072 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
22073
5213506e 22074$as_echo "#define _REENTRANT 1" >>confdefs.h
1cf3d07d
SE
22075
22076 fi
22077 ;;
22078 esac
22079
5213506e
RW
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct hostent_data" >&5
22081$as_echo_n "checking for struct hostent_data... " >&6; }
22082if test "${libjava_cv_struct_hostent_data+set}" = set; then :
22083 $as_echo_n "(cached) " >&6
1cf3d07d 22084else
5213506e 22085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
22086/* end confdefs.h. */
22087
22088#if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
22089# define _REENTRANT 1
22090#endif
22091#include <netdb.h>
22092int
22093main ()
22094{
22095struct hostent_data data;
22096 ;
22097 return 0;
22098}
22099_ACEOF
5213506e 22100if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d
SE
22101 libjava_cv_struct_hostent_data=yes
22102else
5213506e 22103 libjava_cv_struct_hostent_data=no
1cf3d07d 22104fi
5213506e 22105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d 22106fi
5213506e
RW
22107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_struct_hostent_data" >&5
22108$as_echo "$libjava_cv_struct_hostent_data" >&6; }
1cf3d07d
SE
22109 if test "x$libjava_cv_struct_hostent_data" = xyes; then
22110
5213506e 22111$as_echo "#define HAVE_STRUCT_HOSTENT_DATA 1" >>confdefs.h
1cf3d07d
SE
22112
22113 fi
22114
22115fi
22116done
22117
22118
22119 # FIXME: libjava source code expects to find a prototype for
22120 # gethostbyaddr_r in netdb.h. The outer check ensures that
22121 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
22122 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
22123 # linkage check is enough, yet C++ code requires proper prototypes.)
5213506e 22124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
22125/* end confdefs.h. */
22126#include <netdb.h>
22127
22128_ACEOF
22129if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e 22130 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
1cf3d07d 22131
5213506e
RW
22132 for ac_func in gethostbyaddr_r
22133do :
22134 ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
22135if test "x$ac_cv_func_gethostbyaddr_r" = x""yes; then :
1cf3d07d 22136 cat >>confdefs.h <<_ACEOF
5213506e 22137#define HAVE_GETHOSTBYADDR_R 1
1cf3d07d
SE
22138_ACEOF
22139
22140
5213506e 22141$as_echo "#define HAVE_GETHOSTBYADDR_R 1" >>confdefs.h
1cf3d07d
SE
22142
22143 # There are two different kinds of gethostbyaddr_r.
22144 # We look for the one that returns `int'.
22145 # Hopefully this check is robust enough.
5213506e 22146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
22147/* end confdefs.h. */
22148#include <netdb.h>
22149
22150_ACEOF
22151if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e 22152 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then :
1cf3d07d
SE
22153
22154
5213506e 22155$as_echo "#define GETHOSTBYADDR_R_RETURNS_INT 1" >>confdefs.h
1cf3d07d
SE
22156
22157fi
22158rm -f conftest*
22159
22160fi
22161done
22162
5213506e
RW
22163fi
22164rm -f conftest*
22165
22166
22167 for ac_func in gethostname
22168do :
22169 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
22170if test "x$ac_cv_func_gethostname" = x""yes; then :
22171 cat >>confdefs.h <<_ACEOF
22172#define HAVE_GETHOSTNAME 1
1cf3d07d 22173_ACEOF
1cf3d07d 22174
5213506e
RW
22175
22176$as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
22177
22178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22179/* end confdefs.h. */
22180#include <unistd.h>
22181
22182_ACEOF
22183if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22184 $EGREP "gethostname" >/dev/null 2>&1; then :
22185
22186
22187$as_echo "#define HAVE_GETHOSTNAME_DECL 1" >>confdefs.h
22188
1cf3d07d 22189fi
5213506e
RW
22190rm -f conftest*
22191
1cf3d07d 22192fi
5213506e
RW
22193done
22194
22195
22196 for ac_func in usleep
22197do :
22198 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
22199if test "x$ac_cv_func_usleep" = x""yes; then :
1cf3d07d 22200 cat >>confdefs.h <<_ACEOF
5213506e 22201#define HAVE_USLEEP 1
1cf3d07d
SE
22202_ACEOF
22203
5213506e 22204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
22205/* end confdefs.h. */
22206#include <unistd.h>
22207
22208_ACEOF
22209if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e 22210 $EGREP "usleep" >/dev/null 2>&1; then :
1cf3d07d
SE
22211
22212
5213506e 22213$as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
1cf3d07d
SE
22214
22215fi
22216rm -f conftest*
22217
22218fi
22219done
22220
22221
22222 # Look for these functions in the thread library, but only bother
22223 # if using POSIX threads.
22224 if test "$THREADS" = posix; then
22225 save_LIBS="$LIBS"
22226 LIBS="$LIBS $THREADLIBS"
22227
22228 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
22229 # Solaris 7 the name librt is preferred.
5213506e
RW
22230 for ac_func in sched_yield
22231do :
22232 ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
22233if test "x$ac_cv_func_sched_yield" = x""yes; then :
1cf3d07d 22234 cat >>confdefs.h <<_ACEOF
5213506e 22235#define HAVE_SCHED_YIELD 1
1cf3d07d
SE
22236_ACEOF
22237
22238else
22239
5213506e
RW
22240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
22241$as_echo_n "checking for sched_yield in -lrt... " >&6; }
22242if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
22243 $as_echo_n "(cached) " >&6
1cf3d07d
SE
22244else
22245 ac_check_lib_save_LIBS=$LIBS
22246LIBS="-lrt $LIBS"
22247if test x$gcc_no_link = xyes; then
5213506e 22248 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 22249fi
5213506e 22250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
22251/* end confdefs.h. */
22252
5213506e
RW
22253/* Override any GCC internal prototype to avoid an error.
22254 Use char because int might match the return type of a GCC
22255 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
22256#ifdef __cplusplus
22257extern "C"
22258#endif
1cf3d07d
SE
22259char sched_yield ();
22260int
22261main ()
22262{
5213506e 22263return sched_yield ();
1cf3d07d
SE
22264 ;
22265 return 0;
22266}
22267_ACEOF
5213506e 22268if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
22269 ac_cv_lib_rt_sched_yield=yes
22270else
5213506e 22271 ac_cv_lib_rt_sched_yield=no
1cf3d07d 22272fi
5213506e
RW
22273rm -f core conftest.err conftest.$ac_objext \
22274 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
22275LIBS=$ac_check_lib_save_LIBS
22276fi
5213506e
RW
22277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
22278$as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
22279if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
1cf3d07d 22280
5213506e 22281 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
1cf3d07d
SE
22282
22283 THREADLIBS="$THREADLIBS -lrt"
22284 THREADSPEC="$THREADSPEC -lrt"
22285else
22286
5213506e
RW
22287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
22288$as_echo_n "checking for sched_yield in -lposix4... " >&6; }
22289if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then :
22290 $as_echo_n "(cached) " >&6
1cf3d07d
SE
22291else
22292 ac_check_lib_save_LIBS=$LIBS
22293LIBS="-lposix4 $LIBS"
22294if test x$gcc_no_link = xyes; then
5213506e 22295 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 22296fi
5213506e 22297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
22298/* end confdefs.h. */
22299
5213506e
RW
22300/* Override any GCC internal prototype to avoid an error.
22301 Use char because int might match the return type of a GCC
22302 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
22303#ifdef __cplusplus
22304extern "C"
22305#endif
1cf3d07d
SE
22306char sched_yield ();
22307int
22308main ()
22309{
5213506e 22310return sched_yield ();
1cf3d07d
SE
22311 ;
22312 return 0;
22313}
22314_ACEOF
5213506e 22315if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
22316 ac_cv_lib_posix4_sched_yield=yes
22317else
5213506e 22318 ac_cv_lib_posix4_sched_yield=no
1cf3d07d 22319fi
5213506e
RW
22320rm -f core conftest.err conftest.$ac_objext \
22321 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
22322LIBS=$ac_check_lib_save_LIBS
22323fi
5213506e
RW
22324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
22325$as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
22326if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then :
1cf3d07d 22327
5213506e 22328 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
1cf3d07d
SE
22329
22330 THREADLIBS="$THREADLIBS -lposix4"
22331 THREADSPEC="$THREADSPEC -lposix4"
22332fi
22333
22334fi
22335
22336fi
22337done
22338
22339
5213506e
RW
22340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22341$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22342if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
22343 $as_echo_n "(cached) " >&6
1cf3d07d
SE
22344else
22345 ac_check_lib_save_LIBS=$LIBS
22346LIBS="-lrt $LIBS"
22347if test x$gcc_no_link = xyes; then
5213506e 22348 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 22349fi
5213506e 22350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
22351/* end confdefs.h. */
22352
5213506e
RW
22353/* Override any GCC internal prototype to avoid an error.
22354 Use char because int might match the return type of a GCC
22355 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
22356#ifdef __cplusplus
22357extern "C"
22358#endif
1cf3d07d
SE
22359char clock_gettime ();
22360int
22361main ()
22362{
5213506e 22363return clock_gettime ();
1cf3d07d
SE
22364 ;
22365 return 0;
22366}
22367_ACEOF
5213506e 22368if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
22369 ac_cv_lib_rt_clock_gettime=yes
22370else
5213506e 22371 ac_cv_lib_rt_clock_gettime=no
1cf3d07d 22372fi
5213506e
RW
22373rm -f core conftest.err conftest.$ac_objext \
22374 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
22375LIBS=$ac_check_lib_save_LIBS
22376fi
5213506e
RW
22377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22378$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22379if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
1cf3d07d
SE
22380
22381
5213506e 22382$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
1cf3d07d
SE
22383
22384 case "$THREADSPEC" in
22385 *-lrt*) ;;
22386 *)
22387 THREADSPEC="$THREADSPEC -lrt"
22388 THREADLIBS="$THREADLIBS -lrt"
22389 ;;
22390 esac
22391fi
22392
22393
22394 LIBS="$save_LIBS"
22395
22396 # We can save a little space at runtime if the mutex has m_count
22397 # or __m_count. This is a nice hack for Linux.
5213506e 22398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
22399/* end confdefs.h. */
22400#include <pthread.h>
22401int
22402main ()
22403{
22404
22405 extern pthread_mutex_t *mutex; int q = mutex->m_count;
22406
22407 ;
22408 return 0;
22409}
22410_ACEOF
5213506e 22411if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d 22412
5213506e
RW
22413$as_echo "#define PTHREAD_MUTEX_HAVE_M_COUNT 1" >>confdefs.h
22414
22415else
22416
22417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22418/* end confdefs.h. */
22419#include <pthread.h>
1cf3d07d
SE
22420int
22421main ()
22422{
5213506e
RW
22423
22424 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
22425
1cf3d07d
SE
22426 ;
22427 return 0;
22428}
22429_ACEOF
5213506e
RW
22430if ac_fn_c_try_compile "$LINENO"; then :
22431
22432$as_echo "#define PTHREAD_MUTEX_HAVE___M_COUNT 1" >>confdefs.h
1cf3d07d 22433
1cf3d07d 22434fi
5213506e 22435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d 22436fi
5213506e
RW
22437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22438 fi
22439
22440 # We require a way to get the time.
22441 time_found=no
22442 for ac_func in gettimeofday time ftime
22443do :
22444 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22445ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22446eval as_val=\$$as_ac_var
22447 if test "x$as_val" = x""yes; then :
1cf3d07d 22448 cat >>confdefs.h <<_ACEOF
5213506e 22449#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1cf3d07d 22450_ACEOF
5213506e 22451 time_found=yes
1cf3d07d
SE
22452fi
22453done
22454
5213506e
RW
22455 if test "$time_found" = no; then
22456 as_fn_error "no function found to get the time" "$LINENO" 5
22457 fi
1cf3d07d 22458
5213506e
RW
22459 for ac_func in memmove
22460do :
22461 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22462if test "x$ac_cv_func_memmove" = x""yes; then :
22463 cat >>confdefs.h <<_ACEOF
22464#define HAVE_MEMMOVE 1
1cf3d07d 22465_ACEOF
1cf3d07d 22466
5213506e
RW
22467fi
22468done
1cf3d07d 22469
1cf3d07d 22470
5213506e
RW
22471 # We require memcpy.
22472 memcpy_found=no
22473 for ac_func in memcpy
22474do :
22475 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
22476if test "x$ac_cv_func_memcpy" = x""yes; then :
1cf3d07d 22477 cat >>confdefs.h <<_ACEOF
5213506e 22478#define HAVE_MEMCPY 1
1cf3d07d
SE
22479_ACEOF
22480 memcpy_found=yes
22481fi
22482done
22483
22484 if test "$memcpy_found" = no; then
5213506e 22485 as_fn_error "memcpy is required" "$LINENO" 5
1cf3d07d
SE
22486 fi
22487 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
5213506e
RW
22488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22489$as_echo_n "checking for dlopen in -ldl... " >&6; }
22490if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
22491 $as_echo_n "(cached) " >&6
1cf3d07d
SE
22492else
22493 ac_check_lib_save_LIBS=$LIBS
22494LIBS="-ldl $LIBS"
22495if test x$gcc_no_link = xyes; then
5213506e 22496 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 22497fi
5213506e 22498cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
22499/* end confdefs.h. */
22500
5213506e
RW
22501/* Override any GCC internal prototype to avoid an error.
22502 Use char because int might match the return type of a GCC
22503 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
22504#ifdef __cplusplus
22505extern "C"
22506#endif
1cf3d07d
SE
22507char dlopen ();
22508int
22509main ()
22510{
5213506e 22511return dlopen ();
1cf3d07d
SE
22512 ;
22513 return 0;
22514}
22515_ACEOF
5213506e 22516if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
22517 ac_cv_lib_dl_dlopen=yes
22518else
5213506e 22519 ac_cv_lib_dl_dlopen=no
1cf3d07d 22520fi
5213506e
RW
22521rm -f core conftest.err conftest.$ac_objext \
22522 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
22523LIBS=$ac_check_lib_save_LIBS
22524fi
5213506e
RW
22525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22526$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22527if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1cf3d07d
SE
22528
22529
5213506e 22530$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
1cf3d07d
SE
22531
22532else
22533
5213506e
RW
22534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldld" >&5
22535$as_echo_n "checking for dlopen in -ldld... " >&6; }
22536if test "${ac_cv_lib_dld_dlopen+set}" = set; then :
22537 $as_echo_n "(cached) " >&6
1cf3d07d
SE
22538else
22539 ac_check_lib_save_LIBS=$LIBS
22540LIBS="-ldld $LIBS"
22541if test x$gcc_no_link = xyes; then
5213506e 22542 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 22543fi
5213506e 22544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
22545/* end confdefs.h. */
22546
5213506e
RW
22547/* Override any GCC internal prototype to avoid an error.
22548 Use char because int might match the return type of a GCC
22549 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
22550#ifdef __cplusplus
22551extern "C"
22552#endif
1cf3d07d
SE
22553char dlopen ();
22554int
22555main ()
22556{
5213506e 22557return dlopen ();
1cf3d07d
SE
22558 ;
22559 return 0;
22560}
22561_ACEOF
5213506e 22562if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
22563 ac_cv_lib_dld_dlopen=yes
22564else
5213506e 22565 ac_cv_lib_dld_dlopen=no
1cf3d07d 22566fi
5213506e
RW
22567rm -f core conftest.err conftest.$ac_objext \
22568 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
22569LIBS=$ac_check_lib_save_LIBS
22570fi
5213506e
RW
22571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dlopen" >&5
22572$as_echo "$ac_cv_lib_dld_dlopen" >&6; }
22573if test "x$ac_cv_lib_dld_dlopen" = x""yes; then :
1cf3d07d
SE
22574
22575
5213506e 22576$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
1cf3d07d
SE
22577
22578fi
22579
22580fi
22581
22582
22583 # Some library-finding code we stole from Tcl.
22584 #--------------------------------------------------------------------
22585 # Check for the existence of the -lsocket and -lnsl libraries.
22586 # The order here is important, so that they end up in the right
22587 # order in the command line generated by make. Here are some
22588 # special considerations:
22589 # 1. Use "connect" and "accept" to check for -lsocket, and
22590 # "gethostbyname" to check for -lnsl.
22591 # 2. Use each function name only once: can't redo a check because
22592 # autoconf caches the results of the last check and won't redo it.
22593 # 3. Use -lnsl and -lsocket only if they supply procedures that
22594 # aren't already present in the normal libraries. This is because
22595 # IRIX 5.2 has libraries, but they aren't needed and they're
22596 # bogus: they goof up name resolution if used.
22597 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
22598 # To get around this problem, check for both libraries together
22599 # if -lsocket doesn't work by itself.
22600 #--------------------------------------------------------------------
22601
5213506e
RW
22602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
22603$as_echo_n "checking for socket libraries... " >&6; }
22604if test "${gcj_cv_lib_sockets+set}" = set; then :
22605 $as_echo_n "(cached) " >&6
1cf3d07d
SE
22606else
22607 gcj_cv_lib_sockets=
22608 gcj_checkBoth=0
22609 unset ac_cv_func_connect
5213506e
RW
22610 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
22611if test "x$ac_cv_func_connect" = x""yes; then :
1cf3d07d
SE
22612 gcj_checkSocket=0
22613else
22614 gcj_checkSocket=1
22615fi
22616
22617 if test "$gcj_checkSocket" = 1; then
22618 unset ac_cv_func_connect
5213506e
RW
22619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
22620$as_echo_n "checking for main in -lsocket... " >&6; }
22621if test "${ac_cv_lib_socket_main+set}" = set; then :
22622 $as_echo_n "(cached) " >&6
1cf3d07d
SE
22623else
22624 ac_check_lib_save_LIBS=$LIBS
22625LIBS="-lsocket $LIBS"
22626if test x$gcc_no_link = xyes; then
5213506e 22627 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 22628fi
5213506e 22629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 22630/* end confdefs.h. */
1cf3d07d 22631
1cf3d07d
SE
22632
22633int
22634main ()
22635{
5213506e 22636return main ();
1cf3d07d
SE
22637 ;
22638 return 0;
22639}
22640_ACEOF
5213506e
RW
22641if ac_fn_c_try_link "$LINENO"; then :
22642 ac_cv_lib_socket_main=yes
1cf3d07d 22643else
5213506e 22644 ac_cv_lib_socket_main=no
1cf3d07d 22645fi
5213506e
RW
22646rm -f core conftest.err conftest.$ac_objext \
22647 conftest$ac_exeext conftest.$ac_ext
22648LIBS=$ac_check_lib_save_LIBS
1cf3d07d 22649fi
5213506e
RW
22650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
22651$as_echo "$ac_cv_lib_socket_main" >&6; }
22652if test "x$ac_cv_lib_socket_main" = x""yes; then :
22653 gcj_cv_lib_sockets="-lsocket"
22654else
22655 gcj_checkBoth=1
22656fi
22657
22658 fi
22659 if test "$gcj_checkBoth" = 1; then
22660 gcj_oldLibs=$LIBS
22661 LIBS="$LIBS -lsocket -lnsl"
22662 unset ac_cv_func_accept
22663 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
22664if test "x$ac_cv_func_accept" = x""yes; then :
22665 gcj_checkNsl=0
22666 gcj_cv_lib_sockets="-lsocket -lnsl"
22667fi
22668
22669 unset ac_cv_func_accept
22670 LIBS=$gcj_oldLibs
22671 fi
22672 unset ac_cv_func_gethostbyname
22673 gcj_oldLibs=$LIBS
22674 LIBS="$LIBS $gcj_cv_lib_sockets"
22675 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22676if test "x$ac_cv_func_gethostbyname" = x""yes; then :
22677
1cf3d07d 22678else
5213506e
RW
22679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
22680$as_echo_n "checking for main in -lnsl... " >&6; }
22681if test "${ac_cv_lib_nsl_main+set}" = set; then :
22682 $as_echo_n "(cached) " >&6
1cf3d07d
SE
22683else
22684 ac_check_lib_save_LIBS=$LIBS
22685LIBS="-lnsl $LIBS"
22686if test x$gcc_no_link = xyes; then
5213506e 22687 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 22688fi
5213506e 22689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
22690/* end confdefs.h. */
22691
22692
22693int
22694main ()
22695{
5213506e 22696return main ();
1cf3d07d
SE
22697 ;
22698 return 0;
22699}
22700_ACEOF
5213506e 22701if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
22702 ac_cv_lib_nsl_main=yes
22703else
5213506e 22704 ac_cv_lib_nsl_main=no
1cf3d07d 22705fi
5213506e
RW
22706rm -f core conftest.err conftest.$ac_objext \
22707 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
22708LIBS=$ac_check_lib_save_LIBS
22709fi
5213506e
RW
22710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
22711$as_echo "$ac_cv_lib_nsl_main" >&6; }
22712if test "x$ac_cv_lib_nsl_main" = x""yes; then :
1cf3d07d
SE
22713 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
22714fi
22715
22716fi
22717
22718 unset ac_cv_func_gethostbyname
22719 LIBS=$gcj_oldLIBS
22720
22721fi
5213506e
RW
22722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcj_cv_lib_sockets" >&5
22723$as_echo "$gcj_cv_lib_sockets" >&6; }
1cf3d07d
SE
22724 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
22725
22726 if test "$with_system_zlib" = yes; then
5213506e
RW
22727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
22728$as_echo_n "checking for deflate in -lz... " >&6; }
22729if test "${ac_cv_lib_z_deflate+set}" = set; then :
22730 $as_echo_n "(cached) " >&6
1cf3d07d
SE
22731else
22732 ac_check_lib_save_LIBS=$LIBS
22733LIBS="-lz $LIBS"
22734if test x$gcc_no_link = xyes; then
5213506e 22735 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 22736fi
5213506e 22737cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
22738/* end confdefs.h. */
22739
5213506e
RW
22740/* Override any GCC internal prototype to avoid an error.
22741 Use char because int might match the return type of a GCC
22742 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
22743#ifdef __cplusplus
22744extern "C"
22745#endif
1cf3d07d
SE
22746char deflate ();
22747int
22748main ()
22749{
5213506e 22750return deflate ();
1cf3d07d
SE
22751 ;
22752 return 0;
22753}
22754_ACEOF
5213506e 22755if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
22756 ac_cv_lib_z_deflate=yes
22757else
5213506e 22758 ac_cv_lib_z_deflate=no
1cf3d07d 22759fi
5213506e
RW
22760rm -f core conftest.err conftest.$ac_objext \
22761 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
22762LIBS=$ac_check_lib_save_LIBS
22763fi
5213506e
RW
22764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
22765$as_echo "$ac_cv_lib_z_deflate" >&6; }
22766if test "x$ac_cv_lib_z_deflate" = x""yes; then :
1cf3d07d
SE
22767 ZLIBSPEC=-lz
22768else
22769 ZLIBSPEC=
22770fi
22771
22772 fi
22773
22774 # Test for Gtk stuff, if asked for.
22775 if test "$use_gtk_awt" = yes; then
22776
22777 succeeded=no
22778
22779 if test -z "$PKG_CONFIG"; then
22780 # Extract the first word of "pkg-config", so it can be a program name with args.
22781set dummy pkg-config; ac_word=$2
5213506e
RW
22782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22783$as_echo_n "checking for $ac_word... " >&6; }
22784if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22785 $as_echo_n "(cached) " >&6
1cf3d07d
SE
22786else
22787 case $PKG_CONFIG in
22788 [\\/]* | ?:[\\/]*)
22789 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22790 ;;
22791 *)
22792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22793for as_dir in $PATH
22794do
22795 IFS=$as_save_IFS
22796 test -z "$as_dir" && as_dir=.
5213506e
RW
22797 for ac_exec_ext in '' $ac_executable_extensions; do
22798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 22799 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5213506e 22800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
22801 break 2
22802 fi
22803done
5213506e
RW
22804 done
22805IFS=$as_save_IFS
1cf3d07d
SE
22806
22807 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22808 ;;
22809esac
22810fi
22811PKG_CONFIG=$ac_cv_path_PKG_CONFIG
1cf3d07d 22812if test -n "$PKG_CONFIG"; then
5213506e
RW
22813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22814$as_echo "$PKG_CONFIG" >&6; }
1cf3d07d 22815else
5213506e
RW
22816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22817$as_echo "no" >&6; }
1cf3d07d
SE
22818fi
22819
5213506e 22820
1cf3d07d
SE
22821 fi
22822
22823 if test "$PKG_CONFIG" = "no" ; then
22824 echo "*** The pkg-config script could not be found. Make sure it is"
22825 echo "*** in your path, or set the PKG_CONFIG environment variable"
22826 echo "*** to the full path to pkg-config."
22827 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22828 else
22829 PKG_CONFIG_MIN_VERSION=0.9.0
22830 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5213506e
RW
22831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.4" >&5
22832$as_echo_n "checking for gtk+-2.0 >= 2.4... " >&6; }
1cf3d07d
SE
22833
22834 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
5213506e
RW
22835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22836$as_echo "yes" >&6; }
1cf3d07d
SE
22837 succeeded=yes
22838
5213506e
RW
22839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
22840$as_echo_n "checking GTK_CFLAGS... " >&6; }
1cf3d07d 22841 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
5213506e
RW
22842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
22843$as_echo "$GTK_CFLAGS" >&6; }
1cf3d07d 22844
5213506e
RW
22845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
22846$as_echo_n "checking GTK_LIBS... " >&6; }
1cf3d07d 22847 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
5213506e
RW
22848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
22849$as_echo "$GTK_LIBS" >&6; }
1cf3d07d
SE
22850 else
22851 GTK_CFLAGS=""
22852 GTK_LIBS=""
22853 ## If we have a custom action on failure, don't print errors, but
22854 ## do set a variable so people can do so.
22855 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
22856 echo $GTK_PKG_ERRORS
22857 fi
22858
22859
22860
22861 else
22862 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22863 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22864 fi
22865 fi
22866
22867 if test $succeeded = yes; then
22868 :
22869 else
5213506e 22870 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
22871 fi
22872
22873
22874
22875
22876
22877 succeeded=no
22878
22879 if test -z "$PKG_CONFIG"; then
22880 # Extract the first word of "pkg-config", so it can be a program name with args.
22881set dummy pkg-config; ac_word=$2
5213506e
RW
22882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22883$as_echo_n "checking for $ac_word... " >&6; }
22884if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22885 $as_echo_n "(cached) " >&6
1cf3d07d
SE
22886else
22887 case $PKG_CONFIG in
22888 [\\/]* | ?:[\\/]*)
22889 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22890 ;;
22891 *)
22892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22893for as_dir in $PATH
22894do
22895 IFS=$as_save_IFS
22896 test -z "$as_dir" && as_dir=.
5213506e
RW
22897 for ac_exec_ext in '' $ac_executable_extensions; do
22898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 22899 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5213506e 22900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
22901 break 2
22902 fi
22903done
5213506e
RW
22904 done
22905IFS=$as_save_IFS
1cf3d07d
SE
22906
22907 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22908 ;;
22909esac
22910fi
22911PKG_CONFIG=$ac_cv_path_PKG_CONFIG
1cf3d07d 22912if test -n "$PKG_CONFIG"; then
5213506e
RW
22913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22914$as_echo "$PKG_CONFIG" >&6; }
1cf3d07d 22915else
5213506e
RW
22916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22917$as_echo "no" >&6; }
1cf3d07d
SE
22918fi
22919
5213506e 22920
1cf3d07d
SE
22921 fi
22922
22923 if test "$PKG_CONFIG" = "no" ; then
22924 echo "*** The pkg-config script could not be found. Make sure it is"
22925 echo "*** in your path, or set the PKG_CONFIG environment variable"
22926 echo "*** to the full path to pkg-config."
22927 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22928 else
22929 PKG_CONFIG_MIN_VERSION=0.9.0
22930 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5213506e
RW
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
22932$as_echo_n "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... " >&6; }
1cf3d07d
SE
22933
22934 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
5213506e
RW
22935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22936$as_echo "yes" >&6; }
1cf3d07d
SE
22937 succeeded=yes
22938
5213506e
RW
22939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
22940$as_echo_n "checking GLIB_CFLAGS... " >&6; }
1cf3d07d 22941 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
5213506e
RW
22942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
22943$as_echo "$GLIB_CFLAGS" >&6; }
1cf3d07d 22944
5213506e
RW
22945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
22946$as_echo_n "checking GLIB_LIBS... " >&6; }
1cf3d07d 22947 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
5213506e
RW
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
22949$as_echo "$GLIB_LIBS" >&6; }
1cf3d07d
SE
22950 else
22951 GLIB_CFLAGS=""
22952 GLIB_LIBS=""
22953 ## If we have a custom action on failure, don't print errors, but
22954 ## do set a variable so people can do so.
22955 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22956 echo $GLIB_PKG_ERRORS
22957 fi
22958
22959
22960
22961 else
22962 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22963 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22964 fi
22965 fi
22966
22967 if test $succeeded = yes; then
22968 :
22969 else
5213506e 22970 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
22971 fi
22972
22973
22974
22975
22976
22977 succeeded=no
22978
22979 if test -z "$PKG_CONFIG"; then
22980 # Extract the first word of "pkg-config", so it can be a program name with args.
22981set dummy pkg-config; ac_word=$2
5213506e
RW
22982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22983$as_echo_n "checking for $ac_word... " >&6; }
22984if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22985 $as_echo_n "(cached) " >&6
1cf3d07d
SE
22986else
22987 case $PKG_CONFIG in
22988 [\\/]* | ?:[\\/]*)
22989 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22990 ;;
22991 *)
22992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22993for as_dir in $PATH
22994do
22995 IFS=$as_save_IFS
22996 test -z "$as_dir" && as_dir=.
5213506e
RW
22997 for ac_exec_ext in '' $ac_executable_extensions; do
22998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 22999 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5213506e 23000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
23001 break 2
23002 fi
23003done
5213506e
RW
23004 done
23005IFS=$as_save_IFS
1cf3d07d
SE
23006
23007 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23008 ;;
23009esac
23010fi
23011PKG_CONFIG=$ac_cv_path_PKG_CONFIG
1cf3d07d 23012if test -n "$PKG_CONFIG"; then
5213506e
RW
23013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
23014$as_echo "$PKG_CONFIG" >&6; }
1cf3d07d 23015else
5213506e
RW
23016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23017$as_echo "no" >&6; }
1cf3d07d
SE
23018fi
23019
5213506e 23020
1cf3d07d
SE
23021 fi
23022
23023 if test "$PKG_CONFIG" = "no" ; then
23024 echo "*** The pkg-config script could not be found. Make sure it is"
23025 echo "*** in your path, or set the PKG_CONFIG environment variable"
23026 echo "*** to the full path to pkg-config."
23027 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23028 else
23029 PKG_CONFIG_MIN_VERSION=0.9.0
23030 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5213506e
RW
23031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libart-2.0 >= 2.1" >&5
23032$as_echo_n "checking for libart-2.0 >= 2.1... " >&6; }
1cf3d07d
SE
23033
23034 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
5213506e
RW
23035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23036$as_echo "yes" >&6; }
1cf3d07d
SE
23037 succeeded=yes
23038
5213506e
RW
23039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_CFLAGS" >&5
23040$as_echo_n "checking LIBART_CFLAGS... " >&6; }
1cf3d07d 23041 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
5213506e
RW
23042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_CFLAGS" >&5
23043$as_echo "$LIBART_CFLAGS" >&6; }
1cf3d07d 23044
5213506e
RW
23045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_LIBS" >&5
23046$as_echo_n "checking LIBART_LIBS... " >&6; }
1cf3d07d 23047 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
5213506e
RW
23048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_LIBS" >&5
23049$as_echo "$LIBART_LIBS" >&6; }
1cf3d07d
SE
23050 else
23051 LIBART_CFLAGS=""
23052 LIBART_LIBS=""
23053 ## If we have a custom action on failure, don't print errors, but
23054 ## do set a variable so people can do so.
23055 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
23056 echo $LIBART_PKG_ERRORS
23057 fi
23058
23059
23060
23061 else
23062 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23063 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23064 fi
23065 fi
23066
23067 if test $succeeded = yes; then
23068 :
23069 else
5213506e 23070 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
23071 fi
23072
23073
23074
23075
23076 # We require the XTest Extension to support java.awt.Robot.
5213506e
RW
23077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
23078$as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
23079if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
23080 $as_echo_n "(cached) " >&6
1cf3d07d
SE
23081else
23082 ac_check_lib_save_LIBS=$LIBS
23083LIBS="-lXtst ${X_LIBS} $LIBS"
23084if test x$gcc_no_link = xyes; then
5213506e 23085 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 23086fi
5213506e 23087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
23088/* end confdefs.h. */
23089
5213506e
RW
23090/* Override any GCC internal prototype to avoid an error.
23091 Use char because int might match the return type of a GCC
23092 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
23093#ifdef __cplusplus
23094extern "C"
23095#endif
1cf3d07d
SE
23096char XTestQueryExtension ();
23097int
23098main ()
23099{
5213506e 23100return XTestQueryExtension ();
1cf3d07d
SE
23101 ;
23102 return 0;
23103}
23104_ACEOF
5213506e 23105if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
23106 ac_cv_lib_Xtst_XTestQueryExtension=yes
23107else
5213506e 23108 ac_cv_lib_Xtst_XTestQueryExtension=no
1cf3d07d 23109fi
5213506e
RW
23110rm -f core conftest.err conftest.$ac_objext \
23111 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
23112LIBS=$ac_check_lib_save_LIBS
23113fi
5213506e
RW
23114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
23115$as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
23116if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
1cf3d07d
SE
23117 true
23118else
5213506e 23119 as_fn_error "libXtst not found, required by java.awt.Robot" "$LINENO" 5
1cf3d07d
SE
23120fi
23121
23122 fi
23123
23124 # On Solaris, and maybe other architectures, the Boehm collector
23125 # requires -ldl.
23126 if test "$GC" = boehm; then
de2b3a07
RO
23127 case "${host}" in
23128 mips-sgi-irix6*)
3aa831ba
RO
23129 # While IRIX 6 has libdl for the O32 and N32 ABIs, the N64 one is
23130 # missing. It's unnecessary anyway since dlopen lives in libc.
23131 ;;
618d4830 23132 *-*-darwin*)
3aa831ba 23133 ;;
de2b3a07 23134 *)
5213506e
RW
23135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
23136$as_echo_n "checking for main in -ldl... " >&6; }
23137if test "${ac_cv_lib_dl_main+set}" = set; then :
23138 $as_echo_n "(cached) " >&6
1cf3d07d
SE
23139else
23140 ac_check_lib_save_LIBS=$LIBS
23141LIBS="-ldl $LIBS"
23142if test x$gcc_no_link = xyes; then
5213506e 23143 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 23144fi
5213506e 23145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
23146/* end confdefs.h. */
23147
23148
23149int
23150main ()
23151{
5213506e 23152return main ();
1cf3d07d
SE
23153 ;
23154 return 0;
23155}
23156_ACEOF
5213506e 23157if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
23158 ac_cv_lib_dl_main=yes
23159else
5213506e 23160 ac_cv_lib_dl_main=no
1cf3d07d 23161fi
5213506e
RW
23162rm -f core conftest.err conftest.$ac_objext \
23163 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
23164LIBS=$ac_check_lib_save_LIBS
23165fi
5213506e
RW
23166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
23167$as_echo "$ac_cv_lib_dl_main" >&6; }
23168if test "x$ac_cv_lib_dl_main" = x""yes; then :
1cf3d07d
SE
23169 SYSTEMSPEC="$SYSTEMSPEC -ldl"
23170fi
23171
3aa831ba 23172 ;;
de2b3a07 23173 esac
1cf3d07d
SE
23174 fi
23175fi
23176
23177# Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
23178case $build in
23179 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
23180 *) CLASSPATH_SEPARATOR=':' ;;
23181esac
23182
23183
23184# We must search the source tree for java.lang, since we still don't
23185# have libgcj.jar nor java/lang/*.class
23186GCJ_SAVE_CPPFLAGS=$CPPFLAGS
23187CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
23188
23189# Since some classes depend on this one, we need its source available
23190# before we can do any GCJ compilation test :-(
23191if test ! -f gnu/classpath/Configuration.java; then
23192 test -d gnu || mkdir gnu
23193 test -d gnu/classpath || mkdir gnu/classpath
23194 # Note that it is not crucial that all the values here be correct.
f3392d53 23195 sed -e "s,@prefix@,$expanded_prefix," \
1cf3d07d
SE
23196 -e "s,@VERSION@,$VERSION," \
23197 -e "s,@LIBDEBUG@,false," \
23198 -e "s,@INIT_LOAD_LIBRARY@,false," \
23199 -e "s,@@,$LIBGCJDEBUG," \
23200 -e "s,@default_toolkit@,$TOOLKIT," \
23201 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
23202 -e "s,@GTK_CAIRO_ENABLED@,false," \
23203 -e "s,@ECJ_JAR@,," \
cd6d4007 23204 -e "s,@WANT_NATIVE_BIG_INTEGER@,false," \
1cf3d07d
SE
23205 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
23206 > gnu/classpath/Configuration.java
23207 # We do not want to redirect the output of the grep below to /dev/null,
23208 # but we add /dev/null to the input list so that grep will print the
23209 # filename of Configuration.java in case it finds any matches.
23210 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
5213506e 23211 as_fn_error "configure.ac is missing the substitutions above" "$LINENO" 5
1cf3d07d
SE
23212 fi
23213fi
23214
23215
4d9e8446
RW
23216if test -n "$ac_tool_prefix"; then
23217 for ac_prog in gcj
23218 do
23219 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23220set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
23221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23222$as_echo_n "checking for $ac_word... " >&6; }
23223if test "${ac_cv_prog_GCJ+set}" = set; then :
23224 $as_echo_n "(cached) " >&6
1cf3d07d
SE
23225else
23226 if test -n "$GCJ"; then
23227 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
23228else
23229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23230for as_dir in $PATH
23231do
23232 IFS=$as_save_IFS
23233 test -z "$as_dir" && as_dir=.
5213506e
RW
23234 for ac_exec_ext in '' $ac_executable_extensions; do
23235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4d9e8446 23236 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
5213506e 23237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
23238 break 2
23239 fi
23240done
5213506e
RW
23241 done
23242IFS=$as_save_IFS
1cf3d07d
SE
23243
23244fi
23245fi
23246GCJ=$ac_cv_prog_GCJ
23247if test -n "$GCJ"; then
5213506e
RW
23248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
23249$as_echo "$GCJ" >&6; }
1cf3d07d 23250else
5213506e
RW
23251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23252$as_echo "no" >&6; }
1cf3d07d
SE
23253fi
23254
5213506e 23255
4d9e8446
RW
23256 test -n "$GCJ" && break
23257 done
23258fi
23259if test -z "$GCJ"; then
23260 ac_ct_GCJ=$GCJ
23261 for ac_prog in gcj
23262do
23263 # Extract the first word of "$ac_prog", so it can be a program name with args.
23264set dummy $ac_prog; ac_word=$2
23265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23266$as_echo_n "checking for $ac_word... " >&6; }
23267if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
23268 $as_echo_n "(cached) " >&6
23269else
23270 if test -n "$ac_ct_GCJ"; then
23271 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
23272else
23273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23274for as_dir in $PATH
23275do
23276 IFS=$as_save_IFS
23277 test -z "$as_dir" && as_dir=.
23278 for ac_exec_ext in '' $ac_executable_extensions; do
23279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23280 ac_cv_prog_ac_ct_GCJ="$ac_prog"
23281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23282 break 2
23283 fi
23284done
23285 done
23286IFS=$as_save_IFS
23287
23288fi
23289fi
23290ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
23291if test -n "$ac_ct_GCJ"; then
23292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
23293$as_echo "$ac_ct_GCJ" >&6; }
23294else
23295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23296$as_echo "no" >&6; }
23297fi
23298
23299
23300 test -n "$ac_ct_GCJ" && break
1cf3d07d 23301done
4d9e8446
RW
23302
23303 if test "x$ac_ct_GCJ" = x; then
23304 GCJ="gcj"
23305 else
23306 case $cross_compiling:$ac_tool_warned in
23307yes:)
23308{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23309$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23310ac_tool_warned=yes ;;
23311esac
23312 GCJ=$ac_ct_GCJ
23313 fi
23314fi
1cf3d07d 23315
5213506e 23316test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
1cf3d07d
SE
23317if test "x${GCJFLAGS-unset}" = xunset; then
23318 GCJFLAGS="-g -O2"
23319fi
23320
23321
23322depcc="$GCJ" am_compiler_list='gcc3 gcc'
23323
5213506e
RW
23324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23325$as_echo_n "checking dependency style of $depcc... " >&6; }
23326if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
23327 $as_echo_n "(cached) " >&6
1cf3d07d
SE
23328else
23329 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23330 # We make a subdir and do the tests there. Otherwise we can end up
23331 # making bogus files that we don't know about and never remove. For
23332 # instance it was reported that on HP-UX the gcc test will end up
23333 # making a dummy file named `D' -- because `-MD' means `put the output
23334 # in D'.
23335 mkdir conftest.dir
23336 # Copy depcomp to subdir because otherwise we won't find it if we're
23337 # using a relative directory.
23338 cp "$am_depcomp" conftest.dir
23339 cd conftest.dir
23340 # We will build objects and dependencies in a subdirectory because
23341 # it helps to detect inapplicable dependency modes. For instance
23342 # both Tru64's cc and ICC support -MD to output dependencies as a
23343 # side effect of compilation, but ICC will put the dependencies in
23344 # the current directory while Tru64 will put them in the object
23345 # directory.
23346 mkdir sub
23347
23348 am_cv_GCJ_dependencies_compiler_type=none
23349 if test "$am_compiler_list" = ""; then
23350 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23351 fi
5213506e
RW
23352 am__universal=false
23353
23354
1cf3d07d
SE
23355 for depmode in $am_compiler_list; do
23356 # Setup a source with many dependencies, because some compilers
23357 # like to wrap large dependency lists on column 80 (with \), and
23358 # we should not choose a depcomp mode which is confused by this.
23359 #
23360 # We need to recreate these files for each test, as the compiler may
23361 # overwrite some of them when testing with obscure command lines.
23362 # This happens at least with the AIX C compiler.
23363 : > sub/conftest.c
23364 for i in 1 2 3 4 5 6; do
23365 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23366 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23367 # Solaris 8's {/usr,}/bin/sh.
23368 touch sub/conftst$i.h
23369 done
23370 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23371
5213506e
RW
23372 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23373 # mode. It turns out that the SunPro C++ compiler does not properly
23374 # handle `-M -o', and we need to detect this. Also, some Intel
23375 # versions had trouble with output in subdirs
23376 am__obj=sub/conftest.${OBJEXT-o}
23377 am__minus_obj="-o $am__obj"
1cf3d07d 23378 case $depmode in
5213506e
RW
23379 gcc)
23380 # This depmode causes a compiler race in universal mode.
23381 test "$am__universal" = false || continue
23382 ;;
1cf3d07d
SE
23383 nosideeffect)
23384 # after this tag, mechanisms are not by side-effect, so they'll
23385 # only be used when explicitly requested
23386 if test "x$enable_dependency_tracking" = xyes; then
23387 continue
23388 else
23389 break
23390 fi
23391 ;;
5213506e
RW
23392 msvisualcpp | msvcmsys)
23393 # This compiler won't grok `-c -o', but also, the minuso test has
23394 # not run yet. These depmodes are late enough in the game, and
23395 # so weak that their functioning should not be impacted.
23396 am__obj=conftest.${OBJEXT-o}
23397 am__minus_obj=
23398 ;;
1cf3d07d
SE
23399 none) break ;;
23400 esac
1cf3d07d 23401 if depmode=$depmode \
5213506e 23402 source=sub/conftest.c object=$am__obj \
1cf3d07d 23403 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213506e 23404 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1cf3d07d 23405 >/dev/null 2>conftest.err &&
5213506e 23406 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1cf3d07d 23407 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213506e 23408 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1cf3d07d
SE
23409 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23410 # icc doesn't choke on unknown options, it will just issue warnings
23411 # or remarks (even with -Werror). So we grep stderr for any message
23412 # that says an option was ignored or not supported.
23413 # When given -MP, icc 7.0 and 7.1 complain thusly:
23414 # icc: Command line warning: ignoring option '-M'; no argument required
23415 # The diagnosis changed in icc 8.0:
23416 # icc: Command line remark: option '-MP' not supported
23417 if (grep 'ignoring option' conftest.err ||
23418 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23419 am_cv_GCJ_dependencies_compiler_type=$depmode
23420 break
23421 fi
23422 fi
23423 done
23424
23425 cd ..
23426 rm -rf conftest.dir
23427else
23428 am_cv_GCJ_dependencies_compiler_type=none
23429fi
23430
23431fi
5213506e
RW
23432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
23433$as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
1cf3d07d
SE
23434GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
23435
5213506e 23436 if
1cf3d07d
SE
23437 test "x$enable_dependency_tracking" != xno \
23438 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
23439 am__fastdepGCJ_TRUE=
23440 am__fastdepGCJ_FALSE='#'
23441else
5213506e
RW
23442 am__fastdepGCJ_TRUE='#'
23443 am__fastdepGCJ_FALSE=
1cf3d07d 23444fi
1cf3d07d 23445
1cf3d07d 23446
5213506e
RW
23447
23448
23449# Now remove it.
23450rm -f gnu/classpath/Configuration.java
23451
23452CPPFLAGS=$GCJ_SAVE_CPPFLAGS
23453
23454# The cast to long int works around a bug in the HP C Compiler
23455# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23456# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23457# This bug is HP SR number 8606223364.
23458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
23459$as_echo_n "checking size of void *... " >&6; }
23460if test "${ac_cv_sizeof_void_p+set}" = set; then :
23461 $as_echo_n "(cached) " >&6
1cf3d07d 23462else
5213506e 23463 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
1cf3d07d 23464
1cf3d07d 23465else
5213506e
RW
23466 if test "$ac_cv_type_void_p" = yes; then
23467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23468$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23469{ as_fn_set_status 77
23470as_fn_error "cannot compute sizeof (void *)
23471See \`config.log' for more details." "$LINENO" 5; }; }
23472 else
23473 ac_cv_sizeof_void_p=0
23474 fi
1cf3d07d 23475fi
5213506e 23476
1cf3d07d 23477fi
5213506e
RW
23478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
23479$as_echo "$ac_cv_sizeof_void_p" >&6; }
23480
23481
23482
1cf3d07d
SE
23483cat >>confdefs.h <<_ACEOF
23484#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23485_ACEOF
23486
23487
23488
5213506e
RW
23489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23490$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23491if test "${ac_cv_c_bigendian+set}" = set; then :
23492 $as_echo_n "(cached) " >&6
1cf3d07d 23493else
5213506e
RW
23494 ac_cv_c_bigendian=unknown
23495 # See if we're dealing with a universal compiler.
23496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23497/* end confdefs.h. */
23498#ifndef __APPLE_CC__
23499 not a universal capable compiler
23500 #endif
23501 typedef int dummy;
23502
23503_ACEOF
23504if ac_fn_c_try_compile "$LINENO"; then :
23505
23506 # Check for potential -arch flags. It is not universal unless
23507 # there are at least two -arch flags with different values.
23508 ac_arch=
23509 ac_prev=
23510 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23511 if test -n "$ac_prev"; then
23512 case $ac_word in
23513 i?86 | x86_64 | ppc | ppc64)
23514 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23515 ac_arch=$ac_word
23516 else
23517 ac_cv_c_bigendian=universal
23518 break
23519 fi
23520 ;;
23521 esac
23522 ac_prev=
23523 elif test "x$ac_word" = "x-arch"; then
23524 ac_prev=arch
23525 fi
23526 done
23527fi
23528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23529 if test $ac_cv_c_bigendian = unknown; then
23530 # See if sys/param.h defines the BYTE_ORDER macro.
23531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
23532/* end confdefs.h. */
23533#include <sys/types.h>
5213506e 23534 #include <sys/param.h>
1cf3d07d
SE
23535
23536int
23537main ()
23538{
5213506e
RW
23539#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23540 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23541 && LITTLE_ENDIAN)
23542 bogus endian macros
23543 #endif
1cf3d07d
SE
23544
23545 ;
23546 return 0;
23547}
23548_ACEOF
5213506e 23549if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d 23550 # It does; now see whether it defined to BIG_ENDIAN or not.
5213506e 23551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
23552/* end confdefs.h. */
23553#include <sys/types.h>
5213506e 23554 #include <sys/param.h>
1cf3d07d
SE
23555
23556int
23557main ()
23558{
23559#if BYTE_ORDER != BIG_ENDIAN
5213506e
RW
23560 not big endian
23561 #endif
1cf3d07d
SE
23562
23563 ;
23564 return 0;
23565}
23566_ACEOF
5213506e 23567if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d
SE
23568 ac_cv_c_bigendian=yes
23569else
5213506e 23570 ac_cv_c_bigendian=no
1cf3d07d 23571fi
5213506e
RW
23572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23573fi
23574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23575 fi
23576 if test $ac_cv_c_bigendian = unknown; then
23577 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23579/* end confdefs.h. */
23580#include <limits.h>
1cf3d07d 23581
5213506e
RW
23582int
23583main ()
23584{
23585#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23586 bogus endian macros
23587 #endif
23588
23589 ;
23590 return 0;
23591}
1cf3d07d 23592_ACEOF
5213506e
RW
23593if ac_fn_c_try_compile "$LINENO"; then :
23594 # It does; now see whether it defined to _BIG_ENDIAN or not.
23595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 23596/* end confdefs.h. */
5213506e
RW
23597#include <limits.h>
23598
1cf3d07d
SE
23599int
23600main ()
23601{
5213506e
RW
23602#ifndef _BIG_ENDIAN
23603 not big endian
23604 #endif
23605
1cf3d07d
SE
23606 ;
23607 return 0;
23608}
23609_ACEOF
5213506e 23610if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d 23611 ac_cv_c_bigendian=yes
5213506e
RW
23612else
23613 ac_cv_c_bigendian=no
1cf3d07d 23614fi
5213506e 23615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d 23616fi
5213506e
RW
23617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23618 fi
23619 if test $ac_cv_c_bigendian = unknown; then
23620 # Compile a test program.
23621 if test "$cross_compiling" = yes; then :
23622 # Try to guess by grepping values from an object file.
23623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23624/* end confdefs.h. */
23625short int ascii_mm[] =
23626 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23627 short int ascii_ii[] =
23628 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23629 int use_ascii (int i) {
23630 return ascii_mm[i] + ascii_ii[i];
23631 }
23632 short int ebcdic_ii[] =
23633 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23634 short int ebcdic_mm[] =
23635 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23636 int use_ebcdic (int i) {
23637 return ebcdic_mm[i] + ebcdic_ii[i];
23638 }
23639 extern int foo;
1cf3d07d 23640
5213506e
RW
23641int
23642main ()
23643{
23644return use_ascii (foo) == use_ebcdic (foo);
23645 ;
23646 return 0;
23647}
23648_ACEOF
23649if ac_fn_c_try_compile "$LINENO"; then :
23650 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23651 ac_cv_c_bigendian=yes
23652 fi
23653 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23654 if test "$ac_cv_c_bigendian" = unknown; then
23655 ac_cv_c_bigendian=no
23656 else
23657 # finding both strings is unlikely to happen, but who knows?
23658 ac_cv_c_bigendian=unknown
23659 fi
23660 fi
1cf3d07d 23661fi
5213506e 23662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d 23663else
5213506e 23664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 23665/* end confdefs.h. */
5213506e 23666$ac_includes_default
1cf3d07d
SE
23667int
23668main ()
23669{
5213506e
RW
23670
23671 /* Are we little or big endian? From Harbison&Steele. */
23672 union
23673 {
23674 long int l;
23675 char c[sizeof (long int)];
23676 } u;
23677 u.l = 1;
23678 return u.c[sizeof (long int) - 1] == 1;
23679
23680 ;
23681 return 0;
1cf3d07d
SE
23682}
23683_ACEOF
5213506e 23684if ac_fn_c_try_run "$LINENO"; then :
1cf3d07d
SE
23685 ac_cv_c_bigendian=no
23686else
5213506e 23687 ac_cv_c_bigendian=yes
1cf3d07d 23688fi
5213506e
RW
23689rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23690 conftest.$ac_objext conftest.beam conftest.$ac_ext
1cf3d07d 23691fi
5213506e
RW
23692
23693 fi
1cf3d07d 23694fi
5213506e
RW
23695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23696$as_echo "$ac_cv_c_bigendian" >&6; }
23697 case $ac_cv_c_bigendian in #(
23698 yes)
23699 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23700;; #(
23701 no)
23702 ;; #(
23703 universal)
1cf3d07d 23704
5213506e
RW
23705$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23706
23707 ;; #(
23708 *)
23709 as_fn_error "unknown endianness
23710 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23711 esac
1cf3d07d
SE
23712
23713
23714ZLIBS=
23715SYS_ZLIBS=
23716ZINCS=
23717
23718if test -z "$ZLIBSPEC"; then
23719 # Use zlib from the GCC tree.
23720 ZINCS='-I$(top_srcdir)/../zlib'
23721 ZLIBS=../zlib/libzgcj_convenience.la
23722else
23723 # System's zlib.
23724 SYS_ZLIBS="$ZLIBSPEC"
23725fi
23726
23727
23728
23729
23730
23731
23732
23733
23734
23735
5213506e 23736 if test "$NATIVE" = yes; then
1cf3d07d
SE
23737 NATIVE_TRUE=
23738 NATIVE_FALSE='#'
23739else
23740 NATIVE_TRUE='#'
23741 NATIVE_FALSE=
23742fi
23743
5213506e 23744 if test "$enable_shared" = yes; then
1cf3d07d
SE
23745 ENABLE_SHARED_TRUE=
23746 ENABLE_SHARED_FALSE='#'
23747else
23748 ENABLE_SHARED_TRUE='#'
23749 ENABLE_SHARED_FALSE=
23750fi
23751
5213506e 23752 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
1cf3d07d
SE
23753 NEEDS_DATA_START_TRUE=
23754 NEEDS_DATA_START_FALSE='#'
23755else
23756 NEEDS_DATA_START_TRUE='#'
23757 NEEDS_DATA_START_FALSE=
23758fi
23759
5213506e 23760 if test -z "${with_multisubdir}"; then
4bf95cef
JJ
23761 INSTALL_BINARIES_TRUE=
23762 INSTALL_BINARIES_FALSE='#'
23763else
23764 INSTALL_BINARIES_TRUE='#'
23765 INSTALL_BINARIES_FALSE=
23766fi
23767
23768
23769
1cf3d07d
SE
23770# Process the option "--enable-version-specific-runtime-libs"
23771# Calculate toolexeclibdir
23772case ${version_specific_libs} in
23773 yes)
23774 # Need the gcc compiler version to know where to install libraries
23775 # and header files if --enable-version-specific-runtime-libs option
23776 # is selected.
23777 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
23778 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
23779 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
23780 toolexeclibdir=$toolexecmainlibdir
23781 ;;
23782 no)
23783 if test -n "$with_cross_host" &&
23784 test x"$with_cross_host" != x"no"; then
23785 # Install a library built with a cross compiler in tooldir, not libdir.
23786 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
23787 toolexecmainlibdir='$(toolexecdir)/lib'
23788 else
23789 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
23790 toolexecmainlibdir='$(libdir)'
23791 fi
23792 multi_os_directory=`$CC -print-multi-os-directory`
23793 case $multi_os_directory in
23794 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
23795 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
23796 esac
23797 ;;
23798esac
23799
23800
23801
23802
ed339fbc 23803# Determine gcj and libgcj version number.
acd29efb 23804gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
ed339fbc
MK
23805libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
23806GCJVERSION=$gcjversion
23807
23808
23809cat >>confdefs.h <<_ACEOF
23810#define GCJVERSION "$GCJVERSION"
23811_ACEOF
23812
23813
1cf3d07d
SE
23814# Determine where the standard .db file and GNU Classpath JNI
23815# libraries are found.
50e47dba 23816gcjsubdir=gcj-$gcjversion-$libgcj_soversion
1cf3d07d
SE
23817multi_os_directory=`$CC -print-multi-os-directory`
23818case $multi_os_directory in
23819 .)
50e47dba 23820 dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
1cf3d07d
SE
23821 ;;
23822 *)
50e47dba 23823 dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
1cf3d07d
SE
23824 ;;
23825esac
23826
1cf3d07d
SE
23827
23828
c9db365d 23829
5213506e 23830$as_echo "#define JV_VERSION \"1.5.0\"" >>confdefs.h
1cf3d07d
SE
23831
23832
5213506e 23833$as_echo "#define JV_API_VERSION \"1.5\"" >>confdefs.h
1cf3d07d
SE
23834
23835
23836
23837case "${with_gxx_include_dir}" in
23838 yes)
5213506e 23839 as_fn_error "--with-gxx-include-dir=[dir] requires a directory" "$LINENO" 5
1cf3d07d
SE
23840 ;;
23841 no | "")
23842 case "${enable_version_specific_runtime_libs}" in
23843 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
23844 *)
23845 libstdcxx_incdir='c++/$(gcc_version)'
23846 gxx_include_dir='include/$(libstdcxx_incdir)'
23847 if test -n "$with_cross_host" &&
23848 test x"$with_cross_host" != x"no"; then
23849 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
23850 else
23851 gxx_include_dir='${prefix}/'"$gxx_include_dir"
23852 fi;;
23853 esac ;;
23854 *) gxx_include_dir=${with_gxx_include_dir} ;;
23855esac
23856
23857
5213506e
RW
23858
23859
23860# We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
23861# On that system, sys/ioctl.h will not include sys/filio.h unless
23862# BSD_COMP is defined; just including sys/filio.h is simpler.
23863# We avoid AC_HEADER_DIRENT since we really only care about dirent.h
23864# for now. If you change this, you also must update natFile.cc.
23865for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
23866 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
9e8b671c 23867 sys/socket.h netinet/in.h arpa/inet.h netdb.h \
5213506e
RW
23868 pwd.h sys/config.h stdint.h langinfo.h locale.h \
23869 dirent.h sys/rw_lock.h magic.h ifaddrs.h
23870do :
23871 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23872ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23873eval as_val=\$$as_ac_Header
23874 if test "x$as_val" = x""yes; then :
23875 cat >>confdefs.h <<_ACEOF
23876#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1cf3d07d 23877_ACEOF
1cf3d07d 23878
1cf3d07d 23879fi
1cf3d07d 23880
5213506e 23881done
1cf3d07d 23882
9e8b671c
EB
23883
23884# sys/socket.h is a prerequisite for net/if.h on Solaris.
23885for ac_header in net/if.h
23886do :
23887 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
23888#ifdef HAVE_SYS_SOCKET_H
23889#include <sys/socket.h>
23890#endif
23891
23892"
23893if test "x$ac_cv_header_net_if_h" = x""yes; then :
23894 cat >>confdefs.h <<_ACEOF
23895#define HAVE_NET_IF_H 1
23896_ACEOF
23897
23898fi
23899
23900done
23901
23902
5213506e
RW
23903for ac_header in inttypes.h
23904do :
23905 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
23906if test "x$ac_cv_header_inttypes_h" = x""yes; then :
1cf3d07d 23907 cat >>confdefs.h <<_ACEOF
5213506e 23908#define HAVE_INTTYPES_H 1
1cf3d07d
SE
23909_ACEOF
23910
23911
5213506e 23912$as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
1cf3d07d
SE
23913
23914
5213506e 23915$as_echo "#define JV_HAVE_INTTYPES_H 1" >>confdefs.h
1cf3d07d
SE
23916
23917
23918fi
23919
23920done
23921
23922
5213506e
RW
23923ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23924if test "x$ac_cv_type_ssize_t" = x""yes; then :
1cf3d07d 23925
1cf3d07d
SE
23926else
23927
23928cat >>confdefs.h <<_ACEOF
23929#define ssize_t int
23930_ACEOF
23931
23932fi
23933
5213506e 23934ac_fn_c_check_type "$LINENO" "magic_t" "ac_cv_type_magic_t" "
1cf3d07d
SE
23935#ifdef HAVE_MAGIC_H
23936#include <magic.h>
23937#endif
5213506e
RW
23938"
23939if test "x$ac_cv_type_magic_t" = x""yes; then :
1cf3d07d 23940
1cf3d07d 23941
5213506e 23942$as_echo "#define HAVE_MAGIC_T 1" >>confdefs.h
1cf3d07d
SE
23943
23944fi
23945
23946
5213506e
RW
23947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5
23948$as_echo_n "checking for in_addr_t... " >&6; }
23949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
23950/* end confdefs.h. */
23951#include <sys/types.h>
23952#if STDC_HEADERS
23953#include <stdlib.h>
23954#include <stddef.h>
23955#endif
23956#if HAVE_NETINET_IN_H
23957#include <netinet/in.h>
23958#endif
23959int
23960main ()
23961{
23962in_addr_t foo;
23963 ;
23964 return 0;
23965}
23966_ACEOF
5213506e 23967if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d 23968
5213506e 23969$as_echo "#define HAVE_IN_ADDR_T 1" >>confdefs.h
1cf3d07d 23970
5213506e
RW
23971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23972$as_echo "yes" >&6; }
1cf3d07d 23973else
5213506e
RW
23974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23975$as_echo "no" >&6; }
1cf3d07d 23976fi
5213506e 23977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d 23978
5213506e
RW
23979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ip_mreq is in netinet/in.h" >&5
23980$as_echo_n "checking whether struct ip_mreq is in netinet/in.h... " >&6; }
23981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
23982/* end confdefs.h. */
23983#include <netinet/in.h>
23984int
23985main ()
23986{
23987struct ip_mreq mreq;
23988 ;
23989 return 0;
23990}
23991_ACEOF
5213506e 23992if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d 23993
5213506e 23994$as_echo "#define HAVE_STRUCT_IP_MREQ 1" >>confdefs.h
1cf3d07d 23995
5213506e
RW
23996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23997$as_echo "yes" >&6; }
1cf3d07d 23998else
5213506e
RW
23999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24000$as_echo "no" >&6; }
1cf3d07d 24001fi
5213506e 24002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d 24003
5213506e
RW
24004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ipv6_mreq is in netinet/in.h" >&5
24005$as_echo_n "checking whether struct ipv6_mreq is in netinet/in.h... " >&6; }
24006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
24007/* end confdefs.h. */
24008#include <netinet/in.h>
24009int
24010main ()
24011{
24012struct ipv6_mreq mreq6;
24013 ;
24014 return 0;
24015}
24016_ACEOF
5213506e 24017if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d 24018
5213506e 24019$as_echo "#define HAVE_STRUCT_IPV6_MREQ 1" >>confdefs.h
1cf3d07d 24020
5213506e
RW
24021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24022$as_echo "yes" >&6; }
1cf3d07d 24023else
5213506e
RW
24024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24025$as_echo "no" >&6; }
1cf3d07d 24026fi
5213506e 24027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d 24028
5213506e
RW
24029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
24030$as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
24031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
24032/* end confdefs.h. */
24033#include <netinet/in.h>
24034int
24035main ()
24036{
24037struct sockaddr_in6 addr6;
24038 ;
24039 return 0;
24040}
24041_ACEOF
5213506e 24042if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d 24043
5213506e 24044$as_echo "#define HAVE_INET6 1" >>confdefs.h
1cf3d07d 24045
5213506e
RW
24046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24047$as_echo "yes" >&6; }
1cf3d07d 24048else
5213506e
RW
24049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24050$as_echo "no" >&6; }
1cf3d07d 24051fi
5213506e 24052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d 24053
5213506e
RW
24054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
24055$as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
24056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
24057/* end confdefs.h. */
24058#define _POSIX_PII_SOCKET
24059#include <sys/types.h>
24060#include <sys/socket.h>
24061int
24062main ()
24063{
24064socklen_t x = 5;
24065 ;
24066 return 0;
24067}
24068_ACEOF
5213506e 24069if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d 24070
5213506e 24071$as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
1cf3d07d 24072
5213506e
RW
24073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24074$as_echo "yes" >&6; }
1cf3d07d 24075else
5213506e
RW
24076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24077$as_echo "no" >&6; }
1cf3d07d 24078fi
5213506e 24079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d 24080
5213506e
RW
24081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
24082$as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
24083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
24084/* end confdefs.h. */
24085#include <time.h>
24086int
24087main ()
24088{
24089struct tm tim; tim.tm_gmtoff = 0;
24090 ;
24091 return 0;
24092}
24093_ACEOF
5213506e 24094if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d 24095
5213506e 24096$as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
1cf3d07d 24097
5213506e
RW
24098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24099$as_echo "yes" >&6; }
1cf3d07d 24100else
5213506e
RW
24101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24102$as_echo "no" >&6; }
24103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
24104$as_echo_n "checking for global timezone variable... " >&6; }
24105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
24106/* end confdefs.h. */
24107#include <time.h>
24108int
24109main ()
24110{
24111void i(){long z2 = 2*timezone;}
24112 ;
24113 return 0;
24114}
24115_ACEOF
5213506e 24116if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d 24117
5213506e 24118$as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
1cf3d07d 24119
5213506e
RW
24120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24121$as_echo "yes" >&6; }
1cf3d07d 24122else
5213506e
RW
24123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24124$as_echo "no" >&6; }
24125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
24126$as_echo_n "checking for global _timezone variable... " >&6; }
24127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
24128/* end confdefs.h. */
24129#include <time.h>
24130int
24131main ()
24132{
24133long z2 = _timezone;
24134 ;
24135 return 0;
24136}
24137_ACEOF
5213506e 24138if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d 24139
5213506e 24140$as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
1cf3d07d 24141
5213506e
RW
24142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24143$as_echo "yes" >&6; }
1cf3d07d 24144else
5213506e
RW
24145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24146$as_echo "no" >&6; }
1cf3d07d 24147fi
5213506e 24148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d 24149fi
5213506e 24150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d 24151fi
5213506e 24152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
24153
24154for ac_prog in perl
24155do
24156 # Extract the first word of "$ac_prog", so it can be a program name with args.
24157set dummy $ac_prog; ac_word=$2
5213506e
RW
24158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24159$as_echo_n "checking for $ac_word... " >&6; }
24160if test "${ac_cv_prog_PERL+set}" = set; then :
24161 $as_echo_n "(cached) " >&6
1cf3d07d
SE
24162else
24163 if test -n "$PERL"; then
24164 ac_cv_prog_PERL="$PERL" # Let the user override the test.
24165else
24166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24167for as_dir in $PATH
24168do
24169 IFS=$as_save_IFS
24170 test -z "$as_dir" && as_dir=.
5213506e
RW
24171 for ac_exec_ext in '' $ac_executable_extensions; do
24172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 24173 ac_cv_prog_PERL="$ac_prog"
5213506e 24174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
24175 break 2
24176 fi
24177done
5213506e
RW
24178 done
24179IFS=$as_save_IFS
1cf3d07d
SE
24180
24181fi
24182fi
24183PERL=$ac_cv_prog_PERL
24184if test -n "$PERL"; then
5213506e
RW
24185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
24186$as_echo "$PERL" >&6; }
1cf3d07d 24187else
5213506e
RW
24188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24189$as_echo "no" >&6; }
1cf3d07d
SE
24190fi
24191
5213506e 24192
1cf3d07d
SE
24193 test -n "$PERL" && break
24194done
24195test -n "$PERL" || PERL="false"
24196
24197
24198SYSDEP_SOURCES=
24199SIGNAL_HANDLER_AUX=
24200
24201case "${host}" in
24202 i?86-*-linux*)
24203 SIGNAL_HANDLER=include/i386-signal.h
24204 ;;
f644b3d1
RO
24205 *-*-solaris2*)
24206 SIGNAL_HANDLER=include/solaris-signal.h
1cf3d07d
SE
24207 ;;
24208# ia64-*)
24209# SYSDEP_SOURCES=sysdep/ia64.c
24210# test -d sysdep || mkdir sysdep
24211# ;;
24212 hppa*-*-linux*)
24213 SIGNAL_HANDLER=include/pa-signal.h
24214 ;;
24215 hppa*-hp-hpux*)
24216 SIGNAL_HANDLER=include/hppa-signal.h
24217 ;;
24218 ia64-*-linux*)
24219 SIGNAL_HANDLER=include/dwarf2-signal.h
24220 ;;
24221 powerpc*-*-linux*)
24222 SIGNAL_HANDLER=include/powerpc-signal.h
24223 ;;
24224 alpha*-*-linux*)
24225 SIGNAL_HANDLER=include/dwarf2-signal.h
24226 ;;
24227 s390*-*-linux*)
24228 SIGNAL_HANDLER=include/s390-signal.h
24229 ;;
24230 x86_64*-*-linux*)
24231 SIGNAL_HANDLER=include/x86_64-signal.h
24232 SIGNAL_HANDLER_AUX=include/i386-signal.h
24233 ;;
24234 sparc*-*-linux*)
24235 SIGNAL_HANDLER=include/dwarf2-signal.h
24236 ;;
24237 sh*-*-linux*)
24238 SIGNAL_HANDLER=include/sh-signal.h
24239 ;;
24240 *mingw*)
24241 SIGNAL_HANDLER=include/win32-signal.h
24242 ;;
24243 mips*-*-linux*)
24244 SIGNAL_HANDLER=include/mips-signal.h
24245 ;;
dbc293c8
RZ
24246 m68*-*-linux*)
24247 SIGNAL_HANDLER=include/dwarf2-signal.h
24248 ;;
dc4e3423 24249 powerpc*-*-darwin* | i?86-*-darwin[912]* | x86_64-*-darwin[912]*)
1cf3d07d
SE
24250 SIGNAL_HANDLER=include/darwin-signal.h
24251 ;;
887e6178
DE
24252 powerpc*-*-aix*)
24253 SIGNAL_HANDLER=include/aix-signal.h
24254 ;;
1cf3d07d
SE
24255 *)
24256 SIGNAL_HANDLER=include/default-signal.h
24257 ;;
24258esac
24259
24260# If we're using sjlj exceptions, forget what we just learned.
24261if test "$enable_sjlj_exceptions" = yes; then
24262 SIGNAL_HANDLER=include/default-signal.h
24263 SIGNAL_HANDLER_AUX=
24264fi
24265
24266
24267
24268if test -z "$SIGNAL_HANDLER_AUX"; then
24269 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
24270fi
24271
5213506e 24272ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
1cf3d07d
SE
24273
24274
24275if test "${multilib}" = "yes"; then
24276 multilib_arg="--enable-multilib"
24277else
24278 multilib_arg=
24279fi
24280
24281# See if we support thread-local storage.
24282
396b7fa4 24283
5213506e
RW
24284 # Check whether --enable-tls was given.
24285if test "${enable_tls+set}" = set; then :
24286 enableval=$enable_tls;
1cf3d07d
SE
24287 case "$enableval" in
24288 yes|no) ;;
5213506e 24289 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
1cf3d07d
SE
24290 esac
24291
24292else
24293 enable_tls=yes
5213506e
RW
24294fi
24295
1cf3d07d 24296
5213506e
RW
24297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
24298$as_echo_n "checking whether the target supports thread-local storage... " >&6; }
24299if test "${gcc_cv_have_tls+set}" = set; then :
24300 $as_echo_n "(cached) " >&6
1cf3d07d
SE
24301else
24302
5213506e 24303 if test "$cross_compiling" = yes; then :
1cf3d07d 24304 if test x$gcc_no_link = xyes; then
5213506e 24305 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 24306fi
5213506e
RW
24307cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24308/* end confdefs.h. */
1cf3d07d
SE
24309__thread int a; int b; int main() { return a = b; }
24310_ACEOF
5213506e 24311if ac_fn_c_try_link "$LINENO"; then :
396b7fa4
JM
24312 chktls_save_LDFLAGS="$LDFLAGS"
24313 case $host in
24314 *-*-linux*)
24315 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
24316 ;;
24317 esac
24318 chktls_save_CFLAGS="$CFLAGS"
24319 CFLAGS="-fPIC $CFLAGS"
24320 if test x$gcc_no_link = xyes; then
5213506e 24321 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
396b7fa4 24322fi
5213506e
RW
24323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24324/* end confdefs.h. */
396b7fa4
JM
24325int f() { return 0; }
24326_ACEOF
5213506e 24327if ac_fn_c_try_link "$LINENO"; then :
396b7fa4 24328 if test x$gcc_no_link = xyes; then
5213506e 24329 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
396b7fa4 24330fi
5213506e
RW
24331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24332/* end confdefs.h. */
396b7fa4
JM
24333__thread int a; int b; int f() { return a = b; }
24334_ACEOF
5213506e 24335if ac_fn_c_try_link "$LINENO"; then :
3afcaaf4 24336 gcc_cv_have_tls=yes
1cf3d07d 24337else
5213506e 24338 gcc_cv_have_tls=no
396b7fa4 24339fi
5213506e
RW
24340rm -f core conftest.err conftest.$ac_objext \
24341 conftest$ac_exeext conftest.$ac_ext
396b7fa4 24342else
5213506e 24343 gcc_cv_have_tls=yes
396b7fa4 24344fi
5213506e
RW
24345rm -f core conftest.err conftest.$ac_objext \
24346 conftest$ac_exeext conftest.$ac_ext
396b7fa4
JM
24347 CFLAGS="$chktls_save_CFLAGS"
24348 LDFLAGS="$chktls_save_LDFLAGS"
24349else
5213506e 24350 gcc_cv_have_tls=no
1cf3d07d 24351fi
5213506e
RW
24352rm -f core conftest.err conftest.$ac_objext \
24353 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
24354
24355
24356else
5213506e
RW
24357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24358/* end confdefs.h. */
1cf3d07d
SE
24359__thread int a; int b; int main() { return a = b; }
24360_ACEOF
5213506e 24361if ac_fn_c_try_run "$LINENO"; then :
1cf3d07d
SE
24362 chktls_save_LDFLAGS="$LDFLAGS"
24363 LDFLAGS="-static $LDFLAGS"
24364 if test x$gcc_no_link = xyes; then
5213506e 24365 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 24366fi
5213506e
RW
24367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24368/* end confdefs.h. */
1cf3d07d
SE
24369int main() { return 0; }
24370_ACEOF
5213506e
RW
24371if ac_fn_c_try_link "$LINENO"; then :
24372 if test "$cross_compiling" = yes; then :
24373 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24374$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24375as_fn_error "cannot run test program while cross compiling
24376See \`config.log' for more details." "$LINENO" 5; }
24377else
24378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24379/* end confdefs.h. */
1cf3d07d
SE
24380__thread int a; int b; int main() { return a = b; }
24381_ACEOF
5213506e 24382if ac_fn_c_try_run "$LINENO"; then :
3afcaaf4 24383 gcc_cv_have_tls=yes
1cf3d07d 24384else
5213506e 24385 gcc_cv_have_tls=no
1cf3d07d 24386fi
5213506e
RW
24387rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24388 conftest.$ac_objext conftest.beam conftest.$ac_ext
1cf3d07d 24389fi
1cf3d07d 24390
5213506e
RW
24391else
24392 gcc_cv_have_tls=yes
1cf3d07d 24393fi
5213506e
RW
24394rm -f core conftest.err conftest.$ac_objext \
24395 conftest$ac_exeext conftest.$ac_ext
1cf3d07d 24396 LDFLAGS="$chktls_save_LDFLAGS"
3afcaaf4 24397 if test $gcc_cv_have_tls = yes; then
1cf3d07d
SE
24398 chktls_save_CFLAGS="$CFLAGS"
24399 thread_CFLAGS=failed
24400 for flag in '' '-pthread' '-lpthread'; do
24401 CFLAGS="$flag $chktls_save_CFLAGS"
24402 if test x$gcc_no_link = xyes; then
5213506e 24403 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 24404fi
5213506e 24405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
24406/* end confdefs.h. */
24407#include <pthread.h>
24408 void *g(void *d) { return NULL; }
24409int
24410main ()
24411{
24412pthread_t t; pthread_create(&t,NULL,g,NULL);
24413 ;
24414 return 0;
24415}
24416_ACEOF
5213506e 24417if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 24418 thread_CFLAGS="$flag"
1cf3d07d 24419fi
5213506e
RW
24420rm -f core conftest.err conftest.$ac_objext \
24421 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
24422 if test "X$thread_CFLAGS" != Xfailed; then
24423 break
24424 fi
24425 done
24426 CFLAGS="$chktls_save_CFLAGS"
24427 if test "X$thread_CFLAGS" != Xfailed; then
24428 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
22a4778a 24429 if test "$cross_compiling" = yes; then :
5213506e
RW
24430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24432as_fn_error "cannot run test program while cross compiling
24433See \`config.log' for more details." "$LINENO" 5; }
24434else
24435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
24436/* end confdefs.h. */
24437#include <pthread.h>
24438 __thread int a;
dbd34b89 24439 static int *volatile a_in_other_thread;
1cf3d07d
SE
24440 static void *
24441 thread_func (void *arg)
24442 {
24443 a_in_other_thread = &a;
24444 return (void *)0;
24445 }
24446int
24447main ()
24448{
24449pthread_t thread;
24450 void *thread_retval;
dbd34b89
IS
24451 int *volatile a_in_main_thread;
24452 a_in_main_thread = &a;
1cf3d07d
SE
24453 if (pthread_create (&thread, (pthread_attr_t *)0,
24454 thread_func, (void *)0))
24455 return 0;
1cf3d07d
SE
24456 if (pthread_join (thread, &thread_retval))
24457 return 0;
24458 return (a_in_other_thread == a_in_main_thread);
24459 ;
24460 return 0;
24461}
24462_ACEOF
5213506e 24463if ac_fn_c_try_run "$LINENO"; then :
3afcaaf4 24464 gcc_cv_have_tls=yes
1cf3d07d 24465else
5213506e 24466 gcc_cv_have_tls=no
1cf3d07d 24467fi
5213506e
RW
24468rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24469 conftest.$ac_objext conftest.beam conftest.$ac_ext
1cf3d07d 24470fi
5213506e 24471
1cf3d07d
SE
24472 CFLAGS="$chktls_save_CFLAGS"
24473 fi
24474 fi
24475else
5213506e 24476 gcc_cv_have_tls=no
1cf3d07d 24477fi
5213506e
RW
24478rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24479 conftest.$ac_objext conftest.beam conftest.$ac_ext
1cf3d07d 24480fi
5213506e 24481
1cf3d07d 24482fi
5213506e
RW
24483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
24484$as_echo "$gcc_cv_have_tls" >&6; }
3afcaaf4 24485 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
1cf3d07d 24486
5213506e 24487$as_echo "#define HAVE_TLS 1" >>confdefs.h
1cf3d07d
SE
24488
24489 fi
24490
24491# For _Unwind_GetIPInfo.
24492
24493
5213506e
RW
24494# Check whether --with-system-libunwind was given.
24495if test "${with_system_libunwind+set}" = set; then :
24496 withval=$with_system_libunwind;
24497fi
1cf3d07d 24498
bc3f0248
SE
24499 # If system-libunwind was not specifically set, pick a default setting.
24500 if test x$with_system_libunwind = x; then
24501 case ${target} in
24502 ia64-*-hpux*) with_system_libunwind=yes ;;
24503 *) with_system_libunwind=no ;;
24504 esac
24505 fi
24506 # Based on system-libunwind and target, do we have ipinfo?
24507 if test x$with_system_libunwind = xyes; then
24508 case ${target} in
24509 ia64-*-*) have_unwind_getipinfo=no ;;
24510 *) have_unwind_getipinfo=yes ;;
24511 esac
24512 else
a0e02041
AP
24513 # Darwin before version 9 does not have _Unwind_GetIPInfo.
24514
24515 case ${target} in
24516 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
24517 *) have_unwind_getipinfo=yes ;;
24518 esac
24519
bc3f0248 24520 fi
1cf3d07d 24521
bc3f0248 24522 if test x$have_unwind_getipinfo = xyes; then
1cf3d07d 24523
5213506e 24524$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
1cf3d07d
SE
24525
24526 fi
1cf3d07d
SE
24527
24528
24529# See if linker supports anonymous version scripts.
5213506e
RW
24530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous version scripts" >&5
24531$as_echo_n "checking whether ld supports anonymous version scripts... " >&6; }
24532if test "${libjava_cv_anon_version_script+set}" = set; then :
24533 $as_echo_n "(cached) " >&6
1cf3d07d 24534else
bf382f5f
RO
24535 # Check whether --enable-symvers was given.
24536if test "${enable_symvers+set}" = set; then :
24537 enableval=$enable_symvers; case "$enableval" in
24538 yes) libjava_cv_anon_version_script=yes ;;
24539 no) libjava_cv_anon_version_script=no ;;
24540 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5;;
24541 esac
24542else
24543 libjava_cv_anon_version_script=yes
24544
24545fi
24546
24547 if test x$libjava_cv_anon_version_script = xyes; then
24548 save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
24549 CFLAGS="$CFLAGS -fPIC";
24550 LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
24551 echo '{ global: globalsymb*; local: *; };' > conftest.map
24552 if test x$gcc_no_link = xyes; then
5213506e 24553 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 24554fi
5213506e 24555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
24556/* end confdefs.h. */
24557void globalsymbol (void) {} void localsymbol (void) {}
24558int
24559main ()
24560{
24561
24562 ;
24563 return 0;
24564}
24565_ACEOF
5213506e 24566if ac_fn_c_try_link "$LINENO"; then :
22a4778a 24567 libjava_cv_anon_version_script=gnu
bf382f5f
RO
24568else
24569 libjava_cv_anon_version_script=no
1cf3d07d 24570fi
5213506e
RW
24571rm -f core conftest.err conftest.$ac_objext \
24572 conftest$ac_exeext conftest.$ac_ext
bf382f5f
RO
24573 if test x$libjava_cv_anon_version_script = xno; then
24574 case "$target_os" in
24575 solaris2*)
24576 LDFLAGS="$save_LDFLAGS"
24577 LDFLAGS="$LDFLAGS -shared -Wl,-M,conftest.map"
24578 # Sun ld doesn't understand wildcards here.
24579 echo '{ global: globalsymbol; local: *; };' > conftest.map
24580 if test x$gcc_no_link = xyes; then
22a4778a
RO
24581 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24582fi
24583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24584/* end confdefs.h. */
24585void globalsymbol (void) {} void localsymbol (void) {}
24586int
24587main ()
24588{
24589
24590 ;
24591 return 0;
24592}
24593_ACEOF
24594if ac_fn_c_try_link "$LINENO"; then :
24595 libjava_cv_anon_version_script=sun
24596fi
24597rm -f core conftest.err conftest.$ac_objext \
24598 conftest$ac_exeext conftest.$ac_ext
bf382f5f
RO
24599 ;;
24600 esac
24601 fi
24602 CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
22a4778a 24603 fi
1cf3d07d
SE
24604
24605fi
5213506e
RW
24606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_anon_version_script" >&5
24607$as_echo "$libjava_cv_anon_version_script" >&6; }
22a4778a 24608 if test "$libjava_cv_anon_version_script" != no; then
1cf3d07d
SE
24609 ANONVERSCRIPT_TRUE=
24610 ANONVERSCRIPT_FALSE='#'
24611else
24612 ANONVERSCRIPT_TRUE='#'
24613 ANONVERSCRIPT_FALSE=
24614fi
24615
22a4778a
RO
24616 if test "$libjava_cv_anon_version_script" = gnu; then
24617 ANONVERSCRIPT_GNU_TRUE=
24618 ANONVERSCRIPT_GNU_FALSE='#'
24619else
24620 ANONVERSCRIPT_GNU_TRUE='#'
24621 ANONVERSCRIPT_GNU_FALSE=
24622fi
24623
24624 if test "$libjava_cv_anon_version_script" = sun; then
24625 ANONVERSCRIPT_SUN_TRUE=
24626 ANONVERSCRIPT_SUN_FALSE='#'
24627else
24628 ANONVERSCRIPT_SUN_TRUE='#'
24629 ANONVERSCRIPT_SUN_FALSE=
24630fi
24631
1cf3d07d
SE
24632
24633# Check if linker supports static linking on a per library basis
24634LD_START_STATIC_SPEC=
24635LD_FINISH_STATIC_SPEC=
bc492e47
RO
24636if $LD --help 2>&1 | grep -- -call_shared >/dev/null 2>&1; then
24637 if $LD --help 2>&1 | grep -- -non_shared >/dev/null 2>&1; then
1cf3d07d
SE
24638 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
24639 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
24640 fi
24641fi
24642
24643
24644
24645here=`${PWDCMD-pwd}`
24646
24647
24648# We get this from the environment.
24649
24650
fa0a5acc 24651default_python_dir="/share/gcc-`cat ${srcdir}/../gcc/BASE-VER`/python/libjava"
c9db365d 24652
5213506e
RW
24653# Check whether --with-python-dir was given.
24654if test "${with_python_dir+set}" = set; then :
24655 withval=$with_python_dir; with_python_dir=$withval
c9db365d 24656else
fa0a5acc 24657 with_python_dir="${default_python_dir}"
5213506e
RW
24658fi
24659
c9db365d 24660
fa0a5acc
GB
24661# Needed for installing Python modules during make install.
24662python_mod_dir="\${prefix}${with_python_dir}"
24663
24664# Needed for substituting into aot-compile*
24665python_mod_dir_expanded="${expanded_prefix}${with_python_dir}"
24666
5213506e
RW
24667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Python modules dir: ${python_mod_dir_expanded}" >&5
24668$as_echo "Python modules dir: ${python_mod_dir_expanded}" >&6; };
c9db365d
JS
24669
24670
24671
24672# needed for aot-compile-rpm
24673MAKE=`which make`
24674
24675
5213506e
RW
24676# Check whether --enable-aot-compile-rpm was given.
24677if test "${enable_aot_compile_rpm+set}" = set; then :
24678 enableval=$enable_aot_compile_rpm; case "${enableval}" in
c9db365d
JS
24679 yes) AOT_RPM_ENABLED=yes ;;
24680 no) AOT_RPM_ENABLED=no ;;
5213506e 24681 *) as_fn_error "Unknown argument to enable/disable aot-compile-rpm" "$LINENO" 5 ;;
c9db365d
JS
24682 esac
24683else
24684 AOT_RPM_ENABLED=no
24685
5213506e 24686fi
c9db365d 24687
5213506e 24688 if test "x${AOT_RPM_ENABLED}" = xyes; then
c9db365d
JS
24689 INSTALL_AOT_RPM_TRUE=
24690 INSTALL_AOT_RPM_FALSE='#'
24691else
24692 INSTALL_AOT_RPM_TRUE='#'
24693 INSTALL_AOT_RPM_FALSE=
24694fi
24695
24696
5213506e
RW
24697# Check whether --enable-java-home was given.
24698if test "${enable_java_home+set}" = set; then :
24699 enableval=$enable_java_home; case "${enableval}" in
c9db365d
JS
24700 yes) JAVA_HOME_ENABLED=yes ;;
24701 no) JAVA_HOME_ENABLED=no ;;
5213506e 24702 *) as_fn_error "Unknown argument to enable/disable java-home" "$LINENO" 5 ;;
c9db365d
JS
24703 esac
24704else
24705 JAVA_HOME_ENABLED=no
24706
5213506e 24707fi
c9db365d 24708
5213506e 24709 if test "x${JAVA_HOME_ENABLED}" = xyes; then
c9db365d
JS
24710 CREATE_JAVA_HOME_TRUE=
24711 CREATE_JAVA_HOME_FALSE='#'
24712else
24713 CREATE_JAVA_HOME_TRUE='#'
24714 CREATE_JAVA_HOME_FALSE=
24715fi
24716
24717
24718# Only do these checks if java-home above is enabled.
cd6d4007 24719if test "x${JAVA_HOME_ENABLED}" = xyes
c9db365d
JS
24720then
24721
24722
5213506e
RW
24723# Check whether --with-gcc-suffix was given.
24724if test "${with_gcc_suffix+set}" = set; then :
24725 withval=$with_gcc_suffix; gcc_suffix=$withval
c9db365d
JS
24726else
24727 gcc_suffix=""
5213506e 24728fi
c9db365d 24729
5213506e
RW
24730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCC suffix: ${gcc_suffix}" >&5
24731$as_echo "GCC suffix: ${gcc_suffix}" >&6; }
c9db365d
JS
24732
24733
5213506e
RW
24734
24735# Check whether --with-arch-directory was given.
24736if test "${with_arch_directory+set}" = set; then :
24737 withval=$with_arch_directory; host_cpu=$withval
c9db365d
JS
24738else
24739 host_cpu=""
5213506e 24740fi
c9db365d
JS
24741
24742
5213506e
RW
24743
24744# Check whether --with-os-directory was given.
24745if test "${with_os_directory+set}" = set; then :
24746 withval=$with_os_directory; host_os=$withval
c9db365d
JS
24747else
24748 host_os=""
5213506e 24749fi
c9db365d
JS
24750
24751
5213506e
RW
24752
24753# Check whether --with-origin-name was given.
24754if test "${with_origin_name+set}" = set; then :
24755 withval=$with_origin_name; origin_name=$withval
c9db365d
JS
24756else
24757 origin_name=gcj${gcc_suffix}
5213506e 24758fi
c9db365d 24759
5213506e
RW
24760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JPackage origin name: ${origin_name}" >&5
24761$as_echo "JPackage origin name: ${origin_name}" >&6; }
c9db365d 24762
5213506e
RW
24763
24764# Check whether --with-arch-suffix was given.
24765if test "${with_arch_suffix+set}" = set; then :
24766 withval=$with_arch_suffix; arch_suffix=$withval
c9db365d
JS
24767else
24768 arch_suffix=""
5213506e 24769fi
c9db365d 24770
5213506e
RW
24771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch suffix: ${arch_suffix}" >&5
24772$as_echo "arch suffix: ${arch_suffix}" >&6; }
c9db365d 24773
5213506e
RW
24774
24775# Check whether --with-jvm-root-dir was given.
24776if test "${with_jvm_root_dir+set}" = set; then :
24777 withval=$with_jvm_root_dir; jvm_root_dir=$withval
c9db365d
JS
24778else
24779 jvm_root_dir="\${prefix}/lib/jvm"
5213506e 24780fi
c9db365d 24781
5213506e
RW
24782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM root installation directory: ${jvm_root_dir}" >&5
24783$as_echo "JVM root installation directory: ${jvm_root_dir}" >&6; }
c9db365d 24784
5213506e
RW
24785
24786# Check whether --with-jvm-jar-dir was given.
24787if test "${with_jvm_jar_dir+set}" = set; then :
24788 withval=$with_jvm_jar_dir; jvm_jar_dir=$withval
c9db365d
JS
24789else
24790 jvm_jar_dir=\${prefix}/lib/jvm-exports
5213506e
RW
24791fi
24792
24793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JAR root installation directory: ${jvm_jar_dir}" >&5
24794$as_echo "JAR root installation directory: ${jvm_jar_dir}" >&6; }
c9db365d
JS
24795
24796 JAVA_VERSION=1.5.0
24797 BUILD_VERSION=0
24798
24799
5213506e
RW
24800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Java version: ${JAVA_VERSION}" >&5
24801$as_echo "Java version: ${JAVA_VERSION}" >&6; }
c9db365d 24802
6eaf85d0 24803 jre_dir=jre
c9db365d
JS
24804 jre_lnk=jre-${JAVA_VERSION}-${origin_name}
24805 sdk_lnk=java-${JAVA_VERSION}-${origin_name}
24806
24807 JVM_ROOT_DIR=${jvm_root_dir}
24808
5213506e
RW
24809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
24810$as_echo "JVM ROOT directory: ${JVM_ROOT_DIR}" >&6; }
c9db365d
JS
24811
24812 JVM_JAR_ROOT_DIR=${jvm_jar_dir}
24813
5213506e
RW
24814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
24815$as_echo "JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6; }
c9db365d 24816
6eaf85d0 24817 JVM_JAR_DIR=${jvm_jar_dir}
c9db365d 24818
5213506e
RW
24819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
24820$as_echo "JVM JAR directory: ${JVM_JAR_DIR}" >&6; }
c9db365d
JS
24821
24822 JRE_DIR=${jre_dir}
24823
24824
c9db365d
JS
24825 JRE_LNK=${jre_lnk}
24826
24827
24828 SDK_LNK=${sdk_lnk}
24829
24830
6eaf85d0 24831 SDK_BIN_DIR=${jvm_root_dir}/bin
c9db365d 24832
5213506e
RW
24833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
24834$as_echo "SDK tools directory: ${SDK_BIN_DIR}" >&6; }
c9db365d 24835
6eaf85d0 24836 SDK_LIB_DIR=${jvm_root_dir}/lib
c9db365d 24837
5213506e
RW
24838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
24839$as_echo "SDK jar directory: ${SDK_LIB_DIR}" >&6; }
c9db365d 24840
6eaf85d0 24841 SDK_INCLUDE_DIR=${jvm_root_dir}/include
c9db365d 24842
5213506e
RW
24843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
24844$as_echo "SDK include directory: ${SDK_INCLUDE_DIR}" >&6; }
c9db365d
JS
24845
24846 JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
24847
5213506e
RW
24848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
24849$as_echo "JRE tools directory: ${JRE_BIN_DIR}" >&6; }
c9db365d
JS
24850
24851 JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
24852
5213506e
RW
24853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
24854$as_echo "JRE lib directory: ${JRE_LIB_DIR}" >&6; }
c9db365d
JS
24855
24856 # Find gcj prefix using gcj found in PATH.
24857 gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
24858
24859 # Where do the gcj binaries live?
24860 # For jhbuild based builds, they all live in a sibling of bin called
24861 # gcj-bin. Check for gcj-bin first, and use bin otherwise.
24862 GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
24863
5213506e
RW
24864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
24865$as_echo "GCJ tools directory: ${GCJ_BIN_DIR}" >&6; }
c9db365d 24866
5213506e
RW
24867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host is ${host}" >&5
24868$as_echo "host is ${host}" >&6; }
c9db365d
JS
24869 if test "x${host_cpu}" = "x"
24870 then
24871 case ${host} in
24872 *-mingw* | *-cygwin*)
24873 host_cpu=x86;;
24874 i486-* | i586-* | i686-*)
24875 host_cpu=i386;;
6eaf85d0
AJH
24876 x86_64-*)
24877 host_cpu=amd64;;
c9db365d
JS
24878 *)
24879 host_cpu=${host_cpu};;
24880 esac
24881 fi
5213506e
RW
24882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch directory: ${host_cpu}" >&5
24883$as_echo "arch directory: ${host_cpu}" >&6; }
c9db365d
JS
24884 CPU=${host_cpu}
24885
24886
24887 if test "x${host_os}" = "x"
24888 then
24889 case ${host} in
24890 *-mingw* | *-cygwin*)
24891 host_os=win32;;
24892 *-linux*)
24893 host_os=linux;;
24894 *)
24895 host_os=${host_os};;
24896 esac
24897 fi
24898 echo os directory: ${host_os}
24899 OS=${host_os}
24900
24901
24902 # make an expanded $libdir, for substituting into
24903 # scripts (and other non-Makefile things).
24904 LIBDIR=$libdir
24905 if test "x${exec_prefix}" = "xNONE"
24906 then
f3392d53 24907 lib_exec_prefix=$expanded_prefix
c9db365d
JS
24908 else
24909 lib_exec_prefix=$exec_prefix
24910 fi
24911 LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
24912
24913fi
24914
5213506e 24915ac_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
24916
24917
04e0cb88
L
24918if test ${multilib} = yes; then
24919 multilib_arg="--enable-multilib"
24920else
24921 multilib_arg=
24922fi
1cf3d07d 24923
5213506e 24924ac_config_files="$ac_config_files scripts/jar"
1cf3d07d
SE
24925
24926cat >confcache <<\_ACEOF
24927# This file is a shell script that caches the results of configure
24928# tests run on this system so they can be shared between configure
24929# scripts and configure runs, see configure's option --config-cache.
24930# It is not useful on other systems. If it contains results you don't
24931# want to keep, you may remove or edit it.
24932#
24933# config.status only pays attention to the cache file if you give it
24934# the --recheck option to rerun configure.
24935#
24936# `ac_cv_env_foo' variables (set or unset) will be overridden when
24937# loading this file, other *unset* `ac_cv_foo' will be assigned the
24938# following values.
24939
24940_ACEOF
24941
24942# The following way of writing the cache mishandles newlines in values,
24943# but we know of no workaround that is simple, portable, and efficient.
5213506e 24944# So, we kill variables containing newlines.
1cf3d07d
SE
24945# Ultrix sh set writes to stderr and can't be redirected directly,
24946# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
24947(
24948 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24949 eval ac_val=\$$ac_var
24950 case $ac_val in #(
24951 *${as_nl}*)
24952 case $ac_var in #(
24953 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24954$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24955 esac
24956 case $ac_var in #(
24957 _ | IFS | as_nl) ;; #(
24958 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24959 *) { eval $ac_var=; unset $ac_var;} ;;
24960 esac ;;
24961 esac
24962 done
24963
1cf3d07d 24964 (set) 2>&1 |
5213506e
RW
24965 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24966 *${as_nl}ac_space=\ *)
24967 # `set' does not quote correctly, so add quotes: double-quote
24968 # substitution turns \\\\ into \\, and sed turns \\ into \.
1cf3d07d
SE
24969 sed -n \
24970 "s/'/'\\\\''/g;
24971 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 24972 ;; #(
1cf3d07d
SE
24973 *)
24974 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 24975 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1cf3d07d 24976 ;;
5213506e
RW
24977 esac |
24978 sort
24979) |
1cf3d07d 24980 sed '
5213506e 24981 /^ac_cv_env_/b end
1cf3d07d 24982 t clear
5213506e 24983 :clear
1cf3d07d
SE
24984 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24985 t end
5213506e
RW
24986 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24987 :end' >>confcache
24988if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24989 if test -w "$cache_file"; then
24990 test "x$cache_file" != "x/dev/null" &&
24991 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24992$as_echo "$as_me: updating cache $cache_file" >&6;}
1cf3d07d
SE
24993 cat confcache >$cache_file
24994 else
5213506e
RW
24995 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24996$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1cf3d07d
SE
24997 fi
24998fi
24999rm -f confcache
25000
25001test "x$prefix" = xNONE && prefix=$ac_default_prefix
25002# Let make expand exec_prefix.
25003test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25004
1cf3d07d
SE
25005DEFS=-DHAVE_CONFIG_H
25006
25007ac_libobjs=
25008ac_ltlibobjs=
25009for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25010 # 1. Remove the extension, and $U if already installed.
5213506e
RW
25011 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25012 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25013 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25014 # will be set to the directory where LIBOBJS objects are built.
25015 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25016 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1cf3d07d
SE
25017done
25018LIBOBJS=$ac_libobjs
25019
25020LTLIBOBJS=$ac_ltlibobjs
25021
25022
cd6d4007 25023if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
5213506e
RW
25024 as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
25025Usually this means the macro was only invoked conditionally." "$LINENO" 5
cd6d4007 25026fi
1cf3d07d 25027if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
5213506e
RW
25028 as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
25029Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25030fi
25031if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5213506e
RW
25032 as_fn_error "conditional \"AMDEP\" was never defined.
25033Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25034fi
25035if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5213506e
RW
25036 as_fn_error "conditional \"am__fastdepCC\" was never defined.
25037Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25038fi
25039if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
5213506e
RW
25040 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
25041Usually this means the macro was only invoked conditionally." "$LINENO" 5
25042fi
25043 if test -n "$EXEEXT"; then
25044 am__EXEEXT_TRUE=
25045 am__EXEEXT_FALSE='#'
25046else
25047 am__EXEEXT_TRUE='#'
25048 am__EXEEXT_FALSE=
1cf3d07d 25049fi
5213506e 25050
1cf3d07d 25051if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5213506e
RW
25052 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
25053Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d 25054fi
6a92b6c7
DK
25055if test -z "${BUILD_SUBLIBS_TRUE}" && test -z "${BUILD_SUBLIBS_FALSE}"; then
25056 as_fn_error "conditional \"BUILD_SUBLIBS\" was never defined.
25057Usually this means the macro was only invoked conditionally." "$LINENO" 5
25058fi
1cf3d07d 25059if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
5213506e
RW
25060 as_fn_error "conditional \"XLIB_AWT\" was never defined.
25061Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25062fi
25063if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
5213506e
RW
25064 as_fn_error "conditional \"X_AWT\" was never defined.
25065Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25066fi
25067if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
5213506e
RW
25068 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25069Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25070fi
25071if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
5213506e
RW
25072 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25073Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25074fi
25075if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
5213506e
RW
25076 as_fn_error "conditional \"TESTSUBDIR\" was never defined.
25077Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25078fi
25079if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
5213506e
RW
25080 as_fn_error "conditional \"BUILD_ECJ1\" was never defined.
25081Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25082fi
25083if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
5213506e
RW
25084 as_fn_error "conditional \"INSTALL_ECJ_JAR\" was never defined.
25085Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25086fi
25087if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
5213506e
RW
25088 as_fn_error "conditional \"JAVA_HOME_SET\" was never defined.
25089Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d 25090fi
a507baad 25091if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
5213506e
RW
25092 as_fn_error "conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
25093Usually this means the macro was only invoked conditionally." "$LINENO" 5
a507baad 25094fi
c07cd2c7 25095if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
5213506e
RW
25096 as_fn_error "conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
25097Usually this means the macro was only invoked conditionally." "$LINENO" 5
c07cd2c7 25098fi
86acf60c 25099if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
5213506e
RW
25100 as_fn_error "conditional \"INTERPRETER\" was never defined.
25101Usually this means the macro was only invoked conditionally." "$LINENO" 5
86acf60c 25102fi
1cf3d07d 25103if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
5213506e
RW
25104 as_fn_error "conditional \"USING_WIN32_PLATFORM\" was never defined.
25105Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25106fi
25107if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
5213506e
RW
25108 as_fn_error "conditional \"USING_POSIX_PLATFORM\" was never defined.
25109Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25110fi
25111if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
5213506e
RW
25112 as_fn_error "conditional \"USING_DARWIN_CRT\" was never defined.
25113Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25114fi
25115if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
5213506e
RW
25116 as_fn_error "conditional \"USING_BOEHMGC\" was never defined.
25117Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25118fi
25119if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
5213506e
RW
25120 as_fn_error "conditional \"USING_NOGC\" was never defined.
25121Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25122fi
25123if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
5213506e
RW
25124 as_fn_error "conditional \"USING_POSIX_THREADS\" was never defined.
25125Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25126fi
25127if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
5213506e
RW
25128 as_fn_error "conditional \"USING_WIN32_THREADS\" was never defined.
25129Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25130fi
25131if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
5213506e
RW
25132 as_fn_error "conditional \"USING_NO_THREADS\" was never defined.
25133Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25134fi
25135if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
5213506e
RW
25136 as_fn_error "conditional \"USE_LIBGCJ_BC\" was never defined.
25137Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25138fi
25139if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
5213506e
RW
25140 as_fn_error "conditional \"USING_GCC\" was never defined.
25141Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25142fi
25143if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
5213506e
RW
25144 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25145Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d 25146fi
5213506e 25147
1cf3d07d 25148if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
5213506e
RW
25149 as_fn_error "conditional \"NATIVE\" was never defined.
25150Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25151fi
25152if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
5213506e
RW
25153 as_fn_error "conditional \"ENABLE_SHARED\" was never defined.
25154Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d
SE
25155fi
25156if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
5213506e
RW
25157 as_fn_error "conditional \"NEEDS_DATA_START\" was never defined.
25158Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d 25159fi
4bf95cef 25160if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
5213506e
RW
25161 as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
25162Usually this means the macro was only invoked conditionally." "$LINENO" 5
4bf95cef 25163fi
1cf3d07d 25164if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
5213506e
RW
25165 as_fn_error "conditional \"ANONVERSCRIPT\" was never defined.
25166Usually this means the macro was only invoked conditionally." "$LINENO" 5
1cf3d07d 25167fi
22a4778a
RO
25168if test -z "${ANONVERSCRIPT_GNU_TRUE}" && test -z "${ANONVERSCRIPT_GNU_FALSE}"; then
25169 as_fn_error "conditional \"ANONVERSCRIPT_GNU\" was never defined.
25170Usually this means the macro was only invoked conditionally." "$LINENO" 5
25171fi
25172if test -z "${ANONVERSCRIPT_SUN_TRUE}" && test -z "${ANONVERSCRIPT_SUN_FALSE}"; then
25173 as_fn_error "conditional \"ANONVERSCRIPT_SUN\" was never defined.
25174Usually this means the macro was only invoked conditionally." "$LINENO" 5
25175fi
c9db365d 25176if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
5213506e
RW
25177 as_fn_error "conditional \"INSTALL_AOT_RPM\" was never defined.
25178Usually this means the macro was only invoked conditionally." "$LINENO" 5
c9db365d
JS
25179fi
25180if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
5213506e
RW
25181 as_fn_error "conditional \"CREATE_JAVA_HOME\" was never defined.
25182Usually this means the macro was only invoked conditionally." "$LINENO" 5
c9db365d 25183fi
1cf3d07d
SE
25184
25185: ${CONFIG_STATUS=./config.status}
5213506e 25186ac_write_fail=0
1cf3d07d
SE
25187ac_clean_files_save=$ac_clean_files
25188ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
25189{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25190$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25191as_write_fail=0
25192cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1cf3d07d
SE
25193#! $SHELL
25194# Generated by $as_me.
25195# Run this file to recreate the current configuration.
25196# Compiler output produced by configure, useful for debugging
25197# configure, is in config.log if it exists.
25198
25199debug=false
25200ac_cs_recheck=false
25201ac_cs_silent=false
1cf3d07d 25202
5213506e
RW
25203SHELL=\${CONFIG_SHELL-$SHELL}
25204export SHELL
25205_ASEOF
25206cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25207## -------------------- ##
25208## M4sh Initialization. ##
25209## -------------------- ##
25210
25211# Be more Bourne compatible
25212DUALCASE=1; export DUALCASE # for MKS sh
25213if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1cf3d07d
SE
25214 emulate sh
25215 NULLCMD=:
5213506e 25216 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1cf3d07d
SE
25217 # is contrary to our usage. Disable this feature.
25218 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
25219 setopt NO_GLOB_SUBST
25220else
25221 case `(set -o) 2>/dev/null` in #(
25222 *posix*) :
25223 set -o posix ;; #(
25224 *) :
25225 ;;
25226esac
1cf3d07d 25227fi
1cf3d07d 25228
5213506e
RW
25229
25230as_nl='
25231'
25232export as_nl
25233# Printing a long string crashes Solaris 7 /usr/bin/printf.
25234as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25235as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25236as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25237# Prefer a ksh shell builtin over an external printf program on Solaris,
25238# but without wasting forks for bash or zsh.
25239if test -z "$BASH_VERSION$ZSH_VERSION" \
25240 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25241 as_echo='print -r --'
25242 as_echo_n='print -rn --'
25243elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25244 as_echo='printf %s\n'
25245 as_echo_n='printf %s'
25246else
25247 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25248 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25249 as_echo_n='/usr/ucb/echo -n'
25250 else
25251 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25252 as_echo_n_body='eval
25253 arg=$1;
25254 case $arg in #(
25255 *"$as_nl"*)
25256 expr "X$arg" : "X\\(.*\\)$as_nl";
25257 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25258 esac;
25259 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25260 '
25261 export as_echo_n_body
25262 as_echo_n='sh -c $as_echo_n_body as_echo'
25263 fi
25264 export as_echo_body
25265 as_echo='sh -c $as_echo_body as_echo'
25266fi
25267
25268# The user is always right.
25269if test "${PATH_SEPARATOR+set}" != set; then
25270 PATH_SEPARATOR=:
25271 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25272 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25273 PATH_SEPARATOR=';'
25274 }
1cf3d07d
SE
25275fi
25276
25277
5213506e
RW
25278# IFS
25279# We need space, tab and new line, in precisely that order. Quoting is
25280# there to prevent editors from complaining about space-tab.
25281# (If _AS_PATH_WALK were called with IFS unset, it would disable word
25282# splitting by setting IFS to empty value.)
25283IFS=" "" $as_nl"
25284
25285# Find who we are. Look in the path if we contain no directory separator.
25286case $0 in #((
25287 *[\\/]* ) as_myself=$0 ;;
25288 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25289for as_dir in $PATH
25290do
25291 IFS=$as_save_IFS
25292 test -z "$as_dir" && as_dir=.
25293 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25294 done
25295IFS=$as_save_IFS
25296
25297 ;;
25298esac
25299# We did not find ourselves, most probably we were run as `sh COMMAND'
25300# in which case we are not to be found in the path.
25301if test "x$as_myself" = x; then
25302 as_myself=$0
25303fi
25304if test ! -f "$as_myself"; then
25305 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25306 exit 1
25307fi
25308
25309# Unset variables that we do not need and which cause bugs (e.g. in
25310# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25311# suppresses any "Segmentation fault" message there. '((' could
25312# trigger a bug in pdksh 5.2.14.
25313for as_var in BASH_ENV ENV MAIL MAILPATH
25314do eval test x\${$as_var+set} = xset \
25315 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25316done
1cf3d07d
SE
25317PS1='$ '
25318PS2='> '
25319PS4='+ '
25320
25321# NLS nuisances.
5213506e
RW
25322LC_ALL=C
25323export LC_ALL
25324LANGUAGE=C
25325export LANGUAGE
25326
25327# CDPATH.
25328(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25329
25330
25331# as_fn_error ERROR [LINENO LOG_FD]
25332# ---------------------------------
25333# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25334# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25335# script with status $?, using 1 if that was 0.
25336as_fn_error ()
25337{
25338 as_status=$?; test $as_status -eq 0 && as_status=1
25339 if test "$3"; then
25340 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25341 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1cf3d07d 25342 fi
5213506e
RW
25343 $as_echo "$as_me: error: $1" >&2
25344 as_fn_exit $as_status
25345} # as_fn_error
25346
25347
25348# as_fn_set_status STATUS
25349# -----------------------
25350# Set $? to STATUS, without forking.
25351as_fn_set_status ()
25352{
25353 return $1
25354} # as_fn_set_status
25355
25356# as_fn_exit STATUS
25357# -----------------
25358# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25359as_fn_exit ()
25360{
25361 set +e
25362 as_fn_set_status $1
25363 exit $1
25364} # as_fn_exit
25365
25366# as_fn_unset VAR
25367# ---------------
25368# Portably unset VAR.
25369as_fn_unset ()
25370{
25371 { eval $1=; unset $1;}
25372}
25373as_unset=as_fn_unset
25374# as_fn_append VAR VALUE
25375# ----------------------
25376# Append the text in VALUE to the end of the definition contained in VAR. Take
25377# advantage of any shell optimizations that allow amortized linear growth over
25378# repeated appends, instead of the typical quadratic growth present in naive
25379# implementations.
25380if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25381 eval 'as_fn_append ()
25382 {
25383 eval $1+=\$2
25384 }'
25385else
25386 as_fn_append ()
25387 {
25388 eval $1=\$$1\$2
25389 }
25390fi # as_fn_append
25391
25392# as_fn_arith ARG...
25393# ------------------
25394# Perform arithmetic evaluation on the ARGs, and store the result in the
25395# global $as_val. Take advantage of shells that can avoid forks. The arguments
25396# must be portable across $(()) and expr.
25397if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25398 eval 'as_fn_arith ()
25399 {
25400 as_val=$(( $* ))
25401 }'
25402else
25403 as_fn_arith ()
25404 {
25405 as_val=`expr "$@" || test $? -eq 1`
25406 }
25407fi # as_fn_arith
25408
1cf3d07d 25409
5213506e
RW
25410if expr a : '\(a\)' >/dev/null 2>&1 &&
25411 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1cf3d07d
SE
25412 as_expr=expr
25413else
25414 as_expr=false
25415fi
25416
5213506e 25417if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1cf3d07d
SE
25418 as_basename=basename
25419else
25420 as_basename=false
25421fi
25422
5213506e
RW
25423if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25424 as_dirname=dirname
25425else
25426 as_dirname=false
25427fi
1cf3d07d 25428
5213506e 25429as_me=`$as_basename -- "$0" ||
1cf3d07d
SE
25430$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25431 X"$0" : 'X\(//\)$' \| \
5213506e
RW
25432 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25433$as_echo X/"$0" |
25434 sed '/^.*\/\([^/][^/]*\)\/*$/{
25435 s//\1/
25436 q
25437 }
25438 /^X\/\(\/\/\)$/{
25439 s//\1/
25440 q
25441 }
25442 /^X\/\(\/\).*/{
25443 s//\1/
25444 q
25445 }
25446 s/.*/./; q'`
1cf3d07d 25447
1cf3d07d
SE
25448# Avoid depending upon Character Ranges.
25449as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25450as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25451as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25452as_cr_digits='0123456789'
25453as_cr_alnum=$as_cr_Letters$as_cr_digits
25454
5213506e
RW
25455ECHO_C= ECHO_N= ECHO_T=
25456case `echo -n x` in #(((((
25457-n*)
25458 case `echo 'xy\c'` in
25459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25460 xy) ECHO_C='\c';;
25461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25462 ECHO_T=' ';;
25463 esac;;
25464*)
25465 ECHO_N='-n';;
1cf3d07d
SE
25466esac
25467
5213506e
RW
25468rm -f conf$$ conf$$.exe conf$$.file
25469if test -d conf$$.dir; then
25470 rm -f conf$$.dir/conf$$.file
1cf3d07d 25471else
5213506e
RW
25472 rm -f conf$$.dir
25473 mkdir conf$$.dir 2>/dev/null
1cf3d07d 25474fi
5213506e
RW
25475if (echo >conf$$.file) 2>/dev/null; then
25476 if ln -s conf$$.file conf$$ 2>/dev/null; then
1cf3d07d 25477 as_ln_s='ln -s'
5213506e
RW
25478 # ... but there are two gotchas:
25479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25481 # In both cases, we have to default to `cp -p'.
25482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25483 as_ln_s='cp -p'
25484 elif ln conf$$.file conf$$ 2>/dev/null; then
25485 as_ln_s=ln
25486 else
25487 as_ln_s='cp -p'
1cf3d07d 25488 fi
1cf3d07d
SE
25489else
25490 as_ln_s='cp -p'
25491fi
5213506e
RW
25492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25493rmdir conf$$.dir 2>/dev/null
25494
1cf3d07d 25495
5213506e
RW
25496# as_fn_mkdir_p
25497# -------------
25498# Create "$as_dir" as a directory, including parents if necessary.
25499as_fn_mkdir_p ()
25500{
25501
25502 case $as_dir in #(
25503 -*) as_dir=./$as_dir;;
25504 esac
25505 test -d "$as_dir" || eval $as_mkdir_p || {
25506 as_dirs=
25507 while :; do
25508 case $as_dir in #(
25509 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25510 *) as_qdir=$as_dir;;
25511 esac
25512 as_dirs="'$as_qdir' $as_dirs"
25513 as_dir=`$as_dirname -- "$as_dir" ||
25514$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25515 X"$as_dir" : 'X\(//\)[^/]' \| \
25516 X"$as_dir" : 'X\(//\)$' \| \
25517 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25518$as_echo X"$as_dir" |
25519 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25520 s//\1/
25521 q
25522 }
25523 /^X\(\/\/\)[^/].*/{
25524 s//\1/
25525 q
25526 }
25527 /^X\(\/\/\)$/{
25528 s//\1/
25529 q
25530 }
25531 /^X\(\/\).*/{
25532 s//\1/
25533 q
25534 }
25535 s/.*/./; q'`
25536 test -d "$as_dir" && break
25537 done
25538 test -z "$as_dirs" || eval "mkdir $as_dirs"
25539 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25540
25541
25542} # as_fn_mkdir_p
1cf3d07d 25543if mkdir -p . 2>/dev/null; then
5213506e 25544 as_mkdir_p='mkdir -p "$as_dir"'
1cf3d07d
SE
25545else
25546 test -d ./-p && rmdir ./-p
25547 as_mkdir_p=false
25548fi
25549
5213506e
RW
25550if test -x / >/dev/null 2>&1; then
25551 as_test_x='test -x'
25552else
25553 if ls -dL / >/dev/null 2>&1; then
25554 as_ls_L_option=L
25555 else
25556 as_ls_L_option=
25557 fi
25558 as_test_x='
25559 eval sh -c '\''
25560 if test -d "$1"; then
25561 test -d "$1/.";
25562 else
25563 case $1 in #(
25564 -*)set "./$1";;
25565 esac;
25566 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25567 ???[sx]*):;;*)false;;esac;fi
25568 '\'' sh
25569 '
25570fi
25571as_executable_p=$as_test_x
1cf3d07d
SE
25572
25573# Sed expression to map a string onto a valid CPP name.
25574as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25575
25576# Sed expression to map a string onto a valid variable name.
25577as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25578
25579
1cf3d07d 25580exec 6>&1
5213506e
RW
25581## ----------------------------------- ##
25582## Main body of $CONFIG_STATUS script. ##
25583## ----------------------------------- ##
25584_ASEOF
25585test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25586
25587cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25588# Save the log message, to keep $0 and so on meaningful, and to
1cf3d07d 25589# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
25590# values after options handling.
25591ac_log="
1cf3d07d 25592This file was extended by libjava $as_me version-unused, which was
5213506e 25593generated by GNU Autoconf 2.64. Invocation command line was
1cf3d07d
SE
25594
25595 CONFIG_FILES = $CONFIG_FILES
25596 CONFIG_HEADERS = $CONFIG_HEADERS
25597 CONFIG_LINKS = $CONFIG_LINKS
25598 CONFIG_COMMANDS = $CONFIG_COMMANDS
25599 $ $0 $@
25600
5213506e
RW
25601on `(hostname || uname -n) 2>/dev/null | sed 1q`
25602"
25603
1cf3d07d
SE
25604_ACEOF
25605
5213506e
RW
25606case $ac_config_files in *"
25607"*) set x $ac_config_files; shift; ac_config_files=$*;;
25608esac
1cf3d07d 25609
5213506e
RW
25610case $ac_config_headers in *"
25611"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25612esac
1cf3d07d 25613
1cf3d07d 25614
5213506e
RW
25615cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25616# Files that config.status was made for.
25617config_files="$ac_config_files"
25618config_headers="$ac_config_headers"
25619config_links="$ac_config_links"
25620config_commands="$ac_config_commands"
1cf3d07d 25621
5213506e 25622_ACEOF
1cf3d07d 25623
5213506e 25624cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1cf3d07d 25625ac_cs_usage="\
5213506e
RW
25626\`$as_me' instantiates files and other configuration actions
25627from templates according to the current configuration. Unless the files
25628and actions are specified as TAGs, all are instantiated by default.
1cf3d07d 25629
5213506e 25630Usage: $0 [OPTION]... [TAG]...
1cf3d07d
SE
25631
25632 -h, --help print this help, then exit
5213506e
RW
25633 -V, --version print version number and configuration settings, then exit
25634 -q, --quiet, --silent
25635 do not print progress messages
1cf3d07d
SE
25636 -d, --debug don't remove temporary files
25637 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
25638 --file=FILE[:TEMPLATE]
25639 instantiate the configuration file FILE
25640 --header=FILE[:TEMPLATE]
25641 instantiate the configuration header FILE
1cf3d07d
SE
25642
25643Configuration files:
25644$config_files
25645
25646Configuration headers:
25647$config_headers
25648
25649Configuration links:
25650$config_links
25651
25652Configuration commands:
25653$config_commands
25654
5213506e 25655Report bugs to the package provider."
1cf3d07d 25656
5213506e
RW
25657_ACEOF
25658cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1cf3d07d
SE
25659ac_cs_version="\\
25660libjava config.status version-unused
5213506e
RW
25661configured by $0, generated by GNU Autoconf 2.64,
25662 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1cf3d07d 25663
5213506e 25664Copyright (C) 2009 Free Software Foundation, Inc.
1cf3d07d
SE
25665This config.status script is free software; the Free Software Foundation
25666gives unlimited permission to copy, distribute and modify it."
5213506e
RW
25667
25668ac_pwd='$ac_pwd'
25669srcdir='$srcdir'
25670INSTALL='$INSTALL'
25671MKDIR_P='$MKDIR_P'
25672AWK='$AWK'
25673test -n "\$AWK" || AWK=awk
1cf3d07d
SE
25674_ACEOF
25675
5213506e
RW
25676cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25677# The default lists apply if the user does not specify any file.
1cf3d07d
SE
25678ac_need_defaults=:
25679while test $# != 0
25680do
25681 case $1 in
25682 --*=*)
5213506e
RW
25683 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25684 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1cf3d07d
SE
25685 ac_shift=:
25686 ;;
5213506e 25687 *)
1cf3d07d
SE
25688 ac_option=$1
25689 ac_optarg=$2
25690 ac_shift=shift
25691 ;;
1cf3d07d
SE
25692 esac
25693
25694 case $ac_option in
25695 # Handling of the options.
1cf3d07d
SE
25696 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25697 ac_cs_recheck=: ;;
5213506e
RW
25698 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25699 $as_echo "$ac_cs_version"; exit ;;
25700 --debug | --debu | --deb | --de | --d | -d )
1cf3d07d
SE
25701 debug=: ;;
25702 --file | --fil | --fi | --f )
25703 $ac_shift
5213506e
RW
25704 case $ac_optarg in
25705 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25706 esac
25707 as_fn_append CONFIG_FILES " '$ac_optarg'"
1cf3d07d
SE
25708 ac_need_defaults=false;;
25709 --header | --heade | --head | --hea )
25710 $ac_shift
5213506e
RW
25711 case $ac_optarg in
25712 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25713 esac
25714 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1cf3d07d 25715 ac_need_defaults=false;;
5213506e
RW
25716 --he | --h)
25717 # Conflict between --help and --header
25718 as_fn_error "ambiguous option: \`$1'
25719Try \`$0 --help' for more information.";;
25720 --help | --hel | -h )
25721 $as_echo "$ac_cs_usage"; exit ;;
1cf3d07d
SE
25722 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25723 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25724 ac_cs_silent=: ;;
25725
25726 # This is an error.
5213506e
RW
25727 -*) as_fn_error "unrecognized option: \`$1'
25728Try \`$0 --help' for more information." ;;
1cf3d07d 25729
5213506e
RW
25730 *) as_fn_append ac_config_targets " $1"
25731 ac_need_defaults=false ;;
1cf3d07d
SE
25732
25733 esac
25734 shift
25735done
25736
25737ac_configure_extra_args=
25738
25739if $ac_cs_silent; then
25740 exec 6>/dev/null
25741 ac_configure_extra_args="$ac_configure_extra_args --silent"
25742fi
25743
25744_ACEOF
5213506e 25745cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1cf3d07d 25746if \$ac_cs_recheck; then
5213506e
RW
25747 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25748 shift
25749 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25750 CONFIG_SHELL='$SHELL'
25751 export CONFIG_SHELL
25752 exec "\$@"
1cf3d07d
SE
25753fi
25754
25755_ACEOF
5213506e
RW
25756cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25757exec 5>>config.log
25758{
25759 echo
25760 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25761## Running $as_me. ##
25762_ASBOX
25763 $as_echo "$ac_log"
25764} >&5
1cf3d07d 25765
5213506e
RW
25766_ACEOF
25767cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1cf3d07d 25768#
5213506e 25769# INIT-COMMANDS
1cf3d07d
SE
25770#
25771
1cf3d07d
SE
25772srcdir="$srcdir"
25773host="$host"
25774target="$target"
25775with_multisubdir="$with_multisubdir"
25776with_multisrctop="$with_multisrctop"
25777with_target_subdir="$with_target_subdir"
25778ac_configure_args="${multilib_arg} ${ac_configure_args}"
25779multi_basedir="$multi_basedir"
25780CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25781CC="$CC"
4a4a4e99
AO
25782CXX="$CXX"
25783GFORTRAN="$GFORTRAN"
25784GCJ="$GCJ"
1cf3d07d
SE
25785AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25786
25787
25788# The HP-UX ksh and POSIX shell print the target directory to stdout
25789# if CDPATH is set.
25790(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25791
25792sed_quote_subst='$sed_quote_subst'
25793double_quote_subst='$double_quote_subst'
25794delay_variable_subst='$delay_variable_subst'
43e02a8a
RW
25795macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25796macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25797enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25798enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25799pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25800enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25801SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25802ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25803host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25804host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25805host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25806build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25807build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25808build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25809SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25810Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25811GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25812EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25813FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25814LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25815NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25816LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25817max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25818ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25819exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25820lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25821lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25822lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25823reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25824reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25825OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25826deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25827file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25828AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25829AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25830STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25831RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25832old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25833old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25834old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25835lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25836CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25837CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25838compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25839GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25840lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25841lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25842lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25843lt_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"`'
25844objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25845MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25846lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25847lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25848lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25849lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25850lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25851need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25852DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25853NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25854LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25855OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25856OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25857libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25858shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25859extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25860archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25861enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25862export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25863whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25864compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25865old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25866old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25867archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25868archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25869module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25870module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25871with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25872allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25873no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25874hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25875hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
25876hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25877hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25878hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25879hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25880hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25881hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25882inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25883link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25884fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
25885always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25886export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25887exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25888include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25889prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25890file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25891variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25892need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25893need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25894version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25895runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25896shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25897shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25898libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25899library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25900soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25901install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25902postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25903postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25904finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25905finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25906hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25907sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25908sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25909hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25910enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25911enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25912enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25913old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25914striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25915compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25916predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25917postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25918predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25919postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25920compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25921LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25922LD_GCJ='`$ECHO "$LD_GCJ" | $SED "$delay_single_quote_subst"`'
25923reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25924reload_flag_GCJ='`$ECHO "$reload_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25925reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25926reload_cmds_GCJ='`$ECHO "$reload_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25927old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25928old_archive_cmds_GCJ='`$ECHO "$old_archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25929compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25930compiler_GCJ='`$ECHO "$compiler_GCJ" | $SED "$delay_single_quote_subst"`'
25931GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25932GCC_GCJ='`$ECHO "$GCC_GCJ" | $SED "$delay_single_quote_subst"`'
25933lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25934lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "$lt_prog_compiler_no_builtin_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25935lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25936lt_prog_compiler_wl_GCJ='`$ECHO "$lt_prog_compiler_wl_GCJ" | $SED "$delay_single_quote_subst"`'
25937lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25938lt_prog_compiler_pic_GCJ='`$ECHO "$lt_prog_compiler_pic_GCJ" | $SED "$delay_single_quote_subst"`'
25939lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25940lt_prog_compiler_static_GCJ='`$ECHO "$lt_prog_compiler_static_GCJ" | $SED "$delay_single_quote_subst"`'
25941lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25942lt_cv_prog_compiler_c_o_GCJ='`$ECHO "$lt_cv_prog_compiler_c_o_GCJ" | $SED "$delay_single_quote_subst"`'
25943archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25944archive_cmds_need_lc_GCJ='`$ECHO "$archive_cmds_need_lc_GCJ" | $SED "$delay_single_quote_subst"`'
25945enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25946enable_shared_with_static_runtimes_GCJ='`$ECHO "$enable_shared_with_static_runtimes_GCJ" | $SED "$delay_single_quote_subst"`'
25947export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25948export_dynamic_flag_spec_GCJ='`$ECHO "$export_dynamic_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25949whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25950whole_archive_flag_spec_GCJ='`$ECHO "$whole_archive_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25951compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25952compiler_needs_object_GCJ='`$ECHO "$compiler_needs_object_GCJ" | $SED "$delay_single_quote_subst"`'
25953old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25954old_archive_from_new_cmds_GCJ='`$ECHO "$old_archive_from_new_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25955old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25956old_archive_from_expsyms_cmds_GCJ='`$ECHO "$old_archive_from_expsyms_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25957archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25958archive_cmds_GCJ='`$ECHO "$archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25959archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25960archive_expsym_cmds_GCJ='`$ECHO "$archive_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25961module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25962module_cmds_GCJ='`$ECHO "$module_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25963module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25964module_expsym_cmds_GCJ='`$ECHO "$module_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25965with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25966with_gnu_ld_GCJ='`$ECHO "$with_gnu_ld_GCJ" | $SED "$delay_single_quote_subst"`'
25967allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25968allow_undefined_flag_GCJ='`$ECHO "$allow_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25969no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25970no_undefined_flag_GCJ='`$ECHO "$no_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25971hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25972hardcode_libdir_flag_spec_GCJ='`$ECHO "$hardcode_libdir_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25973hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
25974hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "$hardcode_libdir_flag_spec_ld_GCJ" | $SED "$delay_single_quote_subst"`'
25975hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25976hardcode_libdir_separator_GCJ='`$ECHO "$hardcode_libdir_separator_GCJ" | $SED "$delay_single_quote_subst"`'
25977hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25978hardcode_direct_GCJ='`$ECHO "$hardcode_direct_GCJ" | $SED "$delay_single_quote_subst"`'
25979hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25980hardcode_direct_absolute_GCJ='`$ECHO "$hardcode_direct_absolute_GCJ" | $SED "$delay_single_quote_subst"`'
25981hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25982hardcode_minus_L_GCJ='`$ECHO "$hardcode_minus_L_GCJ" | $SED "$delay_single_quote_subst"`'
25983hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25984hardcode_shlibpath_var_GCJ='`$ECHO "$hardcode_shlibpath_var_GCJ" | $SED "$delay_single_quote_subst"`'
25985hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25986hardcode_automatic_GCJ='`$ECHO "$hardcode_automatic_GCJ" | $SED "$delay_single_quote_subst"`'
25987inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25988inherit_rpath_GCJ='`$ECHO "$inherit_rpath_GCJ" | $SED "$delay_single_quote_subst"`'
25989link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25990link_all_deplibs_GCJ='`$ECHO "$link_all_deplibs_GCJ" | $SED "$delay_single_quote_subst"`'
25991fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
25992fix_srcfile_path_GCJ='`$ECHO "$fix_srcfile_path_GCJ" | $SED "$delay_single_quote_subst"`'
25993always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25994always_export_symbols_GCJ='`$ECHO "$always_export_symbols_GCJ" | $SED "$delay_single_quote_subst"`'
25995export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25996export_symbols_cmds_GCJ='`$ECHO "$export_symbols_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25997exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25998exclude_expsyms_GCJ='`$ECHO "$exclude_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
25999include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26000include_expsyms_GCJ='`$ECHO "$include_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
26001prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26002prelink_cmds_GCJ='`$ECHO "$prelink_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26003file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
26004file_list_spec_GCJ='`$ECHO "$file_list_spec_GCJ" | $SED "$delay_single_quote_subst"`'
26005hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
26006hardcode_action_GCJ='`$ECHO "$hardcode_action_GCJ" | $SED "$delay_single_quote_subst"`'
26007compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
26008compiler_lib_search_dirs_GCJ='`$ECHO "$compiler_lib_search_dirs_GCJ" | $SED "$delay_single_quote_subst"`'
26009predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26010predep_objects_GCJ='`$ECHO "$predep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
26011postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26012postdep_objects_GCJ='`$ECHO "$postdep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
26013predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
26014predeps_GCJ='`$ECHO "$predeps_GCJ" | $SED "$delay_single_quote_subst"`'
26015postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
26016postdeps_GCJ='`$ECHO "$postdeps_GCJ" | $SED "$delay_single_quote_subst"`'
26017compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
26018compiler_lib_search_path_GCJ='`$ECHO "$compiler_lib_search_path_GCJ" | $SED "$delay_single_quote_subst"`'
1cf3d07d
SE
26019
26020LTCC='$LTCC'
26021LTCFLAGS='$LTCFLAGS'
26022compiler='$compiler_DEFAULT'
26023
43e02a8a
RW
26024# A function that is used when there is no print builtin or printf.
26025func_fallback_echo ()
26026{
26027 eval 'cat <<_LTECHO_EOF
26028\$1
26029_LTECHO_EOF'
26030}
26031
1cf3d07d 26032# Quote evaled strings.
43e02a8a
RW
26033for var in SHELL \
26034ECHO \
26035SED \
1cf3d07d
SE
26036GREP \
26037EGREP \
26038FGREP \
26039LD \
26040NM \
26041LN_S \
26042lt_SP2NL \
26043lt_NL2SP \
26044reload_flag \
0da7a284 26045OBJDUMP \
1cf3d07d
SE
26046deplibs_check_method \
26047file_magic_cmd \
26048AR \
26049AR_FLAGS \
26050STRIP \
26051RANLIB \
26052CC \
26053CFLAGS \
26054compiler \
26055lt_cv_sys_global_symbol_pipe \
26056lt_cv_sys_global_symbol_to_cdecl \
26057lt_cv_sys_global_symbol_to_c_name_address \
0da7a284 26058lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1cf3d07d
SE
26059lt_prog_compiler_no_builtin_flag \
26060lt_prog_compiler_wl \
26061lt_prog_compiler_pic \
26062lt_prog_compiler_static \
26063lt_cv_prog_compiler_c_o \
26064need_locks \
0da7a284
PG
26065DSYMUTIL \
26066NMEDIT \
26067LIPO \
26068OTOOL \
26069OTOOL64 \
1cf3d07d
SE
26070shrext_cmds \
26071export_dynamic_flag_spec \
26072whole_archive_flag_spec \
26073compiler_needs_object \
26074with_gnu_ld \
26075allow_undefined_flag \
26076no_undefined_flag \
26077hardcode_libdir_flag_spec \
26078hardcode_libdir_flag_spec_ld \
26079hardcode_libdir_separator \
26080fix_srcfile_path \
26081exclude_expsyms \
26082include_expsyms \
26083file_list_spec \
26084variables_saved_for_relink \
26085libname_spec \
26086library_names_spec \
26087soname_spec \
43e02a8a 26088install_override_mode \
1cf3d07d
SE
26089finish_eval \
26090old_striplib \
26091striplib \
0da7a284 26092compiler_lib_search_dirs \
1cf3d07d
SE
26093predep_objects \
26094postdep_objects \
26095predeps \
26096postdeps \
26097compiler_lib_search_path \
26098LD_CXX \
26099LD_GCJ \
43e02a8a
RW
26100reload_flag_CXX \
26101reload_flag_GCJ \
1cf3d07d
SE
26102compiler_CXX \
26103compiler_GCJ \
26104lt_prog_compiler_no_builtin_flag_CXX \
26105lt_prog_compiler_no_builtin_flag_GCJ \
26106lt_prog_compiler_wl_CXX \
26107lt_prog_compiler_wl_GCJ \
26108lt_prog_compiler_pic_CXX \
26109lt_prog_compiler_pic_GCJ \
26110lt_prog_compiler_static_CXX \
26111lt_prog_compiler_static_GCJ \
26112lt_cv_prog_compiler_c_o_CXX \
26113lt_cv_prog_compiler_c_o_GCJ \
26114export_dynamic_flag_spec_CXX \
26115export_dynamic_flag_spec_GCJ \
26116whole_archive_flag_spec_CXX \
26117whole_archive_flag_spec_GCJ \
26118compiler_needs_object_CXX \
26119compiler_needs_object_GCJ \
26120with_gnu_ld_CXX \
26121with_gnu_ld_GCJ \
26122allow_undefined_flag_CXX \
26123allow_undefined_flag_GCJ \
26124no_undefined_flag_CXX \
26125no_undefined_flag_GCJ \
26126hardcode_libdir_flag_spec_CXX \
26127hardcode_libdir_flag_spec_GCJ \
26128hardcode_libdir_flag_spec_ld_CXX \
26129hardcode_libdir_flag_spec_ld_GCJ \
26130hardcode_libdir_separator_CXX \
26131hardcode_libdir_separator_GCJ \
26132fix_srcfile_path_CXX \
26133fix_srcfile_path_GCJ \
26134exclude_expsyms_CXX \
26135exclude_expsyms_GCJ \
26136include_expsyms_CXX \
26137include_expsyms_GCJ \
26138file_list_spec_CXX \
26139file_list_spec_GCJ \
0da7a284
PG
26140compiler_lib_search_dirs_CXX \
26141compiler_lib_search_dirs_GCJ \
1cf3d07d
SE
26142predep_objects_CXX \
26143predep_objects_GCJ \
26144postdep_objects_CXX \
26145postdep_objects_GCJ \
26146predeps_CXX \
26147predeps_GCJ \
26148postdeps_CXX \
26149postdeps_GCJ \
26150compiler_lib_search_path_CXX \
26151compiler_lib_search_path_GCJ; do
43e02a8a 26152 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 26153 *[\\\\\\\`\\"\\\$]*)
43e02a8a 26154 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1cf3d07d
SE
26155 ;;
26156 *)
26157 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26158 ;;
26159 esac
26160done
26161
26162# Double-quote double-evaled strings.
26163for var in reload_cmds \
26164old_postinstall_cmds \
26165old_postuninstall_cmds \
26166old_archive_cmds \
26167extract_expsyms_cmds \
26168old_archive_from_new_cmds \
26169old_archive_from_expsyms_cmds \
26170archive_cmds \
26171archive_expsym_cmds \
26172module_cmds \
26173module_expsym_cmds \
26174export_symbols_cmds \
26175prelink_cmds \
26176postinstall_cmds \
26177postuninstall_cmds \
26178finish_cmds \
26179sys_lib_search_path_spec \
26180sys_lib_dlsearch_path_spec \
43e02a8a
RW
26181reload_cmds_CXX \
26182reload_cmds_GCJ \
1cf3d07d
SE
26183old_archive_cmds_CXX \
26184old_archive_cmds_GCJ \
26185old_archive_from_new_cmds_CXX \
26186old_archive_from_new_cmds_GCJ \
26187old_archive_from_expsyms_cmds_CXX \
26188old_archive_from_expsyms_cmds_GCJ \
26189archive_cmds_CXX \
26190archive_cmds_GCJ \
26191archive_expsym_cmds_CXX \
26192archive_expsym_cmds_GCJ \
26193module_cmds_CXX \
26194module_cmds_GCJ \
26195module_expsym_cmds_CXX \
26196module_expsym_cmds_GCJ \
26197export_symbols_cmds_CXX \
26198export_symbols_cmds_GCJ \
26199prelink_cmds_CXX \
26200prelink_cmds_GCJ; do
43e02a8a 26201 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 26202 *[\\\\\\\`\\"\\\$]*)
43e02a8a 26203 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1cf3d07d
SE
26204 ;;
26205 *)
26206 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26207 ;;
26208 esac
26209done
26210
1cf3d07d
SE
26211ac_aux_dir='$ac_aux_dir'
26212xsi_shell='$xsi_shell'
26213lt_shell_append='$lt_shell_append'
26214
26215# See if we are running on zsh, and set the options which allow our
26216# commands through without removal of \ escapes INIT.
26217if test -n "\${ZSH_VERSION+set}" ; then
26218 setopt NO_GLOB_SUBST
26219fi
26220
26221
26222 PACKAGE='$PACKAGE'
26223 VERSION='$VERSION'
26224 TIMESTAMP='$TIMESTAMP'
26225 RM='$RM'
26226 ofile='$ofile'
26227
26228
26229
26230
26231
26232
26233
1cf3d07d
SE
26234
26235_ACEOF
26236
5213506e 26237cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1cf3d07d 26238
5213506e 26239# Handling of arguments.
1cf3d07d
SE
26240for ac_config_target in $ac_config_targets
26241do
5213506e
RW
26242 case $ac_config_target in
26243 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
26244 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26245 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
26246 "gcj/libgcj-config.h") CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
26247 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26248 "include/platform.h") CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
26249 "java/io/natFile.cc") CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
26250 "java/lang/natConcreteProcess.cc") CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
26251 "java/net/natVMInetAddress.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
26252 "java/net/natVMNetworkInterface.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
26253 "gnu/java/net/natPlainSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
26254 "gnu/java/net/natPlainDatagramSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
26255 "gnu/java/nio/natVMPipe.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
26256 "gnu/java/nio/natVMSelector.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
26257 "gnu/java/nio/channels/natFileChannelImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
26258 "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" ;;
26259 "include/java-gc.h") CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
26260 "include/java-threads.h") CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
26261 "sysdep/locks.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
26262 "sysdep/backtrace.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
26263 "sysdep/descriptor.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
26264 "include/java-signal.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
26265 "include/java-signal-aux.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
26266 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26267 "libgcj.pc") CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
26268 "libgcj.spec") CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
26269 "libgcj-test.spec") CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
26270 "gcj/Makefile") CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
26271 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26272 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
26273 "contrib/aotcompile.py") CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
26274 "contrib/aot-compile") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
26275 "contrib/aot-compile-rpm") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
26276 "contrib/generate-cacerts.pl") CONFIG_FILES="$CONFIG_FILES contrib/generate-cacerts.pl" ;;
26277 "contrib/rebuild-gcj-db") CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
26278 "scripts/jar") CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
26279
26280 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1cf3d07d
SE
26281 esac
26282done
26283
5213506e 26284
1cf3d07d
SE
26285# If the user did not use the arguments to specify the items to instantiate,
26286# then the envvar interface is used. Set only those that are not.
26287# We use the long form for the default assignment because of an extremely
26288# bizarre bug on SunOS 4.1.3.
26289if $ac_need_defaults; then
26290 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26291 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26292 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26293 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26294fi
26295
26296# Have a temporary directory for convenience. Make it in the build tree
5213506e 26297# simply because there is no reason against having it here, and in addition,
1cf3d07d 26298# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
26299# Hook for its removal unless debugging.
26300# Note that there is a small window in which the directory will not be cleaned:
26301# after its creation but before its name has been assigned to `$tmp'.
1cf3d07d
SE
26302$debug ||
26303{
5213506e
RW
26304 tmp=
26305 trap 'exit_status=$?
26306 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26307' 0
26308 trap 'as_fn_exit 1' 1 2 13 15
26309}
26310# Create a (secure) tmp directory for tmp files.
26311
26312{
26313 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26314 test -n "$tmp" && test -d "$tmp"
26315} ||
26316{
26317 tmp=./conf$$-$RANDOM
26318 (umask 077 && mkdir "$tmp")
26319} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26320
26321# Set up the scripts for CONFIG_FILES section.
26322# No need to generate them if there are no CONFIG_FILES.
26323# This happens for instance with `./config.status config.h'.
26324if test -n "$CONFIG_FILES"; then
26325
26326
26327ac_cr=`echo X | tr X '\015'`
26328# On cygwin, bash can eat \r inside `` if the user requested igncr.
26329# But we know of no other shell where ac_cr would be empty at this
26330# point, so we can use a bashism as a fallback.
26331if test "x$ac_cr" = x; then
26332 eval ac_cr=\$\'\\r\'
26333fi
26334ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26335if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26336 ac_cs_awk_cr='\r'
26337else
26338 ac_cs_awk_cr=$ac_cr
26339fi
26340
26341echo 'BEGIN {' >"$tmp/subs1.awk" &&
26342_ACEOF
26343
26344
26345{
26346 echo "cat >conf$$subs.awk <<_ACEOF" &&
26347 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26348 echo "_ACEOF"
26349} >conf$$subs.sh ||
26350 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26351ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26352ac_delim='%!_!# '
26353for ac_last_try in false false false false false :; do
26354 . ./conf$$subs.sh ||
26355 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26356
26357 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26358 if test $ac_delim_n = $ac_delim_num; then
26359 break
26360 elif $ac_last_try; then
26361 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26362 else
26363 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26364 fi
26365done
26366rm -f conf$$subs.sh
26367
26368cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26369cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26370_ACEOF
26371sed -n '
26372h
26373s/^/S["/; s/!.*/"]=/
26374p
26375g
26376s/^[^!]*!//
26377:repl
26378t repl
26379s/'"$ac_delim"'$//
26380t delim
26381:nl
26382h
26383s/\(.\{148\}\).*/\1/
26384t more1
26385s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26386p
26387n
26388b repl
26389:more1
26390s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26391p
26392g
26393s/.\{148\}//
26394t nl
26395:delim
26396h
26397s/\(.\{148\}\).*/\1/
26398t more2
26399s/["\\]/\\&/g; s/^/"/; s/$/"/
26400p
26401b
26402:more2
26403s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26404p
26405g
26406s/.\{148\}//
26407t delim
26408' <conf$$subs.awk | sed '
26409/^[^""]/{
26410 N
26411 s/\n//
26412}
26413' >>$CONFIG_STATUS || ac_write_fail=1
26414rm -f conf$$subs.awk
26415cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26416_ACAWK
26417cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26418 for (key in S) S_is_set[key] = 1
26419 FS = "\a"
26420
26421}
26422{
26423 line = $ 0
26424 nfields = split(line, field, "@")
26425 substed = 0
26426 len = length(field[1])
26427 for (i = 2; i < nfields; i++) {
26428 key = field[i]
26429 keylen = length(key)
26430 if (S_is_set[key]) {
26431 value = S[key]
26432 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26433 len += length(value) + length(field[++i])
26434 substed = 1
26435 } else
26436 len += 1 + keylen
26437 }
26438
26439 print line
1cf3d07d
SE
26440}
26441
5213506e
RW
26442_ACAWK
26443_ACEOF
26444cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26445if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26446 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26447else
26448 cat
26449fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26450 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26451_ACEOF
26452
26453# VPATH may cause trouble with some makes, so we remove $(srcdir),
26454# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26455# trailing colons and then remove the whole line if VPATH becomes empty
26456# (actually we leave an empty line to preserve line numbers).
26457if test "x$srcdir" = x.; then
26458 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26459s/:*\$(srcdir):*/:/
26460s/:*\${srcdir}:*/:/
26461s/:*@srcdir@:*/:/
26462s/^\([^=]*=[ ]*\):*/\1/
26463s/:*$//
26464s/^[^=]*=[ ]*$//
26465}'
26466fi
26467
26468cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26469fi # test -n "$CONFIG_FILES"
26470
26471# Set up the scripts for CONFIG_HEADERS section.
26472# No need to generate them if there are no CONFIG_HEADERS.
26473# This happens for instance with `./config.status Makefile'.
26474if test -n "$CONFIG_HEADERS"; then
26475cat >"$tmp/defines.awk" <<\_ACAWK ||
26476BEGIN {
26477_ACEOF
26478
26479# Transform confdefs.h into an awk script `defines.awk', embedded as
26480# here-document in config.status, that substitutes the proper values into
26481# config.h.in to produce config.h.
26482
26483# Create a delimiter string that does not exist in confdefs.h, to ease
26484# handling of long lines.
26485ac_delim='%!_!# '
26486for ac_last_try in false false :; do
26487 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26488 if test -z "$ac_t"; then
26489 break
26490 elif $ac_last_try; then
26491 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26492 else
26493 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26494 fi
26495done
1cf3d07d 26496
5213506e
RW
26497# For the awk script, D is an array of macro values keyed by name,
26498# likewise P contains macro parameters if any. Preserve backslash
26499# newline sequences.
26500
26501ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26502sed -n '
26503s/.\{148\}/&'"$ac_delim"'/g
26504t rset
26505:rset
26506s/^[ ]*#[ ]*define[ ][ ]*/ /
26507t def
26508d
26509:def
26510s/\\$//
26511t bsnl
26512s/["\\]/\\&/g
26513s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26514D["\1"]=" \3"/p
26515s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26516d
26517:bsnl
26518s/["\\]/\\&/g
26519s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26520D["\1"]=" \3\\\\\\n"\\/p
26521t cont
26522s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26523t cont
26524d
26525:cont
26526n
26527s/.\{148\}/&'"$ac_delim"'/g
26528t clear
26529:clear
26530s/\\$//
26531t bsnlc
26532s/["\\]/\\&/g; s/^/"/; s/$/"/p
26533d
26534:bsnlc
26535s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26536b cont
26537' <confdefs.h | sed '
26538s/'"$ac_delim"'/"\\\
26539"/g' >>$CONFIG_STATUS || ac_write_fail=1
26540
26541cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26542 for (key in D) D_is_set[key] = 1
26543 FS = "\a"
1cf3d07d 26544}
5213506e
RW
26545/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26546 line = \$ 0
26547 split(line, arg, " ")
26548 if (arg[1] == "#") {
26549 defundef = arg[2]
26550 mac1 = arg[3]
26551 } else {
26552 defundef = substr(arg[1], 2)
26553 mac1 = arg[2]
26554 }
26555 split(mac1, mac2, "(") #)
26556 macro = mac2[1]
26557 prefix = substr(line, 1, index(line, defundef) - 1)
26558 if (D_is_set[macro]) {
26559 # Preserve the white space surrounding the "#".
26560 print prefix "define", macro P[macro] D[macro]
26561 next
26562 } else {
26563 # Replace #undef with comments. This is necessary, for example,
26564 # in the case of _POSIX_SOURCE, which is predefined and required
26565 # on some systems where configure will not decide to define it.
26566 if (defundef == "undef") {
26567 print "/*", prefix defundef, macro, "*/"
26568 next
26569 }
26570 }
26571}
26572{ print }
26573_ACAWK
1cf3d07d 26574_ACEOF
5213506e
RW
26575cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26576 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26577fi # test -n "$CONFIG_HEADERS"
1cf3d07d 26578
1cf3d07d 26579
5213506e
RW
26580eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
26581shift
26582for ac_tag
26583do
26584 case $ac_tag in
26585 :[FHLC]) ac_mode=$ac_tag; continue;;
26586 esac
26587 case $ac_mode$ac_tag in
26588 :[FHL]*:*);;
26589 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26590 :[FH]-) ac_tag=-:-;;
26591 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26592 esac
26593 ac_save_IFS=$IFS
26594 IFS=:
26595 set x $ac_tag
26596 IFS=$ac_save_IFS
26597 shift
26598 ac_file=$1
26599 shift
ade710a5 26600
5213506e
RW
26601 case $ac_mode in
26602 :L) ac_source=$1;;
26603 :[FH])
26604 ac_file_inputs=
26605 for ac_f
26606 do
26607 case $ac_f in
26608 -) ac_f="$tmp/stdin";;
26609 *) # Look for the file first in the build tree, then in the source tree
26610 # (if the path is not absolute). The absolute path cannot be DOS-style,
26611 # because $ac_f cannot contain `:'.
26612 test -f "$ac_f" ||
26613 case $ac_f in
26614 [\\/$]*) false;;
26615 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26616 esac ||
26617 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26618 esac
26619 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26620 as_fn_append ac_file_inputs " '$ac_f'"
26621 done
1cf3d07d 26622
5213506e
RW
26623 # Let's still pretend it is `configure' which instantiates (i.e., don't
26624 # use $as_me), people would be surprised to read:
26625 # /* config.h. Generated by config.status. */
26626 configure_input='Generated from '`
26627 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26628 `' by configure.'
26629 if test x"$ac_file" != x-; then
26630 configure_input="$ac_file. $configure_input"
26631 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26632$as_echo "$as_me: creating $ac_file" >&6;}
1cf3d07d 26633 fi
5213506e
RW
26634 # Neutralize special characters interpreted by sed in replacement strings.
26635 case $configure_input in #(
26636 *\&* | *\|* | *\\* )
26637 ac_sed_conf_input=`$as_echo "$configure_input" |
26638 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26639 *) ac_sed_conf_input=$configure_input;;
26640 esac
1cf3d07d 26641
5213506e
RW
26642 case $ac_tag in
26643 *:-:* | *:-) cat >"$tmp/stdin" \
26644 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26645 esac
26646 ;;
1cf3d07d
SE
26647 esac
26648
5213506e 26649 ac_dir=`$as_dirname -- "$ac_file" ||
1cf3d07d
SE
26650$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26651 X"$ac_file" : 'X\(//\)[^/]' \| \
26652 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
26653 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26654$as_echo X"$ac_file" |
26655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26656 s//\1/
26657 q
26658 }
26659 /^X\(\/\/\)[^/].*/{
26660 s//\1/
26661 q
26662 }
26663 /^X\(\/\/\)$/{
26664 s//\1/
26665 q
26666 }
26667 /^X\(\/\).*/{
26668 s//\1/
26669 q
26670 }
26671 s/.*/./; q'`
26672 as_dir="$ac_dir"; as_fn_mkdir_p
1cf3d07d
SE
26673 ac_builddir=.
26674
5213506e
RW
26675case "$ac_dir" in
26676.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26677*)
26678 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26679 # A ".." for each directory in $ac_dir_suffix.
26680 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26681 case $ac_top_builddir_sub in
26682 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26683 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26684 esac ;;
26685esac
26686ac_abs_top_builddir=$ac_pwd
26687ac_abs_builddir=$ac_pwd$ac_dir_suffix
26688# for backward compatibility:
26689ac_top_builddir=$ac_top_build_prefix
1cf3d07d
SE
26690
26691case $srcdir in
5213506e 26692 .) # We are building in place.
1cf3d07d 26693 ac_srcdir=.
5213506e
RW
26694 ac_top_srcdir=$ac_top_builddir_sub
26695 ac_abs_top_srcdir=$ac_pwd ;;
26696 [\\/]* | ?:[\\/]* ) # Absolute name.
1cf3d07d 26697 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
26698 ac_top_srcdir=$srcdir
26699 ac_abs_top_srcdir=$srcdir ;;
26700 *) # Relative name.
26701 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26702 ac_top_srcdir=$ac_top_build_prefix$srcdir
26703 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1cf3d07d 26704esac
5213506e 26705ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1cf3d07d 26706
1cf3d07d 26707
5213506e
RW
26708 case $ac_mode in
26709 :F)
26710 #
26711 # CONFIG_FILE
26712 #
1cf3d07d
SE
26713
26714 case $INSTALL in
26715 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 26716 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1cf3d07d 26717 esac
5213506e
RW
26718 ac_MKDIR_P=$MKDIR_P
26719 case $MKDIR_P in
26720 [\\/$]* | ?:[\\/]* ) ;;
26721 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26722 esac
26723_ACEOF
1cf3d07d 26724
5213506e
RW
26725cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26726# If the template does not know about datarootdir, expand it.
26727# FIXME: This hack should be removed a few years after 2.60.
26728ac_datarootdir_hack=; ac_datarootdir_seen=
26729ac_sed_dataroot='
26730/datarootdir/ {
26731 p
26732 q
26733}
26734/@datadir@/p
26735/@docdir@/p
26736/@infodir@/p
26737/@localedir@/p
26738/@mandir@/p'
26739case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26740*datarootdir*) ac_datarootdir_seen=yes;;
26741*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26743$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26744_ACEOF
26745cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26746 ac_datarootdir_hack='
26747 s&@datadir@&$datadir&g
26748 s&@docdir@&$docdir&g
26749 s&@infodir@&$infodir&g
26750 s&@localedir@&$localedir&g
26751 s&@mandir@&$mandir&g
26752 s&\\\${datarootdir}&$datarootdir&g' ;;
26753esac
1cf3d07d 26754_ACEOF
5213506e
RW
26755
26756# Neutralize VPATH when `$srcdir' = `.'.
26757# Shell code in configure.ac might set extrasub.
26758# FIXME: do we really want to maintain this feature?
26759cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26760ac_sed_extra="$ac_vpsub
1cf3d07d
SE
26761$extrasub
26762_ACEOF
5213506e 26763cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1cf3d07d
SE
26764:t
26765/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
26766s|@configure_input@|$ac_sed_conf_input|;t t
26767s&@top_builddir@&$ac_top_builddir_sub&;t t
26768s&@top_build_prefix@&$ac_top_build_prefix&;t t
26769s&@srcdir@&$ac_srcdir&;t t
26770s&@abs_srcdir@&$ac_abs_srcdir&;t t
26771s&@top_srcdir@&$ac_top_srcdir&;t t
26772s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26773s&@builddir@&$ac_builddir&;t t
26774s&@abs_builddir@&$ac_abs_builddir&;t t
26775s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26776s&@INSTALL@&$ac_INSTALL&;t t
26777s&@MKDIR_P@&$ac_MKDIR_P&;t t
26778$ac_datarootdir_hack
26779"
26780eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26781 || as_fn_error "could not create $ac_file" "$LINENO" 5
26782
26783test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26784 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26785 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26787which seems to be undefined. Please make sure it is defined." >&5
26788$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26789which seems to be undefined. Please make sure it is defined." >&2;}
26790
26791 rm -f "$tmp/stdin"
1cf3d07d 26792 case $ac_file in
5213506e
RW
26793 -) cat "$tmp/out" && rm -f "$tmp/out";;
26794 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26795 esac \
26796 || as_fn_error "could not create $ac_file" "$LINENO" 5
26797 ;;
26798 :H)
26799 #
26800 # CONFIG_HEADER
26801 #
1cf3d07d 26802 if test x"$ac_file" != x-; then
5213506e
RW
26803 {
26804 $as_echo "/* $configure_input */" \
26805 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26806 } >"$tmp/config.h" \
26807 || as_fn_error "could not create $ac_file" "$LINENO" 5
26808 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26809 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26810$as_echo "$as_me: $ac_file is unchanged" >&6;}
1cf3d07d 26811 else
5213506e
RW
26812 rm -f "$ac_file"
26813 mv "$tmp/config.h" "$ac_file" \
26814 || as_fn_error "could not create $ac_file" "$LINENO" 5
1cf3d07d
SE
26815 fi
26816 else
5213506e
RW
26817 $as_echo "/* $configure_input */" \
26818 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26819 || as_fn_error "could not create -" "$LINENO" 5
1cf3d07d 26820 fi
5213506e
RW
26821# Compute "$ac_file"'s index in $config_headers.
26822_am_arg="$ac_file"
1cf3d07d
SE
26823_am_stamp_count=1
26824for _am_header in $config_headers :; do
26825 case $_am_header in
5213506e 26826 $_am_arg | $_am_arg:* )
1cf3d07d
SE
26827 break ;;
26828 * )
26829 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26830 esac
26831done
5213506e
RW
26832echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26833$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26834 X"$_am_arg" : 'X\(//\)[^/]' \| \
26835 X"$_am_arg" : 'X\(//\)$' \| \
26836 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26837$as_echo X"$_am_arg" |
26838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26839 s//\1/
26840 q
26841 }
26842 /^X\(\/\/\)[^/].*/{
26843 s//\1/
26844 q
26845 }
26846 /^X\(\/\/\)$/{
26847 s//\1/
26848 q
26849 }
26850 /^X\(\/\).*/{
26851 s//\1/
26852 q
26853 }
26854 s/.*/./; q'`/stamp-h$_am_stamp_count
26855 ;;
26856 :L)
26857 #
26858 # CONFIG_LINK
26859 #
1cf3d07d 26860
5213506e
RW
26861 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
26862 :
1cf3d07d 26863 else
5213506e
RW
26864 # Prefer the file from the source tree if names are identical.
26865 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
26866 ac_source=$srcdir/$ac_source
26867 fi
1cf3d07d 26868
5213506e
RW
26869 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
26870$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
1cf3d07d 26871
5213506e
RW
26872 if test ! -r "$ac_source"; then
26873 as_fn_error "$ac_source: file not found" "$LINENO" 5
26874 fi
26875 rm -f "$ac_file"
1cf3d07d 26876
5213506e
RW
26877 # Try a relative symlink, then a hard link, then a copy.
26878 case $srcdir in
26879 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
26880 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
26881 esac
26882 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26883 ln "$ac_source" "$ac_file" 2>/dev/null ||
26884 cp -p "$ac_source" "$ac_file" ||
26885 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
26886 fi
26887 ;;
26888 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26889$as_echo "$as_me: executing $ac_file commands" >&6;}
26890 ;;
1cf3d07d
SE
26891 esac
26892
ee9dd372 26893
5213506e
RW
26894 case $ac_file$ac_mode in
26895 "default-1":C)
1cf3d07d
SE
26896# Only add multilib support code if we just rebuilt the top-level
26897# Makefile.
26898case " $CONFIG_FILES " in
26899 *" Makefile "*)
26900 ac_file=Makefile . ${multi_basedir}/config-ml.in
26901 ;;
26902esac ;;
5213506e
RW
26903 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26904 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26905 # are listed without --file. Let's play safe and only enable the eval
26906 # if we detect the quoting.
26907 case $CONFIG_FILES in
26908 *\'*) eval set x "$CONFIG_FILES" ;;
26909 *) set x $CONFIG_FILES ;;
26910 esac
26911 shift
26912 for mf
26913 do
26914 # Strip MF so we end up with the name of the file.
26915 mf=`echo "$mf" | sed -e 's/:.*$//'`
26916 # Check whether this is an Automake generated Makefile or not.
26917 # We used to match only the files named `Makefile.in', but
26918 # some people rename them; so instead we look at the file content.
26919 # Grep'ing the first line is not enough: some people post-process
26920 # each Makefile.in and add a new line on top of each file to say so.
26921 # Grep'ing the whole file is not good either: AIX grep has a line
26922 # limit of 2048, but all sed's we know have understand at least 4000.
26923 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26924 dirpart=`$as_dirname -- "$mf" ||
1cf3d07d
SE
26925$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26926 X"$mf" : 'X\(//\)[^/]' \| \
26927 X"$mf" : 'X\(//\)$' \| \
5213506e
RW
26928 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26929$as_echo X"$mf" |
26930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26931 s//\1/
26932 q
26933 }
26934 /^X\(\/\/\)[^/].*/{
26935 s//\1/
26936 q
26937 }
26938 /^X\(\/\/\)$/{
26939 s//\1/
26940 q
26941 }
26942 /^X\(\/\).*/{
26943 s//\1/
26944 q
26945 }
26946 s/.*/./; q'`
26947 else
26948 continue
26949 fi
26950 # Extract the definition of DEPDIR, am__include, and am__quote
26951 # from the Makefile without running `make'.
26952 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26953 test -z "$DEPDIR" && continue
26954 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26955 test -z "am__include" && continue
26956 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26957 # When using ansi2knr, U may be empty or an underscore; expand it
26958 U=`sed -n 's/^U = //p' < "$mf"`
26959 # Find all dependency output files, they are included files with
26960 # $(DEPDIR) in their names. We invoke sed twice because it is the
26961 # simplest approach to changing $(DEPDIR) to its actual value in the
26962 # expansion.
26963 for file in `sed -n "
26964 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26965 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26966 # Make sure the directory exists.
26967 test -f "$dirpart/$file" && continue
26968 fdir=`$as_dirname -- "$file" ||
1cf3d07d
SE
26969$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26970 X"$file" : 'X\(//\)[^/]' \| \
26971 X"$file" : 'X\(//\)$' \| \
5213506e
RW
26972 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26973$as_echo X"$file" |
26974 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26975 s//\1/
26976 q
26977 }
26978 /^X\(\/\/\)[^/].*/{
26979 s//\1/
26980 q
26981 }
26982 /^X\(\/\/\)$/{
26983 s//\1/
26984 q
26985 }
26986 /^X\(\/\).*/{
26987 s//\1/
26988 q
26989 }
26990 s/.*/./; q'`
26991 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26992 # echo "creating $dirpart/$file"
26993 echo '# dummy' > "$dirpart/$file"
ed698112 26994 done
1cf3d07d 26995 done
5213506e 26996}
1cf3d07d 26997 ;;
5213506e 26998 "libtool":C)
1cf3d07d
SE
26999
27000 # See if we are running on zsh, and set the options which allow our
27001 # commands through without removal of \ escapes.
27002 if test -n "${ZSH_VERSION+set}" ; then
27003 setopt NO_GLOB_SUBST
27004 fi
27005
27006 cfgfile="${ofile}T"
27007 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27008 $RM "$cfgfile"
27009
27010 cat <<_LT_EOF >> "$cfgfile"
27011#! $SHELL
27012
27013# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
0da7a284 27014# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1cf3d07d
SE
27015# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27016# NOTE: Changes made to this file will be lost: look at ltmain.sh.
27017#
0da7a284 27018# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43e02a8a 27019# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
0da7a284 27020# Written by Gordon Matzigkeit, 1996
1cf3d07d 27021#
0da7a284 27022# This file is part of GNU Libtool.
1cf3d07d 27023#
0da7a284
PG
27024# GNU Libtool is free software; you can redistribute it and/or
27025# modify it under the terms of the GNU General Public License as
27026# published by the Free Software Foundation; either version 2 of
27027# the License, or (at your option) any later version.
1cf3d07d 27028#
0da7a284
PG
27029# As a special exception to the GNU General Public License,
27030# if you distribute this file as part of a program or library that
27031# is built using GNU Libtool, you may include this file under the
27032# same distribution terms that you use for the rest of that program.
1cf3d07d 27033#
0da7a284
PG
27034# GNU Libtool is distributed in the hope that it will be useful,
27035# but WITHOUT ANY WARRANTY; without even the implied warranty of
27036# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27037# GNU General Public License for more details.
1cf3d07d 27038#
0da7a284
PG
27039# You should have received a copy of the GNU General Public License
27040# along with GNU Libtool; see the file COPYING. If not, a copy
27041# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27042# obtained by writing to the Free Software Foundation, Inc.,
27043# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1cf3d07d
SE
27044
27045
27046# The names of the tagged configurations supported by this script.
27047available_tags="CXX GCJ "
27048
27049# ### BEGIN LIBTOOL CONFIG
27050
27051# Which release of libtool.m4 was used?
27052macro_version=$macro_version
27053macro_revision=$macro_revision
27054
27055# Whether or not to build shared libraries.
27056build_libtool_libs=$enable_shared
27057
27058# Whether or not to build static libraries.
27059build_old_libs=$enable_static
27060
27061# What type of objects to build.
27062pic_mode=$pic_mode
27063
27064# Whether or not to optimize for fast installation.
27065fast_install=$enable_fast_install
27066
43e02a8a
RW
27067# Shell to use when invoking shell scripts.
27068SHELL=$lt_SHELL
27069
27070# An echo program that protects backslashes.
27071ECHO=$lt_ECHO
27072
1cf3d07d
SE
27073# The host system.
27074host_alias=$host_alias
27075host=$host
27076host_os=$host_os
27077
27078# The build system.
27079build_alias=$build_alias
27080build=$build
27081build_os=$build_os
27082
27083# A sed program that does not truncate output.
27084SED=$lt_SED
27085
27086# Sed that helps us avoid accidentally triggering echo(1) options like -n.
27087Xsed="\$SED -e 1s/^X//"
27088
27089# A grep program that handles long lines.
27090GREP=$lt_GREP
27091
27092# An ERE matcher.
27093EGREP=$lt_EGREP
27094
27095# A literal string matcher.
27096FGREP=$lt_FGREP
27097
27098# A BSD- or MS-compatible name lister.
27099NM=$lt_NM
27100
27101# Whether we need soft or hard links.
27102LN_S=$lt_LN_S
27103
27104# What is the maximum length of a command?
27105max_cmd_len=$max_cmd_len
27106
27107# Object file suffix (normally "o").
27108objext=$ac_objext
27109
27110# Executable file suffix (normally "").
27111exeext=$exeext
27112
27113# whether the shell understands "unset".
27114lt_unset=$lt_unset
27115
27116# turn spaces into newlines.
27117SP2NL=$lt_lt_SP2NL
27118
27119# turn newlines into spaces.
27120NL2SP=$lt_lt_NL2SP
27121
0da7a284
PG
27122# An object symbol dumper.
27123OBJDUMP=$lt_OBJDUMP
27124
1cf3d07d
SE
27125# Method to check whether dependent libraries are shared objects.
27126deplibs_check_method=$lt_deplibs_check_method
27127
27128# Command to use when deplibs_check_method == "file_magic".
27129file_magic_cmd=$lt_file_magic_cmd
27130
27131# The archiver.
27132AR=$lt_AR
27133AR_FLAGS=$lt_AR_FLAGS
27134
27135# A symbol stripping program.
27136STRIP=$lt_STRIP
27137
27138# Commands used to install an old-style archive.
27139RANLIB=$lt_RANLIB
27140old_postinstall_cmds=$lt_old_postinstall_cmds
27141old_postuninstall_cmds=$lt_old_postuninstall_cmds
27142
43e02a8a
RW
27143# Whether to use a lock for old archive extraction.
27144lock_old_archive_extraction=$lock_old_archive_extraction
27145
1cf3d07d
SE
27146# A C compiler.
27147LTCC=$lt_CC
27148
27149# LTCC compiler flags.
27150LTCFLAGS=$lt_CFLAGS
27151
27152# Take the output of nm and produce a listing of raw symbols and C names.
27153global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27154
27155# Transform the output of nm in a proper C declaration.
27156global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27157
27158# Transform the output of nm in a C name address pair.
27159global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27160
0da7a284
PG
27161# Transform the output of nm in a C name address pair when lib prefix is needed.
27162global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27163
1cf3d07d
SE
27164# The name of the directory that contains temporary libtool files.
27165objdir=$objdir
27166
1cf3d07d
SE
27167# Used to examine libraries when file_magic_cmd begins with "file".
27168MAGIC_CMD=$MAGIC_CMD
27169
27170# Must we lock files when doing compilation?
27171need_locks=$lt_need_locks
27172
0da7a284
PG
27173# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27174DSYMUTIL=$lt_DSYMUTIL
27175
27176# Tool to change global to local symbols on Mac OS X.
27177NMEDIT=$lt_NMEDIT
27178
27179# Tool to manipulate fat objects and archives on Mac OS X.
27180LIPO=$lt_LIPO
27181
27182# ldd/readelf like tool for Mach-O binaries on Mac OS X.
27183OTOOL=$lt_OTOOL
27184
27185# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27186OTOOL64=$lt_OTOOL64
27187
1cf3d07d
SE
27188# Old archive suffix (normally "a").
27189libext=$libext
27190
27191# Shared library suffix (normally ".so").
27192shrext_cmds=$lt_shrext_cmds
27193
27194# The commands to extract the exported symbol list from a shared archive.
27195extract_expsyms_cmds=$lt_extract_expsyms_cmds
27196
27197# Variables whose values should be saved in libtool wrapper scripts and
27198# restored at link time.
27199variables_saved_for_relink=$lt_variables_saved_for_relink
27200
27201# Do we need the "lib" prefix for modules?
27202need_lib_prefix=$need_lib_prefix
27203
27204# Do we need a version for libraries?
27205need_version=$need_version
27206
27207# Library versioning type.
27208version_type=$version_type
27209
27210# Shared library runtime path variable.
27211runpath_var=$runpath_var
27212
27213# Shared library path variable.
27214shlibpath_var=$shlibpath_var
27215
27216# Is shlibpath searched before the hard-coded library search path?
27217shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27218
27219# Format of library name prefix.
27220libname_spec=$lt_libname_spec
27221
27222# List of archive names. First name is the real one, the rest are links.
27223# The last name is the one that the linker finds with -lNAME
27224library_names_spec=$lt_library_names_spec
27225
27226# The coded name of the library, if different from the real name.
27227soname_spec=$lt_soname_spec
27228
43e02a8a
RW
27229# Permission mode override for installation of shared libraries.
27230install_override_mode=$lt_install_override_mode
27231
1cf3d07d
SE
27232# Command to use after installation of a shared archive.
27233postinstall_cmds=$lt_postinstall_cmds
27234
27235# Command to use after uninstallation of a shared archive.
27236postuninstall_cmds=$lt_postuninstall_cmds
27237
27238# Commands used to finish a libtool library installation in a directory.
27239finish_cmds=$lt_finish_cmds
27240
27241# As "finish_cmds", except a single script fragment to be evaled but
27242# not shown.
27243finish_eval=$lt_finish_eval
27244
27245# Whether we should hardcode library paths into libraries.
27246hardcode_into_libs=$hardcode_into_libs
27247
27248# Compile-time system search path for libraries.
27249sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27250
27251# Run-time system search path for libraries.
27252sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27253
27254# Whether dlopen is supported.
27255dlopen_support=$enable_dlopen
27256
27257# Whether dlopen of programs is supported.
27258dlopen_self=$enable_dlopen_self
27259
27260# Whether dlopen of statically linked programs is supported.
27261dlopen_self_static=$enable_dlopen_self_static
27262
27263# Commands to strip libraries.
27264old_striplib=$lt_old_striplib
27265striplib=$lt_striplib
27266
27267
27268# The linker used to build libraries.
27269LD=$lt_LD
27270
43e02a8a
RW
27271# How to create reloadable object files.
27272reload_flag=$lt_reload_flag
27273reload_cmds=$lt_reload_cmds
27274
1cf3d07d
SE
27275# Commands used to build an old-style archive.
27276old_archive_cmds=$lt_old_archive_cmds
27277
27278# A language specific compiler.
27279CC=$lt_compiler
27280
27281# Is the compiler the GNU compiler?
27282with_gcc=$GCC
27283
27284# Compiler flag to turn off builtin functions.
27285no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27286
27287# How to pass a linker flag through the compiler.
27288wl=$lt_lt_prog_compiler_wl
27289
27290# Additional compiler flags for building library objects.
27291pic_flag=$lt_lt_prog_compiler_pic
27292
27293# Compiler flag to prevent dynamic linking.
27294link_static_flag=$lt_lt_prog_compiler_static
27295
27296# Does compiler simultaneously support -c and -o options?
27297compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27298
27299# Whether or not to add -lc for building shared libraries.
27300build_libtool_need_lc=$archive_cmds_need_lc
27301
27302# Whether or not to disallow shared libs when runtime libs are static.
27303allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27304
27305# Compiler flag to allow reflexive dlopens.
27306export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27307
27308# Compiler flag to generate shared objects directly from archives.
27309whole_archive_flag_spec=$lt_whole_archive_flag_spec
27310
27311# Whether the compiler copes with passing no objects directly.
27312compiler_needs_object=$lt_compiler_needs_object
27313
27314# Create an old-style archive from a shared archive.
27315old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27316
27317# Create a temporary old-style archive to link instead of a shared archive.
27318old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27319
27320# Commands used to build a shared archive.
27321archive_cmds=$lt_archive_cmds
27322archive_expsym_cmds=$lt_archive_expsym_cmds
27323
27324# Commands used to build a loadable module if different from building
27325# a shared archive.
27326module_cmds=$lt_module_cmds
27327module_expsym_cmds=$lt_module_expsym_cmds
27328
27329# Whether we are building with GNU ld or not.
27330with_gnu_ld=$lt_with_gnu_ld
27331
27332# Flag that allows shared libraries with undefined symbols to be built.
27333allow_undefined_flag=$lt_allow_undefined_flag
27334
27335# Flag that enforces no undefined symbols.
27336no_undefined_flag=$lt_no_undefined_flag
27337
27338# Flag to hardcode \$libdir into a binary during linking.
27339# This must work even if \$libdir does not exist
27340hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27341
27342# If ld is used when linking, flag to hardcode \$libdir into a binary
27343# during linking. This must work even if \$libdir does not exist.
27344hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27345
27346# Whether we need a single "-rpath" flag with a separated argument.
27347hardcode_libdir_separator=$lt_hardcode_libdir_separator
27348
27349# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27350# DIR into the resulting binary.
27351hardcode_direct=$hardcode_direct
27352
27353# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27354# DIR into the resulting binary and the resulting library dependency is
27355# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27356# library is relocated.
27357hardcode_direct_absolute=$hardcode_direct_absolute
27358
27359# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27360# into the resulting binary.
27361hardcode_minus_L=$hardcode_minus_L
27362
27363# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27364# into the resulting binary.
27365hardcode_shlibpath_var=$hardcode_shlibpath_var
27366
27367# Set to "yes" if building a shared library automatically hardcodes DIR
27368# into the library and all subsequent libraries and executables linked
27369# against it.
27370hardcode_automatic=$hardcode_automatic
27371
27372# Set to yes if linker adds runtime paths of dependent libraries
27373# to runtime path list.
27374inherit_rpath=$inherit_rpath
27375
27376# Whether libtool must link a program against all its dependency libraries.
27377link_all_deplibs=$link_all_deplibs
27378
27379# Fix the shell variable \$srcfile for the compiler.
27380fix_srcfile_path=$lt_fix_srcfile_path
27381
27382# Set to "yes" if exported symbols are required.
27383always_export_symbols=$always_export_symbols
27384
27385# The commands to list exported symbols.
27386export_symbols_cmds=$lt_export_symbols_cmds
27387
27388# Symbols that should not be listed in the preloaded symbols.
27389exclude_expsyms=$lt_exclude_expsyms
27390
27391# Symbols that must always be exported.
27392include_expsyms=$lt_include_expsyms
27393
27394# Commands necessary for linking programs (against libraries) with templates.
27395prelink_cmds=$lt_prelink_cmds
27396
27397# Specify filename containing input files.
27398file_list_spec=$lt_file_list_spec
27399
27400# How to hardcode a shared library path into an executable.
27401hardcode_action=$hardcode_action
27402
0da7a284
PG
27403# The directories searched by this compiler when creating a shared library.
27404compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27405
1cf3d07d
SE
27406# Dependencies to place before and after the objects being linked to
27407# create a shared library.
27408predep_objects=$lt_predep_objects
27409postdep_objects=$lt_postdep_objects
27410predeps=$lt_predeps
27411postdeps=$lt_postdeps
27412
27413# The library search path used internally by the compiler when linking
27414# a shared library.
27415compiler_lib_search_path=$lt_compiler_lib_search_path
27416
27417# ### END LIBTOOL CONFIG
27418
27419_LT_EOF
27420
27421 case $host_os in
27422 aix3*)
27423 cat <<\_LT_EOF >> "$cfgfile"
27424# AIX sometimes has problems with the GCC collect2 program. For some
27425# reason, if we set the COLLECT_NAMES environment variable, the problems
27426# vanish in a puff of smoke.
27427if test "X${COLLECT_NAMES+set}" != Xset; then
27428 COLLECT_NAMES=
27429 export COLLECT_NAMES
27430fi
27431_LT_EOF
27432 ;;
27433 esac
27434
27435
27436ltmain="$ac_aux_dir/ltmain.sh"
27437
27438
27439 # We use sed instead of cat because bash on DJGPP gets confused if
27440 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27441 # text mode, it properly converts lines to CR/LF. This bash problem
27442 # is reportedly fixed, but why not run on old versions too?
27443 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27444 || (rm -f "$cfgfile"; exit 1)
27445
27446 case $xsi_shell in
27447 yes)
27448 cat << \_LT_EOF >> "$cfgfile"
0da7a284 27449
1cf3d07d
SE
27450# func_dirname file append nondir_replacement
27451# Compute the dirname of FILE. If nonempty, add APPEND to the result,
27452# otherwise set result to NONDIR_REPLACEMENT.
27453func_dirname ()
27454{
27455 case ${1} in
27456 */*) func_dirname_result="${1%/*}${2}" ;;
27457 * ) func_dirname_result="${3}" ;;
27458 esac
27459}
27460
27461# func_basename file
27462func_basename ()
27463{
27464 func_basename_result="${1##*/}"
27465}
27466
0da7a284
PG
27467# func_dirname_and_basename file append nondir_replacement
27468# perform func_basename and func_dirname in a single function
27469# call:
27470# dirname: Compute the dirname of FILE. If nonempty,
27471# add APPEND to the result, otherwise set result
27472# to NONDIR_REPLACEMENT.
27473# value returned in "$func_dirname_result"
27474# basename: Compute filename of FILE.
27475# value retuned in "$func_basename_result"
27476# Implementation must be kept synchronized with func_dirname
27477# and func_basename. For efficiency, we do not delegate to
27478# those functions but instead duplicate the functionality here.
27479func_dirname_and_basename ()
27480{
27481 case ${1} in
27482 */*) func_dirname_result="${1%/*}${2}" ;;
27483 * ) func_dirname_result="${3}" ;;
27484 esac
27485 func_basename_result="${1##*/}"
27486}
27487
1cf3d07d
SE
27488# func_stripname prefix suffix name
27489# strip PREFIX and SUFFIX off of NAME.
27490# PREFIX and SUFFIX must not contain globbing or regex special
27491# characters, hashes, percent signs, but SUFFIX may contain a leading
27492# dot (in which case that matches only a dot).
27493func_stripname ()
27494{
27495 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27496 # positional parameters, so assign one to ordinary parameter first.
27497 func_stripname_result=${3}
27498 func_stripname_result=${func_stripname_result#"${1}"}
27499 func_stripname_result=${func_stripname_result%"${2}"}
27500}
27501
27502# func_opt_split
27503func_opt_split ()
27504{
27505 func_opt_split_opt=${1%%=*}
27506 func_opt_split_arg=${1#*=}
27507}
27508
27509# func_lo2o object
27510func_lo2o ()
27511{
27512 case ${1} in
27513 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27514 *) func_lo2o_result=${1} ;;
27515 esac
27516}
0da7a284
PG
27517
27518# func_xform libobj-or-source
27519func_xform ()
27520{
27521 func_xform_result=${1%.*}.lo
27522}
27523
27524# func_arith arithmetic-term...
27525func_arith ()
27526{
27527 func_arith_result=$(( $* ))
27528}
27529
27530# func_len string
27531# STRING may not start with a hyphen.
27532func_len ()
27533{
27534 func_len_result=${#1}
27535}
27536
1cf3d07d
SE
27537_LT_EOF
27538 ;;
27539 *) # Bourne compatible functions.
27540 cat << \_LT_EOF >> "$cfgfile"
0da7a284 27541
1cf3d07d
SE
27542# func_dirname file append nondir_replacement
27543# Compute the dirname of FILE. If nonempty, add APPEND to the result,
27544# otherwise set result to NONDIR_REPLACEMENT.
27545func_dirname ()
27546{
27547 # Extract subdirectory from the argument.
43e02a8a 27548 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
1cf3d07d
SE
27549 if test "X$func_dirname_result" = "X${1}"; then
27550 func_dirname_result="${3}"
27551 else
27552 func_dirname_result="$func_dirname_result${2}"
27553 fi
27554}
27555
27556# func_basename file
27557func_basename ()
27558{
43e02a8a 27559 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
1cf3d07d
SE
27560}
27561
0da7a284 27562
1cf3d07d
SE
27563# func_stripname prefix suffix name
27564# strip PREFIX and SUFFIX off of NAME.
27565# PREFIX and SUFFIX must not contain globbing or regex special
27566# characters, hashes, percent signs, but SUFFIX may contain a leading
27567# dot (in which case that matches only a dot).
27568# func_strip_suffix prefix name
27569func_stripname ()
27570{
27571 case ${2} in
43e02a8a
RW
27572 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
27573 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
1cf3d07d
SE
27574 esac
27575}
27576
27577# sed scripts:
27578my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27579my_sed_long_arg='1s/^-[^=]*=//'
ed698112 27580
1cf3d07d
SE
27581# func_opt_split
27582func_opt_split ()
27583{
43e02a8a
RW
27584 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
27585 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
1cf3d07d 27586}
ee9dd372 27587
1cf3d07d
SE
27588# func_lo2o object
27589func_lo2o ()
27590{
43e02a8a 27591 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
1cf3d07d 27592}
0da7a284
PG
27593
27594# func_xform libobj-or-source
27595func_xform ()
27596{
43e02a8a 27597 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
0da7a284
PG
27598}
27599
27600# func_arith arithmetic-term...
27601func_arith ()
27602{
27603 func_arith_result=`expr "$@"`
27604}
27605
27606# func_len string
27607# STRING may not start with a hyphen.
27608func_len ()
27609{
27610 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27611}
27612
1cf3d07d 27613_LT_EOF
ed698112 27614esac
ee9dd372 27615
1cf3d07d
SE
27616case $lt_shell_append in
27617 yes)
27618 cat << \_LT_EOF >> "$cfgfile"
ee9dd372 27619
1cf3d07d
SE
27620# func_append var value
27621# Append VALUE to the end of shell variable VAR.
27622func_append ()
27623{
27624 eval "$1+=\$2"
27625}
27626_LT_EOF
27627 ;;
27628 *)
27629 cat << \_LT_EOF >> "$cfgfile"
ed698112 27630
1cf3d07d
SE
27631# func_append var value
27632# Append VALUE to the end of shell variable VAR.
27633func_append ()
27634{
27635 eval "$1=\$$1\$2"
27636}
0da7a284 27637
1cf3d07d
SE
27638_LT_EOF
27639 ;;
ee9dd372
TT
27640 esac
27641
ade710a5 27642
1cf3d07d
SE
27643 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27644 || (rm -f "$cfgfile"; exit 1)
ade710a5 27645
1cf3d07d
SE
27646 mv -f "$cfgfile" "$ofile" ||
27647 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27648 chmod +x "$ofile"
ade710a5 27649
ade710a5 27650
1cf3d07d 27651 cat <<_LT_EOF >> "$ofile"
ade710a5 27652
1cf3d07d 27653# ### BEGIN LIBTOOL TAG CONFIG: CXX
ade710a5 27654
1cf3d07d
SE
27655# The linker used to build libraries.
27656LD=$lt_LD_CXX
ade710a5 27657
43e02a8a
RW
27658# How to create reloadable object files.
27659reload_flag=$lt_reload_flag_CXX
27660reload_cmds=$lt_reload_cmds_CXX
27661
1cf3d07d
SE
27662# Commands used to build an old-style archive.
27663old_archive_cmds=$lt_old_archive_cmds_CXX
27664
27665# A language specific compiler.
27666CC=$lt_compiler_CXX
27667
27668# Is the compiler the GNU compiler?
27669with_gcc=$GCC_CXX
27670
27671# Compiler flag to turn off builtin functions.
27672no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27673
27674# How to pass a linker flag through the compiler.
27675wl=$lt_lt_prog_compiler_wl_CXX
27676
27677# Additional compiler flags for building library objects.
27678pic_flag=$lt_lt_prog_compiler_pic_CXX
27679
27680# Compiler flag to prevent dynamic linking.
27681link_static_flag=$lt_lt_prog_compiler_static_CXX
27682
27683# Does compiler simultaneously support -c and -o options?
27684compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27685
27686# Whether or not to add -lc for building shared libraries.
27687build_libtool_need_lc=$archive_cmds_need_lc_CXX
27688
27689# Whether or not to disallow shared libs when runtime libs are static.
27690allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27691
27692# Compiler flag to allow reflexive dlopens.
27693export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27694
27695# Compiler flag to generate shared objects directly from archives.
27696whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27697
27698# Whether the compiler copes with passing no objects directly.
27699compiler_needs_object=$lt_compiler_needs_object_CXX
27700
27701# Create an old-style archive from a shared archive.
27702old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27703
27704# Create a temporary old-style archive to link instead of a shared archive.
27705old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27706
27707# Commands used to build a shared archive.
27708archive_cmds=$lt_archive_cmds_CXX
27709archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27710
27711# Commands used to build a loadable module if different from building
27712# a shared archive.
27713module_cmds=$lt_module_cmds_CXX
27714module_expsym_cmds=$lt_module_expsym_cmds_CXX
27715
27716# Whether we are building with GNU ld or not.
27717with_gnu_ld=$lt_with_gnu_ld_CXX
27718
27719# Flag that allows shared libraries with undefined symbols to be built.
27720allow_undefined_flag=$lt_allow_undefined_flag_CXX
27721
27722# Flag that enforces no undefined symbols.
27723no_undefined_flag=$lt_no_undefined_flag_CXX
27724
27725# Flag to hardcode \$libdir into a binary during linking.
27726# This must work even if \$libdir does not exist
27727hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27728
27729# If ld is used when linking, flag to hardcode \$libdir into a binary
27730# during linking. This must work even if \$libdir does not exist.
27731hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27732
27733# Whether we need a single "-rpath" flag with a separated argument.
27734hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27735
27736# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27737# DIR into the resulting binary.
27738hardcode_direct=$hardcode_direct_CXX
27739
27740# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27741# DIR into the resulting binary and the resulting library dependency is
27742# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27743# library is relocated.
27744hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27745
27746# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27747# into the resulting binary.
27748hardcode_minus_L=$hardcode_minus_L_CXX
27749
27750# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27751# into the resulting binary.
27752hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27753
27754# Set to "yes" if building a shared library automatically hardcodes DIR
27755# into the library and all subsequent libraries and executables linked
27756# against it.
27757hardcode_automatic=$hardcode_automatic_CXX
27758
27759# Set to yes if linker adds runtime paths of dependent libraries
27760# to runtime path list.
27761inherit_rpath=$inherit_rpath_CXX
27762
27763# Whether libtool must link a program against all its dependency libraries.
27764link_all_deplibs=$link_all_deplibs_CXX
27765
27766# Fix the shell variable \$srcfile for the compiler.
27767fix_srcfile_path=$lt_fix_srcfile_path_CXX
27768
27769# Set to "yes" if exported symbols are required.
27770always_export_symbols=$always_export_symbols_CXX
27771
27772# The commands to list exported symbols.
27773export_symbols_cmds=$lt_export_symbols_cmds_CXX
27774
27775# Symbols that should not be listed in the preloaded symbols.
27776exclude_expsyms=$lt_exclude_expsyms_CXX
27777
27778# Symbols that must always be exported.
27779include_expsyms=$lt_include_expsyms_CXX
27780
27781# Commands necessary for linking programs (against libraries) with templates.
27782prelink_cmds=$lt_prelink_cmds_CXX
27783
27784# Specify filename containing input files.
27785file_list_spec=$lt_file_list_spec_CXX
27786
27787# How to hardcode a shared library path into an executable.
27788hardcode_action=$hardcode_action_CXX
27789
0da7a284
PG
27790# The directories searched by this compiler when creating a shared library.
27791compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27792
1cf3d07d
SE
27793# Dependencies to place before and after the objects being linked to
27794# create a shared library.
27795predep_objects=$lt_predep_objects_CXX
27796postdep_objects=$lt_postdep_objects_CXX
27797predeps=$lt_predeps_CXX
27798postdeps=$lt_postdeps_CXX
27799
27800# The library search path used internally by the compiler when linking
27801# a shared library.
27802compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27803
27804# ### END LIBTOOL TAG CONFIG: CXX
27805_LT_EOF
27806
27807
27808 cat <<_LT_EOF >> "$ofile"
27809
27810# ### BEGIN LIBTOOL TAG CONFIG: GCJ
27811
27812# The linker used to build libraries.
27813LD=$lt_LD_GCJ
ade710a5 27814
43e02a8a
RW
27815# How to create reloadable object files.
27816reload_flag=$lt_reload_flag_GCJ
27817reload_cmds=$lt_reload_cmds_GCJ
27818
1cf3d07d
SE
27819# Commands used to build an old-style archive.
27820old_archive_cmds=$lt_old_archive_cmds_GCJ
ade710a5 27821
1cf3d07d
SE
27822# A language specific compiler.
27823CC=$lt_compiler_GCJ
ade710a5 27824
1cf3d07d
SE
27825# Is the compiler the GNU compiler?
27826with_gcc=$GCC_GCJ
ade710a5 27827
1cf3d07d
SE
27828# Compiler flag to turn off builtin functions.
27829no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
ade710a5 27830
1cf3d07d
SE
27831# How to pass a linker flag through the compiler.
27832wl=$lt_lt_prog_compiler_wl_GCJ
ed698112 27833
1cf3d07d
SE
27834# Additional compiler flags for building library objects.
27835pic_flag=$lt_lt_prog_compiler_pic_GCJ
ade710a5 27836
1cf3d07d
SE
27837# Compiler flag to prevent dynamic linking.
27838link_static_flag=$lt_lt_prog_compiler_static_GCJ
ade710a5 27839
1cf3d07d
SE
27840# Does compiler simultaneously support -c and -o options?
27841compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
ee9dd372 27842
1cf3d07d
SE
27843# Whether or not to add -lc for building shared libraries.
27844build_libtool_need_lc=$archive_cmds_need_lc_GCJ
ade710a5 27845
1cf3d07d
SE
27846# Whether or not to disallow shared libs when runtime libs are static.
27847allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
ee9dd372 27848
1cf3d07d
SE
27849# Compiler flag to allow reflexive dlopens.
27850export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
ade710a5 27851
1cf3d07d
SE
27852# Compiler flag to generate shared objects directly from archives.
27853whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
ade710a5 27854
1cf3d07d
SE
27855# Whether the compiler copes with passing no objects directly.
27856compiler_needs_object=$lt_compiler_needs_object_GCJ
ade710a5 27857
1cf3d07d
SE
27858# Create an old-style archive from a shared archive.
27859old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
ade710a5 27860
1cf3d07d
SE
27861# Create a temporary old-style archive to link instead of a shared archive.
27862old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
27863
27864# Commands used to build a shared archive.
27865archive_cmds=$lt_archive_cmds_GCJ
27866archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
27867
27868# Commands used to build a loadable module if different from building
27869# a shared archive.
27870module_cmds=$lt_module_cmds_GCJ
27871module_expsym_cmds=$lt_module_expsym_cmds_GCJ
27872
27873# Whether we are building with GNU ld or not.
27874with_gnu_ld=$lt_with_gnu_ld_GCJ
27875
27876# Flag that allows shared libraries with undefined symbols to be built.
27877allow_undefined_flag=$lt_allow_undefined_flag_GCJ
27878
27879# Flag that enforces no undefined symbols.
27880no_undefined_flag=$lt_no_undefined_flag_GCJ
27881
27882# Flag to hardcode \$libdir into a binary during linking.
27883# This must work even if \$libdir does not exist
27884hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
27885
27886# If ld is used when linking, flag to hardcode \$libdir into a binary
27887# during linking. This must work even if \$libdir does not exist.
27888hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
27889
27890# Whether we need a single "-rpath" flag with a separated argument.
27891hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
ade710a5 27892
1cf3d07d
SE
27893# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27894# DIR into the resulting binary.
27895hardcode_direct=$hardcode_direct_GCJ
ade710a5 27896
1cf3d07d
SE
27897# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27898# DIR into the resulting binary and the resulting library dependency is
27899# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27900# library is relocated.
27901hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
ed698112 27902
1cf3d07d
SE
27903# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27904# into the resulting binary.
27905hardcode_minus_L=$hardcode_minus_L_GCJ
ade710a5 27906
1cf3d07d
SE
27907# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27908# into the resulting binary.
27909hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
ade710a5 27910
1cf3d07d
SE
27911# Set to "yes" if building a shared library automatically hardcodes DIR
27912# into the library and all subsequent libraries and executables linked
27913# against it.
27914hardcode_automatic=$hardcode_automatic_GCJ
ade710a5 27915
1cf3d07d
SE
27916# Set to yes if linker adds runtime paths of dependent libraries
27917# to runtime path list.
27918inherit_rpath=$inherit_rpath_GCJ
ed698112 27919
1cf3d07d
SE
27920# Whether libtool must link a program against all its dependency libraries.
27921link_all_deplibs=$link_all_deplibs_GCJ
ed698112 27922
1cf3d07d
SE
27923# Fix the shell variable \$srcfile for the compiler.
27924fix_srcfile_path=$lt_fix_srcfile_path_GCJ
ade710a5 27925
1cf3d07d
SE
27926# Set to "yes" if exported symbols are required.
27927always_export_symbols=$always_export_symbols_GCJ
ade710a5 27928
1cf3d07d
SE
27929# The commands to list exported symbols.
27930export_symbols_cmds=$lt_export_symbols_cmds_GCJ
ade710a5 27931
1cf3d07d
SE
27932# Symbols that should not be listed in the preloaded symbols.
27933exclude_expsyms=$lt_exclude_expsyms_GCJ
27934
27935# Symbols that must always be exported.
27936include_expsyms=$lt_include_expsyms_GCJ
27937
27938# Commands necessary for linking programs (against libraries) with templates.
27939prelink_cmds=$lt_prelink_cmds_GCJ
27940
27941# Specify filename containing input files.
27942file_list_spec=$lt_file_list_spec_GCJ
27943
27944# How to hardcode a shared library path into an executable.
27945hardcode_action=$hardcode_action_GCJ
27946
0da7a284
PG
27947# The directories searched by this compiler when creating a shared library.
27948compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
27949
1cf3d07d
SE
27950# Dependencies to place before and after the objects being linked to
27951# create a shared library.
27952predep_objects=$lt_predep_objects_GCJ
27953postdep_objects=$lt_postdep_objects_GCJ
27954predeps=$lt_predeps_GCJ
27955postdeps=$lt_postdeps_GCJ
27956
27957# The library search path used internally by the compiler when linking
27958# a shared library.
27959compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
27960
27961# ### END LIBTOOL TAG CONFIG: GCJ
27962_LT_EOF
ade710a5 27963
ed698112 27964 ;;
5213506e
RW
27965 "scripts/jar":F) chmod +x scripts/jar ;;
27966
ed698112 27967 esac
5213506e 27968done # for ac_tag
480222b5 27969
ed698112 27970
5213506e 27971as_fn_exit 0
ed698112 27972_ACEOF
ed698112
NN
27973ac_clean_files=$ac_clean_files_save
27974
5213506e
RW
27975test $ac_write_fail = 0 ||
27976 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27977
ed698112
NN
27978
27979# configure is writing to config.log, and then calls config.status.
27980# config.status does its own redirection, appending to config.log.
27981# Unfortunately, on DOS this fails, as config.log is still kept open
27982# by configure, so config.status won't be able to write to it; its
27983# output is simply discarded. So we exec the FD to /dev/null,
27984# effectively closing config.log, so it can be properly (re)opened and
27985# appended to by config.status. When coming back to configure, we
27986# need to make the FD available again.
27987if test "$no_create" != yes; then
27988 ac_cs_success=:
27989 ac_config_status_args=
27990 test "$silent" = yes &&
27991 ac_config_status_args="$ac_config_status_args --quiet"
27992 exec 5>/dev/null
27993 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27994 exec 5>>config.log
27995 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27996 # would make configure fail if this is the last instruction.
5213506e 27997 $ac_cs_success || as_fn_exit $?
ed698112 27998fi
ee9dd372 27999
ed698112 28000#
5213506e 28001# CONFIG_SUBDIRS section.
ed698112 28002#
7af85558
TT
28003if test "$no_recursion" != yes; then
28004
5213506e
RW
28005 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
28006 # so they do not pile up.
7af85558
TT
28007 ac_sub_configure_args=
28008 ac_prev=
7fd1de41
L
28009 eval "set x $ac_configure_args"
28010 shift
28011 for ac_arg
28012 do
7af85558
TT
28013 if test -n "$ac_prev"; then
28014 ac_prev=
28015 continue
28016 fi
ed698112 28017 case $ac_arg in
7af85558
TT
28018 -cache-file | --cache-file | --cache-fil | --cache-fi \
28019 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
28020 ac_prev=cache_file ;;
28021 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
ed698112
NN
28022 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
28023 | --c=*)
28024 ;;
28025 --config-cache | -C)
7af85558
TT
28026 ;;
28027 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
28028 ac_prev=srcdir ;;
28029 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
28030 ;;
ed698112
NN
28031 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28032 ac_prev=prefix ;;
28033 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28034 ;;
5213506e
RW
28035 --disable-option-checking)
28036 ;;
7fd1de41
L
28037 *)
28038 case $ac_arg in
5213506e 28039 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7fd1de41 28040 esac
5213506e 28041 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
7af85558
TT
28042 esac
28043 done
28044
ed698112
NN
28045 # Always prepend --prefix to ensure using the same prefix
28046 # in subdir configurations.
7fd1de41
L
28047 ac_arg="--prefix=$prefix"
28048 case $ac_arg in
5213506e 28049 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7fd1de41 28050 esac
5213506e
RW
28051 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
28052
28053 # Pass --silent
28054 if test "$silent" = yes; then
28055 ac_sub_configure_args="--silent $ac_sub_configure_args"
28056 fi
28057
28058 # Always prepend --disable-option-checking to silence warnings, since
28059 # different subdirs can have different --enable and --with options.
28060 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
ed698112 28061
ade710a5 28062 ac_popdir=`pwd`
ed698112 28063 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
7af85558
TT
28064
28065 # Do not complain, so a configure script can configure whichever
28066 # parts of a large source tree are present.
7fd1de41 28067 test -d "$srcdir/$ac_dir" || continue
7af85558 28068
5213506e
RW
28069 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
28070 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
28071 $as_echo "$ac_msg" >&6
28072 as_dir="$ac_dir"; as_fn_mkdir_p
ed698112
NN
28073 ac_builddir=.
28074
5213506e
RW
28075case "$ac_dir" in
28076.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28077*)
28078 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28079 # A ".." for each directory in $ac_dir_suffix.
28080 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28081 case $ac_top_builddir_sub in
28082 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28083 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28084 esac ;;
28085esac
28086ac_abs_top_builddir=$ac_pwd
28087ac_abs_builddir=$ac_pwd$ac_dir_suffix
28088# for backward compatibility:
28089ac_top_builddir=$ac_top_build_prefix
ed698112
NN
28090
28091case $srcdir in
5213506e 28092 .) # We are building in place.
ed698112 28093 ac_srcdir=.
5213506e
RW
28094 ac_top_srcdir=$ac_top_builddir_sub
28095 ac_abs_top_srcdir=$ac_pwd ;;
28096 [\\/]* | ?:[\\/]* ) # Absolute name.
ed698112 28097 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
28098 ac_top_srcdir=$srcdir
28099 ac_abs_top_srcdir=$srcdir ;;
28100 *) # Relative name.
28101 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28102 ac_top_srcdir=$ac_top_build_prefix$srcdir
28103 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ed698112 28104esac
5213506e 28105ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7af85558 28106
7af85558 28107
7fd1de41 28108 cd "$ac_dir"
7af85558
TT
28109
28110 # Check for guested configure; otherwise get Cygnus style configure.
7fd1de41
L
28111 if test -f "$ac_srcdir/configure.gnu"; then
28112 ac_sub_configure=$ac_srcdir/configure.gnu
28113 elif test -f "$ac_srcdir/configure"; then
28114 ac_sub_configure=$ac_srcdir/configure
28115 elif test -f "$ac_srcdir/configure.in"; then
28116 # This should be Cygnus configure.
28117 ac_sub_configure=$ac_aux_dir/configure
7af85558 28118 else
5213506e
RW
28119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
28120$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
7af85558
TT
28121 ac_sub_configure=
28122 fi
28123
28124 # The recursion is here.
28125 if test -n "$ac_sub_configure"; then
7af85558 28126 # Make the cache file name correct relative to the subdirectory.
ed698112
NN
28127 case $cache_file in
28128 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
5213506e
RW
28129 *) # Relative name.
28130 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
7af85558 28131 esac
7af85558 28132
5213506e
RW
28133 { $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
28134$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
7af85558 28135 # The eval makes quoting arguments work.
7fd1de41
L
28136 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
28137 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
5213506e 28138 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
7af85558
TT
28139 fi
28140
7fd1de41 28141 cd "$ac_popdir"
7af85558
TT
28142 done
28143fi
5213506e
RW
28144if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28146$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28147fi
7af85558 28148