]> git.ipfire.org Git - thirdparty/gcc.git/blame - boehm-gc/configure
Remove freebsd1 from libtool.m4 macros and config.rpath.
[thirdparty/gcc.git] / boehm-gc / configure
CommitLineData
1530be84 1#! /bin/sh
1530be84 2# Guess values for system-dependent variables and create Makefiles.
5213506e
RW
3# Generated by GNU Autoconf 2.64.
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.
1530be84
TT
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
5213506e
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
47935194 14
5213506e
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
47935194
NN
18 emulate sh
19 NULLCMD=:
5213506e 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
47935194
NN
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
47935194 31fi
47935194 32
5213506e
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
47935194
NN
79fi
80
81
5213506e
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
47935194
NN
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
5213506e
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
43e02a8a
RW
172
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
5213506e
RW
180test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183else
184 as_have_required=no
185fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
47935194 192do
5213506e
RW
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206fi
207fi
208 done;;
209 esac
210 as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
47935194 236 else
5213506e
RW
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
47935194 241 fi
5213506e
RW
242 exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260 { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269 return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277 set +e
278 as_fn_set_status $1
279 exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379} # as_fn_error
47935194 380
5213506e
RW
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
47935194
NN
383 as_expr=expr
384else
385 as_expr=false
386fi
387
5213506e 388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
47935194
NN
389 as_basename=basename
390else
391 as_basename=false
392fi
393
5213506e
RW
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396else
397 as_dirname=false
398fi
47935194 399
5213506e 400as_me=`$as_basename -- "$0" ||
47935194
NN
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
5213506e
RW
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
47935194 418
47935194
NN
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
425
47935194 426
5213506e
RW
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
47935194 436 sed '
5213506e
RW
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
47935194 441 N
5213506e
RW
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
47935194 444 t loop
5213506e 445 s/-\n.*//
47935194 446 ' >$as_me.lineno &&
5213506e
RW
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
47935194
NN
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
5213506e
RW
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
47935194
NN
454 # Exit status is that of the last command.
455 exit
456}
457
5213506e
RW
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467*)
468 ECHO_N='-n';;
47935194
NN
469esac
470
5213506e
RW
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
47935194 474else
5213506e
RW
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
47935194 477fi
5213506e
RW
478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
47935194 480 as_ln_s='ln -s'
5213506e
RW
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
47935194 491 fi
47935194
NN
492else
493 as_ln_s='cp -p'
494fi
5213506e
RW
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
47935194
NN
497
498if mkdir -p . 2>/dev/null; then
5213506e 499 as_mkdir_p='mkdir -p "$as_dir"'
47935194 500else
8ab705be 501 test -d ./-p && rmdir ./-p
47935194
NN
502 as_mkdir_p=false
503fi
504
5213506e
RW
505if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525fi
526as_executable_p=$as_test_x
47935194
NN
527
528# Sed expression to map a string onto a valid CPP name.
8ab705be 529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
47935194
NN
530
531# Sed expression to map a string onto a valid variable name.
8ab705be 532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
47935194 533
1cf3d07d
SE
534SHELL=${CONFIG_SHELL-/bin/sh}
535
1cf3d07d 536
5213506e
RW
537exec 7<&0 </dev/null 6>&1
538
47935194
NN
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
47935194
NN
544#
545# Initializations.
546#
1530be84 547ac_default_prefix=/usr/local
5213506e 548ac_clean_files=
47935194 549ac_config_libobj_dir=.
5213506e 550LIBOBJS=
47935194
NN
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
47935194
NN
555
556# Identity of this package.
557PACKAGE_NAME=
558PACKAGE_TARNAME=
559PACKAGE_VERSION=
560PACKAGE_STRING=
561PACKAGE_BUGREPORT=
5213506e 562PACKAGE_URL=
47935194
NN
563
564ac_unique_file="gcj_mlc.c"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
5213506e 568#ifdef HAVE_SYS_TYPES_H
47935194
NN
569# include <sys/types.h>
570#endif
5213506e 571#ifdef HAVE_SYS_STAT_H
47935194
NN
572# include <sys/stat.h>
573#endif
5213506e 574#ifdef STDC_HEADERS
47935194
NN
575# include <stdlib.h>
576# include <stddef.h>
577#else
5213506e 578# ifdef HAVE_STDLIB_H
47935194
NN
579# include <stdlib.h>
580# endif
581#endif
5213506e
RW
582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
47935194
NN
584# include <memory.h>
585# endif
586# include <string.h>
587#endif
5213506e 588#ifdef HAVE_STRINGS_H
47935194
NN
589# include <strings.h>
590#endif
5213506e 591#ifdef HAVE_INTTYPES_H
47935194 592# include <inttypes.h>
47935194 593#endif
5213506e
RW
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
47935194
NN
598# include <unistd.h>
599#endif"
600
5213506e
RW
601ac_subst_vars='am__EXEEXT_FALSE
602am__EXEEXT_TRUE
603LTLIBOBJS
604LIBOBJS
605toolexeclibdir
606toolexecdir
2a6fa9ae 607O0_CFLAGS
5213506e
RW
608addtests
609addlibs
610addincludes
611addobjs
612AM_CPPFLAGS
613CPLUSPLUS_FALSE
614CPLUSPLUS_TRUE
615target_all
616EXTRA_TEST_LIBS
617extra_ldflags_libgc
618POWERPC_DARWIN_FALSE
619POWERPC_DARWIN_TRUE
620THREADLIBS
621CXXCPP
622CPP
623OTOOL64
624OTOOL
625LIPO
626NMEDIT
627DSYMUTIL
5213506e
RW
628OBJDUMP
629LN_S
630NM
631ac_ct_DUMPBIN
632DUMPBIN
633LD
634FGREP
635EGREP
636GREP
637SED
638LIBTOOL
639GC_CFLAGS
640MAINT
641MAINTAINER_MODE_FALSE
642MAINTAINER_MODE_TRUE
643RANLIB
644AR
645AS
646CCASFLAGS
647CCAS
648am__fastdepCXX_FALSE
649am__fastdepCXX_TRUE
650CXXDEPMODE
651ac_ct_CXX
652CXXFLAGS
653CXX
654am__fastdepCC_FALSE
655am__fastdepCC_TRUE
656CCDEPMODE
657AMDEPBACKSLASH
658AMDEP_FALSE
659AMDEP_TRUE
660am__quote
661am__include
662DEPDIR
663OBJEXT
664EXEEXT
665ac_ct_CC
666CPPFLAGS
667LDFLAGS
668CFLAGS
669CC
670am__untar
671am__tar
672AMTAR
673am__leading_dot
674SET_MAKE
675AWK
676mkdir_p
677MKDIR_P
678INSTALL_STRIP_PROGRAM
679STRIP
680install_sh
681MAKEINFO
682AUTOHEADER
683AUTOMAKE
684AUTOCONF
685ACLOCAL
686VERSION
687PACKAGE
688CYGPATH_W
689am__isrc
690INSTALL_DATA
691INSTALL_SCRIPT
692INSTALL_PROGRAM
693mkinstalldirs
694target_noncanonical
695target_os
696target_vendor
697target_cpu
698target
699host_os
700host_vendor
701host_cpu
702host
703build_os
704build_vendor
705build_cpu
706build
707multi_basedir
708target_alias
709host_alias
710build_alias
711LIBS
712ECHO_T
713ECHO_N
714ECHO_C
715DEFS
716mandir
717localedir
718libdir
719psdir
720pdfdir
721dvidir
722htmldir
723infodir
724docdir
725oldincludedir
726includedir
727localstatedir
728sharedstatedir
729sysconfdir
730datadir
731datarootdir
732libexecdir
733sbindir
734bindir
735program_transform_name
736prefix
737exec_prefix
738PACKAGE_URL
739PACKAGE_BUGREPORT
740PACKAGE_STRING
741PACKAGE_VERSION
742PACKAGE_TARNAME
743PACKAGE_NAME
744PATH_SEPARATOR
745SHELL'
47935194 746ac_subst_files=''
5213506e
RW
747ac_user_opts='
748enable_option_checking
749enable_multilib
750enable_dependency_tracking
751enable_maintainer_mode
752enable_shared
753enable_static
754with_pic
755enable_fast_install
756with_gnu_ld
757enable_libtool_lock
758with_target_subdir
759with_cross_host
760enable_parallel_mark
761with_ecos
762enable_gc_debug
763'
764 ac_precious_vars='build_alias
765host_alias
766target_alias
767CPP
768CPPFLAGS
5213506e
RW
769CXXCPP'
770
1530be84
TT
771
772# Initialize some variables set by options.
47935194
NN
773ac_init_help=
774ac_init_version=false
5213506e
RW
775ac_unrecognized_opts=
776ac_unrecognized_sep=
1530be84
TT
777# The variables have the same names as the options, with
778# dashes changed to underlines.
47935194 779cache_file=/dev/null
1530be84 780exec_prefix=NONE
1530be84 781no_create=
1530be84
TT
782no_recursion=
783prefix=NONE
784program_prefix=NONE
785program_suffix=NONE
786program_transform_name=s,x,x,
787silent=
788site=
789srcdir=
1530be84
TT
790verbose=
791x_includes=NONE
792x_libraries=NONE
47935194
NN
793
794# Installation directory options.
795# These are left unexpanded so users can "make install exec_prefix=/foo"
796# and all the variables that are supposed to be based on exec_prefix
797# by default will actually change.
798# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 799# (The list follows the same order as the GNU Coding Standards.)
1530be84
TT
800bindir='${exec_prefix}/bin'
801sbindir='${exec_prefix}/sbin'
802libexecdir='${exec_prefix}/libexec'
5213506e
RW
803datarootdir='${prefix}/share'
804datadir='${datarootdir}'
1530be84
TT
805sysconfdir='${prefix}/etc'
806sharedstatedir='${prefix}/com'
807localstatedir='${prefix}/var'
1530be84
TT
808includedir='${prefix}/include'
809oldincludedir='/usr/include'
5213506e
RW
810docdir='${datarootdir}/doc/${PACKAGE}'
811infodir='${datarootdir}/info'
812htmldir='${docdir}'
813dvidir='${docdir}'
814pdfdir='${docdir}'
815psdir='${docdir}'
816libdir='${exec_prefix}/lib'
817localedir='${datarootdir}/locale'
818mandir='${datarootdir}/man'
1530be84 819
1530be84 820ac_prev=
5213506e 821ac_dashdash=
1530be84
TT
822for ac_option
823do
1530be84
TT
824 # If the previous option needs an argument, assign it.
825 if test -n "$ac_prev"; then
5213506e 826 eval $ac_prev=\$ac_option
1530be84
TT
827 ac_prev=
828 continue
829 fi
830
5213506e
RW
831 case $ac_option in
832 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
833 *) ac_optarg=yes ;;
834 esac
1530be84
TT
835
836 # Accept the important Cygnus configure options, so we can diagnose typos.
837
5213506e
RW
838 case $ac_dashdash$ac_option in
839 --)
840 ac_dashdash=yes ;;
1530be84
TT
841
842 -bindir | --bindir | --bindi | --bind | --bin | --bi)
843 ac_prev=bindir ;;
844 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
47935194 845 bindir=$ac_optarg ;;
1530be84
TT
846
847 -build | --build | --buil | --bui | --bu)
47935194 848 ac_prev=build_alias ;;
1530be84 849 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
47935194 850 build_alias=$ac_optarg ;;
1530be84
TT
851
852 -cache-file | --cache-file | --cache-fil | --cache-fi \
853 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
854 ac_prev=cache_file ;;
855 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
856 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
47935194
NN
857 cache_file=$ac_optarg ;;
858
859 --config-cache | -C)
860 cache_file=config.cache ;;
1530be84 861
5213506e 862 -datadir | --datadir | --datadi | --datad)
1530be84 863 ac_prev=datadir ;;
5213506e 864 -datadir=* | --datadir=* | --datadi=* | --datad=*)
47935194 865 datadir=$ac_optarg ;;
1530be84 866
5213506e
RW
867 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
868 | --dataroo | --dataro | --datar)
869 ac_prev=datarootdir ;;
870 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
871 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
872 datarootdir=$ac_optarg ;;
873
1530be84 874 -disable-* | --disable-*)
5213506e 875 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1530be84 876 # Reject names that are not valid shell variable names.
5213506e
RW
877 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878 as_fn_error "invalid feature name: $ac_useropt"
879 ac_useropt_orig=$ac_useropt
880 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881 case $ac_user_opts in
882 *"
883"enable_$ac_useropt"
884"*) ;;
885 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
886 ac_unrecognized_sep=', ';;
887 esac
888 eval enable_$ac_useropt=no ;;
889
890 -docdir | --docdir | --docdi | --doc | --do)
891 ac_prev=docdir ;;
892 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
893 docdir=$ac_optarg ;;
894
895 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
896 ac_prev=dvidir ;;
897 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
898 dvidir=$ac_optarg ;;
1530be84
TT
899
900 -enable-* | --enable-*)
5213506e 901 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1530be84 902 # Reject names that are not valid shell variable names.
5213506e
RW
903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904 as_fn_error "invalid feature name: $ac_useropt"
905 ac_useropt_orig=$ac_useropt
906 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907 case $ac_user_opts in
908 *"
909"enable_$ac_useropt"
910"*) ;;
911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
912 ac_unrecognized_sep=', ';;
1530be84 913 esac
5213506e 914 eval enable_$ac_useropt=\$ac_optarg ;;
1530be84
TT
915
916 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
917 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
918 | --exec | --exe | --ex)
919 ac_prev=exec_prefix ;;
920 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
921 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
922 | --exec=* | --exe=* | --ex=*)
47935194 923 exec_prefix=$ac_optarg ;;
1530be84
TT
924
925 -gas | --gas | --ga | --g)
926 # Obsolete; use --with-gas.
927 with_gas=yes ;;
928
47935194
NN
929 -help | --help | --hel | --he | -h)
930 ac_init_help=long ;;
931 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
932 ac_init_help=recursive ;;
933 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
934 ac_init_help=short ;;
1530be84
TT
935
936 -host | --host | --hos | --ho)
47935194 937 ac_prev=host_alias ;;
1530be84 938 -host=* | --host=* | --hos=* | --ho=*)
47935194 939 host_alias=$ac_optarg ;;
1530be84 940
5213506e
RW
941 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
942 ac_prev=htmldir ;;
943 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
944 | --ht=*)
945 htmldir=$ac_optarg ;;
946
1530be84
TT
947 -includedir | --includedir | --includedi | --included | --include \
948 | --includ | --inclu | --incl | --inc)
949 ac_prev=includedir ;;
950 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
951 | --includ=* | --inclu=* | --incl=* | --inc=*)
47935194 952 includedir=$ac_optarg ;;
1530be84
TT
953
954 -infodir | --infodir | --infodi | --infod | --info | --inf)
955 ac_prev=infodir ;;
956 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
47935194 957 infodir=$ac_optarg ;;
1530be84
TT
958
959 -libdir | --libdir | --libdi | --libd)
960 ac_prev=libdir ;;
961 -libdir=* | --libdir=* | --libdi=* | --libd=*)
47935194 962 libdir=$ac_optarg ;;
1530be84
TT
963
964 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
965 | --libexe | --libex | --libe)
966 ac_prev=libexecdir ;;
967 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
968 | --libexe=* | --libex=* | --libe=*)
47935194 969 libexecdir=$ac_optarg ;;
1530be84 970
5213506e
RW
971 -localedir | --localedir | --localedi | --localed | --locale)
972 ac_prev=localedir ;;
973 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
974 localedir=$ac_optarg ;;
975
1530be84 976 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 977 | --localstate | --localstat | --localsta | --localst | --locals)
1530be84
TT
978 ac_prev=localstatedir ;;
979 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 980 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
47935194 981 localstatedir=$ac_optarg ;;
1530be84
TT
982
983 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
984 ac_prev=mandir ;;
985 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
47935194 986 mandir=$ac_optarg ;;
1530be84
TT
987
988 -nfp | --nfp | --nf)
989 # Obsolete; use --without-fp.
990 with_fp=no ;;
991
992 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
47935194 993 | --no-cr | --no-c | -n)
1530be84
TT
994 no_create=yes ;;
995
996 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
997 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
998 no_recursion=yes ;;
999
1000 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1001 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1002 | --oldin | --oldi | --old | --ol | --o)
1003 ac_prev=oldincludedir ;;
1004 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1005 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1006 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
47935194 1007 oldincludedir=$ac_optarg ;;
1530be84
TT
1008
1009 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1010 ac_prev=prefix ;;
1011 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
47935194 1012 prefix=$ac_optarg ;;
1530be84
TT
1013
1014 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1015 | --program-pre | --program-pr | --program-p)
1016 ac_prev=program_prefix ;;
1017 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1018 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
47935194 1019 program_prefix=$ac_optarg ;;
1530be84
TT
1020
1021 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1022 | --program-suf | --program-su | --program-s)
1023 ac_prev=program_suffix ;;
1024 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1025 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
47935194 1026 program_suffix=$ac_optarg ;;
1530be84
TT
1027
1028 -program-transform-name | --program-transform-name \
1029 | --program-transform-nam | --program-transform-na \
1030 | --program-transform-n | --program-transform- \
1031 | --program-transform | --program-transfor \
1032 | --program-transfo | --program-transf \
1033 | --program-trans | --program-tran \
1034 | --progr-tra | --program-tr | --program-t)
1035 ac_prev=program_transform_name ;;
1036 -program-transform-name=* | --program-transform-name=* \
1037 | --program-transform-nam=* | --program-transform-na=* \
1038 | --program-transform-n=* | --program-transform-=* \
1039 | --program-transform=* | --program-transfor=* \
1040 | --program-transfo=* | --program-transf=* \
1041 | --program-trans=* | --program-tran=* \
1042 | --progr-tra=* | --program-tr=* | --program-t=*)
47935194 1043 program_transform_name=$ac_optarg ;;
1530be84 1044
5213506e
RW
1045 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1046 ac_prev=pdfdir ;;
1047 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1048 pdfdir=$ac_optarg ;;
1049
1050 -psdir | --psdir | --psdi | --psd | --ps)
1051 ac_prev=psdir ;;
1052 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1053 psdir=$ac_optarg ;;
1054
1530be84
TT
1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056 | -silent | --silent | --silen | --sile | --sil)
1057 silent=yes ;;
1058
1059 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1060 ac_prev=sbindir ;;
1061 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1062 | --sbi=* | --sb=*)
47935194 1063 sbindir=$ac_optarg ;;
1530be84
TT
1064
1065 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1066 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1067 | --sharedst | --shareds | --shared | --share | --shar \
1068 | --sha | --sh)
1069 ac_prev=sharedstatedir ;;
1070 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1071 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1072 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1073 | --sha=* | --sh=*)
47935194 1074 sharedstatedir=$ac_optarg ;;
1530be84
TT
1075
1076 -site | --site | --sit)
1077 ac_prev=site ;;
1078 -site=* | --site=* | --sit=*)
47935194 1079 site=$ac_optarg ;;
1530be84
TT
1080
1081 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1082 ac_prev=srcdir ;;
1083 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
47935194 1084 srcdir=$ac_optarg ;;
1530be84
TT
1085
1086 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1087 | --syscon | --sysco | --sysc | --sys | --sy)
1088 ac_prev=sysconfdir ;;
1089 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1090 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
47935194 1091 sysconfdir=$ac_optarg ;;
1530be84
TT
1092
1093 -target | --target | --targe | --targ | --tar | --ta | --t)
47935194 1094 ac_prev=target_alias ;;
1530be84 1095 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
47935194 1096 target_alias=$ac_optarg ;;
1530be84
TT
1097
1098 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1099 verbose=yes ;;
1100
47935194
NN
1101 -version | --version | --versio | --versi | --vers | -V)
1102 ac_init_version=: ;;
1530be84
TT
1103
1104 -with-* | --with-*)
5213506e 1105 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1530be84 1106 # Reject names that are not valid shell variable names.
5213506e
RW
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108 as_fn_error "invalid package name: $ac_useropt"
1109 ac_useropt_orig=$ac_useropt
1110 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1112 *"
1113"with_$ac_useropt"
1114"*) ;;
1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1116 ac_unrecognized_sep=', ';;
1530be84 1117 esac
5213506e 1118 eval with_$ac_useropt=\$ac_optarg ;;
1530be84
TT
1119
1120 -without-* | --without-*)
5213506e 1121 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1530be84 1122 # Reject names that are not valid shell variable names.
5213506e
RW
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error "invalid package name: $ac_useropt"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1128 *"
1129"with_$ac_useropt"
1130"*) ;;
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1133 esac
1134 eval with_$ac_useropt=no ;;
1530be84
TT
1135
1136 --x)
1137 # Obsolete; use --with-x.
1138 with_x=yes ;;
1139
1140 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1141 | --x-incl | --x-inc | --x-in | --x-i)
1142 ac_prev=x_includes ;;
1143 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1144 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
47935194 1145 x_includes=$ac_optarg ;;
1530be84
TT
1146
1147 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1148 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1149 ac_prev=x_libraries ;;
1150 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1151 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
47935194 1152 x_libraries=$ac_optarg ;;
1530be84 1153
5213506e
RW
1154 -*) as_fn_error "unrecognized option: \`$ac_option'
1155Try \`$0 --help' for more information."
1530be84
TT
1156 ;;
1157
47935194
NN
1158 *=*)
1159 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1160 # Reject names that are not valid shell variable names.
5213506e
RW
1161 case $ac_envvar in #(
1162 '' | [0-9]* | *[!_$as_cr_alnum]* )
1163 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1164 esac
1165 eval $ac_envvar=\$ac_optarg
47935194
NN
1166 export $ac_envvar ;;
1167
1530be84 1168 *)
47935194 1169 # FIXME: should be removed in autoconf 3.0.
5213506e 1170 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
47935194 1171 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1172 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
47935194 1173 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1530be84
TT
1174 ;;
1175
1176 esac
1177done
1178
1179if test -n "$ac_prev"; then
47935194 1180 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1181 as_fn_error "missing argument to $ac_option"
1530be84 1182fi
1530be84 1183
5213506e
RW
1184if test -n "$ac_unrecognized_opts"; then
1185 case $enable_option_checking in
1186 no) ;;
1187 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1188 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
47935194 1189 esac
5213506e 1190fi
1530be84 1191
5213506e
RW
1192# Check all directory arguments for consistency.
1193for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1194 datadir sysconfdir sharedstatedir localstatedir includedir \
1195 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1196 libdir localedir mandir
1530be84 1197do
5213506e
RW
1198 eval ac_val=\$$ac_var
1199 # Remove trailing slashes.
1200 case $ac_val in
1201 */ )
1202 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1203 eval $ac_var=\$ac_val;;
1204 esac
1205 # Be sure to have absolute directory names.
47935194 1206 case $ac_val in
5213506e
RW
1207 [\\/$]* | ?:[\\/]* ) continue;;
1208 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1530be84 1209 esac
5213506e 1210 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1530be84
TT
1211done
1212
47935194
NN
1213# There might be people who depend on the old broken behavior: `$host'
1214# used to hold the argument of --host etc.
1215# FIXME: To remove some day.
1216build=$build_alias
1217host=$host_alias
1218target=$target_alias
1219
1220# FIXME: To remove some day.
1221if test "x$host_alias" != x; then
1222 if test "x$build_alias" = x; then
1223 cross_compiling=maybe
5213506e 1224 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
47935194
NN
1225 If a cross compiler is detected then cross compile mode will be used." >&2
1226 elif test "x$build_alias" != "x$host_alias"; then
1227 cross_compiling=yes
1228 fi
1229fi
1530be84 1230
47935194
NN
1231ac_tool_prefix=
1232test -n "$host_alias" && ac_tool_prefix=$host_alias-
1233
1234test "$silent" = yes && exec 6>/dev/null
1530be84 1235
1530be84 1236
5213506e
RW
1237ac_pwd=`pwd` && test -n "$ac_pwd" &&
1238ac_ls_di=`ls -di .` &&
1239ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1240 as_fn_error "working directory cannot be determined"
1241test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1242 as_fn_error "pwd does not report name of working directory"
1243
1244
1530be84
TT
1245# Find the source files, if location was not specified.
1246if test -z "$srcdir"; then
1247 ac_srcdir_defaulted=yes
5213506e
RW
1248 # Try the directory containing this script, then the parent directory.
1249 ac_confdir=`$as_dirname -- "$as_myself" ||
1250$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1251 X"$as_myself" : 'X\(//\)[^/]' \| \
1252 X"$as_myself" : 'X\(//\)$' \| \
1253 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1254$as_echo X"$as_myself" |
1255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1256 s//\1/
1257 q
1258 }
1259 /^X\(\/\/\)[^/].*/{
1260 s//\1/
1261 q
1262 }
1263 /^X\(\/\/\)$/{
1264 s//\1/
1265 q
1266 }
1267 /^X\(\/\).*/{
1268 s//\1/
1269 q
1270 }
1271 s/.*/./; q'`
1530be84 1272 srcdir=$ac_confdir
5213506e 1273 if test ! -r "$srcdir/$ac_unique_file"; then
1530be84
TT
1274 srcdir=..
1275 fi
1276else
1277 ac_srcdir_defaulted=no
1278fi
5213506e
RW
1279if test ! -r "$srcdir/$ac_unique_file"; then
1280 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1281 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1282fi
1283ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1284ac_abs_confdir=`(
1285 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1286 pwd)`
1287# When building in place, set srcdir=.
1288if test "$ac_abs_confdir" = "$ac_pwd"; then
1289 srcdir=.
1290fi
1291# Remove unnecessary trailing slashes from srcdir.
1292# Double slashes in file names in object file debugging info
1293# mess up M-x gdb in Emacs.
1294case $srcdir in
1295*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1296esac
1297for ac_var in $ac_precious_vars; do
1298 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1299 eval ac_env_${ac_var}_value=\$${ac_var}
1300 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1301 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1302done
47935194
NN
1303
1304#
1305# Report the --help message.
1306#
1307if test "$ac_init_help" = "long"; then
1308 # Omit some internal or obsolete options to make the list less imposing.
1309 # This message is too long to be a string in the A/UX 3.1 sh.
1310 cat <<_ACEOF
1311\`configure' configures this package to adapt to many kinds of systems.
1312
1313Usage: $0 [OPTION]... [VAR=VALUE]...
1314
1315To assign environment variables (e.g., CC, CFLAGS...), specify them as
1316VAR=VALUE. See below for descriptions of some of the useful variables.
1317
1318Defaults for the options are specified in brackets.
1319
1320Configuration:
1321 -h, --help display this help and exit
1322 --help=short display options specific to this package
1323 --help=recursive display the short help of all the included packages
1324 -V, --version display version information and exit
1325 -q, --quiet, --silent do not print \`checking...' messages
1326 --cache-file=FILE cache test results in FILE [disabled]
1327 -C, --config-cache alias for \`--cache-file=config.cache'
1328 -n, --no-create do not create output files
1329 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1330
47935194
NN
1331Installation directories:
1332 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1333 [$ac_default_prefix]
47935194 1334 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1335 [PREFIX]
47935194
NN
1336
1337By default, \`make install' will install all the files in
1338\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1339an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1340for instance \`--prefix=\$HOME'.
1341
1342For better control, use the options below.
1343
1344Fine tuning of the installation directories:
5213506e
RW
1345 --bindir=DIR user executables [EPREFIX/bin]
1346 --sbindir=DIR system admin executables [EPREFIX/sbin]
1347 --libexecdir=DIR program executables [EPREFIX/libexec]
1348 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1349 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1350 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1351 --libdir=DIR object code libraries [EPREFIX/lib]
1352 --includedir=DIR C header files [PREFIX/include]
1353 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1354 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1355 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1356 --infodir=DIR info documentation [DATAROOTDIR/info]
1357 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1358 --mandir=DIR man documentation [DATAROOTDIR/man]
1359 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1360 --htmldir=DIR html documentation [DOCDIR]
1361 --dvidir=DIR dvi documentation [DOCDIR]
1362 --pdfdir=DIR pdf documentation [DOCDIR]
1363 --psdir=DIR ps documentation [DOCDIR]
47935194
NN
1364_ACEOF
1365
1366 cat <<\_ACEOF
1367
1368Program names:
1369 --program-prefix=PREFIX prepend PREFIX to installed program names
1370 --program-suffix=SUFFIX append SUFFIX to installed program names
1371 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1372
1373System types:
1374 --build=BUILD configure for building on BUILD [guessed]
1375 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1376 --target=TARGET configure for building compilers for TARGET [HOST]
1377_ACEOF
1378fi
1379
1380if test -n "$ac_init_help"; then
1381
1382 cat <<\_ACEOF
1383
1384Optional Features:
5213506e 1385 --disable-option-checking ignore unrecognized --enable/--with options
47935194
NN
1386 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1387 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1388 --enable-multilib build many library versions (default)
bf9a420e
PB
1389 --disable-dependency-tracking speeds up one-time build
1390 --enable-dependency-tracking do not reject slow dependency extractors
1391 --enable-maintainer-mode enable make rules and dependencies not useful
1392 (and sometimes confusing) to the casual installer
5213506e
RW
1393 --enable-shared[=PKGS] build shared libraries [default=yes]
1394 --enable-static[=PKGS] build static libraries [default=yes]
1cf3d07d
SE
1395 --enable-fast-install[=PKGS]
1396 optimize for fast installation [default=yes]
47935194
NN
1397 --disable-libtool-lock avoid locking (might break parallel builds)
1398 --enable-parallel-mark parallelize marking and free list construction
3c1cbf58 1399 --enable-gc-debug include full support for pointer backtracing etc.
47935194
NN
1400
1401Optional Packages:
1402 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1403 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1cf3d07d
SE
1404 --with-pic try to use only PIC/non-PIC objects [default=use
1405 both]
1406 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
47935194
NN
1407 --with-target-subdir=SUBDIR
1408 configuring with a cross compiler
1409 --with-cross-host=HOST configuring with a cross compiler
1410 --with-ecos enable runtime eCos target support
1411
1412Some influential environment variables:
1413 CC C compiler command
1414 CFLAGS C compiler flags
1415 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1416 nonstandard directory <lib dir>
5213506e
RW
1417 LIBS libraries to pass to the linker, e.g. -l<library>
1418 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1419 you have headers in a nonstandard directory <include dir>
47935194
NN
1420 CXX C++ compiler command
1421 CXXFLAGS C++ compiler flags
47935194 1422 CPP C preprocessor
1cf3d07d 1423 CXXCPP C++ preprocessor
47935194
NN
1424
1425Use these variables to override the choices made by `configure' or to help
1426it to find libraries and programs with nonstandard names/locations.
1427
5213506e 1428Report bugs to the package provider.
47935194 1429_ACEOF
5213506e 1430ac_status=$?
47935194
NN
1431fi
1432
1433if test "$ac_init_help" = "recursive"; then
1434 # If there are subdirs, report their specific --help.
47935194 1435 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1436 test -d "$ac_dir" ||
1437 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1438 continue
47935194
NN
1439 ac_builddir=.
1440
5213506e
RW
1441case "$ac_dir" in
1442.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1443*)
1444 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1445 # A ".." for each directory in $ac_dir_suffix.
1446 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1447 case $ac_top_builddir_sub in
1448 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1449 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1450 esac ;;
1451esac
1452ac_abs_top_builddir=$ac_pwd
1453ac_abs_builddir=$ac_pwd$ac_dir_suffix
1454# for backward compatibility:
1455ac_top_builddir=$ac_top_build_prefix
47935194
NN
1456
1457case $srcdir in
5213506e 1458 .) # We are building in place.
47935194 1459 ac_srcdir=.
5213506e
RW
1460 ac_top_srcdir=$ac_top_builddir_sub
1461 ac_abs_top_srcdir=$ac_pwd ;;
1462 [\\/]* | ?:[\\/]* ) # Absolute name.
47935194 1463 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1464 ac_top_srcdir=$srcdir
1465 ac_abs_top_srcdir=$srcdir ;;
1466 *) # Relative name.
1467 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1468 ac_top_srcdir=$ac_top_build_prefix$srcdir
1469 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8ab705be 1470esac
5213506e
RW
1471ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1472
1473 cd "$ac_dir" || { ac_status=$?; continue; }
1474 # Check for guested configure.
1475 if test -f "$ac_srcdir/configure.gnu"; then
1476 echo &&
1477 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1478 elif test -f "$ac_srcdir/configure"; then
1479 echo &&
1480 $SHELL "$ac_srcdir/configure" --help=recursive
47935194 1481 else
5213506e
RW
1482 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1483 fi || ac_status=$?
1484 cd "$ac_pwd" || { ac_status=$?; break; }
47935194
NN
1485 done
1486fi
1487
5213506e 1488test -n "$ac_init_help" && exit $ac_status
47935194
NN
1489if $ac_init_version; then
1490 cat <<\_ACEOF
5213506e
RW
1491configure
1492generated by GNU Autoconf 2.64
47935194 1493
5213506e 1494Copyright (C) 2009 Free Software Foundation, Inc.
47935194
NN
1495This configure script is free software; the Free Software Foundation
1496gives unlimited permission to copy, distribute and modify it.
1497_ACEOF
5213506e 1498 exit
47935194 1499fi
47935194 1500
5213506e
RW
1501## ------------------------ ##
1502## Autoconf initialization. ##
1503## ------------------------ ##
47935194 1504
5213506e
RW
1505# ac_fn_c_try_compile LINENO
1506# --------------------------
1507# Try to compile conftest.$ac_ext, and return whether this succeeded.
1508ac_fn_c_try_compile ()
1509{
1510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1511 rm -f conftest.$ac_objext
1512 if { { ac_try="$ac_compile"
1513case "(($ac_try" in
1514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1515 *) ac_try_echo=$ac_try;;
1516esac
1517eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1518$as_echo "$ac_try_echo"; } >&5
1519 (eval "$ac_compile") 2>conftest.err
1520 ac_status=$?
1521 if test -s conftest.err; then
1522 grep -v '^ *+' conftest.err >conftest.er1
1523 cat conftest.er1 >&5
1524 mv -f conftest.er1 conftest.err
1525 fi
1526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1527 test $ac_status = 0; } && {
1528 test -z "$ac_c_werror_flag" ||
1529 test ! -s conftest.err
1530 } && test -s conftest.$ac_objext; then :
1531 ac_retval=0
1532else
1533 $as_echo "$as_me: failed program was:" >&5
1534sed 's/^/| /' conftest.$ac_ext >&5
47935194 1535
5213506e
RW
1536 ac_retval=1
1537fi
1538 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1539 return $ac_retval
1540
1541} # ac_fn_c_try_compile
1542
1543# ac_fn_cxx_try_compile LINENO
1544# ----------------------------
1545# Try to compile conftest.$ac_ext, and return whether this succeeded.
1546ac_fn_cxx_try_compile ()
47935194 1547{
5213506e
RW
1548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549 rm -f conftest.$ac_objext
1550 if { { ac_try="$ac_compile"
1551case "(($ac_try" in
1552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1553 *) ac_try_echo=$ac_try;;
1554esac
1555eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556$as_echo "$ac_try_echo"; } >&5
1557 (eval "$ac_compile") 2>conftest.err
1558 ac_status=$?
1559 if test -s conftest.err; then
1560 grep -v '^ *+' conftest.err >conftest.er1
1561 cat conftest.er1 >&5
1562 mv -f conftest.er1 conftest.err
1563 fi
1564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565 test $ac_status = 0; } && {
1566 test -z "$ac_cxx_werror_flag" ||
1567 test ! -s conftest.err
1568 } && test -s conftest.$ac_objext; then :
1569 ac_retval=0
1570else
1571 $as_echo "$as_me: failed program was:" >&5
1572sed 's/^/| /' conftest.$ac_ext >&5
47935194 1573
5213506e
RW
1574 ac_retval=1
1575fi
1576 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1577 return $ac_retval
47935194 1578
5213506e 1579} # ac_fn_cxx_try_compile
47935194 1580
5213506e
RW
1581# ac_fn_c_try_link LINENO
1582# -----------------------
1583# Try to link conftest.$ac_ext, and return whether this succeeded.
1584ac_fn_c_try_link ()
1585{
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 rm -f conftest.$ac_objext conftest$ac_exeext
1588 if { { ac_try="$ac_link"
1589case "(($ac_try" in
1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1592esac
1593eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594$as_echo "$ac_try_echo"; } >&5
1595 (eval "$ac_link") 2>conftest.err
1596 ac_status=$?
1597 if test -s conftest.err; then
1598 grep -v '^ *+' conftest.err >conftest.er1
1599 cat conftest.er1 >&5
1600 mv -f conftest.er1 conftest.err
1601 fi
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; } && {
1604 test -z "$ac_c_werror_flag" ||
1605 test ! -s conftest.err
1606 } && test -s conftest$ac_exeext && {
1607 test "$cross_compiling" = yes ||
1608 $as_test_x conftest$ac_exeext
1609 }; then :
1610 ac_retval=0
1611else
1612 $as_echo "$as_me: failed program was:" >&5
1613sed 's/^/| /' conftest.$ac_ext >&5
1614
1615 ac_retval=1
1616fi
1617 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1618 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1619 # interfere with the next link command; also delete a directory that is
1620 # left behind by Apple's compiler. We do this before executing the actions.
1621 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1622 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1623 return $ac_retval
1624
1625} # ac_fn_c_try_link
1626
1627# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1628# -------------------------------------------------------
1629# Tests whether HEADER exists and can be compiled using the include files in
1630# INCLUDES, setting the cache variable VAR accordingly.
1631ac_fn_c_check_header_compile ()
1632{
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1635$as_echo_n "checking for $2... " >&6; }
1636if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1637 $as_echo_n "(cached) " >&6
1638else
1639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1640/* end confdefs.h. */
1641$4
1642#include <$2>
1643_ACEOF
1644if ac_fn_c_try_compile "$LINENO"; then :
1645 eval "$3=yes"
1646else
1647 eval "$3=no"
1648fi
1649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1650fi
1651eval ac_res=\$$3
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1653$as_echo "$ac_res" >&6; }
1654 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1655
1656} # ac_fn_c_check_header_compile
1657
1658# ac_fn_c_try_cpp LINENO
1659# ----------------------
1660# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1661ac_fn_c_try_cpp ()
1662{
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 if { { ac_try="$ac_cpp conftest.$ac_ext"
1665case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668esac
1669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670$as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1672 ac_status=$?
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1677 fi
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } >/dev/null && {
1680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1682 }; then :
1683 ac_retval=0
1684else
1685 $as_echo "$as_me: failed program was:" >&5
1686sed 's/^/| /' conftest.$ac_ext >&5
1687
1688 ac_retval=1
1689fi
1690 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1691 return $ac_retval
1692
1693} # ac_fn_c_try_cpp
1694
1695# ac_fn_c_try_run LINENO
1696# ----------------------
1697# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1698# that executables *can* be run.
1699ac_fn_c_try_run ()
1700{
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 if { { ac_try="$ac_link"
1703case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706esac
1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708$as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_link") 2>&5
1710 ac_status=$?
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1713 { { case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716esac
1717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718$as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_try") 2>&5
1720 ac_status=$?
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; }; }; then :
1723 ac_retval=0
1724else
1725 $as_echo "$as_me: program exited with status $ac_status" >&5
1726 $as_echo "$as_me: failed program was:" >&5
1727sed 's/^/| /' conftest.$ac_ext >&5
1728
1729 ac_retval=$ac_status
1730fi
1731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1733 return $ac_retval
1734
1735} # ac_fn_c_try_run
1736
1737# ac_fn_c_check_func LINENO FUNC VAR
1738# ----------------------------------
1739# Tests whether FUNC exists, setting the cache variable VAR accordingly
1740ac_fn_c_check_func ()
1741{
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744$as_echo_n "checking for $2... " >&6; }
1745if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1746 $as_echo_n "(cached) " >&6
1747else
1748 if test x$gcc_no_link = xyes; then
1749 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1750fi
1751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1752/* end confdefs.h. */
1753/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1755#define $2 innocuous_$2
1756
1757/* System header to define __stub macros and hopefully few prototypes,
1758 which can conflict with char $2 (); below.
1759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1760 <limits.h> exists even on freestanding compilers. */
1761
1762#ifdef __STDC__
1763# include <limits.h>
1764#else
1765# include <assert.h>
1766#endif
1767
1768#undef $2
1769
1770/* Override any GCC internal prototype to avoid an error.
1771 Use char because int might match the return type of a GCC
1772 builtin and then its argument prototype would still apply. */
1773#ifdef __cplusplus
1774extern "C"
1775#endif
1776char $2 ();
1777/* The GNU C library defines this for functions which it implements
1778 to always fail with ENOSYS. Some functions are actually named
1779 something starting with __ and the normal name is an alias. */
1780#if defined __stub_$2 || defined __stub___$2
1781choke me
1782#endif
1783
1784int
1785main ()
1786{
1787return $2 ();
1788 ;
1789 return 0;
1790}
1791_ACEOF
1792if ac_fn_c_try_link "$LINENO"; then :
1793 eval "$3=yes"
1794else
1795 eval "$3=no"
1796fi
1797rm -f core conftest.err conftest.$ac_objext \
1798 conftest$ac_exeext conftest.$ac_ext
1799fi
1800eval ac_res=\$$3
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802$as_echo "$ac_res" >&6; }
1803 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1804
1805} # ac_fn_c_check_func
1806
1807# ac_fn_cxx_try_cpp LINENO
1808# ------------------------
1809# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1810ac_fn_cxx_try_cpp ()
1811{
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 if { { ac_try="$ac_cpp conftest.$ac_ext"
1814case "(($ac_try" in
1815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816 *) ac_try_echo=$ac_try;;
1817esac
1818eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819$as_echo "$ac_try_echo"; } >&5
1820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1821 ac_status=$?
1822 if test -s conftest.err; then
1823 grep -v '^ *+' conftest.err >conftest.er1
1824 cat conftest.er1 >&5
1825 mv -f conftest.er1 conftest.err
1826 fi
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } >/dev/null && {
1829 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1830 test ! -s conftest.err
1831 }; then :
1832 ac_retval=0
1833else
1834 $as_echo "$as_me: failed program was:" >&5
1835sed 's/^/| /' conftest.$ac_ext >&5
1836
1837 ac_retval=1
1838fi
1839 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1840 return $ac_retval
1841
1842} # ac_fn_cxx_try_cpp
1843
1844# ac_fn_cxx_try_link LINENO
1845# -------------------------
1846# Try to link conftest.$ac_ext, and return whether this succeeded.
1847ac_fn_cxx_try_link ()
1848{
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 rm -f conftest.$ac_objext conftest$ac_exeext
1851 if { { ac_try="$ac_link"
1852case "(($ac_try" in
1853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854 *) ac_try_echo=$ac_try;;
1855esac
1856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857$as_echo "$ac_try_echo"; } >&5
1858 (eval "$ac_link") 2>conftest.err
1859 ac_status=$?
1860 if test -s conftest.err; then
1861 grep -v '^ *+' conftest.err >conftest.er1
1862 cat conftest.er1 >&5
1863 mv -f conftest.er1 conftest.err
1864 fi
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; } && {
1867 test -z "$ac_cxx_werror_flag" ||
1868 test ! -s conftest.err
1869 } && test -s conftest$ac_exeext && {
1870 test "$cross_compiling" = yes ||
1871 $as_test_x conftest$ac_exeext
1872 }; then :
1873 ac_retval=0
1874else
1875 $as_echo "$as_me: failed program was:" >&5
1876sed 's/^/| /' conftest.$ac_ext >&5
1877
1878 ac_retval=1
1879fi
1880 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1881 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1882 # interfere with the next link command; also delete a directory that is
1883 # left behind by Apple's compiler. We do this before executing the actions.
1884 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1885 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1886 return $ac_retval
1887
1888} # ac_fn_cxx_try_link
1889
1890# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1891# ----------------------------------------------------
1892# Tries to find if the field MEMBER exists in type AGGR, after including
1893# INCLUDES, setting cache variable VAR accordingly.
1894ac_fn_c_check_member ()
1895{
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1898$as_echo_n "checking for $2.$3... " >&6; }
1899if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1900 $as_echo_n "(cached) " >&6
1901else
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903/* end confdefs.h. */
1904$5
1905int
1906main ()
1907{
1908static $2 ac_aggr;
1909if (ac_aggr.$3)
1910return 0;
1911 ;
1912 return 0;
1913}
1914_ACEOF
1915if ac_fn_c_try_compile "$LINENO"; then :
1916 eval "$4=yes"
1917else
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919/* end confdefs.h. */
1920$5
1921int
1922main ()
1923{
1924static $2 ac_aggr;
1925if (sizeof ac_aggr.$3)
1926return 0;
1927 ;
1928 return 0;
1929}
1930_ACEOF
1931if ac_fn_c_try_compile "$LINENO"; then :
1932 eval "$4=yes"
1933else
1934 eval "$4=no"
1935fi
1936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937fi
1938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939fi
1940eval ac_res=\$$4
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942$as_echo "$ac_res" >&6; }
1943 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1944
1945} # ac_fn_c_check_member
1946
1947# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1948# -------------------------------------------------------
1949# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1950# the include files in INCLUDES and setting the cache variable VAR
1951# accordingly.
1952ac_fn_c_check_header_mongrel ()
1953{
1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957$as_echo_n "checking for $2... " >&6; }
1958if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1959 $as_echo_n "(cached) " >&6
1960fi
1961eval ac_res=\$$3
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963$as_echo "$ac_res" >&6; }
1964else
1965 # Is the header compilable?
1966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1967$as_echo_n "checking $2 usability... " >&6; }
1968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969/* end confdefs.h. */
1970$4
1971#include <$2>
1972_ACEOF
1973if ac_fn_c_try_compile "$LINENO"; then :
1974 ac_header_compiler=yes
1975else
1976 ac_header_compiler=no
1977fi
1978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1980$as_echo "$ac_header_compiler" >&6; }
1981
1982# Is the header present?
1983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1984$as_echo_n "checking $2 presence... " >&6; }
1985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986/* end confdefs.h. */
1987#include <$2>
1988_ACEOF
1989if ac_fn_c_try_cpp "$LINENO"; then :
1990 ac_header_preproc=yes
1991else
1992 ac_header_preproc=no
1993fi
1994rm -f conftest.err conftest.$ac_ext
1995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1996$as_echo "$ac_header_preproc" >&6; }
1997
1998# So? What about this header?
1999case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2000 yes:no: )
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2002$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2004$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2005 ;;
2006 no:yes:* )
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2008$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2010$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2012$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2014$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2016$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2017 ;;
2018esac
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2020$as_echo_n "checking for $2... " >&6; }
2021if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2022 $as_echo_n "(cached) " >&6
2023else
2024 eval "$3=\$ac_header_compiler"
2025fi
2026eval ac_res=\$$3
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2028$as_echo "$ac_res" >&6; }
2029fi
2030 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2031
2032} # ac_fn_c_check_header_mongrel
2033cat >config.log <<_ACEOF
2034This file contains any messages produced by compilers while
2035running configure, to aid debugging if configure makes a mistake.
2036
2037It was created by $as_me, which was
2038generated by GNU Autoconf 2.64. Invocation command line was
2039
2040 $ $0 $@
2041
2042_ACEOF
2043exec 5>>config.log
2044{
2045cat <<_ASUNAME
2046## --------- ##
2047## Platform. ##
2048## --------- ##
2049
2050hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2051uname -m = `(uname -m) 2>/dev/null || echo unknown`
2052uname -r = `(uname -r) 2>/dev/null || echo unknown`
2053uname -s = `(uname -s) 2>/dev/null || echo unknown`
2054uname -v = `(uname -v) 2>/dev/null || echo unknown`
2055
2056/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2057/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2058
2059/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2060/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2061/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2062/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
47935194
NN
2063/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2064/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2065/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2066
2067_ASUNAME
2068
2069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070for as_dir in $PATH
2071do
2072 IFS=$as_save_IFS
2073 test -z "$as_dir" && as_dir=.
5213506e
RW
2074 $as_echo "PATH: $as_dir"
2075 done
2076IFS=$as_save_IFS
47935194
NN
2077
2078} >&5
2079
2080cat >&5 <<_ACEOF
2081
2082
2083## ----------- ##
2084## Core tests. ##
2085## ----------- ##
2086
2087_ACEOF
2088
2089
2090# Keep a trace of the command line.
2091# Strip out --no-create and --no-recursion so they do not pile up.
2092# Strip out --silent because we don't want to record it for future runs.
2093# Also quote any args containing shell meta-characters.
2094# Make two passes to allow for proper duplicate-argument suppression.
2095ac_configure_args=
2096ac_configure_args0=
2097ac_configure_args1=
47935194
NN
2098ac_must_keep_next=false
2099for ac_pass in 1 2
2100do
2101 for ac_arg
2102 do
2103 case $ac_arg in
2104 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2106 | -silent | --silent | --silen | --sile | --sil)
2107 continue ;;
5213506e
RW
2108 *\'*)
2109 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
47935194
NN
2110 esac
2111 case $ac_pass in
5213506e 2112 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
47935194 2113 2)
5213506e 2114 as_fn_append ac_configure_args1 " '$ac_arg'"
47935194 2115 if test $ac_must_keep_next = true; then
8ab705be 2116 ac_must_keep_next=false # Got value, back to normal.
47935194 2117 else
8ab705be
KC
2118 case $ac_arg in
2119 *=* | --config-cache | -C | -disable-* | --disable-* \
2120 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2121 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2122 | -with-* | --with-* | -without-* | --without-* | --x)
2123 case "$ac_configure_args0 " in
2124 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2125 esac
2126 ;;
2127 -* ) ac_must_keep_next=true ;;
2128 esac
47935194 2129 fi
5213506e 2130 as_fn_append ac_configure_args " '$ac_arg'"
47935194
NN
2131 ;;
2132 esac
2133 done
2134done
5213506e
RW
2135{ ac_configure_args0=; unset ac_configure_args0;}
2136{ ac_configure_args1=; unset ac_configure_args1;}
47935194
NN
2137
2138# When interrupted or exit'd, cleanup temporary files, and complete
2139# config.log. We remove comments because anyway the quotes in there
2140# would cause problems or look ugly.
5213506e
RW
2141# WARNING: Use '\'' to represent an apostrophe within the trap.
2142# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
47935194
NN
2143trap 'exit_status=$?
2144 # Save into config.log some information that might help in debugging.
2145 {
2146 echo
2147
2148 cat <<\_ASBOX
2149## ---------------- ##
2150## Cache variables. ##
2151## ---------------- ##
2152_ASBOX
2153 echo
2154 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2155(
2156 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2157 eval ac_val=\$$ac_var
2158 case $ac_val in #(
2159 *${as_nl}*)
2160 case $ac_var in #(
2161 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2162$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2163 esac
2164 case $ac_var in #(
2165 _ | IFS | as_nl) ;; #(
2166 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2167 *) { eval $ac_var=; unset $ac_var;} ;;
2168 esac ;;
2169 esac
2170 done
47935194 2171 (set) 2>&1 |
5213506e
RW
2172 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2173 *${as_nl}ac_space=\ *)
47935194 2174 sed -n \
5213506e
RW
2175 "s/'\''/'\''\\\\'\'''\''/g;
2176 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2177 ;; #(
47935194 2178 *)
5213506e 2179 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
47935194 2180 ;;
5213506e
RW
2181 esac |
2182 sort
2183)
47935194
NN
2184 echo
2185
2186 cat <<\_ASBOX
2187## ----------------- ##
2188## Output variables. ##
2189## ----------------- ##
2190_ASBOX
2191 echo
2192 for ac_var in $ac_subst_vars
2193 do
5213506e
RW
2194 eval ac_val=\$$ac_var
2195 case $ac_val in
2196 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2197 esac
2198 $as_echo "$ac_var='\''$ac_val'\''"
47935194
NN
2199 done | sort
2200 echo
2201
2202 if test -n "$ac_subst_files"; then
2203 cat <<\_ASBOX
5213506e
RW
2204## ------------------- ##
2205## File substitutions. ##
2206## ------------------- ##
47935194
NN
2207_ASBOX
2208 echo
2209 for ac_var in $ac_subst_files
2210 do
5213506e
RW
2211 eval ac_val=\$$ac_var
2212 case $ac_val in
2213 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2214 esac
2215 $as_echo "$ac_var='\''$ac_val'\''"
47935194
NN
2216 done | sort
2217 echo
2218 fi
2219
2220 if test -s confdefs.h; then
2221 cat <<\_ASBOX
2222## ----------- ##
2223## confdefs.h. ##
2224## ----------- ##
2225_ASBOX
2226 echo
5213506e 2227 cat confdefs.h
47935194
NN
2228 echo
2229 fi
2230 test "$ac_signal" != 0 &&
5213506e
RW
2231 $as_echo "$as_me: caught signal $ac_signal"
2232 $as_echo "$as_me: exit $exit_status"
47935194 2233 } >&5
5213506e
RW
2234 rm -f core *.core core.conftest.* &&
2235 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
47935194 2236 exit $exit_status
5213506e 2237' 0
47935194 2238for ac_signal in 1 2 13 15; do
5213506e 2239 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
47935194
NN
2240done
2241ac_signal=0
2242
2243# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2244rm -f -r conftest* confdefs.h
2245
2246$as_echo "/* confdefs.h */" > confdefs.h
47935194
NN
2247
2248# Predefined preprocessor variables.
2249
2250cat >>confdefs.h <<_ACEOF
2251#define PACKAGE_NAME "$PACKAGE_NAME"
2252_ACEOF
2253
47935194
NN
2254cat >>confdefs.h <<_ACEOF
2255#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2256_ACEOF
2257
47935194
NN
2258cat >>confdefs.h <<_ACEOF
2259#define PACKAGE_VERSION "$PACKAGE_VERSION"
2260_ACEOF
2261
47935194
NN
2262cat >>confdefs.h <<_ACEOF
2263#define PACKAGE_STRING "$PACKAGE_STRING"
2264_ACEOF
2265
47935194
NN
2266cat >>confdefs.h <<_ACEOF
2267#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2268_ACEOF
2269
5213506e
RW
2270cat >>confdefs.h <<_ACEOF
2271#define PACKAGE_URL "$PACKAGE_URL"
2272_ACEOF
2273
47935194
NN
2274
2275# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2276# Prefer an explicitly selected file to automatically selected ones.
2277ac_site_file1=NONE
2278ac_site_file2=NONE
2279if test -n "$CONFIG_SITE"; then
2280 ac_site_file1=$CONFIG_SITE
2281elif test "x$prefix" != xNONE; then
2282 ac_site_file1=$prefix/share/config.site
2283 ac_site_file2=$prefix/etc/config.site
2284else
2285 ac_site_file1=$ac_default_prefix/share/config.site
2286 ac_site_file2=$ac_default_prefix/etc/config.site
2287fi
2288for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2289do
2290 test "x$ac_site_file" = xNONE && continue
1530be84 2291 if test -r "$ac_site_file"; then
5213506e
RW
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2293$as_echo "$as_me: loading site script $ac_site_file" >&6;}
47935194 2294 sed 's/^/| /' "$ac_site_file" >&5
1530be84
TT
2295 . "$ac_site_file"
2296 fi
2297done
2298
2299if test -r "$cache_file"; then
47935194
NN
2300 # Some versions of bash will fail to source /dev/null (special
2301 # files actually), so we avoid doing that.
2302 if test -f "$cache_file"; then
5213506e
RW
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2304$as_echo "$as_me: loading cache $cache_file" >&6;}
47935194 2305 case $cache_file in
5213506e
RW
2306 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2307 *) . "./$cache_file";;
47935194
NN
2308 esac
2309 fi
1530be84 2310else
5213506e
RW
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2312$as_echo "$as_me: creating cache $cache_file" >&6;}
47935194
NN
2313 >$cache_file
2314fi
2315
2316# Check that the precious variables saved in the cache have kept the same
2317# value.
2318ac_cache_corrupted=false
5213506e 2319for ac_var in $ac_precious_vars; do
47935194
NN
2320 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2321 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2322 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2323 eval ac_new_val=\$ac_env_${ac_var}_value
47935194
NN
2324 case $ac_old_set,$ac_new_set in
2325 set,)
5213506e
RW
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2327$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
47935194
NN
2328 ac_cache_corrupted=: ;;
2329 ,set)
5213506e
RW
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2331$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
47935194
NN
2332 ac_cache_corrupted=: ;;
2333 ,);;
2334 *)
2335 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2336 # differences in whitespace do not lead to failure.
2337 ac_old_val_w=`echo x $ac_old_val`
2338 ac_new_val_w=`echo x $ac_new_val`
2339 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2341$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2342 ac_cache_corrupted=:
2343 else
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2345$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2346 eval $ac_var=\$ac_old_val
2347 fi
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2349$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2351$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
47935194
NN
2352 fi;;
2353 esac
2354 # Pass precious variables to config.status.
2355 if test "$ac_new_set" = set; then
2356 case $ac_new_val in
5213506e 2357 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
47935194
NN
2358 *) ac_arg=$ac_var=$ac_new_val ;;
2359 esac
2360 case " $ac_configure_args " in
2361 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2362 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
47935194
NN
2363 esac
2364 fi
2365done
2366if $ac_cache_corrupted; then
5213506e
RW
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2368$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2370$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2371 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1530be84 2372fi
5213506e
RW
2373## -------------------- ##
2374## Main body of script. ##
2375## -------------------- ##
1530be84
TT
2376
2377ac_ext=c
1530be84 2378ac_cpp='$CPP $CPPFLAGS'
47935194
NN
2379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2381ac_compiler_gnu=$ac_cv_c_compiler_gnu
2382
2383
2384
1530be84
TT
2385
2386
2387
6706f116
AO
2388# This works around the fact that libtool configuration may change LD
2389# for this particular configuration, but some shells, instead of
2390# keeping the changes in LD private, export them just because LD is
2391# exported.
2392ORIGINAL_LD_FOR_MULTILIBS=$LD
2393
bf9a420e 2394# Default to --enable-multilib
5213506e
RW
2395# Check whether --enable-multilib was given.
2396if test "${enable_multilib+set}" = set; then :
2397 enableval=$enable_multilib; case "$enableval" in
b1891e51
NN
2398 yes) multilib=yes ;;
2399 no) multilib=no ;;
5213506e 2400 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
b1891e51
NN
2401 esac
2402else
2403 multilib=yes
5213506e
RW
2404fi
2405
b1891e51 2406
bf9a420e
PB
2407# We may get other options which we leave undocumented:
2408# --with-target-subdir, --with-multisrctop, --with-multisubdir
2409# See config-ml.in if you want the gory details.
2410
2411if test "$srcdir" = "."; then
2412 if test "$with_target_subdir" != "."; then
2413 multi_basedir="$srcdir/$with_multisrctop../.."
b1891e51 2414 else
bf9a420e 2415 multi_basedir="$srcdir/$with_multisrctop.."
b1891e51
NN
2416 fi
2417else
bf9a420e 2418 multi_basedir="$srcdir/.."
b1891e51
NN
2419fi
2420
b1891e51 2421
8a489465
JH
2422# Even if the default multilib is not a cross compilation,
2423# it may be that some of the other multilibs are.
2424if test $cross_compiling = no && test $multilib = yes \
2425 && test "x${with_multisubdir}" != x ; then
2426 cross_compiling=maybe
2427fi
2428
5213506e 2429ac_config_commands="$ac_config_commands default-1"
bf9a420e
PB
2430
2431
2432ac_aux_dir=
5213506e
RW
2433for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2434 for ac_t in install-sh install.sh shtool; do
2435 if test -f "$ac_dir/$ac_t"; then
2436 ac_aux_dir=$ac_dir
2437 ac_install_sh="$ac_aux_dir/$ac_t -c"
2438 break 2
2439 fi
2440 done
b1891e51
NN
2441done
2442if test -z "$ac_aux_dir"; then
5213506e 2443 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
b1891e51 2444fi
5213506e
RW
2445
2446# These three variables are undocumented and unsupported,
2447# and are intended to be withdrawn in a future Autoconf release.
2448# They can cause serious problems if a builder's source tree is in a directory
2449# whose full name contains unusual characters.
2450ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2451ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2452ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2453
b1891e51 2454
b1891e51 2455# Make sure we can run config.sub.
5213506e
RW
2456$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2457 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2458
2459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2460$as_echo_n "checking build system type... " >&6; }
2461if test "${ac_cv_build+set}" = set; then :
2462 $as_echo_n "(cached) " >&6
2463else
2464 ac_build_alias=$build_alias
2465test "x$ac_build_alias" = x &&
2466 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2467test "x$ac_build_alias" = x &&
2468 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2469ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2470 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2471
2472fi
2473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2474$as_echo "$ac_cv_build" >&6; }
2475case $ac_cv_build in
2476*-*-*) ;;
2477*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2478esac
47935194 2479build=$ac_cv_build
5213506e
RW
2480ac_save_IFS=$IFS; IFS='-'
2481set x $ac_cv_build
2482shift
2483build_cpu=$1
2484build_vendor=$2
2485shift; shift
2486# Remember, the first character of IFS is used to create $*,
2487# except with old shells:
2488build_os=$*
2489IFS=$ac_save_IFS
2490case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
47935194
NN
2491
2492
5213506e
RW
2493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2494$as_echo_n "checking host system type... " >&6; }
2495if test "${ac_cv_host+set}" = set; then :
2496 $as_echo_n "(cached) " >&6
2497else
2498 if test "x$host_alias" = x; then
2499 ac_cv_host=$ac_cv_build
47935194 2500else
5213506e
RW
2501 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2502 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2503fi
47935194
NN
2504
2505fi
5213506e
RW
2506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2507$as_echo "$ac_cv_host" >&6; }
2508case $ac_cv_host in
2509*-*-*) ;;
2510*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2511esac
47935194 2512host=$ac_cv_host
5213506e
RW
2513ac_save_IFS=$IFS; IFS='-'
2514set x $ac_cv_host
2515shift
2516host_cpu=$1
2517host_vendor=$2
2518shift; shift
2519# Remember, the first character of IFS is used to create $*,
2520# except with old shells:
2521host_os=$*
2522IFS=$ac_save_IFS
2523case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
47935194
NN
2524
2525
5213506e
RW
2526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2527$as_echo_n "checking target system type... " >&6; }
2528if test "${ac_cv_target+set}" = set; then :
2529 $as_echo_n "(cached) " >&6
47935194 2530else
5213506e
RW
2531 if test "x$target_alias" = x; then
2532 ac_cv_target=$ac_cv_host
2533else
2534 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2535 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2536fi
b1891e51 2537
47935194 2538fi
5213506e
RW
2539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2540$as_echo "$ac_cv_target" >&6; }
2541case $ac_cv_target in
2542*-*-*) ;;
2543*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2544esac
47935194 2545target=$ac_cv_target
5213506e
RW
2546ac_save_IFS=$IFS; IFS='-'
2547set x $ac_cv_target
2548shift
2549target_cpu=$1
2550target_vendor=$2
2551shift; shift
2552# Remember, the first character of IFS is used to create $*,
2553# except with old shells:
2554target_os=$*
2555IFS=$ac_save_IFS
2556case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
b1891e51 2557
b1891e51 2558
47935194
NN
2559# The aliases save the names the user supplied, while $host etc.
2560# will get canonicalized.
2561test -n "$target_alias" &&
b1891e51
NN
2562 test "$program_prefix$program_suffix$program_transform_name" = \
2563 NONENONEs,x,x, &&
2564 program_prefix=${target_alias}-
2565
d38d6003 2566# Get the 'noncanonical' system names.
d38d6003
NN
2567 case ${build_alias} in
2568 "") build_noncanonical=${build} ;;
2569 *) build_noncanonical=${build_alias} ;;
2570esac
2571
2572 case ${host_alias} in
2573 "") host_noncanonical=${build_noncanonical} ;;
2574 *) host_noncanonical=${host_alias} ;;
2575esac
2576
2577 case ${target_alias} in
2578 "") target_noncanonical=${host_noncanonical} ;;
2579 *) target_noncanonical=${target_alias} ;;
2580esac
2581
2582
13b040f1
NN
2583
2584
b1891e51
NN
2585# This works around an automake problem.
2586mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
2587
2588
5213506e
RW
2589am__api_version='1.11'
2590
1530be84
TT
2591# Find a good install program. We prefer a C program (faster),
2592# so one script is as good as another. But avoid the broken or
2593# incompatible versions:
2594# SysV /etc/install, /usr/sbin/install
2595# SunOS /usr/etc/install
2596# IRIX /sbin/install
2597# AIX /bin/install
47935194 2598# AmigaOS /C/install, which installs bootblocks on floppy discs
1530be84
TT
2599# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2600# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2601# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8ab705be 2602# OS/2's system install, which has a completely different semantic
1530be84 2603# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2604# Reject install programs that cannot install multiple files.
5213506e
RW
2605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2606$as_echo_n "checking for a BSD-compatible install... " >&6; }
1530be84 2607if test -z "$INSTALL"; then
5213506e
RW
2608if test "${ac_cv_path_install+set}" = set; then :
2609 $as_echo_n "(cached) " >&6
1530be84 2610else
47935194
NN
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612for as_dir in $PATH
2613do
2614 IFS=$as_save_IFS
2615 test -z "$as_dir" && as_dir=.
5213506e
RW
2616 # Account for people who put trailing slashes in PATH elements.
2617case $as_dir/ in #((
2618 ./ | .// | /[cC]/* | \
47935194 2619 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2620 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
47935194
NN
2621 /usr/ucb/* ) ;;
2622 *)
2623 # OSF1 and SCO ODT 3.0 have their own names for install.
2624 # Don't use installbsd from OSF since it installs stuff as root
2625 # by default.
2626 for ac_prog in ginstall scoinst install; do
2627 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2628 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
8ab705be
KC
2629 if test $ac_prog = install &&
2630 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2631 # AIX install. It has an incompatible calling convention.
2632 :
2633 elif test $ac_prog = install &&
2634 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2635 # program-specific install script used by HP pwplus--don't use.
2636 :
2637 else
38d24731
RW
2638 rm -rf conftest.one conftest.two conftest.dir
2639 echo one > conftest.one
2640 echo two > conftest.two
2641 mkdir conftest.dir
2642 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2643 test -s conftest.one && test -s conftest.two &&
2644 test -s conftest.dir/conftest.one &&
2645 test -s conftest.dir/conftest.two
2646 then
2647 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2648 break 3
2649 fi
8ab705be
KC
2650 fi
2651 fi
1530be84 2652 done
47935194
NN
2653 done
2654 ;;
2655esac
5213506e
RW
2656
2657 done
2658IFS=$as_save_IFS
47935194 2659
38d24731 2660rm -rf conftest.one conftest.two conftest.dir
1530be84
TT
2661
2662fi
2663 if test "${ac_cv_path_install+set}" = set; then
47935194 2664 INSTALL=$ac_cv_path_install
1530be84 2665 else
38d24731
RW
2666 # As a last resort, use the slow shell script. Don't cache a
2667 # value for INSTALL within a source directory, because that will
1530be84 2668 # break other packages using the cache if that directory is
38d24731 2669 # removed, or if the value is a relative name.
47935194 2670 INSTALL=$ac_install_sh
1530be84
TT
2671 fi
2672fi
5213506e
RW
2673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2674$as_echo "$INSTALL" >&6; }
1530be84
TT
2675
2676# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2677# It thinks the first close brace ends the variable substitution.
2678test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2679
47935194 2680test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1530be84
TT
2681
2682test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2683
5213506e
RW
2684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2685$as_echo_n "checking whether build environment is sane... " >&6; }
1530be84
TT
2686# Just in case
2687sleep 1
bf9a420e 2688echo timestamp > conftest.file
5213506e
RW
2689# Reject unsafe characters in $srcdir or the absolute working directory
2690# name. Accept space and tab only in the latter.
2691am_lf='
2692'
2693case `pwd` in
2694 *[\\\"\#\$\&\'\`$am_lf]*)
2695 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2696esac
2697case $srcdir in
2698 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2699 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2700esac
2701
1530be84
TT
2702# Do `set' in a subshell so we don't clobber the current shell's
2703# arguments. Must try -L first in case configure is actually a
2704# symlink; some systems play weird games with the mod time of symlinks
2705# (eg FreeBSD returns the mod time of the symlink's containing
2706# directory).
2707if (
5213506e 2708 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1530be84
TT
2709 if test "$*" = "X"; then
2710 # -L didn't work.
5213506e 2711 set X `ls -t "$srcdir/configure" conftest.file`
1530be84 2712 fi
bf9a420e
PB
2713 rm -f conftest.file
2714 if test "$*" != "X $srcdir/configure conftest.file" \
2715 && test "$*" != "X conftest.file $srcdir/configure"; then
1530be84
TT
2716
2717 # If neither matched, then we have a broken ls. This can happen
2718 # if, for instance, CONFIG_SHELL is bash and it inherits a
2719 # broken ls alias from the environment. This has actually
2720 # happened. Such a system could not be considered "sane".
5213506e
RW
2721 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2722alias in your environment" "$LINENO" 5
1530be84
TT
2723 fi
2724
bf9a420e 2725 test "$2" = conftest.file
1530be84
TT
2726 )
2727then
2728 # Ok.
2729 :
2730else
5213506e
RW
2731 as_fn_error "newly created file is older than distributed files!
2732Check your system clock" "$LINENO" 5
1530be84 2733fi
5213506e
RW
2734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2735$as_echo "yes" >&6; }
1530be84 2736test "$program_prefix" != NONE &&
5213506e 2737 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1530be84
TT
2738# Use a double $ so make ignores it.
2739test "$program_suffix" != NONE &&
5213506e
RW
2740 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2741# Double any \ or $.
47935194 2742# By default was `s,x,x', remove it if useless.
5213506e
RW
2743ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2744program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
47935194 2745
bf9a420e
PB
2746# expand $ac_aux_dir to an absolute path
2747am_aux_dir=`cd $ac_aux_dir && pwd`
2748
5213506e
RW
2749if test x"${MISSING+set}" != xset; then
2750 case $am_aux_dir in
2751 *\ * | *\ *)
2752 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2753 *)
2754 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2755 esac
2756fi
bf9a420e
PB
2757# Use eval to expand $SHELL
2758if eval "$MISSING --run true"; then
2759 am_missing_run="$MISSING --run "
2760else
2761 am_missing_run=
5213506e
RW
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2763$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2764fi
2765
2766if test x"${install_sh}" != xset; then
2767 case $am_aux_dir in
2768 *\ * | *\ *)
2769 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2770 *)
2771 install_sh="\${SHELL} $am_aux_dir/install-sh"
2772 esac
2773fi
2774
2775# Installed binaries are usually stripped using `strip' when the user
2776# run `make install-strip'. However `strip' might not be the right
2777# tool to use in cross-compilation environments, therefore Automake
2778# will honor the `STRIP' environment variable to overrule this program.
2779if test "$cross_compiling" != no; then
2780 if test -n "$ac_tool_prefix"; then
2781 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2782set dummy ${ac_tool_prefix}strip; ac_word=$2
2783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2784$as_echo_n "checking for $ac_word... " >&6; }
2785if test "${ac_cv_prog_STRIP+set}" = set; then :
2786 $as_echo_n "(cached) " >&6
2787else
2788 if test -n "$STRIP"; then
2789 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2790else
2791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792for as_dir in $PATH
2793do
2794 IFS=$as_save_IFS
2795 test -z "$as_dir" && as_dir=.
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2798 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2800 break 2
2801 fi
2802done
2803 done
2804IFS=$as_save_IFS
2805
2806fi
2807fi
2808STRIP=$ac_cv_prog_STRIP
2809if test -n "$STRIP"; then
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2811$as_echo "$STRIP" >&6; }
2812else
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2814$as_echo "no" >&6; }
2815fi
2816
2817
2818fi
2819if test -z "$ac_cv_prog_STRIP"; then
2820 ac_ct_STRIP=$STRIP
2821 # Extract the first word of "strip", so it can be a program name with args.
2822set dummy strip; ac_word=$2
2823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2824$as_echo_n "checking for $ac_word... " >&6; }
2825if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2826 $as_echo_n "(cached) " >&6
2827else
2828 if test -n "$ac_ct_STRIP"; then
2829 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2830else
2831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832for as_dir in $PATH
2833do
2834 IFS=$as_save_IFS
2835 test -z "$as_dir" && as_dir=.
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2838 ac_cv_prog_ac_ct_STRIP="strip"
2839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 break 2
2841 fi
2842done
2843 done
2844IFS=$as_save_IFS
2845
2846fi
2847fi
2848ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2849if test -n "$ac_ct_STRIP"; then
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2851$as_echo "$ac_ct_STRIP" >&6; }
2852else
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854$as_echo "no" >&6; }
2855fi
2856
2857 if test "x$ac_ct_STRIP" = x; then
2858 STRIP=":"
2859 else
2860 case $cross_compiling:$ac_tool_warned in
2861yes:)
2862{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2863$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2864ac_tool_warned=yes ;;
2865esac
2866 STRIP=$ac_ct_STRIP
2867 fi
2868else
2869 STRIP="$ac_cv_prog_STRIP"
2870fi
2871
2872fi
2873INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2874
2875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2876$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2877if test -z "$MKDIR_P"; then
2878 if test "${ac_cv_path_mkdir+set}" = set; then :
2879 $as_echo_n "(cached) " >&6
2880else
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2883do
2884 IFS=$as_save_IFS
2885 test -z "$as_dir" && as_dir=.
2886 for ac_prog in mkdir gmkdir; do
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2889 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2890 'mkdir (GNU coreutils) '* | \
2891 'mkdir (coreutils) '* | \
2892 'mkdir (fileutils) '4.1*)
2893 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2894 break 3;;
2895 esac
2896 done
2897 done
bf9a420e 2898 done
5213506e
RW
2899IFS=$as_save_IFS
2900
2901fi
2902
2903 if test "${ac_cv_path_mkdir+set}" = set; then
2904 MKDIR_P="$ac_cv_path_mkdir -p"
bf9a420e 2905 else
5213506e
RW
2906 # As a last resort, use the slow shell script. Don't cache a
2907 # value for MKDIR_P within a source directory, because that will
2908 # break other packages using the cache if that directory is
2909 # removed, or if the value is a relative name.
2910 test -d ./--version && rmdir ./--version
2911 MKDIR_P="$ac_install_sh -d"
bf9a420e
PB
2912 fi
2913fi
5213506e
RW
2914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2915$as_echo "$MKDIR_P" >&6; }
2916
2917mkdir_p="$MKDIR_P"
2918case $mkdir_p in
2919 [\\/$]* | ?:[\\/]*) ;;
2920 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2921esac
bf9a420e
PB
2922
2923for ac_prog in gawk mawk nawk awk
2924do
2925 # Extract the first word of "$ac_prog", so it can be a program name with args.
2926set dummy $ac_prog; ac_word=$2
5213506e
RW
2927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2928$as_echo_n "checking for $ac_word... " >&6; }
2929if test "${ac_cv_prog_AWK+set}" = set; then :
2930 $as_echo_n "(cached) " >&6
bf9a420e
PB
2931else
2932 if test -n "$AWK"; then
2933 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2934else
2935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936for as_dir in $PATH
2937do
2938 IFS=$as_save_IFS
2939 test -z "$as_dir" && as_dir=.
5213506e
RW
2940 for ac_exec_ext in '' $ac_executable_extensions; do
2941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9a420e 2942 ac_cv_prog_AWK="$ac_prog"
5213506e 2943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9a420e
PB
2944 break 2
2945 fi
2946done
5213506e
RW
2947 done
2948IFS=$as_save_IFS
bf9a420e
PB
2949
2950fi
2951fi
2952AWK=$ac_cv_prog_AWK
2953if test -n "$AWK"; then
5213506e
RW
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2955$as_echo "$AWK" >&6; }
bf9a420e 2956else
5213506e
RW
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2958$as_echo "no" >&6; }
bf9a420e
PB
2959fi
2960
5213506e 2961
bf9a420e
PB
2962 test -n "$AWK" && break
2963done
2964
5213506e
RW
2965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2966$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2967set x ${MAKE-make}
2968ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2969if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2970 $as_echo_n "(cached) " >&6
1530be84 2971else
47935194 2972 cat >conftest.make <<\_ACEOF
5213506e 2973SHELL = /bin/sh
1530be84 2974all:
5213506e 2975 @echo '@@@%%%=$(MAKE)=@@@%%%'
47935194 2976_ACEOF
1530be84 2977# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5213506e
RW
2978case `${MAKE-make} -f conftest.make 2>/dev/null` in
2979 *@@@%%%=?*=@@@%%%*)
2980 eval ac_cv_prog_make_${ac_make}_set=yes;;
2981 *)
2982 eval ac_cv_prog_make_${ac_make}_set=no;;
2983esac
47935194 2984rm -f conftest.make
1530be84 2985fi
5213506e
RW
2986if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2988$as_echo "yes" >&6; }
1530be84
TT
2989 SET_MAKE=
2990else
5213506e
RW
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2992$as_echo "no" >&6; }
1530be84
TT
2993 SET_MAKE="MAKE=${MAKE-make}"
2994fi
2995
bf9a420e
PB
2996rm -rf .tst 2>/dev/null
2997mkdir .tst 2>/dev/null
2998if test -d .tst; then
2999 am__leading_dot=.
3000else
3001 am__leading_dot=_
3002fi
3003rmdir .tst 2>/dev/null
1530be84 3004
5213506e
RW
3005if test "`cd $srcdir && pwd`" != "`pwd`"; then
3006 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3007 # is not polluted with repeated "-I."
3008 am__isrc=' -I$(srcdir)'
3009 # test to see if srcdir already configured
3010 if test -f $srcdir/config.status; then
3011 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3012 fi
1530be84
TT
3013fi
3014
bf9a420e
PB
3015# test whether we have cygpath
3016if test -z "$CYGPATH_W"; then
3017 if (cygpath --version) >/dev/null 2>/dev/null; then
3018 CYGPATH_W='cygpath -w'
3019 else
3020 CYGPATH_W=echo
3021 fi
3022fi
3023
3024
3025# Define the identity of the package.
3026 PACKAGE=gc
54f28c21 3027 VERSION=6.6
bf9a420e
PB
3028
3029
3030# Some tools Automake needs.
3031
3032ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3033
1530be84 3034
bf9a420e 3035AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1530be84 3036
bf9a420e
PB
3037
3038AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3039
3040
3041AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3042
3043
3044MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3045
bf9a420e
PB
3046# We need awk for the "check" target. The system "awk" is bad on
3047# some platforms.
4109fe85
BM
3048# Always define AMTAR for backward compatibility.
3049
3050AMTAR=${AMTAR-"${am_missing_run}tar"}
3051
3052am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3053
3054
bf9a420e 3055
1530be84
TT
3056
3057
3058
47935194 3059# The autoconf 2.5x version of the no-executables hack.
1530be84
TT
3060
3061
e22db4bf
NN
3062# Yak. We must force CC and CXX to /not/ be precious variables; otherwise
3063# the wrong, non-multilib-adjusted value will be used in multilibs.
3064# As a side effect, we have to subst CFLAGS and CXXFLAGS ourselves.
3065
3066
3067
47935194
NN
3068ac_ext=c
3069ac_cpp='$CPP $CPPFLAGS'
3070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3072ac_compiler_gnu=$ac_cv_c_compiler_gnu
3073if test -n "$ac_tool_prefix"; then
3074 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3075set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077$as_echo_n "checking for $ac_word... " >&6; }
3078if test "${ac_cv_prog_CC+set}" = set; then :
3079 $as_echo_n "(cached) " >&6
47935194
NN
3080else
3081 if test -n "$CC"; then
3082 ac_cv_prog_CC="$CC" # Let the user override the test.
3083else
3084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085for as_dir in $PATH
3086do
3087 IFS=$as_save_IFS
3088 test -z "$as_dir" && as_dir=.
5213506e
RW
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47935194 3091 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47935194
NN
3093 break 2
3094 fi
3095done
5213506e
RW
3096 done
3097IFS=$as_save_IFS
1530be84 3098
47935194
NN
3099fi
3100fi
3101CC=$ac_cv_prog_CC
3102if test -n "$CC"; then
5213506e
RW
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3104$as_echo "$CC" >&6; }
47935194 3105else
5213506e
RW
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107$as_echo "no" >&6; }
47935194 3108fi
54ce7452 3109
5213506e 3110
47935194
NN
3111fi
3112if test -z "$ac_cv_prog_CC"; then
3113 ac_ct_CC=$CC
3114 # Extract the first word of "gcc", so it can be a program name with args.
1530be84 3115set dummy gcc; ac_word=$2
5213506e
RW
3116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3117$as_echo_n "checking for $ac_word... " >&6; }
3118if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3119 $as_echo_n "(cached) " >&6
47935194
NN
3120else
3121 if test -n "$ac_ct_CC"; then
3122 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3123else
3124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125for as_dir in $PATH
3126do
3127 IFS=$as_save_IFS
3128 test -z "$as_dir" && as_dir=.
5213506e
RW
3129 for ac_exec_ext in '' $ac_executable_extensions; do
3130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47935194 3131 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47935194
NN
3133 break 2
3134 fi
3135done
5213506e
RW
3136 done
3137IFS=$as_save_IFS
47935194
NN
3138
3139fi
3140fi
3141ac_ct_CC=$ac_cv_prog_ac_ct_CC
3142if test -n "$ac_ct_CC"; then
5213506e
RW
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3144$as_echo "$ac_ct_CC" >&6; }
47935194 3145else
5213506e
RW
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147$as_echo "no" >&6; }
47935194
NN
3148fi
3149
5213506e
RW
3150 if test "x$ac_ct_CC" = x; then
3151 CC=""
3152 else
3153 case $cross_compiling:$ac_tool_warned in
3154yes:)
3155{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3156$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3157ac_tool_warned=yes ;;
3158esac
3159 CC=$ac_ct_CC
3160 fi
47935194
NN
3161else
3162 CC="$ac_cv_prog_CC"
3163fi
3164
3165if test -z "$CC"; then
5213506e
RW
3166 if test -n "$ac_tool_prefix"; then
3167 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
47935194 3168set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3170$as_echo_n "checking for $ac_word... " >&6; }
3171if test "${ac_cv_prog_CC+set}" = set; then :
3172 $as_echo_n "(cached) " >&6
1530be84
TT
3173else
3174 if test -n "$CC"; then
3175 ac_cv_prog_CC="$CC" # Let the user override the test.
3176else
47935194
NN
3177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178for as_dir in $PATH
3179do
3180 IFS=$as_save_IFS
3181 test -z "$as_dir" && as_dir=.
5213506e
RW
3182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47935194 3184 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47935194
NN
3186 break 2
3187 fi
3188done
5213506e
RW
3189 done
3190IFS=$as_save_IFS
47935194 3191
1530be84
TT
3192fi
3193fi
47935194 3194CC=$ac_cv_prog_CC
1530be84 3195if test -n "$CC"; then
5213506e
RW
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3197$as_echo "$CC" >&6; }
47935194 3198else
5213506e
RW
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200$as_echo "no" >&6; }
47935194
NN
3201fi
3202
47935194 3203
5213506e 3204 fi
47935194 3205fi
1530be84
TT
3206if test -z "$CC"; then
3207 # Extract the first word of "cc", so it can be a program name with args.
3208set dummy cc; ac_word=$2
5213506e
RW
3209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210$as_echo_n "checking for $ac_word... " >&6; }
3211if test "${ac_cv_prog_CC+set}" = set; then :
3212 $as_echo_n "(cached) " >&6
1530be84
TT
3213else
3214 if test -n "$CC"; then
3215 ac_cv_prog_CC="$CC" # Let the user override the test.
3216else
1530be84 3217 ac_prog_rejected=no
47935194
NN
3218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219for as_dir in $PATH
3220do
3221 IFS=$as_save_IFS
3222 test -z "$as_dir" && as_dir=.
5213506e
RW
3223 for ac_exec_ext in '' $ac_executable_extensions; do
3224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47935194
NN
3225 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3226 ac_prog_rejected=yes
3227 continue
3228 fi
3229 ac_cv_prog_CC="cc"
5213506e 3230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47935194
NN
3231 break 2
3232 fi
3233done
5213506e
RW
3234 done
3235IFS=$as_save_IFS
47935194 3236
1530be84
TT
3237if test $ac_prog_rejected = yes; then
3238 # We found a bogon in the path, so make sure we never use it.
3239 set dummy $ac_cv_prog_CC
3240 shift
47935194 3241 if test $# != 0; then
1530be84
TT
3242 # We chose a different compiler from the bogus one.
3243 # However, it has the same basename, so the bogon will be chosen
3244 # first if we set CC to just the basename; use the full file name.
3245 shift
47935194 3246 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1530be84
TT
3247 fi
3248fi
3249fi
3250fi
47935194 3251CC=$ac_cv_prog_CC
1530be84 3252if test -n "$CC"; then
5213506e
RW
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3254$as_echo "$CC" >&6; }
1530be84 3255else
5213506e
RW
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257$as_echo "no" >&6; }
1530be84
TT
3258fi
3259
5213506e 3260
1530be84 3261fi
47935194
NN
3262if test -z "$CC"; then
3263 if test -n "$ac_tool_prefix"; then
5213506e 3264 for ac_prog in cl.exe
47935194
NN
3265 do
3266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3267set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
3268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269$as_echo_n "checking for $ac_word... " >&6; }
3270if test "${ac_cv_prog_CC+set}" = set; then :
3271 $as_echo_n "(cached) " >&6
1530be84 3272else
47935194
NN
3273 if test -n "$CC"; then
3274 ac_cv_prog_CC="$CC" # Let the user override the test.
1530be84 3275else
47935194
NN
3276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277for as_dir in $PATH
3278do
3279 IFS=$as_save_IFS
3280 test -z "$as_dir" && as_dir=.
5213506e
RW
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47935194 3283 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 3284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47935194
NN
3285 break 2
3286 fi
3287done
5213506e
RW
3288 done
3289IFS=$as_save_IFS
1530be84 3290
1530be84 3291fi
1530be84 3292fi
47935194
NN
3293CC=$ac_cv_prog_CC
3294if test -n "$CC"; then
5213506e
RW
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3296$as_echo "$CC" >&6; }
1530be84 3297else
5213506e
RW
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299$as_echo "no" >&6; }
1530be84
TT
3300fi
3301
5213506e 3302
47935194
NN
3303 test -n "$CC" && break
3304 done
3305fi
3306if test -z "$CC"; then
3307 ac_ct_CC=$CC
5213506e 3308 for ac_prog in cl.exe
1530be84 3309do
47935194 3310 # Extract the first word of "$ac_prog", so it can be a program name with args.
1530be84 3311set dummy $ac_prog; ac_word=$2
5213506e
RW
3312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3313$as_echo_n "checking for $ac_word... " >&6; }
3314if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3315 $as_echo_n "(cached) " >&6
1530be84 3316else
47935194
NN
3317 if test -n "$ac_ct_CC"; then
3318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1530be84 3319else
47935194
NN
3320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321for as_dir in $PATH
3322do
3323 IFS=$as_save_IFS
3324 test -z "$as_dir" && as_dir=.
5213506e
RW
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47935194 3327 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 3328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47935194
NN
3329 break 2
3330 fi
3331done
5213506e
RW
3332 done
3333IFS=$as_save_IFS
47935194 3334
1530be84
TT
3335fi
3336fi
47935194
NN
3337ac_ct_CC=$ac_cv_prog_ac_ct_CC
3338if test -n "$ac_ct_CC"; then
5213506e
RW
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3340$as_echo "$ac_ct_CC" >&6; }
1530be84 3341else
5213506e
RW
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343$as_echo "no" >&6; }
1530be84
TT
3344fi
3345
5213506e 3346
47935194 3347 test -n "$ac_ct_CC" && break
1530be84 3348done
1530be84 3349
5213506e
RW
3350 if test "x$ac_ct_CC" = x; then
3351 CC=""
3352 else
3353 case $cross_compiling:$ac_tool_warned in
3354yes:)
3355{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3357ac_tool_warned=yes ;;
3358esac
3359 CC=$ac_ct_CC
3360 fi
47935194
NN
3361fi
3362
3363fi
3364
3365
5213506e
RW
3366test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3367$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3368as_fn_error "no acceptable C compiler found in \$PATH
3369See \`config.log' for more details." "$LINENO" 5; }
47935194
NN
3370
3371# Provide some information about the compiler.
5213506e
RW
3372$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3373set X $ac_compile
3374ac_compiler=$2
3375for ac_option in --version -v -V -qversion; do
3376 { { ac_try="$ac_compiler $ac_option >&5"
3377case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3380esac
3381eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382$as_echo "$ac_try_echo"; } >&5
3383 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
47935194 3384 ac_status=$?
5213506e
RW
3385 if test -s conftest.err; then
3386 sed '10a\
3387... rest of stderr output deleted ...
3388 10q' conftest.err >conftest.er1
3389 cat conftest.er1 >&5
3390 rm -f conftest.er1 conftest.err
3391 fi
3392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393 test $ac_status = 0; }
3394done
47935194 3395
5213506e 3396cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47935194
NN
3397/* end confdefs.h. */
3398
3399int
3400main ()
3401{
3402
3403 ;
3404 return 0;
3405}
3406_ACEOF
3407# FIXME: Cleanup?
5213506e 3408if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
47935194
NN
3409 (eval $ac_link) 2>&5
3410 ac_status=$?
5213506e
RW
3411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412 test $ac_status = 0; }; then :
47935194 3413 gcc_no_link=no
1530be84 3414else
47935194 3415 gcc_no_link=yes
1530be84 3416fi
47935194
NN
3417if test x$gcc_no_link = xyes; then
3418 # Setting cross_compile will disable run tests; it will
3419 # also disable AC_CHECK_FILE but that's generally
3420 # correct if we can't link.
3421 cross_compiling=yes
3422 EXEEXT=
1530be84 3423else
5213506e 3424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47935194
NN
3425/* end confdefs.h. */
3426
3427int
3428main ()
3429{
3430
3431 ;
3432 return 0;
3433}
3434_ACEOF
3435ac_clean_files_save=$ac_clean_files
5213506e 3436ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
47935194
NN
3437# Try to create an executable without -o first, disregard a.out.
3438# It will help us diagnose broken compilers, and finding out an intuition
3439# of exeext.
5213506e
RW
3440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3441$as_echo_n "checking for C compiler default output file name... " >&6; }
3442ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3443
3444# The possible output files:
3445ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3446
3447ac_rmfiles=
3448for ac_file in $ac_files
3449do
3450 case $ac_file in
3451 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3452 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3453 esac
3454done
3455rm -f $ac_rmfiles
3456
3457if { { ac_try="$ac_link_default"
3458case "(($ac_try" in
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3461esac
3462eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3463$as_echo "$ac_try_echo"; } >&5
3464 (eval "$ac_link_default") 2>&5
47935194 3465 ac_status=$?
5213506e
RW
3466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3467 test $ac_status = 0; }; then :
3468 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3469# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3470# in a Makefile. We should not override ac_cv_exeext if it was cached,
3471# so that the user can short-circuit this test for compilers unknown to
3472# Autoconf.
3473for ac_file in $ac_files ''
47935194
NN
3474do
3475 test -f "$ac_file" || continue
3476 case $ac_file in
5213506e 3477 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8ab705be 3478 ;;
47935194 3479 [ab].out )
8ab705be
KC
3480 # We found the default executable, but exeext='' is most
3481 # certainly right.
3482 break;;
47935194 3483 *.* )
5213506e
RW
3484 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3485 then :; else
3486 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3487 fi
3488 # We set ac_cv_exeext here because the later test for it is not
3489 # safe: cross compilers may not add the suffix if given an `-o'
3490 # argument, so we may need to know it at that point already.
3491 # Even if this section looks crufty: it has the advantage of
3492 # actually working.
8ab705be 3493 break;;
47935194 3494 * )
8ab705be 3495 break;;
47935194
NN
3496 esac
3497done
5213506e
RW
3498test "$ac_cv_exeext" = no && ac_cv_exeext=
3499
1530be84 3500else
5213506e
RW
3501 ac_file=''
3502fi
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3504$as_echo "$ac_file" >&6; }
3505if test -z "$ac_file"; then :
3506 $as_echo "$as_me: failed program was:" >&5
47935194
NN
3507sed 's/^/| /' conftest.$ac_ext >&5
3508
5213506e
RW
3509{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3510$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3511{ as_fn_set_status 77
3512as_fn_error "C compiler cannot create executables
3513See \`config.log' for more details." "$LINENO" 5; }; }
47935194 3514fi
47935194 3515ac_exeext=$ac_cv_exeext
47935194 3516
5213506e 3517# Check that the compiler produces executables we can run. If not, either
47935194 3518# the compiler is broken, or we cross compile.
5213506e
RW
3519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3520$as_echo_n "checking whether the C compiler works... " >&6; }
47935194
NN
3521# If not cross compiling, check that we can run a simple program.
3522if test "$cross_compiling" != yes; then
3523 if { ac_try='./$ac_file'
5213506e
RW
3524 { { case "(($ac_try" in
3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526 *) ac_try_echo=$ac_try;;
3527esac
3528eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3529$as_echo "$ac_try_echo"; } >&5
3530 (eval "$ac_try") 2>&5
47935194 3531 ac_status=$?
5213506e
RW
3532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3533 test $ac_status = 0; }; }; then
47935194 3534 cross_compiling=no
1530be84 3535 else
47935194
NN
3536 if test "$cross_compiling" = maybe; then
3537 cross_compiling=yes
3538 else
5213506e
RW
3539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3541as_fn_error "cannot run C compiled programs.
47935194 3542If you meant to cross compile, use \`--host'.
5213506e 3543See \`config.log' for more details." "$LINENO" 5; }
47935194 3544 fi
1530be84 3545 fi
47935194 3546fi
5213506e
RW
3547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3548$as_echo "yes" >&6; }
47935194 3549
5213506e 3550rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
47935194 3551ac_clean_files=$ac_clean_files_save
5213506e 3552# Check that the compiler produces executables we can run. If not, either
47935194 3553# the compiler is broken, or we cross compile.
5213506e
RW
3554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3555$as_echo_n "checking whether we are cross compiling... " >&6; }
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3557$as_echo "$cross_compiling" >&6; }
3558
3559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3560$as_echo_n "checking for suffix of executables... " >&6; }
3561if { { ac_try="$ac_link"
3562case "(($ac_try" in
3563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564 *) ac_try_echo=$ac_try;;
3565esac
3566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3567$as_echo "$ac_try_echo"; } >&5
3568 (eval "$ac_link") 2>&5
47935194 3569 ac_status=$?
5213506e
RW
3570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3571 test $ac_status = 0; }; then :
47935194
NN
3572 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3573# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3574# work properly (i.e., refer to `conftest.exe'), while it won't with
3575# `rm'.
3576for ac_file in conftest.exe conftest conftest.*; do
3577 test -f "$ac_file" || continue
3578 case $ac_file in
5213506e 3579 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
47935194 3580 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8ab705be 3581 break;;
47935194
NN
3582 * ) break;;
3583 esac
3584done
1530be84 3585else
5213506e
RW
3586 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3587$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3588as_fn_error "cannot compute suffix of executables: cannot compile and link
3589See \`config.log' for more details." "$LINENO" 5; }
1530be84 3590fi
47935194 3591rm -f conftest$ac_cv_exeext
5213506e
RW
3592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3593$as_echo "$ac_cv_exeext" >&6; }
1530be84 3594
47935194
NN
3595rm -f conftest.$ac_ext
3596EXEEXT=$ac_cv_exeext
3597ac_exeext=$EXEEXT
3598fi
5213506e
RW
3599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3600$as_echo_n "checking for suffix of object files... " >&6; }
3601if test "${ac_cv_objext+set}" = set; then :
3602 $as_echo_n "(cached) " >&6
1530be84 3603else
5213506e 3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47935194
NN
3605/* end confdefs.h. */
3606
3607int
3608main ()
3609{
3610
3611 ;
3612 return 0;
3613}
3614_ACEOF
3615rm -f conftest.o conftest.obj
5213506e
RW
3616if { { ac_try="$ac_compile"
3617case "(($ac_try" in
3618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3619 *) ac_try_echo=$ac_try;;
3620esac
3621eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3622$as_echo "$ac_try_echo"; } >&5
3623 (eval "$ac_compile") 2>&5
47935194 3624 ac_status=$?
5213506e
RW
3625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3626 test $ac_status = 0; }; then :
3627 for ac_file in conftest.o conftest.obj conftest.*; do
3628 test -f "$ac_file" || continue;
47935194 3629 case $ac_file in
5213506e 3630 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
47935194
NN
3631 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3632 break;;
3633 esac
3634done
1530be84 3635else
5213506e 3636 $as_echo "$as_me: failed program was:" >&5
47935194
NN
3637sed 's/^/| /' conftest.$ac_ext >&5
3638
5213506e
RW
3639{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3640$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3641as_fn_error "cannot compute suffix of object files: cannot compile
3642See \`config.log' for more details." "$LINENO" 5; }
1530be84 3643fi
47935194 3644rm -f conftest.$ac_cv_objext conftest.$ac_ext
1530be84 3645fi
5213506e
RW
3646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3647$as_echo "$ac_cv_objext" >&6; }
47935194
NN
3648OBJEXT=$ac_cv_objext
3649ac_objext=$OBJEXT
5213506e
RW
3650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3651$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3652if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3653 $as_echo_n "(cached) " >&6
1530be84 3654else
5213506e 3655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47935194
NN
3656/* end confdefs.h. */
3657
3658int
3659main ()
3660{
3661#ifndef __GNUC__
3662 choke me
3663#endif
1530be84 3664
47935194
NN
3665 ;
3666 return 0;
3667}
3668_ACEOF
5213506e 3669if ac_fn_c_try_compile "$LINENO"; then :
47935194
NN
3670 ac_compiler_gnu=yes
3671else
5213506e 3672 ac_compiler_gnu=no
47935194 3673fi
5213506e 3674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47935194 3675ac_cv_c_compiler_gnu=$ac_compiler_gnu
1530be84 3676
47935194 3677fi
5213506e
RW
3678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3679$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3680if test $ac_compiler_gnu = yes; then
3681 GCC=yes
3682else
3683 GCC=
3684fi
47935194
NN
3685ac_test_CFLAGS=${CFLAGS+set}
3686ac_save_CFLAGS=$CFLAGS
5213506e
RW
3687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3688$as_echo_n "checking whether $CC accepts -g... " >&6; }
3689if test "${ac_cv_prog_cc_g+set}" = set; then :
3690 $as_echo_n "(cached) " >&6
3691else
3692 ac_save_c_werror_flag=$ac_c_werror_flag
3693 ac_c_werror_flag=yes
3694 ac_cv_prog_cc_g=no
3695 CFLAGS="-g"
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47935194
NN
3697/* end confdefs.h. */
3698
3699int
3700main ()
3701{
3702
3703 ;
3704 return 0;
3705}
3706_ACEOF
5213506e 3707if ac_fn_c_try_compile "$LINENO"; then :
47935194 3708 ac_cv_prog_cc_g=yes
1530be84 3709else
5213506e
RW
3710 CFLAGS=""
3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712/* end confdefs.h. */
3713
3714int
3715main ()
3716{
3717
3718 ;
3719 return 0;
3720}
3721_ACEOF
3722if ac_fn_c_try_compile "$LINENO"; then :
3723
3724else
3725 ac_c_werror_flag=$ac_save_c_werror_flag
3726 CFLAGS="-g"
3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728/* end confdefs.h. */
3729
3730int
3731main ()
3732{
47935194 3733
5213506e
RW
3734 ;
3735 return 0;
3736}
3737_ACEOF
3738if ac_fn_c_try_compile "$LINENO"; then :
3739 ac_cv_prog_cc_g=yes
3740fi
3741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742fi
3743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47935194 3744fi
5213506e
RW
3745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746 ac_c_werror_flag=$ac_save_c_werror_flag
47935194 3747fi
5213506e
RW
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3749$as_echo "$ac_cv_prog_cc_g" >&6; }
47935194
NN
3750if test "$ac_test_CFLAGS" = set; then
3751 CFLAGS=$ac_save_CFLAGS
3752elif test $ac_cv_prog_cc_g = yes; then
3753 if test "$GCC" = yes; then
3754 CFLAGS="-g -O2"
3755 else
3756 CFLAGS="-g"
3757 fi
3758else
3759 if test "$GCC" = yes; then
3760 CFLAGS="-O2"
3761 else
3762 CFLAGS=
3763 fi
3764fi
5213506e
RW
3765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3766$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3767if test "${ac_cv_prog_cc_c89+set}" = set; then :
3768 $as_echo_n "(cached) " >&6
47935194 3769else
5213506e 3770 ac_cv_prog_cc_c89=no
47935194 3771ac_save_CC=$CC
5213506e 3772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47935194
NN
3773/* end confdefs.h. */
3774#include <stdarg.h>
3775#include <stdio.h>
3776#include <sys/types.h>
3777#include <sys/stat.h>
3778/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3779struct buf { int x; };
3780FILE * (*rcsopen) (struct buf *, struct stat *, int);
3781static char *e (p, i)
3782 char **p;
3783 int i;
3784{
3785 return p[i];
3786}
3787static char *f (char * (*g) (char **, int), char **p, ...)
3788{
3789 char *s;
3790 va_list v;
3791 va_start (v,p);
3792 s = g (p, va_arg (v,int));
3793 va_end (v);
3794 return s;
3795}
8ab705be
KC
3796
3797/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3798 function prototypes and stuff, but not '\xHH' hex character constants.
3799 These don't provoke an error unfortunately, instead are silently treated
5213506e 3800 as 'x'. The following induces an error, until -std is added to get
8ab705be
KC
3801 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3802 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 3803 that's true only with -std. */
8ab705be
KC
3804int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3805
5213506e
RW
3806/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3807 inside strings and character constants. */
3808#define FOO(x) 'x'
3809int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3810
47935194
NN
3811int test (int i, double x);
3812struct s1 {int (*f) (int a);};
3813struct s2 {int (*f) (double a);};
3814int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3815int argc;
3816char **argv;
3817int
3818main ()
3819{
3820return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3821 ;
3822 return 0;
3823}
3824_ACEOF
5213506e
RW
3825for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3826 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
47935194
NN
3827do
3828 CC="$ac_save_CC $ac_arg"
5213506e
RW
3829 if ac_fn_c_try_compile "$LINENO"; then :
3830 ac_cv_prog_cc_c89=$ac_arg
47935194 3831fi
5213506e
RW
3832rm -f core conftest.err conftest.$ac_objext
3833 test "x$ac_cv_prog_cc_c89" != "xno" && break
47935194 3834done
5213506e 3835rm -f conftest.$ac_ext
47935194
NN
3836CC=$ac_save_CC
3837
3838fi
5213506e
RW
3839# AC_CACHE_VAL
3840case "x$ac_cv_prog_cc_c89" in
3841 x)
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3843$as_echo "none needed" >&6; } ;;
3844 xno)
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3846$as_echo "unsupported" >&6; } ;;
47935194 3847 *)
5213506e
RW
3848 CC="$CC $ac_cv_prog_cc_c89"
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3850$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
47935194 3851esac
5213506e 3852if test "x$ac_cv_prog_cc_c89" != xno; then :
47935194 3853
47935194
NN
3854fi
3855
47935194
NN
3856ac_ext=c
3857ac_cpp='$CPP $CPPFLAGS'
3858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3860ac_compiler_gnu=$ac_cv_c_compiler_gnu
bf9a420e
PB
3861DEPDIR="${am__leading_dot}deps"
3862
5213506e 3863ac_config_commands="$ac_config_commands depfiles"
bf9a420e
PB
3864
3865
3866am_make=${MAKE-make}
3867cat > confinc << 'END'
3868am__doit:
5213506e 3869 @echo this is the am__doit target
bf9a420e
PB
3870.PHONY: am__doit
3871END
3872# If we don't find an include directive, just comment out the code.
5213506e
RW
3873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3874$as_echo_n "checking for style of include used by $am_make... " >&6; }
bf9a420e
PB
3875am__include="#"
3876am__quote=
3877_am_result=none
3878# First try GNU make style include.
3879echo "include confinc" > confmf
5213506e
RW
3880# Ignore all kinds of additional output from `make'.
3881case `$am_make -s -f confmf 2> /dev/null` in #(
3882*the\ am__doit\ target*)
3883 am__include=include
3884 am__quote=
3885 _am_result=GNU
3886 ;;
3887esac
bf9a420e
PB
3888# Now try BSD make style include.
3889if test "$am__include" = "#"; then
3890 echo '.include "confinc"' > confmf
5213506e
RW
3891 case `$am_make -s -f confmf 2> /dev/null` in #(
3892 *the\ am__doit\ target*)
3893 am__include=.include
3894 am__quote="\""
3895 _am_result=BSD
3896 ;;
3897 esac
bf9a420e
PB
3898fi
3899
3900
5213506e
RW
3901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3902$as_echo "$_am_result" >&6; }
bf9a420e
PB
3903rm -f confinc confmf
3904
5213506e
RW
3905# Check whether --enable-dependency-tracking was given.
3906if test "${enable_dependency_tracking+set}" = set; then :
3907 enableval=$enable_dependency_tracking;
3908fi
bf9a420e 3909
bf9a420e
PB
3910if test "x$enable_dependency_tracking" != xno; then
3911 am_depcomp="$ac_aux_dir/depcomp"
3912 AMDEPBACKSLASH='\'
3913fi
5213506e 3914 if test "x$enable_dependency_tracking" != xno; then
bf9a420e
PB
3915 AMDEP_TRUE=
3916 AMDEP_FALSE='#'
3917else
3918 AMDEP_TRUE='#'
3919 AMDEP_FALSE=
3920fi
3921
3922
3923
bf9a420e
PB
3924depcc="$CC" am_compiler_list=
3925
5213506e
RW
3926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3927$as_echo_n "checking dependency style of $depcc... " >&6; }
3928if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3929 $as_echo_n "(cached) " >&6
bf9a420e
PB
3930else
3931 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3932 # We make a subdir and do the tests there. Otherwise we can end up
3933 # making bogus files that we don't know about and never remove. For
3934 # instance it was reported that on HP-UX the gcc test will end up
3935 # making a dummy file named `D' -- because `-MD' means `put the output
3936 # in D'.
3937 mkdir conftest.dir
3938 # Copy depcomp to subdir because otherwise we won't find it if we're
3939 # using a relative directory.
3940 cp "$am_depcomp" conftest.dir
3941 cd conftest.dir
3942 # We will build objects and dependencies in a subdirectory because
3943 # it helps to detect inapplicable dependency modes. For instance
3944 # both Tru64's cc and ICC support -MD to output dependencies as a
3945 # side effect of compilation, but ICC will put the dependencies in
3946 # the current directory while Tru64 will put them in the object
3947 # directory.
3948 mkdir sub
3949
3950 am_cv_CC_dependencies_compiler_type=none
3951 if test "$am_compiler_list" = ""; then
3952 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3953 fi
5213506e
RW
3954 am__universal=false
3955 case " $depcc " in #(
3956 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3957 esac
3958
bf9a420e
PB
3959 for depmode in $am_compiler_list; do
3960 # Setup a source with many dependencies, because some compilers
3961 # like to wrap large dependency lists on column 80 (with \), and
3962 # we should not choose a depcomp mode which is confused by this.
3963 #
3964 # We need to recreate these files for each test, as the compiler may
3965 # overwrite some of them when testing with obscure command lines.
3966 # This happens at least with the AIX C compiler.
3967 : > sub/conftest.c
3968 for i in 1 2 3 4 5 6; do
3969 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3970 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3971 # Solaris 8's {/usr,}/bin/sh.
3972 touch sub/conftst$i.h
3973 done
3974 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3975
5213506e
RW
3976 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3977 # mode. It turns out that the SunPro C++ compiler does not properly
3978 # handle `-M -o', and we need to detect this. Also, some Intel
3979 # versions had trouble with output in subdirs
3980 am__obj=sub/conftest.${OBJEXT-o}
3981 am__minus_obj="-o $am__obj"
bf9a420e 3982 case $depmode in
5213506e
RW
3983 gcc)
3984 # This depmode causes a compiler race in universal mode.
3985 test "$am__universal" = false || continue
3986 ;;
bf9a420e
PB
3987 nosideeffect)
3988 # after this tag, mechanisms are not by side-effect, so they'll
3989 # only be used when explicitly requested
3990 if test "x$enable_dependency_tracking" = xyes; then
3991 continue
3992 else
3993 break
3994 fi
3995 ;;
5213506e
RW
3996 msvisualcpp | msvcmsys)
3997 # This compiler won't grok `-c -o', but also, the minuso test has
3998 # not run yet. These depmodes are late enough in the game, and
3999 # so weak that their functioning should not be impacted.
4000 am__obj=conftest.${OBJEXT-o}
4001 am__minus_obj=
4002 ;;
bf9a420e
PB
4003 none) break ;;
4004 esac
bf9a420e 4005 if depmode=$depmode \
5213506e 4006 source=sub/conftest.c object=$am__obj \
bf9a420e 4007 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213506e 4008 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
bf9a420e 4009 >/dev/null 2>conftest.err &&
5213506e 4010 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
bf9a420e 4011 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213506e 4012 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
bf9a420e
PB
4013 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4014 # icc doesn't choke on unknown options, it will just issue warnings
4015 # or remarks (even with -Werror). So we grep stderr for any message
4016 # that says an option was ignored or not supported.
4017 # When given -MP, icc 7.0 and 7.1 complain thusly:
4018 # icc: Command line warning: ignoring option '-M'; no argument required
4019 # The diagnosis changed in icc 8.0:
4020 # icc: Command line remark: option '-MP' not supported
4021 if (grep 'ignoring option' conftest.err ||
4022 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4023 am_cv_CC_dependencies_compiler_type=$depmode
4024 break
4025 fi
4026 fi
4027 done
4028
4029 cd ..
4030 rm -rf conftest.dir
4031else
4032 am_cv_CC_dependencies_compiler_type=none
4033fi
4034
4035fi
5213506e
RW
4036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4037$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
bf9a420e
PB
4038CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4039
5213506e 4040 if
bf9a420e
PB
4041 test "x$enable_dependency_tracking" != xno \
4042 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4043 am__fastdepCC_TRUE=
4044 am__fastdepCC_FALSE='#'
4045else
4046 am__fastdepCC_TRUE='#'
4047 am__fastdepCC_FALSE=
4048fi
4049
47935194 4050
5213506e 4051ac_ext=cpp
47935194
NN
4052ac_cpp='$CXXCPP $CPPFLAGS'
4053ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4054ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4055ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4056if test -z "$CXX"; then
4057 if test -n "$CCC"; then
4058 CXX=$CCC
4059 else
4060 if test -n "$ac_tool_prefix"; then
4061 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
47935194
NN
4062 do
4063 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4064set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4066$as_echo_n "checking for $ac_word... " >&6; }
4067if test "${ac_cv_prog_CXX+set}" = set; then :
4068 $as_echo_n "(cached) " >&6
47935194
NN
4069else
4070 if test -n "$CXX"; then
4071 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4072else
4073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074for as_dir in $PATH
4075do
4076 IFS=$as_save_IFS
4077 test -z "$as_dir" && as_dir=.
5213506e
RW
4078 for ac_exec_ext in '' $ac_executable_extensions; do
4079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47935194 4080 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47935194
NN
4082 break 2
4083 fi
4084done
5213506e
RW
4085 done
4086IFS=$as_save_IFS
47935194
NN
4087
4088fi
4089fi
4090CXX=$ac_cv_prog_CXX
4091if test -n "$CXX"; then
5213506e
RW
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4093$as_echo "$CXX" >&6; }
47935194 4094else
5213506e
RW
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4096$as_echo "no" >&6; }
47935194
NN
4097fi
4098
5213506e 4099
47935194 4100 test -n "$CXX" && break
1530be84 4101 done
47935194
NN
4102fi
4103if test -z "$CXX"; then
4104 ac_ct_CXX=$CXX
5213506e 4105 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
47935194
NN
4106do
4107 # Extract the first word of "$ac_prog", so it can be a program name with args.
4108set dummy $ac_prog; ac_word=$2
5213506e
RW
4109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4110$as_echo_n "checking for $ac_word... " >&6; }
4111if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4112 $as_echo_n "(cached) " >&6
47935194
NN
4113else
4114 if test -n "$ac_ct_CXX"; then
4115 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4116else
4117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118for as_dir in $PATH
4119do
4120 IFS=$as_save_IFS
4121 test -z "$as_dir" && as_dir=.
5213506e
RW
4122 for ac_exec_ext in '' $ac_executable_extensions; do
4123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47935194 4124 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47935194
NN
4126 break 2
4127 fi
4128done
5213506e
RW
4129 done
4130IFS=$as_save_IFS
47935194
NN
4131
4132fi
4133fi
4134ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4135if test -n "$ac_ct_CXX"; then
5213506e
RW
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4137$as_echo "$ac_ct_CXX" >&6; }
47935194 4138else
5213506e
RW
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4140$as_echo "no" >&6; }
47935194
NN
4141fi
4142
5213506e 4143
47935194
NN
4144 test -n "$ac_ct_CXX" && break
4145done
47935194 4146
5213506e
RW
4147 if test "x$ac_ct_CXX" = x; then
4148 CXX="g++"
4149 else
4150 case $cross_compiling:$ac_tool_warned in
4151yes:)
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4153$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4154ac_tool_warned=yes ;;
4155esac
4156 CXX=$ac_ct_CXX
4157 fi
47935194
NN
4158fi
4159
5213506e
RW
4160 fi
4161fi
47935194 4162# Provide some information about the compiler.
5213506e
RW
4163$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4164set X $ac_compile
4165ac_compiler=$2
4166for ac_option in --version -v -V -qversion; do
4167 { { ac_try="$ac_compiler $ac_option >&5"
4168case "(($ac_try" in
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4171esac
4172eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4173$as_echo "$ac_try_echo"; } >&5
4174 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
47935194 4175 ac_status=$?
5213506e
RW
4176 if test -s conftest.err; then
4177 sed '10a\
4178... rest of stderr output deleted ...
4179 10q' conftest.err >conftest.er1
4180 cat conftest.er1 >&5
4181 rm -f conftest.er1 conftest.err
4182 fi
4183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4184 test $ac_status = 0; }
4185done
47935194 4186
5213506e
RW
4187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4188$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4189if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4190 $as_echo_n "(cached) " >&6
47935194 4191else
5213506e 4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47935194
NN
4193/* end confdefs.h. */
4194
4195int
4196main ()
4197{
4198#ifndef __GNUC__
4199 choke me
4200#endif
4201
4202 ;
4203 return 0;
4204}
4205_ACEOF
5213506e 4206if ac_fn_cxx_try_compile "$LINENO"; then :
47935194
NN
4207 ac_compiler_gnu=yes
4208else
5213506e 4209 ac_compiler_gnu=no
47935194 4210fi
5213506e 4211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47935194
NN
4212ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4213
4214fi
5213506e
RW
4215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4216$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4217if test $ac_compiler_gnu = yes; then
4218 GXX=yes
4219else
4220 GXX=
4221fi
47935194
NN
4222ac_test_CXXFLAGS=${CXXFLAGS+set}
4223ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4225$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4226if test "${ac_cv_prog_cxx_g+set}" = set; then :
4227 $as_echo_n "(cached) " >&6
4228else
4229 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4230 ac_cxx_werror_flag=yes
4231 ac_cv_prog_cxx_g=no
4232 CXXFLAGS="-g"
4233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47935194
NN
4234/* end confdefs.h. */
4235
4236int
4237main ()
4238{
4239
4240 ;
4241 return 0;
4242}
4243_ACEOF
5213506e 4244if ac_fn_cxx_try_compile "$LINENO"; then :
47935194
NN
4245 ac_cv_prog_cxx_g=yes
4246else
5213506e
RW
4247 CXXFLAGS=""
4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47935194 4249/* end confdefs.h. */
5213506e 4250
47935194
NN
4251int
4252main ()
4253{
5213506e 4254
47935194
NN
4255 ;
4256 return 0;
4257}
4258_ACEOF
5213506e 4259if ac_fn_cxx_try_compile "$LINENO"; then :
47935194 4260
5213506e
RW
4261else
4262 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4263 CXXFLAGS="-g"
4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47935194 4265/* end confdefs.h. */
5213506e 4266
47935194
NN
4267int
4268main ()
4269{
5213506e 4270
47935194
NN
4271 ;
4272 return 0;
4273}
4274_ACEOF
5213506e
RW
4275if ac_fn_cxx_try_compile "$LINENO"; then :
4276 ac_cv_prog_cxx_g=yes
47935194 4277fi
5213506e
RW
4278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4279fi
4280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4281fi
4282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4283 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4284fi
4285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4286$as_echo "$ac_cv_prog_cxx_g" >&6; }
4287if test "$ac_test_CXXFLAGS" = set; then
4288 CXXFLAGS=$ac_save_CXXFLAGS
4289elif test $ac_cv_prog_cxx_g = yes; then
4290 if test "$GXX" = yes; then
4291 CXXFLAGS="-g -O2"
4292 else
4293 CXXFLAGS="-g"
4294 fi
4295else
4296 if test "$GXX" = yes; then
4297 CXXFLAGS="-O2"
4298 else
4299 CXXFLAGS=
4300 fi
47935194 4301fi
47935194
NN
4302ac_ext=c
4303ac_cpp='$CPP $CPPFLAGS'
4304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4306ac_compiler_gnu=$ac_cv_c_compiler_gnu
4307
bf9a420e
PB
4308depcc="$CXX" am_compiler_list=
4309
5213506e
RW
4310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4311$as_echo_n "checking dependency style of $depcc... " >&6; }
4312if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4313 $as_echo_n "(cached) " >&6
bf9a420e
PB
4314else
4315 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4316 # We make a subdir and do the tests there. Otherwise we can end up
4317 # making bogus files that we don't know about and never remove. For
4318 # instance it was reported that on HP-UX the gcc test will end up
4319 # making a dummy file named `D' -- because `-MD' means `put the output
4320 # in D'.
4321 mkdir conftest.dir
4322 # Copy depcomp to subdir because otherwise we won't find it if we're
4323 # using a relative directory.
4324 cp "$am_depcomp" conftest.dir
4325 cd conftest.dir
4326 # We will build objects and dependencies in a subdirectory because
4327 # it helps to detect inapplicable dependency modes. For instance
4328 # both Tru64's cc and ICC support -MD to output dependencies as a
4329 # side effect of compilation, but ICC will put the dependencies in
4330 # the current directory while Tru64 will put them in the object
4331 # directory.
4332 mkdir sub
4333
4334 am_cv_CXX_dependencies_compiler_type=none
4335 if test "$am_compiler_list" = ""; then
4336 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4337 fi
5213506e
RW
4338 am__universal=false
4339 case " $depcc " in #(
4340 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4341 esac
4342
bf9a420e
PB
4343 for depmode in $am_compiler_list; do
4344 # Setup a source with many dependencies, because some compilers
4345 # like to wrap large dependency lists on column 80 (with \), and
4346 # we should not choose a depcomp mode which is confused by this.
4347 #
4348 # We need to recreate these files for each test, as the compiler may
4349 # overwrite some of them when testing with obscure command lines.
4350 # This happens at least with the AIX C compiler.
4351 : > sub/conftest.c
4352 for i in 1 2 3 4 5 6; do
4353 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4354 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4355 # Solaris 8's {/usr,}/bin/sh.
4356 touch sub/conftst$i.h
4357 done
4358 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4359
5213506e
RW
4360 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4361 # mode. It turns out that the SunPro C++ compiler does not properly
4362 # handle `-M -o', and we need to detect this. Also, some Intel
4363 # versions had trouble with output in subdirs
4364 am__obj=sub/conftest.${OBJEXT-o}
4365 am__minus_obj="-o $am__obj"
bf9a420e 4366 case $depmode in
5213506e
RW
4367 gcc)
4368 # This depmode causes a compiler race in universal mode.
4369 test "$am__universal" = false || continue
4370 ;;
bf9a420e
PB
4371 nosideeffect)
4372 # after this tag, mechanisms are not by side-effect, so they'll
4373 # only be used when explicitly requested
4374 if test "x$enable_dependency_tracking" = xyes; then
4375 continue
4376 else
4377 break
4378 fi
4379 ;;
5213506e
RW
4380 msvisualcpp | msvcmsys)
4381 # This compiler won't grok `-c -o', but also, the minuso test has
4382 # not run yet. These depmodes are late enough in the game, and
4383 # so weak that their functioning should not be impacted.
4384 am__obj=conftest.${OBJEXT-o}
4385 am__minus_obj=
4386 ;;
bf9a420e
PB
4387 none) break ;;
4388 esac
bf9a420e 4389 if depmode=$depmode \
5213506e 4390 source=sub/conftest.c object=$am__obj \
bf9a420e 4391 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213506e 4392 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
bf9a420e 4393 >/dev/null 2>conftest.err &&
5213506e 4394 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
bf9a420e 4395 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213506e 4396 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
bf9a420e
PB
4397 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4398 # icc doesn't choke on unknown options, it will just issue warnings
4399 # or remarks (even with -Werror). So we grep stderr for any message
4400 # that says an option was ignored or not supported.
4401 # When given -MP, icc 7.0 and 7.1 complain thusly:
4402 # icc: Command line warning: ignoring option '-M'; no argument required
4403 # The diagnosis changed in icc 8.0:
4404 # icc: Command line remark: option '-MP' not supported
4405 if (grep 'ignoring option' conftest.err ||
4406 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4407 am_cv_CXX_dependencies_compiler_type=$depmode
4408 break
4409 fi
4410 fi
4411 done
4412
4413 cd ..
4414 rm -rf conftest.dir
4415else
4416 am_cv_CXX_dependencies_compiler_type=none
4417fi
4418
4419fi
5213506e
RW
4420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4421$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
bf9a420e
PB
4422CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4423
5213506e 4424 if
bf9a420e
PB
4425 test "x$enable_dependency_tracking" != xno \
4426 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4427 am__fastdepCXX_TRUE=
4428 am__fastdepCXX_FALSE='#'
4429else
4430 am__fastdepCXX_TRUE='#'
4431 am__fastdepCXX_FALSE=
4432fi
4433
4434
4435
4436
4437if test "x$CC" != xcc; then
5213506e
RW
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4439$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
bf9a420e 4440else
5213506e
RW
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4442$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
bf9a420e 4443fi
5213506e 4444set dummy $CC; ac_cc=`$as_echo "$2" |
bf9a420e 4445 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5213506e
RW
4446if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4447 $as_echo_n "(cached) " >&6
bf9a420e 4448else
5213506e 4449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bf9a420e
PB
4450/* end confdefs.h. */
4451
4452int
4453main ()
4454{
4455
4456 ;
4457 return 0;
4458}
4459_ACEOF
4460# Make sure it works both with $CC and with simple cc.
4461# We do the test twice because some compilers refuse to overwrite an
4462# existing .o file with -o, though they will create one.
5213506e
RW
4463ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4464rm -f conftest2.*
4465if { { case "(($ac_try" in
4466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4467 *) ac_try_echo=$ac_try;;
4468esac
4469eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4470$as_echo "$ac_try_echo"; } >&5
4471 (eval "$ac_try") 2>&5
bf9a420e 4472 ac_status=$?
5213506e
RW
4473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4474 test $ac_status = 0; } &&
4475 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4477 *) ac_try_echo=$ac_try;;
4478esac
4479eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4480$as_echo "$ac_try_echo"; } >&5
4481 (eval "$ac_try") 2>&5
bf9a420e 4482 ac_status=$?
5213506e
RW
4483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4484 test $ac_status = 0; };
bf9a420e
PB
4485then
4486 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4487 if test "x$CC" != xcc; then
4488 # Test first that cc exists at all.
4489 if { ac_try='cc -c conftest.$ac_ext >&5'
5213506e
RW
4490 { { case "(($ac_try" in
4491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4492 *) ac_try_echo=$ac_try;;
4493esac
4494eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4495$as_echo "$ac_try_echo"; } >&5
4496 (eval "$ac_try") 2>&5
bf9a420e 4497 ac_status=$?
5213506e
RW
4498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4499 test $ac_status = 0; }; }; then
4500 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4501 rm -f conftest2.*
4502 if { { case "(($ac_try" in
4503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504 *) ac_try_echo=$ac_try;;
4505esac
4506eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4507$as_echo "$ac_try_echo"; } >&5
4508 (eval "$ac_try") 2>&5
bf9a420e 4509 ac_status=$?
5213506e
RW
4510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4511 test $ac_status = 0; } &&
4512 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514 *) ac_try_echo=$ac_try;;
4515esac
4516eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4517$as_echo "$ac_try_echo"; } >&5
4518 (eval "$ac_try") 2>&5
bf9a420e 4519 ac_status=$?
5213506e
RW
4520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4521 test $ac_status = 0; };
bf9a420e
PB
4522 then
4523 # cc works too.
4524 :
4525 else
4526 # cc exists but doesn't like -o.
4527 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4528 fi
4529 fi
4530 fi
4531else
4532 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4533fi
5213506e 4534rm -f core conftest*
bf9a420e
PB
4535
4536fi
5213506e
RW
4537if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4539$as_echo "yes" >&6; }
bf9a420e 4540else
5213506e
RW
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542$as_echo "no" >&6; }
bf9a420e 4543
5213506e 4544$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
bf9a420e
PB
4545
4546fi
4547
4548# FIXME: we rely on the cache variable name because
4549# there is no other way.
4550set dummy $CC
5213506e
RW
4551am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4552eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4553if test "$am_t" != yes; then
bf9a420e
PB
4554 # Losing compiler, so override with the script.
4555 # FIXME: It is wrong to rewrite CC.
4556 # But if we don't then we get into trouble of one sort or another.
4557 # A longer-term fix would be to have automake use am__CC in this case,
4558 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4559 CC="$am_aux_dir/compile $CC"
4560fi
47935194 4561
e22db4bf
NN
4562
4563
4564
4565
5213506e 4566
7664e6f8
NN
4567# Newer automakes demand CCAS and CCASFLAGS.
4568: ${CCAS='$(CC)'}
4569: ${CCASFLAGS='$(CFLAGS)'}
4570
4571
4572
47935194
NN
4573if test -n "$ac_tool_prefix"; then
4574 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4575set dummy ${ac_tool_prefix}as; ac_word=$2
5213506e
RW
4576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4577$as_echo_n "checking for $ac_word... " >&6; }
4578if test "${ac_cv_prog_AS+set}" = set; then :
4579 $as_echo_n "(cached) " >&6
47935194
NN
4580else
4581 if test -n "$AS"; then
4582 ac_cv_prog_AS="$AS" # Let the user override the test.
4583else
4584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585for as_dir in $PATH
4586do
4587 IFS=$as_save_IFS
4588 test -z "$as_dir" && as_dir=.
5213506e
RW
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47935194 4591 ac_cv_prog_AS="${ac_tool_prefix}as"
5213506e 4592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47935194
NN
4593 break 2
4594 fi
4595done
5213506e
RW
4596 done
4597IFS=$as_save_IFS
47935194
NN
4598
4599fi
4600fi
4601AS=$ac_cv_prog_AS
4602if test -n "$AS"; then
5213506e
RW
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4604$as_echo "$AS" >&6; }
47935194 4605else
5213506e
RW
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4607$as_echo "no" >&6; }
47935194
NN
4608fi
4609
5213506e 4610
47935194
NN
4611fi
4612if test -z "$ac_cv_prog_AS"; then
4613 ac_ct_AS=$AS
4614 # Extract the first word of "as", so it can be a program name with args.
4615set dummy as; ac_word=$2
5213506e
RW
4616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4617$as_echo_n "checking for $ac_word... " >&6; }
4618if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
4619 $as_echo_n "(cached) " >&6
47935194
NN
4620else
4621 if test -n "$ac_ct_AS"; then
4622 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4623else
4624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625for as_dir in $PATH
4626do
4627 IFS=$as_save_IFS
4628 test -z "$as_dir" && as_dir=.
5213506e
RW
4629 for ac_exec_ext in '' $ac_executable_extensions; do
4630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47935194 4631 ac_cv_prog_ac_ct_AS="as"
5213506e 4632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47935194
NN
4633 break 2
4634 fi
4635done
5213506e
RW
4636 done
4637IFS=$as_save_IFS
47935194
NN
4638
4639fi
4640fi
4641ac_ct_AS=$ac_cv_prog_ac_ct_AS
4642if test -n "$ac_ct_AS"; then
5213506e
RW
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4644$as_echo "$ac_ct_AS" >&6; }
47935194 4645else
5213506e
RW
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4647$as_echo "no" >&6; }
47935194
NN
4648fi
4649
5213506e
RW
4650 if test "x$ac_ct_AS" = x; then
4651 AS=""
4652 else
4653 case $cross_compiling:$ac_tool_warned in
4654yes:)
4655{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4656$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4657ac_tool_warned=yes ;;
4658esac
4659 AS=$ac_ct_AS
4660 fi
47935194
NN
4661else
4662 AS="$ac_cv_prog_AS"
4663fi
4664
4665if test -n "$ac_tool_prefix"; then
4666 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4667set dummy ${ac_tool_prefix}ar; ac_word=$2
5213506e
RW
4668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4669$as_echo_n "checking for $ac_word... " >&6; }
4670if test "${ac_cv_prog_AR+set}" = set; then :
4671 $as_echo_n "(cached) " >&6
47935194
NN
4672else
4673 if test -n "$AR"; then
4674 ac_cv_prog_AR="$AR" # Let the user override the test.
4675else
4676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677for as_dir in $PATH
4678do
4679 IFS=$as_save_IFS
4680 test -z "$as_dir" && as_dir=.
5213506e
RW
4681 for ac_exec_ext in '' $ac_executable_extensions; do
4682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47935194 4683 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213506e 4684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47935194
NN
4685 break 2
4686 fi
4687done
5213506e
RW
4688 done
4689IFS=$as_save_IFS
47935194 4690
1530be84
TT
4691fi
4692fi
47935194 4693AR=$ac_cv_prog_AR
1530be84 4694if test -n "$AR"; then
5213506e
RW
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4696$as_echo "$AR" >&6; }
1530be84 4697else
5213506e
RW
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4699$as_echo "no" >&6; }
1530be84
TT
4700fi
4701
5213506e 4702
47935194
NN
4703fi
4704if test -z "$ac_cv_prog_AR"; then
4705 ac_ct_AR=$AR
4706 # Extract the first word of "ar", so it can be a program name with args.
4707set dummy ar; ac_word=$2
5213506e
RW
4708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4709$as_echo_n "checking for $ac_word... " >&6; }
4710if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4711 $as_echo_n "(cached) " >&6
47935194
NN
4712else
4713 if test -n "$ac_ct_AR"; then
4714 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4715else
4716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717for as_dir in $PATH
4718do
4719 IFS=$as_save_IFS
4720 test -z "$as_dir" && as_dir=.
5213506e
RW
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47935194 4723 ac_cv_prog_ac_ct_AR="ar"
5213506e 4724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47935194
NN
4725 break 2
4726 fi
4727done
5213506e
RW
4728 done
4729IFS=$as_save_IFS
47935194
NN
4730
4731fi
4732fi
4733ac_ct_AR=$ac_cv_prog_ac_ct_AR
4734if test -n "$ac_ct_AR"; then
5213506e
RW
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4736$as_echo "$ac_ct_AR" >&6; }
47935194 4737else
5213506e
RW
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4739$as_echo "no" >&6; }
47935194 4740fi
1530be84 4741
5213506e
RW
4742 if test "x$ac_ct_AR" = x; then
4743 AR=""
4744 else
4745 case $cross_compiling:$ac_tool_warned in
4746yes:)
4747{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4748$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4749ac_tool_warned=yes ;;
4750esac
4751 AR=$ac_ct_AR
4752 fi
47935194
NN
4753else
4754 AR="$ac_cv_prog_AR"
4755fi
1530be84 4756
47935194
NN
4757if test -n "$ac_tool_prefix"; then
4758 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1530be84 4759set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213506e
RW
4760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4761$as_echo_n "checking for $ac_word... " >&6; }
4762if test "${ac_cv_prog_RANLIB+set}" = set; then :
4763 $as_echo_n "(cached) " >&6
1530be84
TT
4764else
4765 if test -n "$RANLIB"; then
4766 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4767else
47935194
NN
4768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769for as_dir in $PATH
4770do
4771 IFS=$as_save_IFS
4772 test -z "$as_dir" && as_dir=.
5213506e
RW
4773 for ac_exec_ext in '' $ac_executable_extensions; do
4774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47935194 4775 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213506e 4776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47935194
NN
4777 break 2
4778 fi
4779done
5213506e
RW
4780 done
4781IFS=$as_save_IFS
47935194 4782
1530be84
TT
4783fi
4784fi
47935194 4785RANLIB=$ac_cv_prog_RANLIB
1530be84 4786if test -n "$RANLIB"; then
5213506e
RW
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4788$as_echo "$RANLIB" >&6; }
1530be84 4789else
5213506e
RW
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4791$as_echo "no" >&6; }
1530be84
TT
4792fi
4793
5213506e 4794
47935194 4795fi
1530be84 4796if test -z "$ac_cv_prog_RANLIB"; then
47935194 4797 ac_ct_RANLIB=$RANLIB
1530be84
TT
4798 # Extract the first word of "ranlib", so it can be a program name with args.
4799set dummy ranlib; ac_word=$2
5213506e
RW
4800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4801$as_echo_n "checking for $ac_word... " >&6; }
4802if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4803 $as_echo_n "(cached) " >&6
1530be84 4804else
47935194
NN
4805 if test -n "$ac_ct_RANLIB"; then
4806 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1530be84 4807else
47935194
NN
4808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809for as_dir in $PATH
4810do
4811 IFS=$as_save_IFS
4812 test -z "$as_dir" && as_dir=.
5213506e
RW
4813 for ac_exec_ext in '' $ac_executable_extensions; do
4814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47935194 4815 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213506e 4816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47935194
NN
4817 break 2
4818 fi
4819done
5213506e
RW
4820 done
4821IFS=$as_save_IFS
47935194 4822
1530be84
TT
4823fi
4824fi
47935194
NN
4825ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4826if test -n "$ac_ct_RANLIB"; then
5213506e
RW
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4828$as_echo "$ac_ct_RANLIB" >&6; }
1530be84 4829else
5213506e
RW
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4831$as_echo "no" >&6; }
1530be84
TT
4832fi
4833
5213506e
RW
4834 if test "x$ac_ct_RANLIB" = x; then
4835 RANLIB=":"
1530be84 4836 else
5213506e
RW
4837 case $cross_compiling:$ac_tool_warned in
4838yes:)
4839{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4840$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4841ac_tool_warned=yes ;;
4842esac
4843 RANLIB=$ac_ct_RANLIB
1530be84 4844 fi
5213506e
RW
4845else
4846 RANLIB="$ac_cv_prog_RANLIB"
1530be84 4847fi
1530be84 4848
1530be84 4849
1530be84 4850
1530be84
TT
4851
4852
5213506e
RW
4853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4854$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4855 # Check whether --enable-maintainer-mode was given.
4856if test "${enable_maintainer_mode+set}" = set; then :
4857 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1530be84
TT
4858else
4859 USE_MAINTAINER_MODE=no
5213506e 4860fi
1530be84 4861
5213506e
RW
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4863$as_echo "$USE_MAINTAINER_MODE" >&6; }
4864 if test $USE_MAINTAINER_MODE = yes; then
1530be84
TT
4865 MAINTAINER_MODE_TRUE=
4866 MAINTAINER_MODE_FALSE='#'
4867else
4868 MAINTAINER_MODE_TRUE='#'
4869 MAINTAINER_MODE_FALSE=
4870fi
bf9a420e 4871
1530be84 4872 MAINT=$MAINTAINER_MODE_TRUE
47935194 4873
1530be84
TT
4874
4875
c3b48847 4876. ${srcdir}/configure.host
1530be84 4877
5a2586cf
TT
4878case ${gc_basedir} in
4879/* | A-Za-z:/\\*) gc_flagbasedir=${gc_basedir} ;;
4880*) gc_flagbasedir='$(top_builddir)/'${gc_basedir} ;;
1530be84
TT
4881esac
4882
4109fe85 4883gc_cflags="${gc_cflags} -Iinclude -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
1530be84
TT
4884case "${host}" in
4885 *-*-cygwin32*)
5a2586cf 4886 gc_cflags="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
1530be84
TT
4887 ;;
4888esac
4889
e59be1b1
KT
4890case "${host}" in
4891 *-*-mingw*)
4892 gc_cflags="${gc_cflags} -DGC_BUILD=1"
4893 ;;
4894esac
4895
1530be84 4896
5a2586cf 4897GC_CFLAGS=${gc_cflags}
1530be84
TT
4898
4899
93e92f52
PG
4900case `pwd` in
4901 *\ * | *\ *)
5213506e
RW
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4903$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
93e92f52 4904esac
1cf3d07d
SE
4905
4906
1cf3d07d 4907
43e02a8a
RW
4908macro_version='2.2.7a'
4909macro_revision='1.3134'
1cf3d07d
SE
4910
4911
4912
4913
4914
4915
115dabb8 4916
1cf3d07d
SE
4917
4918
4919
4920
4921
4922
93e92f52 4923ltmain="$ac_aux_dir/ltmain.sh"
1cf3d07d 4924
43e02a8a
RW
4925# Backslashify metacharacters that are still active within
4926# double-quoted strings.
4927sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4928
4929# Same as above, but do not quote variable references.
4930double_quote_subst='s/\(["`\\]\)/\\\1/g'
4931
4932# Sed substitution to delay expansion of an escaped shell variable in a
4933# double_quote_subst'ed string.
4934delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4935
4936# Sed substitution to delay expansion of an escaped single quote.
4937delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4938
4939# Sed substitution to avoid accidental globbing in evaled expressions
4940no_glob_subst='s/\*/\\\*/g'
4941
4942ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4943ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4944ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4945
4946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4947$as_echo_n "checking how to print strings... " >&6; }
4948# Test print first, because it will be a builtin if present.
4949if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4950 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4951 ECHO='print -r --'
4952elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4953 ECHO='printf %s\n'
4954else
4955 # Use this function as a fallback that always works.
4956 func_fallback_echo ()
4957 {
4958 eval 'cat <<_LTECHO_EOF
4959$1
4960_LTECHO_EOF'
4961 }
4962 ECHO='func_fallback_echo'
4963fi
4964
4965# func_echo_all arg...
4966# Invoke $ECHO with all args, space-separated.
4967func_echo_all ()
4968{
4969 $ECHO ""
4970}
4971
4972case "$ECHO" in
4973 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4974$as_echo "printf" >&6; } ;;
4975 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4976$as_echo "print -r" >&6; } ;;
4977 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4978$as_echo "cat" >&6; } ;;
4979esac
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
5213506e
RW
4994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4995$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4996if test "${ac_cv_path_SED+set}" = set; then :
4997 $as_echo_n "(cached) " >&6
4998else
4999 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5000 for ac_i in 1 2 3 4 5 6 7; do
5001 ac_script="$ac_script$as_nl$ac_script"
5002 done
5003 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5004 { ac_script=; unset ac_script;}
5005 if test -z "$SED"; then
5006 ac_path_SED_found=false
5007 # Loop through the user's path and test for each of PROGNAME-LIST
5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1cf3d07d
SE
5009for as_dir in $PATH
5010do
5011 IFS=$as_save_IFS
5012 test -z "$as_dir" && as_dir=.
5213506e 5013 for ac_prog in sed gsed; do
1cf3d07d 5014 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e
RW
5015 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5016 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5017# Check for GNU ac_path_SED and select it if it is found.
5018 # Check for GNU $ac_path_SED
5019case `"$ac_path_SED" --version 2>&1` in
5020*GNU*)
5021 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5022*)
5023 ac_count=0
5024 $as_echo_n 0123456789 >"conftest.in"
5025 while :
5026 do
5027 cat "conftest.in" "conftest.in" >"conftest.tmp"
5028 mv "conftest.tmp" "conftest.in"
5029 cp "conftest.in" "conftest.nl"
5030 $as_echo '' >> "conftest.nl"
5031 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5032 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5033 as_fn_arith $ac_count + 1 && ac_count=$as_val
5034 if test $ac_count -gt ${ac_path_SED_max-0}; then
5035 # Best one so far, save it but keep looking for a better one
5036 ac_cv_path_SED="$ac_path_SED"
5037 ac_path_SED_max=$ac_count
5038 fi
5039 # 10*(2^10) chars as input seems more than enough
5040 test $ac_count -gt 10 && break
5041 done
5042 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5043esac
5044
5045 $ac_path_SED_found && break 3
1cf3d07d
SE
5046 done
5047 done
5213506e 5048 done
1cf3d07d 5049IFS=$as_save_IFS
5213506e
RW
5050 if test -z "$ac_cv_path_SED"; then
5051 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
1cf3d07d 5052 fi
5213506e
RW
5053else
5054 ac_cv_path_SED=$SED
1cf3d07d
SE
5055fi
5056
5213506e
RW
5057fi
5058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5059$as_echo "$ac_cv_path_SED" >&6; }
5060 SED="$ac_cv_path_SED"
5061 rm -f conftest.sed
1cf3d07d
SE
5062
5063test -z "$SED" && SED=sed
5064Xsed="$SED -e 1s/^X//"
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5213506e
RW
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5077$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5078if test "${ac_cv_path_GREP+set}" = set; then :
5079 $as_echo_n "(cached) " >&6
5080else
5081 if test -z "$GREP"; then
5082 ac_path_GREP_found=false
5083 # Loop through the user's path and test for each of PROGNAME-LIST
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5086do
5087 IFS=$as_save_IFS
5088 test -z "$as_dir" && as_dir=.
5089 for ac_prog in grep ggrep; do
5090 for ac_exec_ext in '' $ac_executable_extensions; do
5091 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5092 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5093# Check for GNU ac_path_GREP and select it if it is found.
5094 # Check for GNU $ac_path_GREP
5095case `"$ac_path_GREP" --version 2>&1` in
5096*GNU*)
5097 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5098*)
5099 ac_count=0
5100 $as_echo_n 0123456789 >"conftest.in"
5101 while :
5102 do
5103 cat "conftest.in" "conftest.in" >"conftest.tmp"
5104 mv "conftest.tmp" "conftest.in"
5105 cp "conftest.in" "conftest.nl"
5106 $as_echo 'GREP' >> "conftest.nl"
5107 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5108 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5109 as_fn_arith $ac_count + 1 && ac_count=$as_val
5110 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5111 # Best one so far, save it but keep looking for a better one
5112 ac_cv_path_GREP="$ac_path_GREP"
5113 ac_path_GREP_max=$ac_count
5114 fi
5115 # 10*(2^10) chars as input seems more than enough
5116 test $ac_count -gt 10 && break
5117 done
5118 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5119esac
5120
5121 $ac_path_GREP_found && break 3
5122 done
5123 done
5124 done
5125IFS=$as_save_IFS
5126 if test -z "$ac_cv_path_GREP"; then
5127 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5128 fi
5129else
5130 ac_cv_path_GREP=$GREP
5131fi
5132
5133fi
5134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5135$as_echo "$ac_cv_path_GREP" >&6; }
5136 GREP="$ac_cv_path_GREP"
5137
5138
5139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5140$as_echo_n "checking for egrep... " >&6; }
5141if test "${ac_cv_path_EGREP+set}" = set; then :
5142 $as_echo_n "(cached) " >&6
1cf3d07d 5143else
5213506e
RW
5144 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5145 then ac_cv_path_EGREP="$GREP -E"
5146 else
5147 if test -z "$EGREP"; then
5148 ac_path_EGREP_found=false
5149 # Loop through the user's path and test for each of PROGNAME-LIST
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5152do
5153 IFS=$as_save_IFS
5154 test -z "$as_dir" && as_dir=.
5155 for ac_prog in egrep; do
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5158 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5159# Check for GNU ac_path_EGREP and select it if it is found.
5160 # Check for GNU $ac_path_EGREP
5161case `"$ac_path_EGREP" --version 2>&1` in
5162*GNU*)
5163 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5164*)
5165 ac_count=0
5166 $as_echo_n 0123456789 >"conftest.in"
5167 while :
5168 do
5169 cat "conftest.in" "conftest.in" >"conftest.tmp"
5170 mv "conftest.tmp" "conftest.in"
5171 cp "conftest.in" "conftest.nl"
5172 $as_echo 'EGREP' >> "conftest.nl"
5173 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5174 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5175 as_fn_arith $ac_count + 1 && ac_count=$as_val
5176 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5177 # Best one so far, save it but keep looking for a better one
5178 ac_cv_path_EGREP="$ac_path_EGREP"
5179 ac_path_EGREP_max=$ac_count
1cf3d07d 5180 fi
5213506e
RW
5181 # 10*(2^10) chars as input seems more than enough
5182 test $ac_count -gt 10 && break
5183 done
5184 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5185esac
5186
5187 $ac_path_EGREP_found && break 3
5188 done
5189 done
5190 done
5191IFS=$as_save_IFS
5192 if test -z "$ac_cv_path_EGREP"; then
5193 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5194 fi
5195else
5196 ac_cv_path_EGREP=$EGREP
5197fi
5198
5199 fi
1cf3d07d 5200fi
5213506e
RW
5201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5202$as_echo "$ac_cv_path_EGREP" >&6; }
5203 EGREP="$ac_cv_path_EGREP"
1cf3d07d
SE
5204
5205
5213506e
RW
5206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5207$as_echo_n "checking for fgrep... " >&6; }
5208if test "${ac_cv_path_FGREP+set}" = set; then :
5209 $as_echo_n "(cached) " >&6
1cf3d07d 5210else
5213506e
RW
5211 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5212 then ac_cv_path_FGREP="$GREP -F"
5213 else
5214 if test -z "$FGREP"; then
5215 ac_path_FGREP_found=false
5216 # Loop through the user's path and test for each of PROGNAME-LIST
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5219do
5220 IFS=$as_save_IFS
5221 test -z "$as_dir" && as_dir=.
5222 for ac_prog in fgrep; do
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5225 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5226# Check for GNU ac_path_FGREP and select it if it is found.
5227 # Check for GNU $ac_path_FGREP
5228case `"$ac_path_FGREP" --version 2>&1` in
5229*GNU*)
5230 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5231*)
5232 ac_count=0
5233 $as_echo_n 0123456789 >"conftest.in"
5234 while :
5235 do
5236 cat "conftest.in" "conftest.in" >"conftest.tmp"
5237 mv "conftest.tmp" "conftest.in"
5238 cp "conftest.in" "conftest.nl"
5239 $as_echo 'FGREP' >> "conftest.nl"
5240 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5241 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5242 as_fn_arith $ac_count + 1 && ac_count=$as_val
5243 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5244 # Best one so far, save it but keep looking for a better one
5245 ac_cv_path_FGREP="$ac_path_FGREP"
5246 ac_path_FGREP_max=$ac_count
1cf3d07d 5247 fi
5213506e
RW
5248 # 10*(2^10) chars as input seems more than enough
5249 test $ac_count -gt 10 && break
5250 done
5251 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5252esac
5253
5254 $ac_path_FGREP_found && break 3
5255 done
5256 done
5257 done
5258IFS=$as_save_IFS
5259 if test -z "$ac_cv_path_FGREP"; then
5260 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5261 fi
5262else
5263 ac_cv_path_FGREP=$FGREP
1cf3d07d 5264fi
5213506e
RW
5265
5266 fi
5267fi
5268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5269$as_echo "$ac_cv_path_FGREP" >&6; }
5270 FGREP="$ac_cv_path_FGREP"
1cf3d07d
SE
5271
5272
5273test -z "$GREP" && GREP=grep
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5213506e
RW
5293# Check whether --with-gnu-ld was given.
5294if test "${with_gnu_ld+set}" = set; then :
5295 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
66deb2be
TT
5296else
5297 with_gnu_ld=no
5213506e
RW
5298fi
5299
66deb2be 5300ac_prog=ld
2d65a52e 5301if test "$GCC" = yes; then
66deb2be 5302 # Check if gcc -print-prog-name=ld gives a path.
5213506e
RW
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5304$as_echo_n "checking for ld used by $CC... " >&6; }
2f7bf5b7
AO
5305 case $host in
5306 *-*-mingw*)
5307 # gcc leaves a trailing carriage return which upsets mingw
5308 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5309 *)
5310 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5311 esac
2d65a52e 5312 case $ac_prog in
115dabb8 5313 # Accept absolute paths.
1cf3d07d 5314 [\\/]* | ?:[\\/]*)
115dabb8 5315 re_direlt='/[^/][^/]*/\.\./'
1cf3d07d
SE
5316 # Canonicalize the pathname of ld
5317 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5318 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5319 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
115dabb8
TT
5320 done
5321 test -z "$LD" && LD="$ac_prog"
5322 ;;
66deb2be
TT
5323 "")
5324 # If it fails, then pretend we aren't using GCC.
5325 ac_prog=ld
5326 ;;
5327 *)
5328 # If it is relative, then search for the first ld in PATH.
5329 with_gnu_ld=unknown
5330 ;;
5331 esac
5332elif test "$with_gnu_ld" = yes; then
5213506e
RW
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5334$as_echo_n "checking for GNU ld... " >&6; }
66deb2be 5335else
5213506e
RW
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5337$as_echo_n "checking for non-GNU ld... " >&6; }
66deb2be 5338fi
5213506e
RW
5339if test "${lt_cv_path_LD+set}" = set; then :
5340 $as_echo_n "(cached) " >&6
66deb2be
TT
5341else
5342 if test -z "$LD"; then
1cf3d07d 5343 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
66deb2be 5344 for ac_dir in $PATH; do
1cf3d07d 5345 IFS="$lt_save_ifs"
66deb2be 5346 test -z "$ac_dir" && ac_dir=.
20bbd3cd 5347 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2d65a52e 5348 lt_cv_path_LD="$ac_dir/$ac_prog"
66deb2be 5349 # Check to see if the program is GNU ld. I'd rather use --version,
1cf3d07d 5350 # but apparently some variants of GNU ld only accept -v.
66deb2be 5351 # Break only if it was the GNU/non-GNU ld that we prefer.
1cf3d07d
SE
5352 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5353 *GNU* | *'with BFD'*)
66deb2be 5354 test "$with_gnu_ld" != no && break
1cf3d07d
SE
5355 ;;
5356 *)
115dabb8 5357 test "$with_gnu_ld" != yes && break
1cf3d07d
SE
5358 ;;
5359 esac
66deb2be
TT
5360 fi
5361 done
1cf3d07d 5362 IFS="$lt_save_ifs"
66deb2be 5363else
2d65a52e 5364 lt_cv_path_LD="$LD" # Let the user override the test with a path.
66deb2be
TT
5365fi
5366fi
5367
2d65a52e 5368LD="$lt_cv_path_LD"
66deb2be 5369if test -n "$LD"; then
5213506e
RW
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5371$as_echo "$LD" >&6; }
66deb2be 5372else
5213506e
RW
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5374$as_echo "no" >&6; }
47935194 5375fi
5213506e
RW
5376test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5378$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5379if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5380 $as_echo_n "(cached) " >&6
66deb2be 5381else
1cf3d07d
SE
5382 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5383case `$LD -v 2>&1 </dev/null` in
5384*GNU* | *'with BFD'*)
2d65a52e 5385 lt_cv_prog_gnu_ld=yes
1cf3d07d
SE
5386 ;;
5387*)
2d65a52e 5388 lt_cv_prog_gnu_ld=no
1cf3d07d
SE
5389 ;;
5390esac
66deb2be 5391fi
5213506e
RW
5392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5393$as_echo "$lt_cv_prog_gnu_ld" >&6; }
2d65a52e 5394with_gnu_ld=$lt_cv_prog_gnu_ld
2f7bf5b7
AO
5395
5396
66deb2be 5397
1cf3d07d
SE
5398
5399
5400
5401
5402
5403
5213506e
RW
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5405$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5406if test "${lt_cv_path_NM+set}" = set; then :
5407 $as_echo_n "(cached) " >&6
66deb2be
TT
5408else
5409 if test -n "$NM"; then
5410 # Let the user override the test.
2d65a52e 5411 lt_cv_path_NM="$NM"
66deb2be 5412else
1cf3d07d
SE
5413 lt_nm_to_check="${ac_tool_prefix}nm"
5414 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5415 lt_nm_to_check="$lt_nm_to_check nm"
5416 fi
5417 for lt_tmp_nm in $lt_nm_to_check; do
5418 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5419 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5420 IFS="$lt_save_ifs"
5421 test -z "$ac_dir" && ac_dir=.
5422 tmp_nm="$ac_dir/$lt_tmp_nm"
5423 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5424 # Check to see if the nm accepts a BSD-compat flag.
5425 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5426 # nm: unknown option "B" ignored
5427 # Tru64's nm complains that /dev/null is an invalid object file
5428 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5429 */dev/null* | *'Invalid file or object type'*)
5430 lt_cv_path_NM="$tmp_nm -B"
5431 break
5432 ;;
5433 *)
5434 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5435 */dev/null*)
5436 lt_cv_path_NM="$tmp_nm -p"
5437 break
5438 ;;
5439 *)
5440 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5441 continue # so that we can try to find one that supports BSD flags
5442 ;;
5443 esac
5444 ;;
5445 esac
5446 fi
5447 done
5448 IFS="$lt_save_ifs"
5449 done
5450 : ${lt_cv_path_NM=no}
5451fi
5452fi
5213506e
RW
5453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5454$as_echo "$lt_cv_path_NM" >&6; }
1cf3d07d
SE
5455if test "$lt_cv_path_NM" != "no"; then
5456 NM="$lt_cv_path_NM"
5457else
5458 # Didn't find any BSD compatible name lister, look for dumpbin.
43e02a8a
RW
5459 if test -n "$DUMPBIN"; then :
5460 # Let the user override the test.
5461 else
5462 if test -n "$ac_tool_prefix"; then
5463 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
5464 do
5465 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5466set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
5467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5468$as_echo_n "checking for $ac_word... " >&6; }
5469if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5470 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5471else
5472 if test -n "$DUMPBIN"; then
5473 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5474else
5475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476for as_dir in $PATH
5477do
5478 IFS=$as_save_IFS
5479 test -z "$as_dir" && as_dir=.
5213506e
RW
5480 for ac_exec_ext in '' $ac_executable_extensions; do
5481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 5482 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5213506e 5483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
5484 break 2
5485 fi
5486done
5213506e
RW
5487 done
5488IFS=$as_save_IFS
1cf3d07d
SE
5489
5490fi
5491fi
5492DUMPBIN=$ac_cv_prog_DUMPBIN
5493if test -n "$DUMPBIN"; then
5213506e
RW
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5495$as_echo "$DUMPBIN" >&6; }
1cf3d07d 5496else
5213506e
RW
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5498$as_echo "no" >&6; }
1cf3d07d
SE
5499fi
5500
5213506e 5501
1cf3d07d
SE
5502 test -n "$DUMPBIN" && break
5503 done
5504fi
5505if test -z "$DUMPBIN"; then
5506 ac_ct_DUMPBIN=$DUMPBIN
43e02a8a 5507 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
5508do
5509 # Extract the first word of "$ac_prog", so it can be a program name with args.
5510set dummy $ac_prog; ac_word=$2
5213506e
RW
5511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5512$as_echo_n "checking for $ac_word... " >&6; }
5513if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5514 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5515else
5516 if test -n "$ac_ct_DUMPBIN"; then
5517 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5518else
5519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520for as_dir in $PATH
5521do
5522 IFS=$as_save_IFS
5523 test -z "$as_dir" && as_dir=.
5213506e
RW
5524 for ac_exec_ext in '' $ac_executable_extensions; do
5525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 5526 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5213506e 5527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
5528 break 2
5529 fi
5530done
5213506e
RW
5531 done
5532IFS=$as_save_IFS
1cf3d07d
SE
5533
5534fi
66deb2be 5535fi
1cf3d07d
SE
5536ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5537if test -n "$ac_ct_DUMPBIN"; then
5213506e
RW
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5539$as_echo "$ac_ct_DUMPBIN" >&6; }
1cf3d07d 5540else
5213506e
RW
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5542$as_echo "no" >&6; }
1cf3d07d
SE
5543fi
5544
5213506e 5545
1cf3d07d
SE
5546 test -n "$ac_ct_DUMPBIN" && break
5547done
1cf3d07d 5548
5213506e
RW
5549 if test "x$ac_ct_DUMPBIN" = x; then
5550 DUMPBIN=":"
5551 else
5552 case $cross_compiling:$ac_tool_warned in
5553yes:)
5554{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5555$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5556ac_tool_warned=yes ;;
5557esac
5558 DUMPBIN=$ac_ct_DUMPBIN
5559 fi
1cf3d07d
SE
5560fi
5561
43e02a8a
RW
5562 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5563 *COFF*)
5564 DUMPBIN="$DUMPBIN -symbols"
5565 ;;
5566 *)
5567 DUMPBIN=:
5568 ;;
5569 esac
5570 fi
1cf3d07d
SE
5571
5572 if test "$DUMPBIN" != ":"; then
5573 NM="$DUMPBIN"
5574 fi
66deb2be 5575fi
1cf3d07d
SE
5576test -z "$NM" && NM=nm
5577
5578
5579
5580
5581
66deb2be 5582
5213506e
RW
5583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5584$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5585if test "${lt_cv_nm_interface+set}" = set; then :
5586 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5587else
5588 lt_cv_nm_interface="BSD nm"
5589 echo "int some_variable = 0;" > conftest.$ac_ext
43e02a8a 5590 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
1cf3d07d
SE
5591 (eval "$ac_compile" 2>conftest.err)
5592 cat conftest.err >&5
43e02a8a 5593 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1cf3d07d
SE
5594 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5595 cat conftest.err >&5
43e02a8a 5596 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
1cf3d07d
SE
5597 cat conftest.out >&5
5598 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5599 lt_cv_nm_interface="MS dumpbin"
5600 fi
5601 rm -f conftest*
5602fi
5213506e
RW
5603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5604$as_echo "$lt_cv_nm_interface" >&6; }
47935194 5605
5213506e
RW
5606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5607$as_echo_n "checking whether ln -s works... " >&6; }
47935194
NN
5608LN_S=$as_ln_s
5609if test "$LN_S" = "ln -s"; then
5213506e
RW
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5611$as_echo "yes" >&6; }
66deb2be 5612else
5213506e
RW
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5614$as_echo "no, using $LN_S" >&6; }
66deb2be
TT
5615fi
5616
1cf3d07d 5617# find the maximum length of command line arguments
5213506e
RW
5618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5619$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5620if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5621 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5622else
5623 i=0
5624 teststring="ABCD"
5625
5626 case $build_os in
5627 msdosdjgpp*)
5628 # On DJGPP, this test can blow up pretty badly due to problems in libc
5629 # (any single argument exceeding 2000 bytes causes a buffer overrun
5630 # during glob expansion). Even if it were fixed, the result of this
5631 # check would be larger than it should be.
5632 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5633 ;;
5634
5635 gnu*)
5636 # Under GNU Hurd, this test is not required because there is
5637 # no limit to the length of command line arguments.
5638 # Libtool will interpret -1 as no limit whatsoever
5639 lt_cv_sys_max_cmd_len=-1;
5640 ;;
5641
93e92f52 5642 cygwin* | mingw* | cegcc*)
1cf3d07d
SE
5643 # On Win9x/ME, this test blows up -- it succeeds, but takes
5644 # about 5 minutes as the teststring grows exponentially.
5645 # Worse, since 9x/ME are not pre-emptively multitasking,
5646 # you end up with a "frozen" computer, even though with patience
5647 # the test eventually succeeds (with a max line length of 256k).
5648 # Instead, let's just punt: use the minimum linelength reported by
5649 # all of the supported platforms: 8192 (on NT/2K/XP).
5650 lt_cv_sys_max_cmd_len=8192;
5651 ;;
5652
43e02a8a
RW
5653 mint*)
5654 # On MiNT this can take a long time and run out of memory.
5655 lt_cv_sys_max_cmd_len=8192;
5656 ;;
5657
1cf3d07d
SE
5658 amigaos*)
5659 # On AmigaOS with pdksh, this test takes hours, literally.
5660 # So we just punt and use a minimum line length of 8192.
5661 lt_cv_sys_max_cmd_len=8192;
5662 ;;
5663
5664 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5665 # This has been around since 386BSD, at least. Likely further.
5666 if test -x /sbin/sysctl; then
5667 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5668 elif test -x /usr/sbin/sysctl; then
5669 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5670 else
5671 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5672 fi
5673 # And add a safety zone
5674 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5675 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5676 ;;
5677
5678 interix*)
5679 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5680 lt_cv_sys_max_cmd_len=196608
5681 ;;
5682
5683 osf*)
5684 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5685 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5686 # nice to cause kernel panics so lets avoid the loop below.
5687 # First set a reasonable default.
5688 lt_cv_sys_max_cmd_len=16384
5689 #
5690 if test -x /sbin/sysconfig; then
5691 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5692 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5693 esac
5694 fi
5695 ;;
5696 sco3.2v5*)
5697 lt_cv_sys_max_cmd_len=102400
5698 ;;
5699 sysv5* | sco5v6* | sysv4.2uw2*)
5700 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5701 if test -n "$kargmax"; then
5702 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5703 else
5704 lt_cv_sys_max_cmd_len=32768
5705 fi
5706 ;;
5707 *)
93e92f52
PG
5708 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5709 if test -n "$lt_cv_sys_max_cmd_len"; then
82a6cadf
PB
5710 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5711 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5712 else
5713 # Make teststring a little bigger before we do anything with it.
5714 # a 1K string should be a reasonable start.
5715 for i in 1 2 3 4 5 6 7 8 ; do
5716 teststring=$teststring$teststring
5717 done
5718 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5719 # If test is not a shell built-in, we'll probably end up computing a
5720 # maximum length that is only half of the actual maximum length, but
5721 # we can't tell.
43e02a8a
RW
5722 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5723 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
82a6cadf
PB
5724 test $i != 17 # 1/2 MB should be enough
5725 do
5726 i=`expr $i + 1`
5727 teststring=$teststring$teststring
5728 done
5729 # Only check the string length outside the loop.
5730 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5731 teststring=
5732 # Add a significant safety factor because C++ compilers can tack on
5733 # massive amounts of additional arguments before passing them to the
5734 # linker. It appears as though 1/2 is a usable value.
5735 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5736 fi
1cf3d07d
SE
5737 ;;
5738 esac
5739
5740fi
5741
5742if test -n $lt_cv_sys_max_cmd_len ; then
5213506e
RW
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5744$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
1cf3d07d 5745else
5213506e
RW
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5747$as_echo "none" >&6; }
1cf3d07d
SE
5748fi
5749max_cmd_len=$lt_cv_sys_max_cmd_len
5750
5751
5752
5753
5754
5755
1cf3d07d
SE
5756: ${CP="cp -f"}
5757: ${MV="mv -f"}
5758: ${RM="rm -f"}
5759
5213506e
RW
5760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5761$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1cf3d07d
SE
5762# Try some XSI features
5763xsi_shell=no
5764( _lt_dummy="a/b/c"
5765 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
93e92f52
PG
5766 = c,a/b,, \
5767 && eval 'test $(( 1 + 1 )) -eq 2 \
5768 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
1cf3d07d 5769 && xsi_shell=yes
5213506e
RW
5770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5771$as_echo "$xsi_shell" >&6; }
1cf3d07d
SE
5772
5773
5213506e
RW
5774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5775$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1cf3d07d
SE
5776lt_shell_append=no
5777( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5778 >/dev/null 2>&1 \
5779 && lt_shell_append=yes
5213506e
RW
5780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5781$as_echo "$lt_shell_append" >&6; }
1cf3d07d
SE
5782
5783
5784if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5785 lt_unset=unset
5786else
5787 lt_unset=false
5788fi
5789
5790
5791
5792
5793
5794# test EBCDIC or ASCII
5795case `echo X|tr X '\101'` in
5796 A) # ASCII based system
5797 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5798 lt_SP2NL='tr \040 \012'
5799 lt_NL2SP='tr \015\012 \040\040'
5800 ;;
5801 *) # EBCDIC based system
5802 lt_SP2NL='tr \100 \n'
5803 lt_NL2SP='tr \r\n \100\100'
5804 ;;
5805esac
5806
5807
5808
5809
5810
5811
5812
5813
5814
5213506e
RW
5815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5816$as_echo_n "checking for $LD option to reload object files... " >&6; }
5817if test "${lt_cv_ld_reload_flag+set}" = set; then :
5818 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5819else
5820 lt_cv_ld_reload_flag='-r'
5821fi
5213506e
RW
5822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5823$as_echo "$lt_cv_ld_reload_flag" >&6; }
1cf3d07d
SE
5824reload_flag=$lt_cv_ld_reload_flag
5825case $reload_flag in
5826"" | " "*) ;;
5827*) reload_flag=" $reload_flag" ;;
5828esac
5829reload_cmds='$LD$reload_flag -o $output$reload_objs'
5830case $host_os in
5831 darwin*)
5832 if test "$GCC" = yes; then
5833 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5834 else
5835 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5836 fi
5837 ;;
5838esac
5839
5840
5841
5842
5843
5844
5845
5846
5847
93e92f52
PG
5848if test -n "$ac_tool_prefix"; then
5849 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5850set dummy ${ac_tool_prefix}objdump; ac_word=$2
5213506e
RW
5851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5852$as_echo_n "checking for $ac_word... " >&6; }
5853if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5854 $as_echo_n "(cached) " >&6
93e92f52
PG
5855else
5856 if test -n "$OBJDUMP"; then
5857 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5858else
5859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860for as_dir in $PATH
5861do
5862 IFS=$as_save_IFS
5863 test -z "$as_dir" && as_dir=.
5213506e
RW
5864 for ac_exec_ext in '' $ac_executable_extensions; do
5865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
93e92f52 5866 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5213506e 5867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
93e92f52
PG
5868 break 2
5869 fi
5870done
5213506e
RW
5871 done
5872IFS=$as_save_IFS
93e92f52
PG
5873
5874fi
5875fi
5876OBJDUMP=$ac_cv_prog_OBJDUMP
5877if test -n "$OBJDUMP"; then
5213506e
RW
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5879$as_echo "$OBJDUMP" >&6; }
93e92f52 5880else
5213506e
RW
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5882$as_echo "no" >&6; }
93e92f52
PG
5883fi
5884
5213506e 5885
93e92f52
PG
5886fi
5887if test -z "$ac_cv_prog_OBJDUMP"; then
5888 ac_ct_OBJDUMP=$OBJDUMP
5889 # Extract the first word of "objdump", so it can be a program name with args.
5890set dummy objdump; ac_word=$2
5213506e
RW
5891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5892$as_echo_n "checking for $ac_word... " >&6; }
5893if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5894 $as_echo_n "(cached) " >&6
93e92f52
PG
5895else
5896 if test -n "$ac_ct_OBJDUMP"; then
5897 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5898else
5899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900for as_dir in $PATH
5901do
5902 IFS=$as_save_IFS
5903 test -z "$as_dir" && as_dir=.
5213506e
RW
5904 for ac_exec_ext in '' $ac_executable_extensions; do
5905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
93e92f52 5906 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5213506e 5907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
93e92f52
PG
5908 break 2
5909 fi
5910done
5213506e
RW
5911 done
5912IFS=$as_save_IFS
93e92f52 5913
93e92f52
PG
5914fi
5915fi
5916ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5917if test -n "$ac_ct_OBJDUMP"; then
5213506e
RW
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5919$as_echo "$ac_ct_OBJDUMP" >&6; }
93e92f52 5920else
5213506e
RW
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5922$as_echo "no" >&6; }
93e92f52
PG
5923fi
5924
5213506e
RW
5925 if test "x$ac_ct_OBJDUMP" = x; then
5926 OBJDUMP="false"
5927 else
5928 case $cross_compiling:$ac_tool_warned in
5929yes:)
5930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5932ac_tool_warned=yes ;;
5933esac
5934 OBJDUMP=$ac_ct_OBJDUMP
5935 fi
93e92f52
PG
5936else
5937 OBJDUMP="$ac_cv_prog_OBJDUMP"
5938fi
5939
5940test -z "$OBJDUMP" && OBJDUMP=objdump
5941
5942
5943
5944
5945
5946
5947
5948
1cf3d07d 5949
5213506e
RW
5950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5951$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5952if test "${lt_cv_deplibs_check_method+set}" = set; then :
5953 $as_echo_n "(cached) " >&6
2f7bf5b7 5954else
5f527203 5955 lt_cv_file_magic_cmd='$MAGIC_CMD'
2f7bf5b7
AO
5956lt_cv_file_magic_test_file=
5957lt_cv_deplibs_check_method='unknown'
5958# Need to set the preceding variable on all platforms that support
5959# interlibrary dependencies.
5960# 'none' -- dependencies not supported.
5961# `unknown' -- same as none, but documents that we really don't know.
5962# 'pass_all' -- all dependencies passed with no checks.
5963# 'test_compile' -- check by making test program.
1cf3d07d
SE
5964# 'file_magic [[regex]]' -- check by looking for files in library path
5965# which responds to the $file_magic_cmd with a given extended regex.
2f7bf5b7
AO
5966# If you have `file' or equivalent on your system and you're not sure
5967# whether `pass_all' will *always* work, you probably want this one.
5968
2d65a52e 5969case $host_os in
f3641e7e 5970aix[4-9]*)
2f7bf5b7
AO
5971 lt_cv_deplibs_check_method=pass_all
5972 ;;
5973
5974beos*)
5975 lt_cv_deplibs_check_method=pass_all
5976 ;;
5977
1cf3d07d 5978bsdi[45]*)
2d65a52e
AO
5979 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5980 lt_cv_file_magic_cmd='/usr/bin/file -L'
2f7bf5b7
AO
5981 lt_cv_file_magic_test_file=/shlib/libc.so
5982 ;;
5983
1cf3d07d
SE
5984cygwin*)
5985 # func_win32_libid is a shell function defined in ltmain.sh
5986 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5987 lt_cv_file_magic_cmd='func_win32_libid'
5988 ;;
5989
5990mingw* | pw32*)
5991 # Base MSYS/MinGW do not provide the 'file' command needed by
5992 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5993 # unless we find 'file', for example because we are cross-compiling.
43e02a8a
RW
5994 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5995 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
1cf3d07d
SE
5996 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5997 lt_cv_file_magic_cmd='func_win32_libid'
5998 else
5999 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6000 lt_cv_file_magic_cmd='$OBJDUMP -f'
6001 fi
2f7bf5b7
AO
6002 ;;
6003
43e02a8a 6004cegcc*)
93e92f52
PG
6005 # use the weaker test based on 'objdump'. See mingw*.
6006 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6007 lt_cv_file_magic_cmd='$OBJDUMP -f'
6008 ;;
6009
2d65a52e 6010darwin* | rhapsody*)
b27317b5 6011 lt_cv_deplibs_check_method=pass_all
2d65a52e
AO
6012 ;;
6013
1cf3d07d
SE
6014freebsd* | dragonfly*)
6015 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
2d65a52e 6016 case $host_cpu in
2f7bf5b7
AO
6017 i*86 )
6018 # Not sure whether the presence of OpenBSD here was a mistake.
6019 # Let's accept both of them until this is cleared up.
1cf3d07d 6020 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
2d65a52e 6021 lt_cv_file_magic_cmd=/usr/bin/file
2f7bf5b7
AO
6022 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6023 ;;
6024 esac
6025 else
6026 lt_cv_deplibs_check_method=pass_all
6027 fi
6028 ;;
6029
6030gnu*)
6031 lt_cv_deplibs_check_method=pass_all
6032 ;;
6033
43e02a8a
RW
6034haiku*)
6035 lt_cv_deplibs_check_method=pass_all
6036 ;;
6037
1cf3d07d
SE
6038hpux10.20* | hpux11*)
6039 lt_cv_file_magic_cmd=/usr/bin/file
f5cc59a7 6040 case $host_cpu in
f5cc59a7
AO
6041 ia64*)
6042 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
f5cc59a7
AO
6043 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6044 ;;
1cf3d07d 6045 hppa*64*)
43e02a8a 6046 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
1cf3d07d 6047 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2f7bf5b7
AO
6048 ;;
6049 *)
43e02a8a 6050 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
1cf3d07d 6051 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2d65a52e 6052 ;;
2f7bf5b7 6053 esac
1cf3d07d
SE
6054 ;;
6055
6056interix[3-9]*)
6057 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6058 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6059 ;;
6060
6061irix5* | irix6* | nonstopux*)
6062 case $LD in
6063 *-32|*"-32 ") libmagic=32-bit;;
6064 *-n32|*"-n32 ") libmagic=N32;;
6065 *-64|*"-64 ") libmagic=64-bit;;
6066 *) libmagic=never-match;;
6067 esac
2f7bf5b7
AO
6068 lt_cv_deplibs_check_method=pass_all
6069 ;;
6070
6071# This must be Linux ELF.
7a9d3fe8 6072linux* | k*bsd*-gnu | kopensolaris*-gnu)
76ecaf09 6073 lt_cv_deplibs_check_method=pass_all
2f7bf5b7
AO
6074 ;;
6075
1cf3d07d
SE
6076netbsd*)
6077 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6078 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
2f7bf5b7 6079 else
1cf3d07d 6080 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
2f7bf5b7
AO
6081 fi
6082 ;;
6083
1cf3d07d 6084newos6*)
2d65a52e
AO
6085 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6086 lt_cv_file_magic_cmd=/usr/bin/file
6087 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6088 ;;
6089
1cf3d07d
SE
6090*nto* | *qnx*)
6091 lt_cv_deplibs_check_method=pass_all
6092 ;;
6093
6094openbsd*)
6095 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6096 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6097 else
6098 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6099 fi
6100 ;;
6101
2f7bf5b7 6102osf3* | osf4* | osf5*)
2f7bf5b7
AO
6103 lt_cv_deplibs_check_method=pass_all
6104 ;;
66deb2be 6105
1cf3d07d 6106rdos*)
2f7bf5b7
AO
6107 lt_cv_deplibs_check_method=pass_all
6108 ;;
6109
6110solaris*)
6111 lt_cv_deplibs_check_method=pass_all
2f7bf5b7
AO
6112 ;;
6113
1cf3d07d 6114sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
33456445
AO
6115 lt_cv_deplibs_check_method=pass_all
6116 ;;
6117
1cf3d07d 6118sysv4 | sysv4.3*)
2d65a52e 6119 case $host_vendor in
2f7bf5b7 6120 motorola)
2d65a52e
AO
6121 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]'
6122 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2f7bf5b7 6123 ;;
1cf3d07d
SE
6124 ncr)
6125 lt_cv_deplibs_check_method=pass_all
6126 ;;
6127 sequent)
6128 lt_cv_file_magic_cmd='/bin/file'
6129 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6130 ;;
6131 sni)
6132 lt_cv_file_magic_cmd='/bin/file'
6133 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6134 lt_cv_file_magic_test_file=/lib/libc.so
6135 ;;
6136 siemens)
6137 lt_cv_deplibs_check_method=pass_all
6138 ;;
6139 pc)
6140 lt_cv_deplibs_check_method=pass_all
6141 ;;
2f7bf5b7
AO
6142 esac
6143 ;;
1cf3d07d
SE
6144
6145tpf*)
6146 lt_cv_deplibs_check_method=pass_all
6147 ;;
2f7bf5b7
AO
6148esac
6149
6150fi
5213506e
RW
6151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6152$as_echo "$lt_cv_deplibs_check_method" >&6; }
2f7bf5b7
AO
6153file_magic_cmd=$lt_cv_file_magic_cmd
6154deplibs_check_method=$lt_cv_deplibs_check_method
1cf3d07d 6155test -z "$deplibs_check_method" && deplibs_check_method=unknown
2f7bf5b7 6156
2f7bf5b7 6157
47935194 6158
2f7bf5b7 6159
413580dc 6160
2f7bf5b7 6161
2f7bf5b7 6162
2f7bf5b7 6163
2f7bf5b7 6164
2f7bf5b7 6165
2f7bf5b7 6166
2f7bf5b7 6167
47935194 6168if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
6169 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6170set dummy ${ac_tool_prefix}ar; ac_word=$2
5213506e
RW
6171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6172$as_echo_n "checking for $ac_word... " >&6; }
6173if test "${ac_cv_prog_AR+set}" = set; then :
6174 $as_echo_n "(cached) " >&6
2f7bf5b7 6175else
1cf3d07d
SE
6176 if test -n "$AR"; then
6177 ac_cv_prog_AR="$AR" # Let the user override the test.
2f7bf5b7 6178else
47935194
NN
6179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180for as_dir in $PATH
6181do
6182 IFS=$as_save_IFS
6183 test -z "$as_dir" && as_dir=.
5213506e
RW
6184 for ac_exec_ext in '' $ac_executable_extensions; do
6185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 6186 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213506e 6187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47935194
NN
6188 break 2
6189 fi
6190done
5213506e
RW
6191 done
6192IFS=$as_save_IFS
47935194 6193
2f7bf5b7
AO
6194fi
6195fi
1cf3d07d
SE
6196AR=$ac_cv_prog_AR
6197if test -n "$AR"; then
5213506e
RW
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6199$as_echo "$AR" >&6; }
2f7bf5b7 6200else
5213506e
RW
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6202$as_echo "no" >&6; }
2f7bf5b7
AO
6203fi
6204
5213506e 6205
47935194 6206fi
1cf3d07d
SE
6207if test -z "$ac_cv_prog_AR"; then
6208 ac_ct_AR=$AR
6209 # Extract the first word of "ar", so it can be a program name with args.
6210set dummy ar; ac_word=$2
5213506e
RW
6211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6212$as_echo_n "checking for $ac_word... " >&6; }
6213if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6214 $as_echo_n "(cached) " >&6
2f7bf5b7 6215else
1cf3d07d
SE
6216 if test -n "$ac_ct_AR"; then
6217 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2f7bf5b7 6218else
47935194
NN
6219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220for as_dir in $PATH
6221do
6222 IFS=$as_save_IFS
6223 test -z "$as_dir" && as_dir=.
5213506e
RW
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 6226 ac_cv_prog_ac_ct_AR="ar"
5213506e 6227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47935194
NN
6228 break 2
6229 fi
6230done
5213506e
RW
6231 done
6232IFS=$as_save_IFS
47935194 6233
2f7bf5b7
AO
6234fi
6235fi
1cf3d07d
SE
6236ac_ct_AR=$ac_cv_prog_ac_ct_AR
6237if test -n "$ac_ct_AR"; then
5213506e
RW
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6239$as_echo "$ac_ct_AR" >&6; }
2f7bf5b7 6240else
5213506e
RW
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6242$as_echo "no" >&6; }
2f7bf5b7
AO
6243fi
6244
5213506e
RW
6245 if test "x$ac_ct_AR" = x; then
6246 AR="false"
6247 else
6248 case $cross_compiling:$ac_tool_warned in
6249yes:)
6250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6252ac_tool_warned=yes ;;
6253esac
6254 AR=$ac_ct_AR
6255 fi
2f7bf5b7 6256else
1cf3d07d 6257 AR="$ac_cv_prog_AR"
2f7bf5b7
AO
6258fi
6259
1cf3d07d
SE
6260test -z "$AR" && AR=ar
6261test -z "$AR_FLAGS" && AR_FLAGS=cru
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
47935194
NN
6273if test -n "$ac_tool_prefix"; then
6274 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2f7bf5b7 6275set dummy ${ac_tool_prefix}strip; ac_word=$2
5213506e
RW
6276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6277$as_echo_n "checking for $ac_word... " >&6; }
6278if test "${ac_cv_prog_STRIP+set}" = set; then :
6279 $as_echo_n "(cached) " >&6
2f7bf5b7
AO
6280else
6281 if test -n "$STRIP"; then
6282 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6283else
47935194
NN
6284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285for as_dir in $PATH
6286do
6287 IFS=$as_save_IFS
6288 test -z "$as_dir" && as_dir=.
5213506e
RW
6289 for ac_exec_ext in '' $ac_executable_extensions; do
6290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47935194 6291 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5213506e 6292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47935194
NN
6293 break 2
6294 fi
6295done
5213506e
RW
6296 done
6297IFS=$as_save_IFS
47935194 6298
2f7bf5b7
AO
6299fi
6300fi
47935194 6301STRIP=$ac_cv_prog_STRIP
2f7bf5b7 6302if test -n "$STRIP"; then
5213506e
RW
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6304$as_echo "$STRIP" >&6; }
2f7bf5b7 6305else
5213506e
RW
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307$as_echo "no" >&6; }
2f7bf5b7
AO
6308fi
6309
5213506e 6310
47935194 6311fi
2f7bf5b7 6312if test -z "$ac_cv_prog_STRIP"; then
47935194 6313 ac_ct_STRIP=$STRIP
2f7bf5b7
AO
6314 # Extract the first word of "strip", so it can be a program name with args.
6315set dummy strip; ac_word=$2
5213506e
RW
6316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6317$as_echo_n "checking for $ac_word... " >&6; }
6318if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6319 $as_echo_n "(cached) " >&6
2f7bf5b7 6320else
47935194
NN
6321 if test -n "$ac_ct_STRIP"; then
6322 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2f7bf5b7 6323else
47935194
NN
6324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325for as_dir in $PATH
6326do
6327 IFS=$as_save_IFS
6328 test -z "$as_dir" && as_dir=.
5213506e
RW
6329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47935194 6331 ac_cv_prog_ac_ct_STRIP="strip"
5213506e 6332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47935194
NN
6333 break 2
6334 fi
6335done
5213506e
RW
6336 done
6337IFS=$as_save_IFS
47935194 6338
2f7bf5b7
AO
6339fi
6340fi
47935194
NN
6341ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6342if test -n "$ac_ct_STRIP"; then
5213506e
RW
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6344$as_echo "$ac_ct_STRIP" >&6; }
2f7bf5b7 6345else
5213506e
RW
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347$as_echo "no" >&6; }
2f7bf5b7
AO
6348fi
6349
5213506e
RW
6350 if test "x$ac_ct_STRIP" = x; then
6351 STRIP=":"
6352 else
6353 case $cross_compiling:$ac_tool_warned in
6354yes:)
6355{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6357ac_tool_warned=yes ;;
6358esac
6359 STRIP=$ac_ct_STRIP
6360 fi
2f7bf5b7 6361else
47935194 6362 STRIP="$ac_cv_prog_STRIP"
2f7bf5b7
AO
6363fi
6364
1cf3d07d 6365test -z "$STRIP" && STRIP=:
70635f1e 6366
66deb2be 6367
20bbd3cd 6368
20bbd3cd 6369
47935194 6370
2f7bf5b7 6371
1cf3d07d
SE
6372if test -n "$ac_tool_prefix"; then
6373 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6374set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213506e
RW
6375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6376$as_echo_n "checking for $ac_word... " >&6; }
6377if test "${ac_cv_prog_RANLIB+set}" = set; then :
6378 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6379else
6380 if test -n "$RANLIB"; then
6381 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6382else
6383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384for as_dir in $PATH
6385do
6386 IFS=$as_save_IFS
6387 test -z "$as_dir" && as_dir=.
5213506e
RW
6388 for ac_exec_ext in '' $ac_executable_extensions; do
6389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 6390 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213506e 6391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
6392 break 2
6393 fi
6394done
5213506e
RW
6395 done
6396IFS=$as_save_IFS
1cf3d07d
SE
6397
6398fi
6399fi
6400RANLIB=$ac_cv_prog_RANLIB
6401if test -n "$RANLIB"; then
5213506e
RW
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6403$as_echo "$RANLIB" >&6; }
1cf3d07d 6404else
5213506e
RW
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6406$as_echo "no" >&6; }
1cf3d07d
SE
6407fi
6408
5213506e 6409
1cf3d07d
SE
6410fi
6411if test -z "$ac_cv_prog_RANLIB"; then
6412 ac_ct_RANLIB=$RANLIB
6413 # Extract the first word of "ranlib", so it can be a program name with args.
6414set dummy ranlib; ac_word=$2
5213506e
RW
6415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6416$as_echo_n "checking for $ac_word... " >&6; }
6417if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6418 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6419else
6420 if test -n "$ac_ct_RANLIB"; then
6421 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6422else
6423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424for as_dir in $PATH
6425do
6426 IFS=$as_save_IFS
6427 test -z "$as_dir" && as_dir=.
5213506e
RW
6428 for ac_exec_ext in '' $ac_executable_extensions; do
6429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 6430 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213506e 6431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
6432 break 2
6433 fi
6434done
5213506e
RW
6435 done
6436IFS=$as_save_IFS
1cf3d07d 6437
1cf3d07d
SE
6438fi
6439fi
6440ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6441if test -n "$ac_ct_RANLIB"; then
5213506e
RW
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6443$as_echo "$ac_ct_RANLIB" >&6; }
1cf3d07d 6444else
5213506e
RW
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446$as_echo "no" >&6; }
1cf3d07d
SE
6447fi
6448
5213506e
RW
6449 if test "x$ac_ct_RANLIB" = x; then
6450 RANLIB=":"
6451 else
6452 case $cross_compiling:$ac_tool_warned in
6453yes:)
6454{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6455$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6456ac_tool_warned=yes ;;
6457esac
6458 RANLIB=$ac_ct_RANLIB
6459 fi
1cf3d07d
SE
6460else
6461 RANLIB="$ac_cv_prog_RANLIB"
6462fi
6463
6464test -z "$RANLIB" && RANLIB=:
6465
6466
6467
6468
6469
6470
6471# Determine commands to create old-style static archives.
93e92f52 6472old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1cf3d07d
SE
6473old_postinstall_cmds='chmod 644 $oldlib'
6474old_postuninstall_cmds=
6475
6476if test -n "$RANLIB"; then
6477 case $host_os in
6478 openbsd*)
6479 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6480 ;;
6481 *)
6482 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6483 ;;
6484 esac
6485 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6486fi
6487
43e02a8a
RW
6488case $host_os in
6489 darwin*)
6490 lock_old_archive_extraction=yes ;;
6491 *)
6492 lock_old_archive_extraction=no ;;
6493esac
6494
6495
6496
6497
6498
6499
1cf3d07d
SE
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533# If no C compiler was specified, use CC.
6534LTCC=${LTCC-"$CC"}
6535
6536# If no C compiler flags were specified, use CFLAGS.
6537LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6538
6539# Allow CC to be a program name with arguments.
6540compiler=$CC
6541
6542
6543# Check for command to grab the raw symbol name followed by C symbol from nm.
5213506e
RW
6544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6545$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6546if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6547 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6548else
6549
6550# These are sane defaults that work on at least a few old systems.
6551# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6552
6553# Character class describing NM global symbol codes.
6554symcode='[BCDEGRST]'
6555
6556# Regexp to match symbols that can be accessed directly from C.
6557sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6558
6559# Define system-specific variables.
6560case $host_os in
6561aix*)
6562 symcode='[BCDT]'
6563 ;;
93e92f52 6564cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
6565 symcode='[ABCDGISTW]'
6566 ;;
6567hpux*)
6568 if test "$host_cpu" = ia64; then
6569 symcode='[ABCDEGRST]'
6570 fi
6571 ;;
6572irix* | nonstopux*)
6573 symcode='[BCDEGRST]'
6574 ;;
6575osf*)
6576 symcode='[BCDEGQRST]'
6577 ;;
6578solaris*)
6579 symcode='[BDRT]'
6580 ;;
6581sco3.2v5*)
6582 symcode='[DT]'
6583 ;;
6584sysv4.2uw2*)
6585 symcode='[DT]'
6586 ;;
6587sysv5* | sco5v6* | unixware* | OpenUNIX*)
6588 symcode='[ABDT]'
6589 ;;
6590sysv4)
6591 symcode='[DFNSTU]'
6592 ;;
6593esac
6594
6595# If we're using GNU nm, then use its standard symbol codes.
6596case `$NM -V 2>&1` in
6597*GNU* | *'with BFD'*)
6598 symcode='[ABCDGIRSTW]' ;;
6599esac
6600
6601# Transform an extracted symbol line into a proper C declaration.
6602# Some systems (esp. on ia64) link data and code symbols differently,
6603# so use this general approach.
6604lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6605
6606# Transform an extracted symbol line into symbol name and symbol address
6607lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
93e92f52 6608lt_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'"
1cf3d07d
SE
6609
6610# Handle CRLF in mingw tool chain
6611opt_cr=
6612case $build_os in
6613mingw*)
6614 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6615 ;;
6616esac
6617
6618# Try without a prefix underscore, then with it.
6619for ac_symprfx in "" "_"; do
6620
6621 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6622 symxfrm="\\1 $ac_symprfx\\2 \\2"
6623
6624 # Write the raw and C identifiers.
6625 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6626 # Fake it for dumpbin and say T for any non-static function
6627 # and D for any global variable.
6628 # Also find C++ and __fastcall symbols from MSVC++,
6629 # which start with @ or ?.
6630 lt_cv_sys_global_symbol_pipe="$AWK '"\
6631" {last_section=section; section=\$ 3};"\
6632" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6633" \$ 0!~/External *\|/{next};"\
6634" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6635" {if(hide[section]) next};"\
6636" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6637" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6638" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6639" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6640" ' prfx=^$ac_symprfx"
6641 else
6642 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6643 fi
6644
6645 # Check to see that the pipe works correctly.
6646 pipe_works=no
6647
6648 rm -f conftest*
6649 cat > conftest.$ac_ext <<_LT_EOF
6650#ifdef __cplusplus
6651extern "C" {
6652#endif
6653char nm_test_var;
6654void nm_test_func(void);
6655void nm_test_func(void){}
6656#ifdef __cplusplus
6657}
6658#endif
6659int main(){nm_test_var='a';nm_test_func();return(0);}
6660_LT_EOF
6661
5213506e 6662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6663 (eval $ac_compile) 2>&5
6664 ac_status=$?
5213506e
RW
6665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6666 test $ac_status = 0; }; then
1cf3d07d
SE
6667 # Now try to grab the symbols.
6668 nlist=conftest.nm
43e02a8a
RW
6669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6670 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1cf3d07d 6671 ac_status=$?
5213506e
RW
6672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6673 test $ac_status = 0; } && test -s "$nlist"; then
1cf3d07d
SE
6674 # Try sorting and uniquifying the output.
6675 if sort "$nlist" | uniq > "$nlist"T; then
6676 mv -f "$nlist"T "$nlist"
6677 else
6678 rm -f "$nlist"T
6679 fi
6680
6681 # Make sure that we snagged all the symbols we need.
6682 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6683 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6684 cat <<_LT_EOF > conftest.$ac_ext
6685#ifdef __cplusplus
6686extern "C" {
6687#endif
6688
6689_LT_EOF
6690 # Now generate the symbol file.
6691 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6692
6693 cat <<_LT_EOF >> conftest.$ac_ext
6694
6695/* The mapping between symbol names and symbols. */
6696const struct {
6697 const char *name;
6698 void *address;
6699}
6700lt__PROGRAM__LTX_preloaded_symbols[] =
6701{
6702 { "@PROGRAM@", (void *) 0 },
6703_LT_EOF
6704 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6705 cat <<\_LT_EOF >> conftest.$ac_ext
6706 {0, (void *) 0}
6707};
6708
6709/* This works around a problem in FreeBSD linker */
6710#ifdef FREEBSD_WORKAROUND
6711static const void *lt_preloaded_setup() {
6712 return lt__PROGRAM__LTX_preloaded_symbols;
6713}
6714#endif
6715
6716#ifdef __cplusplus
6717}
6718#endif
6719_LT_EOF
6720 # Now try linking the two files.
6721 mv conftest.$ac_objext conftstm.$ac_objext
6722 lt_save_LIBS="$LIBS"
6723 lt_save_CFLAGS="$CFLAGS"
6724 LIBS="conftstm.$ac_objext"
6725 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5213506e 6726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
6727 (eval $ac_link) 2>&5
6728 ac_status=$?
5213506e
RW
6729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6730 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1cf3d07d
SE
6731 pipe_works=yes
6732 fi
6733 LIBS="$lt_save_LIBS"
6734 CFLAGS="$lt_save_CFLAGS"
6735 else
6736 echo "cannot find nm_test_func in $nlist" >&5
6737 fi
6738 else
6739 echo "cannot find nm_test_var in $nlist" >&5
6740 fi
6741 else
6742 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6743 fi
6744 else
6745 echo "$progname: failed program was:" >&5
6746 cat conftest.$ac_ext >&5
6747 fi
93e92f52 6748 rm -rf conftest* conftst*
1cf3d07d
SE
6749
6750 # Do not use the global_symbol_pipe unless it works.
6751 if test "$pipe_works" = yes; then
6752 break
6753 else
6754 lt_cv_sys_global_symbol_pipe=
6755 fi
6756done
6757
6758fi
6759
6760if test -z "$lt_cv_sys_global_symbol_pipe"; then
6761 lt_cv_sys_global_symbol_to_cdecl=
6762fi
6763if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5213506e
RW
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6765$as_echo "failed" >&6; }
1cf3d07d 6766else
5213506e
RW
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6768$as_echo "ok" >&6; }
1cf3d07d
SE
6769fi
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
93e92f52
PG
6785
6786
6787
6788
6789
1cf3d07d
SE
6790
6791
6792
5213506e
RW
6793# Check whether --enable-libtool-lock was given.
6794if test "${enable_libtool_lock+set}" = set; then :
6795 enableval=$enable_libtool_lock;
6796fi
1cf3d07d 6797
1cf3d07d
SE
6798test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6799
6800# Some flags need to be propagated to the compiler or linker for good
6801# libtool support.
2d65a52e 6802case $host in
1cf3d07d 6803ia64-*-hpux*)
66deb2be 6804 # Find out which ABI we are using.
1cf3d07d 6805 echo 'int i;' > conftest.$ac_ext
5213506e 6806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
47935194
NN
6807 (eval $ac_compile) 2>&5
6808 ac_status=$?
5213506e
RW
6809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6810 test $ac_status = 0; }; then
1cf3d07d
SE
6811 case `/usr/bin/file conftest.$ac_objext` in
6812 *ELF-32*)
6813 HPUX_IA64_MODE="32"
6814 ;;
6815 *ELF-64*)
6816 HPUX_IA64_MODE="64"
6817 ;;
6818 esac
6819 fi
6820 rm -rf conftest*
6821 ;;
6822*-*-irix6*)
6823 # Find out which ABI we are using.
43e02a8a 6824 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5213506e 6825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6826 (eval $ac_compile) 2>&5
6827 ac_status=$?
5213506e
RW
6828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6829 test $ac_status = 0; }; then
1cf3d07d
SE
6830 if test "$lt_cv_prog_gnu_ld" = yes; then
6831 case `/usr/bin/file conftest.$ac_objext` in
6832 *32-bit*)
6833 LD="${LD-ld} -melf32bsmip"
6834 ;;
6835 *N32*)
6836 LD="${LD-ld} -melf32bmipn32"
6837 ;;
6838 *64-bit*)
6839 LD="${LD-ld} -melf64bmip"
6840 ;;
6841 esac
6842 else
6843 case `/usr/bin/file conftest.$ac_objext` in
6844 *32-bit*)
6845 LD="${LD-ld} -32"
6846 ;;
6847 *N32*)
6848 LD="${LD-ld} -n32"
6849 ;;
6850 *64-bit*)
6851 LD="${LD-ld} -64"
6852 ;;
6853 esac
6854 fi
6855 fi
6856 rm -rf conftest*
6857 ;;
6858
6859x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6860s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6861 # Find out which ABI we are using.
6862 echo 'int i;' > conftest.$ac_ext
5213506e 6863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6864 (eval $ac_compile) 2>&5
6865 ac_status=$?
5213506e
RW
6866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6867 test $ac_status = 0; }; then
1cf3d07d
SE
6868 case `/usr/bin/file conftest.o` in
6869 *32-bit*)
6870 case $host in
6871 x86_64-*kfreebsd*-gnu)
6872 LD="${LD-ld} -m elf_i386_fbsd"
6873 ;;
6874 x86_64-*linux*)
6875 LD="${LD-ld} -m elf_i386"
6876 ;;
6877 ppc64-*linux*|powerpc64-*linux*)
6878 LD="${LD-ld} -m elf32ppclinux"
6879 ;;
6880 s390x-*linux*)
6881 LD="${LD-ld} -m elf_s390"
6882 ;;
6883 sparc64-*linux*)
6884 LD="${LD-ld} -m elf32_sparc"
6885 ;;
6886 esac
6887 ;;
6888 *64-bit*)
6889 case $host in
6890 x86_64-*kfreebsd*-gnu)
6891 LD="${LD-ld} -m elf_x86_64_fbsd"
6892 ;;
6893 x86_64-*linux*)
6894 LD="${LD-ld} -m elf_x86_64"
6895 ;;
6896 ppc*-*linux*|powerpc*-*linux*)
6897 LD="${LD-ld} -m elf64ppc"
6898 ;;
6899 s390*-*linux*|s390*-*tpf*)
6900 LD="${LD-ld} -m elf64_s390"
6901 ;;
6902 sparc*-*linux*)
6903 LD="${LD-ld} -m elf64_sparc"
6904 ;;
6905 esac
6906 ;;
6907 esac
6908 fi
6909 rm -rf conftest*
6910 ;;
6911
6912*-*-sco3.2v5*)
6913 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6914 SAVE_CFLAGS="$CFLAGS"
6915 CFLAGS="$CFLAGS -belf"
5213506e
RW
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6917$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6918if test "${lt_cv_cc_needs_belf+set}" = set; then :
6919 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6920else
6921 ac_ext=c
6922ac_cpp='$CPP $CPPFLAGS'
6923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6925ac_compiler_gnu=$ac_cv_c_compiler_gnu
6926
6927 if test x$gcc_no_link = xyes; then
5213506e 6928 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 6929fi
5213506e 6930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
6931/* end confdefs.h. */
6932
6933int
6934main ()
6935{
6936
6937 ;
6938 return 0;
6939}
6940_ACEOF
5213506e 6941if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
6942 lt_cv_cc_needs_belf=yes
6943else
5213506e 6944 lt_cv_cc_needs_belf=no
1cf3d07d 6945fi
5213506e
RW
6946rm -f core conftest.err conftest.$ac_objext \
6947 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
6948 ac_ext=c
6949ac_cpp='$CPP $CPPFLAGS'
6950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6952ac_compiler_gnu=$ac_cv_c_compiler_gnu
6953
6954fi
5213506e
RW
6955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6956$as_echo "$lt_cv_cc_needs_belf" >&6; }
1cf3d07d
SE
6957 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6958 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6959 CFLAGS="$SAVE_CFLAGS"
6960 fi
6961 ;;
6962sparc*-*solaris*)
6963 # Find out which ABI we are using.
6964 echo 'int i;' > conftest.$ac_ext
5213506e 6965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6966 (eval $ac_compile) 2>&5
6967 ac_status=$?
5213506e
RW
6968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6969 test $ac_status = 0; }; then
1cf3d07d
SE
6970 case `/usr/bin/file conftest.o` in
6971 *64-bit*)
6972 case $lt_cv_prog_gnu_ld in
6973 yes*) LD="${LD-ld} -m elf64_sparc" ;;
93e92f52
PG
6974 *)
6975 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6976 LD="${LD-ld} -64"
6977 fi
6978 ;;
1cf3d07d
SE
6979 esac
6980 ;;
6981 esac
6982 fi
6983 rm -rf conftest*
6984 ;;
6985esac
6986
6987need_locks="$enable_libtool_lock"
6988
93e92f52
PG
6989
6990 case $host_os in
6991 rhapsody* | darwin*)
6992 if test -n "$ac_tool_prefix"; then
6993 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6994set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5213506e
RW
6995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6996$as_echo_n "checking for $ac_word... " >&6; }
6997if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6998 $as_echo_n "(cached) " >&6
1cf3d07d 6999else
93e92f52
PG
7000 if test -n "$DSYMUTIL"; then
7001 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7002else
7003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004for as_dir in $PATH
1cf3d07d 7005do
93e92f52
PG
7006 IFS=$as_save_IFS
7007 test -z "$as_dir" && as_dir=.
5213506e
RW
7008 for ac_exec_ext in '' $ac_executable_extensions; do
7009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
93e92f52 7010 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5213506e 7011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
93e92f52 7012 break 2
1cf3d07d 7013 fi
93e92f52 7014done
5213506e
RW
7015 done
7016IFS=$as_save_IFS
93e92f52
PG
7017
7018fi
7019fi
7020DSYMUTIL=$ac_cv_prog_DSYMUTIL
7021if test -n "$DSYMUTIL"; then
5213506e
RW
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7023$as_echo "$DSYMUTIL" >&6; }
93e92f52 7024else
5213506e
RW
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7026$as_echo "no" >&6; }
93e92f52
PG
7027fi
7028
5213506e 7029
93e92f52
PG
7030fi
7031if test -z "$ac_cv_prog_DSYMUTIL"; then
7032 ac_ct_DSYMUTIL=$DSYMUTIL
7033 # Extract the first word of "dsymutil", so it can be a program name with args.
7034set dummy dsymutil; ac_word=$2
5213506e
RW
7035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7036$as_echo_n "checking for $ac_word... " >&6; }
7037if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7038 $as_echo_n "(cached) " >&6
93e92f52
PG
7039else
7040 if test -n "$ac_ct_DSYMUTIL"; then
7041 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7042else
7043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044for as_dir in $PATH
7045do
7046 IFS=$as_save_IFS
7047 test -z "$as_dir" && as_dir=.
5213506e
RW
7048 for ac_exec_ext in '' $ac_executable_extensions; do
7049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
93e92f52 7050 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5213506e 7051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
93e92f52
PG
7052 break 2
7053 fi
7054done
5213506e
RW
7055 done
7056IFS=$as_save_IFS
93e92f52 7057
93e92f52
PG
7058fi
7059fi
7060ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7061if test -n "$ac_ct_DSYMUTIL"; then
5213506e
RW
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7063$as_echo "$ac_ct_DSYMUTIL" >&6; }
93e92f52 7064else
5213506e
RW
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066$as_echo "no" >&6; }
93e92f52
PG
7067fi
7068
5213506e
RW
7069 if test "x$ac_ct_DSYMUTIL" = x; then
7070 DSYMUTIL=":"
7071 else
7072 case $cross_compiling:$ac_tool_warned in
7073yes:)
7074{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7075$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7076ac_tool_warned=yes ;;
7077esac
7078 DSYMUTIL=$ac_ct_DSYMUTIL
7079 fi
93e92f52
PG
7080else
7081 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7082fi
7083
7084 if test -n "$ac_tool_prefix"; then
7085 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7086set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5213506e
RW
7087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7088$as_echo_n "checking for $ac_word... " >&6; }
7089if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7090 $as_echo_n "(cached) " >&6
93e92f52
PG
7091else
7092 if test -n "$NMEDIT"; then
7093 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7094else
7095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096for as_dir in $PATH
7097do
7098 IFS=$as_save_IFS
7099 test -z "$as_dir" && as_dir=.
5213506e
RW
7100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
93e92f52 7102 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5213506e 7103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
93e92f52
PG
7104 break 2
7105 fi
7106done
5213506e
RW
7107 done
7108IFS=$as_save_IFS
93e92f52
PG
7109
7110fi
7111fi
7112NMEDIT=$ac_cv_prog_NMEDIT
7113if test -n "$NMEDIT"; then
5213506e
RW
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7115$as_echo "$NMEDIT" >&6; }
93e92f52 7116else
5213506e
RW
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7118$as_echo "no" >&6; }
93e92f52
PG
7119fi
7120
5213506e 7121
93e92f52
PG
7122fi
7123if test -z "$ac_cv_prog_NMEDIT"; then
7124 ac_ct_NMEDIT=$NMEDIT
7125 # Extract the first word of "nmedit", so it can be a program name with args.
7126set dummy nmedit; ac_word=$2
5213506e
RW
7127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7128$as_echo_n "checking for $ac_word... " >&6; }
7129if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7130 $as_echo_n "(cached) " >&6
93e92f52
PG
7131else
7132 if test -n "$ac_ct_NMEDIT"; then
7133 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7134else
7135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136for as_dir in $PATH
7137do
7138 IFS=$as_save_IFS
7139 test -z "$as_dir" && as_dir=.
5213506e
RW
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
93e92f52 7142 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5213506e 7143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
93e92f52
PG
7144 break 2
7145 fi
7146done
5213506e
RW
7147 done
7148IFS=$as_save_IFS
93e92f52 7149
93e92f52
PG
7150fi
7151fi
7152ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7153if test -n "$ac_ct_NMEDIT"; then
5213506e
RW
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7155$as_echo "$ac_ct_NMEDIT" >&6; }
93e92f52 7156else
5213506e
RW
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7158$as_echo "no" >&6; }
93e92f52
PG
7159fi
7160
5213506e
RW
7161 if test "x$ac_ct_NMEDIT" = x; then
7162 NMEDIT=":"
7163 else
7164 case $cross_compiling:$ac_tool_warned in
7165yes:)
7166{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7168ac_tool_warned=yes ;;
7169esac
7170 NMEDIT=$ac_ct_NMEDIT
7171 fi
93e92f52
PG
7172else
7173 NMEDIT="$ac_cv_prog_NMEDIT"
7174fi
7175
7176 if test -n "$ac_tool_prefix"; then
7177 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7178set dummy ${ac_tool_prefix}lipo; ac_word=$2
5213506e
RW
7179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7180$as_echo_n "checking for $ac_word... " >&6; }
7181if test "${ac_cv_prog_LIPO+set}" = set; then :
7182 $as_echo_n "(cached) " >&6
93e92f52
PG
7183else
7184 if test -n "$LIPO"; then
7185 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7186else
7187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188for as_dir in $PATH
7189do
7190 IFS=$as_save_IFS
7191 test -z "$as_dir" && as_dir=.
5213506e
RW
7192 for ac_exec_ext in '' $ac_executable_extensions; do
7193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
93e92f52 7194 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5213506e 7195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
93e92f52
PG
7196 break 2
7197 fi
7198done
5213506e
RW
7199 done
7200IFS=$as_save_IFS
93e92f52
PG
7201
7202fi
7203fi
7204LIPO=$ac_cv_prog_LIPO
7205if test -n "$LIPO"; then
5213506e
RW
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7207$as_echo "$LIPO" >&6; }
93e92f52 7208else
5213506e
RW
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7210$as_echo "no" >&6; }
93e92f52
PG
7211fi
7212
5213506e 7213
93e92f52
PG
7214fi
7215if test -z "$ac_cv_prog_LIPO"; then
7216 ac_ct_LIPO=$LIPO
7217 # Extract the first word of "lipo", so it can be a program name with args.
7218set dummy lipo; ac_word=$2
5213506e
RW
7219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7220$as_echo_n "checking for $ac_word... " >&6; }
7221if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7222 $as_echo_n "(cached) " >&6
93e92f52
PG
7223else
7224 if test -n "$ac_ct_LIPO"; then
7225 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7226else
7227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228for as_dir in $PATH
7229do
7230 IFS=$as_save_IFS
7231 test -z "$as_dir" && as_dir=.
5213506e
RW
7232 for ac_exec_ext in '' $ac_executable_extensions; do
7233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
93e92f52 7234 ac_cv_prog_ac_ct_LIPO="lipo"
5213506e 7235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
93e92f52
PG
7236 break 2
7237 fi
7238done
5213506e
RW
7239 done
7240IFS=$as_save_IFS
93e92f52 7241
93e92f52
PG
7242fi
7243fi
7244ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7245if test -n "$ac_ct_LIPO"; then
5213506e
RW
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7247$as_echo "$ac_ct_LIPO" >&6; }
93e92f52 7248else
5213506e
RW
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7250$as_echo "no" >&6; }
93e92f52
PG
7251fi
7252
5213506e
RW
7253 if test "x$ac_ct_LIPO" = x; then
7254 LIPO=":"
7255 else
7256 case $cross_compiling:$ac_tool_warned in
7257yes:)
7258{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7259$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7260ac_tool_warned=yes ;;
7261esac
7262 LIPO=$ac_ct_LIPO
7263 fi
93e92f52
PG
7264else
7265 LIPO="$ac_cv_prog_LIPO"
7266fi
7267
7268 if test -n "$ac_tool_prefix"; then
7269 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7270set dummy ${ac_tool_prefix}otool; ac_word=$2
5213506e
RW
7271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7272$as_echo_n "checking for $ac_word... " >&6; }
7273if test "${ac_cv_prog_OTOOL+set}" = set; then :
7274 $as_echo_n "(cached) " >&6
93e92f52
PG
7275else
7276 if test -n "$OTOOL"; then
7277 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7278else
7279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280for as_dir in $PATH
7281do
7282 IFS=$as_save_IFS
7283 test -z "$as_dir" && as_dir=.
5213506e
RW
7284 for ac_exec_ext in '' $ac_executable_extensions; do
7285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
93e92f52 7286 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5213506e 7287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
93e92f52
PG
7288 break 2
7289 fi
7290done
5213506e
RW
7291 done
7292IFS=$as_save_IFS
93e92f52
PG
7293
7294fi
7295fi
7296OTOOL=$ac_cv_prog_OTOOL
7297if test -n "$OTOOL"; then
5213506e
RW
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7299$as_echo "$OTOOL" >&6; }
93e92f52 7300else
5213506e
RW
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7302$as_echo "no" >&6; }
93e92f52
PG
7303fi
7304
5213506e 7305
93e92f52
PG
7306fi
7307if test -z "$ac_cv_prog_OTOOL"; then
7308 ac_ct_OTOOL=$OTOOL
7309 # Extract the first word of "otool", so it can be a program name with args.
7310set dummy otool; ac_word=$2
5213506e
RW
7311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7312$as_echo_n "checking for $ac_word... " >&6; }
7313if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7314 $as_echo_n "(cached) " >&6
93e92f52
PG
7315else
7316 if test -n "$ac_ct_OTOOL"; then
7317 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7318else
7319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320for as_dir in $PATH
7321do
7322 IFS=$as_save_IFS
7323 test -z "$as_dir" && as_dir=.
5213506e
RW
7324 for ac_exec_ext in '' $ac_executable_extensions; do
7325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
93e92f52 7326 ac_cv_prog_ac_ct_OTOOL="otool"
5213506e 7327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
93e92f52
PG
7328 break 2
7329 fi
7330done
5213506e
RW
7331 done
7332IFS=$as_save_IFS
93e92f52 7333
93e92f52
PG
7334fi
7335fi
7336ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7337if test -n "$ac_ct_OTOOL"; then
5213506e
RW
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7339$as_echo "$ac_ct_OTOOL" >&6; }
93e92f52 7340else
5213506e
RW
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7342$as_echo "no" >&6; }
93e92f52
PG
7343fi
7344
5213506e
RW
7345 if test "x$ac_ct_OTOOL" = x; then
7346 OTOOL=":"
7347 else
7348 case $cross_compiling:$ac_tool_warned in
7349yes:)
7350{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7351$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7352ac_tool_warned=yes ;;
7353esac
7354 OTOOL=$ac_ct_OTOOL
7355 fi
93e92f52
PG
7356else
7357 OTOOL="$ac_cv_prog_OTOOL"
7358fi
7359
7360 if test -n "$ac_tool_prefix"; then
7361 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7362set dummy ${ac_tool_prefix}otool64; ac_word=$2
5213506e
RW
7363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7364$as_echo_n "checking for $ac_word... " >&6; }
7365if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7366 $as_echo_n "(cached) " >&6
93e92f52
PG
7367else
7368 if test -n "$OTOOL64"; then
7369 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7370else
7371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372for as_dir in $PATH
7373do
7374 IFS=$as_save_IFS
7375 test -z "$as_dir" && as_dir=.
5213506e
RW
7376 for ac_exec_ext in '' $ac_executable_extensions; do
7377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
93e92f52 7378 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5213506e 7379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
93e92f52
PG
7380 break 2
7381 fi
7382done
5213506e
RW
7383 done
7384IFS=$as_save_IFS
93e92f52
PG
7385
7386fi
7387fi
7388OTOOL64=$ac_cv_prog_OTOOL64
7389if test -n "$OTOOL64"; then
5213506e
RW
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7391$as_echo "$OTOOL64" >&6; }
93e92f52 7392else
5213506e
RW
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7394$as_echo "no" >&6; }
93e92f52
PG
7395fi
7396
5213506e 7397
93e92f52
PG
7398fi
7399if test -z "$ac_cv_prog_OTOOL64"; then
7400 ac_ct_OTOOL64=$OTOOL64
7401 # Extract the first word of "otool64", so it can be a program name with args.
7402set dummy otool64; ac_word=$2
5213506e
RW
7403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404$as_echo_n "checking for $ac_word... " >&6; }
7405if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7406 $as_echo_n "(cached) " >&6
93e92f52
PG
7407else
7408 if test -n "$ac_ct_OTOOL64"; then
7409 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7410else
7411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412for as_dir in $PATH
7413do
7414 IFS=$as_save_IFS
7415 test -z "$as_dir" && as_dir=.
5213506e
RW
7416 for ac_exec_ext in '' $ac_executable_extensions; do
7417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
93e92f52 7418 ac_cv_prog_ac_ct_OTOOL64="otool64"
5213506e 7419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
93e92f52
PG
7420 break 2
7421 fi
7422done
5213506e
RW
7423 done
7424IFS=$as_save_IFS
93e92f52 7425
93e92f52
PG
7426fi
7427fi
7428ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7429if test -n "$ac_ct_OTOOL64"; then
5213506e
RW
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7431$as_echo "$ac_ct_OTOOL64" >&6; }
93e92f52 7432else
5213506e
RW
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434$as_echo "no" >&6; }
93e92f52
PG
7435fi
7436
5213506e
RW
7437 if test "x$ac_ct_OTOOL64" = x; then
7438 OTOOL64=":"
7439 else
7440 case $cross_compiling:$ac_tool_warned in
7441yes:)
7442{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7443$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7444ac_tool_warned=yes ;;
7445esac
7446 OTOOL64=$ac_ct_OTOOL64
7447 fi
93e92f52
PG
7448else
7449 OTOOL64="$ac_cv_prog_OTOOL64"
7450fi
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
5213506e
RW
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7479$as_echo_n "checking for -single_module linker flag... " >&6; }
7480if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7481 $as_echo_n "(cached) " >&6
93e92f52
PG
7482else
7483 lt_cv_apple_cc_single_mod=no
7484 if test -z "${LT_MULTI_MODULE}"; then
7485 # By default we will add the -single_module flag. You can override
7486 # by either setting the environment variable LT_MULTI_MODULE
7487 # non-empty at configure time, or by adding -multi_module to the
7488 # link flags.
7489 rm -rf libconftest.dylib*
7490 echo "int foo(void){return 1;}" > conftest.c
7491 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7492-dynamiclib -Wl,-single_module conftest.c" >&5
7493 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7494 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7495 _lt_result=$?
7496 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7497 lt_cv_apple_cc_single_mod=yes
7498 else
7499 cat conftest.err >&5
7500 fi
7501 rm -rf libconftest.dylib*
7502 rm -f conftest.*
7503 fi
7504fi
5213506e
RW
7505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7506$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7508$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7509if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7510 $as_echo_n "(cached) " >&6
93e92f52
PG
7511else
7512 lt_cv_ld_exported_symbols_list=no
7513 save_LDFLAGS=$LDFLAGS
7514 echo "_main" > conftest.sym
7515 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7516 if test x$gcc_no_link = xyes; then
5213506e 7517 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
93e92f52 7518fi
5213506e 7519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93e92f52
PG
7520/* end confdefs.h. */
7521
7522int
7523main ()
7524{
7525
7526 ;
7527 return 0;
7528}
7529_ACEOF
5213506e 7530if ac_fn_c_try_link "$LINENO"; then :
93e92f52
PG
7531 lt_cv_ld_exported_symbols_list=yes
7532else
5213506e 7533 lt_cv_ld_exported_symbols_list=no
93e92f52 7534fi
5213506e
RW
7535rm -f core conftest.err conftest.$ac_objext \
7536 conftest$ac_exeext conftest.$ac_ext
93e92f52
PG
7537 LDFLAGS="$save_LDFLAGS"
7538
7539fi
5213506e
RW
7540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7541$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
43e02a8a
RW
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7543$as_echo_n "checking for -force_load linker flag... " >&6; }
7544if test "${lt_cv_ld_force_load+set}" = set; then :
7545 $as_echo_n "(cached) " >&6
7546else
7547 lt_cv_ld_force_load=no
7548 cat > conftest.c << _LT_EOF
7549int forced_loaded() { return 2;}
7550_LT_EOF
7551 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7552 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7553 echo "$AR cru libconftest.a conftest.o" >&5
7554 $AR cru libconftest.a conftest.o 2>&5
7555 cat > conftest.c << _LT_EOF
7556int main() { return 0;}
7557_LT_EOF
7558 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7559 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7560 _lt_result=$?
7561 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7562 lt_cv_ld_force_load=yes
7563 else
7564 cat conftest.err >&5
7565 fi
7566 rm -f conftest.err libconftest.a conftest conftest.c
7567 rm -rf conftest.dSYM
7568
7569fi
7570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7571$as_echo "$lt_cv_ld_force_load" >&6; }
93e92f52
PG
7572 case $host_os in
7573 rhapsody* | darwin1.[012])
7574 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7575 darwin1.*)
7576 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7577 darwin*) # darwin 5.x on
7578 # if running on 10.5 or later, the deployment target defaults
7579 # to the OS version, if on x86, and 10.4, the deployment
7580 # target defaults to 10.4. Don't you love it?
7581 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7582 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7583 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7584 10.[012]*)
7585 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7586 10.*)
7587 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7588 esac
7589 ;;
7590 esac
7591 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7592 _lt_dar_single_mod='$single_module'
7593 fi
7594 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7595 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7596 else
7597 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7598 fi
43e02a8a 7599 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
93e92f52
PG
7600 _lt_dsymutil='~$DSYMUTIL $lib || :'
7601 else
7602 _lt_dsymutil=
7603 fi
7604 ;;
7605 esac
7606
7607ac_ext=c
7608ac_cpp='$CPP $CPPFLAGS'
7609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7611ac_compiler_gnu=$ac_cv_c_compiler_gnu
5213506e
RW
7612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7613$as_echo_n "checking how to run the C preprocessor... " >&6; }
93e92f52
PG
7614# On Suns, sometimes $CPP names a directory.
7615if test -n "$CPP" && test -d "$CPP"; then
7616 CPP=
7617fi
7618if test -z "$CPP"; then
5213506e
RW
7619 if test "${ac_cv_prog_CPP+set}" = set; then :
7620 $as_echo_n "(cached) " >&6
93e92f52
PG
7621else
7622 # Double quotes because CPP needs to be expanded
7623 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7624 do
7625 ac_preproc_ok=false
7626for ac_c_preproc_warn_flag in '' yes
7627do
7628 # Use a header file that comes with gcc, so configuring glibc
7629 # with a fresh cross-compiler works.
7630 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7631 # <limits.h> exists even on freestanding compilers.
7632 # On the NeXT, cc -E runs the code through the compiler's parser,
7633 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93e92f52
PG
7635/* end confdefs.h. */
7636#ifdef __STDC__
7637# include <limits.h>
7638#else
7639# include <assert.h>
7640#endif
7641 Syntax error
7642_ACEOF
5213506e 7643if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d 7644
5213506e 7645else
1cf3d07d
SE
7646 # Broken: fails on valid input.
7647continue
7648fi
7649rm -f conftest.err conftest.$ac_ext
7650
5213506e 7651 # OK, works on sane cases. Now check whether nonexistent headers
1cf3d07d 7652 # can be detected and how.
5213506e 7653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7654/* end confdefs.h. */
7655#include <ac_nonexistent.h>
7656_ACEOF
5213506e 7657if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d
SE
7658 # Broken: success on invalid input.
7659continue
7660else
1cf3d07d
SE
7661 # Passes both tests.
7662ac_preproc_ok=:
7663break
7664fi
7665rm -f conftest.err conftest.$ac_ext
7666
7667done
7668# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7669rm -f conftest.err conftest.$ac_ext
5213506e 7670if $ac_preproc_ok; then :
1cf3d07d
SE
7671 break
7672fi
7673
7674 done
7675 ac_cv_prog_CPP=$CPP
7676
7677fi
7678 CPP=$ac_cv_prog_CPP
7679else
7680 ac_cv_prog_CPP=$CPP
7681fi
5213506e
RW
7682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7683$as_echo "$CPP" >&6; }
1cf3d07d
SE
7684ac_preproc_ok=false
7685for ac_c_preproc_warn_flag in '' yes
7686do
7687 # Use a header file that comes with gcc, so configuring glibc
7688 # with a fresh cross-compiler works.
7689 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7690 # <limits.h> exists even on freestanding compilers.
7691 # On the NeXT, cc -E runs the code through the compiler's parser,
7692 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 7693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7694/* end confdefs.h. */
7695#ifdef __STDC__
7696# include <limits.h>
7697#else
7698# include <assert.h>
7699#endif
7700 Syntax error
7701_ACEOF
5213506e 7702if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d 7703
5213506e 7704else
1cf3d07d
SE
7705 # Broken: fails on valid input.
7706continue
7707fi
7708rm -f conftest.err conftest.$ac_ext
7709
5213506e 7710 # OK, works on sane cases. Now check whether nonexistent headers
1cf3d07d 7711 # can be detected and how.
5213506e 7712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7713/* end confdefs.h. */
7714#include <ac_nonexistent.h>
7715_ACEOF
5213506e 7716if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d
SE
7717 # Broken: success on invalid input.
7718continue
7719else
1cf3d07d
SE
7720 # Passes both tests.
7721ac_preproc_ok=:
7722break
7723fi
7724rm -f conftest.err conftest.$ac_ext
7725
7726done
7727# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7728rm -f conftest.err conftest.$ac_ext
5213506e
RW
7729if $ac_preproc_ok; then :
7730
1cf3d07d 7731else
5213506e
RW
7732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7733$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7734as_fn_error "C preprocessor \"$CPP\" fails sanity check
7735See \`config.log' for more details." "$LINENO" 5; }
1cf3d07d
SE
7736fi
7737
7738ac_ext=c
7739ac_cpp='$CPP $CPPFLAGS'
7740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7742ac_compiler_gnu=$ac_cv_c_compiler_gnu
7743
7744
5213506e
RW
7745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7746$as_echo_n "checking for ANSI C header files... " >&6; }
7747if test "${ac_cv_header_stdc+set}" = set; then :
7748 $as_echo_n "(cached) " >&6
1cf3d07d 7749else
5213506e 7750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7751/* end confdefs.h. */
7752#include <stdlib.h>
7753#include <stdarg.h>
7754#include <string.h>
7755#include <float.h>
7756
7757int
7758main ()
7759{
7760
7761 ;
7762 return 0;
7763}
7764_ACEOF
5213506e 7765if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d
SE
7766 ac_cv_header_stdc=yes
7767else
5213506e 7768 ac_cv_header_stdc=no
1cf3d07d 7769fi
5213506e 7770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
7771
7772if test $ac_cv_header_stdc = yes; then
7773 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5213506e 7774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7775/* end confdefs.h. */
7776#include <string.h>
7777
7778_ACEOF
7779if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
7780 $EGREP "memchr" >/dev/null 2>&1; then :
7781
1cf3d07d
SE
7782else
7783 ac_cv_header_stdc=no
7784fi
7785rm -f conftest*
7786
7787fi
7788
7789if test $ac_cv_header_stdc = yes; then
7790 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5213506e 7791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7792/* end confdefs.h. */
7793#include <stdlib.h>
7794
7795_ACEOF
7796if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
7797 $EGREP "free" >/dev/null 2>&1; then :
7798
1cf3d07d
SE
7799else
7800 ac_cv_header_stdc=no
7801fi
7802rm -f conftest*
7803
7804fi
7805
7806if test $ac_cv_header_stdc = yes; then
7807 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5213506e 7808 if test "$cross_compiling" = yes; then :
1cf3d07d
SE
7809 :
7810else
5213506e 7811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7812/* end confdefs.h. */
7813#include <ctype.h>
5213506e 7814#include <stdlib.h>
1cf3d07d
SE
7815#if ((' ' & 0x0FF) == 0x020)
7816# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7817# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7818#else
7819# define ISLOWER(c) \
7820 (('a' <= (c) && (c) <= 'i') \
7821 || ('j' <= (c) && (c) <= 'r') \
7822 || ('s' <= (c) && (c) <= 'z'))
7823# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7824#endif
7825
7826#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7827int
7828main ()
7829{
7830 int i;
7831 for (i = 0; i < 256; i++)
7832 if (XOR (islower (i), ISLOWER (i))
7833 || toupper (i) != TOUPPER (i))
5213506e
RW
7834 return 2;
7835 return 0;
1cf3d07d
SE
7836}
7837_ACEOF
5213506e 7838if ac_fn_c_try_run "$LINENO"; then :
1cf3d07d 7839
5213506e
RW
7840else
7841 ac_cv_header_stdc=no
1cf3d07d 7842fi
5213506e
RW
7843rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7844 conftest.$ac_objext conftest.beam conftest.$ac_ext
1cf3d07d 7845fi
5213506e 7846
1cf3d07d
SE
7847fi
7848fi
5213506e
RW
7849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7850$as_echo "$ac_cv_header_stdc" >&6; }
1cf3d07d
SE
7851if test $ac_cv_header_stdc = yes; then
7852
5213506e 7853$as_echo "#define STDC_HEADERS 1" >>confdefs.h
1cf3d07d
SE
7854
7855fi
7856
7857# On IRIX 5.3, sys/types and inttypes.h are conflicting.
1cf3d07d
SE
7858for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7859 inttypes.h stdint.h unistd.h
5213506e
RW
7860do :
7861 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7862ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7863"
7864eval as_val=\$$as_ac_Header
7865 if test "x$as_val" = x""yes; then :
1cf3d07d 7866 cat >>confdefs.h <<_ACEOF
5213506e 7867#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1cf3d07d
SE
7868_ACEOF
7869
7870fi
7871
7872done
7873
7874
1cf3d07d 7875for ac_header in dlfcn.h
5213506e
RW
7876do :
7877 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7878"
7879if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
1cf3d07d 7880 cat >>confdefs.h <<_ACEOF
5213506e 7881#define HAVE_DLFCN_H 1
1cf3d07d
SE
7882_ACEOF
7883
7884fi
7885
7886done
7887
7888
7889
1cf3d07d 7890
1cf3d07d 7891
5213506e 7892
43e02a8a 7893# Set options
1cf3d07d 7894
43e02a8a
RW
7895
7896
7897 enable_dlopen=no
7898
7899
7900 enable_win32_dll=no
7901
7902
7903 # Check whether --enable-shared was given.
7904if test "${enable_shared+set}" = set; then :
7905 enableval=$enable_shared; p=${PACKAGE-default}
7906 case $enableval in
7907 yes) enable_shared=yes ;;
7908 no) enable_shared=no ;;
7909 *)
7910 enable_shared=no
7911 # Look at the argument we got. We use all the common list separators.
7912 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7913 for pkg in $enableval; do
7914 IFS="$lt_save_ifs"
7915 if test "X$pkg" = "X$p"; then
7916 enable_shared=yes
7917 fi
7918 done
7919 IFS="$lt_save_ifs"
7920 ;;
7921 esac
1cf3d07d 7922else
43e02a8a 7923 enable_shared=yes
5213506e
RW
7924fi
7925
93e92f52
PG
7926
7927
7928
7929
7930
7931
7932
7933
5213506e
RW
7934 # Check whether --enable-static was given.
7935if test "${enable_static+set}" = set; then :
7936 enableval=$enable_static; p=${PACKAGE-default}
93e92f52
PG
7937 case $enableval in
7938 yes) enable_static=yes ;;
7939 no) enable_static=no ;;
7940 *)
7941 enable_static=no
7942 # Look at the argument we got. We use all the common list separators.
7943 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7944 for pkg in $enableval; do
7945 IFS="$lt_save_ifs"
7946 if test "X$pkg" = "X$p"; then
7947 enable_static=yes
7948 fi
7949 done
7950 IFS="$lt_save_ifs"
7951 ;;
7952 esac
7953else
7954 enable_static=yes
5213506e
RW
7955fi
7956
93e92f52
PG
7957
7958
7959
7960
7961
7962
7963
7964
7965
5213506e
RW
7966# Check whether --with-pic was given.
7967if test "${with_pic+set}" = set; then :
7968 withval=$with_pic; pic_mode="$withval"
93e92f52
PG
7969else
7970 pic_mode=default
5213506e
RW
7971fi
7972
93e92f52
PG
7973
7974test -z "$pic_mode" && pic_mode=default
7975
7976
7977
7978
7979
7980
7981
5213506e
RW
7982 # Check whether --enable-fast-install was given.
7983if test "${enable_fast_install+set}" = set; then :
7984 enableval=$enable_fast_install; p=${PACKAGE-default}
93e92f52
PG
7985 case $enableval in
7986 yes) enable_fast_install=yes ;;
7987 no) enable_fast_install=no ;;
7988 *)
7989 enable_fast_install=no
7990 # Look at the argument we got. We use all the common list separators.
7991 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7992 for pkg in $enableval; do
7993 IFS="$lt_save_ifs"
7994 if test "X$pkg" = "X$p"; then
7995 enable_fast_install=yes
7996 fi
7997 done
7998 IFS="$lt_save_ifs"
7999 ;;
8000 esac
8001else
8002 enable_fast_install=yes
5213506e
RW
8003fi
8004
93e92f52
PG
8005
8006
8007
8008
1cf3d07d 8009
1cf3d07d
SE
8010
8011
8012
8013
8014
8015# This can be used to rebuild libtool when needed
8016LIBTOOL_DEPS="$ltmain"
8017
8018# Always use our own libtool.
8019LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
43e02a8a 8043
1cf3d07d
SE
8044
8045
8046test -z "$LN_S" && LN_S="ln -s"
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061if test -n "${ZSH_VERSION+set}" ; then
8062 setopt NO_GLOB_SUBST
8063fi
8064
5213506e
RW
8065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8066$as_echo_n "checking for objdir... " >&6; }
8067if test "${lt_cv_objdir+set}" = set; then :
8068 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8069else
8070 rm -f .libs 2>/dev/null
8071mkdir .libs 2>/dev/null
8072if test -d .libs; then
8073 lt_cv_objdir=.libs
8074else
8075 # MS-DOS does not allow filenames that begin with a dot.
8076 lt_cv_objdir=_libs
8077fi
8078rmdir .libs 2>/dev/null
8079fi
5213506e
RW
8080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8081$as_echo "$lt_cv_objdir" >&6; }
1cf3d07d
SE
8082objdir=$lt_cv_objdir
8083
8084
8085
8086
8087
8088cat >>confdefs.h <<_ACEOF
8089#define LT_OBJDIR "$lt_cv_objdir/"
8090_ACEOF
8091
8092
8093
8094
1cf3d07d
SE
8095case $host_os in
8096aix3*)
8097 # AIX sometimes has problems with the GCC collect2 program. For some
8098 # reason, if we set the COLLECT_NAMES environment variable, the problems
8099 # vanish in a puff of smoke.
8100 if test "X${COLLECT_NAMES+set}" != Xset; then
8101 COLLECT_NAMES=
8102 export COLLECT_NAMES
8103 fi
8104 ;;
8105esac
8106
1cf3d07d
SE
8107# Global variables:
8108ofile=libtool
8109can_build_shared=yes
8110
8111# All known linkers require a `.a' archive for static linking (except MSVC,
8112# which needs '.lib').
8113libext=a
8114
8115with_gnu_ld="$lt_cv_prog_gnu_ld"
8116
8117old_CC="$CC"
8118old_CFLAGS="$CFLAGS"
8119
8120# Set sane defaults for various variables
8121test -z "$CC" && CC=cc
8122test -z "$LTCC" && LTCC=$CC
8123test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8124test -z "$LD" && LD=ld
8125test -z "$ac_objext" && ac_objext=o
8126
8127for cc_temp in $compiler""; do
8128 case $cc_temp in
8129 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8130 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8131 \-*) ;;
8132 *) break;;
8133 esac
8134done
43e02a8a 8135cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1cf3d07d
SE
8136
8137
8138# Only perform the check for file, if the check method requires it
8139test -z "$MAGIC_CMD" && MAGIC_CMD=file
8140case $deplibs_check_method in
8141file_magic*)
8142 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5213506e
RW
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8144$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8145if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8146 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8147else
8148 case $MAGIC_CMD in
8149[\\/*] | ?:[\\/]*)
8150 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8151 ;;
8152*)
8153 lt_save_MAGIC_CMD="$MAGIC_CMD"
8154 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8155 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8156 for ac_dir in $ac_dummy; do
8157 IFS="$lt_save_ifs"
8158 test -z "$ac_dir" && ac_dir=.
8159 if test -f $ac_dir/${ac_tool_prefix}file; then
8160 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8161 if test -n "$file_magic_test_file"; then
8162 case $deplibs_check_method in
8163 "file_magic "*)
8164 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8165 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8166 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8167 $EGREP "$file_magic_regex" > /dev/null; then
8168 :
8169 else
8170 cat <<_LT_EOF 1>&2
8171
8172*** Warning: the command libtool uses to detect shared libraries,
8173*** $file_magic_cmd, produces output that libtool cannot recognize.
8174*** The result is that libtool may fail to recognize shared libraries
8175*** as such. This will affect the creation of libtool libraries that
8176*** depend on shared libraries, but programs linked with such libtool
8177*** libraries will work regardless of this problem. Nevertheless, you
8178*** may want to report the problem to your system manager and/or to
8179*** bug-libtool@gnu.org
8180
8181_LT_EOF
8182 fi ;;
8183 esac
8184 fi
8185 break
8186 fi
8187 done
8188 IFS="$lt_save_ifs"
8189 MAGIC_CMD="$lt_save_MAGIC_CMD"
8190 ;;
8191esac
8192fi
8193
8194MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8195if test -n "$MAGIC_CMD"; then
5213506e
RW
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8197$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 8198else
5213506e
RW
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8200$as_echo "no" >&6; }
1cf3d07d
SE
8201fi
8202
8203
8204
8205
8206
8207if test -z "$lt_cv_path_MAGIC_CMD"; then
8208 if test -n "$ac_tool_prefix"; then
5213506e
RW
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8210$as_echo_n "checking for file... " >&6; }
8211if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8212 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8213else
8214 case $MAGIC_CMD in
8215[\\/*] | ?:[\\/]*)
8216 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8217 ;;
8218*)
8219 lt_save_MAGIC_CMD="$MAGIC_CMD"
8220 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8221 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8222 for ac_dir in $ac_dummy; do
8223 IFS="$lt_save_ifs"
8224 test -z "$ac_dir" && ac_dir=.
8225 if test -f $ac_dir/file; then
8226 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8227 if test -n "$file_magic_test_file"; then
8228 case $deplibs_check_method in
8229 "file_magic "*)
8230 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8231 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8232 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8233 $EGREP "$file_magic_regex" > /dev/null; then
8234 :
8235 else
8236 cat <<_LT_EOF 1>&2
8237
8238*** Warning: the command libtool uses to detect shared libraries,
8239*** $file_magic_cmd, produces output that libtool cannot recognize.
8240*** The result is that libtool may fail to recognize shared libraries
8241*** as such. This will affect the creation of libtool libraries that
8242*** depend on shared libraries, but programs linked with such libtool
8243*** libraries will work regardless of this problem. Nevertheless, you
8244*** may want to report the problem to your system manager and/or to
8245*** bug-libtool@gnu.org
8246
8247_LT_EOF
8248 fi ;;
8249 esac
8250 fi
8251 break
8252 fi
8253 done
8254 IFS="$lt_save_ifs"
8255 MAGIC_CMD="$lt_save_MAGIC_CMD"
8256 ;;
8257esac
8258fi
8259
8260MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8261if test -n "$MAGIC_CMD"; then
5213506e
RW
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8263$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 8264else
5213506e
RW
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266$as_echo "no" >&6; }
1cf3d07d
SE
8267fi
8268
8269
8270 else
8271 MAGIC_CMD=:
8272 fi
8273fi
8274
8275 fi
8276 ;;
8277esac
8278
8279# Use C for the default configuration in the libtool script
8280
8281lt_save_CC="$CC"
8282ac_ext=c
8283ac_cpp='$CPP $CPPFLAGS'
8284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8286ac_compiler_gnu=$ac_cv_c_compiler_gnu
8287
8288
8289# Source file extension for C test sources.
8290ac_ext=c
8291
8292# Object file extension for compiled C test sources.
8293objext=o
8294objext=$objext
8295
8296# Code to be used in simple compile tests
8297lt_simple_compile_test_code="int some_variable = 0;"
8298
8299# Code to be used in simple link tests
8300lt_simple_link_test_code='int main(){return(0);}'
8301
8302
8303
8304
8305
8306
8307
8308# If no C compiler was specified, use CC.
8309LTCC=${LTCC-"$CC"}
8310
8311# If no C compiler flags were specified, use CFLAGS.
8312LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8313
8314# Allow CC to be a program name with arguments.
8315compiler=$CC
8316
8317# Save the default compiler, since it gets overwritten when the other
8318# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8319compiler_DEFAULT=$CC
8320
8321# save warnings/boilerplate of simple test code
8322ac_outfile=conftest.$ac_objext
8323echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8324eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8325_lt_compiler_boilerplate=`cat conftest.err`
8326$RM conftest*
8327
8328ac_outfile=conftest.$ac_objext
8329echo "$lt_simple_link_test_code" >conftest.$ac_ext
8330eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8331_lt_linker_boilerplate=`cat conftest.err`
93e92f52 8332$RM -r conftest*
1cf3d07d
SE
8333
8334
8335## CAVEAT EMPTOR:
8336## There is no encapsulation within the following macros, do not change
8337## the running order or otherwise move them around unless you know exactly
8338## what you are doing...
8339if test -n "$compiler"; then
8340
8341lt_prog_compiler_no_builtin_flag=
8342
8343if test "$GCC" = yes; then
43e02a8a
RW
8344 case $cc_basename in
8345 nvcc*)
8346 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8347 *)
8348 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8349 esac
1cf3d07d 8350
5213506e
RW
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8352$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8353if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8354 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8355else
8356 lt_cv_prog_compiler_rtti_exceptions=no
8357 ac_outfile=conftest.$ac_objext
8358 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8359 lt_compiler_flag="-fno-rtti -fno-exceptions"
8360 # Insert the option either (1) after the last *FLAGS variable, or
8361 # (2) before a word containing "conftest.", or (3) at the end.
8362 # Note that $ac_compile itself does not contain backslashes and begins
8363 # with a dollar sign (not a hyphen), so the echo should work correctly.
8364 # The option is referenced via a variable to avoid confusing sed.
8365 lt_compile=`echo "$ac_compile" | $SED \
8366 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8368 -e 's:$: $lt_compiler_flag:'`
43e02a8a 8369 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
8370 (eval "$lt_compile" 2>conftest.err)
8371 ac_status=$?
8372 cat conftest.err >&5
43e02a8a 8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
8374 if (exit $ac_status) && test -s "$ac_outfile"; then
8375 # The compiler can only warn and ignore the option if not recognized
8376 # So say no if there are warnings other than the usual output.
43e02a8a 8377 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
8378 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8379 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8380 lt_cv_prog_compiler_rtti_exceptions=yes
8381 fi
8382 fi
8383 $RM conftest*
8384
8385fi
5213506e
RW
8386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8387$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1cf3d07d
SE
8388
8389if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8390 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8391else
8392 :
8393fi
8394
8395fi
8396
8397
8398
8399
8400
8401
8402 lt_prog_compiler_wl=
8403lt_prog_compiler_pic=
8404lt_prog_compiler_static=
8405
5213506e
RW
8406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8407$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
8408
8409 if test "$GCC" = yes; then
8410 lt_prog_compiler_wl='-Wl,'
8411 lt_prog_compiler_static='-static'
8412
8413 case $host_os in
8414 aix*)
8415 # All AIX code is PIC.
8416 if test "$host_cpu" = ia64; then
8417 # AIX 5 now supports IA64 processor
8418 lt_prog_compiler_static='-Bstatic'
8419 fi
8420 ;;
8421
8422 amigaos*)
93e92f52
PG
8423 case $host_cpu in
8424 powerpc)
8425 # see comment about AmigaOS4 .so support
8426 lt_prog_compiler_pic='-fPIC'
8427 ;;
8428 m68k)
8429 # FIXME: we need at least 68020 code to build shared libraries, but
8430 # adding the `-m68020' flag to GCC prevents building anything better,
8431 # like `-m68040'.
8432 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8433 ;;
8434 esac
1cf3d07d
SE
8435 ;;
8436
8437 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8438 # PIC is the default for these OSes.
8439 ;;
8440
93e92f52 8441 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
8442 # This hack is so that the source file can tell whether it is being
8443 # built for inclusion in a dll (and should export symbols for example).
8444 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8445 # (--disable-auto-import) libraries
8446 lt_prog_compiler_pic='-DDLL_EXPORT'
8447 ;;
8448
8449 darwin* | rhapsody*)
8450 # PIC is the default on this platform
8451 # Common symbols not allowed in MH_DYLIB files
8452 lt_prog_compiler_pic='-fno-common'
8453 ;;
8454
43e02a8a
RW
8455 haiku*)
8456 # PIC is the default for Haiku.
8457 # The "-static" flag exists, but is broken.
8458 lt_prog_compiler_static=
8459 ;;
8460
1cf3d07d 8461 hpux*)
93e92f52
PG
8462 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8463 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8464 # sets the default TLS model and affects inlining.
1cf3d07d 8465 case $host_cpu in
93e92f52 8466 hppa*64*)
1cf3d07d
SE
8467 # +Z the default
8468 ;;
8469 *)
8470 lt_prog_compiler_pic='-fPIC'
8471 ;;
8472 esac
8473 ;;
8474
8475 interix[3-9]*)
8476 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8477 # Instead, we relocate shared libraries at runtime.
8478 ;;
8479
8480 msdosdjgpp*)
8481 # Just because we use GCC doesn't mean we suddenly get shared libraries
8482 # on systems that don't support them.
8483 lt_prog_compiler_can_build_shared=no
8484 enable_shared=no
8485 ;;
8486
8487 *nto* | *qnx*)
8488 # QNX uses GNU C++, but need to define -shared option too, otherwise
8489 # it will coredump.
8490 lt_prog_compiler_pic='-fPIC -shared'
8491 ;;
8492
8493 sysv4*MP*)
8494 if test -d /usr/nec; then
8495 lt_prog_compiler_pic=-Kconform_pic
8496 fi
8497 ;;
8498
8499 *)
8500 lt_prog_compiler_pic='-fPIC'
8501 ;;
8502 esac
43e02a8a
RW
8503
8504 case $cc_basename in
8505 nvcc*) # Cuda Compiler Driver 2.2
8506 lt_prog_compiler_wl='-Xlinker '
8507 lt_prog_compiler_pic='-Xcompiler -fPIC'
8508 ;;
8509 esac
1cf3d07d
SE
8510 else
8511 # PORTME Check for flag to pass linker flags through the system compiler.
8512 case $host_os in
8513 aix*)
8514 lt_prog_compiler_wl='-Wl,'
8515 if test "$host_cpu" = ia64; then
8516 # AIX 5 now supports IA64 processor
8517 lt_prog_compiler_static='-Bstatic'
8518 else
8519 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8520 fi
8521 ;;
1cf3d07d 8522
93e92f52 8523 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
8524 # This hack is so that the source file can tell whether it is being
8525 # built for inclusion in a dll (and should export symbols for example).
8526 lt_prog_compiler_pic='-DDLL_EXPORT'
8527 ;;
8528
8529 hpux9* | hpux10* | hpux11*)
8530 lt_prog_compiler_wl='-Wl,'
8531 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8532 # not for PA HP-UX.
8533 case $host_cpu in
8534 hppa*64*|ia64*)
8535 # +Z the default
8536 ;;
8537 *)
8538 lt_prog_compiler_pic='+Z'
8539 ;;
8540 esac
8541 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8542 lt_prog_compiler_static='${wl}-a ${wl}archive'
8543 ;;
8544
8545 irix5* | irix6* | nonstopux*)
8546 lt_prog_compiler_wl='-Wl,'
8547 # PIC (with -KPIC) is the default.
8548 lt_prog_compiler_static='-non_shared'
8549 ;;
8550
7a9d3fe8 8551 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 8552 case $cc_basename in
93e92f52
PG
8553 # old Intel for x86_64 which still supported -KPIC.
8554 ecc*)
1cf3d07d
SE
8555 lt_prog_compiler_wl='-Wl,'
8556 lt_prog_compiler_pic='-KPIC'
8557 lt_prog_compiler_static='-static'
8558 ;;
93e92f52
PG
8559 # icc used to be incompatible with GCC.
8560 # ICC 10 doesn't accept -KPIC any more.
8561 icc* | ifort*)
8562 lt_prog_compiler_wl='-Wl,'
8563 lt_prog_compiler_pic='-fPIC'
8564 lt_prog_compiler_static='-static'
8565 ;;
8566 # Lahey Fortran 8.1.
8567 lf95*)
8568 lt_prog_compiler_wl='-Wl,'
8569 lt_prog_compiler_pic='--shared'
8570 lt_prog_compiler_static='--static'
8571 ;;
43e02a8a 8572 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
1cf3d07d
SE
8573 # Portland Group compilers (*not* the Pentium gcc compiler,
8574 # which looks to be a dead project)
8575 lt_prog_compiler_wl='-Wl,'
8576 lt_prog_compiler_pic='-fpic'
8577 lt_prog_compiler_static='-Bstatic'
8578 ;;
8579 ccc*)
8580 lt_prog_compiler_wl='-Wl,'
8581 # All Alpha code is PIC.
8582 lt_prog_compiler_static='-non_shared'
8583 ;;
43e02a8a
RW
8584 xl* | bgxl* | bgf* | mpixl*)
8585 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
93e92f52
PG
8586 lt_prog_compiler_wl='-Wl,'
8587 lt_prog_compiler_pic='-qpic'
8588 lt_prog_compiler_static='-qstaticlink'
8589 ;;
1cf3d07d
SE
8590 *)
8591 case `$CC -V 2>&1 | sed 5q` in
43e02a8a
RW
8592 *Sun\ F* | *Sun*Fortran*)
8593 # Sun Fortran 8.3 passes all unrecognized flags to the linker
1cf3d07d
SE
8594 lt_prog_compiler_pic='-KPIC'
8595 lt_prog_compiler_static='-Bstatic'
43e02a8a 8596 lt_prog_compiler_wl=''
1cf3d07d 8597 ;;
43e02a8a
RW
8598 *Sun\ C*)
8599 # Sun C 5.9
1cf3d07d
SE
8600 lt_prog_compiler_pic='-KPIC'
8601 lt_prog_compiler_static='-Bstatic'
43e02a8a 8602 lt_prog_compiler_wl='-Wl,'
1cf3d07d
SE
8603 ;;
8604 esac
8605 ;;
8606 esac
8607 ;;
8608
8609 newsos6)
8610 lt_prog_compiler_pic='-KPIC'
8611 lt_prog_compiler_static='-Bstatic'
8612 ;;
8613
8614 *nto* | *qnx*)
8615 # QNX uses GNU C++, but need to define -shared option too, otherwise
8616 # it will coredump.
8617 lt_prog_compiler_pic='-fPIC -shared'
8618 ;;
8619
8620 osf3* | osf4* | osf5*)
8621 lt_prog_compiler_wl='-Wl,'
8622 # All OSF/1 code is PIC.
8623 lt_prog_compiler_static='-non_shared'
8624 ;;
8625
8626 rdos*)
8627 lt_prog_compiler_static='-non_shared'
8628 ;;
8629
8630 solaris*)
8631 lt_prog_compiler_pic='-KPIC'
8632 lt_prog_compiler_static='-Bstatic'
8633 case $cc_basename in
8634 f77* | f90* | f95*)
8635 lt_prog_compiler_wl='-Qoption ld ';;
8636 *)
8637 lt_prog_compiler_wl='-Wl,';;
8638 esac
8639 ;;
8640
8641 sunos4*)
8642 lt_prog_compiler_wl='-Qoption ld '
8643 lt_prog_compiler_pic='-PIC'
8644 lt_prog_compiler_static='-Bstatic'
8645 ;;
8646
8647 sysv4 | sysv4.2uw2* | sysv4.3*)
8648 lt_prog_compiler_wl='-Wl,'
8649 lt_prog_compiler_pic='-KPIC'
8650 lt_prog_compiler_static='-Bstatic'
8651 ;;
8652
8653 sysv4*MP*)
8654 if test -d /usr/nec ;then
8655 lt_prog_compiler_pic='-Kconform_pic'
8656 lt_prog_compiler_static='-Bstatic'
8657 fi
8658 ;;
8659
8660 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8661 lt_prog_compiler_wl='-Wl,'
8662 lt_prog_compiler_pic='-KPIC'
8663 lt_prog_compiler_static='-Bstatic'
8664 ;;
8665
8666 unicos*)
8667 lt_prog_compiler_wl='-Wl,'
8668 lt_prog_compiler_can_build_shared=no
8669 ;;
8670
8671 uts4*)
8672 lt_prog_compiler_pic='-pic'
8673 lt_prog_compiler_static='-Bstatic'
8674 ;;
8675
8676 *)
8677 lt_prog_compiler_can_build_shared=no
8678 ;;
8679 esac
8680 fi
8681
8682case $host_os in
8683 # For platforms which do not support PIC, -DPIC is meaningless:
8684 *djgpp*)
8685 lt_prog_compiler_pic=
8686 ;;
8687 *)
8688 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8689 ;;
8690esac
5213506e
RW
8691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8692$as_echo "$lt_prog_compiler_pic" >&6; }
1cf3d07d
SE
8693
8694
8695
8696
8697
8698
8699#
8700# Check to make sure the PIC flag actually works.
8701#
8702if test -n "$lt_prog_compiler_pic"; then
5213506e
RW
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8704$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8705if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8706 $as_echo_n "(cached) " >&6
1cf3d07d 8707else
93e92f52 8708 lt_cv_prog_compiler_pic_works=no
1cf3d07d
SE
8709 ac_outfile=conftest.$ac_objext
8710 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8711 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8712 # Insert the option either (1) after the last *FLAGS variable, or
8713 # (2) before a word containing "conftest.", or (3) at the end.
8714 # Note that $ac_compile itself does not contain backslashes and begins
8715 # with a dollar sign (not a hyphen), so the echo should work correctly.
8716 # The option is referenced via a variable to avoid confusing sed.
8717 lt_compile=`echo "$ac_compile" | $SED \
8718 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8719 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8720 -e 's:$: $lt_compiler_flag:'`
43e02a8a 8721 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
8722 (eval "$lt_compile" 2>conftest.err)
8723 ac_status=$?
8724 cat conftest.err >&5
43e02a8a 8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
8726 if (exit $ac_status) && test -s "$ac_outfile"; then
8727 # The compiler can only warn and ignore the option if not recognized
8728 # So say no if there are warnings other than the usual output.
43e02a8a 8729 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
8730 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8731 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
93e92f52 8732 lt_cv_prog_compiler_pic_works=yes
1cf3d07d
SE
8733 fi
8734 fi
8735 $RM conftest*
8736
8737fi
5213506e
RW
8738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8739$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1cf3d07d 8740
93e92f52 8741if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1cf3d07d
SE
8742 case $lt_prog_compiler_pic in
8743 "" | " "*) ;;
8744 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8745 esac
8746else
8747 lt_prog_compiler_pic=
8748 lt_prog_compiler_can_build_shared=no
8749fi
8750
8751fi
8752
8753
8754
8755
8756
8757
8758#
8759# Check to make sure the static flag actually works.
8760#
8761wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
5213506e
RW
8762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8763$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8764if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8765 $as_echo_n "(cached) " >&6
1cf3d07d 8766else
93e92f52 8767 lt_cv_prog_compiler_static_works=no
1cf3d07d
SE
8768 save_LDFLAGS="$LDFLAGS"
8769 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8770 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8771 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8772 # The linker can only warn and ignore the option if not recognized
8773 # So say no if there are warnings
8774 if test -s conftest.err; then
8775 # Append any errors to the config.log.
8776 cat conftest.err 1>&5
43e02a8a 8777 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1cf3d07d
SE
8778 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8779 if diff conftest.exp conftest.er2 >/dev/null; then
93e92f52 8780 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
8781 fi
8782 else
93e92f52 8783 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
8784 fi
8785 fi
93e92f52 8786 $RM -r conftest*
1cf3d07d
SE
8787 LDFLAGS="$save_LDFLAGS"
8788
8789fi
5213506e
RW
8790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8791$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1cf3d07d 8792
93e92f52 8793if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1cf3d07d
SE
8794 :
8795else
8796 lt_prog_compiler_static=
8797fi
8798
8799
8800
8801
8802
8803
8804
5213506e
RW
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8806$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8807if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8808 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8809else
8810 lt_cv_prog_compiler_c_o=no
8811 $RM -r conftest 2>/dev/null
8812 mkdir conftest
8813 cd conftest
8814 mkdir out
8815 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8816
8817 lt_compiler_flag="-o out/conftest2.$ac_objext"
8818 # Insert the option either (1) after the last *FLAGS variable, or
8819 # (2) before a word containing "conftest.", or (3) at the end.
8820 # Note that $ac_compile itself does not contain backslashes and begins
8821 # with a dollar sign (not a hyphen), so the echo should work correctly.
8822 lt_compile=`echo "$ac_compile" | $SED \
8823 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8824 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8825 -e 's:$: $lt_compiler_flag:'`
43e02a8a 8826 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
8827 (eval "$lt_compile" 2>out/conftest.err)
8828 ac_status=$?
8829 cat out/conftest.err >&5
43e02a8a 8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
8831 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8832 then
8833 # The compiler can only warn and ignore the option if not recognized
8834 # So say no if there are warnings
43e02a8a 8835 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
8836 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8837 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8838 lt_cv_prog_compiler_c_o=yes
8839 fi
8840 fi
8841 chmod u+w . 2>&5
8842 $RM conftest*
8843 # SGI C++ compiler will create directory out/ii_files/ for
8844 # template instantiation
8845 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8846 $RM out/* && rmdir out
8847 cd ..
8848 $RM -r conftest
8849 $RM conftest*
8850
8851fi
5213506e
RW
8852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8853$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
8854
8855
8856
8857
8858
8859
5213506e
RW
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8861$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8862if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8863 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8864else
8865 lt_cv_prog_compiler_c_o=no
8866 $RM -r conftest 2>/dev/null
8867 mkdir conftest
8868 cd conftest
8869 mkdir out
8870 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8871
8872 lt_compiler_flag="-o out/conftest2.$ac_objext"
8873 # Insert the option either (1) after the last *FLAGS variable, or
8874 # (2) before a word containing "conftest.", or (3) at the end.
8875 # Note that $ac_compile itself does not contain backslashes and begins
8876 # with a dollar sign (not a hyphen), so the echo should work correctly.
8877 lt_compile=`echo "$ac_compile" | $SED \
8878 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8879 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8880 -e 's:$: $lt_compiler_flag:'`
43e02a8a 8881 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
8882 (eval "$lt_compile" 2>out/conftest.err)
8883 ac_status=$?
8884 cat out/conftest.err >&5
43e02a8a 8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
8886 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8887 then
8888 # The compiler can only warn and ignore the option if not recognized
8889 # So say no if there are warnings
43e02a8a 8890 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
8891 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8892 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8893 lt_cv_prog_compiler_c_o=yes
8894 fi
8895 fi
8896 chmod u+w . 2>&5
8897 $RM conftest*
8898 # SGI C++ compiler will create directory out/ii_files/ for
8899 # template instantiation
8900 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8901 $RM out/* && rmdir out
8902 cd ..
8903 $RM -r conftest
8904 $RM conftest*
8905
8906fi
5213506e
RW
8907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8908$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
8909
8910
8911
8912
8913hard_links="nottested"
8914if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8915 # do not overwrite the value of need_locks provided by the user
5213506e
RW
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8917$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
8918 hard_links=yes
8919 $RM conftest*
8920 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8921 touch conftest.a
8922 ln conftest.a conftest.b 2>&5 || hard_links=no
8923 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8925$as_echo "$hard_links" >&6; }
1cf3d07d 8926 if test "$hard_links" = no; then
5213506e
RW
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8928$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
8929 need_locks=warn
8930 fi
8931else
8932 need_locks=no
8933fi
8934
8935
8936
8937
8938
8939
5213506e
RW
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8941$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
8942
8943 runpath_var=
8944 allow_undefined_flag=
8945 always_export_symbols=no
8946 archive_cmds=
8947 archive_expsym_cmds=
8948 compiler_needs_object=no
8949 enable_shared_with_static_runtimes=no
8950 export_dynamic_flag_spec=
8951 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8952 hardcode_automatic=no
8953 hardcode_direct=no
8954 hardcode_direct_absolute=no
8955 hardcode_libdir_flag_spec=
8956 hardcode_libdir_flag_spec_ld=
8957 hardcode_libdir_separator=
8958 hardcode_minus_L=no
8959 hardcode_shlibpath_var=unsupported
8960 inherit_rpath=no
8961 link_all_deplibs=unknown
8962 module_cmds=
8963 module_expsym_cmds=
8964 old_archive_from_new_cmds=
8965 old_archive_from_expsyms_cmds=
8966 thread_safe_flag_spec=
8967 whole_archive_flag_spec=
8968 # include_expsyms should be a list of space-separated symbols to be *always*
8969 # included in the symbol list
8970 include_expsyms=
8971 # exclude_expsyms can be an extended regexp of symbols to exclude
8972 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8973 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8974 # as well as any symbol that contains `d'.
93e92f52 8975 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
8976 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8977 # platforms (ab)use it in PIC code, but their linkers get confused if
8978 # the symbol is explicitly referenced. Since portable code cannot
8979 # rely on this symbol name, it's probably fine to never include it in
8980 # preloaded symbol tables.
93e92f52 8981 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
8982 extract_expsyms_cmds=
8983
8984 case $host_os in
93e92f52 8985 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
8986 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8987 # When not using gcc, we currently assume that we are using
8988 # Microsoft Visual C++.
8989 if test "$GCC" != yes; then
8990 with_gnu_ld=no
8991 fi
8992 ;;
8993 interix*)
8994 # we just hope/assume this is gcc and not c89 (= MSVC++)
8995 with_gnu_ld=yes
8996 ;;
8997 openbsd*)
8998 with_gnu_ld=no
8999 ;;
9000 esac
9001
9002 ld_shlibs=yes
43e02a8a
RW
9003
9004 # On some targets, GNU ld is compatible enough with the native linker
9005 # that we're better off using the native interface for both.
9006 lt_use_gnu_ld_interface=no
1cf3d07d 9007 if test "$with_gnu_ld" = yes; then
43e02a8a
RW
9008 case $host_os in
9009 aix*)
9010 # The AIX port of GNU ld has always aspired to compatibility
9011 # with the native linker. However, as the warning in the GNU ld
9012 # block says, versions before 2.19.5* couldn't really create working
9013 # shared libraries, regardless of the interface used.
9014 case `$LD -v 2>&1` in
9015 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9016 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9017 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9018 *)
9019 lt_use_gnu_ld_interface=yes
9020 ;;
9021 esac
9022 ;;
9023 *)
9024 lt_use_gnu_ld_interface=yes
9025 ;;
9026 esac
9027 fi
9028
9029 if test "$lt_use_gnu_ld_interface" = yes; then
1cf3d07d
SE
9030 # If archive_cmds runs LD, not CC, wlarc should be empty
9031 wlarc='${wl}'
9032
9033 # Set some defaults for GNU ld with shared library support. These
9034 # are reset later if shared libraries are not supported. Putting them
9035 # here allows them to be overridden if necessary.
9036 runpath_var=LD_RUN_PATH
9037 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9038 export_dynamic_flag_spec='${wl}--export-dynamic'
9039 # ancient GNU ld didn't support --whole-archive et. al.
9040 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9041 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9042 else
9043 whole_archive_flag_spec=
9044 fi
9045 supports_anon_versioning=no
9046 case `$LD -v 2>&1` in
43e02a8a 9047 *GNU\ gold*) supports_anon_versioning=yes ;;
1cf3d07d
SE
9048 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9049 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9050 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9051 *\ 2.11.*) ;; # other 2.11 versions
9052 *) supports_anon_versioning=yes ;;
9053 esac
9054
9055 # See if GNU ld supports shared libraries.
9056 case $host_os in
f3641e7e 9057 aix[3-9]*)
1cf3d07d
SE
9058 # On AIX/PPC, the GNU linker is very broken
9059 if test "$host_cpu" != ia64; then
9060 ld_shlibs=no
9061 cat <<_LT_EOF 1>&2
9062
43e02a8a 9063*** Warning: the GNU linker, at least up to release 2.19, is reported
1cf3d07d
SE
9064*** to be unable to reliably create shared libraries on AIX.
9065*** Therefore, libtool is disabling shared libraries support. If you
43e02a8a
RW
9066*** really care for shared libraries, you may want to install binutils
9067*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9068*** You will then need to restart the configuration process.
1cf3d07d
SE
9069
9070_LT_EOF
9071 fi
9072 ;;
9073
9074 amigaos*)
93e92f52
PG
9075 case $host_cpu in
9076 powerpc)
9077 # see comment about AmigaOS4 .so support
9078 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9079 archive_expsym_cmds=''
9080 ;;
9081 m68k)
9082 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)'
9083 hardcode_libdir_flag_spec='-L$libdir'
9084 hardcode_minus_L=yes
9085 ;;
9086 esac
1cf3d07d
SE
9087 ;;
9088
9089 beos*)
9090 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9091 allow_undefined_flag=unsupported
9092 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9093 # support --undefined. This deserves some investigation. FIXME
9094 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9095 else
9096 ld_shlibs=no
9097 fi
9098 ;;
9099
93e92f52 9100 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
9101 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9102 # as there is no search path for DLLs.
9103 hardcode_libdir_flag_spec='-L$libdir'
43e02a8a 9104 export_dynamic_flag_spec='${wl}--export-all-symbols'
1cf3d07d
SE
9105 allow_undefined_flag=unsupported
9106 always_export_symbols=no
9107 enable_shared_with_static_runtimes=yes
9108 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9109
9110 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9111 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9112 # If the export-symbols file already is a .def file (1st line
9113 # is EXPORTS), use it as is; otherwise, prepend...
9114 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9115 cp $export_symbols $output_objdir/$soname.def;
9116 else
9117 echo EXPORTS > $output_objdir/$soname.def;
9118 cat $export_symbols >> $output_objdir/$soname.def;
9119 fi~
9120 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9121 else
9122 ld_shlibs=no
9123 fi
9124 ;;
9125
43e02a8a
RW
9126 haiku*)
9127 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9128 link_all_deplibs=yes
9129 ;;
9130
1cf3d07d
SE
9131 interix[3-9]*)
9132 hardcode_direct=no
9133 hardcode_shlibpath_var=no
9134 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9135 export_dynamic_flag_spec='${wl}-E'
9136 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9137 # Instead, shared libraries are loaded at an image base (0x10000000 by
9138 # default) and relocated if they conflict, which is a slow very memory
9139 # consuming and fragmenting process. To avoid this, we pick a random,
9140 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9141 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9142 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9143 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'
9144 ;;
9145
7a9d3fe8 9146 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
9147 tmp_diet=no
9148 if test "$host_os" = linux-dietlibc; then
9149 case $cc_basename in
9150 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9151 esac
9152 fi
9153 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9154 && test "$tmp_diet" = no
9155 then
9156 tmp_addflag=
93e92f52 9157 tmp_sharedflag='-shared'
1cf3d07d
SE
9158 case $cc_basename,$host_cpu in
9159 pgcc*) # Portland Group C compiler
43e02a8a 9160 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
9161 tmp_addflag=' $pic_flag'
9162 ;;
43e02a8a
RW
9163 pgf77* | pgf90* | pgf95* | pgfortran*)
9164 # Portland Group f77 and f90 compilers
9165 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
9166 tmp_addflag=' $pic_flag -Mnomain' ;;
9167 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9168 tmp_addflag=' -i_dynamic' ;;
9169 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9170 tmp_addflag=' -i_dynamic -nofor_main' ;;
9171 ifc* | ifort*) # Intel Fortran compiler
9172 tmp_addflag=' -nofor_main' ;;
93e92f52
PG
9173 lf95*) # Lahey Fortran 8.1
9174 whole_archive_flag_spec=
9175 tmp_sharedflag='--shared' ;;
43e02a8a 9176 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
93e92f52
PG
9177 tmp_sharedflag='-qmkshrobj'
9178 tmp_addflag= ;;
43e02a8a
RW
9179 nvcc*) # Cuda Compiler Driver 2.2
9180 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'
9181 compiler_needs_object=yes
9182 ;;
1cf3d07d
SE
9183 esac
9184 case `$CC -V 2>&1 | sed 5q` in
9185 *Sun\ C*) # Sun C 5.9
43e02a8a 9186 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
9187 compiler_needs_object=yes
9188 tmp_sharedflag='-G' ;;
9189 *Sun\ F*) # Sun Fortran 8.3
9190 tmp_sharedflag='-G' ;;
1cf3d07d
SE
9191 esac
9192 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9193
9194 if test "x$supports_anon_versioning" = xyes; then
9195 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9196 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9197 echo "local: *; };" >> $output_objdir/$libname.ver~
9198 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9199 fi
93e92f52
PG
9200
9201 case $cc_basename in
43e02a8a 9202 xlf* | bgf* | bgxlf* | mpixlf*)
93e92f52
PG
9203 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9204 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9205 hardcode_libdir_flag_spec=
9206 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9207 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9208 if test "x$supports_anon_versioning" = xyes; then
9209 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9210 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9211 echo "local: *; };" >> $output_objdir/$libname.ver~
9212 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9213 fi
9214 ;;
9215 esac
1cf3d07d
SE
9216 else
9217 ld_shlibs=no
9218 fi
9219 ;;
9220
9221 netbsd*)
9222 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9223 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9224 wlarc=
9225 else
9226 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9227 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9228 fi
9229 ;;
9230
9231 solaris*)
9232 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9233 ld_shlibs=no
9234 cat <<_LT_EOF 1>&2
9235
9236*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9237*** create shared libraries on Solaris systems. Therefore, libtool
9238*** is disabling shared libraries support. We urge you to upgrade GNU
9239*** binutils to release 2.9.1 or newer. Another option is to modify
9240*** your PATH or compiler configuration so that the native linker is
9241*** used, and then restart.
9242
9243_LT_EOF
9244 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9245 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9246 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9247 else
9248 ld_shlibs=no
9249 fi
9250 ;;
9251
9252 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9253 case `$LD -v 2>&1` in
9254 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9255 ld_shlibs=no
9256 cat <<_LT_EOF 1>&2
9257
9258*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9259*** reliably create shared libraries on SCO systems. Therefore, libtool
9260*** is disabling shared libraries support. We urge you to upgrade GNU
9261*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9262*** your PATH or compiler configuration so that the native linker is
9263*** used, and then restart.
9264
9265_LT_EOF
9266 ;;
9267 *)
9268 # For security reasons, it is highly recommended that you always
9269 # use absolute paths for naming shared libraries, and exclude the
9270 # DT_RUNPATH tag from executables and libraries. But doing so
9271 # requires that you compile everything twice, which is a pain.
9272 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9273 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9274 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9275 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9276 else
9277 ld_shlibs=no
9278 fi
9279 ;;
9280 esac
9281 ;;
9282
9283 sunos4*)
9284 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9285 wlarc=
9286 hardcode_direct=yes
9287 hardcode_shlibpath_var=no
9288 ;;
9289
9290 *)
9291 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9292 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9293 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9294 else
9295 ld_shlibs=no
9296 fi
9297 ;;
9298 esac
9299
9300 if test "$ld_shlibs" = no; then
9301 runpath_var=
9302 hardcode_libdir_flag_spec=
9303 export_dynamic_flag_spec=
9304 whole_archive_flag_spec=
9305 fi
9306 else
9307 # PORTME fill in a description of your system's linker (not GNU ld)
9308 case $host_os in
9309 aix3*)
9310 allow_undefined_flag=unsupported
9311 always_export_symbols=yes
9312 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'
9313 # Note: this linker hardcodes the directories in LIBPATH if there
9314 # are no directories specified by -L.
9315 hardcode_minus_L=yes
9316 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9317 # Neither direct hardcoding nor static linking is supported with a
9318 # broken collect2.
9319 hardcode_direct=unsupported
9320 fi
9321 ;;
9322
f3641e7e 9323 aix[4-9]*)
1cf3d07d
SE
9324 if test "$host_cpu" = ia64; then
9325 # On IA64, the linker does run time linking by default, so we don't
9326 # have to do anything special.
9327 aix_use_runtimelinking=no
9328 exp_sym_flag='-Bexport'
9329 no_entry_flag=""
9330 else
9331 # If we're using GNU nm, then we don't want the "-C" option.
9332 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
9333 # Also, AIX nm treats weak defined symbols like other global
9334 # defined symbols, whereas GNU nm marks them as "W".
1cf3d07d 9335 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 9336 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1cf3d07d
SE
9337 else
9338 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'
9339 fi
9340 aix_use_runtimelinking=no
9341
9342 # Test if we are trying to use run time linking or normal
9343 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9344 # need to do runtime linking.
f3641e7e 9345 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
9346 for ld_flag in $LDFLAGS; do
9347 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9348 aix_use_runtimelinking=yes
9349 break
9350 fi
9351 done
9352 ;;
9353 esac
9354
9355 exp_sym_flag='-bexport'
9356 no_entry_flag='-bnoentry'
9357 fi
9358
9359 # When large executables or shared objects are built, AIX ld can
9360 # have problems creating the table of contents. If linking a library
9361 # or program results in "error TOC overflow" add -mminimal-toc to
9362 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9363 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9364
9365 archive_cmds=''
9366 hardcode_direct=yes
9367 hardcode_direct_absolute=yes
9368 hardcode_libdir_separator=':'
9369 link_all_deplibs=yes
9370 file_list_spec='${wl}-f,'
9371
9372 if test "$GCC" = yes; then
9373 case $host_os in aix4.[012]|aix4.[012].*)
9374 # We only want to do this on AIX 4.2 and lower, the check
9375 # below for broken collect2 doesn't work under 4.3+
9376 collect2name=`${CC} -print-prog-name=collect2`
9377 if test -f "$collect2name" &&
9378 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9379 then
9380 # We have reworked collect2
9381 :
9382 else
9383 # We have old collect2
9384 hardcode_direct=unsupported
9385 # It fails to find uninstalled libraries when the uninstalled
9386 # path is not listed in the libpath. Setting hardcode_minus_L
9387 # to unsupported forces relinking
9388 hardcode_minus_L=yes
9389 hardcode_libdir_flag_spec='-L$libdir'
9390 hardcode_libdir_separator=
9391 fi
9392 ;;
9393 esac
9394 shared_flag='-shared'
9395 if test "$aix_use_runtimelinking" = yes; then
9396 shared_flag="$shared_flag "'${wl}-G'
9397 fi
9398 else
9399 # not using gcc
9400 if test "$host_cpu" = ia64; then
9401 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9402 # chokes on -Wl,-G. The following line is correct:
9403 shared_flag='-G'
9404 else
9405 if test "$aix_use_runtimelinking" = yes; then
9406 shared_flag='${wl}-G'
9407 else
9408 shared_flag='${wl}-bM:SRE'
9409 fi
9410 fi
9411 fi
9412
93e92f52 9413 export_dynamic_flag_spec='${wl}-bexpall'
1cf3d07d
SE
9414 # It seems that -bexpall does not export symbols beginning with
9415 # underscore (_), so it is better to generate a list of symbols to export.
9416 always_export_symbols=yes
9417 if test "$aix_use_runtimelinking" = yes; then
9418 # Warning - without using the other runtime loading flags (-brtl),
9419 # -berok will link without error, but may produce a broken library.
9420 allow_undefined_flag='-berok'
9421 # Determine the default libpath from the value encoded in an
9422 # empty executable.
9423 if test x$gcc_no_link = xyes; then
5213506e 9424 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 9425fi
5213506e 9426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
9427/* end confdefs.h. */
9428
9429int
9430main ()
9431{
9432
9433 ;
9434 return 0;
9435}
9436_ACEOF
5213506e 9437if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
9438
9439lt_aix_libpath_sed='
9440 /Import File Strings/,/^$/ {
9441 /^0/ {
9442 s/^0 *\(.*\)$/\1/
9443 p
9444 }
9445 }'
9446aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9447# Check for a 64-bit object if we didn't find anything.
9448if test -z "$aix_libpath"; then
9449 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9450fi
1cf3d07d 9451fi
5213506e
RW
9452rm -f core conftest.err conftest.$ac_objext \
9453 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
9454if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9455
9456 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
43e02a8a 9457 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1cf3d07d
SE
9458 else
9459 if test "$host_cpu" = ia64; then
9460 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9461 allow_undefined_flag="-z nodefs"
9462 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"
9463 else
9464 # Determine the default libpath from the value encoded in an
9465 # empty executable.
9466 if test x$gcc_no_link = xyes; then
5213506e 9467 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 9468fi
5213506e 9469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
9470/* end confdefs.h. */
9471
9472int
9473main ()
9474{
9475
9476 ;
9477 return 0;
9478}
9479_ACEOF
5213506e 9480if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
9481
9482lt_aix_libpath_sed='
9483 /Import File Strings/,/^$/ {
9484 /^0/ {
9485 s/^0 *\(.*\)$/\1/
9486 p
9487 }
9488 }'
9489aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9490# Check for a 64-bit object if we didn't find anything.
9491if test -z "$aix_libpath"; then
9492 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9493fi
1cf3d07d 9494fi
5213506e
RW
9495rm -f core conftest.err conftest.$ac_objext \
9496 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
9497if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9498
9499 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9500 # Warning - without using the other run time loading flags,
9501 # -berok will link without error, but may produce a broken library.
9502 no_undefined_flag=' ${wl}-bernotok'
9503 allow_undefined_flag=' ${wl}-berok'
43e02a8a
RW
9504 if test "$with_gnu_ld" = yes; then
9505 # We only use this code for GNU lds that support --whole-archive.
9506 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9507 else
9508 # Exported symbols can be pulled into shared objects from archives
9509 whole_archive_flag_spec='$convenience'
9510 fi
1cf3d07d
SE
9511 archive_cmds_need_lc=yes
9512 # This is similar to how AIX traditionally builds its shared libraries.
9513 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'
9514 fi
9515 fi
9516 ;;
9517
9518 amigaos*)
93e92f52
PG
9519 case $host_cpu in
9520 powerpc)
9521 # see comment about AmigaOS4 .so support
9522 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9523 archive_expsym_cmds=''
9524 ;;
9525 m68k)
9526 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)'
9527 hardcode_libdir_flag_spec='-L$libdir'
9528 hardcode_minus_L=yes
9529 ;;
9530 esac
1cf3d07d
SE
9531 ;;
9532
9533 bsdi[45]*)
9534 export_dynamic_flag_spec=-rdynamic
9535 ;;
9536
93e92f52 9537 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
9538 # When not using gcc, we currently assume that we are using
9539 # Microsoft Visual C++.
9540 # hardcode_libdir_flag_spec is actually meaningless, as there is
9541 # no search path for DLLs.
9542 hardcode_libdir_flag_spec=' '
9543 allow_undefined_flag=unsupported
9544 # Tell ltmain to make .lib files, not .a files.
9545 libext=lib
9546 # Tell ltmain to make .dll files, not .so files.
9547 shrext_cmds=".dll"
9548 # FIXME: Setting linknames here is a bad hack.
43e02a8a 9549 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1cf3d07d
SE
9550 # The linker will automatically build a .lib file if we build a DLL.
9551 old_archive_from_new_cmds='true'
9552 # FIXME: Should let the user specify the lib program.
9553 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9554 fix_srcfile_path='`cygpath -w "$srcfile"`'
9555 enable_shared_with_static_runtimes=yes
9556 ;;
9557
9558 darwin* | rhapsody*)
1cf3d07d 9559
93e92f52
PG
9560
9561 archive_cmds_need_lc=no
9562 hardcode_direct=no
9563 hardcode_automatic=yes
9564 hardcode_shlibpath_var=unsupported
43e02a8a
RW
9565 if test "$lt_cv_ld_force_load" = "yes"; then
9566 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\"`'
9567 else
9568 whole_archive_flag_spec=''
9569 fi
93e92f52
PG
9570 link_all_deplibs=yes
9571 allow_undefined_flag="$_lt_dar_allow_undefined"
9572 case $cc_basename in
9573 ifort*) _lt_dar_can_shared=yes ;;
9574 *) _lt_dar_can_shared=$GCC ;;
9575 esac
9576 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 9577 output_verbose_link_cmd=func_echo_all
93e92f52
PG
9578 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9579 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9580 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}"
9581 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}"
9582
9583 else
9584 ld_shlibs=no
9585 fi
9586
1cf3d07d
SE
9587 ;;
9588
9589 dgux*)
9590 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9591 hardcode_libdir_flag_spec='-L$libdir'
9592 hardcode_shlibpath_var=no
9593 ;;
9594
1cf3d07d
SE
9595 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9596 # support. Future versions do this automatically, but an explicit c++rt0.o
9597 # does not break anything, and helps significantly (at the cost of a little
9598 # extra space).
9599 freebsd2.2*)
9600 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9601 hardcode_libdir_flag_spec='-R$libdir'
9602 hardcode_direct=yes
9603 hardcode_shlibpath_var=no
9604 ;;
9605
9606 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9607 freebsd2*)
9608 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9609 hardcode_direct=yes
9610 hardcode_minus_L=yes
9611 hardcode_shlibpath_var=no
9612 ;;
9613
9614 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9615 freebsd* | dragonfly*)
9616 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9617 hardcode_libdir_flag_spec='-R$libdir'
9618 hardcode_direct=yes
9619 hardcode_shlibpath_var=no
9620 ;;
9621
9622 hpux9*)
9623 if test "$GCC" = yes; then
9624 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'
9625 else
9626 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'
9627 fi
9628 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9629 hardcode_libdir_separator=:
9630 hardcode_direct=yes
9631
9632 # hardcode_minus_L: Not really in the search PATH,
9633 # but as the default location of the library.
9634 hardcode_minus_L=yes
9635 export_dynamic_flag_spec='${wl}-E'
9636 ;;
9637
9638 hpux10*)
43e02a8a 9639 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
9640 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9641 else
9642 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9643 fi
9644 if test "$with_gnu_ld" = no; then
9645 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9646 hardcode_libdir_flag_spec_ld='+b $libdir'
9647 hardcode_libdir_separator=:
9648 hardcode_direct=yes
9649 hardcode_direct_absolute=yes
9650 export_dynamic_flag_spec='${wl}-E'
9651 # hardcode_minus_L: Not really in the search PATH,
9652 # but as the default location of the library.
9653 hardcode_minus_L=yes
9654 fi
9655 ;;
9656
9657 hpux11*)
43e02a8a 9658 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
9659 case $host_cpu in
9660 hppa*64*)
9661 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9662 ;;
9663 ia64*)
93e92f52 9664 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
9665 ;;
9666 *)
9667 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9668 ;;
9669 esac
9670 else
9671 case $host_cpu in
9672 hppa*64*)
9673 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9674 ;;
9675 ia64*)
9676 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9677 ;;
9678 *)
43e02a8a
RW
9679
9680 # Older versions of the 11.00 compiler do not understand -b yet
9681 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9683$as_echo_n "checking if $CC understands -b... " >&6; }
9684if test "${lt_cv_prog_compiler__b+set}" = set; then :
9685 $as_echo_n "(cached) " >&6
9686else
9687 lt_cv_prog_compiler__b=no
9688 save_LDFLAGS="$LDFLAGS"
9689 LDFLAGS="$LDFLAGS -b"
9690 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9691 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9692 # The linker can only warn and ignore the option if not recognized
9693 # So say no if there are warnings
9694 if test -s conftest.err; then
9695 # Append any errors to the config.log.
9696 cat conftest.err 1>&5
9697 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9698 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9699 if diff conftest.exp conftest.er2 >/dev/null; then
9700 lt_cv_prog_compiler__b=yes
9701 fi
9702 else
9703 lt_cv_prog_compiler__b=yes
9704 fi
9705 fi
9706 $RM -r conftest*
9707 LDFLAGS="$save_LDFLAGS"
9708
9709fi
9710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9711$as_echo "$lt_cv_prog_compiler__b" >&6; }
9712
9713if test x"$lt_cv_prog_compiler__b" = xyes; then
9714 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9715else
9716 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9717fi
9718
1cf3d07d
SE
9719 ;;
9720 esac
9721 fi
9722 if test "$with_gnu_ld" = no; then
9723 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9724 hardcode_libdir_separator=:
9725
9726 case $host_cpu in
9727 hppa*64*|ia64*)
9728 hardcode_direct=no
9729 hardcode_shlibpath_var=no
9730 ;;
9731 *)
9732 hardcode_direct=yes
9733 hardcode_direct_absolute=yes
9734 export_dynamic_flag_spec='${wl}-E'
9735
9736 # hardcode_minus_L: Not really in the search PATH,
9737 # but as the default location of the library.
9738 hardcode_minus_L=yes
9739 ;;
9740 esac
9741 fi
9742 ;;
9743
9744 irix5* | irix6* | nonstopux*)
9745 if test "$GCC" = yes; then
43e02a8a 9746 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
9747 # Try to use the -exported_symbol ld option, if it does not
9748 # work, assume that -exports_file does not work either and
9749 # implicitly export all symbols.
9750 save_LDFLAGS="$LDFLAGS"
9751 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9752 if test x$gcc_no_link = xyes; then
5213506e 9753 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 9754fi
5213506e
RW
9755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9756/* end confdefs.h. */
1cf3d07d
SE
9757int foo(void) {}
9758_ACEOF
5213506e 9759if ac_fn_c_try_link "$LINENO"; then :
43e02a8a 9760 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
1cf3d07d 9761
1cf3d07d 9762fi
5213506e
RW
9763rm -f core conftest.err conftest.$ac_objext \
9764 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
9765 LDFLAGS="$save_LDFLAGS"
9766 else
43e02a8a
RW
9767 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'
9768 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
1cf3d07d
SE
9769 fi
9770 archive_cmds_need_lc='no'
9771 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9772 hardcode_libdir_separator=:
9773 inherit_rpath=yes
9774 link_all_deplibs=yes
9775 ;;
9776
9777 netbsd*)
9778 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9779 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9780 else
9781 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9782 fi
9783 hardcode_libdir_flag_spec='-R$libdir'
9784 hardcode_direct=yes
9785 hardcode_shlibpath_var=no
9786 ;;
9787
9788 newsos6)
9789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9790 hardcode_direct=yes
9791 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9792 hardcode_libdir_separator=:
9793 hardcode_shlibpath_var=no
9794 ;;
9795
9796 *nto* | *qnx*)
9797 ;;
9798
9799 openbsd*)
93e92f52
PG
9800 if test -f /usr/libexec/ld.so; then
9801 hardcode_direct=yes
9802 hardcode_shlibpath_var=no
9803 hardcode_direct_absolute=yes
9804 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 9805 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
93e92f52 9806 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 9807 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
93e92f52
PG
9808 export_dynamic_flag_spec='${wl}-E'
9809 else
9810 case $host_os in
9811 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9812 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9813 hardcode_libdir_flag_spec='-R$libdir'
9814 ;;
9815 *)
9816 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9817 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9818 ;;
9819 esac
9820 fi
9821 else
9822 ld_shlibs=no
1cf3d07d
SE
9823 fi
9824 ;;
9825
9826 os2*)
9827 hardcode_libdir_flag_spec='-L$libdir'
9828 hardcode_minus_L=yes
9829 allow_undefined_flag=unsupported
43e02a8a 9830 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
1cf3d07d
SE
9831 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9832 ;;
9833
9834 osf3*)
9835 if test "$GCC" = yes; then
9836 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 9837 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
9838 else
9839 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 9840 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
9841 fi
9842 archive_cmds_need_lc='no'
9843 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9844 hardcode_libdir_separator=:
9845 ;;
9846
9847 osf4* | osf5*) # as osf3* with the addition of -msym flag
9848 if test "$GCC" = yes; then
9849 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 9850 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
9851 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9852 else
9853 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 9854 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
1cf3d07d 9855 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
43e02a8a 9856 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
1cf3d07d
SE
9857
9858 # Both c and cxx compiler support -rpath directly
9859 hardcode_libdir_flag_spec='-rpath $libdir'
9860 fi
9861 archive_cmds_need_lc='no'
9862 hardcode_libdir_separator=:
9863 ;;
9864
9865 solaris*)
9866 no_undefined_flag=' -z defs'
9867 if test "$GCC" = yes; then
9868 wlarc='${wl}'
9869 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9870 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9871 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9872 else
9873 case `$CC -V 2>&1` in
9874 *"Compilers 5.0"*)
9875 wlarc=''
9876 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9877 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9878 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9879 ;;
9880 *)
9881 wlarc='${wl}'
9882 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9883 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9884 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9885 ;;
9886 esac
9887 fi
9888 hardcode_libdir_flag_spec='-R$libdir'
9889 hardcode_shlibpath_var=no
9890 case $host_os in
9891 solaris2.[0-5] | solaris2.[0-5].*) ;;
9892 *)
9893 # The compiler driver will combine and reorder linker options,
9894 # but understands `-z linker_flag'. GCC discards it without `$wl',
9895 # but is careful enough not to reorder.
9896 # Supported since Solaris 2.6 (maybe 2.5.1?)
9897 if test "$GCC" = yes; then
9898 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9899 else
9900 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9901 fi
9902 ;;
9903 esac
9904 link_all_deplibs=yes
9905 ;;
9906
9907 sunos4*)
9908 if test "x$host_vendor" = xsequent; then
9909 # Use $CC to link under sequent, because it throws in some extra .o
9910 # files that make .init and .fini sections work.
9911 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9912 else
9913 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9914 fi
9915 hardcode_libdir_flag_spec='-L$libdir'
9916 hardcode_direct=yes
9917 hardcode_minus_L=yes
9918 hardcode_shlibpath_var=no
9919 ;;
9920
9921 sysv4)
9922 case $host_vendor in
9923 sni)
9924 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9925 hardcode_direct=yes # is this really true???
9926 ;;
9927 siemens)
9928 ## LD is ld it makes a PLAMLIB
9929 ## CC just makes a GrossModule.
9930 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9931 reload_cmds='$CC -r -o $output$reload_objs'
9932 hardcode_direct=no
9933 ;;
9934 motorola)
9935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9936 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9937 ;;
9938 esac
9939 runpath_var='LD_RUN_PATH'
9940 hardcode_shlibpath_var=no
9941 ;;
9942
9943 sysv4.3*)
9944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9945 hardcode_shlibpath_var=no
9946 export_dynamic_flag_spec='-Bexport'
9947 ;;
9948
9949 sysv4*MP*)
9950 if test -d /usr/nec; then
9951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9952 hardcode_shlibpath_var=no
9953 runpath_var=LD_RUN_PATH
9954 hardcode_runpath_var=yes
9955 ld_shlibs=yes
9956 fi
9957 ;;
9958
9959 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9960 no_undefined_flag='${wl}-z,text'
9961 archive_cmds_need_lc=no
9962 hardcode_shlibpath_var=no
9963 runpath_var='LD_RUN_PATH'
9964
9965 if test "$GCC" = yes; then
9966 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9967 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9968 else
9969 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9970 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9971 fi
9972 ;;
9973
9974 sysv5* | sco3.2v5* | sco5v6*)
9975 # Note: We can NOT use -z defs as we might desire, because we do not
9976 # link with -lc, and that would cause any symbols used from libc to
9977 # always be unresolved, which means just about no library would
9978 # ever link correctly. If we're not using GNU ld we use -z text
9979 # though, which does catch some bad symbols but isn't as heavy-handed
9980 # as -z defs.
9981 no_undefined_flag='${wl}-z,text'
9982 allow_undefined_flag='${wl}-z,nodefs'
9983 archive_cmds_need_lc=no
9984 hardcode_shlibpath_var=no
9985 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9986 hardcode_libdir_separator=':'
9987 link_all_deplibs=yes
9988 export_dynamic_flag_spec='${wl}-Bexport'
9989 runpath_var='LD_RUN_PATH'
9990
9991 if test "$GCC" = yes; then
9992 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9993 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9994 else
9995 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9996 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9997 fi
9998 ;;
9999
10000 uts4*)
10001 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10002 hardcode_libdir_flag_spec='-L$libdir'
10003 hardcode_shlibpath_var=no
10004 ;;
10005
10006 *)
10007 ld_shlibs=no
10008 ;;
10009 esac
10010
10011 if test x$host_vendor = xsni; then
10012 case $host in
10013 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10014 export_dynamic_flag_spec='${wl}-Blargedynsym'
10015 ;;
10016 esac
10017 fi
10018 fi
10019
5213506e
RW
10020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10021$as_echo "$ld_shlibs" >&6; }
1cf3d07d
SE
10022test "$ld_shlibs" = no && can_build_shared=no
10023
10024with_gnu_ld=$with_gnu_ld
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040#
10041# Do we need to explicitly link libc?
10042#
10043case "x$archive_cmds_need_lc" in
10044x|xyes)
10045 # Assume -lc should be added
10046 archive_cmds_need_lc=yes
10047
10048 if test "$enable_shared" = yes && test "$GCC" = yes; then
10049 case $archive_cmds in
10050 *'~'*)
10051 # FIXME: we may have to deal with multi-command sequences.
10052 ;;
10053 '$CC '*)
10054 # Test whether the compiler implicitly links with -lc since on some
10055 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10056 # to ld, don't add -lc before -lgcc.
5213506e
RW
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10058$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10059if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10060 $as_echo_n "(cached) " >&6
baafc534
RW
10061else
10062 $RM conftest*
10063 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 10064
5213506e 10065 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
10066 (eval $ac_compile) 2>&5
10067 ac_status=$?
5213506e
RW
10068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10069 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
10070 soname=conftest
10071 lib=conftest
10072 libobjs=conftest.$ac_objext
10073 deplibs=
10074 wl=$lt_prog_compiler_wl
10075 pic_flag=$lt_prog_compiler_pic
10076 compiler_flags=-v
10077 linker_flags=-v
10078 verstring=
10079 output_objdir=.
10080 libname=conftest
10081 lt_save_allow_undefined_flag=$allow_undefined_flag
10082 allow_undefined_flag=
5213506e 10083 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d
SE
10084 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10085 ac_status=$?
5213506e
RW
10086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10087 test $ac_status = 0; }
baafc534
RW
10088 then
10089 lt_cv_archive_cmds_need_lc=no
10090 else
10091 lt_cv_archive_cmds_need_lc=yes
10092 fi
10093 allow_undefined_flag=$lt_save_allow_undefined_flag
10094 else
10095 cat conftest.err 1>&5
10096 fi
10097 $RM conftest*
10098
10099fi
5213506e
RW
10100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10101$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
baafc534 10102 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1cf3d07d
SE
10103 ;;
10104 esac
10105 fi
10106 ;;
10107esac
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
5213506e
RW
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10266$as_echo_n "checking dynamic linker characteristics... " >&6; }
93e92f52
PG
10267
10268if test "$GCC" = yes; then
1cf3d07d
SE
10269 case $host_os in
10270 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10271 *) lt_awk_arg="/^libraries:/" ;;
10272 esac
43e02a8a
RW
10273 case $host_os in
10274 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10275 *) lt_sed_strip_eq="s,=/,/,g" ;;
10276 esac
10277 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10278 case $lt_search_path_spec in
10279 *\;*)
1cf3d07d
SE
10280 # if the path contains ";" then we assume it to be the separator
10281 # otherwise default to the standard path separator (i.e. ":") - it is
10282 # assumed that no part of a normal pathname contains ";" but that should
10283 # okay in the real world where ";" in dirpaths is itself problematic.
43e02a8a
RW
10284 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10285 ;;
10286 *)
10287 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10288 ;;
10289 esac
1cf3d07d
SE
10290 # Ok, now we have the path, separated by spaces, we can step through it
10291 # and add multilib dir if necessary.
10292 lt_tmp_lt_search_path_spec=
10293 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10294 for lt_sys_path in $lt_search_path_spec; do
10295 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10296 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10297 else
10298 test -d "$lt_sys_path" && \
10299 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10300 fi
10301 done
43e02a8a 10302 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
1cf3d07d
SE
10303BEGIN {RS=" "; FS="/|\n";} {
10304 lt_foo="";
10305 lt_count=0;
10306 for (lt_i = NF; lt_i > 0; lt_i--) {
10307 if ($lt_i != "" && $lt_i != ".") {
10308 if ($lt_i == "..") {
10309 lt_count++;
10310 } else {
10311 if (lt_count == 0) {
10312 lt_foo="/" $lt_i lt_foo;
10313 } else {
10314 lt_count--;
10315 }
10316 }
10317 }
10318 }
10319 if (lt_foo != "") { lt_freq[lt_foo]++; }
10320 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10321}'`
43e02a8a
RW
10322 # AWK program above erroneously prepends '/' to C:/dos/paths
10323 # for these hosts.
10324 case $host_os in
10325 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10326 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10327 esac
10328 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1cf3d07d
SE
10329else
10330 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10331fi
10332library_names_spec=
10333libname_spec='lib$name'
10334soname_spec=
10335shrext_cmds=".so"
10336postinstall_cmds=
10337postuninstall_cmds=
10338finish_cmds=
10339finish_eval=
10340shlibpath_var=
10341shlibpath_overrides_runpath=unknown
10342version_type=none
10343dynamic_linker="$host_os ld.so"
10344sys_lib_dlsearch_path_spec="/lib /usr/lib"
10345need_lib_prefix=unknown
10346hardcode_into_libs=no
10347
10348# when you set need_version to no, make sure it does not cause -set_version
10349# flags to be left without arguments
10350need_version=unknown
10351
10352case $host_os in
10353aix3*)
10354 version_type=linux
10355 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10356 shlibpath_var=LIBPATH
10357
10358 # AIX 3 has no versioning support, so we append a major version to the name.
10359 soname_spec='${libname}${release}${shared_ext}$major'
10360 ;;
10361
f3641e7e 10362aix[4-9]*)
1cf3d07d
SE
10363 version_type=linux
10364 need_lib_prefix=no
10365 need_version=no
10366 hardcode_into_libs=yes
10367 if test "$host_cpu" = ia64; then
10368 # AIX 5 supports IA64
10369 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10370 shlibpath_var=LD_LIBRARY_PATH
10371 else
10372 # With GCC up to 2.95.x, collect2 would create an import file
10373 # for dependence libraries. The import file would start with
10374 # the line `#! .'. This would cause the generated library to
10375 # depend on `.', always an invalid library. This was fixed in
10376 # development snapshots of GCC prior to 3.0.
10377 case $host_os in
10378 aix4 | aix4.[01] | aix4.[01].*)
10379 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10380 echo ' yes '
10381 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10382 :
10383 else
10384 can_build_shared=no
10385 fi
10386 ;;
10387 esac
10388 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10389 # soname into executable. Probably we can add versioning support to
10390 # collect2, so additional links can be useful in future.
10391 if test "$aix_use_runtimelinking" = yes; then
10392 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10393 # instead of lib<name>.a to let people know that these are not
10394 # typical AIX shared libraries.
10395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10396 else
10397 # We preserve .a as extension for shared libraries through AIX4.2
10398 # and later when we are not doing run time linking.
10399 library_names_spec='${libname}${release}.a $libname.a'
10400 soname_spec='${libname}${release}${shared_ext}$major'
10401 fi
10402 shlibpath_var=LIBPATH
10403 fi
10404 ;;
10405
10406amigaos*)
93e92f52
PG
10407 case $host_cpu in
10408 powerpc)
10409 # Since July 2007 AmigaOS4 officially supports .so libraries.
10410 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10412 ;;
10413 m68k)
1cf3d07d
SE
10414 library_names_spec='$libname.ixlibrary $libname.a'
10415 # Create ${libname}_ixlibrary.a entries in /sys/libs.
43e02a8a 10416 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'
93e92f52
PG
10417 ;;
10418 esac
1cf3d07d
SE
10419 ;;
10420
10421beos*)
10422 library_names_spec='${libname}${shared_ext}'
10423 dynamic_linker="$host_os ld.so"
10424 shlibpath_var=LIBRARY_PATH
10425 ;;
10426
10427bsdi[45]*)
10428 version_type=linux
10429 need_version=no
10430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10431 soname_spec='${libname}${release}${shared_ext}$major'
10432 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10433 shlibpath_var=LD_LIBRARY_PATH
10434 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10435 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10436 # the default ld.so.conf also contains /usr/contrib/lib and
10437 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10438 # libtool to hard-code these into programs
10439 ;;
10440
93e92f52 10441cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
10442 version_type=windows
10443 shrext_cmds=".dll"
10444 need_version=no
10445 need_lib_prefix=no
10446
93e92f52
PG
10447 case $GCC,$host_os in
10448 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
10449 library_names_spec='$libname.dll.a'
10450 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10451 postinstall_cmds='base_file=`basename \${file}`~
10452 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10453 dldir=$destdir/`dirname \$dlpath`~
10454 test -d \$dldir || mkdir -p \$dldir~
10455 $install_prog $dir/$dlname \$dldir/$dlname~
10456 chmod a+x \$dldir/$dlname~
10457 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10458 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10459 fi'
10460 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10461 dlpath=$dir/\$dldll~
10462 $RM \$dlpath'
10463 shlibpath_overrides_runpath=yes
10464
10465 case $host_os in
10466 cygwin*)
10467 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10468 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43e02a8a
RW
10469
10470 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1cf3d07d 10471 ;;
93e92f52 10472 mingw* | cegcc*)
1cf3d07d
SE
10473 # MinGW DLLs use traditional 'lib' prefix
10474 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1cf3d07d
SE
10475 ;;
10476 pw32*)
10477 # pw32 DLLs use 'pw' prefix rather than 'lib'
10478 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10479 ;;
10480 esac
10481 ;;
10482
10483 *)
10484 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10485 ;;
10486 esac
10487 dynamic_linker='Win32 ld.exe'
10488 # FIXME: first we should search . and the directory the executable is in
10489 shlibpath_var=PATH
10490 ;;
10491
10492darwin* | rhapsody*)
10493 dynamic_linker="$host_os dyld"
10494 version_type=darwin
10495 need_lib_prefix=no
10496 need_version=no
10497 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10498 soname_spec='${libname}${release}${major}$shared_ext'
10499 shlibpath_overrides_runpath=yes
10500 shlibpath_var=DYLD_LIBRARY_PATH
10501 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10502
10503 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10504 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10505 ;;
10506
10507dgux*)
10508 version_type=linux
10509 need_lib_prefix=no
10510 need_version=no
10511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10512 soname_spec='${libname}${release}${shared_ext}$major'
10513 shlibpath_var=LD_LIBRARY_PATH
10514 ;;
10515
1cf3d07d
SE
10516freebsd* | dragonfly*)
10517 # DragonFly does not have aout. When/if they implement a new
10518 # versioning mechanism, adjust this.
10519 if test -x /usr/bin/objformat; then
10520 objformat=`/usr/bin/objformat`
10521 else
10522 case $host_os in
10523 freebsd[123]*) objformat=aout ;;
10524 *) objformat=elf ;;
10525 esac
10526 fi
10527 version_type=freebsd-$objformat
10528 case $version_type in
10529 freebsd-elf*)
10530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10531 need_version=no
10532 need_lib_prefix=no
10533 ;;
10534 freebsd-*)
10535 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10536 need_version=yes
10537 ;;
10538 esac
10539 shlibpath_var=LD_LIBRARY_PATH
10540 case $host_os in
10541 freebsd2*)
10542 shlibpath_overrides_runpath=yes
10543 ;;
10544 freebsd3.[01]* | freebsdelf3.[01]*)
10545 shlibpath_overrides_runpath=yes
10546 hardcode_into_libs=yes
10547 ;;
10548 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10549 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10550 shlibpath_overrides_runpath=no
10551 hardcode_into_libs=yes
10552 ;;
10553 *) # from 4.6 on, and DragonFly
10554 shlibpath_overrides_runpath=yes
10555 hardcode_into_libs=yes
10556 ;;
10557 esac
10558 ;;
10559
10560gnu*)
10561 version_type=linux
10562 need_lib_prefix=no
10563 need_version=no
10564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10565 soname_spec='${libname}${release}${shared_ext}$major'
10566 shlibpath_var=LD_LIBRARY_PATH
10567 hardcode_into_libs=yes
10568 ;;
10569
43e02a8a
RW
10570haiku*)
10571 version_type=linux
10572 need_lib_prefix=no
10573 need_version=no
10574 dynamic_linker="$host_os runtime_loader"
10575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10576 soname_spec='${libname}${release}${shared_ext}$major'
10577 shlibpath_var=LIBRARY_PATH
10578 shlibpath_overrides_runpath=yes
10579 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10580 hardcode_into_libs=yes
10581 ;;
10582
1cf3d07d
SE
10583hpux9* | hpux10* | hpux11*)
10584 # Give a soname corresponding to the major version so that dld.sl refuses to
10585 # link against other versions.
10586 version_type=sunos
10587 need_lib_prefix=no
10588 need_version=no
10589 case $host_cpu in
10590 ia64*)
10591 shrext_cmds='.so'
10592 hardcode_into_libs=yes
10593 dynamic_linker="$host_os dld.so"
10594 shlibpath_var=LD_LIBRARY_PATH
10595 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10597 soname_spec='${libname}${release}${shared_ext}$major'
10598 if test "X$HPUX_IA64_MODE" = X32; then
10599 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10600 else
10601 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10602 fi
10603 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10604 ;;
10605 hppa*64*)
10606 shrext_cmds='.sl'
10607 hardcode_into_libs=yes
10608 dynamic_linker="$host_os dld.sl"
10609 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10610 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10612 soname_spec='${libname}${release}${shared_ext}$major'
10613 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10614 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10615 ;;
10616 *)
10617 shrext_cmds='.sl'
10618 dynamic_linker="$host_os dld.sl"
10619 shlibpath_var=SHLIB_PATH
10620 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10622 soname_spec='${libname}${release}${shared_ext}$major'
10623 ;;
10624 esac
43e02a8a 10625 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1cf3d07d 10626 postinstall_cmds='chmod 555 $lib'
43e02a8a
RW
10627 # or fails outright, so override atomically:
10628 install_override_mode=555
1cf3d07d
SE
10629 ;;
10630
10631interix[3-9]*)
10632 version_type=linux
10633 need_lib_prefix=no
10634 need_version=no
10635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10636 soname_spec='${libname}${release}${shared_ext}$major'
10637 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10638 shlibpath_var=LD_LIBRARY_PATH
10639 shlibpath_overrides_runpath=no
10640 hardcode_into_libs=yes
10641 ;;
10642
10643irix5* | irix6* | nonstopux*)
10644 case $host_os in
10645 nonstopux*) version_type=nonstopux ;;
10646 *)
10647 if test "$lt_cv_prog_gnu_ld" = yes; then
10648 version_type=linux
10649 else
10650 version_type=irix
10651 fi ;;
10652 esac
10653 need_lib_prefix=no
10654 need_version=no
10655 soname_spec='${libname}${release}${shared_ext}$major'
10656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10657 case $host_os in
10658 irix5* | nonstopux*)
10659 libsuff= shlibsuff=
10660 ;;
10661 *)
10662 case $LD in # libtool.m4 will add one of these switches to LD
10663 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10664 libsuff= shlibsuff= libmagic=32-bit;;
10665 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10666 libsuff=32 shlibsuff=N32 libmagic=N32;;
10667 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10668 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10669 *) libsuff= shlibsuff= libmagic=never-match;;
10670 esac
10671 ;;
10672 esac
10673 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10674 shlibpath_overrides_runpath=no
10675 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10676 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10677 hardcode_into_libs=yes
10678 ;;
10679
10680# No shared lib support for Linux oldld, aout, or coff.
10681linux*oldld* | linux*aout* | linux*coff*)
10682 dynamic_linker=no
10683 ;;
10684
10685# This must be Linux ELF.
7a9d3fe8 10686linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
10687 version_type=linux
10688 need_lib_prefix=no
10689 need_version=no
10690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10691 soname_spec='${libname}${release}${shared_ext}$major'
10692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10693 shlibpath_var=LD_LIBRARY_PATH
10694 shlibpath_overrides_runpath=no
baafc534 10695
1cf3d07d 10696 # Some binutils ld are patched to set DT_RUNPATH
5213506e
RW
10697 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10698 $as_echo_n "(cached) " >&6
baafc534
RW
10699else
10700 lt_cv_shlibpath_overrides_runpath=no
10701 save_LDFLAGS=$LDFLAGS
10702 save_libdir=$libdir
10703 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10704 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10705 if test x$gcc_no_link = xyes; then
5213506e 10706 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10707fi
5213506e 10708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10709/* end confdefs.h. */
10710
10711int
10712main ()
10713{
10714
10715 ;
10716 return 0;
10717}
10718_ACEOF
5213506e
RW
10719if ac_fn_c_try_link "$LINENO"; then :
10720 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 10721 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d 10722fi
1cf3d07d 10723fi
5213506e
RW
10724rm -f core conftest.err conftest.$ac_objext \
10725 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
10726 LDFLAGS=$save_LDFLAGS
10727 libdir=$save_libdir
10728
10729fi
10730
10731 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
10732
10733 # This implies no fast_install, which is unacceptable.
10734 # Some rework will be needed to allow for fast_install
10735 # before this can be enabled.
10736 hardcode_into_libs=yes
10737
10738 # Append ld.so.conf contents to the search path
10739 if test -f /etc/ld.so.conf; then
43e02a8a 10740 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
1cf3d07d
SE
10741 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10742 fi
10743
10744 # We used to test for /lib/ld.so.1 and disable shared libraries on
10745 # powerpc, because MkLinux only supported shared libraries with the
10746 # GNU dynamic linker. Since this was broken with cross compilers,
10747 # most powerpc-linux boxes support dynamic linking these days and
10748 # people can always --disable-shared, the test was removed, and we
10749 # assume the GNU/Linux dynamic linker is in use.
10750 dynamic_linker='GNU/Linux ld.so'
10751 ;;
10752
10753netbsd*)
10754 version_type=sunos
10755 need_lib_prefix=no
10756 need_version=no
10757 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10759 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10760 dynamic_linker='NetBSD (a.out) ld.so'
10761 else
10762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10763 soname_spec='${libname}${release}${shared_ext}$major'
10764 dynamic_linker='NetBSD ld.elf_so'
10765 fi
10766 shlibpath_var=LD_LIBRARY_PATH
10767 shlibpath_overrides_runpath=yes
10768 hardcode_into_libs=yes
10769 ;;
10770
10771newsos6)
10772 version_type=linux
10773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10774 shlibpath_var=LD_LIBRARY_PATH
10775 shlibpath_overrides_runpath=yes
10776 ;;
10777
10778*nto* | *qnx*)
10779 version_type=qnx
10780 need_lib_prefix=no
10781 need_version=no
10782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10783 soname_spec='${libname}${release}${shared_ext}$major'
10784 shlibpath_var=LD_LIBRARY_PATH
10785 shlibpath_overrides_runpath=no
10786 hardcode_into_libs=yes
10787 dynamic_linker='ldqnx.so'
10788 ;;
10789
10790openbsd*)
10791 version_type=sunos
10792 sys_lib_dlsearch_path_spec="/usr/lib"
10793 need_lib_prefix=no
10794 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10795 case $host_os in
10796 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10797 *) need_version=no ;;
10798 esac
10799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10800 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10801 shlibpath_var=LD_LIBRARY_PATH
10802 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10803 case $host_os in
10804 openbsd2.[89] | openbsd2.[89].*)
10805 shlibpath_overrides_runpath=no
10806 ;;
10807 *)
10808 shlibpath_overrides_runpath=yes
10809 ;;
10810 esac
10811 else
10812 shlibpath_overrides_runpath=yes
10813 fi
10814 ;;
10815
10816os2*)
10817 libname_spec='$name'
10818 shrext_cmds=".dll"
10819 need_lib_prefix=no
10820 library_names_spec='$libname${shared_ext} $libname.a'
10821 dynamic_linker='OS/2 ld.exe'
10822 shlibpath_var=LIBPATH
10823 ;;
10824
10825osf3* | osf4* | osf5*)
10826 version_type=osf
10827 need_lib_prefix=no
10828 need_version=no
10829 soname_spec='${libname}${release}${shared_ext}$major'
10830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10831 shlibpath_var=LD_LIBRARY_PATH
10832 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10833 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10834 ;;
10835
10836rdos*)
10837 dynamic_linker=no
10838 ;;
10839
10840solaris*)
10841 version_type=linux
10842 need_lib_prefix=no
10843 need_version=no
10844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10845 soname_spec='${libname}${release}${shared_ext}$major'
10846 shlibpath_var=LD_LIBRARY_PATH
10847 shlibpath_overrides_runpath=yes
10848 hardcode_into_libs=yes
10849 # ldd complains unless libraries are executable
10850 postinstall_cmds='chmod +x $lib'
10851 ;;
10852
10853sunos4*)
10854 version_type=sunos
10855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10856 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10857 shlibpath_var=LD_LIBRARY_PATH
10858 shlibpath_overrides_runpath=yes
10859 if test "$with_gnu_ld" = yes; then
10860 need_lib_prefix=no
10861 fi
10862 need_version=yes
10863 ;;
10864
10865sysv4 | sysv4.3*)
10866 version_type=linux
10867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10868 soname_spec='${libname}${release}${shared_ext}$major'
10869 shlibpath_var=LD_LIBRARY_PATH
10870 case $host_vendor in
10871 sni)
10872 shlibpath_overrides_runpath=no
10873 need_lib_prefix=no
10874 runpath_var=LD_RUN_PATH
10875 ;;
10876 siemens)
10877 need_lib_prefix=no
10878 ;;
10879 motorola)
10880 need_lib_prefix=no
10881 need_version=no
10882 shlibpath_overrides_runpath=no
10883 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10884 ;;
10885 esac
10886 ;;
10887
10888sysv4*MP*)
10889 if test -d /usr/nec ;then
10890 version_type=linux
10891 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10892 soname_spec='$libname${shared_ext}.$major'
10893 shlibpath_var=LD_LIBRARY_PATH
10894 fi
10895 ;;
10896
10897sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10898 version_type=freebsd-elf
10899 need_lib_prefix=no
10900 need_version=no
10901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10902 soname_spec='${libname}${release}${shared_ext}$major'
10903 shlibpath_var=LD_LIBRARY_PATH
10904 shlibpath_overrides_runpath=yes
10905 hardcode_into_libs=yes
10906 if test "$with_gnu_ld" = yes; then
10907 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10908 else
10909 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10910 case $host_os in
10911 sco3.2v5*)
10912 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10913 ;;
10914 esac
10915 fi
10916 sys_lib_dlsearch_path_spec='/usr/lib'
10917 ;;
10918
10919tpf*)
10920 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10921 version_type=linux
10922 need_lib_prefix=no
10923 need_version=no
93e92f52 10924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
10925 shlibpath_var=LD_LIBRARY_PATH
10926 shlibpath_overrides_runpath=no
10927 hardcode_into_libs=yes
10928 ;;
10929
10930uts4*)
10931 version_type=linux
10932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10933 soname_spec='${libname}${release}${shared_ext}$major'
10934 shlibpath_var=LD_LIBRARY_PATH
10935 ;;
10936
10937*)
10938 dynamic_linker=no
10939 ;;
10940esac
5213506e
RW
10941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10942$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
10943test "$dynamic_linker" = no && can_build_shared=no
10944
10945variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10946if test "$GCC" = yes; then
10947 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10948fi
10949
93e92f52
PG
10950if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10951 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10952fi
10953if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10954 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10955fi
10956
1cf3d07d
SE
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
43e02a8a
RW
11037
11038
11039
11040
11041
1cf3d07d
SE
11042
11043
11044
11045
11046
11047
5213506e
RW
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11049$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
11050hardcode_action=
11051if test -n "$hardcode_libdir_flag_spec" ||
11052 test -n "$runpath_var" ||
11053 test "X$hardcode_automatic" = "Xyes" ; then
11054
11055 # We can hardcode non-existent directories.
11056 if test "$hardcode_direct" != no &&
11057 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11058 # have to relink, otherwise we might link with an installed library
11059 # when we should be linking with a yet-to-be-installed one
11060 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11061 test "$hardcode_minus_L" != no; then
11062 # Linking always hardcodes the temporary library directory.
11063 hardcode_action=relink
11064 else
11065 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11066 hardcode_action=immediate
11067 fi
11068else
11069 # We cannot hardcode anything, or else we can only hardcode existing
11070 # directories.
11071 hardcode_action=unsupported
11072fi
5213506e
RW
11073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11074$as_echo "$hardcode_action" >&6; }
1cf3d07d
SE
11075
11076if test "$hardcode_action" = relink ||
11077 test "$inherit_rpath" = yes; then
11078 # Fast installation is not supported
11079 enable_fast_install=no
11080elif test "$shlibpath_overrides_runpath" = yes ||
11081 test "$enable_shared" = no; then
11082 # Fast installation is not necessary
11083 enable_fast_install=needless
11084fi
11085
11086
11087
11088
11089
11090
11091 if test "x$enable_dlopen" != xyes; then
11092 enable_dlopen=unknown
11093 enable_dlopen_self=unknown
11094 enable_dlopen_self_static=unknown
11095else
11096 lt_cv_dlopen=no
11097 lt_cv_dlopen_libs=
11098
11099 case $host_os in
11100 beos*)
11101 lt_cv_dlopen="load_add_on"
11102 lt_cv_dlopen_libs=
11103 lt_cv_dlopen_self=yes
11104 ;;
11105
93e92f52 11106 mingw* | pw32* | cegcc*)
1cf3d07d
SE
11107 lt_cv_dlopen="LoadLibrary"
11108 lt_cv_dlopen_libs=
11109 ;;
11110
11111 cygwin*)
11112 lt_cv_dlopen="dlopen"
11113 lt_cv_dlopen_libs=
11114 ;;
11115
11116 darwin*)
11117 # if libdl is installed we need to link against it
5213506e
RW
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11119$as_echo_n "checking for dlopen in -ldl... " >&6; }
11120if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11121 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11122else
11123 ac_check_lib_save_LIBS=$LIBS
11124LIBS="-ldl $LIBS"
11125if test x$gcc_no_link = xyes; then
5213506e 11126 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 11127fi
5213506e 11128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
11129/* end confdefs.h. */
11130
5213506e
RW
11131/* Override any GCC internal prototype to avoid an error.
11132 Use char because int might match the return type of a GCC
11133 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
11134#ifdef __cplusplus
11135extern "C"
11136#endif
1cf3d07d
SE
11137char dlopen ();
11138int
11139main ()
11140{
5213506e 11141return dlopen ();
1cf3d07d
SE
11142 ;
11143 return 0;
11144}
11145_ACEOF
5213506e 11146if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
11147 ac_cv_lib_dl_dlopen=yes
11148else
5213506e 11149 ac_cv_lib_dl_dlopen=no
1cf3d07d 11150fi
5213506e
RW
11151rm -f core conftest.err conftest.$ac_objext \
11152 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
11153LIBS=$ac_check_lib_save_LIBS
11154fi
5213506e
RW
11155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11156$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11157if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1cf3d07d
SE
11158 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11159else
11160
11161 lt_cv_dlopen="dyld"
11162 lt_cv_dlopen_libs=
11163 lt_cv_dlopen_self=yes
11164
11165fi
11166
11167 ;;
11168
11169 *)
5213506e
RW
11170 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11171if test "x$ac_cv_func_shl_load" = x""yes; then :
11172 lt_cv_dlopen="shl_load"
1cf3d07d 11173else
5213506e
RW
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11175$as_echo_n "checking for shl_load in -ldld... " >&6; }
11176if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11177 $as_echo_n "(cached) " >&6
11178else
11179 ac_check_lib_save_LIBS=$LIBS
11180LIBS="-ldld $LIBS"
11181if test x$gcc_no_link = xyes; then
11182 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 11183fi
5213506e 11184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 11185/* end confdefs.h. */
1cf3d07d 11186
5213506e
RW
11187/* Override any GCC internal prototype to avoid an error.
11188 Use char because int might match the return type of a GCC
11189 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
11190#ifdef __cplusplus
11191extern "C"
1cf3d07d 11192#endif
1cf3d07d 11193char shl_load ();
1cf3d07d
SE
11194int
11195main ()
11196{
5213506e 11197return shl_load ();
1cf3d07d
SE
11198 ;
11199 return 0;
11200}
11201_ACEOF
5213506e
RW
11202if ac_fn_c_try_link "$LINENO"; then :
11203 ac_cv_lib_dld_shl_load=yes
1cf3d07d 11204else
5213506e 11205 ac_cv_lib_dld_shl_load=no
1cf3d07d 11206fi
5213506e
RW
11207rm -f core conftest.err conftest.$ac_objext \
11208 conftest$ac_exeext conftest.$ac_ext
11209LIBS=$ac_check_lib_save_LIBS
1cf3d07d 11210fi
5213506e
RW
11211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11212$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11213if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11214 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1cf3d07d 11215else
5213506e
RW
11216 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11217if test "x$ac_cv_func_dlopen" = x""yes; then :
11218 lt_cv_dlopen="dlopen"
11219else
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11221$as_echo_n "checking for dlopen in -ldl... " >&6; }
11222if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11223 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11224else
11225 ac_check_lib_save_LIBS=$LIBS
5213506e 11226LIBS="-ldl $LIBS"
1cf3d07d 11227if test x$gcc_no_link = xyes; then
5213506e 11228 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 11229fi
5213506e 11230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
11231/* end confdefs.h. */
11232
5213506e
RW
11233/* Override any GCC internal prototype to avoid an error.
11234 Use char because int might match the return type of a GCC
11235 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
11236#ifdef __cplusplus
11237extern "C"
11238#endif
5213506e 11239char dlopen ();
1cf3d07d
SE
11240int
11241main ()
11242{
5213506e 11243return dlopen ();
1cf3d07d
SE
11244 ;
11245 return 0;
11246}
11247_ACEOF
5213506e
RW
11248if ac_fn_c_try_link "$LINENO"; then :
11249 ac_cv_lib_dl_dlopen=yes
1cf3d07d 11250else
5213506e 11251 ac_cv_lib_dl_dlopen=no
1cf3d07d 11252fi
5213506e
RW
11253rm -f core conftest.err conftest.$ac_objext \
11254 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
11255LIBS=$ac_check_lib_save_LIBS
11256fi
5213506e
RW
11257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11258$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11259if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11260 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1cf3d07d 11261else
5213506e
RW
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11263$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11264if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11265 $as_echo_n "(cached) " >&6
1cf3d07d 11266else
5213506e
RW
11267 ac_check_lib_save_LIBS=$LIBS
11268LIBS="-lsvld $LIBS"
11269if test x$gcc_no_link = xyes; then
11270 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 11271fi
5213506e 11272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 11273/* end confdefs.h. */
1cf3d07d 11274
5213506e
RW
11275/* Override any GCC internal prototype to avoid an error.
11276 Use char because int might match the return type of a GCC
11277 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
11278#ifdef __cplusplus
11279extern "C"
1cf3d07d 11280#endif
1cf3d07d 11281char dlopen ();
1cf3d07d
SE
11282int
11283main ()
11284{
5213506e 11285return dlopen ();
1cf3d07d
SE
11286 ;
11287 return 0;
11288}
11289_ACEOF
5213506e
RW
11290if ac_fn_c_try_link "$LINENO"; then :
11291 ac_cv_lib_svld_dlopen=yes
1cf3d07d 11292else
5213506e 11293 ac_cv_lib_svld_dlopen=no
1cf3d07d 11294fi
5213506e
RW
11295rm -f core conftest.err conftest.$ac_objext \
11296 conftest$ac_exeext conftest.$ac_ext
11297LIBS=$ac_check_lib_save_LIBS
1cf3d07d 11298fi
5213506e
RW
11299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11300$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11301if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11302 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
1cf3d07d 11303else
5213506e
RW
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11305$as_echo_n "checking for dld_link in -ldld... " >&6; }
11306if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11307 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11308else
11309 ac_check_lib_save_LIBS=$LIBS
11310LIBS="-ldld $LIBS"
11311if test x$gcc_no_link = xyes; then
5213506e 11312 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 11313fi
5213506e 11314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
11315/* end confdefs.h. */
11316
5213506e
RW
11317/* Override any GCC internal prototype to avoid an error.
11318 Use char because int might match the return type of a GCC
11319 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
11320#ifdef __cplusplus
11321extern "C"
11322#endif
1cf3d07d
SE
11323char dld_link ();
11324int
11325main ()
11326{
5213506e 11327return dld_link ();
1cf3d07d
SE
11328 ;
11329 return 0;
11330}
11331_ACEOF
5213506e 11332if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
11333 ac_cv_lib_dld_dld_link=yes
11334else
5213506e 11335 ac_cv_lib_dld_dld_link=no
1cf3d07d 11336fi
5213506e
RW
11337rm -f core conftest.err conftest.$ac_objext \
11338 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
11339LIBS=$ac_check_lib_save_LIBS
11340fi
5213506e
RW
11341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11342$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11343if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
93e92f52 11344 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1cf3d07d
SE
11345fi
11346
11347
11348fi
11349
11350
11351fi
11352
11353
11354fi
11355
11356
11357fi
11358
11359
11360fi
11361
11362 ;;
11363 esac
11364
11365 if test "x$lt_cv_dlopen" != xno; then
11366 enable_dlopen=yes
11367 else
11368 enable_dlopen=no
11369 fi
11370
11371 case $lt_cv_dlopen in
11372 dlopen)
11373 save_CPPFLAGS="$CPPFLAGS"
11374 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11375
11376 save_LDFLAGS="$LDFLAGS"
11377 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11378
11379 save_LIBS="$LIBS"
11380 LIBS="$lt_cv_dlopen_libs $LIBS"
11381
5213506e
RW
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11383$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11384if test "${lt_cv_dlopen_self+set}" = set; then :
11385 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11386else
11387 if test "$cross_compiling" = yes; then :
11388 lt_cv_dlopen_self=cross
11389else
11390 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11391 lt_status=$lt_dlunknown
11392 cat > conftest.$ac_ext <<_LT_EOF
029c8f3e 11393#line 11393 "configure"
1cf3d07d
SE
11394#include "confdefs.h"
11395
11396#if HAVE_DLFCN_H
11397#include <dlfcn.h>
11398#endif
11399
11400#include <stdio.h>
11401
11402#ifdef RTLD_GLOBAL
11403# define LT_DLGLOBAL RTLD_GLOBAL
11404#else
11405# ifdef DL_GLOBAL
11406# define LT_DLGLOBAL DL_GLOBAL
11407# else
11408# define LT_DLGLOBAL 0
11409# endif
11410#endif
11411
11412/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11413 find out it does not work in some platform. */
11414#ifndef LT_DLLAZY_OR_NOW
11415# ifdef RTLD_LAZY
11416# define LT_DLLAZY_OR_NOW RTLD_LAZY
11417# else
11418# ifdef DL_LAZY
11419# define LT_DLLAZY_OR_NOW DL_LAZY
11420# else
11421# ifdef RTLD_NOW
11422# define LT_DLLAZY_OR_NOW RTLD_NOW
11423# else
11424# ifdef DL_NOW
11425# define LT_DLLAZY_OR_NOW DL_NOW
11426# else
11427# define LT_DLLAZY_OR_NOW 0
11428# endif
11429# endif
11430# endif
11431# endif
11432#endif
11433
43e02a8a
RW
11434/* When -fvisbility=hidden is used, assume the code has been annotated
11435 correspondingly for the symbols needed. */
11436#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11437void fnord () __attribute__((visibility("default")));
11438#endif
11439
11440void fnord () { int i=42; }
1cf3d07d
SE
11441int main ()
11442{
11443 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11444 int status = $lt_dlunknown;
11445
11446 if (self)
11447 {
11448 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
11449 else
11450 {
11451 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11452 else puts (dlerror ());
11453 }
1cf3d07d
SE
11454 /* dlclose (self); */
11455 }
11456 else
11457 puts (dlerror ());
11458
93e92f52 11459 return status;
1cf3d07d
SE
11460}
11461_LT_EOF
5213506e 11462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
11463 (eval $ac_link) 2>&5
11464 ac_status=$?
5213506e
RW
11465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11466 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
11467 (./conftest; exit; ) >&5 2>/dev/null
11468 lt_status=$?
11469 case x$lt_status in
11470 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11471 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11472 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11473 esac
11474 else :
11475 # compilation failed
11476 lt_cv_dlopen_self=no
11477 fi
11478fi
11479rm -fr conftest*
11480
11481
11482fi
5213506e
RW
11483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11484$as_echo "$lt_cv_dlopen_self" >&6; }
1cf3d07d
SE
11485
11486 if test "x$lt_cv_dlopen_self" = xyes; then
11487 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
5213506e
RW
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11489$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11490if test "${lt_cv_dlopen_self_static+set}" = set; then :
11491 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11492else
11493 if test "$cross_compiling" = yes; then :
11494 lt_cv_dlopen_self_static=cross
11495else
11496 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11497 lt_status=$lt_dlunknown
11498 cat > conftest.$ac_ext <<_LT_EOF
029c8f3e 11499#line 11499 "configure"
1cf3d07d
SE
11500#include "confdefs.h"
11501
11502#if HAVE_DLFCN_H
11503#include <dlfcn.h>
11504#endif
11505
11506#include <stdio.h>
11507
11508#ifdef RTLD_GLOBAL
11509# define LT_DLGLOBAL RTLD_GLOBAL
11510#else
11511# ifdef DL_GLOBAL
11512# define LT_DLGLOBAL DL_GLOBAL
11513# else
11514# define LT_DLGLOBAL 0
11515# endif
11516#endif
11517
11518/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11519 find out it does not work in some platform. */
11520#ifndef LT_DLLAZY_OR_NOW
11521# ifdef RTLD_LAZY
11522# define LT_DLLAZY_OR_NOW RTLD_LAZY
11523# else
11524# ifdef DL_LAZY
11525# define LT_DLLAZY_OR_NOW DL_LAZY
11526# else
11527# ifdef RTLD_NOW
11528# define LT_DLLAZY_OR_NOW RTLD_NOW
11529# else
11530# ifdef DL_NOW
11531# define LT_DLLAZY_OR_NOW DL_NOW
11532# else
11533# define LT_DLLAZY_OR_NOW 0
11534# endif
11535# endif
11536# endif
11537# endif
11538#endif
11539
43e02a8a
RW
11540/* When -fvisbility=hidden is used, assume the code has been annotated
11541 correspondingly for the symbols needed. */
11542#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11543void fnord () __attribute__((visibility("default")));
11544#endif
11545
11546void fnord () { int i=42; }
1cf3d07d
SE
11547int main ()
11548{
11549 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11550 int status = $lt_dlunknown;
11551
11552 if (self)
11553 {
11554 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
11555 else
11556 {
11557 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11558 else puts (dlerror ());
11559 }
1cf3d07d
SE
11560 /* dlclose (self); */
11561 }
11562 else
11563 puts (dlerror ());
11564
93e92f52 11565 return status;
1cf3d07d
SE
11566}
11567_LT_EOF
5213506e 11568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
11569 (eval $ac_link) 2>&5
11570 ac_status=$?
5213506e
RW
11571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11572 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
11573 (./conftest; exit; ) >&5 2>/dev/null
11574 lt_status=$?
11575 case x$lt_status in
11576 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11577 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11578 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11579 esac
11580 else :
11581 # compilation failed
11582 lt_cv_dlopen_self_static=no
11583 fi
11584fi
11585rm -fr conftest*
11586
11587
11588fi
5213506e
RW
11589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11590$as_echo "$lt_cv_dlopen_self_static" >&6; }
1cf3d07d
SE
11591 fi
11592
11593 CPPFLAGS="$save_CPPFLAGS"
11594 LDFLAGS="$save_LDFLAGS"
11595 LIBS="$save_LIBS"
11596 ;;
11597 esac
11598
11599 case $lt_cv_dlopen_self in
11600 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11601 *) enable_dlopen_self=unknown ;;
11602 esac
11603
11604 case $lt_cv_dlopen_self_static in
11605 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11606 *) enable_dlopen_self_static=unknown ;;
11607 esac
11608fi
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626striplib=
11627old_striplib=
5213506e
RW
11628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11629$as_echo_n "checking whether stripping libraries is possible... " >&6; }
1cf3d07d
SE
11630if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11631 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11632 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5213506e
RW
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11634$as_echo "yes" >&6; }
1cf3d07d
SE
11635else
11636# FIXME - insert some real tests, host_os isn't really good enough
11637 case $host_os in
11638 darwin*)
11639 if test -n "$STRIP" ; then
11640 striplib="$STRIP -x"
11641 old_striplib="$STRIP -S"
5213506e
RW
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11643$as_echo "yes" >&6; }
1cf3d07d 11644 else
5213506e
RW
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11646$as_echo "no" >&6; }
1cf3d07d
SE
11647 fi
11648 ;;
11649 *)
5213506e
RW
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11651$as_echo "no" >&6; }
1cf3d07d
SE
11652 ;;
11653 esac
11654fi
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667 # Report which library types will actually be built
5213506e
RW
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11669$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11671$as_echo "$can_build_shared" >&6; }
1cf3d07d 11672
5213506e
RW
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11674$as_echo_n "checking whether to build shared libraries... " >&6; }
1cf3d07d
SE
11675 test "$can_build_shared" = "no" && enable_shared=no
11676
11677 # On AIX, shared libraries and static libraries use the same namespace, and
11678 # are all built from PIC.
11679 case $host_os in
11680 aix3*)
11681 test "$enable_shared" = yes && enable_static=no
11682 if test -n "$RANLIB"; then
11683 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11684 postinstall_cmds='$RANLIB $lib'
11685 fi
11686 ;;
11687
f3641e7e 11688 aix[4-9]*)
1cf3d07d
SE
11689 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11690 test "$enable_shared" = yes && enable_static=no
11691 fi
11692 ;;
11693 esac
5213506e
RW
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11695$as_echo "$enable_shared" >&6; }
1cf3d07d 11696
5213506e
RW
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11698$as_echo_n "checking whether to build static libraries... " >&6; }
1cf3d07d
SE
11699 # Make sure either enable_shared or enable_static is yes.
11700 test "$enable_shared" = yes || enable_static=yes
5213506e
RW
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11702$as_echo "$enable_static" >&6; }
1cf3d07d
SE
11703
11704
11705
11706
11707fi
11708ac_ext=c
11709ac_cpp='$CPP $CPPFLAGS'
11710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11712ac_compiler_gnu=$ac_cv_c_compiler_gnu
11713
11714CC="$lt_save_CC"
11715
43e02a8a
RW
11716 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11717 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11718 (test "X$CXX" != "Xg++"))) ; then
11719 ac_ext=cpp
11720ac_cpp='$CXXCPP $CPPFLAGS'
11721ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11722ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11723ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11725$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11726if test -z "$CXXCPP"; then
11727 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11728 $as_echo_n "(cached) " >&6
11729else
11730 # Double quotes because CXXCPP needs to be expanded
11731 for CXXCPP in "$CXX -E" "/lib/cpp"
11732 do
11733 ac_preproc_ok=false
11734for ac_cxx_preproc_warn_flag in '' yes
11735do
11736 # Use a header file that comes with gcc, so configuring glibc
11737 # with a fresh cross-compiler works.
11738 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11739 # <limits.h> exists even on freestanding compilers.
11740 # On the NeXT, cc -E runs the code through the compiler's parser,
11741 # not just through cpp. "Syntax error" is here to catch this case.
11742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11743/* end confdefs.h. */
11744#ifdef __STDC__
11745# include <limits.h>
11746#else
11747# include <assert.h>
11748#endif
11749 Syntax error
11750_ACEOF
11751if ac_fn_cxx_try_cpp "$LINENO"; then :
11752
11753else
11754 # Broken: fails on valid input.
11755continue
11756fi
11757rm -f conftest.err conftest.$ac_ext
11758
11759 # OK, works on sane cases. Now check whether nonexistent headers
11760 # can be detected and how.
11761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11762/* end confdefs.h. */
11763#include <ac_nonexistent.h>
11764_ACEOF
11765if ac_fn_cxx_try_cpp "$LINENO"; then :
11766 # Broken: success on invalid input.
11767continue
11768else
11769 # Passes both tests.
11770ac_preproc_ok=:
11771break
11772fi
11773rm -f conftest.err conftest.$ac_ext
11774
11775done
11776# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11777rm -f conftest.err conftest.$ac_ext
11778if $ac_preproc_ok; then :
11779 break
11780fi
11781
11782 done
11783 ac_cv_prog_CXXCPP=$CXXCPP
11784
11785fi
11786 CXXCPP=$ac_cv_prog_CXXCPP
11787else
11788 ac_cv_prog_CXXCPP=$CXXCPP
11789fi
11790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11791$as_echo "$CXXCPP" >&6; }
11792ac_preproc_ok=false
11793for ac_cxx_preproc_warn_flag in '' yes
11794do
11795 # Use a header file that comes with gcc, so configuring glibc
11796 # with a fresh cross-compiler works.
11797 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11798 # <limits.h> exists even on freestanding compilers.
11799 # On the NeXT, cc -E runs the code through the compiler's parser,
11800 # not just through cpp. "Syntax error" is here to catch this case.
11801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11802/* end confdefs.h. */
11803#ifdef __STDC__
11804# include <limits.h>
11805#else
11806# include <assert.h>
11807#endif
11808 Syntax error
11809_ACEOF
11810if ac_fn_cxx_try_cpp "$LINENO"; then :
11811
11812else
11813 # Broken: fails on valid input.
11814continue
11815fi
11816rm -f conftest.err conftest.$ac_ext
11817
11818 # OK, works on sane cases. Now check whether nonexistent headers
11819 # can be detected and how.
11820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11821/* end confdefs.h. */
11822#include <ac_nonexistent.h>
11823_ACEOF
11824if ac_fn_cxx_try_cpp "$LINENO"; then :
11825 # Broken: success on invalid input.
11826continue
11827else
11828 # Passes both tests.
11829ac_preproc_ok=:
11830break
11831fi
11832rm -f conftest.err conftest.$ac_ext
11833
11834done
11835# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11836rm -f conftest.err conftest.$ac_ext
11837if $ac_preproc_ok; then :
11838
11839else
11840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11841$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11842as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11843See \`config.log' for more details." "$LINENO" 5; }
11844fi
11845
11846ac_ext=c
11847ac_cpp='$CPP $CPPFLAGS'
11848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11850ac_compiler_gnu=$ac_cv_c_compiler_gnu
11851
11852else
11853 _lt_caught_CXX_error=yes
11854fi
1cf3d07d 11855
5213506e 11856ac_ext=cpp
1cf3d07d
SE
11857ac_cpp='$CXXCPP $CPPFLAGS'
11858ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11859ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11860ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11861
11862archive_cmds_need_lc_CXX=no
11863allow_undefined_flag_CXX=
11864always_export_symbols_CXX=no
11865archive_expsym_cmds_CXX=
11866compiler_needs_object_CXX=no
11867export_dynamic_flag_spec_CXX=
11868hardcode_direct_CXX=no
11869hardcode_direct_absolute_CXX=no
11870hardcode_libdir_flag_spec_CXX=
11871hardcode_libdir_flag_spec_ld_CXX=
11872hardcode_libdir_separator_CXX=
11873hardcode_minus_L_CXX=no
11874hardcode_shlibpath_var_CXX=unsupported
11875hardcode_automatic_CXX=no
11876inherit_rpath_CXX=no
11877module_cmds_CXX=
11878module_expsym_cmds_CXX=
11879link_all_deplibs_CXX=unknown
11880old_archive_cmds_CXX=$old_archive_cmds
43e02a8a
RW
11881reload_flag_CXX=$reload_flag
11882reload_cmds_CXX=$reload_cmds
1cf3d07d
SE
11883no_undefined_flag_CXX=
11884whole_archive_flag_spec_CXX=
11885enable_shared_with_static_runtimes_CXX=no
11886
11887# Source file extension for C++ test sources.
11888ac_ext=cpp
11889
11890# Object file extension for compiled C++ test sources.
11891objext=o
11892objext_CXX=$objext
11893
11894# No sense in running all these tests if we already determined that
11895# the CXX compiler isn't working. Some variables (like enable_shared)
11896# are currently assumed to apply to all compilers on this platform,
11897# and will be corrupted by setting them based on a non-working compiler.
11898if test "$_lt_caught_CXX_error" != yes; then
11899 # Code to be used in simple compile tests
11900 lt_simple_compile_test_code="int some_variable = 0;"
11901
11902 # Code to be used in simple link tests
11903 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11904
11905 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11906
11907
11908
11909
11910
11911
11912# If no C compiler was specified, use CC.
11913LTCC=${LTCC-"$CC"}
11914
11915# If no C compiler flags were specified, use CFLAGS.
11916LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11917
11918# Allow CC to be a program name with arguments.
11919compiler=$CC
11920
11921
11922 # save warnings/boilerplate of simple test code
11923 ac_outfile=conftest.$ac_objext
11924echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11925eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11926_lt_compiler_boilerplate=`cat conftest.err`
11927$RM conftest*
11928
11929 ac_outfile=conftest.$ac_objext
11930echo "$lt_simple_link_test_code" >conftest.$ac_ext
11931eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11932_lt_linker_boilerplate=`cat conftest.err`
93e92f52 11933$RM -r conftest*
1cf3d07d
SE
11934
11935
11936 # Allow CC to be a program name with arguments.
11937 lt_save_CC=$CC
11938 lt_save_LD=$LD
11939 lt_save_GCC=$GCC
11940 GCC=$GXX
11941 lt_save_with_gnu_ld=$with_gnu_ld
11942 lt_save_path_LD=$lt_cv_path_LD
11943 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11944 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11945 else
11946 $as_unset lt_cv_prog_gnu_ld
11947 fi
11948 if test -n "${lt_cv_path_LDCXX+set}"; then
11949 lt_cv_path_LD=$lt_cv_path_LDCXX
11950 else
11951 $as_unset lt_cv_path_LD
11952 fi
11953 test -z "${LDCXX+set}" || LD=$LDCXX
11954 CC=${CXX-"c++"}
11955 compiler=$CC
11956 compiler_CXX=$CC
11957 for cc_temp in $compiler""; do
11958 case $cc_temp in
11959 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11960 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11961 \-*) ;;
11962 *) break;;
11963 esac
11964done
43e02a8a 11965cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1cf3d07d
SE
11966
11967
11968 if test -n "$compiler"; then
11969 # We don't want -fno-exception when compiling C++ code, so set the
11970 # no_builtin_flag separately
11971 if test "$GXX" = yes; then
11972 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11973 else
11974 lt_prog_compiler_no_builtin_flag_CXX=
11975 fi
11976
11977 if test "$GXX" = yes; then
11978 # Set up default GNU C++ configuration
11979
11980
11981
5213506e
RW
11982# Check whether --with-gnu-ld was given.
11983if test "${with_gnu_ld+set}" = set; then :
11984 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1cf3d07d
SE
11985else
11986 with_gnu_ld=no
5213506e
RW
11987fi
11988
1cf3d07d
SE
11989ac_prog=ld
11990if test "$GCC" = yes; then
11991 # Check if gcc -print-prog-name=ld gives a path.
5213506e
RW
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11993$as_echo_n "checking for ld used by $CC... " >&6; }
1cf3d07d
SE
11994 case $host in
11995 *-*-mingw*)
11996 # gcc leaves a trailing carriage return which upsets mingw
11997 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11998 *)
11999 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12000 esac
12001 case $ac_prog in
12002 # Accept absolute paths.
12003 [\\/]* | ?:[\\/]*)
12004 re_direlt='/[^/][^/]*/\.\./'
12005 # Canonicalize the pathname of ld
12006 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12007 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12008 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12009 done
12010 test -z "$LD" && LD="$ac_prog"
12011 ;;
12012 "")
12013 # If it fails, then pretend we aren't using GCC.
12014 ac_prog=ld
12015 ;;
12016 *)
12017 # If it is relative, then search for the first ld in PATH.
12018 with_gnu_ld=unknown
12019 ;;
12020 esac
12021elif test "$with_gnu_ld" = yes; then
5213506e
RW
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12023$as_echo_n "checking for GNU ld... " >&6; }
1cf3d07d 12024else
5213506e
RW
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12026$as_echo_n "checking for non-GNU ld... " >&6; }
1cf3d07d 12027fi
5213506e
RW
12028if test "${lt_cv_path_LD+set}" = set; then :
12029 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12030else
12031 if test -z "$LD"; then
12032 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12033 for ac_dir in $PATH; do
12034 IFS="$lt_save_ifs"
12035 test -z "$ac_dir" && ac_dir=.
12036 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12037 lt_cv_path_LD="$ac_dir/$ac_prog"
12038 # Check to see if the program is GNU ld. I'd rather use --version,
12039 # but apparently some variants of GNU ld only accept -v.
12040 # Break only if it was the GNU/non-GNU ld that we prefer.
12041 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12042 *GNU* | *'with BFD'*)
12043 test "$with_gnu_ld" != no && break
12044 ;;
12045 *)
12046 test "$with_gnu_ld" != yes && break
12047 ;;
12048 esac
12049 fi
12050 done
12051 IFS="$lt_save_ifs"
12052else
12053 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12054fi
12055fi
12056
12057LD="$lt_cv_path_LD"
12058if test -n "$LD"; then
5213506e
RW
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12060$as_echo "$LD" >&6; }
1cf3d07d 12061else
5213506e
RW
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12063$as_echo "no" >&6; }
1cf3d07d 12064fi
5213506e
RW
12065test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12067$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12068if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12069 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12070else
12071 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12072case `$LD -v 2>&1 </dev/null` in
12073*GNU* | *'with BFD'*)
12074 lt_cv_prog_gnu_ld=yes
12075 ;;
12076*)
12077 lt_cv_prog_gnu_ld=no
12078 ;;
12079esac
12080fi
5213506e
RW
12081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12082$as_echo "$lt_cv_prog_gnu_ld" >&6; }
1cf3d07d
SE
12083with_gnu_ld=$lt_cv_prog_gnu_ld
12084
12085
12086
12087
12088
12089
12090
12091 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12092 # archiving commands below assume that GNU ld is being used.
12093 if test "$with_gnu_ld" = yes; then
12094 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12095 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'
12096
12097 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12098 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12099
12100 # If archive_cmds runs LD, not CC, wlarc should be empty
12101 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12102 # investigate it a little bit more. (MM)
12103 wlarc='${wl}'
12104
12105 # ancient GNU ld didn't support --whole-archive et. al.
12106 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12107 $GREP 'no-whole-archive' > /dev/null; then
12108 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12109 else
12110 whole_archive_flag_spec_CXX=
12111 fi
12112 else
12113 with_gnu_ld=no
12114 wlarc=
12115
12116 # A generic and very simple default shared library creation
12117 # command for GNU C++ for the case where it uses the native
12118 # linker, instead of GNU ld. If possible, this setting should
12119 # overridden to take advantage of the native linker features on
12120 # the platform it is being used on.
12121 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12122 fi
12123
12124 # Commands to make compiler produce verbose output that lists
12125 # what "hidden" libraries, object files and flags are used when
12126 # linking a shared library.
43e02a8a 12127 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
1cf3d07d
SE
12128
12129 else
12130 GXX=no
12131 with_gnu_ld=no
12132 wlarc=
12133 fi
12134
12135 # PORTME: fill in a description of your system's C++ link characteristics
5213506e
RW
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12137$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
12138 ld_shlibs_CXX=yes
12139 case $host_os in
12140 aix3*)
12141 # FIXME: insert proper C++ library support
12142 ld_shlibs_CXX=no
12143 ;;
f3641e7e 12144 aix[4-9]*)
1cf3d07d
SE
12145 if test "$host_cpu" = ia64; then
12146 # On IA64, the linker does run time linking by default, so we don't
12147 # have to do anything special.
12148 aix_use_runtimelinking=no
12149 exp_sym_flag='-Bexport'
12150 no_entry_flag=""
12151 else
12152 aix_use_runtimelinking=no
12153
12154 # Test if we are trying to use run time linking or normal
12155 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12156 # need to do runtime linking.
f3641e7e 12157 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
12158 for ld_flag in $LDFLAGS; do
12159 case $ld_flag in
12160 *-brtl*)
12161 aix_use_runtimelinking=yes
12162 break
12163 ;;
12164 esac
12165 done
12166 ;;
12167 esac
12168
12169 exp_sym_flag='-bexport'
12170 no_entry_flag='-bnoentry'
12171 fi
12172
12173 # When large executables or shared objects are built, AIX ld can
12174 # have problems creating the table of contents. If linking a library
12175 # or program results in "error TOC overflow" add -mminimal-toc to
12176 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12177 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12178
12179 archive_cmds_CXX=''
12180 hardcode_direct_CXX=yes
12181 hardcode_direct_absolute_CXX=yes
12182 hardcode_libdir_separator_CXX=':'
12183 link_all_deplibs_CXX=yes
12184 file_list_spec_CXX='${wl}-f,'
12185
12186 if test "$GXX" = yes; then
12187 case $host_os in aix4.[012]|aix4.[012].*)
12188 # We only want to do this on AIX 4.2 and lower, the check
12189 # below for broken collect2 doesn't work under 4.3+
12190 collect2name=`${CC} -print-prog-name=collect2`
12191 if test -f "$collect2name" &&
12192 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12193 then
12194 # We have reworked collect2
12195 :
12196 else
12197 # We have old collect2
12198 hardcode_direct_CXX=unsupported
12199 # It fails to find uninstalled libraries when the uninstalled
12200 # path is not listed in the libpath. Setting hardcode_minus_L
12201 # to unsupported forces relinking
12202 hardcode_minus_L_CXX=yes
12203 hardcode_libdir_flag_spec_CXX='-L$libdir'
12204 hardcode_libdir_separator_CXX=
12205 fi
12206 esac
12207 shared_flag='-shared'
12208 if test "$aix_use_runtimelinking" = yes; then
12209 shared_flag="$shared_flag "'${wl}-G'
12210 fi
12211 else
12212 # not using gcc
12213 if test "$host_cpu" = ia64; then
12214 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12215 # chokes on -Wl,-G. The following line is correct:
12216 shared_flag='-G'
12217 else
12218 if test "$aix_use_runtimelinking" = yes; then
12219 shared_flag='${wl}-G'
12220 else
12221 shared_flag='${wl}-bM:SRE'
12222 fi
12223 fi
12224 fi
12225
93e92f52 12226 export_dynamic_flag_spec_CXX='${wl}-bexpall'
1cf3d07d
SE
12227 # It seems that -bexpall does not export symbols beginning with
12228 # underscore (_), so it is better to generate a list of symbols to
12229 # export.
12230 always_export_symbols_CXX=yes
12231 if test "$aix_use_runtimelinking" = yes; then
12232 # Warning - without using the other runtime loading flags (-brtl),
12233 # -berok will link without error, but may produce a broken library.
12234 allow_undefined_flag_CXX='-berok'
12235 # Determine the default libpath from the value encoded in an empty
12236 # executable.
12237 if test x$gcc_no_link = xyes; then
5213506e 12238 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12239fi
5213506e 12240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12241/* end confdefs.h. */
12242
12243int
12244main ()
12245{
12246
12247 ;
12248 return 0;
12249}
12250_ACEOF
5213506e 12251if ac_fn_cxx_try_link "$LINENO"; then :
1cf3d07d
SE
12252
12253lt_aix_libpath_sed='
12254 /Import File Strings/,/^$/ {
12255 /^0/ {
12256 s/^0 *\(.*\)$/\1/
12257 p
12258 }
12259 }'
12260aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12261# Check for a 64-bit object if we didn't find anything.
12262if test -z "$aix_libpath"; then
12263 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12264fi
1cf3d07d 12265fi
5213506e
RW
12266rm -f core conftest.err conftest.$ac_objext \
12267 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12268if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12269
12270 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12271
43e02a8a 12272 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1cf3d07d
SE
12273 else
12274 if test "$host_cpu" = ia64; then
12275 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12276 allow_undefined_flag_CXX="-z nodefs"
12277 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"
12278 else
12279 # Determine the default libpath from the value encoded in an
12280 # empty executable.
12281 if test x$gcc_no_link = xyes; then
5213506e 12282 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12283fi
5213506e 12284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12285/* end confdefs.h. */
12286
12287int
12288main ()
12289{
12290
12291 ;
12292 return 0;
12293}
12294_ACEOF
5213506e 12295if ac_fn_cxx_try_link "$LINENO"; then :
1cf3d07d
SE
12296
12297lt_aix_libpath_sed='
12298 /Import File Strings/,/^$/ {
12299 /^0/ {
12300 s/^0 *\(.*\)$/\1/
12301 p
12302 }
12303 }'
12304aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12305# Check for a 64-bit object if we didn't find anything.
12306if test -z "$aix_libpath"; then
12307 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12308fi
1cf3d07d 12309fi
5213506e
RW
12310rm -f core conftest.err conftest.$ac_objext \
12311 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12312if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12313
12314 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12315 # Warning - without using the other run time loading flags,
12316 # -berok will link without error, but may produce a broken library.
12317 no_undefined_flag_CXX=' ${wl}-bernotok'
12318 allow_undefined_flag_CXX=' ${wl}-berok'
43e02a8a
RW
12319 if test "$with_gnu_ld" = yes; then
12320 # We only use this code for GNU lds that support --whole-archive.
12321 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12322 else
12323 # Exported symbols can be pulled into shared objects from archives
12324 whole_archive_flag_spec_CXX='$convenience'
12325 fi
1cf3d07d
SE
12326 archive_cmds_need_lc_CXX=yes
12327 # This is similar to how AIX traditionally builds its shared
12328 # libraries.
12329 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'
12330 fi
12331 fi
12332 ;;
12333
12334 beos*)
12335 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12336 allow_undefined_flag_CXX=unsupported
12337 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12338 # support --undefined. This deserves some investigation. FIXME
12339 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12340 else
12341 ld_shlibs_CXX=no
12342 fi
12343 ;;
12344
12345 chorus*)
12346 case $cc_basename in
12347 *)
12348 # FIXME: insert proper C++ library support
12349 ld_shlibs_CXX=no
12350 ;;
12351 esac
12352 ;;
12353
93e92f52 12354 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
12355 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12356 # as there is no search path for DLLs.
12357 hardcode_libdir_flag_spec_CXX='-L$libdir'
43e02a8a 12358 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
1cf3d07d
SE
12359 allow_undefined_flag_CXX=unsupported
12360 always_export_symbols_CXX=no
12361 enable_shared_with_static_runtimes_CXX=yes
12362
12363 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12364 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'
12365 # If the export-symbols file already is a .def file (1st line
12366 # is EXPORTS), use it as is; otherwise, prepend...
12367 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12368 cp $export_symbols $output_objdir/$soname.def;
12369 else
12370 echo EXPORTS > $output_objdir/$soname.def;
12371 cat $export_symbols >> $output_objdir/$soname.def;
12372 fi~
12373 $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'
12374 else
12375 ld_shlibs_CXX=no
12376 fi
12377 ;;
12378 darwin* | rhapsody*)
1cf3d07d 12379
1cf3d07d 12380
93e92f52
PG
12381 archive_cmds_need_lc_CXX=no
12382 hardcode_direct_CXX=no
12383 hardcode_automatic_CXX=yes
12384 hardcode_shlibpath_var_CXX=unsupported
43e02a8a
RW
12385 if test "$lt_cv_ld_force_load" = "yes"; then
12386 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\"`'
12387 else
12388 whole_archive_flag_spec_CXX=''
12389 fi
93e92f52
PG
12390 link_all_deplibs_CXX=yes
12391 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12392 case $cc_basename in
12393 ifort*) _lt_dar_can_shared=yes ;;
12394 *) _lt_dar_can_shared=$GCC ;;
12395 esac
12396 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 12397 output_verbose_link_cmd=func_echo_all
93e92f52
PG
12398 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}"
12399 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12400 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}"
12401 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}"
12402 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12403 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}"
12404 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}"
12405 fi
12406
12407 else
12408 ld_shlibs_CXX=no
12409 fi
12410
1cf3d07d
SE
12411 ;;
12412
12413 dgux*)
12414 case $cc_basename in
12415 ec++*)
12416 # FIXME: insert proper C++ library support
12417 ld_shlibs_CXX=no
12418 ;;
12419 ghcx*)
12420 # Green Hills C++ Compiler
12421 # FIXME: insert proper C++ library support
12422 ld_shlibs_CXX=no
12423 ;;
12424 *)
12425 # FIXME: insert proper C++ library support
12426 ld_shlibs_CXX=no
12427 ;;
12428 esac
12429 ;;
12430
12431 freebsd[12]*)
12432 # C++ shared libraries reported to be fairly broken before
12433 # switch to ELF
12434 ld_shlibs_CXX=no
12435 ;;
12436
12437 freebsd-elf*)
12438 archive_cmds_need_lc_CXX=no
12439 ;;
12440
12441 freebsd* | dragonfly*)
12442 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12443 # conventions
12444 ld_shlibs_CXX=yes
12445 ;;
12446
12447 gnu*)
12448 ;;
12449
43e02a8a
RW
12450 haiku*)
12451 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12452 link_all_deplibs_CXX=yes
12453 ;;
12454
1cf3d07d
SE
12455 hpux9*)
12456 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12457 hardcode_libdir_separator_CXX=:
12458 export_dynamic_flag_spec_CXX='${wl}-E'
12459 hardcode_direct_CXX=yes
12460 hardcode_minus_L_CXX=yes # Not in the search PATH,
12461 # but as the default
12462 # location of the library.
12463
12464 case $cc_basename in
12465 CC*)
12466 # FIXME: insert proper C++ library support
12467 ld_shlibs_CXX=no
12468 ;;
12469 aCC*)
12470 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'
12471 # Commands to make compiler produce verbose output that lists
12472 # what "hidden" libraries, object files and flags are used when
12473 # linking a shared library.
12474 #
12475 # There doesn't appear to be a way to prevent this compiler from
12476 # explicitly linking system object files so we need to strip them
12477 # from the output so that they don't get included in the library
12478 # dependencies.
43e02a8a 12479 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
1cf3d07d
SE
12480 ;;
12481 *)
12482 if test "$GXX" = yes; then
12483 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'
12484 else
12485 # FIXME: insert proper C++ library support
12486 ld_shlibs_CXX=no
12487 fi
12488 ;;
12489 esac
12490 ;;
12491
12492 hpux10*|hpux11*)
12493 if test $with_gnu_ld = no; then
12494 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12495 hardcode_libdir_separator_CXX=:
12496
12497 case $host_cpu in
12498 hppa*64*|ia64*)
12499 ;;
12500 *)
12501 export_dynamic_flag_spec_CXX='${wl}-E'
12502 ;;
12503 esac
12504 fi
12505 case $host_cpu in
12506 hppa*64*|ia64*)
12507 hardcode_direct_CXX=no
12508 hardcode_shlibpath_var_CXX=no
12509 ;;
12510 *)
12511 hardcode_direct_CXX=yes
12512 hardcode_direct_absolute_CXX=yes
12513 hardcode_minus_L_CXX=yes # Not in the search PATH,
12514 # but as the default
12515 # location of the library.
12516 ;;
12517 esac
12518
12519 case $cc_basename in
12520 CC*)
12521 # FIXME: insert proper C++ library support
12522 ld_shlibs_CXX=no
12523 ;;
12524 aCC*)
12525 case $host_cpu in
12526 hppa*64*)
12527 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12528 ;;
12529 ia64*)
12530 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12531 ;;
12532 *)
12533 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12534 ;;
12535 esac
12536 # Commands to make compiler produce verbose output that lists
12537 # what "hidden" libraries, object files and flags are used when
12538 # linking a shared library.
12539 #
12540 # There doesn't appear to be a way to prevent this compiler from
12541 # explicitly linking system object files so we need to strip them
12542 # from the output so that they don't get included in the library
12543 # dependencies.
43e02a8a 12544 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
1cf3d07d
SE
12545 ;;
12546 *)
12547 if test "$GXX" = yes; then
12548 if test $with_gnu_ld = no; then
12549 case $host_cpu in
12550 hppa*64*)
12551 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12552 ;;
12553 ia64*)
12554 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12555 ;;
12556 *)
12557 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'
12558 ;;
12559 esac
12560 fi
12561 else
12562 # FIXME: insert proper C++ library support
12563 ld_shlibs_CXX=no
12564 fi
12565 ;;
12566 esac
12567 ;;
12568
12569 interix[3-9]*)
12570 hardcode_direct_CXX=no
12571 hardcode_shlibpath_var_CXX=no
12572 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12573 export_dynamic_flag_spec_CXX='${wl}-E'
12574 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12575 # Instead, shared libraries are loaded at an image base (0x10000000 by
12576 # default) and relocated if they conflict, which is a slow very memory
12577 # consuming and fragmenting process. To avoid this, we pick a random,
12578 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12579 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12580 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'
12581 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'
12582 ;;
12583 irix5* | irix6*)
12584 case $cc_basename in
12585 CC*)
12586 # SGI C++
43e02a8a 12587 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
12588
12589 # Archives containing C++ object files must be created using
12590 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12591 # necessary to make sure instantiated templates are included
12592 # in the archive.
12593 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12594 ;;
12595 *)
12596 if test "$GXX" = yes; then
12597 if test "$with_gnu_ld" = no; then
43e02a8a 12598 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d 12599 else
43e02a8a 12600 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
1cf3d07d
SE
12601 fi
12602 fi
12603 link_all_deplibs_CXX=yes
12604 ;;
12605 esac
12606 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12607 hardcode_libdir_separator_CXX=:
12608 inherit_rpath_CXX=yes
12609 ;;
12610
7a9d3fe8 12611 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
12612 case $cc_basename in
12613 KCC*)
12614 # Kuck and Associates, Inc. (KAI) C++ Compiler
12615
12616 # KCC will only create a shared library if the output file
12617 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12618 # to its proper name (with version) after linking.
12619 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'
12620 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'
12621 # Commands to make compiler produce verbose output that lists
12622 # what "hidden" libraries, object files and flags are used when
12623 # linking a shared library.
12624 #
12625 # There doesn't appear to be a way to prevent this compiler from
12626 # explicitly linking system object files so we need to strip them
12627 # from the output so that they don't get included in the library
12628 # dependencies.
43e02a8a 12629 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
1cf3d07d
SE
12630
12631 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12632 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12633
12634 # Archives containing C++ object files must be created using
12635 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12636 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12637 ;;
12638 icpc* | ecpc* )
12639 # Intel C++
12640 with_gnu_ld=yes
12641 # version 8.0 and above of icpc choke on multiply defined symbols
12642 # if we add $predep_objects and $postdep_objects, however 7.1 and
12643 # earlier do not add the objects themselves.
12644 case `$CC -V 2>&1` in
12645 *"Version 7."*)
12646 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12647 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'
12648 ;;
12649 *) # Version 8.0 or newer
12650 tmp_idyn=
12651 case $host_cpu in
12652 ia64*) tmp_idyn=' -i_dynamic';;
12653 esac
12654 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12655 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'
12656 ;;
12657 esac
12658 archive_cmds_need_lc_CXX=no
12659 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12660 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12661 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12662 ;;
93e92f52 12663 pgCC* | pgcpp*)
1cf3d07d
SE
12664 # Portland Group C++ compiler
12665 case `$CC -V` in
43e02a8a 12666 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
1cf3d07d
SE
12667 prelink_cmds_CXX='tpldir=Template.dir~
12668 rm -rf $tpldir~
12669 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12670 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12671 old_archive_cmds_CXX='tpldir=Template.dir~
12672 rm -rf $tpldir~
12673 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12674 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12675 $RANLIB $oldlib'
12676 archive_cmds_CXX='tpldir=Template.dir~
12677 rm -rf $tpldir~
12678 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12679 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12680 archive_expsym_cmds_CXX='tpldir=Template.dir~
12681 rm -rf $tpldir~
12682 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12683 $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'
12684 ;;
43e02a8a 12685 *) # Version 6 and above use weak symbols
1cf3d07d
SE
12686 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12687 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'
12688 ;;
12689 esac
12690
12691 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12692 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
43e02a8a 12693 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
12694 ;;
12695 cxx*)
12696 # Compaq C++
12697 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12698 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'
12699
12700 runpath_var=LD_RUN_PATH
12701 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12702 hardcode_libdir_separator_CXX=:
12703
12704 # Commands to make compiler produce verbose output that lists
12705 # what "hidden" libraries, object files and flags are used when
12706 # linking a shared library.
12707 #
12708 # There doesn't appear to be a way to prevent this compiler from
12709 # explicitly linking system object files so we need to strip them
12710 # from the output so that they don't get included in the library
12711 # dependencies.
43e02a8a 12712 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
1cf3d07d 12713 ;;
43e02a8a 12714 xl* | mpixl* | bgxl*)
93e92f52
PG
12715 # IBM XL 8.0 on PPC, with GNU ld
12716 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12717 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12718 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12719 if test "x$supports_anon_versioning" = xyes; then
12720 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12721 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12722 echo "local: *; };" >> $output_objdir/$libname.ver~
12723 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12724 fi
12725 ;;
1cf3d07d
SE
12726 *)
12727 case `$CC -V 2>&1 | sed 5q` in
12728 *Sun\ C*)
12729 # Sun C++ 5.9
12730 no_undefined_flag_CXX=' -zdefs'
12731 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12732 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'
12733 hardcode_libdir_flag_spec_CXX='-R$libdir'
43e02a8a 12734 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
12735 compiler_needs_object_CXX=yes
12736
12737 # Not sure whether something based on
12738 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12739 # would be better.
43e02a8a 12740 output_verbose_link_cmd='func_echo_all'
1cf3d07d
SE
12741
12742 # Archives containing C++ object files must be created using
12743 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12744 # necessary to make sure instantiated templates are included
12745 # in the archive.
12746 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12747 ;;
12748 esac
12749 ;;
12750 esac
12751 ;;
12752
12753 lynxos*)
12754 # FIXME: insert proper C++ library support
12755 ld_shlibs_CXX=no
12756 ;;
12757
12758 m88k*)
12759 # FIXME: insert proper C++ library support
12760 ld_shlibs_CXX=no
12761 ;;
12762
12763 mvs*)
12764 case $cc_basename in
12765 cxx*)
12766 # FIXME: insert proper C++ library support
12767 ld_shlibs_CXX=no
12768 ;;
12769 *)
12770 # FIXME: insert proper C++ library support
12771 ld_shlibs_CXX=no
12772 ;;
12773 esac
12774 ;;
12775
12776 netbsd*)
12777 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12778 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12779 wlarc=
12780 hardcode_libdir_flag_spec_CXX='-R$libdir'
12781 hardcode_direct_CXX=yes
12782 hardcode_shlibpath_var_CXX=no
12783 fi
12784 # Workaround some broken pre-1.5 toolchains
12785 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12786 ;;
12787
12788 *nto* | *qnx*)
12789 ld_shlibs_CXX=yes
12790 ;;
12791
12792 openbsd2*)
12793 # C++ shared libraries are fairly broken
12794 ld_shlibs_CXX=no
12795 ;;
12796
12797 openbsd*)
93e92f52
PG
12798 if test -f /usr/libexec/ld.so; then
12799 hardcode_direct_CXX=yes
12800 hardcode_shlibpath_var_CXX=no
12801 hardcode_direct_absolute_CXX=yes
12802 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12803 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12804 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12805 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12806 export_dynamic_flag_spec_CXX='${wl}-E'
12807 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12808 fi
43e02a8a 12809 output_verbose_link_cmd=func_echo_all
93e92f52
PG
12810 else
12811 ld_shlibs_CXX=no
1cf3d07d 12812 fi
1cf3d07d
SE
12813 ;;
12814
12815 osf3* | osf4* | osf5*)
12816 case $cc_basename in
12817 KCC*)
12818 # Kuck and Associates, Inc. (KAI) C++ Compiler
12819
12820 # KCC will only create a shared library if the output file
12821 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12822 # to its proper name (with version) after linking.
12823 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'
12824
12825 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12826 hardcode_libdir_separator_CXX=:
12827
12828 # Archives containing C++ object files must be created using
12829 # the KAI C++ compiler.
12830 case $host in
12831 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12832 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12833 esac
12834 ;;
12835 RCC*)
12836 # Rational C++ 2.4.1
12837 # FIXME: insert proper C++ library support
12838 ld_shlibs_CXX=no
12839 ;;
12840 cxx*)
12841 case $host in
12842 osf3*)
12843 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 12844 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
12845 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12846 ;;
12847 *)
12848 allow_undefined_flag_CXX=' -expect_unresolved \*'
43e02a8a 12849 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
12850 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12851 echo "-hidden">> $lib.exp~
43e02a8a 12852 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
1cf3d07d
SE
12853 $RM $lib.exp'
12854 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12855 ;;
12856 esac
12857
12858 hardcode_libdir_separator_CXX=:
12859
12860 # Commands to make compiler produce verbose output that lists
12861 # what "hidden" libraries, object files and flags are used when
12862 # linking a shared library.
12863 #
12864 # There doesn't appear to be a way to prevent this compiler from
12865 # explicitly linking system object files so we need to strip them
12866 # from the output so that they don't get included in the library
12867 # dependencies.
43e02a8a 12868 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
1cf3d07d
SE
12869 ;;
12870 *)
12871 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12872 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12873 case $host in
12874 osf3*)
43e02a8a 12875 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
12876 ;;
12877 *)
43e02a8a 12878 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
12879 ;;
12880 esac
12881
12882 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12883 hardcode_libdir_separator_CXX=:
12884
12885 # Commands to make compiler produce verbose output that lists
12886 # what "hidden" libraries, object files and flags are used when
12887 # linking a shared library.
43e02a8a 12888 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
1cf3d07d
SE
12889
12890 else
12891 # FIXME: insert proper C++ library support
12892 ld_shlibs_CXX=no
12893 fi
12894 ;;
12895 esac
12896 ;;
12897
12898 psos*)
12899 # FIXME: insert proper C++ library support
12900 ld_shlibs_CXX=no
12901 ;;
12902
12903 sunos4*)
12904 case $cc_basename in
12905 CC*)
12906 # Sun C++ 4.x
12907 # FIXME: insert proper C++ library support
12908 ld_shlibs_CXX=no
12909 ;;
12910 lcc*)
12911 # Lucid
12912 # FIXME: insert proper C++ library support
12913 ld_shlibs_CXX=no
12914 ;;
12915 *)
12916 # FIXME: insert proper C++ library support
12917 ld_shlibs_CXX=no
12918 ;;
12919 esac
12920 ;;
12921
12922 solaris*)
12923 case $cc_basename in
12924 CC*)
12925 # Sun C++ 4.2, 5.x and Centerline C++
12926 archive_cmds_need_lc_CXX=yes
12927 no_undefined_flag_CXX=' -zdefs'
12928 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12929 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12930 $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'
12931
12932 hardcode_libdir_flag_spec_CXX='-R$libdir'
12933 hardcode_shlibpath_var_CXX=no
12934 case $host_os in
12935 solaris2.[0-5] | solaris2.[0-5].*) ;;
12936 *)
12937 # The compiler driver will combine and reorder linker options,
12938 # but understands `-z linker_flag'.
12939 # Supported since Solaris 2.6 (maybe 2.5.1?)
12940 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12941 ;;
12942 esac
12943 link_all_deplibs_CXX=yes
12944
43e02a8a 12945 output_verbose_link_cmd='func_echo_all'
1cf3d07d
SE
12946
12947 # Archives containing C++ object files must be created using
12948 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12949 # necessary to make sure instantiated templates are included
12950 # in the archive.
12951 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12952 ;;
12953 gcx*)
12954 # Green Hills C++ Compiler
12955 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12956
12957 # The C++ compiler must be used to create the archive.
12958 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12959 ;;
12960 *)
12961 # GNU C++ compiler with Solaris linker
12962 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12963 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12964 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12965 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12966 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12967 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12968
12969 # Commands to make compiler produce verbose output that lists
12970 # what "hidden" libraries, object files and flags are used when
12971 # linking a shared library.
43e02a8a 12972 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
1cf3d07d
SE
12973 else
12974 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12975 # platform.
12976 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12977 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12978 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12979
12980 # Commands to make compiler produce verbose output that lists
12981 # what "hidden" libraries, object files and flags are used when
12982 # linking a shared library.
43e02a8a 12983 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
1cf3d07d
SE
12984 fi
12985
12986 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12987 case $host_os in
12988 solaris2.[0-5] | solaris2.[0-5].*) ;;
12989 *)
12990 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12991 ;;
12992 esac
12993 fi
12994 ;;
12995 esac
12996 ;;
12997
12998 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12999 no_undefined_flag_CXX='${wl}-z,text'
13000 archive_cmds_need_lc_CXX=no
13001 hardcode_shlibpath_var_CXX=no
13002 runpath_var='LD_RUN_PATH'
13003
13004 case $cc_basename in
13005 CC*)
13006 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13007 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13008 ;;
13009 *)
13010 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13011 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13012 ;;
13013 esac
13014 ;;
13015
13016 sysv5* | sco3.2v5* | sco5v6*)
13017 # Note: We can NOT use -z defs as we might desire, because we do not
13018 # link with -lc, and that would cause any symbols used from libc to
13019 # always be unresolved, which means just about no library would
13020 # ever link correctly. If we're not using GNU ld we use -z text
13021 # though, which does catch some bad symbols but isn't as heavy-handed
13022 # as -z defs.
13023 no_undefined_flag_CXX='${wl}-z,text'
13024 allow_undefined_flag_CXX='${wl}-z,nodefs'
13025 archive_cmds_need_lc_CXX=no
13026 hardcode_shlibpath_var_CXX=no
13027 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13028 hardcode_libdir_separator_CXX=':'
13029 link_all_deplibs_CXX=yes
13030 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13031 runpath_var='LD_RUN_PATH'
13032
13033 case $cc_basename in
13034 CC*)
13035 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13036 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
43e02a8a
RW
13037 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13038 '"$old_archive_cmds_CXX"
13039 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13040 '"$reload_cmds_CXX"
1cf3d07d
SE
13041 ;;
13042 *)
13043 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13044 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13045 ;;
13046 esac
13047 ;;
13048
13049 tandem*)
13050 case $cc_basename in
13051 NCC*)
13052 # NonStop-UX NCC 3.20
13053 # FIXME: insert proper C++ library support
13054 ld_shlibs_CXX=no
13055 ;;
13056 *)
13057 # FIXME: insert proper C++ library support
13058 ld_shlibs_CXX=no
13059 ;;
13060 esac
13061 ;;
13062
13063 vxworks*)
13064 # FIXME: insert proper C++ library support
13065 ld_shlibs_CXX=no
13066 ;;
13067
13068 *)
13069 # FIXME: insert proper C++ library support
13070 ld_shlibs_CXX=no
13071 ;;
13072 esac
13073
5213506e
RW
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13075$as_echo "$ld_shlibs_CXX" >&6; }
1cf3d07d
SE
13076 test "$ld_shlibs_CXX" = no && can_build_shared=no
13077
13078 GCC_CXX="$GXX"
13079 LD_CXX="$LD"
13080
13081 ## CAVEAT EMPTOR:
13082 ## There is no encapsulation within the following macros, do not change
13083 ## the running order or otherwise move them around unless you know exactly
13084 ## what you are doing...
13085 # Dependencies to place before and after the object being linked:
13086predep_objects_CXX=
13087postdep_objects_CXX=
13088predeps_CXX=
13089postdeps_CXX=
13090compiler_lib_search_path_CXX=
13091
13092cat > conftest.$ac_ext <<_LT_EOF
13093class Foo
13094{
13095public:
13096 Foo (void) { a = 0; }
13097private:
13098 int a;
13099};
13100_LT_EOF
13101
5213506e 13102if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
13103 (eval $ac_compile) 2>&5
13104 ac_status=$?
5213506e
RW
13105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13106 test $ac_status = 0; }; then
1cf3d07d
SE
13107 # Parse the compiler output and extract the necessary
13108 # objects, libraries and library flags.
13109
13110 # Sentinel used to keep track of whether or not we are before
13111 # the conftest object file.
13112 pre_test_object_deps_done=no
13113
93e92f52 13114 for p in `eval "$output_verbose_link_cmd"`; do
1cf3d07d
SE
13115 case $p in
13116
13117 -L* | -R* | -l*)
13118 # Some compilers place space between "-{L,R}" and the path.
13119 # Remove the space.
13120 if test $p = "-L" ||
13121 test $p = "-R"; then
13122 prev=$p
13123 continue
13124 else
13125 prev=
13126 fi
13127
13128 if test "$pre_test_object_deps_done" = no; then
13129 case $p in
13130 -L* | -R*)
13131 # Internal compiler library paths should come after those
13132 # provided the user. The postdeps already come after the
13133 # user supplied libs so there is no need to process them.
13134 if test -z "$compiler_lib_search_path_CXX"; then
13135 compiler_lib_search_path_CXX="${prev}${p}"
13136 else
13137 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13138 fi
13139 ;;
13140 # The "-l" case would never come before the object being
13141 # linked, so don't bother handling this case.
13142 esac
13143 else
13144 if test -z "$postdeps_CXX"; then
13145 postdeps_CXX="${prev}${p}"
13146 else
13147 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13148 fi
13149 fi
13150 ;;
13151
13152 *.$objext)
13153 # This assumes that the test object file only shows up
13154 # once in the compiler output.
13155 if test "$p" = "conftest.$objext"; then
13156 pre_test_object_deps_done=yes
13157 continue
13158 fi
13159
13160 if test "$pre_test_object_deps_done" = no; then
13161 if test -z "$predep_objects_CXX"; then
13162 predep_objects_CXX="$p"
13163 else
13164 predep_objects_CXX="$predep_objects_CXX $p"
13165 fi
13166 else
13167 if test -z "$postdep_objects_CXX"; then
13168 postdep_objects_CXX="$p"
13169 else
13170 postdep_objects_CXX="$postdep_objects_CXX $p"
13171 fi
13172 fi
13173 ;;
13174
13175 *) ;; # Ignore the rest.
13176
13177 esac
13178 done
13179
13180 # Clean up.
13181 rm -f a.out a.exe
13182else
13183 echo "libtool.m4: error: problem compiling CXX test program"
13184fi
13185
13186$RM -f confest.$objext
13187
13188# PORTME: override above test on systems where it is broken
13189case $host_os in
13190interix[3-9]*)
13191 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13192 # hack all around it, let's just trust "g++" to DTRT.
13193 predep_objects_CXX=
13194 postdep_objects_CXX=
13195 postdeps_CXX=
13196 ;;
13197
13198linux*)
13199 case `$CC -V 2>&1 | sed 5q` in
13200 *Sun\ C*)
13201 # Sun C++ 5.9
13202
13203 # The more standards-conforming stlport4 library is
13204 # incompatible with the Cstd library. Avoid specifying
13205 # it if it's in CXXFLAGS. Ignore libCrun as
13206 # -library=stlport4 depends on it.
13207 case " $CXX $CXXFLAGS " in
13208 *" -library=stlport4 "*)
13209 solaris_use_stlport4=yes
3343fdd2 13210 ;;
1cf3d07d
SE
13211 esac
13212
13213 if test "$solaris_use_stlport4" != yes; then
13214 postdeps_CXX='-library=Cstd -library=Crun'
13215 fi
13216 ;;
13217 esac
13218 ;;
13219
13220solaris*)
13221 case $cc_basename in
13222 CC*)
13223 # The more standards-conforming stlport4 library is
13224 # incompatible with the Cstd library. Avoid specifying
13225 # it if it's in CXXFLAGS. Ignore libCrun as
13226 # -library=stlport4 depends on it.
13227 case " $CXX $CXXFLAGS " in
13228 *" -library=stlport4 "*)
13229 solaris_use_stlport4=yes
3343fdd2
AO
13230 ;;
13231 esac
1cf3d07d
SE
13232
13233 # Adding this requires a known-good setup of shared libraries for
13234 # Sun compiler versions before 5.6, else PIC objects from an old
13235 # archive will be linked into the output, leading to subtle bugs.
13236 if test "$solaris_use_stlport4" != yes; then
13237 postdeps_CXX='-library=Cstd -library=Crun'
13238 fi
13239 ;;
13240 esac
13241 ;;
13242esac
13243
13244
13245case " $postdeps_CXX " in
13246*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13247esac
93e92f52
PG
13248 compiler_lib_search_dirs_CXX=
13249if test -n "${compiler_lib_search_path_CXX}"; then
13250 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13251fi
13252
13253
13254
13255
13256
1cf3d07d
SE
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283 lt_prog_compiler_wl_CXX=
13284lt_prog_compiler_pic_CXX=
13285lt_prog_compiler_static_CXX=
13286
5213506e
RW
13287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13288$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
13289
13290 # C++ specific cases for pic, static, wl, etc.
13291 if test "$GXX" = yes; then
13292 lt_prog_compiler_wl_CXX='-Wl,'
13293 lt_prog_compiler_static_CXX='-static'
13294
13295 case $host_os in
13296 aix*)
13297 # All AIX code is PIC.
13298 if test "$host_cpu" = ia64; then
13299 # AIX 5 now supports IA64 processor
13300 lt_prog_compiler_static_CXX='-Bstatic'
13301 fi
66deb2be 13302 ;;
93e92f52 13303
1cf3d07d 13304 amigaos*)
93e92f52
PG
13305 case $host_cpu in
13306 powerpc)
13307 # see comment about AmigaOS4 .so support
13308 lt_prog_compiler_pic_CXX='-fPIC'
13309 ;;
13310 m68k)
13311 # FIXME: we need at least 68020 code to build shared libraries, but
13312 # adding the `-m68020' flag to GCC prevents building anything better,
13313 # like `-m68040'.
13314 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13315 ;;
13316 esac
66deb2be 13317 ;;
93e92f52 13318
1cf3d07d
SE
13319 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13320 # PIC is the default for these OSes.
13321 ;;
93e92f52 13322 mingw* | cygwin* | os2* | pw32* | cegcc*)
1cf3d07d
SE
13323 # This hack is so that the source file can tell whether it is being
13324 # built for inclusion in a dll (and should export symbols for example).
13325 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13326 # (--disable-auto-import) libraries
13327 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13328 ;;
13329 darwin* | rhapsody*)
13330 # PIC is the default on this platform
13331 # Common symbols not allowed in MH_DYLIB files
13332 lt_prog_compiler_pic_CXX='-fno-common'
13333 ;;
13334 *djgpp*)
13335 # DJGPP does not support shared libraries at all
13336 lt_prog_compiler_pic_CXX=
13337 ;;
43e02a8a
RW
13338 haiku*)
13339 # PIC is the default for Haiku.
13340 # The "-static" flag exists, but is broken.
13341 lt_prog_compiler_static_CXX=
13342 ;;
1cf3d07d
SE
13343 interix[3-9]*)
13344 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13345 # Instead, we relocate shared libraries at runtime.
13346 ;;
13347 sysv4*MP*)
13348 if test -d /usr/nec; then
13349 lt_prog_compiler_pic_CXX=-Kconform_pic
13350 fi
66deb2be 13351 ;;
1cf3d07d 13352 hpux*)
93e92f52
PG
13353 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13354 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13355 # sets the default TLS model and affects inlining.
1cf3d07d 13356 case $host_cpu in
93e92f52 13357 hppa*64*)
1cf3d07d
SE
13358 ;;
13359 *)
13360 lt_prog_compiler_pic_CXX='-fPIC'
13361 ;;
13362 esac
13363 ;;
13364 *qnx* | *nto*)
13365 # QNX uses GNU C++, but need to define -shared option too, otherwise
13366 # it will coredump.
13367 lt_prog_compiler_pic_CXX='-fPIC -shared'
13368 ;;
13369 *)
13370 lt_prog_compiler_pic_CXX='-fPIC'
13371 ;;
13372 esac
13373 else
13374 case $host_os in
f3641e7e 13375 aix[4-9]*)
1cf3d07d
SE
13376 # All AIX code is PIC.
13377 if test "$host_cpu" = ia64; then
13378 # AIX 5 now supports IA64 processor
13379 lt_prog_compiler_static_CXX='-Bstatic'
13380 else
13381 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13382 fi
13383 ;;
13384 chorus*)
13385 case $cc_basename in
13386 cxch68*)
13387 # Green Hills C++ Compiler
13388 # _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"
13389 ;;
13390 esac
13391 ;;
1cf3d07d
SE
13392 dgux*)
13393 case $cc_basename in
13394 ec++*)
13395 lt_prog_compiler_pic_CXX='-KPIC'
13396 ;;
13397 ghcx*)
13398 # Green Hills C++ Compiler
13399 lt_prog_compiler_pic_CXX='-pic'
13400 ;;
13401 *)
13402 ;;
13403 esac
13404 ;;
13405 freebsd* | dragonfly*)
13406 # FreeBSD uses GNU C++
13407 ;;
13408 hpux9* | hpux10* | hpux11*)
13409 case $cc_basename in
13410 CC*)
13411 lt_prog_compiler_wl_CXX='-Wl,'
13412 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13413 if test "$host_cpu" != ia64; then
13414 lt_prog_compiler_pic_CXX='+Z'
13415 fi
13416 ;;
13417 aCC*)
13418 lt_prog_compiler_wl_CXX='-Wl,'
13419 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13420 case $host_cpu in
13421 hppa*64*|ia64*)
13422 # +Z the default
13423 ;;
13424 *)
13425 lt_prog_compiler_pic_CXX='+Z'
13426 ;;
13427 esac
13428 ;;
13429 *)
13430 ;;
13431 esac
13432 ;;
13433 interix*)
13434 # This is c89, which is MS Visual C++ (no shared libs)
13435 # Anyone wants to do a port?
13436 ;;
13437 irix5* | irix6* | nonstopux*)
13438 case $cc_basename in
13439 CC*)
13440 lt_prog_compiler_wl_CXX='-Wl,'
13441 lt_prog_compiler_static_CXX='-non_shared'
13442 # CC pic flag -KPIC is the default.
13443 ;;
13444 *)
13445 ;;
13446 esac
13447 ;;
7a9d3fe8 13448 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
13449 case $cc_basename in
13450 KCC*)
13451 # KAI C++ Compiler
13452 lt_prog_compiler_wl_CXX='--backend -Wl,'
13453 lt_prog_compiler_pic_CXX='-fPIC'
13454 ;;
93e92f52
PG
13455 ecpc* )
13456 # old Intel C++ for x86_64 which still supported -KPIC.
1cf3d07d
SE
13457 lt_prog_compiler_wl_CXX='-Wl,'
13458 lt_prog_compiler_pic_CXX='-KPIC'
13459 lt_prog_compiler_static_CXX='-static'
13460 ;;
93e92f52
PG
13461 icpc* )
13462 # Intel C++, used to be incompatible with GCC.
13463 # ICC 10 doesn't accept -KPIC any more.
13464 lt_prog_compiler_wl_CXX='-Wl,'
13465 lt_prog_compiler_pic_CXX='-fPIC'
13466 lt_prog_compiler_static_CXX='-static'
13467 ;;
13468 pgCC* | pgcpp*)
1cf3d07d
SE
13469 # Portland Group C++ compiler
13470 lt_prog_compiler_wl_CXX='-Wl,'
13471 lt_prog_compiler_pic_CXX='-fpic'
13472 lt_prog_compiler_static_CXX='-Bstatic'
13473 ;;
13474 cxx*)
13475 # Compaq C++
13476 # Make sure the PIC flag is empty. It appears that all Alpha
13477 # Linux and Compaq Tru64 Unix objects are PIC.
13478 lt_prog_compiler_pic_CXX=
13479 lt_prog_compiler_static_CXX='-non_shared'
13480 ;;
43e02a8a
RW
13481 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13482 # IBM XL 8.0, 9.0 on PPC and BlueGene
93e92f52
PG
13483 lt_prog_compiler_wl_CXX='-Wl,'
13484 lt_prog_compiler_pic_CXX='-qpic'
13485 lt_prog_compiler_static_CXX='-qstaticlink'
13486 ;;
1cf3d07d
SE
13487 *)
13488 case `$CC -V 2>&1 | sed 5q` in
13489 *Sun\ C*)
13490 # Sun C++ 5.9
13491 lt_prog_compiler_pic_CXX='-KPIC'
13492 lt_prog_compiler_static_CXX='-Bstatic'
13493 lt_prog_compiler_wl_CXX='-Qoption ld '
13494 ;;
13495 esac
13496 ;;
13497 esac
13498 ;;
13499 lynxos*)
13500 ;;
13501 m88k*)
13502 ;;
13503 mvs*)
13504 case $cc_basename in
13505 cxx*)
13506 lt_prog_compiler_pic_CXX='-W c,exportall'
13507 ;;
13508 *)
13509 ;;
13510 esac
13511 ;;
13512 netbsd*)
13513 ;;
13514 *qnx* | *nto*)
13515 # QNX uses GNU C++, but need to define -shared option too, otherwise
13516 # it will coredump.
13517 lt_prog_compiler_pic_CXX='-fPIC -shared'
13518 ;;
13519 osf3* | osf4* | osf5*)
13520 case $cc_basename in
13521 KCC*)
13522 lt_prog_compiler_wl_CXX='--backend -Wl,'
13523 ;;
13524 RCC*)
13525 # Rational C++ 2.4.1
13526 lt_prog_compiler_pic_CXX='-pic'
13527 ;;
13528 cxx*)
13529 # Digital/Compaq C++
13530 lt_prog_compiler_wl_CXX='-Wl,'
13531 # Make sure the PIC flag is empty. It appears that all Alpha
13532 # Linux and Compaq Tru64 Unix objects are PIC.
13533 lt_prog_compiler_pic_CXX=
13534 lt_prog_compiler_static_CXX='-non_shared'
13535 ;;
13536 *)
13537 ;;
13538 esac
13539 ;;
13540 psos*)
13541 ;;
13542 solaris*)
13543 case $cc_basename in
13544 CC*)
13545 # Sun C++ 4.2, 5.x and Centerline C++
13546 lt_prog_compiler_pic_CXX='-KPIC'
13547 lt_prog_compiler_static_CXX='-Bstatic'
13548 lt_prog_compiler_wl_CXX='-Qoption ld '
13549 ;;
13550 gcx*)
13551 # Green Hills C++ Compiler
13552 lt_prog_compiler_pic_CXX='-PIC'
13553 ;;
13554 *)
13555 ;;
13556 esac
13557 ;;
13558 sunos4*)
13559 case $cc_basename in
13560 CC*)
13561 # Sun C++ 4.x
13562 lt_prog_compiler_pic_CXX='-pic'
13563 lt_prog_compiler_static_CXX='-Bstatic'
13564 ;;
13565 lcc*)
13566 # Lucid
13567 lt_prog_compiler_pic_CXX='-pic'
13568 ;;
13569 *)
13570 ;;
13571 esac
13572 ;;
13573 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13574 case $cc_basename in
13575 CC*)
13576 lt_prog_compiler_wl_CXX='-Wl,'
13577 lt_prog_compiler_pic_CXX='-KPIC'
13578 lt_prog_compiler_static_CXX='-Bstatic'
13579 ;;
13580 esac
13581 ;;
13582 tandem*)
13583 case $cc_basename in
13584 NCC*)
13585 # NonStop-UX NCC 3.20
13586 lt_prog_compiler_pic_CXX='-KPIC'
13587 ;;
13588 *)
13589 ;;
13590 esac
13591 ;;
13592 vxworks*)
13593 ;;
13594 *)
13595 lt_prog_compiler_can_build_shared_CXX=no
13596 ;;
66deb2be 13597 esac
1cf3d07d
SE
13598 fi
13599
13600case $host_os in
13601 # For platforms which do not support PIC, -DPIC is meaningless:
13602 *djgpp*)
13603 lt_prog_compiler_pic_CXX=
13604 ;;
13605 *)
13606 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13607 ;;
13608esac
5213506e
RW
13609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13610$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
1cf3d07d
SE
13611
13612
13613
13614#
13615# Check to make sure the PIC flag actually works.
13616#
13617if test -n "$lt_prog_compiler_pic_CXX"; then
5213506e
RW
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13619$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13620if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13621 $as_echo_n "(cached) " >&6
1cf3d07d 13622else
93e92f52 13623 lt_cv_prog_compiler_pic_works_CXX=no
1cf3d07d
SE
13624 ac_outfile=conftest.$ac_objext
13625 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13626 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13627 # Insert the option either (1) after the last *FLAGS variable, or
13628 # (2) before a word containing "conftest.", or (3) at the end.
13629 # Note that $ac_compile itself does not contain backslashes and begins
13630 # with a dollar sign (not a hyphen), so the echo should work correctly.
13631 # The option is referenced via a variable to avoid confusing sed.
13632 lt_compile=`echo "$ac_compile" | $SED \
13633 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13634 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13635 -e 's:$: $lt_compiler_flag:'`
43e02a8a 13636 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
13637 (eval "$lt_compile" 2>conftest.err)
13638 ac_status=$?
13639 cat conftest.err >&5
43e02a8a 13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
13641 if (exit $ac_status) && test -s "$ac_outfile"; then
13642 # The compiler can only warn and ignore the option if not recognized
13643 # So say no if there are warnings other than the usual output.
43e02a8a 13644 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
13645 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13646 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
93e92f52 13647 lt_cv_prog_compiler_pic_works_CXX=yes
1cf3d07d
SE
13648 fi
13649 fi
13650 $RM conftest*
13651
13652fi
5213506e
RW
13653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13654$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
1cf3d07d 13655
93e92f52 13656if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
1cf3d07d
SE
13657 case $lt_prog_compiler_pic_CXX in
13658 "" | " "*) ;;
13659 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13660 esac
13661else
13662 lt_prog_compiler_pic_CXX=
13663 lt_prog_compiler_can_build_shared_CXX=no
13664fi
13665
13666fi
13667
13668
13669
13670#
13671# Check to make sure the static flag actually works.
13672#
13673wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
5213506e
RW
13674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13675$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13676if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13677 $as_echo_n "(cached) " >&6
1cf3d07d 13678else
93e92f52 13679 lt_cv_prog_compiler_static_works_CXX=no
1cf3d07d
SE
13680 save_LDFLAGS="$LDFLAGS"
13681 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13682 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13683 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13684 # The linker can only warn and ignore the option if not recognized
13685 # So say no if there are warnings
13686 if test -s conftest.err; then
13687 # Append any errors to the config.log.
13688 cat conftest.err 1>&5
43e02a8a 13689 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1cf3d07d
SE
13690 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13691 if diff conftest.exp conftest.er2 >/dev/null; then
93e92f52 13692 lt_cv_prog_compiler_static_works_CXX=yes
1cf3d07d
SE
13693 fi
13694 else
93e92f52 13695 lt_cv_prog_compiler_static_works_CXX=yes
1cf3d07d
SE
13696 fi
13697 fi
93e92f52 13698 $RM -r conftest*
1cf3d07d
SE
13699 LDFLAGS="$save_LDFLAGS"
13700
13701fi
5213506e
RW
13702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13703$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1cf3d07d 13704
93e92f52 13705if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
1cf3d07d
SE
13706 :
13707else
13708 lt_prog_compiler_static_CXX=
13709fi
13710
13711
13712
13713
5213506e
RW
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13715$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13716if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13717 $as_echo_n "(cached) " >&6
1cf3d07d
SE
13718else
13719 lt_cv_prog_compiler_c_o_CXX=no
13720 $RM -r conftest 2>/dev/null
13721 mkdir conftest
13722 cd conftest
13723 mkdir out
13724 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13725
13726 lt_compiler_flag="-o out/conftest2.$ac_objext"
13727 # Insert the option either (1) after the last *FLAGS variable, or
13728 # (2) before a word containing "conftest.", or (3) at the end.
13729 # Note that $ac_compile itself does not contain backslashes and begins
13730 # with a dollar sign (not a hyphen), so the echo should work correctly.
13731 lt_compile=`echo "$ac_compile" | $SED \
13732 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13733 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13734 -e 's:$: $lt_compiler_flag:'`
43e02a8a 13735 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
13736 (eval "$lt_compile" 2>out/conftest.err)
13737 ac_status=$?
13738 cat out/conftest.err >&5
43e02a8a 13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
13740 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13741 then
13742 # The compiler can only warn and ignore the option if not recognized
13743 # So say no if there are warnings
43e02a8a 13744 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
13745 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13746 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13747 lt_cv_prog_compiler_c_o_CXX=yes
13748 fi
13749 fi
13750 chmod u+w . 2>&5
13751 $RM conftest*
13752 # SGI C++ compiler will create directory out/ii_files/ for
13753 # template instantiation
13754 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13755 $RM out/* && rmdir out
13756 cd ..
13757 $RM -r conftest
13758 $RM conftest*
13759
13760fi
5213506e
RW
13761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13762$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1cf3d07d
SE
13763
13764
13765
5213506e
RW
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13767$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13768if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13769 $as_echo_n "(cached) " >&6
1cf3d07d
SE
13770else
13771 lt_cv_prog_compiler_c_o_CXX=no
13772 $RM -r conftest 2>/dev/null
13773 mkdir conftest
13774 cd conftest
13775 mkdir out
13776 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13777
13778 lt_compiler_flag="-o out/conftest2.$ac_objext"
13779 # Insert the option either (1) after the last *FLAGS variable, or
13780 # (2) before a word containing "conftest.", or (3) at the end.
13781 # Note that $ac_compile itself does not contain backslashes and begins
13782 # with a dollar sign (not a hyphen), so the echo should work correctly.
13783 lt_compile=`echo "$ac_compile" | $SED \
13784 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13785 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13786 -e 's:$: $lt_compiler_flag:'`
43e02a8a 13787 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
13788 (eval "$lt_compile" 2>out/conftest.err)
13789 ac_status=$?
13790 cat out/conftest.err >&5
43e02a8a 13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
13792 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13793 then
13794 # The compiler can only warn and ignore the option if not recognized
13795 # So say no if there are warnings
43e02a8a 13796 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
13797 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13798 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13799 lt_cv_prog_compiler_c_o_CXX=yes
13800 fi
3343fdd2 13801 fi
1cf3d07d
SE
13802 chmod u+w . 2>&5
13803 $RM conftest*
13804 # SGI C++ compiler will create directory out/ii_files/ for
13805 # template instantiation
13806 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13807 $RM out/* && rmdir out
13808 cd ..
13809 $RM -r conftest
13810 $RM conftest*
13811
13812fi
5213506e
RW
13813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13814$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1cf3d07d
SE
13815
13816
13817
13818
13819hard_links="nottested"
13820if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13821 # do not overwrite the value of need_locks provided by the user
5213506e
RW
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13823$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
13824 hard_links=yes
13825 $RM conftest*
13826 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13827 touch conftest.a
13828 ln conftest.a conftest.b 2>&5 || hard_links=no
13829 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13831$as_echo "$hard_links" >&6; }
1cf3d07d 13832 if test "$hard_links" = no; then
5213506e
RW
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13834$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d 13835 need_locks=warn
66deb2be 13836 fi
1cf3d07d
SE
13837else
13838 need_locks=no
13839fi
13840
13841
13842
5213506e
RW
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13844$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
13845
13846 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13847 case $host_os in
f3641e7e 13848 aix[4-9]*)
1cf3d07d
SE
13849 # If we're using GNU nm, then we don't want the "-C" option.
13850 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
13851 # Also, AIX nm treats weak defined symbols like other global defined
13852 # symbols, whereas GNU nm marks them as "W".
1cf3d07d 13853 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 13854 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1cf3d07d
SE
13855 else
13856 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'
13857 fi
13858 ;;
13859 pw32*)
13860 export_symbols_cmds_CXX="$ltdll_cmds"
13861 ;;
93e92f52 13862 cygwin* | mingw* | cegcc*)
1cf3d07d
SE
13863 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'
13864 ;;
13865 *)
13866 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
66deb2be 13867 ;;
1cf3d07d 13868 esac
93e92f52 13869 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
66deb2be 13870
5213506e
RW
13871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13872$as_echo "$ld_shlibs_CXX" >&6; }
1cf3d07d
SE
13873test "$ld_shlibs_CXX" = no && can_build_shared=no
13874
13875with_gnu_ld_CXX=$with_gnu_ld
13876
13877
13878
13879
13880
13881
13882#
13883# Do we need to explicitly link libc?
13884#
13885case "x$archive_cmds_need_lc_CXX" in
13886x|xyes)
13887 # Assume -lc should be added
13888 archive_cmds_need_lc_CXX=yes
13889
13890 if test "$enable_shared" = yes && test "$GCC" = yes; then
13891 case $archive_cmds_CXX in
13892 *'~'*)
13893 # FIXME: we may have to deal with multi-command sequences.
13894 ;;
13895 '$CC '*)
13896 # Test whether the compiler implicitly links with -lc since on some
13897 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13898 # to ld, don't add -lc before -lgcc.
5213506e
RW
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13900$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13901if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13902 $as_echo_n "(cached) " >&6
baafc534
RW
13903else
13904 $RM conftest*
13905 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 13906
5213506e 13907 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
47935194
NN
13908 (eval $ac_compile) 2>&5
13909 ac_status=$?
5213506e
RW
13910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13911 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
13912 soname=conftest
13913 lib=conftest
13914 libobjs=conftest.$ac_objext
13915 deplibs=
13916 wl=$lt_prog_compiler_wl_CXX
13917 pic_flag=$lt_prog_compiler_pic_CXX
13918 compiler_flags=-v
13919 linker_flags=-v
13920 verstring=
13921 output_objdir=.
13922 libname=conftest
13923 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13924 allow_undefined_flag_CXX=
5213506e 13925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d 13926 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
47935194 13927 ac_status=$?
5213506e
RW
13928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13929 test $ac_status = 0; }
baafc534
RW
13930 then
13931 lt_cv_archive_cmds_need_lc_CXX=no
13932 else
13933 lt_cv_archive_cmds_need_lc_CXX=yes
13934 fi
13935 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13936 else
13937 cat conftest.err 1>&5
13938 fi
13939 $RM conftest*
13940
13941fi
5213506e
RW
13942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13943$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
baafc534 13944 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13b6e5b4
AO
13945 ;;
13946 esac
13947 fi
13b6e5b4 13948 ;;
1cf3d07d 13949esac
13b6e5b4 13950
115dabb8 13951
115dabb8 13952
47935194 13953
47935194 13954
47935194 13955
47935194 13956
2f7bf5b7 13957
66deb2be 13958
66deb2be 13959
66deb2be 13960
115dabb8 13961
47935194 13962
47935194 13963
1cf3d07d
SE
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
5213506e
RW
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14015$as_echo_n "checking dynamic linker characteristics... " >&6; }
93e92f52 14016
1cf3d07d
SE
14017library_names_spec=
14018libname_spec='lib$name'
14019soname_spec=
14020shrext_cmds=".so"
14021postinstall_cmds=
14022postuninstall_cmds=
14023finish_cmds=
14024finish_eval=
14025shlibpath_var=
14026shlibpath_overrides_runpath=unknown
14027version_type=none
14028dynamic_linker="$host_os ld.so"
14029sys_lib_dlsearch_path_spec="/lib /usr/lib"
14030need_lib_prefix=unknown
14031hardcode_into_libs=no
14032
14033# when you set need_version to no, make sure it does not cause -set_version
14034# flags to be left without arguments
14035need_version=unknown
14036
14037case $host_os in
14038aix3*)
14039 version_type=linux
14040 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14041 shlibpath_var=LIBPATH
14042
14043 # AIX 3 has no versioning support, so we append a major version to the name.
14044 soname_spec='${libname}${release}${shared_ext}$major'
14045 ;;
14046
f3641e7e 14047aix[4-9]*)
1cf3d07d
SE
14048 version_type=linux
14049 need_lib_prefix=no
14050 need_version=no
14051 hardcode_into_libs=yes
14052 if test "$host_cpu" = ia64; then
14053 # AIX 5 supports IA64
14054 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14055 shlibpath_var=LD_LIBRARY_PATH
14056 else
14057 # With GCC up to 2.95.x, collect2 would create an import file
14058 # for dependence libraries. The import file would start with
14059 # the line `#! .'. This would cause the generated library to
14060 # depend on `.', always an invalid library. This was fixed in
14061 # development snapshots of GCC prior to 3.0.
14062 case $host_os in
14063 aix4 | aix4.[01] | aix4.[01].*)
14064 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14065 echo ' yes '
14066 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14067 :
14068 else
14069 can_build_shared=no
14070 fi
47935194 14071 ;;
1cf3d07d
SE
14072 esac
14073 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14074 # soname into executable. Probably we can add versioning support to
14075 # collect2, so additional links can be useful in future.
14076 if test "$aix_use_runtimelinking" = yes; then
14077 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14078 # instead of lib<name>.a to let people know that these are not
14079 # typical AIX shared libraries.
14080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14081 else
14082 # We preserve .a as extension for shared libraries through AIX4.2
14083 # and later when we are not doing run time linking.
14084 library_names_spec='${libname}${release}.a $libname.a'
14085 soname_spec='${libname}${release}${shared_ext}$major'
14086 fi
14087 shlibpath_var=LIBPATH
14088 fi
14089 ;;
14090
14091amigaos*)
93e92f52
PG
14092 case $host_cpu in
14093 powerpc)
14094 # Since July 2007 AmigaOS4 officially supports .so libraries.
14095 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14097 ;;
14098 m68k)
1cf3d07d
SE
14099 library_names_spec='$libname.ixlibrary $libname.a'
14100 # Create ${libname}_ixlibrary.a entries in /sys/libs.
43e02a8a 14101 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'
93e92f52
PG
14102 ;;
14103 esac
1cf3d07d 14104 ;;
115dabb8 14105
1cf3d07d
SE
14106beos*)
14107 library_names_spec='${libname}${shared_ext}'
14108 dynamic_linker="$host_os ld.so"
14109 shlibpath_var=LIBRARY_PATH
14110 ;;
66deb2be 14111
1cf3d07d
SE
14112bsdi[45]*)
14113 version_type=linux
14114 need_version=no
14115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14116 soname_spec='${libname}${release}${shared_ext}$major'
14117 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14118 shlibpath_var=LD_LIBRARY_PATH
14119 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14120 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14121 # the default ld.so.conf also contains /usr/contrib/lib and
14122 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14123 # libtool to hard-code these into programs
14124 ;;
14125
93e92f52 14126cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
14127 version_type=windows
14128 shrext_cmds=".dll"
14129 need_version=no
14130 need_lib_prefix=no
14131
93e92f52
PG
14132 case $GCC,$host_os in
14133 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
14134 library_names_spec='$libname.dll.a'
14135 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14136 postinstall_cmds='base_file=`basename \${file}`~
14137 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14138 dldir=$destdir/`dirname \$dlpath`~
14139 test -d \$dldir || mkdir -p \$dldir~
14140 $install_prog $dir/$dlname \$dldir/$dlname~
14141 chmod a+x \$dldir/$dlname~
14142 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14143 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14144 fi'
14145 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14146 dlpath=$dir/\$dldll~
14147 $RM \$dlpath'
14148 shlibpath_overrides_runpath=yes
14149
14150 case $host_os in
14151 cygwin*)
14152 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14153 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43e02a8a 14154
1cf3d07d 14155 ;;
93e92f52 14156 mingw* | cegcc*)
1cf3d07d
SE
14157 # MinGW DLLs use traditional 'lib' prefix
14158 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1cf3d07d
SE
14159 ;;
14160 pw32*)
14161 # pw32 DLLs use 'pw' prefix rather than 'lib'
14162 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14163 ;;
47935194 14164 esac
1cf3d07d 14165 ;;
115dabb8 14166
1cf3d07d
SE
14167 *)
14168 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14169 ;;
14170 esac
14171 dynamic_linker='Win32 ld.exe'
14172 # FIXME: first we should search . and the directory the executable is in
14173 shlibpath_var=PATH
14174 ;;
115dabb8 14175
1cf3d07d
SE
14176darwin* | rhapsody*)
14177 dynamic_linker="$host_os dyld"
14178 version_type=darwin
14179 need_lib_prefix=no
14180 need_version=no
14181 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14182 soname_spec='${libname}${release}${major}$shared_ext'
14183 shlibpath_overrides_runpath=yes
14184 shlibpath_var=DYLD_LIBRARY_PATH
14185 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14186
14187 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14188 ;;
115dabb8 14189
1cf3d07d
SE
14190dgux*)
14191 version_type=linux
14192 need_lib_prefix=no
14193 need_version=no
14194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14195 soname_spec='${libname}${release}${shared_ext}$major'
14196 shlibpath_var=LD_LIBRARY_PATH
14197 ;;
115dabb8 14198
1cf3d07d
SE
14199freebsd* | dragonfly*)
14200 # DragonFly does not have aout. When/if they implement a new
14201 # versioning mechanism, adjust this.
14202 if test -x /usr/bin/objformat; then
14203 objformat=`/usr/bin/objformat`
47935194 14204 else
1cf3d07d
SE
14205 case $host_os in
14206 freebsd[123]*) objformat=aout ;;
14207 *) objformat=elf ;;
14208 esac
47935194 14209 fi
1cf3d07d
SE
14210 version_type=freebsd-$objformat
14211 case $version_type in
14212 freebsd-elf*)
14213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14214 need_version=no
14215 need_lib_prefix=no
14216 ;;
14217 freebsd-*)
14218 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14219 need_version=yes
14220 ;;
14221 esac
14222 shlibpath_var=LD_LIBRARY_PATH
14223 case $host_os in
14224 freebsd2*)
14225 shlibpath_overrides_runpath=yes
14226 ;;
14227 freebsd3.[01]* | freebsdelf3.[01]*)
14228 shlibpath_overrides_runpath=yes
14229 hardcode_into_libs=yes
14230 ;;
14231 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14232 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14233 shlibpath_overrides_runpath=no
14234 hardcode_into_libs=yes
14235 ;;
14236 *) # from 4.6 on, and DragonFly
14237 shlibpath_overrides_runpath=yes
14238 hardcode_into_libs=yes
14239 ;;
14240 esac
14241 ;;
47935194 14242
1cf3d07d
SE
14243gnu*)
14244 version_type=linux
14245 need_lib_prefix=no
14246 need_version=no
14247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14248 soname_spec='${libname}${release}${shared_ext}$major'
14249 shlibpath_var=LD_LIBRARY_PATH
14250 hardcode_into_libs=yes
14251 ;;
47935194 14252
43e02a8a
RW
14253haiku*)
14254 version_type=linux
14255 need_lib_prefix=no
14256 need_version=no
14257 dynamic_linker="$host_os runtime_loader"
14258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14259 soname_spec='${libname}${release}${shared_ext}$major'
14260 shlibpath_var=LIBRARY_PATH
14261 shlibpath_overrides_runpath=yes
14262 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14263 hardcode_into_libs=yes
14264 ;;
14265
1cf3d07d
SE
14266hpux9* | hpux10* | hpux11*)
14267 # Give a soname corresponding to the major version so that dld.sl refuses to
14268 # link against other versions.
14269 version_type=sunos
14270 need_lib_prefix=no
14271 need_version=no
14272 case $host_cpu in
14273 ia64*)
14274 shrext_cmds='.so'
14275 hardcode_into_libs=yes
14276 dynamic_linker="$host_os dld.so"
14277 shlibpath_var=LD_LIBRARY_PATH
14278 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14280 soname_spec='${libname}${release}${shared_ext}$major'
14281 if test "X$HPUX_IA64_MODE" = X32; then
14282 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14283 else
14284 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14285 fi
14286 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14287 ;;
14288 hppa*64*)
14289 shrext_cmds='.sl'
14290 hardcode_into_libs=yes
14291 dynamic_linker="$host_os dld.sl"
14292 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14293 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14295 soname_spec='${libname}${release}${shared_ext}$major'
14296 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14297 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14298 ;;
14299 *)
14300 shrext_cmds='.sl'
14301 dynamic_linker="$host_os dld.sl"
14302 shlibpath_var=SHLIB_PATH
14303 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14305 soname_spec='${libname}${release}${shared_ext}$major'
14306 ;;
14307 esac
43e02a8a 14308 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1cf3d07d 14309 postinstall_cmds='chmod 555 $lib'
43e02a8a
RW
14310 # or fails outright, so override atomically:
14311 install_override_mode=555
1cf3d07d 14312 ;;
47935194 14313
1cf3d07d
SE
14314interix[3-9]*)
14315 version_type=linux
14316 need_lib_prefix=no
14317 need_version=no
14318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14319 soname_spec='${libname}${release}${shared_ext}$major'
14320 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14321 shlibpath_var=LD_LIBRARY_PATH
14322 shlibpath_overrides_runpath=no
14323 hardcode_into_libs=yes
14324 ;;
47935194 14325
1cf3d07d
SE
14326irix5* | irix6* | nonstopux*)
14327 case $host_os in
14328 nonstopux*) version_type=nonstopux ;;
14329 *)
14330 if test "$lt_cv_prog_gnu_ld" = yes; then
14331 version_type=linux
14332 else
14333 version_type=irix
14334 fi ;;
14335 esac
14336 need_lib_prefix=no
14337 need_version=no
14338 soname_spec='${libname}${release}${shared_ext}$major'
14339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14340 case $host_os in
14341 irix5* | nonstopux*)
14342 libsuff= shlibsuff=
14343 ;;
14344 *)
14345 case $LD in # libtool.m4 will add one of these switches to LD
14346 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14347 libsuff= shlibsuff= libmagic=32-bit;;
14348 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14349 libsuff=32 shlibsuff=N32 libmagic=N32;;
14350 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14351 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14352 *) libsuff= shlibsuff= libmagic=never-match;;
14353 esac
14354 ;;
14355 esac
14356 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14357 shlibpath_overrides_runpath=no
14358 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14359 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14360 hardcode_into_libs=yes
14361 ;;
47935194 14362
1cf3d07d
SE
14363# No shared lib support for Linux oldld, aout, or coff.
14364linux*oldld* | linux*aout* | linux*coff*)
14365 dynamic_linker=no
14366 ;;
47935194 14367
1cf3d07d 14368# This must be Linux ELF.
7a9d3fe8 14369linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
14370 version_type=linux
14371 need_lib_prefix=no
14372 need_version=no
14373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14374 soname_spec='${libname}${release}${shared_ext}$major'
14375 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14376 shlibpath_var=LD_LIBRARY_PATH
14377 shlibpath_overrides_runpath=no
baafc534 14378
1cf3d07d 14379 # Some binutils ld are patched to set DT_RUNPATH
5213506e
RW
14380 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14381 $as_echo_n "(cached) " >&6
baafc534
RW
14382else
14383 lt_cv_shlibpath_overrides_runpath=no
14384 save_LDFLAGS=$LDFLAGS
14385 save_libdir=$libdir
14386 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14387 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14388 if test x$gcc_no_link = xyes; then
5213506e 14389 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
47935194 14390fi
5213506e 14391cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47935194 14392/* end confdefs.h. */
47935194 14393
1cf3d07d
SE
14394int
14395main ()
14396{
47935194 14397
1cf3d07d
SE
14398 ;
14399 return 0;
14400}
47935194 14401_ACEOF
5213506e
RW
14402if ac_fn_cxx_try_link "$LINENO"; then :
14403 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 14404 lt_cv_shlibpath_overrides_runpath=yes
47935194 14405fi
47935194 14406fi
5213506e
RW
14407rm -f core conftest.err conftest.$ac_objext \
14408 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
14409 LDFLAGS=$save_LDFLAGS
14410 libdir=$save_libdir
14411
14412fi
14413
14414 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
14415
14416 # This implies no fast_install, which is unacceptable.
14417 # Some rework will be needed to allow for fast_install
14418 # before this can be enabled.
14419 hardcode_into_libs=yes
14420
14421 # Append ld.so.conf contents to the search path
14422 if test -f /etc/ld.so.conf; then
43e02a8a 14423 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
1cf3d07d
SE
14424 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14425 fi
47935194 14426
1cf3d07d
SE
14427 # We used to test for /lib/ld.so.1 and disable shared libraries on
14428 # powerpc, because MkLinux only supported shared libraries with the
14429 # GNU dynamic linker. Since this was broken with cross compilers,
14430 # most powerpc-linux boxes support dynamic linking these days and
14431 # people can always --disable-shared, the test was removed, and we
14432 # assume the GNU/Linux dynamic linker is in use.
14433 dynamic_linker='GNU/Linux ld.so'
14434 ;;
14435
14436netbsd*)
14437 version_type=sunos
14438 need_lib_prefix=no
14439 need_version=no
14440 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14443 dynamic_linker='NetBSD (a.out) ld.so'
14444 else
14445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14446 soname_spec='${libname}${release}${shared_ext}$major'
14447 dynamic_linker='NetBSD ld.elf_so'
14448 fi
14449 shlibpath_var=LD_LIBRARY_PATH
14450 shlibpath_overrides_runpath=yes
14451 hardcode_into_libs=yes
14452 ;;
14453
14454newsos6)
14455 version_type=linux
14456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14457 shlibpath_var=LD_LIBRARY_PATH
14458 shlibpath_overrides_runpath=yes
14459 ;;
14460
14461*nto* | *qnx*)
14462 version_type=qnx
14463 need_lib_prefix=no
14464 need_version=no
14465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14466 soname_spec='${libname}${release}${shared_ext}$major'
14467 shlibpath_var=LD_LIBRARY_PATH
14468 shlibpath_overrides_runpath=no
14469 hardcode_into_libs=yes
14470 dynamic_linker='ldqnx.so'
14471 ;;
14472
14473openbsd*)
14474 version_type=sunos
14475 sys_lib_dlsearch_path_spec="/usr/lib"
14476 need_lib_prefix=no
14477 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14478 case $host_os in
14479 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14480 *) need_version=no ;;
14481 esac
14482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14483 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14484 shlibpath_var=LD_LIBRARY_PATH
14485 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14486 case $host_os in
14487 openbsd2.[89] | openbsd2.[89].*)
14488 shlibpath_overrides_runpath=no
14489 ;;
14490 *)
14491 shlibpath_overrides_runpath=yes
14492 ;;
14493 esac
14494 else
14495 shlibpath_overrides_runpath=yes
14496 fi
14497 ;;
14498
14499os2*)
14500 libname_spec='$name'
14501 shrext_cmds=".dll"
14502 need_lib_prefix=no
14503 library_names_spec='$libname${shared_ext} $libname.a'
14504 dynamic_linker='OS/2 ld.exe'
14505 shlibpath_var=LIBPATH
14506 ;;
14507
14508osf3* | osf4* | osf5*)
14509 version_type=osf
14510 need_lib_prefix=no
14511 need_version=no
14512 soname_spec='${libname}${release}${shared_ext}$major'
14513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14514 shlibpath_var=LD_LIBRARY_PATH
14515 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14516 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14517 ;;
14518
14519rdos*)
14520 dynamic_linker=no
14521 ;;
14522
14523solaris*)
14524 version_type=linux
14525 need_lib_prefix=no
14526 need_version=no
14527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14528 soname_spec='${libname}${release}${shared_ext}$major'
14529 shlibpath_var=LD_LIBRARY_PATH
14530 shlibpath_overrides_runpath=yes
14531 hardcode_into_libs=yes
14532 # ldd complains unless libraries are executable
14533 postinstall_cmds='chmod +x $lib'
14534 ;;
14535
14536sunos4*)
14537 version_type=sunos
14538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14539 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14540 shlibpath_var=LD_LIBRARY_PATH
14541 shlibpath_overrides_runpath=yes
14542 if test "$with_gnu_ld" = yes; then
14543 need_lib_prefix=no
14544 fi
14545 need_version=yes
14546 ;;
14547
14548sysv4 | sysv4.3*)
14549 version_type=linux
14550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14551 soname_spec='${libname}${release}${shared_ext}$major'
14552 shlibpath_var=LD_LIBRARY_PATH
14553 case $host_vendor in
14554 sni)
14555 shlibpath_overrides_runpath=no
14556 need_lib_prefix=no
14557 runpath_var=LD_RUN_PATH
14558 ;;
14559 siemens)
14560 need_lib_prefix=no
14561 ;;
14562 motorola)
14563 need_lib_prefix=no
14564 need_version=no
14565 shlibpath_overrides_runpath=no
14566 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14567 ;;
14568 esac
14569 ;;
14570
14571sysv4*MP*)
14572 if test -d /usr/nec ;then
14573 version_type=linux
14574 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14575 soname_spec='$libname${shared_ext}.$major'
14576 shlibpath_var=LD_LIBRARY_PATH
14577 fi
14578 ;;
14579
14580sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14581 version_type=freebsd-elf
14582 need_lib_prefix=no
14583 need_version=no
14584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14585 soname_spec='${libname}${release}${shared_ext}$major'
14586 shlibpath_var=LD_LIBRARY_PATH
14587 shlibpath_overrides_runpath=yes
14588 hardcode_into_libs=yes
14589 if test "$with_gnu_ld" = yes; then
14590 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14591 else
14592 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14593 case $host_os in
14594 sco3.2v5*)
14595 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14596 ;;
14597 esac
14598 fi
14599 sys_lib_dlsearch_path_spec='/usr/lib'
14600 ;;
14601
14602tpf*)
14603 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14604 version_type=linux
14605 need_lib_prefix=no
14606 need_version=no
93e92f52 14607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
14608 shlibpath_var=LD_LIBRARY_PATH
14609 shlibpath_overrides_runpath=no
14610 hardcode_into_libs=yes
14611 ;;
14612
14613uts4*)
14614 version_type=linux
14615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14616 soname_spec='${libname}${release}${shared_ext}$major'
14617 shlibpath_var=LD_LIBRARY_PATH
14618 ;;
14619
14620*)
14621 dynamic_linker=no
14622 ;;
14623esac
5213506e
RW
14624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14625$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
14626test "$dynamic_linker" = no && can_build_shared=no
14627
14628variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14629if test "$GCC" = yes; then
14630 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
47935194
NN
14631fi
14632
93e92f52
PG
14633if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14634 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14635fi
14636if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14637 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14638fi
14639
47935194 14640
66deb2be 14641
2f7bf5b7 14642
2f7bf5b7 14643
2f7bf5b7 14644
2f7bf5b7 14645
47935194
NN
14646
14647
14648
14649
14650
2f7bf5b7 14651
47935194 14652
1530be84 14653
1530be84
TT
14654
14655
1cf3d07d
SE
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
43e02a8a
RW
14672
14673
1cf3d07d
SE
14674
14675
14676
5213506e
RW
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14678$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
14679hardcode_action_CXX=
14680if test -n "$hardcode_libdir_flag_spec_CXX" ||
14681 test -n "$runpath_var_CXX" ||
14682 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14683
14684 # We can hardcode non-existent directories.
14685 if test "$hardcode_direct_CXX" != no &&
14686 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14687 # have to relink, otherwise we might link with an installed library
14688 # when we should be linking with a yet-to-be-installed one
14689 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14690 test "$hardcode_minus_L_CXX" != no; then
14691 # Linking always hardcodes the temporary library directory.
14692 hardcode_action_CXX=relink
14693 else
14694 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14695 hardcode_action_CXX=immediate
14696 fi
14697else
14698 # We cannot hardcode anything, or else we can only hardcode existing
14699 # directories.
14700 hardcode_action_CXX=unsupported
5a2586cf 14701fi
5213506e
RW
14702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14703$as_echo "$hardcode_action_CXX" >&6; }
5a2586cf 14704
1cf3d07d
SE
14705if test "$hardcode_action_CXX" = relink ||
14706 test "$inherit_rpath_CXX" = yes; then
14707 # Fast installation is not supported
14708 enable_fast_install=no
14709elif test "$shlibpath_overrides_runpath" = yes ||
14710 test "$enable_shared" = no; then
14711 # Fast installation is not necessary
14712 enable_fast_install=needless
14713fi
5a2586cf 14714
1530be84 14715
5572488d 14716
5a2586cf 14717
5572488d 14718
5a2586cf 14719
5572488d 14720
1cf3d07d 14721 fi # test -n "$compiler"
5a2586cf 14722
1cf3d07d
SE
14723 CC=$lt_save_CC
14724 LDCXX=$LD
14725 LD=$lt_save_LD
14726 GCC=$lt_save_GCC
14727 with_gnu_ld=$lt_save_with_gnu_ld
14728 lt_cv_path_LDCXX=$lt_cv_path_LD
14729 lt_cv_path_LD=$lt_save_path_LD
14730 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14731 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14732fi # test "$_lt_caught_CXX_error" != yes
5572488d 14733
1cf3d07d
SE
14734ac_ext=c
14735ac_cpp='$CPP $CPPFLAGS'
14736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14738ac_compiler_gnu=$ac_cv_c_compiler_gnu
5a2586cf 14739
1530be84 14740
30c3de1f 14741
5572488d 14742
30c3de1f 14743
1530be84 14744
5572488d 14745
5a2586cf 14746
5572488d 14747
5a2586cf 14748
5a2586cf 14749
5a2586cf 14750
d0c03515 14751
5213506e 14752 ac_config_commands="$ac_config_commands libtool"
d0c03515 14753
eb496303 14754
eb496303 14755
eb496303 14756
1cf3d07d 14757# Only expand once:
eb496303 14758
9a35ada5 14759
eb496303 14760
5572488d 14761
5213506e
RW
14762# Check whether --with-target-subdir was given.
14763if test "${with_target_subdir+set}" = set; then :
14764 withval=$with_target_subdir;
14765fi
62aa6b06 14766
5572488d 14767
5213506e
RW
14768# Check whether --with-cross-host was given.
14769if test "${with_cross_host+set}" = set; then :
14770 withval=$with_cross_host;
14771fi
1530be84 14772
5572488d 14773
5213506e
RW
14774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
14775$as_echo_n "checking for thread model used by GCC... " >&6; }
1cf3d07d
SE
14776THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
14777if test -z "$THREADS"; then
14778 THREADS=no
14779fi
5213506e
RW
14780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
14781$as_echo "$THREADS" >&6; }
14caa62f 14782
5213506e
RW
14783# Check whether --enable-parallel-mark was given.
14784if test "${enable_parallel_mark+set}" = set; then :
14785 enableval=$enable_parallel_mark; case "$THREADS" in
1cf3d07d 14786 no | none | single)
5213506e 14787 as_fn_error "Parallel mark requires --enable-threads=x spec" "$LINENO" 5
14caa62f 14788 ;;
1cf3d07d 14789 esac
5572488d 14790
5213506e
RW
14791fi
14792
1530be84 14793
1cf3d07d
SE
14794AM_CPPFLAGS="-I`cd $srcdir && ${PWDCMD-pwd}`/include"
14795THREADLIBS=
14796case "$THREADS" in
14797 no | none | single)
14798 THREADS=none
14799 ;;
14800 posix | posix95 | pthreads)
14801 THREADS=posix
14802 THREADLIBS=-lpthread
14803 case "$host" in
14804 x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*)
5572488d 14805
5213506e 14806$as_echo "#define GC_LINUX_THREADS 1" >>confdefs.h
30c3de1f 14807
5572488d 14808
5213506e 14809$as_echo "#define _REENTRANT 1" >>confdefs.h
30c3de1f 14810
1cf3d07d 14811 if test "${enable_parallel_mark}" = yes; then
30c3de1f 14812
5213506e 14813$as_echo "#define PARALLEL_MARK 1" >>confdefs.h
30c3de1f
JS
14814
14815 fi
5572488d 14816
5213506e 14817$as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
30c3de1f 14818
1530be84 14819 ;;
1cf3d07d 14820 *-*-linux*)
5213506e 14821 $as_echo "#define GC_LINUX_THREADS 1" >>confdefs.h
30c3de1f 14822
5213506e 14823 $as_echo "#define _REENTRANT 1" >>confdefs.h
30c3de1f 14824
1cf3d07d
SE
14825 ;;
14826 *-*-aix*)
5572488d 14827
5213506e 14828$as_echo "#define GC_AIX_THREADS 1" >>confdefs.h
30c3de1f 14829
5213506e 14830 $as_echo "#define _REENTRANT 1" >>confdefs.h
30c3de1f 14831
1cf3d07d
SE
14832 ;;
14833 *-*-hpux11*)
5213506e
RW
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
14835$as_echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
bf9a420e 14836
5213506e 14837$as_echo "#define GC_HPUX_THREADS 1" >>confdefs.h
4f6d8cc8 14838
1cf3d07d 14839
5213506e 14840$as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
4f6d8cc8 14841
1cf3d07d 14842 if test "${enable_parallel_mark}" = yes; then
5213506e 14843 $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
4f6d8cc8 14844
1cf3d07d 14845 fi
5213506e 14846 $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
4f6d8cc8 14847
1cf3d07d
SE
14848 THREADLIBS="-lpthread -lrt"
14849 # HPUX needs REENTRANT for the _r calls.
4f6d8cc8 14850
5213506e 14851$as_echo "#define _REENTRANT 1" >>confdefs.h
4f6d8cc8 14852
1cf3d07d
SE
14853 ;;
14854 *-*-hpux10*)
5213506e
RW
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
14856$as_echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
1cf3d07d
SE
14857 ;;
14858 *-*-kfreebsd*-gnu)
5213506e 14859 $as_echo "#define GC_FREEBSD_THREADS 1" >>confdefs.h
4f6d8cc8 14860
1cf3d07d
SE
14861 INCLUDES="$INCLUDES -pthread"
14862 THREADDLLIBS=-pthread
5213506e 14863 $as_echo "#define _REENTRANT 1" >>confdefs.h
4f6d8cc8 14864
1cf3d07d 14865 if test "${enable_parallel_mark}" = yes; then
5213506e 14866 $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
4f6d8cc8 14867
1cf3d07d 14868 fi
5213506e 14869 $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
4f6d8cc8 14870
1cf3d07d 14871
5213506e 14872$as_echo "#define USE_COMPILER_TLS 1" >>confdefs.h
4f6d8cc8 14873
1cf3d07d
SE
14874 ;;
14875 *-*-freebsd*)
5213506e
RW
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
14877$as_echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
4f6d8cc8 14878
5213506e 14879$as_echo "#define GC_FREEBSD_THREADS 1" >>confdefs.h
4f6d8cc8 14880
1cf3d07d
SE
14881 AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
14882 THREADLIBS=-pthread
14883 ;;
8a86e760 14884 *-*-solaris2.8*)
4f6d8cc8 14885
5213506e 14886$as_echo "#define GC_SOLARIS_PTHREADS 1" >>confdefs.h
4f6d8cc8 14887
28e2ff77
RO
14888 # Need to use alternate thread library, otherwise gctest hangs
14889 # on Solaris 8.
14890 multi_os_directory=`$CC -print-multi-os-directory`
14891 THREADLIBS="-L/usr/lib/lwp/$multi_os_directory \
14892 -R/usr/lib/lwp/$multi_os_directory -lpthread -lthread -lrt"
1cf3d07d 14893 ;;
8a86e760
RO
14894 *-*-solaris2*)
14895
14896$as_echo "#define GC_SOLARIS_PTHREADS 1" >>confdefs.h
14897
14898 # The alternate thread library was only introduced in Solaris 8 and
14899 # became the default in Solaris 9, so no need for the special code
14900 # above otherwise.
7c1e8838
RO
14901 # nanosleep, sched_yield, and sem_* only live in librt before
14902 # Solaris 11.
14903 THREADLIBS="-lpthread -lrt"
8a86e760 14904 ;;
1cf3d07d
SE
14905 *-*-irix*)
14906
5213506e 14907$as_echo "#define GC_IRIX_THREADS 1" >>confdefs.h
4f6d8cc8 14908
1cf3d07d
SE
14909 ;;
14910 *-*-cygwin*)
14911
5213506e 14912$as_echo "#define GC_WIN32_THREADS 1" >>confdefs.h
4f6d8cc8 14913
1cf3d07d
SE
14914 ;;
14915 *-*-darwin*)
14916
5213506e 14917$as_echo "#define GC_DARWIN_THREADS 1" >>confdefs.h
1cf3d07d 14918
5213506e 14919 $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
1cf3d07d
SE
14920
14921 if test "${enable_parallel_mark}" = yes; then
5213506e 14922 $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
1cf3d07d
SE
14923
14924 fi
14925 ;;
14926 *-*-osf*)
4f6d8cc8 14927
5213506e 14928$as_echo "#define GC_OSF1_THREADS 1" >>confdefs.h
4f6d8cc8 14929
1cf3d07d 14930 if test "${enable_parallel_mark}" = yes; then
5213506e 14931 $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
4f6d8cc8 14932
5213506e 14933 $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
4f6d8cc8 14934
1cf3d07d
SE
14935 # May want to enable it in other cases, too.
14936 # Measurements havent yet been done.
14937 fi
14938 AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
14939 THREADLIBS="-lpthread -lrt"
14940 ;;
14941 esac
14942 ;;
14943 win32)
5213506e 14944 $as_echo "#define GC_WIN32_THREADS 1" >>confdefs.h
4f6d8cc8 14945
1cf3d07d
SE
14946 ;;
14947 dgux386)
14948 THREADS=dgux386
5213506e
RW
14949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADLIBS" >&5
14950$as_echo "$THREADLIBS" >&6; }
1cf3d07d
SE
14951 # Use pthread GCC switch
14952 THREADLIBS=-pthread
14953 if test "${enable_parallel_mark}" = yes; then
5213506e 14954 $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
4f6d8cc8 14955
1cf3d07d 14956 fi
5213506e 14957 $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
4f6d8cc8 14958
4f6d8cc8 14959
5213506e 14960$as_echo "#define GC_DGUX386_THREADS 1" >>confdefs.h
4f6d8cc8 14961
4f6d8cc8 14962
5213506e 14963$as_echo "#define DGUX_THREADS 1" >>confdefs.h
1cf3d07d
SE
14964
14965 # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
14966 AM_CPPFLAGS="-pthread $AM_CPPFLAGS"
4f6d8cc8 14967 ;;
1cf3d07d
SE
14968 aix)
14969 THREADS=posix
14970 THREADLIBS=-lpthread
5213506e 14971 $as_echo "#define GC_AIX_THREADS 1" >>confdefs.h
1cf3d07d 14972
5213506e 14973 $as_echo "#define _REENTRANT 1" >>confdefs.h
1cf3d07d
SE
14974
14975 ;;
14976 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
5213506e 14977 as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
1cf3d07d
SE
14978 ;;
14979 *)
5213506e 14980 as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
1cf3d07d
SE
14981 ;;
14982esac
14983
14984
14985case "$host" in
14986 powerpc-*-darwin*)
14987 powerpc_darwin=true
14988 ;;
14989esac
5213506e 14990 if test x$powerpc_darwin = xtrue; then
1cf3d07d
SE
14991 POWERPC_DARWIN_TRUE=
14992 POWERPC_DARWIN_FALSE='#'
14993else
14994 POWERPC_DARWIN_TRUE='#'
14995 POWERPC_DARWIN_FALSE=
14996fi
14997
14998
14999# Darwin needs a few extra special tests to deal with variation in the
15000# system headers.
15001case "$host" in
15002 powerpc*-*-darwin*)
5213506e
RW
15003 ac_fn_c_check_member "$LINENO" "ppc_thread_state_t" "r0" "ac_cv_member_ppc_thread_state_t_r0" "#include <mach/thread_status.h>
15004"
15005if test "x$ac_cv_member_ppc_thread_state_t_r0" = x""yes; then :
4f6d8cc8 15006
5213506e 15007$as_echo "#define HAS_PPC_THREAD_STATE_R0 1" >>confdefs.h
4f6d8cc8 15008
5213506e 15009fi
4f6d8cc8 15010
5213506e
RW
15011 ac_fn_c_check_member "$LINENO" "ppc_thread_state_t" "__r0" "ac_cv_member_ppc_thread_state_t___r0" "#include <mach/thread_status.h>
15012"
15013if test "x$ac_cv_member_ppc_thread_state_t___r0" = x""yes; then :
15014
15015$as_echo "#define HAS_PPC_THREAD_STATE___R0 1" >>confdefs.h
4f6d8cc8 15016
4f6d8cc8 15017fi
4f6d8cc8 15018
5213506e
RW
15019 ac_fn_c_check_member "$LINENO" "ppc_thread_state64_t" "r0" "ac_cv_member_ppc_thread_state64_t_r0" "#include <mach/thread_status.h>
15020"
15021if test "x$ac_cv_member_ppc_thread_state64_t_r0" = x""yes; then :
15022
15023$as_echo "#define HAS_PPC_THREAD_STATE64_R0 1" >>confdefs.h
4f6d8cc8
GK
15024
15025fi
15026
5213506e
RW
15027 ac_fn_c_check_member "$LINENO" "ppc_thread_state64_t" "__r0" "ac_cv_member_ppc_thread_state64_t___r0" "#include <mach/thread_status.h>
15028"
15029if test "x$ac_cv_member_ppc_thread_state64_t___r0" = x""yes; then :
4f6d8cc8 15030
5213506e 15031$as_echo "#define HAS_PPC_THREAD_STATE64___R0 1" >>confdefs.h
4f6d8cc8 15032
5213506e 15033fi
4f6d8cc8 15034
5213506e
RW
15035 ;;
15036 i?86*-*-darwin*)
15037 ac_fn_c_check_member "$LINENO" "x86_thread_state32_t" "eax" "ac_cv_member_x86_thread_state32_t_eax" "#include <sys/cdefs.h>
15038 #include <mach/thread_status.h>
15039"
15040if test "x$ac_cv_member_x86_thread_state32_t_eax" = x""yes; then :
15041
15042$as_echo "#define HAS_X86_THREAD_STATE32_EAX 1" >>confdefs.h
4f6d8cc8 15043
4f6d8cc8 15044fi
5213506e
RW
15045
15046 ac_fn_c_check_member "$LINENO" "x86_thread_state32_t" "__eax" "ac_cv_member_x86_thread_state32_t___eax" "#include <sys/cdefs.h>
15047 #include <mach/thread_status.h>
15048"
15049if test "x$ac_cv_member_x86_thread_state32_t___eax" = x""yes; then :
15050
15051$as_echo "#define HAS_X86_THREAD_STATE32___EAX 1" >>confdefs.h
15052
4f6d8cc8 15053fi
5213506e
RW
15054
15055 ;;
15056 x86_64-*-darwin*)
15057 ac_fn_c_check_member "$LINENO" "x86_thread_state64_t" "rax" "ac_cv_member_x86_thread_state64_t_rax" "#include <sys/cdefs.h>
15058 #include <mach/thread_status.h>
15059"
15060if test "x$ac_cv_member_x86_thread_state64_t_rax" = x""yes; then :
15061
15062$as_echo "#define HAS_X86_THREAD_STATE64_RAX 1" >>confdefs.h
15063
4f6d8cc8 15064fi
4f6d8cc8 15065
5213506e
RW
15066 ac_fn_c_check_member "$LINENO" "x86_thread_state64_t" "__rax" "ac_cv_member_x86_thread_state64_t___rax" "#include <sys/cdefs.h>
15067 #include <mach/thread_status.h>
15068"
15069if test "x$ac_cv_member_x86_thread_state64_t___rax" = x""yes; then :
15070
15071$as_echo "#define HAS_X86_THREAD_STATE64___RAX 1" >>confdefs.h
4f6d8cc8
GK
15072
15073fi
15074
5213506e
RW
15075 ;;
15076 *) ;;
15077esac
15078
5213506e 15079case "$host" in
11fdd877
RO
15080 # While IRIX 6 has libdl for the O32 and N32 ABIs, it's missing for N64
15081 # and unnecessary everywhere.
15082 mips-sgi-irix6*) ;;
15083 # We never want libdl on darwin. It is a fake libdl that just ends up making
15084 # dyld calls anyway
5213506e
RW
15085 *-*-darwin*) ;;
15086 *)
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15088$as_echo_n "checking for dlopen in -ldl... " >&6; }
15089if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15090 $as_echo_n "(cached) " >&6
583cb3d3 15091else
5213506e
RW
15092 ac_check_lib_save_LIBS=$LIBS
15093LIBS="-ldl $LIBS"
15094if test x$gcc_no_link = xyes; then
15095 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15096fi
15097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
583cb3d3 15098/* end confdefs.h. */
583cb3d3 15099
5213506e
RW
15100/* Override any GCC internal prototype to avoid an error.
15101 Use char because int might match the return type of a GCC
15102 builtin and then its argument prototype would still apply. */
15103#ifdef __cplusplus
15104extern "C"
15105#endif
15106char dlopen ();
583cb3d3
AT
15107int
15108main ()
15109{
5213506e 15110return dlopen ();
583cb3d3
AT
15111 ;
15112 return 0;
15113}
15114_ACEOF
5213506e 15115if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 15116 ac_cv_lib_dl_dlopen=yes
30c3de1f 15117else
5213506e 15118 ac_cv_lib_dl_dlopen=no
47935194 15119fi
5213506e
RW
15120rm -f core conftest.err conftest.$ac_objext \
15121 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
15122LIBS=$ac_check_lib_save_LIBS
15123fi
5213506e
RW
15124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15125$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15126if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1cf3d07d 15127 EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
47935194 15128fi
1cf3d07d
SE
15129
15130 ;;
15131esac
15132
15133# extra LD Flags which are required for targets
15134case "${host}" in
15135 *-*-darwin*)
15136 extra_ldflags_libgc=-Wl,-single_module
15137 ;;
15138esac
15139
15140
15141
15142
15143target_all=libgcjgc.la
15144
15145
15146TARGET_ECOS="no"
15147
5213506e
RW
15148# Check whether --with-ecos was given.
15149if test "${with_ecos+set}" = set; then :
15150 withval=$with_ecos; TARGET_ECOS="$with_ecos"
15151
15152fi
1cf3d07d 15153
1cf3d07d
SE
15154
15155addobjs=
15156addlibs=
15157addincludes=
15158addtests=
15159case "$TARGET_ECOS" in
15160 no)
15161 ;;
15162 *)
15163
5213506e 15164$as_echo "#define ECOS 1" >>confdefs.h
1cf3d07d
SE
15165
15166 AM_CPPFLAGS="${AM_CPPFLAGS} -I${TARGET_ECOS}/include"
15167 addobjs="$addobjs ecos.lo"
15168 ;;
15169esac
15170
15171if test "${enable_cplusplus}" = yes; then
15172 addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h"
15173 addtests="$addtests test_cpp"
30c3de1f 15174fi
1cf3d07d 15175
5213506e 15176 if test "${enable_cplusplus}" = yes; then
1cf3d07d
SE
15177 CPLUSPLUS_TRUE=
15178 CPLUSPLUS_FALSE='#'
15179else
15180 CPLUSPLUS_TRUE='#'
15181 CPLUSPLUS_FALSE=
47935194 15182fi
47935194 15183
47935194 15184
47935194 15185
47935194
NN
15186
15187
15188
1cf3d07d
SE
15189# Configuration of shared libraries
15190#
5213506e
RW
15191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15192$as_echo_n "checking whether to build shared libraries... " >&6; }
15193# Check whether --enable-shared was given.
15194if test "${enable_shared+set}" = set; then :
15195 enableval=$enable_shared; p=${PACKAGE-default}
1cf3d07d
SE
15196 case $enableval in
15197 yes) enable_shared=yes ;;
15198 no) enable_shared=no ;;
15199 *)
15200 enable_shared=no
15201 # Look at the argument we got. We use all the common list separators.
5213506e
RW
15202 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15203 for pkg in $enableval; do
15204 IFS="$lt_save_ifs"
15205 if test "X$pkg" = "X$p"; then
15206 enable_shared=yes
15207 fi
15208 done
15209 IFS="$lt_save_ifs"
15210 ;;
15211 esac
47935194 15212else
5213506e 15213 enable_shared=yes
47935194 15214fi
5213506e
RW
15215
15216
15217
15218
15219
15220
15221
15222case "$host" in
15223 alpha-*-openbsd*)
15224 enable_shared=no
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15226$as_echo "no" >&6; }
15227 ;;
15228 *)
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15230$as_echo "yes" >&6; }
15231 ;;
15232esac
15233
15234# Checks for pthreads functions
15235#
15236oldLIBS="$LIBS"
15237LIBS="$LIBS $THREADLIBS"
15238for ac_func in pthread_getattr_np
15239do :
15240 ac_fn_c_check_func "$LINENO" "pthread_getattr_np" "ac_cv_func_pthread_getattr_np"
15241if test "x$ac_cv_func_pthread_getattr_np" = x""yes; then :
47935194 15242 cat >>confdefs.h <<_ACEOF
5213506e 15243#define HAVE_PTHREAD_GETATTR_NP 1
47935194
NN
15244_ACEOF
15245
15246fi
47935194
NN
15247done
15248
1cf3d07d
SE
15249LIBS="$oldLIBS"
15250
15251# Configuration of machine-dependent code
15252#
15253# Set NO_EXECUTE_PERMISSION by default because gcj already uses
15254# ffi_closure_{alloc,free} which takes care of allocating trampolines
15255# in executable memory.
15256#
5213506e
RW
15257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which machine-dependent code should be used" >&5
15258$as_echo_n "checking which machine-dependent code should be used... " >&6; }
1cf3d07d
SE
15259machdep=
15260case "$host" in
15261 alpha*-*-openbsd*)
15262 machdep="alpha_mach_dep.lo"
15263 if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
5213506e
RW
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
15265$as_echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
1cf3d07d
SE
15266 fi
15267 ;;
15268 alpha*-*-linux*)
15269 machdep="alpha_mach_dep.lo"
15270 ;;
15271 i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
15272
5213506e 15273$as_echo "#define SOLARIS25_PROC_VDB_BUG_FIXED 1" >>confdefs.h
1cf3d07d
SE
15274
15275 ;;
15276 mipstx39-*-elf*)
15277 machdep="mips_ultrix_mach_dep.lo"
15278
5213506e 15279$as_echo "#define STACKBASE __stackbase" >>confdefs.h
1cf3d07d
SE
15280
15281
5213506e 15282$as_echo "#define DATASTART_IS_ETEXT 1" >>confdefs.h
1cf3d07d
SE
15283
15284 ;;
15285 mips-dec-ultrix*)
15286 machdep="mips_ultrix_mach-dep.lo"
15287 ;;
15288 mips-nec-sysv*|mips-unknown-sysv*)
15289 ;;
15290 mips*-*-linux*)
15291 ;;
15292 mips-*-*)
15293 machdep="mips_sgi_mach_dep.lo"
15294 ;;
15295 sparc-*-netbsd*)
15296 machdep="sparc_netbsd_mach_dep.lo"
15297 ;;
15298 sparc-sun-solaris2.3)
15299 machdep="sparc_mach_dep.lo"
15300
5213506e 15301$as_echo "#define SUNOS53_SHARED_LIB 1" >>confdefs.h
1cf3d07d
SE
15302
15303 ;;
15304 sparc*-sun-solaris2.*)
15305 machdep="sparc_mach_dep.lo"
15306 ;;
15307 ia64-*-*)
15308 machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
15309 ;;
15310esac
15311
5213506e 15312$as_echo "#define NO_EXECUTE_PERMISSION 1" >>confdefs.h
1cf3d07d
SE
15313
15314if test x"$machdep" = x; then
5213506e
RW
15315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $machdep" >&5
15316$as_echo "$machdep" >&6; }
1cf3d07d
SE
15317 machdep="mach_dep.lo"
15318fi
15319addobjs="$addobjs $machdep"
15320
15321
15322
15323
30c3de1f 15324
1cf3d07d
SE
15325#
15326# Check for AViiON Machines running DGUX
15327#
1cf3d07d 15328ac_is_dgux=no
5213506e
RW
15329ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
15330if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
2a6fa9ae 15331 ac_is_dgux=yes
30c3de1f
JS
15332fi
15333
15334
47935194 15335
2a6fa9ae
PB
15336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if host is AViiON running DGUX" >&5
15337$as_echo_n "checking if host is AViiON running DGUX... " >&6; }
5213506e
RW
15338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_is_dgux" >&5
15339$as_echo "$ac_is_dgux" >&6; }
30c3de1f
JS
15340 ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
15341if test $ac_is_dgux = yes; then
15342 if test "$enable_full_debug" = "yes"; then
2a6fa9ae 15343 GC_CFLAGS="$GC_CFLAGS -mstandard"
30c3de1f 15344 fi
2a6fa9ae 15345 GC_CFLAGS="$GC_CFLAGS -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend"
30c3de1f
JS
15346fi
15347
5eae2844
PB
15348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC optimization should be disabled" >&5
15349$as_echo_n "checking whether GCC optimization should be disabled... " >&6; }
15350O0_CFLAGS=
1530be84 15351case "$host" in
2a6fa9ae
PB
15352 *aix*) test "$GCC" = yes && O0_CFLAGS=-O0 ;;
15353 *) ;;
15354esac
15355if test x"$O0_CFLAGS" != x; then
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5213506e 15357$as_echo "yes" >&6; }
2a6fa9ae
PB
15358else
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213506e 15360$as_echo "no" >&6; }
2a6fa9ae 15361fi
1530be84
TT
15362
15363
5572488d 15364
5213506e 15365$as_echo "#define SILENT 1" >>confdefs.h
1530be84 15366
5572488d 15367
5213506e 15368$as_echo "#define NO_SIGNALS 1" >>confdefs.h
1530be84 15369
5572488d 15370
5213506e 15371$as_echo "#define ALL_INTERIOR_POINTERS 1" >>confdefs.h
5a2586cf
TT
15372
15373
5572488d 15374
5213506e 15375$as_echo "#define JAVA_FINALIZATION 1" >>confdefs.h
1530be84 15376
5572488d 15377
5213506e 15378$as_echo "#define GC_GCJ_SUPPORT 1" >>confdefs.h
1530be84 15379
5572488d 15380
5213506e 15381$as_echo "#define ATOMIC_UNCOLLECTABLE 1" >>confdefs.h
5a2586cf 15382
1530be84 15383
5213506e
RW
15384# Check whether --enable-gc-debug was given.
15385if test "${enable_gc_debug+set}" = set; then :
15386 enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&5
15388$as_echo "$as_me: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
5572488d 15389
5213506e 15390$as_echo "#define KEEP_BACK_PTRS 1" >>confdefs.h
5a2586cf 15391
5572488d 15392
5213506e 15393$as_echo "#define DBG_HDRS_ALL 1" >>confdefs.h
5a2586cf
TT
15394
15395 case $host in
79f777fd 15396 ia64-*-linux* )
5572488d 15397
5213506e 15398$as_echo "#define MAKE_BACK_GRAPH 1" >>confdefs.h
79f777fd
BM
15399
15400 ;;
48528b67 15401 x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
5213506e 15402 $as_echo "#define MAKE_BACK_GRAPH 1" >>confdefs.h
79f777fd 15403
5213506e
RW
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
15405$as_echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
5572488d 15406
5213506e 15407$as_echo "#define SAVE_CALL_COUNT 8" >>confdefs.h
30c3de1f
JS
15408
15409 ;;
15410 i345686-*-dgux*)
5213506e 15411 $as_echo "#define MAKE_BACK_GRAPH 1" >>confdefs.h
5a2586cf
TT
15412
15413 ;;
47935194 15414 esac
5a2586cf 15415 fi
5213506e
RW
15416fi
15417
5a2586cf 15418
5909b034
BM
15419if test "${gc_use_mmap}" = "yes"; then
15420
5213506e 15421$as_echo "#define USE_MMAP 1" >>confdefs.h
5909b034
BM
15422
15423fi
15424
13b6e5b4
AO
15425if test -n "$with_cross_host" &&
15426 test x"$with_cross_host" != x"no"; then
d38d6003 15427 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
13b6e5b4 15428 toolexeclibdir='$(toolexecdir)/lib'
b48ed568 15429else
d38d6003 15430 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
13b6e5b4 15431 toolexeclibdir='$(libdir)'
b48ed568 15432fi
ff8b9ca8
AS
15433multi_os_directory=`$CC -print-multi-os-directory`
15434case $multi_os_directory in
15435 .) ;; # Avoid trailing /.
15436 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
15437esac
13b6e5b4
AO
15438
15439
b48ed568 15440
1530be84
TT
15441if test "${multilib}" = "yes"; then
15442 multilib_arg="--enable-multilib"
15443else
15444 multilib_arg=
15445fi
15446
5213506e 15447ac_config_headers="$ac_config_headers include/gc_config.h include/gc_ext_config.h"
4109fe85 15448
bf9a420e 15449
5213506e 15450ac_config_files="$ac_config_files Makefile include/Makefile threads.mk"
bf9a420e 15451
47935194 15452cat >confcache <<\_ACEOF
1530be84
TT
15453# This file is a shell script that caches the results of configure
15454# tests run on this system so they can be shared between configure
47935194
NN
15455# scripts and configure runs, see configure's option --config-cache.
15456# It is not useful on other systems. If it contains results you don't
15457# want to keep, you may remove or edit it.
1530be84 15458#
47935194
NN
15459# config.status only pays attention to the cache file if you give it
15460# the --recheck option to rerun configure.
1530be84 15461#
47935194
NN
15462# `ac_cv_env_foo' variables (set or unset) will be overridden when
15463# loading this file, other *unset* `ac_cv_foo' will be assigned the
15464# following values.
15465
15466_ACEOF
15467
1530be84
TT
15468# The following way of writing the cache mishandles newlines in values,
15469# but we know of no workaround that is simple, portable, and efficient.
5213506e 15470# So, we kill variables containing newlines.
1530be84
TT
15471# Ultrix sh set writes to stderr and can't be redirected directly,
15472# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
15473(
15474 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15475 eval ac_val=\$$ac_var
15476 case $ac_val in #(
15477 *${as_nl}*)
15478 case $ac_var in #(
15479 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15480$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15481 esac
15482 case $ac_var in #(
15483 _ | IFS | as_nl) ;; #(
15484 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15485 *) { eval $ac_var=; unset $ac_var;} ;;
15486 esac ;;
15487 esac
15488 done
15489
47935194 15490 (set) 2>&1 |
5213506e
RW
15491 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15492 *${as_nl}ac_space=\ *)
15493 # `set' does not quote correctly, so add quotes: double-quote
15494 # substitution turns \\\\ into \\, and sed turns \\ into \.
47935194 15495 sed -n \
8ab705be
KC
15496 "s/'/'\\\\''/g;
15497 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 15498 ;; #(
47935194
NN
15499 *)
15500 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 15501 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
47935194 15502 ;;
5213506e
RW
15503 esac |
15504 sort
15505) |
47935194 15506 sed '
5213506e 15507 /^ac_cv_env_/b end
47935194 15508 t clear
5213506e 15509 :clear
47935194
NN
15510 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15511 t end
5213506e
RW
15512 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15513 :end' >>confcache
15514if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15515 if test -w "$cache_file"; then
15516 test "x$cache_file" != "x/dev/null" &&
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15518$as_echo "$as_me: updating cache $cache_file" >&6;}
47935194 15519 cat confcache >$cache_file
1530be84 15520 else
5213506e
RW
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15522$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1530be84
TT
15523 fi
15524fi
15525rm -f confcache
15526
1530be84
TT
15527test "x$prefix" = xNONE && prefix=$ac_default_prefix
15528# Let make expand exec_prefix.
15529test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15530
4109fe85 15531DEFS=-DHAVE_CONFIG_H
47935194
NN
15532
15533ac_libobjs=
15534ac_ltlibobjs=
15535for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15536 # 1. Remove the extension, and $U if already installed.
5213506e
RW
15537 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15538 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15539 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15540 # will be set to the directory where LIBOBJS objects are built.
15541 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15542 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
47935194
NN
15543done
15544LIBOBJS=$ac_libobjs
1530be84 15545
47935194 15546LTLIBOBJS=$ac_ltlibobjs
1530be84 15547
1530be84 15548
5213506e
RW
15549 if test -n "$EXEEXT"; then
15550 am__EXEEXT_TRUE=
15551 am__EXEEXT_FALSE='#'
15552else
15553 am__EXEEXT_TRUE='#'
15554 am__EXEEXT_FALSE=
15555fi
15556
bf9a420e 15557if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5213506e
RW
15558 as_fn_error "conditional \"AMDEP\" was never defined.
15559Usually this means the macro was only invoked conditionally." "$LINENO" 5
bf9a420e
PB
15560fi
15561if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5213506e
RW
15562 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15563Usually this means the macro was only invoked conditionally." "$LINENO" 5
bf9a420e
PB
15564fi
15565if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
5213506e
RW
15566 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15567Usually this means the macro was only invoked conditionally." "$LINENO" 5
bf9a420e
PB
15568fi
15569if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5213506e
RW
15570 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15571Usually this means the macro was only invoked conditionally." "$LINENO" 5
bf9a420e
PB
15572fi
15573if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
5213506e
RW
15574 as_fn_error "conditional \"POWERPC_DARWIN\" was never defined.
15575Usually this means the macro was only invoked conditionally." "$LINENO" 5
bf9a420e
PB
15576fi
15577if test -z "${CPLUSPLUS_TRUE}" && test -z "${CPLUSPLUS_FALSE}"; then
5213506e
RW
15578 as_fn_error "conditional \"CPLUSPLUS\" was never defined.
15579Usually this means the macro was only invoked conditionally." "$LINENO" 5
bf9a420e 15580fi
47935194
NN
15581
15582: ${CONFIG_STATUS=./config.status}
5213506e 15583ac_write_fail=0
47935194
NN
15584ac_clean_files_save=$ac_clean_files
15585ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
15586{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15587$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15588as_write_fail=0
15589cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
47935194
NN
15590#! $SHELL
15591# Generated by $as_me.
1530be84 15592# Run this file to recreate the current configuration.
1530be84 15593# Compiler output produced by configure, useful for debugging
47935194
NN
15594# configure, is in config.log if it exists.
15595
15596debug=false
15597ac_cs_recheck=false
15598ac_cs_silent=false
47935194 15599
5213506e
RW
15600SHELL=\${CONFIG_SHELL-$SHELL}
15601export SHELL
15602_ASEOF
15603cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15604## -------------------- ##
15605## M4sh Initialization. ##
15606## -------------------- ##
15607
15608# Be more Bourne compatible
15609DUALCASE=1; export DUALCASE # for MKS sh
15610if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
47935194
NN
15611 emulate sh
15612 NULLCMD=:
5213506e 15613 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
47935194
NN
15614 # is contrary to our usage. Disable this feature.
15615 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
15616 setopt NO_GLOB_SUBST
15617else
15618 case `(set -o) 2>/dev/null` in #(
15619 *posix*) :
15620 set -o posix ;; #(
15621 *) :
15622 ;;
15623esac
47935194 15624fi
47935194 15625
5213506e
RW
15626
15627as_nl='
15628'
15629export as_nl
15630# Printing a long string crashes Solaris 7 /usr/bin/printf.
15631as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15632as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15633as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15634# Prefer a ksh shell builtin over an external printf program on Solaris,
15635# but without wasting forks for bash or zsh.
15636if test -z "$BASH_VERSION$ZSH_VERSION" \
15637 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15638 as_echo='print -r --'
15639 as_echo_n='print -rn --'
15640elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15641 as_echo='printf %s\n'
15642 as_echo_n='printf %s'
15643else
15644 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15645 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15646 as_echo_n='/usr/ucb/echo -n'
15647 else
15648 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15649 as_echo_n_body='eval
15650 arg=$1;
15651 case $arg in #(
15652 *"$as_nl"*)
15653 expr "X$arg" : "X\\(.*\\)$as_nl";
15654 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15655 esac;
15656 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15657 '
15658 export as_echo_n_body
15659 as_echo_n='sh -c $as_echo_n_body as_echo'
15660 fi
15661 export as_echo_body
15662 as_echo='sh -c $as_echo_body as_echo'
15663fi
15664
15665# The user is always right.
15666if test "${PATH_SEPARATOR+set}" != set; then
15667 PATH_SEPARATOR=:
15668 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15669 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15670 PATH_SEPARATOR=';'
15671 }
47935194 15672fi
1530be84 15673
47935194 15674
5213506e
RW
15675# IFS
15676# We need space, tab and new line, in precisely that order. Quoting is
15677# there to prevent editors from complaining about space-tab.
15678# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15679# splitting by setting IFS to empty value.)
15680IFS=" "" $as_nl"
15681
15682# Find who we are. Look in the path if we contain no directory separator.
15683case $0 in #((
15684 *[\\/]* ) as_myself=$0 ;;
15685 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15686for as_dir in $PATH
15687do
15688 IFS=$as_save_IFS
15689 test -z "$as_dir" && as_dir=.
15690 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15691 done
15692IFS=$as_save_IFS
15693
15694 ;;
15695esac
15696# We did not find ourselves, most probably we were run as `sh COMMAND'
15697# in which case we are not to be found in the path.
15698if test "x$as_myself" = x; then
15699 as_myself=$0
15700fi
15701if test ! -f "$as_myself"; then
15702 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15703 exit 1
15704fi
15705
15706# Unset variables that we do not need and which cause bugs (e.g. in
15707# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15708# suppresses any "Segmentation fault" message there. '((' could
15709# trigger a bug in pdksh 5.2.14.
15710for as_var in BASH_ENV ENV MAIL MAILPATH
15711do eval test x\${$as_var+set} = xset \
15712 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15713done
47935194
NN
15714PS1='$ '
15715PS2='> '
15716PS4='+ '
15717
15718# NLS nuisances.
5213506e
RW
15719LC_ALL=C
15720export LC_ALL
15721LANGUAGE=C
15722export LANGUAGE
15723
15724# CDPATH.
15725(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15726
15727
15728# as_fn_error ERROR [LINENO LOG_FD]
15729# ---------------------------------
15730# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15731# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15732# script with status $?, using 1 if that was 0.
15733as_fn_error ()
15734{
15735 as_status=$?; test $as_status -eq 0 && as_status=1
15736 if test "$3"; then
15737 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15738 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
47935194 15739 fi
5213506e
RW
15740 $as_echo "$as_me: error: $1" >&2
15741 as_fn_exit $as_status
15742} # as_fn_error
15743
15744
15745# as_fn_set_status STATUS
15746# -----------------------
15747# Set $? to STATUS, without forking.
15748as_fn_set_status ()
15749{
15750 return $1
15751} # as_fn_set_status
15752
15753# as_fn_exit STATUS
15754# -----------------
15755# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15756as_fn_exit ()
15757{
15758 set +e
15759 as_fn_set_status $1
15760 exit $1
15761} # as_fn_exit
15762
15763# as_fn_unset VAR
15764# ---------------
15765# Portably unset VAR.
15766as_fn_unset ()
15767{
15768 { eval $1=; unset $1;}
15769}
15770as_unset=as_fn_unset
15771# as_fn_append VAR VALUE
15772# ----------------------
15773# Append the text in VALUE to the end of the definition contained in VAR. Take
15774# advantage of any shell optimizations that allow amortized linear growth over
15775# repeated appends, instead of the typical quadratic growth present in naive
15776# implementations.
15777if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15778 eval 'as_fn_append ()
15779 {
15780 eval $1+=\$2
15781 }'
15782else
15783 as_fn_append ()
15784 {
15785 eval $1=\$$1\$2
15786 }
15787fi # as_fn_append
15788
15789# as_fn_arith ARG...
15790# ------------------
15791# Perform arithmetic evaluation on the ARGs, and store the result in the
15792# global $as_val. Take advantage of shells that can avoid forks. The arguments
15793# must be portable across $(()) and expr.
15794if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15795 eval 'as_fn_arith ()
15796 {
15797 as_val=$(( $* ))
15798 }'
15799else
15800 as_fn_arith ()
15801 {
15802 as_val=`expr "$@" || test $? -eq 1`
15803 }
15804fi # as_fn_arith
1530be84 15805
5213506e
RW
15806
15807if expr a : '\(a\)' >/dev/null 2>&1 &&
15808 test "X`expr 00001 : '.*\(...\)'`" = X001; then
47935194
NN
15809 as_expr=expr
15810else
15811 as_expr=false
15812fi
1530be84 15813
5213506e 15814if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
47935194
NN
15815 as_basename=basename
15816else
15817 as_basename=false
15818fi
15819
5213506e
RW
15820if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15821 as_dirname=dirname
15822else
15823 as_dirname=false
15824fi
47935194 15825
5213506e 15826as_me=`$as_basename -- "$0" ||
47935194
NN
15827$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15828 X"$0" : 'X\(//\)$' \| \
5213506e
RW
15829 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15830$as_echo X/"$0" |
15831 sed '/^.*\/\([^/][^/]*\)\/*$/{
15832 s//\1/
15833 q
15834 }
15835 /^X\/\(\/\/\)$/{
15836 s//\1/
15837 q
15838 }
15839 /^X\/\(\/\).*/{
15840 s//\1/
15841 q
15842 }
15843 s/.*/./; q'`
47935194 15844
47935194
NN
15845# Avoid depending upon Character Ranges.
15846as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15847as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15848as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15849as_cr_digits='0123456789'
15850as_cr_alnum=$as_cr_Letters$as_cr_digits
15851
5213506e
RW
15852ECHO_C= ECHO_N= ECHO_T=
15853case `echo -n x` in #(((((
15854-n*)
15855 case `echo 'xy\c'` in
15856 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15857 xy) ECHO_C='\c';;
15858 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15859 ECHO_T=' ';;
15860 esac;;
15861*)
15862 ECHO_N='-n';;
47935194
NN
15863esac
15864
5213506e
RW
15865rm -f conf$$ conf$$.exe conf$$.file
15866if test -d conf$$.dir; then
15867 rm -f conf$$.dir/conf$$.file
47935194 15868else
5213506e
RW
15869 rm -f conf$$.dir
15870 mkdir conf$$.dir 2>/dev/null
47935194 15871fi
5213506e
RW
15872if (echo >conf$$.file) 2>/dev/null; then
15873 if ln -s conf$$.file conf$$ 2>/dev/null; then
47935194 15874 as_ln_s='ln -s'
5213506e
RW
15875 # ... but there are two gotchas:
15876 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15877 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15878 # In both cases, we have to default to `cp -p'.
15879 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15880 as_ln_s='cp -p'
15881 elif ln conf$$.file conf$$ 2>/dev/null; then
15882 as_ln_s=ln
15883 else
15884 as_ln_s='cp -p'
1530be84 15885 fi
47935194
NN
15886else
15887 as_ln_s='cp -p'
15888fi
5213506e
RW
15889rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15890rmdir conf$$.dir 2>/dev/null
15891
15892
15893# as_fn_mkdir_p
15894# -------------
15895# Create "$as_dir" as a directory, including parents if necessary.
15896as_fn_mkdir_p ()
15897{
15898
15899 case $as_dir in #(
15900 -*) as_dir=./$as_dir;;
15901 esac
15902 test -d "$as_dir" || eval $as_mkdir_p || {
15903 as_dirs=
15904 while :; do
15905 case $as_dir in #(
15906 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15907 *) as_qdir=$as_dir;;
15908 esac
15909 as_dirs="'$as_qdir' $as_dirs"
15910 as_dir=`$as_dirname -- "$as_dir" ||
15911$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15912 X"$as_dir" : 'X\(//\)[^/]' \| \
15913 X"$as_dir" : 'X\(//\)$' \| \
15914 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15915$as_echo X"$as_dir" |
15916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15917 s//\1/
15918 q
15919 }
15920 /^X\(\/\/\)[^/].*/{
15921 s//\1/
15922 q
15923 }
15924 /^X\(\/\/\)$/{
15925 s//\1/
15926 q
15927 }
15928 /^X\(\/\).*/{
15929 s//\1/
15930 q
15931 }
15932 s/.*/./; q'`
15933 test -d "$as_dir" && break
15934 done
15935 test -z "$as_dirs" || eval "mkdir $as_dirs"
15936 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
1530be84 15937
5213506e
RW
15938
15939} # as_fn_mkdir_p
47935194 15940if mkdir -p . 2>/dev/null; then
5213506e 15941 as_mkdir_p='mkdir -p "$as_dir"'
47935194 15942else
8ab705be 15943 test -d ./-p && rmdir ./-p
47935194
NN
15944 as_mkdir_p=false
15945fi
15946
5213506e
RW
15947if test -x / >/dev/null 2>&1; then
15948 as_test_x='test -x'
15949else
15950 if ls -dL / >/dev/null 2>&1; then
15951 as_ls_L_option=L
15952 else
15953 as_ls_L_option=
15954 fi
15955 as_test_x='
15956 eval sh -c '\''
15957 if test -d "$1"; then
15958 test -d "$1/.";
15959 else
15960 case $1 in #(
15961 -*)set "./$1";;
15962 esac;
15963 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15964 ???[sx]*):;;*)false;;esac;fi
15965 '\'' sh
15966 '
15967fi
15968as_executable_p=$as_test_x
47935194
NN
15969
15970# Sed expression to map a string onto a valid CPP name.
8ab705be 15971as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
47935194
NN
15972
15973# Sed expression to map a string onto a valid variable name.
5213506e 15974as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
47935194 15975
47935194
NN
15976
15977exec 6>&1
5213506e
RW
15978## ----------------------------------- ##
15979## Main body of $CONFIG_STATUS script. ##
15980## ----------------------------------- ##
15981_ASEOF
15982test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15983
15984cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15985# Save the log message, to keep $0 and so on meaningful, and to
47935194 15986# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
15987# values after options handling.
15988ac_log="
47935194 15989This file was extended by $as_me, which was
5213506e 15990generated by GNU Autoconf 2.64. Invocation command line was
47935194
NN
15991
15992 CONFIG_FILES = $CONFIG_FILES
15993 CONFIG_HEADERS = $CONFIG_HEADERS
15994 CONFIG_LINKS = $CONFIG_LINKS
15995 CONFIG_COMMANDS = $CONFIG_COMMANDS
15996 $ $0 $@
15997
5213506e
RW
15998on `(hostname || uname -n) 2>/dev/null | sed 1q`
15999"
16000
47935194 16001_ACEOF
1530be84 16002
5213506e
RW
16003case $ac_config_files in *"
16004"*) set x $ac_config_files; shift; ac_config_files=$*;;
16005esac
47935194 16006
5213506e
RW
16007case $ac_config_headers in *"
16008"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16009esac
47935194 16010
47935194 16011
5213506e
RW
16012cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16013# Files that config.status was made for.
16014config_files="$ac_config_files"
16015config_headers="$ac_config_headers"
16016config_commands="$ac_config_commands"
47935194 16017
5213506e 16018_ACEOF
47935194 16019
5213506e 16020cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47935194 16021ac_cs_usage="\
5213506e
RW
16022\`$as_me' instantiates files and other configuration actions
16023from templates according to the current configuration. Unless the files
16024and actions are specified as TAGs, all are instantiated by default.
47935194 16025
5213506e 16026Usage: $0 [OPTION]... [TAG]...
47935194
NN
16027
16028 -h, --help print this help, then exit
5213506e
RW
16029 -V, --version print version number and configuration settings, then exit
16030 -q, --quiet, --silent
16031 do not print progress messages
47935194
NN
16032 -d, --debug don't remove temporary files
16033 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
16034 --file=FILE[:TEMPLATE]
16035 instantiate the configuration file FILE
16036 --header=FILE[:TEMPLATE]
16037 instantiate the configuration header FILE
47935194
NN
16038
16039Configuration files:
16040$config_files
16041
4109fe85
BM
16042Configuration headers:
16043$config_headers
16044
47935194
NN
16045Configuration commands:
16046$config_commands
16047
5213506e 16048Report bugs to the package provider."
47935194 16049
5213506e
RW
16050_ACEOF
16051cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47935194
NN
16052ac_cs_version="\\
16053config.status
5213506e
RW
16054configured by $0, generated by GNU Autoconf 2.64,
16055 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
47935194 16056
5213506e 16057Copyright (C) 2009 Free Software Foundation, Inc.
47935194
NN
16058This config.status script is free software; the Free Software Foundation
16059gives unlimited permission to copy, distribute and modify it."
5213506e
RW
16060
16061ac_pwd='$ac_pwd'
16062srcdir='$srcdir'
16063INSTALL='$INSTALL'
16064MKDIR_P='$MKDIR_P'
16065AWK='$AWK'
16066test -n "\$AWK" || AWK=awk
47935194
NN
16067_ACEOF
16068
5213506e
RW
16069cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16070# The default lists apply if the user does not specify any file.
47935194
NN
16071ac_need_defaults=:
16072while test $# != 0
16073do
16074 case $1 in
16075 --*=*)
5213506e
RW
16076 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16077 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
47935194
NN
16078 ac_shift=:
16079 ;;
5213506e 16080 *)
47935194
NN
16081 ac_option=$1
16082 ac_optarg=$2
16083 ac_shift=shift
16084 ;;
1530be84
TT
16085 esac
16086
47935194
NN
16087 case $ac_option in
16088 # Handling of the options.
47935194
NN
16089 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16090 ac_cs_recheck=: ;;
5213506e
RW
16091 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16092 $as_echo "$ac_cs_version"; exit ;;
16093 --debug | --debu | --deb | --de | --d | -d )
47935194
NN
16094 debug=: ;;
16095 --file | --fil | --fi | --f )
16096 $ac_shift
5213506e
RW
16097 case $ac_optarg in
16098 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16099 esac
16100 as_fn_append CONFIG_FILES " '$ac_optarg'"
47935194
NN
16101 ac_need_defaults=false;;
16102 --header | --heade | --head | --hea )
16103 $ac_shift
5213506e
RW
16104 case $ac_optarg in
16105 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16106 esac
16107 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
47935194 16108 ac_need_defaults=false;;
5213506e
RW
16109 --he | --h)
16110 # Conflict between --help and --header
16111 as_fn_error "ambiguous option: \`$1'
16112Try \`$0 --help' for more information.";;
16113 --help | --hel | -h )
16114 $as_echo "$ac_cs_usage"; exit ;;
47935194
NN
16115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16116 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16117 ac_cs_silent=: ;;
16118
16119 # This is an error.
5213506e
RW
16120 -*) as_fn_error "unrecognized option: \`$1'
16121Try \`$0 --help' for more information." ;;
47935194 16122
5213506e
RW
16123 *) as_fn_append ac_config_targets " $1"
16124 ac_need_defaults=false ;;
47935194 16125
1530be84 16126 esac
47935194
NN
16127 shift
16128done
1530be84 16129
47935194
NN
16130ac_configure_extra_args=
16131
16132if $ac_cs_silent; then
16133 exec 6>/dev/null
16134 ac_configure_extra_args="$ac_configure_extra_args --silent"
16135fi
16136
16137_ACEOF
5213506e 16138cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47935194 16139if \$ac_cs_recheck; then
5213506e
RW
16140 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16141 shift
16142 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16143 CONFIG_SHELL='$SHELL'
16144 export CONFIG_SHELL
16145 exec "\$@"
47935194
NN
16146fi
16147
1cf3d07d 16148_ACEOF
5213506e
RW
16149cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16150exec 5>>config.log
16151{
16152 echo
16153 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16154## Running $as_me. ##
16155_ASBOX
16156 $as_echo "$ac_log"
16157} >&5
1cf3d07d 16158
5213506e
RW
16159_ACEOF
16160cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1cf3d07d 16161#
5213506e 16162# INIT-COMMANDS
1cf3d07d
SE
16163#
16164
1cf3d07d
SE
16165srcdir="$srcdir"
16166host="$host"
16167target="$target"
16168with_multisubdir="$with_multisubdir"
16169with_multisrctop="$with_multisrctop"
16170with_target_subdir="$with_target_subdir"
16171ac_configure_args="${multilib_arg} ${ac_configure_args}"
16172multi_basedir="$multi_basedir"
16173CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16174CC="$CC"
e59be1b1
KT
16175CXX="$CXX"
16176GFORTRAN="$GFORTRAN"
16177GCJ="$GCJ"
1cf3d07d
SE
16178AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16179
16180
16181# The HP-UX ksh and POSIX shell print the target directory to stdout
16182# if CDPATH is set.
16183(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16184
16185sed_quote_subst='$sed_quote_subst'
16186double_quote_subst='$double_quote_subst'
16187delay_variable_subst='$delay_variable_subst'
43e02a8a
RW
16188macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16189macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16190enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16191enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16192pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16193enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16194SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16195ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16196host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16197host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16198host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16199build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16200build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16201build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16202SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16203Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16204GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16205EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16206FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16207LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16208NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16209LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16210max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16211ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16212exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16213lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16214lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16215lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16216reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16217reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16218OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16219deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16220file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16221AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16222AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16223STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16224RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16225old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16226old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16227old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16228lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16229CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16230CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16231compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16232GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16233lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16234lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16235lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16236lt_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"`'
16237objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16238MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16239lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16240lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16241lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16242lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16243lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16244need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16245DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16246NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16247LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16248OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16249OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16250libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16251shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16252extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16253archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16254enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16255export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16256whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16257compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16258old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16259old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16260archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16261archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16262module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16263module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16264with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16265allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16266no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16267hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16268hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16269hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16270hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16271hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16272hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16273hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16274hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16275inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16276link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16277fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16278always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16279export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16280exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16281include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16282prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16283file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16284variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16285need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16286need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16287version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16288runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16289shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16290shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16291libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16292library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16293soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16294install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16295postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16296postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16297finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16298finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16299hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16300sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16301sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16302hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16303enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16304enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16305enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16306old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16307striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16308compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16309predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16310postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16311predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16312postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16313compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16314LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16315reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16316reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16317old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16318compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16319GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16320lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16321lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16322lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16323lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16324lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16325archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16326enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16327export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16328whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16329compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16330old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16331old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16332archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16333archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16334module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16335module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16336with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16337allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16338no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16339hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16340hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16341hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16342hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16343hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16344hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16345hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16346hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16347inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16348link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16349fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16350always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16351export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16352exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16353include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16354prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16355file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16356hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16357compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16358predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16359postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16360predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16361postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16362compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
1cf3d07d
SE
16363
16364LTCC='$LTCC'
16365LTCFLAGS='$LTCFLAGS'
16366compiler='$compiler_DEFAULT'
16367
43e02a8a
RW
16368# A function that is used when there is no print builtin or printf.
16369func_fallback_echo ()
16370{
16371 eval 'cat <<_LTECHO_EOF
16372\$1
16373_LTECHO_EOF'
16374}
16375
1cf3d07d 16376# Quote evaled strings.
43e02a8a
RW
16377for var in SHELL \
16378ECHO \
16379SED \
1cf3d07d
SE
16380GREP \
16381EGREP \
16382FGREP \
16383LD \
16384NM \
16385LN_S \
16386lt_SP2NL \
16387lt_NL2SP \
16388reload_flag \
93e92f52 16389OBJDUMP \
1cf3d07d
SE
16390deplibs_check_method \
16391file_magic_cmd \
16392AR \
16393AR_FLAGS \
16394STRIP \
16395RANLIB \
16396CC \
16397CFLAGS \
16398compiler \
16399lt_cv_sys_global_symbol_pipe \
16400lt_cv_sys_global_symbol_to_cdecl \
16401lt_cv_sys_global_symbol_to_c_name_address \
93e92f52 16402lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1cf3d07d
SE
16403lt_prog_compiler_no_builtin_flag \
16404lt_prog_compiler_wl \
16405lt_prog_compiler_pic \
16406lt_prog_compiler_static \
16407lt_cv_prog_compiler_c_o \
16408need_locks \
93e92f52
PG
16409DSYMUTIL \
16410NMEDIT \
16411LIPO \
16412OTOOL \
16413OTOOL64 \
1cf3d07d
SE
16414shrext_cmds \
16415export_dynamic_flag_spec \
16416whole_archive_flag_spec \
16417compiler_needs_object \
16418with_gnu_ld \
16419allow_undefined_flag \
16420no_undefined_flag \
16421hardcode_libdir_flag_spec \
16422hardcode_libdir_flag_spec_ld \
16423hardcode_libdir_separator \
16424fix_srcfile_path \
16425exclude_expsyms \
16426include_expsyms \
16427file_list_spec \
16428variables_saved_for_relink \
16429libname_spec \
16430library_names_spec \
16431soname_spec \
43e02a8a 16432install_override_mode \
1cf3d07d
SE
16433finish_eval \
16434old_striplib \
16435striplib \
93e92f52 16436compiler_lib_search_dirs \
1cf3d07d
SE
16437predep_objects \
16438postdep_objects \
16439predeps \
16440postdeps \
16441compiler_lib_search_path \
16442LD_CXX \
43e02a8a 16443reload_flag_CXX \
1cf3d07d
SE
16444compiler_CXX \
16445lt_prog_compiler_no_builtin_flag_CXX \
16446lt_prog_compiler_wl_CXX \
16447lt_prog_compiler_pic_CXX \
16448lt_prog_compiler_static_CXX \
16449lt_cv_prog_compiler_c_o_CXX \
16450export_dynamic_flag_spec_CXX \
16451whole_archive_flag_spec_CXX \
16452compiler_needs_object_CXX \
16453with_gnu_ld_CXX \
16454allow_undefined_flag_CXX \
16455no_undefined_flag_CXX \
16456hardcode_libdir_flag_spec_CXX \
16457hardcode_libdir_flag_spec_ld_CXX \
16458hardcode_libdir_separator_CXX \
16459fix_srcfile_path_CXX \
16460exclude_expsyms_CXX \
16461include_expsyms_CXX \
16462file_list_spec_CXX \
93e92f52 16463compiler_lib_search_dirs_CXX \
1cf3d07d
SE
16464predep_objects_CXX \
16465postdep_objects_CXX \
16466predeps_CXX \
16467postdeps_CXX \
16468compiler_lib_search_path_CXX; do
43e02a8a 16469 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 16470 *[\\\\\\\`\\"\\\$]*)
43e02a8a 16471 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1cf3d07d
SE
16472 ;;
16473 *)
16474 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16475 ;;
16476 esac
16477done
16478
16479# Double-quote double-evaled strings.
16480for var in reload_cmds \
16481old_postinstall_cmds \
16482old_postuninstall_cmds \
16483old_archive_cmds \
16484extract_expsyms_cmds \
16485old_archive_from_new_cmds \
16486old_archive_from_expsyms_cmds \
16487archive_cmds \
16488archive_expsym_cmds \
16489module_cmds \
16490module_expsym_cmds \
16491export_symbols_cmds \
16492prelink_cmds \
16493postinstall_cmds \
16494postuninstall_cmds \
16495finish_cmds \
16496sys_lib_search_path_spec \
16497sys_lib_dlsearch_path_spec \
43e02a8a 16498reload_cmds_CXX \
1cf3d07d
SE
16499old_archive_cmds_CXX \
16500old_archive_from_new_cmds_CXX \
16501old_archive_from_expsyms_cmds_CXX \
16502archive_cmds_CXX \
16503archive_expsym_cmds_CXX \
16504module_cmds_CXX \
16505module_expsym_cmds_CXX \
16506export_symbols_cmds_CXX \
16507prelink_cmds_CXX; do
43e02a8a 16508 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 16509 *[\\\\\\\`\\"\\\$]*)
43e02a8a 16510 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1cf3d07d
SE
16511 ;;
16512 *)
16513 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16514 ;;
16515 esac
16516done
16517
1cf3d07d
SE
16518ac_aux_dir='$ac_aux_dir'
16519xsi_shell='$xsi_shell'
16520lt_shell_append='$lt_shell_append'
16521
16522# See if we are running on zsh, and set the options which allow our
16523# commands through without removal of \ escapes INIT.
16524if test -n "\${ZSH_VERSION+set}" ; then
16525 setopt NO_GLOB_SUBST
16526fi
16527
16528
16529 PACKAGE='$PACKAGE'
16530 VERSION='$VERSION'
16531 TIMESTAMP='$TIMESTAMP'
16532 RM='$RM'
16533 ofile='$ofile'
16534
16535
47935194 16536
1530be84 16537
bf9a420e 16538
1530be84 16539
47935194
NN
16540_ACEOF
16541
5213506e 16542cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47935194 16543
5213506e 16544# Handling of arguments.
47935194
NN
16545for ac_config_target in $ac_config_targets
16546do
5213506e
RW
16547 case $ac_config_target in
16548 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16549 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16550 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16551 "include/gc_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/gc_config.h" ;;
16552 "include/gc_ext_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/gc_ext_config.h" ;;
16553 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16554 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16555 "threads.mk") CONFIG_FILES="$CONFIG_FILES threads.mk" ;;
16556
16557 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
47935194
NN
16558 esac
16559done
16560
5213506e 16561
47935194
NN
16562# If the user did not use the arguments to specify the items to instantiate,
16563# then the envvar interface is used. Set only those that are not.
16564# We use the long form for the default assignment because of an extremely
16565# bizarre bug on SunOS 4.1.3.
16566if $ac_need_defaults; then
16567 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4109fe85 16568 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
47935194
NN
16569 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16570fi
16571
16572# Have a temporary directory for convenience. Make it in the build tree
5213506e 16573# simply because there is no reason against having it here, and in addition,
47935194 16574# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
16575# Hook for its removal unless debugging.
16576# Note that there is a small window in which the directory will not be cleaned:
16577# after its creation but before its name has been assigned to `$tmp'.
47935194
NN
16578$debug ||
16579{
5213506e
RW
16580 tmp=
16581 trap 'exit_status=$?
16582 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16583' 0
16584 trap 'as_fn_exit 1' 1 2 13 15
47935194 16585}
47935194
NN
16586# Create a (secure) tmp directory for tmp files.
16587
16588{
5213506e 16589 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
47935194
NN
16590 test -n "$tmp" && test -d "$tmp"
16591} ||
16592{
5213506e
RW
16593 tmp=./conf$$-$RANDOM
16594 (umask 077 && mkdir "$tmp")
16595} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16596
16597# Set up the scripts for CONFIG_FILES section.
16598# No need to generate them if there are no CONFIG_FILES.
16599# This happens for instance with `./config.status config.h'.
16600if test -n "$CONFIG_FILES"; then
16601
16602
16603ac_cr=`echo X | tr X '\015'`
16604# On cygwin, bash can eat \r inside `` if the user requested igncr.
16605# But we know of no other shell where ac_cr would be empty at this
16606# point, so we can use a bashism as a fallback.
16607if test "x$ac_cr" = x; then
16608 eval ac_cr=\$\'\\r\'
16609fi
16610ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16611if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16612 ac_cs_awk_cr='\r'
16613else
16614 ac_cs_awk_cr=$ac_cr
16615fi
16616
16617echo 'BEGIN {' >"$tmp/subs1.awk" &&
16618_ACEOF
16619
16620
47935194 16621{
5213506e
RW
16622 echo "cat >conf$$subs.awk <<_ACEOF" &&
16623 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16624 echo "_ACEOF"
16625} >conf$$subs.sh ||
16626 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16627ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16628ac_delim='%!_!# '
16629for ac_last_try in false false false false false :; do
16630 . ./conf$$subs.sh ||
16631 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16632
16633 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16634 if test $ac_delim_n = $ac_delim_num; then
16635 break
16636 elif $ac_last_try; then
16637 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16638 else
16639 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16640 fi
16641done
16642rm -f conf$$subs.sh
47935194 16643
5213506e
RW
16644cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16645cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
47935194 16646_ACEOF
5213506e
RW
16647sed -n '
16648h
16649s/^/S["/; s/!.*/"]=/
16650p
16651g
16652s/^[^!]*!//
16653:repl
16654t repl
16655s/'"$ac_delim"'$//
16656t delim
16657:nl
16658h
16659s/\(.\{148\}\).*/\1/
16660t more1
16661s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16662p
16663n
16664b repl
16665:more1
16666s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16667p
16668g
16669s/.\{148\}//
16670t nl
16671:delim
16672h
16673s/\(.\{148\}\).*/\1/
16674t more2
16675s/["\\]/\\&/g; s/^/"/; s/$/"/
16676p
16677b
16678:more2
16679s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16680p
16681g
16682s/.\{148\}//
16683t delim
16684' <conf$$subs.awk | sed '
16685/^[^""]/{
16686 N
16687 s/\n//
16688}
16689' >>$CONFIG_STATUS || ac_write_fail=1
16690rm -f conf$$subs.awk
16691cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16692_ACAWK
16693cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16694 for (key in S) S_is_set[key] = 1
16695 FS = "\a"
16696
16697}
16698{
16699 line = $ 0
16700 nfields = split(line, field, "@")
16701 substed = 0
16702 len = length(field[1])
16703 for (i = 2; i < nfields; i++) {
16704 key = field[i]
16705 keylen = length(key)
16706 if (S_is_set[key]) {
16707 value = S[key]
16708 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16709 len += length(value) + length(field[++i])
16710 substed = 1
16711 } else
16712 len += 1 + keylen
16713 }
47935194 16714
5213506e
RW
16715 print line
16716}
47935194 16717
5213506e
RW
16718_ACAWK
16719_ACEOF
16720cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16721if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16722 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16723else
16724 cat
16725fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16726 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16727_ACEOF
16728
16729# VPATH may cause trouble with some makes, so we remove $(srcdir),
16730# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16731# trailing colons and then remove the whole line if VPATH becomes empty
16732# (actually we leave an empty line to preserve line numbers).
16733if test "x$srcdir" = x.; then
16734 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16735s/:*\$(srcdir):*/:/
16736s/:*\${srcdir}:*/:/
16737s/:*@srcdir@:*/:/
16738s/^\([^=]*=[ ]*\):*/\1/
16739s/:*$//
16740s/^[^=]*=[ ]*$//
16741}'
16742fi
47935194 16743
5213506e
RW
16744cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16745fi # test -n "$CONFIG_FILES"
47935194 16746
5213506e
RW
16747# Set up the scripts for CONFIG_HEADERS section.
16748# No need to generate them if there are no CONFIG_HEADERS.
16749# This happens for instance with `./config.status Makefile'.
16750if test -n "$CONFIG_HEADERS"; then
16751cat >"$tmp/defines.awk" <<\_ACAWK ||
16752BEGIN {
47935194
NN
16753_ACEOF
16754
5213506e
RW
16755# Transform confdefs.h into an awk script `defines.awk', embedded as
16756# here-document in config.status, that substitutes the proper values into
16757# config.h.in to produce config.h.
16758
16759# Create a delimiter string that does not exist in confdefs.h, to ease
16760# handling of long lines.
16761ac_delim='%!_!# '
16762for ac_last_try in false false :; do
16763 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16764 if test -z "$ac_t"; then
16765 break
16766 elif $ac_last_try; then
16767 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16768 else
16769 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
47935194 16770 fi
5213506e 16771done
47935194 16772
5213506e
RW
16773# For the awk script, D is an array of macro values keyed by name,
16774# likewise P contains macro parameters if any. Preserve backslash
16775# newline sequences.
16776
16777ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16778sed -n '
16779s/.\{148\}/&'"$ac_delim"'/g
16780t rset
16781:rset
16782s/^[ ]*#[ ]*define[ ][ ]*/ /
16783t def
16784d
16785:def
16786s/\\$//
16787t bsnl
16788s/["\\]/\\&/g
16789s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16790D["\1"]=" \3"/p
16791s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16792d
16793:bsnl
16794s/["\\]/\\&/g
16795s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16796D["\1"]=" \3\\\\\\n"\\/p
16797t cont
16798s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16799t cont
16800d
16801:cont
16802n
16803s/.\{148\}/&'"$ac_delim"'/g
16804t clear
16805:clear
16806s/\\$//
16807t bsnlc
16808s/["\\]/\\&/g; s/^/"/; s/$/"/p
16809d
16810:bsnlc
16811s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16812b cont
16813' <confdefs.h | sed '
16814s/'"$ac_delim"'/"\\\
16815"/g' >>$CONFIG_STATUS || ac_write_fail=1
16816
16817cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16818 for (key in D) D_is_set[key] = 1
16819 FS = "\a"
16820}
16821/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16822 line = \$ 0
16823 split(line, arg, " ")
16824 if (arg[1] == "#") {
16825 defundef = arg[2]
16826 mac1 = arg[3]
16827 } else {
16828 defundef = substr(arg[1], 2)
16829 mac1 = arg[2]
16830 }
16831 split(mac1, mac2, "(") #)
16832 macro = mac2[1]
16833 prefix = substr(line, 1, index(line, defundef) - 1)
16834 if (D_is_set[macro]) {
16835 # Preserve the white space surrounding the "#".
16836 print prefix "define", macro P[macro] D[macro]
16837 next
16838 } else {
16839 # Replace #undef with comments. This is necessary, for example,
16840 # in the case of _POSIX_SOURCE, which is predefined and required
16841 # on some systems where configure will not decide to define it.
16842 if (defundef == "undef") {
16843 print "/*", prefix defundef, macro, "*/"
16844 next
16845 }
16846 }
16847}
16848{ print }
16849_ACAWK
47935194 16850_ACEOF
5213506e
RW
16851cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16852 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16853fi # test -n "$CONFIG_HEADERS"
16854
16855
16856eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16857shift
16858for ac_tag
16859do
16860 case $ac_tag in
16861 :[FHLC]) ac_mode=$ac_tag; continue;;
16862 esac
16863 case $ac_mode$ac_tag in
16864 :[FHL]*:*);;
16865 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16866 :[FH]-) ac_tag=-:-;;
16867 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16868 esac
16869 ac_save_IFS=$IFS
16870 IFS=:
16871 set x $ac_tag
16872 IFS=$ac_save_IFS
16873 shift
16874 ac_file=$1
16875 shift
16876
16877 case $ac_mode in
16878 :L) ac_source=$1;;
16879 :[FH])
16880 ac_file_inputs=
16881 for ac_f
16882 do
16883 case $ac_f in
16884 -) ac_f="$tmp/stdin";;
16885 *) # Look for the file first in the build tree, then in the source tree
16886 # (if the path is not absolute). The absolute path cannot be DOS-style,
16887 # because $ac_f cannot contain `:'.
16888 test -f "$ac_f" ||
16889 case $ac_f in
16890 [\\/$]*) false;;
16891 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16892 esac ||
16893 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16894 esac
16895 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16896 as_fn_append ac_file_inputs " '$ac_f'"
16897 done
16898
16899 # Let's still pretend it is `configure' which instantiates (i.e., don't
16900 # use $as_me), people would be surprised to read:
16901 # /* config.h. Generated by config.status. */
16902 configure_input='Generated from '`
16903 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16904 `' by configure.'
16905 if test x"$ac_file" != x-; then
16906 configure_input="$ac_file. $configure_input"
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16908$as_echo "$as_me: creating $ac_file" >&6;}
16909 fi
16910 # Neutralize special characters interpreted by sed in replacement strings.
16911 case $configure_input in #(
16912 *\&* | *\|* | *\\* )
16913 ac_sed_conf_input=`$as_echo "$configure_input" |
16914 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16915 *) ac_sed_conf_input=$configure_input;;
16916 esac
16917
16918 case $ac_tag in
16919 *:-:* | *:-) cat >"$tmp/stdin" \
16920 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16921 esac
16922 ;;
47935194
NN
16923 esac
16924
5213506e 16925 ac_dir=`$as_dirname -- "$ac_file" ||
47935194 16926$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8ab705be
KC
16927 X"$ac_file" : 'X\(//\)[^/]' \| \
16928 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
16929 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16930$as_echo X"$ac_file" |
16931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16932 s//\1/
16933 q
16934 }
16935 /^X\(\/\/\)[^/].*/{
16936 s//\1/
16937 q
16938 }
16939 /^X\(\/\/\)$/{
16940 s//\1/
16941 q
16942 }
16943 /^X\(\/\).*/{
16944 s//\1/
16945 q
16946 }
16947 s/.*/./; q'`
16948 as_dir="$ac_dir"; as_fn_mkdir_p
47935194
NN
16949 ac_builddir=.
16950
5213506e
RW
16951case "$ac_dir" in
16952.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16953*)
16954 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16955 # A ".." for each directory in $ac_dir_suffix.
16956 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16957 case $ac_top_builddir_sub in
16958 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16959 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16960 esac ;;
16961esac
16962ac_abs_top_builddir=$ac_pwd
16963ac_abs_builddir=$ac_pwd$ac_dir_suffix
16964# for backward compatibility:
16965ac_top_builddir=$ac_top_build_prefix
47935194
NN
16966
16967case $srcdir in
5213506e 16968 .) # We are building in place.
47935194 16969 ac_srcdir=.
5213506e
RW
16970 ac_top_srcdir=$ac_top_builddir_sub
16971 ac_abs_top_srcdir=$ac_pwd ;;
16972 [\\/]* | ?:[\\/]* ) # Absolute name.
47935194 16973 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
16974 ac_top_srcdir=$srcdir
16975 ac_abs_top_srcdir=$srcdir ;;
16976 *) # Relative name.
16977 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16978 ac_top_srcdir=$ac_top_build_prefix$srcdir
16979 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
47935194 16980esac
5213506e 16981ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8ab705be 16982
47935194 16983
5213506e
RW
16984 case $ac_mode in
16985 :F)
16986 #
16987 # CONFIG_FILE
16988 #
47935194
NN
16989
16990 case $INSTALL in
16991 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 16992 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
47935194 16993 esac
5213506e
RW
16994 ac_MKDIR_P=$MKDIR_P
16995 case $MKDIR_P in
16996 [\\/$]* | ?:[\\/]* ) ;;
16997 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16998 esac
16999_ACEOF
47935194 17000
5213506e
RW
17001cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17002# If the template does not know about datarootdir, expand it.
17003# FIXME: This hack should be removed a few years after 2.60.
17004ac_datarootdir_hack=; ac_datarootdir_seen=
17005ac_sed_dataroot='
17006/datarootdir/ {
17007 p
17008 q
17009}
17010/@datadir@/p
17011/@docdir@/p
17012/@infodir@/p
17013/@localedir@/p
17014/@mandir@/p'
17015case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17016*datarootdir*) ac_datarootdir_seen=yes;;
17017*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17019$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17020_ACEOF
17021cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17022 ac_datarootdir_hack='
17023 s&@datadir@&$datadir&g
17024 s&@docdir@&$docdir&g
17025 s&@infodir@&$infodir&g
17026 s&@localedir@&$localedir&g
17027 s&@mandir@&$mandir&g
17028 s&\\\${datarootdir}&$datarootdir&g' ;;
17029esac
47935194 17030_ACEOF
5213506e
RW
17031
17032# Neutralize VPATH when `$srcdir' = `.'.
17033# Shell code in configure.ac might set extrasub.
17034# FIXME: do we really want to maintain this feature?
17035cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17036ac_sed_extra="$ac_vpsub
47935194
NN
17037$extrasub
17038_ACEOF
5213506e 17039cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47935194
NN
17040:t
17041/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
17042s|@configure_input@|$ac_sed_conf_input|;t t
17043s&@top_builddir@&$ac_top_builddir_sub&;t t
17044s&@top_build_prefix@&$ac_top_build_prefix&;t t
17045s&@srcdir@&$ac_srcdir&;t t
17046s&@abs_srcdir@&$ac_abs_srcdir&;t t
17047s&@top_srcdir@&$ac_top_srcdir&;t t
17048s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17049s&@builddir@&$ac_builddir&;t t
17050s&@abs_builddir@&$ac_abs_builddir&;t t
17051s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17052s&@INSTALL@&$ac_INSTALL&;t t
17053s&@MKDIR_P@&$ac_MKDIR_P&;t t
17054$ac_datarootdir_hack
17055"
17056eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17057 || as_fn_error "could not create $ac_file" "$LINENO" 5
17058
17059test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17060 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17061 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17063which seems to be undefined. Please make sure it is defined." >&5
17064$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17065which seems to be undefined. Please make sure it is defined." >&2;}
17066
17067 rm -f "$tmp/stdin"
4109fe85 17068 case $ac_file in
5213506e
RW
17069 -) cat "$tmp/out" && rm -f "$tmp/out";;
17070 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17071 esac \
17072 || as_fn_error "could not create $ac_file" "$LINENO" 5
17073 ;;
17074 :H)
17075 #
17076 # CONFIG_HEADER
17077 #
4109fe85 17078 if test x"$ac_file" != x-; then
5213506e
RW
17079 {
17080 $as_echo "/* $configure_input */" \
17081 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17082 } >"$tmp/config.h" \
17083 || as_fn_error "could not create $ac_file" "$LINENO" 5
17084 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17085 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17086$as_echo "$as_me: $ac_file is unchanged" >&6;}
4109fe85 17087 else
5213506e
RW
17088 rm -f "$ac_file"
17089 mv "$tmp/config.h" "$ac_file" \
17090 || as_fn_error "could not create $ac_file" "$LINENO" 5
4109fe85
BM
17091 fi
17092 else
5213506e
RW
17093 $as_echo "/* $configure_input */" \
17094 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17095 || as_fn_error "could not create -" "$LINENO" 5
4109fe85 17096 fi
5213506e
RW
17097# Compute "$ac_file"'s index in $config_headers.
17098_am_arg="$ac_file"
4109fe85
BM
17099_am_stamp_count=1
17100for _am_header in $config_headers :; do
17101 case $_am_header in
5213506e 17102 $_am_arg | $_am_arg:* )
4109fe85
BM
17103 break ;;
17104 * )
17105 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17106 esac
17107done
5213506e
RW
17108echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17109$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17110 X"$_am_arg" : 'X\(//\)[^/]' \| \
17111 X"$_am_arg" : 'X\(//\)$' \| \
17112 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17113$as_echo X"$_am_arg" |
17114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17115 s//\1/
17116 q
17117 }
17118 /^X\(\/\/\)[^/].*/{
17119 s//\1/
17120 q
17121 }
17122 /^X\(\/\/\)$/{
17123 s//\1/
17124 q
17125 }
17126 /^X\(\/\).*/{
17127 s//\1/
17128 q
17129 }
17130 s/.*/./; q'`/stamp-h$_am_stamp_count
17131 ;;
8ab705be 17132
5213506e
RW
17133 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17134$as_echo "$as_me: executing $ac_file commands" >&6;}
17135 ;;
17136 esac
47935194
NN
17137
17138
5213506e
RW
17139 case $ac_file$ac_mode in
17140 "default-1":C)
bf9a420e
PB
17141# Only add multilib support code if we just rebuilt the top-level
17142# Makefile.
17143case " $CONFIG_FILES " in
17144 *" Makefile "*)
17145 ac_file=Makefile . ${multi_basedir}/config-ml.in
17146 ;;
17147esac ;;
5213506e
RW
17148 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17149 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17150 # are listed without --file. Let's play safe and only enable the eval
17151 # if we detect the quoting.
17152 case $CONFIG_FILES in
17153 *\'*) eval set x "$CONFIG_FILES" ;;
17154 *) set x $CONFIG_FILES ;;
17155 esac
17156 shift
17157 for mf
17158 do
17159 # Strip MF so we end up with the name of the file.
17160 mf=`echo "$mf" | sed -e 's/:.*$//'`
17161 # Check whether this is an Automake generated Makefile or not.
17162 # We used to match only the files named `Makefile.in', but
17163 # some people rename them; so instead we look at the file content.
17164 # Grep'ing the first line is not enough: some people post-process
17165 # each Makefile.in and add a new line on top of each file to say so.
17166 # Grep'ing the whole file is not good either: AIX grep has a line
17167 # limit of 2048, but all sed's we know have understand at least 4000.
17168 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17169 dirpart=`$as_dirname -- "$mf" ||
bf9a420e
PB
17170$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17171 X"$mf" : 'X\(//\)[^/]' \| \
17172 X"$mf" : 'X\(//\)$' \| \
5213506e
RW
17173 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17174$as_echo X"$mf" |
17175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17176 s//\1/
17177 q
17178 }
17179 /^X\(\/\/\)[^/].*/{
17180 s//\1/
17181 q
17182 }
17183 /^X\(\/\/\)$/{
17184 s//\1/
17185 q
17186 }
17187 /^X\(\/\).*/{
17188 s//\1/
17189 q
17190 }
17191 s/.*/./; q'`
17192 else
17193 continue
17194 fi
17195 # Extract the definition of DEPDIR, am__include, and am__quote
17196 # from the Makefile without running `make'.
17197 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17198 test -z "$DEPDIR" && continue
17199 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17200 test -z "am__include" && continue
17201 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17202 # When using ansi2knr, U may be empty or an underscore; expand it
17203 U=`sed -n 's/^U = //p' < "$mf"`
17204 # Find all dependency output files, they are included files with
17205 # $(DEPDIR) in their names. We invoke sed twice because it is the
17206 # simplest approach to changing $(DEPDIR) to its actual value in the
17207 # expansion.
17208 for file in `sed -n "
17209 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17210 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17211 # Make sure the directory exists.
17212 test -f "$dirpart/$file" && continue
17213 fdir=`$as_dirname -- "$file" ||
bf9a420e
PB
17214$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17215 X"$file" : 'X\(//\)[^/]' \| \
17216 X"$file" : 'X\(//\)$' \| \
5213506e
RW
17217 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17218$as_echo X"$file" |
17219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17220 s//\1/
17221 q
17222 }
17223 /^X\(\/\/\)[^/].*/{
17224 s//\1/
17225 q
17226 }
17227 /^X\(\/\/\)$/{
17228 s//\1/
17229 q
17230 }
17231 /^X\(\/\).*/{
17232 s//\1/
17233 q
17234 }
17235 s/.*/./; q'`
17236 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17237 # echo "creating $dirpart/$file"
17238 echo '# dummy' > "$dirpart/$file"
bf9a420e 17239 done
bf9a420e 17240 done
5213506e 17241}
1cf3d07d 17242 ;;
5213506e 17243 "libtool":C)
1cf3d07d
SE
17244
17245 # See if we are running on zsh, and set the options which allow our
17246 # commands through without removal of \ escapes.
17247 if test -n "${ZSH_VERSION+set}" ; then
17248 setopt NO_GLOB_SUBST
17249 fi
17250
17251 cfgfile="${ofile}T"
17252 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17253 $RM "$cfgfile"
17254
17255 cat <<_LT_EOF >> "$cfgfile"
17256#! $SHELL
17257
17258# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
93e92f52 17259# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1cf3d07d
SE
17260# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17261# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17262#
93e92f52 17263# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43e02a8a 17264# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
93e92f52 17265# Written by Gordon Matzigkeit, 1996
1cf3d07d 17266#
93e92f52 17267# This file is part of GNU Libtool.
1cf3d07d 17268#
93e92f52
PG
17269# GNU Libtool is free software; you can redistribute it and/or
17270# modify it under the terms of the GNU General Public License as
17271# published by the Free Software Foundation; either version 2 of
17272# the License, or (at your option) any later version.
1cf3d07d 17273#
93e92f52
PG
17274# As a special exception to the GNU General Public License,
17275# if you distribute this file as part of a program or library that
17276# is built using GNU Libtool, you may include this file under the
17277# same distribution terms that you use for the rest of that program.
1cf3d07d 17278#
93e92f52
PG
17279# GNU Libtool is distributed in the hope that it will be useful,
17280# but WITHOUT ANY WARRANTY; without even the implied warranty of
17281# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17282# GNU General Public License for more details.
1cf3d07d 17283#
93e92f52
PG
17284# You should have received a copy of the GNU General Public License
17285# along with GNU Libtool; see the file COPYING. If not, a copy
17286# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17287# obtained by writing to the Free Software Foundation, Inc.,
17288# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1cf3d07d
SE
17289
17290
17291# The names of the tagged configurations supported by this script.
17292available_tags="CXX "
17293
17294# ### BEGIN LIBTOOL CONFIG
17295
17296# Which release of libtool.m4 was used?
17297macro_version=$macro_version
17298macro_revision=$macro_revision
17299
17300# Whether or not to build shared libraries.
17301build_libtool_libs=$enable_shared
17302
17303# Whether or not to build static libraries.
17304build_old_libs=$enable_static
17305
17306# What type of objects to build.
17307pic_mode=$pic_mode
17308
17309# Whether or not to optimize for fast installation.
17310fast_install=$enable_fast_install
17311
43e02a8a
RW
17312# Shell to use when invoking shell scripts.
17313SHELL=$lt_SHELL
17314
17315# An echo program that protects backslashes.
17316ECHO=$lt_ECHO
17317
1cf3d07d
SE
17318# The host system.
17319host_alias=$host_alias
17320host=$host
17321host_os=$host_os
17322
17323# The build system.
17324build_alias=$build_alias
17325build=$build
17326build_os=$build_os
17327
17328# A sed program that does not truncate output.
17329SED=$lt_SED
17330
17331# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17332Xsed="\$SED -e 1s/^X//"
17333
17334# A grep program that handles long lines.
17335GREP=$lt_GREP
17336
17337# An ERE matcher.
17338EGREP=$lt_EGREP
17339
17340# A literal string matcher.
17341FGREP=$lt_FGREP
17342
17343# A BSD- or MS-compatible name lister.
17344NM=$lt_NM
17345
17346# Whether we need soft or hard links.
17347LN_S=$lt_LN_S
17348
17349# What is the maximum length of a command?
17350max_cmd_len=$max_cmd_len
17351
17352# Object file suffix (normally "o").
17353objext=$ac_objext
17354
17355# Executable file suffix (normally "").
17356exeext=$exeext
17357
17358# whether the shell understands "unset".
17359lt_unset=$lt_unset
17360
17361# turn spaces into newlines.
17362SP2NL=$lt_lt_SP2NL
17363
17364# turn newlines into spaces.
17365NL2SP=$lt_lt_NL2SP
17366
93e92f52
PG
17367# An object symbol dumper.
17368OBJDUMP=$lt_OBJDUMP
17369
1cf3d07d
SE
17370# Method to check whether dependent libraries are shared objects.
17371deplibs_check_method=$lt_deplibs_check_method
17372
17373# Command to use when deplibs_check_method == "file_magic".
17374file_magic_cmd=$lt_file_magic_cmd
17375
17376# The archiver.
17377AR=$lt_AR
17378AR_FLAGS=$lt_AR_FLAGS
17379
17380# A symbol stripping program.
17381STRIP=$lt_STRIP
17382
17383# Commands used to install an old-style archive.
17384RANLIB=$lt_RANLIB
17385old_postinstall_cmds=$lt_old_postinstall_cmds
17386old_postuninstall_cmds=$lt_old_postuninstall_cmds
17387
43e02a8a
RW
17388# Whether to use a lock for old archive extraction.
17389lock_old_archive_extraction=$lock_old_archive_extraction
17390
1cf3d07d
SE
17391# A C compiler.
17392LTCC=$lt_CC
17393
17394# LTCC compiler flags.
17395LTCFLAGS=$lt_CFLAGS
17396
17397# Take the output of nm and produce a listing of raw symbols and C names.
17398global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17399
17400# Transform the output of nm in a proper C declaration.
17401global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17402
17403# Transform the output of nm in a C name address pair.
17404global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17405
93e92f52
PG
17406# Transform the output of nm in a C name address pair when lib prefix is needed.
17407global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17408
1cf3d07d
SE
17409# The name of the directory that contains temporary libtool files.
17410objdir=$objdir
17411
1cf3d07d
SE
17412# Used to examine libraries when file_magic_cmd begins with "file".
17413MAGIC_CMD=$MAGIC_CMD
17414
17415# Must we lock files when doing compilation?
17416need_locks=$lt_need_locks
17417
93e92f52
PG
17418# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17419DSYMUTIL=$lt_DSYMUTIL
17420
17421# Tool to change global to local symbols on Mac OS X.
17422NMEDIT=$lt_NMEDIT
17423
17424# Tool to manipulate fat objects and archives on Mac OS X.
17425LIPO=$lt_LIPO
17426
17427# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17428OTOOL=$lt_OTOOL
17429
17430# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17431OTOOL64=$lt_OTOOL64
17432
1cf3d07d
SE
17433# Old archive suffix (normally "a").
17434libext=$libext
17435
17436# Shared library suffix (normally ".so").
17437shrext_cmds=$lt_shrext_cmds
17438
17439# The commands to extract the exported symbol list from a shared archive.
17440extract_expsyms_cmds=$lt_extract_expsyms_cmds
17441
17442# Variables whose values should be saved in libtool wrapper scripts and
17443# restored at link time.
17444variables_saved_for_relink=$lt_variables_saved_for_relink
17445
17446# Do we need the "lib" prefix for modules?
17447need_lib_prefix=$need_lib_prefix
17448
17449# Do we need a version for libraries?
17450need_version=$need_version
17451
17452# Library versioning type.
17453version_type=$version_type
17454
17455# Shared library runtime path variable.
17456runpath_var=$runpath_var
17457
17458# Shared library path variable.
17459shlibpath_var=$shlibpath_var
17460
17461# Is shlibpath searched before the hard-coded library search path?
17462shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17463
17464# Format of library name prefix.
17465libname_spec=$lt_libname_spec
17466
17467# List of archive names. First name is the real one, the rest are links.
17468# The last name is the one that the linker finds with -lNAME
17469library_names_spec=$lt_library_names_spec
17470
17471# The coded name of the library, if different from the real name.
17472soname_spec=$lt_soname_spec
17473
43e02a8a
RW
17474# Permission mode override for installation of shared libraries.
17475install_override_mode=$lt_install_override_mode
17476
1cf3d07d
SE
17477# Command to use after installation of a shared archive.
17478postinstall_cmds=$lt_postinstall_cmds
17479
17480# Command to use after uninstallation of a shared archive.
17481postuninstall_cmds=$lt_postuninstall_cmds
17482
17483# Commands used to finish a libtool library installation in a directory.
17484finish_cmds=$lt_finish_cmds
17485
17486# As "finish_cmds", except a single script fragment to be evaled but
17487# not shown.
17488finish_eval=$lt_finish_eval
17489
17490# Whether we should hardcode library paths into libraries.
17491hardcode_into_libs=$hardcode_into_libs
17492
17493# Compile-time system search path for libraries.
17494sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17495
17496# Run-time system search path for libraries.
17497sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17498
17499# Whether dlopen is supported.
17500dlopen_support=$enable_dlopen
17501
17502# Whether dlopen of programs is supported.
17503dlopen_self=$enable_dlopen_self
17504
17505# Whether dlopen of statically linked programs is supported.
17506dlopen_self_static=$enable_dlopen_self_static
17507
17508# Commands to strip libraries.
17509old_striplib=$lt_old_striplib
17510striplib=$lt_striplib
17511
17512
17513# The linker used to build libraries.
17514LD=$lt_LD
17515
43e02a8a
RW
17516# How to create reloadable object files.
17517reload_flag=$lt_reload_flag
17518reload_cmds=$lt_reload_cmds
17519
1cf3d07d
SE
17520# Commands used to build an old-style archive.
17521old_archive_cmds=$lt_old_archive_cmds
17522
17523# A language specific compiler.
17524CC=$lt_compiler
17525
17526# Is the compiler the GNU compiler?
17527with_gcc=$GCC
17528
17529# Compiler flag to turn off builtin functions.
17530no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17531
17532# How to pass a linker flag through the compiler.
17533wl=$lt_lt_prog_compiler_wl
17534
17535# Additional compiler flags for building library objects.
17536pic_flag=$lt_lt_prog_compiler_pic
17537
17538# Compiler flag to prevent dynamic linking.
17539link_static_flag=$lt_lt_prog_compiler_static
17540
17541# Does compiler simultaneously support -c and -o options?
17542compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17543
17544# Whether or not to add -lc for building shared libraries.
17545build_libtool_need_lc=$archive_cmds_need_lc
17546
17547# Whether or not to disallow shared libs when runtime libs are static.
17548allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17549
17550# Compiler flag to allow reflexive dlopens.
17551export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17552
17553# Compiler flag to generate shared objects directly from archives.
17554whole_archive_flag_spec=$lt_whole_archive_flag_spec
17555
17556# Whether the compiler copes with passing no objects directly.
17557compiler_needs_object=$lt_compiler_needs_object
17558
17559# Create an old-style archive from a shared archive.
17560old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17561
17562# Create a temporary old-style archive to link instead of a shared archive.
17563old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17564
17565# Commands used to build a shared archive.
17566archive_cmds=$lt_archive_cmds
17567archive_expsym_cmds=$lt_archive_expsym_cmds
17568
17569# Commands used to build a loadable module if different from building
17570# a shared archive.
17571module_cmds=$lt_module_cmds
17572module_expsym_cmds=$lt_module_expsym_cmds
17573
17574# Whether we are building with GNU ld or not.
17575with_gnu_ld=$lt_with_gnu_ld
17576
17577# Flag that allows shared libraries with undefined symbols to be built.
17578allow_undefined_flag=$lt_allow_undefined_flag
17579
17580# Flag that enforces no undefined symbols.
17581no_undefined_flag=$lt_no_undefined_flag
17582
17583# Flag to hardcode \$libdir into a binary during linking.
17584# This must work even if \$libdir does not exist
17585hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17586
17587# If ld is used when linking, flag to hardcode \$libdir into a binary
17588# during linking. This must work even if \$libdir does not exist.
17589hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17590
17591# Whether we need a single "-rpath" flag with a separated argument.
17592hardcode_libdir_separator=$lt_hardcode_libdir_separator
17593
17594# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17595# DIR into the resulting binary.
17596hardcode_direct=$hardcode_direct
17597
17598# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17599# DIR into the resulting binary and the resulting library dependency is
17600# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17601# library is relocated.
17602hardcode_direct_absolute=$hardcode_direct_absolute
17603
17604# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17605# into the resulting binary.
17606hardcode_minus_L=$hardcode_minus_L
17607
17608# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17609# into the resulting binary.
17610hardcode_shlibpath_var=$hardcode_shlibpath_var
17611
17612# Set to "yes" if building a shared library automatically hardcodes DIR
17613# into the library and all subsequent libraries and executables linked
17614# against it.
17615hardcode_automatic=$hardcode_automatic
17616
17617# Set to yes if linker adds runtime paths of dependent libraries
17618# to runtime path list.
17619inherit_rpath=$inherit_rpath
17620
17621# Whether libtool must link a program against all its dependency libraries.
17622link_all_deplibs=$link_all_deplibs
17623
17624# Fix the shell variable \$srcfile for the compiler.
17625fix_srcfile_path=$lt_fix_srcfile_path
17626
17627# Set to "yes" if exported symbols are required.
17628always_export_symbols=$always_export_symbols
17629
17630# The commands to list exported symbols.
17631export_symbols_cmds=$lt_export_symbols_cmds
17632
17633# Symbols that should not be listed in the preloaded symbols.
17634exclude_expsyms=$lt_exclude_expsyms
17635
17636# Symbols that must always be exported.
17637include_expsyms=$lt_include_expsyms
17638
17639# Commands necessary for linking programs (against libraries) with templates.
17640prelink_cmds=$lt_prelink_cmds
17641
17642# Specify filename containing input files.
17643file_list_spec=$lt_file_list_spec
17644
17645# How to hardcode a shared library path into an executable.
17646hardcode_action=$hardcode_action
17647
93e92f52
PG
17648# The directories searched by this compiler when creating a shared library.
17649compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17650
1cf3d07d
SE
17651# Dependencies to place before and after the objects being linked to
17652# create a shared library.
17653predep_objects=$lt_predep_objects
17654postdep_objects=$lt_postdep_objects
17655predeps=$lt_predeps
17656postdeps=$lt_postdeps
17657
17658# The library search path used internally by the compiler when linking
17659# a shared library.
17660compiler_lib_search_path=$lt_compiler_lib_search_path
17661
17662# ### END LIBTOOL CONFIG
17663
17664_LT_EOF
17665
17666 case $host_os in
17667 aix3*)
17668 cat <<\_LT_EOF >> "$cfgfile"
17669# AIX sometimes has problems with the GCC collect2 program. For some
17670# reason, if we set the COLLECT_NAMES environment variable, the problems
17671# vanish in a puff of smoke.
17672if test "X${COLLECT_NAMES+set}" != Xset; then
17673 COLLECT_NAMES=
17674 export COLLECT_NAMES
17675fi
17676_LT_EOF
17677 ;;
17678 esac
17679
17680
17681ltmain="$ac_aux_dir/ltmain.sh"
17682
17683
17684 # We use sed instead of cat because bash on DJGPP gets confused if
17685 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17686 # text mode, it properly converts lines to CR/LF. This bash problem
17687 # is reportedly fixed, but why not run on old versions too?
17688 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17689 || (rm -f "$cfgfile"; exit 1)
17690
17691 case $xsi_shell in
17692 yes)
17693 cat << \_LT_EOF >> "$cfgfile"
93e92f52 17694
1cf3d07d
SE
17695# func_dirname file append nondir_replacement
17696# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17697# otherwise set result to NONDIR_REPLACEMENT.
17698func_dirname ()
17699{
17700 case ${1} in
17701 */*) func_dirname_result="${1%/*}${2}" ;;
17702 * ) func_dirname_result="${3}" ;;
17703 esac
17704}
17705
17706# func_basename file
17707func_basename ()
17708{
17709 func_basename_result="${1##*/}"
17710}
17711
93e92f52
PG
17712# func_dirname_and_basename file append nondir_replacement
17713# perform func_basename and func_dirname in a single function
17714# call:
17715# dirname: Compute the dirname of FILE. If nonempty,
17716# add APPEND to the result, otherwise set result
17717# to NONDIR_REPLACEMENT.
17718# value returned in "$func_dirname_result"
17719# basename: Compute filename of FILE.
17720# value retuned in "$func_basename_result"
17721# Implementation must be kept synchronized with func_dirname
17722# and func_basename. For efficiency, we do not delegate to
17723# those functions but instead duplicate the functionality here.
17724func_dirname_and_basename ()
17725{
17726 case ${1} in
17727 */*) func_dirname_result="${1%/*}${2}" ;;
17728 * ) func_dirname_result="${3}" ;;
17729 esac
17730 func_basename_result="${1##*/}"
17731}
17732
1cf3d07d
SE
17733# func_stripname prefix suffix name
17734# strip PREFIX and SUFFIX off of NAME.
17735# PREFIX and SUFFIX must not contain globbing or regex special
17736# characters, hashes, percent signs, but SUFFIX may contain a leading
17737# dot (in which case that matches only a dot).
17738func_stripname ()
17739{
17740 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17741 # positional parameters, so assign one to ordinary parameter first.
17742 func_stripname_result=${3}
17743 func_stripname_result=${func_stripname_result#"${1}"}
17744 func_stripname_result=${func_stripname_result%"${2}"}
17745}
17746
17747# func_opt_split
17748func_opt_split ()
17749{
17750 func_opt_split_opt=${1%%=*}
17751 func_opt_split_arg=${1#*=}
17752}
17753
17754# func_lo2o object
17755func_lo2o ()
17756{
17757 case ${1} in
17758 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17759 *) func_lo2o_result=${1} ;;
17760 esac
17761}
93e92f52
PG
17762
17763# func_xform libobj-or-source
17764func_xform ()
17765{
17766 func_xform_result=${1%.*}.lo
17767}
17768
17769# func_arith arithmetic-term...
17770func_arith ()
17771{
17772 func_arith_result=$(( $* ))
17773}
17774
17775# func_len string
17776# STRING may not start with a hyphen.
17777func_len ()
17778{
17779 func_len_result=${#1}
17780}
17781
1cf3d07d
SE
17782_LT_EOF
17783 ;;
17784 *) # Bourne compatible functions.
17785 cat << \_LT_EOF >> "$cfgfile"
93e92f52 17786
1cf3d07d
SE
17787# func_dirname file append nondir_replacement
17788# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17789# otherwise set result to NONDIR_REPLACEMENT.
17790func_dirname ()
17791{
17792 # Extract subdirectory from the argument.
43e02a8a 17793 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
1cf3d07d
SE
17794 if test "X$func_dirname_result" = "X${1}"; then
17795 func_dirname_result="${3}"
17796 else
17797 func_dirname_result="$func_dirname_result${2}"
17798 fi
17799}
17800
17801# func_basename file
17802func_basename ()
17803{
43e02a8a 17804 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
1cf3d07d
SE
17805}
17806
93e92f52 17807
1cf3d07d
SE
17808# func_stripname prefix suffix name
17809# strip PREFIX and SUFFIX off of NAME.
17810# PREFIX and SUFFIX must not contain globbing or regex special
17811# characters, hashes, percent signs, but SUFFIX may contain a leading
17812# dot (in which case that matches only a dot).
17813# func_strip_suffix prefix name
17814func_stripname ()
17815{
17816 case ${2} in
43e02a8a
RW
17817 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17818 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
1cf3d07d
SE
17819 esac
17820}
17821
17822# sed scripts:
17823my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17824my_sed_long_arg='1s/^-[^=]*=//'
17825
17826# func_opt_split
17827func_opt_split ()
17828{
43e02a8a
RW
17829 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17830 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
1cf3d07d
SE
17831}
17832
17833# func_lo2o object
17834func_lo2o ()
17835{
43e02a8a 17836 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
1cf3d07d 17837}
93e92f52
PG
17838
17839# func_xform libobj-or-source
17840func_xform ()
17841{
43e02a8a 17842 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
93e92f52
PG
17843}
17844
17845# func_arith arithmetic-term...
17846func_arith ()
17847{
17848 func_arith_result=`expr "$@"`
17849}
17850
17851# func_len string
17852# STRING may not start with a hyphen.
17853func_len ()
17854{
17855 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17856}
17857
1cf3d07d
SE
17858_LT_EOF
17859esac
17860
17861case $lt_shell_append in
17862 yes)
17863 cat << \_LT_EOF >> "$cfgfile"
17864
17865# func_append var value
17866# Append VALUE to the end of shell variable VAR.
17867func_append ()
17868{
17869 eval "$1+=\$2"
17870}
17871_LT_EOF
17872 ;;
17873 *)
17874 cat << \_LT_EOF >> "$cfgfile"
17875
17876# func_append var value
17877# Append VALUE to the end of shell variable VAR.
17878func_append ()
17879{
17880 eval "$1=\$$1\$2"
17881}
93e92f52 17882
1cf3d07d
SE
17883_LT_EOF
17884 ;;
17885 esac
17886
17887
17888 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17889 || (rm -f "$cfgfile"; exit 1)
17890
17891 mv -f "$cfgfile" "$ofile" ||
17892 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17893 chmod +x "$ofile"
17894
17895
17896 cat <<_LT_EOF >> "$ofile"
17897
17898# ### BEGIN LIBTOOL TAG CONFIG: CXX
17899
17900# The linker used to build libraries.
17901LD=$lt_LD_CXX
17902
43e02a8a
RW
17903# How to create reloadable object files.
17904reload_flag=$lt_reload_flag_CXX
17905reload_cmds=$lt_reload_cmds_CXX
17906
1cf3d07d
SE
17907# Commands used to build an old-style archive.
17908old_archive_cmds=$lt_old_archive_cmds_CXX
17909
17910# A language specific compiler.
17911CC=$lt_compiler_CXX
17912
17913# Is the compiler the GNU compiler?
17914with_gcc=$GCC_CXX
17915
17916# Compiler flag to turn off builtin functions.
17917no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17918
17919# How to pass a linker flag through the compiler.
17920wl=$lt_lt_prog_compiler_wl_CXX
17921
17922# Additional compiler flags for building library objects.
17923pic_flag=$lt_lt_prog_compiler_pic_CXX
17924
17925# Compiler flag to prevent dynamic linking.
17926link_static_flag=$lt_lt_prog_compiler_static_CXX
17927
17928# Does compiler simultaneously support -c and -o options?
17929compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17930
17931# Whether or not to add -lc for building shared libraries.
17932build_libtool_need_lc=$archive_cmds_need_lc_CXX
17933
17934# Whether or not to disallow shared libs when runtime libs are static.
17935allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17936
17937# Compiler flag to allow reflexive dlopens.
17938export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17939
17940# Compiler flag to generate shared objects directly from archives.
17941whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17942
17943# Whether the compiler copes with passing no objects directly.
17944compiler_needs_object=$lt_compiler_needs_object_CXX
17945
17946# Create an old-style archive from a shared archive.
17947old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17948
17949# Create a temporary old-style archive to link instead of a shared archive.
17950old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17951
17952# Commands used to build a shared archive.
17953archive_cmds=$lt_archive_cmds_CXX
17954archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17955
17956# Commands used to build a loadable module if different from building
17957# a shared archive.
17958module_cmds=$lt_module_cmds_CXX
17959module_expsym_cmds=$lt_module_expsym_cmds_CXX
17960
17961# Whether we are building with GNU ld or not.
17962with_gnu_ld=$lt_with_gnu_ld_CXX
17963
17964# Flag that allows shared libraries with undefined symbols to be built.
17965allow_undefined_flag=$lt_allow_undefined_flag_CXX
17966
17967# Flag that enforces no undefined symbols.
17968no_undefined_flag=$lt_no_undefined_flag_CXX
17969
17970# Flag to hardcode \$libdir into a binary during linking.
17971# This must work even if \$libdir does not exist
17972hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17973
17974# If ld is used when linking, flag to hardcode \$libdir into a binary
17975# during linking. This must work even if \$libdir does not exist.
17976hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17977
17978# Whether we need a single "-rpath" flag with a separated argument.
17979hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17980
17981# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17982# DIR into the resulting binary.
17983hardcode_direct=$hardcode_direct_CXX
17984
17985# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17986# DIR into the resulting binary and the resulting library dependency is
17987# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17988# library is relocated.
17989hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17990
17991# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17992# into the resulting binary.
17993hardcode_minus_L=$hardcode_minus_L_CXX
17994
17995# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17996# into the resulting binary.
17997hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17998
17999# Set to "yes" if building a shared library automatically hardcodes DIR
18000# into the library and all subsequent libraries and executables linked
18001# against it.
18002hardcode_automatic=$hardcode_automatic_CXX
18003
18004# Set to yes if linker adds runtime paths of dependent libraries
18005# to runtime path list.
18006inherit_rpath=$inherit_rpath_CXX
18007
18008# Whether libtool must link a program against all its dependency libraries.
18009link_all_deplibs=$link_all_deplibs_CXX
18010
18011# Fix the shell variable \$srcfile for the compiler.
18012fix_srcfile_path=$lt_fix_srcfile_path_CXX
18013
18014# Set to "yes" if exported symbols are required.
18015always_export_symbols=$always_export_symbols_CXX
18016
18017# The commands to list exported symbols.
18018export_symbols_cmds=$lt_export_symbols_cmds_CXX
18019
18020# Symbols that should not be listed in the preloaded symbols.
18021exclude_expsyms=$lt_exclude_expsyms_CXX
18022
18023# Symbols that must always be exported.
18024include_expsyms=$lt_include_expsyms_CXX
18025
18026# Commands necessary for linking programs (against libraries) with templates.
18027prelink_cmds=$lt_prelink_cmds_CXX
18028
18029# Specify filename containing input files.
18030file_list_spec=$lt_file_list_spec_CXX
18031
18032# How to hardcode a shared library path into an executable.
18033hardcode_action=$hardcode_action_CXX
18034
93e92f52
PG
18035# The directories searched by this compiler when creating a shared library.
18036compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18037
1cf3d07d
SE
18038# Dependencies to place before and after the objects being linked to
18039# create a shared library.
18040predep_objects=$lt_predep_objects_CXX
18041postdep_objects=$lt_postdep_objects_CXX
18042predeps=$lt_predeps_CXX
18043postdeps=$lt_postdeps_CXX
18044
18045# The library search path used internally by the compiler when linking
18046# a shared library.
18047compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18048
18049# ### END LIBTOOL TAG CONFIG: CXX
18050_LT_EOF
18051
bf9a420e 18052 ;;
5213506e 18053
47935194 18054 esac
5213506e 18055done # for ac_tag
47935194 18056
47935194 18057
5213506e 18058as_fn_exit 0
47935194 18059_ACEOF
47935194
NN
18060ac_clean_files=$ac_clean_files_save
18061
5213506e
RW
18062test $ac_write_fail = 0 ||
18063 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18064
47935194
NN
18065
18066# configure is writing to config.log, and then calls config.status.
18067# config.status does its own redirection, appending to config.log.
18068# Unfortunately, on DOS this fails, as config.log is still kept open
18069# by configure, so config.status won't be able to write to it; its
18070# output is simply discarded. So we exec the FD to /dev/null,
18071# effectively closing config.log, so it can be properly (re)opened and
18072# appended to by config.status. When coming back to configure, we
18073# need to make the FD available again.
18074if test "$no_create" != yes; then
18075 ac_cs_success=:
18076 ac_config_status_args=
18077 test "$silent" = yes &&
18078 ac_config_status_args="$ac_config_status_args --quiet"
18079 exec 5>/dev/null
18080 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18081 exec 5>>config.log
18082 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18083 # would make configure fail if this is the last instruction.
5213506e
RW
18084 $ac_cs_success || as_fn_exit $?
18085fi
18086if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18088$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
47935194 18089fi
1530be84 18090