]> git.ipfire.org Git - thirdparty/gcc.git/blame - libjava/configure
Remove obsolete IRIX 6.5 support
[thirdparty/gcc.git] / libjava / configure
CommitLineData
2c60951b 1#! /bin/sh
2c60951b 2# Guess values for system-dependent variables and create Makefiles.
cd9a469c 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.
2c60951b 8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
cd9a469c 11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
4618c7f0 14
cd9a469c 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 :
4618c7f0 18 emulate sh
19 NULLCMD=:
cd9a469c 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4618c7f0 21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
cd9a469c 23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
4618c7f0 31fi
4618c7f0 32
cd9a469c 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 }
4618c7f0 79fi
80
81
cd9a469c 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
4618c7f0 121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
cd9a469c 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
e6408286 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
cd9a469c 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
4618c7f0 192do
cd9a469c 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."
4618c7f0 236 else
cd9a469c 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."
4618c7f0 241 fi
cd9a469c 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
4618c7f0 380
cd9a469c 381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4618c7f0 383 as_expr=expr
384else
385 as_expr=false
386fi
387
cd9a469c 388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4618c7f0 389 as_basename=basename
390else
391 as_basename=false
392fi
393
cd9a469c 394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396else
397 as_dirname=false
398fi
4618c7f0 399
cd9a469c 400as_me=`$as_basename -- "$0" ||
4618c7f0 401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
cd9a469c 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'`
4618c7f0 418
30f7243e 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
4618c7f0 425
4618c7f0 426
cd9a469c 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 |
4618c7f0 436 sed '
cd9a469c 437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
4618c7f0 441 N
cd9a469c 442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4618c7f0 444 t loop
cd9a469c 445 s/-\n.*//
4618c7f0 446 ' >$as_me.lineno &&
cd9a469c 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; }
4618c7f0 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
cd9a469c 452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
4618c7f0 454 # Exit status is that of the last command.
455 exit
456}
457
cd9a469c 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';;
4618c7f0 469esac
470
cd9a469c 471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
4618c7f0 474else
cd9a469c 475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
4618c7f0 477fi
cd9a469c 478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
30f7243e 480 as_ln_s='ln -s'
cd9a469c 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'
30f7243e 491 fi
4618c7f0 492else
493 as_ln_s='cp -p'
494fi
cd9a469c 495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
4618c7f0 497
498if mkdir -p . 2>/dev/null; then
cd9a469c 499 as_mkdir_p='mkdir -p "$as_dir"'
4618c7f0 500else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503fi
504
cd9a469c 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
4618c7f0 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
542f9784 534SHELL=${CONFIG_SHELL-/bin/sh}
535
542f9784 536
cd9a469c 537exec 7<&0 </dev/null 6>&1
538
4618c7f0 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`
2c60951b 543
4618c7f0 544#
545# Initializations.
546#
2c60951b 547ac_default_prefix=/usr/local
cd9a469c 548ac_clean_files=
4618c7f0 549ac_config_libobj_dir=.
cd9a469c 550LIBOBJS=
4618c7f0 551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
30f7243e 555
4618c7f0 556# Identity of this package.
e6312df0 557PACKAGE_NAME='libjava'
558PACKAGE_TARNAME='libjava'
559PACKAGE_VERSION='version-unused'
560PACKAGE_STRING='libjava version-unused'
561PACKAGE_BUGREPORT=''
cd9a469c 562PACKAGE_URL=''
4618c7f0 563
564ac_unique_file="java/lang/System.java"
4618c7f0 565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
cd9a469c 568#ifdef HAVE_SYS_TYPES_H
4618c7f0 569# include <sys/types.h>
570#endif
cd9a469c 571#ifdef HAVE_SYS_STAT_H
4618c7f0 572# include <sys/stat.h>
573#endif
cd9a469c 574#ifdef STDC_HEADERS
4618c7f0 575# include <stdlib.h>
576# include <stddef.h>
577#else
cd9a469c 578# ifdef HAVE_STDLIB_H
4618c7f0 579# include <stdlib.h>
580# endif
581#endif
cd9a469c 582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
4618c7f0 584# include <memory.h>
585# endif
586# include <string.h>
587#endif
cd9a469c 588#ifdef HAVE_STRINGS_H
4618c7f0 589# include <strings.h>
590#endif
cd9a469c 591#ifdef HAVE_INTTYPES_H
4618c7f0 592# include <inttypes.h>
4618c7f0 593#endif
cd9a469c 594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
4618c7f0 598# include <unistd.h>
599#endif"
600
cd9a469c 601enable_option_checking=no
602ac_subst_vars='am__EXEEXT_FALSE
603am__EXEEXT_TRUE
604LTLIBOBJS
605LIBOBJS
606LIBDIR
607OS
608CPU
609GCJ_BIN_DIR
610JRE_LIB_DIR
611JRE_BIN_DIR
612SDK_INCLUDE_DIR
613SDK_LIB_DIR
614SDK_BIN_DIR
615SDK_LNK
616JRE_LNK
617JRE_DIR
618JVM_JAR_DIR
619JVM_JAR_ROOT_DIR
620JVM_ROOT_DIR
621BUILD_VERSION
622JAVA_VERSION
623gcc_suffix
624CREATE_JAVA_HOME_FALSE
625CREATE_JAVA_HOME_TRUE
626INSTALL_AOT_RPM_FALSE
627INSTALL_AOT_RPM_TRUE
628MAKE
629python_mod_dir_expanded
630python_mod_dir
631here
632LD_FINISH_STATIC_SPEC
633LD_START_STATIC_SPEC
f8725d56 634ANONVERSCRIPT_SUN_FALSE
635ANONVERSCRIPT_SUN_TRUE
636ANONVERSCRIPT_GNU_FALSE
637ANONVERSCRIPT_GNU_TRUE
cd9a469c 638ANONVERSCRIPT_FALSE
639ANONVERSCRIPT_TRUE
640SYSDEP_SOURCES
641PERL
642libstdcxx_incdir
643gxx_include_dir
644gcjsubdir
645dbexecdir
646GCJVERSION
647toolexeclibdir
648toolexecmainlibdir
649toolexecdir
e59be7e3 650LIBGCC_UNWIND_INCLUDE
cd9a469c 651INSTALL_BINARIES_FALSE
652INSTALL_BINARIES_TRUE
653NEEDS_DATA_START_FALSE
654NEEDS_DATA_START_TRUE
655ENABLE_SHARED_FALSE
656ENABLE_SHARED_TRUE
657NATIVE_FALSE
658NATIVE_TRUE
659ATOMICSPEC
660IEEESPEC
661BACKTRACESPEC
662EXCEPTIONSPEC
663CHECKREFSPEC
664DIVIDESPEC
665ZINCS
666SYS_ZLIBS
667ZLIBS
668CLASSPATH_SEPARATOR
669LIBART_LIBS
670LIBART_CFLAGS
671GLIB_LIBS
672GLIB_CFLAGS
673GTK_LIBS
674GTK_CFLAGS
675PKG_CONFIG
a8dc4a29 676LDLIBICONV
cd9a469c 677LTLIBICONV
678LIBICONV
679USING_GCC_FALSE
680USING_GCC_TRUE
681HASH_SYNC_SPEC
682LIBGCJ_BC_SPEC
683LIBGCJ_SPEC
684USE_LIBGCJ_BC_FALSE
685USE_LIBGCJ_BC_TRUE
686USING_NO_THREADS_FALSE
687USING_NO_THREADS_TRUE
688USING_WIN32_THREADS_FALSE
689USING_WIN32_THREADS_TRUE
690USING_POSIX_THREADS_FALSE
691USING_POSIX_THREADS_TRUE
692THREADCXXFLAGS
693THREADLDFLAGS
694THREADSTARTFILESPEC
695THREADSPEC
696THREADDEPS
697THREADINCS
698THREADLIBS
699USING_NOGC_FALSE
700USING_NOGC_TRUE
701USING_BOEHMGC_FALSE
702USING_BOEHMGC_TRUE
703GCTESTSPEC
704JC1GCSPEC
705GCSPEC
706GCDEPS
707GCINCS
708GCLIBS
709LIBGCJTESTSPEC
ea19b664 710LIBMATHSPEC
cd9a469c 711LIBSTDCXXSPEC
712extra_ldflags
cd9a469c 713extra_ldflags_libjava
714X_EXTRA_LIBS
715X_LIBS
716X_PRE_LIBS
717X_CFLAGS
718XMKMF
719ZLIBTESTSPEC
720ZLIBSPEC
721SYSTEMSPEC
722USING_DARWIN_CRT_FALSE
723USING_DARWIN_CRT_TRUE
724USING_POSIX_PLATFORM_FALSE
725USING_POSIX_PLATFORM_TRUE
726USING_WIN32_PLATFORM_FALSE
727USING_WIN32_PLATFORM_TRUE
728PLATFORM
729LIBFFIINCS
730LIBFFI
731INTERPRETER_FALSE
732INTERPRETER_TRUE
733INTERPRETER
734BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE
735BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE
736SUPPRESS_LIBGCJ_BC_FALSE
737SUPPRESS_LIBGCJ_BC_TRUE
738JAVA_HOME
739JAVA_HOME_SET_FALSE
740JAVA_HOME_SET_TRUE
741INSTALL_ECJ_JAR_FALSE
742INSTALL_ECJ_JAR_TRUE
743BUILD_ECJ1_FALSE
744BUILD_ECJ1_TRUE
745ECJ_JAR
746ECJ_BUILD_JAR
747TESTSUBDIR_FALSE
748TESTSUBDIR_TRUE
749subdirs
750am__fastdepGCJ_FALSE
751am__fastdepGCJ_TRUE
752GCJDEPMODE
753GCJFLAGS
e0934084 754ac_ct_GCJ
cd9a469c 755GCJ
8c35d268 756lt_host_flags
cd9a469c 757CXXCPP
758CPP
759OTOOL64
760OTOOL
761LIPO
762NMEDIT
763DSYMUTIL
cd9a469c 764OBJDUMP
765NM
766ac_ct_DUMPBIN
767DUMPBIN
768FGREP
769EGREP
770GREP
771SED
772LIBTOOL
773DIRLTDL
774LIBLTDL
775INCLTDL
776host_exeext
777GCJH
cda5fe86 778GCC_FOR_ECJX
cd9a469c 779GCJ_FOR_ECJX
780X_AWT_FALSE
781X_AWT_TRUE
782XLIB_AWT_FALSE
783XLIB_AWT_TRUE
784TOOLKIT
785LIBGCJDEBUG
fa280a58 786BUILD_SUBLIBS_FALSE
787BUILD_SUBLIBS_TRUE
ed023f07 788LIBGCJ_LD_EXPORT_ALL
cd9a469c 789LIBGCJ_LD_SYMBOLIC_FUNCTIONS
790LIBGCJ_LD_SYMBOLIC
75250207 791LIBGCJ_SUBLIB_CORE_EXTRA_DEPS
4b69d5f2 792LIBGCJ_SUBLIB_LTFLAGS
cd9a469c 793LIBGCJ_JAVAFLAGS
794LIBGCJ_CXXFLAGS
795LIBGCJ_CFLAGS
796MAINT
797MAINTAINER_MODE_FALSE
798MAINTAINER_MODE_TRUE
799UNZIP
800ZIP
801JAR
75250207 802DLLTOOL
cd9a469c 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'
4618c7f0 915ac_subst_files=''
cd9a469c 916ac_user_opts='
917enable_option_checking
918with_build_libsubdir
919with_target_subdir
920enable_multilib
921with_cross_host
922with_newlib
923enable_version_specific_runtime_libs
d5c44166 924enable_browser_plugin
cd9a469c 925enable_gconf_peer
926with_antlr_jar
927enable_gjdoc
928enable_java_maintainer_mode
929enable_dependency_tracking
930enable_maintainer_mode
fa280a58 931enable_libgcj_sublibs
cd9a469c 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
bbb514dc 962enable_symvers
cd9a469c 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
94adcb45 977CC
978CFLAGS
979LDFLAGS
980LIBS
cd9a469c 981CPPFLAGS
94adcb45 982CXX
983CXXFLAGS
984CCC
985CPP
cd9a469c 986CXXCPP
987XMKMF'
988ac_subdirs_all='classpath libltdl'
2c60951b 989
990# Initialize some variables set by options.
4618c7f0 991ac_init_help=
992ac_init_version=false
cd9a469c 993ac_unrecognized_opts=
994ac_unrecognized_sep=
2c60951b 995# The variables have the same names as the options, with
996# dashes changed to underlines.
4618c7f0 997cache_file=/dev/null
2c60951b 998exec_prefix=NONE
2c60951b 999no_create=
2c60951b 1000no_recursion=
1001prefix=NONE
1002program_prefix=NONE
1003program_suffix=NONE
1004program_transform_name=s,x,x,
1005silent=
1006site=
1007srcdir=
2c60951b 1008verbose=
1009x_includes=NONE
1010x_libraries=NONE
4618c7f0 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.
cd9a469c 1017# (The list follows the same order as the GNU Coding Standards.)
2c60951b 1018bindir='${exec_prefix}/bin'
1019sbindir='${exec_prefix}/sbin'
1020libexecdir='${exec_prefix}/libexec'
cd9a469c 1021datarootdir='${prefix}/share'
1022datadir='${datarootdir}'
2c60951b 1023sysconfdir='${prefix}/etc'
1024sharedstatedir='${prefix}/com'
1025localstatedir='${prefix}/var'
2c60951b 1026includedir='${prefix}/include'
1027oldincludedir='/usr/include'
cd9a469c 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'
2c60951b 1037
2c60951b 1038ac_prev=
cd9a469c 1039ac_dashdash=
2c60951b 1040for ac_option
1041do
2c60951b 1042 # If the previous option needs an argument, assign it.
1043 if test -n "$ac_prev"; then
cd9a469c 1044 eval $ac_prev=\$ac_option
2c60951b 1045 ac_prev=
1046 continue
1047 fi
1048
cd9a469c 1049 case $ac_option in
1050 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1051 *) ac_optarg=yes ;;
1052 esac
2c60951b 1053
1054 # Accept the important Cygnus configure options, so we can diagnose typos.
1055
cd9a469c 1056 case $ac_dashdash$ac_option in
1057 --)
1058 ac_dashdash=yes ;;
2c60951b 1059
1060 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1061 ac_prev=bindir ;;
1062 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
4618c7f0 1063 bindir=$ac_optarg ;;
2c60951b 1064
1065 -build | --build | --buil | --bui | --bu)
4618c7f0 1066 ac_prev=build_alias ;;
2c60951b 1067 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
4618c7f0 1068 build_alias=$ac_optarg ;;
2c60951b 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=*)
4618c7f0 1075 cache_file=$ac_optarg ;;
1076
1077 --config-cache | -C)
1078 cache_file=config.cache ;;
2c60951b 1079
cd9a469c 1080 -datadir | --datadir | --datadi | --datad)
2c60951b 1081 ac_prev=datadir ;;
cd9a469c 1082 -datadir=* | --datadir=* | --datadi=* | --datad=*)
4618c7f0 1083 datadir=$ac_optarg ;;
2c60951b 1084
cd9a469c 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
2c60951b 1092 -disable-* | --disable-*)
cd9a469c 1093 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
2c60951b 1094 # Reject names that are not valid shell variable names.
cd9a469c 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 ;;
2c60951b 1117
1118 -enable-* | --enable-*)
cd9a469c 1119 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
2c60951b 1120 # Reject names that are not valid shell variable names.
cd9a469c 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=', ';;
30f7243e 1131 esac
cd9a469c 1132 eval enable_$ac_useropt=\$ac_optarg ;;
2c60951b 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=*)
4618c7f0 1141 exec_prefix=$ac_optarg ;;
2c60951b 1142
1143 -gas | --gas | --ga | --g)
1144 # Obsolete; use --with-gas.
1145 with_gas=yes ;;
1146
4618c7f0 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 ;;
2c60951b 1153
1154 -host | --host | --hos | --ho)
4618c7f0 1155 ac_prev=host_alias ;;
2c60951b 1156 -host=* | --host=* | --hos=* | --ho=*)
4618c7f0 1157 host_alias=$ac_optarg ;;
2c60951b 1158
cd9a469c 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
2c60951b 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=*)
4618c7f0 1170 includedir=$ac_optarg ;;
2c60951b 1171
1172 -infodir | --infodir | --infodi | --infod | --info | --inf)
1173 ac_prev=infodir ;;
1174 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
4618c7f0 1175 infodir=$ac_optarg ;;
2c60951b 1176
1177 -libdir | --libdir | --libdi | --libd)
1178 ac_prev=libdir ;;
1179 -libdir=* | --libdir=* | --libdi=* | --libd=*)
4618c7f0 1180 libdir=$ac_optarg ;;
2c60951b 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=*)
4618c7f0 1187 libexecdir=$ac_optarg ;;
2c60951b 1188
cd9a469c 1189 -localedir | --localedir | --localedi | --localed | --locale)
1190 ac_prev=localedir ;;
1191 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1192 localedir=$ac_optarg ;;
1193
2c60951b 1194 -localstatedir | --localstatedir | --localstatedi | --localstated \
cd9a469c 1195 | --localstate | --localstat | --localsta | --localst | --locals)
2c60951b 1196 ac_prev=localstatedir ;;
1197 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
cd9a469c 1198 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
4618c7f0 1199 localstatedir=$ac_optarg ;;
2c60951b 1200
1201 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1202 ac_prev=mandir ;;
1203 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
4618c7f0 1204 mandir=$ac_optarg ;;
2c60951b 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 \
4618c7f0 1211 | --no-cr | --no-c | -n)
2c60951b 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=*)
4618c7f0 1225 oldincludedir=$ac_optarg ;;
2c60951b 1226
1227 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1228 ac_prev=prefix ;;
1229 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4618c7f0 1230 prefix=$ac_optarg ;;
2c60951b 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=*)
4618c7f0 1237 program_prefix=$ac_optarg ;;
2c60951b 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=*)
4618c7f0 1244 program_suffix=$ac_optarg ;;
2c60951b 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=*)
4618c7f0 1261 program_transform_name=$ac_optarg ;;
2c60951b 1262
cd9a469c 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
2c60951b 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=*)
4618c7f0 1281 sbindir=$ac_optarg ;;
2c60951b 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=*)
4618c7f0 1292 sharedstatedir=$ac_optarg ;;
2c60951b 1293
1294 -site | --site | --sit)
1295 ac_prev=site ;;
1296 -site=* | --site=* | --sit=*)
4618c7f0 1297 site=$ac_optarg ;;
2c60951b 1298
1299 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1300 ac_prev=srcdir ;;
1301 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4618c7f0 1302 srcdir=$ac_optarg ;;
2c60951b 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=*)
4618c7f0 1309 sysconfdir=$ac_optarg ;;
2c60951b 1310
1311 -target | --target | --targe | --targ | --tar | --ta | --t)
4618c7f0 1312 ac_prev=target_alias ;;
2c60951b 1313 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
4618c7f0 1314 target_alias=$ac_optarg ;;
2c60951b 1315
1316 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1317 verbose=yes ;;
1318
4618c7f0 1319 -version | --version | --versio | --versi | --vers | -V)
1320 ac_init_version=: ;;
2c60951b 1321
1322 -with-* | --with-*)
cd9a469c 1323 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2c60951b 1324 # Reject names that are not valid shell variable names.
cd9a469c 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=', ';;
30f7243e 1335 esac
cd9a469c 1336 eval with_$ac_useropt=\$ac_optarg ;;
2c60951b 1337
1338 -without-* | --without-*)
cd9a469c 1339 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2c60951b 1340 # Reject names that are not valid shell variable names.
cd9a469c 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 ;;
2c60951b 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=*)
4618c7f0 1363 x_includes=$ac_optarg ;;
2c60951b 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=*)
4618c7f0 1370 x_libraries=$ac_optarg ;;
2c60951b 1371
cd9a469c 1372 -*) as_fn_error "unrecognized option: \`$ac_option'
1373Try \`$0 --help' for more information."
2c60951b 1374 ;;
1375
4618c7f0 1376 *=*)
1377 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1378 # Reject names that are not valid shell variable names.
cd9a469c 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
4618c7f0 1384 export $ac_envvar ;;
1385
2c60951b 1386 *)
4618c7f0 1387 # FIXME: should be removed in autoconf 3.0.
cd9a469c 1388 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
4618c7f0 1389 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
cd9a469c 1390 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
4618c7f0 1391 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
2c60951b 1392 ;;
1393
1394 esac
1395done
1396
1397if test -n "$ac_prev"; then
4618c7f0 1398 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cd9a469c 1399 as_fn_error "missing argument to $ac_option"
2c60951b 1400fi
2c60951b 1401
cd9a469c 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 ;;
30f7243e 1407 esac
cd9a469c 1408fi
30f7243e 1409
cd9a469c 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
30f7243e 1415do
cd9a469c 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.
30f7243e 1424 case $ac_val in
cd9a469c 1425 [\\/$]* | ?:[\\/]* ) continue;;
1426 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2c60951b 1427 esac
cd9a469c 1428 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
2c60951b 1429done
1430
4618c7f0 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
cd9a469c 1442 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
4618c7f0 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
2c60951b 1448
4618c7f0 1449ac_tool_prefix=
1450test -n "$host_alias" && ac_tool_prefix=$host_alias-
1451
1452test "$silent" = yes && exec 6>/dev/null
2c60951b 1453
2c60951b 1454
cd9a469c 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
2c60951b 1463# Find the source files, if location was not specified.
1464if test -z "$srcdir"; then
1465 ac_srcdir_defaulted=yes
cd9a469c 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'`
2c60951b 1490 srcdir=$ac_confdir
cd9a469c 1491 if test ! -r "$srcdir/$ac_unique_file"; then
2c60951b 1492 srcdir=..
1493 fi
1494else
1495 ac_srcdir_defaulted=no
1496fi
cd9a469c 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
4618c7f0 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
e6312df0 1529\`configure' configures libjava version-unused to adapt to many kinds of systems.
4618c7f0 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
4618c7f0 1549Installation directories:
1550 --prefix=PREFIX install architecture-independent files in PREFIX
cd9a469c 1551 [$ac_default_prefix]
4618c7f0 1552 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
cd9a469c 1553 [PREFIX]
4618c7f0 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:
cd9a469c 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]
4618c7f0 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
e6312df0 1603 case $ac_init_help in
1604 short | recursive ) echo "Configuration of libjava version-unused:";;
1605 esac
4618c7f0 1606 cat <<\_ACEOF
1607
1608Optional Features:
cd9a469c 1609 --disable-option-checking ignore unrecognized --enable/--with options
4618c7f0 1610 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1611 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
bdbb27ba 1612 --enable-multilib build many library versions (default)
4618c7f0 1613 --enable-version-specific-runtime-libs
b8f1ed38 1614 specify that runtime libraries should be installed
1615 in a compiler-specific directory
d5c44166 1616 --enable-browser-plugin build gcjwebplugin web browser plugin
ffde862e 1617 --enable-gconf-peer compile GConf native peers for util.preferences
2bc04335 1618 --disable-gjdoc compile GJDoc (disabled by --disable-gjdoc)
1619 default=yes
65bf3316 1620 --enable-java-maintainer-mode
1621 allow rebuilding of .class and .h files
e6312df0 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
fa280a58 1626 --enable-libgcj-sublibs build libgcj as many sub-libraries
a63c2657 1627 --enable-libgcj-debug enable runtime debugging code
1628 --enable-java-awt list of AWT peer implementations to be built
cd9a469c 1629 --enable-shared[=PKGS] build shared libraries [default=yes]
1630 --enable-static[=PKGS] build static libraries [default=yes]
542f9784 1631 --enable-fast-install[=PKGS]
1632 optimize for fast installation [default=yes]
4618c7f0 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
c9b39a1e 1638 --enable-libgcj-bc enable(default) or disable BC ABI for portions of
1639 libgcj
d279db8d 1640 --enable-reduced-reflection
1641 enable or disable(default) -freduced-reflection when
1642 building portions of libgcj
a9afac44 1643 --enable-gc-debug include full support for pointer backtracing etc.
4618c7f0 1644 --enable-interpreter enable interpreter
b8f1ed38 1645 --enable-sjlj-exceptions
1646 force use of builtin_setjmp for exceptions
4618c7f0 1647 --disable-java-net disable java.net
1648 --disable-jvmpi disable JVMPI support
b8f1ed38 1649 --enable-java-gc=TYPE choose garbage collector (default is boehm)
ab061793 1650 --disable-rpath do not hardcode runtime library paths
e564ddd8 1651 --enable-tls Use thread-local storage [default=yes]
bbb514dc 1652 --disable-symvers disable symbol versioning for libjava
4aba1ac0 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]
4618c7f0 1657
1658Optional Packages:
1659 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1660 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
3e427a9c 1661 --with-build-libsubdir=DIR Directory where to find libraries for build system
4618c7f0 1662 --with-target-subdir=SUBDIR
b8f1ed38 1663 configure in a subdirectory
1664 --with-cross-host=HOST configure with a cross compiler from HOST
1665 --with-newlib configure with newlib
2bc04335 1666 --with-antlr-jar=file Use ANTLR from the specified jar file
65bf3316 1667 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
542f9784 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]
65bf3316 1671 --with-ecj-jar=FILE use preinstalled ecj jar
45683482 1672 --with-java-home=DIRECTORY
1673 value of java.home system property
b8f1ed38 1674 --with-win32-nlsapi=ansi or unicows or unicode
1675 native MinGW libgcj Win32 OS API (default is ansi)
4618c7f0 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
542f9784 1680 --with-gnu-ld assume the C compiler uses GNU ld default=no
ab061793 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
7e5cb4d6 1683 --with-system-libunwind use installed libunwind
4aba1ac0 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)
4618c7f0 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>
cd9a469c 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>
4618c7f0 1707 CXX C++ compiler command
1708 CXXFLAGS C++ compiler flags
4618c7f0 1709 CPP C preprocessor
542f9784 1710 CXXCPP C++ preprocessor
cd9a469c 1711 XMKMF Path to xmkmf, Makefile generator for X Window System
4618c7f0 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
cd9a469c 1716Report bugs to the package provider.
4618c7f0 1717_ACEOF
cd9a469c 1718ac_status=$?
4618c7f0 1719fi
1720
1721if test "$ac_init_help" = "recursive"; then
1722 # If there are subdirs, report their specific --help.
4618c7f0 1723 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
cd9a469c 1724 test -d "$ac_dir" ||
1725 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1726 continue
4618c7f0 1727 ac_builddir=.
1728
cd9a469c 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
4618c7f0 1744
1745case $srcdir in
cd9a469c 1746 .) # We are building in place.
4618c7f0 1747 ac_srcdir=.
cd9a469c 1748 ac_top_srcdir=$ac_top_builddir_sub
1749 ac_abs_top_srcdir=$ac_pwd ;;
1750 [\\/]* | ?:[\\/]* ) # Absolute name.
4618c7f0 1751 ac_srcdir=$srcdir$ac_dir_suffix;
cd9a469c 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 ;;
4618c7f0 1758esac
cd9a469c 1759ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4618c7f0 1760
cd9a469c 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
4618c7f0 1769 else
cd9a469c 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; }
4618c7f0 1773 done
1774fi
1775
cd9a469c 1776test -n "$ac_init_help" && exit $ac_status
4618c7f0 1777if $ac_init_version; then
1778 cat <<\_ACEOF
e6312df0 1779libjava configure version-unused
cd9a469c 1780generated by GNU Autoconf 2.64
4618c7f0 1781
cd9a469c 1782Copyright (C) 2009 Free Software Foundation, Inc.
4618c7f0 1783This configure script is free software; the Free Software Foundation
1784gives unlimited permission to copy, distribute and modify it.
1785_ACEOF
cd9a469c 1786 exit
4618c7f0 1787fi
4618c7f0 1788
cd9a469c 1789## ------------------------ ##
1790## Autoconf initialization. ##
1791## ------------------------ ##
4618c7f0 1792
cd9a469c 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 ()
4618c7f0 1797{
cd9a469c 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
4618c7f0 1823
cd9a469c 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
4618c7f0 1828
cd9a469c 1829} # ac_fn_c_try_compile
4618c7f0 1830
cd9a469c 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
050318d9 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; }
cd9a469c 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{
050318d9 2341#ifndef $as_decl_name
2342#ifdef __cplusplus
2343 (void) $as_decl_use;
2344#else
2345 (void) $as_decl_name;
2346#endif
cd9a469c 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`
4618c7f0 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`
cd9a469c 2627/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
4618c7f0 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=.
cd9a469c 2639 $as_echo "PATH: $as_dir"
2640 done
2641IFS=$as_save_IFS
4618c7f0 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=
4618c7f0 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 ;;
cd9a469c 2673 *\'*)
2674 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4618c7f0 2675 esac
2676 case $ac_pass in
cd9a469c 2677 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
4618c7f0 2678 2)
cd9a469c 2679 as_fn_append ac_configure_args1 " '$ac_arg'"
4618c7f0 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
cd9a469c 2695 as_fn_append ac_configure_args " '$ac_arg'"
4618c7f0 2696 ;;
2697 esac
2698 done
2699done
cd9a469c 2700{ ac_configure_args0=; unset ac_configure_args0;}
2701{ ac_configure_args1=; unset ac_configure_args1;}
4618c7f0 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.
cd9a469c 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.
4618c7f0 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,
cd9a469c 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
4618c7f0 2736 (set) 2>&1 |
cd9a469c 2737 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2738 *${as_nl}ac_space=\ *)
4618c7f0 2739 sed -n \
cd9a469c 2740 "s/'\''/'\''\\\\'\'''\''/g;
2741 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2742 ;; #(
4618c7f0 2743 *)
cd9a469c 2744 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4618c7f0 2745 ;;
cd9a469c 2746 esac |
2747 sort
2748)
4618c7f0 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
cd9a469c 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'\''"
4618c7f0 2764 done | sort
2765 echo
2766
2767 if test -n "$ac_subst_files"; then
2768 cat <<\_ASBOX
cd9a469c 2769## ------------------- ##
2770## File substitutions. ##
2771## ------------------- ##
4618c7f0 2772_ASBOX
2773 echo
2774 for ac_var in $ac_subst_files
2775 do
cd9a469c 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'\''"
4618c7f0 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
cd9a469c 2792 cat confdefs.h
4618c7f0 2793 echo
2794 fi
2795 test "$ac_signal" != 0 &&
cd9a469c 2796 $as_echo "$as_me: caught signal $ac_signal"
2797 $as_echo "$as_me: exit $exit_status"
4618c7f0 2798 } >&5
cd9a469c 2799 rm -f core *.core core.conftest.* &&
2800 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
4618c7f0 2801 exit $exit_status
cd9a469c 2802' 0
4618c7f0 2803for ac_signal in 1 2 13 15; do
cd9a469c 2804 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
4618c7f0 2805done
2806ac_signal=0
2807
2808# confdefs.h avoids OS command line length limits that DEFS can exceed.
cd9a469c 2809rm -f -r conftest* confdefs.h
2810
2811$as_echo "/* confdefs.h */" > confdefs.h
4618c7f0 2812
2813# Predefined preprocessor variables.
2814
2815cat >>confdefs.h <<_ACEOF
2816#define PACKAGE_NAME "$PACKAGE_NAME"
2817_ACEOF
2818
4618c7f0 2819cat >>confdefs.h <<_ACEOF
2820#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2821_ACEOF
2822
4618c7f0 2823cat >>confdefs.h <<_ACEOF
2824#define PACKAGE_VERSION "$PACKAGE_VERSION"
2825_ACEOF
2826
4618c7f0 2827cat >>confdefs.h <<_ACEOF
2828#define PACKAGE_STRING "$PACKAGE_STRING"
2829_ACEOF
2830
4618c7f0 2831cat >>confdefs.h <<_ACEOF
2832#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2833_ACEOF
2834
cd9a469c 2835cat >>confdefs.h <<_ACEOF
2836#define PACKAGE_URL "$PACKAGE_URL"
2837_ACEOF
2838
4618c7f0 2839
2840# Let the site file select an alternate cache file if it wants to.
cd9a469c 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
2c60951b 2856 if test -r "$ac_site_file"; then
cd9a469c 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;}
4618c7f0 2859 sed 's/^/| /' "$ac_site_file" >&5
2c60951b 2860 . "$ac_site_file"
2861 fi
2862done
2863
2864if test -r "$cache_file"; then
4618c7f0 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
cd9a469c 2868 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2869$as_echo "$as_me: loading cache $cache_file" >&6;}
4618c7f0 2870 case $cache_file in
cd9a469c 2871 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2872 *) . "./$cache_file";;
4618c7f0 2873 esac
2874 fi
2c60951b 2875else
cd9a469c 2876 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2877$as_echo "$as_me: creating cache $cache_file" >&6;}
4618c7f0 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
cd9a469c 2884for ac_var in $ac_precious_vars; do
4618c7f0 2885 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2886 eval ac_new_set=\$ac_env_${ac_var}_set
cd9a469c 2887 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2888 eval ac_new_val=\$ac_env_${ac_var}_value
4618c7f0 2889 case $ac_old_set,$ac_new_set in
2890 set,)
cd9a469c 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;}
4618c7f0 2893 ac_cache_corrupted=: ;;
2894 ,set)
cd9a469c 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;}
4618c7f0 2897 ac_cache_corrupted=: ;;
2898 ,);;
2899 *)
2900 if test "x$ac_old_val" != "x$ac_new_val"; then
cd9a469c 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;}
4618c7f0 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
cd9a469c 2922 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
4618c7f0 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.
cd9a469c 2927 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
4618c7f0 2928 esac
2929 fi
2930done
2931if $ac_cache_corrupted; then
cd9a469c 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
2c60951b 2937fi
cd9a469c 2938## -------------------- ##
2939## Main body of script. ##
2940## -------------------- ##
2c60951b 2941
30f7243e 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
4618c7f0 2948
2949
2950
2951
2952
2953
2954
66a2e6b7 2955ac_aux_dir=
cd9a469c 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
66a2e6b7 2964done
2965if test -z "$ac_aux_dir"; then
cd9a469c 2966 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
66a2e6b7 2967fi
cd9a469c 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
66a2e6b7 2977
4618c7f0 2978# Make sure we can run config.sub.
cd9a469c 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
4618c7f0 3002build=$ac_cv_build
cd9a469c 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
4618c7f0 3014
3015
c1eb9e31 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
3e427a9c 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.
c1eb9e31 3042build_subdir="build-${build_noncanonical}"
3e427a9c 3043
cd9a469c 3044# Check whether --with-build-libsubdir was given.
3045if test "${with_build_libsubdir+set}" = set; then :
3046 withval=$with_build_libsubdir; build_libsubdir="$withval"
3e427a9c 3047else
3048 build_libsubdir="$build_subdir"
cd9a469c 3049fi
3050
c1eb9e31 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
cd9a469c 3064# Check whether --with-target-subdir was given.
3065if test "${with_target_subdir+set}" = set; then :
3066 withval=$with_target_subdir;
3067fi
c1eb9e31 3068
c1eb9e31 3069
3070# We may get other options which we don't document:
3071# --with-target-subdir, --with-multisrctop, --with-multisubdir
3072
bdbb27ba 3073# Find the rest of the source tree framework.
3074# Default to --enable-multilib
cd9a469c 3075# Check whether --enable-multilib was given.
3076if test "${enable_multilib+set}" = set; then :
3077 enableval=$enable_multilib; case "$enableval" in
bdbb27ba 3078 yes) multilib=yes ;;
3079 no) multilib=no ;;
cd9a469c 3080 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
bdbb27ba 3081 esac
3082else
3083 multilib=yes
cd9a469c 3084fi
3085
bdbb27ba 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../.."
c1eb9e31 3094 else
bdbb27ba 3095 multi_basedir="$srcdir/$with_multisrctop.."
c1eb9e31 3096 fi
3097else
bdbb27ba 3098 multi_basedir="$srcdir/.."
c1eb9e31 3099fi
3100
bdbb27ba 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
cd9a469c 3109ac_config_commands="$ac_config_commands default-1"
c1eb9e31 3110
3111
cd9a469c 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
4618c7f0 3116else
cd9a469c 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
4618c7f0 3123
3124fi
cd9a469c 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
4618c7f0 3131host=$ac_cv_host
cd9a469c 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
30f7243e 3143
3144
cd9a469c 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
4618c7f0 3149else
cd9a469c 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
4618c7f0 3156
3157fi
cd9a469c 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
4618c7f0 3164target=$ac_cv_target
cd9a469c 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
66a2e6b7 3176
66a2e6b7 3177
3178# The aliases save the names the user supplied, while $host etc.
3179# will get canonicalized.
4618c7f0 3180test -n "$target_alias" &&
66a2e6b7 3181 test "$program_prefix$program_suffix$program_transform_name" = \
3182 NONENONEs,x,x, &&
3183 program_prefix=${target_alias}-
cd9a469c 3184
36d69d06 3185 case ${build_alias} in
3186 "") build_noncanonical=${build} ;;
3187 *) build_noncanonical=${build_alias} ;;
3188esac
3189
36d69d06 3190 case ${target_alias} in
3191 "") target_noncanonical=${host_noncanonical} ;;
3192 *) target_noncanonical=${target_alias} ;;
3193esac
3194
3195
b96a37b6 3196
3197
36d69d06 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
cd9a469c 3204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3205$as_echo_n "checking whether ln -s works... " >&6; }
4618c7f0 3206LN_S=$as_ln_s
3207if test "$LN_S" = "ln -s"; then
cd9a469c 3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3209$as_echo "yes" >&6; }
36d69d06 3210else
cd9a469c 3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3212$as_echo "no, using $LN_S" >&6; }
36d69d06 3213fi
3214
3215
3216# This works around an automake problem.
3217mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
3218
3219
4618c7f0 3220
cd9a469c 3221# Check whether --with-cross-host was given.
3222if test "${with_cross_host+set}" = set; then :
3223 withval=$with_cross_host;
3224fi
4618c7f0 3225
36d69d06 3226
3227
cd9a469c 3228# Check whether --with-newlib was given.
3229if test "${with_newlib+set}" = set; then :
3230 withval=$with_newlib;
3231fi
36d69d06 3232
3233
cd9a469c 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
36d69d06 3237 yes) version_specific_libs=yes ;;
3238 no) version_specific_libs=no ;;
cd9a469c 3239 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
36d69d06 3240 esac
3241else
3242 version_specific_libs=no
3243
cd9a469c 3244fi
3245
36d69d06 3246
d5c44166 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;;
9a8abce4 3253 esac
3254else
d5c44166 3255 browser_plugin_enabled=no
9a8abce4 3256
cd9a469c 3257fi
3258
9a8abce4 3259
cd9a469c 3260# Check whether --enable-gconf-peer was given.
3261if test "${enable_gconf_peer+set}" = set; then :
3262 enableval=$enable_gconf_peer; case "$enableval" in
ffde862e 3263 yes) gconf_enabled=yes ;;
3264 no) gconf_enabled=no ;;
cd9a469c 3265 *) as_fn_error "Unknown argument to enable/disable gconf-peer" "$LINENO" 5;;
ffde862e 3266 esac
3267else
3268 gconf_enabled=no
3269
cd9a469c 3270fi
ffde862e 3271
2bc04335 3272
2bc04335 3273
cd9a469c 3274# Check whether --with-antlr-jar was given.
3275if test "${with_antlr_jar+set}" = set; then :
3276 withval=$with_antlr_jar;
2bc04335 3277 ANTLR_JAR=$withval
3278
3279else
3280
3281 ANTLR_JAR=
3282
cd9a469c 3283fi
2bc04335 3284
cd9a469c 3285
3286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr.jar" >&5
3287$as_echo_n "checking for antlr.jar... " >&6; }
2bc04335 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
cd9a469c 3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
3300$as_echo "not found" >&6; }
2bc04335 3301 else
cd9a469c 3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3303$as_echo "$ANTLR_JAR" >&6; }
2bc04335 3304 fi
3305else
3306 if test -f "${ANTLR_JAR}"; then
cd9a469c 3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3308$as_echo "$ANTLR_JAR" >&6; }
2bc04335 3309 else
cd9a469c 3310 as_fn_error "antlr jar file not found: $ANTLR_JAR" "$LINENO" 5
2bc04335 3311 fi
3312fi
3313
3314
cd9a469c 3315# Check whether --enable-gjdoc was given.
3316if test "${enable_gjdoc+set}" = set; then :
3317 enableval=$enable_gjdoc; case "${enableval}" in
2bc04335 3318 yes) BUILD_GJDOC=yes ;;
3319 no) BUILD_GJDOC=no ;;
3320 *) BUILD_GJDOC=yes ;;
3321 esac
3322else
3323 BUILD_GJDOC=maybe
cd9a469c 3324fi
3325
2bc04335 3326
cd9a469c 3327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gjdoc" >&5
3328$as_echo_n "checking whether to build gjdoc... " >&6; }
2bc04335 3329if test "x$BUILD_GJDOC" = xmaybe; then
3330 if test -f "${ANTLR_JAR}"; then
3331 BUILD_GJDOC=yes
cd9a469c 3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3333$as_echo "yes" >&6; }
2bc04335 3334 else
3335 BUILD_GJDOC=no
cd9a469c 3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, antlr.jar not found" >&5
3337$as_echo "no, antlr.jar not found" >&6; }
2bc04335 3338 fi
3339else
cd9a469c 3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_GJDOC" >&5
3341$as_echo "$BUILD_GJDOC" >&6; }
2bc04335 3342fi
cd9a469c 3343 if test "x${BUILD_GJDOC}" = xyes; then
2bc04335 3344 CREATE_GJDOC_TRUE=
3345 CREATE_GJDOC_FALSE='#'
3346else
3347 CREATE_GJDOC_TRUE='#'
3348 CREATE_GJDOC_FALSE=
3349fi
3350
3351
cd9a469c 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
65bf3316 3356
cd9a469c 3357 if test "$enable_java_maintainer_mode" = yes; then
65bf3316 3358 JAVA_MAINTAINER_MODE_TRUE=
3359 JAVA_MAINTAINER_MODE_FALSE='#'
3360else
3361 JAVA_MAINTAINER_MODE_TRUE='#'
3362 JAVA_MAINTAINER_MODE_FALSE=
3363fi
3364
3365
b8f1ed38 3366# It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
36d69d06 3367
2c60951b 3368
94adcb45 3369# For libstdc++-v3, -fno-builtin must be present here so that a
4618c7f0 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.
4618c7f0 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
cd9a469c 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
4618c7f0 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=.
cd9a469c 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
4618c7f0 3397 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cd9a469c 3398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618c7f0 3399 break 2
3400 fi
3401done
cd9a469c 3402 done
3403IFS=$as_save_IFS
2c60951b 3404
4618c7f0 3405fi
3406fi
3407CC=$ac_cv_prog_CC
3408if test -n "$CC"; then
cd9a469c 3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3410$as_echo "$CC" >&6; }
4618c7f0 3411else
cd9a469c 3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413$as_echo "no" >&6; }
4618c7f0 3414fi
812c7217 3415
cd9a469c 3416
4618c7f0 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.
2c60951b 3421set dummy gcc; ac_word=$2
cd9a469c 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
4618c7f0 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=.
cd9a469c 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
4618c7f0 3437 ac_cv_prog_ac_ct_CC="gcc"
cd9a469c 3438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618c7f0 3439 break 2
3440 fi
3441done
cd9a469c 3442 done
3443IFS=$as_save_IFS
4618c7f0 3444
3445fi
3446fi
3447ac_ct_CC=$ac_cv_prog_ac_ct_CC
3448if test -n "$ac_ct_CC"; then
cd9a469c 3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3450$as_echo "$ac_ct_CC" >&6; }
4618c7f0 3451else
cd9a469c 3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453$as_echo "no" >&6; }
4618c7f0 3454fi
3455
cd9a469c 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
4618c7f0 3467else
3468 CC="$ac_cv_prog_CC"
3469fi
3470
3471if test -z "$CC"; then
cd9a469c 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.
4618c7f0 3474set dummy ${ac_tool_prefix}cc; ac_word=$2
cd9a469c 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
2c60951b 3479else
3480 if test -n "$CC"; then
3481 ac_cv_prog_CC="$CC" # Let the user override the test.
3482else
4618c7f0 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=.
cd9a469c 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
4618c7f0 3490 ac_cv_prog_CC="${ac_tool_prefix}cc"
cd9a469c 3491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618c7f0 3492 break 2
3493 fi
3494done
cd9a469c 3495 done
3496IFS=$as_save_IFS
4618c7f0 3497
2c60951b 3498fi
3499fi
4618c7f0 3500CC=$ac_cv_prog_CC
2c60951b 3501if test -n "$CC"; then
cd9a469c 3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3503$as_echo "$CC" >&6; }
4618c7f0 3504else
cd9a469c 3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506$as_echo "no" >&6; }
4618c7f0 3507fi
3508
30f7243e 3509
cd9a469c 3510 fi
4618c7f0 3511fi
2c60951b 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
cd9a469c 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
2c60951b 3519else
3520 if test -n "$CC"; then
3521 ac_cv_prog_CC="$CC" # Let the user override the test.
3522else
2c60951b 3523 ac_prog_rejected=no
4618c7f0 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=.
cd9a469c 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
4618c7f0 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"
cd9a469c 3536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618c7f0 3537 break 2
3538 fi
3539done
cd9a469c 3540 done
3541IFS=$as_save_IFS
4618c7f0 3542
2c60951b 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
4618c7f0 3547 if test $# != 0; then
2c60951b 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
4618c7f0 3552 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2c60951b 3553 fi
3554fi
3555fi
3556fi
4618c7f0 3557CC=$ac_cv_prog_CC
2c60951b 3558if test -n "$CC"; then
cd9a469c 3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3560$as_echo "$CC" >&6; }
2c60951b 3561else
cd9a469c 3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563$as_echo "no" >&6; }
2c60951b 3564fi
3565
cd9a469c 3566
4618c7f0 3567fi
3568if test -z "$CC"; then
3569 if test -n "$ac_tool_prefix"; then
cd9a469c 3570 for ac_prog in cl.exe
4618c7f0 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
cd9a469c 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
44232b6b 3578else
3579 if test -n "$CC"; then
3580 ac_cv_prog_CC="$CC" # Let the user override the test.
3581else
4618c7f0 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=.
cd9a469c 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
4618c7f0 3589 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cd9a469c 3590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618c7f0 3591 break 2
3592 fi
3593done
cd9a469c 3594 done
3595IFS=$as_save_IFS
4618c7f0 3596
44232b6b 3597fi
3598fi
4618c7f0 3599CC=$ac_cv_prog_CC
44232b6b 3600if test -n "$CC"; then
cd9a469c 3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3602$as_echo "$CC" >&6; }
44232b6b 3603else
cd9a469c 3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3605$as_echo "no" >&6; }
44232b6b 3606fi
4618c7f0 3607
cd9a469c 3608
4618c7f0 3609 test -n "$CC" && break
3610 done
3611fi
3612if test -z "$CC"; then
3613 ac_ct_CC=$CC
cd9a469c 3614 for ac_prog in cl.exe
4618c7f0 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
cd9a469c 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
4618c7f0 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=.
cd9a469c 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
4618c7f0 3633 ac_cv_prog_ac_ct_CC="$ac_prog"
cd9a469c 3634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618c7f0 3635 break 2
44232b6b 3636 fi
4618c7f0 3637done
cd9a469c 3638 done
3639IFS=$as_save_IFS
4618c7f0 3640
3641fi
3642fi
3643ac_ct_CC=$ac_cv_prog_ac_ct_CC
3644if test -n "$ac_ct_CC"; then
cd9a469c 3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3646$as_echo "$ac_ct_CC" >&6; }
4618c7f0 3647else
cd9a469c 3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3649$as_echo "no" >&6; }
2c60951b 3650fi
3651
cd9a469c 3652
4618c7f0 3653 test -n "$ac_ct_CC" && break
3654done
3655
cd9a469c 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
4618c7f0 3667fi
3668
3669fi
3670
3671
cd9a469c 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; }
4618c7f0 3676
3677# Provide some information about the compiler.
cd9a469c 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
4618c7f0 3690 ac_status=$?
cd9a469c 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
4618c7f0 3701
cd9a469c 3702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618c7f0 3703/* end confdefs.h. */
3704
3705int
3706main ()
3707{
3708
3709 ;
3710 return 0;
3711}
3712_ACEOF
3713# FIXME: Cleanup?
cd9a469c 3714if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
4618c7f0 3715 (eval $ac_link) 2>&5
3716 ac_status=$?
cd9a469c 3717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3718 test $ac_status = 0; }; then :
4618c7f0 3719 gcc_no_link=no
3720else
3721 gcc_no_link=yes
3722fi
4618c7f0 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
cd9a469c 3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618c7f0 3731/* end confdefs.h. */
3732
3733int
3734main ()
3735{
44232b6b 3736
4618c7f0 3737 ;
3738 return 0;
3739}
3740_ACEOF
3741ac_clean_files_save=$ac_clean_files
cd9a469c 3742ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4618c7f0 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.
cd9a469c 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 ''
4618c7f0 3780do
3781 test -f "$ac_file" || continue
3782 case $ac_file in
cd9a469c 3783 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
30f7243e 3784 ;;
3785 [ab].out )
3786 # We found the default executable, but exeext='' is most
3787 # certainly right.
3788 break;;
3789 *.* )
cd9a469c 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.
30f7243e 3799 break;;
3800 * )
3801 break;;
4618c7f0 3802 esac
3803done
cd9a469c 3804test "$ac_cv_exeext" = no && ac_cv_exeext=
3805
2c60951b 3806else
cd9a469c 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
4618c7f0 3813sed 's/^/| /' conftest.$ac_ext >&5
3814
cd9a469c 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; }; }
4618c7f0 3820fi
30f7243e 3821ac_exeext=$ac_cv_exeext
30f7243e 3822
cd9a469c 3823# Check that the compiler produces executables we can run. If not, either
4618c7f0 3824# the compiler is broken, or we cross compile.
cd9a469c 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; }
4618c7f0 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'
cd9a469c 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
4618c7f0 3837 ac_status=$?
cd9a469c 3838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3839 test $ac_status = 0; }; }; then
4618c7f0 3840 cross_compiling=no
3841 else
3842 if test "$cross_compiling" = maybe; then
3843 cross_compiling=yes
3844 else
cd9a469c 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.
4618c7f0 3848If you meant to cross compile, use \`--host'.
cd9a469c 3849See \`config.log' for more details." "$LINENO" 5; }
4618c7f0 3850 fi
3851 fi
3852fi
cd9a469c 3853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3854$as_echo "yes" >&6; }
4618c7f0 3855
cd9a469c 3856rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
30f7243e 3857ac_clean_files=$ac_clean_files_save
cd9a469c 3858# Check that the compiler produces executables we can run. If not, either
30f7243e 3859# the compiler is broken, or we cross compile.
cd9a469c 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
4618c7f0 3875 ac_status=$?
cd9a469c 3876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3877 test $ac_status = 0; }; then :
30f7243e 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
cd9a469c 3885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
30f7243e 3886 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
30f7243e 3887 break;;
3888 * ) break;;
3889 esac
3890done
2c60951b 3891else
cd9a469c 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; }
2c60951b 3896fi
30f7243e 3897rm -f conftest$ac_cv_exeext
cd9a469c 3898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3899$as_echo "$ac_cv_exeext" >&6; }
4618c7f0 3900
30f7243e 3901rm -f conftest.$ac_ext
4618c7f0 3902EXEEXT=$ac_cv_exeext
3903ac_exeext=$EXEEXT
30f7243e 3904fi
cd9a469c 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
4618c7f0 3909else
cd9a469c 3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30f7243e 3911/* end confdefs.h. */
3912
3913int
3914main ()
3915{
3916
3917 ;
3918 return 0;
3919}
3920_ACEOF
3921rm -f conftest.o conftest.obj
cd9a469c 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;
4618c7f0 3935 case $ac_file in
cd9a469c 3936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4618c7f0 3937 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3938 break;;
3939 esac
3940done
44232b6b 3941else
cd9a469c 3942 $as_echo "$as_me: failed program was:" >&5
4618c7f0 3943sed 's/^/| /' conftest.$ac_ext >&5
3944
cd9a469c 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; }
44232b6b 3949fi
30f7243e 3950rm -f conftest.$ac_cv_objext conftest.$ac_ext
4618c7f0 3951fi
cd9a469c 3952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3953$as_echo "$ac_cv_objext" >&6; }
4618c7f0 3954OBJEXT=$ac_cv_objext
3955ac_objext=$OBJEXT
cd9a469c 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
4618c7f0 3960else
cd9a469c 3961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618c7f0 3962/* end confdefs.h. */
3963
3964int
3965main ()
3966{
3967#ifndef __GNUC__
3968 choke me
3969#endif
3970
3971 ;
3972 return 0;
3973}
3974_ACEOF
cd9a469c 3975if ac_fn_c_try_compile "$LINENO"; then :
4618c7f0 3976 ac_compiler_gnu=yes
3977else
cd9a469c 3978 ac_compiler_gnu=no
4618c7f0 3979fi
cd9a469c 3980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4618c7f0 3981ac_cv_c_compiler_gnu=$ac_compiler_gnu
3982
3983fi
cd9a469c 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
4618c7f0 3991ac_test_CFLAGS=${CFLAGS+set}
3992ac_save_CFLAGS=$CFLAGS
cd9a469c 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
4618c7f0 4003/* end confdefs.h. */
4004
4005int
4006main ()
4007{
4008
4009 ;
4010 return 0;
4011}
4012_ACEOF
cd9a469c 4013if ac_fn_c_try_compile "$LINENO"; then :
2c60951b 4014 ac_cv_prog_cc_g=yes
4015else
cd9a469c 4016 CFLAGS=""
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018/* end confdefs.h. */
4019
4020int
4021main ()
4022{
2c60951b 4023
cd9a469c 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
30f7243e 4048fi
cd9a469c 4049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30f7243e 4050fi
cd9a469c 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; }
30f7243e 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
cd9a469c 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
30f7243e 4075else
cd9a469c 4076 ac_cv_prog_cc_c89=no
30f7243e 4077ac_save_CC=$CC
cd9a469c 4078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618c7f0 4079/* end confdefs.h. */
30f7243e 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}
2c60951b 4102
30f7243e 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
cd9a469c 4106 as 'x'. The following induces an error, until -std is added to get
30f7243e 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
cd9a469c 4109 that's true only with -std. */
30f7243e 4110int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4111
cd9a469c 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
30f7243e 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;
4618c7f0 4123int
4124main ()
4125{
30f7243e 4126return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4618c7f0 4127 ;
4128 return 0;
4129}
4130_ACEOF
cd9a469c 4131for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4132 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
30f7243e 4133do
4134 CC="$ac_save_CC $ac_arg"
cd9a469c 4135 if ac_fn_c_try_compile "$LINENO"; then :
4136 ac_cv_prog_cc_c89=$ac_arg
30f7243e 4137fi
cd9a469c 4138rm -f core conftest.err conftest.$ac_objext
4139 test "x$ac_cv_prog_cc_c89" != "xno" && break
30f7243e 4140done
cd9a469c 4141rm -f conftest.$ac_ext
30f7243e 4142CC=$ac_save_CC
ea2855f6 4143
30f7243e 4144fi
cd9a469c 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; } ;;
30f7243e 4153 *)
cd9a469c 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; } ;;
30f7243e 4157esac
cd9a469c 4158if test "x$ac_cv_prog_cc_c89" != xno; then :
4618c7f0 4159
2c60951b 4160fi
4618c7f0 4161
4618c7f0 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
2c60951b 4167
cd9a469c 4168ac_ext=cpp
4618c7f0 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
cd9a469c 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
4618c7f0 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
cd9a469c 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
4618c7f0 4186else
4187 if test -n "$CXX"; then
65bf3316 4188 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4618c7f0 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=.
cd9a469c 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
65bf3316 4197 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cd9a469c 4198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618c7f0 4199 break 2
4200 fi
4201done
cd9a469c 4202 done
4203IFS=$as_save_IFS
44232b6b 4204
4618c7f0 4205fi
4206fi
65bf3316 4207CXX=$ac_cv_prog_CXX
4618c7f0 4208if test -n "$CXX"; then
cd9a469c 4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4210$as_echo "$CXX" >&6; }
4618c7f0 4211else
cd9a469c 4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4213$as_echo "no" >&6; }
4618c7f0 4214fi
2c60951b 4215
cd9a469c 4216
4618c7f0 4217 test -n "$CXX" && break
4218 done
4219fi
4220if test -z "$CXX"; then
4221 ac_ct_CXX=$CXX
cd9a469c 4222 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4618c7f0 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
cd9a469c 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
2c60951b 4230else
4618c7f0 4231 if test -n "$ac_ct_CXX"; then
4232 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2c60951b 4233else
4618c7f0 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=.
cd9a469c 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
4618c7f0 4241 ac_cv_prog_ac_ct_CXX="$ac_prog"
cd9a469c 4242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618c7f0 4243 break 2
4244 fi
4245done
cd9a469c 4246 done
4247IFS=$as_save_IFS
4618c7f0 4248
4249fi
2c60951b 4250fi
4618c7f0 4251ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4252if test -n "$ac_ct_CXX"; then
cd9a469c 4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4254$as_echo "$ac_ct_CXX" >&6; }
4618c7f0 4255else
cd9a469c 4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257$as_echo "no" >&6; }
2c60951b 4258fi
4259
cd9a469c 4260
4618c7f0 4261 test -n "$ac_ct_CXX" && break
4262done
4618c7f0 4263
cd9a469c 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
4618c7f0 4275fi
4276
cd9a469c 4277 fi
4278fi
4618c7f0 4279# Provide some information about the compiler.
cd9a469c 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
4618c7f0 4292 ac_status=$?
cd9a469c 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
4618c7f0 4303
cd9a469c 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
4618c7f0 4308else
cd9a469c 4309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618c7f0 4310/* end confdefs.h. */
2c60951b 4311
4618c7f0 4312int
4313main ()
4314{
4315#ifndef __GNUC__
4316 choke me
4317#endif
4318
4319 ;
4320 return 0;
4321}
4322_ACEOF
cd9a469c 4323if ac_fn_cxx_try_compile "$LINENO"; then :
4618c7f0 4324 ac_compiler_gnu=yes
4325else
cd9a469c 4326 ac_compiler_gnu=no
4618c7f0 4327fi
cd9a469c 4328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4618c7f0 4329ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4330
4331fi
cd9a469c 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
4618c7f0 4339ac_test_CXXFLAGS=${CXXFLAGS+set}
4340ac_save_CXXFLAGS=$CXXFLAGS
cd9a469c 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
4618c7f0 4351/* end confdefs.h. */
4352
4353int
4354main ()
4355{
4356
4357 ;
4358 return 0;
4359}
4360_ACEOF
cd9a469c 4361if ac_fn_cxx_try_compile "$LINENO"; then :
2c60951b 4362 ac_cv_prog_cxx_g=yes
4363else
cd9a469c 4364 CXXFLAGS=""
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618c7f0 4366/* end confdefs.h. */
cd9a469c 4367
4618c7f0 4368int
4369main ()
4370{
cd9a469c 4371
4618c7f0 4372 ;
4373 return 0;
4374}
4375_ACEOF
cd9a469c 4376if ac_fn_cxx_try_compile "$LINENO"; then :
4618c7f0 4377
cd9a469c 4378else
4379 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4380 CXXFLAGS="-g"
4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618c7f0 4382/* end confdefs.h. */
cd9a469c 4383
4618c7f0 4384int
4385main ()
4386{
cd9a469c 4387
4618c7f0 4388 ;
4389 return 0;
4390}
4391_ACEOF
cd9a469c 4392if ac_fn_cxx_try_compile "$LINENO"; then :
4393 ac_cv_prog_cxx_g=yes
63a06cfe 4394fi
cd9a469c 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
44232b6b 4418fi
4618c7f0 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
cd9a469c 4427am__api_version='1.11'
4428
76c602c2 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
4618c7f0 4436# AmigaOS /C/install, which installs bootblocks on floppy discs
76c602c2 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"
4618c7f0 4440# OS/2's system install, which has a completely different semantic
76c602c2 4441# ./install, which can be erroneously created by make from ./install.sh.
82eaf560 4442# Reject install programs that cannot install multiple files.
cd9a469c 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; }
76c602c2 4445if test -z "$INSTALL"; then
cd9a469c 4446if test "${ac_cv_path_install+set}" = set; then :
4447 $as_echo_n "(cached) " >&6
76c602c2 4448else
4618c7f0 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=.
cd9a469c 4454 # Account for people who put trailing slashes in PATH elements.
4455case $as_dir/ in #((
4456 ./ | .// | /[cC]/* | \
4618c7f0 4457 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cd9a469c 4458 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4618c7f0 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
cd9a469c 4466 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
76c602c2 4467 if test $ac_prog = install &&
4618c7f0 4468 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
76c602c2 4469 # AIX install. It has an incompatible calling convention.
4470 :
4618c7f0 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 :
76c602c2 4475 else
82eaf560 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
76c602c2 4488 fi
4489 fi
4490 done
4618c7f0 4491 done
4492 ;;
4493esac
cd9a469c 4494
4495 done
4496IFS=$as_save_IFS
4618c7f0 4497
82eaf560 4498rm -rf conftest.one conftest.two conftest.dir
76c602c2 4499
4500fi
4501 if test "${ac_cv_path_install+set}" = set; then
4618c7f0 4502 INSTALL=$ac_cv_path_install
76c602c2 4503 else
82eaf560 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
76c602c2 4506 # break other packages using the cache if that directory is
82eaf560 4507 # removed, or if the value is a relative name.
4618c7f0 4508 INSTALL=$ac_install_sh
76c602c2 4509 fi
4510fi
cd9a469c 4511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4512$as_echo "$INSTALL" >&6; }
76c602c2 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
4618c7f0 4518test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
76c602c2 4519
4520test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4521
cd9a469c 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; }
76c602c2 4524# Just in case
4525sleep 1
e6312df0 4526echo timestamp > conftest.file
cd9a469c 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
76c602c2 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 (
cd9a469c 4546 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
76c602c2 4547 if test "$*" = "X"; then
4548 # -L didn't work.
cd9a469c 4549 set X `ls -t "$srcdir/configure" conftest.file`
76c602c2 4550 fi
e6312df0 4551 rm -f conftest.file
4552 if test "$*" != "X $srcdir/configure conftest.file" \
4553 && test "$*" != "X conftest.file $srcdir/configure"; then
76c602c2 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".
cd9a469c 4559 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4560alias in your environment" "$LINENO" 5
76c602c2 4561 fi
4562
e6312df0 4563 test "$2" = conftest.file
76c602c2 4564 )
4565then
4566 # Ok.
4567 :
4568else
cd9a469c 4569 as_fn_error "newly created file is older than distributed files!
4570Check your system clock" "$LINENO" 5
76c602c2 4571fi
cd9a469c 4572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4573$as_echo "yes" >&6; }
76c602c2 4574test "$program_prefix" != NONE &&
cd9a469c 4575 program_transform_name="s&^&$program_prefix&;$program_transform_name"
76c602c2 4576# Use a double $ so make ignores it.
4577test "$program_suffix" != NONE &&
cd9a469c 4578 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4579# Double any \ or $.
4618c7f0 4580# By default was `s,x,x', remove it if useless.
cd9a469c 4581ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4582program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4618c7f0 4583
e6312df0 4584# expand $ac_aux_dir to an absolute path
4585am_aux_dir=`cd $ac_aux_dir && pwd`
4586
cd9a469c 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
e6312df0 4595# Use eval to expand $SHELL
4596if eval "$MISSING --run true"; then
4597 am_missing_run="$MISSING --run "
4598else
4599 am_missing_run=
cd9a469c 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
e6312df0 4736 done
cd9a469c 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"
e6312df0 4743 else
cd9a469c 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"
e6312df0 4750 fi
4751fi
cd9a469c 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
e6312df0 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
cd9a469c 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
e6312df0 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=.
cd9a469c 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
e6312df0 4780 ac_cv_prog_AWK="$ac_prog"
cd9a469c 4781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
e6312df0 4782 break 2
4783 fi
4784done
cd9a469c 4785 done
4786IFS=$as_save_IFS
e6312df0 4787
4788fi
4789fi
4790AWK=$ac_cv_prog_AWK
4791if test -n "$AWK"; then
cd9a469c 4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4793$as_echo "$AWK" >&6; }
e6312df0 4794else
cd9a469c 4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4796$as_echo "no" >&6; }
e6312df0 4797fi
4798
cd9a469c 4799
e6312df0 4800 test -n "$AWK" && break
4801done
4802
cd9a469c 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
4618c7f0 4809else
4810 cat >conftest.make <<\_ACEOF
cd9a469c 4811SHELL = /bin/sh
76c602c2 4812all:
cd9a469c 4813 @echo '@@@%%%=$(MAKE)=@@@%%%'
4618c7f0 4814_ACEOF
76c602c2 4815# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
cd9a469c 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
4618c7f0 4822rm -f conftest.make
76c602c2 4823fi
cd9a469c 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; }
76c602c2 4827 SET_MAKE=
4828else
cd9a469c 4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830$as_echo "no" >&6; }
76c602c2 4831 SET_MAKE="MAKE=${MAKE-make}"
4832fi
4833
e6312df0 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
cd9a469c 4845ac_config_commands="$ac_config_commands depfiles"
e6312df0 4846
4847
4848am_make=${MAKE-make}
4849cat > confinc << 'END'
4850am__doit:
cd9a469c 4851 @echo this is the am__doit target
e6312df0 4852.PHONY: am__doit
4853END
4854# If we don't find an include directive, just comment out the code.
cd9a469c 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; }
e6312df0 4857am__include="#"
4858am__quote=
4859_am_result=none
4860# First try GNU make style include.
4861echo "include confinc" > confmf
cd9a469c 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
e6312df0 4870# Now try BSD make style include.
4871if test "$am__include" = "#"; then
4872 echo '.include "confinc"' > confmf
cd9a469c 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
e6312df0 4880fi
4881
4882
cd9a469c 4883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4884$as_echo "$_am_result" >&6; }
e6312df0 4885rm -f confinc confmf
4886
cd9a469c 4887# Check whether --enable-dependency-tracking was given.
4888if test "${enable_dependency_tracking+set}" = set; then :
4889 enableval=$enable_dependency_tracking;
4890fi
e6312df0 4891
e6312df0 4892if test "x$enable_dependency_tracking" != xno; then
4893 am_depcomp="$ac_aux_dir/depcomp"
4894 AMDEPBACKSLASH='\'
4895fi
cd9a469c 4896 if test "x$enable_dependency_tracking" != xno; then
e6312df0 4897 AMDEP_TRUE=
4898 AMDEP_FALSE='#'
4899else
4900 AMDEP_TRUE='#'
4901 AMDEP_FALSE=
4902fi
44232b6b 4903
cfeee62d 4904
cd9a469c 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
cfeee62d 4913fi
4618c7f0 4914
e6312df0 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
4618c7f0 4930cat >>confdefs.h <<_ACEOF
44232b6b 4931#define PACKAGE "$PACKAGE"
4618c7f0 4932_ACEOF
44232b6b 4933
4618c7f0 4934
4935cat >>confdefs.h <<_ACEOF
44232b6b 4936#define VERSION "$VERSION"
4618c7f0 4937_ACEOF
44232b6b 4938
e6312df0 4939# Some tools Automake needs.
4940
4941ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4942
4943
4944AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
44232b6b 4945
59b13f6a 4946
e6312df0 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
e6312df0 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
cd9a469c 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
e6312df0 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
cd9a469c 4996 am__universal=false
4997 case " $depcc " in #(
4998 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4999 esac
5000
e6312df0 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
cd9a469c 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"
e6312df0 5024 case $depmode in
cd9a469c 5025 gcc)
5026 # This depmode causes a compiler race in universal mode.
5027 test "$am__universal" = false || continue
5028 ;;
e6312df0 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 ;;
cd9a469c 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 ;;
e6312df0 5045 none) break ;;
5046 esac
e6312df0 5047 if depmode=$depmode \
cd9a469c 5048 source=sub/conftest.c object=$am__obj \
e6312df0 5049 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
cd9a469c 5050 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
e6312df0 5051 >/dev/null 2>conftest.err &&
cd9a469c 5052 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
e6312df0 5053 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
cd9a469c 5054 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
e6312df0 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
cd9a469c 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; }
e6312df0 5080CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5081
cd9a469c 5082 if
e6312df0 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
cd9a469c 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
44232b6b 5099else
e6312df0 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
cd9a469c 5123 am__universal=false
5124 case " $depcc " in #(
5125 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5126 esac
5127
e6312df0 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
cd9a469c 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"
e6312df0 5151 case $depmode in
cd9a469c 5152 gcc)
5153 # This depmode causes a compiler race in universal mode.
5154 test "$am__universal" = false || continue
5155 ;;
e6312df0 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 ;;
cd9a469c 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 ;;
e6312df0 5172 none) break ;;
5173 esac
e6312df0 5174 if depmode=$depmode \
cd9a469c 5175 source=sub/conftest.c object=$am__obj \
e6312df0 5176 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
cd9a469c 5177 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
e6312df0 5178 >/dev/null 2>conftest.err &&
cd9a469c 5179 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
e6312df0 5180 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
cd9a469c 5181 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
e6312df0 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
59b13f6a 5202fi
5203
e6312df0 5204fi
cd9a469c 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; }
e6312df0 5207CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5208
cd9a469c 5209 if
e6312df0 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='#'
cfeee62d 5214else
e6312df0 5215 am__fastdepCXX_TRUE='#'
5216 am__fastdepCXX_FALSE=
44232b6b 5217fi
5218
5219
2c60951b 5220
e6312df0 5221
4618c7f0 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.
2c60951b 5224set dummy ${ac_tool_prefix}as; ac_word=$2
cd9a469c 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
2c60951b 5229else
5230 if test -n "$AS"; then
5231 ac_cv_prog_AS="$AS" # Let the user override the test.
5232else
4618c7f0 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=.
cd9a469c 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
4618c7f0 5240 ac_cv_prog_AS="${ac_tool_prefix}as"
cd9a469c 5241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618c7f0 5242 break 2
5243 fi
5244done
cd9a469c 5245 done
5246IFS=$as_save_IFS
4618c7f0 5247
2c60951b 5248fi
5249fi
4618c7f0 5250AS=$ac_cv_prog_AS
2c60951b 5251if test -n "$AS"; then
cd9a469c 5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5253$as_echo "$AS" >&6; }
2c60951b 5254else
cd9a469c 5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256$as_echo "no" >&6; }
4618c7f0 5257fi
5258
cd9a469c 5259
2c60951b 5260fi
4618c7f0 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
cd9a469c 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
4618c7f0 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=.
cd9a469c 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
4618c7f0 5280 ac_cv_prog_ac_ct_AS="as"
cd9a469c 5281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618c7f0 5282 break 2
5283 fi
5284done
cd9a469c 5285 done
5286IFS=$as_save_IFS
2c60951b 5287
4618c7f0 5288fi
5289fi
5290ac_ct_AS=$ac_cv_prog_ac_ct_AS
5291if test -n "$ac_ct_AS"; then
cd9a469c 5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5293$as_echo "$ac_ct_AS" >&6; }
4618c7f0 5294else
cd9a469c 5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296$as_echo "no" >&6; }
4618c7f0 5297fi
2c60951b 5298
cd9a469c 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
4618c7f0 5310else
5311 AS="$ac_cv_prog_AS"
5312fi
2c60951b 5313
33e6be9f 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
cd9a469c 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
33e6be9f 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=.
cd9a469c 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
33e6be9f 5332 ac_cv_prog_LD="${ac_tool_prefix}ld"
cd9a469c 5333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33e6be9f 5334 break 2
5335 fi
5336done
cd9a469c 5337 done
5338IFS=$as_save_IFS
33e6be9f 5339
5340fi
5341fi
5342LD=$ac_cv_prog_LD
5343if test -n "$LD"; then
cd9a469c 5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5345$as_echo "$LD" >&6; }
33e6be9f 5346else
cd9a469c 5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5348$as_echo "no" >&6; }
33e6be9f 5349fi
5350
cd9a469c 5351
33e6be9f 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
cd9a469c 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
33e6be9f 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=.
cd9a469c 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
33e6be9f 5372 ac_cv_prog_ac_ct_LD="ld"
cd9a469c 5373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33e6be9f 5374 break 2
5375 fi
5376done
cd9a469c 5377 done
5378IFS=$as_save_IFS
33e6be9f 5379
5380fi
5381fi
5382ac_ct_LD=$ac_cv_prog_ac_ct_LD
5383if test -n "$ac_ct_LD"; then
cd9a469c 5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
5385$as_echo "$ac_ct_LD" >&6; }
33e6be9f 5386else
cd9a469c 5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388$as_echo "no" >&6; }
33e6be9f 5389fi
5390
cd9a469c 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
33e6be9f 5402else
5403 LD="$ac_cv_prog_LD"
5404fi
5405
4618c7f0 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.
2c60951b 5408set dummy ${ac_tool_prefix}ar; ac_word=$2
cd9a469c 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
2c60951b 5413else
5414 if test -n "$AR"; then
5415 ac_cv_prog_AR="$AR" # Let the user override the test.
5416else
4618c7f0 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=.
cd9a469c 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
4618c7f0 5424 ac_cv_prog_AR="${ac_tool_prefix}ar"
cd9a469c 5425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618c7f0 5426 break 2
5427 fi
5428done
cd9a469c 5429 done
5430IFS=$as_save_IFS
4618c7f0 5431
2c60951b 5432fi
5433fi
4618c7f0 5434AR=$ac_cv_prog_AR
2c60951b 5435if test -n "$AR"; then
cd9a469c 5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5437$as_echo "$AR" >&6; }
2c60951b 5438else
cd9a469c 5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5440$as_echo "no" >&6; }
4618c7f0 5441fi
5442
cd9a469c 5443
2c60951b 5444fi
4618c7f0 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
cd9a469c 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
4618c7f0 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=.
cd9a469c 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
4618c7f0 5464 ac_cv_prog_ac_ct_AR="ar"
cd9a469c 5465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618c7f0 5466 break 2
5467 fi
5468done
cd9a469c 5469 done
5470IFS=$as_save_IFS
2c60951b 5471
4618c7f0 5472fi
5473fi
5474ac_ct_AR=$ac_cv_prog_ac_ct_AR
5475if test -n "$ac_ct_AR"; then
cd9a469c 5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5477$as_echo "$ac_ct_AR" >&6; }
4618c7f0 5478else
cd9a469c 5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480$as_echo "no" >&6; }
4618c7f0 5481fi
2c60951b 5482
cd9a469c 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
4618c7f0 5494else
5495 AR="$ac_cv_prog_AR"
5496fi
2c60951b 5497
4618c7f0 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.
2c60951b 5500set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cd9a469c 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
2c60951b 5505else
5506 if test -n "$RANLIB"; then
5507 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5508else
4618c7f0 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=.
cd9a469c 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
4618c7f0 5516 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cd9a469c 5517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618c7f0 5518 break 2
5519 fi
5520done
cd9a469c 5521 done
5522IFS=$as_save_IFS
4618c7f0 5523
2c60951b 5524fi
5525fi
4618c7f0 5526RANLIB=$ac_cv_prog_RANLIB
2c60951b 5527if test -n "$RANLIB"; then
cd9a469c 5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5529$as_echo "$RANLIB" >&6; }
2c60951b 5530else
cd9a469c 5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5532$as_echo "no" >&6; }
2c60951b 5533fi
5534
cd9a469c 5535
4618c7f0 5536fi
2c60951b 5537if test -z "$ac_cv_prog_RANLIB"; then
4618c7f0 5538 ac_ct_RANLIB=$RANLIB
2c60951b 5539 # Extract the first word of "ranlib", so it can be a program name with args.
5540set dummy ranlib; ac_word=$2
cd9a469c 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
2c60951b 5545else
4618c7f0 5546 if test -n "$ac_ct_RANLIB"; then
5547 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2c60951b 5548else
4618c7f0 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=.
cd9a469c 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
4618c7f0 5556 ac_cv_prog_ac_ct_RANLIB="ranlib"
cd9a469c 5557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618c7f0 5558 break 2
5559 fi
5560done
cd9a469c 5561 done
5562IFS=$as_save_IFS
4618c7f0 5563
2c60951b 5564fi
5565fi
4618c7f0 5566ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5567if test -n "$ac_ct_RANLIB"; then
cd9a469c 5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5569$as_echo "$ac_ct_RANLIB" >&6; }
2c60951b 5570else
cd9a469c 5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572$as_echo "no" >&6; }
2c60951b 5573fi
5574
cd9a469c 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
2c60951b 5586else
4618c7f0 5587 RANLIB="$ac_cv_prog_RANLIB"
2c60951b 5588fi
5589
75250207 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
63a06cfe 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
cd9a469c 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
63a06cfe 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=.
cd9a469c 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
63a06cfe 5701 ac_cv_prog_AWK="$ac_prog"
cd9a469c 5702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
63a06cfe 5703 break 2
5704 fi
5705done
cd9a469c 5706 done
5707IFS=$as_save_IFS
63a06cfe 5708
5709fi
5710fi
5711AWK=$ac_cv_prog_AWK
5712if test -n "$AWK"; then
cd9a469c 5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5714$as_echo "$AWK" >&6; }
63a06cfe 5715else
cd9a469c 5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717$as_echo "no" >&6; }
63a06cfe 5718fi
5719
cd9a469c 5720
63a06cfe 5721 test -n "$AWK" && break
5722done
5723
65bf3316 5724for ac_prog in jar fastjar gjar
b0cb8c44 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
cd9a469c 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
b0cb8c44 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=.
cd9a469c 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
b0cb8c44 5743 ac_cv_prog_JAR="$ac_prog"
cd9a469c 5744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b0cb8c44 5745 break 2
5746 fi
5747done
cd9a469c 5748 done
5749IFS=$as_save_IFS
b0cb8c44 5750
5751fi
5752fi
5753JAR=$ac_cv_prog_JAR
5754if test -n "$JAR"; then
cd9a469c 5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
5756$as_echo "$JAR" >&6; }
b0cb8c44 5757else
cd9a469c 5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759$as_echo "no" >&6; }
b0cb8c44 5760fi
5761
cd9a469c 5762
b0cb8c44 5763 test -n "$JAR" && break
5764done
63a06cfe 5765test -n "$JAR" || JAR="no"
2c60951b 5766
63a06cfe 5767# Extract the first word of "zip", so it can be a program name with args.
5768set dummy zip; ac_word=$2
cd9a469c 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
63a06cfe 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=.
cd9a469c 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
63a06cfe 5786 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 5787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
63a06cfe 5788 break 2
5789 fi
5790done
cd9a469c 5791 done
5792IFS=$as_save_IFS
63a06cfe 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
cd9a469c 5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
5801$as_echo "$ZIP" >&6; }
63a06cfe 5802else
cd9a469c 5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5804$as_echo "no" >&6; }
63a06cfe 5805fi
5806
cd9a469c 5807
63a06cfe 5808# Extract the first word of "unzip", so it can be a program name with args.
5809set dummy unzip; ac_word=$2
cd9a469c 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
63a06cfe 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=.
cd9a469c 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
63a06cfe 5827 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 5828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
63a06cfe 5829 break 2
5830 fi
5831done
cd9a469c 5832 done
5833IFS=$as_save_IFS
63a06cfe 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
cd9a469c 5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
5842$as_echo "$UNZIP" >&6; }
63a06cfe 5843else
cd9a469c 5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5845$as_echo "no" >&6; }
63a06cfe 5846fi
5847
f250df08 5848
cd9a469c 5849
f250df08 5850# We need a jar that supports -@. This is a GNU extension.
5851if test "$JAR" != no; then
5852 rm -f config-test.jar
c4763d6d 5853 echo $srcdir/configure.ac | $JAR -cf@ config-test.jar >/dev/null 2>&1
f250df08 5854 if test -f config-test.jar; then
5855 rm -f config-test.jar
5856 else
5857 JAR=no
5858 fi
5859fi
5860
8b6c1d2e 5861# Prefer the jar we found, but fall back to our jar script.
63a06cfe 5862if test "$JAR" = no; then
8b6c1d2e 5863 if test "$ZIP" = no; then
cd9a469c 5864 as_fn_error "cannot find neither zip nor jar, cannot continue" "$LINENO" 5
8b6c1d2e 5865 else
5866 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
5867 JAR=`pwd`/scripts/jar
63a06cfe 5868 fi
63a06cfe 5869fi
5870
9dc37dac 5871
2c60951b 5872
5873
cd9a469c 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
2c60951b 5879else
5880 USE_MAINTAINER_MODE=no
cd9a469c 5881fi
2c60951b 5882
cd9a469c 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
2c60951b 5886 MAINTAINER_MODE_TRUE=
5887 MAINTAINER_MODE_FALSE='#'
5888else
5889 MAINTAINER_MODE_TRUE='#'
5890 MAINTAINER_MODE_FALSE=
5891fi
e6312df0 5892
2c60951b 5893 MAINT=$MAINTAINER_MODE_TRUE
76c602c2 5894
ee12f7ca 5895
2c60951b 5896
2c60951b 5897
2c60951b 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
4b69d5f2 5903# libgcj_sublib_ltflags - host specific Libtool flags
75250207 5904# libgcj_sublib_core_extra_deps - host specific extra
5905# dependencies for core sublib
5906# (these last two only used when building sublibs)
fa280a58 5907# and a number of others; see the list at the start of the file.
2c60951b 5908
5909libgcj_cflags=
5910libgcj_cxxflags=
5911libgcj_javaflags=
4b69d5f2 5912libgcj_sublib_ltflags=
75250207 5913libgcj_sublib_core_extra_deps=
2c60951b 5914
5c708409 5915. ${srcdir}/configure.host
2c60951b 5916
cd9a469c 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
157df58c 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
cd9a469c 5929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5930$as_echo "$acl_cv_prog_gnu_ld" >&6; }
157df58c 5931with_gnu_ld=$acl_cv_prog_gnu_ld
5932
cd9a469c 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
157df58c 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
cd9a469c 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; }
157df58c 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
ed023f07 5960# for windows native targets enforce export of all symbols for shared libgcj.
5961libgcj_ld_export_all=
5962case "$host" in
5963 *mingw*)
5964 libgcj_ld_export_all=-Wl,--export-all-symbols
5965 ;;
5966 *)
5967 ;;
5968esac
5969
2c60951b 5970LIBGCJ_CFLAGS="${libgcj_cflags}"
5971LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
5972LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4b69d5f2 5973LIBGCJ_SUBLIB_LTFLAGS="${libgcj_sublib_ltflags}"
75250207 5974LIBGCJ_SUBLIB_CORE_EXTRA_DEPS="${libgcj_sublib_core_extra_deps}"
a4ccc41f 5975LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
157df58c 5976LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
ed023f07 5977LIBGCJ_LD_EXPORT_ALL="${libgcj_ld_export_all}"
5978
157df58c 5979
a4ccc41f 5980
2c60951b 5981
5982
5983
5984
4b69d5f2 5985
75250207 5986
ce5bb78c 5987# Only use libltdl for non-newlib builds.
5988if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
cd9a469c 5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
5990$as_echo_n "checking dynamic linker characteristics... " >&6; }
ce5bb78c 5991library_names_spec=
5992libname_spec='lib$name'
5993soname_spec=
5994shrext=".so"
5995postinstall_cmds=
5996postuninstall_cmds=
5997finish_cmds=
5998finish_eval=
5999shlibpath_var=
6000shlibpath_overrides_runpath=unknown
6001version_type=none
6002dynamic_linker="$host_os ld.so"
6003sys_lib_dlsearch_path_spec="/lib /usr/lib"
6004if test "$GCC" = yes; then
e1ef8bb6 6005 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
ce5bb78c 6006 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6007 # if the path contains ";" then we assume it to be the separator
6008 # otherwise default to the standard path separator (i.e. ":") - it is
6009 # assumed that no part of a normal pathname contains ";" but that should
6010 # okay in the real world where ";" in dirpaths is itself problematic.
e1ef8bb6 6011 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
ce5bb78c 6012 else
e1ef8bb6 6013 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
ce5bb78c 6014 fi
6015else
6016 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6017fi
6018need_lib_prefix=unknown
6019hardcode_into_libs=no
6020
6021# when you set need_version to no, make sure it does not cause -set_version
6022# flags to be left without arguments
6023need_version=unknown
6024
6025case $host_os in
6026aix3*)
6027 version_type=linux
6028 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6029 shlibpath_var=LIBPATH
6030
6031 # AIX 3 has no versioning support, so we append a major version to the name.
6032 soname_spec='${libname}${release}${shared_ext}$major'
6033 ;;
6034
a7798917 6035aix[4-9]*)
ce5bb78c 6036 version_type=linux
6037 need_lib_prefix=no
6038 need_version=no
6039 hardcode_into_libs=yes
6040 if test "$host_cpu" = ia64; then
6041 # AIX 5 supports IA64
6042 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6043 shlibpath_var=LD_LIBRARY_PATH
6044 else
6045 # With GCC up to 2.95.x, collect2 would create an import file
6046 # for dependence libraries. The import file would start with
6047 # the line `#! .'. This would cause the generated library to
6048 # depend on `.', always an invalid library. This was fixed in
6049 # development snapshots of GCC prior to 3.0.
6050 case $host_os in
6051 aix4 | aix4.[01] | aix4.[01].*)
6052 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6053 echo ' yes '
6054 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6055 :
6056 else
6057 can_build_shared=no
6058 fi
6059 ;;
6060 esac
6061 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6062 # soname into executable. Probably we can add versioning support to
6063 # collect2, so additional links can be useful in future.
6064 if test "$aix_use_runtimelinking" = yes; then
6065 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6066 # instead of lib<name>.a to let people know that these are not
6067 # typical AIX shared libraries.
6068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6069 else
6070 # We preserve .a as extension for shared libraries through AIX4.2
6071 # and later when we are not doing run time linking.
6072 library_names_spec='${libname}${release}.a $libname.a'
6073 soname_spec='${libname}${release}${shared_ext}$major'
6074 fi
6075 shlibpath_var=LIBPATH
6076 fi
6077 ;;
6078
6079amigaos*)
6080 library_names_spec='$libname.ixlibrary $libname.a'
6081 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6082 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
6083 ;;
6084
6085beos*)
6086 library_names_spec='${libname}${shared_ext}'
6087 dynamic_linker="$host_os ld.so"
6088 shlibpath_var=LIBRARY_PATH
6089 ;;
6090
6091bsdi4*)
6092 version_type=linux
6093 need_version=no
6094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6095 soname_spec='${libname}${release}${shared_ext}$major'
6096 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6097 shlibpath_var=LD_LIBRARY_PATH
6098 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6099 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6100 # the default ld.so.conf also contains /usr/contrib/lib and
6101 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6102 # libtool to hard-code these into programs
6103 ;;
6104
6105cygwin* | mingw* | pw32*)
6106 version_type=windows
6107 shrext=".dll"
6108 need_version=no
6109 need_lib_prefix=no
6110
6111 case $GCC,$host_os in
6112 yes,cygwin* | yes,mingw* | yes,pw32*)
6113 library_names_spec='$libname.dll.a'
6114 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6115 postinstall_cmds='base_file=`basename \${file}`~
6116 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6117 dldir=$destdir/`dirname \$dlpath`~
6118 test -d \$dldir || mkdir -p \$dldir~
6119 $install_prog $dir/$dlname \$dldir/$dlname'
6120 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6121 dlpath=$dir/\$dldll~
6122 $rm \$dlpath'
6123 shlibpath_overrides_runpath=yes
6124
6125 case $host_os in
6126 cygwin*)
6127 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
e1ef8bb6 6128 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ce5bb78c 6129 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
6130 ;;
6131 mingw*)
6132 # MinGW DLLs use traditional 'lib' prefix
e1ef8bb6 6133 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6134 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
ce5bb78c 6135 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6136 # It is most probably a Windows format PATH printed by
6137 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6138 # path with ; separators, and with drive letters. We can handle the
6139 # drive letters (cygwin fileutils understands them), so leave them,
6140 # especially as we might pass files found there to a mingw objdump,
6141 # which wouldn't understand a cygwinified path. Ahh.
e1ef8bb6 6142 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
ce5bb78c 6143 else
e1ef8bb6 6144 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
ce5bb78c 6145 fi
6146 ;;
6147 pw32*)
6148 # pw32 DLLs use 'pw' prefix rather than 'lib'
e1ef8bb6 6149 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
ce5bb78c 6150 ;;
6151 esac
6152 ;;
6153
6154 *)
e1ef8bb6 6155 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
ce5bb78c 6156 ;;
6157 esac
6158 dynamic_linker='Win32 ld.exe'
6159 # FIXME: first we should search . and the directory the executable is in
6160 shlibpath_var=PATH
6161 ;;
6162
6163darwin* | rhapsody*)
6164 dynamic_linker="$host_os dyld"
6165 version_type=darwin
6166 need_lib_prefix=no
6167 need_version=no
6168 # FIXME: Relying on posixy $() will cause problems for
6169 # cross-compilation, but unfortunately the echo tests do not
6170 # yet detect zsh echo's removal of \ escapes.
6171 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6172 soname_spec='${libname}${release}${major}$shared_ext'
6173 shlibpath_overrides_runpath=yes
6174 shlibpath_var=DYLD_LIBRARY_PATH
6175 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
6176 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6177 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6178 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
6179 fi
6180 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6181 ;;
6182
6183dgux*)
6184 version_type=linux
6185 need_lib_prefix=no
6186 need_version=no
6187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6188 soname_spec='${libname}${release}${shared_ext}$major'
6189 shlibpath_var=LD_LIBRARY_PATH
6190 ;;
6191
ce5bb78c 6192freebsd*)
6193 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6194 version_type=freebsd-$objformat
6195 case $version_type in
6196 freebsd-elf*)
6197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6198 need_version=no
6199 need_lib_prefix=no
6200 ;;
6201 freebsd-*)
6202 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6203 need_version=yes
6204 ;;
6205 esac
6206 shlibpath_var=LD_LIBRARY_PATH
6207 case $host_os in
6208 freebsd2*)
6209 shlibpath_overrides_runpath=yes
6210 ;;
6211 freebsd3.01* | freebsdelf3.01*)
6212 shlibpath_overrides_runpath=yes
6213 hardcode_into_libs=yes
6214 ;;
6215 *) # from 3.2 on
6216 shlibpath_overrides_runpath=no
6217 hardcode_into_libs=yes
6218 ;;
6219 esac
6220 ;;
2c60951b 6221
ce5bb78c 6222gnu*)
6223 version_type=linux
6224 need_lib_prefix=no
6225 need_version=no
6226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6227 soname_spec='${libname}${release}${shared_ext}$major'
6228 shlibpath_var=LD_LIBRARY_PATH
6229 hardcode_into_libs=yes
6230 ;;
6231
6232hpux9* | hpux10* | hpux11*)
6233 # Give a soname corresponding to the major version so that dld.sl refuses to
6234 # link against other versions.
6235 version_type=sunos
6236 need_lib_prefix=no
6237 need_version=no
6238 case "$host_cpu" in
6239 ia64*)
6240 shrext='.so'
6241 hardcode_into_libs=yes
6242 dynamic_linker="$host_os dld.so"
6243 shlibpath_var=LD_LIBRARY_PATH
6244 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6246 soname_spec='${libname}${release}${shared_ext}$major'
6247 if test "X$HPUX_IA64_MODE" = X32; then
6248 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6249 else
6250 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6251 fi
6252 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6253 ;;
6254 hppa*64*)
6255 shrext='.sl'
6256 hardcode_into_libs=yes
6257 dynamic_linker="$host_os dld.sl"
6258 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6259 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6261 soname_spec='${libname}${release}${shared_ext}$major'
6262 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6263 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6264 ;;
6265 *)
6266 shrext='.sl'
6267 dynamic_linker="$host_os dld.sl"
6268 shlibpath_var=SHLIB_PATH
6269 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6271 soname_spec='${libname}${release}${shared_ext}$major'
6272 ;;
6273 esac
6274 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6275 postinstall_cmds='chmod 555 $lib'
6276 ;;
6277
6278irix5* | irix6* | nonstopux*)
6279 case $host_os in
6280 nonstopux*) version_type=nonstopux ;;
6281 *)
6282 if test "$lt_cv_prog_gnu_ld" = yes; then
6283 version_type=linux
6284 else
6285 version_type=irix
6286 fi ;;
6287 esac
6288 need_lib_prefix=no
6289 need_version=no
6290 soname_spec='${libname}${release}${shared_ext}$major'
6291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6292 case $host_os in
6293 irix5* | nonstopux*)
6294 libsuff= shlibsuff=
6295 ;;
6296 *)
6297 case $LD in # libtool.m4 will add one of these switches to LD
6298 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6299 libsuff= shlibsuff= libmagic=32-bit;;
6300 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6301 libsuff=32 shlibsuff=N32 libmagic=N32;;
6302 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6303 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6304 *) libsuff= shlibsuff= libmagic=never-match;;
6305 esac
6306 ;;
6307 esac
6308 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6309 shlibpath_overrides_runpath=no
6310 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6311 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6312 hardcode_into_libs=yes
6313 ;;
6314
6315# No shared lib support for Linux oldld, aout, or coff.
6316linux*oldld* | linux*aout* | linux*coff*)
6317 dynamic_linker=no
6318 ;;
6319
6320# This must be Linux ELF.
736ed027 6321linux*|k*bsd*-gnu)
ce5bb78c 6322 version_type=linux
6323 need_lib_prefix=no
6324 need_version=no
6325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6326 soname_spec='${libname}${release}${shared_ext}$major'
6327 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6328 shlibpath_var=LD_LIBRARY_PATH
6329 shlibpath_overrides_runpath=no
6330 # This implies no fast_install, which is unacceptable.
6331 # Some rework will be needed to allow for fast_install
6332 # before this can be enabled.
6333 hardcode_into_libs=yes
6334
6335 # We used to test for /lib/ld.so.1 and disable shared libraries on
6336 # powerpc, because MkLinux only supported shared libraries with the
6337 # GNU dynamic linker. Since this was broken with cross compilers,
6338 # most powerpc-linux boxes support dynamic linking these days and
6339 # people can always --disable-shared, the test was removed, and we
6340 # assume the GNU/Linux dynamic linker is in use.
6341 dynamic_linker='GNU/Linux ld.so'
6342 ;;
6343
6344netbsd*)
6345 version_type=sunos
6346 need_lib_prefix=no
6347 need_version=no
6348 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6350 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6351 dynamic_linker='NetBSD (a.out) ld.so'
6352 else
6353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
6354 soname_spec='${libname}${release}${shared_ext}$major'
6355 dynamic_linker='NetBSD ld.elf_so'
6356 fi
6357 shlibpath_var=LD_LIBRARY_PATH
6358 shlibpath_overrides_runpath=yes
6359 hardcode_into_libs=yes
6360 ;;
6361
6362newsos6)
6363 version_type=linux
6364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6365 shlibpath_var=LD_LIBRARY_PATH
6366 shlibpath_overrides_runpath=yes
6367 ;;
6368
6369nto-qnx)
6370 version_type=linux
6371 need_lib_prefix=no
6372 need_version=no
6373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6374 soname_spec='${libname}${release}${shared_ext}$major'
6375 shlibpath_var=LD_LIBRARY_PATH
6376 shlibpath_overrides_runpath=yes
6377 ;;
6378
6379openbsd*)
6380 version_type=sunos
6381 need_lib_prefix=no
6382 need_version=no
6383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6384 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6385 shlibpath_var=LD_LIBRARY_PATH
6386 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6387 case $host_os in
6388 openbsd2.[89] | openbsd2.[89].*)
6389 shlibpath_overrides_runpath=no
6390 ;;
6391 *)
6392 shlibpath_overrides_runpath=yes
6393 ;;
6394 esac
6395 else
6396 shlibpath_overrides_runpath=yes
6397 fi
6398 ;;
6399
6400os2*)
6401 libname_spec='$name'
6402 shrext=".dll"
6403 need_lib_prefix=no
6404 library_names_spec='$libname${shared_ext} $libname.a'
6405 dynamic_linker='OS/2 ld.exe'
6406 shlibpath_var=LIBPATH
6407 ;;
6408
6409osf3* | osf4* | osf5*)
6410 version_type=osf
6411 need_lib_prefix=no
6412 need_version=no
6413 soname_spec='${libname}${release}${shared_ext}$major'
6414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6415 shlibpath_var=LD_LIBRARY_PATH
6416 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6417 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6418 ;;
6419
6420sco3.2v5*)
6421 version_type=osf
6422 soname_spec='${libname}${release}${shared_ext}$major'
6423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6424 shlibpath_var=LD_LIBRARY_PATH
6425 ;;
6426
6427solaris*)
6428 version_type=linux
6429 need_lib_prefix=no
6430 need_version=no
6431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6432 soname_spec='${libname}${release}${shared_ext}$major'
6433 shlibpath_var=LD_LIBRARY_PATH
6434 shlibpath_overrides_runpath=yes
6435 hardcode_into_libs=yes
6436 # ldd complains unless libraries are executable
6437 postinstall_cmds='chmod +x $lib'
6438 ;;
6439
6440sunos4*)
6441 version_type=sunos
6442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6443 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6444 shlibpath_var=LD_LIBRARY_PATH
6445 shlibpath_overrides_runpath=yes
6446 if test "$with_gnu_ld" = yes; then
6447 need_lib_prefix=no
6448 fi
6449 need_version=yes
6450 ;;
6451
6452sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6453 version_type=linux
6454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6455 soname_spec='${libname}${release}${shared_ext}$major'
6456 shlibpath_var=LD_LIBRARY_PATH
6457 case $host_vendor in
6458 sni)
6459 shlibpath_overrides_runpath=no
6460 need_lib_prefix=no
6461 export_dynamic_flag_spec='${wl}-Blargedynsym'
6462 runpath_var=LD_RUN_PATH
6463 ;;
6464 siemens)
6465 need_lib_prefix=no
6466 ;;
6467 motorola)
6468 need_lib_prefix=no
6469 need_version=no
6470 shlibpath_overrides_runpath=no
6471 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6472 ;;
6473 esac
6474 ;;
6475
6476sysv4*MP*)
6477 if test -d /usr/nec ;then
6478 version_type=linux
6479 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6480 soname_spec='$libname${shared_ext}.$major'
6481 shlibpath_var=LD_LIBRARY_PATH
6482 fi
6483 ;;
6484
6485uts4*)
6486 version_type=linux
6487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6488 soname_spec='${libname}${release}${shared_ext}$major'
6489 shlibpath_var=LD_LIBRARY_PATH
6490 ;;
6491
6492*)
6493 dynamic_linker=no
6494 ;;
6495esac
cd9a469c 6496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
6497$as_echo "$dynamic_linker" >&6; }
ce5bb78c 6498test "$dynamic_linker" = no && can_build_shared=no
6499
6500
cd9a469c 6501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
6502$as_echo_n "checking which variable specifies run-time library path... " >&6; }
6503if test "${libltdl_cv_shlibpath_var+set}" = set; then :
6504 $as_echo_n "(cached) " >&6
ce5bb78c 6505else
6506 libltdl_cv_shlibpath_var="$shlibpath_var"
6507fi
cd9a469c 6508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
6509$as_echo "$libltdl_cv_shlibpath_var" >&6; }
ce5bb78c 6510if test -n "$libltdl_cv_shlibpath_var"; then
6511
6512cat >>confdefs.h <<_ACEOF
6513#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
6514_ACEOF
6515
6516fi
6517
6518fi
6519
cd9a469c 6520ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
2c60951b 6521
a63c2657 6522
fa280a58 6523# Possibly build libgcj as many sub-libraries.
6524# Check whether --enable-libgcj-sublibs was given.
6525if test "${enable_libgcj_sublibs+set}" = set; then :
6526 enableval=$enable_libgcj_sublibs;
6527fi
6528
6529
6530if test -z "$enable_libgcj_sublibs"; then
6531 enable_libgcj_sublibs=$enable_libgcj_sublibs_default
6532fi
6533 if test "$enable_libgcj_sublibs" = yes; then
6534 BUILD_SUBLIBS_TRUE=
6535 BUILD_SUBLIBS_FALSE='#'
6536else
6537 BUILD_SUBLIBS_TRUE='#'
6538 BUILD_SUBLIBS_FALSE=
6539fi
6540
6541if test "$enable_libgcj_sublibs" = yes ; then
6542 # In theory we could make do with only one override and simply
6543 # tag "_bc" onto the end of it when we use it to generate the
6544 # spec, but that's an ugly thing to do when there are multiple
6545 # words in the string and you're relying on the ordering to
6546 # append the correct one.
6547 libgcj_spec_lgcj_override="-lgcj-noncore -lgcj"
6548 libgcj_spec_lgcj_bc_override="-lgcj-noncore -lgcj_bc"
6549fi
6550
6551
a63c2657 6552# See if the user has requested runtime debugging.
6553LIBGCJDEBUG="disable"
6554
cd9a469c 6555# Check whether --enable-libgcj-debug was given.
6556if test "${enable_libgcj_debug+set}" = set; then :
6557 enableval=$enable_libgcj_debug; if test "$enable_libgcj_debug" = yes; then
a63c2657 6558
cd9a469c 6559$as_echo "#define __GCJ_DEBUG 1" >>confdefs.h
a63c2657 6560
6561 LIBGCJDEBUG="enable"
6562 fi
cd9a469c 6563fi
6564
a63c2657 6565
65bf3316 6566
cd9a469c 6567# Check whether --with-escher was given.
6568if test "${with_escher+set}" = set; then :
6569 withval=$with_escher;
6570fi
65bf3316 6571
65bf3316 6572case "$with_escher" in
6573"")
6574 use_escher=false
6575 ;;
6576"no")
6577 use_escher=false
6578 ;;
6579"yes")
cd9a469c 6580 as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
65bf3316 6581 ;;
6582*)
6583 use_escher=true
6584 ;;
6585esac
6586
a63c2657 6587# Determine which AWT peer libraries to build
cd9a469c 6588# Check whether --enable-java-awt was given.
6589if test "${enable_java_awt+set}" = set; then :
6590 enableval=$enable_java_awt;
6591fi
a63c2657 6592
a63c2657 6593
6594peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6595use_xlib_awt=""
6596use_gtk_awt=""
b2382601 6597use_qt_awt=""
65bf3316 6598use_x_awt=""
a63c2657 6599# The default toolkit to use is the first one specified.
6600TOOLKIT=
6601
6602
6603for peer in $peerlibs ; do
6604 case $peer in
6605 xlib)
6606 if test "$no_x" = yes; then
6607 echo "*** xlib peers requested but no X library available" 1>&2
6608 exit 1
6609 else
653cadd5 6610 use_xlib_awt="yes"
6611 if test -z "$TOOLKIT"; then
6612 TOOLKIT=gnu.awt.xlib.XToolkit
6613 fi
a63c2657 6614 fi
6615 ;;
6616 gtk)
6617 if test "$no_x" = yes; then
b2382601 6618 echo "*** gtk peers requested but no X library available" 1>&2
a63c2657 6619 exit 1
6620 else
6621 use_gtk_awt=yes
6622 if test -z "$TOOLKIT"; then
6623 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
6624 fi
6625 fi
6626 ;;
b2382601 6627 qt)
6628 if test "$no_x" = yes; then
6629 # Perhaps we should admit the possibility of embedded Qt.
6630 echo "*** Qt peers requested but no X library available" 1>&2
6631 exit 1
6632 else
6633 use_qt_awt=yes
6634 if test -z "$TOOLKIT"; then
6635 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
6636 fi
6637 fi
6638 ;;
65bf3316 6639 x)
6640 use_x_awt=yes
6641 if test -z "$TOOLKIT"; then
6642 TOOLKIT=gnu.java.awt.peer.x.XToolkit
6643 fi
6644 ;;
a63c2657 6645 no)
6646 use_xlib_awt=
6647 use_gtk_awt=
b2382601 6648 use_qt_awt=
65bf3316 6649 use_x_awt=
a63c2657 6650 break
6651 ;;
6652 *)
6653 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6654 exit 1
6655 esac
6656done
6657
cd9a469c 6658 if test "$use_xlib_awt" = yes; then
a63c2657 6659 XLIB_AWT_TRUE=
6660 XLIB_AWT_FALSE='#'
6661else
6662 XLIB_AWT_TRUE='#'
6663 XLIB_AWT_FALSE=
6664fi
6665
cd9a469c 6666 if test "$use_x_awt" = yes; then
65bf3316 6667 X_AWT_TRUE=
6668 X_AWT_FALSE='#'
6669else
6670 X_AWT_TRUE='#'
6671 X_AWT_FALSE=
6672fi
6673
6674
6675
6676cat >>confdefs.h <<_ACEOF
6677#define AWT_TOOLKIT "$TOOLKIT"
6678_ACEOF
6679
6680
7d89f9e4 6681expanded_prefix=$prefix
6682if test "X$prefix" = XNONE; then
6683 expanded_prefix=${ac_default_prefix}
6684fi
6685
65bf3316 6686
6687cat >>confdefs.h <<_ACEOF
7d89f9e4 6688#define LIBGCJ_PREFIX "$expanded_prefix"
65bf3316 6689_ACEOF
6690
6691
653cadd5 6692# Create standard.omit based on decisions we just made.
6693cp $srcdir/standard.omit.in standard.omit
6694if test "$use_xlib_awt" != yes; then
6695 echo gnu/awt/xlib >> standard.omit
6696 echo gnu/gcj/xlib >> standard.omit
6697fi
65bf3316 6698if test "$use_x_awt" != yes; then
6699 echo gnu/java/awt/peer/x >> standard.omit
6700fi
a63c2657 6701
53973c81 6702# Tools that need to be compiled against classpath's tools classes
26932698 6703: > vm-tools-packages
53973c81 6704for package in gnu/gcj/tools/gc_analyze ; do
6705 echo $package >> standard.omit
6706 echo $package >> vm-tools-packages
6707done
6708
a63c2657 6709if test -z "${with_multisubdir}"; then
6710 builddotdot=.
6711else
6712 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
6713fi
6714
6715NATIVE=yes
6716
65bf3316 6717# Which gcj and host gcj (for ecjx) do we use?
a63c2657 6718which_gcj=default
65bf3316 6719host_exeext=${ac_exeext}
cda5fe86 6720GCJ_FOR_ECJX='$(GCJ)'
6721GCC_FOR_ECJX='$(CXX)'
a63c2657 6722built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
6723if test -n "${with_cross_host}"; then
6724 # We are being configured with a cross compiler. We can't
6725 # use ac_exeext, because that is for the target platform.
6726 NATIVE=no
6727 cross_host_exeext=
65bf3316 6728 GCJ_FOR_ECJX="${with_cross_host}-gcj"
cda5fe86 6729 GCC_FOR_ECJX="${with_cross_host}-gcc"
a63c2657 6730 case "${with_cross_host}" in
6731 *mingw* | *cygwin*)
6732 cross_host_exeext=.exe
6733 ;;
6734 esac
65bf3316 6735 host_exeext=${cross_host_exeext}
a63c2657 6736 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
6737 if test x"$build_noncanonical" = x"$with_cross_host"; then
6738 # Ordinary cross (host!=target and host=build)
6739 which_gcj=built
6740 else
6741 # Canadian cross (host!=target and host!=build)
6742 which_gcj=cross
6743 fi
6744 else
6745 which_gcj=cross
6746 fi
6747else
6748 # We are being configured with a native or crossed-native compiler
6749 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
6750 if test x"$build" = x"$host"; then
6751 # True native build (host=target and host=build)
6752 which_gcj=built
6753 else
6754 # Crossed-native build (host=target and host!=build)
6755 which_gcj=cross
6756 fi
6757 else
6758 which_gcj=path
6759 fi
6760fi
bd1f9655 6761libgcjdir=`${PWDCMD-pwd}`
6762case $GCJ in
6763*" -B"*)
6764 # Just in case there is a comma in the build dir, quote it for the
6765 # sed command below.
6766 case $libgcjdir in
6767 *[,\\]*) qlibgcjdir=`echo "$libgcjdir" | sed 's:[,\\]:\\&:g'`;;
6768 *) qlibgcjdir=$libgcjdir;;
6769 esac
6770 GCJ=`echo "$GCJ" | sed "s, -B, -B$qlibgcjdir/&,"`
6771 ;;
6772*)
6773 GCJ=$GCJ" -B$libgcjdir/"
6774 ;;
6775esac
a63c2657 6776case "${which_gcj}" in
6777 built)
a63c2657 6778 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
a63c2657 6779 ;;
6780 cross)
6781 if test "x${with_newlib}" = "xyes"; then
6782 # FIXME (comment): Why is this needed?
e59be7e3 6783 LIBGCC_UNWIND_INCLUDE=
a63c2657 6784 fi
efe73d3a 6785 GCJH='$(target_noncanonical)-gcjh'
a63c2657 6786 ;;
6787 path)
a63c2657 6788 GCJH=gcjh
6789 ;;
6790esac
1020ce59 6791JAVAC="$GCJ -C"
6792export JAVAC
a63c2657 6793
6794
6795
65bf3316 6796
6797
cda5fe86 6798
a63c2657 6799# Create it, so that compile/link tests don't fail
6800test -f libgcj.spec || touch libgcj.spec
6801
6802
6803
6804# Set up to configure Classpath.
6805# FIXME: no supported way to pass args in autoconf.
65bf3316 6806# Disable tool wrappers to avoid ltdl.h configure check.
6807ac_configure_args="$ac_configure_args --disable-tool-wrappers"
a63c2657 6808ac_configure_args="$ac_configure_args --disable-load-library"
6809ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
6810ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
6811dir1=`cd $srcdir && pwd`
6812dir2=`pwd`
6813ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
6814ac_configure_args="$ac_configure_args --disable-core-jni"
6815ac_configure_args="$ac_configure_args --disable-examples"
6816ac_configure_args="$ac_configure_args --with-glibj=build"
d5c44166 6817if test "$browser_plugin_enabled" != yes; then
9a8abce4 6818 ac_configure_args="$ac_configure_args --disable-plugin"
d5c44166 6819else
6820 ac_configure_args="$ac_configure_args --enable-plugin"
9a8abce4 6821fi
ffde862e 6822if test "$gconf_enabled" != yes; then
6823 ac_configure_args="$ac_configure_args --disable-gconf-peer"
6824 ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
6825fi
a63c2657 6826if test "$use_gtk_awt" != yes; then
65bf3316 6827 ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
a63c2657 6828fi
b2382601 6829if test "$use_qt_awt" != yes; then
6830 ac_configure_args="$ac_configure_args --disable-qt-peer"
c211aca9 6831else
6832 # We need this as qt is disabled by default in classpath.
6833 ac_configure_args="$ac_configure_args --enable-qt-peer"
b2382601 6834fi
65bf3316 6835if test "$use_x_awt" != yes; then
6836 ac_configure_args="$ac_configure_args --without-escher"
6837else
6838 # We need this as escher is disabled by default in classpath.
6839 if test "$use_escher" != true; then
cd9a469c 6840 as_fn_error "Please supply an absolute path to the Escher library" "$LINENO" 5
65bf3316 6841 else
6842 ac_configure_args="$ac_configure_args --with-escher=$with_escher"
6843 fi
6844fi
2bc04335 6845if test "x$BUILD_GJDOC" = xno; then
6846 ac_configure_args="$ac_configure_args --disable-gjdoc"
6847fi
65bf3316 6848# -Werror causes unavoidable problems in code using alsa.
1020ce59 6849ac_configure_args="$ac_configure_args --disable-regen-headers"
65bf3316 6850ac_configure_args="$ac_configure_args --disable-Werror"
a63c2657 6851
18985956 6852# Only use libltdl for non-newlib builds.
828284cf 6853if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
df4b504c 6854 case $enable_ltdl_convenience in
cd9a469c 6855 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
b345481f 6856 "") enable_ltdl_convenience=yes
6857 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
6858 esac
8662f9d0 6859 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
542f9784 6860 LTDLINCL='-I${top_srcdir}/''libltdl'
6861 # For backwards non-gettext consistent compatibility...
6862 INCLTDL="$LTDLINCL"
6863
6864 enable_dlopen=yes
6865
b345481f 6866
4618c7f0 6867
b345481f 6868 DIRLTDL=libltdl
4618c7f0 6869
cd9a469c 6870$as_echo "#define USE_LTDL 1" >>confdefs.h
b345481f 6871
6872 # Sigh. Libtool's macro doesn't do the right thing.
6873 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
66a2e6b7 6874 # FIXME: this is a hack.
3354d061 6875 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
70822226 6876 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
b345481f 6877fi
6878
6879
6880
976af183 6881case `pwd` in
6882 *\ * | *\ *)
cd9a469c 6883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6884$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
976af183 6885esac
542f9784 6886
6887
542f9784 6888
e6408286 6889macro_version='2.2.7a'
6890macro_revision='1.3134'
542f9784 6891
6892
6893
6894
6895
6896
63a06cfe 6897
542f9784 6898
6899
6900
6901
6902
6903
976af183 6904ltmain="$ac_aux_dir/ltmain.sh"
542f9784 6905
e6408286 6906# Backslashify metacharacters that are still active within
6907# double-quoted strings.
6908sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6909
6910# Same as above, but do not quote variable references.
6911double_quote_subst='s/\(["`\\]\)/\\\1/g'
6912
6913# Sed substitution to delay expansion of an escaped shell variable in a
6914# double_quote_subst'ed string.
6915delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6916
6917# Sed substitution to delay expansion of an escaped single quote.
6918delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6919
6920# Sed substitution to avoid accidental globbing in evaled expressions
6921no_glob_subst='s/\*/\\\*/g'
6922
6923ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6924ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6925ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6926
6927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6928$as_echo_n "checking how to print strings... " >&6; }
6929# Test print first, because it will be a builtin if present.
6930if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6931 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6932 ECHO='print -r --'
6933elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6934 ECHO='printf %s\n'
6935else
6936 # Use this function as a fallback that always works.
6937 func_fallback_echo ()
6938 {
6939 eval 'cat <<_LTECHO_EOF
6940$1
6941_LTECHO_EOF'
6942 }
6943 ECHO='func_fallback_echo'
6944fi
6945
6946# func_echo_all arg...
6947# Invoke $ECHO with all args, space-separated.
6948func_echo_all ()
6949{
6950 $ECHO ""
6951}
6952
6953case "$ECHO" in
6954 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6955$as_echo "printf" >&6; } ;;
6956 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6957$as_echo "print -r" >&6; } ;;
6958 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6959$as_echo "cat" >&6; } ;;
6960esac
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
cd9a469c 6975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6976$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6977if test "${ac_cv_path_SED+set}" = set; then :
6978 $as_echo_n "(cached) " >&6
6979else
6980 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6981 for ac_i in 1 2 3 4 5 6 7; do
6982 ac_script="$ac_script$as_nl$ac_script"
6983 done
6984 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6985 { ac_script=; unset ac_script;}
6986 if test -z "$SED"; then
6987 ac_path_SED_found=false
6988 # Loop through the user's path and test for each of PROGNAME-LIST
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
542f9784 6990for as_dir in $PATH
6991do
6992 IFS=$as_save_IFS
6993 test -z "$as_dir" && as_dir=.
cd9a469c 6994 for ac_prog in sed gsed; do
542f9784 6995 for ac_exec_ext in '' $ac_executable_extensions; do
cd9a469c 6996 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6997 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6998# Check for GNU ac_path_SED and select it if it is found.
6999 # Check for GNU $ac_path_SED
7000case `"$ac_path_SED" --version 2>&1` in
7001*GNU*)
7002 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7003*)
7004 ac_count=0
7005 $as_echo_n 0123456789 >"conftest.in"
7006 while :
7007 do
7008 cat "conftest.in" "conftest.in" >"conftest.tmp"
7009 mv "conftest.tmp" "conftest.in"
7010 cp "conftest.in" "conftest.nl"
7011 $as_echo '' >> "conftest.nl"
7012 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7013 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7014 as_fn_arith $ac_count + 1 && ac_count=$as_val
7015 if test $ac_count -gt ${ac_path_SED_max-0}; then
7016 # Best one so far, save it but keep looking for a better one
7017 ac_cv_path_SED="$ac_path_SED"
7018 ac_path_SED_max=$ac_count
7019 fi
7020 # 10*(2^10) chars as input seems more than enough
7021 test $ac_count -gt 10 && break
7022 done
7023 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7024esac
7025
7026 $ac_path_SED_found && break 3
542f9784 7027 done
7028 done
cd9a469c 7029 done
542f9784 7030IFS=$as_save_IFS
cd9a469c 7031 if test -z "$ac_cv_path_SED"; then
7032 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
542f9784 7033 fi
cd9a469c 7034else
7035 ac_cv_path_SED=$SED
542f9784 7036fi
7037
cd9a469c 7038fi
7039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7040$as_echo "$ac_cv_path_SED" >&6; }
7041 SED="$ac_cv_path_SED"
7042 rm -f conftest.sed
542f9784 7043
7044test -z "$SED" && SED=sed
7045Xsed="$SED -e 1s/^X//"
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
cd9a469c 7057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7058$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7059if test "${ac_cv_path_GREP+set}" = set; then :
7060 $as_echo_n "(cached) " >&6
7061else
7062 if test -z "$GREP"; then
7063 ac_path_GREP_found=false
7064 # Loop through the user's path and test for each of PROGNAME-LIST
7065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7067do
7068 IFS=$as_save_IFS
7069 test -z "$as_dir" && as_dir=.
7070 for ac_prog in grep ggrep; do
7071 for ac_exec_ext in '' $ac_executable_extensions; do
7072 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7073 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7074# Check for GNU ac_path_GREP and select it if it is found.
7075 # Check for GNU $ac_path_GREP
7076case `"$ac_path_GREP" --version 2>&1` in
7077*GNU*)
7078 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7079*)
7080 ac_count=0
7081 $as_echo_n 0123456789 >"conftest.in"
7082 while :
7083 do
7084 cat "conftest.in" "conftest.in" >"conftest.tmp"
7085 mv "conftest.tmp" "conftest.in"
7086 cp "conftest.in" "conftest.nl"
7087 $as_echo 'GREP' >> "conftest.nl"
7088 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7089 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7090 as_fn_arith $ac_count + 1 && ac_count=$as_val
7091 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7092 # Best one so far, save it but keep looking for a better one
7093 ac_cv_path_GREP="$ac_path_GREP"
7094 ac_path_GREP_max=$ac_count
7095 fi
7096 # 10*(2^10) chars as input seems more than enough
7097 test $ac_count -gt 10 && break
7098 done
7099 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7100esac
7101
7102 $ac_path_GREP_found && break 3
7103 done
7104 done
7105 done
7106IFS=$as_save_IFS
7107 if test -z "$ac_cv_path_GREP"; then
7108 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7109 fi
7110else
7111 ac_cv_path_GREP=$GREP
7112fi
7113
7114fi
7115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7116$as_echo "$ac_cv_path_GREP" >&6; }
7117 GREP="$ac_cv_path_GREP"
7118
7119
7120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7121$as_echo_n "checking for egrep... " >&6; }
7122if test "${ac_cv_path_EGREP+set}" = set; then :
7123 $as_echo_n "(cached) " >&6
542f9784 7124else
cd9a469c 7125 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7126 then ac_cv_path_EGREP="$GREP -E"
7127 else
7128 if test -z "$EGREP"; then
7129 ac_path_EGREP_found=false
7130 # Loop through the user's path and test for each of PROGNAME-LIST
7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7133do
7134 IFS=$as_save_IFS
7135 test -z "$as_dir" && as_dir=.
7136 for ac_prog in egrep; do
7137 for ac_exec_ext in '' $ac_executable_extensions; do
7138 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7139 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7140# Check for GNU ac_path_EGREP and select it if it is found.
7141 # Check for GNU $ac_path_EGREP
7142case `"$ac_path_EGREP" --version 2>&1` in
7143*GNU*)
7144 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7145*)
7146 ac_count=0
7147 $as_echo_n 0123456789 >"conftest.in"
7148 while :
7149 do
7150 cat "conftest.in" "conftest.in" >"conftest.tmp"
7151 mv "conftest.tmp" "conftest.in"
7152 cp "conftest.in" "conftest.nl"
7153 $as_echo 'EGREP' >> "conftest.nl"
7154 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7155 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7156 as_fn_arith $ac_count + 1 && ac_count=$as_val
7157 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7158 # Best one so far, save it but keep looking for a better one
7159 ac_cv_path_EGREP="$ac_path_EGREP"
7160 ac_path_EGREP_max=$ac_count
542f9784 7161 fi
cd9a469c 7162 # 10*(2^10) chars as input seems more than enough
7163 test $ac_count -gt 10 && break
7164 done
7165 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7166esac
7167
7168 $ac_path_EGREP_found && break 3
7169 done
7170 done
7171 done
7172IFS=$as_save_IFS
7173 if test -z "$ac_cv_path_EGREP"; then
7174 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7175 fi
7176else
7177 ac_cv_path_EGREP=$EGREP
7178fi
7179
7180 fi
542f9784 7181fi
cd9a469c 7182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7183$as_echo "$ac_cv_path_EGREP" >&6; }
7184 EGREP="$ac_cv_path_EGREP"
542f9784 7185
7186
cd9a469c 7187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7188$as_echo_n "checking for fgrep... " >&6; }
7189if test "${ac_cv_path_FGREP+set}" = set; then :
7190 $as_echo_n "(cached) " >&6
542f9784 7191else
cd9a469c 7192 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7193 then ac_cv_path_FGREP="$GREP -F"
7194 else
7195 if test -z "$FGREP"; then
7196 ac_path_FGREP_found=false
7197 # Loop through the user's path and test for each of PROGNAME-LIST
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7200do
7201 IFS=$as_save_IFS
7202 test -z "$as_dir" && as_dir=.
7203 for ac_prog in fgrep; do
7204 for ac_exec_ext in '' $ac_executable_extensions; do
7205 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7206 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7207# Check for GNU ac_path_FGREP and select it if it is found.
7208 # Check for GNU $ac_path_FGREP
7209case `"$ac_path_FGREP" --version 2>&1` in
7210*GNU*)
7211 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7212*)
7213 ac_count=0
7214 $as_echo_n 0123456789 >"conftest.in"
7215 while :
7216 do
7217 cat "conftest.in" "conftest.in" >"conftest.tmp"
7218 mv "conftest.tmp" "conftest.in"
7219 cp "conftest.in" "conftest.nl"
7220 $as_echo 'FGREP' >> "conftest.nl"
7221 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7222 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7223 as_fn_arith $ac_count + 1 && ac_count=$as_val
7224 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7225 # Best one so far, save it but keep looking for a better one
7226 ac_cv_path_FGREP="$ac_path_FGREP"
7227 ac_path_FGREP_max=$ac_count
542f9784 7228 fi
cd9a469c 7229 # 10*(2^10) chars as input seems more than enough
7230 test $ac_count -gt 10 && break
7231 done
7232 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7233esac
7234
7235 $ac_path_FGREP_found && break 3
7236 done
7237 done
7238 done
7239IFS=$as_save_IFS
7240 if test -z "$ac_cv_path_FGREP"; then
7241 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7242 fi
7243else
7244 ac_cv_path_FGREP=$FGREP
7245fi
7246
7247 fi
542f9784 7248fi
cd9a469c 7249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7250$as_echo "$ac_cv_path_FGREP" >&6; }
7251 FGREP="$ac_cv_path_FGREP"
542f9784 7252
7253
7254test -z "$GREP" && GREP=grep
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
cd9a469c 7274# Check whether --with-gnu-ld was given.
7275if test "${with_gnu_ld+set}" = set; then :
7276 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9dc37dac 7277else
7278 with_gnu_ld=no
cd9a469c 7279fi
7280
9dc37dac 7281ac_prog=ld
df4b504c 7282if test "$GCC" = yes; then
9dc37dac 7283 # Check if gcc -print-prog-name=ld gives a path.
cd9a469c 7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7285$as_echo_n "checking for ld used by $CC... " >&6; }
8662f9d0 7286 case $host in
7287 *-*-mingw*)
7288 # gcc leaves a trailing carriage return which upsets mingw
7289 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7290 *)
7291 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7292 esac
df4b504c 7293 case $ac_prog in
14aac95c 7294 # Accept absolute paths.
542f9784 7295 [\\/]* | ?:[\\/]*)
14aac95c 7296 re_direlt='/[^/][^/]*/\.\./'
542f9784 7297 # Canonicalize the pathname of ld
7298 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7299 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7300 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14aac95c 7301 done
7302 test -z "$LD" && LD="$ac_prog"
7303 ;;
9dc37dac 7304 "")
7305 # If it fails, then pretend we aren't using GCC.
7306 ac_prog=ld
7307 ;;
7308 *)
7309 # If it is relative, then search for the first ld in PATH.
7310 with_gnu_ld=unknown
7311 ;;
7312 esac
7313elif test "$with_gnu_ld" = yes; then
cd9a469c 7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7315$as_echo_n "checking for GNU ld... " >&6; }
9dc37dac 7316else
cd9a469c 7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7318$as_echo_n "checking for non-GNU ld... " >&6; }
9dc37dac 7319fi
cd9a469c 7320if test "${lt_cv_path_LD+set}" = set; then :
7321 $as_echo_n "(cached) " >&6
9dc37dac 7322else
7323 if test -z "$LD"; then
542f9784 7324 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9dc37dac 7325 for ac_dir in $PATH; do
542f9784 7326 IFS="$lt_save_ifs"
9dc37dac 7327 test -z "$ac_dir" && ac_dir=.
b345481f 7328 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
df4b504c 7329 lt_cv_path_LD="$ac_dir/$ac_prog"
9dc37dac 7330 # Check to see if the program is GNU ld. I'd rather use --version,
542f9784 7331 # but apparently some variants of GNU ld only accept -v.
9dc37dac 7332 # Break only if it was the GNU/non-GNU ld that we prefer.
542f9784 7333 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7334 *GNU* | *'with BFD'*)
9dc37dac 7335 test "$with_gnu_ld" != no && break
542f9784 7336 ;;
7337 *)
14aac95c 7338 test "$with_gnu_ld" != yes && break
542f9784 7339 ;;
7340 esac
9dc37dac 7341 fi
7342 done
542f9784 7343 IFS="$lt_save_ifs"
9dc37dac 7344else
df4b504c 7345 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9dc37dac 7346fi
7347fi
7348
df4b504c 7349LD="$lt_cv_path_LD"
9dc37dac 7350if test -n "$LD"; then
cd9a469c 7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7352$as_echo "$LD" >&6; }
9dc37dac 7353else
cd9a469c 7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7355$as_echo "no" >&6; }
9dc37dac 7356fi
cd9a469c 7357test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7359$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7360if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7361 $as_echo_n "(cached) " >&6
9dc37dac 7362else
542f9784 7363 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7364case `$LD -v 2>&1 </dev/null` in
7365*GNU* | *'with BFD'*)
df4b504c 7366 lt_cv_prog_gnu_ld=yes
542f9784 7367 ;;
7368*)
df4b504c 7369 lt_cv_prog_gnu_ld=no
542f9784 7370 ;;
7371esac
9dc37dac 7372fi
cd9a469c 7373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7374$as_echo "$lt_cv_prog_gnu_ld" >&6; }
df4b504c 7375with_gnu_ld=$lt_cv_prog_gnu_ld
8662f9d0 7376
7377
9dc37dac 7378
542f9784 7379
7380
7381
7382
7383
7384
cd9a469c 7385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7386$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7387if test "${lt_cv_path_NM+set}" = set; then :
7388 $as_echo_n "(cached) " >&6
9dc37dac 7389else
7390 if test -n "$NM"; then
7391 # Let the user override the test.
df4b504c 7392 lt_cv_path_NM="$NM"
9dc37dac 7393else
542f9784 7394 lt_nm_to_check="${ac_tool_prefix}nm"
7395 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7396 lt_nm_to_check="$lt_nm_to_check nm"
7397 fi
7398 for lt_tmp_nm in $lt_nm_to_check; do
7399 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7400 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7401 IFS="$lt_save_ifs"
7402 test -z "$ac_dir" && ac_dir=.
7403 tmp_nm="$ac_dir/$lt_tmp_nm"
7404 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7405 # Check to see if the nm accepts a BSD-compat flag.
7406 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7407 # nm: unknown option "B" ignored
7408 # Tru64's nm complains that /dev/null is an invalid object file
7409 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7410 */dev/null* | *'Invalid file or object type'*)
7411 lt_cv_path_NM="$tmp_nm -B"
7412 break
7413 ;;
7414 *)
7415 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7416 */dev/null*)
7417 lt_cv_path_NM="$tmp_nm -p"
7418 break
7419 ;;
7420 *)
7421 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7422 continue # so that we can try to find one that supports BSD flags
7423 ;;
7424 esac
7425 ;;
7426 esac
9dc37dac 7427 fi
542f9784 7428 done
7429 IFS="$lt_save_ifs"
9dc37dac 7430 done
542f9784 7431 : ${lt_cv_path_NM=no}
9dc37dac 7432fi
7433fi
cd9a469c 7434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7435$as_echo "$lt_cv_path_NM" >&6; }
542f9784 7436if test "$lt_cv_path_NM" != "no"; then
7437 NM="$lt_cv_path_NM"
7438else
7439 # Didn't find any BSD compatible name lister, look for dumpbin.
e6408286 7440 if test -n "$DUMPBIN"; then :
7441 # Let the user override the test.
7442 else
7443 if test -n "$ac_tool_prefix"; then
7444 for ac_prog in dumpbin "link -dump"
542f9784 7445 do
7446 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7447set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cd9a469c 7448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7449$as_echo_n "checking for $ac_word... " >&6; }
7450if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7451 $as_echo_n "(cached) " >&6
8662f9d0 7452else
542f9784 7453 if test -n "$DUMPBIN"; then
7454 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7455else
7456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457for as_dir in $PATH
7458do
7459 IFS=$as_save_IFS
7460 test -z "$as_dir" && as_dir=.
cd9a469c 7461 for ac_exec_ext in '' $ac_executable_extensions; do
7462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 7463 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cd9a469c 7464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 7465 break 2
7466 fi
7467done
cd9a469c 7468 done
7469IFS=$as_save_IFS
8662f9d0 7470
542f9784 7471fi
7472fi
7473DUMPBIN=$ac_cv_prog_DUMPBIN
7474if test -n "$DUMPBIN"; then
cd9a469c 7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7476$as_echo "$DUMPBIN" >&6; }
542f9784 7477else
cd9a469c 7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7479$as_echo "no" >&6; }
542f9784 7480fi
df4b504c 7481
cd9a469c 7482
542f9784 7483 test -n "$DUMPBIN" && break
7484 done
7485fi
7486if test -z "$DUMPBIN"; then
7487 ac_ct_DUMPBIN=$DUMPBIN
e6408286 7488 for ac_prog in dumpbin "link -dump"
542f9784 7489do
7490 # Extract the first word of "$ac_prog", so it can be a program name with args.
7491set dummy $ac_prog; ac_word=$2
cd9a469c 7492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7493$as_echo_n "checking for $ac_word... " >&6; }
7494if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7495 $as_echo_n "(cached) " >&6
542f9784 7496else
7497 if test -n "$ac_ct_DUMPBIN"; then
7498 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7499else
7500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501for as_dir in $PATH
7502do
7503 IFS=$as_save_IFS
7504 test -z "$as_dir" && as_dir=.
cd9a469c 7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 7507 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cd9a469c 7508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 7509 break 2
8662f9d0 7510 fi
542f9784 7511done
cd9a469c 7512 done
7513IFS=$as_save_IFS
8662f9d0 7514
542f9784 7515fi
7516fi
7517ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7518if test -n "$ac_ct_DUMPBIN"; then
cd9a469c 7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7520$as_echo "$ac_ct_DUMPBIN" >&6; }
542f9784 7521else
cd9a469c 7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7523$as_echo "no" >&6; }
542f9784 7524fi
8662f9d0 7525
cd9a469c 7526
542f9784 7527 test -n "$ac_ct_DUMPBIN" && break
7528done
8662f9d0 7529
cd9a469c 7530 if test "x$ac_ct_DUMPBIN" = x; then
7531 DUMPBIN=":"
7532 else
7533 case $cross_compiling:$ac_tool_warned in
7534yes:)
7535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7537ac_tool_warned=yes ;;
7538esac
7539 DUMPBIN=$ac_ct_DUMPBIN
7540 fi
542f9784 7541fi
8662f9d0 7542
e6408286 7543 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7544 *COFF*)
7545 DUMPBIN="$DUMPBIN -symbols"
7546 ;;
7547 *)
7548 DUMPBIN=:
7549 ;;
7550 esac
7551 fi
8662f9d0 7552
542f9784 7553 if test "$DUMPBIN" != ":"; then
7554 NM="$DUMPBIN"
8662f9d0 7555 fi
542f9784 7556fi
7557test -z "$NM" && NM=nm
8662f9d0 7558
8662f9d0 7559
8662f9d0 7560
8662f9d0 7561
f414d9a7 7562
b345481f 7563
cd9a469c 7564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7565$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7566if test "${lt_cv_nm_interface+set}" = set; then :
7567 $as_echo_n "(cached) " >&6
542f9784 7568else
7569 lt_cv_nm_interface="BSD nm"
7570 echo "int some_variable = 0;" > conftest.$ac_ext
e6408286 7571 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
542f9784 7572 (eval "$ac_compile" 2>conftest.err)
7573 cat conftest.err >&5
e6408286 7574 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
542f9784 7575 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7576 cat conftest.err >&5
e6408286 7577 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
542f9784 7578 cat conftest.out >&5
7579 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7580 lt_cv_nm_interface="MS dumpbin"
7581 fi
7582 rm -f conftest*
8662f9d0 7583fi
cd9a469c 7584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7585$as_echo "$lt_cv_nm_interface" >&6; }
8662f9d0 7586
007c1e83 7587# find the maximum length of command line arguments
cd9a469c 7588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7589$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7590if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7591 $as_echo_n "(cached) " >&6
007c1e83 7592else
7593 i=0
7594 teststring="ABCD"
7595
7596 case $build_os in
7597 msdosdjgpp*)
7598 # On DJGPP, this test can blow up pretty badly due to problems in libc
7599 # (any single argument exceeding 2000 bytes causes a buffer overrun
7600 # during glob expansion). Even if it were fixed, the result of this
7601 # check would be larger than it should be.
7602 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7603 ;;
7604
542f9784 7605 gnu*)
7606 # Under GNU Hurd, this test is not required because there is
7607 # no limit to the length of command line arguments.
7608 # Libtool will interpret -1 as no limit whatsoever
7609 lt_cv_sys_max_cmd_len=-1;
7610 ;;
7611
976af183 7612 cygwin* | mingw* | cegcc*)
007c1e83 7613 # On Win9x/ME, this test blows up -- it succeeds, but takes
7614 # about 5 minutes as the teststring grows exponentially.
7615 # Worse, since 9x/ME are not pre-emptively multitasking,
7616 # you end up with a "frozen" computer, even though with patience
7617 # the test eventually succeeds (with a max line length of 256k).
7618 # Instead, let's just punt: use the minimum linelength reported by
7619 # all of the supported platforms: 8192 (on NT/2K/XP).
7620 lt_cv_sys_max_cmd_len=8192;
7621 ;;
7622
e6408286 7623 mint*)
7624 # On MiNT this can take a long time and run out of memory.
7625 lt_cv_sys_max_cmd_len=8192;
7626 ;;
7627
007c1e83 7628 amigaos*)
7629 # On AmigaOS with pdksh, this test takes hours, literally.
7630 # So we just punt and use a minimum line length of 8192.
7631 lt_cv_sys_max_cmd_len=8192;
7632 ;;
7633
7634 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7635 # This has been around since 386BSD, at least. Likely further.
7636 if test -x /sbin/sysctl; then
7637 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7638 elif test -x /usr/sbin/sysctl; then
7639 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7640 else
542f9784 7641 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
007c1e83 7642 fi
7643 # And add a safety zone
7644 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7645 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7646 ;;
542f9784 7647
7648 interix*)
7649 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7650 lt_cv_sys_max_cmd_len=196608
7651 ;;
7652
7653 osf*)
7654 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7655 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7656 # nice to cause kernel panics so lets avoid the loop below.
7657 # First set a reasonable default.
7658 lt_cv_sys_max_cmd_len=16384
7659 #
7660 if test -x /sbin/sysconfig; then
7661 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7662 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7663 esac
7664 fi
7665 ;;
7666 sco3.2v5*)
7667 lt_cv_sys_max_cmd_len=102400
7668 ;;
7669 sysv5* | sco5v6* | sysv4.2uw2*)
7670 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7671 if test -n "$kargmax"; then
7672 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7673 else
7674 lt_cv_sys_max_cmd_len=32768
7675 fi
7676 ;;
7677 *)
976af183 7678 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7679 if test -n "$lt_cv_sys_max_cmd_len"; then
07c46636 7680 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7681 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7682 else
7683 # Make teststring a little bigger before we do anything with it.
7684 # a 1K string should be a reasonable start.
7685 for i in 1 2 3 4 5 6 7 8 ; do
7686 teststring=$teststring$teststring
7687 done
7688 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7689 # If test is not a shell built-in, we'll probably end up computing a
7690 # maximum length that is only half of the actual maximum length, but
7691 # we can't tell.
e6408286 7692 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7693 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
07c46636 7694 test $i != 17 # 1/2 MB should be enough
7695 do
7696 i=`expr $i + 1`
7697 teststring=$teststring$teststring
7698 done
7699 # Only check the string length outside the loop.
7700 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7701 teststring=
7702 # Add a significant safety factor because C++ compilers can tack on
7703 # massive amounts of additional arguments before passing them to the
7704 # linker. It appears as though 1/2 is a usable value.
7705 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7706 fi
542f9784 7707 ;;
007c1e83 7708 esac
7709
7710fi
7711
542f9784 7712if test -n $lt_cv_sys_max_cmd_len ; then
cd9a469c 7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7714$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
007c1e83 7715else
cd9a469c 7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7717$as_echo "none" >&6; }
007c1e83 7718fi
542f9784 7719max_cmd_len=$lt_cv_sys_max_cmd_len
007c1e83 7720
7721
542f9784 7722
7723
7724
7725
7726: ${CP="cp -f"}
7727: ${MV="mv -f"}
7728: ${RM="rm -f"}
7729
cd9a469c 7730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7731$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
542f9784 7732# Try some XSI features
7733xsi_shell=no
7734( _lt_dummy="a/b/c"
7735 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
976af183 7736 = c,a/b,, \
7737 && eval 'test $(( 1 + 1 )) -eq 2 \
7738 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
542f9784 7739 && xsi_shell=yes
cd9a469c 7740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7741$as_echo "$xsi_shell" >&6; }
542f9784 7742
7743
cd9a469c 7744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7745$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
542f9784 7746lt_shell_append=no
7747( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7748 >/dev/null 2>&1 \
7749 && lt_shell_append=yes
cd9a469c 7750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7751$as_echo "$lt_shell_append" >&6; }
542f9784 7752
7753
7754if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7755 lt_unset=unset
8662f9d0 7756else
542f9784 7757 lt_unset=false
7758fi
7759
7760
7761
7762
7763
7764# test EBCDIC or ASCII
7765case `echo X|tr X '\101'` in
7766 A) # ASCII based system
7767 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7768 lt_SP2NL='tr \040 \012'
7769 lt_NL2SP='tr \015\012 \040\040'
8662f9d0 7770 ;;
542f9784 7771 *) # EBCDIC based system
7772 lt_SP2NL='tr \100 \n'
7773 lt_NL2SP='tr \r\n \100\100'
8662f9d0 7774 ;;
542f9784 7775esac
8662f9d0 7776
8662f9d0 7777
8662f9d0 7778
542f9784 7779
7780
7781
7782
7783
7784
cd9a469c 7785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7786$as_echo_n "checking for $LD option to reload object files... " >&6; }
7787if test "${lt_cv_ld_reload_flag+set}" = set; then :
7788 $as_echo_n "(cached) " >&6
8662f9d0 7789else
542f9784 7790 lt_cv_ld_reload_flag='-r'
8662f9d0 7791fi
cd9a469c 7792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7793$as_echo "$lt_cv_ld_reload_flag" >&6; }
542f9784 7794reload_flag=$lt_cv_ld_reload_flag
7795case $reload_flag in
7796"" | " "*) ;;
7797*) reload_flag=" $reload_flag" ;;
7798esac
7799reload_cmds='$LD$reload_flag -o $output$reload_objs'
7800case $host_os in
7801 darwin*)
7802 if test "$GCC" = yes; then
7803 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7804 else
7805 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7806 fi
7807 ;;
7808esac
8662f9d0 7809
542f9784 7810
7811
7812
7813
7814
7815
7816
7817
976af183 7818if test -n "$ac_tool_prefix"; then
7819 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7820set dummy ${ac_tool_prefix}objdump; ac_word=$2
cd9a469c 7821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7822$as_echo_n "checking for $ac_word... " >&6; }
7823if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7824 $as_echo_n "(cached) " >&6
976af183 7825else
7826 if test -n "$OBJDUMP"; then
7827 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7828else
7829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7830for as_dir in $PATH
7831do
7832 IFS=$as_save_IFS
7833 test -z "$as_dir" && as_dir=.
cd9a469c 7834 for ac_exec_ext in '' $ac_executable_extensions; do
7835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
976af183 7836 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cd9a469c 7837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
976af183 7838 break 2
7839 fi
7840done
cd9a469c 7841 done
7842IFS=$as_save_IFS
976af183 7843
7844fi
7845fi
7846OBJDUMP=$ac_cv_prog_OBJDUMP
7847if test -n "$OBJDUMP"; then
cd9a469c 7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7849$as_echo "$OBJDUMP" >&6; }
976af183 7850else
cd9a469c 7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852$as_echo "no" >&6; }
976af183 7853fi
7854
cd9a469c 7855
976af183 7856fi
7857if test -z "$ac_cv_prog_OBJDUMP"; then
7858 ac_ct_OBJDUMP=$OBJDUMP
7859 # Extract the first word of "objdump", so it can be a program name with args.
7860set dummy objdump; ac_word=$2
cd9a469c 7861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7862$as_echo_n "checking for $ac_word... " >&6; }
7863if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7864 $as_echo_n "(cached) " >&6
976af183 7865else
7866 if test -n "$ac_ct_OBJDUMP"; then
7867 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7868else
7869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870for as_dir in $PATH
7871do
7872 IFS=$as_save_IFS
7873 test -z "$as_dir" && as_dir=.
cd9a469c 7874 for ac_exec_ext in '' $ac_executable_extensions; do
7875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
976af183 7876 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cd9a469c 7877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
976af183 7878 break 2
7879 fi
7880done
cd9a469c 7881 done
7882IFS=$as_save_IFS
976af183 7883
976af183 7884fi
7885fi
7886ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7887if test -n "$ac_ct_OBJDUMP"; then
cd9a469c 7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7889$as_echo "$ac_ct_OBJDUMP" >&6; }
976af183 7890else
cd9a469c 7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7892$as_echo "no" >&6; }
976af183 7893fi
7894
cd9a469c 7895 if test "x$ac_ct_OBJDUMP" = x; then
7896 OBJDUMP="false"
7897 else
7898 case $cross_compiling:$ac_tool_warned in
7899yes:)
7900{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7902ac_tool_warned=yes ;;
7903esac
7904 OBJDUMP=$ac_ct_OBJDUMP
7905 fi
976af183 7906else
7907 OBJDUMP="$ac_cv_prog_OBJDUMP"
7908fi
7909
7910test -z "$OBJDUMP" && OBJDUMP=objdump
7911
7912
7913
7914
7915
7916
7917
7918
542f9784 7919
cd9a469c 7920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7921$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7922if test "${lt_cv_deplibs_check_method+set}" = set; then :
7923 $as_echo_n "(cached) " >&6
8662f9d0 7924else
542f9784 7925 lt_cv_file_magic_cmd='$MAGIC_CMD'
7926lt_cv_file_magic_test_file=
7927lt_cv_deplibs_check_method='unknown'
7928# Need to set the preceding variable on all platforms that support
7929# interlibrary dependencies.
7930# 'none' -- dependencies not supported.
7931# `unknown' -- same as none, but documents that we really don't know.
7932# 'pass_all' -- all dependencies passed with no checks.
7933# 'test_compile' -- check by making test program.
7934# 'file_magic [[regex]]' -- check by looking for files in library path
7935# which responds to the $file_magic_cmd with a given extended regex.
7936# If you have `file' or equivalent on your system and you're not sure
7937# whether `pass_all' will *always* work, you probably want this one.
7938
7939case $host_os in
a7798917 7940aix[4-9]*)
542f9784 7941 lt_cv_deplibs_check_method=pass_all
7942 ;;
7943
7944beos*)
7945 lt_cv_deplibs_check_method=pass_all
7946 ;;
7947
7948bsdi[45]*)
7949 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7950 lt_cv_file_magic_cmd='/usr/bin/file -L'
7951 lt_cv_file_magic_test_file=/shlib/libc.so
7952 ;;
7953
7954cygwin*)
7955 # func_win32_libid is a shell function defined in ltmain.sh
7956 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7957 lt_cv_file_magic_cmd='func_win32_libid'
7958 ;;
7959
7960mingw* | pw32*)
7961 # Base MSYS/MinGW do not provide the 'file' command needed by
7962 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7963 # unless we find 'file', for example because we are cross-compiling.
e6408286 7964 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7965 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
542f9784 7966 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7967 lt_cv_file_magic_cmd='func_win32_libid'
7968 else
7969 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7970 lt_cv_file_magic_cmd='$OBJDUMP -f'
7971 fi
8662f9d0 7972 ;;
542f9784 7973
e6408286 7974cegcc*)
976af183 7975 # use the weaker test based on 'objdump'. See mingw*.
7976 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7977 lt_cv_file_magic_cmd='$OBJDUMP -f'
7978 ;;
7979
542f9784 7980darwin* | rhapsody*)
7981 lt_cv_deplibs_check_method=pass_all
7982 ;;
7983
7984freebsd* | dragonfly*)
7985 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7986 case $host_cpu in
7987 i*86 )
7988 # Not sure whether the presence of OpenBSD here was a mistake.
7989 # Let's accept both of them until this is cleared up.
7990 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7991 lt_cv_file_magic_cmd=/usr/bin/file
7992 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7993 ;;
7994 esac
7995 else
7996 lt_cv_deplibs_check_method=pass_all
7997 fi
8662f9d0 7998 ;;
542f9784 7999
8000gnu*)
8001 lt_cv_deplibs_check_method=pass_all
8002 ;;
8003
e6408286 8004haiku*)
8005 lt_cv_deplibs_check_method=pass_all
8006 ;;
8007
542f9784 8008hpux10.20* | hpux11*)
8009 lt_cv_file_magic_cmd=/usr/bin/file
8010 case $host_cpu in
8011 ia64*)
8012 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8013 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8014 ;;
8015 hppa*64*)
e6408286 8016 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
542f9784 8017 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8018 ;;
8662f9d0 8019 *)
e6408286 8020 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
542f9784 8021 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8022 ;;
8023 esac
8024 ;;
8662f9d0 8025
542f9784 8026interix[3-9]*)
8027 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8028 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8029 ;;
8662f9d0 8030
542f9784 8031irix5* | irix6* | nonstopux*)
8032 case $LD in
8033 *-32|*"-32 ") libmagic=32-bit;;
8034 *-n32|*"-n32 ") libmagic=N32;;
8035 *-64|*"-64 ") libmagic=64-bit;;
8036 *) libmagic=never-match;;
8037 esac
8038 lt_cv_deplibs_check_method=pass_all
8662f9d0 8039 ;;
8662f9d0 8040
542f9784 8041# This must be Linux ELF.
9af964d4 8042linux* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 8043 lt_cv_deplibs_check_method=pass_all
8044 ;;
8662f9d0 8045
542f9784 8046netbsd*)
8047 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8048 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8662f9d0 8049 else
542f9784 8050 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8662f9d0 8051 fi
542f9784 8052 ;;
8053
8054newos6*)
8055 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8056 lt_cv_file_magic_cmd=/usr/bin/file
8057 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8058 ;;
8059
8060*nto* | *qnx*)
8061 lt_cv_deplibs_check_method=pass_all
8062 ;;
8662f9d0 8063
542f9784 8064openbsd*)
8065 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8066 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8067 else
8068 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8662f9d0 8069 fi
8070 ;;
542f9784 8071
8072osf3* | osf4* | osf5*)
8073 lt_cv_deplibs_check_method=pass_all
8074 ;;
8075
8076rdos*)
8077 lt_cv_deplibs_check_method=pass_all
8078 ;;
8079
8080solaris*)
8081 lt_cv_deplibs_check_method=pass_all
8082 ;;
8083
8084sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8085 lt_cv_deplibs_check_method=pass_all
8086 ;;
8087
8088sysv4 | sysv4.3*)
8089 case $host_vendor in
8090 motorola)
8091 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
8092 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8093 ;;
8094 ncr)
8095 lt_cv_deplibs_check_method=pass_all
8096 ;;
8097 sequent)
8098 lt_cv_file_magic_cmd='/bin/file'
8099 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8100 ;;
8101 sni)
8102 lt_cv_file_magic_cmd='/bin/file'
8103 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8104 lt_cv_file_magic_test_file=/lib/libc.so
8105 ;;
8106 siemens)
8107 lt_cv_deplibs_check_method=pass_all
8108 ;;
8109 pc)
8110 lt_cv_deplibs_check_method=pass_all
8111 ;;
8112 esac
8113 ;;
8114
8115tpf*)
8116 lt_cv_deplibs_check_method=pass_all
8117 ;;
8662f9d0 8118esac
8119
542f9784 8120fi
cd9a469c 8121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8122$as_echo "$lt_cv_deplibs_check_method" >&6; }
542f9784 8123file_magic_cmd=$lt_cv_file_magic_cmd
8124deplibs_check_method=$lt_cv_deplibs_check_method
8125test -z "$deplibs_check_method" && deplibs_check_method=unknown
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
4618c7f0 8138if test -n "$ac_tool_prefix"; then
542f9784 8139 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8140set dummy ${ac_tool_prefix}ar; ac_word=$2
cd9a469c 8141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8142$as_echo_n "checking for $ac_word... " >&6; }
8143if test "${ac_cv_prog_AR+set}" = set; then :
8144 $as_echo_n "(cached) " >&6
8662f9d0 8145else
542f9784 8146 if test -n "$AR"; then
8147 ac_cv_prog_AR="$AR" # Let the user override the test.
8662f9d0 8148else
4618c7f0 8149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150for as_dir in $PATH
8151do
8152 IFS=$as_save_IFS
8153 test -z "$as_dir" && as_dir=.
cd9a469c 8154 for ac_exec_ext in '' $ac_executable_extensions; do
8155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 8156 ac_cv_prog_AR="${ac_tool_prefix}ar"
cd9a469c 8157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618c7f0 8158 break 2
8159 fi
8160done
cd9a469c 8161 done
8162IFS=$as_save_IFS
4618c7f0 8163
8662f9d0 8164fi
8165fi
542f9784 8166AR=$ac_cv_prog_AR
8167if test -n "$AR"; then
cd9a469c 8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8169$as_echo "$AR" >&6; }
542f9784 8170else
cd9a469c 8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8172$as_echo "no" >&6; }
8662f9d0 8173fi
8174
cd9a469c 8175
4618c7f0 8176fi
542f9784 8177if test -z "$ac_cv_prog_AR"; then
8178 ac_ct_AR=$AR
8179 # Extract the first word of "ar", so it can be a program name with args.
8180set dummy ar; ac_word=$2
cd9a469c 8181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8182$as_echo_n "checking for $ac_word... " >&6; }
8183if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8184 $as_echo_n "(cached) " >&6
8662f9d0 8185else
542f9784 8186 if test -n "$ac_ct_AR"; then
8187 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8662f9d0 8188else
4618c7f0 8189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190for as_dir in $PATH
8191do
8192 IFS=$as_save_IFS
8193 test -z "$as_dir" && as_dir=.
cd9a469c 8194 for ac_exec_ext in '' $ac_executable_extensions; do
8195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 8196 ac_cv_prog_ac_ct_AR="ar"
cd9a469c 8197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618c7f0 8198 break 2
8199 fi
8200done
cd9a469c 8201 done
8202IFS=$as_save_IFS
4618c7f0 8203
8662f9d0 8204fi
8205fi
542f9784 8206ac_ct_AR=$ac_cv_prog_ac_ct_AR
8207if test -n "$ac_ct_AR"; then
cd9a469c 8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8209$as_echo "$ac_ct_AR" >&6; }
8662f9d0 8210else
cd9a469c 8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8212$as_echo "no" >&6; }
8662f9d0 8213fi
8214
cd9a469c 8215 if test "x$ac_ct_AR" = x; then
8216 AR="false"
8217 else
8218 case $cross_compiling:$ac_tool_warned in
8219yes:)
8220{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8221$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8222ac_tool_warned=yes ;;
8223esac
8224 AR=$ac_ct_AR
8225 fi
8662f9d0 8226else
542f9784 8227 AR="$ac_cv_prog_AR"
8662f9d0 8228fi
8229
542f9784 8230test -z "$AR" && AR=ar
8231test -z "$AR_FLAGS" && AR_FLAGS=cru
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
4618c7f0 8243if test -n "$ac_tool_prefix"; then
8244 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8662f9d0 8245set dummy ${ac_tool_prefix}strip; ac_word=$2
cd9a469c 8246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8247$as_echo_n "checking for $ac_word... " >&6; }
8248if test "${ac_cv_prog_STRIP+set}" = set; then :
8249 $as_echo_n "(cached) " >&6
8662f9d0 8250else
8251 if test -n "$STRIP"; then
8252 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8253else
4618c7f0 8254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8255for as_dir in $PATH
8256do
8257 IFS=$as_save_IFS
8258 test -z "$as_dir" && as_dir=.
cd9a469c 8259 for ac_exec_ext in '' $ac_executable_extensions; do
8260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4618c7f0 8261 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cd9a469c 8262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618c7f0 8263 break 2
8264 fi
8265done
cd9a469c 8266 done
8267IFS=$as_save_IFS
4618c7f0 8268
8662f9d0 8269fi
8270fi
4618c7f0 8271STRIP=$ac_cv_prog_STRIP
8662f9d0 8272if test -n "$STRIP"; then
cd9a469c 8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8274$as_echo "$STRIP" >&6; }
8662f9d0 8275else
cd9a469c 8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277$as_echo "no" >&6; }
8662f9d0 8278fi
8279
cd9a469c 8280
4618c7f0 8281fi
8662f9d0 8282if test -z "$ac_cv_prog_STRIP"; then
4618c7f0 8283 ac_ct_STRIP=$STRIP
8662f9d0 8284 # Extract the first word of "strip", so it can be a program name with args.
8285set dummy strip; ac_word=$2
cd9a469c 8286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8287$as_echo_n "checking for $ac_word... " >&6; }
8288if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8289 $as_echo_n "(cached) " >&6
8662f9d0 8290else
4618c7f0 8291 if test -n "$ac_ct_STRIP"; then
8292 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8662f9d0 8293else
4618c7f0 8294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8295for as_dir in $PATH
8296do
8297 IFS=$as_save_IFS
8298 test -z "$as_dir" && as_dir=.
cd9a469c 8299 for ac_exec_ext in '' $ac_executable_extensions; do
8300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4618c7f0 8301 ac_cv_prog_ac_ct_STRIP="strip"
cd9a469c 8302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618c7f0 8303 break 2
8304 fi
8305done
cd9a469c 8306 done
8307IFS=$as_save_IFS
4618c7f0 8308
8662f9d0 8309fi
8310fi
4618c7f0 8311ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8312if test -n "$ac_ct_STRIP"; then
cd9a469c 8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8314$as_echo "$ac_ct_STRIP" >&6; }
8662f9d0 8315else
cd9a469c 8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8317$as_echo "no" >&6; }
8662f9d0 8318fi
8319
cd9a469c 8320 if test "x$ac_ct_STRIP" = x; then
8321 STRIP=":"
8322 else
8323 case $cross_compiling:$ac_tool_warned in
8324yes:)
8325{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8326$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8327ac_tool_warned=yes ;;
8328esac
8329 STRIP=$ac_ct_STRIP
8330 fi
8662f9d0 8331else
4618c7f0 8332 STRIP="$ac_cv_prog_STRIP"
8662f9d0 8333fi
8334
542f9784 8335test -z "$STRIP" && STRIP=:
8662f9d0 8336
4618c7f0 8337
b345481f 8338
b345481f 8339
9dc37dac 8340
4618c7f0 8341
542f9784 8342if test -n "$ac_tool_prefix"; then
8343 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8344set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cd9a469c 8345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8346$as_echo_n "checking for $ac_word... " >&6; }
8347if test "${ac_cv_prog_RANLIB+set}" = set; then :
8348 $as_echo_n "(cached) " >&6
8662f9d0 8349else
542f9784 8350 if test -n "$RANLIB"; then
8351 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8352else
8353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8354for as_dir in $PATH
8355do
8356 IFS=$as_save_IFS
8357 test -z "$as_dir" && as_dir=.
cd9a469c 8358 for ac_exec_ext in '' $ac_executable_extensions; do
8359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 8360 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cd9a469c 8361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 8362 break 2
9dc37dac 8363 fi
542f9784 8364done
cd9a469c 8365 done
8366IFS=$as_save_IFS
9dc37dac 8367
542f9784 8368fi
8369fi
8370RANLIB=$ac_cv_prog_RANLIB
8371if test -n "$RANLIB"; then
cd9a469c 8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8373$as_echo "$RANLIB" >&6; }
542f9784 8374else
cd9a469c 8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376$as_echo "no" >&6; }
542f9784 8377fi
c837ae19 8378
cd9a469c 8379
542f9784 8380fi
8381if test -z "$ac_cv_prog_RANLIB"; then
8382 ac_ct_RANLIB=$RANLIB
8383 # Extract the first word of "ranlib", so it can be a program name with args.
8384set dummy ranlib; ac_word=$2
cd9a469c 8385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8386$as_echo_n "checking for $ac_word... " >&6; }
8387if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8388 $as_echo_n "(cached) " >&6
542f9784 8389else
8390 if test -n "$ac_ct_RANLIB"; then
8391 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8392else
8393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8394for as_dir in $PATH
8395do
8396 IFS=$as_save_IFS
8397 test -z "$as_dir" && as_dir=.
cd9a469c 8398 for ac_exec_ext in '' $ac_executable_extensions; do
8399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 8400 ac_cv_prog_ac_ct_RANLIB="ranlib"
cd9a469c 8401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 8402 break 2
c7db3d1a 8403 fi
542f9784 8404done
cd9a469c 8405 done
8406IFS=$as_save_IFS
c7db3d1a 8407
542f9784 8408fi
8409fi
8410ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8411if test -n "$ac_ct_RANLIB"; then
cd9a469c 8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8413$as_echo "$ac_ct_RANLIB" >&6; }
14aac95c 8414else
cd9a469c 8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8416$as_echo "no" >&6; }
542f9784 8417fi
4618c7f0 8418
cd9a469c 8419 if test "x$ac_ct_RANLIB" = x; then
8420 RANLIB=":"
8421 else
8422 case $cross_compiling:$ac_tool_warned in
8423yes:)
8424{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8425$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8426ac_tool_warned=yes ;;
8427esac
8428 RANLIB=$ac_ct_RANLIB
8429 fi
542f9784 8430else
8431 RANLIB="$ac_cv_prog_RANLIB"
8432fi
8433
8434test -z "$RANLIB" && RANLIB=:
30f7243e 8435
4618c7f0 8436
14aac95c 8437
14aac95c 8438
4618c7f0 8439
8662f9d0 8440
542f9784 8441# Determine commands to create old-style static archives.
976af183 8442old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
542f9784 8443old_postinstall_cmds='chmod 644 $oldlib'
8444old_postuninstall_cmds=
8445
8446if test -n "$RANLIB"; then
8447 case $host_os in
8448 openbsd*)
8449 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8450 ;;
8451 *)
8452 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8453 ;;
8454 esac
8455 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14aac95c 8456fi
542f9784 8457
e6408286 8458case $host_os in
8459 darwin*)
8460 lock_old_archive_extraction=yes ;;
8461 *)
8462 lock_old_archive_extraction=no ;;
8463esac
8464
8465
8466
8467
8468
8469
542f9784 8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503# If no C compiler was specified, use CC.
8504LTCC=${LTCC-"$CC"}
8505
8506# If no C compiler flags were specified, use CFLAGS.
8507LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8508
8509# Allow CC to be a program name with arguments.
8510compiler=$CC
8511
8512
8513# Check for command to grab the raw symbol name followed by C symbol from nm.
cd9a469c 8514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8515$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8516if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8517 $as_echo_n "(cached) " >&6
542f9784 8518else
8519
8520# These are sane defaults that work on at least a few old systems.
8521# [They come from Ultrix. What could be older than Ultrix?!! ;)]
8522
8523# Character class describing NM global symbol codes.
8524symcode='[BCDEGRST]'
8525
8526# Regexp to match symbols that can be accessed directly from C.
8527sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8528
8529# Define system-specific variables.
8530case $host_os in
8531aix*)
8532 symcode='[BCDT]'
8533 ;;
976af183 8534cygwin* | mingw* | pw32* | cegcc*)
542f9784 8535 symcode='[ABCDGISTW]'
8536 ;;
8537hpux*)
8538 if test "$host_cpu" = ia64; then
8539 symcode='[ABCDEGRST]'
14aac95c 8540 fi
9dc37dac 8541 ;;
542f9784 8542irix* | nonstopux*)
8543 symcode='[BCDEGRST]'
8544 ;;
8545osf*)
8546 symcode='[BCDEGQRST]'
8547 ;;
8548solaris*)
8549 symcode='[BDRT]'
8550 ;;
8551sco3.2v5*)
8552 symcode='[DT]'
8553 ;;
8554sysv4.2uw2*)
8555 symcode='[DT]'
8556 ;;
8557sysv5* | sco5v6* | unixware* | OpenUNIX*)
8558 symcode='[ABDT]'
8559 ;;
8560sysv4)
8561 symcode='[DFNSTU]'
8562 ;;
8563esac
9dc37dac 8564
542f9784 8565# If we're using GNU nm, then use its standard symbol codes.
8566case `$NM -V 2>&1` in
8567*GNU* | *'with BFD'*)
8568 symcode='[ABCDGIRSTW]' ;;
9dc37dac 8569esac
8570
542f9784 8571# Transform an extracted symbol line into a proper C declaration.
8572# Some systems (esp. on ia64) link data and code symbols differently,
8573# so use this general approach.
8574lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14aac95c 8575
542f9784 8576# Transform an extracted symbol line into symbol name and symbol address
8577lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
976af183 8578lt_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'"
4618c7f0 8579
542f9784 8580# Handle CRLF in mingw tool chain
8581opt_cr=
8582case $build_os in
8583mingw*)
8584 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8585 ;;
8586esac
4618c7f0 8587
542f9784 8588# Try without a prefix underscore, then with it.
8589for ac_symprfx in "" "_"; do
8590
8591 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8592 symxfrm="\\1 $ac_symprfx\\2 \\2"
8593
8594 # Write the raw and C identifiers.
8595 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8596 # Fake it for dumpbin and say T for any non-static function
8597 # and D for any global variable.
8598 # Also find C++ and __fastcall symbols from MSVC++,
8599 # which start with @ or ?.
8600 lt_cv_sys_global_symbol_pipe="$AWK '"\
8601" {last_section=section; section=\$ 3};"\
8602" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8603" \$ 0!~/External *\|/{next};"\
8604" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8605" {if(hide[section]) next};"\
8606" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8607" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8608" s[1]~/^[@?]/{print s[1], s[1]; next};"\
8609" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8610" ' prfx=^$ac_symprfx"
14aac95c 8611 else
542f9784 8612 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14aac95c 8613 fi
14aac95c 8614
542f9784 8615 # Check to see that the pipe works correctly.
8616 pipe_works=no
9dc37dac 8617
542f9784 8618 rm -f conftest*
8619 cat > conftest.$ac_ext <<_LT_EOF
8620#ifdef __cplusplus
8621extern "C" {
8622#endif
8623char nm_test_var;
8624void nm_test_func(void);
8625void nm_test_func(void){}
8626#ifdef __cplusplus
8627}
8628#endif
8629int main(){nm_test_var='a';nm_test_func();return(0);}
8630_LT_EOF
14aac95c 8631
cd9a469c 8632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 8633 (eval $ac_compile) 2>&5
8634 ac_status=$?
cd9a469c 8635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8636 test $ac_status = 0; }; then
542f9784 8637 # Now try to grab the symbols.
8638 nlist=conftest.nm
e6408286 8639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8640 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
542f9784 8641 ac_status=$?
cd9a469c 8642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8643 test $ac_status = 0; } && test -s "$nlist"; then
542f9784 8644 # Try sorting and uniquifying the output.
8645 if sort "$nlist" | uniq > "$nlist"T; then
8646 mv -f "$nlist"T "$nlist"
8647 else
8648 rm -f "$nlist"T
8649 fi
14aac95c 8650
542f9784 8651 # Make sure that we snagged all the symbols we need.
8652 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8653 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8654 cat <<_LT_EOF > conftest.$ac_ext
8655#ifdef __cplusplus
8656extern "C" {
8657#endif
14aac95c 8658
542f9784 8659_LT_EOF
8660 # Now generate the symbol file.
8661 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14aac95c 8662
542f9784 8663 cat <<_LT_EOF >> conftest.$ac_ext
9dc37dac 8664
542f9784 8665/* The mapping between symbol names and symbols. */
8666const struct {
8667 const char *name;
8668 void *address;
8669}
8670lt__PROGRAM__LTX_preloaded_symbols[] =
8671{
8672 { "@PROGRAM@", (void *) 0 },
8673_LT_EOF
8674 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8675 cat <<\_LT_EOF >> conftest.$ac_ext
8676 {0, (void *) 0}
8677};
8678
8679/* This works around a problem in FreeBSD linker */
8680#ifdef FREEBSD_WORKAROUND
8681static const void *lt_preloaded_setup() {
8682 return lt__PROGRAM__LTX_preloaded_symbols;
8683}
4618c7f0 8684#endif
542f9784 8685
8686#ifdef __cplusplus
8687}
8688#endif
8689_LT_EOF
8690 # Now try linking the two files.
8691 mv conftest.$ac_objext conftstm.$ac_objext
8692 lt_save_LIBS="$LIBS"
8693 lt_save_CFLAGS="$CFLAGS"
8694 LIBS="conftstm.$ac_objext"
8695 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cd9a469c 8696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
542f9784 8697 (eval $ac_link) 2>&5
4618c7f0 8698 ac_status=$?
cd9a469c 8699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8700 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
542f9784 8701 pipe_works=yes
8702 fi
8703 LIBS="$lt_save_LIBS"
8704 CFLAGS="$lt_save_CFLAGS"
8705 else
8706 echo "cannot find nm_test_func in $nlist" >&5
8707 fi
8708 else
8709 echo "cannot find nm_test_var in $nlist" >&5
8710 fi
8711 else
8712 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8713 fi
4618c7f0 8714 else
542f9784 8715 echo "$progname: failed program was:" >&5
8716 cat conftest.$ac_ext >&5
4618c7f0 8717 fi
976af183 8718 rm -rf conftest* conftst*
542f9784 8719
8720 # Do not use the global_symbol_pipe unless it works.
8721 if test "$pipe_works" = yes; then
8722 break
8723 else
8724 lt_cv_sys_global_symbol_pipe=
8725 fi
8726done
8727
4618c7f0 8728fi
4618c7f0 8729
542f9784 8730if test -z "$lt_cv_sys_global_symbol_pipe"; then
8731 lt_cv_sys_global_symbol_to_cdecl=
8732fi
8733if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cd9a469c 8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8735$as_echo "failed" >&6; }
542f9784 8736else
cd9a469c 8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8738$as_echo "ok" >&6; }
4618c7f0 8739fi
4618c7f0 8740
542f9784 8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
976af183 8755
8756
8757
8758
8759
542f9784 8760
8761
8762
cd9a469c 8763# Check whether --enable-libtool-lock was given.
8764if test "${enable_libtool_lock+set}" = set; then :
8765 enableval=$enable_libtool_lock;
8766fi
542f9784 8767
542f9784 8768test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8769
8770# Some flags need to be propagated to the compiler or linker for good
8771# libtool support.
8772case $host in
8773ia64-*-hpux*)
8774 # Find out which ABI we are using.
8775 echo 'int i;' > conftest.$ac_ext
cd9a469c 8776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 8777 (eval $ac_compile) 2>&5
8778 ac_status=$?
cd9a469c 8779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8780 test $ac_status = 0; }; then
542f9784 8781 case `/usr/bin/file conftest.$ac_objext` in
8782 *ELF-32*)
8783 HPUX_IA64_MODE="32"
8784 ;;
8785 *ELF-64*)
8786 HPUX_IA64_MODE="64"
8787 ;;
8788 esac
8789 fi
8790 rm -rf conftest*
8791 ;;
8792*-*-irix6*)
8793 # Find out which ABI we are using.
e6408286 8794 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cd9a469c 8795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 8796 (eval $ac_compile) 2>&5
8797 ac_status=$?
cd9a469c 8798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8799 test $ac_status = 0; }; then
542f9784 8800 if test "$lt_cv_prog_gnu_ld" = yes; then
8801 case `/usr/bin/file conftest.$ac_objext` in
8802 *32-bit*)
8803 LD="${LD-ld} -melf32bsmip"
8804 ;;
8805 *N32*)
8806 LD="${LD-ld} -melf32bmipn32"
8807 ;;
8808 *64-bit*)
8809 LD="${LD-ld} -melf64bmip"
8810 ;;
8811 esac
8812 else
8813 case `/usr/bin/file conftest.$ac_objext` in
8814 *32-bit*)
8815 LD="${LD-ld} -32"
8816 ;;
8817 *N32*)
8818 LD="${LD-ld} -n32"
8819 ;;
8820 *64-bit*)
8821 LD="${LD-ld} -64"
8822 ;;
8823 esac
8824 fi
8825 fi
8826 rm -rf conftest*
8827 ;;
8828
8829x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8830s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8831 # Find out which ABI we are using.
8832 echo 'int i;' > conftest.$ac_ext
cd9a469c 8833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 8834 (eval $ac_compile) 2>&5
8835 ac_status=$?
cd9a469c 8836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8837 test $ac_status = 0; }; then
542f9784 8838 case `/usr/bin/file conftest.o` in
8839 *32-bit*)
8840 case $host in
8841 x86_64-*kfreebsd*-gnu)
8842 LD="${LD-ld} -m elf_i386_fbsd"
8843 ;;
8844 x86_64-*linux*)
8845 LD="${LD-ld} -m elf_i386"
8846 ;;
8847 ppc64-*linux*|powerpc64-*linux*)
8848 LD="${LD-ld} -m elf32ppclinux"
8849 ;;
8850 s390x-*linux*)
8851 LD="${LD-ld} -m elf_s390"
8852 ;;
8853 sparc64-*linux*)
8854 LD="${LD-ld} -m elf32_sparc"
8855 ;;
8856 esac
8857 ;;
8858 *64-bit*)
8859 case $host in
8860 x86_64-*kfreebsd*-gnu)
8861 LD="${LD-ld} -m elf_x86_64_fbsd"
8862 ;;
8863 x86_64-*linux*)
8864 LD="${LD-ld} -m elf_x86_64"
8865 ;;
8866 ppc*-*linux*|powerpc*-*linux*)
8867 LD="${LD-ld} -m elf64ppc"
8868 ;;
8869 s390*-*linux*|s390*-*tpf*)
8870 LD="${LD-ld} -m elf64_s390"
8871 ;;
8872 sparc*-*linux*)
8873 LD="${LD-ld} -m elf64_sparc"
8874 ;;
8875 esac
8876 ;;
8877 esac
4618c7f0 8878 fi
542f9784 8879 rm -rf conftest*
8880 ;;
8881
8882*-*-sco3.2v5*)
8883 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8884 SAVE_CFLAGS="$CFLAGS"
8885 CFLAGS="$CFLAGS -belf"
cd9a469c 8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8887$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8888if test "${lt_cv_cc_needs_belf+set}" = set; then :
8889 $as_echo_n "(cached) " >&6
4618c7f0 8890else
542f9784 8891 ac_ext=c
8892ac_cpp='$CPP $CPPFLAGS'
8893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8895ac_compiler_gnu=$ac_cv_c_compiler_gnu
8896
8897 if test x$gcc_no_link = xyes; then
cd9a469c 8898 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
4618c7f0 8899fi
cd9a469c 8900cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 8901/* end confdefs.h. */
8902
8903int
8904main ()
8905{
8906
8907 ;
8908 return 0;
8909}
8910_ACEOF
cd9a469c 8911if ac_fn_c_try_link "$LINENO"; then :
542f9784 8912 lt_cv_cc_needs_belf=yes
4618c7f0 8913else
cd9a469c 8914 lt_cv_cc_needs_belf=no
4618c7f0 8915fi
cd9a469c 8916rm -f core conftest.err conftest.$ac_objext \
8917 conftest$ac_exeext conftest.$ac_ext
542f9784 8918 ac_ext=c
8919ac_cpp='$CPP $CPPFLAGS'
8920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8922ac_compiler_gnu=$ac_cv_c_compiler_gnu
4618c7f0 8923
4618c7f0 8924fi
cd9a469c 8925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8926$as_echo "$lt_cv_cc_needs_belf" >&6; }
542f9784 8927 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8928 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8929 CFLAGS="$SAVE_CFLAGS"
8930 fi
8931 ;;
8932sparc*-*solaris*)
8933 # Find out which ABI we are using.
8934 echo 'int i;' > conftest.$ac_ext
cd9a469c 8935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 8936 (eval $ac_compile) 2>&5
8937 ac_status=$?
cd9a469c 8938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8939 test $ac_status = 0; }; then
542f9784 8940 case `/usr/bin/file conftest.o` in
8941 *64-bit*)
8942 case $lt_cv_prog_gnu_ld in
8943 yes*) LD="${LD-ld} -m elf64_sparc" ;;
976af183 8944 *)
8945 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8946 LD="${LD-ld} -64"
8947 fi
8948 ;;
542f9784 8949 esac
8950 ;;
8951 esac
8952 fi
8953 rm -rf conftest*
8954 ;;
8955esac
4618c7f0 8956
542f9784 8957need_locks="$enable_libtool_lock"
4618c7f0 8958
976af183 8959
8960 case $host_os in
8961 rhapsody* | darwin*)
8962 if test -n "$ac_tool_prefix"; then
8963 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8964set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cd9a469c 8965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8966$as_echo_n "checking for $ac_word... " >&6; }
8967if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8968 $as_echo_n "(cached) " >&6
4618c7f0 8969else
976af183 8970 if test -n "$DSYMUTIL"; then
8971 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8972else
8973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8974for as_dir in $PATH
4618c7f0 8975do
976af183 8976 IFS=$as_save_IFS
8977 test -z "$as_dir" && as_dir=.
cd9a469c 8978 for ac_exec_ext in '' $ac_executable_extensions; do
8979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
976af183 8980 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cd9a469c 8981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
976af183 8982 break 2
4618c7f0 8983 fi
976af183 8984done
cd9a469c 8985 done
8986IFS=$as_save_IFS
4618c7f0 8987
4618c7f0 8988fi
976af183 8989fi
8990DSYMUTIL=$ac_cv_prog_DSYMUTIL
8991if test -n "$DSYMUTIL"; then
cd9a469c 8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8993$as_echo "$DSYMUTIL" >&6; }
4618c7f0 8994else
cd9a469c 8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8996$as_echo "no" >&6; }
4618c7f0 8997fi
976af183 8998
cd9a469c 8999
976af183 9000fi
9001if test -z "$ac_cv_prog_DSYMUTIL"; then
9002 ac_ct_DSYMUTIL=$DSYMUTIL
9003 # Extract the first word of "dsymutil", so it can be a program name with args.
9004set dummy dsymutil; ac_word=$2
cd9a469c 9005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9006$as_echo_n "checking for $ac_word... " >&6; }
9007if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
9008 $as_echo_n "(cached) " >&6
4618c7f0 9009else
976af183 9010 if test -n "$ac_ct_DSYMUTIL"; then
9011 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9012else
9013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9014for as_dir in $PATH
9015do
9016 IFS=$as_save_IFS
9017 test -z "$as_dir" && as_dir=.
cd9a469c 9018 for ac_exec_ext in '' $ac_executable_extensions; do
9019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
976af183 9020 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cd9a469c 9021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
976af183 9022 break 2
9023 fi
9024done
cd9a469c 9025 done
9026IFS=$as_save_IFS
4618c7f0 9027
976af183 9028fi
9029fi
9030ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9031if test -n "$ac_ct_DSYMUTIL"; then
cd9a469c 9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9033$as_echo "$ac_ct_DSYMUTIL" >&6; }
976af183 9034else
cd9a469c 9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9036$as_echo "no" >&6; }
4618c7f0 9037fi
4618c7f0 9038
cd9a469c 9039 if test "x$ac_ct_DSYMUTIL" = x; then
9040 DSYMUTIL=":"
9041 else
9042 case $cross_compiling:$ac_tool_warned in
9043yes:)
9044{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9045$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9046ac_tool_warned=yes ;;
9047esac
9048 DSYMUTIL=$ac_ct_DSYMUTIL
9049 fi
976af183 9050else
9051 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
4618c7f0 9052fi
9053
976af183 9054 if test -n "$ac_tool_prefix"; then
9055 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9056set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cd9a469c 9057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9058$as_echo_n "checking for $ac_word... " >&6; }
9059if test "${ac_cv_prog_NMEDIT+set}" = set; then :
9060 $as_echo_n "(cached) " >&6
976af183 9061else
9062 if test -n "$NMEDIT"; then
9063 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9064else
9065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9066for as_dir in $PATH
9067do
9068 IFS=$as_save_IFS
9069 test -z "$as_dir" && as_dir=.
cd9a469c 9070 for ac_exec_ext in '' $ac_executable_extensions; do
9071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
976af183 9072 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cd9a469c 9073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
976af183 9074 break 2
9075 fi
9076done
cd9a469c 9077 done
9078IFS=$as_save_IFS
e6312df0 9079
542f9784 9080fi
976af183 9081fi
9082NMEDIT=$ac_cv_prog_NMEDIT
9083if test -n "$NMEDIT"; then
cd9a469c 9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9085$as_echo "$NMEDIT" >&6; }
e6312df0 9086else
cd9a469c 9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9088$as_echo "no" >&6; }
542f9784 9089fi
976af183 9090
cd9a469c 9091
976af183 9092fi
9093if test -z "$ac_cv_prog_NMEDIT"; then
9094 ac_ct_NMEDIT=$NMEDIT
9095 # Extract the first word of "nmedit", so it can be a program name with args.
9096set dummy nmedit; ac_word=$2
cd9a469c 9097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9098$as_echo_n "checking for $ac_word... " >&6; }
9099if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9100 $as_echo_n "(cached) " >&6
976af183 9101else
9102 if test -n "$ac_ct_NMEDIT"; then
9103 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9104else
9105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9106for as_dir in $PATH
e6312df0 9107do
976af183 9108 IFS=$as_save_IFS
9109 test -z "$as_dir" && as_dir=.
cd9a469c 9110 for ac_exec_ext in '' $ac_executable_extensions; do
9111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
976af183 9112 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cd9a469c 9113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
976af183 9114 break 2
e6312df0 9115 fi
976af183 9116done
cd9a469c 9117 done
9118IFS=$as_save_IFS
976af183 9119
e6312df0 9120fi
976af183 9121fi
9122ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9123if test -n "$ac_ct_NMEDIT"; then
cd9a469c 9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9125$as_echo "$ac_ct_NMEDIT" >&6; }
542f9784 9126else
cd9a469c 9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9128$as_echo "no" >&6; }
e6312df0 9129fi
9130
cd9a469c 9131 if test "x$ac_ct_NMEDIT" = x; then
9132 NMEDIT=":"
9133 else
9134 case $cross_compiling:$ac_tool_warned in
9135yes:)
9136{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9137$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9138ac_tool_warned=yes ;;
9139esac
9140 NMEDIT=$ac_ct_NMEDIT
9141 fi
e6312df0 9142else
976af183 9143 NMEDIT="$ac_cv_prog_NMEDIT"
e6312df0 9144fi
976af183 9145
9146 if test -n "$ac_tool_prefix"; then
9147 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9148set dummy ${ac_tool_prefix}lipo; ac_word=$2
cd9a469c 9149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9150$as_echo_n "checking for $ac_word... " >&6; }
9151if test "${ac_cv_prog_LIPO+set}" = set; then :
9152 $as_echo_n "(cached) " >&6
542f9784 9153else
976af183 9154 if test -n "$LIPO"; then
9155 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9156else
9157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9158for as_dir in $PATH
9159do
9160 IFS=$as_save_IFS
9161 test -z "$as_dir" && as_dir=.
cd9a469c 9162 for ac_exec_ext in '' $ac_executable_extensions; do
9163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
976af183 9164 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cd9a469c 9165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
976af183 9166 break 2
9167 fi
9168done
cd9a469c 9169 done
9170IFS=$as_save_IFS
e6312df0 9171
9172fi
976af183 9173fi
9174LIPO=$ac_cv_prog_LIPO
9175if test -n "$LIPO"; then
cd9a469c 9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9177$as_echo "$LIPO" >&6; }
e6312df0 9178else
cd9a469c 9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9180$as_echo "no" >&6; }
542f9784 9181fi
8662f9d0 9182
cd9a469c 9183
976af183 9184fi
9185if test -z "$ac_cv_prog_LIPO"; then
9186 ac_ct_LIPO=$LIPO
9187 # Extract the first word of "lipo", so it can be a program name with args.
9188set dummy lipo; ac_word=$2
cd9a469c 9189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9190$as_echo_n "checking for $ac_word... " >&6; }
9191if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9192 $as_echo_n "(cached) " >&6
e6312df0 9193else
976af183 9194 if test -n "$ac_ct_LIPO"; then
9195 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9196else
9197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9198for as_dir in $PATH
9199do
9200 IFS=$as_save_IFS
9201 test -z "$as_dir" && as_dir=.
cd9a469c 9202 for ac_exec_ext in '' $ac_executable_extensions; do
9203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
976af183 9204 ac_cv_prog_ac_ct_LIPO="lipo"
cd9a469c 9205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
976af183 9206 break 2
9207 fi
9208done
cd9a469c 9209 done
9210IFS=$as_save_IFS
976af183 9211
976af183 9212fi
9213fi
9214ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9215if test -n "$ac_ct_LIPO"; then
cd9a469c 9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9217$as_echo "$ac_ct_LIPO" >&6; }
976af183 9218else
cd9a469c 9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9220$as_echo "no" >&6; }
976af183 9221fi
9222
cd9a469c 9223 if test "x$ac_ct_LIPO" = x; then
9224 LIPO=":"
9225 else
9226 case $cross_compiling:$ac_tool_warned in
9227yes:)
9228{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9229$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9230ac_tool_warned=yes ;;
9231esac
9232 LIPO=$ac_ct_LIPO
9233 fi
976af183 9234else
9235 LIPO="$ac_cv_prog_LIPO"
9236fi
9237
9238 if test -n "$ac_tool_prefix"; then
9239 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9240set dummy ${ac_tool_prefix}otool; ac_word=$2
cd9a469c 9241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9242$as_echo_n "checking for $ac_word... " >&6; }
9243if test "${ac_cv_prog_OTOOL+set}" = set; then :
9244 $as_echo_n "(cached) " >&6
976af183 9245else
9246 if test -n "$OTOOL"; then
9247 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9248else
9249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9250for as_dir in $PATH
9251do
9252 IFS=$as_save_IFS
9253 test -z "$as_dir" && as_dir=.
cd9a469c 9254 for ac_exec_ext in '' $ac_executable_extensions; do
9255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
976af183 9256 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cd9a469c 9257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
976af183 9258 break 2
9259 fi
9260done
cd9a469c 9261 done
9262IFS=$as_save_IFS
976af183 9263
9264fi
9265fi
9266OTOOL=$ac_cv_prog_OTOOL
9267if test -n "$OTOOL"; then
cd9a469c 9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9269$as_echo "$OTOOL" >&6; }
976af183 9270else
cd9a469c 9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9272$as_echo "no" >&6; }
976af183 9273fi
9274
cd9a469c 9275
976af183 9276fi
9277if test -z "$ac_cv_prog_OTOOL"; then
9278 ac_ct_OTOOL=$OTOOL
9279 # Extract the first word of "otool", so it can be a program name with args.
9280set dummy otool; ac_word=$2
cd9a469c 9281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9282$as_echo_n "checking for $ac_word... " >&6; }
9283if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9284 $as_echo_n "(cached) " >&6
976af183 9285else
9286 if test -n "$ac_ct_OTOOL"; then
9287 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9288else
9289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9290for as_dir in $PATH
9291do
9292 IFS=$as_save_IFS
9293 test -z "$as_dir" && as_dir=.
cd9a469c 9294 for ac_exec_ext in '' $ac_executable_extensions; do
9295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
976af183 9296 ac_cv_prog_ac_ct_OTOOL="otool"
cd9a469c 9297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
976af183 9298 break 2
9299 fi
9300done
cd9a469c 9301 done
9302IFS=$as_save_IFS
976af183 9303
976af183 9304fi
9305fi
9306ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9307if test -n "$ac_ct_OTOOL"; then
cd9a469c 9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9309$as_echo "$ac_ct_OTOOL" >&6; }
976af183 9310else
cd9a469c 9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9312$as_echo "no" >&6; }
976af183 9313fi
9314
cd9a469c 9315 if test "x$ac_ct_OTOOL" = x; then
9316 OTOOL=":"
9317 else
9318 case $cross_compiling:$ac_tool_warned in
9319yes:)
9320{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9321$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9322ac_tool_warned=yes ;;
9323esac
9324 OTOOL=$ac_ct_OTOOL
9325 fi
976af183 9326else
9327 OTOOL="$ac_cv_prog_OTOOL"
9328fi
9329
9330 if test -n "$ac_tool_prefix"; then
9331 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9332set dummy ${ac_tool_prefix}otool64; ac_word=$2
cd9a469c 9333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9334$as_echo_n "checking for $ac_word... " >&6; }
9335if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9336 $as_echo_n "(cached) " >&6
976af183 9337else
9338 if test -n "$OTOOL64"; then
9339 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9340else
9341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9342for as_dir in $PATH
9343do
9344 IFS=$as_save_IFS
9345 test -z "$as_dir" && as_dir=.
cd9a469c 9346 for ac_exec_ext in '' $ac_executable_extensions; do
9347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
976af183 9348 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cd9a469c 9349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
976af183 9350 break 2
9351 fi
9352done
cd9a469c 9353 done
9354IFS=$as_save_IFS
976af183 9355
9356fi
9357fi
9358OTOOL64=$ac_cv_prog_OTOOL64
9359if test -n "$OTOOL64"; then
cd9a469c 9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9361$as_echo "$OTOOL64" >&6; }
976af183 9362else
cd9a469c 9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9364$as_echo "no" >&6; }
976af183 9365fi
9366
cd9a469c 9367
976af183 9368fi
9369if test -z "$ac_cv_prog_OTOOL64"; then
9370 ac_ct_OTOOL64=$OTOOL64
9371 # Extract the first word of "otool64", so it can be a program name with args.
9372set dummy otool64; ac_word=$2
cd9a469c 9373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9374$as_echo_n "checking for $ac_word... " >&6; }
9375if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9376 $as_echo_n "(cached) " >&6
976af183 9377else
9378 if test -n "$ac_ct_OTOOL64"; then
9379 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9380else
9381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9382for as_dir in $PATH
9383do
9384 IFS=$as_save_IFS
9385 test -z "$as_dir" && as_dir=.
cd9a469c 9386 for ac_exec_ext in '' $ac_executable_extensions; do
9387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
976af183 9388 ac_cv_prog_ac_ct_OTOOL64="otool64"
cd9a469c 9389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
976af183 9390 break 2
9391 fi
9392done
cd9a469c 9393 done
9394IFS=$as_save_IFS
976af183 9395
976af183 9396fi
9397fi
9398ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9399if test -n "$ac_ct_OTOOL64"; then
cd9a469c 9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9401$as_echo "$ac_ct_OTOOL64" >&6; }
976af183 9402else
cd9a469c 9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9404$as_echo "no" >&6; }
976af183 9405fi
9406
cd9a469c 9407 if test "x$ac_ct_OTOOL64" = x; then
9408 OTOOL64=":"
9409 else
9410 case $cross_compiling:$ac_tool_warned in
9411yes:)
9412{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9413$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9414ac_tool_warned=yes ;;
9415esac
9416 OTOOL64=$ac_ct_OTOOL64
9417 fi
976af183 9418else
9419 OTOOL64="$ac_cv_prog_OTOOL64"
9420fi
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
cd9a469c 9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9449$as_echo_n "checking for -single_module linker flag... " >&6; }
9450if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9451 $as_echo_n "(cached) " >&6
976af183 9452else
9453 lt_cv_apple_cc_single_mod=no
9454 if test -z "${LT_MULTI_MODULE}"; then
9455 # By default we will add the -single_module flag. You can override
9456 # by either setting the environment variable LT_MULTI_MODULE
9457 # non-empty at configure time, or by adding -multi_module to the
9458 # link flags.
9459 rm -rf libconftest.dylib*
9460 echo "int foo(void){return 1;}" > conftest.c
9461 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9462-dynamiclib -Wl,-single_module conftest.c" >&5
9463 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9464 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9465 _lt_result=$?
9466 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9467 lt_cv_apple_cc_single_mod=yes
9468 else
9469 cat conftest.err >&5
9470 fi
9471 rm -rf libconftest.dylib*
9472 rm -f conftest.*
9473 fi
9474fi
cd9a469c 9475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9476$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9478$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9479if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9480 $as_echo_n "(cached) " >&6
976af183 9481else
9482 lt_cv_ld_exported_symbols_list=no
9483 save_LDFLAGS=$LDFLAGS
9484 echo "_main" > conftest.sym
9485 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9486 if test x$gcc_no_link = xyes; then
cd9a469c 9487 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
976af183 9488fi
cd9a469c 9489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
976af183 9490/* end confdefs.h. */
e6312df0 9491
9492int
9493main ()
9494{
9495
9496 ;
9497 return 0;
9498}
9499_ACEOF
cd9a469c 9500if ac_fn_c_try_link "$LINENO"; then :
976af183 9501 lt_cv_ld_exported_symbols_list=yes
e6312df0 9502else
cd9a469c 9503 lt_cv_ld_exported_symbols_list=no
e6312df0 9504fi
cd9a469c 9505rm -f core conftest.err conftest.$ac_objext \
9506 conftest$ac_exeext conftest.$ac_ext
976af183 9507 LDFLAGS="$save_LDFLAGS"
4618c7f0 9508
e6312df0 9509fi
cd9a469c 9510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9511$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
e6408286 9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9513$as_echo_n "checking for -force_load linker flag... " >&6; }
9514if test "${lt_cv_ld_force_load+set}" = set; then :
9515 $as_echo_n "(cached) " >&6
9516else
9517 lt_cv_ld_force_load=no
9518 cat > conftest.c << _LT_EOF
9519int forced_loaded() { return 2;}
9520_LT_EOF
9521 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9522 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9523 echo "$AR cru libconftest.a conftest.o" >&5
9524 $AR cru libconftest.a conftest.o 2>&5
9525 cat > conftest.c << _LT_EOF
9526int main() { return 0;}
9527_LT_EOF
9528 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9529 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9530 _lt_result=$?
9531 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9532 lt_cv_ld_force_load=yes
9533 else
9534 cat conftest.err >&5
9535 fi
9536 rm -f conftest.err libconftest.a conftest conftest.c
9537 rm -rf conftest.dSYM
9538
9539fi
9540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9541$as_echo "$lt_cv_ld_force_load" >&6; }
976af183 9542 case $host_os in
9543 rhapsody* | darwin1.[012])
9544 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9545 darwin1.*)
9546 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9547 darwin*) # darwin 5.x on
9548 # if running on 10.5 or later, the deployment target defaults
9549 # to the OS version, if on x86, and 10.4, the deployment
9550 # target defaults to 10.4. Don't you love it?
9551 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9552 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9553 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9554 10.[012]*)
9555 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9556 10.*)
9557 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9558 esac
9559 ;;
9560 esac
9561 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9562 _lt_dar_single_mod='$single_module'
9563 fi
9564 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9565 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9566 else
9567 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9568 fi
e6408286 9569 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
976af183 9570 _lt_dsymutil='~$DSYMUTIL $lib || :'
9571 else
9572 _lt_dsymutil=
9573 fi
9574 ;;
9575 esac
4618c7f0 9576
976af183 9577ac_ext=c
9578ac_cpp='$CPP $CPPFLAGS'
9579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9581ac_compiler_gnu=$ac_cv_c_compiler_gnu
cd9a469c 9582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9583$as_echo_n "checking how to run the C preprocessor... " >&6; }
976af183 9584# On Suns, sometimes $CPP names a directory.
9585if test -n "$CPP" && test -d "$CPP"; then
9586 CPP=
e6312df0 9587fi
976af183 9588if test -z "$CPP"; then
cd9a469c 9589 if test "${ac_cv_prog_CPP+set}" = set; then :
9590 $as_echo_n "(cached) " >&6
976af183 9591else
9592 # Double quotes because CPP needs to be expanded
9593 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9594 do
9595 ac_preproc_ok=false
9596for ac_c_preproc_warn_flag in '' yes
9597do
9598 # Use a header file that comes with gcc, so configuring glibc
9599 # with a fresh cross-compiler works.
9600 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9601 # <limits.h> exists even on freestanding compilers.
9602 # On the NeXT, cc -E runs the code through the compiler's parser,
9603 # not just through cpp. "Syntax error" is here to catch this case.
cd9a469c 9604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 9605/* end confdefs.h. */
976af183 9606#ifdef __STDC__
9607# include <limits.h>
9608#else
9609# include <assert.h>
9610#endif
9611 Syntax error
9612_ACEOF
cd9a469c 9613if ac_fn_c_try_cpp "$LINENO"; then :
976af183 9614
cd9a469c 9615else
976af183 9616 # Broken: fails on valid input.
9617continue
2c60951b 9618fi
976af183 9619rm -f conftest.err conftest.$ac_ext
9620
cd9a469c 9621 # OK, works on sane cases. Now check whether nonexistent headers
976af183 9622 # can be detected and how.
cd9a469c 9623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
976af183 9624/* end confdefs.h. */
9625#include <ac_nonexistent.h>
9626_ACEOF
cd9a469c 9627if ac_fn_c_try_cpp "$LINENO"; then :
976af183 9628 # Broken: success on invalid input.
9629continue
9630else
976af183 9631 # Passes both tests.
9632ac_preproc_ok=:
9633break
f5fddbf2 9634fi
976af183 9635rm -f conftest.err conftest.$ac_ext
4618c7f0 9636
976af183 9637done
9638# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9639rm -f conftest.err conftest.$ac_ext
cd9a469c 9640if $ac_preproc_ok; then :
976af183 9641 break
9642fi
9643
9644 done
9645 ac_cv_prog_CPP=$CPP
9646
9647fi
9648 CPP=$ac_cv_prog_CPP
542f9784 9649else
976af183 9650 ac_cv_prog_CPP=$CPP
9651fi
cd9a469c 9652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9653$as_echo "$CPP" >&6; }
976af183 9654ac_preproc_ok=false
9655for ac_c_preproc_warn_flag in '' yes
9656do
9657 # Use a header file that comes with gcc, so configuring glibc
9658 # with a fresh cross-compiler works.
9659 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9660 # <limits.h> exists even on freestanding compilers.
9661 # On the NeXT, cc -E runs the code through the compiler's parser,
9662 # not just through cpp. "Syntax error" is here to catch this case.
cd9a469c 9663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 9664/* end confdefs.h. */
976af183 9665#ifdef __STDC__
9666# include <limits.h>
542f9784 9667#else
976af183 9668# include <assert.h>
542f9784 9669#endif
976af183 9670 Syntax error
542f9784 9671_ACEOF
cd9a469c 9672if ac_fn_c_try_cpp "$LINENO"; then :
f5fddbf2 9673
cd9a469c 9674else
976af183 9675 # Broken: fails on valid input.
9676continue
542f9784 9677fi
976af183 9678rm -f conftest.err conftest.$ac_ext
4618c7f0 9679
cd9a469c 9680 # OK, works on sane cases. Now check whether nonexistent headers
976af183 9681 # can be detected and how.
cd9a469c 9682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
976af183 9683/* end confdefs.h. */
9684#include <ac_nonexistent.h>
9685_ACEOF
cd9a469c 9686if ac_fn_c_try_cpp "$LINENO"; then :
976af183 9687 # Broken: success on invalid input.
9688continue
9689else
976af183 9690 # Passes both tests.
9691ac_preproc_ok=:
9692break
9693fi
9694rm -f conftest.err conftest.$ac_ext
65bf3316 9695
976af183 9696done
9697# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9698rm -f conftest.err conftest.$ac_ext
cd9a469c 9699if $ac_preproc_ok; then :
9700
976af183 9701else
cd9a469c 9702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9703$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9704as_fn_error "C preprocessor \"$CPP\" fails sanity check
9705See \`config.log' for more details." "$LINENO" 5; }
976af183 9706fi
65bf3316 9707
976af183 9708ac_ext=c
9709ac_cpp='$CPP $CPPFLAGS'
9710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9712ac_compiler_gnu=$ac_cv_c_compiler_gnu
65bf3316 9713
9714
cd9a469c 9715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9716$as_echo_n "checking for ANSI C header files... " >&6; }
9717if test "${ac_cv_header_stdc+set}" = set; then :
9718 $as_echo_n "(cached) " >&6
65bf3316 9719else
cd9a469c 9720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 9721/* end confdefs.h. */
976af183 9722#include <stdlib.h>
9723#include <stdarg.h>
9724#include <string.h>
9725#include <float.h>
65bf3316 9726
976af183 9727int
9728main ()
9729{
9730
9731 ;
9732 return 0;
9733}
542f9784 9734_ACEOF
cd9a469c 9735if ac_fn_c_try_compile "$LINENO"; then :
976af183 9736 ac_cv_header_stdc=yes
45683482 9737else
cd9a469c 9738 ac_cv_header_stdc=no
976af183 9739fi
cd9a469c 9740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
976af183 9741
9742if test $ac_cv_header_stdc = yes; then
9743 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cd9a469c 9744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
976af183 9745/* end confdefs.h. */
9746#include <string.h>
9747
9748_ACEOF
9749if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cd9a469c 9750 $EGREP "memchr" >/dev/null 2>&1; then :
9751
976af183 9752else
9753 ac_cv_header_stdc=no
9754fi
9755rm -f conftest*
9756
9757fi
9758
9759if test $ac_cv_header_stdc = yes; then
9760 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cd9a469c 9761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
976af183 9762/* end confdefs.h. */
9763#include <stdlib.h>
9764
9765_ACEOF
9766if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cd9a469c 9767 $EGREP "free" >/dev/null 2>&1; then :
9768
976af183 9769else
9770 ac_cv_header_stdc=no
9771fi
9772rm -f conftest*
9773
9774fi
9775
9776if test $ac_cv_header_stdc = yes; then
9777 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cd9a469c 9778 if test "$cross_compiling" = yes; then :
976af183 9779 :
9780else
cd9a469c 9781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
976af183 9782/* end confdefs.h. */
9783#include <ctype.h>
cd9a469c 9784#include <stdlib.h>
976af183 9785#if ((' ' & 0x0FF) == 0x020)
9786# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9787# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9788#else
9789# define ISLOWER(c) \
9790 (('a' <= (c) && (c) <= 'i') \
9791 || ('j' <= (c) && (c) <= 'r') \
9792 || ('s' <= (c) && (c) <= 'z'))
9793# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9794#endif
9795
9796#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9797int
9798main ()
9799{
9800 int i;
9801 for (i = 0; i < 256; i++)
9802 if (XOR (islower (i), ISLOWER (i))
9803 || toupper (i) != TOUPPER (i))
cd9a469c 9804 return 2;
9805 return 0;
976af183 9806}
9807_ACEOF
cd9a469c 9808if ac_fn_c_try_run "$LINENO"; then :
976af183 9809
cd9a469c 9810else
9811 ac_cv_header_stdc=no
976af183 9812fi
cd9a469c 9813rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9814 conftest.$ac_objext conftest.beam conftest.$ac_ext
976af183 9815fi
cd9a469c 9816
976af183 9817fi
9818fi
cd9a469c 9819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9820$as_echo "$ac_cv_header_stdc" >&6; }
976af183 9821if test $ac_cv_header_stdc = yes; then
9822
cd9a469c 9823$as_echo "#define STDC_HEADERS 1" >>confdefs.h
976af183 9824
9825fi
9826
9827# On IRIX 5.3, sys/types and inttypes.h are conflicting.
976af183 9828for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9829 inttypes.h stdint.h unistd.h
cd9a469c 9830do :
9831 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9832ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9833"
9834eval as_val=\$$as_ac_Header
9835 if test "x$as_val" = x""yes; then :
542f9784 9836 cat >>confdefs.h <<_ACEOF
cd9a469c 9837#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
542f9784 9838_ACEOF
45683482 9839
45683482 9840fi
9841
542f9784 9842done
45683482 9843
9844
542f9784 9845for ac_header in dlfcn.h
cd9a469c 9846do :
9847 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9848"
9849if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
542f9784 9850 cat >>confdefs.h <<_ACEOF
cd9a469c 9851#define HAVE_DLFCN_H 1
0a53b20c 9852_ACEOF
9853
542f9784 9854fi
4618c7f0 9855
542f9784 9856done
9a6624c4 9857
52201c54 9858
9a6624c4 9859
0b324007 9860
0b324007 9861
cd9a469c 9862
e6408286 9863# Set options
e581835c 9864
e6408286 9865
9866
9867
9868 enable_win32_dll=no
9869
9870
9871 # Check whether --enable-shared was given.
9872if test "${enable_shared+set}" = set; then :
9873 enableval=$enable_shared; p=${PACKAGE-default}
9874 case $enableval in
9875 yes) enable_shared=yes ;;
9876 no) enable_shared=no ;;
9877 *)
9878 enable_shared=no
9879 # Look at the argument we got. We use all the common list separators.
9880 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9881 for pkg in $enableval; do
9882 IFS="$lt_save_ifs"
9883 if test "X$pkg" = "X$p"; then
9884 enable_shared=yes
9885 fi
9886 done
9887 IFS="$lt_save_ifs"
9888 ;;
9889 esac
d5daf43b 9890else
e6408286 9891 enable_shared=yes
cd9a469c 9892fi
9893
1dc74225 9894
9895
4618c7f0 9896
4618c7f0 9897
2c60951b 9898
2c60951b 9899
9900
2c60951b 9901
cd9a469c 9902 # Check whether --enable-static was given.
9903if test "${enable_static+set}" = set; then :
9904 enableval=$enable_static; p=${PACKAGE-default}
976af183 9905 case $enableval in
9906 yes) enable_static=yes ;;
9907 no) enable_static=no ;;
9908 *)
9909 enable_static=no
9910 # Look at the argument we got. We use all the common list separators.
9911 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9912 for pkg in $enableval; do
9913 IFS="$lt_save_ifs"
9914 if test "X$pkg" = "X$p"; then
9915 enable_static=yes
9916 fi
9917 done
9918 IFS="$lt_save_ifs"
9919 ;;
9920 esac
9921else
9922 enable_static=yes
cd9a469c 9923fi
9924
2c60951b 9925
58732244 9926
9927
d5fa04e9 9928
28440d3b 9929
9930
d5fa04e9 9931
28440d3b 9932
9933
cd9a469c 9934# Check whether --with-pic was given.
9935if test "${with_pic+set}" = set; then :
9936 withval=$with_pic; pic_mode="$withval"
976af183 9937else
9938 pic_mode=default
cd9a469c 9939fi
9940
d5fa04e9 9941
976af183 9942test -z "$pic_mode" && pic_mode=default
ffb7f8f8 9943
938166fe 9944
1cea1c35 9945
ffb7f8f8 9946
b152bc66 9947
9948
a51bf27b 9949
cd9a469c 9950 # Check whether --enable-fast-install was given.
9951if test "${enable_fast_install+set}" = set; then :
9952 enableval=$enable_fast_install; p=${PACKAGE-default}
976af183 9953 case $enableval in
9954 yes) enable_fast_install=yes ;;
9955 no) enable_fast_install=no ;;
9956 *)
9957 enable_fast_install=no
9958 # Look at the argument we got. We use all the common list separators.
9959 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9960 for pkg in $enableval; do
9961 IFS="$lt_save_ifs"
9962 if test "X$pkg" = "X$p"; then
9963 enable_fast_install=yes
9964 fi
9965 done
9966 IFS="$lt_save_ifs"
9967 ;;
9968 esac
9969else
9970 enable_fast_install=yes
cd9a469c 9971fi
9972
a51bf27b 9973
4618c7f0 9974
b152bc66 9975
b152bc66 9976
a51bf27b 9977
b152bc66 9978
4618c7f0 9979
63a06cfe 9980
2c60951b 9981
542f9784 9982
976af183 9983# This can be used to rebuild libtool when needed
9984LIBTOOL_DEPS="$ltmain"
9985
9986# Always use our own libtool.
9987LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
e6408286 10011
976af183 10012
10013
10014test -z "$LN_S" && LN_S="ln -s"
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029if test -n "${ZSH_VERSION+set}" ; then
10030 setopt NO_GLOB_SUBST
10031fi
10032
cd9a469c 10033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10034$as_echo_n "checking for objdir... " >&6; }
10035if test "${lt_cv_objdir+set}" = set; then :
10036 $as_echo_n "(cached) " >&6
f5699769 10037else
542f9784 10038 rm -f .libs 2>/dev/null
10039mkdir .libs 2>/dev/null
10040if test -d .libs; then
10041 lt_cv_objdir=.libs
10042else
10043 # MS-DOS does not allow filenames that begin with a dot.
10044 lt_cv_objdir=_libs
10045fi
10046rmdir .libs 2>/dev/null
f5699769 10047fi
cd9a469c 10048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10049$as_echo "$lt_cv_objdir" >&6; }
542f9784 10050objdir=$lt_cv_objdir
2c60951b 10051
4618c7f0 10052
4618c7f0 10053
4618c7f0 10054
4618c7f0 10055
542f9784 10056cat >>confdefs.h <<_ACEOF
10057#define LT_OBJDIR "$lt_cv_objdir/"
10058_ACEOF
4618c7f0 10059
4618c7f0 10060
4618c7f0 10061
4618c7f0 10062
542f9784 10063case $host_os in
10064aix3*)
10065 # AIX sometimes has problems with the GCC collect2 program. For some
10066 # reason, if we set the COLLECT_NAMES environment variable, the problems
10067 # vanish in a puff of smoke.
10068 if test "X${COLLECT_NAMES+set}" != Xset; then
10069 COLLECT_NAMES=
10070 export COLLECT_NAMES
4618c7f0 10071 fi
542f9784 10072 ;;
10073esac
10074
542f9784 10075# Global variables:
10076ofile=libtool
10077can_build_shared=yes
10078
10079# All known linkers require a `.a' archive for static linking (except MSVC,
10080# which needs '.lib').
10081libext=a
10082
10083with_gnu_ld="$lt_cv_prog_gnu_ld"
10084
10085old_CC="$CC"
10086old_CFLAGS="$CFLAGS"
10087
10088# Set sane defaults for various variables
10089test -z "$CC" && CC=cc
10090test -z "$LTCC" && LTCC=$CC
10091test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10092test -z "$LD" && LD=ld
10093test -z "$ac_objext" && ac_objext=o
10094
10095for cc_temp in $compiler""; do
10096 case $cc_temp in
10097 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10098 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10099 \-*) ;;
10100 *) break;;
10101 esac
4618c7f0 10102done
e6408286 10103cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
2c60951b 10104
542f9784 10105
10106# Only perform the check for file, if the check method requires it
10107test -z "$MAGIC_CMD" && MAGIC_CMD=file
10108case $deplibs_check_method in
10109file_magic*)
10110 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cd9a469c 10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10112$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10113if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10114 $as_echo_n "(cached) " >&6
f5699769 10115else
542f9784 10116 case $MAGIC_CMD in
10117[\\/*] | ?:[\\/]*)
10118 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10119 ;;
10120*)
10121 lt_save_MAGIC_CMD="$MAGIC_CMD"
10122 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10123 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10124 for ac_dir in $ac_dummy; do
10125 IFS="$lt_save_ifs"
10126 test -z "$ac_dir" && ac_dir=.
10127 if test -f $ac_dir/${ac_tool_prefix}file; then
10128 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10129 if test -n "$file_magic_test_file"; then
10130 case $deplibs_check_method in
10131 "file_magic "*)
10132 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10133 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10134 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10135 $EGREP "$file_magic_regex" > /dev/null; then
10136 :
10137 else
10138 cat <<_LT_EOF 1>&2
4618c7f0 10139
542f9784 10140*** Warning: the command libtool uses to detect shared libraries,
10141*** $file_magic_cmd, produces output that libtool cannot recognize.
10142*** The result is that libtool may fail to recognize shared libraries
10143*** as such. This will affect the creation of libtool libraries that
10144*** depend on shared libraries, but programs linked with such libtool
10145*** libraries will work regardless of this problem. Nevertheless, you
10146*** may want to report the problem to your system manager and/or to
10147*** bug-libtool@gnu.org
10148
10149_LT_EOF
10150 fi ;;
10151 esac
10152 fi
10153 break
f5699769 10154 fi
10155 done
542f9784 10156 IFS="$lt_save_ifs"
10157 MAGIC_CMD="$lt_save_MAGIC_CMD"
10158 ;;
10159esac
f5699769 10160fi
2c60951b 10161
542f9784 10162MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10163if test -n "$MAGIC_CMD"; then
cd9a469c 10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10165$as_echo "$MAGIC_CMD" >&6; }
f5699769 10166else
cd9a469c 10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10168$as_echo "no" >&6; }
f5699769 10169fi
4618c7f0 10170
2c60951b 10171
b152bc66 10172
4618c7f0 10173
2c60951b 10174
542f9784 10175if test -z "$lt_cv_path_MAGIC_CMD"; then
10176 if test -n "$ac_tool_prefix"; then
cd9a469c 10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10178$as_echo_n "checking for file... " >&6; }
10179if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10180 $as_echo_n "(cached) " >&6
f5699769 10181else
542f9784 10182 case $MAGIC_CMD in
10183[\\/*] | ?:[\\/]*)
10184 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10185 ;;
10186*)
10187 lt_save_MAGIC_CMD="$MAGIC_CMD"
10188 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10189 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10190 for ac_dir in $ac_dummy; do
10191 IFS="$lt_save_ifs"
10192 test -z "$ac_dir" && ac_dir=.
10193 if test -f $ac_dir/file; then
10194 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10195 if test -n "$file_magic_test_file"; then
10196 case $deplibs_check_method in
10197 "file_magic "*)
10198 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10199 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10200 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10201 $EGREP "$file_magic_regex" > /dev/null; then
10202 :
10203 else
10204 cat <<_LT_EOF 1>&2
2c60951b 10205
542f9784 10206*** Warning: the command libtool uses to detect shared libraries,
10207*** $file_magic_cmd, produces output that libtool cannot recognize.
10208*** The result is that libtool may fail to recognize shared libraries
10209*** as such. This will affect the creation of libtool libraries that
10210*** depend on shared libraries, but programs linked with such libtool
10211*** libraries will work regardless of this problem. Nevertheless, you
10212*** may want to report the problem to your system manager and/or to
10213*** bug-libtool@gnu.org
3361983d 10214
542f9784 10215_LT_EOF
10216 fi ;;
10217 esac
10218 fi
10219 break
10220 fi
10221 done
10222 IFS="$lt_save_ifs"
10223 MAGIC_CMD="$lt_save_MAGIC_CMD"
10224 ;;
10225esac
10226fi
3361983d 10227
542f9784 10228MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10229if test -n "$MAGIC_CMD"; then
cd9a469c 10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10231$as_echo "$MAGIC_CMD" >&6; }
f5699769 10232else
cd9a469c 10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10234$as_echo "no" >&6; }
4618c7f0 10235fi
3361983d 10236
2c60951b 10237
542f9784 10238 else
10239 MAGIC_CMD=:
10240 fi
10241fi
10242
10243 fi
10244 ;;
10245esac
10246
10247# Use C for the default configuration in the libtool script
10248
10249lt_save_CC="$CC"
10250ac_ext=c
10251ac_cpp='$CPP $CPPFLAGS'
10252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10254ac_compiler_gnu=$ac_cv_c_compiler_gnu
10255
10256
10257# Source file extension for C test sources.
10258ac_ext=c
10259
10260# Object file extension for compiled C test sources.
10261objext=o
10262objext=$objext
10263
10264# Code to be used in simple compile tests
10265lt_simple_compile_test_code="int some_variable = 0;"
10266
10267# Code to be used in simple link tests
10268lt_simple_link_test_code='int main(){return(0);}'
10269
10270
10271
10272
10273
10274
10275
10276# If no C compiler was specified, use CC.
10277LTCC=${LTCC-"$CC"}
10278
10279# If no C compiler flags were specified, use CFLAGS.
10280LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10281
10282# Allow CC to be a program name with arguments.
10283compiler=$CC
10284
10285# Save the default compiler, since it gets overwritten when the other
10286# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10287compiler_DEFAULT=$CC
10288
10289# save warnings/boilerplate of simple test code
10290ac_outfile=conftest.$ac_objext
10291echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10292eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10293_lt_compiler_boilerplate=`cat conftest.err`
10294$RM conftest*
10295
10296ac_outfile=conftest.$ac_objext
10297echo "$lt_simple_link_test_code" >conftest.$ac_ext
10298eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10299_lt_linker_boilerplate=`cat conftest.err`
976af183 10300$RM -r conftest*
542f9784 10301
10302
10303## CAVEAT EMPTOR:
10304## There is no encapsulation within the following macros, do not change
10305## the running order or otherwise move them around unless you know exactly
10306## what you are doing...
10307if test -n "$compiler"; then
10308
10309lt_prog_compiler_no_builtin_flag=
10310
10311if test "$GCC" = yes; then
e6408286 10312 case $cc_basename in
10313 nvcc*)
10314 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10315 *)
10316 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10317 esac
542f9784 10318
cd9a469c 10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10320$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10321if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10322 $as_echo_n "(cached) " >&6
f5699769 10323else
542f9784 10324 lt_cv_prog_compiler_rtti_exceptions=no
10325 ac_outfile=conftest.$ac_objext
10326 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10327 lt_compiler_flag="-fno-rtti -fno-exceptions"
10328 # Insert the option either (1) after the last *FLAGS variable, or
10329 # (2) before a word containing "conftest.", or (3) at the end.
10330 # Note that $ac_compile itself does not contain backslashes and begins
10331 # with a dollar sign (not a hyphen), so the echo should work correctly.
10332 # The option is referenced via a variable to avoid confusing sed.
10333 lt_compile=`echo "$ac_compile" | $SED \
10334 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10335 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10336 -e 's:$: $lt_compiler_flag:'`
e6408286 10337 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 10338 (eval "$lt_compile" 2>conftest.err)
10339 ac_status=$?
10340 cat conftest.err >&5
e6408286 10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 10342 if (exit $ac_status) && test -s "$ac_outfile"; then
10343 # The compiler can only warn and ignore the option if not recognized
10344 # So say no if there are warnings other than the usual output.
e6408286 10345 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
542f9784 10346 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10347 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10348 lt_cv_prog_compiler_rtti_exceptions=yes
10349 fi
10350 fi
10351 $RM conftest*
4618c7f0 10352
f5699769 10353fi
cd9a469c 10354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10355$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
2c60951b 10356
542f9784 10357if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10358 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10359else
10360 :
10361fi
2c60951b 10362
4618c7f0 10363fi
4618c7f0 10364
2c60951b 10365
542f9784 10366
10367
10368
10369
10370 lt_prog_compiler_wl=
10371lt_prog_compiler_pic=
10372lt_prog_compiler_static=
10373
cd9a469c 10374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10375$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
542f9784 10376
10377 if test "$GCC" = yes; then
10378 lt_prog_compiler_wl='-Wl,'
10379 lt_prog_compiler_static='-static'
10380
10381 case $host_os in
10382 aix*)
10383 # All AIX code is PIC.
10384 if test "$host_cpu" = ia64; then
10385 # AIX 5 now supports IA64 processor
10386 lt_prog_compiler_static='-Bstatic'
10387 fi
10388 ;;
10389
10390 amigaos*)
976af183 10391 case $host_cpu in
10392 powerpc)
10393 # see comment about AmigaOS4 .so support
10394 lt_prog_compiler_pic='-fPIC'
10395 ;;
10396 m68k)
10397 # FIXME: we need at least 68020 code to build shared libraries, but
10398 # adding the `-m68020' flag to GCC prevents building anything better,
10399 # like `-m68040'.
10400 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10401 ;;
10402 esac
542f9784 10403 ;;
10404
10405 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10406 # PIC is the default for these OSes.
10407 ;;
10408
976af183 10409 mingw* | cygwin* | pw32* | os2* | cegcc*)
542f9784 10410 # This hack is so that the source file can tell whether it is being
10411 # built for inclusion in a dll (and should export symbols for example).
10412 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10413 # (--disable-auto-import) libraries
10414 lt_prog_compiler_pic='-DDLL_EXPORT'
10415 ;;
10416
10417 darwin* | rhapsody*)
10418 # PIC is the default on this platform
10419 # Common symbols not allowed in MH_DYLIB files
10420 lt_prog_compiler_pic='-fno-common'
10421 ;;
10422
e6408286 10423 haiku*)
10424 # PIC is the default for Haiku.
10425 # The "-static" flag exists, but is broken.
10426 lt_prog_compiler_static=
10427 ;;
10428
542f9784 10429 hpux*)
976af183 10430 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10431 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10432 # sets the default TLS model and affects inlining.
542f9784 10433 case $host_cpu in
976af183 10434 hppa*64*)
542f9784 10435 # +Z the default
10436 ;;
10437 *)
10438 lt_prog_compiler_pic='-fPIC'
10439 ;;
10440 esac
10441 ;;
10442
10443 interix[3-9]*)
10444 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10445 # Instead, we relocate shared libraries at runtime.
10446 ;;
10447
10448 msdosdjgpp*)
10449 # Just because we use GCC doesn't mean we suddenly get shared libraries
10450 # on systems that don't support them.
10451 lt_prog_compiler_can_build_shared=no
10452 enable_shared=no
10453 ;;
10454
10455 *nto* | *qnx*)
10456 # QNX uses GNU C++, but need to define -shared option too, otherwise
10457 # it will coredump.
10458 lt_prog_compiler_pic='-fPIC -shared'
10459 ;;
10460
10461 sysv4*MP*)
10462 if test -d /usr/nec; then
10463 lt_prog_compiler_pic=-Kconform_pic
10464 fi
10465 ;;
10466
10467 *)
10468 lt_prog_compiler_pic='-fPIC'
10469 ;;
10470 esac
e6408286 10471
10472 case $cc_basename in
10473 nvcc*) # Cuda Compiler Driver 2.2
10474 lt_prog_compiler_wl='-Xlinker '
10475 lt_prog_compiler_pic='-Xcompiler -fPIC'
10476 ;;
10477 esac
542f9784 10478 else
10479 # PORTME Check for flag to pass linker flags through the system compiler.
10480 case $host_os in
10481 aix*)
10482 lt_prog_compiler_wl='-Wl,'
10483 if test "$host_cpu" = ia64; then
10484 # AIX 5 now supports IA64 processor
10485 lt_prog_compiler_static='-Bstatic'
10486 else
10487 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10488 fi
10489 ;;
542f9784 10490
976af183 10491 mingw* | cygwin* | pw32* | os2* | cegcc*)
542f9784 10492 # This hack is so that the source file can tell whether it is being
10493 # built for inclusion in a dll (and should export symbols for example).
10494 lt_prog_compiler_pic='-DDLL_EXPORT'
10495 ;;
10496
10497 hpux9* | hpux10* | hpux11*)
10498 lt_prog_compiler_wl='-Wl,'
10499 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10500 # not for PA HP-UX.
10501 case $host_cpu in
10502 hppa*64*|ia64*)
10503 # +Z the default
10504 ;;
10505 *)
10506 lt_prog_compiler_pic='+Z'
10507 ;;
10508 esac
10509 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10510 lt_prog_compiler_static='${wl}-a ${wl}archive'
10511 ;;
10512
10513 irix5* | irix6* | nonstopux*)
10514 lt_prog_compiler_wl='-Wl,'
10515 # PIC (with -KPIC) is the default.
10516 lt_prog_compiler_static='-non_shared'
10517 ;;
10518
9af964d4 10519 linux* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 10520 case $cc_basename in
976af183 10521 # old Intel for x86_64 which still supported -KPIC.
10522 ecc*)
542f9784 10523 lt_prog_compiler_wl='-Wl,'
10524 lt_prog_compiler_pic='-KPIC'
10525 lt_prog_compiler_static='-static'
10526 ;;
976af183 10527 # icc used to be incompatible with GCC.
10528 # ICC 10 doesn't accept -KPIC any more.
10529 icc* | ifort*)
10530 lt_prog_compiler_wl='-Wl,'
10531 lt_prog_compiler_pic='-fPIC'
10532 lt_prog_compiler_static='-static'
10533 ;;
10534 # Lahey Fortran 8.1.
10535 lf95*)
10536 lt_prog_compiler_wl='-Wl,'
10537 lt_prog_compiler_pic='--shared'
10538 lt_prog_compiler_static='--static'
10539 ;;
e6408286 10540 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
542f9784 10541 # Portland Group compilers (*not* the Pentium gcc compiler,
10542 # which looks to be a dead project)
10543 lt_prog_compiler_wl='-Wl,'
10544 lt_prog_compiler_pic='-fpic'
10545 lt_prog_compiler_static='-Bstatic'
10546 ;;
10547 ccc*)
10548 lt_prog_compiler_wl='-Wl,'
10549 # All Alpha code is PIC.
10550 lt_prog_compiler_static='-non_shared'
10551 ;;
e6408286 10552 xl* | bgxl* | bgf* | mpixl*)
10553 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
976af183 10554 lt_prog_compiler_wl='-Wl,'
10555 lt_prog_compiler_pic='-qpic'
10556 lt_prog_compiler_static='-qstaticlink'
10557 ;;
542f9784 10558 *)
10559 case `$CC -V 2>&1 | sed 5q` in
e6408286 10560 *Sun\ F* | *Sun*Fortran*)
10561 # Sun Fortran 8.3 passes all unrecognized flags to the linker
542f9784 10562 lt_prog_compiler_pic='-KPIC'
10563 lt_prog_compiler_static='-Bstatic'
e6408286 10564 lt_prog_compiler_wl=''
542f9784 10565 ;;
e6408286 10566 *Sun\ C*)
10567 # Sun C 5.9
542f9784 10568 lt_prog_compiler_pic='-KPIC'
10569 lt_prog_compiler_static='-Bstatic'
e6408286 10570 lt_prog_compiler_wl='-Wl,'
542f9784 10571 ;;
10572 esac
10573 ;;
10574 esac
10575 ;;
10576
10577 newsos6)
10578 lt_prog_compiler_pic='-KPIC'
10579 lt_prog_compiler_static='-Bstatic'
10580 ;;
10581
10582 *nto* | *qnx*)
10583 # QNX uses GNU C++, but need to define -shared option too, otherwise
10584 # it will coredump.
10585 lt_prog_compiler_pic='-fPIC -shared'
10586 ;;
10587
10588 osf3* | osf4* | osf5*)
10589 lt_prog_compiler_wl='-Wl,'
10590 # All OSF/1 code is PIC.
10591 lt_prog_compiler_static='-non_shared'
10592 ;;
10593
10594 rdos*)
10595 lt_prog_compiler_static='-non_shared'
10596 ;;
10597
10598 solaris*)
10599 lt_prog_compiler_pic='-KPIC'
10600 lt_prog_compiler_static='-Bstatic'
10601 case $cc_basename in
10602 f77* | f90* | f95*)
10603 lt_prog_compiler_wl='-Qoption ld ';;
10604 *)
10605 lt_prog_compiler_wl='-Wl,';;
10606 esac
10607 ;;
10608
10609 sunos4*)
10610 lt_prog_compiler_wl='-Qoption ld '
10611 lt_prog_compiler_pic='-PIC'
10612 lt_prog_compiler_static='-Bstatic'
10613 ;;
10614
10615 sysv4 | sysv4.2uw2* | sysv4.3*)
10616 lt_prog_compiler_wl='-Wl,'
10617 lt_prog_compiler_pic='-KPIC'
10618 lt_prog_compiler_static='-Bstatic'
10619 ;;
10620
10621 sysv4*MP*)
10622 if test -d /usr/nec ;then
10623 lt_prog_compiler_pic='-Kconform_pic'
10624 lt_prog_compiler_static='-Bstatic'
10625 fi
10626 ;;
10627
10628 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10629 lt_prog_compiler_wl='-Wl,'
10630 lt_prog_compiler_pic='-KPIC'
10631 lt_prog_compiler_static='-Bstatic'
10632 ;;
10633
10634 unicos*)
10635 lt_prog_compiler_wl='-Wl,'
10636 lt_prog_compiler_can_build_shared=no
10637 ;;
10638
10639 uts4*)
10640 lt_prog_compiler_pic='-pic'
10641 lt_prog_compiler_static='-Bstatic'
10642 ;;
10643
10644 *)
10645 lt_prog_compiler_can_build_shared=no
10646 ;;
10647 esac
10648 fi
10649
10650case $host_os in
10651 # For platforms which do not support PIC, -DPIC is meaningless:
10652 *djgpp*)
10653 lt_prog_compiler_pic=
10654 ;;
10655 *)
10656 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10657 ;;
10658esac
cd9a469c 10659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10660$as_echo "$lt_prog_compiler_pic" >&6; }
542f9784 10661
10662
10663
10664
10665
10666
10667#
10668# Check to make sure the PIC flag actually works.
10669#
10670if test -n "$lt_prog_compiler_pic"; then
cd9a469c 10671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10672$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10673if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10674 $as_echo_n "(cached) " >&6
f5699769 10675else
976af183 10676 lt_cv_prog_compiler_pic_works=no
542f9784 10677 ac_outfile=conftest.$ac_objext
10678 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10679 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10680 # Insert the option either (1) after the last *FLAGS variable, or
10681 # (2) before a word containing "conftest.", or (3) at the end.
10682 # Note that $ac_compile itself does not contain backslashes and begins
10683 # with a dollar sign (not a hyphen), so the echo should work correctly.
10684 # The option is referenced via a variable to avoid confusing sed.
10685 lt_compile=`echo "$ac_compile" | $SED \
10686 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10687 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10688 -e 's:$: $lt_compiler_flag:'`
e6408286 10689 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 10690 (eval "$lt_compile" 2>conftest.err)
10691 ac_status=$?
10692 cat conftest.err >&5
e6408286 10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 10694 if (exit $ac_status) && test -s "$ac_outfile"; then
10695 # The compiler can only warn and ignore the option if not recognized
10696 # So say no if there are warnings other than the usual output.
e6408286 10697 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
542f9784 10698 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10699 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
976af183 10700 lt_cv_prog_compiler_pic_works=yes
542f9784 10701 fi
10702 fi
10703 $RM conftest*
10704
4618c7f0 10705fi
cd9a469c 10706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10707$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
cb0593ad 10708
976af183 10709if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
542f9784 10710 case $lt_prog_compiler_pic in
10711 "" | " "*) ;;
10712 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10713 esac
4618c7f0 10714else
542f9784 10715 lt_prog_compiler_pic=
10716 lt_prog_compiler_can_build_shared=no
10717fi
4618c7f0 10718
4618c7f0 10719fi
542f9784 10720
10721
10722
10723
10724
10725
10726#
10727# Check to make sure the static flag actually works.
10728#
10729wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cd9a469c 10730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10731$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10732if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10733 $as_echo_n "(cached) " >&6
542f9784 10734else
976af183 10735 lt_cv_prog_compiler_static_works=no
542f9784 10736 save_LDFLAGS="$LDFLAGS"
10737 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10738 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10739 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10740 # The linker can only warn and ignore the option if not recognized
10741 # So say no if there are warnings
10742 if test -s conftest.err; then
10743 # Append any errors to the config.log.
10744 cat conftest.err 1>&5
e6408286 10745 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
542f9784 10746 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10747 if diff conftest.exp conftest.er2 >/dev/null; then
976af183 10748 lt_cv_prog_compiler_static_works=yes
542f9784 10749 fi
10750 else
976af183 10751 lt_cv_prog_compiler_static_works=yes
542f9784 10752 fi
10753 fi
976af183 10754 $RM -r conftest*
542f9784 10755 LDFLAGS="$save_LDFLAGS"
10756
4618c7f0 10757fi
cd9a469c 10758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10759$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
542f9784 10760
976af183 10761if test x"$lt_cv_prog_compiler_static_works" = xyes; then
542f9784 10762 :
10763else
10764 lt_prog_compiler_static=
f5699769 10765fi
cb0593ad 10766
542f9784 10767
10768
10769
10770
10771
10772
cd9a469c 10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10774$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10775if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10776 $as_echo_n "(cached) " >&6
f5699769 10777else
542f9784 10778 lt_cv_prog_compiler_c_o=no
10779 $RM -r conftest 2>/dev/null
10780 mkdir conftest
10781 cd conftest
10782 mkdir out
10783 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10784
10785 lt_compiler_flag="-o out/conftest2.$ac_objext"
10786 # Insert the option either (1) after the last *FLAGS variable, or
10787 # (2) before a word containing "conftest.", or (3) at the end.
10788 # Note that $ac_compile itself does not contain backslashes and begins
10789 # with a dollar sign (not a hyphen), so the echo should work correctly.
10790 lt_compile=`echo "$ac_compile" | $SED \
10791 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10792 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10793 -e 's:$: $lt_compiler_flag:'`
e6408286 10794 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 10795 (eval "$lt_compile" 2>out/conftest.err)
10796 ac_status=$?
10797 cat out/conftest.err >&5
e6408286 10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 10799 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10800 then
10801 # The compiler can only warn and ignore the option if not recognized
10802 # So say no if there are warnings
e6408286 10803 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
542f9784 10804 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10805 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10806 lt_cv_prog_compiler_c_o=yes
10807 fi
10808 fi
10809 chmod u+w . 2>&5
10810 $RM conftest*
10811 # SGI C++ compiler will create directory out/ii_files/ for
10812 # template instantiation
10813 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10814 $RM out/* && rmdir out
10815 cd ..
10816 $RM -r conftest
10817 $RM conftest*
10818
4618c7f0 10819fi
cd9a469c 10820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10821$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
4618c7f0 10822
4618c7f0 10823
09980a67 10824
10825
542f9784 10826
10827
cd9a469c 10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10829$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10830if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10831 $as_echo_n "(cached) " >&6
4618c7f0 10832else
542f9784 10833 lt_cv_prog_compiler_c_o=no
10834 $RM -r conftest 2>/dev/null
10835 mkdir conftest
10836 cd conftest
10837 mkdir out
10838 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10839
10840 lt_compiler_flag="-o out/conftest2.$ac_objext"
10841 # Insert the option either (1) after the last *FLAGS variable, or
10842 # (2) before a word containing "conftest.", or (3) at the end.
10843 # Note that $ac_compile itself does not contain backslashes and begins
10844 # with a dollar sign (not a hyphen), so the echo should work correctly.
10845 lt_compile=`echo "$ac_compile" | $SED \
10846 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10847 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10848 -e 's:$: $lt_compiler_flag:'`
e6408286 10849 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 10850 (eval "$lt_compile" 2>out/conftest.err)
10851 ac_status=$?
10852 cat out/conftest.err >&5
e6408286 10853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 10854 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10855 then
10856 # The compiler can only warn and ignore the option if not recognized
10857 # So say no if there are warnings
e6408286 10858 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
542f9784 10859 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10860 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10861 lt_cv_prog_compiler_c_o=yes
10862 fi
10863 fi
10864 chmod u+w . 2>&5
10865 $RM conftest*
10866 # SGI C++ compiler will create directory out/ii_files/ for
10867 # template instantiation
10868 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10869 $RM out/* && rmdir out
10870 cd ..
10871 $RM -r conftest
10872 $RM conftest*
10873
10874fi
cd9a469c 10875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10876$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
542f9784 10877
10878
10879
10880
10881hard_links="nottested"
10882if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10883 # do not overwrite the value of need_locks provided by the user
cd9a469c 10884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10885$as_echo_n "checking if we can lock with hard links... " >&6; }
542f9784 10886 hard_links=yes
10887 $RM conftest*
10888 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10889 touch conftest.a
10890 ln conftest.a conftest.b 2>&5 || hard_links=no
10891 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cd9a469c 10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10893$as_echo "$hard_links" >&6; }
542f9784 10894 if test "$hard_links" = no; then
cd9a469c 10895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10896$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
542f9784 10897 need_locks=warn
10898 fi
10899else
10900 need_locks=no
10901fi
10902
10903
10904
10905
10906
10907
cd9a469c 10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10909$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
542f9784 10910
10911 runpath_var=
10912 allow_undefined_flag=
10913 always_export_symbols=no
10914 archive_cmds=
10915 archive_expsym_cmds=
10916 compiler_needs_object=no
10917 enable_shared_with_static_runtimes=no
10918 export_dynamic_flag_spec=
10919 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10920 hardcode_automatic=no
10921 hardcode_direct=no
10922 hardcode_direct_absolute=no
10923 hardcode_libdir_flag_spec=
10924 hardcode_libdir_flag_spec_ld=
10925 hardcode_libdir_separator=
10926 hardcode_minus_L=no
10927 hardcode_shlibpath_var=unsupported
10928 inherit_rpath=no
10929 link_all_deplibs=unknown
10930 module_cmds=
10931 module_expsym_cmds=
10932 old_archive_from_new_cmds=
10933 old_archive_from_expsyms_cmds=
10934 thread_safe_flag_spec=
10935 whole_archive_flag_spec=
10936 # include_expsyms should be a list of space-separated symbols to be *always*
10937 # included in the symbol list
10938 include_expsyms=
10939 # exclude_expsyms can be an extended regexp of symbols to exclude
10940 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10941 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10942 # as well as any symbol that contains `d'.
976af183 10943 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
542f9784 10944 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10945 # platforms (ab)use it in PIC code, but their linkers get confused if
10946 # the symbol is explicitly referenced. Since portable code cannot
10947 # rely on this symbol name, it's probably fine to never include it in
10948 # preloaded symbol tables.
976af183 10949 # Exclude shared library initialization/finalization symbols.
542f9784 10950 extract_expsyms_cmds=
10951
10952 case $host_os in
976af183 10953 cygwin* | mingw* | pw32* | cegcc*)
542f9784 10954 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10955 # When not using gcc, we currently assume that we are using
10956 # Microsoft Visual C++.
10957 if test "$GCC" != yes; then
10958 with_gnu_ld=no
10959 fi
10960 ;;
10961 interix*)
10962 # we just hope/assume this is gcc and not c89 (= MSVC++)
10963 with_gnu_ld=yes
10964 ;;
10965 openbsd*)
10966 with_gnu_ld=no
10967 ;;
10968 esac
10969
10970 ld_shlibs=yes
e6408286 10971
10972 # On some targets, GNU ld is compatible enough with the native linker
10973 # that we're better off using the native interface for both.
10974 lt_use_gnu_ld_interface=no
542f9784 10975 if test "$with_gnu_ld" = yes; then
e6408286 10976 case $host_os in
10977 aix*)
10978 # The AIX port of GNU ld has always aspired to compatibility
10979 # with the native linker. However, as the warning in the GNU ld
10980 # block says, versions before 2.19.5* couldn't really create working
10981 # shared libraries, regardless of the interface used.
10982 case `$LD -v 2>&1` in
10983 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10984 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10985 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10986 *)
10987 lt_use_gnu_ld_interface=yes
10988 ;;
10989 esac
10990 ;;
10991 *)
10992 lt_use_gnu_ld_interface=yes
10993 ;;
10994 esac
10995 fi
10996
10997 if test "$lt_use_gnu_ld_interface" = yes; then
542f9784 10998 # If archive_cmds runs LD, not CC, wlarc should be empty
10999 wlarc='${wl}'
11000
11001 # Set some defaults for GNU ld with shared library support. These
11002 # are reset later if shared libraries are not supported. Putting them
11003 # here allows them to be overridden if necessary.
11004 runpath_var=LD_RUN_PATH
11005 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11006 export_dynamic_flag_spec='${wl}--export-dynamic'
11007 # ancient GNU ld didn't support --whole-archive et. al.
11008 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11009 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11010 else
11011 whole_archive_flag_spec=
11012 fi
11013 supports_anon_versioning=no
11014 case `$LD -v 2>&1` in
e6408286 11015 *GNU\ gold*) supports_anon_versioning=yes ;;
542f9784 11016 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11017 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11018 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11019 *\ 2.11.*) ;; # other 2.11 versions
11020 *) supports_anon_versioning=yes ;;
11021 esac
11022
11023 # See if GNU ld supports shared libraries.
11024 case $host_os in
a7798917 11025 aix[3-9]*)
542f9784 11026 # On AIX/PPC, the GNU linker is very broken
11027 if test "$host_cpu" != ia64; then
11028 ld_shlibs=no
11029 cat <<_LT_EOF 1>&2
11030
e6408286 11031*** Warning: the GNU linker, at least up to release 2.19, is reported
542f9784 11032*** to be unable to reliably create shared libraries on AIX.
11033*** Therefore, libtool is disabling shared libraries support. If you
e6408286 11034*** really care for shared libraries, you may want to install binutils
11035*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11036*** You will then need to restart the configuration process.
542f9784 11037
11038_LT_EOF
11039 fi
11040 ;;
11041
11042 amigaos*)
976af183 11043 case $host_cpu in
11044 powerpc)
11045 # see comment about AmigaOS4 .so support
11046 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11047 archive_expsym_cmds=''
11048 ;;
11049 m68k)
11050 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)'
11051 hardcode_libdir_flag_spec='-L$libdir'
11052 hardcode_minus_L=yes
11053 ;;
11054 esac
542f9784 11055 ;;
11056
11057 beos*)
11058 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11059 allow_undefined_flag=unsupported
11060 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11061 # support --undefined. This deserves some investigation. FIXME
11062 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11063 else
11064 ld_shlibs=no
11065 fi
11066 ;;
11067
976af183 11068 cygwin* | mingw* | pw32* | cegcc*)
542f9784 11069 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11070 # as there is no search path for DLLs.
11071 hardcode_libdir_flag_spec='-L$libdir'
e6408286 11072 export_dynamic_flag_spec='${wl}--export-all-symbols'
542f9784 11073 allow_undefined_flag=unsupported
11074 always_export_symbols=no
11075 enable_shared_with_static_runtimes=yes
11076 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11077
11078 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11079 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11080 # If the export-symbols file already is a .def file (1st line
11081 # is EXPORTS), use it as is; otherwise, prepend...
11082 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11083 cp $export_symbols $output_objdir/$soname.def;
11084 else
11085 echo EXPORTS > $output_objdir/$soname.def;
11086 cat $export_symbols >> $output_objdir/$soname.def;
11087 fi~
11088 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11089 else
11090 ld_shlibs=no
11091 fi
11092 ;;
11093
e6408286 11094 haiku*)
11095 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11096 link_all_deplibs=yes
11097 ;;
11098
542f9784 11099 interix[3-9]*)
11100 hardcode_direct=no
11101 hardcode_shlibpath_var=no
11102 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11103 export_dynamic_flag_spec='${wl}-E'
11104 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11105 # Instead, shared libraries are loaded at an image base (0x10000000 by
11106 # default) and relocated if they conflict, which is a slow very memory
11107 # consuming and fragmenting process. To avoid this, we pick a random,
11108 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11109 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11110 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11111 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'
11112 ;;
11113
9af964d4 11114 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 11115 tmp_diet=no
11116 if test "$host_os" = linux-dietlibc; then
11117 case $cc_basename in
11118 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11119 esac
11120 fi
11121 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11122 && test "$tmp_diet" = no
11123 then
11124 tmp_addflag=
976af183 11125 tmp_sharedflag='-shared'
542f9784 11126 case $cc_basename,$host_cpu in
11127 pgcc*) # Portland Group C compiler
e6408286 11128 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'
542f9784 11129 tmp_addflag=' $pic_flag'
11130 ;;
e6408286 11131 pgf77* | pgf90* | pgf95* | pgfortran*)
11132 # Portland Group f77 and f90 compilers
11133 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'
542f9784 11134 tmp_addflag=' $pic_flag -Mnomain' ;;
11135 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11136 tmp_addflag=' -i_dynamic' ;;
11137 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11138 tmp_addflag=' -i_dynamic -nofor_main' ;;
11139 ifc* | ifort*) # Intel Fortran compiler
11140 tmp_addflag=' -nofor_main' ;;
976af183 11141 lf95*) # Lahey Fortran 8.1
11142 whole_archive_flag_spec=
11143 tmp_sharedflag='--shared' ;;
e6408286 11144 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
976af183 11145 tmp_sharedflag='-qmkshrobj'
11146 tmp_addflag= ;;
e6408286 11147 nvcc*) # Cuda Compiler Driver 2.2
11148 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'
11149 compiler_needs_object=yes
11150 ;;
542f9784 11151 esac
11152 case `$CC -V 2>&1 | sed 5q` in
11153 *Sun\ C*) # Sun C 5.9
e6408286 11154 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'
542f9784 11155 compiler_needs_object=yes
11156 tmp_sharedflag='-G' ;;
11157 *Sun\ F*) # Sun Fortran 8.3
11158 tmp_sharedflag='-G' ;;
542f9784 11159 esac
11160 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11161
11162 if test "x$supports_anon_versioning" = xyes; then
11163 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11164 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11165 echo "local: *; };" >> $output_objdir/$libname.ver~
11166 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11167 fi
976af183 11168
11169 case $cc_basename in
e6408286 11170 xlf* | bgf* | bgxlf* | mpixlf*)
976af183 11171 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11172 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11173 hardcode_libdir_flag_spec=
11174 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11175 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11176 if test "x$supports_anon_versioning" = xyes; then
11177 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11178 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11179 echo "local: *; };" >> $output_objdir/$libname.ver~
11180 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11181 fi
11182 ;;
11183 esac
542f9784 11184 else
11185 ld_shlibs=no
11186 fi
11187 ;;
11188
11189 netbsd*)
11190 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11191 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11192 wlarc=
11193 else
11194 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11195 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11196 fi
11197 ;;
11198
11199 solaris*)
11200 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11201 ld_shlibs=no
11202 cat <<_LT_EOF 1>&2
11203
11204*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11205*** create shared libraries on Solaris systems. Therefore, libtool
11206*** is disabling shared libraries support. We urge you to upgrade GNU
11207*** binutils to release 2.9.1 or newer. Another option is to modify
11208*** your PATH or compiler configuration so that the native linker is
11209*** used, and then restart.
11210
11211_LT_EOF
11212 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11213 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11214 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11215 else
11216 ld_shlibs=no
11217 fi
11218 ;;
11219
11220 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11221 case `$LD -v 2>&1` in
11222 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11223 ld_shlibs=no
11224 cat <<_LT_EOF 1>&2
11225
11226*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11227*** reliably create shared libraries on SCO systems. Therefore, libtool
11228*** is disabling shared libraries support. We urge you to upgrade GNU
11229*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11230*** your PATH or compiler configuration so that the native linker is
11231*** used, and then restart.
11232
11233_LT_EOF
11234 ;;
11235 *)
11236 # For security reasons, it is highly recommended that you always
11237 # use absolute paths for naming shared libraries, and exclude the
11238 # DT_RUNPATH tag from executables and libraries. But doing so
11239 # requires that you compile everything twice, which is a pain.
11240 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11241 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11242 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11243 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11244 else
11245 ld_shlibs=no
11246 fi
11247 ;;
11248 esac
11249 ;;
11250
11251 sunos4*)
11252 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11253 wlarc=
11254 hardcode_direct=yes
11255 hardcode_shlibpath_var=no
11256 ;;
11257
11258 *)
11259 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11260 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11261 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11262 else
11263 ld_shlibs=no
11264 fi
11265 ;;
11266 esac
11267
11268 if test "$ld_shlibs" = no; then
11269 runpath_var=
11270 hardcode_libdir_flag_spec=
11271 export_dynamic_flag_spec=
11272 whole_archive_flag_spec=
11273 fi
11274 else
11275 # PORTME fill in a description of your system's linker (not GNU ld)
11276 case $host_os in
11277 aix3*)
11278 allow_undefined_flag=unsupported
11279 always_export_symbols=yes
11280 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'
11281 # Note: this linker hardcodes the directories in LIBPATH if there
11282 # are no directories specified by -L.
11283 hardcode_minus_L=yes
11284 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11285 # Neither direct hardcoding nor static linking is supported with a
11286 # broken collect2.
11287 hardcode_direct=unsupported
11288 fi
11289 ;;
11290
a7798917 11291 aix[4-9]*)
542f9784 11292 if test "$host_cpu" = ia64; then
11293 # On IA64, the linker does run time linking by default, so we don't
11294 # have to do anything special.
11295 aix_use_runtimelinking=no
11296 exp_sym_flag='-Bexport'
11297 no_entry_flag=""
11298 else
11299 # If we're using GNU nm, then we don't want the "-C" option.
11300 # -C means demangle to AIX nm, but means don't demangle with GNU nm
e6408286 11301 # Also, AIX nm treats weak defined symbols like other global
11302 # defined symbols, whereas GNU nm marks them as "W".
542f9784 11303 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
e6408286 11304 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'
542f9784 11305 else
11306 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'
11307 fi
11308 aix_use_runtimelinking=no
11309
11310 # Test if we are trying to use run time linking or normal
11311 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11312 # need to do runtime linking.
a7798917 11313 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
542f9784 11314 for ld_flag in $LDFLAGS; do
11315 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11316 aix_use_runtimelinking=yes
11317 break
11318 fi
11319 done
11320 ;;
11321 esac
11322
11323 exp_sym_flag='-bexport'
11324 no_entry_flag='-bnoentry'
11325 fi
11326
11327 # When large executables or shared objects are built, AIX ld can
11328 # have problems creating the table of contents. If linking a library
11329 # or program results in "error TOC overflow" add -mminimal-toc to
11330 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11331 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11332
11333 archive_cmds=''
11334 hardcode_direct=yes
11335 hardcode_direct_absolute=yes
11336 hardcode_libdir_separator=':'
11337 link_all_deplibs=yes
11338 file_list_spec='${wl}-f,'
11339
11340 if test "$GCC" = yes; then
11341 case $host_os in aix4.[012]|aix4.[012].*)
11342 # We only want to do this on AIX 4.2 and lower, the check
11343 # below for broken collect2 doesn't work under 4.3+
11344 collect2name=`${CC} -print-prog-name=collect2`
11345 if test -f "$collect2name" &&
11346 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11347 then
11348 # We have reworked collect2
11349 :
11350 else
11351 # We have old collect2
11352 hardcode_direct=unsupported
11353 # It fails to find uninstalled libraries when the uninstalled
11354 # path is not listed in the libpath. Setting hardcode_minus_L
11355 # to unsupported forces relinking
11356 hardcode_minus_L=yes
11357 hardcode_libdir_flag_spec='-L$libdir'
11358 hardcode_libdir_separator=
11359 fi
11360 ;;
11361 esac
11362 shared_flag='-shared'
11363 if test "$aix_use_runtimelinking" = yes; then
11364 shared_flag="$shared_flag "'${wl}-G'
11365 fi
11366 else
11367 # not using gcc
11368 if test "$host_cpu" = ia64; then
11369 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11370 # chokes on -Wl,-G. The following line is correct:
11371 shared_flag='-G'
11372 else
11373 if test "$aix_use_runtimelinking" = yes; then
11374 shared_flag='${wl}-G'
11375 else
11376 shared_flag='${wl}-bM:SRE'
11377 fi
11378 fi
11379 fi
11380
976af183 11381 export_dynamic_flag_spec='${wl}-bexpall'
542f9784 11382 # It seems that -bexpall does not export symbols beginning with
11383 # underscore (_), so it is better to generate a list of symbols to export.
11384 always_export_symbols=yes
11385 if test "$aix_use_runtimelinking" = yes; then
11386 # Warning - without using the other runtime loading flags (-brtl),
11387 # -berok will link without error, but may produce a broken library.
11388 allow_undefined_flag='-berok'
11389 # Determine the default libpath from the value encoded in an
11390 # empty executable.
11391 if test x$gcc_no_link = xyes; then
cd9a469c 11392 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
4618c7f0 11393fi
cd9a469c 11394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618c7f0 11395/* end confdefs.h. */
2c60951b 11396
4618c7f0 11397int
11398main ()
11399{
542f9784 11400
4618c7f0 11401 ;
11402 return 0;
11403}
11404_ACEOF
cd9a469c 11405if ac_fn_c_try_link "$LINENO"; then :
542f9784 11406
11407lt_aix_libpath_sed='
11408 /Import File Strings/,/^$/ {
11409 /^0/ {
11410 s/^0 *\(.*\)$/\1/
11411 p
11412 }
11413 }'
11414aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11415# Check for a 64-bit object if we didn't find anything.
11416if test -z "$aix_libpath"; then
11417 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11418fi
4618c7f0 11419fi
cd9a469c 11420rm -f core conftest.err conftest.$ac_objext \
11421 conftest$ac_exeext conftest.$ac_ext
542f9784 11422if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
2c60951b 11423
542f9784 11424 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
e6408286 11425 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"
542f9784 11426 else
11427 if test "$host_cpu" = ia64; then
11428 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11429 allow_undefined_flag="-z nodefs"
11430 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"
11431 else
11432 # Determine the default libpath from the value encoded in an
11433 # empty executable.
11434 if test x$gcc_no_link = xyes; then
cd9a469c 11435 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
4618c7f0 11436fi
cd9a469c 11437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618c7f0 11438/* end confdefs.h. */
11439
4618c7f0 11440int
11441main ()
11442{
542f9784 11443
4618c7f0 11444 ;
11445 return 0;
11446}
11447_ACEOF
cd9a469c 11448if ac_fn_c_try_link "$LINENO"; then :
542f9784 11449
11450lt_aix_libpath_sed='
11451 /Import File Strings/,/^$/ {
11452 /^0/ {
11453 s/^0 *\(.*\)$/\1/
11454 p
11455 }
11456 }'
11457aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11458# Check for a 64-bit object if we didn't find anything.
11459if test -z "$aix_libpath"; then
11460 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11461fi
4618c7f0 11462fi
cd9a469c 11463rm -f core conftest.err conftest.$ac_objext \
11464 conftest$ac_exeext conftest.$ac_ext
542f9784 11465if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11466
11467 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11468 # Warning - without using the other run time loading flags,
11469 # -berok will link without error, but may produce a broken library.
11470 no_undefined_flag=' ${wl}-bernotok'
11471 allow_undefined_flag=' ${wl}-berok'
e6408286 11472 if test "$with_gnu_ld" = yes; then
11473 # We only use this code for GNU lds that support --whole-archive.
11474 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11475 else
11476 # Exported symbols can be pulled into shared objects from archives
11477 whole_archive_flag_spec='$convenience'
11478 fi
542f9784 11479 archive_cmds_need_lc=yes
11480 # This is similar to how AIX traditionally builds its shared libraries.
11481 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'
11482 fi
11483 fi
11484 ;;
68547d26 11485
542f9784 11486 amigaos*)
976af183 11487 case $host_cpu in
11488 powerpc)
11489 # see comment about AmigaOS4 .so support
11490 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11491 archive_expsym_cmds=''
11492 ;;
11493 m68k)
11494 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)'
11495 hardcode_libdir_flag_spec='-L$libdir'
11496 hardcode_minus_L=yes
11497 ;;
11498 esac
542f9784 11499 ;;
11500
11501 bsdi[45]*)
11502 export_dynamic_flag_spec=-rdynamic
11503 ;;
11504
976af183 11505 cygwin* | mingw* | pw32* | cegcc*)
542f9784 11506 # When not using gcc, we currently assume that we are using
11507 # Microsoft Visual C++.
11508 # hardcode_libdir_flag_spec is actually meaningless, as there is
11509 # no search path for DLLs.
11510 hardcode_libdir_flag_spec=' '
11511 allow_undefined_flag=unsupported
11512 # Tell ltmain to make .lib files, not .a files.
11513 libext=lib
11514 # Tell ltmain to make .dll files, not .so files.
11515 shrext_cmds=".dll"
11516 # FIXME: Setting linknames here is a bad hack.
e6408286 11517 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
542f9784 11518 # The linker will automatically build a .lib file if we build a DLL.
11519 old_archive_from_new_cmds='true'
11520 # FIXME: Should let the user specify the lib program.
11521 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11522 fix_srcfile_path='`cygpath -w "$srcfile"`'
11523 enable_shared_with_static_runtimes=yes
11524 ;;
11525
11526 darwin* | rhapsody*)
68547d26 11527
976af183 11528
11529 archive_cmds_need_lc=no
11530 hardcode_direct=no
11531 hardcode_automatic=yes
11532 hardcode_shlibpath_var=unsupported
e6408286 11533 if test "$lt_cv_ld_force_load" = "yes"; then
11534 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\"`'
11535 else
11536 whole_archive_flag_spec=''
11537 fi
976af183 11538 link_all_deplibs=yes
11539 allow_undefined_flag="$_lt_dar_allow_undefined"
11540 case $cc_basename in
11541 ifort*) _lt_dar_can_shared=yes ;;
11542 *) _lt_dar_can_shared=$GCC ;;
11543 esac
11544 if test "$_lt_dar_can_shared" = "yes"; then
e6408286 11545 output_verbose_link_cmd=func_echo_all
976af183 11546 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11547 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11548 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}"
11549 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}"
11550
11551 else
11552 ld_shlibs=no
11553 fi
11554
542f9784 11555 ;;
f5699769 11556
542f9784 11557 dgux*)
11558 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11559 hardcode_libdir_flag_spec='-L$libdir'
11560 hardcode_shlibpath_var=no
11561 ;;
4618c7f0 11562
542f9784 11563 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11564 # support. Future versions do this automatically, but an explicit c++rt0.o
11565 # does not break anything, and helps significantly (at the cost of a little
11566 # extra space).
11567 freebsd2.2*)
11568 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11569 hardcode_libdir_flag_spec='-R$libdir'
11570 hardcode_direct=yes
11571 hardcode_shlibpath_var=no
11572 ;;
2c60951b 11573
542f9784 11574 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
30369aff 11575 freebsd2.*)
542f9784 11576 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11577 hardcode_direct=yes
11578 hardcode_minus_L=yes
11579 hardcode_shlibpath_var=no
11580 ;;
2c60951b 11581
542f9784 11582 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11583 freebsd* | dragonfly*)
11584 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11585 hardcode_libdir_flag_spec='-R$libdir'
11586 hardcode_direct=yes
11587 hardcode_shlibpath_var=no
11588 ;;
2c60951b 11589
542f9784 11590 hpux9*)
11591 if test "$GCC" = yes; then
11592 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'
11593 else
11594 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'
11595 fi
11596 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11597 hardcode_libdir_separator=:
11598 hardcode_direct=yes
11599
11600 # hardcode_minus_L: Not really in the search PATH,
11601 # but as the default location of the library.
11602 hardcode_minus_L=yes
11603 export_dynamic_flag_spec='${wl}-E'
11604 ;;
4618c7f0 11605
542f9784 11606 hpux10*)
e6408286 11607 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
542f9784 11608 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11609 else
11610 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11611 fi
11612 if test "$with_gnu_ld" = no; then
11613 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11614 hardcode_libdir_flag_spec_ld='+b $libdir'
11615 hardcode_libdir_separator=:
11616 hardcode_direct=yes
11617 hardcode_direct_absolute=yes
11618 export_dynamic_flag_spec='${wl}-E'
11619 # hardcode_minus_L: Not really in the search PATH,
11620 # but as the default location of the library.
11621 hardcode_minus_L=yes
11622 fi
11623 ;;
2c60951b 11624
542f9784 11625 hpux11*)
e6408286 11626 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
542f9784 11627 case $host_cpu in
11628 hppa*64*)
11629 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11630 ;;
11631 ia64*)
976af183 11632 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
542f9784 11633 ;;
11634 *)
11635 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11636 ;;
11637 esac
11638 else
11639 case $host_cpu in
11640 hppa*64*)
11641 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11642 ;;
11643 ia64*)
11644 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11645 ;;
11646 *)
e6408286 11647
11648 # Older versions of the 11.00 compiler do not understand -b yet
11649 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11651$as_echo_n "checking if $CC understands -b... " >&6; }
11652if test "${lt_cv_prog_compiler__b+set}" = set; then :
11653 $as_echo_n "(cached) " >&6
11654else
11655 lt_cv_prog_compiler__b=no
11656 save_LDFLAGS="$LDFLAGS"
11657 LDFLAGS="$LDFLAGS -b"
11658 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11659 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11660 # The linker can only warn and ignore the option if not recognized
11661 # So say no if there are warnings
11662 if test -s conftest.err; then
11663 # Append any errors to the config.log.
11664 cat conftest.err 1>&5
11665 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11666 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11667 if diff conftest.exp conftest.er2 >/dev/null; then
11668 lt_cv_prog_compiler__b=yes
11669 fi
11670 else
11671 lt_cv_prog_compiler__b=yes
11672 fi
11673 fi
11674 $RM -r conftest*
11675 LDFLAGS="$save_LDFLAGS"
11676
11677fi
11678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11679$as_echo "$lt_cv_prog_compiler__b" >&6; }
11680
11681if test x"$lt_cv_prog_compiler__b" = xyes; then
11682 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11683else
11684 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11685fi
11686
542f9784 11687 ;;
11688 esac
11689 fi
11690 if test "$with_gnu_ld" = no; then
11691 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11692 hardcode_libdir_separator=:
11693
11694 case $host_cpu in
11695 hppa*64*|ia64*)
11696 hardcode_direct=no
11697 hardcode_shlibpath_var=no
11698 ;;
11699 *)
11700 hardcode_direct=yes
11701 hardcode_direct_absolute=yes
11702 export_dynamic_flag_spec='${wl}-E'
11703
11704 # hardcode_minus_L: Not really in the search PATH,
11705 # but as the default location of the library.
11706 hardcode_minus_L=yes
11707 ;;
11708 esac
11709 fi
11710 ;;
11711
11712 irix5* | irix6* | nonstopux*)
11713 if test "$GCC" = yes; then
e6408286 11714 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'
542f9784 11715 # Try to use the -exported_symbol ld option, if it does not
11716 # work, assume that -exports_file does not work either and
11717 # implicitly export all symbols.
11718 save_LDFLAGS="$LDFLAGS"
11719 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11720 if test x$gcc_no_link = xyes; then
cd9a469c 11721 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
4618c7f0 11722fi
cd9a469c 11723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11724/* end confdefs.h. */
542f9784 11725int foo(void) {}
4618c7f0 11726_ACEOF
cd9a469c 11727if ac_fn_c_try_link "$LINENO"; then :
e6408286 11728 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'
542f9784 11729
4618c7f0 11730fi
cd9a469c 11731rm -f core conftest.err conftest.$ac_objext \
11732 conftest$ac_exeext conftest.$ac_ext
542f9784 11733 LDFLAGS="$save_LDFLAGS"
11734 else
e6408286 11735 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'
11736 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'
542f9784 11737 fi
11738 archive_cmds_need_lc='no'
11739 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11740 hardcode_libdir_separator=:
11741 inherit_rpath=yes
11742 link_all_deplibs=yes
11743 ;;
f5699769 11744
542f9784 11745 netbsd*)
11746 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11747 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11748 else
11749 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11750 fi
11751 hardcode_libdir_flag_spec='-R$libdir'
11752 hardcode_direct=yes
11753 hardcode_shlibpath_var=no
11754 ;;
4618c7f0 11755
542f9784 11756 newsos6)
11757 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11758 hardcode_direct=yes
11759 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11760 hardcode_libdir_separator=:
11761 hardcode_shlibpath_var=no
11762 ;;
4618c7f0 11763
542f9784 11764 *nto* | *qnx*)
11765 ;;
2c60951b 11766
542f9784 11767 openbsd*)
976af183 11768 if test -f /usr/libexec/ld.so; then
11769 hardcode_direct=yes
11770 hardcode_shlibpath_var=no
11771 hardcode_direct_absolute=yes
11772 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
542f9784 11773 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
976af183 11774 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
542f9784 11775 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
976af183 11776 export_dynamic_flag_spec='${wl}-E'
11777 else
11778 case $host_os in
11779 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11780 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11781 hardcode_libdir_flag_spec='-R$libdir'
11782 ;;
11783 *)
11784 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11785 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11786 ;;
11787 esac
11788 fi
11789 else
11790 ld_shlibs=no
542f9784 11791 fi
11792 ;;
2c60951b 11793
542f9784 11794 os2*)
11795 hardcode_libdir_flag_spec='-L$libdir'
11796 hardcode_minus_L=yes
11797 allow_undefined_flag=unsupported
e6408286 11798 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'
542f9784 11799 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11800 ;;
2c60951b 11801
542f9784 11802 osf3*)
11803 if test "$GCC" = yes; then
11804 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
e6408286 11805 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'
542f9784 11806 else
11807 allow_undefined_flag=' -expect_unresolved \*'
e6408286 11808 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'
542f9784 11809 fi
11810 archive_cmds_need_lc='no'
11811 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11812 hardcode_libdir_separator=:
11813 ;;
4618c7f0 11814
542f9784 11815 osf4* | osf5*) # as osf3* with the addition of -msym flag
11816 if test "$GCC" = yes; then
11817 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
e6408286 11818 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'
542f9784 11819 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11820 else
11821 allow_undefined_flag=' -expect_unresolved \*'
e6408286 11822 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'
542f9784 11823 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~
e6408286 11824 $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'
2c60951b 11825
542f9784 11826 # Both c and cxx compiler support -rpath directly
11827 hardcode_libdir_flag_spec='-rpath $libdir'
11828 fi
11829 archive_cmds_need_lc='no'
11830 hardcode_libdir_separator=:
11831 ;;
4618c7f0 11832
542f9784 11833 solaris*)
11834 no_undefined_flag=' -z defs'
11835 if test "$GCC" = yes; then
11836 wlarc='${wl}'
11837 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11838 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11839 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11840 else
11841 case `$CC -V 2>&1` in
11842 *"Compilers 5.0"*)
11843 wlarc=''
11844 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11845 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11846 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11847 ;;
11848 *)
11849 wlarc='${wl}'
11850 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11851 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11852 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11853 ;;
11854 esac
11855 fi
11856 hardcode_libdir_flag_spec='-R$libdir'
11857 hardcode_shlibpath_var=no
11858 case $host_os in
11859 solaris2.[0-5] | solaris2.[0-5].*) ;;
11860 *)
11861 # The compiler driver will combine and reorder linker options,
11862 # but understands `-z linker_flag'. GCC discards it without `$wl',
11863 # but is careful enough not to reorder.
11864 # Supported since Solaris 2.6 (maybe 2.5.1?)
11865 if test "$GCC" = yes; then
11866 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11867 else
11868 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11869 fi
11870 ;;
11871 esac
11872 link_all_deplibs=yes
11873 ;;
11874
11875 sunos4*)
11876 if test "x$host_vendor" = xsequent; then
11877 # Use $CC to link under sequent, because it throws in some extra .o
11878 # files that make .init and .fini sections work.
11879 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11880 else
11881 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11882 fi
11883 hardcode_libdir_flag_spec='-L$libdir'
11884 hardcode_direct=yes
11885 hardcode_minus_L=yes
11886 hardcode_shlibpath_var=no
11887 ;;
11888
11889 sysv4)
11890 case $host_vendor in
11891 sni)
11892 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11893 hardcode_direct=yes # is this really true???
11894 ;;
11895 siemens)
11896 ## LD is ld it makes a PLAMLIB
11897 ## CC just makes a GrossModule.
11898 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11899 reload_cmds='$CC -r -o $output$reload_objs'
11900 hardcode_direct=no
11901 ;;
11902 motorola)
11903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11904 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11905 ;;
11906 esac
11907 runpath_var='LD_RUN_PATH'
11908 hardcode_shlibpath_var=no
11909 ;;
11910
11911 sysv4.3*)
11912 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11913 hardcode_shlibpath_var=no
11914 export_dynamic_flag_spec='-Bexport'
11915 ;;
11916
11917 sysv4*MP*)
11918 if test -d /usr/nec; then
11919 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11920 hardcode_shlibpath_var=no
11921 runpath_var=LD_RUN_PATH
11922 hardcode_runpath_var=yes
11923 ld_shlibs=yes
11924 fi
11925 ;;
11926
11927 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11928 no_undefined_flag='${wl}-z,text'
11929 archive_cmds_need_lc=no
11930 hardcode_shlibpath_var=no
11931 runpath_var='LD_RUN_PATH'
11932
11933 if test "$GCC" = yes; then
11934 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11935 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11936 else
11937 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11938 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11939 fi
11940 ;;
11941
11942 sysv5* | sco3.2v5* | sco5v6*)
11943 # Note: We can NOT use -z defs as we might desire, because we do not
11944 # link with -lc, and that would cause any symbols used from libc to
11945 # always be unresolved, which means just about no library would
11946 # ever link correctly. If we're not using GNU ld we use -z text
11947 # though, which does catch some bad symbols but isn't as heavy-handed
11948 # as -z defs.
11949 no_undefined_flag='${wl}-z,text'
11950 allow_undefined_flag='${wl}-z,nodefs'
11951 archive_cmds_need_lc=no
11952 hardcode_shlibpath_var=no
11953 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11954 hardcode_libdir_separator=':'
11955 link_all_deplibs=yes
11956 export_dynamic_flag_spec='${wl}-Bexport'
11957 runpath_var='LD_RUN_PATH'
11958
11959 if test "$GCC" = yes; then
11960 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11961 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11962 else
11963 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11964 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11965 fi
11966 ;;
11967
11968 uts4*)
11969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11970 hardcode_libdir_flag_spec='-L$libdir'
11971 hardcode_shlibpath_var=no
11972 ;;
11973
11974 *)
11975 ld_shlibs=no
11976 ;;
11977 esac
11978
11979 if test x$host_vendor = xsni; then
11980 case $host in
11981 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11982 export_dynamic_flag_spec='${wl}-Blargedynsym'
11983 ;;
11984 esac
11985 fi
11986 fi
11987
cd9a469c 11988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11989$as_echo "$ld_shlibs" >&6; }
542f9784 11990test "$ld_shlibs" = no && can_build_shared=no
11991
11992with_gnu_ld=$with_gnu_ld
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008#
12009# Do we need to explicitly link libc?
12010#
12011case "x$archive_cmds_need_lc" in
12012x|xyes)
12013 # Assume -lc should be added
12014 archive_cmds_need_lc=yes
12015
12016 if test "$enable_shared" = yes && test "$GCC" = yes; then
12017 case $archive_cmds in
12018 *'~'*)
12019 # FIXME: we may have to deal with multi-command sequences.
12020 ;;
12021 '$CC '*)
12022 # Test whether the compiler implicitly links with -lc since on some
12023 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12024 # to ld, don't add -lc before -lgcc.
cd9a469c 12025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12026$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12027if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
12028 $as_echo_n "(cached) " >&6
9e6fd619 12029else
12030 $RM conftest*
12031 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
542f9784 12032
cd9a469c 12033 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 12034 (eval $ac_compile) 2>&5
4618c7f0 12035 ac_status=$?
cd9a469c 12036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12037 test $ac_status = 0; } 2>conftest.err; then
9e6fd619 12038 soname=conftest
12039 lib=conftest
12040 libobjs=conftest.$ac_objext
12041 deplibs=
12042 wl=$lt_prog_compiler_wl
12043 pic_flag=$lt_prog_compiler_pic
12044 compiler_flags=-v
12045 linker_flags=-v
12046 verstring=
12047 output_objdir=.
12048 libname=conftest
12049 lt_save_allow_undefined_flag=$allow_undefined_flag
12050 allow_undefined_flag=
cd9a469c 12051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
542f9784 12052 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
4618c7f0 12053 ac_status=$?
cd9a469c 12054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12055 test $ac_status = 0; }
9e6fd619 12056 then
12057 lt_cv_archive_cmds_need_lc=no
12058 else
12059 lt_cv_archive_cmds_need_lc=yes
12060 fi
12061 allow_undefined_flag=$lt_save_allow_undefined_flag
12062 else
12063 cat conftest.err 1>&5
12064 fi
12065 $RM conftest*
12066
12067fi
cd9a469c 12068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12069$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9e6fd619 12070 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
542f9784 12071 ;;
12072 esac
12073 fi
12074 ;;
12075esac
4618c7f0 12076
2c60951b 12077
f5699769 12078
4618c7f0 12079
15159a4e 12080
15159a4e 12081
4618c7f0 12082
15159a4e 12083
4618c7f0 12084
15159a4e 12085
4618c7f0 12086
4618c7f0 12087
f5699769 12088
f5699769 12089
4618c7f0 12090
4618c7f0 12091
f5699769 12092
f5699769 12093
f5699769 12094
12095
f5699769 12096
45e26200 12097
12098
4618c7f0 12099
f5699769 12100
f5699769 12101
12102
12103
12104
12105
12106
f5699769 12107
12108
12109
e6312df0 12110
12111
12112
e6312df0 12113
12114
12115
f5699769 12116
4618c7f0 12117
f5699769 12118
f5699769 12119
4618c7f0 12120
f5699769 12121
12122
4618c7f0 12123
f5699769 12124
4618c7f0 12125
f5699769 12126
f5699769 12127
26370fb1 12128
26370fb1 12129
26370fb1 12130
26370fb1 12131
26370fb1 12132
98ef79fb 12133
98ef79fb 12134
26370fb1 12135
12136
90e5cba7 12137
621f785f 12138
e6312df0 12139
12140
12141
e6312df0 12142
12143
12144
e6312df0 12145
12146
919df381 12147
919df381 12148
12149
7b4ea9e5 12150
04c95bc9 12151
4887ae62 12152
7b4ea9e5 12153
919df381 12154
12155
4618c7f0 12156
7b4ea9e5 12157
7b4ea9e5 12158
15159a4e 12159
f5699769 12160
12161
15159a4e 12162
e6312df0 12163
15159a4e 12164
f5699769 12165
4618c7f0 12166
f632ca0d 12167
4618c7f0 12168
2c60951b 12169
4618c7f0 12170
d3ca31d6 12171
4618c7f0 12172
d3ca31d6 12173
4618c7f0 12174
f5699769 12175
4618c7f0 12176
81301f7e 12177
4618c7f0 12178
d3ca31d6 12179
4618c7f0 12180
d3ca31d6 12181
f5699769 12182
12183
f5699769 12184
4618c7f0 12185
12186
12187
12188
12189
12190
12191
12192
4618c7f0 12193
4618c7f0 12194
f5699769 12195
f5699769 12196
f5699769 12197
4618c7f0 12198
33a40528 12199
4618c7f0 12200
12201
12202
b1ecf63d 12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
f3fbc6e6 12215
4618c7f0 12216
4618c7f0 12217
2c60951b 12218
2c60951b 12219
2c60951b 12220
4618c7f0 12221
2c60951b 12222
98db1361 12223
4618c7f0 12224
12225
f5699769 12226
f5699769 12227
f5699769 12228
4618c7f0 12229
4618c7f0 12230
4618c7f0 12231
4618c7f0 12232
cd9a469c 12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12234$as_echo_n "checking dynamic linker characteristics... " >&6; }
976af183 12235
12236if test "$GCC" = yes; then
542f9784 12237 case $host_os in
12238 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12239 *) lt_awk_arg="/^libraries:/" ;;
12240 esac
e6408286 12241 case $host_os in
12242 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12243 *) lt_sed_strip_eq="s,=/,/,g" ;;
12244 esac
12245 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12246 case $lt_search_path_spec in
12247 *\;*)
542f9784 12248 # if the path contains ";" then we assume it to be the separator
12249 # otherwise default to the standard path separator (i.e. ":") - it is
12250 # assumed that no part of a normal pathname contains ";" but that should
12251 # okay in the real world where ";" in dirpaths is itself problematic.
e6408286 12252 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12253 ;;
12254 *)
12255 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12256 ;;
12257 esac
542f9784 12258 # Ok, now we have the path, separated by spaces, we can step through it
12259 # and add multilib dir if necessary.
12260 lt_tmp_lt_search_path_spec=
12261 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12262 for lt_sys_path in $lt_search_path_spec; do
12263 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12264 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12265 else
12266 test -d "$lt_sys_path" && \
12267 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12268 fi
12269 done
e6408286 12270 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
542f9784 12271BEGIN {RS=" "; FS="/|\n";} {
12272 lt_foo="";
12273 lt_count=0;
12274 for (lt_i = NF; lt_i > 0; lt_i--) {
12275 if ($lt_i != "" && $lt_i != ".") {
12276 if ($lt_i == "..") {
12277 lt_count++;
12278 } else {
12279 if (lt_count == 0) {
12280 lt_foo="/" $lt_i lt_foo;
12281 } else {
12282 lt_count--;
12283 }
12284 }
12285 }
12286 }
12287 if (lt_foo != "") { lt_freq[lt_foo]++; }
12288 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12289}'`
e6408286 12290 # AWK program above erroneously prepends '/' to C:/dos/paths
12291 # for these hosts.
12292 case $host_os in
12293 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12294 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12295 esac
12296 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
4618c7f0 12297else
542f9784 12298 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12299fi
12300library_names_spec=
12301libname_spec='lib$name'
12302soname_spec=
12303shrext_cmds=".so"
12304postinstall_cmds=
12305postuninstall_cmds=
12306finish_cmds=
12307finish_eval=
12308shlibpath_var=
12309shlibpath_overrides_runpath=unknown
12310version_type=none
12311dynamic_linker="$host_os ld.so"
12312sys_lib_dlsearch_path_spec="/lib /usr/lib"
12313need_lib_prefix=unknown
12314hardcode_into_libs=no
4618c7f0 12315
542f9784 12316# when you set need_version to no, make sure it does not cause -set_version
12317# flags to be left without arguments
12318need_version=unknown
4618c7f0 12319
542f9784 12320case $host_os in
12321aix3*)
12322 version_type=linux
12323 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12324 shlibpath_var=LIBPATH
4618c7f0 12325
542f9784 12326 # AIX 3 has no versioning support, so we append a major version to the name.
12327 soname_spec='${libname}${release}${shared_ext}$major'
12328 ;;
4618c7f0 12329
a7798917 12330aix[4-9]*)
542f9784 12331 version_type=linux
12332 need_lib_prefix=no
12333 need_version=no
12334 hardcode_into_libs=yes
12335 if test "$host_cpu" = ia64; then
12336 # AIX 5 supports IA64
12337 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12338 shlibpath_var=LD_LIBRARY_PATH
12339 else
12340 # With GCC up to 2.95.x, collect2 would create an import file
12341 # for dependence libraries. The import file would start with
12342 # the line `#! .'. This would cause the generated library to
12343 # depend on `.', always an invalid library. This was fixed in
12344 # development snapshots of GCC prior to 3.0.
12345 case $host_os in
12346 aix4 | aix4.[01] | aix4.[01].*)
12347 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12348 echo ' yes '
12349 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12350 :
12351 else
12352 can_build_shared=no
12353 fi
12354 ;;
12355 esac
12356 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12357 # soname into executable. Probably we can add versioning support to
12358 # collect2, so additional links can be useful in future.
12359 if test "$aix_use_runtimelinking" = yes; then
12360 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12361 # instead of lib<name>.a to let people know that these are not
12362 # typical AIX shared libraries.
12363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12364 else
12365 # We preserve .a as extension for shared libraries through AIX4.2
12366 # and later when we are not doing run time linking.
12367 library_names_spec='${libname}${release}.a $libname.a'
12368 soname_spec='${libname}${release}${shared_ext}$major'
12369 fi
12370 shlibpath_var=LIBPATH
12371 fi
12372 ;;
4618c7f0 12373
542f9784 12374amigaos*)
976af183 12375 case $host_cpu in
12376 powerpc)
12377 # Since July 2007 AmigaOS4 officially supports .so libraries.
12378 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12380 ;;
12381 m68k)
542f9784 12382 library_names_spec='$libname.ixlibrary $libname.a'
12383 # Create ${libname}_ixlibrary.a entries in /sys/libs.
e6408286 12384 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'
976af183 12385 ;;
12386 esac
542f9784 12387 ;;
4618c7f0 12388
542f9784 12389beos*)
12390 library_names_spec='${libname}${shared_ext}'
12391 dynamic_linker="$host_os ld.so"
12392 shlibpath_var=LIBRARY_PATH
12393 ;;
4618c7f0 12394
542f9784 12395bsdi[45]*)
12396 version_type=linux
12397 need_version=no
12398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12399 soname_spec='${libname}${release}${shared_ext}$major'
12400 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12401 shlibpath_var=LD_LIBRARY_PATH
12402 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12403 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12404 # the default ld.so.conf also contains /usr/contrib/lib and
12405 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12406 # libtool to hard-code these into programs
12407 ;;
4618c7f0 12408
976af183 12409cygwin* | mingw* | pw32* | cegcc*)
542f9784 12410 version_type=windows
12411 shrext_cmds=".dll"
12412 need_version=no
12413 need_lib_prefix=no
4618c7f0 12414
976af183 12415 case $GCC,$host_os in
12416 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
542f9784 12417 library_names_spec='$libname.dll.a'
12418 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12419 postinstall_cmds='base_file=`basename \${file}`~
12420 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12421 dldir=$destdir/`dirname \$dlpath`~
12422 test -d \$dldir || mkdir -p \$dldir~
12423 $install_prog $dir/$dlname \$dldir/$dlname~
12424 chmod a+x \$dldir/$dlname~
12425 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12426 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12427 fi'
12428 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12429 dlpath=$dir/\$dldll~
12430 $RM \$dlpath'
12431 shlibpath_overrides_runpath=yes
4618c7f0 12432
542f9784 12433 case $host_os in
12434 cygwin*)
12435 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12436 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
e6408286 12437
12438 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
542f9784 12439 ;;
976af183 12440 mingw* | cegcc*)
542f9784 12441 # MinGW DLLs use traditional 'lib' prefix
12442 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
542f9784 12443 ;;
12444 pw32*)
12445 # pw32 DLLs use 'pw' prefix rather than 'lib'
12446 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12447 ;;
12448 esac
12449 ;;
4618c7f0 12450
542f9784 12451 *)
12452 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12453 ;;
12454 esac
12455 dynamic_linker='Win32 ld.exe'
12456 # FIXME: first we should search . and the directory the executable is in
12457 shlibpath_var=PATH
12458 ;;
4618c7f0 12459
542f9784 12460darwin* | rhapsody*)
12461 dynamic_linker="$host_os dyld"
12462 version_type=darwin
12463 need_lib_prefix=no
12464 need_version=no
12465 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12466 soname_spec='${libname}${release}${major}$shared_ext'
12467 shlibpath_overrides_runpath=yes
12468 shlibpath_var=DYLD_LIBRARY_PATH
12469 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
4618c7f0 12470
542f9784 12471 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12472 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12473 ;;
4618c7f0 12474
542f9784 12475dgux*)
12476 version_type=linux
12477 need_lib_prefix=no
12478 need_version=no
12479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12480 soname_spec='${libname}${release}${shared_ext}$major'
12481 shlibpath_var=LD_LIBRARY_PATH
12482 ;;
4618c7f0 12483
542f9784 12484freebsd* | dragonfly*)
12485 # DragonFly does not have aout. When/if they implement a new
12486 # versioning mechanism, adjust this.
12487 if test -x /usr/bin/objformat; then
12488 objformat=`/usr/bin/objformat`
12489 else
12490 case $host_os in
30369aff 12491 freebsd[23].*) objformat=aout ;;
542f9784 12492 *) objformat=elf ;;
12493 esac
12494 fi
12495 version_type=freebsd-$objformat
12496 case $version_type in
12497 freebsd-elf*)
12498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12499 need_version=no
12500 need_lib_prefix=no
12501 ;;
12502 freebsd-*)
12503 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12504 need_version=yes
12505 ;;
12506 esac
12507 shlibpath_var=LD_LIBRARY_PATH
12508 case $host_os in
30369aff 12509 freebsd2.*)
542f9784 12510 shlibpath_overrides_runpath=yes
12511 ;;
12512 freebsd3.[01]* | freebsdelf3.[01]*)
12513 shlibpath_overrides_runpath=yes
12514 hardcode_into_libs=yes
12515 ;;
12516 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12517 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12518 shlibpath_overrides_runpath=no
12519 hardcode_into_libs=yes
12520 ;;
12521 *) # from 4.6 on, and DragonFly
12522 shlibpath_overrides_runpath=yes
12523 hardcode_into_libs=yes
12524 ;;
12525 esac
12526 ;;
4618c7f0 12527
542f9784 12528gnu*)
12529 version_type=linux
12530 need_lib_prefix=no
12531 need_version=no
12532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12533 soname_spec='${libname}${release}${shared_ext}$major'
12534 shlibpath_var=LD_LIBRARY_PATH
12535 hardcode_into_libs=yes
12536 ;;
98db1361 12537
e6408286 12538haiku*)
12539 version_type=linux
12540 need_lib_prefix=no
12541 need_version=no
12542 dynamic_linker="$host_os runtime_loader"
12543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12544 soname_spec='${libname}${release}${shared_ext}$major'
12545 shlibpath_var=LIBRARY_PATH
12546 shlibpath_overrides_runpath=yes
12547 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
12548 hardcode_into_libs=yes
12549 ;;
12550
542f9784 12551hpux9* | hpux10* | hpux11*)
12552 # Give a soname corresponding to the major version so that dld.sl refuses to
12553 # link against other versions.
12554 version_type=sunos
12555 need_lib_prefix=no
12556 need_version=no
12557 case $host_cpu in
12558 ia64*)
12559 shrext_cmds='.so'
12560 hardcode_into_libs=yes
12561 dynamic_linker="$host_os dld.so"
12562 shlibpath_var=LD_LIBRARY_PATH
12563 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12565 soname_spec='${libname}${release}${shared_ext}$major'
12566 if test "X$HPUX_IA64_MODE" = X32; then
12567 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12568 else
12569 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12570 fi
12571 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12572 ;;
12573 hppa*64*)
12574 shrext_cmds='.sl'
12575 hardcode_into_libs=yes
12576 dynamic_linker="$host_os dld.sl"
12577 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12578 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12580 soname_spec='${libname}${release}${shared_ext}$major'
12581 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12582 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12583 ;;
12584 *)
12585 shrext_cmds='.sl'
12586 dynamic_linker="$host_os dld.sl"
12587 shlibpath_var=SHLIB_PATH
12588 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12590 soname_spec='${libname}${release}${shared_ext}$major'
12591 ;;
12592 esac
e6408286 12593 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
542f9784 12594 postinstall_cmds='chmod 555 $lib'
e6408286 12595 # or fails outright, so override atomically:
12596 install_override_mode=555
542f9784 12597 ;;
4618c7f0 12598
542f9784 12599interix[3-9]*)
12600 version_type=linux
12601 need_lib_prefix=no
12602 need_version=no
12603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12604 soname_spec='${libname}${release}${shared_ext}$major'
12605 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12606 shlibpath_var=LD_LIBRARY_PATH
12607 shlibpath_overrides_runpath=no
12608 hardcode_into_libs=yes
12609 ;;
4618c7f0 12610
542f9784 12611irix5* | irix6* | nonstopux*)
12612 case $host_os in
12613 nonstopux*) version_type=nonstopux ;;
12614 *)
12615 if test "$lt_cv_prog_gnu_ld" = yes; then
12616 version_type=linux
12617 else
12618 version_type=irix
12619 fi ;;
12620 esac
12621 need_lib_prefix=no
12622 need_version=no
12623 soname_spec='${libname}${release}${shared_ext}$major'
12624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12625 case $host_os in
12626 irix5* | nonstopux*)
12627 libsuff= shlibsuff=
12628 ;;
12629 *)
12630 case $LD in # libtool.m4 will add one of these switches to LD
12631 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12632 libsuff= shlibsuff= libmagic=32-bit;;
12633 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12634 libsuff=32 shlibsuff=N32 libmagic=N32;;
12635 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12636 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12637 *) libsuff= shlibsuff= libmagic=never-match;;
12638 esac
12639 ;;
12640 esac
12641 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12642 shlibpath_overrides_runpath=no
12643 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12644 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12645 hardcode_into_libs=yes
12646 ;;
4618c7f0 12647
542f9784 12648# No shared lib support for Linux oldld, aout, or coff.
12649linux*oldld* | linux*aout* | linux*coff*)
12650 dynamic_linker=no
12651 ;;
4618c7f0 12652
542f9784 12653# This must be Linux ELF.
9af964d4 12654linux* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 12655 version_type=linux
12656 need_lib_prefix=no
12657 need_version=no
12658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12659 soname_spec='${libname}${release}${shared_ext}$major'
12660 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12661 shlibpath_var=LD_LIBRARY_PATH
12662 shlibpath_overrides_runpath=no
9e6fd619 12663
542f9784 12664 # Some binutils ld are patched to set DT_RUNPATH
cd9a469c 12665 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12666 $as_echo_n "(cached) " >&6
9e6fd619 12667else
12668 lt_cv_shlibpath_overrides_runpath=no
12669 save_LDFLAGS=$LDFLAGS
12670 save_libdir=$libdir
12671 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12672 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12673 if test x$gcc_no_link = xyes; then
cd9a469c 12674 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
4618c7f0 12675fi
cd9a469c 12676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618c7f0 12677/* end confdefs.h. */
542f9784 12678
12679int
12680main ()
12681{
12682
12683 ;
12684 return 0;
12685}
4618c7f0 12686_ACEOF
cd9a469c 12687if ac_fn_c_try_link "$LINENO"; then :
12688 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9e6fd619 12689 lt_cv_shlibpath_overrides_runpath=yes
4618c7f0 12690fi
98db1361 12691fi
cd9a469c 12692rm -f core conftest.err conftest.$ac_objext \
12693 conftest$ac_exeext conftest.$ac_ext
9e6fd619 12694 LDFLAGS=$save_LDFLAGS
12695 libdir=$save_libdir
12696
12697fi
12698
12699 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
4618c7f0 12700
542f9784 12701 # This implies no fast_install, which is unacceptable.
12702 # Some rework will be needed to allow for fast_install
12703 # before this can be enabled.
12704 hardcode_into_libs=yes
4618c7f0 12705
542f9784 12706 # Append ld.so.conf contents to the search path
12707 if test -f /etc/ld.so.conf; then
e6408286 12708 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' ' '`
542f9784 12709 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12710 fi
4618c7f0 12711
542f9784 12712 # We used to test for /lib/ld.so.1 and disable shared libraries on
12713 # powerpc, because MkLinux only supported shared libraries with the
12714 # GNU dynamic linker. Since this was broken with cross compilers,
12715 # most powerpc-linux boxes support dynamic linking these days and
12716 # people can always --disable-shared, the test was removed, and we
12717 # assume the GNU/Linux dynamic linker is in use.
12718 dynamic_linker='GNU/Linux ld.so'
12719 ;;
4618c7f0 12720
542f9784 12721netbsd*)
12722 version_type=sunos
12723 need_lib_prefix=no
12724 need_version=no
12725 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12727 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12728 dynamic_linker='NetBSD (a.out) ld.so'
12729 else
12730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12731 soname_spec='${libname}${release}${shared_ext}$major'
12732 dynamic_linker='NetBSD ld.elf_so'
12733 fi
12734 shlibpath_var=LD_LIBRARY_PATH
12735 shlibpath_overrides_runpath=yes
12736 hardcode_into_libs=yes
12737 ;;
4618c7f0 12738
542f9784 12739newsos6)
12740 version_type=linux
12741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12742 shlibpath_var=LD_LIBRARY_PATH
12743 shlibpath_overrides_runpath=yes
12744 ;;
4618c7f0 12745
542f9784 12746*nto* | *qnx*)
12747 version_type=qnx
12748 need_lib_prefix=no
12749 need_version=no
12750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12751 soname_spec='${libname}${release}${shared_ext}$major'
12752 shlibpath_var=LD_LIBRARY_PATH
12753 shlibpath_overrides_runpath=no
12754 hardcode_into_libs=yes
12755 dynamic_linker='ldqnx.so'
12756 ;;
4618c7f0 12757
542f9784 12758openbsd*)
12759 version_type=sunos
12760 sys_lib_dlsearch_path_spec="/usr/lib"
12761 need_lib_prefix=no
12762 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12763 case $host_os in
12764 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12765 *) need_version=no ;;
12766 esac
12767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12768 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12769 shlibpath_var=LD_LIBRARY_PATH
12770 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12771 case $host_os in
12772 openbsd2.[89] | openbsd2.[89].*)
12773 shlibpath_overrides_runpath=no
12774 ;;
12775 *)
12776 shlibpath_overrides_runpath=yes
12777 ;;
12778 esac
12779 else
12780 shlibpath_overrides_runpath=yes
12781 fi
12782 ;;
2c60951b 12783
542f9784 12784os2*)
12785 libname_spec='$name'
12786 shrext_cmds=".dll"
12787 need_lib_prefix=no
12788 library_names_spec='$libname${shared_ext} $libname.a'
12789 dynamic_linker='OS/2 ld.exe'
12790 shlibpath_var=LIBPATH
12791 ;;
4618c7f0 12792
542f9784 12793osf3* | osf4* | osf5*)
12794 version_type=osf
12795 need_lib_prefix=no
12796 need_version=no
12797 soname_spec='${libname}${release}${shared_ext}$major'
12798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12799 shlibpath_var=LD_LIBRARY_PATH
12800 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12801 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12802 ;;
2c60951b 12803
542f9784 12804rdos*)
12805 dynamic_linker=no
12806 ;;
78f6e478 12807
542f9784 12808solaris*)
12809 version_type=linux
12810 need_lib_prefix=no
12811 need_version=no
12812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12813 soname_spec='${libname}${release}${shared_ext}$major'
12814 shlibpath_var=LD_LIBRARY_PATH
12815 shlibpath_overrides_runpath=yes
12816 hardcode_into_libs=yes
12817 # ldd complains unless libraries are executable
12818 postinstall_cmds='chmod +x $lib'
12819 ;;
78f6e478 12820
542f9784 12821sunos4*)
12822 version_type=sunos
12823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12824 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12825 shlibpath_var=LD_LIBRARY_PATH
12826 shlibpath_overrides_runpath=yes
12827 if test "$with_gnu_ld" = yes; then
12828 need_lib_prefix=no
12829 fi
12830 need_version=yes
12831 ;;
78f6e478 12832
542f9784 12833sysv4 | sysv4.3*)
12834 version_type=linux
12835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12836 soname_spec='${libname}${release}${shared_ext}$major'
12837 shlibpath_var=LD_LIBRARY_PATH
12838 case $host_vendor in
12839 sni)
12840 shlibpath_overrides_runpath=no
12841 need_lib_prefix=no
12842 runpath_var=LD_RUN_PATH
12843 ;;
12844 siemens)
12845 need_lib_prefix=no
12846 ;;
12847 motorola)
12848 need_lib_prefix=no
12849 need_version=no
12850 shlibpath_overrides_runpath=no
12851 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12852 ;;
12853 esac
12854 ;;
78f6e478 12855
542f9784 12856sysv4*MP*)
12857 if test -d /usr/nec ;then
12858 version_type=linux
12859 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12860 soname_spec='$libname${shared_ext}.$major'
12861 shlibpath_var=LD_LIBRARY_PATH
12862 fi
12863 ;;
78f6e478 12864
542f9784 12865sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12866 version_type=freebsd-elf
12867 need_lib_prefix=no
12868 need_version=no
12869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12870 soname_spec='${libname}${release}${shared_ext}$major'
12871 shlibpath_var=LD_LIBRARY_PATH
12872 shlibpath_overrides_runpath=yes
12873 hardcode_into_libs=yes
12874 if test "$with_gnu_ld" = yes; then
12875 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12876 else
12877 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12878 case $host_os in
12879 sco3.2v5*)
12880 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12881 ;;
12882 esac
12883 fi
12884 sys_lib_dlsearch_path_spec='/usr/lib'
12885 ;;
78f6e478 12886
542f9784 12887tpf*)
12888 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12889 version_type=linux
12890 need_lib_prefix=no
12891 need_version=no
976af183 12892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
542f9784 12893 shlibpath_var=LD_LIBRARY_PATH
12894 shlibpath_overrides_runpath=no
12895 hardcode_into_libs=yes
12896 ;;
78f6e478 12897
542f9784 12898uts4*)
12899 version_type=linux
12900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12901 soname_spec='${libname}${release}${shared_ext}$major'
12902 shlibpath_var=LD_LIBRARY_PATH
12903 ;;
f5699769 12904
542f9784 12905*)
12906 dynamic_linker=no
12907 ;;
12908esac
cd9a469c 12909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12910$as_echo "$dynamic_linker" >&6; }
542f9784 12911test "$dynamic_linker" = no && can_build_shared=no
442025fd 12912
542f9784 12913variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12914if test "$GCC" = yes; then
12915 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
f5699769 12916fi
4618c7f0 12917
976af183 12918if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12919 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12920fi
12921if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12922 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12923fi
12924
4618c7f0 12925
2c60951b 12926
4618c7f0 12927
f5699769 12928
53973c81 12929
53973c81 12930
53973c81 12931
12932
12933
53973c81 12934
2c60951b 12935
4618c7f0 12936
f5699769 12937
53973c81 12938
53973c81 12939
2c60951b 12940
4618c7f0 12941
542f9784 12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
e6408286 13005
13006
13007
13008
13009
542f9784 13010
13011
13012
13013
13014
13015
cd9a469c 13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13017$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
542f9784 13018hardcode_action=
13019if test -n "$hardcode_libdir_flag_spec" ||
13020 test -n "$runpath_var" ||
13021 test "X$hardcode_automatic" = "Xyes" ; then
13022
13023 # We can hardcode non-existent directories.
13024 if test "$hardcode_direct" != no &&
13025 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13026 # have to relink, otherwise we might link with an installed library
13027 # when we should be linking with a yet-to-be-installed one
13028 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13029 test "$hardcode_minus_L" != no; then
13030 # Linking always hardcodes the temporary library directory.
13031 hardcode_action=relink
ab061793 13032 else
542f9784 13033 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13034 hardcode_action=immediate
ab061793 13035 fi
542f9784 13036else
13037 # We cannot hardcode anything, or else we can only hardcode existing
13038 # directories.
13039 hardcode_action=unsupported
13040fi
cd9a469c 13041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13042$as_echo "$hardcode_action" >&6; }
ab061793 13043
542f9784 13044if test "$hardcode_action" = relink ||
13045 test "$inherit_rpath" = yes; then
13046 # Fast installation is not supported
13047 enable_fast_install=no
13048elif test "$shlibpath_overrides_runpath" = yes ||
13049 test "$enable_shared" = no; then
13050 # Fast installation is not necessary
13051 enable_fast_install=needless
13052fi
ab061793 13053
542f9784 13054
13055
13056
13057
13058
13059 if test "x$enable_dlopen" != xyes; then
13060 enable_dlopen=unknown
13061 enable_dlopen_self=unknown
13062 enable_dlopen_self_static=unknown
ab061793 13063else
542f9784 13064 lt_cv_dlopen=no
13065 lt_cv_dlopen_libs=
13066
13067 case $host_os in
13068 beos*)
13069 lt_cv_dlopen="load_add_on"
13070 lt_cv_dlopen_libs=
13071 lt_cv_dlopen_self=yes
ab061793 13072 ;;
542f9784 13073
976af183 13074 mingw* | pw32* | cegcc*)
542f9784 13075 lt_cv_dlopen="LoadLibrary"
13076 lt_cv_dlopen_libs=
ab061793 13077 ;;
ab061793 13078
cd9a469c 13079 cygwin*)
13080 lt_cv_dlopen="dlopen"
13081 lt_cv_dlopen_libs=
13082 ;;
ab061793 13083
cd9a469c 13084 darwin*)
13085 # if libdl is installed we need to link against it
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13087$as_echo_n "checking for dlopen in -ldl... " >&6; }
13088if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13089 $as_echo_n "(cached) " >&6
542f9784 13090else
13091 ac_check_lib_save_LIBS=$LIBS
cd9a469c 13092LIBS="-ldl $LIBS"
542f9784 13093if test x$gcc_no_link = xyes; then
cd9a469c 13094 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 13095fi
cd9a469c 13096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 13097/* end confdefs.h. */
ab061793 13098
cd9a469c 13099/* Override any GCC internal prototype to avoid an error.
13100 Use char because int might match the return type of a GCC
13101 builtin and then its argument prototype would still apply. */
542f9784 13102#ifdef __cplusplus
13103extern "C"
13104#endif
cd9a469c 13105char dlopen ();
542f9784 13106int
13107main ()
13108{
cd9a469c 13109return dlopen ();
542f9784 13110 ;
13111 return 0;
13112}
13113_ACEOF
cd9a469c 13114if ac_fn_c_try_link "$LINENO"; then :
13115 ac_cv_lib_dl_dlopen=yes
542f9784 13116else
cd9a469c 13117 ac_cv_lib_dl_dlopen=no
542f9784 13118fi
cd9a469c 13119rm -f core conftest.err conftest.$ac_objext \
13120 conftest$ac_exeext conftest.$ac_ext
542f9784 13121LIBS=$ac_check_lib_save_LIBS
13122fi
cd9a469c 13123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13124$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13125if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13126 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
542f9784 13127else
ab061793 13128
cd9a469c 13129 lt_cv_dlopen="dyld"
13130 lt_cv_dlopen_libs=
13131 lt_cv_dlopen_self=yes
f5699769 13132
cd9a469c 13133fi
ab061793 13134
cd9a469c 13135 ;;
ab061793 13136
cd9a469c 13137 *)
13138 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13139if test "x$ac_cv_func_shl_load" = x""yes; then :
13140 lt_cv_dlopen="shl_load"
13141else
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13143$as_echo_n "checking for shl_load in -ldld... " >&6; }
13144if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13145 $as_echo_n "(cached) " >&6
13146else
13147 ac_check_lib_save_LIBS=$LIBS
13148LIBS="-ldld $LIBS"
13149if test x$gcc_no_link = xyes; then
13150 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13151fi
13152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13153/* end confdefs.h. */
13154
13155/* Override any GCC internal prototype to avoid an error.
13156 Use char because int might match the return type of a GCC
542f9784 13157 builtin and then its argument prototype would still apply. */
542f9784 13158#ifdef __cplusplus
cd9a469c 13159extern "C"
542f9784 13160#endif
cd9a469c 13161char shl_load ();
542f9784 13162int
13163main ()
13164{
cd9a469c 13165return shl_load ();
542f9784 13166 ;
13167 return 0;
13168}
13169_ACEOF
cd9a469c 13170if ac_fn_c_try_link "$LINENO"; then :
13171 ac_cv_lib_dld_shl_load=yes
542f9784 13172else
cd9a469c 13173 ac_cv_lib_dld_shl_load=no
542f9784 13174fi
cd9a469c 13175rm -f core conftest.err conftest.$ac_objext \
13176 conftest$ac_exeext conftest.$ac_ext
13177LIBS=$ac_check_lib_save_LIBS
542f9784 13178fi
cd9a469c 13179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13180$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13181if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13182 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13183else
13184 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13185if test "x$ac_cv_func_dlopen" = x""yes; then :
542f9784 13186 lt_cv_dlopen="dlopen"
13187else
cd9a469c 13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13189$as_echo_n "checking for dlopen in -ldl... " >&6; }
13190if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13191 $as_echo_n "(cached) " >&6
542f9784 13192else
13193 ac_check_lib_save_LIBS=$LIBS
13194LIBS="-ldl $LIBS"
13195if test x$gcc_no_link = xyes; then
cd9a469c 13196 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 13197fi
cd9a469c 13198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 13199/* end confdefs.h. */
ab061793 13200
cd9a469c 13201/* Override any GCC internal prototype to avoid an error.
13202 Use char because int might match the return type of a GCC
13203 builtin and then its argument prototype would still apply. */
542f9784 13204#ifdef __cplusplus
13205extern "C"
13206#endif
542f9784 13207char dlopen ();
13208int
13209main ()
13210{
cd9a469c 13211return dlopen ();
542f9784 13212 ;
13213 return 0;
13214}
13215_ACEOF
cd9a469c 13216if ac_fn_c_try_link "$LINENO"; then :
542f9784 13217 ac_cv_lib_dl_dlopen=yes
13218else
cd9a469c 13219 ac_cv_lib_dl_dlopen=no
542f9784 13220fi
cd9a469c 13221rm -f core conftest.err conftest.$ac_objext \
13222 conftest$ac_exeext conftest.$ac_ext
542f9784 13223LIBS=$ac_check_lib_save_LIBS
13224fi
cd9a469c 13225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13226$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13227if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
542f9784 13228 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13229else
cd9a469c 13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13231$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13232if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13233 $as_echo_n "(cached) " >&6
542f9784 13234else
13235 ac_check_lib_save_LIBS=$LIBS
13236LIBS="-lsvld $LIBS"
13237if test x$gcc_no_link = xyes; then
cd9a469c 13238 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 13239fi
cd9a469c 13240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 13241/* end confdefs.h. */
ab061793 13242
cd9a469c 13243/* Override any GCC internal prototype to avoid an error.
13244 Use char because int might match the return type of a GCC
13245 builtin and then its argument prototype would still apply. */
542f9784 13246#ifdef __cplusplus
13247extern "C"
13248#endif
542f9784 13249char dlopen ();
4618c7f0 13250int
13251main ()
13252{
cd9a469c 13253return dlopen ();
4618c7f0 13254 ;
13255 return 0;
13256}
13257_ACEOF
cd9a469c 13258if ac_fn_c_try_link "$LINENO"; then :
542f9784 13259 ac_cv_lib_svld_dlopen=yes
2c60951b 13260else
cd9a469c 13261 ac_cv_lib_svld_dlopen=no
2c60951b 13262fi
cd9a469c 13263rm -f core conftest.err conftest.$ac_objext \
13264 conftest$ac_exeext conftest.$ac_ext
542f9784 13265LIBS=$ac_check_lib_save_LIBS
13266fi
cd9a469c 13267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13268$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13269if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
542f9784 13270 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13271else
cd9a469c 13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13273$as_echo_n "checking for dld_link in -ldld... " >&6; }
13274if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13275 $as_echo_n "(cached) " >&6
542f9784 13276else
13277 ac_check_lib_save_LIBS=$LIBS
13278LIBS="-ldld $LIBS"
13279if test x$gcc_no_link = xyes; then
cd9a469c 13280 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
4618c7f0 13281fi
cd9a469c 13282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618c7f0 13283/* end confdefs.h. */
542f9784 13284
cd9a469c 13285/* Override any GCC internal prototype to avoid an error.
13286 Use char because int might match the return type of a GCC
13287 builtin and then its argument prototype would still apply. */
542f9784 13288#ifdef __cplusplus
13289extern "C"
13290#endif
542f9784 13291char dld_link ();
4618c7f0 13292int
13293main ()
13294{
cd9a469c 13295return dld_link ();
4618c7f0 13296 ;
13297 return 0;
13298}
13299_ACEOF
cd9a469c 13300if ac_fn_c_try_link "$LINENO"; then :
542f9784 13301 ac_cv_lib_dld_dld_link=yes
2c60951b 13302else
cd9a469c 13303 ac_cv_lib_dld_dld_link=no
f5699769 13304fi
cd9a469c 13305rm -f core conftest.err conftest.$ac_objext \
13306 conftest$ac_exeext conftest.$ac_ext
542f9784 13307LIBS=$ac_check_lib_save_LIBS
13308fi
cd9a469c 13309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13310$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13311if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
976af183 13312 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
542f9784 13313fi
13314
ce4985da 13315
4618c7f0 13316fi
4618c7f0 13317
545bac35 13318
542f9784 13319fi
13320
13321
13322fi
13323
13324
13325fi
13326
13327
13328fi
13329
13330 ;;
13331 esac
13332
13333 if test "x$lt_cv_dlopen" != xno; then
13334 enable_dlopen=yes
ab061793 13335 else
542f9784 13336 enable_dlopen=no
ab061793 13337 fi
13338
542f9784 13339 case $lt_cv_dlopen in
13340 dlopen)
13341 save_CPPFLAGS="$CPPFLAGS"
13342 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
ab061793 13343
542f9784 13344 save_LDFLAGS="$LDFLAGS"
13345 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
ab061793 13346
542f9784 13347 save_LIBS="$LIBS"
13348 LIBS="$lt_cv_dlopen_libs $LIBS"
13349
cd9a469c 13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13351$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13352if test "${lt_cv_dlopen_self+set}" = set; then :
13353 $as_echo_n "(cached) " >&6
ce4985da 13354else
542f9784 13355 if test "$cross_compiling" = yes; then :
13356 lt_cv_dlopen_self=cross
13357else
13358 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13359 lt_status=$lt_dlunknown
13360 cat > conftest.$ac_ext <<_LT_EOF
5641963c 13361#line 13361 "configure"
542f9784 13362#include "confdefs.h"
4618c7f0 13363
542f9784 13364#if HAVE_DLFCN_H
13365#include <dlfcn.h>
f5699769 13366#endif
542f9784 13367
13368#include <stdio.h>
13369
13370#ifdef RTLD_GLOBAL
13371# define LT_DLGLOBAL RTLD_GLOBAL
ce4985da 13372#else
542f9784 13373# ifdef DL_GLOBAL
13374# define LT_DLGLOBAL DL_GLOBAL
13375# else
13376# define LT_DLGLOBAL 0
13377# endif
ce4985da 13378#endif
13379
542f9784 13380/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13381 find out it does not work in some platform. */
13382#ifndef LT_DLLAZY_OR_NOW
13383# ifdef RTLD_LAZY
13384# define LT_DLLAZY_OR_NOW RTLD_LAZY
13385# else
13386# ifdef DL_LAZY
13387# define LT_DLLAZY_OR_NOW DL_LAZY
13388# else
13389# ifdef RTLD_NOW
13390# define LT_DLLAZY_OR_NOW RTLD_NOW
13391# else
13392# ifdef DL_NOW
13393# define LT_DLLAZY_OR_NOW DL_NOW
13394# else
13395# define LT_DLLAZY_OR_NOW 0
13396# endif
13397# endif
13398# endif
13399# endif
13400#endif
13401
e6408286 13402/* When -fvisbility=hidden is used, assume the code has been annotated
13403 correspondingly for the symbols needed. */
13404#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13405void fnord () __attribute__((visibility("default")));
13406#endif
13407
13408void fnord () { int i=42; }
542f9784 13409int main ()
4618c7f0 13410{
542f9784 13411 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13412 int status = $lt_dlunknown;
f5699769 13413
542f9784 13414 if (self)
13415 {
13416 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
e6408286 13417 else
13418 {
13419 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13420 else puts (dlerror ());
13421 }
542f9784 13422 /* dlclose (self); */
13423 }
13424 else
13425 puts (dlerror ());
13426
976af183 13427 return status;
4618c7f0 13428}
542f9784 13429_LT_EOF
cd9a469c 13430 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
542f9784 13431 (eval $ac_link) 2>&5
4618c7f0 13432 ac_status=$?
cd9a469c 13433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13434 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
542f9784 13435 (./conftest; exit; ) >&5 2>/dev/null
13436 lt_status=$?
13437 case x$lt_status in
13438 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13439 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13440 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13441 esac
13442 else :
13443 # compilation failed
13444 lt_cv_dlopen_self=no
13445 fi
ce4985da 13446fi
542f9784 13447rm -fr conftest*
ce4985da 13448
4618c7f0 13449
542f9784 13450fi
cd9a469c 13451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13452$as_echo "$lt_cv_dlopen_self" >&6; }
4618c7f0 13453
542f9784 13454 if test "x$lt_cv_dlopen_self" = xyes; then
13455 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cd9a469c 13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13457$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13458if test "${lt_cv_dlopen_self_static+set}" = set; then :
13459 $as_echo_n "(cached) " >&6
4618c7f0 13460else
542f9784 13461 if test "$cross_compiling" = yes; then :
13462 lt_cv_dlopen_self_static=cross
ce4985da 13463else
542f9784 13464 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13465 lt_status=$lt_dlunknown
13466 cat > conftest.$ac_ext <<_LT_EOF
5641963c 13467#line 13467 "configure"
542f9784 13468#include "confdefs.h"
4618c7f0 13469
542f9784 13470#if HAVE_DLFCN_H
13471#include <dlfcn.h>
13472#endif
4618c7f0 13473
542f9784 13474#include <stdio.h>
545bac35 13475
542f9784 13476#ifdef RTLD_GLOBAL
13477# define LT_DLGLOBAL RTLD_GLOBAL
13478#else
13479# ifdef DL_GLOBAL
13480# define LT_DLGLOBAL DL_GLOBAL
13481# else
13482# define LT_DLGLOBAL 0
13483# endif
13484#endif
ab061793 13485
542f9784 13486/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13487 find out it does not work in some platform. */
13488#ifndef LT_DLLAZY_OR_NOW
13489# ifdef RTLD_LAZY
13490# define LT_DLLAZY_OR_NOW RTLD_LAZY
13491# else
13492# ifdef DL_LAZY
13493# define LT_DLLAZY_OR_NOW DL_LAZY
13494# else
13495# ifdef RTLD_NOW
13496# define LT_DLLAZY_OR_NOW RTLD_NOW
13497# else
13498# ifdef DL_NOW
13499# define LT_DLLAZY_OR_NOW DL_NOW
13500# else
13501# define LT_DLLAZY_OR_NOW 0
13502# endif
13503# endif
13504# endif
13505# endif
13506#endif
4618c7f0 13507
e6408286 13508/* When -fvisbility=hidden is used, assume the code has been annotated
13509 correspondingly for the symbols needed. */
13510#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13511void fnord () __attribute__((visibility("default")));
13512#endif
13513
13514void fnord () { int i=42; }
542f9784 13515int main ()
4618c7f0 13516{
542f9784 13517 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13518 int status = $lt_dlunknown;
13519
13520 if (self)
13521 {
13522 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
e6408286 13523 else
13524 {
13525 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13526 else puts (dlerror ());
13527 }
542f9784 13528 /* dlclose (self); */
13529 }
13530 else
13531 puts (dlerror ());
13532
976af183 13533 return status;
4618c7f0 13534}
542f9784 13535_LT_EOF
cd9a469c 13536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
542f9784 13537 (eval $ac_link) 2>&5
4618c7f0 13538 ac_status=$?
cd9a469c 13539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13540 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
542f9784 13541 (./conftest; exit; ) >&5 2>/dev/null
13542 lt_status=$?
13543 case x$lt_status in
13544 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13545 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13546 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13547 esac
13548 else :
13549 # compilation failed
13550 lt_cv_dlopen_self_static=no
13551 fi
545bac35 13552fi
542f9784 13553rm -fr conftest*
13554
13555
545bac35 13556fi
cd9a469c 13557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13558$as_echo "$lt_cv_dlopen_self_static" >&6; }
542f9784 13559 fi
4618c7f0 13560
542f9784 13561 CPPFLAGS="$save_CPPFLAGS"
13562 LDFLAGS="$save_LDFLAGS"
13563 LIBS="$save_LIBS"
13564 ;;
13565 esac
13566
13567 case $lt_cv_dlopen_self in
13568 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13569 *) enable_dlopen_self=unknown ;;
13570 esac
ce4985da 13571
542f9784 13572 case $lt_cv_dlopen_self_static in
13573 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13574 *) enable_dlopen_self_static=unknown ;;
13575 esac
2c60951b 13576fi
2c60951b 13577
4618c7f0 13578
13579
4618c7f0 13580
4618c7f0 13581
13582
4618c7f0 13583
542f9784 13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594striplib=
13595old_striplib=
cd9a469c 13596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13597$as_echo_n "checking whether stripping libraries is possible... " >&6; }
542f9784 13598if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13599 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13600 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cd9a469c 13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13602$as_echo "yes" >&6; }
542f9784 13603else
13604# FIXME - insert some real tests, host_os isn't really good enough
13605 case $host_os in
13606 darwin*)
13607 if test -n "$STRIP" ; then
13608 striplib="$STRIP -x"
13609 old_striplib="$STRIP -S"
cd9a469c 13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13611$as_echo "yes" >&6; }
542f9784 13612 else
cd9a469c 13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13614$as_echo "no" >&6; }
542f9784 13615 fi
13616 ;;
13617 *)
cd9a469c 13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13619$as_echo "no" >&6; }
542f9784 13620 ;;
13621 esac
4618c7f0 13622fi
4618c7f0 13623
542f9784 13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635 # Report which library types will actually be built
cd9a469c 13636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13637$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13639$as_echo "$can_build_shared" >&6; }
542f9784 13640
cd9a469c 13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13642$as_echo_n "checking whether to build shared libraries... " >&6; }
542f9784 13643 test "$can_build_shared" = "no" && enable_shared=no
13644
13645 # On AIX, shared libraries and static libraries use the same namespace, and
13646 # are all built from PIC.
13647 case $host_os in
13648 aix3*)
13649 test "$enable_shared" = yes && enable_static=no
13650 if test -n "$RANLIB"; then
13651 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13652 postinstall_cmds='$RANLIB $lib'
13653 fi
13654 ;;
13655
a7798917 13656 aix[4-9]*)
542f9784 13657 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13658 test "$enable_shared" = yes && enable_static=no
13659 fi
13660 ;;
13661 esac
cd9a469c 13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13663$as_echo "$enable_shared" >&6; }
542f9784 13664
cd9a469c 13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13666$as_echo_n "checking whether to build static libraries... " >&6; }
542f9784 13667 # Make sure either enable_shared or enable_static is yes.
13668 test "$enable_shared" = yes || enable_static=yes
cd9a469c 13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13670$as_echo "$enable_static" >&6; }
542f9784 13671
13672
4618c7f0 13673
13674
13675fi
542f9784 13676ac_ext=c
13677ac_cpp='$CPP $CPPFLAGS'
13678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13680ac_compiler_gnu=$ac_cv_c_compiler_gnu
4618c7f0 13681
542f9784 13682CC="$lt_save_CC"
f5699769 13683
e6408286 13684 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13685 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13686 (test "X$CXX" != "Xg++"))) ; then
13687 ac_ext=cpp
13688ac_cpp='$CXXCPP $CPPFLAGS'
13689ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13690ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13691ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13693$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13694if test -z "$CXXCPP"; then
13695 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13696 $as_echo_n "(cached) " >&6
13697else
13698 # Double quotes because CXXCPP needs to be expanded
13699 for CXXCPP in "$CXX -E" "/lib/cpp"
13700 do
13701 ac_preproc_ok=false
13702for ac_cxx_preproc_warn_flag in '' yes
13703do
13704 # Use a header file that comes with gcc, so configuring glibc
13705 # with a fresh cross-compiler works.
13706 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13707 # <limits.h> exists even on freestanding compilers.
13708 # On the NeXT, cc -E runs the code through the compiler's parser,
13709 # not just through cpp. "Syntax error" is here to catch this case.
13710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13711/* end confdefs.h. */
13712#ifdef __STDC__
13713# include <limits.h>
13714#else
13715# include <assert.h>
13716#endif
13717 Syntax error
13718_ACEOF
13719if ac_fn_cxx_try_cpp "$LINENO"; then :
13720
13721else
13722 # Broken: fails on valid input.
13723continue
13724fi
13725rm -f conftest.err conftest.$ac_ext
13726
13727 # OK, works on sane cases. Now check whether nonexistent headers
13728 # can be detected and how.
13729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13730/* end confdefs.h. */
13731#include <ac_nonexistent.h>
13732_ACEOF
13733if ac_fn_cxx_try_cpp "$LINENO"; then :
13734 # Broken: success on invalid input.
13735continue
13736else
13737 # Passes both tests.
13738ac_preproc_ok=:
13739break
13740fi
13741rm -f conftest.err conftest.$ac_ext
13742
13743done
13744# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13745rm -f conftest.err conftest.$ac_ext
13746if $ac_preproc_ok; then :
13747 break
13748fi
13749
13750 done
13751 ac_cv_prog_CXXCPP=$CXXCPP
13752
13753fi
13754 CXXCPP=$ac_cv_prog_CXXCPP
13755else
13756 ac_cv_prog_CXXCPP=$CXXCPP
13757fi
13758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13759$as_echo "$CXXCPP" >&6; }
13760ac_preproc_ok=false
13761for ac_cxx_preproc_warn_flag in '' yes
13762do
13763 # Use a header file that comes with gcc, so configuring glibc
13764 # with a fresh cross-compiler works.
13765 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13766 # <limits.h> exists even on freestanding compilers.
13767 # On the NeXT, cc -E runs the code through the compiler's parser,
13768 # not just through cpp. "Syntax error" is here to catch this case.
13769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13770/* end confdefs.h. */
13771#ifdef __STDC__
13772# include <limits.h>
13773#else
13774# include <assert.h>
13775#endif
13776 Syntax error
13777_ACEOF
13778if ac_fn_cxx_try_cpp "$LINENO"; then :
13779
13780else
13781 # Broken: fails on valid input.
13782continue
13783fi
13784rm -f conftest.err conftest.$ac_ext
13785
13786 # OK, works on sane cases. Now check whether nonexistent headers
13787 # can be detected and how.
13788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13789/* end confdefs.h. */
13790#include <ac_nonexistent.h>
13791_ACEOF
13792if ac_fn_cxx_try_cpp "$LINENO"; then :
13793 # Broken: success on invalid input.
13794continue
13795else
13796 # Passes both tests.
13797ac_preproc_ok=:
13798break
13799fi
13800rm -f conftest.err conftest.$ac_ext
13801
13802done
13803# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13804rm -f conftest.err conftest.$ac_ext
13805if $ac_preproc_ok; then :
13806
13807else
13808 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13809$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13810as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
13811See \`config.log' for more details." "$LINENO" 5; }
13812fi
13813
13814ac_ext=c
13815ac_cpp='$CPP $CPPFLAGS'
13816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13818ac_compiler_gnu=$ac_cv_c_compiler_gnu
13819
13820else
13821 _lt_caught_CXX_error=yes
13822fi
f5699769 13823
cd9a469c 13824ac_ext=cpp
542f9784 13825ac_cpp='$CXXCPP $CPPFLAGS'
13826ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13827ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13828ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13829
13830archive_cmds_need_lc_CXX=no
13831allow_undefined_flag_CXX=
13832always_export_symbols_CXX=no
13833archive_expsym_cmds_CXX=
13834compiler_needs_object_CXX=no
13835export_dynamic_flag_spec_CXX=
13836hardcode_direct_CXX=no
13837hardcode_direct_absolute_CXX=no
13838hardcode_libdir_flag_spec_CXX=
13839hardcode_libdir_flag_spec_ld_CXX=
13840hardcode_libdir_separator_CXX=
13841hardcode_minus_L_CXX=no
13842hardcode_shlibpath_var_CXX=unsupported
13843hardcode_automatic_CXX=no
13844inherit_rpath_CXX=no
13845module_cmds_CXX=
13846module_expsym_cmds_CXX=
13847link_all_deplibs_CXX=unknown
13848old_archive_cmds_CXX=$old_archive_cmds
e6408286 13849reload_flag_CXX=$reload_flag
13850reload_cmds_CXX=$reload_cmds
542f9784 13851no_undefined_flag_CXX=
13852whole_archive_flag_spec_CXX=
13853enable_shared_with_static_runtimes_CXX=no
13854
13855# Source file extension for C++ test sources.
13856ac_ext=cpp
13857
13858# Object file extension for compiled C++ test sources.
13859objext=o
13860objext_CXX=$objext
13861
13862# No sense in running all these tests if we already determined that
13863# the CXX compiler isn't working. Some variables (like enable_shared)
13864# are currently assumed to apply to all compilers on this platform,
13865# and will be corrupted by setting them based on a non-working compiler.
13866if test "$_lt_caught_CXX_error" != yes; then
13867 # Code to be used in simple compile tests
13868 lt_simple_compile_test_code="int some_variable = 0;"
13869
13870 # Code to be used in simple link tests
13871 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13872
13873 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13874
13875
13876
13877
13878
13879
13880# If no C compiler was specified, use CC.
13881LTCC=${LTCC-"$CC"}
13882
13883# If no C compiler flags were specified, use CFLAGS.
13884LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13885
13886# Allow CC to be a program name with arguments.
13887compiler=$CC
13888
13889
13890 # save warnings/boilerplate of simple test code
13891 ac_outfile=conftest.$ac_objext
13892echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13893eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13894_lt_compiler_boilerplate=`cat conftest.err`
13895$RM conftest*
13896
13897 ac_outfile=conftest.$ac_objext
13898echo "$lt_simple_link_test_code" >conftest.$ac_ext
13899eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13900_lt_linker_boilerplate=`cat conftest.err`
976af183 13901$RM -r conftest*
542f9784 13902
13903
13904 # Allow CC to be a program name with arguments.
13905 lt_save_CC=$CC
13906 lt_save_LD=$LD
13907 lt_save_GCC=$GCC
13908 GCC=$GXX
13909 lt_save_with_gnu_ld=$with_gnu_ld
13910 lt_save_path_LD=$lt_cv_path_LD
13911 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13912 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13913 else
13914 $as_unset lt_cv_prog_gnu_ld
13915 fi
13916 if test -n "${lt_cv_path_LDCXX+set}"; then
13917 lt_cv_path_LD=$lt_cv_path_LDCXX
13918 else
13919 $as_unset lt_cv_path_LD
13920 fi
13921 test -z "${LDCXX+set}" || LD=$LDCXX
13922 CC=${CXX-"c++"}
13923 compiler=$CC
13924 compiler_CXX=$CC
13925 for cc_temp in $compiler""; do
13926 case $cc_temp in
13927 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13928 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13929 \-*) ;;
13930 *) break;;
13931 esac
13932done
e6408286 13933cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
542f9784 13934
13935
13936 if test -n "$compiler"; then
13937 # We don't want -fno-exception when compiling C++ code, so set the
13938 # no_builtin_flag separately
13939 if test "$GXX" = yes; then
13940 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13941 else
13942 lt_prog_compiler_no_builtin_flag_CXX=
13943 fi
13944
13945 if test "$GXX" = yes; then
13946 # Set up default GNU C++ configuration
13947
13948
13949
cd9a469c 13950# Check whether --with-gnu-ld was given.
13951if test "${with_gnu_ld+set}" = set; then :
13952 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
f5699769 13953else
542f9784 13954 with_gnu_ld=no
cd9a469c 13955fi
13956
542f9784 13957ac_prog=ld
13958if test "$GCC" = yes; then
13959 # Check if gcc -print-prog-name=ld gives a path.
cd9a469c 13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13961$as_echo_n "checking for ld used by $CC... " >&6; }
542f9784 13962 case $host in
13963 *-*-mingw*)
13964 # gcc leaves a trailing carriage return which upsets mingw
13965 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13966 *)
13967 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13968 esac
13969 case $ac_prog in
13970 # Accept absolute paths.
13971 [\\/]* | ?:[\\/]*)
13972 re_direlt='/[^/][^/]*/\.\./'
13973 # Canonicalize the pathname of ld
13974 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13975 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13976 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13977 done
13978 test -z "$LD" && LD="$ac_prog"
13979 ;;
13980 "")
13981 # If it fails, then pretend we aren't using GCC.
13982 ac_prog=ld
13983 ;;
13984 *)
13985 # If it is relative, then search for the first ld in PATH.
13986 with_gnu_ld=unknown
13987 ;;
13988 esac
13989elif test "$with_gnu_ld" = yes; then
cd9a469c 13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13991$as_echo_n "checking for GNU ld... " >&6; }
542f9784 13992else
cd9a469c 13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13994$as_echo_n "checking for non-GNU ld... " >&6; }
542f9784 13995fi
cd9a469c 13996if test "${lt_cv_path_LD+set}" = set; then :
13997 $as_echo_n "(cached) " >&6
63a06cfe 13998else
542f9784 13999 if test -z "$LD"; then
14000 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14001 for ac_dir in $PATH; do
14002 IFS="$lt_save_ifs"
14003 test -z "$ac_dir" && ac_dir=.
14004 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14005 lt_cv_path_LD="$ac_dir/$ac_prog"
14006 # Check to see if the program is GNU ld. I'd rather use --version,
14007 # but apparently some variants of GNU ld only accept -v.
14008 # Break only if it was the GNU/non-GNU ld that we prefer.
14009 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14010 *GNU* | *'with BFD'*)
14011 test "$with_gnu_ld" != no && break
14012 ;;
14013 *)
14014 test "$with_gnu_ld" != yes && break
14015 ;;
14016 esac
14017 fi
14018 done
14019 IFS="$lt_save_ifs"
14020else
14021 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14022fi
14023fi
14024
14025LD="$lt_cv_path_LD"
14026if test -n "$LD"; then
cd9a469c 14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14028$as_echo "$LD" >&6; }
542f9784 14029else
cd9a469c 14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14031$as_echo "no" >&6; }
542f9784 14032fi
cd9a469c 14033test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14035$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14036if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14037 $as_echo_n "(cached) " >&6
542f9784 14038else
14039 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14040case `$LD -v 2>&1 </dev/null` in
14041*GNU* | *'with BFD'*)
14042 lt_cv_prog_gnu_ld=yes
14043 ;;
14044*)
14045 lt_cv_prog_gnu_ld=no
14046 ;;
14047esac
14048fi
cd9a469c 14049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14050$as_echo "$lt_cv_prog_gnu_ld" >&6; }
542f9784 14051with_gnu_ld=$lt_cv_prog_gnu_ld
14052
14053
14054
14055
14056
14057
14058
14059 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14060 # archiving commands below assume that GNU ld is being used.
14061 if test "$with_gnu_ld" = yes; then
14062 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14063 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'
14064
14065 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14066 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14067
14068 # If archive_cmds runs LD, not CC, wlarc should be empty
14069 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14070 # investigate it a little bit more. (MM)
14071 wlarc='${wl}'
14072
14073 # ancient GNU ld didn't support --whole-archive et. al.
14074 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14075 $GREP 'no-whole-archive' > /dev/null; then
14076 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14077 else
14078 whole_archive_flag_spec_CXX=
14079 fi
14080 else
14081 with_gnu_ld=no
14082 wlarc=
14083
14084 # A generic and very simple default shared library creation
14085 # command for GNU C++ for the case where it uses the native
14086 # linker, instead of GNU ld. If possible, this setting should
14087 # overridden to take advantage of the native linker features on
14088 # the platform it is being used on.
14089 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14090 fi
14091
14092 # Commands to make compiler produce verbose output that lists
14093 # what "hidden" libraries, object files and flags are used when
14094 # linking a shared library.
e6408286 14095 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
542f9784 14096
14097 else
14098 GXX=no
14099 with_gnu_ld=no
14100 wlarc=
14101 fi
14102
14103 # PORTME: fill in a description of your system's C++ link characteristics
cd9a469c 14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14105$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
542f9784 14106 ld_shlibs_CXX=yes
14107 case $host_os in
14108 aix3*)
14109 # FIXME: insert proper C++ library support
14110 ld_shlibs_CXX=no
14111 ;;
a7798917 14112 aix[4-9]*)
542f9784 14113 if test "$host_cpu" = ia64; then
14114 # On IA64, the linker does run time linking by default, so we don't
14115 # have to do anything special.
14116 aix_use_runtimelinking=no
14117 exp_sym_flag='-Bexport'
14118 no_entry_flag=""
14119 else
14120 aix_use_runtimelinking=no
14121
14122 # Test if we are trying to use run time linking or normal
14123 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14124 # need to do runtime linking.
a7798917 14125 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
542f9784 14126 for ld_flag in $LDFLAGS; do
14127 case $ld_flag in
14128 *-brtl*)
14129 aix_use_runtimelinking=yes
14130 break
14131 ;;
14132 esac
14133 done
14134 ;;
14135 esac
14136
14137 exp_sym_flag='-bexport'
14138 no_entry_flag='-bnoentry'
14139 fi
14140
14141 # When large executables or shared objects are built, AIX ld can
14142 # have problems creating the table of contents. If linking a library
14143 # or program results in "error TOC overflow" add -mminimal-toc to
14144 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14145 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14146
14147 archive_cmds_CXX=''
14148 hardcode_direct_CXX=yes
14149 hardcode_direct_absolute_CXX=yes
14150 hardcode_libdir_separator_CXX=':'
14151 link_all_deplibs_CXX=yes
14152 file_list_spec_CXX='${wl}-f,'
14153
14154 if test "$GXX" = yes; then
14155 case $host_os in aix4.[012]|aix4.[012].*)
14156 # We only want to do this on AIX 4.2 and lower, the check
14157 # below for broken collect2 doesn't work under 4.3+
14158 collect2name=`${CC} -print-prog-name=collect2`
14159 if test -f "$collect2name" &&
14160 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14161 then
14162 # We have reworked collect2
14163 :
14164 else
14165 # We have old collect2
14166 hardcode_direct_CXX=unsupported
14167 # It fails to find uninstalled libraries when the uninstalled
14168 # path is not listed in the libpath. Setting hardcode_minus_L
14169 # to unsupported forces relinking
14170 hardcode_minus_L_CXX=yes
14171 hardcode_libdir_flag_spec_CXX='-L$libdir'
14172 hardcode_libdir_separator_CXX=
14173 fi
14174 esac
14175 shared_flag='-shared'
14176 if test "$aix_use_runtimelinking" = yes; then
14177 shared_flag="$shared_flag "'${wl}-G'
14178 fi
14179 else
14180 # not using gcc
14181 if test "$host_cpu" = ia64; then
14182 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14183 # chokes on -Wl,-G. The following line is correct:
14184 shared_flag='-G'
14185 else
14186 if test "$aix_use_runtimelinking" = yes; then
14187 shared_flag='${wl}-G'
14188 else
14189 shared_flag='${wl}-bM:SRE'
14190 fi
14191 fi
14192 fi
14193
976af183 14194 export_dynamic_flag_spec_CXX='${wl}-bexpall'
542f9784 14195 # It seems that -bexpall does not export symbols beginning with
14196 # underscore (_), so it is better to generate a list of symbols to
14197 # export.
14198 always_export_symbols_CXX=yes
14199 if test "$aix_use_runtimelinking" = yes; then
14200 # Warning - without using the other runtime loading flags (-brtl),
14201 # -berok will link without error, but may produce a broken library.
14202 allow_undefined_flag_CXX='-berok'
14203 # Determine the default libpath from the value encoded in an empty
14204 # executable.
14205 if test x$gcc_no_link = xyes; then
cd9a469c 14206 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
30f7243e 14207fi
cd9a469c 14208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63a06cfe 14209/* end confdefs.h. */
63a06cfe 14210
14211int
14212main ()
14213{
542f9784 14214
63a06cfe 14215 ;
14216 return 0;
14217}
14218_ACEOF
cd9a469c 14219if ac_fn_cxx_try_link "$LINENO"; then :
542f9784 14220
14221lt_aix_libpath_sed='
14222 /Import File Strings/,/^$/ {
14223 /^0/ {
14224 s/^0 *\(.*\)$/\1/
14225 p
14226 }
14227 }'
14228aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14229# Check for a 64-bit object if we didn't find anything.
14230if test -z "$aix_libpath"; then
14231 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14232fi
63a06cfe 14233fi
cd9a469c 14234rm -f core conftest.err conftest.$ac_objext \
14235 conftest$ac_exeext conftest.$ac_ext
542f9784 14236if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
4618c7f0 14237
542f9784 14238 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
f5699769 14239
e6408286 14240 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"
542f9784 14241 else
14242 if test "$host_cpu" = ia64; then
14243 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14244 allow_undefined_flag_CXX="-z nodefs"
14245 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"
14246 else
14247 # Determine the default libpath from the value encoded in an
14248 # empty executable.
14249 if test x$gcc_no_link = xyes; then
cd9a469c 14250 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f5699769 14251fi
cd9a469c 14252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 14253/* end confdefs.h. */
2c60951b 14254
4618c7f0 14255int
14256main ()
14257{
542f9784 14258
4618c7f0 14259 ;
14260 return 0;
14261}
14262_ACEOF
cd9a469c 14263if ac_fn_cxx_try_link "$LINENO"; then :
542f9784 14264
14265lt_aix_libpath_sed='
14266 /Import File Strings/,/^$/ {
14267 /^0/ {
14268 s/^0 *\(.*\)$/\1/
14269 p
14270 }
14271 }'
14272aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14273# Check for a 64-bit object if we didn't find anything.
14274if test -z "$aix_libpath"; then
14275 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14276fi
4618c7f0 14277fi
cd9a469c 14278rm -f core conftest.err conftest.$ac_objext \
14279 conftest$ac_exeext conftest.$ac_ext
542f9784 14280if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14281
14282 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14283 # Warning - without using the other run time loading flags,
14284 # -berok will link without error, but may produce a broken library.
14285 no_undefined_flag_CXX=' ${wl}-bernotok'
14286 allow_undefined_flag_CXX=' ${wl}-berok'
e6408286 14287 if test "$with_gnu_ld" = yes; then
14288 # We only use this code for GNU lds that support --whole-archive.
14289 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14290 else
14291 # Exported symbols can be pulled into shared objects from archives
14292 whole_archive_flag_spec_CXX='$convenience'
14293 fi
542f9784 14294 archive_cmds_need_lc_CXX=yes
14295 # This is similar to how AIX traditionally builds its shared
14296 # libraries.
14297 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'
14298 fi
14299 fi
14300 ;;
4618c7f0 14301
542f9784 14302 beos*)
14303 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14304 allow_undefined_flag_CXX=unsupported
14305 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14306 # support --undefined. This deserves some investigation. FIXME
14307 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14308 else
14309 ld_shlibs_CXX=no
14310 fi
14311 ;;
4618c7f0 14312
542f9784 14313 chorus*)
14314 case $cc_basename in
14315 *)
14316 # FIXME: insert proper C++ library support
14317 ld_shlibs_CXX=no
14318 ;;
14319 esac
14320 ;;
f5699769 14321
976af183 14322 cygwin* | mingw* | pw32* | cegcc*)
542f9784 14323 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14324 # as there is no search path for DLLs.
14325 hardcode_libdir_flag_spec_CXX='-L$libdir'
e6408286 14326 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
542f9784 14327 allow_undefined_flag_CXX=unsupported
14328 always_export_symbols_CXX=no
14329 enable_shared_with_static_runtimes_CXX=yes
14330
14331 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14332 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'
14333 # If the export-symbols file already is a .def file (1st line
14334 # is EXPORTS), use it as is; otherwise, prepend...
14335 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14336 cp $export_symbols $output_objdir/$soname.def;
14337 else
14338 echo EXPORTS > $output_objdir/$soname.def;
14339 cat $export_symbols >> $output_objdir/$soname.def;
14340 fi~
14341 $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'
14342 else
14343 ld_shlibs_CXX=no
14344 fi
14345 ;;
14346 darwin* | rhapsody*)
542f9784 14347
4618c7f0 14348
976af183 14349 archive_cmds_need_lc_CXX=no
14350 hardcode_direct_CXX=no
14351 hardcode_automatic_CXX=yes
14352 hardcode_shlibpath_var_CXX=unsupported
e6408286 14353 if test "$lt_cv_ld_force_load" = "yes"; then
14354 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\"`'
14355 else
14356 whole_archive_flag_spec_CXX=''
14357 fi
976af183 14358 link_all_deplibs_CXX=yes
14359 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14360 case $cc_basename in
14361 ifort*) _lt_dar_can_shared=yes ;;
14362 *) _lt_dar_can_shared=$GCC ;;
14363 esac
14364 if test "$_lt_dar_can_shared" = "yes"; then
e6408286 14365 output_verbose_link_cmd=func_echo_all
976af183 14366 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}"
14367 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14368 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}"
14369 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}"
14370 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14371 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}"
14372 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}"
14373 fi
14374
14375 else
14376 ld_shlibs_CXX=no
14377 fi
14378
542f9784 14379 ;;
4618c7f0 14380
542f9784 14381 dgux*)
14382 case $cc_basename in
14383 ec++*)
14384 # FIXME: insert proper C++ library support
14385 ld_shlibs_CXX=no
14386 ;;
14387 ghcx*)
14388 # Green Hills C++ Compiler
14389 # FIXME: insert proper C++ library support
14390 ld_shlibs_CXX=no
14391 ;;
14392 *)
14393 # FIXME: insert proper C++ library support
14394 ld_shlibs_CXX=no
14395 ;;
14396 esac
14397 ;;
4618c7f0 14398
30369aff 14399 freebsd2.*)
542f9784 14400 # C++ shared libraries reported to be fairly broken before
14401 # switch to ELF
14402 ld_shlibs_CXX=no
14403 ;;
f5699769 14404
542f9784 14405 freebsd-elf*)
14406 archive_cmds_need_lc_CXX=no
14407 ;;
2c60951b 14408
542f9784 14409 freebsd* | dragonfly*)
14410 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14411 # conventions
14412 ld_shlibs_CXX=yes
14413 ;;
2c60951b 14414
542f9784 14415 gnu*)
14416 ;;
4618c7f0 14417
e6408286 14418 haiku*)
14419 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14420 link_all_deplibs_CXX=yes
14421 ;;
14422
542f9784 14423 hpux9*)
14424 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14425 hardcode_libdir_separator_CXX=:
14426 export_dynamic_flag_spec_CXX='${wl}-E'
14427 hardcode_direct_CXX=yes
14428 hardcode_minus_L_CXX=yes # Not in the search PATH,
14429 # but as the default
14430 # location of the library.
14431
14432 case $cc_basename in
14433 CC*)
14434 # FIXME: insert proper C++ library support
14435 ld_shlibs_CXX=no
14436 ;;
14437 aCC*)
14438 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'
14439 # Commands to make compiler produce verbose output that lists
14440 # what "hidden" libraries, object files and flags are used when
14441 # linking a shared library.
14442 #
14443 # There doesn't appear to be a way to prevent this compiler from
14444 # explicitly linking system object files so we need to strip them
14445 # from the output so that they don't get included in the library
14446 # dependencies.
e6408286 14447 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"'
542f9784 14448 ;;
14449 *)
14450 if test "$GXX" = yes; then
14451 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'
14452 else
14453 # FIXME: insert proper C++ library support
14454 ld_shlibs_CXX=no
14455 fi
14456 ;;
14457 esac
14458 ;;
4618c7f0 14459
542f9784 14460 hpux10*|hpux11*)
14461 if test $with_gnu_ld = no; then
14462 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14463 hardcode_libdir_separator_CXX=:
14464
14465 case $host_cpu in
14466 hppa*64*|ia64*)
14467 ;;
14468 *)
14469 export_dynamic_flag_spec_CXX='${wl}-E'
14470 ;;
14471 esac
14472 fi
14473 case $host_cpu in
14474 hppa*64*|ia64*)
14475 hardcode_direct_CXX=no
14476 hardcode_shlibpath_var_CXX=no
14477 ;;
14478 *)
14479 hardcode_direct_CXX=yes
14480 hardcode_direct_absolute_CXX=yes
14481 hardcode_minus_L_CXX=yes # Not in the search PATH,
14482 # but as the default
14483 # location of the library.
14484 ;;
14485 esac
14486
14487 case $cc_basename in
14488 CC*)
14489 # FIXME: insert proper C++ library support
14490 ld_shlibs_CXX=no
14491 ;;
14492 aCC*)
14493 case $host_cpu in
14494 hppa*64*)
14495 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14496 ;;
14497 ia64*)
14498 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14499 ;;
14500 *)
14501 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14502 ;;
14503 esac
14504 # Commands to make compiler produce verbose output that lists
14505 # what "hidden" libraries, object files and flags are used when
14506 # linking a shared library.
14507 #
14508 # There doesn't appear to be a way to prevent this compiler from
14509 # explicitly linking system object files so we need to strip them
14510 # from the output so that they don't get included in the library
14511 # dependencies.
e6408286 14512 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"'
542f9784 14513 ;;
14514 *)
14515 if test "$GXX" = yes; then
14516 if test $with_gnu_ld = no; then
14517 case $host_cpu in
14518 hppa*64*)
14519 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14520 ;;
14521 ia64*)
14522 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14523 ;;
14524 *)
14525 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'
14526 ;;
14527 esac
14528 fi
14529 else
14530 # FIXME: insert proper C++ library support
14531 ld_shlibs_CXX=no
14532 fi
14533 ;;
14534 esac
14535 ;;
4618c7f0 14536
542f9784 14537 interix[3-9]*)
14538 hardcode_direct_CXX=no
14539 hardcode_shlibpath_var_CXX=no
14540 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14541 export_dynamic_flag_spec_CXX='${wl}-E'
14542 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14543 # Instead, shared libraries are loaded at an image base (0x10000000 by
14544 # default) and relocated if they conflict, which is a slow very memory
14545 # consuming and fragmenting process. To avoid this, we pick a random,
14546 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14547 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14548 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'
14549 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'
14550 ;;
14551 irix5* | irix6*)
14552 case $cc_basename in
14553 CC*)
14554 # SGI C++
e6408286 14555 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'
542f9784 14556
14557 # Archives containing C++ object files must be created using
14558 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14559 # necessary to make sure instantiated templates are included
14560 # in the archive.
14561 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14562 ;;
14563 *)
14564 if test "$GXX" = yes; then
14565 if test "$with_gnu_ld" = no; then
e6408286 14566 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'
542f9784 14567 else
e6408286 14568 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'
542f9784 14569 fi
14570 fi
14571 link_all_deplibs_CXX=yes
14572 ;;
14573 esac
14574 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14575 hardcode_libdir_separator_CXX=:
14576 inherit_rpath_CXX=yes
14577 ;;
4618c7f0 14578
9af964d4 14579 linux* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 14580 case $cc_basename in
14581 KCC*)
14582 # Kuck and Associates, Inc. (KAI) C++ Compiler
14583
14584 # KCC will only create a shared library if the output file
14585 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14586 # to its proper name (with version) after linking.
14587 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'
14588 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'
14589 # Commands to make compiler produce verbose output that lists
14590 # what "hidden" libraries, object files and flags are used when
14591 # linking a shared library.
14592 #
14593 # There doesn't appear to be a way to prevent this compiler from
14594 # explicitly linking system object files so we need to strip them
14595 # from the output so that they don't get included in the library
14596 # dependencies.
e6408286 14597 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"'
542f9784 14598
14599 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14600 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14601
14602 # Archives containing C++ object files must be created using
14603 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14604 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14605 ;;
14606 icpc* | ecpc* )
14607 # Intel C++
14608 with_gnu_ld=yes
14609 # version 8.0 and above of icpc choke on multiply defined symbols
14610 # if we add $predep_objects and $postdep_objects, however 7.1 and
14611 # earlier do not add the objects themselves.
14612 case `$CC -V 2>&1` in
14613 *"Version 7."*)
14614 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14615 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'
14616 ;;
14617 *) # Version 8.0 or newer
14618 tmp_idyn=
14619 case $host_cpu in
14620 ia64*) tmp_idyn=' -i_dynamic';;
14621 esac
14622 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14623 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'
14624 ;;
14625 esac
14626 archive_cmds_need_lc_CXX=no
14627 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14628 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14629 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14630 ;;
976af183 14631 pgCC* | pgcpp*)
542f9784 14632 # Portland Group C++ compiler
14633 case `$CC -V` in
e6408286 14634 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
542f9784 14635 prelink_cmds_CXX='tpldir=Template.dir~
14636 rm -rf $tpldir~
14637 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14638 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14639 old_archive_cmds_CXX='tpldir=Template.dir~
14640 rm -rf $tpldir~
14641 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14642 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14643 $RANLIB $oldlib'
14644 archive_cmds_CXX='tpldir=Template.dir~
14645 rm -rf $tpldir~
14646 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14647 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14648 archive_expsym_cmds_CXX='tpldir=Template.dir~
14649 rm -rf $tpldir~
14650 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14651 $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'
14652 ;;
e6408286 14653 *) # Version 6 and above use weak symbols
542f9784 14654 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14655 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'
14656 ;;
14657 esac
f5699769 14658
542f9784 14659 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14660 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
e6408286 14661 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'
542f9784 14662 ;;
14663 cxx*)
14664 # Compaq C++
14665 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14666 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'
14667
14668 runpath_var=LD_RUN_PATH
14669 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14670 hardcode_libdir_separator_CXX=:
14671
14672 # Commands to make compiler produce verbose output that lists
14673 # what "hidden" libraries, object files and flags are used when
14674 # linking a shared library.
14675 #
14676 # There doesn't appear to be a way to prevent this compiler from
14677 # explicitly linking system object files so we need to strip them
14678 # from the output so that they don't get included in the library
14679 # dependencies.
e6408286 14680 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'
542f9784 14681 ;;
e6408286 14682 xl* | mpixl* | bgxl*)
976af183 14683 # IBM XL 8.0 on PPC, with GNU ld
14684 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14685 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14686 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14687 if test "x$supports_anon_versioning" = xyes; then
14688 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14689 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14690 echo "local: *; };" >> $output_objdir/$libname.ver~
14691 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14692 fi
14693 ;;
542f9784 14694 *)
14695 case `$CC -V 2>&1 | sed 5q` in
14696 *Sun\ C*)
14697 # Sun C++ 5.9
14698 no_undefined_flag_CXX=' -zdefs'
14699 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14700 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'
14701 hardcode_libdir_flag_spec_CXX='-R$libdir'
e6408286 14702 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'
542f9784 14703 compiler_needs_object_CXX=yes
14704
14705 # Not sure whether something based on
14706 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14707 # would be better.
e6408286 14708 output_verbose_link_cmd='func_echo_all'
542f9784 14709
14710 # Archives containing C++ object files must be created using
14711 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14712 # necessary to make sure instantiated templates are included
14713 # in the archive.
14714 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14715 ;;
14716 esac
14717 ;;
14718 esac
14719 ;;
f5699769 14720
542f9784 14721 lynxos*)
14722 # FIXME: insert proper C++ library support
14723 ld_shlibs_CXX=no
14724 ;;
4618c7f0 14725
542f9784 14726 m88k*)
14727 # FIXME: insert proper C++ library support
14728 ld_shlibs_CXX=no
14729 ;;
f5699769 14730
542f9784 14731 mvs*)
14732 case $cc_basename in
14733 cxx*)
14734 # FIXME: insert proper C++ library support
14735 ld_shlibs_CXX=no
14736 ;;
14737 *)
14738 # FIXME: insert proper C++ library support
14739 ld_shlibs_CXX=no
14740 ;;
14741 esac
14742 ;;
14743
14744 netbsd*)
14745 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14746 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14747 wlarc=
14748 hardcode_libdir_flag_spec_CXX='-R$libdir'
14749 hardcode_direct_CXX=yes
14750 hardcode_shlibpath_var_CXX=no
f5699769 14751 fi
542f9784 14752 # Workaround some broken pre-1.5 toolchains
14753 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14754 ;;
2c60951b 14755
542f9784 14756 *nto* | *qnx*)
14757 ld_shlibs_CXX=yes
14758 ;;
2c60951b 14759
542f9784 14760 openbsd2*)
14761 # C++ shared libraries are fairly broken
14762 ld_shlibs_CXX=no
14763 ;;
4618c7f0 14764
542f9784 14765 openbsd*)
976af183 14766 if test -f /usr/libexec/ld.so; then
14767 hardcode_direct_CXX=yes
14768 hardcode_shlibpath_var_CXX=no
14769 hardcode_direct_absolute_CXX=yes
14770 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14771 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14772 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14773 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14774 export_dynamic_flag_spec_CXX='${wl}-E'
14775 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14776 fi
e6408286 14777 output_verbose_link_cmd=func_echo_all
976af183 14778 else
14779 ld_shlibs_CXX=no
542f9784 14780 fi
542f9784 14781 ;;
4618c7f0 14782
542f9784 14783 osf3* | osf4* | osf5*)
14784 case $cc_basename in
14785 KCC*)
14786 # Kuck and Associates, Inc. (KAI) C++ Compiler
f5699769 14787
542f9784 14788 # KCC will only create a shared library if the output file
14789 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14790 # to its proper name (with version) after linking.
14791 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'
4618c7f0 14792
542f9784 14793 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14794 hardcode_libdir_separator_CXX=:
2c60951b 14795
542f9784 14796 # Archives containing C++ object files must be created using
14797 # the KAI C++ compiler.
14798 case $host in
14799 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14800 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14801 esac
14802 ;;
14803 RCC*)
14804 # Rational C++ 2.4.1
14805 # FIXME: insert proper C++ library support
14806 ld_shlibs_CXX=no
14807 ;;
14808 cxx*)
14809 case $host in
14810 osf3*)
14811 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
e6408286 14812 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'
542f9784 14813 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14814 ;;
14815 *)
14816 allow_undefined_flag_CXX=' -expect_unresolved \*'
e6408286 14817 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'
542f9784 14818 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14819 echo "-hidden">> $lib.exp~
e6408286 14820 $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~
542f9784 14821 $RM $lib.exp'
14822 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14823 ;;
14824 esac
2c60951b 14825
542f9784 14826 hardcode_libdir_separator_CXX=:
14827
14828 # Commands to make compiler produce verbose output that lists
14829 # what "hidden" libraries, object files and flags are used when
14830 # linking a shared library.
14831 #
14832 # There doesn't appear to be a way to prevent this compiler from
14833 # explicitly linking system object files so we need to strip them
14834 # from the output so that they don't get included in the library
14835 # dependencies.
e6408286 14836 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"'
542f9784 14837 ;;
14838 *)
14839 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14840 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14841 case $host in
14842 osf3*)
e6408286 14843 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'
542f9784 14844 ;;
14845 *)
e6408286 14846 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'
542f9784 14847 ;;
14848 esac
14849
14850 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14851 hardcode_libdir_separator_CXX=:
14852
14853 # Commands to make compiler produce verbose output that lists
14854 # what "hidden" libraries, object files and flags are used when
14855 # linking a shared library.
e6408286 14856 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
542f9784 14857
14858 else
14859 # FIXME: insert proper C++ library support
14860 ld_shlibs_CXX=no
14861 fi
14862 ;;
14863 esac
14864 ;;
4618c7f0 14865
542f9784 14866 psos*)
14867 # FIXME: insert proper C++ library support
14868 ld_shlibs_CXX=no
14869 ;;
4618c7f0 14870
542f9784 14871 sunos4*)
14872 case $cc_basename in
14873 CC*)
14874 # Sun C++ 4.x
14875 # FIXME: insert proper C++ library support
14876 ld_shlibs_CXX=no
14877 ;;
14878 lcc*)
14879 # Lucid
14880 # FIXME: insert proper C++ library support
14881 ld_shlibs_CXX=no
14882 ;;
14883 *)
14884 # FIXME: insert proper C++ library support
14885 ld_shlibs_CXX=no
14886 ;;
14887 esac
14888 ;;
4618c7f0 14889
542f9784 14890 solaris*)
14891 case $cc_basename in
14892 CC*)
14893 # Sun C++ 4.2, 5.x and Centerline C++
14894 archive_cmds_need_lc_CXX=yes
14895 no_undefined_flag_CXX=' -zdefs'
14896 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14897 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14898 $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'
14899
14900 hardcode_libdir_flag_spec_CXX='-R$libdir'
14901 hardcode_shlibpath_var_CXX=no
14902 case $host_os in
14903 solaris2.[0-5] | solaris2.[0-5].*) ;;
14904 *)
14905 # The compiler driver will combine and reorder linker options,
14906 # but understands `-z linker_flag'.
14907 # Supported since Solaris 2.6 (maybe 2.5.1?)
14908 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14909 ;;
14910 esac
14911 link_all_deplibs_CXX=yes
4618c7f0 14912
e6408286 14913 output_verbose_link_cmd='func_echo_all'
2c60951b 14914
542f9784 14915 # Archives containing C++ object files must be created using
14916 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14917 # necessary to make sure instantiated templates are included
14918 # in the archive.
14919 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14920 ;;
14921 gcx*)
14922 # Green Hills C++ Compiler
14923 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
2c60951b 14924
542f9784 14925 # The C++ compiler must be used to create the archive.
14926 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14927 ;;
14928 *)
14929 # GNU C++ compiler with Solaris linker
14930 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14931 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14932 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14933 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14934 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14935 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14936
14937 # Commands to make compiler produce verbose output that lists
14938 # what "hidden" libraries, object files and flags are used when
14939 # linking a shared library.
e6408286 14940 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
542f9784 14941 else
14942 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14943 # platform.
14944 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14945 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14946 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14947
14948 # Commands to make compiler produce verbose output that lists
14949 # what "hidden" libraries, object files and flags are used when
14950 # linking a shared library.
e6408286 14951 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
542f9784 14952 fi
14953
14954 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14955 case $host_os in
14956 solaris2.[0-5] | solaris2.[0-5].*) ;;
14957 *)
14958 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14959 ;;
14960 esac
14961 fi
14962 ;;
14963 esac
14964 ;;
4618c7f0 14965
542f9784 14966 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14967 no_undefined_flag_CXX='${wl}-z,text'
14968 archive_cmds_need_lc_CXX=no
14969 hardcode_shlibpath_var_CXX=no
14970 runpath_var='LD_RUN_PATH'
14971
14972 case $cc_basename in
14973 CC*)
14974 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14975 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14976 ;;
14977 *)
14978 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14979 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14980 ;;
14981 esac
14982 ;;
2c60951b 14983
542f9784 14984 sysv5* | sco3.2v5* | sco5v6*)
14985 # Note: We can NOT use -z defs as we might desire, because we do not
14986 # link with -lc, and that would cause any symbols used from libc to
14987 # always be unresolved, which means just about no library would
14988 # ever link correctly. If we're not using GNU ld we use -z text
14989 # though, which does catch some bad symbols but isn't as heavy-handed
14990 # as -z defs.
14991 no_undefined_flag_CXX='${wl}-z,text'
14992 allow_undefined_flag_CXX='${wl}-z,nodefs'
14993 archive_cmds_need_lc_CXX=no
14994 hardcode_shlibpath_var_CXX=no
14995 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14996 hardcode_libdir_separator_CXX=':'
14997 link_all_deplibs_CXX=yes
14998 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14999 runpath_var='LD_RUN_PATH'
15000
15001 case $cc_basename in
15002 CC*)
15003 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15004 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
e6408286 15005 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15006 '"$old_archive_cmds_CXX"
15007 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15008 '"$reload_cmds_CXX"
542f9784 15009 ;;
15010 *)
15011 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15012 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15013 ;;
15014 esac
15015 ;;
15016
15017 tandem*)
15018 case $cc_basename in
15019 NCC*)
15020 # NonStop-UX NCC 3.20
15021 # FIXME: insert proper C++ library support
15022 ld_shlibs_CXX=no
15023 ;;
15024 *)
15025 # FIXME: insert proper C++ library support
15026 ld_shlibs_CXX=no
15027 ;;
15028 esac
15029 ;;
15030
15031 vxworks*)
15032 # FIXME: insert proper C++ library support
15033 ld_shlibs_CXX=no
15034 ;;
15035
15036 *)
15037 # FIXME: insert proper C++ library support
15038 ld_shlibs_CXX=no
15039 ;;
15040 esac
15041
cd9a469c 15042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15043$as_echo "$ld_shlibs_CXX" >&6; }
542f9784 15044 test "$ld_shlibs_CXX" = no && can_build_shared=no
15045
15046 GCC_CXX="$GXX"
15047 LD_CXX="$LD"
15048
15049 ## CAVEAT EMPTOR:
15050 ## There is no encapsulation within the following macros, do not change
15051 ## the running order or otherwise move them around unless you know exactly
15052 ## what you are doing...
15053 # Dependencies to place before and after the object being linked:
15054predep_objects_CXX=
15055postdep_objects_CXX=
15056predeps_CXX=
15057postdeps_CXX=
15058compiler_lib_search_path_CXX=
15059
15060cat > conftest.$ac_ext <<_LT_EOF
15061class Foo
4618c7f0 15062{
542f9784 15063public:
15064 Foo (void) { a = 0; }
15065private:
15066 int a;
15067};
15068_LT_EOF
15069
cd9a469c 15070if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 15071 (eval $ac_compile) 2>&5
4618c7f0 15072 ac_status=$?
cd9a469c 15073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15074 test $ac_status = 0; }; then
542f9784 15075 # Parse the compiler output and extract the necessary
15076 # objects, libraries and library flags.
15077
15078 # Sentinel used to keep track of whether or not we are before
15079 # the conftest object file.
15080 pre_test_object_deps_done=no
15081
976af183 15082 for p in `eval "$output_verbose_link_cmd"`; do
542f9784 15083 case $p in
15084
15085 -L* | -R* | -l*)
15086 # Some compilers place space between "-{L,R}" and the path.
15087 # Remove the space.
15088 if test $p = "-L" ||
15089 test $p = "-R"; then
15090 prev=$p
15091 continue
15092 else
15093 prev=
15094 fi
15095
15096 if test "$pre_test_object_deps_done" = no; then
15097 case $p in
15098 -L* | -R*)
15099 # Internal compiler library paths should come after those
15100 # provided the user. The postdeps already come after the
15101 # user supplied libs so there is no need to process them.
15102 if test -z "$compiler_lib_search_path_CXX"; then
15103 compiler_lib_search_path_CXX="${prev}${p}"
15104 else
15105 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15106 fi
15107 ;;
15108 # The "-l" case would never come before the object being
15109 # linked, so don't bother handling this case.
15110 esac
15111 else
15112 if test -z "$postdeps_CXX"; then
15113 postdeps_CXX="${prev}${p}"
15114 else
15115 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15116 fi
15117 fi
15118 ;;
4618c7f0 15119
542f9784 15120 *.$objext)
15121 # This assumes that the test object file only shows up
15122 # once in the compiler output.
15123 if test "$p" = "conftest.$objext"; then
15124 pre_test_object_deps_done=yes
15125 continue
15126 fi
15127
15128 if test "$pre_test_object_deps_done" = no; then
15129 if test -z "$predep_objects_CXX"; then
15130 predep_objects_CXX="$p"
15131 else
15132 predep_objects_CXX="$predep_objects_CXX $p"
15133 fi
15134 else
15135 if test -z "$postdep_objects_CXX"; then
15136 postdep_objects_CXX="$p"
15137 else
15138 postdep_objects_CXX="$postdep_objects_CXX $p"
15139 fi
15140 fi
15141 ;;
4618c7f0 15142
542f9784 15143 *) ;; # Ignore the rest.
4618c7f0 15144
542f9784 15145 esac
15146 done
2c60951b 15147
542f9784 15148 # Clean up.
15149 rm -f a.out a.exe
15150else
15151 echo "libtool.m4: error: problem compiling CXX test program"
15152fi
4618c7f0 15153
542f9784 15154$RM -f confest.$objext
4618c7f0 15155
542f9784 15156# PORTME: override above test on systems where it is broken
15157case $host_os in
15158interix[3-9]*)
15159 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15160 # hack all around it, let's just trust "g++" to DTRT.
15161 predep_objects_CXX=
15162 postdep_objects_CXX=
15163 postdeps_CXX=
15164 ;;
59b13f6a 15165
542f9784 15166linux*)
15167 case `$CC -V 2>&1 | sed 5q` in
15168 *Sun\ C*)
15169 # Sun C++ 5.9
15170
15171 # The more standards-conforming stlport4 library is
15172 # incompatible with the Cstd library. Avoid specifying
15173 # it if it's in CXXFLAGS. Ignore libCrun as
15174 # -library=stlport4 depends on it.
15175 case " $CXX $CXXFLAGS " in
15176 *" -library=stlport4 "*)
15177 solaris_use_stlport4=yes
15178 ;;
15179 esac
f5699769 15180
542f9784 15181 if test "$solaris_use_stlport4" != yes; then
15182 postdeps_CXX='-library=Cstd -library=Crun'
15183 fi
15184 ;;
15185 esac
15186 ;;
59b13f6a 15187
542f9784 15188solaris*)
15189 case $cc_basename in
15190 CC*)
15191 # The more standards-conforming stlport4 library is
15192 # incompatible with the Cstd library. Avoid specifying
15193 # it if it's in CXXFLAGS. Ignore libCrun as
15194 # -library=stlport4 depends on it.
15195 case " $CXX $CXXFLAGS " in
15196 *" -library=stlport4 "*)
15197 solaris_use_stlport4=yes
15198 ;;
15199 esac
59b13f6a 15200
542f9784 15201 # Adding this requires a known-good setup of shared libraries for
15202 # Sun compiler versions before 5.6, else PIC objects from an old
15203 # archive will be linked into the output, leading to subtle bugs.
15204 if test "$solaris_use_stlport4" != yes; then
15205 postdeps_CXX='-library=Cstd -library=Crun'
15206 fi
15207 ;;
15208 esac
15209 ;;
15210esac
b152bc66 15211
4618c7f0 15212
542f9784 15213case " $postdeps_CXX " in
15214*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15215esac
976af183 15216 compiler_lib_search_dirs_CXX=
15217if test -n "${compiler_lib_search_path_CXX}"; then
15218 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15219fi
15220
15221
15222
15223
15224
4618c7f0 15225
4618c7f0 15226
b152bc66 15227
b152bc66 15228
b152bc66 15229
4618c7f0 15230
4618c7f0 15231
15232
4618c7f0 15233
4618c7f0 15234
4618c7f0 15235
15236
f5699769 15237
b152bc66 15238
fa0e80a6 15239
15240
4618c7f0 15241
4618c7f0 15242
fa0e80a6 15243
fa0e80a6 15244
4618c7f0 15245
fa0e80a6 15246
4618c7f0 15247
4618c7f0 15248
4618c7f0 15249
4618c7f0 15250
542f9784 15251 lt_prog_compiler_wl_CXX=
15252lt_prog_compiler_pic_CXX=
15253lt_prog_compiler_static_CXX=
4618c7f0 15254
cd9a469c 15255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15256$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
fa0e80a6 15257
542f9784 15258 # C++ specific cases for pic, static, wl, etc.
15259 if test "$GXX" = yes; then
15260 lt_prog_compiler_wl_CXX='-Wl,'
15261 lt_prog_compiler_static_CXX='-static'
fa0e80a6 15262
542f9784 15263 case $host_os in
15264 aix*)
15265 # All AIX code is PIC.
15266 if test "$host_cpu" = ia64; then
15267 # AIX 5 now supports IA64 processor
15268 lt_prog_compiler_static_CXX='-Bstatic'
15269 fi
15270 ;;
976af183 15271
542f9784 15272 amigaos*)
976af183 15273 case $host_cpu in
15274 powerpc)
15275 # see comment about AmigaOS4 .so support
15276 lt_prog_compiler_pic_CXX='-fPIC'
15277 ;;
15278 m68k)
15279 # FIXME: we need at least 68020 code to build shared libraries, but
15280 # adding the `-m68020' flag to GCC prevents building anything better,
15281 # like `-m68040'.
15282 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15283 ;;
15284 esac
542f9784 15285 ;;
976af183 15286
542f9784 15287 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15288 # PIC is the default for these OSes.
15289 ;;
976af183 15290 mingw* | cygwin* | os2* | pw32* | cegcc*)
542f9784 15291 # This hack is so that the source file can tell whether it is being
15292 # built for inclusion in a dll (and should export symbols for example).
15293 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15294 # (--disable-auto-import) libraries
15295 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15296 ;;
15297 darwin* | rhapsody*)
15298 # PIC is the default on this platform
15299 # Common symbols not allowed in MH_DYLIB files
15300 lt_prog_compiler_pic_CXX='-fno-common'
15301 ;;
15302 *djgpp*)
15303 # DJGPP does not support shared libraries at all
15304 lt_prog_compiler_pic_CXX=
15305 ;;
e6408286 15306 haiku*)
15307 # PIC is the default for Haiku.
15308 # The "-static" flag exists, but is broken.
15309 lt_prog_compiler_static_CXX=
15310 ;;
542f9784 15311 interix[3-9]*)
15312 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15313 # Instead, we relocate shared libraries at runtime.
15314 ;;
15315 sysv4*MP*)
15316 if test -d /usr/nec; then
15317 lt_prog_compiler_pic_CXX=-Kconform_pic
15318 fi
15319 ;;
15320 hpux*)
976af183 15321 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15322 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15323 # sets the default TLS model and affects inlining.
542f9784 15324 case $host_cpu in
976af183 15325 hppa*64*)
542f9784 15326 ;;
15327 *)
15328 lt_prog_compiler_pic_CXX='-fPIC'
15329 ;;
15330 esac
15331 ;;
15332 *qnx* | *nto*)
15333 # QNX uses GNU C++, but need to define -shared option too, otherwise
15334 # it will coredump.
15335 lt_prog_compiler_pic_CXX='-fPIC -shared'
15336 ;;
15337 *)
15338 lt_prog_compiler_pic_CXX='-fPIC'
15339 ;;
15340 esac
15341 else
15342 case $host_os in
a7798917 15343 aix[4-9]*)
542f9784 15344 # All AIX code is PIC.
15345 if test "$host_cpu" = ia64; then
15346 # AIX 5 now supports IA64 processor
15347 lt_prog_compiler_static_CXX='-Bstatic'
15348 else
15349 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15350 fi
15351 ;;
15352 chorus*)
15353 case $cc_basename in
15354 cxch68*)
15355 # Green Hills C++ Compiler
15356 # _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"
15357 ;;
15358 esac
15359 ;;
542f9784 15360 dgux*)
15361 case $cc_basename in
15362 ec++*)
15363 lt_prog_compiler_pic_CXX='-KPIC'
15364 ;;
15365 ghcx*)
15366 # Green Hills C++ Compiler
15367 lt_prog_compiler_pic_CXX='-pic'
15368 ;;
15369 *)
15370 ;;
15371 esac
15372 ;;
15373 freebsd* | dragonfly*)
15374 # FreeBSD uses GNU C++
15375 ;;
15376 hpux9* | hpux10* | hpux11*)
15377 case $cc_basename in
15378 CC*)
15379 lt_prog_compiler_wl_CXX='-Wl,'
15380 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15381 if test "$host_cpu" != ia64; then
15382 lt_prog_compiler_pic_CXX='+Z'
15383 fi
15384 ;;
15385 aCC*)
15386 lt_prog_compiler_wl_CXX='-Wl,'
15387 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15388 case $host_cpu in
15389 hppa*64*|ia64*)
15390 # +Z the default
15391 ;;
15392 *)
15393 lt_prog_compiler_pic_CXX='+Z'
15394 ;;
15395 esac
15396 ;;
15397 *)
15398 ;;
15399 esac
15400 ;;
15401 interix*)
15402 # This is c89, which is MS Visual C++ (no shared libs)
15403 # Anyone wants to do a port?
15404 ;;
15405 irix5* | irix6* | nonstopux*)
15406 case $cc_basename in
15407 CC*)
15408 lt_prog_compiler_wl_CXX='-Wl,'
15409 lt_prog_compiler_static_CXX='-non_shared'
15410 # CC pic flag -KPIC is the default.
15411 ;;
15412 *)
15413 ;;
15414 esac
15415 ;;
9af964d4 15416 linux* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 15417 case $cc_basename in
15418 KCC*)
15419 # KAI C++ Compiler
15420 lt_prog_compiler_wl_CXX='--backend -Wl,'
15421 lt_prog_compiler_pic_CXX='-fPIC'
15422 ;;
976af183 15423 ecpc* )
15424 # old Intel C++ for x86_64 which still supported -KPIC.
542f9784 15425 lt_prog_compiler_wl_CXX='-Wl,'
15426 lt_prog_compiler_pic_CXX='-KPIC'
15427 lt_prog_compiler_static_CXX='-static'
15428 ;;
976af183 15429 icpc* )
15430 # Intel C++, used to be incompatible with GCC.
15431 # ICC 10 doesn't accept -KPIC any more.
15432 lt_prog_compiler_wl_CXX='-Wl,'
15433 lt_prog_compiler_pic_CXX='-fPIC'
15434 lt_prog_compiler_static_CXX='-static'
15435 ;;
15436 pgCC* | pgcpp*)
542f9784 15437 # Portland Group C++ compiler
15438 lt_prog_compiler_wl_CXX='-Wl,'
15439 lt_prog_compiler_pic_CXX='-fpic'
15440 lt_prog_compiler_static_CXX='-Bstatic'
15441 ;;
15442 cxx*)
15443 # Compaq C++
15444 # Make sure the PIC flag is empty. It appears that all Alpha
15445 # Linux and Compaq Tru64 Unix objects are PIC.
15446 lt_prog_compiler_pic_CXX=
15447 lt_prog_compiler_static_CXX='-non_shared'
15448 ;;
e6408286 15449 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15450 # IBM XL 8.0, 9.0 on PPC and BlueGene
976af183 15451 lt_prog_compiler_wl_CXX='-Wl,'
15452 lt_prog_compiler_pic_CXX='-qpic'
15453 lt_prog_compiler_static_CXX='-qstaticlink'
15454 ;;
542f9784 15455 *)
15456 case `$CC -V 2>&1 | sed 5q` in
15457 *Sun\ C*)
15458 # Sun C++ 5.9
15459 lt_prog_compiler_pic_CXX='-KPIC'
15460 lt_prog_compiler_static_CXX='-Bstatic'
15461 lt_prog_compiler_wl_CXX='-Qoption ld '
15462 ;;
15463 esac
15464 ;;
15465 esac
15466 ;;
15467 lynxos*)
15468 ;;
15469 m88k*)
15470 ;;
15471 mvs*)
15472 case $cc_basename in
15473 cxx*)
15474 lt_prog_compiler_pic_CXX='-W c,exportall'
15475 ;;
15476 *)
15477 ;;
15478 esac
15479 ;;
15480 netbsd*)
15481 ;;
15482 *qnx* | *nto*)
15483 # QNX uses GNU C++, but need to define -shared option too, otherwise
15484 # it will coredump.
15485 lt_prog_compiler_pic_CXX='-fPIC -shared'
15486 ;;
15487 osf3* | osf4* | osf5*)
15488 case $cc_basename in
15489 KCC*)
15490 lt_prog_compiler_wl_CXX='--backend -Wl,'
15491 ;;
15492 RCC*)
15493 # Rational C++ 2.4.1
15494 lt_prog_compiler_pic_CXX='-pic'
15495 ;;
15496 cxx*)
15497 # Digital/Compaq C++
15498 lt_prog_compiler_wl_CXX='-Wl,'
15499 # Make sure the PIC flag is empty. It appears that all Alpha
15500 # Linux and Compaq Tru64 Unix objects are PIC.
15501 lt_prog_compiler_pic_CXX=
15502 lt_prog_compiler_static_CXX='-non_shared'
15503 ;;
15504 *)
15505 ;;
15506 esac
15507 ;;
15508 psos*)
15509 ;;
15510 solaris*)
15511 case $cc_basename in
15512 CC*)
15513 # Sun C++ 4.2, 5.x and Centerline C++
15514 lt_prog_compiler_pic_CXX='-KPIC'
15515 lt_prog_compiler_static_CXX='-Bstatic'
15516 lt_prog_compiler_wl_CXX='-Qoption ld '
15517 ;;
15518 gcx*)
15519 # Green Hills C++ Compiler
15520 lt_prog_compiler_pic_CXX='-PIC'
15521 ;;
15522 *)
15523 ;;
15524 esac
15525 ;;
15526 sunos4*)
15527 case $cc_basename in
15528 CC*)
15529 # Sun C++ 4.x
15530 lt_prog_compiler_pic_CXX='-pic'
15531 lt_prog_compiler_static_CXX='-Bstatic'
15532 ;;
15533 lcc*)
15534 # Lucid
15535 lt_prog_compiler_pic_CXX='-pic'
15536 ;;
15537 *)
15538 ;;
15539 esac
15540 ;;
15541 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15542 case $cc_basename in
15543 CC*)
15544 lt_prog_compiler_wl_CXX='-Wl,'
15545 lt_prog_compiler_pic_CXX='-KPIC'
15546 lt_prog_compiler_static_CXX='-Bstatic'
15547 ;;
15548 esac
15549 ;;
15550 tandem*)
15551 case $cc_basename in
15552 NCC*)
15553 # NonStop-UX NCC 3.20
15554 lt_prog_compiler_pic_CXX='-KPIC'
15555 ;;
15556 *)
15557 ;;
15558 esac
15559 ;;
15560 vxworks*)
15561 ;;
15562 *)
15563 lt_prog_compiler_can_build_shared_CXX=no
15564 ;;
15565 esac
15566 fi
b152bc66 15567
542f9784 15568case $host_os in
15569 # For platforms which do not support PIC, -DPIC is meaningless:
15570 *djgpp*)
15571 lt_prog_compiler_pic_CXX=
15572 ;;
15573 *)
15574 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15575 ;;
15576esac
cd9a469c 15577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15578$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
f5699769 15579
f5699769 15580
4618c7f0 15581
542f9784 15582#
15583# Check to make sure the PIC flag actually works.
15584#
15585if test -n "$lt_prog_compiler_pic_CXX"; then
cd9a469c 15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15587$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15588if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15589 $as_echo_n "(cached) " >&6
4618c7f0 15590else
976af183 15591 lt_cv_prog_compiler_pic_works_CXX=no
542f9784 15592 ac_outfile=conftest.$ac_objext
15593 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15594 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15595 # Insert the option either (1) after the last *FLAGS variable, or
15596 # (2) before a word containing "conftest.", or (3) at the end.
15597 # Note that $ac_compile itself does not contain backslashes and begins
15598 # with a dollar sign (not a hyphen), so the echo should work correctly.
15599 # The option is referenced via a variable to avoid confusing sed.
15600 lt_compile=`echo "$ac_compile" | $SED \
15601 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15602 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15603 -e 's:$: $lt_compiler_flag:'`
e6408286 15604 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 15605 (eval "$lt_compile" 2>conftest.err)
15606 ac_status=$?
15607 cat conftest.err >&5
e6408286 15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 15609 if (exit $ac_status) && test -s "$ac_outfile"; then
15610 # The compiler can only warn and ignore the option if not recognized
15611 # So say no if there are warnings other than the usual output.
e6408286 15612 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
542f9784 15613 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15614 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
976af183 15615 lt_cv_prog_compiler_pic_works_CXX=yes
542f9784 15616 fi
15617 fi
15618 $RM conftest*
15619
4618c7f0 15620fi
cd9a469c 15621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15622$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
4618c7f0 15623
976af183 15624if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
542f9784 15625 case $lt_prog_compiler_pic_CXX in
15626 "" | " "*) ;;
15627 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15628 esac
15629else
15630 lt_prog_compiler_pic_CXX=
15631 lt_prog_compiler_can_build_shared_CXX=no
15632fi
4618c7f0 15633
542f9784 15634fi
b152bc66 15635
b152bc66 15636
b152bc66 15637
542f9784 15638#
15639# Check to make sure the static flag actually works.
15640#
15641wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cd9a469c 15642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15643$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15644if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15645 $as_echo_n "(cached) " >&6
4618c7f0 15646else
976af183 15647 lt_cv_prog_compiler_static_works_CXX=no
542f9784 15648 save_LDFLAGS="$LDFLAGS"
15649 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15650 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15651 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15652 # The linker can only warn and ignore the option if not recognized
15653 # So say no if there are warnings
15654 if test -s conftest.err; then
15655 # Append any errors to the config.log.
15656 cat conftest.err 1>&5
e6408286 15657 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
542f9784 15658 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15659 if diff conftest.exp conftest.er2 >/dev/null; then
976af183 15660 lt_cv_prog_compiler_static_works_CXX=yes
542f9784 15661 fi
15662 else
976af183 15663 lt_cv_prog_compiler_static_works_CXX=yes
542f9784 15664 fi
15665 fi
976af183 15666 $RM -r conftest*
542f9784 15667 LDFLAGS="$save_LDFLAGS"
4618c7f0 15668
4618c7f0 15669fi
cd9a469c 15670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15671$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
542f9784 15672
976af183 15673if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
542f9784 15674 :
15675else
15676 lt_prog_compiler_static_CXX=
4618c7f0 15677fi
4618c7f0 15678
542f9784 15679
15680
15681
cd9a469c 15682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15683$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15684if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15685 $as_echo_n "(cached) " >&6
4618c7f0 15686else
542f9784 15687 lt_cv_prog_compiler_c_o_CXX=no
15688 $RM -r conftest 2>/dev/null
15689 mkdir conftest
15690 cd conftest
15691 mkdir out
15692 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15693
15694 lt_compiler_flag="-o out/conftest2.$ac_objext"
15695 # Insert the option either (1) after the last *FLAGS variable, or
15696 # (2) before a word containing "conftest.", or (3) at the end.
15697 # Note that $ac_compile itself does not contain backslashes and begins
15698 # with a dollar sign (not a hyphen), so the echo should work correctly.
15699 lt_compile=`echo "$ac_compile" | $SED \
15700 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15701 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15702 -e 's:$: $lt_compiler_flag:'`
e6408286 15703 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 15704 (eval "$lt_compile" 2>out/conftest.err)
15705 ac_status=$?
15706 cat out/conftest.err >&5
e6408286 15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 15708 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15709 then
15710 # The compiler can only warn and ignore the option if not recognized
15711 # So say no if there are warnings
e6408286 15712 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
542f9784 15713 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15714 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15715 lt_cv_prog_compiler_c_o_CXX=yes
15716 fi
15717 fi
15718 chmod u+w . 2>&5
15719 $RM conftest*
15720 # SGI C++ compiler will create directory out/ii_files/ for
15721 # template instantiation
15722 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15723 $RM out/* && rmdir out
15724 cd ..
15725 $RM -r conftest
15726 $RM conftest*
4618c7f0 15727
542f9784 15728fi
cd9a469c 15729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15730$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
542f9784 15731
15732
15733
cd9a469c 15734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15735$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15736if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15737 $as_echo_n "(cached) " >&6
4618c7f0 15738else
542f9784 15739 lt_cv_prog_compiler_c_o_CXX=no
15740 $RM -r conftest 2>/dev/null
15741 mkdir conftest
15742 cd conftest
15743 mkdir out
15744 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15745
15746 lt_compiler_flag="-o out/conftest2.$ac_objext"
15747 # Insert the option either (1) after the last *FLAGS variable, or
15748 # (2) before a word containing "conftest.", or (3) at the end.
15749 # Note that $ac_compile itself does not contain backslashes and begins
15750 # with a dollar sign (not a hyphen), so the echo should work correctly.
15751 lt_compile=`echo "$ac_compile" | $SED \
15752 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15753 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15754 -e 's:$: $lt_compiler_flag:'`
e6408286 15755 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 15756 (eval "$lt_compile" 2>out/conftest.err)
15757 ac_status=$?
15758 cat out/conftest.err >&5
e6408286 15759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 15760 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15761 then
15762 # The compiler can only warn and ignore the option if not recognized
15763 # So say no if there are warnings
e6408286 15764 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
542f9784 15765 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15766 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15767 lt_cv_prog_compiler_c_o_CXX=yes
15768 fi
15769 fi
15770 chmod u+w . 2>&5
15771 $RM conftest*
15772 # SGI C++ compiler will create directory out/ii_files/ for
15773 # template instantiation
15774 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15775 $RM out/* && rmdir out
15776 cd ..
15777 $RM -r conftest
15778 $RM conftest*
15779
15780fi
cd9a469c 15781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15782$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
542f9784 15783
15784
15785
15786
15787hard_links="nottested"
15788if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15789 # do not overwrite the value of need_locks provided by the user
cd9a469c 15790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15791$as_echo_n "checking if we can lock with hard links... " >&6; }
542f9784 15792 hard_links=yes
15793 $RM conftest*
15794 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15795 touch conftest.a
15796 ln conftest.a conftest.b 2>&5 || hard_links=no
15797 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cd9a469c 15798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15799$as_echo "$hard_links" >&6; }
542f9784 15800 if test "$hard_links" = no; then
cd9a469c 15801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15802$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
542f9784 15803 need_locks=warn
15804 fi
15805else
15806 need_locks=no
4618c7f0 15807fi
4618c7f0 15808
4618c7f0 15809
4618c7f0 15810
cd9a469c 15811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15812$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
f5699769 15813
542f9784 15814 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15815 case $host_os in
a7798917 15816 aix[4-9]*)
542f9784 15817 # If we're using GNU nm, then we don't want the "-C" option.
15818 # -C means demangle to AIX nm, but means don't demangle with GNU nm
e6408286 15819 # Also, AIX nm treats weak defined symbols like other global defined
15820 # symbols, whereas GNU nm marks them as "W".
542f9784 15821 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
e6408286 15822 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'
542f9784 15823 else
15824 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'
15825 fi
15826 ;;
15827 pw32*)
15828 export_symbols_cmds_CXX="$ltdll_cmds"
15829 ;;
976af183 15830 cygwin* | mingw* | cegcc*)
542f9784 15831 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'
15832 ;;
15833 *)
15834 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15835 ;;
15836 esac
976af183 15837 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
b152bc66 15838
cd9a469c 15839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15840$as_echo "$ld_shlibs_CXX" >&6; }
542f9784 15841test "$ld_shlibs_CXX" = no && can_build_shared=no
4618c7f0 15842
542f9784 15843with_gnu_ld_CXX=$with_gnu_ld
15844
15845
15846
15847
15848
15849
15850#
15851# Do we need to explicitly link libc?
15852#
15853case "x$archive_cmds_need_lc_CXX" in
15854x|xyes)
15855 # Assume -lc should be added
15856 archive_cmds_need_lc_CXX=yes
15857
15858 if test "$enable_shared" = yes && test "$GCC" = yes; then
15859 case $archive_cmds_CXX in
15860 *'~'*)
15861 # FIXME: we may have to deal with multi-command sequences.
15862 ;;
15863 '$CC '*)
15864 # Test whether the compiler implicitly links with -lc since on some
15865 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15866 # to ld, don't add -lc before -lgcc.
cd9a469c 15867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15868$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15869if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15870 $as_echo_n "(cached) " >&6
9e6fd619 15871else
15872 $RM conftest*
15873 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
542f9784 15874
cd9a469c 15875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 15876 (eval $ac_compile) 2>&5
4618c7f0 15877 ac_status=$?
cd9a469c 15878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15879 test $ac_status = 0; } 2>conftest.err; then
9e6fd619 15880 soname=conftest
15881 lib=conftest
15882 libobjs=conftest.$ac_objext
15883 deplibs=
15884 wl=$lt_prog_compiler_wl_CXX
15885 pic_flag=$lt_prog_compiler_pic_CXX
15886 compiler_flags=-v
15887 linker_flags=-v
15888 verstring=
15889 output_objdir=.
15890 libname=conftest
15891 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15892 allow_undefined_flag_CXX=
cd9a469c 15893 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
542f9784 15894 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
4618c7f0 15895 ac_status=$?
cd9a469c 15896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15897 test $ac_status = 0; }
9e6fd619 15898 then
15899 lt_cv_archive_cmds_need_lc_CXX=no
15900 else
15901 lt_cv_archive_cmds_need_lc_CXX=yes
15902 fi
15903 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15904 else
15905 cat conftest.err 1>&5
15906 fi
15907 $RM conftest*
15908
15909fi
cd9a469c 15910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15911$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
9e6fd619 15912 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
542f9784 15913 ;;
15914 esac
15915 fi
15916 ;;
15917esac
4618c7f0 15918
4618c7f0 15919
931e0b42 15920
374d695e 15921
374d695e 15922
374d695e 15923
c44de8ab 15924
c44de8ab 15925
c44de8ab 15926
c44de8ab 15927
15928
c44de8ab 15929
c44de8ab 15930
15931
374d695e 15932
374d695e 15933
4618c7f0 15934
4618c7f0 15935
374d695e 15936
4618c7f0 15937
15938
374d695e 15939
4618c7f0 15940
4618c7f0 15941
374d695e 15942
4618c7f0 15943
931e0b42 15944
4618c7f0 15945
15946
15947
4618c7f0 15948
4618c7f0 15949
2a8dfff3 15950
f5699769 15951
f5699769 15952
4618c7f0 15953
b152bc66 15954
15955
4618c7f0 15956
4618c7f0 15957
b152bc66 15958
2c60951b 15959
4618c7f0 15960
2c60951b 15961
4618c7f0 15962
2c60951b 15963
2c60951b 15964
15965
4618c7f0 15966
4618c7f0 15967
4618c7f0 15968
f5699769 15969
2c60951b 15970
15971
4618c7f0 15972
2c90f017 15973
4618c7f0 15974
4618c7f0 15975
4618c7f0 15976
15977
c6fb3b83 15978
78f6e478 15979
78f6e478 15980
78f6e478 15981
cd9a469c 15982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15983$as_echo_n "checking dynamic linker characteristics... " >&6; }
976af183 15984
542f9784 15985library_names_spec=
15986libname_spec='lib$name'
15987soname_spec=
15988shrext_cmds=".so"
15989postinstall_cmds=
15990postuninstall_cmds=
15991finish_cmds=
15992finish_eval=
15993shlibpath_var=
15994shlibpath_overrides_runpath=unknown
15995version_type=none
15996dynamic_linker="$host_os ld.so"
15997sys_lib_dlsearch_path_spec="/lib /usr/lib"
15998need_lib_prefix=unknown
15999hardcode_into_libs=no
78f6e478 16000
542f9784 16001# when you set need_version to no, make sure it does not cause -set_version
16002# flags to be left without arguments
16003need_version=unknown
78f6e478 16004
542f9784 16005case $host_os in
16006aix3*)
16007 version_type=linux
16008 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16009 shlibpath_var=LIBPATH
78f6e478 16010
542f9784 16011 # AIX 3 has no versioning support, so we append a major version to the name.
16012 soname_spec='${libname}${release}${shared_ext}$major'
16013 ;;
78f6e478 16014
a7798917 16015aix[4-9]*)
542f9784 16016 version_type=linux
16017 need_lib_prefix=no
16018 need_version=no
16019 hardcode_into_libs=yes
16020 if test "$host_cpu" = ia64; then
16021 # AIX 5 supports IA64
16022 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16023 shlibpath_var=LD_LIBRARY_PATH
16024 else
16025 # With GCC up to 2.95.x, collect2 would create an import file
16026 # for dependence libraries. The import file would start with
16027 # the line `#! .'. This would cause the generated library to
16028 # depend on `.', always an invalid library. This was fixed in
16029 # development snapshots of GCC prior to 3.0.
16030 case $host_os in
16031 aix4 | aix4.[01] | aix4.[01].*)
16032 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16033 echo ' yes '
16034 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16035 :
16036 else
16037 can_build_shared=no
16038 fi
16039 ;;
16040 esac
16041 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16042 # soname into executable. Probably we can add versioning support to
16043 # collect2, so additional links can be useful in future.
16044 if test "$aix_use_runtimelinking" = yes; then
16045 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16046 # instead of lib<name>.a to let people know that these are not
16047 # typical AIX shared libraries.
16048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16049 else
16050 # We preserve .a as extension for shared libraries through AIX4.2
16051 # and later when we are not doing run time linking.
16052 library_names_spec='${libname}${release}.a $libname.a'
16053 soname_spec='${libname}${release}${shared_ext}$major'
16054 fi
16055 shlibpath_var=LIBPATH
16056 fi
16057 ;;
c6fb3b83 16058
542f9784 16059amigaos*)
976af183 16060 case $host_cpu in
16061 powerpc)
16062 # Since July 2007 AmigaOS4 officially supports .so libraries.
16063 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16065 ;;
16066 m68k)
542f9784 16067 library_names_spec='$libname.ixlibrary $libname.a'
16068 # Create ${libname}_ixlibrary.a entries in /sys/libs.
e6408286 16069 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'
976af183 16070 ;;
16071 esac
542f9784 16072 ;;
c6fb3b83 16073
542f9784 16074beos*)
16075 library_names_spec='${libname}${shared_ext}'
16076 dynamic_linker="$host_os ld.so"
16077 shlibpath_var=LIBRARY_PATH
16078 ;;
c6fb3b83 16079
542f9784 16080bsdi[45]*)
16081 version_type=linux
16082 need_version=no
16083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16084 soname_spec='${libname}${release}${shared_ext}$major'
16085 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16086 shlibpath_var=LD_LIBRARY_PATH
16087 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16088 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16089 # the default ld.so.conf also contains /usr/contrib/lib and
16090 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16091 # libtool to hard-code these into programs
16092 ;;
4618c7f0 16093
976af183 16094cygwin* | mingw* | pw32* | cegcc*)
542f9784 16095 version_type=windows
16096 shrext_cmds=".dll"
16097 need_version=no
16098 need_lib_prefix=no
4618c7f0 16099
976af183 16100 case $GCC,$host_os in
16101 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
542f9784 16102 library_names_spec='$libname.dll.a'
16103 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16104 postinstall_cmds='base_file=`basename \${file}`~
16105 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16106 dldir=$destdir/`dirname \$dlpath`~
16107 test -d \$dldir || mkdir -p \$dldir~
16108 $install_prog $dir/$dlname \$dldir/$dlname~
16109 chmod a+x \$dldir/$dlname~
16110 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16111 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16112 fi'
16113 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16114 dlpath=$dir/\$dldll~
16115 $RM \$dlpath'
16116 shlibpath_overrides_runpath=yes
f5699769 16117
542f9784 16118 case $host_os in
16119 cygwin*)
16120 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16121 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
e6408286 16122
542f9784 16123 ;;
976af183 16124 mingw* | cegcc*)
542f9784 16125 # MinGW DLLs use traditional 'lib' prefix
16126 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
542f9784 16127 ;;
16128 pw32*)
16129 # pw32 DLLs use 'pw' prefix rather than 'lib'
16130 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16131 ;;
16132 esac
16133 ;;
fe32b79d 16134
542f9784 16135 *)
16136 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16137 ;;
16138 esac
16139 dynamic_linker='Win32 ld.exe'
16140 # FIXME: first we should search . and the directory the executable is in
16141 shlibpath_var=PATH
16142 ;;
f5699769 16143
542f9784 16144darwin* | rhapsody*)
16145 dynamic_linker="$host_os dyld"
16146 version_type=darwin
16147 need_lib_prefix=no
16148 need_version=no
16149 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16150 soname_spec='${libname}${release}${major}$shared_ext'
16151 shlibpath_overrides_runpath=yes
16152 shlibpath_var=DYLD_LIBRARY_PATH
16153 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
4618c7f0 16154
542f9784 16155 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16156 ;;
f5699769 16157
542f9784 16158dgux*)
16159 version_type=linux
16160 need_lib_prefix=no
16161 need_version=no
16162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16163 soname_spec='${libname}${release}${shared_ext}$major'
16164 shlibpath_var=LD_LIBRARY_PATH
16165 ;;
16166
542f9784 16167freebsd* | dragonfly*)
16168 # DragonFly does not have aout. When/if they implement a new
16169 # versioning mechanism, adjust this.
16170 if test -x /usr/bin/objformat; then
16171 objformat=`/usr/bin/objformat`
16172 else
16173 case $host_os in
30369aff 16174 freebsd[23].*) objformat=aout ;;
542f9784 16175 *) objformat=elf ;;
16176 esac
16177 fi
16178 version_type=freebsd-$objformat
16179 case $version_type in
16180 freebsd-elf*)
16181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16182 need_version=no
16183 need_lib_prefix=no
16184 ;;
16185 freebsd-*)
16186 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16187 need_version=yes
16188 ;;
16189 esac
16190 shlibpath_var=LD_LIBRARY_PATH
16191 case $host_os in
30369aff 16192 freebsd2.*)
542f9784 16193 shlibpath_overrides_runpath=yes
16194 ;;
16195 freebsd3.[01]* | freebsdelf3.[01]*)
16196 shlibpath_overrides_runpath=yes
16197 hardcode_into_libs=yes
16198 ;;
16199 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16200 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16201 shlibpath_overrides_runpath=no
16202 hardcode_into_libs=yes
16203 ;;
16204 *) # from 4.6 on, and DragonFly
16205 shlibpath_overrides_runpath=yes
16206 hardcode_into_libs=yes
16207 ;;
16208 esac
16209 ;;
16210
16211gnu*)
16212 version_type=linux
16213 need_lib_prefix=no
16214 need_version=no
16215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16216 soname_spec='${libname}${release}${shared_ext}$major'
16217 shlibpath_var=LD_LIBRARY_PATH
16218 hardcode_into_libs=yes
16219 ;;
16220
e6408286 16221haiku*)
16222 version_type=linux
16223 need_lib_prefix=no
16224 need_version=no
16225 dynamic_linker="$host_os runtime_loader"
16226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16227 soname_spec='${libname}${release}${shared_ext}$major'
16228 shlibpath_var=LIBRARY_PATH
16229 shlibpath_overrides_runpath=yes
16230 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16231 hardcode_into_libs=yes
16232 ;;
16233
542f9784 16234hpux9* | hpux10* | hpux11*)
16235 # Give a soname corresponding to the major version so that dld.sl refuses to
16236 # link against other versions.
16237 version_type=sunos
16238 need_lib_prefix=no
16239 need_version=no
16240 case $host_cpu in
16241 ia64*)
16242 shrext_cmds='.so'
16243 hardcode_into_libs=yes
16244 dynamic_linker="$host_os dld.so"
16245 shlibpath_var=LD_LIBRARY_PATH
16246 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16248 soname_spec='${libname}${release}${shared_ext}$major'
16249 if test "X$HPUX_IA64_MODE" = X32; then
16250 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16251 else
16252 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16253 fi
16254 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16255 ;;
16256 hppa*64*)
16257 shrext_cmds='.sl'
16258 hardcode_into_libs=yes
16259 dynamic_linker="$host_os dld.sl"
16260 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16261 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16263 soname_spec='${libname}${release}${shared_ext}$major'
16264 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16265 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16266 ;;
16267 *)
16268 shrext_cmds='.sl'
16269 dynamic_linker="$host_os dld.sl"
16270 shlibpath_var=SHLIB_PATH
16271 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16273 soname_spec='${libname}${release}${shared_ext}$major'
16274 ;;
16275 esac
e6408286 16276 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
542f9784 16277 postinstall_cmds='chmod 555 $lib'
e6408286 16278 # or fails outright, so override atomically:
16279 install_override_mode=555
542f9784 16280 ;;
16281
16282interix[3-9]*)
16283 version_type=linux
16284 need_lib_prefix=no
16285 need_version=no
16286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16287 soname_spec='${libname}${release}${shared_ext}$major'
16288 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16289 shlibpath_var=LD_LIBRARY_PATH
16290 shlibpath_overrides_runpath=no
16291 hardcode_into_libs=yes
16292 ;;
16293
16294irix5* | irix6* | nonstopux*)
16295 case $host_os in
16296 nonstopux*) version_type=nonstopux ;;
16297 *)
16298 if test "$lt_cv_prog_gnu_ld" = yes; then
16299 version_type=linux
16300 else
16301 version_type=irix
16302 fi ;;
16303 esac
16304 need_lib_prefix=no
16305 need_version=no
16306 soname_spec='${libname}${release}${shared_ext}$major'
16307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16308 case $host_os in
16309 irix5* | nonstopux*)
16310 libsuff= shlibsuff=
16311 ;;
16312 *)
16313 case $LD in # libtool.m4 will add one of these switches to LD
16314 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16315 libsuff= shlibsuff= libmagic=32-bit;;
16316 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16317 libsuff=32 shlibsuff=N32 libmagic=N32;;
16318 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16319 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16320 *) libsuff= shlibsuff= libmagic=never-match;;
16321 esac
16322 ;;
16323 esac
16324 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16325 shlibpath_overrides_runpath=no
16326 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16327 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16328 hardcode_into_libs=yes
16329 ;;
16330
16331# No shared lib support for Linux oldld, aout, or coff.
16332linux*oldld* | linux*aout* | linux*coff*)
16333 dynamic_linker=no
16334 ;;
16335
16336# This must be Linux ELF.
9af964d4 16337linux* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 16338 version_type=linux
16339 need_lib_prefix=no
16340 need_version=no
16341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16342 soname_spec='${libname}${release}${shared_ext}$major'
16343 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16344 shlibpath_var=LD_LIBRARY_PATH
16345 shlibpath_overrides_runpath=no
9e6fd619 16346
542f9784 16347 # Some binutils ld are patched to set DT_RUNPATH
cd9a469c 16348 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16349 $as_echo_n "(cached) " >&6
9e6fd619 16350else
16351 lt_cv_shlibpath_overrides_runpath=no
16352 save_LDFLAGS=$LDFLAGS
16353 save_libdir=$libdir
16354 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16355 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16356 if test x$gcc_no_link = xyes; then
cd9a469c 16357 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2c60951b 16358fi
cd9a469c 16359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618c7f0 16360/* end confdefs.h. */
f5699769 16361
4618c7f0 16362int
16363main ()
16364{
542f9784 16365
4618c7f0 16366 ;
16367 return 0;
16368}
16369_ACEOF
cd9a469c 16370if ac_fn_cxx_try_link "$LINENO"; then :
16371 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9e6fd619 16372 lt_cv_shlibpath_overrides_runpath=yes
542f9784 16373fi
4618c7f0 16374fi
cd9a469c 16375rm -f core conftest.err conftest.$ac_objext \
16376 conftest$ac_exeext conftest.$ac_ext
9e6fd619 16377 LDFLAGS=$save_LDFLAGS
16378 libdir=$save_libdir
16379
16380fi
16381
16382 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
4618c7f0 16383
542f9784 16384 # This implies no fast_install, which is unacceptable.
16385 # Some rework will be needed to allow for fast_install
16386 # before this can be enabled.
16387 hardcode_into_libs=yes
f5699769 16388
542f9784 16389 # Append ld.so.conf contents to the search path
16390 if test -f /etc/ld.so.conf; then
e6408286 16391 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' ' '`
542f9784 16392 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16393 fi
f5699769 16394
542f9784 16395 # We used to test for /lib/ld.so.1 and disable shared libraries on
16396 # powerpc, because MkLinux only supported shared libraries with the
16397 # GNU dynamic linker. Since this was broken with cross compilers,
16398 # most powerpc-linux boxes support dynamic linking these days and
16399 # people can always --disable-shared, the test was removed, and we
16400 # assume the GNU/Linux dynamic linker is in use.
16401 dynamic_linker='GNU/Linux ld.so'
16402 ;;
4618c7f0 16403
542f9784 16404netbsd*)
16405 version_type=sunos
16406 need_lib_prefix=no
16407 need_version=no
16408 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16411 dynamic_linker='NetBSD (a.out) ld.so'
16412 else
16413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16414 soname_spec='${libname}${release}${shared_ext}$major'
16415 dynamic_linker='NetBSD ld.elf_so'
16416 fi
16417 shlibpath_var=LD_LIBRARY_PATH
16418 shlibpath_overrides_runpath=yes
16419 hardcode_into_libs=yes
16420 ;;
f5699769 16421
542f9784 16422newsos6)
16423 version_type=linux
16424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16425 shlibpath_var=LD_LIBRARY_PATH
16426 shlibpath_overrides_runpath=yes
16427 ;;
4618c7f0 16428
542f9784 16429*nto* | *qnx*)
16430 version_type=qnx
16431 need_lib_prefix=no
16432 need_version=no
16433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16434 soname_spec='${libname}${release}${shared_ext}$major'
16435 shlibpath_var=LD_LIBRARY_PATH
16436 shlibpath_overrides_runpath=no
16437 hardcode_into_libs=yes
16438 dynamic_linker='ldqnx.so'
16439 ;;
ce958f0e 16440
542f9784 16441openbsd*)
16442 version_type=sunos
16443 sys_lib_dlsearch_path_spec="/usr/lib"
16444 need_lib_prefix=no
16445 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16446 case $host_os in
16447 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16448 *) need_version=no ;;
16449 esac
16450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16451 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16452 shlibpath_var=LD_LIBRARY_PATH
16453 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16454 case $host_os in
16455 openbsd2.[89] | openbsd2.[89].*)
16456 shlibpath_overrides_runpath=no
16457 ;;
16458 *)
16459 shlibpath_overrides_runpath=yes
16460 ;;
16461 esac
16462 else
16463 shlibpath_overrides_runpath=yes
16464 fi
16465 ;;
4618c7f0 16466
542f9784 16467os2*)
16468 libname_spec='$name'
16469 shrext_cmds=".dll"
16470 need_lib_prefix=no
16471 library_names_spec='$libname${shared_ext} $libname.a'
16472 dynamic_linker='OS/2 ld.exe'
16473 shlibpath_var=LIBPATH
16474 ;;
4618c7f0 16475
542f9784 16476osf3* | osf4* | osf5*)
16477 version_type=osf
16478 need_lib_prefix=no
16479 need_version=no
16480 soname_spec='${libname}${release}${shared_ext}$major'
16481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16482 shlibpath_var=LD_LIBRARY_PATH
16483 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16484 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16485 ;;
f5699769 16486
542f9784 16487rdos*)
16488 dynamic_linker=no
16489 ;;
f5699769 16490
542f9784 16491solaris*)
16492 version_type=linux
16493 need_lib_prefix=no
16494 need_version=no
16495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16496 soname_spec='${libname}${release}${shared_ext}$major'
16497 shlibpath_var=LD_LIBRARY_PATH
16498 shlibpath_overrides_runpath=yes
16499 hardcode_into_libs=yes
16500 # ldd complains unless libraries are executable
16501 postinstall_cmds='chmod +x $lib'
16502 ;;
f5699769 16503
542f9784 16504sunos4*)
16505 version_type=sunos
16506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16507 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16508 shlibpath_var=LD_LIBRARY_PATH
16509 shlibpath_overrides_runpath=yes
16510 if test "$with_gnu_ld" = yes; then
16511 need_lib_prefix=no
16512 fi
16513 need_version=yes
16514 ;;
4618c7f0 16515
542f9784 16516sysv4 | sysv4.3*)
16517 version_type=linux
16518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16519 soname_spec='${libname}${release}${shared_ext}$major'
16520 shlibpath_var=LD_LIBRARY_PATH
16521 case $host_vendor in
16522 sni)
16523 shlibpath_overrides_runpath=no
16524 need_lib_prefix=no
16525 runpath_var=LD_RUN_PATH
16526 ;;
16527 siemens)
16528 need_lib_prefix=no
16529 ;;
16530 motorola)
16531 need_lib_prefix=no
16532 need_version=no
16533 shlibpath_overrides_runpath=no
16534 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16535 ;;
16536 esac
16537 ;;
f5699769 16538
542f9784 16539sysv4*MP*)
16540 if test -d /usr/nec ;then
16541 version_type=linux
16542 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16543 soname_spec='$libname${shared_ext}.$major'
16544 shlibpath_var=LD_LIBRARY_PATH
16545 fi
16546 ;;
4618c7f0 16547
542f9784 16548sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16549 version_type=freebsd-elf
16550 need_lib_prefix=no
16551 need_version=no
16552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16553 soname_spec='${libname}${release}${shared_ext}$major'
16554 shlibpath_var=LD_LIBRARY_PATH
16555 shlibpath_overrides_runpath=yes
16556 hardcode_into_libs=yes
16557 if test "$with_gnu_ld" = yes; then
16558 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16559 else
16560 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16561 case $host_os in
16562 sco3.2v5*)
16563 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16564 ;;
16565 esac
16566 fi
16567 sys_lib_dlsearch_path_spec='/usr/lib'
16568 ;;
4618c7f0 16569
542f9784 16570tpf*)
16571 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16572 version_type=linux
16573 need_lib_prefix=no
16574 need_version=no
976af183 16575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
542f9784 16576 shlibpath_var=LD_LIBRARY_PATH
16577 shlibpath_overrides_runpath=no
16578 hardcode_into_libs=yes
16579 ;;
f7aa3795 16580
542f9784 16581uts4*)
16582 version_type=linux
16583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16584 soname_spec='${libname}${release}${shared_ext}$major'
16585 shlibpath_var=LD_LIBRARY_PATH
16586 ;;
f7aa3795 16587
542f9784 16588*)
16589 dynamic_linker=no
16590 ;;
16591esac
cd9a469c 16592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16593$as_echo "$dynamic_linker" >&6; }
542f9784 16594test "$dynamic_linker" = no && can_build_shared=no
f7aa3795 16595
542f9784 16596variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16597if test "$GCC" = yes; then
16598 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4618c7f0 16599fi
2c60951b 16600
976af183 16601if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16602 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16603fi
16604if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16605 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16606fi
16607
4618c7f0 16608
4618c7f0 16609
751e2040 16610
f5699769 16611
4618c7f0 16612
f5699769 16613
4618c7f0 16614
30f7243e 16615
751e2040 16616
56870821 16617
f5699769 16618
f5699769 16619
f5699769 16620
f5699769 16621
4618c7f0 16622
16623
751e2040 16624
751e2040 16625
751e2040 16626
4618c7f0 16627
16628
16629
2e49169d 16630
4618c7f0 16631
30f7243e 16632
f5699769 16633
56870821 16634
196c888f 16635
196c888f 16636
196c888f 16637
196c888f 16638
4618c7f0 16639
e6408286 16640
16641
4618c7f0 16642
196c888f 16643
542f9784 16644
cd9a469c 16645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16646$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
542f9784 16647hardcode_action_CXX=
16648if test -n "$hardcode_libdir_flag_spec_CXX" ||
16649 test -n "$runpath_var_CXX" ||
16650 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16651
16652 # We can hardcode non-existent directories.
16653 if test "$hardcode_direct_CXX" != no &&
16654 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16655 # have to relink, otherwise we might link with an installed library
16656 # when we should be linking with a yet-to-be-installed one
16657 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16658 test "$hardcode_minus_L_CXX" != no; then
16659 # Linking always hardcodes the temporary library directory.
16660 hardcode_action_CXX=relink
196c888f 16661 else
542f9784 16662 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16663 hardcode_action_CXX=immediate
196c888f 16664 fi
542f9784 16665else
16666 # We cannot hardcode anything, or else we can only hardcode existing
16667 # directories.
16668 hardcode_action_CXX=unsupported
16669fi
cd9a469c 16670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16671$as_echo "$hardcode_action_CXX" >&6; }
196c888f 16672
542f9784 16673if test "$hardcode_action_CXX" = relink ||
16674 test "$inherit_rpath_CXX" = yes; then
16675 # Fast installation is not supported
16676 enable_fast_install=no
16677elif test "$shlibpath_overrides_runpath" = yes ||
16678 test "$enable_shared" = no; then
16679 # Fast installation is not necessary
16680 enable_fast_install=needless
16681fi
196c888f 16682
4618c7f0 16683
16684
16685
196c888f 16686
542f9784 16687
16688
16689 fi # test -n "$compiler"
16690
16691 CC=$lt_save_CC
16692 LDCXX=$LD
16693 LD=$lt_save_LD
16694 GCC=$lt_save_GCC
16695 with_gnu_ld=$lt_save_with_gnu_ld
16696 lt_cv_path_LDCXX=$lt_cv_path_LD
16697 lt_cv_path_LD=$lt_save_path_LD
16698 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16699 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16700fi # test "$_lt_caught_CXX_error" != yes
16701
16702ac_ext=c
16703ac_cpp='$CPP $CPPFLAGS'
16704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16706ac_compiler_gnu=$ac_cv_c_compiler_gnu
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
cd9a469c 16720 ac_config_commands="$ac_config_commands libtool"
542f9784 16721
16722
16723
16724
16725# Only expand once:
16726
16727
16728
8c35d268 16729
16730
16731case $host in
16732 *-cygwin* | *-mingw*)
16733 # 'host' will be top-level target in the case of a target lib,
16734 # we must compare to with_cross_host to decide if this is a native
16735 # or cross-compiler and select where to install dlls appropriately.
16736 if test -n "$with_cross_host" &&
16737 test x"$with_cross_host" != x"no"; then
16738 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
16739 else
16740 lt_host_flags='-no-undefined -bindir "$(bindir)"';
16741 fi
16742 ;;
16743 *)
16744 lt_host_flags=
16745 ;;
16746esac
16747
16748
16749
16750
e0934084 16751if test -n "$ac_tool_prefix"; then
16752 for ac_prog in gcj
16753 do
16754 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16755set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cd9a469c 16756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16757$as_echo_n "checking for $ac_word... " >&6; }
16758if test "${ac_cv_prog_GCJ+set}" = set; then :
16759 $as_echo_n "(cached) " >&6
196c888f 16760else
542f9784 16761 if test -n "$GCJ"; then
16762 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16763else
16764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618c7f0 16765for as_dir in $PATH
16766do
16767 IFS=$as_save_IFS
16768 test -z "$as_dir" && as_dir=.
cd9a469c 16769 for ac_exec_ext in '' $ac_executable_extensions; do
16770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
e0934084 16771 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
cd9a469c 16772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618c7f0 16773 break 2
16774 fi
16775done
cd9a469c 16776 done
16777IFS=$as_save_IFS
4618c7f0 16778
196c888f 16779fi
542f9784 16780fi
16781GCJ=$ac_cv_prog_GCJ
16782if test -n "$GCJ"; then
cd9a469c 16783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16784$as_echo "$GCJ" >&6; }
196c888f 16785else
cd9a469c 16786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16787$as_echo "no" >&6; }
196c888f 16788fi
16789
cd9a469c 16790
e0934084 16791 test -n "$GCJ" && break
16792 done
16793fi
16794if test -z "$GCJ"; then
16795 ac_ct_GCJ=$GCJ
16796 for ac_prog in gcj
16797do
16798 # Extract the first word of "$ac_prog", so it can be a program name with args.
16799set dummy $ac_prog; ac_word=$2
16800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16801$as_echo_n "checking for $ac_word... " >&6; }
16802if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
16803 $as_echo_n "(cached) " >&6
16804else
16805 if test -n "$ac_ct_GCJ"; then
16806 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
16807else
16808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16809for as_dir in $PATH
16810do
16811 IFS=$as_save_IFS
16812 test -z "$as_dir" && as_dir=.
16813 for ac_exec_ext in '' $ac_executable_extensions; do
16814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16815 ac_cv_prog_ac_ct_GCJ="$ac_prog"
16816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16817 break 2
16818 fi
16819done
16820 done
16821IFS=$as_save_IFS
16822
16823fi
16824fi
16825ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
16826if test -n "$ac_ct_GCJ"; then
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
16828$as_echo "$ac_ct_GCJ" >&6; }
16829else
16830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16831$as_echo "no" >&6; }
16832fi
16833
16834
16835 test -n "$ac_ct_GCJ" && break
542f9784 16836done
e0934084 16837
16838 if test "x$ac_ct_GCJ" = x; then
16839 GCJ="gcj"
16840 else
16841 case $cross_compiling:$ac_tool_warned in
16842yes:)
16843{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16844$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16845ac_tool_warned=yes ;;
16846esac
16847 GCJ=$ac_ct_GCJ
16848 fi
16849fi
f5699769 16850
cd9a469c 16851test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
542f9784 16852if test "x${GCJFLAGS-unset}" = xunset; then
16853 GCJFLAGS="-g -O2"
16854fi
4618c7f0 16855
16856
542f9784 16857depcc="$GCJ" am_compiler_list='gcc3 gcc'
5d10514f 16858
cd9a469c 16859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16860$as_echo_n "checking dependency style of $depcc... " >&6; }
16861if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16862 $as_echo_n "(cached) " >&6
5d10514f 16863else
542f9784 16864 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16865 # We make a subdir and do the tests there. Otherwise we can end up
16866 # making bogus files that we don't know about and never remove. For
16867 # instance it was reported that on HP-UX the gcc test will end up
16868 # making a dummy file named `D' -- because `-MD' means `put the output
16869 # in D'.
16870 mkdir conftest.dir
16871 # Copy depcomp to subdir because otherwise we won't find it if we're
16872 # using a relative directory.
16873 cp "$am_depcomp" conftest.dir
16874 cd conftest.dir
16875 # We will build objects and dependencies in a subdirectory because
16876 # it helps to detect inapplicable dependency modes. For instance
16877 # both Tru64's cc and ICC support -MD to output dependencies as a
16878 # side effect of compilation, but ICC will put the dependencies in
16879 # the current directory while Tru64 will put them in the object
16880 # directory.
16881 mkdir sub
5d10514f 16882
542f9784 16883 am_cv_GCJ_dependencies_compiler_type=none
16884 if test "$am_compiler_list" = ""; then
16885 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16886 fi
cd9a469c 16887 am__universal=false
16888
16889
542f9784 16890 for depmode in $am_compiler_list; do
16891 # Setup a source with many dependencies, because some compilers
16892 # like to wrap large dependency lists on column 80 (with \), and
16893 # we should not choose a depcomp mode which is confused by this.
16894 #
16895 # We need to recreate these files for each test, as the compiler may
16896 # overwrite some of them when testing with obscure command lines.
16897 # This happens at least with the AIX C compiler.
16898 : > sub/conftest.c
16899 for i in 1 2 3 4 5 6; do
16900 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16901 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16902 # Solaris 8's {/usr,}/bin/sh.
16903 touch sub/conftst$i.h
16904 done
16905 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5d10514f 16906
cd9a469c 16907 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16908 # mode. It turns out that the SunPro C++ compiler does not properly
16909 # handle `-M -o', and we need to detect this. Also, some Intel
16910 # versions had trouble with output in subdirs
16911 am__obj=sub/conftest.${OBJEXT-o}
16912 am__minus_obj="-o $am__obj"
542f9784 16913 case $depmode in
cd9a469c 16914 gcc)
16915 # This depmode causes a compiler race in universal mode.
16916 test "$am__universal" = false || continue
16917 ;;
542f9784 16918 nosideeffect)
16919 # after this tag, mechanisms are not by side-effect, so they'll
16920 # only be used when explicitly requested
16921 if test "x$enable_dependency_tracking" = xyes; then
16922 continue
16923 else
16924 break
16925 fi
16926 ;;
cd9a469c 16927 msvisualcpp | msvcmsys)
16928 # This compiler won't grok `-c -o', but also, the minuso test has
16929 # not run yet. These depmodes are late enough in the game, and
16930 # so weak that their functioning should not be impacted.
16931 am__obj=conftest.${OBJEXT-o}
16932 am__minus_obj=
16933 ;;
542f9784 16934 none) break ;;
16935 esac
542f9784 16936 if depmode=$depmode \
cd9a469c 16937 source=sub/conftest.c object=$am__obj \
542f9784 16938 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
cd9a469c 16939 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
542f9784 16940 >/dev/null 2>conftest.err &&
cd9a469c 16941 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
542f9784 16942 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
cd9a469c 16943 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
542f9784 16944 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16945 # icc doesn't choke on unknown options, it will just issue warnings
16946 # or remarks (even with -Werror). So we grep stderr for any message
16947 # that says an option was ignored or not supported.
16948 # When given -MP, icc 7.0 and 7.1 complain thusly:
16949 # icc: Command line warning: ignoring option '-M'; no argument required
16950 # The diagnosis changed in icc 8.0:
16951 # icc: Command line remark: option '-MP' not supported
16952 if (grep 'ignoring option' conftest.err ||
16953 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16954 am_cv_GCJ_dependencies_compiler_type=$depmode
16955 break
16956 fi
16957 fi
16958 done
f5699769 16959
542f9784 16960 cd ..
16961 rm -rf conftest.dir
f5699769 16962else
542f9784 16963 am_cv_GCJ_dependencies_compiler_type=none
f5699769 16964fi
4618c7f0 16965
f5699769 16966fi
cd9a469c 16967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16968$as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
542f9784 16969GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
2c60951b 16970
cd9a469c 16971 if
542f9784 16972 test "x$enable_dependency_tracking" != xno \
16973 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16974 am__fastdepGCJ_TRUE=
16975 am__fastdepGCJ_FALSE='#'
16976else
16977 am__fastdepGCJ_TRUE='#'
16978 am__fastdepGCJ_FALSE=
16979fi
0a11e6ee 16980
f5699769 16981
f5699769 16982
e0934084 16983if test -n "$ac_tool_prefix"; then
16984 for ac_prog in gcj
16985 do
16986 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16987set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cd9a469c 16988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16989$as_echo_n "checking for $ac_word... " >&6; }
16990if test "${ac_cv_prog_GCJ+set}" = set; then :
16991 $as_echo_n "(cached) " >&6
f5699769 16992else
16993 if test -n "$GCJ"; then
16994 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16995else
4618c7f0 16996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16997for as_dir in $PATH
16998do
16999 IFS=$as_save_IFS
17000 test -z "$as_dir" && as_dir=.
cd9a469c 17001 for ac_exec_ext in '' $ac_executable_extensions; do
17002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
e0934084 17003 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
cd9a469c 17004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618c7f0 17005 break 2
17006 fi
17007done
cd9a469c 17008 done
17009IFS=$as_save_IFS
4618c7f0 17010
f5699769 17011fi
17012fi
4618c7f0 17013GCJ=$ac_cv_prog_GCJ
f5699769 17014if test -n "$GCJ"; then
cd9a469c 17015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
17016$as_echo "$GCJ" >&6; }
2c60951b 17017else
cd9a469c 17018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17019$as_echo "no" >&6; }
f5699769 17020fi
ee12f7ca 17021
cd9a469c 17022
e0934084 17023 test -n "$GCJ" && break
17024 done
17025fi
17026if test -z "$GCJ"; then
17027 ac_ct_GCJ=$GCJ
17028 for ac_prog in gcj
17029do
17030 # Extract the first word of "$ac_prog", so it can be a program name with args.
17031set dummy $ac_prog; ac_word=$2
17032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17033$as_echo_n "checking for $ac_word... " >&6; }
17034if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
17035 $as_echo_n "(cached) " >&6
17036else
17037 if test -n "$ac_ct_GCJ"; then
17038 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
17039else
17040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17041for as_dir in $PATH
17042do
17043 IFS=$as_save_IFS
17044 test -z "$as_dir" && as_dir=.
17045 for ac_exec_ext in '' $ac_executable_extensions; do
17046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17047 ac_cv_prog_ac_ct_GCJ="$ac_prog"
17048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17049 break 2
17050 fi
542f9784 17051done
e0934084 17052 done
17053IFS=$as_save_IFS
17054
17055fi
17056fi
17057ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
17058if test -n "$ac_ct_GCJ"; then
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
17060$as_echo "$ac_ct_GCJ" >&6; }
17061else
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17063$as_echo "no" >&6; }
17064fi
17065
17066
17067 test -n "$ac_ct_GCJ" && break
17068done
17069
17070 if test "x$ac_ct_GCJ" = x; then
17071 GCJ="gcj"
17072 else
17073 case $cross_compiling:$ac_tool_warned in
17074yes:)
17075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17077ac_tool_warned=yes ;;
17078esac
17079 GCJ=$ac_ct_GCJ
17080 fi
17081fi
542f9784 17082
cd9a469c 17083test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
542f9784 17084if test "x${GCJFLAGS-unset}" = xunset; then
17085 GCJFLAGS="-g -O2"
17086fi
17087
17088
17089depcc="$GCJ" am_compiler_list='gcc3 gcc'
17090
cd9a469c 17091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17092$as_echo_n "checking dependency style of $depcc... " >&6; }
17093if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
17094 $as_echo_n "(cached) " >&6
f5699769 17095else
542f9784 17096 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17097 # We make a subdir and do the tests there. Otherwise we can end up
17098 # making bogus files that we don't know about and never remove. For
17099 # instance it was reported that on HP-UX the gcc test will end up
17100 # making a dummy file named `D' -- because `-MD' means `put the output
17101 # in D'.
17102 mkdir conftest.dir
17103 # Copy depcomp to subdir because otherwise we won't find it if we're
17104 # using a relative directory.
17105 cp "$am_depcomp" conftest.dir
17106 cd conftest.dir
17107 # We will build objects and dependencies in a subdirectory because
17108 # it helps to detect inapplicable dependency modes. For instance
17109 # both Tru64's cc and ICC support -MD to output dependencies as a
17110 # side effect of compilation, but ICC will put the dependencies in
17111 # the current directory while Tru64 will put them in the object
17112 # directory.
17113 mkdir sub
17114
17115 am_cv_GCJ_dependencies_compiler_type=none
17116 if test "$am_compiler_list" = ""; then
17117 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4618c7f0 17118 fi
cd9a469c 17119 am__universal=false
17120
17121
542f9784 17122 for depmode in $am_compiler_list; do
17123 # Setup a source with many dependencies, because some compilers
17124 # like to wrap large dependency lists on column 80 (with \), and
17125 # we should not choose a depcomp mode which is confused by this.
17126 #
17127 # We need to recreate these files for each test, as the compiler may
17128 # overwrite some of them when testing with obscure command lines.
17129 # This happens at least with the AIX C compiler.
17130 : > sub/conftest.c
17131 for i in 1 2 3 4 5 6; do
17132 echo '#include "conftst'$i'.h"' >> sub/conftest.c
17133 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17134 # Solaris 8's {/usr,}/bin/sh.
17135 touch sub/conftst$i.h
17136 done
17137 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4618c7f0 17138
cd9a469c 17139 # We check with `-c' and `-o' for the sake of the "dashmstdout"
17140 # mode. It turns out that the SunPro C++ compiler does not properly
17141 # handle `-M -o', and we need to detect this. Also, some Intel
17142 # versions had trouble with output in subdirs
17143 am__obj=sub/conftest.${OBJEXT-o}
17144 am__minus_obj="-o $am__obj"
542f9784 17145 case $depmode in
cd9a469c 17146 gcc)
17147 # This depmode causes a compiler race in universal mode.
17148 test "$am__universal" = false || continue
17149 ;;
542f9784 17150 nosideeffect)
17151 # after this tag, mechanisms are not by side-effect, so they'll
17152 # only be used when explicitly requested
17153 if test "x$enable_dependency_tracking" = xyes; then
17154 continue
17155 else
17156 break
17157 fi
17158 ;;
cd9a469c 17159 msvisualcpp | msvcmsys)
17160 # This compiler won't grok `-c -o', but also, the minuso test has
17161 # not run yet. These depmodes are late enough in the game, and
17162 # so weak that their functioning should not be impacted.
17163 am__obj=conftest.${OBJEXT-o}
17164 am__minus_obj=
17165 ;;
542f9784 17166 none) break ;;
17167 esac
542f9784 17168 if depmode=$depmode \
cd9a469c 17169 source=sub/conftest.c object=$am__obj \
542f9784 17170 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
cd9a469c 17171 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
542f9784 17172 >/dev/null 2>conftest.err &&
cd9a469c 17173 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
542f9784 17174 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
cd9a469c 17175 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
542f9784 17176 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17177 # icc doesn't choke on unknown options, it will just issue warnings
17178 # or remarks (even with -Werror). So we grep stderr for any message
17179 # that says an option was ignored or not supported.
17180 # When given -MP, icc 7.0 and 7.1 complain thusly:
17181 # icc: Command line warning: ignoring option '-M'; no argument required
17182 # The diagnosis changed in icc 8.0:
17183 # icc: Command line remark: option '-MP' not supported
17184 if (grep 'ignoring option' conftest.err ||
17185 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17186 am_cv_GCJ_dependencies_compiler_type=$depmode
17187 break
17188 fi
17189 fi
17190 done
17191
17192 cd ..
17193 rm -rf conftest.dir
ee12f7ca 17194else
542f9784 17195 am_cv_GCJ_dependencies_compiler_type=none
ee12f7ca 17196fi
f5699769 17197
542f9784 17198fi
cd9a469c 17199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
17200$as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
542f9784 17201GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
17202
cd9a469c 17203 if
542f9784 17204 test "x$enable_dependency_tracking" != xno \
17205 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
17206 am__fastdepGCJ_TRUE=
17207 am__fastdepGCJ_FALSE='#'
63a06cfe 17208else
542f9784 17209 am__fastdepGCJ_TRUE='#'
17210 am__fastdepGCJ_FALSE=
2c60951b 17211fi
2c60951b 17212
4618c7f0 17213
f5699769 17214
17215
f5699769 17216
542f9784 17217# Source file extension for Java test sources.
796f6ddf 17218ac_ext=c
f5699769 17219
542f9784 17220# Object file extension for compiled Java test sources.
17221objext=o
17222objext_GCJ=$objext
17223
17224# Code to be used in simple compile tests
796f6ddf 17225lt_simple_compile_test_code="int some_variable = 0;"
542f9784 17226
17227# Code to be used in simple link tests
796f6ddf 17228lt_simple_link_test_code='int main(){return(0);}'
542f9784 17229
17230# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17231
17232
17233
17234
17235
17236
17237# If no C compiler was specified, use CC.
17238LTCC=${LTCC-"$CC"}
17239
17240# If no C compiler flags were specified, use CFLAGS.
17241LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17242
17243# Allow CC to be a program name with arguments.
17244compiler=$CC
17245
17246
17247# save warnings/boilerplate of simple test code
17248ac_outfile=conftest.$ac_objext
17249echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17250eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17251_lt_compiler_boilerplate=`cat conftest.err`
17252$RM conftest*
17253
17254ac_outfile=conftest.$ac_objext
17255echo "$lt_simple_link_test_code" >conftest.$ac_ext
17256eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17257_lt_linker_boilerplate=`cat conftest.err`
976af183 17258$RM -r conftest*
542f9784 17259
17260
17261# Allow CC to be a program name with arguments.
976af183 17262GCC=yes
542f9784 17263compiler=$CC
17264compiler_GCJ=$CC
17265for cc_temp in $compiler""; do
17266 case $cc_temp in
17267 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17268 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17269 \-*) ;;
17270 *) break;;
17271 esac
17272done
e6408286 17273cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
542f9784 17274
17275
17276# GCJ did not exist at the time GCC didn't implicitly link libc in.
17277archive_cmds_need_lc_GCJ=no
17278
17279old_archive_cmds_GCJ=$old_archive_cmds
17280
17281## CAVEAT EMPTOR:
17282## There is no encapsulation within the following macros, do not change
17283## the running order or otherwise move them around unless you know exactly
17284## what you are doing...
17285if test -n "$compiler"; then
17286
17287lt_prog_compiler_no_builtin_flag_GCJ=
17288
17289if test "$GCC" = yes; then
e6408286 17290 case $cc_basename in
17291 nvcc*)
17292 lt_prog_compiler_no_builtin_flag_GCJ=' -Xcompiler -fno-builtin' ;;
17293 *)
17294 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' ;;
17295 esac
542f9784 17296
cd9a469c 17297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17298$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17299if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
17300 $as_echo_n "(cached) " >&6
bfdade50 17301else
542f9784 17302 lt_cv_prog_compiler_rtti_exceptions=no
17303 ac_outfile=conftest.$ac_objext
17304 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17305 lt_compiler_flag="-fno-rtti -fno-exceptions"
17306 # Insert the option either (1) after the last *FLAGS variable, or
17307 # (2) before a word containing "conftest.", or (3) at the end.
17308 # Note that $ac_compile itself does not contain backslashes and begins
17309 # with a dollar sign (not a hyphen), so the echo should work correctly.
17310 # The option is referenced via a variable to avoid confusing sed.
17311 lt_compile=`echo "$ac_compile" | $SED \
17312 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17314 -e 's:$: $lt_compiler_flag:'`
e6408286 17315 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 17316 (eval "$lt_compile" 2>conftest.err)
17317 ac_status=$?
17318 cat conftest.err >&5
e6408286 17319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 17320 if (exit $ac_status) && test -s "$ac_outfile"; then
17321 # The compiler can only warn and ignore the option if not recognized
17322 # So say no if there are warnings other than the usual output.
e6408286 17323 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
542f9784 17324 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17325 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17326 lt_cv_prog_compiler_rtti_exceptions=yes
17327 fi
17328 fi
17329 $RM conftest*
bfdade50 17330
bfdade50 17331fi
cd9a469c 17332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17333$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
bfdade50 17334
542f9784 17335if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17336 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
2c60951b 17337else
542f9784 17338 :
17339fi
f5699769 17340
542f9784 17341fi
f5699769 17342
bfdade50 17343
bfdade50 17344
542f9784 17345 lt_prog_compiler_wl_GCJ=
17346lt_prog_compiler_pic_GCJ=
17347lt_prog_compiler_static_GCJ=
bfdade50 17348
cd9a469c 17349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17350$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
bfdade50 17351
542f9784 17352 if test "$GCC" = yes; then
17353 lt_prog_compiler_wl_GCJ='-Wl,'
17354 lt_prog_compiler_static_GCJ='-static'
4618c7f0 17355
542f9784 17356 case $host_os in
17357 aix*)
17358 # All AIX code is PIC.
17359 if test "$host_cpu" = ia64; then
17360 # AIX 5 now supports IA64 processor
17361 lt_prog_compiler_static_GCJ='-Bstatic'
17362 fi
17363 ;;
bfdade50 17364
542f9784 17365 amigaos*)
976af183 17366 case $host_cpu in
17367 powerpc)
17368 # see comment about AmigaOS4 .so support
17369 lt_prog_compiler_pic_GCJ='-fPIC'
17370 ;;
17371 m68k)
17372 # FIXME: we need at least 68020 code to build shared libraries, but
17373 # adding the `-m68020' flag to GCC prevents building anything better,
17374 # like `-m68040'.
17375 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17376 ;;
17377 esac
542f9784 17378 ;;
f5699769 17379
542f9784 17380 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17381 # PIC is the default for these OSes.
17382 ;;
bfdade50 17383
976af183 17384 mingw* | cygwin* | pw32* | os2* | cegcc*)
542f9784 17385 # This hack is so that the source file can tell whether it is being
17386 # built for inclusion in a dll (and should export symbols for example).
17387 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17388 # (--disable-auto-import) libraries
69d30e89 17389
542f9784 17390 ;;
bfdade50 17391
542f9784 17392 darwin* | rhapsody*)
17393 # PIC is the default on this platform
17394 # Common symbols not allowed in MH_DYLIB files
17395 lt_prog_compiler_pic_GCJ='-fno-common'
17396 ;;
17397
e6408286 17398 haiku*)
17399 # PIC is the default for Haiku.
17400 # The "-static" flag exists, but is broken.
17401 lt_prog_compiler_static_GCJ=
17402 ;;
17403
542f9784 17404 hpux*)
976af183 17405 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17406 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17407 # sets the default TLS model and affects inlining.
542f9784 17408 case $host_cpu in
976af183 17409 hppa*64*)
542f9784 17410 # +Z the default
17411 ;;
17412 *)
17413 lt_prog_compiler_pic_GCJ='-fPIC'
17414 ;;
17415 esac
17416 ;;
17417
17418 interix[3-9]*)
17419 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17420 # Instead, we relocate shared libraries at runtime.
17421 ;;
17422
17423 msdosdjgpp*)
17424 # Just because we use GCC doesn't mean we suddenly get shared libraries
17425 # on systems that don't support them.
17426 lt_prog_compiler_can_build_shared_GCJ=no
17427 enable_shared=no
17428 ;;
17429
17430 *nto* | *qnx*)
17431 # QNX uses GNU C++, but need to define -shared option too, otherwise
17432 # it will coredump.
17433 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17434 ;;
17435
17436 sysv4*MP*)
17437 if test -d /usr/nec; then
17438 lt_prog_compiler_pic_GCJ=-Kconform_pic
17439 fi
17440 ;;
17441
17442 *)
17443 lt_prog_compiler_pic_GCJ='-fPIC'
17444 ;;
17445 esac
e6408286 17446
17447 case $cc_basename in
17448 nvcc*) # Cuda Compiler Driver 2.2
17449 lt_prog_compiler_wl_GCJ='-Xlinker '
17450 lt_prog_compiler_pic_GCJ='-Xcompiler -fPIC'
17451 ;;
17452 esac
bfdade50 17453 else
542f9784 17454 # PORTME Check for flag to pass linker flags through the system compiler.
17455 case $host_os in
17456 aix*)
17457 lt_prog_compiler_wl_GCJ='-Wl,'
17458 if test "$host_cpu" = ia64; then
17459 # AIX 5 now supports IA64 processor
17460 lt_prog_compiler_static_GCJ='-Bstatic'
17461 else
17462 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17463 fi
17464 ;;
bfdade50 17465
976af183 17466 mingw* | cygwin* | pw32* | os2* | cegcc*)
542f9784 17467 # This hack is so that the source file can tell whether it is being
17468 # built for inclusion in a dll (and should export symbols for example).
69d30e89 17469
542f9784 17470 ;;
17471
17472 hpux9* | hpux10* | hpux11*)
17473 lt_prog_compiler_wl_GCJ='-Wl,'
17474 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17475 # not for PA HP-UX.
17476 case $host_cpu in
17477 hppa*64*|ia64*)
17478 # +Z the default
17479 ;;
17480 *)
17481 lt_prog_compiler_pic_GCJ='+Z'
17482 ;;
17483 esac
17484 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17485 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17486 ;;
17487
17488 irix5* | irix6* | nonstopux*)
17489 lt_prog_compiler_wl_GCJ='-Wl,'
17490 # PIC (with -KPIC) is the default.
17491 lt_prog_compiler_static_GCJ='-non_shared'
17492 ;;
17493
9af964d4 17494 linux* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 17495 case $cc_basename in
976af183 17496 # old Intel for x86_64 which still supported -KPIC.
17497 ecc*)
542f9784 17498 lt_prog_compiler_wl_GCJ='-Wl,'
17499 lt_prog_compiler_pic_GCJ='-KPIC'
17500 lt_prog_compiler_static_GCJ='-static'
17501 ;;
976af183 17502 # icc used to be incompatible with GCC.
17503 # ICC 10 doesn't accept -KPIC any more.
17504 icc* | ifort*)
17505 lt_prog_compiler_wl_GCJ='-Wl,'
17506 lt_prog_compiler_pic_GCJ='-fPIC'
17507 lt_prog_compiler_static_GCJ='-static'
17508 ;;
17509 # Lahey Fortran 8.1.
17510 lf95*)
17511 lt_prog_compiler_wl_GCJ='-Wl,'
17512 lt_prog_compiler_pic_GCJ='--shared'
17513 lt_prog_compiler_static_GCJ='--static'
17514 ;;
e6408286 17515 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
542f9784 17516 # Portland Group compilers (*not* the Pentium gcc compiler,
17517 # which looks to be a dead project)
17518 lt_prog_compiler_wl_GCJ='-Wl,'
17519 lt_prog_compiler_pic_GCJ='-fpic'
17520 lt_prog_compiler_static_GCJ='-Bstatic'
17521 ;;
17522 ccc*)
17523 lt_prog_compiler_wl_GCJ='-Wl,'
17524 # All Alpha code is PIC.
17525 lt_prog_compiler_static_GCJ='-non_shared'
17526 ;;
e6408286 17527 xl* | bgxl* | bgf* | mpixl*)
17528 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
976af183 17529 lt_prog_compiler_wl_GCJ='-Wl,'
17530 lt_prog_compiler_pic_GCJ='-qpic'
17531 lt_prog_compiler_static_GCJ='-qstaticlink'
17532 ;;
542f9784 17533 *)
17534 case `$CC -V 2>&1 | sed 5q` in
e6408286 17535 *Sun\ F* | *Sun*Fortran*)
17536 # Sun Fortran 8.3 passes all unrecognized flags to the linker
542f9784 17537 lt_prog_compiler_pic_GCJ='-KPIC'
17538 lt_prog_compiler_static_GCJ='-Bstatic'
e6408286 17539 lt_prog_compiler_wl_GCJ=''
542f9784 17540 ;;
e6408286 17541 *Sun\ C*)
17542 # Sun C 5.9
542f9784 17543 lt_prog_compiler_pic_GCJ='-KPIC'
17544 lt_prog_compiler_static_GCJ='-Bstatic'
e6408286 17545 lt_prog_compiler_wl_GCJ='-Wl,'
542f9784 17546 ;;
17547 esac
17548 ;;
17549 esac
17550 ;;
17551
17552 newsos6)
17553 lt_prog_compiler_pic_GCJ='-KPIC'
17554 lt_prog_compiler_static_GCJ='-Bstatic'
17555 ;;
17556
17557 *nto* | *qnx*)
17558 # QNX uses GNU C++, but need to define -shared option too, otherwise
17559 # it will coredump.
17560 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17561 ;;
17562
17563 osf3* | osf4* | osf5*)
17564 lt_prog_compiler_wl_GCJ='-Wl,'
17565 # All OSF/1 code is PIC.
17566 lt_prog_compiler_static_GCJ='-non_shared'
17567 ;;
17568
17569 rdos*)
17570 lt_prog_compiler_static_GCJ='-non_shared'
17571 ;;
17572
17573 solaris*)
17574 lt_prog_compiler_pic_GCJ='-KPIC'
17575 lt_prog_compiler_static_GCJ='-Bstatic'
17576 case $cc_basename in
17577 f77* | f90* | f95*)
17578 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17579 *)
17580 lt_prog_compiler_wl_GCJ='-Wl,';;
17581 esac
17582 ;;
17583
17584 sunos4*)
17585 lt_prog_compiler_wl_GCJ='-Qoption ld '
17586 lt_prog_compiler_pic_GCJ='-PIC'
17587 lt_prog_compiler_static_GCJ='-Bstatic'
17588 ;;
17589
17590 sysv4 | sysv4.2uw2* | sysv4.3*)
17591 lt_prog_compiler_wl_GCJ='-Wl,'
17592 lt_prog_compiler_pic_GCJ='-KPIC'
17593 lt_prog_compiler_static_GCJ='-Bstatic'
17594 ;;
17595
17596 sysv4*MP*)
17597 if test -d /usr/nec ;then
17598 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17599 lt_prog_compiler_static_GCJ='-Bstatic'
17600 fi
17601 ;;
17602
17603 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17604 lt_prog_compiler_wl_GCJ='-Wl,'
17605 lt_prog_compiler_pic_GCJ='-KPIC'
17606 lt_prog_compiler_static_GCJ='-Bstatic'
17607 ;;
17608
17609 unicos*)
17610 lt_prog_compiler_wl_GCJ='-Wl,'
17611 lt_prog_compiler_can_build_shared_GCJ=no
17612 ;;
17613
17614 uts4*)
17615 lt_prog_compiler_pic_GCJ='-pic'
17616 lt_prog_compiler_static_GCJ='-Bstatic'
17617 ;;
17618
17619 *)
17620 lt_prog_compiler_can_build_shared_GCJ=no
17621 ;;
17622 esac
17623 fi
17624
17625case $host_os in
17626 # For platforms which do not support PIC, -DPIC is meaningless:
17627 *djgpp*)
17628 lt_prog_compiler_pic_GCJ=
17629 ;;
17630 *)
17631 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17632 ;;
17633esac
cd9a469c 17634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
17635$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
542f9784 17636
17637
17638
17639#
17640# Check to make sure the PIC flag actually works.
17641#
17642if test -n "$lt_prog_compiler_pic_GCJ"; then
cd9a469c 17643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17644$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17645if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
17646 $as_echo_n "(cached) " >&6
bfdade50 17647else
976af183 17648 lt_cv_prog_compiler_pic_works_GCJ=no
542f9784 17649 ac_outfile=conftest.$ac_objext
17650 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17651 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17652 # Insert the option either (1) after the last *FLAGS variable, or
17653 # (2) before a word containing "conftest.", or (3) at the end.
17654 # Note that $ac_compile itself does not contain backslashes and begins
17655 # with a dollar sign (not a hyphen), so the echo should work correctly.
17656 # The option is referenced via a variable to avoid confusing sed.
17657 lt_compile=`echo "$ac_compile" | $SED \
17658 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17659 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17660 -e 's:$: $lt_compiler_flag:'`
e6408286 17661 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 17662 (eval "$lt_compile" 2>conftest.err)
17663 ac_status=$?
17664 cat conftest.err >&5
e6408286 17665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 17666 if (exit $ac_status) && test -s "$ac_outfile"; then
17667 # The compiler can only warn and ignore the option if not recognized
17668 # So say no if there are warnings other than the usual output.
e6408286 17669 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
542f9784 17670 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17671 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
976af183 17672 lt_cv_prog_compiler_pic_works_GCJ=yes
542f9784 17673 fi
17674 fi
17675 $RM conftest*
2c60951b 17676
bfdade50 17677fi
cd9a469c 17678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17679$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
542f9784 17680
976af183 17681if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
542f9784 17682 case $lt_prog_compiler_pic_GCJ in
17683 "" | " "*) ;;
17684 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17685 esac
bfdade50 17686else
542f9784 17687 lt_prog_compiler_pic_GCJ=
17688 lt_prog_compiler_can_build_shared_GCJ=no
bfdade50 17689fi
542f9784 17690
bfdade50 17691fi
2c60951b 17692
f5699769 17693
17694
542f9784 17695#
17696# Check to make sure the static flag actually works.
17697#
17698wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
cd9a469c 17699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17700$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17701if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
17702 $as_echo_n "(cached) " >&6
e8368dac 17703else
976af183 17704 lt_cv_prog_compiler_static_works_GCJ=no
542f9784 17705 save_LDFLAGS="$LDFLAGS"
17706 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17707 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17708 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17709 # The linker can only warn and ignore the option if not recognized
17710 # So say no if there are warnings
17711 if test -s conftest.err; then
17712 # Append any errors to the config.log.
17713 cat conftest.err 1>&5
e6408286 17714 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
542f9784 17715 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17716 if diff conftest.exp conftest.er2 >/dev/null; then
976af183 17717 lt_cv_prog_compiler_static_works_GCJ=yes
542f9784 17718 fi
17719 else
976af183 17720 lt_cv_prog_compiler_static_works_GCJ=yes
542f9784 17721 fi
17722 fi
976af183 17723 $RM -r conftest*
542f9784 17724 LDFLAGS="$save_LDFLAGS"
bfdade50 17725
542f9784 17726fi
cd9a469c 17727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17728$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
bfdade50 17729
976af183 17730if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
542f9784 17731 :
17732else
17733 lt_prog_compiler_static_GCJ=
17734fi
bfdade50 17735
bfdade50 17736
542f9784 17737
17738
cd9a469c 17739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17740$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17741if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17742 $as_echo_n "(cached) " >&6
e8368dac 17743else
542f9784 17744 lt_cv_prog_compiler_c_o_GCJ=no
17745 $RM -r conftest 2>/dev/null
17746 mkdir conftest
17747 cd conftest
17748 mkdir out
17749 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17750
17751 lt_compiler_flag="-o out/conftest2.$ac_objext"
17752 # Insert the option either (1) after the last *FLAGS variable, or
17753 # (2) before a word containing "conftest.", or (3) at the end.
17754 # Note that $ac_compile itself does not contain backslashes and begins
17755 # with a dollar sign (not a hyphen), so the echo should work correctly.
17756 lt_compile=`echo "$ac_compile" | $SED \
17757 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17758 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17759 -e 's:$: $lt_compiler_flag:'`
e6408286 17760 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 17761 (eval "$lt_compile" 2>out/conftest.err)
17762 ac_status=$?
17763 cat out/conftest.err >&5
e6408286 17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 17765 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17766 then
17767 # The compiler can only warn and ignore the option if not recognized
17768 # So say no if there are warnings
e6408286 17769 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
542f9784 17770 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17771 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17772 lt_cv_prog_compiler_c_o_GCJ=yes
17773 fi
17774 fi
17775 chmod u+w . 2>&5
17776 $RM conftest*
17777 # SGI C++ compiler will create directory out/ii_files/ for
17778 # template instantiation
17779 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17780 $RM out/* && rmdir out
17781 cd ..
17782 $RM -r conftest
17783 $RM conftest*
e8368dac 17784
e8368dac 17785fi
cd9a469c 17786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17787$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
542f9784 17788
17789
17790
cd9a469c 17791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17792$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17793if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17794 $as_echo_n "(cached) " >&6
e8368dac 17795else
542f9784 17796 lt_cv_prog_compiler_c_o_GCJ=no
17797 $RM -r conftest 2>/dev/null
17798 mkdir conftest
17799 cd conftest
17800 mkdir out
17801 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17802
17803 lt_compiler_flag="-o out/conftest2.$ac_objext"
17804 # Insert the option either (1) after the last *FLAGS variable, or
17805 # (2) before a word containing "conftest.", or (3) at the end.
17806 # Note that $ac_compile itself does not contain backslashes and begins
17807 # with a dollar sign (not a hyphen), so the echo should work correctly.
17808 lt_compile=`echo "$ac_compile" | $SED \
17809 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17810 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17811 -e 's:$: $lt_compiler_flag:'`
e6408286 17812 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 17813 (eval "$lt_compile" 2>out/conftest.err)
17814 ac_status=$?
17815 cat out/conftest.err >&5
e6408286 17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 17817 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17818 then
17819 # The compiler can only warn and ignore the option if not recognized
17820 # So say no if there are warnings
e6408286 17821 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
542f9784 17822 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17823 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17824 lt_cv_prog_compiler_c_o_GCJ=yes
17825 fi
17826 fi
17827 chmod u+w . 2>&5
17828 $RM conftest*
17829 # SGI C++ compiler will create directory out/ii_files/ for
17830 # template instantiation
17831 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17832 $RM out/* && rmdir out
17833 cd ..
17834 $RM -r conftest
17835 $RM conftest*
17836
17837fi
cd9a469c 17838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17839$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
542f9784 17840
17841
17842
17843
17844hard_links="nottested"
17845if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17846 # do not overwrite the value of need_locks provided by the user
cd9a469c 17847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17848$as_echo_n "checking if we can lock with hard links... " >&6; }
542f9784 17849 hard_links=yes
17850 $RM conftest*
17851 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17852 touch conftest.a
17853 ln conftest.a conftest.b 2>&5 || hard_links=no
17854 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cd9a469c 17855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17856$as_echo "$hard_links" >&6; }
542f9784 17857 if test "$hard_links" = no; then
cd9a469c 17858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17859$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
542f9784 17860 need_locks=warn
17861 fi
17862else
17863 need_locks=no
17864fi
17865
17866
17867
cd9a469c 17868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17869$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
542f9784 17870
17871 runpath_var=
17872 allow_undefined_flag_GCJ=
17873 always_export_symbols_GCJ=no
17874 archive_cmds_GCJ=
17875 archive_expsym_cmds_GCJ=
17876 compiler_needs_object_GCJ=no
17877 enable_shared_with_static_runtimes_GCJ=no
17878 export_dynamic_flag_spec_GCJ=
17879 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17880 hardcode_automatic_GCJ=no
17881 hardcode_direct_GCJ=no
17882 hardcode_direct_absolute_GCJ=no
17883 hardcode_libdir_flag_spec_GCJ=
17884 hardcode_libdir_flag_spec_ld_GCJ=
17885 hardcode_libdir_separator_GCJ=
17886 hardcode_minus_L_GCJ=no
17887 hardcode_shlibpath_var_GCJ=unsupported
17888 inherit_rpath_GCJ=no
17889 link_all_deplibs_GCJ=unknown
17890 module_cmds_GCJ=
17891 module_expsym_cmds_GCJ=
17892 old_archive_from_new_cmds_GCJ=
17893 old_archive_from_expsyms_cmds_GCJ=
17894 thread_safe_flag_spec_GCJ=
17895 whole_archive_flag_spec_GCJ=
17896 # include_expsyms should be a list of space-separated symbols to be *always*
17897 # included in the symbol list
17898 include_expsyms_GCJ=
17899 # exclude_expsyms can be an extended regexp of symbols to exclude
17900 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17901 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17902 # as well as any symbol that contains `d'.
976af183 17903 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
542f9784 17904 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17905 # platforms (ab)use it in PIC code, but their linkers get confused if
17906 # the symbol is explicitly referenced. Since portable code cannot
17907 # rely on this symbol name, it's probably fine to never include it in
17908 # preloaded symbol tables.
976af183 17909 # Exclude shared library initialization/finalization symbols.
542f9784 17910 extract_expsyms_cmds=
e8368dac 17911
542f9784 17912 case $host_os in
976af183 17913 cygwin* | mingw* | pw32* | cegcc*)
542f9784 17914 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17915 # When not using gcc, we currently assume that we are using
17916 # Microsoft Visual C++.
17917 if test "$GCC" != yes; then
17918 with_gnu_ld=no
17919 fi
17920 ;;
17921 interix*)
17922 # we just hope/assume this is gcc and not c89 (= MSVC++)
17923 with_gnu_ld=yes
17924 ;;
17925 openbsd*)
17926 with_gnu_ld=no
17927 ;;
17928 esac
17929
17930 ld_shlibs_GCJ=yes
e6408286 17931
17932 # On some targets, GNU ld is compatible enough with the native linker
17933 # that we're better off using the native interface for both.
17934 lt_use_gnu_ld_interface=no
542f9784 17935 if test "$with_gnu_ld" = yes; then
e6408286 17936 case $host_os in
17937 aix*)
17938 # The AIX port of GNU ld has always aspired to compatibility
17939 # with the native linker. However, as the warning in the GNU ld
17940 # block says, versions before 2.19.5* couldn't really create working
17941 # shared libraries, regardless of the interface used.
17942 case `$LD -v 2>&1` in
17943 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17944 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17945 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17946 *)
17947 lt_use_gnu_ld_interface=yes
17948 ;;
17949 esac
17950 ;;
17951 *)
17952 lt_use_gnu_ld_interface=yes
17953 ;;
17954 esac
17955 fi
17956
17957 if test "$lt_use_gnu_ld_interface" = yes; then
542f9784 17958 # If archive_cmds runs LD, not CC, wlarc should be empty
17959 wlarc='${wl}'
17960
17961 # Set some defaults for GNU ld with shared library support. These
17962 # are reset later if shared libraries are not supported. Putting them
17963 # here allows them to be overridden if necessary.
17964 runpath_var=LD_RUN_PATH
17965 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17966 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17967 # ancient GNU ld didn't support --whole-archive et. al.
17968 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17969 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17970 else
17971 whole_archive_flag_spec_GCJ=
17972 fi
17973 supports_anon_versioning=no
17974 case `$LD -v 2>&1` in
e6408286 17975 *GNU\ gold*) supports_anon_versioning=yes ;;
542f9784 17976 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17977 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17978 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17979 *\ 2.11.*) ;; # other 2.11 versions
17980 *) supports_anon_versioning=yes ;;
17981 esac
17982
17983 # See if GNU ld supports shared libraries.
17984 case $host_os in
a7798917 17985 aix[3-9]*)
542f9784 17986 # On AIX/PPC, the GNU linker is very broken
17987 if test "$host_cpu" != ia64; then
17988 ld_shlibs_GCJ=no
17989 cat <<_LT_EOF 1>&2
17990
e6408286 17991*** Warning: the GNU linker, at least up to release 2.19, is reported
542f9784 17992*** to be unable to reliably create shared libraries on AIX.
17993*** Therefore, libtool is disabling shared libraries support. If you
e6408286 17994*** really care for shared libraries, you may want to install binutils
17995*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17996*** You will then need to restart the configuration process.
542f9784 17997
17998_LT_EOF
17999 fi
18000 ;;
18001
18002 amigaos*)
976af183 18003 case $host_cpu in
18004 powerpc)
18005 # see comment about AmigaOS4 .so support
18006 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18007 archive_expsym_cmds_GCJ=''
18008 ;;
18009 m68k)
18010 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)'
18011 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18012 hardcode_minus_L_GCJ=yes
18013 ;;
18014 esac
542f9784 18015 ;;
18016
18017 beos*)
18018 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18019 allow_undefined_flag_GCJ=unsupported
18020 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18021 # support --undefined. This deserves some investigation. FIXME
18022 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18023 else
18024 ld_shlibs_GCJ=no
18025 fi
18026 ;;
18027
976af183 18028 cygwin* | mingw* | pw32* | cegcc*)
542f9784 18029 # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18030 # as there is no search path for DLLs.
18031 hardcode_libdir_flag_spec_GCJ='-L$libdir'
e6408286 18032 export_dynamic_flag_spec_GCJ='${wl}--export-all-symbols'
542f9784 18033 allow_undefined_flag_GCJ=unsupported
18034 always_export_symbols_GCJ=no
18035 enable_shared_with_static_runtimes_GCJ=yes
18036 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18037
18038 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18039 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18040 # If the export-symbols file already is a .def file (1st line
18041 # is EXPORTS), use it as is; otherwise, prepend...
18042 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18043 cp $export_symbols $output_objdir/$soname.def;
18044 else
18045 echo EXPORTS > $output_objdir/$soname.def;
18046 cat $export_symbols >> $output_objdir/$soname.def;
18047 fi~
18048 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18049 else
18050 ld_shlibs_GCJ=no
18051 fi
18052 ;;
18053
e6408286 18054 haiku*)
18055 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18056 link_all_deplibs_GCJ=yes
18057 ;;
18058
542f9784 18059 interix[3-9]*)
18060 hardcode_direct_GCJ=no
18061 hardcode_shlibpath_var_GCJ=no
18062 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18063 export_dynamic_flag_spec_GCJ='${wl}-E'
18064 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18065 # Instead, shared libraries are loaded at an image base (0x10000000 by
18066 # default) and relocated if they conflict, which is a slow very memory
18067 # consuming and fragmenting process. To avoid this, we pick a random,
18068 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18069 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18070 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'
18071 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'
18072 ;;
18073
9af964d4 18074 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 18075 tmp_diet=no
18076 if test "$host_os" = linux-dietlibc; then
18077 case $cc_basename in
18078 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
18079 esac
18080 fi
18081 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
18082 && test "$tmp_diet" = no
18083 then
18084 tmp_addflag=
976af183 18085 tmp_sharedflag='-shared'
542f9784 18086 case $cc_basename,$host_cpu in
18087 pgcc*) # Portland Group C compiler
e6408286 18088 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'
542f9784 18089 tmp_addflag=' $pic_flag'
18090 ;;
e6408286 18091 pgf77* | pgf90* | pgf95* | pgfortran*)
18092 # Portland Group f77 and f90 compilers
18093 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'
542f9784 18094 tmp_addflag=' $pic_flag -Mnomain' ;;
18095 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18096 tmp_addflag=' -i_dynamic' ;;
18097 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18098 tmp_addflag=' -i_dynamic -nofor_main' ;;
18099 ifc* | ifort*) # Intel Fortran compiler
18100 tmp_addflag=' -nofor_main' ;;
976af183 18101 lf95*) # Lahey Fortran 8.1
18102 whole_archive_flag_spec_GCJ=
18103 tmp_sharedflag='--shared' ;;
e6408286 18104 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
976af183 18105 tmp_sharedflag='-qmkshrobj'
18106 tmp_addflag= ;;
e6408286 18107 nvcc*) # Cuda Compiler Driver 2.2
18108 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'
18109 compiler_needs_object_GCJ=yes
18110 ;;
542f9784 18111 esac
18112 case `$CC -V 2>&1 | sed 5q` in
18113 *Sun\ C*) # Sun C 5.9
e6408286 18114 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'
542f9784 18115 compiler_needs_object_GCJ=yes
18116 tmp_sharedflag='-G' ;;
18117 *Sun\ F*) # Sun Fortran 8.3
18118 tmp_sharedflag='-G' ;;
542f9784 18119 esac
18120 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18121
18122 if test "x$supports_anon_versioning" = xyes; then
18123 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18124 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18125 echo "local: *; };" >> $output_objdir/$libname.ver~
18126 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18127 fi
976af183 18128
18129 case $cc_basename in
e6408286 18130 xlf* | bgf* | bgxlf* | mpixlf*)
976af183 18131 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
18132 whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
18133 hardcode_libdir_flag_spec_GCJ=
18134 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18135 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
18136 if test "x$supports_anon_versioning" = xyes; then
18137 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18138 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18139 echo "local: *; };" >> $output_objdir/$libname.ver~
18140 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
18141 fi
18142 ;;
18143 esac
542f9784 18144 else
18145 ld_shlibs_GCJ=no
18146 fi
18147 ;;
18148
18149 netbsd*)
18150 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18151 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18152 wlarc=
18153 else
18154 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18155 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18156 fi
18157 ;;
18158
18159 solaris*)
18160 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
18161 ld_shlibs_GCJ=no
18162 cat <<_LT_EOF 1>&2
18163
18164*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18165*** create shared libraries on Solaris systems. Therefore, libtool
18166*** is disabling shared libraries support. We urge you to upgrade GNU
18167*** binutils to release 2.9.1 or newer. Another option is to modify
18168*** your PATH or compiler configuration so that the native linker is
18169*** used, and then restart.
18170
18171_LT_EOF
18172 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18173 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18174 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18175 else
18176 ld_shlibs_GCJ=no
18177 fi
18178 ;;
18179
18180 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18181 case `$LD -v 2>&1` in
18182 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18183 ld_shlibs_GCJ=no
18184 cat <<_LT_EOF 1>&2
18185
18186*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18187*** reliably create shared libraries on SCO systems. Therefore, libtool
18188*** is disabling shared libraries support. We urge you to upgrade GNU
18189*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18190*** your PATH or compiler configuration so that the native linker is
18191*** used, and then restart.
18192
18193_LT_EOF
18194 ;;
18195 *)
18196 # For security reasons, it is highly recommended that you always
18197 # use absolute paths for naming shared libraries, and exclude the
18198 # DT_RUNPATH tag from executables and libraries. But doing so
18199 # requires that you compile everything twice, which is a pain.
18200 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18201 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18202 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18203 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18204 else
18205 ld_shlibs_GCJ=no
18206 fi
18207 ;;
18208 esac
18209 ;;
18210
18211 sunos4*)
18212 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18213 wlarc=
18214 hardcode_direct_GCJ=yes
18215 hardcode_shlibpath_var_GCJ=no
18216 ;;
18217
18218 *)
18219 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18220 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18221 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18222 else
18223 ld_shlibs_GCJ=no
18224 fi
18225 ;;
18226 esac
18227
18228 if test "$ld_shlibs_GCJ" = no; then
18229 runpath_var=
18230 hardcode_libdir_flag_spec_GCJ=
18231 export_dynamic_flag_spec_GCJ=
18232 whole_archive_flag_spec_GCJ=
18233 fi
18234 else
18235 # PORTME fill in a description of your system's linker (not GNU ld)
18236 case $host_os in
18237 aix3*)
18238 allow_undefined_flag_GCJ=unsupported
18239 always_export_symbols_GCJ=yes
18240 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'
18241 # Note: this linker hardcodes the directories in LIBPATH if there
18242 # are no directories specified by -L.
18243 hardcode_minus_L_GCJ=yes
18244 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18245 # Neither direct hardcoding nor static linking is supported with a
18246 # broken collect2.
18247 hardcode_direct_GCJ=unsupported
18248 fi
18249 ;;
18250
a7798917 18251 aix[4-9]*)
542f9784 18252 if test "$host_cpu" = ia64; then
18253 # On IA64, the linker does run time linking by default, so we don't
18254 # have to do anything special.
18255 aix_use_runtimelinking=no
18256 exp_sym_flag='-Bexport'
18257 no_entry_flag=""
18258 else
18259 # If we're using GNU nm, then we don't want the "-C" option.
18260 # -C means demangle to AIX nm, but means don't demangle with GNU nm
e6408286 18261 # Also, AIX nm treats weak defined symbols like other global
18262 # defined symbols, whereas GNU nm marks them as "W".
542f9784 18263 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
e6408286 18264 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'
542f9784 18265 else
18266 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'
18267 fi
18268 aix_use_runtimelinking=no
18269
18270 # Test if we are trying to use run time linking or normal
18271 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18272 # need to do runtime linking.
a7798917 18273 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
542f9784 18274 for ld_flag in $LDFLAGS; do
18275 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18276 aix_use_runtimelinking=yes
18277 break
18278 fi
18279 done
18280 ;;
18281 esac
18282
18283 exp_sym_flag='-bexport'
18284 no_entry_flag='-bnoentry'
18285 fi
18286
18287 # When large executables or shared objects are built, AIX ld can
18288 # have problems creating the table of contents. If linking a library
18289 # or program results in "error TOC overflow" add -mminimal-toc to
18290 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18291 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18292
18293 archive_cmds_GCJ=''
18294 hardcode_direct_GCJ=yes
18295 hardcode_direct_absolute_GCJ=yes
18296 hardcode_libdir_separator_GCJ=':'
18297 link_all_deplibs_GCJ=yes
18298 file_list_spec_GCJ='${wl}-f,'
18299
18300 if test "$GCC" = yes; then
18301 case $host_os in aix4.[012]|aix4.[012].*)
18302 # We only want to do this on AIX 4.2 and lower, the check
18303 # below for broken collect2 doesn't work under 4.3+
18304 collect2name=`${CC} -print-prog-name=collect2`
18305 if test -f "$collect2name" &&
18306 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18307 then
18308 # We have reworked collect2
18309 :
18310 else
18311 # We have old collect2
18312 hardcode_direct_GCJ=unsupported
18313 # It fails to find uninstalled libraries when the uninstalled
18314 # path is not listed in the libpath. Setting hardcode_minus_L
18315 # to unsupported forces relinking
18316 hardcode_minus_L_GCJ=yes
18317 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18318 hardcode_libdir_separator_GCJ=
18319 fi
18320 ;;
18321 esac
18322 shared_flag='-shared'
18323 if test "$aix_use_runtimelinking" = yes; then
18324 shared_flag="$shared_flag "'${wl}-G'
18325 fi
18326 else
18327 # not using gcc
18328 if test "$host_cpu" = ia64; then
18329 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18330 # chokes on -Wl,-G. The following line is correct:
18331 shared_flag='-G'
18332 else
18333 if test "$aix_use_runtimelinking" = yes; then
18334 shared_flag='${wl}-G'
18335 else
18336 shared_flag='${wl}-bM:SRE'
18337 fi
18338 fi
18339 fi
18340
976af183 18341 export_dynamic_flag_spec_GCJ='${wl}-bexpall'
542f9784 18342 # It seems that -bexpall does not export symbols beginning with
18343 # underscore (_), so it is better to generate a list of symbols to export.
18344 always_export_symbols_GCJ=yes
18345 if test "$aix_use_runtimelinking" = yes; then
18346 # Warning - without using the other runtime loading flags (-brtl),
18347 # -berok will link without error, but may produce a broken library.
18348 allow_undefined_flag_GCJ='-berok'
18349 # Determine the default libpath from the value encoded in an
18350 # empty executable.
18351 if test x$gcc_no_link = xyes; then
cd9a469c 18352 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 18353fi
cd9a469c 18354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bfdade50 18355/* end confdefs.h. */
542f9784 18356
bfdade50 18357int
18358main ()
18359{
542f9784 18360
bfdade50 18361 ;
18362 return 0;
18363}
18364_ACEOF
cd9a469c 18365if ac_fn_c_try_link "$LINENO"; then :
542f9784 18366
18367lt_aix_libpath_sed='
18368 /Import File Strings/,/^$/ {
18369 /^0/ {
18370 s/^0 *\(.*\)$/\1/
18371 p
18372 }
18373 }'
18374aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18375# Check for a 64-bit object if we didn't find anything.
18376if test -z "$aix_libpath"; then
18377 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
bfdade50 18378fi
e8368dac 18379fi
cd9a469c 18380rm -f core conftest.err conftest.$ac_objext \
18381 conftest$ac_exeext conftest.$ac_ext
542f9784 18382if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18383
18384 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
e6408286 18385 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"
542f9784 18386 else
18387 if test "$host_cpu" = ia64; then
18388 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18389 allow_undefined_flag_GCJ="-z nodefs"
18390 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"
18391 else
18392 # Determine the default libpath from the value encoded in an
18393 # empty executable.
18394 if test x$gcc_no_link = xyes; then
cd9a469c 18395 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 18396fi
cd9a469c 18397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8368dac 18398/* end confdefs.h. */
542f9784 18399
bfdade50 18400int
18401main ()
18402{
542f9784 18403
18404 ;
18405 return 0;
e8368dac 18406}
18407_ACEOF
cd9a469c 18408if ac_fn_c_try_link "$LINENO"; then :
542f9784 18409
18410lt_aix_libpath_sed='
18411 /Import File Strings/,/^$/ {
18412 /^0/ {
18413 s/^0 *\(.*\)$/\1/
18414 p
18415 }
18416 }'
18417aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18418# Check for a 64-bit object if we didn't find anything.
18419if test -z "$aix_libpath"; then
18420 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18421fi
e8368dac 18422fi
cd9a469c 18423rm -f core conftest.err conftest.$ac_objext \
18424 conftest$ac_exeext conftest.$ac_ext
542f9784 18425if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18426
18427 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18428 # Warning - without using the other run time loading flags,
18429 # -berok will link without error, but may produce a broken library.
18430 no_undefined_flag_GCJ=' ${wl}-bernotok'
18431 allow_undefined_flag_GCJ=' ${wl}-berok'
e6408286 18432 if test "$with_gnu_ld" = yes; then
18433 # We only use this code for GNU lds that support --whole-archive.
18434 whole_archive_flag_spec_GCJ='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18435 else
18436 # Exported symbols can be pulled into shared objects from archives
18437 whole_archive_flag_spec_GCJ='$convenience'
18438 fi
542f9784 18439 archive_cmds_need_lc_GCJ=yes
18440 # This is similar to how AIX traditionally builds its shared libraries.
18441 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'
18442 fi
18443 fi
18444 ;;
e8368dac 18445
542f9784 18446 amigaos*)
976af183 18447 case $host_cpu in
18448 powerpc)
18449 # see comment about AmigaOS4 .so support
18450 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18451 archive_expsym_cmds_GCJ=''
18452 ;;
18453 m68k)
18454 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)'
18455 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18456 hardcode_minus_L_GCJ=yes
18457 ;;
18458 esac
542f9784 18459 ;;
e8368dac 18460
542f9784 18461 bsdi[45]*)
18462 export_dynamic_flag_spec_GCJ=-rdynamic
18463 ;;
e8368dac 18464
976af183 18465 cygwin* | mingw* | pw32* | cegcc*)
542f9784 18466 # When not using gcc, we currently assume that we are using
18467 # Microsoft Visual C++.
18468 # hardcode_libdir_flag_spec is actually meaningless, as there is
18469 # no search path for DLLs.
18470 hardcode_libdir_flag_spec_GCJ=' '
18471 allow_undefined_flag_GCJ=unsupported
18472 # Tell ltmain to make .lib files, not .a files.
18473 libext=lib
18474 # Tell ltmain to make .dll files, not .so files.
18475 shrext_cmds=".dll"
18476 # FIXME: Setting linknames here is a bad hack.
e6408286 18477 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
542f9784 18478 # The linker will automatically build a .lib file if we build a DLL.
18479 old_archive_from_new_cmds_GCJ='true'
18480 # FIXME: Should let the user specify the lib program.
18481 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18482 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18483 enable_shared_with_static_runtimes_GCJ=yes
18484 ;;
f5699769 18485
542f9784 18486 darwin* | rhapsody*)
2c60951b 18487
976af183 18488
18489 archive_cmds_need_lc_GCJ=no
18490 hardcode_direct_GCJ=no
18491 hardcode_automatic_GCJ=yes
18492 hardcode_shlibpath_var_GCJ=unsupported
e6408286 18493 if test "$lt_cv_ld_force_load" = "yes"; then
18494 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\"`'
18495 else
18496 whole_archive_flag_spec_GCJ=''
18497 fi
976af183 18498 link_all_deplibs_GCJ=yes
18499 allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
18500 case $cc_basename in
18501 ifort*) _lt_dar_can_shared=yes ;;
18502 *) _lt_dar_can_shared=$GCC ;;
18503 esac
18504 if test "$_lt_dar_can_shared" = "yes"; then
e6408286 18505 output_verbose_link_cmd=func_echo_all
976af183 18506 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}"
18507 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18508 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}"
18509 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}"
18510
18511 else
18512 ld_shlibs_GCJ=no
18513 fi
18514
542f9784 18515 ;;
f5699769 18516
542f9784 18517 dgux*)
18518 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18519 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18520 hardcode_shlibpath_var_GCJ=no
18521 ;;
f5699769 18522
542f9784 18523 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18524 # support. Future versions do this automatically, but an explicit c++rt0.o
18525 # does not break anything, and helps significantly (at the cost of a little
18526 # extra space).
18527 freebsd2.2*)
18528 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18529 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18530 hardcode_direct_GCJ=yes
18531 hardcode_shlibpath_var_GCJ=no
18532 ;;
f5699769 18533
542f9784 18534 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
30369aff 18535 freebsd2.*)
542f9784 18536 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18537 hardcode_direct_GCJ=yes
18538 hardcode_minus_L_GCJ=yes
18539 hardcode_shlibpath_var_GCJ=no
18540 ;;
f5699769 18541
542f9784 18542 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18543 freebsd* | dragonfly*)
18544 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18545 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18546 hardcode_direct_GCJ=yes
18547 hardcode_shlibpath_var_GCJ=no
18548 ;;
f5699769 18549
542f9784 18550 hpux9*)
18551 if test "$GCC" = yes; then
18552 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'
18553 else
18554 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'
18555 fi
18556 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18557 hardcode_libdir_separator_GCJ=:
18558 hardcode_direct_GCJ=yes
18559
18560 # hardcode_minus_L: Not really in the search PATH,
18561 # but as the default location of the library.
18562 hardcode_minus_L_GCJ=yes
18563 export_dynamic_flag_spec_GCJ='${wl}-E'
18564 ;;
f5699769 18565
542f9784 18566 hpux10*)
e6408286 18567 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
542f9784 18568 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18569 else
18570 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18571 fi
18572 if test "$with_gnu_ld" = no; then
18573 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18574 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18575 hardcode_libdir_separator_GCJ=:
18576 hardcode_direct_GCJ=yes
18577 hardcode_direct_absolute_GCJ=yes
18578 export_dynamic_flag_spec_GCJ='${wl}-E'
18579 # hardcode_minus_L: Not really in the search PATH,
18580 # but as the default location of the library.
18581 hardcode_minus_L_GCJ=yes
18582 fi
18583 ;;
f5699769 18584
542f9784 18585 hpux11*)
e6408286 18586 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
542f9784 18587 case $host_cpu in
18588 hppa*64*)
18589 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18590 ;;
18591 ia64*)
976af183 18592 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
542f9784 18593 ;;
18594 *)
18595 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18596 ;;
18597 esac
18598 else
18599 case $host_cpu in
18600 hppa*64*)
18601 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18602 ;;
18603 ia64*)
18604 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18605 ;;
18606 *)
e6408286 18607 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
542f9784 18608 ;;
18609 esac
18610 fi
18611 if test "$with_gnu_ld" = no; then
18612 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18613 hardcode_libdir_separator_GCJ=:
18614
18615 case $host_cpu in
18616 hppa*64*|ia64*)
18617 hardcode_direct_GCJ=no
18618 hardcode_shlibpath_var_GCJ=no
18619 ;;
18620 *)
18621 hardcode_direct_GCJ=yes
18622 hardcode_direct_absolute_GCJ=yes
18623 export_dynamic_flag_spec_GCJ='${wl}-E'
18624
18625 # hardcode_minus_L: Not really in the search PATH,
18626 # but as the default location of the library.
18627 hardcode_minus_L_GCJ=yes
18628 ;;
18629 esac
18630 fi
18631 ;;
4988d4f9 18632
542f9784 18633 irix5* | irix6* | nonstopux*)
18634 if test "$GCC" = yes; then
e6408286 18635 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'
542f9784 18636 # Try to use the -exported_symbol ld option, if it does not
18637 # work, assume that -exports_file does not work either and
18638 # implicitly export all symbols.
18639 save_LDFLAGS="$LDFLAGS"
18640 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18641 if test x$gcc_no_link = xyes; then
cd9a469c 18642 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2c60951b 18643fi
cd9a469c 18644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18645/* end confdefs.h. */
542f9784 18646int foo(void) {}
18647_ACEOF
cd9a469c 18648if ac_fn_c_try_link "$LINENO"; then :
e6408286 18649 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'
2c60951b 18650
65bf3316 18651fi
cd9a469c 18652rm -f core conftest.err conftest.$ac_objext \
18653 conftest$ac_exeext conftest.$ac_ext
542f9784 18654 LDFLAGS="$save_LDFLAGS"
18655 else
e6408286 18656 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'
18657 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'
542f9784 18658 fi
18659 archive_cmds_need_lc_GCJ='no'
18660 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18661 hardcode_libdir_separator_GCJ=:
18662 inherit_rpath_GCJ=yes
18663 link_all_deplibs_GCJ=yes
18664 ;;
65bf3316 18665
542f9784 18666 netbsd*)
18667 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18668 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18669 else
18670 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18671 fi
18672 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18673 hardcode_direct_GCJ=yes
18674 hardcode_shlibpath_var_GCJ=no
18675 ;;
65bf3316 18676
542f9784 18677 newsos6)
18678 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18679 hardcode_direct_GCJ=yes
18680 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18681 hardcode_libdir_separator_GCJ=:
18682 hardcode_shlibpath_var_GCJ=no
18683 ;;
65bf3316 18684
542f9784 18685 *nto* | *qnx*)
18686 ;;
2c60951b 18687
542f9784 18688 openbsd*)
976af183 18689 if test -f /usr/libexec/ld.so; then
18690 hardcode_direct_GCJ=yes
18691 hardcode_shlibpath_var_GCJ=no
18692 hardcode_direct_absolute_GCJ=yes
18693 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
542f9784 18694 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
976af183 18695 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
542f9784 18696 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
976af183 18697 export_dynamic_flag_spec_GCJ='${wl}-E'
18698 else
18699 case $host_os in
18700 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18701 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18702 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18703 ;;
18704 *)
18705 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18706 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18707 ;;
18708 esac
18709 fi
18710 else
18711 ld_shlibs_GCJ=no
542f9784 18712 fi
18713 ;;
f5699769 18714
542f9784 18715 os2*)
18716 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18717 hardcode_minus_L_GCJ=yes
18718 allow_undefined_flag_GCJ=unsupported
e6408286 18719 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'
542f9784 18720 old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18721 ;;
e6312df0 18722
542f9784 18723 osf3*)
18724 if test "$GCC" = yes; then
18725 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
e6408286 18726 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'
542f9784 18727 else
18728 allow_undefined_flag_GCJ=' -expect_unresolved \*'
e6408286 18729 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'
542f9784 18730 fi
18731 archive_cmds_need_lc_GCJ='no'
18732 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18733 hardcode_libdir_separator_GCJ=:
18734 ;;
f5699769 18735
542f9784 18736 osf4* | osf5*) # as osf3* with the addition of -msym flag
18737 if test "$GCC" = yes; then
18738 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
e6408286 18739 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'
542f9784 18740 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18741 else
18742 allow_undefined_flag_GCJ=' -expect_unresolved \*'
e6408286 18743 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'
542f9784 18744 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~
e6408286 18745 $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'
542f9784 18746
18747 # Both c and cxx compiler support -rpath directly
18748 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18749 fi
18750 archive_cmds_need_lc_GCJ='no'
18751 hardcode_libdir_separator_GCJ=:
18752 ;;
f5699769 18753
542f9784 18754 solaris*)
18755 no_undefined_flag_GCJ=' -z defs'
18756 if test "$GCC" = yes; then
18757 wlarc='${wl}'
18758 archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18759 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18760 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18761 else
18762 case `$CC -V 2>&1` in
18763 *"Compilers 5.0"*)
18764 wlarc=''
18765 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18766 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18767 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18768 ;;
18769 *)
18770 wlarc='${wl}'
18771 archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18772 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18773 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18774 ;;
18775 esac
18776 fi
18777 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18778 hardcode_shlibpath_var_GCJ=no
18779 case $host_os in
18780 solaris2.[0-5] | solaris2.[0-5].*) ;;
18781 *)
18782 # The compiler driver will combine and reorder linker options,
18783 # but understands `-z linker_flag'. GCC discards it without `$wl',
18784 # but is careful enough not to reorder.
18785 # Supported since Solaris 2.6 (maybe 2.5.1?)
18786 if test "$GCC" = yes; then
18787 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18788 else
18789 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18790 fi
18791 ;;
18792 esac
18793 link_all_deplibs_GCJ=yes
18794 ;;
f5699769 18795
542f9784 18796 sunos4*)
18797 if test "x$host_vendor" = xsequent; then
18798 # Use $CC to link under sequent, because it throws in some extra .o
18799 # files that make .init and .fini sections work.
18800 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18801 else
18802 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18803 fi
18804 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18805 hardcode_direct_GCJ=yes
18806 hardcode_minus_L_GCJ=yes
18807 hardcode_shlibpath_var_GCJ=no
18808 ;;
f5699769 18809
542f9784 18810 sysv4)
18811 case $host_vendor in
18812 sni)
18813 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18814 hardcode_direct_GCJ=yes # is this really true???
18815 ;;
18816 siemens)
18817 ## LD is ld it makes a PLAMLIB
18818 ## CC just makes a GrossModule.
18819 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18820 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18821 hardcode_direct_GCJ=no
18822 ;;
18823 motorola)
18824 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18825 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18826 ;;
18827 esac
18828 runpath_var='LD_RUN_PATH'
18829 hardcode_shlibpath_var_GCJ=no
18830 ;;
f0806d8b 18831
542f9784 18832 sysv4.3*)
18833 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18834 hardcode_shlibpath_var_GCJ=no
18835 export_dynamic_flag_spec_GCJ='-Bexport'
18836 ;;
f0806d8b 18837
542f9784 18838 sysv4*MP*)
18839 if test -d /usr/nec; then
18840 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18841 hardcode_shlibpath_var_GCJ=no
18842 runpath_var=LD_RUN_PATH
18843 hardcode_runpath_var=yes
18844 ld_shlibs_GCJ=yes
18845 fi
18846 ;;
f5699769 18847
542f9784 18848 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18849 no_undefined_flag_GCJ='${wl}-z,text'
18850 archive_cmds_need_lc_GCJ=no
18851 hardcode_shlibpath_var_GCJ=no
18852 runpath_var='LD_RUN_PATH'
4618c7f0 18853
542f9784 18854 if test "$GCC" = yes; then
18855 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18856 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18857 else
18858 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18859 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18860 fi
18861 ;;
4618c7f0 18862
542f9784 18863 sysv5* | sco3.2v5* | sco5v6*)
18864 # Note: We can NOT use -z defs as we might desire, because we do not
18865 # link with -lc, and that would cause any symbols used from libc to
18866 # always be unresolved, which means just about no library would
18867 # ever link correctly. If we're not using GNU ld we use -z text
18868 # though, which does catch some bad symbols but isn't as heavy-handed
18869 # as -z defs.
18870 no_undefined_flag_GCJ='${wl}-z,text'
18871 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18872 archive_cmds_need_lc_GCJ=no
18873 hardcode_shlibpath_var_GCJ=no
18874 hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
18875 hardcode_libdir_separator_GCJ=':'
18876 link_all_deplibs_GCJ=yes
18877 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18878 runpath_var='LD_RUN_PATH'
18879
18880 if test "$GCC" = yes; then
18881 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18882 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18883 else
18884 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18885 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18886 fi
18887 ;;
4618c7f0 18888
542f9784 18889 uts4*)
18890 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18891 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18892 hardcode_shlibpath_var_GCJ=no
18893 ;;
0a2485f3 18894
542f9784 18895 *)
18896 ld_shlibs_GCJ=no
18897 ;;
18898 esac
ed98dfd0 18899
542f9784 18900 if test x$host_vendor = xsni; then
18901 case $host in
18902 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18903 export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
18904 ;;
18905 esac
18906 fi
18907 fi
ed98dfd0 18908
cd9a469c 18909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
18910$as_echo "$ld_shlibs_GCJ" >&6; }
542f9784 18911test "$ld_shlibs_GCJ" = no && can_build_shared=no
ed98dfd0 18912
542f9784 18913with_gnu_ld_GCJ=$with_gnu_ld
ed98dfd0 18914
18915
542f9784 18916
18917
18918
18919
18920#
18921# Do we need to explicitly link libc?
18922#
18923case "x$archive_cmds_need_lc_GCJ" in
18924x|xyes)
18925 # Assume -lc should be added
18926 archive_cmds_need_lc_GCJ=yes
18927
18928 if test "$enable_shared" = yes && test "$GCC" = yes; then
18929 case $archive_cmds_GCJ in
18930 *'~'*)
18931 # FIXME: we may have to deal with multi-command sequences.
18932 ;;
18933 '$CC '*)
18934 # Test whether the compiler implicitly links with -lc since on some
18935 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18936 # to ld, don't add -lc before -lgcc.
cd9a469c 18937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18938$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18939if test "${lt_cv_archive_cmds_need_lc_GCJ+set}" = set; then :
18940 $as_echo_n "(cached) " >&6
9e6fd619 18941else
18942 $RM conftest*
18943 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
542f9784 18944
cd9a469c 18945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 18946 (eval $ac_compile) 2>&5
18947 ac_status=$?
cd9a469c 18948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18949 test $ac_status = 0; } 2>conftest.err; then
9e6fd619 18950 soname=conftest
18951 lib=conftest
18952 libobjs=conftest.$ac_objext
18953 deplibs=
18954 wl=$lt_prog_compiler_wl_GCJ
18955 pic_flag=$lt_prog_compiler_pic_GCJ
18956 compiler_flags=-v
18957 linker_flags=-v
18958 verstring=
18959 output_objdir=.
18960 libname=conftest
18961 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18962 allow_undefined_flag_GCJ=
cd9a469c 18963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
542f9784 18964 (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18965 ac_status=$?
cd9a469c 18966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18967 test $ac_status = 0; }
9e6fd619 18968 then
18969 lt_cv_archive_cmds_need_lc_GCJ=no
18970 else
18971 lt_cv_archive_cmds_need_lc_GCJ=yes
18972 fi
18973 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18974 else
18975 cat conftest.err 1>&5
18976 fi
18977 $RM conftest*
18978
18979fi
cd9a469c 18980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GCJ" >&5
18981$as_echo "$lt_cv_archive_cmds_need_lc_GCJ" >&6; }
9e6fd619 18982 archive_cmds_need_lc_GCJ=$lt_cv_archive_cmds_need_lc_GCJ
542f9784 18983 ;;
18984 esac
18985 fi
18986 ;;
976af183 18987esac
18988
18989
18990
18991
18992
18993
18994
4618c7f0 18995
4618c7f0 18996
4618c7f0 18997
4618c7f0 18998
4618c7f0 18999
e2d342df 19000
4618c7f0 19001
e2d342df 19002
e2d342df 19003
e2d342df 19004
19005
19006
19007
766714ce 19008
766714ce 19009
a4fe931d 19010
766714ce 19011
19012
542f9784 19013
542f9784 19014
542f9784 19015
e2d342df 19016
e7e0af0e 19017
30f7243e 19018
e7e0af0e 19019
e7e0af0e 19020
542f9784 19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051
cd9a469c 19052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19053$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
542f9784 19054hardcode_action_GCJ=
19055if test -n "$hardcode_libdir_flag_spec_GCJ" ||
19056 test -n "$runpath_var_GCJ" ||
19057 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19058
19059 # We can hardcode non-existent directories.
19060 if test "$hardcode_direct_GCJ" != no &&
19061 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19062 # have to relink, otherwise we might link with an installed library
19063 # when we should be linking with a yet-to-be-installed one
19064 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19065 test "$hardcode_minus_L_GCJ" != no; then
19066 # Linking always hardcodes the temporary library directory.
19067 hardcode_action_GCJ=relink
19068 else
19069 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19070 hardcode_action_GCJ=immediate
19071 fi
e7e0af0e 19072else
542f9784 19073 # We cannot hardcode anything, or else we can only hardcode existing
19074 # directories.
19075 hardcode_action_GCJ=unsupported
19076fi
cd9a469c 19077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
19078$as_echo "$hardcode_action_GCJ" >&6; }
e7e0af0e 19079
542f9784 19080if test "$hardcode_action_GCJ" = relink ||
19081 test "$inherit_rpath_GCJ" = yes; then
19082 # Fast installation is not supported
19083 enable_fast_install=no
19084elif test "$shlibpath_overrides_runpath" = yes ||
19085 test "$enable_shared" = no; then
19086 # Fast installation is not necessary
19087 enable_fast_install=needless
157df58c 19088fi
e7e0af0e 19089
542f9784 19090
19091
19092
19093
19094
19095
e7e0af0e 19096fi
e7e0af0e 19097
796f6ddf 19098compiler_GCJ=${GCJ-gcj}
542f9784 19099ac_ext=c
19100ac_cpp='$CPP $CPPFLAGS'
19101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19103ac_compiler_gnu=$ac_cv_c_compiler_gnu
19104
53973c81 19105
542f9784 19106if test "x$CC" != xcc; then
cd9a469c 19107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
19108$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
542f9784 19109else
cd9a469c 19110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
19111$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
542f9784 19112fi
cd9a469c 19113set dummy $CC; ac_cc=`$as_echo "$2" |
542f9784 19114 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cd9a469c 19115if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
19116 $as_echo_n "(cached) " >&6
e7e0af0e 19117else
cd9a469c 19118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 19119/* end confdefs.h. */
19120
19121int
19122main ()
19123{
19124
19125 ;
19126 return 0;
19127}
72a430e4 19128_ACEOF
542f9784 19129# Make sure it works both with $CC and with simple cc.
19130# We do the test twice because some compilers refuse to overwrite an
19131# existing .o file with -o, though they will create one.
cd9a469c 19132ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19133rm -f conftest2.*
19134if { { case "(($ac_try" in
19135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19136 *) ac_try_echo=$ac_try;;
19137esac
19138eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19139$as_echo "$ac_try_echo"; } >&5
19140 (eval "$ac_try") 2>&5
19141 ac_status=$?
19142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19143 test $ac_status = 0; } &&
19144 test -f conftest2.$ac_objext && { { case "(($ac_try" in
19145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19146 *) ac_try_echo=$ac_try;;
19147esac
19148eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19149$as_echo "$ac_try_echo"; } >&5
19150 (eval "$ac_try") 2>&5
72a430e4 19151 ac_status=$?
cd9a469c 19152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19153 test $ac_status = 0; };
542f9784 19154then
19155 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
19156 if test "x$CC" != xcc; then
19157 # Test first that cc exists at all.
19158 if { ac_try='cc -c conftest.$ac_ext >&5'
cd9a469c 19159 { { 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; }; }; then
19169 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19170 rm -f conftest2.*
19171 if { { case "(($ac_try" in
19172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19173 *) ac_try_echo=$ac_try;;
19174esac
19175eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19176$as_echo "$ac_try_echo"; } >&5
19177 (eval "$ac_try") 2>&5
19178 ac_status=$?
19179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19180 test $ac_status = 0; } &&
19181 test -f conftest2.$ac_objext && { { case "(($ac_try" in
19182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19183 *) ac_try_echo=$ac_try;;
19184esac
19185eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19186$as_echo "$ac_try_echo"; } >&5
19187 (eval "$ac_try") 2>&5
e7e0af0e 19188 ac_status=$?
cd9a469c 19189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19190 test $ac_status = 0; };
542f9784 19191 then
19192 # cc works too.
19193 :
19194 else
19195 # cc exists but doesn't like -o.
19196 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19197 fi
19198 fi
19199 fi
e7e0af0e 19200else
542f9784 19201 eval ac_cv_prog_cc_${ac_cc}_c_o=no
e7e0af0e 19202fi
cd9a469c 19203rm -f core conftest*
72a430e4 19204
53973c81 19205fi
cd9a469c 19206if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19208$as_echo "yes" >&6; }
53973c81 19209else
cd9a469c 19210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19211$as_echo "no" >&6; }
53973c81 19212
cd9a469c 19213$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
53973c81 19214
53973c81 19215fi
e7e0af0e 19216
542f9784 19217# FIXME: we rely on the cache variable name because
19218# there is no other way.
19219set dummy $CC
cd9a469c 19220am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19221eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
19222if test "$am_t" != yes; then
542f9784 19223 # Losing compiler, so override with the script.
19224 # FIXME: It is wrong to rewrite CC.
19225 # But if we don't then we get into trouble of one sort or another.
19226 # A longer-term fix would be to have automake use am__CC in this case,
19227 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19228 CC="$am_aux_dir/compile $CC"
e7e0af0e 19229fi
e7e0af0e 19230
e7e0af0e 19231
766714ce 19232
af6b9618 19233
cd9a469c 19234
542f9784 19235subdirs="$subdirs classpath libltdl"
af6b9618 19236
19237
542f9784 19238# The -no-testsuite modules omit the test subdir.
cd9a469c 19239 if test -d $srcdir/testsuite; then
542f9784 19240 TESTSUBDIR_TRUE=
19241 TESTSUBDIR_FALSE='#'
af6b9618 19242else
542f9784 19243 TESTSUBDIR_TRUE='#'
19244 TESTSUBDIR_FALSE=
af6b9618 19245fi
af6b9618 19246
af6b9618 19247
542f9784 19248# Should the runtime set system properties by examining the
19249# environment variable GCJ_PROPERTIES?
cd9a469c 19250# Check whether --enable-getenv-properties was given.
19251if test "${enable_getenv_properties+set}" = set; then :
19252 enableval=$enable_getenv_properties;
19253fi
542f9784 19254
542f9784 19255
19256# Whether GCJ_PROPERTIES is used depends on the target.
19257if test -z "$enable_getenv_properties"; then
19258 enable_getenv_properties=${enable_getenv_properties_default-yes}
19259fi
19260if test "$enable_getenv_properties" = no; then
af6b9618 19261
cd9a469c 19262$as_echo "#define DISABLE_GETENV_PROPERTIES 1" >>confdefs.h
af6b9618 19263
542f9784 19264fi
af6b9618 19265
542f9784 19266# Whether we should use arguments to main()
19267if test -z "$enable_main_args"; then
19268 enable_main_args=${enable_main_args_default-yes}
e363a78f 19269fi
542f9784 19270if test "$enable_main_args" = no; then
e363a78f 19271
cd9a469c 19272$as_echo "#define DISABLE_MAIN_ARGS 1" >>confdefs.h
e363a78f 19273
19274fi
e363a78f 19275
542f9784 19276
19277# Should we use hashtable-based synchronization?
19278# Currently works only for Linux X86/ia64
19279# Typically faster and more space-efficient
cd9a469c 19280# Check whether --enable-hash-synchronization was given.
19281if test "${enable_hash_synchronization+set}" = set; then :
19282 enableval=$enable_hash_synchronization;
19283fi
542f9784 19284
542f9784 19285
19286if test -z "$enable_hash_synchronization"; then
19287 enable_hash_synchronization=$enable_hash_synchronization_default
e363a78f 19288fi
e363a78f 19289
19290
542f9784 19291install_ecj_jar=no
19292ECJ_BUILD_JAR=
19293ECJ_JAR=
19294
cd9a469c 19295# Check whether --with-ecj-jar was given.
19296if test "${with_ecj_jar+set}" = set; then :
19297 withval=$with_ecj_jar; ECJ_JAR=$withval
e363a78f 19298else
542f9784 19299 if test -f $multi_basedir/ecj.jar; then
19300 ECJ_BUILD_JAR=$multi_basedir/ecj.jar
19301 ECJ_JAR='$(jardir)/ecj.jar'
19302 install_ecj_jar=yes
19303 fi
cd9a469c 19304fi
542f9784 19305
19306
19307
cd9a469c 19308 if test "$ECJ_JAR" != ""; then
542f9784 19309 BUILD_ECJ1_TRUE=
19310 BUILD_ECJ1_FALSE='#'
19311else
19312 BUILD_ECJ1_TRUE='#'
19313 BUILD_ECJ1_FALSE=
e363a78f 19314fi
19315
cd9a469c 19316 if test $install_ecj_jar = yes; then
542f9784 19317 INSTALL_ECJ_JAR_TRUE=
19318 INSTALL_ECJ_JAR_FALSE='#'
19319else
19320 INSTALL_ECJ_JAR_TRUE='#'
19321 INSTALL_ECJ_JAR_FALSE=
33e6be9f 19322fi
19323
19324
766714ce 19325
cd9a469c 19326# Check whether --with-java-home was given.
19327if test "${with_java_home+set}" = set; then :
19328 withval=$with_java_home; JAVA_HOME="${withval}"
542f9784 19329else
19330 JAVA_HOME=""
cd9a469c 19331fi
4618c7f0 19332
cd9a469c 19333 if test ! -z "$JAVA_HOME"; then
542f9784 19334 JAVA_HOME_SET_TRUE=
19335 JAVA_HOME_SET_FALSE='#'
19336else
19337 JAVA_HOME_SET_TRUE='#'
19338 JAVA_HOME_SET_FALSE=
19339fi
4618c7f0 19340
19341
63a06cfe 19342
c9b39a1e 19343suppress_libgcj_bc=no
cd9a469c 19344# Check whether --enable-libgcj-bc was given.
19345if test "${enable_libgcj_bc+set}" = set; then :
19346 enableval=$enable_libgcj_bc; if test "$enable_libgcj_bc" = "no"; then
c9b39a1e 19347 suppress_libgcj_bc=yes
19348 fi
cd9a469c 19349fi
c9b39a1e 19350
cd9a469c 19351 if test "$suppress_libgcj_bc" = "yes"; then
c9b39a1e 19352 SUPPRESS_LIBGCJ_BC_TRUE=
19353 SUPPRESS_LIBGCJ_BC_FALSE='#'
19354else
19355 SUPPRESS_LIBGCJ_BC_TRUE='#'
19356 SUPPRESS_LIBGCJ_BC_FALSE=
19357fi
19358
19359
d279db8d 19360build_libgcj_reduced_reflection=no
cd9a469c 19361# Check whether --enable-reduced-reflection was given.
19362if test "${enable_reduced_reflection+set}" = set; then :
19363 enableval=$enable_reduced_reflection; if test "$enable_reduced_reflection" = "yes"; then
d279db8d 19364 build_libgcj_reduced_reflection=yes
19365 fi
cd9a469c 19366fi
d279db8d 19367
cd9a469c 19368 if test "$build_libgcj_reduced_reflection" = "yes"; then
d279db8d 19369 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
19370 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
19371else
19372 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
19373 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
19374fi
19375
19376
542f9784 19377# What is the native OS API for MinGW?
63a06cfe 19378
cd9a469c 19379# Check whether --with-win32-nlsapi was given.
19380if test "${with_win32_nlsapi+set}" = set; then :
19381 withval=$with_win32_nlsapi; case "${withval}" in
542f9784 19382 ansi) with_win32_nlsapi=ansi ;;
19383 unicows) with_win32_nlsapi=unicows ;;
19384 unicode) with_win32_nlsapi=unicode ;;
cd9a469c 19385 *) as_fn_error "Bad value ${withval} for --with-win32-nlsapi." "$LINENO" 5 ;;
542f9784 19386esac
19387else
19388 with_win32_nlsapi=ansi
cd9a469c 19389fi
19390
062bd84a 19391
542f9784 19392case "${with_win32_nlsapi}" in
19393 unicows | unicode)
062bd84a 19394
cd9a469c 19395$as_echo "#define MINGW_LIBGCJ_UNICODE 1" >>confdefs.h
062bd84a 19396
542f9784 19397 ;;
19398esac
062bd84a 19399
542f9784 19400# configure.host sets slow_pthread_self if the synchronization code should
19401# try to avoid pthread_self calls by caching thread IDs in a hashtable.
19402if test "${slow_pthread_self}" = "yes"; then
4618c7f0 19403
cd9a469c 19404$as_echo "#define SLOW_PTHREAD_SELF 1" >>confdefs.h
4618c7f0 19405
4618c7f0 19406fi
4618c7f0 19407
542f9784 19408# Check for gc debugging. This option is handled both here and in the GC.
cd9a469c 19409# Check whether --enable-gc-debug was given.
19410if test "${enable_gc_debug+set}" = set; then :
19411 enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then
4618c7f0 19412
cd9a469c 19413$as_echo "#define LIBGCJ_GC_DEBUG 1" >>confdefs.h
30f7243e 19414
542f9784 19415 fi
cd9a469c 19416fi
19417
4618c7f0 19418
542f9784 19419# See if the user has the interpreter included.
cd9a469c 19420# Check whether --enable-interpreter was given.
19421if test "${enable_interpreter+set}" = set; then :
19422 enableval=$enable_interpreter; if test "$enable_interpreter" = yes; then
542f9784 19423 # This can also be set in configure.host.
19424 libgcj_interpreter=yes
19425 elif test "$enable_interpreter" = no; then
19426 libgcj_interpreter=no
19427 fi
cd9a469c 19428fi
19429
4618c7f0 19430
542f9784 19431if test "$libgcj_interpreter" = yes; then
4618c7f0 19432
cd9a469c 19433$as_echo "#define INTERPRETER 1" >>confdefs.h
4618c7f0 19434
65bf3316 19435fi
542f9784 19436INTERPRETER="$libgcj_interpreter"
19437
cd9a469c 19438 if test "$libgcj_interpreter" = yes; then
6e29f747 19439 INTERPRETER_TRUE=
19440 INTERPRETER_FALSE='#'
19441else
19442 INTERPRETER_TRUE='#'
19443 INTERPRETER_FALSE=
19444fi
19445
19446
cd9a469c 19447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception model to use" >&5
19448$as_echo_n "checking for exception model to use... " >&6; }
19449ac_ext=cpp
542f9784 19450ac_cpp='$CXXCPP $CPPFLAGS'
19451ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19452ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19453ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19454
cd9a469c 19455# Check whether --enable-sjlj-exceptions was given.
19456if test "${enable_sjlj_exceptions+set}" = set; then :
19457 enableval=$enable_sjlj_exceptions; :
542f9784 19458else
19459 cat > conftest.$ac_ext << EOF
5641963c 19460#line 19460 "configure"
542f9784 19461struct S { ~S(); };
19462void bar();
19463void foo()
19464{
19465 S s;
19466 bar();
19467}
19468EOF
19469old_CXXFLAGS="$CXXFLAGS"
19470CXXFLAGS=-S
cd9a469c 19471if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 19472 (eval $ac_compile) 2>&5
19473 ac_status=$?
cd9a469c 19474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19475 test $ac_status = 0; }; then
542f9784 19476 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
19477 enable_sjlj_exceptions=yes
19478 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
19479 enable_sjlj_exceptions=no
3ce8cd5b 19480 elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
19481 # ARM EH ABI.
19482 enable_sjlj_exceptions=no
542f9784 19483 fi
e6312df0 19484fi
542f9784 19485CXXFLAGS="$old_CXXFLAGS"
19486rm -f conftest*
cd9a469c 19487fi
19488
542f9784 19489if test x$enable_sjlj_exceptions = xyes; then
19490
cd9a469c 19491$as_echo "#define SJLJ_EXCEPTIONS 1" >>confdefs.h
542f9784 19492
19493 ac_exception_model_name=sjlj
19494elif test x$enable_sjlj_exceptions = xno; then
19495 ac_exception_model_name="call frame"
19496else
cd9a469c 19497 as_fn_error "unable to detect exception model" "$LINENO" 5
e6312df0 19498fi
542f9784 19499ac_ext=c
19500ac_cpp='$CPP $CPPFLAGS'
19501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19503ac_compiler_gnu=$ac_cv_c_compiler_gnu
19504
cd9a469c 19505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception_model_name" >&5
19506$as_echo "$ac_exception_model_name" >&6; }
542f9784 19507
19508# If we are non using SJLJ exceptions, and this host does not have support
19509# for unwinding from a signal handler, enable checked dereferences and divides.
19510if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
19511 CHECKREFSPEC=-fcheck-references
19512 DIVIDESPEC=-fuse-divide-subroutine
19513 EXCEPTIONSPEC=
e6312df0 19514fi
542f9784 19515
19516# See if the user wants to disable java.net. This is the mildly
19517# ugly way that we admit that target-side configuration sucks.
cd9a469c 19518# Check whether --enable-java-net was given.
19519if test "${enable_java_net+set}" = set; then :
19520 enableval=$enable_java_net;
19521fi
542f9784 19522
542f9784 19523
19524# Whether java.net is built by default can depend on the target.
19525if test -z "$enable_java_net"; then
19526 enable_java_net=${enable_java_net_default-yes}
e6312df0 19527fi
542f9784 19528if test "$enable_java_net" = no; then
19529
cd9a469c 19530$as_echo "#define DISABLE_JAVA_NET 1" >>confdefs.h
542f9784 19531
a63c2657 19532fi
542f9784 19533
19534# See if the user wants to configure without libffi. Some
19535# architectures don't support it, and default values are set in
19536# configure.host.
19537
cd9a469c 19538# Check whether --with-libffi was given.
19539if test "${with_libffi+set}" = set; then :
19540 withval=$with_libffi; :
542f9784 19541else
19542 with_libffi=${with_libffi_default-yes}
cd9a469c 19543fi
19544
542f9784 19545
19546LIBFFI=
19547LIBFFIINCS=
19548if test "$with_libffi" != no; then
19549
cd9a469c 19550$as_echo "#define USE_LIBFFI 1" >>confdefs.h
542f9784 19551
19552 LIBFFI=../libffi/libffi_convenience.la
19553 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
65bf3316 19554fi
542f9784 19555
19556
19557
19558# See if the user wants to disable JVMPI support.
cd9a469c 19559# Check whether --enable-jvmpi was given.
19560if test "${enable_jvmpi+set}" = set; then :
19561 enableval=$enable_jvmpi;
19562fi
542f9784 19563
542f9784 19564
19565if test "$enable_jvmpi" != no; then
19566
cd9a469c 19567$as_echo "#define ENABLE_JVMPI 1" >>confdefs.h
542f9784 19568
e6312df0 19569fi
542f9784 19570
19571# If the target is an eCos system, use the appropriate eCos
19572# I/O routines.
19573# FIXME: this should not be a local option but a global target
19574# system; at present there is no eCos target.
19575TARGET_ECOS=${PROCESS-"no"}
19576
cd9a469c 19577# Check whether --with-ecos was given.
19578if test "${with_ecos+set}" = set; then :
19579 withval=$with_ecos; TARGET_ECOS="$with_ecos"
19580
19581fi
542f9784 19582
542f9784 19583
19584case "$TARGET_ECOS" in
19585 no) case "$host" in
19586 *mingw*)
19587 PLATFORM=Win32
19588 PLATFORMNET=Win32
19589 PLATFORMH=win32.h
19590
cd9a469c 19591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'ld' is at least 2.13" >&5
19592$as_echo_n "checking whether 'ld' is at least 2.13... " >&6; }
542f9784 19593LD_PROG=`$CC --print-prog-name=ld`
19594LD_VERSION=`$LD_PROG --version`
19595LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
19596LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
19597if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
19598 LD_OK="ok"
19599else
19600 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
19601 LD_OK="ok"
19602 fi
e6312df0 19603fi
542f9784 19604if test "x$LD_OK" != x; then
cd9a469c 19605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19606$as_echo "yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
542f9784 19607else
cd9a469c 19608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19609$as_echo "no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
19611$as_echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
542f9784 19612
cd9a469c 19613$as_echo "#define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1" >>confdefs.h
542f9784 19614
65bf3316 19615fi
542f9784 19616 ;;
19617 *)
19618 PLATFORM=Posix
19619 PLATFORMNET=Posix
19620 PLATFORMH=posix.h
19621 ;;
19622 esac
19623 ;;
19624 *)
19625 PLATFORM=Ecos
19626 PLATFORMNET=NoNet
4618c7f0 19627
cd9a469c 19628$as_echo "#define ECOS 1" >>confdefs.h
4618c7f0 19629
542f9784 19630 PLATFORMH=posix.h
19631 ;;
19632esac
4618c7f0 19633
cd9a469c 19634ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
4618c7f0 19635
4618c7f0 19636
cd9a469c 19637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 19638/* end confdefs.h. */
19639#include <stdint.h>
4618c7f0 19640
542f9784 19641_ACEOF
19642if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cd9a469c 19643 $EGREP "uint32_t" >/dev/null 2>&1; then :
4618c7f0 19644
cd9a469c 19645$as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
4618c7f0 19646
4618c7f0 19647fi
542f9784 19648rm -f conftest*
19649
cd9a469c 19650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 19651/* end confdefs.h. */
19652#include <inttypes.h>
19653
19654_ACEOF
19655if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cd9a469c 19656 $EGREP "uint32_t" >/dev/null 2>&1; then :
542f9784 19657
cd9a469c 19658$as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
4618c7f0 19659
4618c7f0 19660fi
542f9784 19661rm -f conftest*
4618c7f0 19662
cd9a469c 19663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 19664/* end confdefs.h. */
19665#include <sys/types.h>
4618c7f0 19666
542f9784 19667_ACEOF
19668if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cd9a469c 19669 $EGREP "u_int32_t" >/dev/null 2>&1; then :
4618c7f0 19670
cd9a469c 19671$as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
30f7243e 19672
542f9784 19673fi
19674rm -f conftest*
4618c7f0 19675
cd9a469c 19676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 19677/* end confdefs.h. */
19678#include <sys/config.h>
4618c7f0 19679
542f9784 19680_ACEOF
19681if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cd9a469c 19682 $EGREP "u_int32_t" >/dev/null 2>&1; then :
4618c7f0 19683
cd9a469c 19684$as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
4618c7f0 19685
542f9784 19686fi
19687rm -f conftest*
4618c7f0 19688
4618c7f0 19689
cd9a469c 19690 if test "$PLATFORM" = Win32; then
542f9784 19691 USING_WIN32_PLATFORM_TRUE=
19692 USING_WIN32_PLATFORM_FALSE='#'
4618c7f0 19693else
542f9784 19694 USING_WIN32_PLATFORM_TRUE='#'
19695 USING_WIN32_PLATFORM_FALSE=
4618c7f0 19696fi
19697
cd9a469c 19698 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
542f9784 19699 USING_POSIX_PLATFORM_TRUE=
19700 USING_POSIX_PLATFORM_FALSE='#'
4618c7f0 19701else
542f9784 19702 USING_POSIX_PLATFORM_TRUE='#'
19703 USING_POSIX_PLATFORM_FALSE=
4618c7f0 19704fi
4618c7f0 19705
542f9784 19706
19707case "$host" in
19708 *-darwin*) DARWIN_CRT=true ;;
19709 *) DARWIN_CRT=false ;;
19710esac
cd9a469c 19711 if $DARWIN_CRT; then
542f9784 19712 USING_DARWIN_CRT_TRUE=
19713 USING_DARWIN_CRT_FALSE='#'
4618c7f0 19714else
542f9784 19715 USING_DARWIN_CRT_TRUE='#'
19716 USING_DARWIN_CRT_FALSE=
4618c7f0 19717fi
19718
4618c7f0 19719
542f9784 19720# This may not be defined in a non-ANS conformant embedded system.
19721# FIXME: Should these case a runtime exception in that case?
cd9a469c 19722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 19723/* end confdefs.h. */
19724#include <time.h>
4618c7f0 19725
542f9784 19726_ACEOF
19727if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cd9a469c 19728 $EGREP "localtime" >/dev/null 2>&1; then :
4618c7f0 19729
cd9a469c 19730$as_echo "#define HAVE_LOCALTIME 1" >>confdefs.h
4618c7f0 19731
542f9784 19732fi
19733rm -f conftest*
30f7243e 19734
30f7243e 19735
542f9784 19736# Create the subdirectory for natFile.cc, or the attempt
19737# to create the link will fail.
19738test -d java || mkdir java
19739test -d java/io || mkdir java/io
19740test -d gnu || mkdir gnu
cd9a469c 19741ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
4618c7f0 19742
30f7243e 19743
542f9784 19744# Likewise for natConcreteProcess.cc.
19745test -d java/lang || mkdir java/lang
cd9a469c 19746ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
4618c7f0 19747
4618c7f0 19748
542f9784 19749# Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
19750test -d java/net || mkdir java/net
cd9a469c 19751ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
4618c7f0 19752
cd9a469c 19753ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
4618c7f0 19754
30f7243e 19755
542f9784 19756# Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
19757test -d gnu/java || mkdir gnu/java
19758test -d gnu/java/net || mkdir gnu/java/net
cd9a469c 19759ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
30f7243e 19760
cd9a469c 19761ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
4618c7f0 19762
30f7243e 19763
542f9784 19764# Likewise for natVMPipe.cc and natVMSelector.cc.
19765test -d gnu/java/nio || mkdir gnu/java/nio
cd9a469c 19766ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
4618c7f0 19767
cd9a469c 19768ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
4618c7f0 19769
4618c7f0 19770
542f9784 19771# Likewise for natFileChannelImpl.cc
19772test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
cd9a469c 19773ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
4618c7f0 19774
2c60951b 19775
1d2454e0 19776# Likewise for natVMSecureRandom.cc
5ddd04d5 19777test -d gnu/java/security || mkdir gnu/java/security
19778test -d gnu/java/security/jce || mkdir gnu/java/security/jce
1d2454e0 19779test -d gnu/java/security/jce/prng || mkdir gnu/java/security/jce/prng
cd9a469c 19780ac_config_links="$ac_config_links gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc"
1d2454e0 19781
19782
542f9784 19783case "${host}" in
19784 *mingw*)
19785 SYSTEMSPEC="-lgdi32 -lws2_32"
19786 if test "${with_win32_nlsapi}" = "unicows"; then
19787 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
19788 fi
19789 ;;
d4b8abac 19790 *-*-darwin[912]*)
9f635d99 19791 SYSTEMSPEC="%{!Zdynamiclib:%{!Zbundle:-allow_stack_execute}}"
163052a2 19792 ;;
542f9784 19793 *)
19794 SYSTEMSPEC=
19795 ;;
19796esac
2c60951b 19797
48e89162 19798
4618c7f0 19799
cd9a469c 19800# Check whether --with-system-zlib was given.
19801if test "${with_system_zlib+set}" = set; then :
19802 withval=$with_system_zlib;
19803fi
2c60951b 19804
542f9784 19805ZLIBSPEC=
2c60951b 19806
542f9784 19807ZLIBTESTSPEC=
2c60951b 19808
2c60951b 19809
cd9a469c 19810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19811$as_echo_n "checking for X... " >&6; }
2c60951b 19812
2c60951b 19813
cd9a469c 19814# Check whether --with-x was given.
19815if test "${with_x+set}" = set; then :
19816 withval=$with_x;
19817fi
2c60951b 19818
542f9784 19819# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19820if test "x$with_x" = xno; then
19821 # The user explicitly disabled X.
19822 have_x=disabled
19823else
cd9a469c 19824 case $x_includes,$x_libraries in #(
19825 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
19826 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
19827 $as_echo_n "(cached) " >&6
542f9784 19828else
19829 # One or both of the vars are not set, and there is no cached value.
19830ac_x_includes=no ac_x_libraries=no
cd9a469c 19831rm -f -r conftest.dir
542f9784 19832if mkdir conftest.dir; then
19833 cd conftest.dir
542f9784 19834 cat >Imakefile <<'_ACEOF'
cd9a469c 19835incroot:
19836 @echo incroot='${INCROOT}'
19837usrlibdir:
19838 @echo usrlibdir='${USRLIBDIR}'
19839libdir:
19840 @echo libdir='${LIBDIR}'
19841_ACEOF
19842 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
542f9784 19843 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
cd9a469c 19844 for ac_var in incroot usrlibdir libdir; do
19845 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19846 done
542f9784 19847 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
cd9a469c 19848 for ac_extension in a so sl dylib la dll; do
19849 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19850 test -f "$ac_im_libdir/libX11.$ac_extension"; then
542f9784 19851 ac_im_usrlibdir=$ac_im_libdir; break
19852 fi
19853 done
19854 # Screen out bogus values from the imake configuration. They are
19855 # bogus both because they are the default anyway, and because
19856 # using them would break gcc on systems where it needs fixed includes.
19857 case $ac_im_incroot in
cd9a469c 19858 /usr/include) ac_x_includes= ;;
542f9784 19859 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19860 esac
19861 case $ac_im_usrlibdir in
cd9a469c 19862 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
542f9784 19863 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19864 esac
19865 fi
19866 cd ..
cd9a469c 19867 rm -f -r conftest.dir
4618c7f0 19868fi
19869
542f9784 19870# Standard set of common directories for X headers.
19871# Check X11 before X11Rn because it is often a symlink to the current release.
19872ac_x_header_dirs='
19873/usr/X11/include
cd9a469c 19874/usr/X11R7/include
542f9784 19875/usr/X11R6/include
19876/usr/X11R5/include
19877/usr/X11R4/include
30f7243e 19878
542f9784 19879/usr/include/X11
cd9a469c 19880/usr/include/X11R7
542f9784 19881/usr/include/X11R6
19882/usr/include/X11R5
19883/usr/include/X11R4
bdbb27ba 19884
542f9784 19885/usr/local/X11/include
cd9a469c 19886/usr/local/X11R7/include
542f9784 19887/usr/local/X11R6/include
19888/usr/local/X11R5/include
19889/usr/local/X11R4/include
4618c7f0 19890
542f9784 19891/usr/local/include/X11
cd9a469c 19892/usr/local/include/X11R7
542f9784 19893/usr/local/include/X11R6
19894/usr/local/include/X11R5
19895/usr/local/include/X11R4
4618c7f0 19896
542f9784 19897/usr/X386/include
19898/usr/x386/include
19899/usr/XFree86/include/X11
4618c7f0 19900
542f9784 19901/usr/include
19902/usr/local/include
19903/usr/unsupported/include
19904/usr/athena/include
19905/usr/local/x11r5/include
19906/usr/lpp/Xamples/include
63a06cfe 19907
542f9784 19908/usr/openwin/include
19909/usr/openwin/share/include'
30f7243e 19910
542f9784 19911if test "$ac_x_includes" = no; then
cd9a469c 19912 # Guess where to find include files, by looking for Xlib.h.
542f9784 19913 # First, try using that file with no special directory specified.
cd9a469c 19914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 19915/* end confdefs.h. */
cd9a469c 19916#include <X11/Xlib.h>
542f9784 19917_ACEOF
cd9a469c 19918if ac_fn_c_try_cpp "$LINENO"; then :
542f9784 19919 # We can compile using X headers with no special include directory.
19920ac_x_includes=
19921else
542f9784 19922 for ac_dir in $ac_x_header_dirs; do
cd9a469c 19923 if test -r "$ac_dir/X11/Xlib.h"; then
542f9784 19924 ac_x_includes=$ac_dir
19925 break
19926 fi
19927done
4618c7f0 19928fi
542f9784 19929rm -f conftest.err conftest.$ac_ext
19930fi # $ac_x_includes = no
4618c7f0 19931
542f9784 19932if test "$ac_x_libraries" = no; then
19933 # Check for the libraries.
19934 # See if we find them without any special options.
19935 # Don't add to $LIBS permanently.
19936 ac_save_LIBS=$LIBS
cd9a469c 19937 LIBS="-lX11 $LIBS"
542f9784 19938 if test x$gcc_no_link = xyes; then
cd9a469c 19939 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 19940fi
cd9a469c 19941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 19942/* end confdefs.h. */
cd9a469c 19943#include <X11/Xlib.h>
542f9784 19944int
19945main ()
4618c7f0 19946{
cd9a469c 19947XrmInitialize ()
542f9784 19948 ;
19949 return 0;
4618c7f0 19950}
542f9784 19951_ACEOF
cd9a469c 19952if ac_fn_c_try_link "$LINENO"; then :
542f9784 19953 LIBS=$ac_save_LIBS
19954# We can link X programs with no special library path.
19955ac_x_libraries=
19956else
cd9a469c 19957 LIBS=$ac_save_LIBS
19958for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
542f9784 19959do
19960 # Don't even attempt the hair of trying to link an X program!
cd9a469c 19961 for ac_extension in a so sl dylib la dll; do
19962 if test -r "$ac_dir/libX11.$ac_extension"; then
542f9784 19963 ac_x_libraries=$ac_dir
19964 break 2
19965 fi
19966 done
19967done
19968fi
cd9a469c 19969rm -f core conftest.err conftest.$ac_objext \
19970 conftest$ac_exeext conftest.$ac_ext
542f9784 19971fi # $ac_x_libraries = no
2c60951b 19972
cd9a469c 19973case $ac_x_includes,$ac_x_libraries in #(
19974 no,* | *,no | *\'*)
19975 # Didn't find X, or a directory has "'" in its name.
19976 ac_cv_have_x="have_x=no";; #(
19977 *)
19978 # Record where we found X for the cache.
19979 ac_cv_have_x="have_x=yes\
19980 ac_x_includes='$ac_x_includes'\
19981 ac_x_libraries='$ac_x_libraries'"
19982esac
542f9784 19983fi
cd9a469c 19984;; #(
19985 *) have_x=yes;;
19986 esac
542f9784 19987 eval "$ac_cv_have_x"
19988fi # $with_x != no
19989
19990if test "$have_x" != yes; then
cd9a469c 19991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19992$as_echo "$have_x" >&6; }
542f9784 19993 no_x=yes
19994else
19995 # If each of the values was on the command line, it overrides each guess.
19996 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19997 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19998 # Update the cache value to reflect the command line values.
cd9a469c 19999 ac_cv_have_x="have_x=yes\
20000 ac_x_includes='$x_includes'\
20001 ac_x_libraries='$x_libraries'"
20002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
20003$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
542f9784 20004fi
20005
20006if test "$no_x" = yes; then
20007 # Not all programs may use this symbol, but it does not hurt to define it.
2c60951b 20008
cd9a469c 20009$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
30f7243e 20010
542f9784 20011 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20012else
20013 if test -n "$x_includes"; then
20014 X_CFLAGS="$X_CFLAGS -I$x_includes"
20015 fi
30f7243e 20016
542f9784 20017 # It would also be nice to do this for all -L options, not just this one.
20018 if test -n "$x_libraries"; then
20019 X_LIBS="$X_LIBS -L$x_libraries"
20020 # For Solaris; some versions of Sun CC require a space after -R and
20021 # others require no space. Words are not sufficient . . . .
cd9a469c 20022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
20023$as_echo_n "checking whether -R must be followed by a space... " >&6; }
20024 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20025 ac_xsave_c_werror_flag=$ac_c_werror_flag
20026 ac_c_werror_flag=yes
20027 if test x$gcc_no_link = xyes; then
20028 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 20029fi
cd9a469c 20030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 20031/* end confdefs.h. */
4618c7f0 20032
542f9784 20033int
20034main ()
20035{
20036
20037 ;
20038 return 0;
20039}
20040_ACEOF
cd9a469c 20041if ac_fn_c_try_link "$LINENO"; then :
20042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20043$as_echo "no" >&6; }
20044 X_LIBS="$X_LIBS -R$x_libraries"
542f9784 20045else
cd9a469c 20046 LIBS="$ac_xsave_LIBS -R $x_libraries"
20047 if test x$gcc_no_link = xyes; then
20048 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 20049fi
cd9a469c 20050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 20051/* end confdefs.h. */
20052
20053int
20054main ()
20055{
20056
20057 ;
20058 return 0;
20059}
20060_ACEOF
cd9a469c 20061if ac_fn_c_try_link "$LINENO"; then :
20062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20063$as_echo "yes" >&6; }
20064 X_LIBS="$X_LIBS -R $x_libraries"
542f9784 20065else
cd9a469c 20066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
20067$as_echo "neither works" >&6; }
542f9784 20068fi
cd9a469c 20069rm -f core conftest.err conftest.$ac_objext \
20070 conftest$ac_exeext conftest.$ac_ext
20071fi
20072rm -f core conftest.err conftest.$ac_objext \
20073 conftest$ac_exeext conftest.$ac_ext
20074 ac_c_werror_flag=$ac_xsave_c_werror_flag
20075 LIBS=$ac_xsave_LIBS
542f9784 20076 fi
20077
20078 # Check for system-dependent libraries X programs must link with.
20079 # Do this before checking for the system-independent R6 libraries
20080 # (-lICE), since we may need -lsocket or whatever for X linking.
20081
20082 if test "$ISC" = yes; then
20083 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20084 else
20085 # Martyn Johnson says this is needed for Ultrix, if the X
20086 # libraries were built with DECnet support. And Karl Berry says
20087 # the Alpha needs dnet_stub (dnet does not exist).
20088 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20089 if test x$gcc_no_link = xyes; then
cd9a469c 20090 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 20091fi
cd9a469c 20092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 20093/* end confdefs.h. */
20094
cd9a469c 20095/* Override any GCC internal prototype to avoid an error.
20096 Use char because int might match the return type of a GCC
20097 builtin and then its argument prototype would still apply. */
542f9784 20098#ifdef __cplusplus
20099extern "C"
20100#endif
542f9784 20101char XOpenDisplay ();
20102int
20103main ()
20104{
cd9a469c 20105return XOpenDisplay ();
542f9784 20106 ;
20107 return 0;
20108}
20109_ACEOF
cd9a469c 20110if ac_fn_c_try_link "$LINENO"; then :
542f9784 20111
cd9a469c 20112else
20113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
20114$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
20115if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
20116 $as_echo_n "(cached) " >&6
542f9784 20117else
20118 ac_check_lib_save_LIBS=$LIBS
20119LIBS="-ldnet $LIBS"
20120if test x$gcc_no_link = xyes; then
cd9a469c 20121 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 20122fi
cd9a469c 20123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 20124/* end confdefs.h. */
20125
cd9a469c 20126/* Override any GCC internal prototype to avoid an error.
20127 Use char because int might match the return type of a GCC
20128 builtin and then its argument prototype would still apply. */
542f9784 20129#ifdef __cplusplus
20130extern "C"
20131#endif
542f9784 20132char dnet_ntoa ();
20133int
20134main ()
20135{
cd9a469c 20136return dnet_ntoa ();
542f9784 20137 ;
20138 return 0;
20139}
20140_ACEOF
cd9a469c 20141if ac_fn_c_try_link "$LINENO"; then :
542f9784 20142 ac_cv_lib_dnet_dnet_ntoa=yes
20143else
cd9a469c 20144 ac_cv_lib_dnet_dnet_ntoa=no
542f9784 20145fi
cd9a469c 20146rm -f core conftest.err conftest.$ac_objext \
20147 conftest$ac_exeext conftest.$ac_ext
542f9784 20148LIBS=$ac_check_lib_save_LIBS
20149fi
cd9a469c 20150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20151$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20152if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
542f9784 20153 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20154fi
20155
20156 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cd9a469c 20157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
20158$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
20159if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
20160 $as_echo_n "(cached) " >&6
542f9784 20161else
20162 ac_check_lib_save_LIBS=$LIBS
20163LIBS="-ldnet_stub $LIBS"
20164if test x$gcc_no_link = xyes; then
cd9a469c 20165 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 20166fi
cd9a469c 20167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 20168/* end confdefs.h. */
20169
cd9a469c 20170/* Override any GCC internal prototype to avoid an error.
20171 Use char because int might match the return type of a GCC
20172 builtin and then its argument prototype would still apply. */
542f9784 20173#ifdef __cplusplus
20174extern "C"
20175#endif
542f9784 20176char dnet_ntoa ();
20177int
20178main ()
20179{
cd9a469c 20180return dnet_ntoa ();
542f9784 20181 ;
20182 return 0;
20183}
20184_ACEOF
cd9a469c 20185if ac_fn_c_try_link "$LINENO"; then :
542f9784 20186 ac_cv_lib_dnet_stub_dnet_ntoa=yes
20187else
cd9a469c 20188 ac_cv_lib_dnet_stub_dnet_ntoa=no
542f9784 20189fi
cd9a469c 20190rm -f core conftest.err conftest.$ac_objext \
20191 conftest$ac_exeext conftest.$ac_ext
542f9784 20192LIBS=$ac_check_lib_save_LIBS
20193fi
cd9a469c 20194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20195$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20196if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
542f9784 20197 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20198fi
20199
20200 fi
20201fi
cd9a469c 20202rm -f core conftest.err conftest.$ac_objext \
20203 conftest$ac_exeext conftest.$ac_ext
542f9784 20204 LIBS="$ac_xsave_LIBS"
20205
20206 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20207 # to get the SysV transport functions.
20208 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20209 # needs -lnsl.
20210 # The nsl library prevents programs from opening the X display
20211 # on Irix 5.2, according to T.E. Dickey.
20212 # The functions gethostbyname, getservbyname, and inet_addr are
20213 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cd9a469c 20214 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20215if test "x$ac_cv_func_gethostbyname" = x""yes; then :
542f9784 20216
542f9784 20217fi
542f9784 20218
20219 if test $ac_cv_func_gethostbyname = no; then
cd9a469c 20220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20221$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20222if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
20223 $as_echo_n "(cached) " >&6
542f9784 20224else
20225 ac_check_lib_save_LIBS=$LIBS
20226LIBS="-lnsl $LIBS"
20227if test x$gcc_no_link = xyes; then
cd9a469c 20228 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 20229fi
cd9a469c 20230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 20231/* end confdefs.h. */
20232
cd9a469c 20233/* Override any GCC internal prototype to avoid an error.
20234 Use char because int might match the return type of a GCC
20235 builtin and then its argument prototype would still apply. */
542f9784 20236#ifdef __cplusplus
20237extern "C"
20238#endif
542f9784 20239char gethostbyname ();
20240int
20241main ()
20242{
cd9a469c 20243return gethostbyname ();
542f9784 20244 ;
20245 return 0;
20246}
20247_ACEOF
cd9a469c 20248if ac_fn_c_try_link "$LINENO"; then :
542f9784 20249 ac_cv_lib_nsl_gethostbyname=yes
20250else
cd9a469c 20251 ac_cv_lib_nsl_gethostbyname=no
542f9784 20252fi
cd9a469c 20253rm -f core conftest.err conftest.$ac_objext \
20254 conftest$ac_exeext conftest.$ac_ext
542f9784 20255LIBS=$ac_check_lib_save_LIBS
20256fi
cd9a469c 20257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20258$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20259if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
542f9784 20260 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20261fi
20262
20263 if test $ac_cv_lib_nsl_gethostbyname = no; then
cd9a469c 20264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20265$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20266if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
20267 $as_echo_n "(cached) " >&6
542f9784 20268else
20269 ac_check_lib_save_LIBS=$LIBS
20270LIBS="-lbsd $LIBS"
20271if test x$gcc_no_link = xyes; then
cd9a469c 20272 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 20273fi
cd9a469c 20274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 20275/* end confdefs.h. */
20276
cd9a469c 20277/* Override any GCC internal prototype to avoid an error.
20278 Use char because int might match the return type of a GCC
20279 builtin and then its argument prototype would still apply. */
542f9784 20280#ifdef __cplusplus
20281extern "C"
20282#endif
542f9784 20283char gethostbyname ();
20284int
20285main ()
20286{
cd9a469c 20287return gethostbyname ();
542f9784 20288 ;
20289 return 0;
20290}
20291_ACEOF
cd9a469c 20292if ac_fn_c_try_link "$LINENO"; then :
542f9784 20293 ac_cv_lib_bsd_gethostbyname=yes
20294else
cd9a469c 20295 ac_cv_lib_bsd_gethostbyname=no
542f9784 20296fi
cd9a469c 20297rm -f core conftest.err conftest.$ac_objext \
20298 conftest$ac_exeext conftest.$ac_ext
542f9784 20299LIBS=$ac_check_lib_save_LIBS
20300fi
cd9a469c 20301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20302$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20303if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
542f9784 20304 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20305fi
20306
20307 fi
20308 fi
20309
20310 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20311 # socket/setsockopt and other routines are undefined under SCO ODT
20312 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20313 # on later versions), says Simon Leinen: it contains gethostby*
20314 # variants that don't use the name server (or something). -lsocket
20315 # must be given before -lnsl if both are needed. We assume that
20316 # if connect needs -lnsl, so does gethostbyname.
cd9a469c 20317 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20318if test "x$ac_cv_func_connect" = x""yes; then :
542f9784 20319
542f9784 20320fi
542f9784 20321
20322 if test $ac_cv_func_connect = no; then
cd9a469c 20323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20324$as_echo_n "checking for connect in -lsocket... " >&6; }
20325if test "${ac_cv_lib_socket_connect+set}" = set; then :
20326 $as_echo_n "(cached) " >&6
542f9784 20327else
20328 ac_check_lib_save_LIBS=$LIBS
20329LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20330if test x$gcc_no_link = xyes; then
cd9a469c 20331 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 20332fi
cd9a469c 20333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20334/* end confdefs.h. */
542f9784 20335
cd9a469c 20336/* Override any GCC internal prototype to avoid an error.
20337 Use char because int might match the return type of a GCC
542f9784 20338 builtin and then its argument prototype would still apply. */
542f9784 20339#ifdef __cplusplus
cd9a469c 20340extern "C"
542f9784 20341#endif
cd9a469c 20342char connect ();
542f9784 20343int
20344main ()
20345{
cd9a469c 20346return connect ();
542f9784 20347 ;
20348 return 0;
20349}
20350_ACEOF
cd9a469c 20351if ac_fn_c_try_link "$LINENO"; then :
20352 ac_cv_lib_socket_connect=yes
542f9784 20353else
cd9a469c 20354 ac_cv_lib_socket_connect=no
20355fi
20356rm -f core conftest.err conftest.$ac_objext \
20357 conftest$ac_exeext conftest.$ac_ext
20358LIBS=$ac_check_lib_save_LIBS
20359fi
20360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20361$as_echo "$ac_cv_lib_socket_connect" >&6; }
20362if test "x$ac_cv_lib_socket_connect" = x""yes; then :
20363 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
542f9784 20364fi
cd9a469c 20365
20366 fi
20367
20368 # Guillermo Gomez says -lposix is necessary on A/UX.
20369 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20370if test "x$ac_cv_func_remove" = x""yes; then :
20371
542f9784 20372fi
542f9784 20373
20374 if test $ac_cv_func_remove = no; then
cd9a469c 20375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20376$as_echo_n "checking for remove in -lposix... " >&6; }
20377if test "${ac_cv_lib_posix_remove+set}" = set; then :
20378 $as_echo_n "(cached) " >&6
542f9784 20379else
20380 ac_check_lib_save_LIBS=$LIBS
20381LIBS="-lposix $LIBS"
20382if test x$gcc_no_link = xyes; then
cd9a469c 20383 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 20384fi
cd9a469c 20385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 20386/* end confdefs.h. */
20387
cd9a469c 20388/* Override any GCC internal prototype to avoid an error.
20389 Use char because int might match the return type of a GCC
20390 builtin and then its argument prototype would still apply. */
542f9784 20391#ifdef __cplusplus
20392extern "C"
20393#endif
542f9784 20394char remove ();
20395int
20396main ()
20397{
cd9a469c 20398return remove ();
542f9784 20399 ;
20400 return 0;
20401}
20402_ACEOF
cd9a469c 20403if ac_fn_c_try_link "$LINENO"; then :
542f9784 20404 ac_cv_lib_posix_remove=yes
20405else
cd9a469c 20406 ac_cv_lib_posix_remove=no
542f9784 20407fi
cd9a469c 20408rm -f core conftest.err conftest.$ac_objext \
20409 conftest$ac_exeext conftest.$ac_ext
542f9784 20410LIBS=$ac_check_lib_save_LIBS
20411fi
cd9a469c 20412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20413$as_echo "$ac_cv_lib_posix_remove" >&6; }
20414if test "x$ac_cv_lib_posix_remove" = x""yes; then :
542f9784 20415 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20416fi
20417
20418 fi
20419
20420 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cd9a469c 20421 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20422if test "x$ac_cv_func_shmat" = x""yes; then :
542f9784 20423
542f9784 20424fi
542f9784 20425
20426 if test $ac_cv_func_shmat = no; then
cd9a469c 20427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20428$as_echo_n "checking for shmat in -lipc... " >&6; }
20429if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
20430 $as_echo_n "(cached) " >&6
542f9784 20431else
20432 ac_check_lib_save_LIBS=$LIBS
20433LIBS="-lipc $LIBS"
20434if test x$gcc_no_link = xyes; then
cd9a469c 20435 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 20436fi
cd9a469c 20437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 20438/* end confdefs.h. */
20439
cd9a469c 20440/* Override any GCC internal prototype to avoid an error.
20441 Use char because int might match the return type of a GCC
20442 builtin and then its argument prototype would still apply. */
542f9784 20443#ifdef __cplusplus
20444extern "C"
20445#endif
542f9784 20446char shmat ();
20447int
20448main ()
20449{
cd9a469c 20450return shmat ();
542f9784 20451 ;
20452 return 0;
20453}
20454_ACEOF
cd9a469c 20455if ac_fn_c_try_link "$LINENO"; then :
542f9784 20456 ac_cv_lib_ipc_shmat=yes
20457else
cd9a469c 20458 ac_cv_lib_ipc_shmat=no
542f9784 20459fi
cd9a469c 20460rm -f core conftest.err conftest.$ac_objext \
20461 conftest$ac_exeext conftest.$ac_ext
542f9784 20462LIBS=$ac_check_lib_save_LIBS
20463fi
cd9a469c 20464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20465$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20466if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
542f9784 20467 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20468fi
20469
20470 fi
20471 fi
20472
20473 # Check for libraries that X11R6 Xt/Xaw programs need.
20474 ac_save_LDFLAGS=$LDFLAGS
20475 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20476 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20477 # check for ICE first), but we must link in the order -lSM -lICE or
20478 # we get undefined symbols. So assume we have SM if we have ICE.
20479 # These have to be linked with before -lX11, unlike the other
20480 # libraries we check for below, so use a different variable.
20481 # John Interrante, Karl Berry
cd9a469c 20482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20483$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20484if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
20485 $as_echo_n "(cached) " >&6
542f9784 20486else
20487 ac_check_lib_save_LIBS=$LIBS
20488LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20489if test x$gcc_no_link = xyes; then
cd9a469c 20490 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 20491fi
cd9a469c 20492cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 20493/* end confdefs.h. */
20494
cd9a469c 20495/* Override any GCC internal prototype to avoid an error.
20496 Use char because int might match the return type of a GCC
20497 builtin and then its argument prototype would still apply. */
542f9784 20498#ifdef __cplusplus
20499extern "C"
20500#endif
542f9784 20501char IceConnectionNumber ();
20502int
20503main ()
20504{
cd9a469c 20505return IceConnectionNumber ();
542f9784 20506 ;
20507 return 0;
20508}
20509_ACEOF
cd9a469c 20510if ac_fn_c_try_link "$LINENO"; then :
542f9784 20511 ac_cv_lib_ICE_IceConnectionNumber=yes
20512else
cd9a469c 20513 ac_cv_lib_ICE_IceConnectionNumber=no
542f9784 20514fi
cd9a469c 20515rm -f core conftest.err conftest.$ac_objext \
20516 conftest$ac_exeext conftest.$ac_ext
542f9784 20517LIBS=$ac_check_lib_save_LIBS
20518fi
cd9a469c 20519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20520$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20521if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
542f9784 20522 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20523fi
20524
20525 LDFLAGS=$ac_save_LDFLAGS
20526
20527fi
20528
20529
20530# FIXME: this should be _libs on some hosts.
20531libsubdir=.libs
20532
fac86275 20533LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20534
20535LIBSTDCXXSPEC=
542f9784 20536# extra LD Flags which are required for targets
20537case "${host}" in
20538*-*-darwin[0-7].*)
20539 # For now we have to disable it on darwin[8-9] because it slows down
20540 # the linking phase. A possible bug in ld?
20541 # on Darwin -single_module speeds up loading of the dynamic libraries.
20542 extra_ldflags_libjava=-Wl,-single_module
20543 ;;
fac86275 20544arm*linux*eabi)
20545 # Some of the ARM unwinder code is actually in libstdc++. We
20546 # could in principle replicate it in libgcj, but it's better to
20547 # have a dependency on libstdc++.
20548 extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20549 LIBSTDCXXSPEC=-lstdc++
20550 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20551 ;;
fa280a58 20552*-*-cygwin)
20553 extra_ldflags_libjava=-liconv
20554 ;;
ed023f07 20555*-*-mingw*)
20556 extra_ldflags_libjava=-lws2_32
20557 ;;
542f9784 20558esac
20559
ea19b664 20560LIBMATHSPEC=
20561# extra LD Flags which are required for targets
20562case "${host}" in
20563*-*-darwin*)
20564 ;;
20565*)
20566 LIBMATHSPEC=-lm
20567 ;;
20568esac
20569
438fa195 20570# Check for --no-merge-exidx-entries, an ARM-specific linker option.
20571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --no-merge-exidx-entries" >&5
20572$as_echo_n "checking for --no-merge-exidx-entries... " >&6; }
20573if test "${libgcj_cv_exidx+set}" = set; then :
20574 $as_echo_n "(cached) " >&6
20575else
20576 saved_ldflags="$LDFLAGS"
20577 LDFLAGS="${LDFLAGS} -Wl,--no-merge-exidx-entries"
20578 if test x$gcc_no_link = xyes; then
20579 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20580fi
20581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20582/* end confdefs.h. */
20583int main(void){ return 0;}
20584_ACEOF
20585if ac_fn_c_try_link "$LINENO"; then :
20586 eval "libgcj_cv_exidx=yes"
20587else
20588 eval "libgcj_cv_exidx=no"
20589fi
20590rm -f core conftest.err conftest.$ac_objext \
20591 conftest$ac_exeext conftest.$ac_ext
20592 LDFLAGS="${saved_ldflags}"
20593
20594fi
20595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcj_cv_exidx" >&5
20596$as_echo "$libgcj_cv_exidx" >&6; }
20597if test "${libgcj_cv_exidx}" = "yes"; then
20598 SYSTEMSPEC="${SYSTEMSPEC} --no-merge-exidx-entries"
20599 extra_ldflags="${extra_ldflags} -Wl,--no-merge-exidx-entries"
20600fi
20601
20602
542f9784 20603
fac86275 20604
20605
20606
20607
ea19b664 20608
542f9784 20609# Allow the GC to be disabled. Can be useful when debugging.
cd9a469c 20610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for garbage collector to use" >&5
20611$as_echo_n "checking for garbage collector to use... " >&6; }
20612# Check whether --enable-java-gc was given.
20613if test "${enable_java_gc+set}" = set; then :
20614 enableval=$enable_java_gc; GC=$enableval
542f9784 20615else
20616 GC=boehm
cd9a469c 20617fi
20618
542f9784 20619GCLIBS=
20620GCINCS=
20621GCDEPS=
20622GCSPEC=
20623JC1GCSPEC=
20624GCTESTSPEC=
20625case "$GC" in
20626 boehm)
cd9a469c 20627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: boehm" >&5
20628$as_echo "boehm" >&6; }
542f9784 20629 GCLIBS=../boehm-gc/libgcjgc_convenience.la
20630 JC1GCSPEC='-fuse-boehm-gc'
20631 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20632 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20633 GCOBJS=boehm.lo
20634 GCHDR=boehm-gc.h
20635 # The POSIX thread support needs to know this.
20636
cd9a469c 20637$as_echo "#define HAVE_BOEHM_GC 1" >>confdefs.h
542f9784 20638
20639 ;;
20640 no)
cd9a469c 20641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
20642$as_echo "none" >&6; }
542f9784 20643 GCHDR=no-gc.h
20644 ;;
20645 *)
cd9a469c 20646 as_fn_error "unrecognized collector \"$GC\"" "$LINENO" 5
542f9784 20647 ;;
20648esac
20649
20650
20651
20652
20653
20654
cd9a469c 20655ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
542f9784 20656
cd9a469c 20657 if test "$GC" = boehm; then
542f9784 20658 USING_BOEHMGC_TRUE=
20659 USING_BOEHMGC_FALSE='#'
20660else
20661 USING_BOEHMGC_TRUE='#'
20662 USING_BOEHMGC_FALSE=
20663fi
20664
cd9a469c 20665 if test "$GC" = no; then
542f9784 20666 USING_NOGC_TRUE=
20667 USING_NOGC_FALSE='#'
20668else
20669 USING_NOGC_TRUE='#'
20670 USING_NOGC_FALSE=
20671fi
20672
20673
20674
cd9a469c 20675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
20676$as_echo_n "checking for thread model used by GCC... " >&6; }
542f9784 20677THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
cd9a469c 20678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
20679$as_echo "$THREADS" >&6; }
542f9784 20680
20681case "$THREADS" in
20682 no | none | single)
20683 THREADS=none
20684 ;;
fe5ef4a0 20685 aix | posix | pthreads)
542f9784 20686 THREADS=posix
20687 case "$host" in
20688 *-*-linux*)
20689
cd9a469c 20690$as_echo "#define LINUX_THREADS 1" >>confdefs.h
542f9784 20691
20692 ;;
20693 esac
20694 ;;
20695 win32)
20696 ;;
046f323e 20697 dce | vxworks)
cd9a469c 20698 as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
542f9784 20699 ;;
20700 *)
cd9a469c 20701 as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
542f9784 20702 ;;
20703esac
20704
20705THREADCXXFLAGS=
20706THREADLDFLAGS=
20707THREADLIBS=
20708THREADINCS=
20709THREADDEPS=
20710THREADH=
20711THREADSPEC=
20712THREADSTARTFILESPEC=
20713case "$THREADS" in
20714 posix)
20715 case "$host" in
20716 *-*-cygwin*)
20717 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
20718 ;;
30369aff 20719 *-*-freebsd[34].*)
542f9784 20720 # Before FreeBSD 5, it didn't have -lpthread (or any library which
20721 # merely adds pthread_* functions) but it does have a -pthread switch
20722 # which is required at link-time to select -lc_r *instead* of -lc.
20723 THREADLDFLAGS=-pthread
20724 # Don't set THREADSPEC here as might be expected since -pthread is
20725 # not processed when found within a spec file, it must come from
20726 # the command line. For now, the user must provide the -pthread
20727 # switch to link code compiled with gcj. In future, consider adding
20728 # support for weak references to pthread_* functions ala gthr.h API.
20729 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20730 ;;
20731 *-*-freebsd*)
20732 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20733 # systems which support threads and -lpthread.
20734 THREADLDFLAGS=-pthread
20735 THREADSPEC=-lpthread
20736 ;;
126b6848 20737 hppa*-hp-hpux*)
542f9784 20738 THREADCXXFLAGS=-pthread
20739 # boehm-gc needs some functions from librt, so link that too.
20740 THREADLIBS='-lpthread -lrt'
20741 THREADSPEC='-lpthread -lrt'
20742 ;;
eedcd8ac 20743 *-*-solaris2.8)
20744 # Always use alternate thread library on Solaris 8. Need libthread
20745 # for TLS support.
20746 # Need -Wl,-R to get it through libtool ...
20747 THREADLIBS='-L/usr/lib/lwp$(MULTISUBDIR) -Wl,-R -Wl,/usr/lib/lwp$(MULTISUBDIR) -lpthread -lthread'
20748 # ... while ld only accepts -R.
20749 THREADSPEC='-L/usr/lib/lwp%{m64:/64} -R/usr/lib/lwp%{m64:/64} -lpthread -lthread'
20750 ;;
20751 *-*-solaris2.9)
20752 # As on Solaris 8, need libthread for TLS support.
20753 THREADLIBS='-lpthread -lthread'
20754 THREADSPEC='-lpthread -lthread'
20755 ;;
d947fb63 20756 *-*-darwin*)
20757 # Don't set THREADLIBS or THREADSPEC as Darwin already
20758 # provides pthread via libSystem.
20759 ;;
542f9784 20760 *)
20761 THREADLIBS=-lpthread
20762 THREADSPEC=-lpthread
20763 ;;
20764 esac
20765 THREADH=posix-threads.h
20766 # MIT pthreads doesn't seem to have the mutexattr functions.
20767 # But for now we don't check for it. We just assume you aren't
20768 # using MIT pthreads.
20769
cd9a469c 20770$as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
542f9784 20771
20772
20773 # If we're using the Boehm GC, then we happen to know that it
20774 # defines _REENTRANT, so we don't bother. Eww.
20775 if test "$GC" != boehm; then
20776
cd9a469c 20777$as_echo "#define _REENTRANT 1" >>confdefs.h
542f9784 20778
20779 fi
20780
cd9a469c 20781$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
542f9784 20782
20783 ;;
20784
20785 win32)
20786 THREADH=win32-threads.h
20787 THREADCXXFLAGS=-mthreads
20788 # We need thread-safe exception handling so _CRT_MT should be set to 1.
20789 # But we do not want the executables created to be dependent on
20790 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20791 # exception handling contexts. The following kludge achieves this effect
20792 # and causes a dummy __mingwthr_key_dtor() to be linked in from
20793 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
20794 # A workaround is to explicitly use -mthreads while linking Java programs.
20795 # See PR libgcj/28263.
20796 #
20797 # FIXME: In Java we are able to detect thread death at the end of
20798 # Thread.run() so we should be able to clean up the exception handling
20799 # contexts ourselves.
3b5dc115 20800 case "$host" in
20801 *-w64-mingw*)
20802 ;;
20803 *)
20804 THREADSTARTFILESPEC='crtmt%O%s'
20805 ;;
20806 esac
542f9784 20807 ;;
542f9784 20808 none)
20809 THREADH=no-threads.h
20810 ;;
20811esac
cd9a469c 20812ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
542f9784 20813
20814
20815
20816
20817
20818
20819
20820
cd9a469c 20821 if test "$THREADS" = posix; then
542f9784 20822 USING_POSIX_THREADS_TRUE=
20823 USING_POSIX_THREADS_FALSE='#'
20824else
20825 USING_POSIX_THREADS_TRUE='#'
20826 USING_POSIX_THREADS_FALSE=
20827fi
20828
cd9a469c 20829 if test "$THREADS" = win32; then
542f9784 20830 USING_WIN32_THREADS_TRUE=
20831 USING_WIN32_THREADS_FALSE='#'
20832else
20833 USING_WIN32_THREADS_TRUE='#'
20834 USING_WIN32_THREADS_FALSE=
20835fi
20836
cd9a469c 20837 if test "$THREADS" = none; then
542f9784 20838 USING_NO_THREADS_TRUE=
20839 USING_NO_THREADS_FALSE='#'
20840else
20841 USING_NO_THREADS_TRUE='#'
20842 USING_NO_THREADS_FALSE=
20843fi
20844
1c10b9d7 20845if test "$enable_shared" != yes; then
20846 use_libgcj_bc=no
20847fi
cd9a469c 20848 if test "$use_libgcj_bc" = yes; then
542f9784 20849 USE_LIBGCJ_BC_TRUE=
20850 USE_LIBGCJ_BC_FALSE='#'
20851else
20852 USE_LIBGCJ_BC_TRUE='#'
20853 USE_LIBGCJ_BC_FALSE=
20854fi
20855
20856
20857if test -d sysdep; then true; else mkdir sysdep; fi
cd9a469c 20858ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
542f9784 20859
cd9a469c 20860ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
542f9784 20861
cd9a469c 20862ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
542f9784 20863
20864
fa280a58 20865LIBGCJ_SPEC_LGCJ=-lgcj
20866LIBGCJ_SPEC_LGCJ_BC=-lgcj_bc
20867if test x"$libgcj_spec_lgcj_override" != x ; then
20868 LIBGCJ_SPEC_LGCJ=$libgcj_spec_lgcj_override
20869fi
20870if test x"$libgcj_spec_lgcj_bc_override" != x ; then
20871 LIBGCJ_SPEC_LGCJ_BC=$libgcj_spec_lgcj_bc_override
20872fi
20873LIBGCJ_SPEC="%{s-bc-abi:} $LIBGCJ_SPEC_LGCJ"
542f9784 20874if test "$use_libgcj_bc" = yes; then
fa280a58 20875 LIBGCJ_SPEC="%{static|static-libgcj|!s-bc-abi:$LIBGCJ_SPEC_LGCJ;:$LIBGCJ_SPEC_LGCJ_BC}"
d4704182 20876 LIBGCJ_BC_SPEC="%{findirect-dispatch:-fPIC}"
542f9784 20877fi
20878
60598a3a 20879
20880
542f9784 20881HASH_SYNC_SPEC=
20882# Hash synchronization is only useful with posix threads right now.
20883if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20884 HASH_SYNC_SPEC=-fhash-synchronization
20885
cd9a469c 20886$as_echo "#define JV_HASH_SYNCHRONIZATION 1" >>confdefs.h
542f9784 20887
20888fi
20889
20890
cd9a469c 20891 if test "$GCC" = yes; then
542f9784 20892 USING_GCC_TRUE=
20893 USING_GCC_FALSE='#'
20894else
20895 USING_GCC_TRUE='#'
20896 USING_GCC_FALSE=
20897fi
20898
20899
e59be7e3 20900# We're in the tree with libgcc, and need to include some of its headers.
20901LIBGCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../libgcc'
542f9784 20902
20903if test "x${with_newlib}" = "xyes"; then
20904 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
20905 # may not work correctly, because the compiler may not be able to
20906 # link executables.
20907
20908 # We assume newlib. This lets us hard-code the functions we know
20909 # we'll have.
20910
cd9a469c 20911$as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
542f9784 20912
542f9784 20913
cd9a469c 20914$as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
542f9784 20915
542f9784 20916
cd9a469c 20917$as_echo "#define HAVE_TIME 1" >>confdefs.h
542f9784 20918
20919
cd9a469c 20920$as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
542f9784 20921
542f9784 20922
cd9a469c 20923$as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
542f9784 20924
542f9784 20925
cd9a469c 20926$as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
542f9784 20927
cd9a469c 20928 # This is only for POSIX threads.
542f9784 20929
cd9a469c 20930$as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
542f9784 20931
20932
cd9a469c 20933 # Assume we do not have getuid and friends.
542f9784 20934
cd9a469c 20935$as_echo "#define NO_GETUID 1" >>confdefs.h
542f9784 20936
cd9a469c 20937 PLATFORMNET=NoNet
542f9784 20938else
cd9a469c 20939 for ac_func in strerror_r select fstat open fsync sleep opendir \
20940 localtime_r getpwuid_r getcwd \
20941 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20942 nl_langinfo setlocale \
20943 inet_pton uname inet_ntoa \
20944 getrlimit sigaction ftruncate mmap \
20945 getifaddrs
20946do :
20947 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20948ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20949eval as_val=\$$as_ac_var
20950 if test "x$as_val" = x""yes; then :
20951 cat >>confdefs.h <<_ACEOF
20952#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
542f9784 20953_ACEOF
542f9784 20954
542f9784 20955fi
cd9a469c 20956done
542f9784 20957
cd9a469c 20958 for ac_func in inet_aton inet_addr
20959do :
20960 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20961ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20962eval as_val=\$$as_ac_var
20963 if test "x$as_val" = x""yes; then :
20964 cat >>confdefs.h <<_ACEOF
20965#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
542f9784 20966_ACEOF
cd9a469c 20967 break
542f9784 20968fi
cd9a469c 20969done
542f9784 20970
cd9a469c 20971 for ac_header in unistd.h dlfcn.h sys/resource.h
20972do :
20973 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20974ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20975eval as_val=\$$as_ac_Header
20976 if test "x$as_val" = x""yes; then :
542f9784 20977 cat >>confdefs.h <<_ACEOF
cd9a469c 20978#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
542f9784 20979_ACEOF
20980
20981fi
20982
20983done
20984
20985 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
cd9a469c 20986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
20987$as_echo_n "checking for dladdr in -ldl... " >&6; }
20988if test "${ac_cv_lib_dl_dladdr+set}" = set; then :
20989 $as_echo_n "(cached) " >&6
542f9784 20990else
20991 ac_check_lib_save_LIBS=$LIBS
20992LIBS="-ldl $LIBS"
20993if test x$gcc_no_link = xyes; then
cd9a469c 20994 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 20995fi
cd9a469c 20996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 20997/* end confdefs.h. */
20998
cd9a469c 20999/* Override any GCC internal prototype to avoid an error.
21000 Use char because int might match the return type of a GCC
21001 builtin and then its argument prototype would still apply. */
542f9784 21002#ifdef __cplusplus
21003extern "C"
21004#endif
542f9784 21005char dladdr ();
21006int
21007main ()
21008{
cd9a469c 21009return dladdr ();
542f9784 21010 ;
21011 return 0;
21012}
21013_ACEOF
cd9a469c 21014if ac_fn_c_try_link "$LINENO"; then :
542f9784 21015 ac_cv_lib_dl_dladdr=yes
21016else
cd9a469c 21017 ac_cv_lib_dl_dladdr=no
542f9784 21018fi
cd9a469c 21019rm -f core conftest.err conftest.$ac_objext \
21020 conftest$ac_exeext conftest.$ac_ext
542f9784 21021LIBS=$ac_check_lib_save_LIBS
21022fi
cd9a469c 21023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
21024$as_echo "$ac_cv_lib_dl_dladdr" >&6; }
21025if test "x$ac_cv_lib_dl_dladdr" = x""yes; then :
542f9784 21026
21027
cd9a469c 21028$as_echo "#define HAVE_DLADDR 1" >>confdefs.h
542f9784 21029
21030else
21031
cd9a469c 21032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldld" >&5
21033$as_echo_n "checking for dladdr in -ldld... " >&6; }
21034if test "${ac_cv_lib_dld_dladdr+set}" = set; then :
21035 $as_echo_n "(cached) " >&6
542f9784 21036else
21037 ac_check_lib_save_LIBS=$LIBS
21038LIBS="-ldld $LIBS"
21039if test x$gcc_no_link = xyes; then
cd9a469c 21040 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 21041fi
cd9a469c 21042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 21043/* end confdefs.h. */
21044
cd9a469c 21045/* Override any GCC internal prototype to avoid an error.
21046 Use char because int might match the return type of a GCC
21047 builtin and then its argument prototype would still apply. */
542f9784 21048#ifdef __cplusplus
21049extern "C"
21050#endif
542f9784 21051char dladdr ();
21052int
21053main ()
21054{
cd9a469c 21055return dladdr ();
542f9784 21056 ;
21057 return 0;
21058}
21059_ACEOF
cd9a469c 21060if ac_fn_c_try_link "$LINENO"; then :
542f9784 21061 ac_cv_lib_dld_dladdr=yes
21062else
cd9a469c 21063 ac_cv_lib_dld_dladdr=no
542f9784 21064fi
cd9a469c 21065rm -f core conftest.err conftest.$ac_objext \
21066 conftest$ac_exeext conftest.$ac_ext
542f9784 21067LIBS=$ac_check_lib_save_LIBS
21068fi
cd9a469c 21069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dladdr" >&5
21070$as_echo "$ac_cv_lib_dld_dladdr" >&6; }
21071if test "x$ac_cv_lib_dld_dladdr" = x""yes; then :
542f9784 21072
21073
cd9a469c 21074$as_echo "#define HAVE_DLADDR 1" >>confdefs.h
542f9784 21075
21076fi
21077
21078fi
21079
21080
21081 if test x"$cross_compiling" = x"no"; then
cd9a469c 21082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/exe" >&5
21083$as_echo_n "checking for /proc/self/exe... " >&6; }
21084if test "${ac_cv_file__proc_self_exe+set}" = set; then :
21085 $as_echo_n "(cached) " >&6
542f9784 21086else
21087 test "$cross_compiling" = yes &&
cd9a469c 21088 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
542f9784 21089if test -r "/proc/self/exe"; then
21090 ac_cv_file__proc_self_exe=yes
21091else
21092 ac_cv_file__proc_self_exe=no
21093fi
21094fi
cd9a469c 21095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_exe" >&5
21096$as_echo "$ac_cv_file__proc_self_exe" >&6; }
21097if test "x$ac_cv_file__proc_self_exe" = x""yes; then :
542f9784 21098
21099cat >>confdefs.h <<_ACEOF
21100#define HAVE__PROC_SELF_EXE 1
21101_ACEOF
21102
21103
cd9a469c 21104$as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
542f9784 21105
21106fi
21107
cd9a469c 21108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/maps" >&5
21109$as_echo_n "checking for /proc/self/maps... " >&6; }
21110if test "${ac_cv_file__proc_self_maps+set}" = set; then :
21111 $as_echo_n "(cached) " >&6
542f9784 21112else
21113 test "$cross_compiling" = yes &&
cd9a469c 21114 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
542f9784 21115if test -r "/proc/self/maps"; then
21116 ac_cv_file__proc_self_maps=yes
21117else
21118 ac_cv_file__proc_self_maps=no
21119fi
21120fi
cd9a469c 21121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_maps" >&5
21122$as_echo "$ac_cv_file__proc_self_maps" >&6; }
21123if test "x$ac_cv_file__proc_self_maps" = x""yes; then :
542f9784 21124
21125cat >>confdefs.h <<_ACEOF
21126#define HAVE__PROC_SELF_MAPS 1
21127_ACEOF
21128
21129
cd9a469c 21130$as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
542f9784 21131
21132fi
21133
21134 else
21135 case $host in
21136 *-linux*)
21137
cd9a469c 21138$as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
542f9784 21139
21140
cd9a469c 21141$as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
542f9784 21142
21143 ;;
21144 esac
21145 fi
21146
21147
21148 if test "X$prefix" = "XNONE"; then
21149 acl_final_prefix="$ac_default_prefix"
21150 else
21151 acl_final_prefix="$prefix"
21152 fi
21153 if test "X$exec_prefix" = "XNONE"; then
21154 acl_final_exec_prefix='${prefix}'
21155 else
21156 acl_final_exec_prefix="$exec_prefix"
21157 fi
21158 acl_save_prefix="$prefix"
21159 prefix="$acl_final_prefix"
21160 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21161 prefix="$acl_save_prefix"
21162
21163
cd9a469c 21164# Check whether --with-gnu-ld was given.
21165if test "${with_gnu_ld+set}" = set; then :
21166 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
542f9784 21167else
21168 with_gnu_ld=no
cd9a469c 21169fi
21170
542f9784 21171# Prepare PATH_SEPARATOR.
21172# The user is always right.
21173if test "${PATH_SEPARATOR+set}" != set; then
21174 echo "#! /bin/sh" >conf$$.sh
21175 echo "exit 0" >>conf$$.sh
21176 chmod +x conf$$.sh
21177 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21178 PATH_SEPARATOR=';'
21179 else
21180 PATH_SEPARATOR=:
21181 fi
21182 rm -f conf$$.sh
21183fi
21184ac_prog=ld
21185if test "$GCC" = yes; then
21186 # Check if gcc -print-prog-name=ld gives a path.
cd9a469c 21187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
21188$as_echo_n "checking for ld used by GCC... " >&6; }
542f9784 21189 case $host in
21190 *-*-mingw*)
21191 # gcc leaves a trailing carriage return which upsets mingw
21192 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21193 *)
21194 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21195 esac
21196 case $ac_prog in
21197 # Accept absolute paths.
21198 [\\/]* | [A-Za-z]:[\\/]*)
21199 re_direlt='/[^/][^/]*/\.\./'
21200 # Canonicalize the path of ld
21201 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21202 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21203 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21204 done
21205 test -z "$LD" && LD="$ac_prog"
21206 ;;
21207 "")
21208 # If it fails, then pretend we aren't using GCC.
21209 ac_prog=ld
21210 ;;
21211 *)
21212 # If it is relative, then search for the first ld in PATH.
21213 with_gnu_ld=unknown
21214 ;;
21215 esac
21216elif test "$with_gnu_ld" = yes; then
cd9a469c 21217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
21218$as_echo_n "checking for GNU ld... " >&6; }
542f9784 21219else
cd9a469c 21220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
21221$as_echo_n "checking for non-GNU ld... " >&6; }
542f9784 21222fi
cd9a469c 21223if test "${acl_cv_path_LD+set}" = set; then :
21224 $as_echo_n "(cached) " >&6
542f9784 21225else
21226 if test -z "$LD"; then
21227 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21228 for ac_dir in $PATH; do
21229 test -z "$ac_dir" && ac_dir=.
21230 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21231 acl_cv_path_LD="$ac_dir/$ac_prog"
21232 # Check to see if the program is GNU ld. I'd rather use --version,
21233 # but apparently some GNU ld's only accept -v.
21234 # Break only if it was the GNU/non-GNU ld that we prefer.
21235 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
21236 test "$with_gnu_ld" != no && break
21237 else
21238 test "$with_gnu_ld" != yes && break
21239 fi
21240 fi
21241 done
21242 IFS="$ac_save_ifs"
21243else
21244 acl_cv_path_LD="$LD" # Let the user override the test with a path.
21245fi
21246fi
21247
21248LD="$acl_cv_path_LD"
21249if test -n "$LD"; then
cd9a469c 21250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
21251$as_echo "$LD" >&6; }
542f9784 21252else
cd9a469c 21253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21254$as_echo "no" >&6; }
542f9784 21255fi
cd9a469c 21256test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
21257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
21258$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
21259if test "${acl_cv_prog_gnu_ld+set}" = set; then :
21260 $as_echo_n "(cached) " >&6
542f9784 21261else
21262 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21263if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21264 acl_cv_prog_gnu_ld=yes
21265else
21266 acl_cv_prog_gnu_ld=no
21267fi
21268fi
cd9a469c 21269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
21270$as_echo "$acl_cv_prog_gnu_ld" >&6; }
542f9784 21271with_gnu_ld=$acl_cv_prog_gnu_ld
21272
21273
21274
cd9a469c 21275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
21276$as_echo_n "checking for shared library run path origin... " >&6; }
21277if test "${acl_cv_rpath+set}" = set; then :
21278 $as_echo_n "(cached) " >&6
542f9784 21279else
21280
21281 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21282 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21283 . ./conftest.sh
21284 rm -f ./conftest.sh
21285 acl_cv_rpath=done
21286
21287fi
cd9a469c 21288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
21289$as_echo "$acl_cv_rpath" >&6; }
542f9784 21290 wl="$acl_cv_wl"
21291 libext="$acl_cv_libext"
21292 shlibext="$acl_cv_shlibext"
21293 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21294 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21295 hardcode_direct="$acl_cv_hardcode_direct"
21296 hardcode_minus_L="$acl_cv_hardcode_minus_L"
cd9a469c 21297 # Check whether --enable-rpath was given.
21298if test "${enable_rpath+set}" = set; then :
21299 enableval=$enable_rpath; :
542f9784 21300else
21301 enable_rpath=yes
cd9a469c 21302fi
21303
542f9784 21304
21305
21306
21307
21308
21309
21310
21311 use_additional=yes
21312
21313 acl_save_prefix="$prefix"
21314 prefix="$acl_final_prefix"
21315 acl_save_exec_prefix="$exec_prefix"
21316 exec_prefix="$acl_final_exec_prefix"
21317
21318 eval additional_includedir=\"$includedir\"
21319 eval additional_libdir=\"$libdir\"
21320
21321 exec_prefix="$acl_save_exec_prefix"
21322 prefix="$acl_save_prefix"
21323
21324
cd9a469c 21325# Check whether --with-libiconv-prefix was given.
21326if test "${with_libiconv_prefix+set}" = set; then :
21327 withval=$with_libiconv_prefix;
542f9784 21328 if test "X$withval" = "Xno"; then
21329 use_additional=no
21330 else
21331 if test "X$withval" = "X"; then
21332
21333 acl_save_prefix="$prefix"
21334 prefix="$acl_final_prefix"
21335 acl_save_exec_prefix="$exec_prefix"
21336 exec_prefix="$acl_final_exec_prefix"
21337
21338 eval additional_includedir=\"$includedir\"
21339 eval additional_libdir=\"$libdir\"
21340
21341 exec_prefix="$acl_save_exec_prefix"
21342 prefix="$acl_save_prefix"
21343
21344 else
21345 additional_includedir="$withval/include"
21346 additional_libdir="$withval/lib"
21347 fi
21348 fi
21349
cd9a469c 21350fi
21351
542f9784 21352 LIBICONV=
21353 LTLIBICONV=
21354 INCICONV=
21355 rpathdirs=
21356 ltrpathdirs=
21357 names_already_handled=
21358 names_next_round='iconv '
21359 while test -n "$names_next_round"; do
21360 names_this_round="$names_next_round"
21361 names_next_round=
21362 for name in $names_this_round; do
21363 already_handled=
21364 for n in $names_already_handled; do
21365 if test "$n" = "$name"; then
21366 already_handled=yes
21367 break
21368 fi
21369 done
21370 if test -z "$already_handled"; then
21371 names_already_handled="$names_already_handled $name"
21372 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21373 eval value=\"\$HAVE_LIB$uppername\"
21374 if test -n "$value"; then
21375 if test "$value" = yes; then
21376 eval value=\"\$LIB$uppername\"
21377 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21378 eval value=\"\$LTLIB$uppername\"
21379 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21380 else
21381 :
21382 fi
21383 else
21384 found_dir=
21385 found_la=
21386 found_so=
21387 found_a=
21388 if test $use_additional = yes; then
21389 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21390 found_dir="$additional_libdir"
21391 found_so="$additional_libdir/lib$name.$shlibext"
21392 if test -f "$additional_libdir/lib$name.la"; then
21393 found_la="$additional_libdir/lib$name.la"
21394 fi
21395 else
21396 if test -f "$additional_libdir/lib$name.$libext"; then
21397 found_dir="$additional_libdir"
21398 found_a="$additional_libdir/lib$name.$libext"
21399 if test -f "$additional_libdir/lib$name.la"; then
21400 found_la="$additional_libdir/lib$name.la"
21401 fi
21402 fi
21403 fi
21404 fi
21405 if test "X$found_dir" = "X"; then
21406 for x in $LDFLAGS $LTLIBICONV; do
21407
21408 acl_save_prefix="$prefix"
21409 prefix="$acl_final_prefix"
21410 acl_save_exec_prefix="$exec_prefix"
21411 exec_prefix="$acl_final_exec_prefix"
21412 eval x=\"$x\"
21413 exec_prefix="$acl_save_exec_prefix"
21414 prefix="$acl_save_prefix"
21415
21416 case "$x" in
21417 -L*)
21418 dir=`echo "X$x" | sed -e 's/^X-L//'`
21419 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21420 found_dir="$dir"
21421 found_so="$dir/lib$name.$shlibext"
21422 if test -f "$dir/lib$name.la"; then
21423 found_la="$dir/lib$name.la"
21424 fi
21425 else
21426 if test -f "$dir/lib$name.$libext"; then
21427 found_dir="$dir"
21428 found_a="$dir/lib$name.$libext"
21429 if test -f "$dir/lib$name.la"; then
21430 found_la="$dir/lib$name.la"
21431 fi
21432 fi
21433 fi
21434 ;;
21435 esac
21436 if test "X$found_dir" != "X"; then
21437 break
21438 fi
21439 done
21440 fi
21441 if test "X$found_dir" != "X"; then
21442 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21443 if test "X$found_so" != "X"; then
21444 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21445 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21446 else
21447 haveit=
21448 for x in $ltrpathdirs; do
21449 if test "X$x" = "X$found_dir"; then
21450 haveit=yes
21451 break
21452 fi
21453 done
21454 if test -z "$haveit"; then
21455 ltrpathdirs="$ltrpathdirs $found_dir"
21456 fi
21457 if test "$hardcode_direct" = yes; then
21458 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21459 else
21460 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21461 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21462 haveit=
21463 for x in $rpathdirs; do
21464 if test "X$x" = "X$found_dir"; then
21465 haveit=yes
21466 break
21467 fi
21468 done
21469 if test -z "$haveit"; then
21470 rpathdirs="$rpathdirs $found_dir"
21471 fi
21472 else
21473 haveit=
21474 for x in $LDFLAGS $LIBICONV; do
21475
21476 acl_save_prefix="$prefix"
21477 prefix="$acl_final_prefix"
21478 acl_save_exec_prefix="$exec_prefix"
21479 exec_prefix="$acl_final_exec_prefix"
21480 eval x=\"$x\"
21481 exec_prefix="$acl_save_exec_prefix"
21482 prefix="$acl_save_prefix"
21483
21484 if test "X$x" = "X-L$found_dir"; then
21485 haveit=yes
21486 break
21487 fi
21488 done
21489 if test -z "$haveit"; then
21490 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21491 fi
21492 if test "$hardcode_minus_L" != no; then
21493 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21494 else
21495 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21496 fi
21497 fi
21498 fi
21499 fi
21500 else
21501 if test "X$found_a" != "X"; then
21502 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21503 else
21504 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21505 fi
21506 fi
21507 additional_includedir=
21508 case "$found_dir" in
21509 */lib | */lib/)
21510 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21511 additional_includedir="$basedir/include"
21512 ;;
21513 esac
21514 if test "X$additional_includedir" != "X"; then
21515 if test "X$additional_includedir" != "X/usr/include"; then
21516 haveit=
21517 if test "X$additional_includedir" = "X/usr/local/include"; then
21518 if test -n "$GCC"; then
21519 case $host_os in
21520 linux*) haveit=yes;;
21521 esac
21522 fi
21523 fi
21524 if test -z "$haveit"; then
21525 for x in $CPPFLAGS $INCICONV; do
21526
21527 acl_save_prefix="$prefix"
21528 prefix="$acl_final_prefix"
21529 acl_save_exec_prefix="$exec_prefix"
21530 exec_prefix="$acl_final_exec_prefix"
21531 eval x=\"$x\"
21532 exec_prefix="$acl_save_exec_prefix"
21533 prefix="$acl_save_prefix"
21534
21535 if test "X$x" = "X-I$additional_includedir"; then
21536 haveit=yes
21537 break
21538 fi
21539 done
21540 if test -z "$haveit"; then
21541 if test -d "$additional_includedir"; then
21542 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21543 fi
21544 fi
21545 fi
21546 fi
21547 fi
21548 if test -n "$found_la"; then
21549 save_libdir="$libdir"
21550 case "$found_la" in
21551 */* | *\\*) . "$found_la" ;;
21552 *) . "./$found_la" ;;
21553 esac
21554 libdir="$save_libdir"
21555 for dep in $dependency_libs; do
21556 case "$dep" in
21557 -L*)
21558 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21559 if test "X$additional_libdir" != "X/usr/lib"; then
21560 haveit=
21561 if test "X$additional_libdir" = "X/usr/local/lib"; then
21562 if test -n "$GCC"; then
21563 case $host_os in
21564 linux*) haveit=yes;;
21565 esac
21566 fi
21567 fi
21568 if test -z "$haveit"; then
21569 haveit=
21570 for x in $LDFLAGS $LIBICONV; do
21571
21572 acl_save_prefix="$prefix"
21573 prefix="$acl_final_prefix"
21574 acl_save_exec_prefix="$exec_prefix"
21575 exec_prefix="$acl_final_exec_prefix"
21576 eval x=\"$x\"
21577 exec_prefix="$acl_save_exec_prefix"
21578 prefix="$acl_save_prefix"
21579
21580 if test "X$x" = "X-L$additional_libdir"; then
21581 haveit=yes
21582 break
21583 fi
21584 done
21585 if test -z "$haveit"; then
21586 if test -d "$additional_libdir"; then
21587 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21588 fi
21589 fi
21590 haveit=
21591 for x in $LDFLAGS $LTLIBICONV; do
21592
21593 acl_save_prefix="$prefix"
21594 prefix="$acl_final_prefix"
21595 acl_save_exec_prefix="$exec_prefix"
21596 exec_prefix="$acl_final_exec_prefix"
21597 eval x=\"$x\"
21598 exec_prefix="$acl_save_exec_prefix"
21599 prefix="$acl_save_prefix"
21600
21601 if test "X$x" = "X-L$additional_libdir"; then
21602 haveit=yes
21603 break
21604 fi
21605 done
21606 if test -z "$haveit"; then
21607 if test -d "$additional_libdir"; then
21608 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21609 fi
21610 fi
21611 fi
21612 fi
21613 ;;
21614 -R*)
21615 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21616 if test "$enable_rpath" != no; then
21617 haveit=
21618 for x in $rpathdirs; do
21619 if test "X$x" = "X$dir"; then
21620 haveit=yes
21621 break
21622 fi
21623 done
21624 if test -z "$haveit"; then
21625 rpathdirs="$rpathdirs $dir"
21626 fi
21627 haveit=
21628 for x in $ltrpathdirs; do
21629 if test "X$x" = "X$dir"; then
21630 haveit=yes
21631 break
21632 fi
21633 done
21634 if test -z "$haveit"; then
21635 ltrpathdirs="$ltrpathdirs $dir"
21636 fi
21637 fi
21638 ;;
21639 -l*)
21640 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21641 ;;
21642 *.la)
21643 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21644 ;;
21645 *)
21646 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21647 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21648 ;;
21649 esac
21650 done
21651 fi
21652 else
21653 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21654 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21655 fi
21656 fi
21657 fi
21658 done
21659 done
21660 if test "X$rpathdirs" != "X"; then
21661 if test -n "$hardcode_libdir_separator"; then
21662 alldirs=
21663 for found_dir in $rpathdirs; do
21664 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21665 done
21666 acl_save_libdir="$libdir"
21667 libdir="$alldirs"
21668 eval flag=\"$hardcode_libdir_flag_spec\"
21669 libdir="$acl_save_libdir"
21670 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21671 else
21672 for found_dir in $rpathdirs; do
21673 acl_save_libdir="$libdir"
21674 libdir="$found_dir"
21675 eval flag=\"$hardcode_libdir_flag_spec\"
21676 libdir="$acl_save_libdir"
21677 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21678 done
21679 fi
21680 fi
21681 if test "X$ltrpathdirs" != "X"; then
21682 for found_dir in $ltrpathdirs; do
21683 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21684 done
21685 fi
21686
21687
21688
21689
21690
21691
21692
21693 am_save_CPPFLAGS="$CPPFLAGS"
21694
21695 for element in $INCICONV; do
21696 haveit=
21697 for x in $CPPFLAGS; do
21698
21699 acl_save_prefix="$prefix"
21700 prefix="$acl_final_prefix"
21701 acl_save_exec_prefix="$exec_prefix"
21702 exec_prefix="$acl_final_exec_prefix"
21703 eval x=\"$x\"
21704 exec_prefix="$acl_save_exec_prefix"
21705 prefix="$acl_save_prefix"
21706
21707 if test "X$x" = "X$element"; then
21708 haveit=yes
21709 break
21710 fi
21711 done
21712 if test -z "$haveit"; then
21713 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21714 fi
21715 done
21716
21717
cd9a469c 21718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21719$as_echo_n "checking for iconv... " >&6; }
21720if test "${am_cv_func_iconv+set}" = set; then :
21721 $as_echo_n "(cached) " >&6
542f9784 21722else
21723
21724 am_cv_func_iconv="no, consider installing GNU libiconv"
21725 am_cv_lib_iconv=no
21726 if test x$gcc_no_link = xyes; then
cd9a469c 21727 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 21728fi
cd9a469c 21729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 21730/* end confdefs.h. */
21731#include <stdlib.h>
21732#include <iconv.h>
21733int
21734main ()
21735{
21736iconv_t cd = iconv_open("","");
21737 iconv(cd,NULL,NULL,NULL,NULL);
21738 iconv_close(cd);
21739 ;
21740 return 0;
21741}
21742_ACEOF
cd9a469c 21743if ac_fn_c_try_link "$LINENO"; then :
542f9784 21744 am_cv_func_iconv=yes
542f9784 21745fi
cd9a469c 21746rm -f core conftest.err conftest.$ac_objext \
21747 conftest$ac_exeext conftest.$ac_ext
542f9784 21748 if test "$am_cv_func_iconv" != yes; then
21749 am_save_LIBS="$LIBS"
21750 LIBS="$LIBS $LIBICONV"
21751 if test x$gcc_no_link = xyes; then
cd9a469c 21752 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 21753fi
cd9a469c 21754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 21755/* end confdefs.h. */
21756#include <stdlib.h>
21757#include <iconv.h>
21758int
21759main ()
21760{
21761iconv_t cd = iconv_open("","");
21762 iconv(cd,NULL,NULL,NULL,NULL);
21763 iconv_close(cd);
21764 ;
21765 return 0;
21766}
21767_ACEOF
cd9a469c 21768if ac_fn_c_try_link "$LINENO"; then :
542f9784 21769 am_cv_lib_iconv=yes
21770 am_cv_func_iconv=yes
542f9784 21771fi
cd9a469c 21772rm -f core conftest.err conftest.$ac_objext \
21773 conftest$ac_exeext conftest.$ac_ext
542f9784 21774 LIBS="$am_save_LIBS"
21775 fi
21776
21777fi
cd9a469c 21778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
21779$as_echo "$am_cv_func_iconv" >&6; }
542f9784 21780 if test "$am_cv_func_iconv" = yes; then
21781
cd9a469c 21782$as_echo "#define HAVE_ICONV 1" >>confdefs.h
542f9784 21783
21784 fi
21785 if test "$am_cv_lib_iconv" = yes; then
cd9a469c 21786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
21787$as_echo_n "checking how to link with libiconv... " >&6; }
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
21789$as_echo "$LIBICONV" >&6; }
542f9784 21790 else
21791 CPPFLAGS="$am_save_CPPFLAGS"
21792 LIBICONV=
21793 LTLIBICONV=
21794 fi
21795
21796
21797
21798 if test "$am_cv_func_iconv" = yes; then
cd9a469c 21799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
21800$as_echo_n "checking for iconv declaration... " >&6; }
21801 if test "${am_cv_proto_iconv+set}" = set; then :
21802 $as_echo_n "(cached) " >&6
542f9784 21803else
21804
cd9a469c 21805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 21806/* end confdefs.h. */
21807
21808#include <stdlib.h>
21809#include <iconv.h>
21810extern
21811#ifdef __cplusplus
21812"C"
21813#endif
21814#if defined(__STDC__) || defined(__cplusplus)
21815size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21816#else
21817size_t iconv();
21818#endif
21819
21820int
21821main ()
21822{
21823
21824 ;
21825 return 0;
21826}
21827_ACEOF
cd9a469c 21828if ac_fn_c_try_compile "$LINENO"; then :
542f9784 21829 am_cv_proto_iconv_arg1=""
21830else
cd9a469c 21831 am_cv_proto_iconv_arg1="const"
542f9784 21832fi
cd9a469c 21833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 21834 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);"
21835fi
21836
21837 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
cd9a469c 21838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
542f9784 21839 }$am_cv_proto_iconv" >&5
cd9a469c 21840$as_echo "${ac_t:-
21841 }$am_cv_proto_iconv" >&6; }
542f9784 21842
21843cat >>confdefs.h <<_ACEOF
21844#define ICONV_CONST $am_cv_proto_iconv_arg1
21845_ACEOF
21846
21847 fi
21848
21849
cd9a469c 21850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
21851$as_echo_n "checking for LC_MESSAGES... " >&6; }
21852if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
21853 $as_echo_n "(cached) " >&6
542f9784 21854else
21855 if test x$gcc_no_link = xyes; then
cd9a469c 21856 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 21857fi
cd9a469c 21858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 21859/* end confdefs.h. */
21860#include <locale.h>
21861int
21862main ()
21863{
21864return LC_MESSAGES
21865 ;
21866 return 0;
21867}
21868_ACEOF
cd9a469c 21869if ac_fn_c_try_link "$LINENO"; then :
542f9784 21870 am_cv_val_LC_MESSAGES=yes
21871else
cd9a469c 21872 am_cv_val_LC_MESSAGES=no
542f9784 21873fi
cd9a469c 21874rm -f core conftest.err conftest.$ac_objext \
21875 conftest$ac_exeext conftest.$ac_ext
542f9784 21876fi
cd9a469c 21877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
21878$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
542f9784 21879 if test $am_cv_val_LC_MESSAGES = yes; then
21880
cd9a469c 21881$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
542f9784 21882
21883 fi
21884
cd9a469c 21885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21886$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21887if test "${ac_cv_struct_tm+set}" = set; then :
21888 $as_echo_n "(cached) " >&6
542f9784 21889else
cd9a469c 21890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 21891/* end confdefs.h. */
21892#include <sys/types.h>
21893#include <time.h>
21894
21895int
21896main ()
21897{
cd9a469c 21898struct tm tm;
21899 int *p = &tm.tm_sec;
21900 return !p;
542f9784 21901 ;
21902 return 0;
21903}
21904_ACEOF
cd9a469c 21905if ac_fn_c_try_compile "$LINENO"; then :
542f9784 21906 ac_cv_struct_tm=time.h
21907else
cd9a469c 21908 ac_cv_struct_tm=sys/time.h
542f9784 21909fi
cd9a469c 21910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 21911fi
cd9a469c 21912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21913$as_echo "$ac_cv_struct_tm" >&6; }
542f9784 21914if test $ac_cv_struct_tm = sys/time.h; then
21915
cd9a469c 21916$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
542f9784 21917
542f9784 21918fi
542f9784 21919
cd9a469c 21920ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21921#include <$ac_cv_struct_tm>
21922
21923"
21924if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
542f9784 21925
cd9a469c 21926cat >>confdefs.h <<_ACEOF
21927#define HAVE_STRUCT_TM_TM_ZONE 1
542f9784 21928_ACEOF
21929
cd9a469c 21930
542f9784 21931fi
21932
cd9a469c 21933if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
542f9784 21934
cd9a469c 21935$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
542f9784 21936
542f9784 21937else
cd9a469c 21938 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21939"
21940if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21941 ac_have_decl=1
21942else
21943 ac_have_decl=0
542f9784 21944fi
542f9784 21945
cd9a469c 21946cat >>confdefs.h <<_ACEOF
21947#define HAVE_DECL_TZNAME $ac_have_decl
21948_ACEOF
542f9784 21949
cd9a469c 21950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21951$as_echo_n "checking for tzname... " >&6; }
21952if test "${ac_cv_var_tzname+set}" = set; then :
21953 $as_echo_n "(cached) " >&6
21954else
21955 if test x$gcc_no_link = xyes; then
21956 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21957fi
21958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21959/* end confdefs.h. */
21960#include <time.h>
21961#if !HAVE_DECL_TZNAME
21962extern char *tzname[];
542f9784 21963#endif
21964
21965int
21966main ()
21967{
cd9a469c 21968return tzname[0][0];
542f9784 21969 ;
21970 return 0;
21971}
21972_ACEOF
cd9a469c 21973if ac_fn_c_try_link "$LINENO"; then :
21974 ac_cv_var_tzname=yes
542f9784 21975else
cd9a469c 21976 ac_cv_var_tzname=no
542f9784 21977fi
cd9a469c 21978rm -f core conftest.err conftest.$ac_objext \
21979 conftest$ac_exeext conftest.$ac_ext
21980fi
21981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21982$as_echo "$ac_cv_var_tzname" >&6; }
21983 if test $ac_cv_var_tzname = yes; then
21984
21985$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21986
21987 fi
542f9784 21988fi
542f9784 21989
a8dc4a29 21990 LDLIBICONV=`echo " $LIBICONV " | sed "s/${acl_cv_wl--Wl,}/ /g; s/,/ /g"`
21991
542f9784 21992
cd9a469c 21993 for ac_func in gethostbyname_r
21994do :
21995 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
21996if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
21997 cat >>confdefs.h <<_ACEOF
542f9784 21998#define HAVE_GETHOSTBYNAME_R 1
21999_ACEOF
22000
cd9a469c 22001
22002$as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
22003
542f9784 22004 # There are two different kinds of gethostbyname_r.
22005 # We look for the one that returns `int'.
22006 # Hopefully this check is robust enough.
cd9a469c 22007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 22008/* end confdefs.h. */
22009#include <netdb.h>
22010
22011_ACEOF
22012if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cd9a469c 22013 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then :
542f9784 22014
22015
cd9a469c 22016$as_echo "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h
542f9784 22017
22018fi
22019rm -f conftest*
22020
22021
22022 case " $GCINCS " in
22023 *" -D_REENTRANT "*) ;;
22024 *)
cd9a469c 22025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
22026$as_echo_n "checking whether gethostbyname_r declaration requires -D_REENTRANT... " >&6; }
22027if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then :
22028 $as_echo_n "(cached) " >&6
542f9784 22029else
cd9a469c 22030 ac_ext=cpp
542f9784 22031ac_cpp='$CXXCPP $CPPFLAGS'
22032ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22033ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22034ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22035
cd9a469c 22036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 22037/* end confdefs.h. */
22038#include <netdb.h>
22039int
22040main ()
22041{
22042gethostbyname_r("", 0, 0);
22043 ;
22044 return 0;
22045}
22046_ACEOF
cd9a469c 22047if ac_fn_cxx_try_compile "$LINENO"; then :
542f9784 22048 libjava_cv_gethostbyname_r_needs_reentrant=no
22049else
cd9a469c 22050 CPPFLAGS_SAVE="$CPPFLAGS"
542f9784 22051 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
cd9a469c 22052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 22053/* end confdefs.h. */
22054#include <netdb.h>
22055int
22056main ()
22057{
22058gethostbyname_r("", 0, 0);
22059 ;
22060 return 0;
22061}
22062_ACEOF
cd9a469c 22063if ac_fn_cxx_try_compile "$LINENO"; then :
542f9784 22064 libjava_cv_gethostbyname_r_needs_reentrant=yes
22065else
cd9a469c 22066 libjava_cv_gethostbyname_r_needs_reentrant=fail
542f9784 22067fi
cd9a469c 22068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 22069 CPPFLAGS="$CPPFLAGS_SAVE"
22070
22071fi
cd9a469c 22072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 22073 ac_ext=c
22074ac_cpp='$CPP $CPPFLAGS'
22075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22077ac_compiler_gnu=$ac_cv_c_compiler_gnu
22078
22079
22080fi
cd9a469c 22081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
22082$as_echo "$libjava_cv_gethostbyname_r_needs_reentrant" >&6; }
542f9784 22083 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
22084
cd9a469c 22085$as_echo "#define _REENTRANT 1" >>confdefs.h
542f9784 22086
22087 fi
22088 ;;
22089 esac
22090
cd9a469c 22091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct hostent_data" >&5
22092$as_echo_n "checking for struct hostent_data... " >&6; }
22093if test "${libjava_cv_struct_hostent_data+set}" = set; then :
22094 $as_echo_n "(cached) " >&6
542f9784 22095else
cd9a469c 22096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 22097/* end confdefs.h. */
22098
22099#if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
22100# define _REENTRANT 1
22101#endif
22102#include <netdb.h>
22103int
22104main ()
22105{
22106struct hostent_data data;
22107 ;
22108 return 0;
22109}
22110_ACEOF
cd9a469c 22111if ac_fn_c_try_compile "$LINENO"; then :
542f9784 22112 libjava_cv_struct_hostent_data=yes
22113else
cd9a469c 22114 libjava_cv_struct_hostent_data=no
542f9784 22115fi
cd9a469c 22116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 22117fi
cd9a469c 22118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_struct_hostent_data" >&5
22119$as_echo "$libjava_cv_struct_hostent_data" >&6; }
542f9784 22120 if test "x$libjava_cv_struct_hostent_data" = xyes; then
22121
cd9a469c 22122$as_echo "#define HAVE_STRUCT_HOSTENT_DATA 1" >>confdefs.h
542f9784 22123
22124 fi
22125
22126fi
22127done
22128
22129
22130 # FIXME: libjava source code expects to find a prototype for
22131 # gethostbyaddr_r in netdb.h. The outer check ensures that
22132 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
22133 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
22134 # linkage check is enough, yet C++ code requires proper prototypes.)
cd9a469c 22135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 22136/* end confdefs.h. */
22137#include <netdb.h>
22138
22139_ACEOF
22140if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cd9a469c 22141 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
542f9784 22142
cd9a469c 22143 for ac_func in gethostbyaddr_r
22144do :
22145 ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
22146if test "x$ac_cv_func_gethostbyaddr_r" = x""yes; then :
542f9784 22147 cat >>confdefs.h <<_ACEOF
cd9a469c 22148#define HAVE_GETHOSTBYADDR_R 1
542f9784 22149_ACEOF
22150
22151
cd9a469c 22152$as_echo "#define HAVE_GETHOSTBYADDR_R 1" >>confdefs.h
542f9784 22153
22154 # There are two different kinds of gethostbyaddr_r.
22155 # We look for the one that returns `int'.
22156 # Hopefully this check is robust enough.
cd9a469c 22157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 22158/* end confdefs.h. */
22159#include <netdb.h>
22160
22161_ACEOF
22162if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cd9a469c 22163 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then :
542f9784 22164
22165
cd9a469c 22166$as_echo "#define GETHOSTBYADDR_R_RETURNS_INT 1" >>confdefs.h
542f9784 22167
22168fi
22169rm -f conftest*
22170
22171fi
22172done
22173
cd9a469c 22174fi
22175rm -f conftest*
22176
22177
22178 for ac_func in gethostname
22179do :
22180 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
22181if test "x$ac_cv_func_gethostname" = x""yes; then :
22182 cat >>confdefs.h <<_ACEOF
22183#define HAVE_GETHOSTNAME 1
542f9784 22184_ACEOF
542f9784 22185
cd9a469c 22186
22187$as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
22188
22189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22190/* end confdefs.h. */
22191#include <unistd.h>
22192
22193_ACEOF
22194if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22195 $EGREP "gethostname" >/dev/null 2>&1; then :
22196
22197
22198$as_echo "#define HAVE_GETHOSTNAME_DECL 1" >>confdefs.h
22199
542f9784 22200fi
cd9a469c 22201rm -f conftest*
22202
542f9784 22203fi
cd9a469c 22204done
22205
22206
22207 for ac_func in usleep
22208do :
22209 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
22210if test "x$ac_cv_func_usleep" = x""yes; then :
542f9784 22211 cat >>confdefs.h <<_ACEOF
cd9a469c 22212#define HAVE_USLEEP 1
542f9784 22213_ACEOF
22214
cd9a469c 22215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 22216/* end confdefs.h. */
22217#include <unistd.h>
22218
22219_ACEOF
22220if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cd9a469c 22221 $EGREP "usleep" >/dev/null 2>&1; then :
542f9784 22222
22223
cd9a469c 22224$as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
542f9784 22225
22226fi
22227rm -f conftest*
22228
22229fi
22230done
22231
22232
22233 # Look for these functions in the thread library, but only bother
22234 # if using POSIX threads.
22235 if test "$THREADS" = posix; then
22236 save_LIBS="$LIBS"
22237 LIBS="$LIBS $THREADLIBS"
22238
22239 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
22240 # Solaris 7 the name librt is preferred.
cd9a469c 22241 for ac_func in sched_yield
22242do :
22243 ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
22244if test "x$ac_cv_func_sched_yield" = x""yes; then :
542f9784 22245 cat >>confdefs.h <<_ACEOF
cd9a469c 22246#define HAVE_SCHED_YIELD 1
542f9784 22247_ACEOF
22248
22249else
22250
cd9a469c 22251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
22252$as_echo_n "checking for sched_yield in -lrt... " >&6; }
22253if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
22254 $as_echo_n "(cached) " >&6
542f9784 22255else
22256 ac_check_lib_save_LIBS=$LIBS
22257LIBS="-lrt $LIBS"
22258if test x$gcc_no_link = xyes; then
cd9a469c 22259 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 22260fi
cd9a469c 22261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 22262/* end confdefs.h. */
22263
cd9a469c 22264/* Override any GCC internal prototype to avoid an error.
22265 Use char because int might match the return type of a GCC
22266 builtin and then its argument prototype would still apply. */
542f9784 22267#ifdef __cplusplus
22268extern "C"
22269#endif
542f9784 22270char sched_yield ();
22271int
22272main ()
22273{
cd9a469c 22274return sched_yield ();
542f9784 22275 ;
22276 return 0;
22277}
22278_ACEOF
cd9a469c 22279if ac_fn_c_try_link "$LINENO"; then :
542f9784 22280 ac_cv_lib_rt_sched_yield=yes
22281else
cd9a469c 22282 ac_cv_lib_rt_sched_yield=no
542f9784 22283fi
cd9a469c 22284rm -f core conftest.err conftest.$ac_objext \
22285 conftest$ac_exeext conftest.$ac_ext
542f9784 22286LIBS=$ac_check_lib_save_LIBS
22287fi
cd9a469c 22288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
22289$as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
22290if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
542f9784 22291
cd9a469c 22292 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
542f9784 22293
22294 THREADLIBS="$THREADLIBS -lrt"
22295 THREADSPEC="$THREADSPEC -lrt"
22296else
22297
cd9a469c 22298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
22299$as_echo_n "checking for sched_yield in -lposix4... " >&6; }
22300if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then :
22301 $as_echo_n "(cached) " >&6
542f9784 22302else
22303 ac_check_lib_save_LIBS=$LIBS
22304LIBS="-lposix4 $LIBS"
22305if test x$gcc_no_link = xyes; then
cd9a469c 22306 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 22307fi
cd9a469c 22308cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 22309/* end confdefs.h. */
22310
cd9a469c 22311/* Override any GCC internal prototype to avoid an error.
22312 Use char because int might match the return type of a GCC
22313 builtin and then its argument prototype would still apply. */
542f9784 22314#ifdef __cplusplus
22315extern "C"
22316#endif
542f9784 22317char sched_yield ();
22318int
22319main ()
22320{
cd9a469c 22321return sched_yield ();
542f9784 22322 ;
22323 return 0;
22324}
22325_ACEOF
cd9a469c 22326if ac_fn_c_try_link "$LINENO"; then :
542f9784 22327 ac_cv_lib_posix4_sched_yield=yes
22328else
cd9a469c 22329 ac_cv_lib_posix4_sched_yield=no
542f9784 22330fi
cd9a469c 22331rm -f core conftest.err conftest.$ac_objext \
22332 conftest$ac_exeext conftest.$ac_ext
542f9784 22333LIBS=$ac_check_lib_save_LIBS
22334fi
cd9a469c 22335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
22336$as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
22337if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then :
542f9784 22338
cd9a469c 22339 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
542f9784 22340
22341 THREADLIBS="$THREADLIBS -lposix4"
22342 THREADSPEC="$THREADSPEC -lposix4"
22343fi
22344
22345fi
22346
22347fi
22348done
22349
22350
cd9a469c 22351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22352$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22353if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
22354 $as_echo_n "(cached) " >&6
542f9784 22355else
22356 ac_check_lib_save_LIBS=$LIBS
22357LIBS="-lrt $LIBS"
22358if test x$gcc_no_link = xyes; then
cd9a469c 22359 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 22360fi
cd9a469c 22361cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 22362/* end confdefs.h. */
22363
cd9a469c 22364/* Override any GCC internal prototype to avoid an error.
22365 Use char because int might match the return type of a GCC
22366 builtin and then its argument prototype would still apply. */
542f9784 22367#ifdef __cplusplus
22368extern "C"
22369#endif
542f9784 22370char clock_gettime ();
22371int
22372main ()
22373{
cd9a469c 22374return clock_gettime ();
542f9784 22375 ;
22376 return 0;
22377}
22378_ACEOF
cd9a469c 22379if ac_fn_c_try_link "$LINENO"; then :
542f9784 22380 ac_cv_lib_rt_clock_gettime=yes
22381else
cd9a469c 22382 ac_cv_lib_rt_clock_gettime=no
542f9784 22383fi
cd9a469c 22384rm -f core conftest.err conftest.$ac_objext \
22385 conftest$ac_exeext conftest.$ac_ext
542f9784 22386LIBS=$ac_check_lib_save_LIBS
22387fi
cd9a469c 22388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22389$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22390if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
542f9784 22391
22392
cd9a469c 22393$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
542f9784 22394
22395 case "$THREADSPEC" in
22396 *-lrt*) ;;
22397 *)
22398 THREADSPEC="$THREADSPEC -lrt"
22399 THREADLIBS="$THREADLIBS -lrt"
22400 ;;
22401 esac
22402fi
22403
22404
22405 LIBS="$save_LIBS"
22406
22407 # We can save a little space at runtime if the mutex has m_count
22408 # or __m_count. This is a nice hack for Linux.
cd9a469c 22409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 22410/* end confdefs.h. */
22411#include <pthread.h>
22412int
22413main ()
22414{
22415
22416 extern pthread_mutex_t *mutex; int q = mutex->m_count;
22417
22418 ;
22419 return 0;
22420}
22421_ACEOF
cd9a469c 22422if ac_fn_c_try_compile "$LINENO"; then :
542f9784 22423
cd9a469c 22424$as_echo "#define PTHREAD_MUTEX_HAVE_M_COUNT 1" >>confdefs.h
22425
22426else
22427
22428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22429/* end confdefs.h. */
22430#include <pthread.h>
542f9784 22431int
22432main ()
22433{
cd9a469c 22434
22435 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
22436
542f9784 22437 ;
22438 return 0;
22439}
22440_ACEOF
cd9a469c 22441if ac_fn_c_try_compile "$LINENO"; then :
22442
22443$as_echo "#define PTHREAD_MUTEX_HAVE___M_COUNT 1" >>confdefs.h
542f9784 22444
542f9784 22445fi
cd9a469c 22446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 22447fi
cd9a469c 22448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22449 fi
22450
22451 # We require a way to get the time.
22452 time_found=no
22453 for ac_func in gettimeofday time ftime
22454do :
22455 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22456ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22457eval as_val=\$$as_ac_var
22458 if test "x$as_val" = x""yes; then :
542f9784 22459 cat >>confdefs.h <<_ACEOF
cd9a469c 22460#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
542f9784 22461_ACEOF
cd9a469c 22462 time_found=yes
542f9784 22463fi
22464done
22465
cd9a469c 22466 if test "$time_found" = no; then
22467 as_fn_error "no function found to get the time" "$LINENO" 5
22468 fi
542f9784 22469
cd9a469c 22470 for ac_func in memmove
22471do :
22472 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22473if test "x$ac_cv_func_memmove" = x""yes; then :
22474 cat >>confdefs.h <<_ACEOF
22475#define HAVE_MEMMOVE 1
542f9784 22476_ACEOF
542f9784 22477
cd9a469c 22478fi
22479done
542f9784 22480
542f9784 22481
cd9a469c 22482 # We require memcpy.
22483 memcpy_found=no
22484 for ac_func in memcpy
22485do :
22486 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
22487if test "x$ac_cv_func_memcpy" = x""yes; then :
542f9784 22488 cat >>confdefs.h <<_ACEOF
cd9a469c 22489#define HAVE_MEMCPY 1
542f9784 22490_ACEOF
22491 memcpy_found=yes
22492fi
22493done
22494
22495 if test "$memcpy_found" = no; then
cd9a469c 22496 as_fn_error "memcpy is required" "$LINENO" 5
542f9784 22497 fi
22498 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
cd9a469c 22499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22500$as_echo_n "checking for dlopen in -ldl... " >&6; }
22501if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
22502 $as_echo_n "(cached) " >&6
542f9784 22503else
22504 ac_check_lib_save_LIBS=$LIBS
22505LIBS="-ldl $LIBS"
22506if test x$gcc_no_link = xyes; then
cd9a469c 22507 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 22508fi
cd9a469c 22509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 22510/* end confdefs.h. */
22511
cd9a469c 22512/* Override any GCC internal prototype to avoid an error.
22513 Use char because int might match the return type of a GCC
22514 builtin and then its argument prototype would still apply. */
542f9784 22515#ifdef __cplusplus
22516extern "C"
22517#endif
542f9784 22518char dlopen ();
22519int
22520main ()
22521{
cd9a469c 22522return dlopen ();
542f9784 22523 ;
22524 return 0;
22525}
22526_ACEOF
cd9a469c 22527if ac_fn_c_try_link "$LINENO"; then :
542f9784 22528 ac_cv_lib_dl_dlopen=yes
22529else
cd9a469c 22530 ac_cv_lib_dl_dlopen=no
542f9784 22531fi
cd9a469c 22532rm -f core conftest.err conftest.$ac_objext \
22533 conftest$ac_exeext conftest.$ac_ext
542f9784 22534LIBS=$ac_check_lib_save_LIBS
22535fi
cd9a469c 22536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22537$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22538if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
542f9784 22539
22540
cd9a469c 22541$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
542f9784 22542
22543else
22544
cd9a469c 22545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldld" >&5
22546$as_echo_n "checking for dlopen in -ldld... " >&6; }
22547if test "${ac_cv_lib_dld_dlopen+set}" = set; then :
22548 $as_echo_n "(cached) " >&6
542f9784 22549else
22550 ac_check_lib_save_LIBS=$LIBS
22551LIBS="-ldld $LIBS"
22552if test x$gcc_no_link = xyes; then
cd9a469c 22553 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 22554fi
cd9a469c 22555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 22556/* end confdefs.h. */
22557
cd9a469c 22558/* Override any GCC internal prototype to avoid an error.
22559 Use char because int might match the return type of a GCC
22560 builtin and then its argument prototype would still apply. */
542f9784 22561#ifdef __cplusplus
22562extern "C"
22563#endif
542f9784 22564char dlopen ();
22565int
22566main ()
22567{
cd9a469c 22568return dlopen ();
542f9784 22569 ;
22570 return 0;
22571}
22572_ACEOF
cd9a469c 22573if ac_fn_c_try_link "$LINENO"; then :
542f9784 22574 ac_cv_lib_dld_dlopen=yes
22575else
cd9a469c 22576 ac_cv_lib_dld_dlopen=no
542f9784 22577fi
cd9a469c 22578rm -f core conftest.err conftest.$ac_objext \
22579 conftest$ac_exeext conftest.$ac_ext
542f9784 22580LIBS=$ac_check_lib_save_LIBS
22581fi
cd9a469c 22582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dlopen" >&5
22583$as_echo "$ac_cv_lib_dld_dlopen" >&6; }
22584if test "x$ac_cv_lib_dld_dlopen" = x""yes; then :
542f9784 22585
22586
cd9a469c 22587$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
542f9784 22588
22589fi
22590
22591fi
22592
22593
22594 # Some library-finding code we stole from Tcl.
22595 #--------------------------------------------------------------------
22596 # Check for the existence of the -lsocket and -lnsl libraries.
22597 # The order here is important, so that they end up in the right
22598 # order in the command line generated by make. Here are some
22599 # special considerations:
22600 # 1. Use "connect" and "accept" to check for -lsocket, and
22601 # "gethostbyname" to check for -lnsl.
22602 # 2. Use each function name only once: can't redo a check because
22603 # autoconf caches the results of the last check and won't redo it.
22604 # 3. Use -lnsl and -lsocket only if they supply procedures that
22605 # aren't already present in the normal libraries. This is because
22606 # IRIX 5.2 has libraries, but they aren't needed and they're
22607 # bogus: they goof up name resolution if used.
22608 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
22609 # To get around this problem, check for both libraries together
22610 # if -lsocket doesn't work by itself.
22611 #--------------------------------------------------------------------
22612
cd9a469c 22613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
22614$as_echo_n "checking for socket libraries... " >&6; }
22615if test "${gcj_cv_lib_sockets+set}" = set; then :
22616 $as_echo_n "(cached) " >&6
542f9784 22617else
22618 gcj_cv_lib_sockets=
22619 gcj_checkBoth=0
22620 unset ac_cv_func_connect
cd9a469c 22621 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
22622if test "x$ac_cv_func_connect" = x""yes; then :
542f9784 22623 gcj_checkSocket=0
22624else
22625 gcj_checkSocket=1
22626fi
22627
22628 if test "$gcj_checkSocket" = 1; then
22629 unset ac_cv_func_connect
cd9a469c 22630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
22631$as_echo_n "checking for main in -lsocket... " >&6; }
22632if test "${ac_cv_lib_socket_main+set}" = set; then :
22633 $as_echo_n "(cached) " >&6
542f9784 22634else
22635 ac_check_lib_save_LIBS=$LIBS
22636LIBS="-lsocket $LIBS"
22637if test x$gcc_no_link = xyes; then
cd9a469c 22638 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 22639fi
cd9a469c 22640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 22641/* end confdefs.h. */
542f9784 22642
542f9784 22643
22644int
22645main ()
22646{
cd9a469c 22647return main ();
542f9784 22648 ;
22649 return 0;
22650}
22651_ACEOF
cd9a469c 22652if ac_fn_c_try_link "$LINENO"; then :
22653 ac_cv_lib_socket_main=yes
542f9784 22654else
cd9a469c 22655 ac_cv_lib_socket_main=no
542f9784 22656fi
cd9a469c 22657rm -f core conftest.err conftest.$ac_objext \
22658 conftest$ac_exeext conftest.$ac_ext
22659LIBS=$ac_check_lib_save_LIBS
542f9784 22660fi
cd9a469c 22661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
22662$as_echo "$ac_cv_lib_socket_main" >&6; }
22663if test "x$ac_cv_lib_socket_main" = x""yes; then :
22664 gcj_cv_lib_sockets="-lsocket"
22665else
22666 gcj_checkBoth=1
22667fi
22668
22669 fi
22670 if test "$gcj_checkBoth" = 1; then
22671 gcj_oldLibs=$LIBS
22672 LIBS="$LIBS -lsocket -lnsl"
22673 unset ac_cv_func_accept
22674 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
22675if test "x$ac_cv_func_accept" = x""yes; then :
22676 gcj_checkNsl=0
22677 gcj_cv_lib_sockets="-lsocket -lnsl"
22678fi
22679
22680 unset ac_cv_func_accept
22681 LIBS=$gcj_oldLibs
22682 fi
22683 unset ac_cv_func_gethostbyname
22684 gcj_oldLibs=$LIBS
22685 LIBS="$LIBS $gcj_cv_lib_sockets"
22686 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22687if test "x$ac_cv_func_gethostbyname" = x""yes; then :
22688
542f9784 22689else
cd9a469c 22690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
22691$as_echo_n "checking for main in -lnsl... " >&6; }
22692if test "${ac_cv_lib_nsl_main+set}" = set; then :
22693 $as_echo_n "(cached) " >&6
542f9784 22694else
22695 ac_check_lib_save_LIBS=$LIBS
22696LIBS="-lnsl $LIBS"
22697if test x$gcc_no_link = xyes; then
cd9a469c 22698 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 22699fi
cd9a469c 22700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 22701/* end confdefs.h. */
22702
22703
22704int
22705main ()
22706{
cd9a469c 22707return main ();
542f9784 22708 ;
22709 return 0;
22710}
22711_ACEOF
cd9a469c 22712if ac_fn_c_try_link "$LINENO"; then :
542f9784 22713 ac_cv_lib_nsl_main=yes
22714else
cd9a469c 22715 ac_cv_lib_nsl_main=no
542f9784 22716fi
cd9a469c 22717rm -f core conftest.err conftest.$ac_objext \
22718 conftest$ac_exeext conftest.$ac_ext
542f9784 22719LIBS=$ac_check_lib_save_LIBS
22720fi
cd9a469c 22721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
22722$as_echo "$ac_cv_lib_nsl_main" >&6; }
22723if test "x$ac_cv_lib_nsl_main" = x""yes; then :
542f9784 22724 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
22725fi
22726
22727fi
22728
22729 unset ac_cv_func_gethostbyname
22730 LIBS=$gcj_oldLIBS
22731
22732fi
cd9a469c 22733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcj_cv_lib_sockets" >&5
22734$as_echo "$gcj_cv_lib_sockets" >&6; }
542f9784 22735 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
22736
22737 if test "$with_system_zlib" = yes; then
cd9a469c 22738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
22739$as_echo_n "checking for deflate in -lz... " >&6; }
22740if test "${ac_cv_lib_z_deflate+set}" = set; then :
22741 $as_echo_n "(cached) " >&6
542f9784 22742else
22743 ac_check_lib_save_LIBS=$LIBS
22744LIBS="-lz $LIBS"
22745if test x$gcc_no_link = xyes; then
cd9a469c 22746 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 22747fi
cd9a469c 22748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 22749/* end confdefs.h. */
22750
cd9a469c 22751/* Override any GCC internal prototype to avoid an error.
22752 Use char because int might match the return type of a GCC
22753 builtin and then its argument prototype would still apply. */
542f9784 22754#ifdef __cplusplus
22755extern "C"
22756#endif
542f9784 22757char deflate ();
22758int
22759main ()
22760{
cd9a469c 22761return deflate ();
542f9784 22762 ;
22763 return 0;
22764}
22765_ACEOF
cd9a469c 22766if ac_fn_c_try_link "$LINENO"; then :
542f9784 22767 ac_cv_lib_z_deflate=yes
22768else
cd9a469c 22769 ac_cv_lib_z_deflate=no
542f9784 22770fi
cd9a469c 22771rm -f core conftest.err conftest.$ac_objext \
22772 conftest$ac_exeext conftest.$ac_ext
542f9784 22773LIBS=$ac_check_lib_save_LIBS
22774fi
cd9a469c 22775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
22776$as_echo "$ac_cv_lib_z_deflate" >&6; }
22777if test "x$ac_cv_lib_z_deflate" = x""yes; then :
542f9784 22778 ZLIBSPEC=-lz
22779else
22780 ZLIBSPEC=
22781fi
22782
22783 fi
22784
22785 # Test for Gtk stuff, if asked for.
22786 if test "$use_gtk_awt" = yes; then
22787
22788 succeeded=no
22789
22790 if test -z "$PKG_CONFIG"; then
22791 # Extract the first word of "pkg-config", so it can be a program name with args.
22792set dummy pkg-config; ac_word=$2
cd9a469c 22793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22794$as_echo_n "checking for $ac_word... " >&6; }
22795if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22796 $as_echo_n "(cached) " >&6
542f9784 22797else
22798 case $PKG_CONFIG in
22799 [\\/]* | ?:[\\/]*)
22800 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22801 ;;
22802 *)
22803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22804for as_dir in $PATH
22805do
22806 IFS=$as_save_IFS
22807 test -z "$as_dir" && as_dir=.
cd9a469c 22808 for ac_exec_ext in '' $ac_executable_extensions; do
22809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 22810 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 22811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 22812 break 2
22813 fi
22814done
cd9a469c 22815 done
22816IFS=$as_save_IFS
542f9784 22817
22818 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22819 ;;
22820esac
22821fi
22822PKG_CONFIG=$ac_cv_path_PKG_CONFIG
542f9784 22823if test -n "$PKG_CONFIG"; then
cd9a469c 22824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22825$as_echo "$PKG_CONFIG" >&6; }
542f9784 22826else
cd9a469c 22827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22828$as_echo "no" >&6; }
542f9784 22829fi
22830
cd9a469c 22831
542f9784 22832 fi
22833
22834 if test "$PKG_CONFIG" = "no" ; then
22835 echo "*** The pkg-config script could not be found. Make sure it is"
22836 echo "*** in your path, or set the PKG_CONFIG environment variable"
22837 echo "*** to the full path to pkg-config."
22838 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22839 else
22840 PKG_CONFIG_MIN_VERSION=0.9.0
22841 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
cd9a469c 22842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.4" >&5
22843$as_echo_n "checking for gtk+-2.0 >= 2.4... " >&6; }
542f9784 22844
22845 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
cd9a469c 22846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22847$as_echo "yes" >&6; }
542f9784 22848 succeeded=yes
22849
cd9a469c 22850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
22851$as_echo_n "checking GTK_CFLAGS... " >&6; }
542f9784 22852 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
cd9a469c 22853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
22854$as_echo "$GTK_CFLAGS" >&6; }
542f9784 22855
cd9a469c 22856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
22857$as_echo_n "checking GTK_LIBS... " >&6; }
542f9784 22858 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
cd9a469c 22859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
22860$as_echo "$GTK_LIBS" >&6; }
542f9784 22861 else
22862 GTK_CFLAGS=""
22863 GTK_LIBS=""
22864 ## If we have a custom action on failure, don't print errors, but
22865 ## do set a variable so people can do so.
22866 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
22867 echo $GTK_PKG_ERRORS
22868 fi
22869
22870
22871
22872 else
22873 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22874 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22875 fi
22876 fi
22877
22878 if test $succeeded = yes; then
22879 :
22880 else
cd9a469c 22881 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
542f9784 22882 fi
22883
22884
22885
22886
22887
22888 succeeded=no
22889
22890 if test -z "$PKG_CONFIG"; then
22891 # Extract the first word of "pkg-config", so it can be a program name with args.
22892set dummy pkg-config; ac_word=$2
cd9a469c 22893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22894$as_echo_n "checking for $ac_word... " >&6; }
22895if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22896 $as_echo_n "(cached) " >&6
542f9784 22897else
22898 case $PKG_CONFIG in
22899 [\\/]* | ?:[\\/]*)
22900 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22901 ;;
22902 *)
22903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22904for as_dir in $PATH
22905do
22906 IFS=$as_save_IFS
22907 test -z "$as_dir" && as_dir=.
cd9a469c 22908 for ac_exec_ext in '' $ac_executable_extensions; do
22909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 22910 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 22911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 22912 break 2
22913 fi
22914done
cd9a469c 22915 done
22916IFS=$as_save_IFS
542f9784 22917
22918 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22919 ;;
22920esac
22921fi
22922PKG_CONFIG=$ac_cv_path_PKG_CONFIG
542f9784 22923if test -n "$PKG_CONFIG"; then
cd9a469c 22924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22925$as_echo "$PKG_CONFIG" >&6; }
542f9784 22926else
cd9a469c 22927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22928$as_echo "no" >&6; }
542f9784 22929fi
22930
cd9a469c 22931
542f9784 22932 fi
22933
22934 if test "$PKG_CONFIG" = "no" ; then
22935 echo "*** The pkg-config script could not be found. Make sure it is"
22936 echo "*** in your path, or set the PKG_CONFIG environment variable"
22937 echo "*** to the full path to pkg-config."
22938 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22939 else
22940 PKG_CONFIG_MIN_VERSION=0.9.0
22941 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
cd9a469c 22942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
22943$as_echo_n "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... " >&6; }
542f9784 22944
22945 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
cd9a469c 22946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22947$as_echo "yes" >&6; }
542f9784 22948 succeeded=yes
22949
cd9a469c 22950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
22951$as_echo_n "checking GLIB_CFLAGS... " >&6; }
542f9784 22952 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
cd9a469c 22953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
22954$as_echo "$GLIB_CFLAGS" >&6; }
542f9784 22955
cd9a469c 22956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
22957$as_echo_n "checking GLIB_LIBS... " >&6; }
542f9784 22958 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
cd9a469c 22959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
22960$as_echo "$GLIB_LIBS" >&6; }
542f9784 22961 else
22962 GLIB_CFLAGS=""
22963 GLIB_LIBS=""
22964 ## If we have a custom action on failure, don't print errors, but
22965 ## do set a variable so people can do so.
22966 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22967 echo $GLIB_PKG_ERRORS
22968 fi
22969
22970
22971
22972 else
22973 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22974 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22975 fi
22976 fi
22977
22978 if test $succeeded = yes; then
22979 :
22980 else
cd9a469c 22981 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
542f9784 22982 fi
22983
22984
22985
22986
22987
22988 succeeded=no
22989
22990 if test -z "$PKG_CONFIG"; then
22991 # Extract the first word of "pkg-config", so it can be a program name with args.
22992set dummy pkg-config; ac_word=$2
cd9a469c 22993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22994$as_echo_n "checking for $ac_word... " >&6; }
22995if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22996 $as_echo_n "(cached) " >&6
542f9784 22997else
22998 case $PKG_CONFIG in
22999 [\\/]* | ?:[\\/]*)
23000 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23001 ;;
23002 *)
23003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23004for as_dir in $PATH
23005do
23006 IFS=$as_save_IFS
23007 test -z "$as_dir" && as_dir=.
cd9a469c 23008 for ac_exec_ext in '' $ac_executable_extensions; do
23009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 23010 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 23011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 23012 break 2
23013 fi
23014done
cd9a469c 23015 done
23016IFS=$as_save_IFS
542f9784 23017
23018 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23019 ;;
23020esac
23021fi
23022PKG_CONFIG=$ac_cv_path_PKG_CONFIG
542f9784 23023if test -n "$PKG_CONFIG"; then
cd9a469c 23024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
23025$as_echo "$PKG_CONFIG" >&6; }
542f9784 23026else
cd9a469c 23027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23028$as_echo "no" >&6; }
542f9784 23029fi
23030
cd9a469c 23031
542f9784 23032 fi
23033
23034 if test "$PKG_CONFIG" = "no" ; then
23035 echo "*** The pkg-config script could not be found. Make sure it is"
23036 echo "*** in your path, or set the PKG_CONFIG environment variable"
23037 echo "*** to the full path to pkg-config."
23038 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23039 else
23040 PKG_CONFIG_MIN_VERSION=0.9.0
23041 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
cd9a469c 23042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libart-2.0 >= 2.1" >&5
23043$as_echo_n "checking for libart-2.0 >= 2.1... " >&6; }
542f9784 23044
23045 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
cd9a469c 23046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23047$as_echo "yes" >&6; }
542f9784 23048 succeeded=yes
23049
cd9a469c 23050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_CFLAGS" >&5
23051$as_echo_n "checking LIBART_CFLAGS... " >&6; }
542f9784 23052 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
cd9a469c 23053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_CFLAGS" >&5
23054$as_echo "$LIBART_CFLAGS" >&6; }
542f9784 23055
cd9a469c 23056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_LIBS" >&5
23057$as_echo_n "checking LIBART_LIBS... " >&6; }
542f9784 23058 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
cd9a469c 23059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_LIBS" >&5
23060$as_echo "$LIBART_LIBS" >&6; }
542f9784 23061 else
23062 LIBART_CFLAGS=""
23063 LIBART_LIBS=""
23064 ## If we have a custom action on failure, don't print errors, but
23065 ## do set a variable so people can do so.
23066 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
23067 echo $LIBART_PKG_ERRORS
23068 fi
23069
23070
23071
23072 else
23073 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23074 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23075 fi
23076 fi
23077
23078 if test $succeeded = yes; then
23079 :
23080 else
cd9a469c 23081 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
542f9784 23082 fi
23083
23084
23085
23086
23087 # We require the XTest Extension to support java.awt.Robot.
cd9a469c 23088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
23089$as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
23090if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
23091 $as_echo_n "(cached) " >&6
542f9784 23092else
23093 ac_check_lib_save_LIBS=$LIBS
23094LIBS="-lXtst ${X_LIBS} $LIBS"
23095if test x$gcc_no_link = xyes; then
cd9a469c 23096 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 23097fi
cd9a469c 23098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 23099/* end confdefs.h. */
23100
cd9a469c 23101/* Override any GCC internal prototype to avoid an error.
23102 Use char because int might match the return type of a GCC
23103 builtin and then its argument prototype would still apply. */
542f9784 23104#ifdef __cplusplus
23105extern "C"
23106#endif
542f9784 23107char XTestQueryExtension ();
23108int
23109main ()
23110{
cd9a469c 23111return XTestQueryExtension ();
542f9784 23112 ;
23113 return 0;
23114}
23115_ACEOF
cd9a469c 23116if ac_fn_c_try_link "$LINENO"; then :
542f9784 23117 ac_cv_lib_Xtst_XTestQueryExtension=yes
23118else
cd9a469c 23119 ac_cv_lib_Xtst_XTestQueryExtension=no
542f9784 23120fi
cd9a469c 23121rm -f core conftest.err conftest.$ac_objext \
23122 conftest$ac_exeext conftest.$ac_ext
542f9784 23123LIBS=$ac_check_lib_save_LIBS
23124fi
cd9a469c 23125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
23126$as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
23127if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
542f9784 23128 true
23129else
cd9a469c 23130 as_fn_error "libXtst not found, required by java.awt.Robot" "$LINENO" 5
542f9784 23131fi
23132
23133 fi
23134
23135 # On Solaris, and maybe other architectures, the Boehm collector
23136 # requires -ldl.
23137 if test "$GC" = boehm; then
94d11afb 23138 case "${host}" in
d947fb63 23139 *-*-darwin*)
bd785057 23140 ;;
94d11afb 23141 *)
cd9a469c 23142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
23143$as_echo_n "checking for main in -ldl... " >&6; }
23144if test "${ac_cv_lib_dl_main+set}" = set; then :
23145 $as_echo_n "(cached) " >&6
542f9784 23146else
23147 ac_check_lib_save_LIBS=$LIBS
23148LIBS="-ldl $LIBS"
23149if test x$gcc_no_link = xyes; then
cd9a469c 23150 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 23151fi
cd9a469c 23152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 23153/* end confdefs.h. */
23154
23155
23156int
23157main ()
23158{
cd9a469c 23159return main ();
542f9784 23160 ;
23161 return 0;
23162}
23163_ACEOF
cd9a469c 23164if ac_fn_c_try_link "$LINENO"; then :
542f9784 23165 ac_cv_lib_dl_main=yes
23166else
cd9a469c 23167 ac_cv_lib_dl_main=no
542f9784 23168fi
cd9a469c 23169rm -f core conftest.err conftest.$ac_objext \
23170 conftest$ac_exeext conftest.$ac_ext
542f9784 23171LIBS=$ac_check_lib_save_LIBS
23172fi
cd9a469c 23173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
23174$as_echo "$ac_cv_lib_dl_main" >&6; }
23175if test "x$ac_cv_lib_dl_main" = x""yes; then :
542f9784 23176 SYSTEMSPEC="$SYSTEMSPEC -ldl"
23177fi
23178
bd785057 23179 ;;
94d11afb 23180 esac
542f9784 23181 fi
23182fi
23183
23184# Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
23185case $build in
23186 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
23187 *) CLASSPATH_SEPARATOR=':' ;;
23188esac
23189
23190
23191# We must search the source tree for java.lang, since we still don't
23192# have libgcj.jar nor java/lang/*.class
23193GCJ_SAVE_CPPFLAGS=$CPPFLAGS
23194CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
23195
23196# Since some classes depend on this one, we need its source available
23197# before we can do any GCJ compilation test :-(
23198if test ! -f gnu/classpath/Configuration.java; then
23199 test -d gnu || mkdir gnu
23200 test -d gnu/classpath || mkdir gnu/classpath
23201 # Note that it is not crucial that all the values here be correct.
7d89f9e4 23202 sed -e "s,@prefix@,$expanded_prefix," \
542f9784 23203 -e "s,@VERSION@,$VERSION," \
23204 -e "s,@LIBDEBUG@,false," \
23205 -e "s,@INIT_LOAD_LIBRARY@,false," \
23206 -e "s,@@,$LIBGCJDEBUG," \
23207 -e "s,@default_toolkit@,$TOOLKIT," \
23208 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
23209 -e "s,@GTK_CAIRO_ENABLED@,false," \
23210 -e "s,@ECJ_JAR@,," \
2bc04335 23211 -e "s,@WANT_NATIVE_BIG_INTEGER@,false," \
542f9784 23212 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
23213 > gnu/classpath/Configuration.java
23214 # We do not want to redirect the output of the grep below to /dev/null,
23215 # but we add /dev/null to the input list so that grep will print the
23216 # filename of Configuration.java in case it finds any matches.
23217 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
cd9a469c 23218 as_fn_error "configure.ac is missing the substitutions above" "$LINENO" 5
542f9784 23219 fi
23220fi
23221
23222
e0934084 23223if test -n "$ac_tool_prefix"; then
23224 for ac_prog in gcj
23225 do
23226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23227set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cd9a469c 23228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23229$as_echo_n "checking for $ac_word... " >&6; }
23230if test "${ac_cv_prog_GCJ+set}" = set; then :
23231 $as_echo_n "(cached) " >&6
542f9784 23232else
23233 if test -n "$GCJ"; then
23234 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
23235else
23236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23237for as_dir in $PATH
23238do
23239 IFS=$as_save_IFS
23240 test -z "$as_dir" && as_dir=.
cd9a469c 23241 for ac_exec_ext in '' $ac_executable_extensions; do
23242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
e0934084 23243 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
cd9a469c 23244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 23245 break 2
23246 fi
23247done
cd9a469c 23248 done
23249IFS=$as_save_IFS
542f9784 23250
23251fi
23252fi
23253GCJ=$ac_cv_prog_GCJ
23254if test -n "$GCJ"; then
cd9a469c 23255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
23256$as_echo "$GCJ" >&6; }
542f9784 23257else
cd9a469c 23258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23259$as_echo "no" >&6; }
542f9784 23260fi
23261
cd9a469c 23262
e0934084 23263 test -n "$GCJ" && break
23264 done
23265fi
23266if test -z "$GCJ"; then
23267 ac_ct_GCJ=$GCJ
23268 for ac_prog in gcj
23269do
23270 # Extract the first word of "$ac_prog", so it can be a program name with args.
23271set dummy $ac_prog; ac_word=$2
23272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23273$as_echo_n "checking for $ac_word... " >&6; }
23274if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
23275 $as_echo_n "(cached) " >&6
23276else
23277 if test -n "$ac_ct_GCJ"; then
23278 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
23279else
23280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23281for as_dir in $PATH
23282do
23283 IFS=$as_save_IFS
23284 test -z "$as_dir" && as_dir=.
23285 for ac_exec_ext in '' $ac_executable_extensions; do
23286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23287 ac_cv_prog_ac_ct_GCJ="$ac_prog"
23288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23289 break 2
23290 fi
23291done
23292 done
23293IFS=$as_save_IFS
23294
23295fi
23296fi
23297ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
23298if test -n "$ac_ct_GCJ"; then
23299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
23300$as_echo "$ac_ct_GCJ" >&6; }
23301else
23302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23303$as_echo "no" >&6; }
23304fi
23305
23306
23307 test -n "$ac_ct_GCJ" && break
542f9784 23308done
e0934084 23309
23310 if test "x$ac_ct_GCJ" = x; then
23311 GCJ="gcj"
23312 else
23313 case $cross_compiling:$ac_tool_warned in
23314yes:)
23315{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23316$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23317ac_tool_warned=yes ;;
23318esac
23319 GCJ=$ac_ct_GCJ
23320 fi
23321fi
542f9784 23322
cd9a469c 23323test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
542f9784 23324if test "x${GCJFLAGS-unset}" = xunset; then
23325 GCJFLAGS="-g -O2"
23326fi
23327
23328
23329depcc="$GCJ" am_compiler_list='gcc3 gcc'
23330
cd9a469c 23331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23332$as_echo_n "checking dependency style of $depcc... " >&6; }
23333if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
23334 $as_echo_n "(cached) " >&6
542f9784 23335else
23336 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23337 # We make a subdir and do the tests there. Otherwise we can end up
23338 # making bogus files that we don't know about and never remove. For
23339 # instance it was reported that on HP-UX the gcc test will end up
23340 # making a dummy file named `D' -- because `-MD' means `put the output
23341 # in D'.
23342 mkdir conftest.dir
23343 # Copy depcomp to subdir because otherwise we won't find it if we're
23344 # using a relative directory.
23345 cp "$am_depcomp" conftest.dir
23346 cd conftest.dir
23347 # We will build objects and dependencies in a subdirectory because
23348 # it helps to detect inapplicable dependency modes. For instance
23349 # both Tru64's cc and ICC support -MD to output dependencies as a
23350 # side effect of compilation, but ICC will put the dependencies in
23351 # the current directory while Tru64 will put them in the object
23352 # directory.
23353 mkdir sub
23354
23355 am_cv_GCJ_dependencies_compiler_type=none
23356 if test "$am_compiler_list" = ""; then
23357 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23358 fi
cd9a469c 23359 am__universal=false
23360
23361
542f9784 23362 for depmode in $am_compiler_list; do
23363 # Setup a source with many dependencies, because some compilers
23364 # like to wrap large dependency lists on column 80 (with \), and
23365 # we should not choose a depcomp mode which is confused by this.
23366 #
23367 # We need to recreate these files for each test, as the compiler may
23368 # overwrite some of them when testing with obscure command lines.
23369 # This happens at least with the AIX C compiler.
23370 : > sub/conftest.c
23371 for i in 1 2 3 4 5 6; do
23372 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23373 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23374 # Solaris 8's {/usr,}/bin/sh.
23375 touch sub/conftst$i.h
23376 done
23377 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23378
cd9a469c 23379 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23380 # mode. It turns out that the SunPro C++ compiler does not properly
23381 # handle `-M -o', and we need to detect this. Also, some Intel
23382 # versions had trouble with output in subdirs
23383 am__obj=sub/conftest.${OBJEXT-o}
23384 am__minus_obj="-o $am__obj"
542f9784 23385 case $depmode in
cd9a469c 23386 gcc)
23387 # This depmode causes a compiler race in universal mode.
23388 test "$am__universal" = false || continue
23389 ;;
542f9784 23390 nosideeffect)
23391 # after this tag, mechanisms are not by side-effect, so they'll
23392 # only be used when explicitly requested
23393 if test "x$enable_dependency_tracking" = xyes; then
23394 continue
23395 else
23396 break
23397 fi
23398 ;;
cd9a469c 23399 msvisualcpp | msvcmsys)
23400 # This compiler won't grok `-c -o', but also, the minuso test has
23401 # not run yet. These depmodes are late enough in the game, and
23402 # so weak that their functioning should not be impacted.
23403 am__obj=conftest.${OBJEXT-o}
23404 am__minus_obj=
23405 ;;
542f9784 23406 none) break ;;
23407 esac
542f9784 23408 if depmode=$depmode \
cd9a469c 23409 source=sub/conftest.c object=$am__obj \
542f9784 23410 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
cd9a469c 23411 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
542f9784 23412 >/dev/null 2>conftest.err &&
cd9a469c 23413 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
542f9784 23414 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
cd9a469c 23415 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
542f9784 23416 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23417 # icc doesn't choke on unknown options, it will just issue warnings
23418 # or remarks (even with -Werror). So we grep stderr for any message
23419 # that says an option was ignored or not supported.
23420 # When given -MP, icc 7.0 and 7.1 complain thusly:
23421 # icc: Command line warning: ignoring option '-M'; no argument required
23422 # The diagnosis changed in icc 8.0:
23423 # icc: Command line remark: option '-MP' not supported
23424 if (grep 'ignoring option' conftest.err ||
23425 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23426 am_cv_GCJ_dependencies_compiler_type=$depmode
23427 break
23428 fi
23429 fi
23430 done
23431
23432 cd ..
23433 rm -rf conftest.dir
23434else
23435 am_cv_GCJ_dependencies_compiler_type=none
23436fi
23437
23438fi
cd9a469c 23439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
23440$as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
542f9784 23441GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
23442
cd9a469c 23443 if
542f9784 23444 test "x$enable_dependency_tracking" != xno \
23445 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
23446 am__fastdepGCJ_TRUE=
23447 am__fastdepGCJ_FALSE='#'
23448else
cd9a469c 23449 am__fastdepGCJ_TRUE='#'
23450 am__fastdepGCJ_FALSE=
542f9784 23451fi
542f9784 23452
542f9784 23453
cd9a469c 23454
23455
23456# Now remove it.
23457rm -f gnu/classpath/Configuration.java
23458
23459CPPFLAGS=$GCJ_SAVE_CPPFLAGS
23460
23461# The cast to long int works around a bug in the HP C Compiler
23462# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23463# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23464# This bug is HP SR number 8606223364.
23465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
23466$as_echo_n "checking size of void *... " >&6; }
23467if test "${ac_cv_sizeof_void_p+set}" = set; then :
23468 $as_echo_n "(cached) " >&6
542f9784 23469else
cd9a469c 23470 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
542f9784 23471
542f9784 23472else
cd9a469c 23473 if test "$ac_cv_type_void_p" = yes; then
23474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23475$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23476{ as_fn_set_status 77
23477as_fn_error "cannot compute sizeof (void *)
23478See \`config.log' for more details." "$LINENO" 5; }; }
23479 else
23480 ac_cv_sizeof_void_p=0
23481 fi
542f9784 23482fi
cd9a469c 23483
542f9784 23484fi
cd9a469c 23485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
23486$as_echo "$ac_cv_sizeof_void_p" >&6; }
23487
23488
23489
542f9784 23490cat >>confdefs.h <<_ACEOF
23491#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23492_ACEOF
23493
23494
23495
cd9a469c 23496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23497$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23498if test "${ac_cv_c_bigendian+set}" = set; then :
23499 $as_echo_n "(cached) " >&6
542f9784 23500else
cd9a469c 23501 ac_cv_c_bigendian=unknown
23502 # See if we're dealing with a universal compiler.
23503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23504/* end confdefs.h. */
23505#ifndef __APPLE_CC__
23506 not a universal capable compiler
23507 #endif
23508 typedef int dummy;
23509
23510_ACEOF
23511if ac_fn_c_try_compile "$LINENO"; then :
23512
23513 # Check for potential -arch flags. It is not universal unless
23514 # there are at least two -arch flags with different values.
23515 ac_arch=
23516 ac_prev=
23517 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23518 if test -n "$ac_prev"; then
23519 case $ac_word in
23520 i?86 | x86_64 | ppc | ppc64)
23521 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23522 ac_arch=$ac_word
23523 else
23524 ac_cv_c_bigendian=universal
23525 break
23526 fi
23527 ;;
23528 esac
23529 ac_prev=
23530 elif test "x$ac_word" = "x-arch"; then
23531 ac_prev=arch
23532 fi
23533 done
23534fi
23535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23536 if test $ac_cv_c_bigendian = unknown; then
23537 # See if sys/param.h defines the BYTE_ORDER macro.
23538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 23539/* end confdefs.h. */
23540#include <sys/types.h>
cd9a469c 23541 #include <sys/param.h>
542f9784 23542
23543int
23544main ()
23545{
cd9a469c 23546#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23547 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23548 && LITTLE_ENDIAN)
23549 bogus endian macros
23550 #endif
542f9784 23551
23552 ;
23553 return 0;
23554}
23555_ACEOF
cd9a469c 23556if ac_fn_c_try_compile "$LINENO"; then :
542f9784 23557 # It does; now see whether it defined to BIG_ENDIAN or not.
cd9a469c 23558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 23559/* end confdefs.h. */
23560#include <sys/types.h>
cd9a469c 23561 #include <sys/param.h>
542f9784 23562
23563int
23564main ()
23565{
23566#if BYTE_ORDER != BIG_ENDIAN
cd9a469c 23567 not big endian
23568 #endif
542f9784 23569
23570 ;
23571 return 0;
23572}
23573_ACEOF
cd9a469c 23574if ac_fn_c_try_compile "$LINENO"; then :
542f9784 23575 ac_cv_c_bigendian=yes
23576else
cd9a469c 23577 ac_cv_c_bigendian=no
542f9784 23578fi
cd9a469c 23579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23580fi
23581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23582 fi
23583 if test $ac_cv_c_bigendian = unknown; then
23584 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23586/* end confdefs.h. */
23587#include <limits.h>
542f9784 23588
cd9a469c 23589int
23590main ()
23591{
23592#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23593 bogus endian macros
23594 #endif
23595
23596 ;
23597 return 0;
23598}
542f9784 23599_ACEOF
cd9a469c 23600if ac_fn_c_try_compile "$LINENO"; then :
23601 # It does; now see whether it defined to _BIG_ENDIAN or not.
23602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 23603/* end confdefs.h. */
cd9a469c 23604#include <limits.h>
23605
542f9784 23606int
23607main ()
23608{
cd9a469c 23609#ifndef _BIG_ENDIAN
23610 not big endian
23611 #endif
23612
542f9784 23613 ;
23614 return 0;
23615}
23616_ACEOF
cd9a469c 23617if ac_fn_c_try_compile "$LINENO"; then :
542f9784 23618 ac_cv_c_bigendian=yes
cd9a469c 23619else
23620 ac_cv_c_bigendian=no
542f9784 23621fi
cd9a469c 23622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 23623fi
cd9a469c 23624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23625 fi
23626 if test $ac_cv_c_bigendian = unknown; then
23627 # Compile a test program.
23628 if test "$cross_compiling" = yes; then :
23629 # Try to guess by grepping values from an object file.
23630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23631/* end confdefs.h. */
23632short int ascii_mm[] =
23633 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23634 short int ascii_ii[] =
23635 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23636 int use_ascii (int i) {
23637 return ascii_mm[i] + ascii_ii[i];
23638 }
23639 short int ebcdic_ii[] =
23640 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23641 short int ebcdic_mm[] =
23642 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23643 int use_ebcdic (int i) {
23644 return ebcdic_mm[i] + ebcdic_ii[i];
23645 }
23646 extern int foo;
542f9784 23647
cd9a469c 23648int
23649main ()
23650{
23651return use_ascii (foo) == use_ebcdic (foo);
23652 ;
23653 return 0;
23654}
23655_ACEOF
23656if ac_fn_c_try_compile "$LINENO"; then :
23657 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23658 ac_cv_c_bigendian=yes
23659 fi
23660 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23661 if test "$ac_cv_c_bigendian" = unknown; then
23662 ac_cv_c_bigendian=no
23663 else
23664 # finding both strings is unlikely to happen, but who knows?
23665 ac_cv_c_bigendian=unknown
23666 fi
23667 fi
542f9784 23668fi
cd9a469c 23669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 23670else
cd9a469c 23671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 23672/* end confdefs.h. */
cd9a469c 23673$ac_includes_default
542f9784 23674int
23675main ()
23676{
cd9a469c 23677
23678 /* Are we little or big endian? From Harbison&Steele. */
23679 union
23680 {
23681 long int l;
23682 char c[sizeof (long int)];
23683 } u;
23684 u.l = 1;
23685 return u.c[sizeof (long int) - 1] == 1;
23686
23687 ;
23688 return 0;
542f9784 23689}
23690_ACEOF
cd9a469c 23691if ac_fn_c_try_run "$LINENO"; then :
542f9784 23692 ac_cv_c_bigendian=no
23693else
cd9a469c 23694 ac_cv_c_bigendian=yes
542f9784 23695fi
cd9a469c 23696rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23697 conftest.$ac_objext conftest.beam conftest.$ac_ext
542f9784 23698fi
cd9a469c 23699
23700 fi
542f9784 23701fi
cd9a469c 23702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23703$as_echo "$ac_cv_c_bigendian" >&6; }
23704 case $ac_cv_c_bigendian in #(
23705 yes)
23706 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23707;; #(
23708 no)
23709 ;; #(
23710 universal)
542f9784 23711
cd9a469c 23712$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23713
23714 ;; #(
23715 *)
23716 as_fn_error "unknown endianness
23717 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23718 esac
542f9784 23719
23720
23721ZLIBS=
23722SYS_ZLIBS=
23723ZINCS=
23724
23725if test -z "$ZLIBSPEC"; then
23726 # Use zlib from the GCC tree.
23727 ZINCS='-I$(top_srcdir)/../zlib'
23728 ZLIBS=../zlib/libzgcj_convenience.la
23729else
23730 # System's zlib.
23731 SYS_ZLIBS="$ZLIBSPEC"
23732fi
23733
23734
23735
23736
23737
23738
23739
23740
23741
23742
cd9a469c 23743 if test "$NATIVE" = yes; then
542f9784 23744 NATIVE_TRUE=
23745 NATIVE_FALSE='#'
23746else
23747 NATIVE_TRUE='#'
23748 NATIVE_FALSE=
23749fi
23750
cd9a469c 23751 if test "$enable_shared" = yes; then
542f9784 23752 ENABLE_SHARED_TRUE=
23753 ENABLE_SHARED_FALSE='#'
23754else
23755 ENABLE_SHARED_TRUE='#'
23756 ENABLE_SHARED_FALSE=
23757fi
23758
cd9a469c 23759 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
542f9784 23760 NEEDS_DATA_START_TRUE=
23761 NEEDS_DATA_START_FALSE='#'
23762else
23763 NEEDS_DATA_START_TRUE='#'
23764 NEEDS_DATA_START_FALSE=
23765fi
23766
cd9a469c 23767 if test -z "${with_multisubdir}"; then
3cc72d26 23768 INSTALL_BINARIES_TRUE=
23769 INSTALL_BINARIES_FALSE='#'
23770else
23771 INSTALL_BINARIES_TRUE='#'
23772 INSTALL_BINARIES_FALSE=
23773fi
23774
23775
23776
542f9784 23777# Process the option "--enable-version-specific-runtime-libs"
23778# Calculate toolexeclibdir
23779case ${version_specific_libs} in
23780 yes)
23781 # Need the gcc compiler version to know where to install libraries
23782 # and header files if --enable-version-specific-runtime-libs option
23783 # is selected.
23784 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
23785 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
23786 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
23787 toolexeclibdir=$toolexecmainlibdir
23788 ;;
23789 no)
23790 if test -n "$with_cross_host" &&
23791 test x"$with_cross_host" != x"no"; then
23792 # Install a library built with a cross compiler in tooldir, not libdir.
23793 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
23794 toolexecmainlibdir='$(toolexecdir)/lib'
23795 else
23796 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
23797 toolexecmainlibdir='$(libdir)'
23798 fi
23799 multi_os_directory=`$CC -print-multi-os-directory`
23800 case $multi_os_directory in
23801 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
23802 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
23803 esac
23804 ;;
23805esac
23806
23807
23808
23809
73a27b1a 23810# Determine gcj and libgcj version number.
4fd7cc45 23811gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
73a27b1a 23812libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
23813GCJVERSION=$gcjversion
23814
23815
23816cat >>confdefs.h <<_ACEOF
23817#define GCJVERSION "$GCJVERSION"
23818_ACEOF
23819
23820
542f9784 23821# Determine where the standard .db file and GNU Classpath JNI
23822# libraries are found.
a1b6c3e1 23823gcjsubdir=gcj-$gcjversion-$libgcj_soversion
542f9784 23824multi_os_directory=`$CC -print-multi-os-directory`
23825case $multi_os_directory in
23826 .)
a1b6c3e1 23827 dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
542f9784 23828 ;;
23829 *)
a1b6c3e1 23830 dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
542f9784 23831 ;;
23832esac
23833
542f9784 23834
23835
4aba1ac0 23836
cd9a469c 23837$as_echo "#define JV_VERSION \"1.5.0\"" >>confdefs.h
542f9784 23838
23839
cd9a469c 23840$as_echo "#define JV_API_VERSION \"1.5\"" >>confdefs.h
542f9784 23841
23842
23843
23844case "${with_gxx_include_dir}" in
23845 yes)
cd9a469c 23846 as_fn_error "--with-gxx-include-dir=[dir] requires a directory" "$LINENO" 5
542f9784 23847 ;;
23848 no | "")
23849 case "${enable_version_specific_runtime_libs}" in
23850 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
23851 *)
23852 libstdcxx_incdir='c++/$(gcc_version)'
23853 gxx_include_dir='include/$(libstdcxx_incdir)'
23854 if test -n "$with_cross_host" &&
23855 test x"$with_cross_host" != x"no"; then
23856 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
23857 else
23858 gxx_include_dir='${prefix}/'"$gxx_include_dir"
23859 fi;;
23860 esac ;;
23861 *) gxx_include_dir=${with_gxx_include_dir} ;;
23862esac
23863
23864
cd9a469c 23865
23866
23867# We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
23868# On that system, sys/ioctl.h will not include sys/filio.h unless
23869# BSD_COMP is defined; just including sys/filio.h is simpler.
23870# We avoid AC_HEADER_DIRENT since we really only care about dirent.h
23871# for now. If you change this, you also must update natFile.cc.
5641963c 23872for ac_header in unistd.h sys/time.h sys/types.h fcntl.h \
cd9a469c 23873 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
20c1cf37 23874 sys/socket.h netinet/in.h arpa/inet.h netdb.h \
cd9a469c 23875 pwd.h sys/config.h stdint.h langinfo.h locale.h \
23876 dirent.h sys/rw_lock.h magic.h ifaddrs.h
23877do :
23878 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23879ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23880eval as_val=\$$as_ac_Header
23881 if test "x$as_val" = x""yes; then :
23882 cat >>confdefs.h <<_ACEOF
23883#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
542f9784 23884_ACEOF
542f9784 23885
542f9784 23886fi
542f9784 23887
cd9a469c 23888done
542f9784 23889
20c1cf37 23890
23891# sys/socket.h is a prerequisite for net/if.h on Solaris.
23892for ac_header in net/if.h
23893do :
23894 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
23895#ifdef HAVE_SYS_SOCKET_H
23896#include <sys/socket.h>
23897#endif
23898
23899"
23900if test "x$ac_cv_header_net_if_h" = x""yes; then :
23901 cat >>confdefs.h <<_ACEOF
23902#define HAVE_NET_IF_H 1
23903_ACEOF
23904
23905fi
23906
23907done
23908
23909
cd9a469c 23910for ac_header in inttypes.h
23911do :
23912 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
23913if test "x$ac_cv_header_inttypes_h" = x""yes; then :
542f9784 23914 cat >>confdefs.h <<_ACEOF
cd9a469c 23915#define HAVE_INTTYPES_H 1
542f9784 23916_ACEOF
23917
23918
cd9a469c 23919$as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
542f9784 23920
23921
cd9a469c 23922$as_echo "#define JV_HAVE_INTTYPES_H 1" >>confdefs.h
542f9784 23923
23924
23925fi
23926
23927done
23928
23929
cd9a469c 23930ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23931if test "x$ac_cv_type_ssize_t" = x""yes; then :
542f9784 23932
542f9784 23933else
23934
23935cat >>confdefs.h <<_ACEOF
23936#define ssize_t int
23937_ACEOF
23938
23939fi
23940
cd9a469c 23941ac_fn_c_check_type "$LINENO" "magic_t" "ac_cv_type_magic_t" "
542f9784 23942#ifdef HAVE_MAGIC_H
23943#include <magic.h>
23944#endif
cd9a469c 23945"
23946if test "x$ac_cv_type_magic_t" = x""yes; then :
542f9784 23947
542f9784 23948
cd9a469c 23949$as_echo "#define HAVE_MAGIC_T 1" >>confdefs.h
542f9784 23950
23951fi
23952
23953
cd9a469c 23954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5
23955$as_echo_n "checking for in_addr_t... " >&6; }
23956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 23957/* end confdefs.h. */
23958#include <sys/types.h>
23959#if STDC_HEADERS
23960#include <stdlib.h>
23961#include <stddef.h>
23962#endif
23963#if HAVE_NETINET_IN_H
23964#include <netinet/in.h>
23965#endif
23966int
23967main ()
23968{
23969in_addr_t foo;
23970 ;
23971 return 0;
23972}
23973_ACEOF
cd9a469c 23974if ac_fn_c_try_compile "$LINENO"; then :
542f9784 23975
cd9a469c 23976$as_echo "#define HAVE_IN_ADDR_T 1" >>confdefs.h
542f9784 23977
cd9a469c 23978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23979$as_echo "yes" >&6; }
542f9784 23980else
cd9a469c 23981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23982$as_echo "no" >&6; }
542f9784 23983fi
cd9a469c 23984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 23985
cd9a469c 23986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ip_mreq is in netinet/in.h" >&5
23987$as_echo_n "checking whether struct ip_mreq is in netinet/in.h... " >&6; }
23988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 23989/* end confdefs.h. */
23990#include <netinet/in.h>
23991int
23992main ()
23993{
23994struct ip_mreq mreq;
23995 ;
23996 return 0;
23997}
23998_ACEOF
cd9a469c 23999if ac_fn_c_try_compile "$LINENO"; then :
542f9784 24000
cd9a469c 24001$as_echo "#define HAVE_STRUCT_IP_MREQ 1" >>confdefs.h
542f9784 24002
cd9a469c 24003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24004$as_echo "yes" >&6; }
542f9784 24005else
cd9a469c 24006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24007$as_echo "no" >&6; }
542f9784 24008fi
cd9a469c 24009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 24010
cd9a469c 24011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ipv6_mreq is in netinet/in.h" >&5
24012$as_echo_n "checking whether struct ipv6_mreq is in netinet/in.h... " >&6; }
24013cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 24014/* end confdefs.h. */
24015#include <netinet/in.h>
24016int
24017main ()
24018{
24019struct ipv6_mreq mreq6;
24020 ;
24021 return 0;
24022}
24023_ACEOF
cd9a469c 24024if ac_fn_c_try_compile "$LINENO"; then :
542f9784 24025
cd9a469c 24026$as_echo "#define HAVE_STRUCT_IPV6_MREQ 1" >>confdefs.h
542f9784 24027
cd9a469c 24028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24029$as_echo "yes" >&6; }
542f9784 24030else
cd9a469c 24031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24032$as_echo "no" >&6; }
542f9784 24033fi
cd9a469c 24034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 24035
cd9a469c 24036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
24037$as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
24038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 24039/* end confdefs.h. */
24040#include <netinet/in.h>
24041int
24042main ()
24043{
24044struct sockaddr_in6 addr6;
24045 ;
24046 return 0;
24047}
24048_ACEOF
cd9a469c 24049if ac_fn_c_try_compile "$LINENO"; then :
542f9784 24050
cd9a469c 24051$as_echo "#define HAVE_INET6 1" >>confdefs.h
542f9784 24052
cd9a469c 24053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24054$as_echo "yes" >&6; }
542f9784 24055else
cd9a469c 24056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24057$as_echo "no" >&6; }
542f9784 24058fi
cd9a469c 24059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 24060
cd9a469c 24061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
24062$as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
24063cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 24064/* end confdefs.h. */
24065#define _POSIX_PII_SOCKET
24066#include <sys/types.h>
24067#include <sys/socket.h>
24068int
24069main ()
24070{
24071socklen_t x = 5;
24072 ;
24073 return 0;
24074}
24075_ACEOF
cd9a469c 24076if ac_fn_c_try_compile "$LINENO"; then :
542f9784 24077
cd9a469c 24078$as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
542f9784 24079
cd9a469c 24080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24081$as_echo "yes" >&6; }
542f9784 24082else
cd9a469c 24083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24084$as_echo "no" >&6; }
542f9784 24085fi
cd9a469c 24086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 24087
cd9a469c 24088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
24089$as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
24090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 24091/* end confdefs.h. */
24092#include <time.h>
24093int
24094main ()
24095{
24096struct tm tim; tim.tm_gmtoff = 0;
24097 ;
24098 return 0;
24099}
24100_ACEOF
cd9a469c 24101if ac_fn_c_try_compile "$LINENO"; then :
542f9784 24102
cd9a469c 24103$as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
542f9784 24104
cd9a469c 24105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24106$as_echo "yes" >&6; }
542f9784 24107else
cd9a469c 24108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24109$as_echo "no" >&6; }
24110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
24111$as_echo_n "checking for global timezone variable... " >&6; }
24112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 24113/* end confdefs.h. */
24114#include <time.h>
24115int
24116main ()
24117{
24118void i(){long z2 = 2*timezone;}
24119 ;
24120 return 0;
24121}
24122_ACEOF
cd9a469c 24123if ac_fn_c_try_compile "$LINENO"; then :
542f9784 24124
cd9a469c 24125$as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
542f9784 24126
cd9a469c 24127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24128$as_echo "yes" >&6; }
542f9784 24129else
cd9a469c 24130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24131$as_echo "no" >&6; }
24132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
24133$as_echo_n "checking for global _timezone variable... " >&6; }
24134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 24135/* end confdefs.h. */
24136#include <time.h>
24137int
24138main ()
24139{
24140long z2 = _timezone;
24141 ;
24142 return 0;
24143}
24144_ACEOF
cd9a469c 24145if ac_fn_c_try_compile "$LINENO"; then :
542f9784 24146
cd9a469c 24147$as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
542f9784 24148
cd9a469c 24149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24150$as_echo "yes" >&6; }
542f9784 24151else
cd9a469c 24152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24153$as_echo "no" >&6; }
542f9784 24154fi
cd9a469c 24155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 24156fi
cd9a469c 24157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 24158fi
cd9a469c 24159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 24160
24161for ac_prog in perl
24162do
24163 # Extract the first word of "$ac_prog", so it can be a program name with args.
24164set dummy $ac_prog; ac_word=$2
cd9a469c 24165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24166$as_echo_n "checking for $ac_word... " >&6; }
24167if test "${ac_cv_prog_PERL+set}" = set; then :
24168 $as_echo_n "(cached) " >&6
542f9784 24169else
24170 if test -n "$PERL"; then
24171 ac_cv_prog_PERL="$PERL" # Let the user override the test.
24172else
24173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24174for as_dir in $PATH
24175do
24176 IFS=$as_save_IFS
24177 test -z "$as_dir" && as_dir=.
cd9a469c 24178 for ac_exec_ext in '' $ac_executable_extensions; do
24179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 24180 ac_cv_prog_PERL="$ac_prog"
cd9a469c 24181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 24182 break 2
24183 fi
24184done
cd9a469c 24185 done
24186IFS=$as_save_IFS
542f9784 24187
24188fi
24189fi
24190PERL=$ac_cv_prog_PERL
24191if test -n "$PERL"; then
cd9a469c 24192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
24193$as_echo "$PERL" >&6; }
542f9784 24194else
cd9a469c 24195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24196$as_echo "no" >&6; }
542f9784 24197fi
24198
cd9a469c 24199
542f9784 24200 test -n "$PERL" && break
24201done
24202test -n "$PERL" || PERL="false"
24203
24204
24205SYSDEP_SOURCES=
24206SIGNAL_HANDLER_AUX=
24207
24208case "${host}" in
5641963c 24209 *-*-solaris2*)
dab866f9 24210 SIGNAL_HANDLER=include/posix-signal.h
24211 ;;
542f9784 24212 i?86-*-linux*)
24213 SIGNAL_HANDLER=include/i386-signal.h
e8b75165 24214 SIGNAL_HANDLER_AUX=include/x86_64-signal.h
542f9784 24215 ;;
542f9784 24216# ia64-*)
24217# SYSDEP_SOURCES=sysdep/ia64.c
24218# test -d sysdep || mkdir sysdep
24219# ;;
24220 hppa*-*-linux*)
24221 SIGNAL_HANDLER=include/pa-signal.h
24222 ;;
24223 hppa*-hp-hpux*)
24224 SIGNAL_HANDLER=include/hppa-signal.h
24225 ;;
24226 ia64-*-linux*)
24227 SIGNAL_HANDLER=include/dwarf2-signal.h
24228 ;;
24229 powerpc*-*-linux*)
24230 SIGNAL_HANDLER=include/powerpc-signal.h
24231 ;;
24232 alpha*-*-linux*)
24233 SIGNAL_HANDLER=include/dwarf2-signal.h
24234 ;;
24235 s390*-*-linux*)
24236 SIGNAL_HANDLER=include/s390-signal.h
24237 ;;
24238 x86_64*-*-linux*)
24239 SIGNAL_HANDLER=include/x86_64-signal.h
24240 SIGNAL_HANDLER_AUX=include/i386-signal.h
24241 ;;
24242 sparc*-*-linux*)
24243 SIGNAL_HANDLER=include/dwarf2-signal.h
24244 ;;
24245 sh*-*-linux*)
24246 SIGNAL_HANDLER=include/sh-signal.h
24247 ;;
24248 *mingw*)
24249 SIGNAL_HANDLER=include/win32-signal.h
24250 ;;
24251 mips*-*-linux*)
24252 SIGNAL_HANDLER=include/mips-signal.h
24253 ;;
428af2fe 24254 m68*-*-linux*)
24255 SIGNAL_HANDLER=include/dwarf2-signal.h
24256 ;;
fbe6c0a3 24257 powerpc*-*-darwin* | i?86-*-darwin[912]* | x86_64-*-darwin[912]*)
542f9784 24258 SIGNAL_HANDLER=include/darwin-signal.h
24259 ;;
f00ad21f 24260 powerpc*-*-aix*)
24261 SIGNAL_HANDLER=include/aix-signal.h
24262 ;;
542f9784 24263 *)
24264 SIGNAL_HANDLER=include/default-signal.h
24265 ;;
24266esac
24267
24268# If we're using sjlj exceptions, forget what we just learned.
24269if test "$enable_sjlj_exceptions" = yes; then
24270 SIGNAL_HANDLER=include/default-signal.h
24271 SIGNAL_HANDLER_AUX=
24272fi
24273
24274
24275
24276if test -z "$SIGNAL_HANDLER_AUX"; then
24277 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
24278fi
24279
cd9a469c 24280ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
542f9784 24281
24282
24283if test "${multilib}" = "yes"; then
24284 multilib_arg="--enable-multilib"
24285else
24286 multilib_arg=
24287fi
24288
24289# See if we support thread-local storage.
24290
0a475b3b 24291
cd9a469c 24292 # Check whether --enable-tls was given.
24293if test "${enable_tls+set}" = set; then :
24294 enableval=$enable_tls;
542f9784 24295 case "$enableval" in
24296 yes|no) ;;
cd9a469c 24297 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
542f9784 24298 esac
24299
24300else
24301 enable_tls=yes
cd9a469c 24302fi
24303
542f9784 24304
cd9a469c 24305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
24306$as_echo_n "checking whether the target supports thread-local storage... " >&6; }
24307if test "${gcc_cv_have_tls+set}" = set; then :
24308 $as_echo_n "(cached) " >&6
542f9784 24309else
24310
cd9a469c 24311 if test "$cross_compiling" = yes; then :
542f9784 24312 if test x$gcc_no_link = xyes; then
cd9a469c 24313 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 24314fi
cd9a469c 24315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24316/* end confdefs.h. */
542f9784 24317__thread int a; int b; int main() { return a = b; }
24318_ACEOF
cd9a469c 24319if ac_fn_c_try_link "$LINENO"; then :
0a475b3b 24320 chktls_save_LDFLAGS="$LDFLAGS"
24321 case $host in
24322 *-*-linux*)
24323 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
24324 ;;
24325 esac
24326 chktls_save_CFLAGS="$CFLAGS"
24327 CFLAGS="-fPIC $CFLAGS"
24328 if test x$gcc_no_link = xyes; then
cd9a469c 24329 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
0a475b3b 24330fi
cd9a469c 24331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24332/* end confdefs.h. */
0a475b3b 24333int f() { return 0; }
24334_ACEOF
cd9a469c 24335if ac_fn_c_try_link "$LINENO"; then :
0a475b3b 24336 if test x$gcc_no_link = xyes; then
cd9a469c 24337 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
0a475b3b 24338fi
cd9a469c 24339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24340/* end confdefs.h. */
0a475b3b 24341__thread int a; int b; int f() { return a = b; }
24342_ACEOF
cd9a469c 24343if ac_fn_c_try_link "$LINENO"; then :
23d7dd8c 24344 gcc_cv_have_tls=yes
542f9784 24345else
cd9a469c 24346 gcc_cv_have_tls=no
0a475b3b 24347fi
cd9a469c 24348rm -f core conftest.err conftest.$ac_objext \
24349 conftest$ac_exeext conftest.$ac_ext
0a475b3b 24350else
cd9a469c 24351 gcc_cv_have_tls=yes
0a475b3b 24352fi
cd9a469c 24353rm -f core conftest.err conftest.$ac_objext \
24354 conftest$ac_exeext conftest.$ac_ext
0a475b3b 24355 CFLAGS="$chktls_save_CFLAGS"
24356 LDFLAGS="$chktls_save_LDFLAGS"
24357else
cd9a469c 24358 gcc_cv_have_tls=no
542f9784 24359fi
cd9a469c 24360rm -f core conftest.err conftest.$ac_objext \
24361 conftest$ac_exeext conftest.$ac_ext
542f9784 24362
24363
24364else
cd9a469c 24365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24366/* end confdefs.h. */
542f9784 24367__thread int a; int b; int main() { return a = b; }
24368_ACEOF
cd9a469c 24369if ac_fn_c_try_run "$LINENO"; then :
542f9784 24370 chktls_save_LDFLAGS="$LDFLAGS"
24371 LDFLAGS="-static $LDFLAGS"
24372 if test x$gcc_no_link = xyes; then
cd9a469c 24373 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 24374fi
cd9a469c 24375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24376/* end confdefs.h. */
542f9784 24377int main() { return 0; }
24378_ACEOF
cd9a469c 24379if ac_fn_c_try_link "$LINENO"; then :
24380 if test "$cross_compiling" = yes; then :
24381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24382$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24383as_fn_error "cannot run test program while cross compiling
24384See \`config.log' for more details." "$LINENO" 5; }
24385else
24386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24387/* end confdefs.h. */
542f9784 24388__thread int a; int b; int main() { return a = b; }
24389_ACEOF
cd9a469c 24390if ac_fn_c_try_run "$LINENO"; then :
23d7dd8c 24391 gcc_cv_have_tls=yes
542f9784 24392else
cd9a469c 24393 gcc_cv_have_tls=no
542f9784 24394fi
cd9a469c 24395rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24396 conftest.$ac_objext conftest.beam conftest.$ac_ext
542f9784 24397fi
542f9784 24398
cd9a469c 24399else
24400 gcc_cv_have_tls=yes
542f9784 24401fi
cd9a469c 24402rm -f core conftest.err conftest.$ac_objext \
24403 conftest$ac_exeext conftest.$ac_ext
542f9784 24404 LDFLAGS="$chktls_save_LDFLAGS"
23d7dd8c 24405 if test $gcc_cv_have_tls = yes; then
542f9784 24406 chktls_save_CFLAGS="$CFLAGS"
24407 thread_CFLAGS=failed
24408 for flag in '' '-pthread' '-lpthread'; do
24409 CFLAGS="$flag $chktls_save_CFLAGS"
24410 if test x$gcc_no_link = xyes; then
cd9a469c 24411 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 24412fi
cd9a469c 24413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 24414/* end confdefs.h. */
24415#include <pthread.h>
24416 void *g(void *d) { return NULL; }
24417int
24418main ()
24419{
24420pthread_t t; pthread_create(&t,NULL,g,NULL);
24421 ;
24422 return 0;
24423}
24424_ACEOF
cd9a469c 24425if ac_fn_c_try_link "$LINENO"; then :
542f9784 24426 thread_CFLAGS="$flag"
542f9784 24427fi
cd9a469c 24428rm -f core conftest.err conftest.$ac_objext \
24429 conftest$ac_exeext conftest.$ac_ext
542f9784 24430 if test "X$thread_CFLAGS" != Xfailed; then
24431 break
24432 fi
24433 done
24434 CFLAGS="$chktls_save_CFLAGS"
24435 if test "X$thread_CFLAGS" != Xfailed; then
24436 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
f8725d56 24437 if test "$cross_compiling" = yes; then :
cd9a469c 24438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24440as_fn_error "cannot run test program while cross compiling
24441See \`config.log' for more details." "$LINENO" 5; }
24442else
24443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 24444/* end confdefs.h. */
24445#include <pthread.h>
24446 __thread int a;
9a2be164 24447 static int *volatile a_in_other_thread;
542f9784 24448 static void *
24449 thread_func (void *arg)
24450 {
24451 a_in_other_thread = &a;
24452 return (void *)0;
24453 }
24454int
24455main ()
24456{
24457pthread_t thread;
24458 void *thread_retval;
9a2be164 24459 int *volatile a_in_main_thread;
24460 a_in_main_thread = &a;
542f9784 24461 if (pthread_create (&thread, (pthread_attr_t *)0,
24462 thread_func, (void *)0))
24463 return 0;
542f9784 24464 if (pthread_join (thread, &thread_retval))
24465 return 0;
24466 return (a_in_other_thread == a_in_main_thread);
24467 ;
24468 return 0;
24469}
24470_ACEOF
cd9a469c 24471if ac_fn_c_try_run "$LINENO"; then :
23d7dd8c 24472 gcc_cv_have_tls=yes
542f9784 24473else
cd9a469c 24474 gcc_cv_have_tls=no
542f9784 24475fi
cd9a469c 24476rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24477 conftest.$ac_objext conftest.beam conftest.$ac_ext
542f9784 24478fi
cd9a469c 24479
542f9784 24480 CFLAGS="$chktls_save_CFLAGS"
24481 fi
24482 fi
24483else
cd9a469c 24484 gcc_cv_have_tls=no
542f9784 24485fi
cd9a469c 24486rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24487 conftest.$ac_objext conftest.beam conftest.$ac_ext
542f9784 24488fi
cd9a469c 24489
542f9784 24490fi
cd9a469c 24491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
24492$as_echo "$gcc_cv_have_tls" >&6; }
23d7dd8c 24493 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
542f9784 24494
cd9a469c 24495$as_echo "#define HAVE_TLS 1" >>confdefs.h
542f9784 24496
24497 fi
24498
24499# For _Unwind_GetIPInfo.
24500
24501
cd9a469c 24502# Check whether --with-system-libunwind was given.
24503if test "${with_system_libunwind+set}" = set; then :
24504 withval=$with_system_libunwind;
24505fi
542f9784 24506
7e5cb4d6 24507 # If system-libunwind was not specifically set, pick a default setting.
24508 if test x$with_system_libunwind = x; then
24509 case ${target} in
24510 ia64-*-hpux*) with_system_libunwind=yes ;;
24511 *) with_system_libunwind=no ;;
24512 esac
24513 fi
24514 # Based on system-libunwind and target, do we have ipinfo?
24515 if test x$with_system_libunwind = xyes; then
24516 case ${target} in
24517 ia64-*-*) have_unwind_getipinfo=no ;;
24518 *) have_unwind_getipinfo=yes ;;
24519 esac
24520 else
0ccdd95a 24521 # Darwin before version 9 does not have _Unwind_GetIPInfo.
24522
24523 case ${target} in
24524 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
24525 *) have_unwind_getipinfo=yes ;;
24526 esac
24527
7e5cb4d6 24528 fi
542f9784 24529
7e5cb4d6 24530 if test x$have_unwind_getipinfo = xyes; then
542f9784 24531
cd9a469c 24532$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
542f9784 24533
24534 fi
542f9784 24535
24536
24537# See if linker supports anonymous version scripts.
cd9a469c 24538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous version scripts" >&5
24539$as_echo_n "checking whether ld supports anonymous version scripts... " >&6; }
24540if test "${libjava_cv_anon_version_script+set}" = set; then :
24541 $as_echo_n "(cached) " >&6
542f9784 24542else
bbb514dc 24543 # Check whether --enable-symvers was given.
24544if test "${enable_symvers+set}" = set; then :
24545 enableval=$enable_symvers; case "$enableval" in
24546 yes) libjava_cv_anon_version_script=yes ;;
24547 no) libjava_cv_anon_version_script=no ;;
24548 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5;;
24549 esac
24550else
24551 libjava_cv_anon_version_script=yes
24552
24553fi
24554
24555 if test x$libjava_cv_anon_version_script = xyes; then
24556 save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
24557 CFLAGS="$CFLAGS -fPIC";
24558 LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
24559 echo '{ global: globalsymb*; local: *; };' > conftest.map
24560 if test x$gcc_no_link = xyes; then
cd9a469c 24561 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 24562fi
cd9a469c 24563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 24564/* end confdefs.h. */
24565void globalsymbol (void) {} void localsymbol (void) {}
24566int
24567main ()
24568{
24569
24570 ;
24571 return 0;
24572}
24573_ACEOF
cd9a469c 24574if ac_fn_c_try_link "$LINENO"; then :
f8725d56 24575 libjava_cv_anon_version_script=gnu
bbb514dc 24576else
24577 libjava_cv_anon_version_script=no
542f9784 24578fi
cd9a469c 24579rm -f core conftest.err conftest.$ac_objext \
24580 conftest$ac_exeext conftest.$ac_ext
bbb514dc 24581 if test x$libjava_cv_anon_version_script = xno; then
24582 case "$target_os" in
24583 solaris2*)
24584 LDFLAGS="$save_LDFLAGS"
24585 LDFLAGS="$LDFLAGS -shared -Wl,-M,conftest.map"
24586 # Sun ld doesn't understand wildcards here.
24587 echo '{ global: globalsymbol; local: *; };' > conftest.map
24588 if test x$gcc_no_link = xyes; then
f8725d56 24589 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24590fi
24591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24592/* end confdefs.h. */
24593void globalsymbol (void) {} void localsymbol (void) {}
24594int
24595main ()
24596{
24597
24598 ;
24599 return 0;
24600}
24601_ACEOF
24602if ac_fn_c_try_link "$LINENO"; then :
24603 libjava_cv_anon_version_script=sun
24604fi
24605rm -f core conftest.err conftest.$ac_objext \
24606 conftest$ac_exeext conftest.$ac_ext
bbb514dc 24607 ;;
24608 esac
24609 fi
24610 CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
f8725d56 24611 fi
542f9784 24612
24613fi
cd9a469c 24614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_anon_version_script" >&5
24615$as_echo "$libjava_cv_anon_version_script" >&6; }
f8725d56 24616 if test "$libjava_cv_anon_version_script" != no; then
542f9784 24617 ANONVERSCRIPT_TRUE=
24618 ANONVERSCRIPT_FALSE='#'
24619else
24620 ANONVERSCRIPT_TRUE='#'
24621 ANONVERSCRIPT_FALSE=
24622fi
24623
f8725d56 24624 if test "$libjava_cv_anon_version_script" = gnu; then
24625 ANONVERSCRIPT_GNU_TRUE=
24626 ANONVERSCRIPT_GNU_FALSE='#'
24627else
24628 ANONVERSCRIPT_GNU_TRUE='#'
24629 ANONVERSCRIPT_GNU_FALSE=
24630fi
24631
24632 if test "$libjava_cv_anon_version_script" = sun; then
24633 ANONVERSCRIPT_SUN_TRUE=
24634 ANONVERSCRIPT_SUN_FALSE='#'
24635else
24636 ANONVERSCRIPT_SUN_TRUE='#'
24637 ANONVERSCRIPT_SUN_FALSE=
24638fi
24639
542f9784 24640
24641# Check if linker supports static linking on a per library basis
24642LD_START_STATIC_SPEC=
24643LD_FINISH_STATIC_SPEC=
b1383b01 24644if $LD --help 2>&1 | grep -- -call_shared >/dev/null 2>&1; then
24645 if $LD --help 2>&1 | grep -- -non_shared >/dev/null 2>&1; then
542f9784 24646 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
24647 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
24648 fi
24649fi
24650
24651
24652
24653here=`${PWDCMD-pwd}`
24654
24655
24656# We get this from the environment.
24657
24658
eff5f205 24659default_python_dir="/share/gcc-`cat ${srcdir}/../gcc/BASE-VER`/python/libjava"
4aba1ac0 24660
cd9a469c 24661# Check whether --with-python-dir was given.
24662if test "${with_python_dir+set}" = set; then :
24663 withval=$with_python_dir; with_python_dir=$withval
4aba1ac0 24664else
eff5f205 24665 with_python_dir="${default_python_dir}"
cd9a469c 24666fi
24667
4aba1ac0 24668
eff5f205 24669# Needed for installing Python modules during make install.
24670python_mod_dir="\${prefix}${with_python_dir}"
24671
24672# Needed for substituting into aot-compile*
24673python_mod_dir_expanded="${expanded_prefix}${with_python_dir}"
24674
cd9a469c 24675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Python modules dir: ${python_mod_dir_expanded}" >&5
24676$as_echo "Python modules dir: ${python_mod_dir_expanded}" >&6; };
4aba1ac0 24677
24678
24679
24680# needed for aot-compile-rpm
24681MAKE=`which make`
24682
24683
cd9a469c 24684# Check whether --enable-aot-compile-rpm was given.
24685if test "${enable_aot_compile_rpm+set}" = set; then :
24686 enableval=$enable_aot_compile_rpm; case "${enableval}" in
4aba1ac0 24687 yes) AOT_RPM_ENABLED=yes ;;
24688 no) AOT_RPM_ENABLED=no ;;
cd9a469c 24689 *) as_fn_error "Unknown argument to enable/disable aot-compile-rpm" "$LINENO" 5 ;;
4aba1ac0 24690 esac
24691else
24692 AOT_RPM_ENABLED=no
24693
cd9a469c 24694fi
4aba1ac0 24695
cd9a469c 24696 if test "x${AOT_RPM_ENABLED}" = xyes; then
4aba1ac0 24697 INSTALL_AOT_RPM_TRUE=
24698 INSTALL_AOT_RPM_FALSE='#'
24699else
24700 INSTALL_AOT_RPM_TRUE='#'
24701 INSTALL_AOT_RPM_FALSE=
24702fi
24703
24704
cd9a469c 24705# Check whether --enable-java-home was given.
24706if test "${enable_java_home+set}" = set; then :
24707 enableval=$enable_java_home; case "${enableval}" in
4aba1ac0 24708 yes) JAVA_HOME_ENABLED=yes ;;
24709 no) JAVA_HOME_ENABLED=no ;;
cd9a469c 24710 *) as_fn_error "Unknown argument to enable/disable java-home" "$LINENO" 5 ;;
4aba1ac0 24711 esac
24712else
24713 JAVA_HOME_ENABLED=no
24714
cd9a469c 24715fi
4aba1ac0 24716
cd9a469c 24717 if test "x${JAVA_HOME_ENABLED}" = xyes; then
4aba1ac0 24718 CREATE_JAVA_HOME_TRUE=
24719 CREATE_JAVA_HOME_FALSE='#'
24720else
24721 CREATE_JAVA_HOME_TRUE='#'
24722 CREATE_JAVA_HOME_FALSE=
24723fi
24724
24725
24726# Only do these checks if java-home above is enabled.
2bc04335 24727if test "x${JAVA_HOME_ENABLED}" = xyes
4aba1ac0 24728then
24729
24730
cd9a469c 24731# Check whether --with-gcc-suffix was given.
24732if test "${with_gcc_suffix+set}" = set; then :
24733 withval=$with_gcc_suffix; gcc_suffix=$withval
4aba1ac0 24734else
24735 gcc_suffix=""
cd9a469c 24736fi
4aba1ac0 24737
cd9a469c 24738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCC suffix: ${gcc_suffix}" >&5
24739$as_echo "GCC suffix: ${gcc_suffix}" >&6; }
4aba1ac0 24740
24741
cd9a469c 24742
24743# Check whether --with-arch-directory was given.
24744if test "${with_arch_directory+set}" = set; then :
24745 withval=$with_arch_directory; host_cpu=$withval
4aba1ac0 24746else
24747 host_cpu=""
cd9a469c 24748fi
4aba1ac0 24749
24750
cd9a469c 24751
24752# Check whether --with-os-directory was given.
24753if test "${with_os_directory+set}" = set; then :
24754 withval=$with_os_directory; host_os=$withval
4aba1ac0 24755else
24756 host_os=""
cd9a469c 24757fi
4aba1ac0 24758
24759
cd9a469c 24760
24761# Check whether --with-origin-name was given.
24762if test "${with_origin_name+set}" = set; then :
24763 withval=$with_origin_name; origin_name=$withval
4aba1ac0 24764else
24765 origin_name=gcj${gcc_suffix}
cd9a469c 24766fi
4aba1ac0 24767
cd9a469c 24768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JPackage origin name: ${origin_name}" >&5
24769$as_echo "JPackage origin name: ${origin_name}" >&6; }
4aba1ac0 24770
cd9a469c 24771
24772# Check whether --with-arch-suffix was given.
24773if test "${with_arch_suffix+set}" = set; then :
24774 withval=$with_arch_suffix; arch_suffix=$withval
4aba1ac0 24775else
24776 arch_suffix=""
cd9a469c 24777fi
4aba1ac0 24778
cd9a469c 24779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch suffix: ${arch_suffix}" >&5
24780$as_echo "arch suffix: ${arch_suffix}" >&6; }
4aba1ac0 24781
cd9a469c 24782
24783# Check whether --with-jvm-root-dir was given.
24784if test "${with_jvm_root_dir+set}" = set; then :
24785 withval=$with_jvm_root_dir; jvm_root_dir=$withval
4aba1ac0 24786else
24787 jvm_root_dir="\${prefix}/lib/jvm"
cd9a469c 24788fi
4aba1ac0 24789
cd9a469c 24790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM root installation directory: ${jvm_root_dir}" >&5
24791$as_echo "JVM root installation directory: ${jvm_root_dir}" >&6; }
4aba1ac0 24792
cd9a469c 24793
24794# Check whether --with-jvm-jar-dir was given.
24795if test "${with_jvm_jar_dir+set}" = set; then :
24796 withval=$with_jvm_jar_dir; jvm_jar_dir=$withval
4aba1ac0 24797else
24798 jvm_jar_dir=\${prefix}/lib/jvm-exports
cd9a469c 24799fi
24800
24801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JAR root installation directory: ${jvm_jar_dir}" >&5
24802$as_echo "JAR root installation directory: ${jvm_jar_dir}" >&6; }
4aba1ac0 24803
24804 JAVA_VERSION=1.5.0
24805 BUILD_VERSION=0
24806
24807
cd9a469c 24808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Java version: ${JAVA_VERSION}" >&5
24809$as_echo "Java version: ${JAVA_VERSION}" >&6; }
4aba1ac0 24810
2e9edbc9 24811 jre_dir=jre
4aba1ac0 24812 jre_lnk=jre-${JAVA_VERSION}-${origin_name}
24813 sdk_lnk=java-${JAVA_VERSION}-${origin_name}
24814
24815 JVM_ROOT_DIR=${jvm_root_dir}
24816
cd9a469c 24817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
24818$as_echo "JVM ROOT directory: ${JVM_ROOT_DIR}" >&6; }
4aba1ac0 24819
24820 JVM_JAR_ROOT_DIR=${jvm_jar_dir}
24821
cd9a469c 24822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
24823$as_echo "JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6; }
4aba1ac0 24824
2e9edbc9 24825 JVM_JAR_DIR=${jvm_jar_dir}
4aba1ac0 24826
cd9a469c 24827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
24828$as_echo "JVM JAR directory: ${JVM_JAR_DIR}" >&6; }
4aba1ac0 24829
24830 JRE_DIR=${jre_dir}
24831
24832
4aba1ac0 24833 JRE_LNK=${jre_lnk}
24834
24835
24836 SDK_LNK=${sdk_lnk}
24837
24838
2e9edbc9 24839 SDK_BIN_DIR=${jvm_root_dir}/bin
4aba1ac0 24840
cd9a469c 24841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
24842$as_echo "SDK tools directory: ${SDK_BIN_DIR}" >&6; }
4aba1ac0 24843
2e9edbc9 24844 SDK_LIB_DIR=${jvm_root_dir}/lib
4aba1ac0 24845
cd9a469c 24846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
24847$as_echo "SDK jar directory: ${SDK_LIB_DIR}" >&6; }
4aba1ac0 24848
2e9edbc9 24849 SDK_INCLUDE_DIR=${jvm_root_dir}/include
4aba1ac0 24850
cd9a469c 24851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
24852$as_echo "SDK include directory: ${SDK_INCLUDE_DIR}" >&6; }
4aba1ac0 24853
24854 JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
24855
cd9a469c 24856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
24857$as_echo "JRE tools directory: ${JRE_BIN_DIR}" >&6; }
4aba1ac0 24858
24859 JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
24860
cd9a469c 24861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
24862$as_echo "JRE lib directory: ${JRE_LIB_DIR}" >&6; }
4aba1ac0 24863
24864 # Find gcj prefix using gcj found in PATH.
24865 gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
24866
24867 # Where do the gcj binaries live?
24868 # For jhbuild based builds, they all live in a sibling of bin called
24869 # gcj-bin. Check for gcj-bin first, and use bin otherwise.
24870 GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
24871
cd9a469c 24872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
24873$as_echo "GCJ tools directory: ${GCJ_BIN_DIR}" >&6; }
4aba1ac0 24874
cd9a469c 24875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host is ${host}" >&5
24876$as_echo "host is ${host}" >&6; }
4aba1ac0 24877 if test "x${host_cpu}" = "x"
24878 then
24879 case ${host} in
24880 *-mingw* | *-cygwin*)
24881 host_cpu=x86;;
24882 i486-* | i586-* | i686-*)
24883 host_cpu=i386;;
2e9edbc9 24884 x86_64-*)
24885 host_cpu=amd64;;
4aba1ac0 24886 *)
24887 host_cpu=${host_cpu};;
24888 esac
24889 fi
cd9a469c 24890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch directory: ${host_cpu}" >&5
24891$as_echo "arch directory: ${host_cpu}" >&6; }
4aba1ac0 24892 CPU=${host_cpu}
24893
24894
24895 if test "x${host_os}" = "x"
24896 then
24897 case ${host} in
24898 *-mingw* | *-cygwin*)
24899 host_os=win32;;
24900 *-linux*)
24901 host_os=linux;;
24902 *)
24903 host_os=${host_os};;
24904 esac
24905 fi
24906 echo os directory: ${host_os}
24907 OS=${host_os}
24908
24909
24910 # make an expanded $libdir, for substituting into
24911 # scripts (and other non-Makefile things).
24912 LIBDIR=$libdir
24913 if test "x${exec_prefix}" = "xNONE"
24914 then
7d89f9e4 24915 lib_exec_prefix=$expanded_prefix
4aba1ac0 24916 else
24917 lib_exec_prefix=$exec_prefix
24918 fi
24919 LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
24920
24921fi
24922
cd9a469c 24923ac_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"
542f9784 24924
24925
ed2d47fc 24926if test ${multilib} = yes; then
24927 multilib_arg="--enable-multilib"
24928else
24929 multilib_arg=
24930fi
542f9784 24931
cd9a469c 24932ac_config_files="$ac_config_files scripts/jar"
542f9784 24933
24934cat >confcache <<\_ACEOF
24935# This file is a shell script that caches the results of configure
24936# tests run on this system so they can be shared between configure
24937# scripts and configure runs, see configure's option --config-cache.
24938# It is not useful on other systems. If it contains results you don't
24939# want to keep, you may remove or edit it.
24940#
24941# config.status only pays attention to the cache file if you give it
24942# the --recheck option to rerun configure.
24943#
24944# `ac_cv_env_foo' variables (set or unset) will be overridden when
24945# loading this file, other *unset* `ac_cv_foo' will be assigned the
24946# following values.
24947
24948_ACEOF
24949
24950# The following way of writing the cache mishandles newlines in values,
24951# but we know of no workaround that is simple, portable, and efficient.
cd9a469c 24952# So, we kill variables containing newlines.
542f9784 24953# Ultrix sh set writes to stderr and can't be redirected directly,
24954# and sets the high bit in the cache file unless we assign to the vars.
cd9a469c 24955(
24956 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24957 eval ac_val=\$$ac_var
24958 case $ac_val in #(
24959 *${as_nl}*)
24960 case $ac_var in #(
24961 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24962$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24963 esac
24964 case $ac_var in #(
24965 _ | IFS | as_nl) ;; #(
24966 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24967 *) { eval $ac_var=; unset $ac_var;} ;;
24968 esac ;;
24969 esac
24970 done
24971
542f9784 24972 (set) 2>&1 |
cd9a469c 24973 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24974 *${as_nl}ac_space=\ *)
24975 # `set' does not quote correctly, so add quotes: double-quote
24976 # substitution turns \\\\ into \\, and sed turns \\ into \.
542f9784 24977 sed -n \
24978 "s/'/'\\\\''/g;
24979 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
cd9a469c 24980 ;; #(
542f9784 24981 *)
24982 # `set' quotes correctly as required by POSIX, so do not add quotes.
cd9a469c 24983 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
542f9784 24984 ;;
cd9a469c 24985 esac |
24986 sort
24987) |
542f9784 24988 sed '
cd9a469c 24989 /^ac_cv_env_/b end
542f9784 24990 t clear
cd9a469c 24991 :clear
542f9784 24992 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24993 t end
cd9a469c 24994 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24995 :end' >>confcache
24996if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24997 if test -w "$cache_file"; then
24998 test "x$cache_file" != "x/dev/null" &&
24999 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25000$as_echo "$as_me: updating cache $cache_file" >&6;}
542f9784 25001 cat confcache >$cache_file
25002 else
cd9a469c 25003 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25004$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
542f9784 25005 fi
25006fi
25007rm -f confcache
25008
25009test "x$prefix" = xNONE && prefix=$ac_default_prefix
25010# Let make expand exec_prefix.
25011test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25012
542f9784 25013DEFS=-DHAVE_CONFIG_H
25014
25015ac_libobjs=
25016ac_ltlibobjs=
25017for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25018 # 1. Remove the extension, and $U if already installed.
cd9a469c 25019 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25020 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25021 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25022 # will be set to the directory where LIBOBJS objects are built.
25023 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25024 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
542f9784 25025done
25026LIBOBJS=$ac_libobjs
25027
25028LTLIBOBJS=$ac_ltlibobjs
25029
25030
2bc04335 25031if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
cd9a469c 25032 as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
25033Usually this means the macro was only invoked conditionally." "$LINENO" 5
2bc04335 25034fi
542f9784 25035if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
cd9a469c 25036 as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
25037Usually this means the macro was only invoked conditionally." "$LINENO" 5
542f9784 25038fi
25039if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cd9a469c 25040 as_fn_error "conditional \"AMDEP\" was never defined.
25041Usually this means the macro was only invoked conditionally." "$LINENO" 5
542f9784 25042fi
25043if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cd9a469c 25044 as_fn_error "conditional \"am__fastdepCC\" was never defined.
25045Usually this means the macro was only invoked conditionally." "$LINENO" 5
542f9784 25046fi
25047if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cd9a469c 25048 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
25049Usually this means the macro was only invoked conditionally." "$LINENO" 5
25050fi
25051 if test -n "$EXEEXT"; then
25052 am__EXEEXT_TRUE=
25053 am__EXEEXT_FALSE='#'
25054else
25055 am__EXEEXT_TRUE='#'
25056 am__EXEEXT_FALSE=
542f9784 25057fi
cd9a469c 25058
542f9784 25059if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cd9a469c 25060 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
25061Usually this means the macro was only invoked conditionally." "$LINENO" 5
542f9784 25062fi
fa280a58 25063if test -z "${BUILD_SUBLIBS_TRUE}" && test -z "${BUILD_SUBLIBS_FALSE}"; then
25064 as_fn_error "conditional \"BUILD_SUBLIBS\" was never defined.
25065Usually this means the macro was only invoked conditionally." "$LINENO" 5
25066fi
542f9784 25067if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
cd9a469c 25068 as_fn_error "conditional \"XLIB_AWT\" was never defined.
25069Usually this means the macro was only invoked conditionally." "$LINENO" 5
542f9784 25070fi
25071if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
cd9a469c 25072 as_fn_error "conditional \"X_AWT\" was never defined.
25073Usually this means the macro was only invoked conditionally." "$LINENO" 5
542f9784 25074fi
25075if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
cd9a469c 25076 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25077Usually this means the macro was only invoked conditionally." "$LINENO" 5
542f9784 25078fi
25079if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
cd9a469c 25080 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25081Usually this means the macro was only invoked conditionally." "$LINENO" 5
542f9784 25082fi
25083if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
cd9a469c 25084 as_fn_error "conditional \"TESTSUBDIR\" was never defined.
25085Usually this means the macro was only invoked conditionally." "$LINENO" 5
542f9784 25086fi
25087if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
cd9a469c 25088 as_fn_error "conditional \"BUILD_ECJ1\" was never defined.
25089Usually this means the macro was only invoked conditionally." "$LINENO" 5
542f9784 25090fi
25091if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
cd9a469c 25092 as_fn_error "conditional \"INSTALL_ECJ_JAR\" was never defined.
25093Usually this means the macro was only invoked conditionally." "$LINENO" 5
542f9784 25094fi
25095if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
cd9a469c 25096 as_fn_error "conditional \"JAVA_HOME_SET\" was never defined.
25097Usually this means the macro was only invoked conditionally." "$LINENO" 5
542f9784 25098fi
c9b39a1e 25099if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
cd9a469c 25100 as_fn_error "conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
25101Usually this means the macro was only invoked conditionally." "$LINENO" 5
c9b39a1e 25102fi
d279db8d 25103if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
cd9a469c 25104 as_fn_error "conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
25105Usually this means the macro was only invoked conditionally." "$LINENO" 5
d279db8d 25106fi
6e29f747 25107if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
cd9a469c 25108 as_fn_error "conditional \"INTERPRETER\" was never defined.
25109Usually this means the macro was only invoked conditionally." "$LINENO" 5
6e29f747 25110fi
542f9784 25111if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
cd9a469c 25112 as_fn_error "conditional \"USING_WIN32_PLATFORM\" was never defined.
25113Usually this means the macro was only invoked conditionally." "$LINENO" 5
542f9784 25114fi
25115if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
cd9a469c 25116 as_fn_error "conditional \"USING_POSIX_PLATFORM\" was never defined.
25117Usually this means the macro was only invoked conditionally." "$LINENO" 5
542f9784 25118fi
25119if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
cd9a469c 25120 as_fn_error "conditional \"USING_DARWIN_CRT\" was never defined.
25121Usually this means the macro was only invoked conditionally." "$LINENO" 5
542f9784 25122fi
25123if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
cd9a469c 25124 as_fn_error "conditional \"USING_BOEHMGC\" was never defined.
25125Usually this means the macro was only invoked conditionally." "$LINENO" 5
542f9784 25126fi
25127if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
cd9a469c 25128 as_fn_error "conditional \"USING_NOGC\" was never defined.
25129Usually this means the macro was only invoked conditionally." "$LINENO" 5
542f9784 25130fi
25131if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
cd9a469c 25132 as_fn_error "conditional \"USING_POSIX_THREADS\" was never defined.
25133Usually this means the macro was only invoked conditionally." "$LINENO" 5
542f9784 25134fi
25135if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
cd9a469c 25136 as_fn_error "conditional \"USING_WIN32_THREADS\" was never defined.
25137Usually this means the macro was only invoked conditionally." "$LINENO" 5
542f9784 25138fi
25139if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
cd9a469c 25140 as_fn_error "conditional \"USING_NO_THREADS\" was never defined.
25141Usually this means the macro was only invoked conditionally." "$LINENO" 5
542f9784 25142fi
25143if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
cd9a469c 25144 as_fn_error "conditional \"USE_LIBGCJ_BC\" was never defined.
25145Usually this means the macro was only invoked conditionally." "$LINENO" 5
542f9784 25146fi
25147if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
cd9a469c 25148 as_fn_error "conditional \"USING_GCC\" was never defined.
25149Usually this means the macro was only invoked conditionally." "$LINENO" 5
542f9784 25150fi
25151if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
cd9a469c 25152 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25153Usually this means the macro was only invoked conditionally." "$LINENO" 5
542f9784 25154fi
cd9a469c 25155
542f9784 25156if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
cd9a469c 25157 as_fn_error "conditional \"NATIVE\" was never defined.
25158Usually this means the macro was only invoked conditionally." "$LINENO" 5
542f9784 25159fi
25160if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
cd9a469c 25161 as_fn_error "conditional \"ENABLE_SHARED\" was never defined.
25162Usually this means the macro was only invoked conditionally." "$LINENO" 5
542f9784 25163fi
25164if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
cd9a469c 25165 as_fn_error "conditional \"NEEDS_DATA_START\" was never defined.
25166Usually this means the macro was only invoked conditionally." "$LINENO" 5
542f9784 25167fi
3cc72d26 25168if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
cd9a469c 25169 as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
25170Usually this means the macro was only invoked conditionally." "$LINENO" 5
3cc72d26 25171fi
542f9784 25172if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
cd9a469c 25173 as_fn_error "conditional \"ANONVERSCRIPT\" was never defined.
25174Usually this means the macro was only invoked conditionally." "$LINENO" 5
542f9784 25175fi
f8725d56 25176if test -z "${ANONVERSCRIPT_GNU_TRUE}" && test -z "${ANONVERSCRIPT_GNU_FALSE}"; then
25177 as_fn_error "conditional \"ANONVERSCRIPT_GNU\" was never defined.
25178Usually this means the macro was only invoked conditionally." "$LINENO" 5
25179fi
25180if test -z "${ANONVERSCRIPT_SUN_TRUE}" && test -z "${ANONVERSCRIPT_SUN_FALSE}"; then
25181 as_fn_error "conditional \"ANONVERSCRIPT_SUN\" was never defined.
25182Usually this means the macro was only invoked conditionally." "$LINENO" 5
25183fi
4aba1ac0 25184if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
cd9a469c 25185 as_fn_error "conditional \"INSTALL_AOT_RPM\" was never defined.
25186Usually this means the macro was only invoked conditionally." "$LINENO" 5
4aba1ac0 25187fi
25188if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
cd9a469c 25189 as_fn_error "conditional \"CREATE_JAVA_HOME\" was never defined.
25190Usually this means the macro was only invoked conditionally." "$LINENO" 5
4aba1ac0 25191fi
542f9784 25192
25193: ${CONFIG_STATUS=./config.status}
cd9a469c 25194ac_write_fail=0
542f9784 25195ac_clean_files_save=$ac_clean_files
25196ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cd9a469c 25197{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25198$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25199as_write_fail=0
25200cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
542f9784 25201#! $SHELL
25202# Generated by $as_me.
25203# Run this file to recreate the current configuration.
25204# Compiler output produced by configure, useful for debugging
25205# configure, is in config.log if it exists.
25206
25207debug=false
25208ac_cs_recheck=false
25209ac_cs_silent=false
542f9784 25210
cd9a469c 25211SHELL=\${CONFIG_SHELL-$SHELL}
25212export SHELL
25213_ASEOF
25214cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25215## -------------------- ##
25216## M4sh Initialization. ##
25217## -------------------- ##
25218
25219# Be more Bourne compatible
25220DUALCASE=1; export DUALCASE # for MKS sh
25221if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
542f9784 25222 emulate sh
25223 NULLCMD=:
cd9a469c 25224 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
542f9784 25225 # is contrary to our usage. Disable this feature.
25226 alias -g '${1+"$@"}'='"$@"'
cd9a469c 25227 setopt NO_GLOB_SUBST
25228else
25229 case `(set -o) 2>/dev/null` in #(
25230 *posix*) :
25231 set -o posix ;; #(
25232 *) :
25233 ;;
25234esac
542f9784 25235fi
542f9784 25236
cd9a469c 25237
25238as_nl='
25239'
25240export as_nl
25241# Printing a long string crashes Solaris 7 /usr/bin/printf.
25242as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25243as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25244as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25245# Prefer a ksh shell builtin over an external printf program on Solaris,
25246# but without wasting forks for bash or zsh.
25247if test -z "$BASH_VERSION$ZSH_VERSION" \
25248 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25249 as_echo='print -r --'
25250 as_echo_n='print -rn --'
25251elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25252 as_echo='printf %s\n'
25253 as_echo_n='printf %s'
25254else
25255 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25256 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25257 as_echo_n='/usr/ucb/echo -n'
25258 else
25259 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25260 as_echo_n_body='eval
25261 arg=$1;
25262 case $arg in #(
25263 *"$as_nl"*)
25264 expr "X$arg" : "X\\(.*\\)$as_nl";
25265 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25266 esac;
25267 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25268 '
25269 export as_echo_n_body
25270 as_echo_n='sh -c $as_echo_n_body as_echo'
25271 fi
25272 export as_echo_body
25273 as_echo='sh -c $as_echo_body as_echo'
25274fi
25275
25276# The user is always right.
25277if test "${PATH_SEPARATOR+set}" != set; then
25278 PATH_SEPARATOR=:
25279 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25280 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25281 PATH_SEPARATOR=';'
25282 }
542f9784 25283fi
25284
25285
cd9a469c 25286# IFS
25287# We need space, tab and new line, in precisely that order. Quoting is
25288# there to prevent editors from complaining about space-tab.
25289# (If _AS_PATH_WALK were called with IFS unset, it would disable word
25290# splitting by setting IFS to empty value.)
25291IFS=" "" $as_nl"
25292
25293# Find who we are. Look in the path if we contain no directory separator.
25294case $0 in #((
25295 *[\\/]* ) as_myself=$0 ;;
25296 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25297for as_dir in $PATH
25298do
25299 IFS=$as_save_IFS
25300 test -z "$as_dir" && as_dir=.
25301 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25302 done
25303IFS=$as_save_IFS
25304
25305 ;;
25306esac
25307# We did not find ourselves, most probably we were run as `sh COMMAND'
25308# in which case we are not to be found in the path.
25309if test "x$as_myself" = x; then
25310 as_myself=$0
25311fi
25312if test ! -f "$as_myself"; then
25313 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25314 exit 1
25315fi
25316
25317# Unset variables that we do not need and which cause bugs (e.g. in
25318# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25319# suppresses any "Segmentation fault" message there. '((' could
25320# trigger a bug in pdksh 5.2.14.
25321for as_var in BASH_ENV ENV MAIL MAILPATH
25322do eval test x\${$as_var+set} = xset \
25323 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25324done
542f9784 25325PS1='$ '
25326PS2='> '
25327PS4='+ '
25328
25329# NLS nuisances.
cd9a469c 25330LC_ALL=C
25331export LC_ALL
25332LANGUAGE=C
25333export LANGUAGE
25334
25335# CDPATH.
25336(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25337
25338
25339# as_fn_error ERROR [LINENO LOG_FD]
25340# ---------------------------------
25341# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25342# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25343# script with status $?, using 1 if that was 0.
25344as_fn_error ()
25345{
25346 as_status=$?; test $as_status -eq 0 && as_status=1
25347 if test "$3"; then
25348 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25349 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
542f9784 25350 fi
cd9a469c 25351 $as_echo "$as_me: error: $1" >&2
25352 as_fn_exit $as_status
25353} # as_fn_error
25354
25355
25356# as_fn_set_status STATUS
25357# -----------------------
25358# Set $? to STATUS, without forking.
25359as_fn_set_status ()
25360{
25361 return $1
25362} # as_fn_set_status
25363
25364# as_fn_exit STATUS
25365# -----------------
25366# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25367as_fn_exit ()
25368{
25369 set +e
25370 as_fn_set_status $1
25371 exit $1
25372} # as_fn_exit
25373
25374# as_fn_unset VAR
25375# ---------------
25376# Portably unset VAR.
25377as_fn_unset ()
25378{
25379 { eval $1=; unset $1;}
25380}
25381as_unset=as_fn_unset
25382# as_fn_append VAR VALUE
25383# ----------------------
25384# Append the text in VALUE to the end of the definition contained in VAR. Take
25385# advantage of any shell optimizations that allow amortized linear growth over
25386# repeated appends, instead of the typical quadratic growth present in naive
25387# implementations.
25388if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25389 eval 'as_fn_append ()
25390 {
25391 eval $1+=\$2
25392 }'
25393else
25394 as_fn_append ()
25395 {
25396 eval $1=\$$1\$2
25397 }
25398fi # as_fn_append
25399
25400# as_fn_arith ARG...
25401# ------------------
25402# Perform arithmetic evaluation on the ARGs, and store the result in the
25403# global $as_val. Take advantage of shells that can avoid forks. The arguments
25404# must be portable across $(()) and expr.
25405if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25406 eval 'as_fn_arith ()
25407 {
25408 as_val=$(( $* ))
25409 }'
25410else
25411 as_fn_arith ()
25412 {
25413 as_val=`expr "$@" || test $? -eq 1`
25414 }
25415fi # as_fn_arith
25416
542f9784 25417
cd9a469c 25418if expr a : '\(a\)' >/dev/null 2>&1 &&
25419 test "X`expr 00001 : '.*\(...\)'`" = X001; then
542f9784 25420 as_expr=expr
25421else
25422 as_expr=false
25423fi
25424
cd9a469c 25425if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
542f9784 25426 as_basename=basename
25427else
25428 as_basename=false
25429fi
25430
cd9a469c 25431if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25432 as_dirname=dirname
25433else
25434 as_dirname=false
25435fi
542f9784 25436
cd9a469c 25437as_me=`$as_basename -- "$0" ||
542f9784 25438$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25439 X"$0" : 'X\(//\)$' \| \
cd9a469c 25440 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25441$as_echo X/"$0" |
25442 sed '/^.*\/\([^/][^/]*\)\/*$/{
25443 s//\1/
25444 q
25445 }
25446 /^X\/\(\/\/\)$/{
25447 s//\1/
25448 q
25449 }
25450 /^X\/\(\/\).*/{
25451 s//\1/
25452 q
25453 }
25454 s/.*/./; q'`
542f9784 25455
542f9784 25456# Avoid depending upon Character Ranges.
25457as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25458as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25459as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25460as_cr_digits='0123456789'
25461as_cr_alnum=$as_cr_Letters$as_cr_digits
25462
cd9a469c 25463ECHO_C= ECHO_N= ECHO_T=
25464case `echo -n x` in #(((((
25465-n*)
25466 case `echo 'xy\c'` in
25467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25468 xy) ECHO_C='\c';;
25469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25470 ECHO_T=' ';;
25471 esac;;
25472*)
25473 ECHO_N='-n';;
542f9784 25474esac
25475
cd9a469c 25476rm -f conf$$ conf$$.exe conf$$.file
25477if test -d conf$$.dir; then
25478 rm -f conf$$.dir/conf$$.file
542f9784 25479else
cd9a469c 25480 rm -f conf$$.dir
25481 mkdir conf$$.dir 2>/dev/null
542f9784 25482fi
cd9a469c 25483if (echo >conf$$.file) 2>/dev/null; then
25484 if ln -s conf$$.file conf$$ 2>/dev/null; then
542f9784 25485 as_ln_s='ln -s'
cd9a469c 25486 # ... but there are two gotchas:
25487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25489 # In both cases, we have to default to `cp -p'.
25490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25491 as_ln_s='cp -p'
25492 elif ln conf$$.file conf$$ 2>/dev/null; then
25493 as_ln_s=ln
25494 else
25495 as_ln_s='cp -p'
542f9784 25496 fi
542f9784 25497else
25498 as_ln_s='cp -p'
25499fi
cd9a469c 25500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25501rmdir conf$$.dir 2>/dev/null
25502
542f9784 25503
cd9a469c 25504# as_fn_mkdir_p
25505# -------------
25506# Create "$as_dir" as a directory, including parents if necessary.
25507as_fn_mkdir_p ()
25508{
25509
25510 case $as_dir in #(
25511 -*) as_dir=./$as_dir;;
25512 esac
25513 test -d "$as_dir" || eval $as_mkdir_p || {
25514 as_dirs=
25515 while :; do
25516 case $as_dir in #(
25517 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25518 *) as_qdir=$as_dir;;
25519 esac
25520 as_dirs="'$as_qdir' $as_dirs"
25521 as_dir=`$as_dirname -- "$as_dir" ||
25522$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25523 X"$as_dir" : 'X\(//\)[^/]' \| \
25524 X"$as_dir" : 'X\(//\)$' \| \
25525 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25526$as_echo X"$as_dir" |
25527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25528 s//\1/
25529 q
25530 }
25531 /^X\(\/\/\)[^/].*/{
25532 s//\1/
25533 q
25534 }
25535 /^X\(\/\/\)$/{
25536 s//\1/
25537 q
25538 }
25539 /^X\(\/\).*/{
25540 s//\1/
25541 q
25542 }
25543 s/.*/./; q'`
25544 test -d "$as_dir" && break
25545 done
25546 test -z "$as_dirs" || eval "mkdir $as_dirs"
25547 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25548
25549
25550} # as_fn_mkdir_p
542f9784 25551if mkdir -p . 2>/dev/null; then
cd9a469c 25552 as_mkdir_p='mkdir -p "$as_dir"'
542f9784 25553else
25554 test -d ./-p && rmdir ./-p
25555 as_mkdir_p=false
25556fi
25557
cd9a469c 25558if test -x / >/dev/null 2>&1; then
25559 as_test_x='test -x'
25560else
25561 if ls -dL / >/dev/null 2>&1; then
25562 as_ls_L_option=L
25563 else
25564 as_ls_L_option=
25565 fi
25566 as_test_x='
25567 eval sh -c '\''
25568 if test -d "$1"; then
25569 test -d "$1/.";
25570 else
25571 case $1 in #(
25572 -*)set "./$1";;
25573 esac;
25574 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25575 ???[sx]*):;;*)false;;esac;fi
25576 '\'' sh
25577 '
25578fi
25579as_executable_p=$as_test_x
542f9784 25580
25581# Sed expression to map a string onto a valid CPP name.
25582as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25583
25584# Sed expression to map a string onto a valid variable name.
25585as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25586
25587
542f9784 25588exec 6>&1
cd9a469c 25589## ----------------------------------- ##
25590## Main body of $CONFIG_STATUS script. ##
25591## ----------------------------------- ##
25592_ASEOF
25593test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25594
25595cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25596# Save the log message, to keep $0 and so on meaningful, and to
542f9784 25597# report actual input values of CONFIG_FILES etc. instead of their
cd9a469c 25598# values after options handling.
25599ac_log="
542f9784 25600This file was extended by libjava $as_me version-unused, which was
cd9a469c 25601generated by GNU Autoconf 2.64. Invocation command line was
542f9784 25602
25603 CONFIG_FILES = $CONFIG_FILES
25604 CONFIG_HEADERS = $CONFIG_HEADERS
25605 CONFIG_LINKS = $CONFIG_LINKS
25606 CONFIG_COMMANDS = $CONFIG_COMMANDS
25607 $ $0 $@
25608
cd9a469c 25609on `(hostname || uname -n) 2>/dev/null | sed 1q`
25610"
25611
542f9784 25612_ACEOF
25613
cd9a469c 25614case $ac_config_files in *"
25615"*) set x $ac_config_files; shift; ac_config_files=$*;;
25616esac
542f9784 25617
cd9a469c 25618case $ac_config_headers in *"
25619"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25620esac
542f9784 25621
542f9784 25622
cd9a469c 25623cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25624# Files that config.status was made for.
25625config_files="$ac_config_files"
25626config_headers="$ac_config_headers"
25627config_links="$ac_config_links"
25628config_commands="$ac_config_commands"
542f9784 25629
cd9a469c 25630_ACEOF
542f9784 25631
cd9a469c 25632cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
542f9784 25633ac_cs_usage="\
cd9a469c 25634\`$as_me' instantiates files and other configuration actions
25635from templates according to the current configuration. Unless the files
25636and actions are specified as TAGs, all are instantiated by default.
542f9784 25637
cd9a469c 25638Usage: $0 [OPTION]... [TAG]...
542f9784 25639
25640 -h, --help print this help, then exit
cd9a469c 25641 -V, --version print version number and configuration settings, then exit
25642 -q, --quiet, --silent
25643 do not print progress messages
542f9784 25644 -d, --debug don't remove temporary files
25645 --recheck update $as_me by reconfiguring in the same conditions
cd9a469c 25646 --file=FILE[:TEMPLATE]
25647 instantiate the configuration file FILE
25648 --header=FILE[:TEMPLATE]
25649 instantiate the configuration header FILE
542f9784 25650
25651Configuration files:
25652$config_files
25653
25654Configuration headers:
25655$config_headers
25656
25657Configuration links:
25658$config_links
25659
25660Configuration commands:
25661$config_commands
25662
cd9a469c 25663Report bugs to the package provider."
542f9784 25664
cd9a469c 25665_ACEOF
25666cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
542f9784 25667ac_cs_version="\\
25668libjava config.status version-unused
cd9a469c 25669configured by $0, generated by GNU Autoconf 2.64,
25670 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
542f9784 25671
cd9a469c 25672Copyright (C) 2009 Free Software Foundation, Inc.
542f9784 25673This config.status script is free software; the Free Software Foundation
25674gives unlimited permission to copy, distribute and modify it."
cd9a469c 25675
25676ac_pwd='$ac_pwd'
25677srcdir='$srcdir'
25678INSTALL='$INSTALL'
25679MKDIR_P='$MKDIR_P'
25680AWK='$AWK'
25681test -n "\$AWK" || AWK=awk
542f9784 25682_ACEOF
25683
cd9a469c 25684cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25685# The default lists apply if the user does not specify any file.
542f9784 25686ac_need_defaults=:
25687while test $# != 0
25688do
25689 case $1 in
25690 --*=*)
cd9a469c 25691 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25692 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
542f9784 25693 ac_shift=:
25694 ;;
cd9a469c 25695 *)
542f9784 25696 ac_option=$1
25697 ac_optarg=$2
25698 ac_shift=shift
25699 ;;
542f9784 25700 esac
25701
25702 case $ac_option in
25703 # Handling of the options.
542f9784 25704 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25705 ac_cs_recheck=: ;;
cd9a469c 25706 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25707 $as_echo "$ac_cs_version"; exit ;;
25708 --debug | --debu | --deb | --de | --d | -d )
542f9784 25709 debug=: ;;
25710 --file | --fil | --fi | --f )
25711 $ac_shift
cd9a469c 25712 case $ac_optarg in
25713 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25714 esac
25715 as_fn_append CONFIG_FILES " '$ac_optarg'"
542f9784 25716 ac_need_defaults=false;;
25717 --header | --heade | --head | --hea )
25718 $ac_shift
cd9a469c 25719 case $ac_optarg in
25720 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25721 esac
25722 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
542f9784 25723 ac_need_defaults=false;;
cd9a469c 25724 --he | --h)
25725 # Conflict between --help and --header
25726 as_fn_error "ambiguous option: \`$1'
25727Try \`$0 --help' for more information.";;
25728 --help | --hel | -h )
25729 $as_echo "$ac_cs_usage"; exit ;;
542f9784 25730 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25731 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25732 ac_cs_silent=: ;;
25733
25734 # This is an error.
cd9a469c 25735 -*) as_fn_error "unrecognized option: \`$1'
25736Try \`$0 --help' for more information." ;;
542f9784 25737
cd9a469c 25738 *) as_fn_append ac_config_targets " $1"
25739 ac_need_defaults=false ;;
542f9784 25740
25741 esac
25742 shift
25743done
25744
25745ac_configure_extra_args=
25746
25747if $ac_cs_silent; then
25748 exec 6>/dev/null
25749 ac_configure_extra_args="$ac_configure_extra_args --silent"
25750fi
25751
25752_ACEOF
cd9a469c 25753cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
542f9784 25754if \$ac_cs_recheck; then
cd9a469c 25755 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25756 shift
25757 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25758 CONFIG_SHELL='$SHELL'
25759 export CONFIG_SHELL
25760 exec "\$@"
542f9784 25761fi
25762
25763_ACEOF
cd9a469c 25764cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25765exec 5>>config.log
25766{
25767 echo
25768 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25769## Running $as_me. ##
25770_ASBOX
25771 $as_echo "$ac_log"
25772} >&5
542f9784 25773
cd9a469c 25774_ACEOF
25775cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
542f9784 25776#
cd9a469c 25777# INIT-COMMANDS
542f9784 25778#
25779
542f9784 25780srcdir="$srcdir"
25781host="$host"
25782target="$target"
25783with_multisubdir="$with_multisubdir"
25784with_multisrctop="$with_multisrctop"
25785with_target_subdir="$with_target_subdir"
25786ac_configure_args="${multilib_arg} ${ac_configure_args}"
25787multi_basedir="$multi_basedir"
25788CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25789CC="$CC"
bd1f9655 25790CXX="$CXX"
25791GFORTRAN="$GFORTRAN"
25792GCJ="$GCJ"
542f9784 25793AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25794
25795
25796# The HP-UX ksh and POSIX shell print the target directory to stdout
25797# if CDPATH is set.
25798(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25799
25800sed_quote_subst='$sed_quote_subst'
25801double_quote_subst='$double_quote_subst'
25802delay_variable_subst='$delay_variable_subst'
e6408286 25803macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25804macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25805enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25806enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25807pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25808enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25809SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25810ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25811host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25812host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25813host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25814build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25815build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25816build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25817SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25818Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25819GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25820EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25821FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25822LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25823NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25824LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25825max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25826ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25827exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25828lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25829lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25830lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25831reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25832reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25833OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25834deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25835file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25836AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25837AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25838STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25839RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25840old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25841old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25842old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25843lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25844CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25845CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25846compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25847GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25848lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25849lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25850lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25851lt_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"`'
25852objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25853MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25854lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25855lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25856lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25857lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25858lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25859need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25860DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25861NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25862LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25863OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25864OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25865libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25866shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25867extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25868archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25869enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25870export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25871whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25872compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25873old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25874old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25875archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25876archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25877module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25878module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25879with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25880allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25881no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25882hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25883hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
25884hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25885hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25886hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25887hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25888hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25889hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25890inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25891link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25892fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
25893always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25894export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25895exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25896include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25897prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25898file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25899variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25900need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25901need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25902version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25903runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25904shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25905shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25906libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25907library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25908soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25909install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25910postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25911postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25912finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25913finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25914hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25915sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25916sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25917hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25918enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25919enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25920enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25921old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25922striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25923compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25924predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25925postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25926predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25927postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25928compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25929LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25930LD_GCJ='`$ECHO "$LD_GCJ" | $SED "$delay_single_quote_subst"`'
25931reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25932reload_flag_GCJ='`$ECHO "$reload_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25933reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25934reload_cmds_GCJ='`$ECHO "$reload_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25935old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25936old_archive_cmds_GCJ='`$ECHO "$old_archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25937compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25938compiler_GCJ='`$ECHO "$compiler_GCJ" | $SED "$delay_single_quote_subst"`'
25939GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25940GCC_GCJ='`$ECHO "$GCC_GCJ" | $SED "$delay_single_quote_subst"`'
25941lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25942lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "$lt_prog_compiler_no_builtin_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25943lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25944lt_prog_compiler_wl_GCJ='`$ECHO "$lt_prog_compiler_wl_GCJ" | $SED "$delay_single_quote_subst"`'
25945lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25946lt_prog_compiler_pic_GCJ='`$ECHO "$lt_prog_compiler_pic_GCJ" | $SED "$delay_single_quote_subst"`'
25947lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25948lt_prog_compiler_static_GCJ='`$ECHO "$lt_prog_compiler_static_GCJ" | $SED "$delay_single_quote_subst"`'
25949lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25950lt_cv_prog_compiler_c_o_GCJ='`$ECHO "$lt_cv_prog_compiler_c_o_GCJ" | $SED "$delay_single_quote_subst"`'
25951archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25952archive_cmds_need_lc_GCJ='`$ECHO "$archive_cmds_need_lc_GCJ" | $SED "$delay_single_quote_subst"`'
25953enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25954enable_shared_with_static_runtimes_GCJ='`$ECHO "$enable_shared_with_static_runtimes_GCJ" | $SED "$delay_single_quote_subst"`'
25955export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25956export_dynamic_flag_spec_GCJ='`$ECHO "$export_dynamic_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25957whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25958whole_archive_flag_spec_GCJ='`$ECHO "$whole_archive_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25959compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25960compiler_needs_object_GCJ='`$ECHO "$compiler_needs_object_GCJ" | $SED "$delay_single_quote_subst"`'
25961old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25962old_archive_from_new_cmds_GCJ='`$ECHO "$old_archive_from_new_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25963old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25964old_archive_from_expsyms_cmds_GCJ='`$ECHO "$old_archive_from_expsyms_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25965archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25966archive_cmds_GCJ='`$ECHO "$archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25967archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25968archive_expsym_cmds_GCJ='`$ECHO "$archive_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25969module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25970module_cmds_GCJ='`$ECHO "$module_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25971module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25972module_expsym_cmds_GCJ='`$ECHO "$module_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25973with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25974with_gnu_ld_GCJ='`$ECHO "$with_gnu_ld_GCJ" | $SED "$delay_single_quote_subst"`'
25975allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25976allow_undefined_flag_GCJ='`$ECHO "$allow_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25977no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25978no_undefined_flag_GCJ='`$ECHO "$no_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25979hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25980hardcode_libdir_flag_spec_GCJ='`$ECHO "$hardcode_libdir_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25981hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
25982hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "$hardcode_libdir_flag_spec_ld_GCJ" | $SED "$delay_single_quote_subst"`'
25983hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25984hardcode_libdir_separator_GCJ='`$ECHO "$hardcode_libdir_separator_GCJ" | $SED "$delay_single_quote_subst"`'
25985hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25986hardcode_direct_GCJ='`$ECHO "$hardcode_direct_GCJ" | $SED "$delay_single_quote_subst"`'
25987hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25988hardcode_direct_absolute_GCJ='`$ECHO "$hardcode_direct_absolute_GCJ" | $SED "$delay_single_quote_subst"`'
25989hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25990hardcode_minus_L_GCJ='`$ECHO "$hardcode_minus_L_GCJ" | $SED "$delay_single_quote_subst"`'
25991hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25992hardcode_shlibpath_var_GCJ='`$ECHO "$hardcode_shlibpath_var_GCJ" | $SED "$delay_single_quote_subst"`'
25993hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25994hardcode_automatic_GCJ='`$ECHO "$hardcode_automatic_GCJ" | $SED "$delay_single_quote_subst"`'
25995inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25996inherit_rpath_GCJ='`$ECHO "$inherit_rpath_GCJ" | $SED "$delay_single_quote_subst"`'
25997link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25998link_all_deplibs_GCJ='`$ECHO "$link_all_deplibs_GCJ" | $SED "$delay_single_quote_subst"`'
25999fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
26000fix_srcfile_path_GCJ='`$ECHO "$fix_srcfile_path_GCJ" | $SED "$delay_single_quote_subst"`'
26001always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
26002always_export_symbols_GCJ='`$ECHO "$always_export_symbols_GCJ" | $SED "$delay_single_quote_subst"`'
26003export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26004export_symbols_cmds_GCJ='`$ECHO "$export_symbols_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26005exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26006exclude_expsyms_GCJ='`$ECHO "$exclude_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
26007include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26008include_expsyms_GCJ='`$ECHO "$include_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
26009prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26010prelink_cmds_GCJ='`$ECHO "$prelink_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26011file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
26012file_list_spec_GCJ='`$ECHO "$file_list_spec_GCJ" | $SED "$delay_single_quote_subst"`'
26013hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
26014hardcode_action_GCJ='`$ECHO "$hardcode_action_GCJ" | $SED "$delay_single_quote_subst"`'
26015compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
26016compiler_lib_search_dirs_GCJ='`$ECHO "$compiler_lib_search_dirs_GCJ" | $SED "$delay_single_quote_subst"`'
26017predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26018predep_objects_GCJ='`$ECHO "$predep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
26019postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26020postdep_objects_GCJ='`$ECHO "$postdep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
26021predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
26022predeps_GCJ='`$ECHO "$predeps_GCJ" | $SED "$delay_single_quote_subst"`'
26023postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
26024postdeps_GCJ='`$ECHO "$postdeps_GCJ" | $SED "$delay_single_quote_subst"`'
26025compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
26026compiler_lib_search_path_GCJ='`$ECHO "$compiler_lib_search_path_GCJ" | $SED "$delay_single_quote_subst"`'
542f9784 26027
26028LTCC='$LTCC'
26029LTCFLAGS='$LTCFLAGS'
26030compiler='$compiler_DEFAULT'
26031
e6408286 26032# A function that is used when there is no print builtin or printf.
26033func_fallback_echo ()
26034{
26035 eval 'cat <<_LTECHO_EOF
26036\$1
26037_LTECHO_EOF'
26038}
26039
542f9784 26040# Quote evaled strings.
e6408286 26041for var in SHELL \
26042ECHO \
26043SED \
542f9784 26044GREP \
26045EGREP \
26046FGREP \
26047LD \
26048NM \
26049LN_S \
26050lt_SP2NL \
26051lt_NL2SP \
26052reload_flag \
976af183 26053OBJDUMP \
542f9784 26054deplibs_check_method \
26055file_magic_cmd \
26056AR \
26057AR_FLAGS \
26058STRIP \
26059RANLIB \
26060CC \
26061CFLAGS \
26062compiler \
26063lt_cv_sys_global_symbol_pipe \
26064lt_cv_sys_global_symbol_to_cdecl \
26065lt_cv_sys_global_symbol_to_c_name_address \
976af183 26066lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
542f9784 26067lt_prog_compiler_no_builtin_flag \
26068lt_prog_compiler_wl \
26069lt_prog_compiler_pic \
26070lt_prog_compiler_static \
26071lt_cv_prog_compiler_c_o \
26072need_locks \
976af183 26073DSYMUTIL \
26074NMEDIT \
26075LIPO \
26076OTOOL \
26077OTOOL64 \
542f9784 26078shrext_cmds \
26079export_dynamic_flag_spec \
26080whole_archive_flag_spec \
26081compiler_needs_object \
26082with_gnu_ld \
26083allow_undefined_flag \
26084no_undefined_flag \
26085hardcode_libdir_flag_spec \
26086hardcode_libdir_flag_spec_ld \
26087hardcode_libdir_separator \
26088fix_srcfile_path \
26089exclude_expsyms \
26090include_expsyms \
26091file_list_spec \
26092variables_saved_for_relink \
26093libname_spec \
26094library_names_spec \
26095soname_spec \
e6408286 26096install_override_mode \
542f9784 26097finish_eval \
26098old_striplib \
26099striplib \
976af183 26100compiler_lib_search_dirs \
542f9784 26101predep_objects \
26102postdep_objects \
26103predeps \
26104postdeps \
26105compiler_lib_search_path \
26106LD_CXX \
26107LD_GCJ \
e6408286 26108reload_flag_CXX \
26109reload_flag_GCJ \
542f9784 26110compiler_CXX \
26111compiler_GCJ \
26112lt_prog_compiler_no_builtin_flag_CXX \
26113lt_prog_compiler_no_builtin_flag_GCJ \
26114lt_prog_compiler_wl_CXX \
26115lt_prog_compiler_wl_GCJ \
26116lt_prog_compiler_pic_CXX \
26117lt_prog_compiler_pic_GCJ \
26118lt_prog_compiler_static_CXX \
26119lt_prog_compiler_static_GCJ \
26120lt_cv_prog_compiler_c_o_CXX \
26121lt_cv_prog_compiler_c_o_GCJ \
26122export_dynamic_flag_spec_CXX \
26123export_dynamic_flag_spec_GCJ \
26124whole_archive_flag_spec_CXX \
26125whole_archive_flag_spec_GCJ \
26126compiler_needs_object_CXX \
26127compiler_needs_object_GCJ \
26128with_gnu_ld_CXX \
26129with_gnu_ld_GCJ \
26130allow_undefined_flag_CXX \
26131allow_undefined_flag_GCJ \
26132no_undefined_flag_CXX \
26133no_undefined_flag_GCJ \
26134hardcode_libdir_flag_spec_CXX \
26135hardcode_libdir_flag_spec_GCJ \
26136hardcode_libdir_flag_spec_ld_CXX \
26137hardcode_libdir_flag_spec_ld_GCJ \
26138hardcode_libdir_separator_CXX \
26139hardcode_libdir_separator_GCJ \
26140fix_srcfile_path_CXX \
26141fix_srcfile_path_GCJ \
26142exclude_expsyms_CXX \
26143exclude_expsyms_GCJ \
26144include_expsyms_CXX \
26145include_expsyms_GCJ \
26146file_list_spec_CXX \
26147file_list_spec_GCJ \
976af183 26148compiler_lib_search_dirs_CXX \
26149compiler_lib_search_dirs_GCJ \
542f9784 26150predep_objects_CXX \
26151predep_objects_GCJ \
26152postdep_objects_CXX \
26153postdep_objects_GCJ \
26154predeps_CXX \
26155predeps_GCJ \
26156postdeps_CXX \
26157postdeps_GCJ \
26158compiler_lib_search_path_CXX \
26159compiler_lib_search_path_GCJ; do
e6408286 26160 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
542f9784 26161 *[\\\\\\\`\\"\\\$]*)
e6408286 26162 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
542f9784 26163 ;;
26164 *)
26165 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26166 ;;
26167 esac
26168done
26169
26170# Double-quote double-evaled strings.
26171for var in reload_cmds \
26172old_postinstall_cmds \
26173old_postuninstall_cmds \
26174old_archive_cmds \
26175extract_expsyms_cmds \
26176old_archive_from_new_cmds \
26177old_archive_from_expsyms_cmds \
26178archive_cmds \
26179archive_expsym_cmds \
26180module_cmds \
26181module_expsym_cmds \
26182export_symbols_cmds \
26183prelink_cmds \
26184postinstall_cmds \
26185postuninstall_cmds \
26186finish_cmds \
26187sys_lib_search_path_spec \
26188sys_lib_dlsearch_path_spec \
e6408286 26189reload_cmds_CXX \
26190reload_cmds_GCJ \
542f9784 26191old_archive_cmds_CXX \
26192old_archive_cmds_GCJ \
26193old_archive_from_new_cmds_CXX \
26194old_archive_from_new_cmds_GCJ \
26195old_archive_from_expsyms_cmds_CXX \
26196old_archive_from_expsyms_cmds_GCJ \
26197archive_cmds_CXX \
26198archive_cmds_GCJ \
26199archive_expsym_cmds_CXX \
26200archive_expsym_cmds_GCJ \
26201module_cmds_CXX \
26202module_cmds_GCJ \
26203module_expsym_cmds_CXX \
26204module_expsym_cmds_GCJ \
26205export_symbols_cmds_CXX \
26206export_symbols_cmds_GCJ \
26207prelink_cmds_CXX \
26208prelink_cmds_GCJ; do
e6408286 26209 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
542f9784 26210 *[\\\\\\\`\\"\\\$]*)
e6408286 26211 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
542f9784 26212 ;;
26213 *)
26214 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26215 ;;
26216 esac
26217done
26218
542f9784 26219ac_aux_dir='$ac_aux_dir'
26220xsi_shell='$xsi_shell'
26221lt_shell_append='$lt_shell_append'
26222
26223# See if we are running on zsh, and set the options which allow our
26224# commands through without removal of \ escapes INIT.
26225if test -n "\${ZSH_VERSION+set}" ; then
26226 setopt NO_GLOB_SUBST
26227fi
26228
26229
26230 PACKAGE='$PACKAGE'
26231 VERSION='$VERSION'
26232 TIMESTAMP='$TIMESTAMP'
26233 RM='$RM'
26234 ofile='$ofile'
26235
26236
26237
26238
26239
26240
26241
542f9784 26242
26243_ACEOF
26244
cd9a469c 26245cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
542f9784 26246
cd9a469c 26247# Handling of arguments.
542f9784 26248for ac_config_target in $ac_config_targets
26249do
cd9a469c 26250 case $ac_config_target in
26251 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
26252 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26253 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
26254 "gcj/libgcj-config.h") CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
26255 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26256 "include/platform.h") CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
26257 "java/io/natFile.cc") CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
26258 "java/lang/natConcreteProcess.cc") CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
26259 "java/net/natVMInetAddress.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
26260 "java/net/natVMNetworkInterface.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
26261 "gnu/java/net/natPlainSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
26262 "gnu/java/net/natPlainDatagramSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
26263 "gnu/java/nio/natVMPipe.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
26264 "gnu/java/nio/natVMSelector.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
26265 "gnu/java/nio/channels/natFileChannelImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
26266 "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" ;;
26267 "include/java-gc.h") CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
26268 "include/java-threads.h") CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
26269 "sysdep/locks.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
26270 "sysdep/backtrace.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
26271 "sysdep/descriptor.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
26272 "include/java-signal.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
26273 "include/java-signal-aux.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
26274 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26275 "libgcj.pc") CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
26276 "libgcj.spec") CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
26277 "libgcj-test.spec") CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
26278 "gcj/Makefile") CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
26279 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26280 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
26281 "contrib/aotcompile.py") CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
26282 "contrib/aot-compile") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
26283 "contrib/aot-compile-rpm") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
26284 "contrib/generate-cacerts.pl") CONFIG_FILES="$CONFIG_FILES contrib/generate-cacerts.pl" ;;
26285 "contrib/rebuild-gcj-db") CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
26286 "scripts/jar") CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
26287
26288 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
542f9784 26289 esac
26290done
26291
cd9a469c 26292
542f9784 26293# If the user did not use the arguments to specify the items to instantiate,
26294# then the envvar interface is used. Set only those that are not.
26295# We use the long form for the default assignment because of an extremely
26296# bizarre bug on SunOS 4.1.3.
26297if $ac_need_defaults; then
26298 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26299 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26300 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26301 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26302fi
26303
26304# Have a temporary directory for convenience. Make it in the build tree
cd9a469c 26305# simply because there is no reason against having it here, and in addition,
542f9784 26306# creating and moving files from /tmp can sometimes cause problems.
cd9a469c 26307# Hook for its removal unless debugging.
26308# Note that there is a small window in which the directory will not be cleaned:
26309# after its creation but before its name has been assigned to `$tmp'.
542f9784 26310$debug ||
26311{
cd9a469c 26312 tmp=
26313 trap 'exit_status=$?
26314 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26315' 0
26316 trap 'as_fn_exit 1' 1 2 13 15
26317}
26318# Create a (secure) tmp directory for tmp files.
26319
26320{
26321 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26322 test -n "$tmp" && test -d "$tmp"
26323} ||
26324{
26325 tmp=./conf$$-$RANDOM
26326 (umask 077 && mkdir "$tmp")
26327} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26328
26329# Set up the scripts for CONFIG_FILES section.
26330# No need to generate them if there are no CONFIG_FILES.
26331# This happens for instance with `./config.status config.h'.
26332if test -n "$CONFIG_FILES"; then
26333
26334
26335ac_cr=`echo X | tr X '\015'`
26336# On cygwin, bash can eat \r inside `` if the user requested igncr.
26337# But we know of no other shell where ac_cr would be empty at this
26338# point, so we can use a bashism as a fallback.
26339if test "x$ac_cr" = x; then
26340 eval ac_cr=\$\'\\r\'
26341fi
26342ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26343if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26344 ac_cs_awk_cr='\r'
26345else
26346 ac_cs_awk_cr=$ac_cr
26347fi
26348
26349echo 'BEGIN {' >"$tmp/subs1.awk" &&
26350_ACEOF
26351
26352
26353{
26354 echo "cat >conf$$subs.awk <<_ACEOF" &&
26355 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26356 echo "_ACEOF"
26357} >conf$$subs.sh ||
26358 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26359ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26360ac_delim='%!_!# '
26361for ac_last_try in false false false false false :; do
26362 . ./conf$$subs.sh ||
26363 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26364
26365 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26366 if test $ac_delim_n = $ac_delim_num; then
26367 break
26368 elif $ac_last_try; then
26369 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26370 else
26371 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26372 fi
26373done
26374rm -f conf$$subs.sh
26375
26376cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26377cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26378_ACEOF
26379sed -n '
26380h
26381s/^/S["/; s/!.*/"]=/
26382p
26383g
26384s/^[^!]*!//
26385:repl
26386t repl
26387s/'"$ac_delim"'$//
26388t delim
26389:nl
26390h
26391s/\(.\{148\}\).*/\1/
26392t more1
26393s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26394p
26395n
26396b repl
26397:more1
26398s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26399p
26400g
26401s/.\{148\}//
26402t nl
26403:delim
26404h
26405s/\(.\{148\}\).*/\1/
26406t more2
26407s/["\\]/\\&/g; s/^/"/; s/$/"/
26408p
26409b
26410:more2
26411s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26412p
26413g
26414s/.\{148\}//
26415t delim
26416' <conf$$subs.awk | sed '
26417/^[^""]/{
26418 N
26419 s/\n//
26420}
26421' >>$CONFIG_STATUS || ac_write_fail=1
26422rm -f conf$$subs.awk
26423cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26424_ACAWK
26425cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26426 for (key in S) S_is_set[key] = 1
26427 FS = "\a"
26428
26429}
26430{
26431 line = $ 0
26432 nfields = split(line, field, "@")
26433 substed = 0
26434 len = length(field[1])
26435 for (i = 2; i < nfields; i++) {
26436 key = field[i]
26437 keylen = length(key)
26438 if (S_is_set[key]) {
26439 value = S[key]
26440 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26441 len += length(value) + length(field[++i])
26442 substed = 1
26443 } else
26444 len += 1 + keylen
26445 }
26446
26447 print line
542f9784 26448}
26449
cd9a469c 26450_ACAWK
26451_ACEOF
26452cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26453if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26454 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26455else
26456 cat
26457fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26458 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26459_ACEOF
26460
26461# VPATH may cause trouble with some makes, so we remove $(srcdir),
26462# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26463# trailing colons and then remove the whole line if VPATH becomes empty
26464# (actually we leave an empty line to preserve line numbers).
26465if test "x$srcdir" = x.; then
26466 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26467s/:*\$(srcdir):*/:/
26468s/:*\${srcdir}:*/:/
26469s/:*@srcdir@:*/:/
26470s/^\([^=]*=[ ]*\):*/\1/
26471s/:*$//
26472s/^[^=]*=[ ]*$//
26473}'
26474fi
26475
26476cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26477fi # test -n "$CONFIG_FILES"
26478
26479# Set up the scripts for CONFIG_HEADERS section.
26480# No need to generate them if there are no CONFIG_HEADERS.
26481# This happens for instance with `./config.status Makefile'.
26482if test -n "$CONFIG_HEADERS"; then
26483cat >"$tmp/defines.awk" <<\_ACAWK ||
26484BEGIN {
26485_ACEOF
26486
26487# Transform confdefs.h into an awk script `defines.awk', embedded as
26488# here-document in config.status, that substitutes the proper values into
26489# config.h.in to produce config.h.
26490
26491# Create a delimiter string that does not exist in confdefs.h, to ease
26492# handling of long lines.
26493ac_delim='%!_!# '
26494for ac_last_try in false false :; do
26495 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26496 if test -z "$ac_t"; then
26497 break
26498 elif $ac_last_try; then
26499 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26500 else
26501 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26502 fi
26503done
542f9784 26504
cd9a469c 26505# For the awk script, D is an array of macro values keyed by name,
26506# likewise P contains macro parameters if any. Preserve backslash
26507# newline sequences.
26508
26509ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26510sed -n '
26511s/.\{148\}/&'"$ac_delim"'/g
26512t rset
26513:rset
26514s/^[ ]*#[ ]*define[ ][ ]*/ /
26515t def
26516d
26517:def
26518s/\\$//
26519t bsnl
26520s/["\\]/\\&/g
26521s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26522D["\1"]=" \3"/p
26523s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26524d
26525:bsnl
26526s/["\\]/\\&/g
26527s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26528D["\1"]=" \3\\\\\\n"\\/p
26529t cont
26530s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26531t cont
26532d
26533:cont
26534n
26535s/.\{148\}/&'"$ac_delim"'/g
26536t clear
26537:clear
26538s/\\$//
26539t bsnlc
26540s/["\\]/\\&/g; s/^/"/; s/$/"/p
26541d
26542:bsnlc
26543s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26544b cont
26545' <confdefs.h | sed '
26546s/'"$ac_delim"'/"\\\
26547"/g' >>$CONFIG_STATUS || ac_write_fail=1
26548
26549cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26550 for (key in D) D_is_set[key] = 1
26551 FS = "\a"
542f9784 26552}
cd9a469c 26553/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26554 line = \$ 0
26555 split(line, arg, " ")
26556 if (arg[1] == "#") {
26557 defundef = arg[2]
26558 mac1 = arg[3]
26559 } else {
26560 defundef = substr(arg[1], 2)
26561 mac1 = arg[2]
26562 }
26563 split(mac1, mac2, "(") #)
26564 macro = mac2[1]
26565 prefix = substr(line, 1, index(line, defundef) - 1)
26566 if (D_is_set[macro]) {
26567 # Preserve the white space surrounding the "#".
26568 print prefix "define", macro P[macro] D[macro]
26569 next
26570 } else {
26571 # Replace #undef with comments. This is necessary, for example,
26572 # in the case of _POSIX_SOURCE, which is predefined and required
26573 # on some systems where configure will not decide to define it.
26574 if (defundef == "undef") {
26575 print "/*", prefix defundef, macro, "*/"
26576 next
26577 }
26578 }
26579}
26580{ print }
26581_ACAWK
542f9784 26582_ACEOF
cd9a469c 26583cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26584 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26585fi # test -n "$CONFIG_HEADERS"
542f9784 26586
542f9784 26587
cd9a469c 26588eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
26589shift
26590for ac_tag
26591do
26592 case $ac_tag in
26593 :[FHLC]) ac_mode=$ac_tag; continue;;
26594 esac
26595 case $ac_mode$ac_tag in
26596 :[FHL]*:*);;
26597 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26598 :[FH]-) ac_tag=-:-;;
26599 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26600 esac
26601 ac_save_IFS=$IFS
26602 IFS=:
26603 set x $ac_tag
26604 IFS=$ac_save_IFS
26605 shift
26606 ac_file=$1
26607 shift
30f7243e 26608
cd9a469c 26609 case $ac_mode in
26610 :L) ac_source=$1;;
26611 :[FH])
26612 ac_file_inputs=
26613 for ac_f
26614 do
26615 case $ac_f in
26616 -) ac_f="$tmp/stdin";;
26617 *) # Look for the file first in the build tree, then in the source tree
26618 # (if the path is not absolute). The absolute path cannot be DOS-style,
26619 # because $ac_f cannot contain `:'.
26620 test -f "$ac_f" ||
26621 case $ac_f in
26622 [\\/$]*) false;;
26623 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26624 esac ||
26625 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26626 esac
26627 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26628 as_fn_append ac_file_inputs " '$ac_f'"
26629 done
542f9784 26630
cd9a469c 26631 # Let's still pretend it is `configure' which instantiates (i.e., don't
26632 # use $as_me), people would be surprised to read:
26633 # /* config.h. Generated by config.status. */
26634 configure_input='Generated from '`
26635 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26636 `' by configure.'
26637 if test x"$ac_file" != x-; then
26638 configure_input="$ac_file. $configure_input"
26639 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26640$as_echo "$as_me: creating $ac_file" >&6;}
542f9784 26641 fi
cd9a469c 26642 # Neutralize special characters interpreted by sed in replacement strings.
26643 case $configure_input in #(
26644 *\&* | *\|* | *\\* )
26645 ac_sed_conf_input=`$as_echo "$configure_input" |
26646 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26647 *) ac_sed_conf_input=$configure_input;;
26648 esac
542f9784 26649
cd9a469c 26650 case $ac_tag in
26651 *:-:* | *:-) cat >"$tmp/stdin" \
26652 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26653 esac
26654 ;;
542f9784 26655 esac
26656
cd9a469c 26657 ac_dir=`$as_dirname -- "$ac_file" ||
542f9784 26658$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26659 X"$ac_file" : 'X\(//\)[^/]' \| \
26660 X"$ac_file" : 'X\(//\)$' \| \
cd9a469c 26661 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26662$as_echo X"$ac_file" |
26663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26664 s//\1/
26665 q
26666 }
26667 /^X\(\/\/\)[^/].*/{
26668 s//\1/
26669 q
26670 }
26671 /^X\(\/\/\)$/{
26672 s//\1/
26673 q
26674 }
26675 /^X\(\/\).*/{
26676 s//\1/
26677 q
26678 }
26679 s/.*/./; q'`
26680 as_dir="$ac_dir"; as_fn_mkdir_p
542f9784 26681 ac_builddir=.
26682
cd9a469c 26683case "$ac_dir" in
26684.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26685*)
26686 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26687 # A ".." for each directory in $ac_dir_suffix.
26688 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26689 case $ac_top_builddir_sub in
26690 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26691 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26692 esac ;;
26693esac
26694ac_abs_top_builddir=$ac_pwd
26695ac_abs_builddir=$ac_pwd$ac_dir_suffix
26696# for backward compatibility:
26697ac_top_builddir=$ac_top_build_prefix
542f9784 26698
26699case $srcdir in
cd9a469c 26700 .) # We are building in place.
542f9784 26701 ac_srcdir=.
cd9a469c 26702 ac_top_srcdir=$ac_top_builddir_sub
26703 ac_abs_top_srcdir=$ac_pwd ;;
26704 [\\/]* | ?:[\\/]* ) # Absolute name.
542f9784 26705 ac_srcdir=$srcdir$ac_dir_suffix;
cd9a469c 26706 ac_top_srcdir=$srcdir
26707 ac_abs_top_srcdir=$srcdir ;;
26708 *) # Relative name.
26709 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26710 ac_top_srcdir=$ac_top_build_prefix$srcdir
26711 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
542f9784 26712esac
cd9a469c 26713ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
542f9784 26714
542f9784 26715
cd9a469c 26716 case $ac_mode in
26717 :F)
26718 #
26719 # CONFIG_FILE
26720 #
542f9784 26721
26722 case $INSTALL in
26723 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
cd9a469c 26724 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
542f9784 26725 esac
cd9a469c 26726 ac_MKDIR_P=$MKDIR_P
26727 case $MKDIR_P in
26728 [\\/$]* | ?:[\\/]* ) ;;
26729 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26730 esac
26731_ACEOF
542f9784 26732
cd9a469c 26733cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26734# If the template does not know about datarootdir, expand it.
26735# FIXME: This hack should be removed a few years after 2.60.
26736ac_datarootdir_hack=; ac_datarootdir_seen=
26737ac_sed_dataroot='
26738/datarootdir/ {
26739 p
26740 q
26741}
26742/@datadir@/p
26743/@docdir@/p
26744/@infodir@/p
26745/@localedir@/p
26746/@mandir@/p'
26747case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26748*datarootdir*) ac_datarootdir_seen=yes;;
26749*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26751$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26752_ACEOF
26753cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26754 ac_datarootdir_hack='
26755 s&@datadir@&$datadir&g
26756 s&@docdir@&$docdir&g
26757 s&@infodir@&$infodir&g
26758 s&@localedir@&$localedir&g
26759 s&@mandir@&$mandir&g
26760 s&\\\${datarootdir}&$datarootdir&g' ;;
26761esac
542f9784 26762_ACEOF
cd9a469c 26763
26764# Neutralize VPATH when `$srcdir' = `.'.
26765# Shell code in configure.ac might set extrasub.
26766# FIXME: do we really want to maintain this feature?
26767cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26768ac_sed_extra="$ac_vpsub
542f9784 26769$extrasub
26770_ACEOF
cd9a469c 26771cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
542f9784 26772:t
26773/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
cd9a469c 26774s|@configure_input@|$ac_sed_conf_input|;t t
26775s&@top_builddir@&$ac_top_builddir_sub&;t t
26776s&@top_build_prefix@&$ac_top_build_prefix&;t t
26777s&@srcdir@&$ac_srcdir&;t t
26778s&@abs_srcdir@&$ac_abs_srcdir&;t t
26779s&@top_srcdir@&$ac_top_srcdir&;t t
26780s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26781s&@builddir@&$ac_builddir&;t t
26782s&@abs_builddir@&$ac_abs_builddir&;t t
26783s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26784s&@INSTALL@&$ac_INSTALL&;t t
26785s&@MKDIR_P@&$ac_MKDIR_P&;t t
26786$ac_datarootdir_hack
26787"
26788eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26789 || as_fn_error "could not create $ac_file" "$LINENO" 5
26790
26791test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26792 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26793 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26795which seems to be undefined. Please make sure it is defined." >&5
26796$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26797which seems to be undefined. Please make sure it is defined." >&2;}
26798
26799 rm -f "$tmp/stdin"
542f9784 26800 case $ac_file in
cd9a469c 26801 -) cat "$tmp/out" && rm -f "$tmp/out";;
26802 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26803 esac \
26804 || as_fn_error "could not create $ac_file" "$LINENO" 5
26805 ;;
26806 :H)
26807 #
26808 # CONFIG_HEADER
26809 #
542f9784 26810 if test x"$ac_file" != x-; then
cd9a469c 26811 {
26812 $as_echo "/* $configure_input */" \
26813 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26814 } >"$tmp/config.h" \
26815 || as_fn_error "could not create $ac_file" "$LINENO" 5
26816 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26817 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26818$as_echo "$as_me: $ac_file is unchanged" >&6;}
542f9784 26819 else
cd9a469c 26820 rm -f "$ac_file"
26821 mv "$tmp/config.h" "$ac_file" \
26822 || as_fn_error "could not create $ac_file" "$LINENO" 5
542f9784 26823 fi
26824 else
cd9a469c 26825 $as_echo "/* $configure_input */" \
26826 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26827 || as_fn_error "could not create -" "$LINENO" 5
542f9784 26828 fi
cd9a469c 26829# Compute "$ac_file"'s index in $config_headers.
26830_am_arg="$ac_file"
542f9784 26831_am_stamp_count=1
26832for _am_header in $config_headers :; do
26833 case $_am_header in
cd9a469c 26834 $_am_arg | $_am_arg:* )
542f9784 26835 break ;;
26836 * )
26837 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26838 esac
26839done
cd9a469c 26840echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26841$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26842 X"$_am_arg" : 'X\(//\)[^/]' \| \
26843 X"$_am_arg" : 'X\(//\)$' \| \
26844 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26845$as_echo X"$_am_arg" |
26846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26847 s//\1/
26848 q
26849 }
26850 /^X\(\/\/\)[^/].*/{
26851 s//\1/
26852 q
26853 }
26854 /^X\(\/\/\)$/{
26855 s//\1/
26856 q
26857 }
26858 /^X\(\/\).*/{
26859 s//\1/
26860 q
26861 }
26862 s/.*/./; q'`/stamp-h$_am_stamp_count
26863 ;;
26864 :L)
26865 #
26866 # CONFIG_LINK
26867 #
542f9784 26868
cd9a469c 26869 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
26870 :
542f9784 26871 else
cd9a469c 26872 # Prefer the file from the source tree if names are identical.
26873 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
26874 ac_source=$srcdir/$ac_source
26875 fi
542f9784 26876
cd9a469c 26877 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
26878$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
542f9784 26879
cd9a469c 26880 if test ! -r "$ac_source"; then
26881 as_fn_error "$ac_source: file not found" "$LINENO" 5
26882 fi
26883 rm -f "$ac_file"
542f9784 26884
cd9a469c 26885 # Try a relative symlink, then a hard link, then a copy.
26886 case $srcdir in
26887 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
26888 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
26889 esac
26890 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26891 ln "$ac_source" "$ac_file" 2>/dev/null ||
26892 cp -p "$ac_source" "$ac_file" ||
26893 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
26894 fi
26895 ;;
26896 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26897$as_echo "$as_me: executing $ac_file commands" >&6;}
26898 ;;
542f9784 26899 esac
26900
2c60951b 26901
cd9a469c 26902 case $ac_file$ac_mode in
26903 "default-1":C)
542f9784 26904# Only add multilib support code if we just rebuilt the top-level
26905# Makefile.
26906case " $CONFIG_FILES " in
26907 *" Makefile "*)
26908 ac_file=Makefile . ${multi_basedir}/config-ml.in
26909 ;;
26910esac ;;
cd9a469c 26911 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26912 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26913 # are listed without --file. Let's play safe and only enable the eval
26914 # if we detect the quoting.
26915 case $CONFIG_FILES in
26916 *\'*) eval set x "$CONFIG_FILES" ;;
26917 *) set x $CONFIG_FILES ;;
26918 esac
26919 shift
26920 for mf
26921 do
26922 # Strip MF so we end up with the name of the file.
26923 mf=`echo "$mf" | sed -e 's/:.*$//'`
26924 # Check whether this is an Automake generated Makefile or not.
26925 # We used to match only the files named `Makefile.in', but
26926 # some people rename them; so instead we look at the file content.
26927 # Grep'ing the first line is not enough: some people post-process
26928 # each Makefile.in and add a new line on top of each file to say so.
26929 # Grep'ing the whole file is not good either: AIX grep has a line
26930 # limit of 2048, but all sed's we know have understand at least 4000.
26931 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26932 dirpart=`$as_dirname -- "$mf" ||
542f9784 26933$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26934 X"$mf" : 'X\(//\)[^/]' \| \
26935 X"$mf" : 'X\(//\)$' \| \
cd9a469c 26936 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26937$as_echo X"$mf" |
26938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26939 s//\1/
26940 q
26941 }
26942 /^X\(\/\/\)[^/].*/{
26943 s//\1/
26944 q
26945 }
26946 /^X\(\/\/\)$/{
26947 s//\1/
26948 q
26949 }
26950 /^X\(\/\).*/{
26951 s//\1/
26952 q
26953 }
26954 s/.*/./; q'`
26955 else
26956 continue
26957 fi
26958 # Extract the definition of DEPDIR, am__include, and am__quote
26959 # from the Makefile without running `make'.
26960 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26961 test -z "$DEPDIR" && continue
26962 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26963 test -z "am__include" && continue
26964 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26965 # When using ansi2knr, U may be empty or an underscore; expand it
26966 U=`sed -n 's/^U = //p' < "$mf"`
26967 # Find all dependency output files, they are included files with
26968 # $(DEPDIR) in their names. We invoke sed twice because it is the
26969 # simplest approach to changing $(DEPDIR) to its actual value in the
26970 # expansion.
26971 for file in `sed -n "
26972 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26973 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26974 # Make sure the directory exists.
26975 test -f "$dirpart/$file" && continue
26976 fdir=`$as_dirname -- "$file" ||
542f9784 26977$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26978 X"$file" : 'X\(//\)[^/]' \| \
26979 X"$file" : 'X\(//\)$' \| \
cd9a469c 26980 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26981$as_echo X"$file" |
26982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26983 s//\1/
26984 q
26985 }
26986 /^X\(\/\/\)[^/].*/{
26987 s//\1/
26988 q
26989 }
26990 /^X\(\/\/\)$/{
26991 s//\1/
26992 q
26993 }
26994 /^X\(\/\).*/{
26995 s//\1/
26996 q
26997 }
26998 s/.*/./; q'`
26999 as_dir=$dirpart/$fdir; as_fn_mkdir_p
27000 # echo "creating $dirpart/$file"
27001 echo '# dummy' > "$dirpart/$file"
4618c7f0 27002 done
542f9784 27003 done
cd9a469c 27004}
542f9784 27005 ;;
cd9a469c 27006 "libtool":C)
542f9784 27007
27008 # See if we are running on zsh, and set the options which allow our
27009 # commands through without removal of \ escapes.
27010 if test -n "${ZSH_VERSION+set}" ; then
27011 setopt NO_GLOB_SUBST
27012 fi
27013
27014 cfgfile="${ofile}T"
27015 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27016 $RM "$cfgfile"
27017
27018 cat <<_LT_EOF >> "$cfgfile"
27019#! $SHELL
27020
27021# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
976af183 27022# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
542f9784 27023# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27024# NOTE: Changes made to this file will be lost: look at ltmain.sh.
27025#
976af183 27026# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
e6408286 27027# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
976af183 27028# Written by Gordon Matzigkeit, 1996
542f9784 27029#
976af183 27030# This file is part of GNU Libtool.
542f9784 27031#
976af183 27032# GNU Libtool is free software; you can redistribute it and/or
27033# modify it under the terms of the GNU General Public License as
27034# published by the Free Software Foundation; either version 2 of
27035# the License, or (at your option) any later version.
542f9784 27036#
976af183 27037# As a special exception to the GNU General Public License,
27038# if you distribute this file as part of a program or library that
27039# is built using GNU Libtool, you may include this file under the
27040# same distribution terms that you use for the rest of that program.
542f9784 27041#
976af183 27042# GNU Libtool is distributed in the hope that it will be useful,
27043# but WITHOUT ANY WARRANTY; without even the implied warranty of
27044# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27045# GNU General Public License for more details.
542f9784 27046#
976af183 27047# You should have received a copy of the GNU General Public License
27048# along with GNU Libtool; see the file COPYING. If not, a copy
27049# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27050# obtained by writing to the Free Software Foundation, Inc.,
27051# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
542f9784 27052
27053
27054# The names of the tagged configurations supported by this script.
27055available_tags="CXX GCJ "
27056
27057# ### BEGIN LIBTOOL CONFIG
27058
27059# Which release of libtool.m4 was used?
27060macro_version=$macro_version
27061macro_revision=$macro_revision
27062
27063# Whether or not to build shared libraries.
27064build_libtool_libs=$enable_shared
27065
27066# Whether or not to build static libraries.
27067build_old_libs=$enable_static
27068
27069# What type of objects to build.
27070pic_mode=$pic_mode
27071
27072# Whether or not to optimize for fast installation.
27073fast_install=$enable_fast_install
27074
e6408286 27075# Shell to use when invoking shell scripts.
27076SHELL=$lt_SHELL
27077
27078# An echo program that protects backslashes.
27079ECHO=$lt_ECHO
27080
542f9784 27081# The host system.
27082host_alias=$host_alias
27083host=$host
27084host_os=$host_os
27085
27086# The build system.
27087build_alias=$build_alias
27088build=$build
27089build_os=$build_os
27090
27091# A sed program that does not truncate output.
27092SED=$lt_SED
27093
27094# Sed that helps us avoid accidentally triggering echo(1) options like -n.
27095Xsed="\$SED -e 1s/^X//"
27096
27097# A grep program that handles long lines.
27098GREP=$lt_GREP
27099
27100# An ERE matcher.
27101EGREP=$lt_EGREP
27102
27103# A literal string matcher.
27104FGREP=$lt_FGREP
27105
27106# A BSD- or MS-compatible name lister.
27107NM=$lt_NM
27108
27109# Whether we need soft or hard links.
27110LN_S=$lt_LN_S
27111
27112# What is the maximum length of a command?
27113max_cmd_len=$max_cmd_len
27114
27115# Object file suffix (normally "o").
27116objext=$ac_objext
27117
27118# Executable file suffix (normally "").
27119exeext=$exeext
27120
27121# whether the shell understands "unset".
27122lt_unset=$lt_unset
27123
27124# turn spaces into newlines.
27125SP2NL=$lt_lt_SP2NL
27126
27127# turn newlines into spaces.
27128NL2SP=$lt_lt_NL2SP
27129
976af183 27130# An object symbol dumper.
27131OBJDUMP=$lt_OBJDUMP
27132
542f9784 27133# Method to check whether dependent libraries are shared objects.
27134deplibs_check_method=$lt_deplibs_check_method
27135
27136# Command to use when deplibs_check_method == "file_magic".
27137file_magic_cmd=$lt_file_magic_cmd
27138
27139# The archiver.
27140AR=$lt_AR
27141AR_FLAGS=$lt_AR_FLAGS
27142
27143# A symbol stripping program.
27144STRIP=$lt_STRIP
27145
27146# Commands used to install an old-style archive.
27147RANLIB=$lt_RANLIB
27148old_postinstall_cmds=$lt_old_postinstall_cmds
27149old_postuninstall_cmds=$lt_old_postuninstall_cmds
27150
e6408286 27151# Whether to use a lock for old archive extraction.
27152lock_old_archive_extraction=$lock_old_archive_extraction
27153
542f9784 27154# A C compiler.
27155LTCC=$lt_CC
27156
27157# LTCC compiler flags.
27158LTCFLAGS=$lt_CFLAGS
27159
27160# Take the output of nm and produce a listing of raw symbols and C names.
27161global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27162
27163# Transform the output of nm in a proper C declaration.
27164global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27165
27166# Transform the output of nm in a C name address pair.
27167global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27168
976af183 27169# Transform the output of nm in a C name address pair when lib prefix is needed.
27170global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27171
542f9784 27172# The name of the directory that contains temporary libtool files.
27173objdir=$objdir
27174
542f9784 27175# Used to examine libraries when file_magic_cmd begins with "file".
27176MAGIC_CMD=$MAGIC_CMD
27177
27178# Must we lock files when doing compilation?
27179need_locks=$lt_need_locks
27180
976af183 27181# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27182DSYMUTIL=$lt_DSYMUTIL
27183
27184# Tool to change global to local symbols on Mac OS X.
27185NMEDIT=$lt_NMEDIT
27186
27187# Tool to manipulate fat objects and archives on Mac OS X.
27188LIPO=$lt_LIPO
27189
27190# ldd/readelf like tool for Mach-O binaries on Mac OS X.
27191OTOOL=$lt_OTOOL
27192
27193# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27194OTOOL64=$lt_OTOOL64
27195
542f9784 27196# Old archive suffix (normally "a").
27197libext=$libext
27198
27199# Shared library suffix (normally ".so").
27200shrext_cmds=$lt_shrext_cmds
27201
27202# The commands to extract the exported symbol list from a shared archive.
27203extract_expsyms_cmds=$lt_extract_expsyms_cmds
27204
27205# Variables whose values should be saved in libtool wrapper scripts and
27206# restored at link time.
27207variables_saved_for_relink=$lt_variables_saved_for_relink
27208
27209# Do we need the "lib" prefix for modules?
27210need_lib_prefix=$need_lib_prefix
27211
27212# Do we need a version for libraries?
27213need_version=$need_version
27214
27215# Library versioning type.
27216version_type=$version_type
27217
27218# Shared library runtime path variable.
27219runpath_var=$runpath_var
27220
27221# Shared library path variable.
27222shlibpath_var=$shlibpath_var
27223
27224# Is shlibpath searched before the hard-coded library search path?
27225shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27226
27227# Format of library name prefix.
27228libname_spec=$lt_libname_spec
27229
27230# List of archive names. First name is the real one, the rest are links.
27231# The last name is the one that the linker finds with -lNAME
27232library_names_spec=$lt_library_names_spec
27233
27234# The coded name of the library, if different from the real name.
27235soname_spec=$lt_soname_spec
27236
e6408286 27237# Permission mode override for installation of shared libraries.
27238install_override_mode=$lt_install_override_mode
27239
542f9784 27240# Command to use after installation of a shared archive.
27241postinstall_cmds=$lt_postinstall_cmds
27242
27243# Command to use after uninstallation of a shared archive.
27244postuninstall_cmds=$lt_postuninstall_cmds
27245
27246# Commands used to finish a libtool library installation in a directory.
27247finish_cmds=$lt_finish_cmds
27248
27249# As "finish_cmds", except a single script fragment to be evaled but
27250# not shown.
27251finish_eval=$lt_finish_eval
27252
27253# Whether we should hardcode library paths into libraries.
27254hardcode_into_libs=$hardcode_into_libs
27255
27256# Compile-time system search path for libraries.
27257sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27258
27259# Run-time system search path for libraries.
27260sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27261
27262# Whether dlopen is supported.
27263dlopen_support=$enable_dlopen
27264
27265# Whether dlopen of programs is supported.
27266dlopen_self=$enable_dlopen_self
27267
27268# Whether dlopen of statically linked programs is supported.
27269dlopen_self_static=$enable_dlopen_self_static
27270
27271# Commands to strip libraries.
27272old_striplib=$lt_old_striplib
27273striplib=$lt_striplib
27274
27275
27276# The linker used to build libraries.
27277LD=$lt_LD
27278
e6408286 27279# How to create reloadable object files.
27280reload_flag=$lt_reload_flag
27281reload_cmds=$lt_reload_cmds
27282
542f9784 27283# Commands used to build an old-style archive.
27284old_archive_cmds=$lt_old_archive_cmds
27285
27286# A language specific compiler.
27287CC=$lt_compiler
27288
27289# Is the compiler the GNU compiler?
27290with_gcc=$GCC
27291
27292# Compiler flag to turn off builtin functions.
27293no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27294
27295# How to pass a linker flag through the compiler.
27296wl=$lt_lt_prog_compiler_wl
27297
27298# Additional compiler flags for building library objects.
27299pic_flag=$lt_lt_prog_compiler_pic
27300
27301# Compiler flag to prevent dynamic linking.
27302link_static_flag=$lt_lt_prog_compiler_static
27303
27304# Does compiler simultaneously support -c and -o options?
27305compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27306
27307# Whether or not to add -lc for building shared libraries.
27308build_libtool_need_lc=$archive_cmds_need_lc
27309
27310# Whether or not to disallow shared libs when runtime libs are static.
27311allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27312
27313# Compiler flag to allow reflexive dlopens.
27314export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27315
27316# Compiler flag to generate shared objects directly from archives.
27317whole_archive_flag_spec=$lt_whole_archive_flag_spec
27318
27319# Whether the compiler copes with passing no objects directly.
27320compiler_needs_object=$lt_compiler_needs_object
27321
27322# Create an old-style archive from a shared archive.
27323old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27324
27325# Create a temporary old-style archive to link instead of a shared archive.
27326old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27327
27328# Commands used to build a shared archive.
27329archive_cmds=$lt_archive_cmds
27330archive_expsym_cmds=$lt_archive_expsym_cmds
27331
27332# Commands used to build a loadable module if different from building
27333# a shared archive.
27334module_cmds=$lt_module_cmds
27335module_expsym_cmds=$lt_module_expsym_cmds
27336
27337# Whether we are building with GNU ld or not.
27338with_gnu_ld=$lt_with_gnu_ld
27339
27340# Flag that allows shared libraries with undefined symbols to be built.
27341allow_undefined_flag=$lt_allow_undefined_flag
27342
27343# Flag that enforces no undefined symbols.
27344no_undefined_flag=$lt_no_undefined_flag
27345
27346# Flag to hardcode \$libdir into a binary during linking.
27347# This must work even if \$libdir does not exist
27348hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27349
27350# If ld is used when linking, flag to hardcode \$libdir into a binary
27351# during linking. This must work even if \$libdir does not exist.
27352hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27353
27354# Whether we need a single "-rpath" flag with a separated argument.
27355hardcode_libdir_separator=$lt_hardcode_libdir_separator
27356
27357# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27358# DIR into the resulting binary.
27359hardcode_direct=$hardcode_direct
27360
27361# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27362# DIR into the resulting binary and the resulting library dependency is
27363# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27364# library is relocated.
27365hardcode_direct_absolute=$hardcode_direct_absolute
27366
27367# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27368# into the resulting binary.
27369hardcode_minus_L=$hardcode_minus_L
27370
27371# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27372# into the resulting binary.
27373hardcode_shlibpath_var=$hardcode_shlibpath_var
27374
27375# Set to "yes" if building a shared library automatically hardcodes DIR
27376# into the library and all subsequent libraries and executables linked
27377# against it.
27378hardcode_automatic=$hardcode_automatic
27379
27380# Set to yes if linker adds runtime paths of dependent libraries
27381# to runtime path list.
27382inherit_rpath=$inherit_rpath
27383
27384# Whether libtool must link a program against all its dependency libraries.
27385link_all_deplibs=$link_all_deplibs
27386
27387# Fix the shell variable \$srcfile for the compiler.
27388fix_srcfile_path=$lt_fix_srcfile_path
27389
27390# Set to "yes" if exported symbols are required.
27391always_export_symbols=$always_export_symbols
27392
27393# The commands to list exported symbols.
27394export_symbols_cmds=$lt_export_symbols_cmds
27395
27396# Symbols that should not be listed in the preloaded symbols.
27397exclude_expsyms=$lt_exclude_expsyms
27398
27399# Symbols that must always be exported.
27400include_expsyms=$lt_include_expsyms
27401
27402# Commands necessary for linking programs (against libraries) with templates.
27403prelink_cmds=$lt_prelink_cmds
27404
27405# Specify filename containing input files.
27406file_list_spec=$lt_file_list_spec
27407
27408# How to hardcode a shared library path into an executable.
27409hardcode_action=$hardcode_action
27410
976af183 27411# The directories searched by this compiler when creating a shared library.
27412compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27413
542f9784 27414# Dependencies to place before and after the objects being linked to
27415# create a shared library.
27416predep_objects=$lt_predep_objects
27417postdep_objects=$lt_postdep_objects
27418predeps=$lt_predeps
27419postdeps=$lt_postdeps
27420
27421# The library search path used internally by the compiler when linking
27422# a shared library.
27423compiler_lib_search_path=$lt_compiler_lib_search_path
27424
27425# ### END LIBTOOL CONFIG
27426
27427_LT_EOF
27428
27429 case $host_os in
27430 aix3*)
27431 cat <<\_LT_EOF >> "$cfgfile"
27432# AIX sometimes has problems with the GCC collect2 program. For some
27433# reason, if we set the COLLECT_NAMES environment variable, the problems
27434# vanish in a puff of smoke.
27435if test "X${COLLECT_NAMES+set}" != Xset; then
27436 COLLECT_NAMES=
27437 export COLLECT_NAMES
27438fi
27439_LT_EOF
27440 ;;
27441 esac
27442
27443
27444ltmain="$ac_aux_dir/ltmain.sh"
27445
27446
27447 # We use sed instead of cat because bash on DJGPP gets confused if
27448 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27449 # text mode, it properly converts lines to CR/LF. This bash problem
27450 # is reportedly fixed, but why not run on old versions too?
27451 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27452 || (rm -f "$cfgfile"; exit 1)
27453
27454 case $xsi_shell in
27455 yes)
27456 cat << \_LT_EOF >> "$cfgfile"
976af183 27457
542f9784 27458# func_dirname file append nondir_replacement
27459# Compute the dirname of FILE. If nonempty, add APPEND to the result,
27460# otherwise set result to NONDIR_REPLACEMENT.
27461func_dirname ()
27462{
27463 case ${1} in
27464 */*) func_dirname_result="${1%/*}${2}" ;;
27465 * ) func_dirname_result="${3}" ;;
27466 esac
27467}
27468
27469# func_basename file
27470func_basename ()
27471{
27472 func_basename_result="${1##*/}"
27473}
27474
976af183 27475# func_dirname_and_basename file append nondir_replacement
27476# perform func_basename and func_dirname in a single function
27477# call:
27478# dirname: Compute the dirname of FILE. If nonempty,
27479# add APPEND to the result, otherwise set result
27480# to NONDIR_REPLACEMENT.
27481# value returned in "$func_dirname_result"
27482# basename: Compute filename of FILE.
27483# value retuned in "$func_basename_result"
27484# Implementation must be kept synchronized with func_dirname
27485# and func_basename. For efficiency, we do not delegate to
27486# those functions but instead duplicate the functionality here.
27487func_dirname_and_basename ()
27488{
27489 case ${1} in
27490 */*) func_dirname_result="${1%/*}${2}" ;;
27491 * ) func_dirname_result="${3}" ;;
27492 esac
27493 func_basename_result="${1##*/}"
27494}
27495
542f9784 27496# func_stripname prefix suffix name
27497# strip PREFIX and SUFFIX off of NAME.
27498# PREFIX and SUFFIX must not contain globbing or regex special
27499# characters, hashes, percent signs, but SUFFIX may contain a leading
27500# dot (in which case that matches only a dot).
27501func_stripname ()
27502{
27503 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27504 # positional parameters, so assign one to ordinary parameter first.
27505 func_stripname_result=${3}
27506 func_stripname_result=${func_stripname_result#"${1}"}
27507 func_stripname_result=${func_stripname_result%"${2}"}
27508}
27509
27510# func_opt_split
27511func_opt_split ()
27512{
27513 func_opt_split_opt=${1%%=*}
27514 func_opt_split_arg=${1#*=}
27515}
27516
27517# func_lo2o object
27518func_lo2o ()
27519{
27520 case ${1} in
27521 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27522 *) func_lo2o_result=${1} ;;
27523 esac
27524}
976af183 27525
27526# func_xform libobj-or-source
27527func_xform ()
27528{
27529 func_xform_result=${1%.*}.lo
27530}
27531
27532# func_arith arithmetic-term...
27533func_arith ()
27534{
27535 func_arith_result=$(( $* ))
27536}
27537
27538# func_len string
27539# STRING may not start with a hyphen.
27540func_len ()
27541{
27542 func_len_result=${#1}
27543}
27544
542f9784 27545_LT_EOF
27546 ;;
27547 *) # Bourne compatible functions.
27548 cat << \_LT_EOF >> "$cfgfile"
976af183 27549
542f9784 27550# func_dirname file append nondir_replacement
27551# Compute the dirname of FILE. If nonempty, add APPEND to the result,
27552# otherwise set result to NONDIR_REPLACEMENT.
27553func_dirname ()
27554{
27555 # Extract subdirectory from the argument.
e6408286 27556 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
542f9784 27557 if test "X$func_dirname_result" = "X${1}"; then
27558 func_dirname_result="${3}"
27559 else
27560 func_dirname_result="$func_dirname_result${2}"
27561 fi
27562}
27563
27564# func_basename file
27565func_basename ()
27566{
e6408286 27567 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
542f9784 27568}
27569
976af183 27570
542f9784 27571# func_stripname prefix suffix name
27572# strip PREFIX and SUFFIX off of NAME.
27573# PREFIX and SUFFIX must not contain globbing or regex special
27574# characters, hashes, percent signs, but SUFFIX may contain a leading
27575# dot (in which case that matches only a dot).
27576# func_strip_suffix prefix name
27577func_stripname ()
27578{
27579 case ${2} in
e6408286 27580 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
27581 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
542f9784 27582 esac
27583}
27584
27585# sed scripts:
27586my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27587my_sed_long_arg='1s/^-[^=]*=//'
4618c7f0 27588
542f9784 27589# func_opt_split
27590func_opt_split ()
27591{
e6408286 27592 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
27593 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
542f9784 27594}
2c60951b 27595
542f9784 27596# func_lo2o object
27597func_lo2o ()
27598{
e6408286 27599 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
542f9784 27600}
976af183 27601
27602# func_xform libobj-or-source
27603func_xform ()
27604{
e6408286 27605 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
976af183 27606}
27607
27608# func_arith arithmetic-term...
27609func_arith ()
27610{
27611 func_arith_result=`expr "$@"`
27612}
27613
27614# func_len string
27615# STRING may not start with a hyphen.
27616func_len ()
27617{
27618 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27619}
27620
542f9784 27621_LT_EOF
4618c7f0 27622esac
2c60951b 27623
542f9784 27624case $lt_shell_append in
27625 yes)
27626 cat << \_LT_EOF >> "$cfgfile"
2c60951b 27627
542f9784 27628# func_append var value
27629# Append VALUE to the end of shell variable VAR.
27630func_append ()
27631{
27632 eval "$1+=\$2"
27633}
27634_LT_EOF
27635 ;;
27636 *)
27637 cat << \_LT_EOF >> "$cfgfile"
4618c7f0 27638
542f9784 27639# func_append var value
27640# Append VALUE to the end of shell variable VAR.
27641func_append ()
27642{
27643 eval "$1=\$$1\$2"
27644}
976af183 27645
542f9784 27646_LT_EOF
27647 ;;
2c60951b 27648 esac
27649
30f7243e 27650
542f9784 27651 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27652 || (rm -f "$cfgfile"; exit 1)
30f7243e 27653
542f9784 27654 mv -f "$cfgfile" "$ofile" ||
27655 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27656 chmod +x "$ofile"
30f7243e 27657
30f7243e 27658
542f9784 27659 cat <<_LT_EOF >> "$ofile"
30f7243e 27660
542f9784 27661# ### BEGIN LIBTOOL TAG CONFIG: CXX
30f7243e 27662
542f9784 27663# The linker used to build libraries.
27664LD=$lt_LD_CXX
30f7243e 27665
e6408286 27666# How to create reloadable object files.
27667reload_flag=$lt_reload_flag_CXX
27668reload_cmds=$lt_reload_cmds_CXX
27669
542f9784 27670# Commands used to build an old-style archive.
27671old_archive_cmds=$lt_old_archive_cmds_CXX
27672
27673# A language specific compiler.
27674CC=$lt_compiler_CXX
27675
27676# Is the compiler the GNU compiler?
27677with_gcc=$GCC_CXX
27678
27679# Compiler flag to turn off builtin functions.
27680no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27681
27682# How to pass a linker flag through the compiler.
27683wl=$lt_lt_prog_compiler_wl_CXX
27684
27685# Additional compiler flags for building library objects.
27686pic_flag=$lt_lt_prog_compiler_pic_CXX
27687
27688# Compiler flag to prevent dynamic linking.
27689link_static_flag=$lt_lt_prog_compiler_static_CXX
27690
27691# Does compiler simultaneously support -c and -o options?
27692compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27693
27694# Whether or not to add -lc for building shared libraries.
27695build_libtool_need_lc=$archive_cmds_need_lc_CXX
27696
27697# Whether or not to disallow shared libs when runtime libs are static.
27698allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27699
27700# Compiler flag to allow reflexive dlopens.
27701export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27702
27703# Compiler flag to generate shared objects directly from archives.
27704whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27705
27706# Whether the compiler copes with passing no objects directly.
27707compiler_needs_object=$lt_compiler_needs_object_CXX
27708
27709# Create an old-style archive from a shared archive.
27710old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27711
27712# Create a temporary old-style archive to link instead of a shared archive.
27713old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27714
27715# Commands used to build a shared archive.
27716archive_cmds=$lt_archive_cmds_CXX
27717archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27718
27719# Commands used to build a loadable module if different from building
27720# a shared archive.
27721module_cmds=$lt_module_cmds_CXX
27722module_expsym_cmds=$lt_module_expsym_cmds_CXX
27723
27724# Whether we are building with GNU ld or not.
27725with_gnu_ld=$lt_with_gnu_ld_CXX
27726
27727# Flag that allows shared libraries with undefined symbols to be built.
27728allow_undefined_flag=$lt_allow_undefined_flag_CXX
27729
27730# Flag that enforces no undefined symbols.
27731no_undefined_flag=$lt_no_undefined_flag_CXX
27732
27733# Flag to hardcode \$libdir into a binary during linking.
27734# This must work even if \$libdir does not exist
27735hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27736
27737# If ld is used when linking, flag to hardcode \$libdir into a binary
27738# during linking. This must work even if \$libdir does not exist.
27739hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27740
27741# Whether we need a single "-rpath" flag with a separated argument.
27742hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27743
27744# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27745# DIR into the resulting binary.
27746hardcode_direct=$hardcode_direct_CXX
27747
27748# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27749# DIR into the resulting binary and the resulting library dependency is
27750# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27751# library is relocated.
27752hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27753
27754# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27755# into the resulting binary.
27756hardcode_minus_L=$hardcode_minus_L_CXX
27757
27758# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27759# into the resulting binary.
27760hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27761
27762# Set to "yes" if building a shared library automatically hardcodes DIR
27763# into the library and all subsequent libraries and executables linked
27764# against it.
27765hardcode_automatic=$hardcode_automatic_CXX
27766
27767# Set to yes if linker adds runtime paths of dependent libraries
27768# to runtime path list.
27769inherit_rpath=$inherit_rpath_CXX
27770
27771# Whether libtool must link a program against all its dependency libraries.
27772link_all_deplibs=$link_all_deplibs_CXX
27773
27774# Fix the shell variable \$srcfile for the compiler.
27775fix_srcfile_path=$lt_fix_srcfile_path_CXX
27776
27777# Set to "yes" if exported symbols are required.
27778always_export_symbols=$always_export_symbols_CXX
27779
27780# The commands to list exported symbols.
27781export_symbols_cmds=$lt_export_symbols_cmds_CXX
27782
27783# Symbols that should not be listed in the preloaded symbols.
27784exclude_expsyms=$lt_exclude_expsyms_CXX
27785
27786# Symbols that must always be exported.
27787include_expsyms=$lt_include_expsyms_CXX
27788
27789# Commands necessary for linking programs (against libraries) with templates.
27790prelink_cmds=$lt_prelink_cmds_CXX
27791
27792# Specify filename containing input files.
27793file_list_spec=$lt_file_list_spec_CXX
27794
27795# How to hardcode a shared library path into an executable.
27796hardcode_action=$hardcode_action_CXX
27797
976af183 27798# The directories searched by this compiler when creating a shared library.
27799compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27800
542f9784 27801# Dependencies to place before and after the objects being linked to
27802# create a shared library.
27803predep_objects=$lt_predep_objects_CXX
27804postdep_objects=$lt_postdep_objects_CXX
27805predeps=$lt_predeps_CXX
27806postdeps=$lt_postdeps_CXX
27807
27808# The library search path used internally by the compiler when linking
27809# a shared library.
27810compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27811
27812# ### END LIBTOOL TAG CONFIG: CXX
27813_LT_EOF
27814
27815
27816 cat <<_LT_EOF >> "$ofile"
27817
27818# ### BEGIN LIBTOOL TAG CONFIG: GCJ
27819
27820# The linker used to build libraries.
27821LD=$lt_LD_GCJ
30f7243e 27822
e6408286 27823# How to create reloadable object files.
27824reload_flag=$lt_reload_flag_GCJ
27825reload_cmds=$lt_reload_cmds_GCJ
27826
542f9784 27827# Commands used to build an old-style archive.
27828old_archive_cmds=$lt_old_archive_cmds_GCJ
30f7243e 27829
542f9784 27830# A language specific compiler.
27831CC=$lt_compiler_GCJ
30f7243e 27832
542f9784 27833# Is the compiler the GNU compiler?
27834with_gcc=$GCC_GCJ
30f7243e 27835
542f9784 27836# Compiler flag to turn off builtin functions.
27837no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
30f7243e 27838
542f9784 27839# How to pass a linker flag through the compiler.
27840wl=$lt_lt_prog_compiler_wl_GCJ
4618c7f0 27841
542f9784 27842# Additional compiler flags for building library objects.
27843pic_flag=$lt_lt_prog_compiler_pic_GCJ
30f7243e 27844
542f9784 27845# Compiler flag to prevent dynamic linking.
27846link_static_flag=$lt_lt_prog_compiler_static_GCJ
30f7243e 27847
542f9784 27848# Does compiler simultaneously support -c and -o options?
27849compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
2c60951b 27850
542f9784 27851# Whether or not to add -lc for building shared libraries.
27852build_libtool_need_lc=$archive_cmds_need_lc_GCJ
30f7243e 27853
542f9784 27854# Whether or not to disallow shared libs when runtime libs are static.
27855allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
2c60951b 27856
542f9784 27857# Compiler flag to allow reflexive dlopens.
27858export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
30f7243e 27859
542f9784 27860# Compiler flag to generate shared objects directly from archives.
27861whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
30f7243e 27862
542f9784 27863# Whether the compiler copes with passing no objects directly.
27864compiler_needs_object=$lt_compiler_needs_object_GCJ
30f7243e 27865
542f9784 27866# Create an old-style archive from a shared archive.
27867old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
30f7243e 27868
542f9784 27869# Create a temporary old-style archive to link instead of a shared archive.
27870old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
27871
27872# Commands used to build a shared archive.
27873archive_cmds=$lt_archive_cmds_GCJ
27874archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
27875
27876# Commands used to build a loadable module if different from building
27877# a shared archive.
27878module_cmds=$lt_module_cmds_GCJ
27879module_expsym_cmds=$lt_module_expsym_cmds_GCJ
27880
27881# Whether we are building with GNU ld or not.
27882with_gnu_ld=$lt_with_gnu_ld_GCJ
27883
27884# Flag that allows shared libraries with undefined symbols to be built.
27885allow_undefined_flag=$lt_allow_undefined_flag_GCJ
27886
27887# Flag that enforces no undefined symbols.
27888no_undefined_flag=$lt_no_undefined_flag_GCJ
27889
27890# Flag to hardcode \$libdir into a binary during linking.
27891# This must work even if \$libdir does not exist
27892hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
27893
27894# If ld is used when linking, flag to hardcode \$libdir into a binary
27895# during linking. This must work even if \$libdir does not exist.
27896hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
27897
27898# Whether we need a single "-rpath" flag with a separated argument.
27899hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
30f7243e 27900
542f9784 27901# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27902# DIR into the resulting binary.
27903hardcode_direct=$hardcode_direct_GCJ
30f7243e 27904
542f9784 27905# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27906# DIR into the resulting binary and the resulting library dependency is
27907# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27908# library is relocated.
27909hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
4618c7f0 27910
542f9784 27911# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27912# into the resulting binary.
27913hardcode_minus_L=$hardcode_minus_L_GCJ
30f7243e 27914
542f9784 27915# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27916# into the resulting binary.
27917hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
30f7243e 27918
542f9784 27919# Set to "yes" if building a shared library automatically hardcodes DIR
27920# into the library and all subsequent libraries and executables linked
27921# against it.
27922hardcode_automatic=$hardcode_automatic_GCJ
30f7243e 27923
542f9784 27924# Set to yes if linker adds runtime paths of dependent libraries
27925# to runtime path list.
27926inherit_rpath=$inherit_rpath_GCJ
4618c7f0 27927
542f9784 27928# Whether libtool must link a program against all its dependency libraries.
27929link_all_deplibs=$link_all_deplibs_GCJ
4618c7f0 27930
542f9784 27931# Fix the shell variable \$srcfile for the compiler.
27932fix_srcfile_path=$lt_fix_srcfile_path_GCJ
30f7243e 27933
542f9784 27934# Set to "yes" if exported symbols are required.
27935always_export_symbols=$always_export_symbols_GCJ
30f7243e 27936
542f9784 27937# The commands to list exported symbols.
27938export_symbols_cmds=$lt_export_symbols_cmds_GCJ
30f7243e 27939
542f9784 27940# Symbols that should not be listed in the preloaded symbols.
27941exclude_expsyms=$lt_exclude_expsyms_GCJ
27942
27943# Symbols that must always be exported.
27944include_expsyms=$lt_include_expsyms_GCJ
27945
27946# Commands necessary for linking programs (against libraries) with templates.
27947prelink_cmds=$lt_prelink_cmds_GCJ
27948
27949# Specify filename containing input files.
27950file_list_spec=$lt_file_list_spec_GCJ
27951
27952# How to hardcode a shared library path into an executable.
27953hardcode_action=$hardcode_action_GCJ
27954
976af183 27955# The directories searched by this compiler when creating a shared library.
27956compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
27957
542f9784 27958# Dependencies to place before and after the objects being linked to
27959# create a shared library.
27960predep_objects=$lt_predep_objects_GCJ
27961postdep_objects=$lt_postdep_objects_GCJ
27962predeps=$lt_predeps_GCJ
27963postdeps=$lt_postdeps_GCJ
27964
27965# The library search path used internally by the compiler when linking
27966# a shared library.
27967compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
27968
27969# ### END LIBTOOL TAG CONFIG: GCJ
27970_LT_EOF
30f7243e 27971
4618c7f0 27972 ;;
cd9a469c 27973 "scripts/jar":F) chmod +x scripts/jar ;;
27974
4618c7f0 27975 esac
cd9a469c 27976done # for ac_tag
e5fd56db 27977
4618c7f0 27978
cd9a469c 27979as_fn_exit 0
4618c7f0 27980_ACEOF
4618c7f0 27981ac_clean_files=$ac_clean_files_save
27982
cd9a469c 27983test $ac_write_fail = 0 ||
27984 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27985
4618c7f0 27986
27987# configure is writing to config.log, and then calls config.status.
27988# config.status does its own redirection, appending to config.log.
27989# Unfortunately, on DOS this fails, as config.log is still kept open
27990# by configure, so config.status won't be able to write to it; its
27991# output is simply discarded. So we exec the FD to /dev/null,
27992# effectively closing config.log, so it can be properly (re)opened and
27993# appended to by config.status. When coming back to configure, we
27994# need to make the FD available again.
27995if test "$no_create" != yes; then
27996 ac_cs_success=:
27997 ac_config_status_args=
27998 test "$silent" = yes &&
27999 ac_config_status_args="$ac_config_status_args --quiet"
28000 exec 5>/dev/null
28001 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28002 exec 5>>config.log
28003 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28004 # would make configure fail if this is the last instruction.
cd9a469c 28005 $ac_cs_success || as_fn_exit $?
4618c7f0 28006fi
2c60951b 28007
4618c7f0 28008#
cd9a469c 28009# CONFIG_SUBDIRS section.
4618c7f0 28010#
b345481f 28011if test "$no_recursion" != yes; then
28012
cd9a469c 28013 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
28014 # so they do not pile up.
b345481f 28015 ac_sub_configure_args=
28016 ac_prev=
81952756 28017 eval "set x $ac_configure_args"
28018 shift
28019 for ac_arg
28020 do
b345481f 28021 if test -n "$ac_prev"; then
28022 ac_prev=
28023 continue
28024 fi
4618c7f0 28025 case $ac_arg in
b345481f 28026 -cache-file | --cache-file | --cache-fil | --cache-fi \
28027 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
28028 ac_prev=cache_file ;;
28029 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4618c7f0 28030 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
28031 | --c=*)
28032 ;;
28033 --config-cache | -C)
b345481f 28034 ;;
28035 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
28036 ac_prev=srcdir ;;
28037 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
28038 ;;
4618c7f0 28039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28040 ac_prev=prefix ;;
28041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28042 ;;
cd9a469c 28043 --disable-option-checking)
28044 ;;
81952756 28045 *)
28046 case $ac_arg in
cd9a469c 28047 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
81952756 28048 esac
cd9a469c 28049 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
b345481f 28050 esac
28051 done
28052
4618c7f0 28053 # Always prepend --prefix to ensure using the same prefix
28054 # in subdir configurations.
81952756 28055 ac_arg="--prefix=$prefix"
28056 case $ac_arg in
cd9a469c 28057 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
81952756 28058 esac
cd9a469c 28059 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
28060
28061 # Pass --silent
28062 if test "$silent" = yes; then
28063 ac_sub_configure_args="--silent $ac_sub_configure_args"
28064 fi
28065
28066 # Always prepend --disable-option-checking to silence warnings, since
28067 # different subdirs can have different --enable and --with options.
28068 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
4618c7f0 28069
30f7243e 28070 ac_popdir=`pwd`
4618c7f0 28071 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
b345481f 28072
28073 # Do not complain, so a configure script can configure whichever
28074 # parts of a large source tree are present.
81952756 28075 test -d "$srcdir/$ac_dir" || continue
b345481f 28076
cd9a469c 28077 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
28078 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
28079 $as_echo "$ac_msg" >&6
28080 as_dir="$ac_dir"; as_fn_mkdir_p
4618c7f0 28081 ac_builddir=.
28082
cd9a469c 28083case "$ac_dir" in
28084.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28085*)
28086 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28087 # A ".." for each directory in $ac_dir_suffix.
28088 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28089 case $ac_top_builddir_sub in
28090 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28091 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28092 esac ;;
28093esac
28094ac_abs_top_builddir=$ac_pwd
28095ac_abs_builddir=$ac_pwd$ac_dir_suffix
28096# for backward compatibility:
28097ac_top_builddir=$ac_top_build_prefix
4618c7f0 28098
28099case $srcdir in
cd9a469c 28100 .) # We are building in place.
4618c7f0 28101 ac_srcdir=.
cd9a469c 28102 ac_top_srcdir=$ac_top_builddir_sub
28103 ac_abs_top_srcdir=$ac_pwd ;;
28104 [\\/]* | ?:[\\/]* ) # Absolute name.
4618c7f0 28105 ac_srcdir=$srcdir$ac_dir_suffix;
cd9a469c 28106 ac_top_srcdir=$srcdir
28107 ac_abs_top_srcdir=$srcdir ;;
28108 *) # Relative name.
28109 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28110 ac_top_srcdir=$ac_top_build_prefix$srcdir
28111 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4618c7f0 28112esac
cd9a469c 28113ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b345481f 28114
b345481f 28115
81952756 28116 cd "$ac_dir"
b345481f 28117
28118 # Check for guested configure; otherwise get Cygnus style configure.
81952756 28119 if test -f "$ac_srcdir/configure.gnu"; then
28120 ac_sub_configure=$ac_srcdir/configure.gnu
28121 elif test -f "$ac_srcdir/configure"; then
28122 ac_sub_configure=$ac_srcdir/configure
28123 elif test -f "$ac_srcdir/configure.in"; then
28124 # This should be Cygnus configure.
28125 ac_sub_configure=$ac_aux_dir/configure
b345481f 28126 else
cd9a469c 28127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
28128$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
b345481f 28129 ac_sub_configure=
28130 fi
28131
28132 # The recursion is here.
28133 if test -n "$ac_sub_configure"; then
b345481f 28134 # Make the cache file name correct relative to the subdirectory.
4618c7f0 28135 case $cache_file in
28136 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
cd9a469c 28137 *) # Relative name.
28138 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
b345481f 28139 esac
b345481f 28140
cd9a469c 28141 { $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
28142$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
b345481f 28143 # The eval makes quoting arguments work.
81952756 28144 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
28145 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
cd9a469c 28146 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
b345481f 28147 fi
28148
81952756 28149 cd "$ac_popdir"
b345481f 28150 done
28151fi
cd9a469c 28152if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28154$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28155fi
b345481f 28156